diff --git a/config.yaml b/config.yaml index 6a4379a08..4d6e50198 100644 --- a/config.yaml +++ b/config.yaml @@ -2,7 +2,7 @@ # should be ignored. packages: - googleapis: - version: 14.1.0-wip + version: 15.0.0 repository: https://github.com/google/googleapis.dart/tree/master/generated/googleapis readme: resources/README.md license: resources/LICENSE diff --git a/discovery-artifact-manager b/discovery-artifact-manager index b86a56d2a..1628e8cb6 160000 --- a/discovery-artifact-manager +++ b/discovery-artifact-manager @@ -1 +1 @@ -Subproject commit b86a56d2aaaa756e9401e711274752d9b7136033 +Subproject commit 1628e8cb654615cac4ac82690dded7388e826034 diff --git a/discovery/googleapis/accessapproval__v1.json b/discovery/googleapis/accessapproval__v1.json index 64ea35dd9..3578dd09f 100644 --- a/discovery/googleapis/accessapproval__v1.json +++ b/discovery/googleapis/accessapproval__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250728", + "revision": "20250912", "rootUrl": "https://accessapproval.googleapis.com/", "servicePath": "", "title": "Access Approval API", @@ -112,7 +112,7 @@ "folders": { "methods": { "deleteAccessApprovalSettings": { - "description": "Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.", + "description": "Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the resource. Access Approval may remain active based on parent resource settings. To confirm the effective settings, call GetAccessApprovalSettings and verify effective setting is disabled.", "flatPath": "v1/folders/{foldersId}/accessApprovalSettings", "httpMethod": "DELETE", "id": "accessapproval.folders.deleteAccessApprovalSettings", @@ -137,7 +137,7 @@ ] }, "getAccessApprovalSettings": { - "description": "Gets the settings associated with a project, folder, or organization.", + "description": "Gets the Access Approval settings associated with a project, folder, or organization.", "flatPath": "v1/folders/{foldersId}/accessApprovalSettings", "httpMethod": "GET", "id": "accessapproval.folders.getAccessApprovalSettings", @@ -253,7 +253,7 @@ ] }, "dismiss": { - "description": "Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.", + "description": "Dismisses a request. Returns the updated ApprovalRequest. NOTE: When a request is dismissed, it is considered ignored. Dismissing a request does not prevent access granted by other Access Approval requests. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.", "flatPath": "v1/folders/{foldersId}/approvalRequests/{approvalRequestsId}:dismiss", "httpMethod": "POST", "id": "accessapproval.folders.approvalRequests.dismiss", @@ -306,7 +306,7 @@ ] }, "invalidate": { - "description": "Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval. Returns FAILED_PRECONDITION if the request exists but is not in an approved state.", + "description": "Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest. NOTE: This action revokes Google access based on this approval request. If the resource has other active approvals, access will remain granted. Returns FAILED_PRECONDITION if the request exists but is not in an approved state.", "flatPath": "v1/folders/{foldersId}/approvalRequests/{approvalRequestsId}:invalidate", "httpMethod": "POST", "id": "accessapproval.folders.approvalRequests.invalidate", @@ -381,7 +381,7 @@ "organizations": { "methods": { "deleteAccessApprovalSettings": { - "description": "Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.", + "description": "Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the resource. Access Approval may remain active based on parent resource settings. To confirm the effective settings, call GetAccessApprovalSettings and verify effective setting is disabled.", "flatPath": "v1/organizations/{organizationsId}/accessApprovalSettings", "httpMethod": "DELETE", "id": "accessapproval.organizations.deleteAccessApprovalSettings", @@ -406,7 +406,7 @@ ] }, "getAccessApprovalSettings": { - "description": "Gets the settings associated with a project, folder, or organization.", + "description": "Gets the Access Approval settings associated with a project, folder, or organization.", "flatPath": "v1/organizations/{organizationsId}/accessApprovalSettings", "httpMethod": "GET", "id": "accessapproval.organizations.getAccessApprovalSettings", @@ -522,7 +522,7 @@ ] }, "dismiss": { - "description": "Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.", + "description": "Dismisses a request. Returns the updated ApprovalRequest. NOTE: When a request is dismissed, it is considered ignored. Dismissing a request does not prevent access granted by other Access Approval requests. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.", "flatPath": "v1/organizations/{organizationsId}/approvalRequests/{approvalRequestsId}:dismiss", "httpMethod": "POST", "id": "accessapproval.organizations.approvalRequests.dismiss", @@ -575,7 +575,7 @@ ] }, "invalidate": { - "description": "Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval. Returns FAILED_PRECONDITION if the request exists but is not in an approved state.", + "description": "Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest. NOTE: This action revokes Google access based on this approval request. If the resource has other active approvals, access will remain granted. Returns FAILED_PRECONDITION if the request exists but is not in an approved state.", "flatPath": "v1/organizations/{organizationsId}/approvalRequests/{approvalRequestsId}:invalidate", "httpMethod": "POST", "id": "accessapproval.organizations.approvalRequests.invalidate", @@ -650,7 +650,7 @@ "projects": { "methods": { "deleteAccessApprovalSettings": { - "description": "Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.", + "description": "Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the resource. Access Approval may remain active based on parent resource settings. To confirm the effective settings, call GetAccessApprovalSettings and verify effective setting is disabled.", "flatPath": "v1/projects/{projectsId}/accessApprovalSettings", "httpMethod": "DELETE", "id": "accessapproval.projects.deleteAccessApprovalSettings", @@ -675,7 +675,7 @@ ] }, "getAccessApprovalSettings": { - "description": "Gets the settings associated with a project, folder, or organization.", + "description": "Gets the Access Approval settings associated with a project, folder, or organization.", "flatPath": "v1/projects/{projectsId}/accessApprovalSettings", "httpMethod": "GET", "id": "accessapproval.projects.getAccessApprovalSettings", @@ -791,7 +791,7 @@ ] }, "dismiss": { - "description": "Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.", + "description": "Dismisses a request. Returns the updated ApprovalRequest. NOTE: When a request is dismissed, it is considered ignored. Dismissing a request does not prevent access granted by other Access Approval requests. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.", "flatPath": "v1/projects/{projectsId}/approvalRequests/{approvalRequestsId}:dismiss", "httpMethod": "POST", "id": "accessapproval.projects.approvalRequests.dismiss", @@ -844,7 +844,7 @@ ] }, "invalidate": { - "description": "Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval. Returns FAILED_PRECONDITION if the request exists but is not in an approved state.", + "description": "Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest. NOTE: This action revokes Google access based on this approval request. If the resource has other active approvals, access will remain granted. Returns FAILED_PRECONDITION if the request exists but is not in an approved state.", "flatPath": "v1/projects/{projectsId}/approvalRequests/{approvalRequestsId}:invalidate", "httpMethod": "POST", "id": "accessapproval.projects.approvalRequests.invalidate", @@ -948,11 +948,11 @@ }, "approvalPolicy": { "$ref": "CustomerApprovalApprovalPolicy", - "description": "Optional. Policy for approval. This contains all policies." + "description": "Optional. Policy configuration for Access Approval that sets the operating mode. The available policies are Transparency, Streamlined Support, and Approval Required." }, "effectiveApprovalPolicy": { "$ref": "CustomerApprovalApprovalPolicy", - "description": "Output only. Policy for approval included inherited settings to understand the exact policy applied to this resource. This is a read-only field.", + "description": "Output only. Effective policy applied for Access Approval, inclusive of inheritance.", "readOnly": true }, "enrolledAncestor": { @@ -961,7 +961,7 @@ "type": "boolean" }, "enrolledServices": { - "description": "A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. If name refers to an organization, enrollment can be done for individual services. If name refers to a folder or project, enrollment can only be done on an all or nothing basis. If a cloud_product is repeated in this list, the first entry will be honored and all following entries will be discarded. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded.", + "description": "A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. If name refers to an organization, enrollment can be done for individual services. If name refers to a folder or project, enrollment can only be done on an all or nothing basis. If a cloud_product is repeated in this list, the first entry will be honored and all following entries will be discarded.", "items": { "$ref": "EnrolledService" }, @@ -984,20 +984,20 @@ "type": "array" }, "notificationPubsubTopic": { - "description": "Optional. A pubsub topic to which notifications relating to approval requests should be sent.", + "description": "Optional. A pubsub topic that notifications relating to access approval are published to. Notifications include pre-approved accesses.", "type": "string" }, "preferNoBroadApprovalRequests": { - "description": "This preference is communicated to Google personnel when sending an approval request but can be overridden if necessary.", + "description": "This field is used to set a preference for granularity of an access approval request. If true, Google personnel will be asked to send resource-level requests when possible. If false, Google personnel will be asked to send requests at the project level.", "type": "boolean" }, "preferredRequestExpirationDays": { - "description": "This preference is shared with Google personnel, but can be overridden if said personnel deems necessary. The approver ultimately can set the expiration at approval time.", + "description": "Set the default access approval request expiration time. This value is able to be set directly by the customer at the time of approval, overriding this suggested value. We recommend setting this value to 30 days.", "format": "int32", "type": "integer" }, "requestScopeMaxWidthPreference": { - "description": "Optional. A setting to indicate the maximum width of an Access Approval request.", + "description": "Optional. A setting that indicates the maximum scope of an Access Approval request: either organization, folder, or project. Google administrators will be asked to send requests no broader than the configured scope.", "enum": [ "REQUEST_SCOPE_MAX_WIDTH_PREFERENCE_UNSPECIFIED", "ORGANIZATION", @@ -1005,7 +1005,7 @@ "PROJECT" ], "enumDescriptions": [ - "Default value for proto, shouldn't be used.", + "Default value, defaults to ORGANIZATION if not set. This value is not able to be configured by the user, do not use.", "This is the widest scope possible. It means the customer has no scope restriction when it comes to Access Approval requests.", "Customer allows the scope of Access Approval requests as broad as the Folder level.", "Customer allows the scope of Access Approval requests as broad as the Project level." @@ -1013,22 +1013,22 @@ "type": "string" }, "requireCustomerVisibleJustification": { - "description": "Optional. A setting to require approval request justifications to be customer visible.", + "description": "Optional. When enabled, Google will only be able to send approval requests for access reasons with a customer accessible case ID in the reason detail. Also known as \"Require customer initiated support case justification\"", "type": "boolean" } }, "type": "object" }, "AccessLocations": { - "description": "Home office and physical location of the principal.", + "description": "Physical assigned office and physical location of the Google administrator performing the access.", "id": "AccessLocations", "properties": { "principalOfficeCountry": { - "description": "The \"home office\" location of the principal. A two-letter country code (ISO 3166-1 alpha-2), such as \"US\", \"DE\" or \"GB\" or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location", + "description": "The \"home office\" location of the Google administrator. A two-letter country code (ISO 3166-1 alpha-2), such as \"US\", \"DE\" or \"GB\" or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location", "type": "string" }, "principalPhysicalLocationCountry": { - "description": "Physical location of the principal at the time of the access. A two-letter country code (ISO 3166-1 alpha-2), such as \"US\", \"DE\" or \"GB\" or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location", + "description": "Physical location of the Google administrator at the time of the access. A two-letter country code (ISO 3166-1 alpha-2), such as \"US\", \"DE\" or \"GB\" or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location", "type": "string" } }, @@ -1042,7 +1042,7 @@ "type": "string" }, "type": { - "description": "Type of access justification.", + "description": "Type of access reason.", "enum": [ "TYPE_UNSPECIFIED", "CUSTOMER_INITIATED_SUPPORT", @@ -1053,7 +1053,7 @@ "CLOUD_INITIATED_ACCESS" ], "enumDescriptions": [ - "Default value for proto, shouldn't be used.", + "This value is not used.", "Customer made a request or raised an issue that required the principal to access customer data. `detail` is of the form (\"#####\" is the issue ID): * \"Feedback Report: #####\" * \"Case Number: #####\" * \"Case ID: #####\" * \"E-PIN Reference: #####\" * \"Google-#####\" * \"T-#####\"", "The principal accessed customer data in order to diagnose or resolve a suspected issue in services. Often this access is used to confirm that customers are not affected by a suspected service issue or to remediate a reversible system issue.", "Google initiated service for security, fraud, abuse, or compliance purposes.", @@ -1107,7 +1107,7 @@ }, "requestedReason": { "$ref": "AccessReason", - "description": "The justification for which approval is being requested." + "description": "The access reason for which approval is being requested." }, "requestedResourceName": { "description": "The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a \"full\" resource name (e.g. \"//library.googleapis.com/shelves/shelf1/books/book2\") or a \"relative\" resource name (e.g. \"shelves/shelf1/books/book2\") as described in the resource name specification.", @@ -1167,7 +1167,7 @@ "type": "object" }, "AugmentedInfo": { - "description": "This field contains the augmented information of the request.", + "description": "This field contains the augmented information of the request. Requires augmented administrative access to be enabled.", "id": "AugmentedInfo", "properties": { "command": { @@ -1191,11 +1191,11 @@ "JUSTIFICATION_BASED_APPROVAL_INHERITED" ], "enumDescriptions": [ - "Default value for proto.", - "Instant approval is enabled for all accesses.", - "Instant approval is enabled for external justifications.", - "Instant approval is not enabled for any accesses.", - "Instant approval is inherited from the parent." + "Default value, defaults to JUSTIFICATION_BASED_APPROVAL_NOT_ENABLED if not set. This value is not able to be configured by the user, do not use.", + "Audit-only mode. All accesses are pre-approved instantly.", + "Customer initiated support access reasons are pre-approved instantly. All other accesses require customer approval.", + "All access approval requests require customer approval. This is the default value if the policy is not set.", + "Defer configuration to parent settings. This is the default value if the policy is not set and the parent has a value set." ], "type": "string" } @@ -1235,7 +1235,7 @@ "id": "EnrolledService", "properties": { "cloudProduct": { - "description": "The product for which Access Approval will be enrolled. Allowed values are listed below (case-sensitive): * all * GA * App Engine * Artifact Registry * BigQuery * Certificate Authority Service * Cloud Bigtable * Cloud Key Management Service * Compute Engine * Cloud Composer * Cloud Dataflow * Cloud Dataproc * Cloud DLP * Cloud EKM * Cloud Firestore * Cloud HSM * Cloud Identity and Access Management * Cloud Logging * Cloud NAT * Cloud Pub/Sub * Cloud Spanner * Cloud SQL * Cloud Storage * Eventarc * Google Kubernetes Engine * Organization Policy Serivice * Persistent Disk * Resource Manager * Secret Manager * Speaker ID Note: These values are supported as input for legacy purposes, but will not be returned from the API. * all * ga-only * appengine.googleapis.com * artifactregistry.googleapis.com * bigquery.googleapis.com * bigtable.googleapis.com * container.googleapis.com * cloudkms.googleapis.com * cloudresourcemanager.googleapis.com * cloudsql.googleapis.com * compute.googleapis.com * dataflow.googleapis.com * dataproc.googleapis.com * dlp.googleapis.com * iam.googleapis.com * logging.googleapis.com * orgpolicy.googleapis.com * pubsub.googleapis.com * spanner.googleapis.com * secretmanager.googleapis.com * speakerid.googleapis.com * storage.googleapis.com Calls to UpdateAccessApprovalSettings using 'all' or any of the XXX.googleapis.com will be translated to the associated product name ('all', 'App Engine', etc.). Note: 'all' will enroll the resource in all products supported at both 'GA' and 'Preview' levels. More information about levels of support is available at https://cloud.google.com/access-approval/docs/supported-services", + "description": "The product for which Access Approval will be enrolled. Allowed values are listed below (case-sensitive): * all * GA * Access Context Manager * Anthos Identity Service * AlloyDB for PostgreSQL * Apigee * Application Integration * App Hub * Artifact Registry * Anthos Service Mesh * Access Transparency * BigQuery * Certificate Authority Service * Cloud Bigtable * CCAI Assist and Knowledge * Cloud Dataflow * Cloud Dataproc * CEP Security Gateway * Compliance Evaluation Service * Cloud Firestore * Cloud Healthcare API * Chronicle * Cloud AI Companion Gateway - Titan * Google Cloud Armor * Cloud Asset Inventory * Cloud Asset Search * Cloud Deploy * Cloud DNS * Cloud Latency * Cloud Memorystore for Redis * CloudNet Control * Cloud Riptide * Cloud Tasks * Cloud Trace * Cloud Data Transfer * Cloud Composer * Integration Connectors * Contact Center AI Insights * Cloud Pub/Sub * Cloud Run * Resource Manager * Cloud Spanner * Database Center * Cloud Dataform * Cloud Data Fusion * Dataplex * Dialogflow Customer Experience Edition * Cloud DLP * Document AI * Edge Container * Edge Network * Cloud EKM * Eventarc * Firebase Data Connect * Firebase Rules * App Engine * Cloud Build * Compute Engine * Cloud Functions (2nd Gen) * Cloud Filestore * Cloud Interconnect * Cloud NetApp Volumes * Cloud Storage * Generative AI App Builder * Google Kubernetes Engine * Backup for GKE API * GKE Connect * GKE Hub * Hoverboard * Cloud HSM * Cloud Identity and Access Management * Cloud Identity-Aware Proxy * Infrastructure Manager * Identity Storage Service * Key Access Justifications * Cloud Key Management Service * Cloud Logging * Looker (Google Cloud core) * Looker Studio * Management Hub * Model Armor * Cloud Monitoring * Cloud NAT * Connectivity Hub * External passthrough Network Load Balancer * OIDC One * Organization Policy Service * Org Lifecycle * Persistent Disk * Parameter Manager * Private Services Access * Regional Internal Application Load Balancer * Storage Batch Operations * Cloud Security Command Center * Secure Source Manager * Seeker * Service Provisioning * Speaker ID * Secret Manager * Cloud SQL * Cloud Speech-to-Text * Traffic Director * Cloud Text-to-Speech * USPS Andromeda * Vertex AI * Virtual Private Cloud (VPC) * VPC Access * VPC Service Controls Troubleshooter * VPC virtnet * Cloud Workstations * Web Risk Note: These values are supported as input for legacy purposes, but will not be returned from the API. * all * ga-only * appengine.googleapis.com * artifactregistry.googleapis.com * bigquery.googleapis.com * bigtable.googleapis.com * container.googleapis.com * cloudkms.googleapis.com * cloudresourcemanager.googleapis.com * cloudsql.googleapis.com * compute.googleapis.com * dataflow.googleapis.com * dataproc.googleapis.com * dlp.googleapis.com * iam.googleapis.com * logging.googleapis.com * orgpolicy.googleapis.com * pubsub.googleapis.com * spanner.googleapis.com * secretmanager.googleapis.com * speakerid.googleapis.com * storage.googleapis.com Calls to UpdateAccessApprovalSettings using 'all' or any of the XXX.googleapis.com will be translated to the associated product name ('all', 'App Engine', etc.). Note: 'all' will enroll the resource in all products supported at both 'GA' and 'Preview' levels. More information about levels of support is available at https://cloud.google.com/access-approval/docs/supported-services", "type": "string" }, "enrollmentLevel": { @@ -1245,7 +1245,7 @@ "BLOCK_ALL" ], "enumDescriptions": [ - "Default value for proto, shouldn't be used.", + "Default value if not set, defaults to \"BLOCK_ALL\". This value is not available to be set by the user, do not use.", "Service is enrolled in Access Approval for all requests" ], "type": "string" diff --git a/discovery/googleapis/admin__directory_v1.json b/discovery/googleapis/admin__directory_v1.json index 585959a5b..789bcdbe5 100644 --- a/discovery/googleapis/admin__directory_v1.json +++ b/discovery/googleapis/admin__directory_v1.json @@ -110,7 +110,7 @@ "ownerName": "Google", "packagePath": "admin", "protocol": "rest", - "revision": "20250707", + "revision": "20250804", "rootUrl": "https://admin.googleapis.com/", "servicePath": "", "title": "Admin SDK API", @@ -5841,6 +5841,23 @@ "description": "The Chrome device's operating system version.", "type": "string" }, + "osVersionCompliance": { + "description": "Output only. Compliance status of the OS version.", + "enum": [ + "complianceUnspecified", + "compliant", + "pending", + "notCompliant" + ], + "enumDescriptions": [ + "Compliance status unspecified.", + "Compliance status compliant.", + "Compliance status pending.", + "Compliance status not compliant." + ], + "readOnly": true, + "type": "string" + }, "platformVersion": { "description": "The Chrome device's platform version.", "type": "string" diff --git a/discovery/googleapis/admin__reports_v1.json b/discovery/googleapis/admin__reports_v1.json index 271c057de..2624f230d 100644 --- a/discovery/googleapis/admin__reports_v1.json +++ b/discovery/googleapis/admin__reports_v1.json @@ -29,7 +29,7 @@ "ownerName": "Google", "packagePath": "admin", "protocol": "rest", - "revision": "20250707", + "revision": "20250818", "rootUrl": "https://admin.googleapis.com/", "servicePath": "", "title": "Admin SDK API", @@ -138,6 +138,7 @@ "chat", "drive", "gcp", + "gmail", "gplus", "groups", "groups_enterprise", @@ -154,7 +155,8 @@ "data_studio", "keep", "vault", - "gemini_in_workspace_apps" + "gemini_in_workspace_apps", + "classroom" ], "enumDescriptions": [ "The Google Workspace Access Transparency activity reports return information about different types of Access Transparency activity events.", @@ -163,6 +165,7 @@ "The Chat activity reports return information about various Chat activity events.", "The Google Drive application's activity reports return information about various Google Drive activity events. The Drive activity report is only available for Google Workspace Business and Enterprise customers.", "The Google Cloud Platform application's activity reports return information about various GCP activity events.", + "The Gmail application's activity reports return information about various [Gmail activity events](/admin-sdk/reports/v1/appendix/activity/gmail).", "The Google+ application's activity reports return information about various Google+ activity events.", "The Google Groups application's activity reports return information about various Groups activity events.", "The Enterprise Groups activity reports return information about various Enterprise group activity events.", @@ -179,10 +182,11 @@ "The Data Studio activity reports return information about various types of Data Studio activity events.", "The Keep application's activity reports return information about various Google Keep activity events. The Keep activity report is only available for Google Workspace Business and Enterprise customers.", "The Vault activity reports return information about various types of Vault activity events.", - "The Gemini for Workspace activity reports return information about various types of Gemini activity events performed by users within a Workspace application." + "The Gemini for Workspace activity reports return information about various types of Gemini activity events performed by users within a Workspace application.", + "The Classroom activity reports return information about different types of [Classroom activity events](https://developers.google.com/workspace/admin/reports/v1/appendix/activity/classroom)." ], "location": "path", - "pattern": "(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(keep)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)|(vault)|(gemini_in_workspace_apps)", + "pattern": "(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(classroom)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gmail)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(keep)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)|(vault)|(gemini_in_workspace_apps)", "required": true, "type": "string" }, @@ -193,7 +197,7 @@ "type": "string" }, "endTime": { - "description": "Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts: - *Date of the API's request for a report*: When the API created and retrieved the report. - *Report's start time*: The beginning of the timespan shown in the report. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error. - *Report's end time*: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The report itself can be requested in August. If the `endTime` is not specified, the report returns all activities from the `startTime` until the current time or the most recent 180 days if the `startTime` is more than 180 days in the past.", + "description": "Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts: - *Date of the API's request for a report*: When the API created and retrieved the report. - *Report's start time*: The beginning of the timespan shown in the report. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error. - *Report's end time*: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The report itself can be requested in August. If the `endTime` is not specified, the report returns all activities from the `startTime` until the current time or the most recent 180 days if the `startTime` is more than 180 days in the past. For Gmail requests, `startTime` and `endTime` must be provided and the difference must not be greater than 30 days.", "location": "query", "pattern": "(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d):(\\d\\d)(?:\\.(\\d+))?(?:(Z)|([-+])(\\d\\d):(\\d\\d))", "type": "string" @@ -237,7 +241,7 @@ "type": "string" }, "startTime": { - "description": "Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from `startTime` until `endTime`. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error.", + "description": "Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from `startTime` until `endTime`. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error. For Gmail requests, `startTime` and `endTime` must be provided and the difference must not be greater than 30 days.", "location": "query", "pattern": "(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d):(\\d\\d)(?:\\.(\\d+))?(?:(Z)|([-+])(\\d\\d):(\\d\\d))", "type": "string" @@ -295,7 +299,8 @@ "context_aware_access", "chrome", "data_studio", - "keep" + "keep", + "classroom" ], "enumDescriptions": [ "The Google Workspace Access Transparency activity reports return information about different types of Access Transparency activity events.", @@ -318,10 +323,11 @@ "The Context-aware access activity reports return information about users' access denied events due to Context-aware access rules.", "The Chrome activity reports return information about Chrome browser and Chrome OS events.", "The Data Studio activity reports return information about various types of Data Studio activity events.", - "The Keep application's activity reports return information about various Google Keep activity events. The Keep activity report is only available for Google Workspace Business and Enterprise customers." + "The Keep application's activity reports return information about various Google Keep activity events. The Keep activity report is only available for Google Workspace Business and Enterprise customers.", + "The Classroom activity reports return information about different types of [Classroom activity events](https://developers.google.com/workspace/admin/reports/v1/appendix/activity/classroom)." ], "location": "path", - "pattern": "(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(keep)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)", + "pattern": "(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(classroom)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(keep)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)", "required": true, "type": "string" }, diff --git a/discovery/googleapis/aiplatform__v1.json b/discovery/googleapis/aiplatform__v1.json index 01e09aafd..593955184 100644 --- a/discovery/googleapis/aiplatform__v1.json +++ b/discovery/googleapis/aiplatform__v1.json @@ -228,6 +228,16 @@ "description": "Locational Endpoint", "endpointUrl": "https://us-east5-aiplatform.googleapis.com/", "location": "us-east5" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://aiplatform.us.rep.googleapis.com/", + "location": "us" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://aiplatform.eu.rep.googleapis.com/", + "location": "eu" } ], "icons": { @@ -240,7 +250,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250731", + "revision": "20250916", "rootUrl": "https://aiplatform.googleapis.com/", "servicePath": "", "title": "Vertex AI API", @@ -1270,6 +1280,62 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "generateInstanceRubrics": { + "description": "Generates rubrics for a given prompt. A rubric represents a single testable criterion for evaluation. One input prompt could have multiple rubrics This RPC allows users to get suggested rubrics based on provided prompt, which can then be reviewed and used for subsequent evaluations.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:generateInstanceRubrics", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.generateInstanceRubrics", + "parameterOrder": [ + "location" + ], + "parameters": { + "location": { + "description": "Required. The resource name of the Location to generate rubrics from. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+location}:generateInstanceRubrics", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateInstanceRubricsRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateInstanceRubricsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "generateSyntheticData": { + "description": "Generates synthetic data based on the provided configuration.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:generateSyntheticData", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.generateSyntheticData", + "parameterOrder": [ + "location" + ], + "parameters": { + "location": { + "description": "Required. The resource name of the Location to run the job. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+location}:generateSyntheticData", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateSyntheticDataRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateSyntheticDataResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Gets information about a location.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", @@ -1330,7 +1396,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -4917,6 +4983,133 @@ } } }, + "deployedModels": { + "resources": { + "invoke": { + "methods": { + "invoke": { + "description": "Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/deployedModels/{deployedModelId}/invoke/{invokeId}", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.deployedModels.invoke.invoke", + "parameterOrder": [ + "endpoint", + "deployedModelId", + "invokeId" + ], + "parameters": { + "deployedModelId": { + "description": "ID of the DeployedModel that serves the invoke request.", + "location": "path", + "required": true, + "type": "string" + }, + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + }, + "invokeId": { + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}/deployedModels/{deployedModelId}/invoke/{+invokeId}", + "request": { + "$ref": "GoogleCloudAiplatformV1InvokeRequest" + }, + "response": { + "$ref": "GoogleApiHttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + } + } + }, + "invoke": { + "methods": { + "invoke": { + "description": "Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/invoke/{invokeId}", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.invoke.invoke", + "parameterOrder": [ + "endpoint", + "invokeId" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + }, + "invokeId": { + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}/invoke/{+invokeId}", + "request": { + "$ref": "GoogleCloudAiplatformV1InvokeRequest" + }, + "response": { + "$ref": "GoogleApiHttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + }, + "openapi": { + "methods": { + "embeddings": { + "description": "Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/openapi/embeddings", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.openapi.embeddings", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "deployedModelId": { + "description": "ID of the DeployedModel that serves the invoke request.", + "location": "query", + "type": "string" + }, + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/openapi$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}/embeddings", + "request": { + "$ref": "GoogleApiHttpBody" + }, + "response": { + "$ref": "GoogleApiHttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + }, "operations": { "methods": { "cancel": { @@ -5070,6 +5263,452 @@ } } }, + "evaluationItems": { + "methods": { + "create": { + "description": "Creates an Evaluation Item.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationItems", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.evaluationItems.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the Evaluation Item in. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/evaluationItems", + "request": { + "$ref": "GoogleCloudAiplatformV1EvaluationItem" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationItem" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an Evaluation Item.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationItems/{evaluationItemsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.evaluationItems.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationItem resource to be deleted. Format: `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an Evaluation Item.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationItems/{evaluationItemsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationItems.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationItem resource. Format: `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationItem" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Evaluation Items.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationItems", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationItems.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter expression that matches a subset of the EvaluationItems to show. For field names both snake_case and camelCase are supported. For more information about filter syntax, see [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of Evaluation Items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListEvaluationItems` call. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location from which to list the Evaluation Items. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/evaluationItems", + "response": { + "$ref": "GoogleCloudAiplatformV1ListEvaluationItemsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "evaluationRuns": { + "methods": { + "cancel": { + "description": "Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status of run can be checked via GetEvaluationRun.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationRuns/{evaluationRunsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.evaluationRuns.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationRun resource to be cancelled. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "GoogleCloudAiplatformV1CancelEvaluationRunRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates an Evaluation Run.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationRuns", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.evaluationRuns.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the Evaluation Run in. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/evaluationRuns", + "request": { + "$ref": "GoogleCloudAiplatformV1EvaluationRun" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationRun" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an Evaluation Run.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationRuns/{evaluationRunsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.evaluationRuns.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationRun resource to be deleted. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an Evaluation Run.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationRuns/{evaluationRunsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationRuns.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationRun resource. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationRun" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Evaluation Runs.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationRuns", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationRuns.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter expression that matches a subset of the EvaluationRuns to show. For field names both snake_case and camelCase are supported. For more information about filter syntax, see [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of Evaluation Runs to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListEvaluationRuns` call. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location from which to list the Evaluation Runs. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/evaluationRuns", + "response": { + "$ref": "GoogleCloudAiplatformV1ListEvaluationRunsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "evaluationSets": { + "methods": { + "create": { + "description": "Creates an Evaluation Set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationSets", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.evaluationSets.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the Evaluation Set in. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/evaluationSets", + "request": { + "$ref": "GoogleCloudAiplatformV1EvaluationSet" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an Evaluation Set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationSets/{evaluationSetsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.evaluationSets.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationSet resource to be deleted. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an Evaluation Set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationSets/{evaluationSetsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationSets.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationSet resource. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Evaluation Sets.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationSets", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationSets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter expression that matches a subset of the EvaluationSets to show. For field names both snake_case and camelCase are supported. For more information about filter syntax, see [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of Evaluation Sets to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListEvaluationSets` call. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location from which to list the Evaluation Sets. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/evaluationSets", + "response": { + "$ref": "GoogleCloudAiplatformV1ListEvaluationSetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an Evaluation Set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationSets/{evaluationSetsId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.evaluationSets.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the EvaluationSet. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1EvaluationSet" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "featureGroups": { "methods": { "create": { @@ -15413,6 +16052,11 @@ "name" ], "parameters": { + "forceDelete": { + "description": "Optional. If set to true, any errors generated by external vector database during the deletion will be ignored. The default value is false.", + "location": "query", + "type": "boolean" + }, "name": { "description": "Required. The name of the RagFile resource to be deleted. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`", "location": "path", @@ -22006,6 +22650,65 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1BigQueryRequestSet": { + "description": "The request set for the evaluation run.", + "id": "GoogleCloudAiplatformV1BigQueryRequestSet", + "properties": { + "candidateResponseColumns": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Map of candidate name to candidate response column name. The column will be in evaluation_item.CandidateResponse format.", + "type": "object" + }, + "promptColumn": { + "description": "Optional. The name of the column that contains the requests to evaluate. This will be in evaluation_item.EvalPrompt format.", + "type": "string" + }, + "rubricsColumn": { + "description": "Optional. The name of the column that contains the rubrics. This will be in evaluation_rubric.RubricGroup format (cl/762595858).", + "type": "string" + }, + "samplingConfig": { + "$ref": "GoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig", + "description": "Optional. The sampling config for the bigquery resource." + }, + "uri": { + "description": "Required. The URI of a BigQuery table. e.g. bq://projectId.bqDatasetId.bqTableId", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig": { + "description": "The sampling config.", + "id": "GoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig", + "properties": { + "samplingCount": { + "description": "Optional. The total number of logged data to import. If available data is less than the sampling count, all data will be imported. Default is 100.", + "format": "int32", + "type": "integer" + }, + "samplingDuration": { + "description": "Optional. How long to wait before sampling data from the BigQuery table. If not specified, defaults to 0.", + "format": "google-duration", + "type": "string" + }, + "samplingMethod": { + "description": "Optional. The sampling method to use.", + "enum": [ + "SAMPLING_METHOD_UNSPECIFIED", + "RANDOM" + ], + "enumDescriptions": [ + "Unspecified sampling method.", + "Random sampling." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1BigQuerySource": { "description": "The BigQuery location for the input content.", "id": "GoogleCloudAiplatformV1BigQuerySource", @@ -22272,6 +22975,12 @@ "properties": {}, "type": "object" }, + "GoogleCloudAiplatformV1CancelEvaluationRunRequest": { + "description": "Request message for EvaluationManagementService.CancelEvaluationRun.", + "id": "GoogleCloudAiplatformV1CancelEvaluationRunRequest", + "properties": {}, + "type": "object" + }, "GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest": { "description": "Request message for JobService.CancelHyperparameterTuningJob.", "id": "GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest", @@ -22340,6 +23049,7 @@ "PROHIBITED_CONTENT", "SPII", "MALFORMED_FUNCTION_CALL", + "MODEL_ARMOR", "IMAGE_SAFETY", "IMAGE_PROHIBITED_CONTENT", "IMAGE_RECITATION", @@ -22356,12 +23066,13 @@ "Token generation stopped because the content contains forbidden terms.", "Token generation stopped for potentially containing prohibited content.", "Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).", - "The function call generated by the model is invalid.", + "The function call generated by the model is syntaxtically invalid (e.g. the function call generated is not parsable).", + "The model response was blocked by Model Armor.", "Token generation stopped because generated images has safety violations.", "Image generation stopped because generated images has other prohibited content.", "Image generation stopped due to recitation.", "Image generation stopped because of other miscellaneous issue.", - "The tool call generated by the model is invalid." + "The function call generated by the model is semantically invalid (e.g. a function call is generated when function calling is not enabled or the function is not in the function declaration)." ], "readOnly": true, "type": "string" @@ -22398,6 +23109,60 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1CandidateResponse": { + "description": "Responses from model or agent.", + "id": "GoogleCloudAiplatformV1CandidateResponse", + "properties": { + "candidate": { + "description": "Required. The name of the candidate that produced the response.", + "type": "string" + }, + "text": { + "description": "Text response.", + "type": "string" + }, + "value": { + "description": "Fields and values that can be used to populate the response template.", + "type": "any" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1CandidateResult": { + "description": "Result for a single candidate.", + "id": "GoogleCloudAiplatformV1CandidateResult", + "properties": { + "additionalResults": { + "description": "Optional. Additional results for the metric.", + "type": "any" + }, + "candidate": { + "description": "Required. The candidate that is being evaluated. The value is the same as the candidate name in the EvaluationRequest.", + "type": "string" + }, + "explanation": { + "description": "Optional. The explanation for the metric.", + "type": "string" + }, + "metric": { + "description": "Required. The metric that was evaluated.", + "type": "string" + }, + "rubricVerdicts": { + "description": "Optional. The rubric verdicts for the metric.", + "items": { + "$ref": "GoogleCloudAiplatformV1RubricVerdict" + }, + "type": "array" + }, + "score": { + "description": "Optional. The score for the metric.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateMetatdata": { "description": "This message will be placed in the metadata field of a google.longrunning.Operation associated with a CheckTrialEarlyStoppingState request.", "id": "GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateMetatdata", @@ -24465,13 +25230,26 @@ "description": "The endpoint config to use for the deployment.", "id": "GoogleCloudAiplatformV1DeployRequestEndpointConfig", "properties": { + "dedicatedEndpointDisabled": { + "description": "Optional. By default, if dedicated endpoint is enabled and private service connect config is not set, the endpoint will be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns]. If private service connect config is set, the endpoint will be exposed through private service connect. Your request to the dedicated DNS will be isolated from other users' traffic and will have better performance and reliability. Note: Once you enabled dedicated endpoint, you won't be able to send request to the shared DNS {region}-aiplatform.googleapis.com. The limitations will be removed soon. If this field is set to true, the dedicated endpoint will be disabled and the deployed model will be exposed through the shared DNS {region}-aiplatform.googleapis.com.", + "type": "boolean" + }, "dedicatedEndpointEnabled": { - "description": "Optional. If true, the endpoint will be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS will be isolated from other users' traffic and will have better performance and reliability. Note: Once you enabled dedicated endpoint, you won't be able to send request to the shared DNS {region}-aiplatform.googleapis.com. The limitations will be removed soon.", + "deprecated": true, + "description": "Optional. Deprecated. Use dedicated_endpoint_disabled instead. If true, the endpoint will be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS will be isolated from other users' traffic and will have better performance and reliability. Note: Once you enabled dedicated endpoint, you won't be able to send request to the shared DNS {region}-aiplatform.googleapis.com. The limitations will be removed soon.", "type": "boolean" }, "endpointDisplayName": { "description": "Optional. The user-specified display name of the endpoint. If not set, a default name will be used.", "type": "string" + }, + "endpointUserId": { + "description": "Optional. Immutable. The ID to use for endpoint, which will become the final component of the endpoint resource name. If not provided, Vertex AI will generate a value for this ID. If the first character is a letter, this value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The last character must be a letter or number. If the first character is a number, this value may be up to 9 characters, and valid characters are `[0-9]` with no leading zeros. When using HTTP/JSON, this field is populated based on a query string argument, such as `?endpoint_id=12345`. This is the fallback for fields that are not included in either the URI or the body.", + "type": "string" + }, + "privateServiceConnectConfig": { + "$ref": "GoogleCloudAiplatformV1PrivateServiceConnectConfig", + "description": "Optional. Configuration for private service connect. If set, the endpoint will be exposed through private service connect." } }, "type": "object" @@ -25352,6 +26130,17 @@ "$ref": "GoogleCloudAiplatformV1GroundednessInput", "description": "Input for groundedness metric." }, + "instance": { + "$ref": "GoogleCloudAiplatformV1EvaluationInstance", + "description": "The instance to be evaluated." + }, + "metrics": { + "description": "The metrics used for evaluation. Currently, we only support evaluating a single metric. If multiple metrics are provided, only the first one will be evaluated.", + "items": { + "$ref": "GoogleCloudAiplatformV1Metric" + }, + "type": "array" + }, "metricxInput": { "$ref": "GoogleCloudAiplatformV1MetricxInput", "description": "Input for Metricx metric." @@ -25487,6 +26276,13 @@ "$ref": "GoogleCloudAiplatformV1GroundednessResult", "description": "Result for groundedness metric." }, + "metricResults": { + "description": "Metric results for each instance. The order of the metric results is guaranteed to be the same as the order of the instances in the request.", + "items": { + "$ref": "GoogleCloudAiplatformV1MetricResult" + }, + "type": "array" + }, "metricxResult": { "$ref": "GoogleCloudAiplatformV1MetricxResult", "description": "Result for Metricx metric." @@ -25684,6 +26480,677 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1EvaluationInstance": { + "description": "A single instance to be evaluated. Instances are used to specify the input data for evaluation, from simple string comparisons to complex, multi-turn model evaluations", + "id": "GoogleCloudAiplatformV1EvaluationInstance", + "properties": { + "otherData": { + "$ref": "GoogleCloudAiplatformV1EvaluationInstanceMapInstance", + "description": "Optional. Other data used to populate placeholders based on their key." + }, + "prompt": { + "$ref": "GoogleCloudAiplatformV1EvaluationInstanceInstanceData", + "description": "Optional. Data used to populate placeholder `prompt` in a metric prompt template." + }, + "reference": { + "$ref": "GoogleCloudAiplatformV1EvaluationInstanceInstanceData", + "description": "Optional. Data used to populate placeholder `reference` in a metric prompt template." + }, + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationInstanceInstanceData", + "description": "Required. Data used to populate placeholder `response` in a metric prompt template." + }, + "rubricGroups": { + "additionalProperties": { + "$ref": "GoogleCloudAiplatformV1RubricGroup" + }, + "description": "Optional. Named groups of rubrics associated with the prompt. This is used for rubric-based evaluations where rubrics can be referenced by a key. The key could represent versions, associated metrics, etc.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationInstanceInstanceData": { + "description": "Instance data used to populate placeholders in a metric prompt template.", + "id": "GoogleCloudAiplatformV1EvaluationInstanceInstanceData", + "properties": { + "contents": { + "$ref": "GoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents", + "description": "List of Gemini content data." + }, + "text": { + "description": "Text data.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents": { + "description": "List of standard Content messages from Gemini API.", + "id": "GoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents", + "properties": { + "contents": { + "description": "Optional. Repeated contents.", + "items": { + "$ref": "GoogleCloudAiplatformV1Content" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationInstanceMapInstance": { + "description": "Instance data specified as a map.", + "id": "GoogleCloudAiplatformV1EvaluationInstanceMapInstance", + "properties": { + "mapInstance": { + "additionalProperties": { + "$ref": "GoogleCloudAiplatformV1EvaluationInstanceInstanceData" + }, + "description": "Optional. Map of instance data.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationItem": { + "description": "EvaluationItem is a single evaluation request or result. The content of an EvaluationItem is immutable - it cannot be updated once created. EvaluationItems can be deleted when no longer needed.", + "id": "GoogleCloudAiplatformV1EvaluationItem", + "properties": { + "createTime": { + "description": "Output only. Timestamp when this item was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Required. The display name of the EvaluationItem.", + "type": "string" + }, + "error": { + "$ref": "GoogleRpcStatus", + "description": "Output only. Error for the evaluation item.", + "readOnly": true + }, + "evaluationItemType": { + "description": "Required. The type of the EvaluationItem.", + "enum": [ + "EVALUATION_ITEM_TYPE_UNSPECIFIED", + "REQUEST", + "RESULT" + ], + "enumDescriptions": [ + "The default value. This value is unused.", + "The EvaluationItem is a request to evaluate.", + "The EvaluationItem is the result of evaluation." + ], + "type": "string" + }, + "evaluationRequest": { + "$ref": "GoogleCloudAiplatformV1EvaluationRequest", + "description": "The request to evaluate." + }, + "evaluationResponse": { + "$ref": "GoogleCloudAiplatformV1EvaluationResult", + "description": "Output only. The response from evaluation.", + "readOnly": true + }, + "gcsUri": { + "description": "The GCS object where the request or response is stored.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels for the EvaluationItem.", + "type": "object" + }, + "metadata": { + "description": "Optional. Metadata for the EvaluationItem.", + "type": "any" + }, + "name": { + "description": "Identifier. The resource name of the EvaluationItem. Format: `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationPrompt": { + "description": "Prompt to be evaluated.", + "id": "GoogleCloudAiplatformV1EvaluationPrompt", + "properties": { + "promptTemplateData": { + "$ref": "GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData", + "description": "Prompt template data." + }, + "text": { + "description": "Text prompt.", + "type": "string" + }, + "value": { + "description": "Fields and values that can be used to populate the prompt template.", + "type": "any" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData": { + "description": "Message to hold a prompt template and the values to populate the template.", + "id": "GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData", + "properties": { + "values": { + "additionalProperties": { + "$ref": "GoogleCloudAiplatformV1Content" + }, + "description": "The values for fields in the prompt template.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationRequest": { + "description": "Single evaluation request.", + "id": "GoogleCloudAiplatformV1EvaluationRequest", + "properties": { + "candidateResponses": { + "description": "Optional. Responses from model under test and other baseline models for comparison.", + "items": { + "$ref": "GoogleCloudAiplatformV1CandidateResponse" + }, + "type": "array" + }, + "goldenResponse": { + "$ref": "GoogleCloudAiplatformV1CandidateResponse", + "description": "Optional. The Ideal response or ground truth." + }, + "prompt": { + "$ref": "GoogleCloudAiplatformV1EvaluationPrompt", + "description": "Required. The request/prompt to evaluate." + }, + "rubrics": { + "additionalProperties": { + "$ref": "GoogleCloudAiplatformV1RubricGroup" + }, + "description": "Optional. Named groups of rubrics associated with this prompt. The key is a user-defined name for the rubric group.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationResult": { + "description": "Evaluation result.", + "id": "GoogleCloudAiplatformV1EvaluationResult", + "properties": { + "candidateResults": { + "description": "Optional. The results for the metric.", + "items": { + "$ref": "GoogleCloudAiplatformV1CandidateResult" + }, + "type": "array" + }, + "evaluationRequest": { + "description": "Required. The request item that was evaluated. Format: projects/{project}/locations/{location}/evaluationItems/{evaluation_item}", + "type": "string" + }, + "evaluationRun": { + "description": "Required. The evaluation run that was used to generate the result. Format: projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}", + "type": "string" + }, + "metadata": { + "description": "Optional. Metadata about the evaluation result.", + "type": "any" + }, + "metric": { + "description": "Required. The metric that was evaluated.", + "type": "string" + }, + "request": { + "$ref": "GoogleCloudAiplatformV1EvaluationRequest", + "description": "Required. The request that was evaluated." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationResults": { + "description": "The results of the evaluation run.", + "id": "GoogleCloudAiplatformV1EvaluationResults", + "properties": { + "evaluationSet": { + "description": "The evaluation set where item level results are stored.", + "type": "string" + }, + "summaryMetrics": { + "$ref": "GoogleCloudAiplatformV1SummaryMetrics", + "description": "Optional. The summary metrics for the evaluation run." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationRubricConfig": { + "description": "Configuration for a rubric group to be generated/saved for evaluation.", + "id": "GoogleCloudAiplatformV1EvaluationRubricConfig", + "properties": { + "predefinedRubricGenerationSpec": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec", + "description": "Dynamically generate rubrics using a predefined spec." + }, + "rubricGenerationSpec": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec", + "description": "Dynamically generate rubrics using this specification." + }, + "rubricGroupKey": { + "description": "Required. The key used to save the generated rubrics. If a generation spec is provided, this key will be used for the name of the generated rubric group. Otherwise, this key will be used to look up the existing rubric group on the evaluation item. Note that if a rubric group key is specified on both a rubric config and an evaluation metric, the key from the metric will be used to select the rubrics for evaluation.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationRun": { + "description": "EvaluationRun is a resource that represents a single evaluation run, which includes a set of prompts, model responses, evaluation configuration and the resulting metrics.", + "id": "GoogleCloudAiplatformV1EvaluationRun", + "properties": { + "completionTime": { + "description": "Output only. Time when the evaluation run was completed.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. Time when the evaluation run was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "dataSource": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunDataSource", + "description": "Required. The data source for the evaluation run." + }, + "displayName": { + "description": "Required. The display name of the Evaluation Run.", + "type": "string" + }, + "error": { + "$ref": "GoogleRpcStatus", + "description": "Output only. Only populated when the evaluation run's state is FAILED or CANCELLED.", + "readOnly": true + }, + "evaluationConfig": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunEvaluationConfig", + "description": "Required. The configuration used for the evaluation." + }, + "evaluationResults": { + "$ref": "GoogleCloudAiplatformV1EvaluationResults", + "description": "Output only. The results of the evaluation run. Only populated when the evaluation run's state is SUCCEEDED.", + "readOnly": true + }, + "evaluationSetSnapshot": { + "description": "Output only. The specific evaluation set of the evaluation run. For runs with an evaluation set input, this will be that same set. For runs with BigQuery input, it's the sampled BigQuery dataset.", + "readOnly": true, + "type": "string" + }, + "inferenceConfigs": { + "additionalProperties": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunInferenceConfig" + }, + "description": "Optional. The candidate to inference config map for the evaluation run. The candidate can be up to 128 characters long and can consist of any UTF-8 characters.", + "type": "object" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels for the evaluation run.", + "type": "object" + }, + "metadata": { + "description": "Optional. Metadata about the evaluation run, can be used by the caller to store additional tracking information about the evaluation run.", + "type": "any" + }, + "name": { + "description": "Identifier. The resource name of the EvaluationRun. This is a unique identifier. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`", + "type": "string" + }, + "state": { + "description": "Output only. The state of the evaluation run.", + "enum": [ + "STATE_UNSPECIFIED", + "PENDING", + "RUNNING", + "SUCCEEDED", + "FAILED", + "CANCELLED", + "INFERENCE", + "GENERATING_RUBRICS" + ], + "enumDescriptions": [ + "Unspecified state.", + "The evaluation run is pending.", + "The evaluation run is running.", + "The evaluation run has succeeded.", + "The evaluation run has failed.", + "The evaluation run has been cancelled.", + "The evaluation run is performing inference.", + "The evaluation run is performing rubric generation." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationRunDataSource": { + "description": "The data source for the evaluation run.", + "id": "GoogleCloudAiplatformV1EvaluationRunDataSource", + "properties": { + "bigqueryRequestSet": { + "$ref": "GoogleCloudAiplatformV1BigQueryRequestSet", + "description": "Evaluation data in bigquery." + }, + "evaluationSet": { + "description": "The EvaluationSet resource name. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationRunEvaluationConfig": { + "description": "The Evalution configuration used for the evaluation run.", + "id": "GoogleCloudAiplatformV1EvaluationRunEvaluationConfig", + "properties": { + "autoraterConfig": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig", + "description": "Optional. The autorater config for the evaluation run." + }, + "metrics": { + "description": "Required. The metrics to be calculated in the evaluation run.", + "items": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunMetric" + }, + "type": "array" + }, + "outputConfig": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig", + "description": "Optional. The output config for the evaluation run." + }, + "promptTemplate": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate", + "description": "The prompt template used for inference. The values for variables in the prompt template are defined in EvaluationItem.EvaluationPrompt.PromptTemplateData.values." + }, + "rubricConfigs": { + "description": "Optional. The rubric configs for the evaluation run. They are used to generate rubrics which can be used by rubric-based metrics. Multiple rubric configs can be specified for rubric generation but only one rubric config can be used for a rubric-based metric. If more than one rubric config is provided, the evaluation metric must specify a rubric group key. Note that if a generation spec is specified on both a rubric config and an evaluation metric, the rubrics generated for the metric will be used for evaluation.", + "items": { + "$ref": "GoogleCloudAiplatformV1EvaluationRubricConfig" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig": { + "description": "The autorater config used for the evaluation run.", + "id": "GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig", + "properties": { + "autoraterModel": { + "description": "Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "type": "string" + }, + "generationConfig": { + "$ref": "GoogleCloudAiplatformV1GenerationConfig", + "description": "Optional. Configuration options for model generation and outputs." + }, + "sampleCount": { + "description": "Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig": { + "description": "The output config for the evaluation run.", + "id": "GoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig", + "properties": { + "bigqueryDestination": { + "$ref": "GoogleCloudAiplatformV1BigQueryDestination", + "description": "BigQuery destination for evaluation output." + }, + "gcsDestination": { + "$ref": "GoogleCloudAiplatformV1GcsDestination", + "description": "Cloud Storage destination for evaluation output." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate": { + "description": "Prompt template used for inference.", + "id": "GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate", + "properties": { + "gcsUri": { + "description": "Prompt template stored in Cloud Storage. Format: \"gs://my-bucket/file-name.txt\".", + "type": "string" + }, + "promptTemplate": { + "description": "Inline prompt template. Template variables should be in the format \"{var_name}\". Example: \"Translate the following from {source_lang} to {target_lang}: {text}\"", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationRunInferenceConfig": { + "description": "An inference config used for model inference during the evaluation run.", + "id": "GoogleCloudAiplatformV1EvaluationRunInferenceConfig", + "properties": { + "generationConfig": { + "$ref": "GoogleCloudAiplatformV1GenerationConfig", + "description": "Optional. Generation config." + }, + "model": { + "description": "Required. The fully qualified name of the publisher model or endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationRunMetric": { + "description": "The metric used for evaluation runs.", + "id": "GoogleCloudAiplatformV1EvaluationRunMetric", + "properties": { + "llmBasedMetricSpec": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec", + "description": "Spec for an LLM based metric." + }, + "metric": { + "description": "Required. The name of the metric.", + "type": "string" + }, + "predefinedMetricSpec": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec", + "description": "Spec for a pre-defined metric." + }, + "rubricBasedMetricSpec": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec", + "description": "Spec for rubric based metric." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec": { + "description": "Specification for an LLM based metric.", + "id": "GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec", + "properties": { + "additionalConfig": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Optional additional configuration for the metric.", + "type": "object" + }, + "judgeAutoraterConfig": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig", + "description": "Optional. Optional configuration for the judge LLM (Autorater)." + }, + "metricPromptTemplate": { + "description": "Required. Template for the prompt sent to the judge model.", + "type": "string" + }, + "predefinedRubricGenerationSpec": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec", + "description": "Dynamically generate rubrics using a predefined spec." + }, + "rubricGenerationSpec": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec", + "description": "Dynamically generate rubrics using this specification." + }, + "rubricGroupKey": { + "description": "Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance.", + "type": "string" + }, + "systemInstruction": { + "description": "Optional. System instructions for the judge model.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec": { + "description": "Specification for a pre-defined metric.", + "id": "GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec", + "properties": { + "metricSpecName": { + "description": "Required. The name of a pre-defined metric, such as \"instruction_following_v1\" or \"text_quality_v1\".", + "type": "string" + }, + "parameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. The parameters needed to run the pre-defined metric.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec": { + "description": "Specification for a metric that is based on rubrics.", + "id": "GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec", + "properties": { + "inlineRubrics": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics", + "description": "Use rubrics provided directly in the spec." + }, + "judgeAutoraterConfig": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig", + "description": "Optional. Optional configuration for the judge LLM (Autorater). The definition of AutoraterConfig needs to be provided." + }, + "metricPromptTemplate": { + "description": "Optional. Template for the prompt used by the judge model to evaluate against rubrics.", + "type": "string" + }, + "rubricGenerationSpec": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec", + "description": "Dynamically generate rubrics for evaluation using this specification." + }, + "rubricGroupKey": { + "description": "Use a pre-defined group of rubrics associated with the input content. This refers to a key in the `rubric_groups` map of `RubricEnhancedContents`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics": { + "description": "Defines a list of rubrics, used when providing rubrics inline.", + "id": "GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics", + "properties": { + "rubrics": { + "description": "The list of rubrics.", + "items": { + "$ref": "GoogleCloudAiplatformV1Rubric" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec": { + "description": "Specification for how rubrics should be generated.", + "id": "GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec", + "properties": { + "modelConfig": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig", + "description": "Optional. Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation." + }, + "promptTemplate": { + "description": "Optional. Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.", + "type": "string" + }, + "rubricContentType": { + "description": "Optional. The type of rubric content to be generated.", + "enum": [ + "RUBRIC_CONTENT_TYPE_UNSPECIFIED", + "PROPERTY", + "NL_QUESTION_ANSWER", + "PYTHON_CODE_ASSERTION" + ], + "enumDescriptions": [ + "The content type to generate is not specified.", + "Generate rubrics based on properties.", + "Generate rubrics in an NL question answer format.", + "Generate rubrics in a unit test format." + ], + "type": "string" + }, + "rubricTypeOntology": { + "description": "Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationSet": { + "description": "EvaluationSet is a collection of related EvaluationItems that are evaluated together.", + "id": "GoogleCloudAiplatformV1EvaluationSet", + "properties": { + "createTime": { + "description": "Output only. Timestamp when this item was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Required. The display name of the EvaluationSet.", + "type": "string" + }, + "evaluationItems": { + "description": "Required. The EvaluationItems that are part of this dataset.", + "items": { + "type": "string" + }, + "type": "array" + }, + "metadata": { + "description": "Optional. Metadata for the EvaluationSet.", + "type": "any" + }, + "name": { + "description": "Identifier. The resource name of the EvaluationSet. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`", + "type": "string" + }, + "updateTime": { + "description": "Output only. Timestamp when this item was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1Event": { "description": "An edge describing the relationship between an Artifact and an Execution in a lineage graph.", "id": "GoogleCloudAiplatformV1Event", @@ -28635,6 +30102,10 @@ "description": "Optional. The labels with user-defined metadata for the request. It is used for billing and reporting only. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.", "type": "object" }, + "modelArmorConfig": { + "$ref": "GoogleCloudAiplatformV1ModelArmorConfig", + "description": "Optional. Settings for prompt and response sanitization using the Model Armor service. If supplied, safety_settings must not be supplied." + }, "safetySettings": { "description": "Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.", "items": { @@ -28701,37 +30172,39 @@ "type": "object" }, "GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback": { - "description": "Content filter results for a prompt sent in the request.", + "description": "Content filter results for a prompt sent in the request. Note: This is sent only in the first stream chunk and only if no candidates were generated due to content violations.", "id": "GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback", "properties": { "blockReason": { - "description": "Output only. Blocked reason.", + "description": "Output only. The reason why the prompt was blocked.", "enum": [ "BLOCKED_REASON_UNSPECIFIED", "SAFETY", "OTHER", "BLOCKLIST", "PROHIBITED_CONTENT", + "MODEL_ARMOR", "IMAGE_SAFETY" ], "enumDescriptions": [ - "Unspecified blocked reason.", - "Candidates blocked due to safety.", - "Candidates blocked due to other reason.", - "Candidates blocked due to the terms which are included from the terminology blocklist.", - "Candidates blocked due to prohibited content.", - "Candidates blocked due to unsafe image generation content." + "The blocked reason is unspecified.", + "The prompt was blocked for safety reasons.", + "The prompt was blocked for other reasons. For example, it may be due to the prompt's language, or because it contains other harmful content.", + "The prompt was blocked because it contains a term from the terminology blocklist.", + "The prompt was blocked because it contains prohibited content.", + "The prompt was blocked by Model Armor.", + "The prompt was blocked because it contains content that is unsafe for image generation." ], "readOnly": true, "type": "string" }, "blockReasonMessage": { - "description": "Output only. A readable block reason message.", + "description": "Output only. A readable message that explains the reason why the prompt was blocked.", "readOnly": true, "type": "string" }, "safetyRatings": { - "description": "Output only. Safety ratings.", + "description": "Output only. A list of safety ratings for the prompt. There is one rating per category.", "items": { "$ref": "GoogleCloudAiplatformV1SafetyRating" }, @@ -28742,11 +30215,11 @@ "type": "object" }, "GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata": { - "description": "Usage metadata about response(s).", + "description": "Usage metadata about the content generation request and response. This message provides a detailed breakdown of token usage and other relevant metrics.", "id": "GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata", "properties": { "cacheTokensDetails": { - "description": "Output only. List of modalities of the cached content in the request input.", + "description": "Output only. A detailed breakdown of the token count for each modality in the cached content.", "items": { "$ref": "GoogleCloudAiplatformV1ModalityTokenCount" }, @@ -28754,18 +30227,18 @@ "type": "array" }, "cachedContentTokenCount": { - "description": "Output only. Number of tokens in the cached part in the input (the cached content).", + "description": "Output only. The number of tokens in the cached content that was used for this request.", "format": "int32", "readOnly": true, "type": "integer" }, "candidatesTokenCount": { - "description": "Number of tokens in the response(s).", + "description": "The total number of tokens in the generated candidates.", "format": "int32", "type": "integer" }, "candidatesTokensDetails": { - "description": "Output only. List of modalities that were returned in the response.", + "description": "Output only. A detailed breakdown of the token count for each modality in the generated candidates.", "items": { "$ref": "GoogleCloudAiplatformV1ModalityTokenCount" }, @@ -28773,12 +30246,12 @@ "type": "array" }, "promptTokenCount": { - "description": "Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.", + "description": "The total number of tokens in the prompt. This includes any text, images, or other media provided in the request. When `cached_content` is set, this also includes the number of tokens in the cached content.", "format": "int32", "type": "integer" }, "promptTokensDetails": { - "description": "Output only. List of modalities that were processed in the request input.", + "description": "Output only. A detailed breakdown of the token count for each modality in the prompt.", "items": { "$ref": "GoogleCloudAiplatformV1ModalityTokenCount" }, @@ -28786,19 +30259,19 @@ "type": "array" }, "thoughtsTokenCount": { - "description": "Output only. Number of tokens present in thoughts output.", + "description": "Output only. The number of tokens that were part of the model's generated \"thoughts\" output, if applicable.", "format": "int32", "readOnly": true, "type": "integer" }, "toolUsePromptTokenCount": { - "description": "Output only. Number of tokens present in tool-use prompt(s).", + "description": "Output only. The number of tokens in the results from tool executions, which are provided back to the model as input, if applicable.", "format": "int32", "readOnly": true, "type": "integer" }, "toolUsePromptTokensDetails": { - "description": "Output only. List of modalities that were processed for tool-use request inputs.", + "description": "Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input.", "items": { "$ref": "GoogleCloudAiplatformV1ModalityTokenCount" }, @@ -28806,12 +30279,12 @@ "type": "array" }, "totalTokenCount": { - "description": "Total token count for prompt, response candidates, and tool-use prompts (if present).", + "description": "The total number of tokens for the entire request. This is the sum of `prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`, and `thoughts_token_count`.", "format": "int32", "type": "integer" }, "trafficType": { - "description": "Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go or Provisioned Throughput quota.", + "description": "Output only. The traffic type for this request.", "enum": [ "TRAFFIC_TYPE_UNSPECIFIED", "ON_DEMAND", @@ -28819,7 +30292,7 @@ ], "enumDescriptions": [ "Unspecified request traffic type.", - "Type for Pay-As-You-Go traffic.", + "The request was processed using Pay-As-You-Go quota.", "Type for Provisioned Throughput traffic." ], "readOnly": true, @@ -28828,6 +30301,87 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1GenerateInstanceRubricsRequest": { + "description": "Request message for EvaluationService.GenerateInstanceRubrics.", + "id": "GoogleCloudAiplatformV1GenerateInstanceRubricsRequest", + "properties": { + "contents": { + "description": "Required. The prompt to generate rubrics from. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.", + "items": { + "$ref": "GoogleCloudAiplatformV1Content" + }, + "type": "array" + }, + "predefinedRubricGenerationSpec": { + "$ref": "GoogleCloudAiplatformV1PredefinedMetricSpec", + "description": "Optional. Specification for using the rubric generation configs of a pre-defined metric, e.g. \"generic_quality_v1\" and \"instruction_following_v1\". Some of the configs may be only used in rubric generation and not supporting evaluation, e.g. \"fully_customized_generic_quality_v1\". If this field is set, the `rubric_generation_spec` field will be ignored." + }, + "rubricGenerationSpec": { + "$ref": "GoogleCloudAiplatformV1RubricGenerationSpec", + "description": "Optional. Specification for how the rubrics should be generated." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1GenerateInstanceRubricsResponse": { + "description": "Response message for EvaluationService.GenerateInstanceRubrics.", + "id": "GoogleCloudAiplatformV1GenerateInstanceRubricsResponse", + "properties": { + "generatedRubrics": { + "description": "Output only. A list of generated rubrics.", + "items": { + "$ref": "GoogleCloudAiplatformV1Rubric" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1GenerateSyntheticDataRequest": { + "description": "Request message for DataFoundryService.GenerateSyntheticData.", + "id": "GoogleCloudAiplatformV1GenerateSyntheticDataRequest", + "properties": { + "count": { + "description": "Required. The number of synthetic examples to generate. For this stateless API, the count is limited to a small number.", + "format": "int32", + "type": "integer" + }, + "examples": { + "description": "Optional. A list of few-shot examples to guide the model's output style and format.", + "items": { + "$ref": "GoogleCloudAiplatformV1SyntheticExample" + }, + "type": "array" + }, + "outputFieldSpecs": { + "description": "Required. The schema of the desired output, defined by a list of fields.", + "items": { + "$ref": "GoogleCloudAiplatformV1OutputFieldSpec" + }, + "type": "array" + }, + "taskDescription": { + "$ref": "GoogleCloudAiplatformV1TaskDescriptionStrategy", + "description": "Generate data from a high-level task description." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1GenerateSyntheticDataResponse": { + "description": "The response containing the generated data.", + "id": "GoogleCloudAiplatformV1GenerateSyntheticDataResponse", + "properties": { + "syntheticExamples": { + "description": "A list of generated synthetic examples.", + "items": { + "$ref": "GoogleCloudAiplatformV1SyntheticExample" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1GenerateVideoResponse": { "description": "Generate video response.", "id": "GoogleCloudAiplatformV1GenerateVideoResponse", @@ -29157,14 +30711,9 @@ "description": "Tool to retrieve public maps data for grounding, powered by Google.", "id": "GoogleCloudAiplatformV1GoogleMaps", "properties": { - "apiAuth": { - "$ref": "GoogleCloudAiplatformV1ApiAuth", - "deprecated": true, - "description": "The authentication config to access the API. Deprecated. Please use auth_config instead." - }, - "authConfig": { - "$ref": "GoogleCloudAiplatformV1AuthConfig", - "description": "The authentication config to access the API. Only API key is supported." + "enableWidget": { + "description": "Optional. If true, include the widget context token in the response.", + "type": "boolean" } }, "type": "object" @@ -29278,15 +30827,15 @@ "type": "string" }, "text": { - "description": "Text of the chunk.", + "description": "Text of the place answer.", "type": "string" }, "title": { - "description": "Title of the chunk.", + "description": "Title of the place.", "type": "string" }, "uri": { - "description": "URI reference of the chunk.", + "description": "URI reference of the place.", "type": "string" } }, @@ -29296,10 +30845,6 @@ "description": "Sources used to generate the place answer.", "id": "GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources", "properties": { - "flagContentUri": { - "description": "A link where users can flag a problem with the generated answer.", - "type": "string" - }, "reviewSnippets": { "description": "Snippets of reviews that are used to generate the answer.", "items": { @@ -29310,47 +30855,20 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution": { - "description": "Author attribution for a photo or review.", - "id": "GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution", - "properties": { - "displayName": { - "description": "Name of the author of the Photo or Review.", - "type": "string" - }, - "photoUri": { - "description": "Profile photo URI of the author of the Photo or Review.", - "type": "string" - }, - "uri": { - "description": "URI of the author of the Photo or Review.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet": { "description": "Encapsulates a review snippet.", "id": "GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet", "properties": { - "authorAttribution": { - "$ref": "GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution", - "description": "This review's author." - }, - "flagContentUri": { - "description": "A link where users can flag a problem with the review.", - "type": "string" - }, "googleMapsUri": { "description": "A link to show the review on Google Maps.", "type": "string" }, - "relativePublishTimeDescription": { - "description": "A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country.", + "reviewId": { + "description": "Id of the review referencing the place.", "type": "string" }, - "review": { - "description": "A reference representing this place review which may be used to look up this place review again.", + "title": { + "description": "Title of the review.", "type": "string" } }, @@ -29360,6 +30878,11 @@ "description": "Chunk from context retrieved by the retrieval tools.", "id": "GoogleCloudAiplatformV1GroundingChunkRetrievedContext", "properties": { + "documentName": { + "description": "Output only. The full document name for the referenced Vertex AI Search document.", + "readOnly": true, + "type": "string" + }, "ragChunk": { "$ref": "GoogleCloudAiplatformV1RagChunk", "description": "Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool." @@ -29430,6 +30953,14 @@ "$ref": "GoogleCloudAiplatformV1SearchEntryPoint", "description": "Optional. Google search entry for the following-up web searches." }, + "sourceFlaggingUris": { + "description": "Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding.", + "items": { + "$ref": "GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri" + }, + "readOnly": true, + "type": "array" + }, "webSearchQueries": { "description": "Optional. Web search queries for the following-up web search.", "items": { @@ -29440,6 +30971,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri": { + "description": "Source content flagging uri for a place or review. This is currently populated only for Google Maps grounding.", + "id": "GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri", + "properties": { + "flagContentUri": { + "description": "A link where users can flag a problem with the source (place or review).", + "type": "string" + }, + "sourceId": { + "description": "Id of the place or review.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1GroundingSupport": { "description": "Grounding support.", "id": "GoogleCloudAiplatformV1GroundingSupport", @@ -30367,6 +31913,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1InvokeRequest": { + "description": "Request message for PredictionService.Invoke.", + "id": "GoogleCloudAiplatformV1InvokeRequest", + "properties": { + "deployedModelId": { + "description": "ID of the DeployedModel that serves the invoke request.", + "type": "string" + }, + "httpBody": { + "$ref": "GoogleApiHttpBody", + "description": "The invoke method input. Supports HTTP headers and arbitrary data payload." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1JiraSource": { "description": "The Jira source for the ImportRagFilesRequest.", "id": "GoogleCloudAiplatformV1JiraSource", @@ -30414,6 +31975,45 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1LLMBasedMetricSpec": { + "description": "Specification for an LLM based metric.", + "id": "GoogleCloudAiplatformV1LLMBasedMetricSpec", + "properties": { + "additionalConfig": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Optional additional configuration for the metric.", + "type": "object" + }, + "judgeAutoraterConfig": { + "$ref": "GoogleCloudAiplatformV1AutoraterConfig", + "description": "Optional. Optional configuration for the judge LLM (Autorater)." + }, + "metricPromptTemplate": { + "description": "Required. Template for the prompt sent to the judge model.", + "type": "string" + }, + "predefinedRubricGenerationSpec": { + "$ref": "GoogleCloudAiplatformV1PredefinedMetricSpec", + "description": "Dynamically generate rubrics using a predefined spec." + }, + "rubricGenerationSpec": { + "$ref": "GoogleCloudAiplatformV1RubricGenerationSpec", + "description": "Dynamically generate rubrics using this specification." + }, + "rubricGroupKey": { + "description": "Use a pre-defined group of rubrics associated with the input. Refers to a key in the rubric_groups map of EvaluationInstance.", + "type": "string" + }, + "systemInstruction": { + "description": "Optional. System instructions for the judge model.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1LargeModelReference": { "description": "Contains information about the Large Model.", "id": "GoogleCloudAiplatformV1LargeModelReference", @@ -30687,6 +32287,60 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1ListEvaluationItemsResponse": { + "description": "Response message for EvaluationManagementService.ListEvaluationItems.", + "id": "GoogleCloudAiplatformV1ListEvaluationItemsResponse", + "properties": { + "evaluationItems": { + "description": "List of EvaluationItems in the requested page.", + "items": { + "$ref": "GoogleCloudAiplatformV1EvaluationItem" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve the next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1ListEvaluationRunsResponse": { + "description": "Response message for EvaluationManagementService.ListEvaluationRuns.", + "id": "GoogleCloudAiplatformV1ListEvaluationRunsResponse", + "properties": { + "evaluationRuns": { + "description": "List of EvaluationRuns in the requested page.", + "items": { + "$ref": "GoogleCloudAiplatformV1EvaluationRun" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve the next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1ListEvaluationSetsResponse": { + "description": "Response message for EvaluationManagementService.ListEvaluationSets.", + "id": "GoogleCloudAiplatformV1ListEvaluationSetsResponse", + "properties": { + "evaluationSets": { + "description": "List of EvaluationSets in the requested page.", + "items": { + "$ref": "GoogleCloudAiplatformV1EvaluationSet" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve the next page of results.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1ListExecutionsResponse": { "description": "Response message for MetadataService.ListExecutions.", "id": "GoogleCloudAiplatformV1ListExecutionsResponse", @@ -31789,6 +33443,10 @@ "$ref": "GoogleCloudAiplatformV1ExactMatchSpec", "description": "Spec for exact match metric." }, + "llmBasedMetricSpec": { + "$ref": "GoogleCloudAiplatformV1LLMBasedMetricSpec", + "description": "Spec for an LLM based metric." + }, "pairwiseMetricSpec": { "$ref": "GoogleCloudAiplatformV1PairwiseMetricSpec", "description": "Spec for pairwise metric." @@ -31797,6 +33455,10 @@ "$ref": "GoogleCloudAiplatformV1PointwiseMetricSpec", "description": "Spec for pointwise metric." }, + "predefinedMetricSpec": { + "$ref": "GoogleCloudAiplatformV1PredefinedMetricSpec", + "description": "The spec for a pre-defined metric." + }, "rougeSpec": { "$ref": "GoogleCloudAiplatformV1RougeSpec", "description": "Spec for rouge metric." @@ -31804,6 +33466,37 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1MetricResult": { + "description": "Result for a single metric on a single instance.", + "id": "GoogleCloudAiplatformV1MetricResult", + "properties": { + "error": { + "$ref": "GoogleRpcStatus", + "description": "Output only. The error status for the metric result.", + "readOnly": true + }, + "explanation": { + "description": "Output only. The explanation for the metric result.", + "readOnly": true, + "type": "string" + }, + "rubricVerdicts": { + "description": "Output only. For rubric-based metrics, the verdicts for each rubric.", + "items": { + "$ref": "GoogleCloudAiplatformV1RubricVerdict" + }, + "readOnly": true, + "type": "array" + }, + "score": { + "description": "Output only. The score for the metric. Please refer to each metric's documentation for the meaning of the score.", + "format": "float", + "readOnly": true, + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1MetricxInput": { "description": "Input for MetricX metric.", "id": "GoogleCloudAiplatformV1MetricxInput", @@ -32363,6 +34056,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1ModelArmorConfig": { + "description": "Configuration for Model Armor integrations of prompt and responses.", + "id": "GoogleCloudAiplatformV1ModelArmorConfig", + "properties": { + "promptTemplateName": { + "description": "Optional. The name of the Model Armor template to use for prompt sanitization.", + "type": "string" + }, + "responseTemplateName": { + "description": "Optional. The name of the Model Armor template to use for response sanitization.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1ModelBaseModelSource": { "description": "User input field to specify the base model source. Currently it only supports specifing the Model Garden models and Genie models.", "id": "GoogleCloudAiplatformV1ModelBaseModelSource", @@ -34720,6 +36428,39 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1OutputFieldSpec": { + "description": "Defines a specification for a single output field.", + "id": "GoogleCloudAiplatformV1OutputFieldSpec", + "properties": { + "fieldName": { + "description": "Required. The name of the output field.", + "type": "string" + }, + "fieldType": { + "description": "Optional. The data type of the field. Defaults to CONTENT if not set.", + "enum": [ + "FIELD_TYPE_UNSPECIFIED", + "CONTENT", + "TEXT", + "IMAGE", + "AUDIO" + ], + "enumDescriptions": [ + "Field type is unspecified.", + "Arbitrary content field type.", + "Text field type.", + "Image field type.", + "Audio field type." + ], + "type": "string" + }, + "guidance": { + "description": "Optional. Optional, but recommended. Additional guidance specific to this field to provide targeted instructions for the LLM to generate the content of a single output field. While the LLM can sometimes infer content from the field name, providing explicit guidance is preferred.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1PSCAutomationConfig": { "description": "PSC config that is used to automatically create PSC endpoints in the user projects.", "id": "GoogleCloudAiplatformV1PSCAutomationConfig", @@ -35835,6 +37576,25 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1PredefinedMetricSpec": { + "description": "The spec for a pre-defined metric.", + "id": "GoogleCloudAiplatformV1PredefinedMetricSpec", + "properties": { + "metricSpecName": { + "description": "Required. The name of a pre-defined metric, such as \"instruction_following_v1\" or \"text_quality_v1\".", + "type": "string" + }, + "metricSpecParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. The parameters needed to run the pre-defined metric.", + "type": "object" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1PredefinedSplit": { "description": "Assigns input data to training, validation, and test sets based on the value of a provided key. Supported only for tabular Datasets.", "id": "GoogleCloudAiplatformV1PredefinedSplit", @@ -38009,6 +39769,13 @@ "description": "Optional. Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens.", "type": "string" }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels for the ReasoningEngine.", + "type": "object" + }, "name": { "description": "Identifier. The resource name of the ReasoningEngine. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`", "type": "string" @@ -38064,6 +39831,11 @@ "description": "The specification of a Reasoning Engine deployment.", "id": "GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec", "properties": { + "containerConcurrency": { + "description": "Optional. Concurrency for each container and agent server. Recommended value: 2 * cpu + 1. Defaults to 9.", + "format": "int32", + "type": "integer" + }, "env": { "description": "Optional. Environment variables to be set with the Reasoning Engine deployment. The environment variables can be updated through the UpdateReasoningEngine API.", "items": { @@ -38071,6 +39843,27 @@ }, "type": "array" }, + "maxInstances": { + "description": "Optional. The maximum number of application instances that can be launched to handle increased traffic. Defaults to 100. Range: [1, 1000]. If VPC-SC or PSC-I is enabled, the acceptable range is [1, 100].", + "format": "int32", + "type": "integer" + }, + "minInstances": { + "description": "Optional. The minimum number of application instances that will be kept running at all times. Defaults to 1. Range: [0, 10].", + "format": "int32", + "type": "integer" + }, + "pscInterfaceConfig": { + "$ref": "GoogleCloudAiplatformV1PscInterfaceConfig", + "description": "Optional. Configuration for PSC-I." + }, + "resourceLimits": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Resource limits for each container. Only 'cpu' and 'memory' keys are supported. Defaults to {\"cpu\": \"4\", \"memory\": \"4Gi\"}. * The only supported values for CPU are '1', '2', '4', '6' and '8'. For more information, go to https://cloud.google.com/run/docs/configuring/cpu. * The only supported values for memory are '1Gi', '2Gi', ... '32 Gi'. * For required cpu on different memory values, go to https://cloud.google.com/run/docs/configuring/memory-limits", + "type": "object" + }, "secretEnv": { "description": "Optional. Environment variables where the value is a secret in Cloud Secret Manager. To use this feature, add 'Secret Manager Secret Accessor' role (roles/secretmanager.secretAccessor) to AI Platform Reasoning Engine Service Agent.", "items": { @@ -38539,6 +40332,41 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1Rubric": { + "description": "Message representing a single testable criterion for evaluation. One input prompt could have multiple rubrics.", + "id": "GoogleCloudAiplatformV1Rubric", + "properties": { + "content": { + "$ref": "GoogleCloudAiplatformV1RubricContent", + "description": "Required. The actual testable criteria for the rubric." + }, + "importance": { + "description": "Optional. The relative importance of this rubric.", + "enum": [ + "IMPORTANCE_UNSPECIFIED", + "HIGH", + "MEDIUM", + "LOW" + ], + "enumDescriptions": [ + "Importance is not specified.", + "High importance.", + "Medium importance.", + "Low importance." + ], + "type": "string" + }, + "rubricId": { + "description": "Unique identifier for the rubric. This ID is used to refer to this rubric, e.g., in RubricVerdict.", + "type": "string" + }, + "type": { + "description": "Optional. A type designator for the rubric, which can inform how it's evaluated or interpreted by systems or users. It's recommended to use consistent, well-defined, upper snake_case strings. Examples: \"SUMMARIZATION_QUALITY\", \"SAFETY_HARMFUL_CONTENT\", \"INSTRUCTION_ADHERENCE\".", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput": { "description": "Instance and metric spec for RubricBasedInstructionFollowing metric.", "id": "GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput", @@ -38592,6 +40420,28 @@ "properties": {}, "type": "object" }, + "GoogleCloudAiplatformV1RubricContent": { + "description": "Content of the rubric, defining the testable criteria.", + "id": "GoogleCloudAiplatformV1RubricContent", + "properties": { + "property": { + "$ref": "GoogleCloudAiplatformV1RubricContentProperty", + "description": "Evaluation criteria based on a specific property." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1RubricContentProperty": { + "description": "Defines criteria based on a specific property.", + "id": "GoogleCloudAiplatformV1RubricContentProperty", + "properties": { + "description": { + "description": "Description of the property being evaluated. Example: \"The model's response is grammatically correct.\"", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1RubricCritiqueResult": { "description": "Rubric critique result.", "id": "GoogleCloudAiplatformV1RubricCritiqueResult", @@ -38609,6 +40459,85 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1RubricGenerationSpec": { + "description": "Specification for how rubrics should be generated.", + "id": "GoogleCloudAiplatformV1RubricGenerationSpec", + "properties": { + "modelConfig": { + "$ref": "GoogleCloudAiplatformV1AutoraterConfig", + "description": "Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation." + }, + "promptTemplate": { + "description": "Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.", + "type": "string" + }, + "rubricContentType": { + "description": "The type of rubric content to be generated.", + "enum": [ + "RUBRIC_CONTENT_TYPE_UNSPECIFIED", + "PROPERTY", + "NL_QUESTION_ANSWER", + "PYTHON_CODE_ASSERTION" + ], + "enumDescriptions": [ + "The content type to generate is not specified.", + "Generate rubrics based on properties.", + "Generate rubrics in an NL question answer format.", + "Generate rubrics in a unit test format." + ], + "type": "string" + }, + "rubricTypeOntology": { + "description": "Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1RubricGroup": { + "description": "A group of rubrics, used for grouping rubrics based on a metric or a version.", + "id": "GoogleCloudAiplatformV1RubricGroup", + "properties": { + "displayName": { + "description": "Human-readable name for the group. This should be unique within a given context if used for display or selection. Example: \"Instruction Following V1\", \"Content Quality - Summarization Task\".", + "type": "string" + }, + "groupId": { + "description": "Unique identifier for the group.", + "type": "string" + }, + "rubrics": { + "description": "Rubrics that are part of this group.", + "items": { + "$ref": "GoogleCloudAiplatformV1Rubric" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1RubricVerdict": { + "description": "Represents the verdict of an evaluation against a single rubric.", + "id": "GoogleCloudAiplatformV1RubricVerdict", + "properties": { + "evaluatedRubric": { + "$ref": "GoogleCloudAiplatformV1Rubric", + "description": "Required. The full rubric definition that was evaluated. Storing this ensures the verdict is self-contained and understandable, especially if the original rubric definition changes or was dynamically generated." + }, + "reasoning": { + "description": "Optional. Human-readable reasoning or explanation for the verdict. This can include specific examples or details from the evaluated content that justify the given verdict.", + "type": "string" + }, + "verdict": { + "description": "Required. Outcome of the evaluation against the rubric, represented as a boolean. `true` indicates a \"Pass\", `false` indicates a \"Fail\".", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1SafetyInput": { "description": "Input for safety metric.", "id": "GoogleCloudAiplatformV1SafetyInput", @@ -44948,6 +46877,30 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1SummaryMetrics": { + "description": "The summary metrics for the evaluation run.", + "id": "GoogleCloudAiplatformV1SummaryMetrics", + "properties": { + "failedItems": { + "description": "Optional. The number of items that failed to be evaluated.", + "format": "int32", + "type": "integer" + }, + "metrics": { + "additionalProperties": { + "type": "any" + }, + "description": "Optional. Map of metric name to metric value.", + "type": "object" + }, + "totalItems": { + "description": "Optional. The total number of items that were evaluated.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1SupervisedHyperParameters": { "description": "Hyperparameters for SFT.", "id": "GoogleCloudAiplatformV1SupervisedHyperParameters", @@ -45199,6 +47152,35 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1SyntheticExample": { + "description": "Represents a single synthetic example, composed of multiple fields. Used for providing few-shot examples in the request and for returning generated examples in the response.", + "id": "GoogleCloudAiplatformV1SyntheticExample", + "properties": { + "fields": { + "description": "Required. A list of fields that constitute an example.", + "items": { + "$ref": "GoogleCloudAiplatformV1SyntheticField" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1SyntheticField": { + "description": "Represents a single named field within a SyntheticExample.", + "id": "GoogleCloudAiplatformV1SyntheticField", + "properties": { + "content": { + "$ref": "GoogleCloudAiplatformV1Content", + "description": "Required. The content of the field." + }, + "fieldName": { + "description": "Optional. The name of the field.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1TFRecordDestination": { "description": "The storage details for TFRecord output content.", "id": "GoogleCloudAiplatformV1TFRecordDestination", @@ -45210,6 +47192,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1TaskDescriptionStrategy": { + "description": "Defines a generation strategy based on a high-level task description.", + "id": "GoogleCloudAiplatformV1TaskDescriptionStrategy", + "properties": { + "taskDescription": { + "description": "Required. A high-level description of the synthetic data to be generated.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1Tensor": { "description": "A tensor value type.", "id": "GoogleCloudAiplatformV1Tensor", @@ -45806,7 +47799,8 @@ }, "googleSearchRetrieval": { "$ref": "GoogleCloudAiplatformV1GoogleSearchRetrieval", - "description": "Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search." + "deprecated": true, + "description": "Optional. Specialized retrieval tool that is powered by Google Search." }, "retrieval": { "$ref": "GoogleCloudAiplatformV1Retrieval", diff --git a/discovery/googleapis/alloydb__v1.json b/discovery/googleapis/alloydb__v1.json index 9d9142ad1..64f5f8662 100644 --- a/discovery/googleapis/alloydb__v1.json +++ b/discovery/googleapis/alloydb__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250723", + "revision": "20250904", "rootUrl": "https://alloydb.googleapis.com/", "servicePath": "", "title": "AlloyDB API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1720,13 +1720,15 @@ "POSTGRES_13", "POSTGRES_14", "POSTGRES_15", - "POSTGRES_16" + "POSTGRES_16", + "POSTGRES_17" ], "enumDeprecated": [ false, true, false, false, + false, false ], "enumDescriptions": [ @@ -1734,7 +1736,8 @@ "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", "The database version is Postgres 15.", - "The database version is Postgres 16." + "The database version is Postgres 16.", + "The database version is Postgres 17." ], "readOnly": true, "type": "string" @@ -2011,13 +2014,15 @@ "POSTGRES_13", "POSTGRES_14", "POSTGRES_15", - "POSTGRES_16" + "POSTGRES_16", + "POSTGRES_17" ], "enumDeprecated": [ false, true, false, false, + false, false ], "enumDescriptions": [ @@ -2025,7 +2030,8 @@ "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", "The database version is Postgres 15.", - "The database version is Postgres 16." + "The database version is Postgres 16.", + "The database version is Postgres 17." ], "type": "string" }, @@ -2212,13 +2218,15 @@ "POSTGRES_13", "POSTGRES_14", "POSTGRES_15", - "POSTGRES_16" + "POSTGRES_16", + "POSTGRES_17" ], "enumDeprecated": [ false, true, false, false, + false, false ], "enumDescriptions": [ @@ -2226,7 +2234,8 @@ "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", "The database version is Postgres 15.", - "The database version is Postgres 16." + "The database version is Postgres 16.", + "The database version is Postgres 17." ], "type": "string" }, @@ -4104,6 +4113,38 @@ }, "type": "object" }, + "StorageDatabasecenterPartnerapiV1mainBackupDRMetadata": { + "description": "BackupDRMetadata contains information about the backup and disaster recovery metadata of a database resource.", + "id": "StorageDatabasecenterPartnerapiV1mainBackupDRMetadata", + "properties": { + "backupConfiguration": { + "$ref": "StorageDatabasecenterPartnerapiV1mainBackupConfiguration", + "description": "Backup configuration for this instance." + }, + "backupRun": { + "$ref": "StorageDatabasecenterPartnerapiV1mainBackupRun", + "description": "Latest backup run information for this instance." + }, + "backupdrConfiguration": { + "$ref": "StorageDatabasecenterPartnerapiV1mainBackupDRConfiguration", + "description": "BackupDR configuration for this instance." + }, + "fullResourceName": { + "description": "Required. Full resource name of this instance.", + "type": "string" + }, + "lastRefreshTime": { + "description": "Required. Last time backup configuration was refreshed.", + "format": "google-datetime", + "type": "string" + }, + "resourceId": { + "$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceId", + "description": "Required. Database resource id." + } + }, + "type": "object" + }, "StorageDatabasecenterPartnerapiV1mainBackupRun": { "description": "A backup run.", "id": "StorageDatabasecenterPartnerapiV1mainBackupRun", @@ -4213,13 +4254,21 @@ "type": "object" }, "StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed": { - "description": "DatabaseResourceFeed is the top level proto to be used to ingest different database resource level events into Condor platform. Next ID: 9", + "description": "DatabaseResourceFeed is the top level proto to be used to ingest different database resource level events into Condor platform. Next ID: 12", "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed", "properties": { + "backupdrMetadata": { + "$ref": "StorageDatabasecenterPartnerapiV1mainBackupDRMetadata", + "description": "BackupDR metadata is used to ingest metadata from BackupDR." + }, "configBasedSignalData": { "$ref": "StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData", "description": "Config based signal data is used to ingest signals that are generated based on the configuration of the database resource." }, + "databaseResourceSignalData": { + "$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData", + "description": "Database resource signal data is used to ingest signals from database resource signal feeds." + }, "feedTimestamp": { "description": "Required. Timestamp when feed is generated.", "format": "google-datetime", @@ -4233,7 +4282,8 @@ "OBSERVABILITY_DATA", "SECURITY_FINDING_DATA", "RECOMMENDATION_SIGNAL_DATA", - "CONFIG_BASED_SIGNAL_DATA" + "CONFIG_BASED_SIGNAL_DATA", + "BACKUPDR_METADATA" ], "enumDescriptions": [ "", @@ -4241,7 +4291,8 @@ "Database resource monitoring data", "Database resource security health signal data", "Database resource recommendation signal data", - "Database config based signal data" + "Database config based signal data", + "Database resource metadata from BackupDR" ], "type": "string" }, @@ -4261,6 +4312,10 @@ }, "resourceMetadata": { "$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata" + }, + "skipIngestion": { + "description": "Optional. If true, the feed won't be ingested by DB Center. This indicates that the feed is intentionally skipped. For example, BackupDR feeds are only needed for resources integrated with DB Center (e.g., CloudSQL, AlloyDB). Feeds for non-integrated resources (e.g., Compute Engine, Persistent Disk) can be skipped.", + "type": "boolean" } }, "type": "object" @@ -4480,7 +4535,8 @@ "SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED", "SIGNAL_TYPE_MANY_IDLE_CONNECTIONS", "SIGNAL_TYPE_REPLICATION_LAG", - "SIGNAL_TYPE_OUTDATED_VERSION" + "SIGNAL_TYPE_OUTDATED_VERSION", + "SIGNAL_TYPE_OUTDATED_CLIENT" ], "enumDeprecated": [ false, @@ -4583,6 +4639,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -4686,7 +4743,8 @@ "Schema not optimized.", "High number of idle connections.", "Replication delay.", - "Outdated version." + "Outdated version.", + "Outdated client." ], "type": "string" }, @@ -4750,7 +4808,7 @@ "type": "object" }, "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata": { - "description": "Common model for database resource instance metadata. Next ID: 26", + "description": "Common model for database resource instance metadata. Next ID: 27", "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata", "properties": { "availabilityConfiguration": { @@ -4803,12 +4861,14 @@ "enum": [ "EDITION_UNSPECIFIED", "EDITION_ENTERPRISE", - "EDITION_ENTERPRISE_PLUS" + "EDITION_ENTERPRISE_PLUS", + "EDITION_STANDARD" ], "enumDescriptions": [ "Default, to make it consistent with instance edition enum.", "Represents the enterprise edition.", - "Represents the enterprise plus edition." + "Represents the enterprise plus edition.", + "Represents the standard edition." ], "type": "string" }, @@ -4953,6 +5013,10 @@ "userLabelSet": { "$ref": "StorageDatabasecenterPartnerapiV1mainUserLabels", "description": "User-provided labels associated with the resource" + }, + "zone": { + "description": "The resource zone. This is only applicable for zonal resources and will be empty for regional and multi-regional resources.", + "type": "string" } }, "type": "object" @@ -5113,7 +5177,8 @@ "SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED", "SIGNAL_TYPE_MANY_IDLE_CONNECTIONS", "SIGNAL_TYPE_REPLICATION_LAG", - "SIGNAL_TYPE_OUTDATED_VERSION" + "SIGNAL_TYPE_OUTDATED_VERSION", + "SIGNAL_TYPE_OUTDATED_CLIENT" ], "enumDeprecated": [ false, @@ -5216,6 +5281,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -5319,7 +5385,69 @@ "Schema not optimized.", "High number of idle connections.", "Replication delay.", - "Outdated version." + "Outdated version.", + "Outdated client." + ], + "type": "string" + } + }, + "type": "object" + }, + "StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData": { + "description": "Database resource signal data. This is used to send signals to Condor which are based on the DB/Instance/Fleet level configurations. These will be used to send signals for all inventory types. Next ID: 7", + "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData", + "properties": { + "fullResourceName": { + "description": "Required. Full Resource name of the source resource.", + "type": "string" + }, + "lastRefreshTime": { + "description": "Required. Last time signal was refreshed", + "format": "google-datetime", + "type": "string" + }, + "resourceId": { + "$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceId", + "description": "Database resource id." + }, + "signalBoolValue": { + "description": "Signal data for boolean signals.", + "type": "boolean" + }, + "signalState": { + "description": "Required. Output only. Signal state of the signal", + "enum": [ + "SIGNAL_STATE_UNSPECIFIED", + "ACTIVE", + "INACTIVE", + "DISMISSED" + ], + "enumDescriptions": [ + "Unspecified signal state.", + "Signal is active and requires attention.", + "Signal is inactive and does not require attention.", + "Signal is dismissed by the user and should not be shown to the user again." + ], + "readOnly": true, + "type": "string" + }, + "signalType": { + "description": "Required. Signal type of the signal", + "enum": [ + "SIGNAL_TYPE_UNSPECIFIED", + "SIGNAL_TYPE_OUTDATED_MINOR_VERSION", + "SIGNAL_TYPE_DATABASE_AUDITING_DISABLED", + "SIGNAL_TYPE_NO_ROOT_PASSWORD", + "SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS", + "SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS" + ], + "enumDescriptions": [ + "Unspecified signal type.", + "Outdated Minor Version", + "Represents database auditing is disabled.", + "Represents if a database has a password configured for the root account or not.", + "Represents if a resource is exposed to public access.", + "Represents if a resources requires all incoming connections to use SSL or not." ], "type": "string" } @@ -5839,13 +5967,15 @@ "POSTGRES_13", "POSTGRES_14", "POSTGRES_15", - "POSTGRES_16" + "POSTGRES_16", + "POSTGRES_17" ], "enumDeprecated": [ false, true, false, false, + false, false ], "enumDescriptions": [ @@ -5853,7 +5983,8 @@ "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", "The database version is Postgres 15.", - "The database version is Postgres 16." + "The database version is Postgres 16.", + "The database version is Postgres 17." ], "type": "string" }, @@ -5956,13 +6087,15 @@ "POSTGRES_13", "POSTGRES_14", "POSTGRES_15", - "POSTGRES_16" + "POSTGRES_16", + "POSTGRES_17" ], "enumDeprecated": [ false, true, false, false, + false, false ], "enumDescriptions": [ @@ -5970,7 +6103,8 @@ "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", "The database version is Postgres 15.", - "The database version is Postgres 16." + "The database version is Postgres 16.", + "The database version is Postgres 17." ], "type": "string" } @@ -6034,13 +6168,15 @@ "POSTGRES_13", "POSTGRES_14", "POSTGRES_15", - "POSTGRES_16" + "POSTGRES_16", + "POSTGRES_17" ], "enumDeprecated": [ false, true, false, false, + false, false ], "enumDescriptions": [ @@ -6048,7 +6184,8 @@ "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", "The database version is Postgres 15.", - "The database version is Postgres 16." + "The database version is Postgres 16.", + "The database version is Postgres 17." ], "type": "string" }, @@ -6090,13 +6227,15 @@ "POSTGRES_13", "POSTGRES_14", "POSTGRES_15", - "POSTGRES_16" + "POSTGRES_16", + "POSTGRES_17" ], "enumDeprecated": [ false, true, false, false, + false, false ], "enumDescriptions": [ @@ -6104,7 +6243,8 @@ "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", "The database version is Postgres 15.", - "The database version is Postgres 16." + "The database version is Postgres 16.", + "The database version is Postgres 17." ], "type": "string" } diff --git a/discovery/googleapis/analyticshub__v1.json b/discovery/googleapis/analyticshub__v1.json index 50fb983bc..b801dc827 100644 --- a/discovery/googleapis/analyticshub__v1.json +++ b/discovery/googleapis/analyticshub__v1.json @@ -28,7 +28,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250623", + "revision": "20250901", "rootUrl": "https://analyticshub.googleapis.com/", "servicePath": "", "title": "Analytics Hub API", @@ -809,6 +809,226 @@ ] } } + }, + "queryTemplates": { + "methods": { + "approve": { + "description": "Approves a query template.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataExchanges/{dataExchangesId}/queryTemplates/{queryTemplatesId}:approve", + "httpMethod": "POST", + "id": "analyticshub.projects.locations.dataExchanges.queryTemplates.approve", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource path of the QueryTemplate. e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataExchanges/[^/]+/queryTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:approve", + "request": { + "$ref": "ApproveQueryTemplateRequest" + }, + "response": { + "$ref": "QueryTemplate" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates a new QueryTemplate", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataExchanges/{dataExchangesId}/queryTemplates", + "httpMethod": "POST", + "id": "analyticshub.projects.locations.dataExchanges.queryTemplates.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource path of the QueryTemplate. e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataExchanges/[^/]+$", + "required": true, + "type": "string" + }, + "queryTemplateId": { + "description": "Required. The ID of the QueryTemplate to create. Must contain only Unicode letters, numbers (0-9), underscores (_). Max length: 100 bytes.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/queryTemplates", + "request": { + "$ref": "QueryTemplate" + }, + "response": { + "$ref": "QueryTemplate" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a query template.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataExchanges/{dataExchangesId}/queryTemplates/{queryTemplatesId}", + "httpMethod": "DELETE", + "id": "analyticshub.projects.locations.dataExchanges.queryTemplates.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource path of the QueryTemplate. e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataExchanges/[^/]+/queryTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a QueryTemplate", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataExchanges/{dataExchangesId}/queryTemplates/{queryTemplatesId}", + "httpMethod": "GET", + "id": "analyticshub.projects.locations.dataExchanges.queryTemplates.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The parent resource path of the QueryTemplate. e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataExchanges/[^/]+/queryTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "QueryTemplate" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all QueryTemplates in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataExchanges/{dataExchangesId}/queryTemplates", + "httpMethod": "GET", + "id": "analyticshub.projects.locations.dataExchanges.queryTemplates.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token, returned by a previous call, to request the next page of results.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource path of the QueryTemplates. e.g. `projects/myproject/locations/us/dataExchanges/123`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataExchanges/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/queryTemplates", + "response": { + "$ref": "ListQueryTemplatesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an existing QueryTemplate", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataExchanges/{dataExchangesId}/queryTemplates/{queryTemplatesId}", + "httpMethod": "PATCH", + "id": "analyticshub.projects.locations.dataExchanges.queryTemplates.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name of the QueryTemplate. e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/456`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataExchanges/[^/]+/queryTemplates/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Field mask specifies the fields to update in the query template resource. The fields specified in the `updateMask` are relative to the resource and are not a full request.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "QueryTemplate" + }, + "response": { + "$ref": "QueryTemplate" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "submit": { + "description": "Submits a query template for approval.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataExchanges/{dataExchangesId}/queryTemplates/{queryTemplatesId}:submit", + "httpMethod": "POST", + "id": "analyticshub.projects.locations.dataExchanges.queryTemplates.submit", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource path of the QueryTemplate. e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataExchanges/[^/]+/queryTemplates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:submit", + "request": { + "$ref": "SubmitQueryTemplateRequest" + }, + "response": { + "$ref": "QueryTemplate" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } }, @@ -1032,6 +1252,12 @@ } }, "schemas": { + "ApproveQueryTemplateRequest": { + "description": "Message for approving a QueryTemplate.", + "id": "ApproveQueryTemplateRequest", + "properties": {}, + "type": "object" + }, "AuditConfig": { "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", "id": "AuditConfig", @@ -1134,6 +1360,21 @@ "description": "Optional. Resource name of the dataset source for this listing. e.g. `projects/myproject/datasets/123`", "type": "string" }, + "effectiveReplicas": { + "description": "Output only. Server-owned effective state of replicas. Contains both primary and secondary replicas. Each replica includes a system-computed (output-only) state and primary designation.", + "items": { + "$ref": "Replica" + }, + "readOnly": true, + "type": "array" + }, + "replicaLocations": { + "description": "Optional. A list of regions where the publisher has created shared dataset replicas.", + "items": { + "type": "string" + }, + "type": "array" + }, "restrictedExportPolicy": { "$ref": "RestrictedExportPolicy", "description": "Optional. If set, restricted export policy will be propagated and enforced on the linked dataset." @@ -1361,6 +1602,13 @@ "location": { "description": "Required. The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.", "type": "string" + }, + "replicaLocations": { + "description": "Optional. The geographic locations where the dataset should be replicated. See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations) for supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -1686,6 +1934,24 @@ }, "type": "object" }, + "ListQueryTemplatesResponse": { + "description": "Message for response to the list of QueryTemplates.", + "id": "ListQueryTemplatesResponse", + "properties": { + "nextPageToken": { + "description": "A token to request the next page of results.", + "type": "string" + }, + "queryTemplates": { + "description": "The list of QueryTemplates.", + "items": { + "$ref": "QueryTemplate" + }, + "type": "array" + } + }, + "type": "object" + }, "ListSharedResourceSubscriptionsResponse": { "description": "Message for response to the listing of shared resource subscriptions.", "id": "ListSharedResourceSubscriptionsResponse", @@ -2112,6 +2378,73 @@ }, "type": "object" }, + "QueryTemplate": { + "description": "A query template is a container for sharing table-valued functions defined by contributors in a data clean room.", + "id": "QueryTemplate", + "properties": { + "createTime": { + "description": "Output only. Timestamp when the QueryTemplate was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. Short description of the QueryTemplate. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default value is an empty string. Max length: 2000 bytes.", + "type": "string" + }, + "displayName": { + "description": "Required. Human-readable display name of the QueryTemplate. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces. Default value is an empty string. Max length: 63 bytes.", + "type": "string" + }, + "documentation": { + "description": "Optional. Documentation describing the QueryTemplate.", + "type": "string" + }, + "name": { + "description": "Output only. The resource name of the QueryTemplate. e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/456`", + "readOnly": true, + "type": "string" + }, + "primaryContact": { + "description": "Optional. Email or URL of the primary point of contact of the QueryTemplate. Max Length: 1000 bytes.", + "type": "string" + }, + "proposer": { + "description": "Optional. Will be deprecated. Email or URL of the primary point of contact of the QueryTemplate. Max Length: 1000 bytes.", + "type": "string" + }, + "routine": { + "$ref": "Routine", + "description": "Optional. The routine associated with the QueryTemplate." + }, + "state": { + "description": "Output only. The QueryTemplate lifecycle state.", + "enum": [ + "STATE_UNSPECIFIED", + "DRAFTED", + "PENDING", + "DELETED", + "APPROVED" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The QueryTemplate is in draft state.", + "The QueryTemplate is in pending state.", + "The QueryTemplate is in deleted state.", + "The QueryTemplate is in approved state." + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Timestamp when the QueryTemplate was last modified.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "RefreshSubscriptionRequest": { "description": "Message for refreshing a subscription.", "id": "RefreshSubscriptionRequest", @@ -2129,6 +2462,46 @@ }, "type": "object" }, + "Replica": { + "description": "Represents the state of a replica of a shared dataset. It includes the geographic location of the replica and system-computed, output-only fields indicating its replication state and whether it is the primary replica.", + "id": "Replica", + "properties": { + "location": { + "description": "Output only. The geographic location where the replica resides. See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations) for supported locations. Eg. \"us-central1\".", + "readOnly": true, + "type": "string" + }, + "primaryState": { + "description": "Output only. Indicates that this replica is the primary replica.", + "enum": [ + "PRIMARY_STATE_UNSPECIFIED", + "PRIMARY_REPLICA" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The replica is the primary replica." + ], + "readOnly": true, + "type": "string" + }, + "replicaState": { + "description": "Output only. Assigned by Analytics Hub based on real BigQuery replication state.", + "enum": [ + "REPLICA_STATE_UNSPECIFIED", + "READY_TO_USE", + "UNAVAILABLE" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The replica is backfilled and ready to use.", + "The replica is unavailable, does not exist, or has not been backfilled yet." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "RestrictedExportConfig": { "description": "Restricted export config, used to configure restricted export on linked dataset.", "id": "RestrictedExportConfig", @@ -2202,6 +2575,29 @@ "properties": {}, "type": "object" }, + "Routine": { + "description": "Represents a bigquery routine.", + "id": "Routine", + "properties": { + "definitionBody": { + "description": "Optional. The definition body of the routine.", + "type": "string" + }, + "routineType": { + "description": "Required. The type of routine.", + "enum": [ + "ROUTINE_TYPE_UNSPECIFIED", + "TABLE_VALUED_FUNCTION" + ], + "enumDescriptions": [ + "Default value.", + "Non-built-in persistent TVF." + ], + "type": "string" + } + }, + "type": "object" + }, "SelectedResource": { "description": "Resource in this dataset that is selectively shared.", "id": "SelectedResource", @@ -2275,6 +2671,12 @@ }, "type": "object" }, + "SubmitQueryTemplateRequest": { + "description": "Message for submitting a QueryTemplate.", + "id": "SubmitQueryTemplateRequest", + "properties": {}, + "type": "object" + }, "SubscribeDataExchangeRequest": { "description": "Message for subscribing to a Data Exchange.", "id": "SubscribeDataExchangeRequest", diff --git a/discovery/googleapis/androidmanagement__v1.json b/discovery/googleapis/androidmanagement__v1.json index 95b580b29..ae4c3dab0 100644 --- a/discovery/googleapis/androidmanagement__v1.json +++ b/discovery/googleapis/androidmanagement__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250714", + "revision": "20250916", "rootUrl": "https://androidmanagement.googleapis.com/", "servicePath": "", "title": "Android Management API", @@ -457,7 +457,7 @@ ], "parameters": { "pageSize": { - "description": "The requested page size. The actual page size may be fixed to a min or max value.", + "description": "The requested page size. If unspecified, at most 10 devices will be returned. The maximum value is 100; values above 100 will be coerced to 100. The limits can change over time.", "format": "int32", "location": "query", "type": "integer" @@ -1342,7 +1342,7 @@ "type": "string" }, "developerSettings": { - "description": "Controls access to developer settings: developer options and safe boot. Replaces safeBootDisabled (deprecated) and debuggingFeaturesAllowed (deprecated).", + "description": "Controls access to developer settings: developer options and safe boot. Replaces safeBootDisabled (deprecated) and debuggingFeaturesAllowed (deprecated). On personally-owned devices with a work profile, setting this policy will not disable safe boot. In this case, a NonComplianceDetail with MANAGEMENT_MODE is reported.", "enum": [ "DEVELOPER_SETTINGS_UNSPECIFIED", "DEVELOPER_SETTINGS_DISABLED", @@ -2092,6 +2092,10 @@ ], "type": "string" }, + "customAppConfig": { + "$ref": "CustomAppConfig", + "description": "Optional. Configuration for this custom app.install_type must be set to CUSTOM for this to be set." + }, "defaultPermissionPolicy": { "description": "The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps. It does not override the permission_grants which applies to all apps.", "enum": [ @@ -2145,7 +2149,8 @@ }, "extensionConfig": { "$ref": "ExtensionConfig", - "description": "Configuration to enable this app as an extension app, with the capability of interacting with Android Device Policy offline.This field can be set for at most one app.The signing key certificate fingerprint of the app on the device must match one of the entries in signingKeyFingerprintsSha256 or the signing key certificate fingerprints obtained from Play Store for the app to be able to communicate with Android Device Policy. If the app is not on Play Store and signingKeyFingerprintsSha256 is not set, a NonComplianceDetail with INVALID_VALUE is reported." + "deprecated": true, + "description": "Configuration to enable this app as an extension app, with the capability of interacting with Android Device Policy offline.This field can be set for at most one app. If there is any app with COMPANION_APP role, this field cannot be set.The signing key certificate fingerprint of the app on the device must match one of the entries in ApplicationPolicy.signingKeyCerts or ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) or the signing key certificate fingerprints obtained from Play Store for the app to be able to communicate with Android Device Policy. If the app is not on Play Store and if ApplicationPolicy.signingKeyCerts and ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) are not set, a NonComplianceDetail with INVALID_VALUE is reported." }, "installConstraint": { "description": "Optional. The constraints for installing the app. You can specify a maximum of one InstallConstraint. Multiple constraints are rejected.", @@ -2168,7 +2173,18 @@ "BLOCKED", "AVAILABLE", "REQUIRED_FOR_SETUP", - "KIOSK" + "KIOSK", + "CUSTOM" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false ], "enumDescriptions": [ "Unspecified. Defaults to AVAILABLE.", @@ -2177,7 +2193,8 @@ "The app is blocked and can't be installed. If the app was installed under a previous policy, it will be uninstalled. This also blocks its instant app functionality.", "The app is available to install.", "The app is automatically installed and can't be removed by the user and will prevent setup from completion until installation is complete.", - "The app is automatically installed in kiosk mode: it's set as the preferred home intent and whitelisted for lock task mode. Device setup won't complete until the app is installed. After installation, users won't be able to remove the app. You can only set this installType for one app per policy. When this is present in the policy, status bar will be automatically disabled." + "The app is automatically installed in kiosk mode: it's set as the preferred home intent and whitelisted for lock task mode. Device setup won't complete until the app is installed. After installation, users won't be able to remove the app. You can only set this installType for one app per policy. When this is present in the policy, status bar will be automatically disabled.If there is any app with KIOSK role, then this install type cannot be set for any app.", + "The app can only be installed and updated via AMAPI SDK command (https://developers.google.com/android/management/extensibility-sdk-integration).Note: This only affects fully managed devices. Play related fields minimumVersionCode, accessibleTrackIds, autoUpdateMode, installConstraint and installPriority cannot be set for the app. The app isn't available in the Play Store. The app installed on the device has applicationSource set to CUSTOM. The signing key certificate fingerprint of the app on the device must match one of the entries in ApplicationPolicy.signingKeyCerts . Otherwise, a NonComplianceDetail with APP_SIGNING_CERT_MISMATCH is reported. Changing the installType to and from CUSTOM uninstalls the existing app if its signing key certificate fingerprint doesn't match the one from the new app source. Removing the app from applications doesn't uninstall the existing app if it conforms to playStoreMode. See also customAppConfig. This is different from the Google Play Custom App Publishing (https://developers.google.com/android/work/play/custom-app-api/get-started) feature." ], "type": "string" }, @@ -2236,6 +2253,20 @@ ], "type": "string" }, + "roles": { + "description": "Optional. Roles the app has.Apps having certain roles can be exempted from power and background execution restrictions, suspension and hibernation on Android 14 and above. The user control can also be disallowed for apps with certain roles on Android 11 and above. Refer to the documentation of each RoleType for more details.The app is notified about the roles that are set for it if the app has a notification receiver service with . The app is notified whenever its roles are updated or after the app is installed when it has nonempty list of roles. The app can use this notification to bootstrap itself after the installation. See Integrate with the AMAPI SDK (https://developers.google.com/android/management/sdk-integration) and Manage app roles (https://developers.google.com/android/management/app-roles) guides for more details on the requirements for the service.For the exemptions to be applied and the app to be notified about the roles, the signing key certificate fingerprint of the app on the device must match one of the signing key certificate fingerprints obtained from Play Store or one of the entries in ApplicationPolicy.signingKeyCerts. Otherwise, a NonComplianceDetail with APP_SIGNING_CERT_MISMATCH is reported.There must not be duplicate roles with the same roleType. Multiple apps cannot hold a role with the same roleType. A role with type ROLE_TYPE_UNSPECIFIED is not allowed.", + "items": { + "$ref": "Role" + }, + "type": "array" + }, + "signingKeyCerts": { + "description": "Optional. Signing key certificates of the app.This field is required in the following cases: The app has installType set to CUSTOM (i.e. a custom app). The app has roles set to a nonempty list and the app does not exist on the Play Store. The app has extensionConfig set (i.e. an extension app) but ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) is not set and the app does not exist on the Play Store.If this field is not set for a custom app, the policy is rejected. If it is not set when required for a non-custom app, a NonComplianceDetail with INVALID_VALUE is reported.For other cases, this field is optional and the signing key certificates obtained from Play Store are used.See following policy settings to see how this field is used: choosePrivateKeyRules ApplicationPolicy.InstallType.CUSTOM ApplicationPolicy.extensionConfig ApplicationPolicy.roles", + "items": { + "$ref": "ApplicationSigningKeyCert" + }, + "type": "array" + }, "userControlSettings": { "description": "Optional. Specifies whether user control is permitted for the app. User control includes user actions like force-stopping and clearing app data. Certain types of apps have special treatment, see USER_CONTROL_SETTINGS_UNSPECIFIED and USER_CONTROL_ALLOWED for more details.", "enum": [ @@ -2244,8 +2275,8 @@ "USER_CONTROL_DISALLOWED" ], "enumDescriptions": [ - "Uses the default behaviour of the app to determine if user control is allowed or disallowed. User control is allowed by default for most apps but disallowed for following types of apps: extension apps (see extensionConfig for more details) kiosk apps (see KIOSK install type for more details) other critical system apps", - "User control is allowed for the app. Kiosk apps can use this to allow user control. For extension apps (see extensionConfig for more details), user control is disallowed even if this value is set. For kiosk apps (see KIOSK install type for more details), this value can be used to allow user control.", + "Uses the default behaviour of the app to determine if user control is allowed or disallowed. User control is allowed by default for most apps but disallowed for following types of apps: extension apps (see extensionConfig for more details) kiosk apps (see KIOSK install type for more details) apps with roles set to a nonempty list other critical system apps", + "User control is allowed for the app. Kiosk apps can use this to allow user control. For extension apps (see extensionConfig for more details), user control is disallowed even if this value is set.For apps with roles set to a nonempty list (except roles containing only KIOSK role), this value cannot be set.For kiosk apps (see KIOSK install type and KIOSK role type for more details), this value can be used to allow user control.", "User control is disallowed for the app. This is supported on Android 11 and above. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 11." ], "type": "string" @@ -2293,13 +2324,15 @@ "APPLICATION_SOURCE_UNSPECIFIED", "SYSTEM_APP_FACTORY_VERSION", "SYSTEM_APP_UPDATED_VERSION", - "INSTALLED_FROM_PLAY_STORE" + "INSTALLED_FROM_PLAY_STORE", + "CUSTOM" ], "enumDescriptions": [ "The app was sideloaded from an unspecified source.", "This is a system app from the device's factory image.", "This is an updated system app.", - "The app was installed from the Google Play Store." + "The app was installed from the Google Play Store.", + "The app was installed using the AMAPI SDK command (https://developers.google.com/android/management/extensibility-sdk-integration). See also: CUSTOM" ], "type": "string" }, @@ -2391,6 +2424,18 @@ }, "type": "object" }, + "ApplicationSigningKeyCert": { + "description": "The application signing key certificate.", + "id": "ApplicationSigningKeyCert", + "properties": { + "signingKeyCertFingerprintSha256": { + "description": "Required. The SHA-256 hash value of the signing key certificate of the app. This must be a valid SHA-256 hash value, i.e. 32 bytes. Otherwise, the policy is rejected.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, "BackupServiceToggledEvent": { "description": "An admin has enabled or disabled backup service.", "id": "BackupServiceToggledEvent", @@ -2530,7 +2575,7 @@ "id": "ChoosePrivateKeyRule", "properties": { "packageNames": { - "description": "The package names to which this rule applies. The hash of the signing certificate for each app is verified against the hash provided by Play. If no package names are specified, then the alias is provided to all apps that call KeyChain.choosePrivateKeyAlias (https://developer.android.com/reference/android/security/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20java.lang.String,%20int,%20java.lang.String%29) or any overloads (but not without calling KeyChain.choosePrivateKeyAlias, even on Android 11 and above). Any app with the same Android UID as a package specified here will have access when they call KeyChain.choosePrivateKeyAlias.", + "description": "The package names to which this rule applies. The signing key certificate fingerprint of the app is verified against the signing key certificate fingerprints provided by Play Store and ApplicationPolicy.signingKeyCerts . If no package names are specified, then the alias is provided to all apps that call KeyChain.choosePrivateKeyAlias (https://developer.android.com/reference/android/security/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20java.lang.String,%20int,%20java.lang.String%29) or any overloads (but not without calling KeyChain.choosePrivateKeyAlias, even on Android 11 and above). Any app with the same Android UID as a package specified here will have access when they call KeyChain.choosePrivateKeyAlias.", "items": { "type": "string" }, @@ -2964,6 +3009,27 @@ }, "type": "object" }, + "CustomAppConfig": { + "description": "Configuration for a custom app.", + "id": "CustomAppConfig", + "properties": { + "userUninstallSettings": { + "description": "Optional. User uninstall settings of the custom app.", + "enum": [ + "USER_UNINSTALL_SETTINGS_UNSPECIFIED", + "DISALLOW_UNINSTALL_BY_USER", + "ALLOW_UNINSTALL_BY_USER" + ], + "enumDescriptions": [ + "Unspecified. Defaults to DISALLOW_UNINSTALL_BY_USER.", + "User is not allowed to uninstall the custom app.", + "User is allowed to uninstall the custom app." + ], + "type": "string" + } + }, + "type": "object" + }, "Date": { "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: A full date, with non-zero year, month, and day values. A month and day, with a zero year (for example, an anniversary). A year on its own, with a zero month and a zero day. A year and month, with a zero day (for example, a credit card expiration date).Related types: google.type.TimeOfDay google.type.DateTime google.protobuf.Timestamp", "id": "Date", @@ -3003,7 +3069,7 @@ "type": "array" }, "appliedPasswordPolicies": { - "description": "The password requirements currently applied to the device. The applied requirements may be slightly different from those specified in passwordPolicies in some cases. fieldPath is set based on passwordPolicies.", + "description": "The password requirements currently applied to the device. This field exists because the applied requirements may be slightly different from those specified in passwordPolicies in some cases. Note that this field does not provide information about password compliance. For non-compliance information, see nonComplianceDetails. NonComplianceDetail.fieldPath, is set based on passwordPolicies, not based on this field.", "items": { "$ref": "PasswordRequirements" }, @@ -3912,10 +3978,12 @@ "id": "ExtensionConfig", "properties": { "notificationReceiver": { + "deprecated": true, "description": "Fully qualified class name of the receiver service class for Android Device Policy to notify the extension app of any local command status updates. The service must be exported in the extension app's AndroidManifest.xml and extend NotificationReceiverService (https://developers.google.com/android/management/reference/amapi/com/google/android/managementapi/notification/NotificationReceiverService) (see Integrate with the AMAPI SDK (https://developers.google.com/android/management/sdk-integration) guide for more details).", "type": "string" }, "signingKeyFingerprintsSha256": { + "deprecated": true, "description": "Hex-encoded SHA-256 hashes of the signing key certificates of the extension app. Only hexadecimal string representations of 64 characters are valid.The signing key certificate fingerprints are always obtained from the Play Store and this field is used to provide additional signing key certificate fingerprints. However, if the application is not available on the Play Store, this field needs to be set. A NonComplianceDetail with INVALID_VALUE is reported if this field is not set when the application is not available on the Play Store.The signing key certificate fingerprint of the extension app on the device must match one of the signing key certificate fingerprints obtained from the Play Store or the ones provided in this field for the app to be able to communicate with Android Device Policy.In production use cases, it is recommended to leave this empty.", "items": { "type": "string" @@ -4114,7 +4182,7 @@ "type": "string" }, "serialNumber": { - "description": "The device serial number.", + "description": "The device serial number. However, for personally-owned devices running Android 12 and above, this is the same as the enterpriseSpecificId.", "type": "string" }, "skinShutdownTemperatures": { @@ -5138,6 +5206,7 @@ "APP_INCOMPATIBLE", "APP_NOT_UPDATED", "DEVICE_INCOMPATIBLE", + "APP_SIGNING_CERT_MISMATCH", "PROJECT_NOT_PERMITTED" ], "enumDescriptions": [ @@ -5153,6 +5222,7 @@ "The setting can't be applied to the app because the app doesn't support it, for example because its target SDK version is not high enough.", "The app is installed, but it hasn't been updated to the minimum version code specified by policy.", "The device is incompatible with the policy requirements.", + "The app's signing certificate does not match the setting value.", "The Google Cloud Platform project used to manage the device is not permitted to use this policy." ], "type": "string" @@ -5224,6 +5294,7 @@ "APP_INCOMPATIBLE", "APP_NOT_UPDATED", "DEVICE_INCOMPATIBLE", + "APP_SIGNING_CERT_MISMATCH", "PROJECT_NOT_PERMITTED" ], "enumDescriptions": [ @@ -5239,6 +5310,7 @@ "The setting can't be applied to the app because the app doesn't support it, for example because its target SDK version is not high enough.", "The app is installed, but it hasn't been updated to the minimum version code specified by policy.", "The device is incompatible with the policy requirements.", + "The app's signing certificate does not match the setting value.", "The Google Cloud Platform project used to manage the device is not permitted to use this policy." ], "type": "string" @@ -6797,6 +6869,31 @@ }, "type": "object" }, + "Role": { + "description": "Role an app can have.", + "id": "Role", + "properties": { + "roleType": { + "description": "Required. The type of the role an app can have.", + "enum": [ + "ROLE_TYPE_UNSPECIFIED", + "COMPANION_APP", + "KIOSK", + "MOBILE_THREAT_DEFENSE_ENDPOINT_DETECTION_RESPONSE", + "SYSTEM_HEALTH_MONITORING" + ], + "enumDescriptions": [ + "The role type is unspecified. This value must not be used.", + "The role type for companion apps. This role enables the app as a companion app with the capability of interacting with Android Device Policy offline. This is the recommended way to configure an app as a companion app. For legacy way, see extensionConfig.On Android 14 and above, the app with this role is exempted from power and background execution restrictions, suspension and hibernation. On Android 11 and above, the user control is disallowed for the app with this role. userControlSettings cannot be set to USER_CONTROL_ALLOWED for the app with this role.Android Device Policy notifies the companion app of any local command status updates if the app has a service with . See Integrate with the AMAPI SDK (https://developers.google.com/android/management/sdk-integration) guide for more details on the requirements for the service.", + "The role type for kiosk apps. An app can have this role only if it has installType set to REQUIRED_FOR_SETUP or CUSTOM. Before adding this role to an app with CUSTOM install type, the app must already be installed on the device.The app having this role type is set as the preferred home intent and allowlisted for lock task mode. When there is an app with this role type, status bar will be automatically disabled.This is preferable to setting installType to KIOSK.On Android 11 and above, the user control is disallowed but userControlSettings can be set to USER_CONTROL_ALLOWED to allow user control for the app with this role.", + "The role type for Mobile Threat Defense (MTD) / Endpoint Detection & Response (EDR) apps.On Android 14 and above, the app with this role is exempted from power and background execution restrictions, suspension and hibernation. On Android 11 and above, the user control is disallowed and userControlSettings cannot be set to USER_CONTROL_ALLOWED for the app with this role.", + "The role type for system health monitoring apps.On Android 14 and above, the app with this role is exempted from power and background execution restrictions, suspension and hibernation. On Android 11 and above, the user control is disallowed and userControlSettings cannot be set to USER_CONTROL_ALLOWED for the app with this role." + ], + "type": "string" + } + }, + "type": "object" + }, "ScreenBrightnessSettings": { "description": "Controls for the screen brightness settings.", "id": "ScreenBrightnessSettings", diff --git a/discovery/googleapis/androidpublisher__v3.json b/discovery/googleapis/androidpublisher__v3.json index e6adf4c65..1ff63ab39 100644 --- a/discovery/googleapis/androidpublisher__v3.json +++ b/discovery/googleapis/androidpublisher__v3.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250724", + "revision": "20250904", "rootUrl": "https://androidpublisher.googleapis.com/", "servicePath": "", "title": "Google Play Android Developer API", @@ -4799,7 +4799,7 @@ ] }, "cancel": { - "description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.", + "description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time. Newer version is available at purchases.subscriptionsv2.cancel for better client library support.", "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel", "httpMethod": "POST", "id": "androidpublisher.purchases.subscriptions.cancel", @@ -4989,6 +4989,40 @@ }, "subscriptionsv2": { "methods": { + "cancel": { + "description": "Cancel a subscription purchase for the user.", + "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:cancel", + "httpMethod": "POST", + "id": "androidpublisher.purchases.subscriptionsv2.cancel", + "parameterOrder": [ + "packageName", + "token" + ], + "parameters": { + "packageName": { + "description": "Required. The package of the application for which this subscription was purchased (for example, 'com.some.thing').", + "location": "path", + "required": true, + "type": "string" + }, + "token": { + "description": "Required. The token provided to the user's device when the subscription was purchased.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:cancel", + "request": { + "$ref": "CancelSubscriptionPurchaseRequest" + }, + "response": { + "$ref": "CancelSubscriptionPurchaseResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + }, "get": { "description": "Get metadata about a subscription", "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}", @@ -6176,9 +6210,13 @@ "$ref": "SubscriptionItemPriceChangeDetails", "description": "The information of the last price change for the item since subscription signup." }, + "priceStepUpConsentDetails": { + "$ref": "PriceStepUpConsentDetails", + "description": "The information of the latest price step-up consent." + }, "recurringPrice": { "$ref": "Money", - "description": "The current recurring price of the auto renewing plan. Note that the price does not take into account discounts and taxes, call orders.get API instead if transaction details are needed." + "description": "The current recurring price of the auto renewing plan. Note that the price does not take into account discounts and does not include taxes for tax-exclusive pricing, please call orders.get API instead if transaction details are needed." } }, "type": "object" @@ -6738,6 +6776,23 @@ }, "type": "object" }, + "CancelSubscriptionPurchaseRequest": { + "description": "Request for the purchases.subscriptionsv2.cancel API.", + "id": "CancelSubscriptionPurchaseRequest", + "properties": { + "cancellationContext": { + "$ref": "CancellationContext", + "description": "Required. Additional details around the subscription revocation." + } + }, + "type": "object" + }, + "CancelSubscriptionPurchaseResponse": { + "description": "Response for the purchases.subscriptionsv2.cancel API.", + "id": "CancelSubscriptionPurchaseResponse", + "properties": {}, + "type": "object" + }, "CancelSurveyResult": { "description": "Result of the cancel survey when the subscription was canceled by the user.", "id": "CancelSurveyResult", @@ -6792,6 +6847,27 @@ }, "type": "object" }, + "CancellationContext": { + "description": "Cancellation context of the purchases.subscriptionsv2.cancel API.", + "id": "CancellationContext", + "properties": { + "cancellationType": { + "description": "Required. The type of cancellation for the purchased subscription.", + "enum": [ + "CANCELLATION_TYPE_UNSPECIFIED", + "USER_REQUESTED_STOP_RENEWALS", + "DEVELOPER_REQUESTED_STOP_PAYMENTS" + ], + "enumDescriptions": [ + "Cancellation type unspecified.", + "Cancellation requested by the user, and the subscription can be restored. It only stops the subscription's next renewal. For an installment subscription, users still need to finish the commitment period. For more details on renewals and payments, see https://developer.android.com/google/play/billing/subscriptions#installments", + "Cancellation requested by the developer, and the subscription cannot be restored. It stops the subscription's next payment. For an installment subscription, users will not need to pay the next payment and finish the commitment period. For more details on renewals and payments, see https://developer.android.com/google/play/billing/subscriptions#installments" + ], + "type": "string" + } + }, + "type": "object" + }, "CancellationEvent": { "description": "Details of when the order was canceled.", "id": "CancellationEvent", @@ -7059,6 +7135,12 @@ }, "type": "object" }, + "DeferredItemRemoval": { + "description": "Information related to deferred item replacement.", + "id": "DeferredItemRemoval", + "properties": {}, + "type": "object" + }, "DeferredItemReplacement": { "description": "Information related to deferred item replacement.", "id": "DeferredItemReplacement", @@ -9376,15 +9458,13 @@ "AVAILABILITY_UNSPECIFIED", "AVAILABLE", "NO_LONGER_AVAILABLE", - "AVAILABLE_IF_RELEASED", - "AVAILABLE_FOR_OFFERS_ONLY" + "AVAILABLE_IF_RELEASED" ], "enumDescriptions": [ "Unspecified availability. Must not be used.", "The purchase option is available to users.", "The purchase option is no longer available to users. This value can only be used if the availability was previously set as AVAILABLE.", - "The purchase option is initially unavailable, but made available via a released pre-order offer.", - "The purchase option is unavailable but offers linked to it (i.e. Play Points offer) are available." + "The purchase option is initially unavailable, but made available via a released pre-order offer." ], "type": "string" }, @@ -9829,6 +9909,39 @@ }, "type": "object" }, + "PriceStepUpConsentDetails": { + "description": "Information related to a price step-up that requires user consent.", + "id": "PriceStepUpConsentDetails", + "properties": { + "consentDeadlineTime": { + "description": "The deadline by which the user must provide consent. If consent is not provided by this time, the subscription will be canceled.", + "format": "google-datetime", + "type": "string" + }, + "newPrice": { + "$ref": "Money", + "description": "The new price which requires user consent." + }, + "state": { + "description": "Output only. The state of the price step-up consent.", + "enum": [ + "CONSENT_STATE_UNSPECIFIED", + "PENDING", + "CONFIRMED", + "COMPLETED" + ], + "enumDescriptions": [ + "Unspecified consent state.", + "The user has not yet provided consent.", + "The user has consented, and the new price is waiting to take effect.", + "The user has consented, and the new price has taken effect." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ProcessedEvent": { "description": "Details of when the order was processed.", "id": "ProcessedEvent", @@ -11321,6 +11434,10 @@ "$ref": "AutoRenewingPlan", "description": "The item is auto renewing." }, + "deferredItemRemoval": { + "$ref": "DeferredItemRemoval", + "description": "Information for deferred item removal." + }, "deferredItemReplacement": { "$ref": "DeferredItemReplacement", "description": "Information for deferred item replacement." @@ -11895,7 +12012,7 @@ "properties": { "countryTargeting": { "$ref": "CountryTargeting", - "description": "Restricts a release to a specific set of countries." + "description": "Restricts a release to a specific set of countries. Note this is only allowed to be set for inProgress releases in the production track." }, "inAppUpdatePriority": { "description": "In-app update priority of the release. All newly added APKs in the release will be considered at this priority. Can take values in the range [0, 5], with 5 the highest priority. Defaults to 0. in_app_update_priority can not be updated once the release is rolled out. See https://developer.android.com/guide/playcore/in-app-updates.", diff --git a/discovery/googleapis/apigateway__v1.json b/discovery/googleapis/apigateway__v1.json index 700844727..d201ddfae 100644 --- a/discovery/googleapis/apigateway__v1.json +++ b/discovery/googleapis/apigateway__v1.json @@ -24,7 +24,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250409", + "revision": "20250910", "rootUrl": "https://apigateway.googleapis.com/", "servicePath": "", "title": "API Gateway API", @@ -147,7 +147,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/apigee__v1.json b/discovery/googleapis/apigee__v1.json index ad0369419..796b7b732 100644 --- a/discovery/googleapis/apigee__v1.json +++ b/discovery/googleapis/apigee__v1.json @@ -42,7 +42,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250722", + "revision": "20250908", "rootUrl": "https://apigee.googleapis.com/", "servicePath": "", "title": "Apigee API", @@ -2426,7 +2426,7 @@ "type": "string" }, "pageSize": { - "description": "Optional. Count of apps a single page can have in the response. If unspecified, at most 100 apps will be returned. The maximum value is 100; values above 100 will be coerced to 100. \"page_size\" is supported from ver 1.10.0 and above.", + "description": "Optional. Count of apps a single page can have in the response. If unspecified, at most 1000 apps will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. \"page_size\" is supported from ver 1.10.0 and above.", "format": "int32", "location": "query", "type": "integer" @@ -2444,7 +2444,7 @@ "type": "string" }, "rows": { - "description": "Optional. Maximum number of app IDs to return. Defaults to 1000.", + "description": "Optional. Maximum number of app IDs to return. Defaults to 1000, which is also the upper limit. To get more than 1000, use pagination with 'pageSize' and 'pageToken' parameters.", "format": "int64", "location": "query", "type": "string" @@ -9596,6 +9596,163 @@ } } }, + "securityFeedback": { + "methods": { + "create": { + "description": "Creates a new report containing customer feedback.", + "flatPath": "v1/organizations/{organizationsId}/securityFeedback", + "httpMethod": "POST", + "id": "apigee.organizations.securityFeedback.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`.", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + }, + "securityFeedbackId": { + "description": "Optional. The id for this feedback report. If not provided, it will be set to a system-generated UUID.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/securityFeedback", + "request": { + "$ref": "GoogleCloudApigeeV1SecurityFeedback" + }, + "response": { + "$ref": "GoogleCloudApigeeV1SecurityFeedback" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a specific feedback report. Used for \"undo\" of a feedback submission.", + "flatPath": "v1/organizations/{organizationsId}/securityFeedback/{securityFeedbackId}", + "httpMethod": "DELETE", + "id": "apigee.organizations.securityFeedback.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the SecurityFeedback to delete. Use the following structure in your request: `organizations/{org}/securityFeedback/{feedback_id}`", + "location": "path", + "pattern": "^organizations/[^/]+/securityFeedback/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a specific customer feedback report.", + "flatPath": "v1/organizations/{organizationsId}/securityFeedback/{securityFeedbackId}", + "httpMethod": "GET", + "id": "apigee.organizations.securityFeedback.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the SecurityFeedback. Format: `organizations/{org}/securityFeedback/{feedback_id}` Example: organizations/apigee-organization-name/securityFeedback/feedback-id", + "location": "path", + "pattern": "^organizations/[^/]+/securityFeedback/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudApigeeV1SecurityFeedback" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all feedback reports which have already been submitted.", + "flatPath": "v1/organizations/{organizationsId}/securityFeedback", + "httpMethod": "GET", + "id": "apigee.organizations.securityFeedback.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of feedback reports to return. The service may return fewer than this value. LINT.IfChange(documented_page_size_limits) If unspecified, at most 10 feedback reports will be returned. The maximum value is 100; values above 100 will be coerced to 100. LINT.ThenChange( //depot/google3/edge/sense/boq/service/v1/securityfeedback/securityfeedback_rpc.go:page_size_limits )", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListSecurityFeedback` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSecurityFeedback` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the organization. Format: `organizations/{org}`. Example: organizations/apigee-organization-name/securityFeedback", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/securityFeedback", + "response": { + "$ref": "GoogleCloudApigeeV1ListSecurityFeedbackResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a specific feedback report.", + "flatPath": "v1/organizations/{organizationsId}/securityFeedback/{securityFeedbackId}", + "httpMethod": "PATCH", + "id": "apigee.organizations.securityFeedback.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Identifier. The feedback name is intended to be a system-generated uuid.", + "location": "path", + "pattern": "^organizations/[^/]+/securityFeedback/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudApigeeV1SecurityFeedback" + }, + "response": { + "$ref": "GoogleCloudApigeeV1SecurityFeedback" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "securityMonitoringConditions": { "methods": { "create": { @@ -11318,7 +11475,7 @@ "properties": { "adjustment": { "$ref": "GoogleTypeMoney", - "description": "* A positive value of `adjustment` means that that the API provider wants to adjust the balance for an under-charged developer i.e. the balance of the developer will decrease. * A negative value of `adjustment` means that that the API provider wants to adjust the balance for an over-charged developer i.e. the balance of the developer will increase." + "description": "* A positive value of `adjustment` means that that the API provider wants to adjust the balance for an under-charged developer i.e. the balance of the developer will decrease. * A negative value of `adjustment` means that that the API provider wants to adjust the balance for an over-charged developer i.e. the balance of the developer will increase. NOTE: An adjustment cannot increase the balance of the developer beyond the balance as of the most recent credit. For example, if a developer's balance is updated to be $100, and they spend $10, a negative adjustment can only increase the balance of the developer to $100." } }, "type": "object" @@ -12514,7 +12671,7 @@ "type": "string" }, "scope": { - "description": "Required. Scope of the resources for the computation. For Apigee, the environment is the scope of the resources.", + "description": "Optional. Scope of the resources for the computation. For Apigee, the environment is the scope of the resources.", "type": "string" } }, @@ -15846,6 +16003,24 @@ }, "type": "object" }, + "GoogleCloudApigeeV1ListSecurityFeedbackResponse": { + "description": "Response for ListSecurityFeedback", + "id": "GoogleCloudApigeeV1ListSecurityFeedbackResponse", + "properties": { + "nextPageToken": { + "description": "A token that can be sent as `page_token` in `ListSecurityFeedbackRequest` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "securityFeedback": { + "description": "List of SecurityFeedback reports.", + "items": { + "$ref": "GoogleCloudApigeeV1SecurityFeedback" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1ListSecurityIncidentsResponse": { "description": "Response for ListSecurityIncidents.", "id": "GoogleCloudApigeeV1ListSecurityIncidentsResponse", @@ -18421,6 +18596,107 @@ }, "type": "object" }, + "GoogleCloudApigeeV1SecurityFeedback": { + "description": "Represents a feedback report from an Advanced API Security customer.", + "id": "GoogleCloudApigeeV1SecurityFeedback", + "properties": { + "comment": { + "description": "Optional. Optional text the user can provide for additional, unstructured context.", + "type": "string" + }, + "createTime": { + "description": "Output only. The time when this specific feedback id was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Optional. The display name of the feedback.", + "type": "string" + }, + "feedbackContexts": { + "description": "Required. One or more attribute/value pairs for constraining the feedback.", + "items": { + "$ref": "GoogleCloudApigeeV1SecurityFeedbackFeedbackContext" + }, + "type": "array" + }, + "feedbackType": { + "description": "Required. The type of feedback being submitted.", + "enum": [ + "FEEDBACK_TYPE_UNSPECIFIED", + "EXCLUDED_DETECTION" + ], + "enumDescriptions": [ + "Unspecified feedback type.", + "Feedback identifying attributes to be excluded from detections." + ], + "type": "string" + }, + "name": { + "description": "Output only. Identifier. The feedback name is intended to be a system-generated uuid.", + "readOnly": true, + "type": "string" + }, + "reason": { + "description": "Optional. The reason for the feedback.", + "enum": [ + "REASON_UNSPECIFIED", + "INTERNAL_SYSTEM", + "NON_RISK_CLIENT", + "NAT", + "PENETRATION_TEST", + "OTHER" + ], + "enumDescriptions": [ + "Unspecified reason.", + "The feedback is created for an internal system.", + "The feedback is created for a non-risk client.", + "The feedback is created for to label NAT.", + "The feedback is created for a penetration test.", + "The feedback is created for other reasons." + ], + "type": "string" + }, + "updateTime": { + "description": "Output only. The time when this specific feedback id was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudApigeeV1SecurityFeedbackFeedbackContext": { + "description": "FeedbackContext captures the intent of the submitted feedback.", + "id": "GoogleCloudApigeeV1SecurityFeedbackFeedbackContext", + "properties": { + "attribute": { + "description": "Required. The attribute the user is providing feedback about.", + "enum": [ + "ATTRIBUTE_UNSPECIFIED", + "ATTRIBUTE_ENVIRONMENTS", + "ATTRIBUTE_IP_ADDRESS_RANGES", + "ATTRIBUTE_API_KEYS" + ], + "enumDescriptions": [ + "Unspecified attribute.", + "Values will be a list of environments.", + "Values will be a list of IP addresses. This could be either IPv4 or IPv6.", + "Values will be a list of API keys." + ], + "type": "string" + }, + "values": { + "description": "Required. The values of the attribute the user is providing feedback about.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1SecurityIncident": { "description": "Represents an SecurityIncident resource.", "id": "GoogleCloudApigeeV1SecurityIncident", @@ -18525,7 +18801,7 @@ "type": "string" }, "scope": { - "description": "Required. Scope of the security monitoring condition. For Apigee, the environment is the scope of the resources.", + "description": "Optional. Scope of the security monitoring condition. For Apigee, the environment is the scope of the resources.", "type": "string" }, "totalDeployedResources": { diff --git a/discovery/googleapis/apihub__v1.json b/discovery/googleapis/apihub__v1.json index 7c0a4bd8d..751c01958 100644 --- a/discovery/googleapis/apihub__v1.json +++ b/discovery/googleapis/apihub__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250731", + "revision": "20250912", "rootUrl": "https://apihub.googleapis.com/", "servicePath": "", "title": "API hub API", @@ -176,7 +176,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -304,7 +304,7 @@ ] }, "delete": { - "description": "Deletes the API hub instance.", + "description": "Deletes the API hub instance. Deleting the API hub instance will also result in the removal of all associated runtime project attachments and the host project registration.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/apiHubInstances/{apiHubInstancesId}", "httpMethod": "DELETE", "id": "apihub.projects.locations.apiHubInstances.delete", @@ -2745,6 +2745,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "manageSourceData": { + "description": "Manages data for a given plugin instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/plugins/{pluginsId}/instances/{instancesId}:manageSourceData", + "httpMethod": "POST", + "id": "apihub.projects.locations.plugins.instances.manageSourceData", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the plugin instance for which data needs to be managed. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:manageSourceData", + "request": { + "$ref": "GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest" + }, + "response": { + "$ref": "GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "patch": { "description": "Updates a plugin instance in the API hub. The following fields in the plugin_instance can be updated currently: * display_name * schedule_cron_expression The update_mask should be used to specify the fields being updated. To update the auth_config and additional_config of the plugin instance, use the ApplyPluginInstanceConfig method.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/plugins/{pluginsId}/instances/{instancesId}", @@ -5142,6 +5170,60 @@ }, "type": "object" }, + "GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest": { + "description": "The ManagePluginInstanceSourceData method's request.", + "id": "GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest", + "properties": { + "action": { + "description": "Required. Action to be performed.", + "enum": [ + "ACTION_UNSPECIFIED", + "UPLOAD", + "DELETE" + ], + "enumDescriptions": [ + "Default unspecified action.", + "Upload or upsert data.", + "Delete data." + ], + "type": "string" + }, + "data": { + "description": "Required. Data to be managed.", + "format": "byte", + "type": "string" + }, + "dataType": { + "description": "Required. Type of data to be managed.", + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "PROXY_DEPLOYMENT_MANIFEST", + "ENVIRONMENT_MANIFEST", + "PROXY_BUNDLE", + "SHARED_FLOW_BUNDLE" + ], + "enumDescriptions": [ + "Default unspecified type.", + "Proxy deployment manifest.", + "Environment manifest.", + "Proxy bundle.", + "Shared flow bundle." + ], + "type": "string" + }, + "relativePath": { + "description": "Required. Relative path of data being managed for a given plugin instance.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse": { + "description": "The ManagePluginInstanceSourceData method's response.", + "id": "GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse", + "properties": {}, + "type": "object" + }, "GoogleCloudApihubV1MatchResult": { "description": "MatchResult represents the result of matching a discovered API operation with a catalog API operation.", "id": "GoogleCloudApihubV1MatchResult", @@ -5380,7 +5462,7 @@ "id": "GoogleCloudApihubV1Plugin", "properties": { "actionsConfig": { - "description": "Required. The configuration of actions supported by the plugin.", + "description": "Optional. The configuration of actions supported by the plugin. **REQUIRED**: This field must be provided when creating or updating a Plugin. The server will reject requests if this field is missing.", "items": { "$ref": "GoogleCloudApihubV1PluginActionConfig" }, diff --git a/discovery/googleapis/appengine__v1.json b/discovery/googleapis/appengine__v1.json index c7bc398b9..67556a8b7 100644 --- a/discovery/googleapis/appengine__v1.json +++ b/discovery/googleapis/appengine__v1.json @@ -30,7 +30,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250616", + "revision": "20250816", "rootUrl": "https://appengine.googleapis.com/", "servicePath": "", "title": "App Engine Admin API", @@ -144,7 +144,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the Application resource to get. Example: apps/myapp.", + "description": "Part of `name`. Required. Name of the Application resource to get. Example: apps/myapp.", "location": "path", "required": true, "type": "string" @@ -226,7 +226,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the Application resource to update. Example: apps/myapp.", + "description": "Part of `name`. Required. Name of the Application resource to update. Example: apps/myapp.", "location": "path", "required": true, "type": "string" @@ -259,7 +259,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the application to repair. Example: apps/myapp", + "description": "Part of `name`. Required. Name of the application to repair. Example: apps/myapp", "location": "path", "required": true, "type": "string" @@ -290,7 +290,7 @@ ], "parameters": { "appsId": { - "description": "Part of `parent`. Name of the parent Application resource. Example: apps/myapp.", + "description": "Part of `parent`. Required. Name of the parent Application resource. Example: apps/myapp.", "location": "path", "required": true, "type": "string" @@ -318,7 +318,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the resource to delete. Example: apps/myapp/authorizedCertificates/12345.", + "description": "Part of `name`. Required. Name of the resource to delete. Example: apps/myapp/authorizedCertificates/12345.", "location": "path", "required": true, "type": "string" @@ -349,7 +349,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/authorizedCertificates/12345.", + "description": "Part of `name`. Required. Name of the resource requested. Example: apps/myapp/authorizedCertificates/12345.", "location": "path", "required": true, "type": "string" @@ -394,7 +394,7 @@ ], "parameters": { "appsId": { - "description": "Part of `parent`. Name of the parent Application resource. Example: apps/myapp.", + "description": "Part of `parent`. Required. Name of the parent Application resource. Example: apps/myapp.", "location": "path", "required": true, "type": "string" @@ -445,7 +445,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the resource to update. Example: apps/myapp/authorizedCertificates/12345.", + "description": "Part of `name`. Required. Name of the resource to update. Example: apps/myapp/authorizedCertificates/12345.", "location": "path", "required": true, "type": "string" @@ -488,7 +488,7 @@ ], "parameters": { "appsId": { - "description": "Part of `parent`. Name of the parent Application resource. Example: apps/myapp.", + "description": "Part of `parent`. Required. Name of the parent Application resource. Example: apps/myapp.", "location": "path", "required": true, "type": "string" @@ -529,7 +529,7 @@ ], "parameters": { "appsId": { - "description": "Part of `parent`. Name of the parent Application resource. Example: apps/myapp.", + "description": "Part of `parent`. Required. Name of the parent Application resource. Example: apps/myapp.", "location": "path", "required": true, "type": "string" @@ -572,7 +572,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the resource to delete. Example: apps/myapp/domainMappings/example.com.", + "description": "Part of `name`. Required. Name of the resource to delete. Example: apps/myapp/domainMappings/example.com.", "location": "path", "required": true, "type": "string" @@ -603,7 +603,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/domainMappings/example.com.", + "description": "Part of `name`. Required. Name of the resource requested. Example: apps/myapp/domainMappings/example.com.", "location": "path", "required": true, "type": "string" @@ -635,7 +635,7 @@ ], "parameters": { "appsId": { - "description": "Part of `parent`. Name of the parent Application resource. Example: apps/myapp.", + "description": "Part of `parent`. Required. Name of the parent Application resource. Example: apps/myapp.", "location": "path", "required": true, "type": "string" @@ -673,7 +673,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the resource to update. Example: apps/myapp/domainMappings/example.com.", + "description": "Part of `name`. Required. Name of the resource to update. Example: apps/myapp/domainMappings/example.com.", "location": "path", "required": true, "type": "string" @@ -745,7 +745,7 @@ ], "parameters": { "appsId": { - "description": "Part of `parent`. Name of the parent Firewall collection in which to create a new rule. Example: apps/myapp/firewall/ingressRules.", + "description": "Part of `parent`. Required. Name of the parent Firewall collection in which to create a new rule. Example: apps/myapp/firewall/ingressRules.", "location": "path", "required": true, "type": "string" @@ -963,7 +963,7 @@ "type": "string" }, "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1089,7 +1089,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.", + "description": "Part of `name`. Required. Name of the resource requested. Example: apps/myapp/services/default.", "location": "path", "required": true, "type": "string" @@ -1120,7 +1120,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.", + "description": "Part of `name`. Required. Name of the resource requested. Example: apps/myapp/services/default.", "location": "path", "required": true, "type": "string" @@ -1152,7 +1152,7 @@ ], "parameters": { "appsId": { - "description": "Part of `parent`. Name of the parent Application resource. Example: apps/myapp.", + "description": "Part of `parent`. Required. Name of the parent Application resource. Example: apps/myapp.", "location": "path", "required": true, "type": "string" @@ -1190,7 +1190,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the resource to update. Example: apps/myapp/services/default.", + "description": "Part of `name`. Required. Name of the resource to update. Example: apps/myapp/services/default.", "location": "path", "required": true, "type": "string" @@ -1239,7 +1239,7 @@ ], "parameters": { "appsId": { - "description": "Part of `parent`. Name of the parent resource to create this version under. Example: apps/myapp/services/default.", + "description": "Part of `parent`. Required. Name of the parent resource to create this version under. Example: apps/myapp/services/default.", "location": "path", "required": true, "type": "string" @@ -1274,7 +1274,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.", + "description": "Part of `name`. Required. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.", "location": "path", "required": true, "type": "string" @@ -1312,7 +1312,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.", + "description": "Part of `name`. Required. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.", "location": "path", "required": true, "type": "string" @@ -1364,7 +1364,7 @@ ], "parameters": { "appsId": { - "description": "Part of `parent`. Name of the parent Service resource. Example: apps/myapp/services/default.", + "description": "Part of `parent`. Required. Name of the parent Service resource. Example: apps/myapp/services/default.", "location": "path", "required": true, "type": "string" @@ -1422,7 +1422,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the resource to update. Example: apps/myapp/services/default/versions/1.", + "description": "Part of `name`. Required. Name of the resource to update. Example: apps/myapp/services/default/versions/1.", "location": "path", "required": true, "type": "string" @@ -1474,7 +1474,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.", + "description": "Part of `name`. Required. Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.", "location": "path", "required": true, "type": "string" @@ -1522,7 +1522,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.", + "description": "Part of `name`. Required. Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.", "location": "path", "required": true, "type": "string" @@ -1567,7 +1567,7 @@ ], "parameters": { "appsId": { - "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.", + "description": "Part of `name`. Required. Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.", "location": "path", "required": true, "type": "string" @@ -1613,7 +1613,7 @@ ], "parameters": { "appsId": { - "description": "Part of `parent`. Name of the parent Version resource. Example: apps/myapp/services/default/versions/v1.", + "description": "Part of `parent`. Required. Name of the parent Version resource. Example: apps/myapp/services/default/versions/v1.", "location": "path", "required": true, "type": "string" @@ -1690,7 +1690,7 @@ "type": "string" }, "projectsId": { - "description": "Part of `name`. Name of the Application resource to update. Example: apps/myapp.", + "description": "Part of `name`. Required. Name of the Application resource to update. Example: apps/myapp.", "location": "path", "required": true, "type": "string" @@ -1741,7 +1741,7 @@ "type": "string" }, "projectsId": { - "description": "Part of `parent`. Name of the parent Application resource. Example: apps/myapp.", + "description": "Part of `parent`. Required. Name of the parent Application resource. Example: apps/myapp.", "location": "path", "required": true, "type": "string" @@ -1789,7 +1789,7 @@ "type": "string" }, "projectsId": { - "description": "Part of `name`. Name of the resource to delete. Example: apps/myapp/authorizedCertificates/12345.", + "description": "Part of `name`. Required. Name of the resource to delete. Example: apps/myapp/authorizedCertificates/12345.", "location": "path", "required": true, "type": "string" @@ -1834,7 +1834,7 @@ "type": "string" }, "projectsId": { - "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/authorizedCertificates/12345.", + "description": "Part of `name`. Required. Name of the resource requested. Example: apps/myapp/authorizedCertificates/12345.", "location": "path", "required": true, "type": "string" @@ -1898,7 +1898,7 @@ "type": "string" }, "projectsId": { - "description": "Part of `parent`. Name of the parent Application resource. Example: apps/myapp.", + "description": "Part of `parent`. Required. Name of the parent Application resource. Example: apps/myapp.", "location": "path", "required": true, "type": "string" @@ -1958,7 +1958,7 @@ "type": "string" }, "projectsId": { - "description": "Part of `name`. Name of the resource to update. Example: apps/myapp/authorizedCertificates/12345.", + "description": "Part of `name`. Required. Name of the resource to update. Example: apps/myapp/authorizedCertificates/12345.", "location": "path", "required": true, "type": "string" @@ -2020,7 +2020,7 @@ "type": "string" }, "projectsId": { - "description": "Part of `parent`. Name of the parent Application resource. Example: apps/myapp.", + "description": "Part of `parent`. Required. Name of the parent Application resource. Example: apps/myapp.", "location": "path", "required": true, "type": "string" @@ -2079,7 +2079,7 @@ "type": "string" }, "projectsId": { - "description": "Part of `parent`. Name of the parent Application resource. Example: apps/myapp.", + "description": "Part of `parent`. Required. Name of the parent Application resource. Example: apps/myapp.", "location": "path", "required": true, "type": "string" @@ -2127,7 +2127,7 @@ "type": "string" }, "projectsId": { - "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/domainMappings/example.com.", + "description": "Part of `name`. Required. Name of the resource requested. Example: apps/myapp/domainMappings/example.com.", "location": "path", "required": true, "type": "string" @@ -2172,7 +2172,7 @@ "type": "string" }, "projectsId": { - "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.", + "description": "Part of `name`. Required. Name of the resource requested. Example: apps/myapp/services/default.", "location": "path", "required": true, "type": "string" @@ -2222,7 +2222,7 @@ "type": "boolean" }, "projectsId": { - "description": "Part of `name`. Name of the resource to update. Example: apps/myapp/services/default.", + "description": "Part of `name`. Required. Name of the resource to update. Example: apps/myapp/services/default.", "location": "path", "required": true, "type": "string" @@ -2281,7 +2281,7 @@ "type": "string" }, "projectsId": { - "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.", + "description": "Part of `name`. Required. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.", "location": "path", "required": true, "type": "string" @@ -2333,7 +2333,7 @@ "type": "string" }, "projectsId": { - "description": "Part of `name`. Name of the resource to update. Example: apps/myapp/services/default/versions/1.", + "description": "Part of `name`. Required. Name of the resource to update. Example: apps/myapp/services/default/versions/1.", "location": "path", "required": true, "type": "string" @@ -2534,7 +2534,6 @@ "type": "string" }, "name": { - "description": "Output only. Full path to the Application resource in the API. Example: apps/myapp.@OutputOnly", "readOnly": true, "type": "string" }, @@ -3105,7 +3104,7 @@ "type": "object" }, "FirewallRule": { - "description": "A single firewall rule that is evaluated against incoming traffic and provides an action to take on matched requests.", + "description": "A single firewall rule that is evaluated against incoming traffic and provides an action to take on matched requests. A positive integer between 1, Int32.MaxValue-1 that defines the order of rule evaluation. Rules with the lowest priority are evaluated first.A default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic when no previous rule matches. Only the action of this rule can be modified by the user.", "id": "FirewallRule", "properties": { "action": { @@ -3127,7 +3126,6 @@ "type": "string" }, "priority": { - "description": "A positive integer between 1, Int32.MaxValue-1 that defines the order of rule evaluation. Rules with the lowest priority are evaluated first.A default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic when no previous rule matches. Only the action of this rule can be modified by the user.", "format": "int32", "type": "integer" }, diff --git a/discovery/googleapis/apphub__v1.json b/discovery/googleapis/apphub__v1.json index b310dc39a..4d3dcafed 100644 --- a/discovery/googleapis/apphub__v1.json +++ b/discovery/googleapis/apphub__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250414", + "revision": "20250813", "rootUrl": "https://apphub.googleapis.com/", "servicePath": "", "title": "App Hub API", @@ -176,7 +176,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/authorizedbuyersmarketplace__v1.json b/discovery/googleapis/authorizedbuyersmarketplace__v1.json index 436451364..ca31db095 100644 --- a/discovery/googleapis/authorizedbuyersmarketplace__v1.json +++ b/discovery/googleapis/authorizedbuyersmarketplace__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250303", + "revision": "20250828", "rootUrl": "https://authorizedbuyersmarketplace.googleapis.com/", "servicePath": "", "title": "Authorized Buyers Marketplace API", @@ -3062,7 +3062,7 @@ }, "inventorySizeTargeting": { "$ref": "InventorySizeTargeting", - "description": "Inventory sizes to be targeted." + "description": "Inventory sizes to be targeted. Only PIXEL inventory size type is supported." }, "note": { "description": "A message that is sent to the publisher. Maximum length is 1024 characters.", diff --git a/discovery/googleapis/backupdr__v1.json b/discovery/googleapis/backupdr__v1.json index 4e45d4d84..a913bd7c8 100644 --- a/discovery/googleapis/backupdr__v1.json +++ b/discovery/googleapis/backupdr__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250723", + "revision": "20250910", "rootUrl": "https://backupdr.googleapis.com/", "servicePath": "", "title": "Backup and DR Service API", @@ -138,6 +138,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getTrial": { + "description": "Gets the Trial state for a given project", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/trial", + "httpMethod": "GET", + "id": "backupdr.projects.locations.getTrial", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the trial to retrieve.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/trial$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Trial" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists information about the supported locations for this service.", "flatPath": "v1/projects/{projectsId}/locations", @@ -148,7 +173,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -2058,6 +2083,38 @@ ] } } + }, + "trial": { + "methods": { + "subscribe": { + "description": "Subscribes to a trial for a project", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/trial:subscribe", + "httpMethod": "POST", + "id": "backupdr.projects.locations.trial.subscribe", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource where this trial will be created.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/trial:subscribe", + "request": { + "$ref": "SubscribeTrialRequest" + }, + "response": { + "$ref": "Trial" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } } @@ -3135,7 +3192,7 @@ "id": "BackupRule", "properties": { "backupRetentionDays": { - "description": "Required. Configures the duration for which backup data will be kept. It is defined in “days”. The value should be greater than or equal to minimum enforced retention of the backup vault. Minimum value is 1 and maximum value is 36159 for custom retention on-demand backup. Minimum and maximum values are workload specific for all other rules.", + "description": "Required. Configures the duration for which backup data will be kept. It is defined in “days”. The value should be greater than or equal to minimum enforced retention of the backup vault. Minimum value is 1 and maximum value is 36159 for custom retention on-demand backup. Minimum and maximum values are workload specific for all other rules. Note: Longer retention can lead to higher storage costs post introductory trial. We recommend starting with a short duration of 3 days or less.", "format": "int32", "type": "integer" }, @@ -3186,7 +3243,7 @@ "type": "string" }, "backupMinimumEnforcedRetentionDuration": { - "description": "Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.", + "description": "Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended. Note: Longer minimum enforced retention period impacts potential storage costs post introductory trial. We recommend starting with a short duration of 3 days or less.", "format": "google-duration", "type": "string" }, @@ -4031,6 +4088,10 @@ "description": "DiskBackupProperties represents the properties of a Disk backup.", "id": "DiskBackupProperties", "properties": { + "accessMode": { + "description": "The access mode of the source disk.", + "type": "string" + }, "architecture": { "description": "The architecture of the source disk. Valid values are ARM64 or X86_64.", "enum": [ @@ -4049,6 +4110,10 @@ "description": "A description of the source disk.", "type": "string" }, + "enableConfidentialCompute": { + "description": "Indicates whether the source disk is using confidential compute mode.", + "type": "boolean" + }, "guestOsFeature": { "description": "A list of guest OS features that are applicable to this backup.", "items": { @@ -4056,6 +4121,13 @@ }, "type": "array" }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "The labels of the source disk.", + "type": "object" + }, "licenses": { "description": "A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image.", "items": { @@ -4063,6 +4135,21 @@ }, "type": "array" }, + "physicalBlockSizeBytes": { + "description": "The physical block size of the source disk.", + "format": "int64", + "type": "string" + }, + "provisionedIops": { + "description": "The number of IOPS provisioned for the source disk.", + "format": "int64", + "type": "string" + }, + "provisionedThroughput": { + "description": "The number of throughput provisioned for the source disk.", + "format": "int64", + "type": "string" + }, "region": { "description": "Region and zone are mutually exclusive fields. The URL of the region of the source disk.", "type": "string" @@ -4083,6 +4170,10 @@ "description": "The source disk used to create this backup.", "type": "string" }, + "storagePool": { + "description": "The storage pool of the source disk.", + "type": "string" + }, "type": { "description": "The URL of the type of the disk.", "type": "string" @@ -4933,6 +5024,30 @@ }, "type": "object" }, + "LocationMetadata": { + "id": "LocationMetadata", + "properties": { + "unsupportedFeatures": { + "items": { + "enum": [ + "FEATURE_UNSPECIFIED", + "MANAGEMENT_SERVER", + "COMPUTE_INSTANCE", + "PROTECTION_SUMMARY" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ManagementServer": { "description": "ManagementServer describes a single BackupDR ManagementServer instance.", "id": "ManagementServer", @@ -5472,12 +5587,16 @@ "enum": [ "RESOURCE_TYPE_UNSPECIFIED", "CLOUD_SQL_INSTANCE", - "COMPUTE_ENGINE_VM" + "COMPUTE_ENGINE_VM", + "COMPUTE_ENGINE_DISK", + "COMPUTE_ENGINE_REGIONAL_DISK" ], "enumDescriptions": [ "Resource type not set.", "Cloud SQL instance.", - "Compute Engine VM." + "Compute Engine VM.", + "Compute Engine Disk.", + "Compute Engine Regional Disk." ], "readOnly": true, "type": "string" @@ -5895,6 +6014,12 @@ }, "type": "object" }, + "SubscribeTrialRequest": { + "description": "Request message for subscribing to a trial.", + "id": "SubscribeTrialRequest", + "properties": {}, + "type": "object" + }, "Tags": { "description": "A set of instance tags.", "id": "Tags", @@ -5948,6 +6073,65 @@ }, "type": "object" }, + "Trial": { + "description": "Represents a Trial for a project.", + "id": "Trial", + "properties": { + "endReason": { + "description": "Output only. The reason for ending the trial.", + "enum": [ + "END_REASON_UNSPECIFIED", + "MOVE_TO_PAID", + "DISCONTINUED" + ], + "enumDescriptions": [ + "End reason not set.", + "Trial is deliberately ended by the user to transition to paid usage.", + "Trial is discontinued before expiration." + ], + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time when the trial will expire.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The resource name of the trial. Format: projects/{project}/locations/{location}/trial", + "type": "string" + }, + "startTime": { + "description": "Output only. The time when the trial was subscribed.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The state of the trial.", + "enum": [ + "STATE_UNSPECIFIED", + "SUBSCRIBED", + "UNSUBSCRIBED", + "EXPIRED", + "ELIGIBLE", + "NOT_ELIGIBLE" + ], + "enumDescriptions": [ + "State not set.", + "Trial is subscribed.", + "Trial is unsubscribed before expiration.", + "Trial is expired post 30 days of subscription.", + "Trial is eligible for enablement.", + "Trial is not eligible for enablement." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "TriggerBackupRequest": { "description": "Request message for triggering a backup.", "id": "TriggerBackupRequest", diff --git a/discovery/googleapis/batch__v1.json b/discovery/googleapis/batch__v1.json index 17f74e356..881a2cd82 100644 --- a/discovery/googleapis/batch__v1.json +++ b/discovery/googleapis/batch__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250721", + "revision": "20250813", "rootUrl": "https://batch.googleapis.com/", "servicePath": "", "title": "Batch API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/beyondcorp__v1.json b/discovery/googleapis/beyondcorp__v1.json index 9e24d595f..c1a105071 100644 --- a/discovery/googleapis/beyondcorp__v1.json +++ b/discovery/googleapis/beyondcorp__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250723", + "revision": "20250818", "rootUrl": "https://beyondcorp.googleapis.com/", "servicePath": "", "title": "BeyondCorp API", @@ -279,7 +279,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/bigquery__v2.json b/discovery/googleapis/bigquery__v2.json index 230f69111..0eb5a3e1f 100644 --- a/discovery/googleapis/bigquery__v2.json +++ b/discovery/googleapis/bigquery__v2.json @@ -150,7 +150,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250713", + "revision": "20250816", "rootUrl": "https://bigquery.googleapis.com/", "servicePath": "bigquery/v2/", "title": "BigQuery API", @@ -1540,8 +1540,7 @@ }, "scopes": [ "https://www.googleapis.com/auth/bigquery", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] }, "delete": { @@ -1593,8 +1592,7 @@ "path": "projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies/{+policyId}", "scopes": [ "https://www.googleapis.com/auth/bigquery", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] }, "get": { @@ -1720,8 +1718,7 @@ }, "scopes": [ "https://www.googleapis.com/auth/bigquery", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { @@ -1858,8 +1855,7 @@ }, "scopes": [ "https://www.googleapis.com/auth/bigquery", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] } } @@ -2589,7 +2585,8 @@ "WEEKLY", "MONTHLY", "QUARTERLY", - "YEARLY" + "YEARLY", + "HOURLY" ], "enumDescriptions": [ "Unspecified seasonal period.", @@ -2598,7 +2595,8 @@ "Weekly period, 7 days.", "Monthly period, 30 days or irregular.", "Quarterly period, 90 days or irregular.", - "Yearly period, 365 days or irregular." + "Yearly period, 365 days or irregular.", + "Hourly period, 1 hour." ], "type": "string" }, @@ -2657,7 +2655,8 @@ "WEEKLY", "MONTHLY", "QUARTERLY", - "YEARLY" + "YEARLY", + "HOURLY" ], "enumDescriptions": [ "Unspecified seasonal period.", @@ -2666,7 +2665,8 @@ "Weekly period, 7 days.", "Monthly period, 30 days or irregular.", "Quarterly period, 90 days or irregular.", - "Yearly period, 365 days or irregular." + "Yearly period, 365 days or irregular.", + "Hourly period, 1 hour." ], "type": "string" }, @@ -2729,7 +2729,8 @@ "WEEKLY", "MONTHLY", "QUARTERLY", - "YEARLY" + "YEARLY", + "HOURLY" ], "enumDescriptions": [ "Unspecified seasonal period.", @@ -2738,7 +2739,8 @@ "Weekly period, 7 days.", "Monthly period, 30 days or irregular.", "Quarterly period, 90 days or irregular.", - "Yearly period, 365 days or irregular." + "Yearly period, 365 days or irregular.", + "Hourly period, 1 hour." ], "type": "string" }, @@ -2785,7 +2787,8 @@ "WEEKLY", "MONTHLY", "QUARTERLY", - "YEARLY" + "YEARLY", + "HOURLY" ], "enumDescriptions": [ "Unspecified seasonal period.", @@ -2794,7 +2797,8 @@ "Weekly period, 7 days.", "Monthly period, 30 days or irregular.", "Quarterly period, 90 days or irregular.", - "Yearly period, 365 days or irregular." + "Yearly period, 365 days or irregular.", + "Hourly period, 1 hour." ], "type": "string" }, @@ -3567,7 +3571,7 @@ "type": "object" }, "DataPolicyOption": { - "description": "Data policy option proto, it currently supports name only, will support precedence later.", + "description": "Data policy option. For more information, see [Mask data by applying data policies to a column](https://cloud.google.com/bigquery/docs/column-data-masking#data-policies-on-column/).", "id": "DataPolicyOption", "properties": { "name": { @@ -5458,6 +5462,11 @@ "$ref": "JobConfigurationLoad", "description": "[Pick one] Configures a load job." }, + "maxSlots": { + "description": "Optional. INTERNAL: DO NOT USE. The maximum rate of slot consumption to allow for this job. If set, the number of slots used to execute the job will be throttled to try and keep its slot consumption below the requested rate.", + "format": "int32", + "type": "integer" + }, "query": { "$ref": "JobConfigurationQuery", "description": "[Pick one] Configures a query job." @@ -7791,6 +7800,11 @@ "format": "uint32", "type": "integer" }, + "maxSlots": { + "description": "Optional. INTERNAL: DO NOT USE. The maximum rate of slot consumption to allow for this job. If set, the number of slots used to execute the job will be throttled to try and keep its slot consumption below the requested rate. This limit is best effort.", + "format": "int32", + "type": "integer" + }, "maximumBytesBilled": { "description": "Optional. Limits the bytes billed for this query. Queries with bytes billed above this limit will fail (without incurring a charge). If unspecified, the project default is used.", "format": "int64", @@ -8236,7 +8250,7 @@ "type": "string" }, "definitionBody": { - "description": "Required. The body of the routine. For functions, this is the expression in the AS clause. If language=SQL, it is the substring inside (but excluding) the parentheses. For example, for the function created with the following statement: `CREATE FUNCTION JoinLines(x string, y string) as (concat(x, \"\\n\", y))` The definition_body is `concat(x, \"\\n\", y)` (\\n is not replaced with linebreak). If language=JAVASCRIPT, it is the evaluated string in the AS clause. For example, for the function created with the following statement: `CREATE FUNCTION f() RETURNS STRING LANGUAGE js AS 'return \"\\n\";\\n'` The definition_body is `return \"\\n\";\\n` Note that both \\n are replaced with linebreaks.", + "description": "Required. The body of the routine. For functions, this is the expression in the AS clause. If `language = \"SQL\"`, it is the substring inside (but excluding) the parentheses. For example, for the function created with the following statement: `CREATE FUNCTION JoinLines(x string, y string) as (concat(x, \"\\n\", y))` The definition_body is `concat(x, \"\\n\", y)` (\\n is not replaced with linebreak). If `language=\"JAVASCRIPT\"`, it is the evaluated string in the AS clause. For example, for the function created with the following statement: `CREATE FUNCTION f() RETURNS STRING LANGUAGE js AS 'return \"\\n\";\\n'` The definition_body is `return \"\\n\";\\n` Note that both \\n are replaced with linebreaks. If `definition_body` references another routine, then that routine must be fully qualified with its project ID.", "type": "string" }, "description": { @@ -9609,7 +9623,7 @@ "type": "string" }, "dataPolicies": { - "description": "Optional. Data policy options, will replace the data_policies.", + "description": "Optional. Data policies attached to this field, used for field-level access control.", "items": { "$ref": "DataPolicyOption" }, diff --git a/discovery/googleapis/bigquerydatatransfer__v1.json b/discovery/googleapis/bigquerydatatransfer__v1.json index 92d8085da..11ebf5677 100644 --- a/discovery/googleapis/bigquerydatatransfer__v1.json +++ b/discovery/googleapis/bigquerydatatransfer__v1.json @@ -138,7 +138,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250603", + "revision": "20250906", "rootUrl": "https://bigquerydatatransfer.googleapis.com/", "servicePath": "", "title": "BigQuery Data Transfer API", @@ -422,7 +422,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1667,6 +1667,11 @@ "description": "Cannot be changed after initial creation.", "type": "boolean" }, + "maxListSize": { + "description": "For list parameters, the max size of the list.", + "format": "int64", + "type": "string" + }, "maxValue": { "description": "For integer and double values specifies maximum allowed value.", "format": "double", diff --git a/discovery/googleapis/bigqueryreservation__v1.json b/discovery/googleapis/bigqueryreservation__v1.json index 89e27ccc3..60cf156c5 100644 --- a/discovery/googleapis/bigqueryreservation__v1.json +++ b/discovery/googleapis/bigqueryreservation__v1.json @@ -135,7 +135,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250620", + "revision": "20250907", "rootUrl": "https://bigqueryreservation.googleapis.com/", "servicePath": "", "title": "BigQuery Reservation API", @@ -1292,7 +1292,10 @@ "QUERY", "ML_EXTERNAL", "BACKGROUND", - "CONTINUOUS" + "CONTINUOUS", + "BACKGROUND_CHANGE_DATA_CAPTURE", + "BACKGROUND_COLUMN_METADATA_INDEX", + "BACKGROUND_SEARCH_INDEX_REFRESH" ], "enumDescriptions": [ "Invalid type. Requests with this value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.", @@ -1300,7 +1303,10 @@ "Query jobs from the project will use the reservation.", "BigQuery ML jobs that use services external to BigQuery for model training. These jobs will not utilize idle slots from other reservations.", "Background jobs that BigQuery runs for the customers in the background.", - "Continuous SQL jobs will use this reservation. Reservations with continuous assignments cannot be mixed with non-continuous assignments." + "Continuous SQL jobs will use this reservation. Reservations with continuous assignments cannot be mixed with non-continuous assignments.", + "Finer granularity background jobs for capturing changes in a source database and streaming them into BigQuery. Reservations with this job type take priority over a default BACKGROUND reservation assignment (if it exists).", + "Finer granularity background jobs for refreshing cached metadata for BigQuery tables. Reservations with this job type take priority over a default BACKGROUND reservation assignment (if it exists).", + "Finer granularity background jobs for refreshing search indexes upon BigQuery table columns. Reservations with this job type take priority over a default BACKGROUND reservation assignment (if it exists)." ], "type": "string" }, @@ -1635,7 +1641,7 @@ "id": "FailoverReservationRequest", "properties": { "failoverMode": { - "description": "Optional. failover mode for the failover operation.", + "description": "Optional. A parameter that determines how writes that are pending replication are handled after a failover is initiated. If not specified, HARD failover mode is used by default.", "enum": [ "FAILOVER_MODE_UNSPECIFIED", "SOFT", @@ -1643,7 +1649,7 @@ ], "enumDescriptions": [ "Invalid value.", - "When customers initiate a soft failover, BigQuery will wait until all committed writes are replicated to the secondary.", + "When customers initiate a soft failover, BigQuery will wait until all committed writes are replicated to the secondary. This mode requires both regions to be available for the failover to succeed and prevents data loss.", "When customers initiate a hard failover, BigQuery will not wait until all committed writes are replicated to the secondary. There can be data loss for hard failover." ], "type": "string" diff --git a/discovery/googleapis/bigtableadmin__v2.json b/discovery/googleapis/bigtableadmin__v2.json index d7c2f7be5..dedc01202 100644 --- a/discovery/googleapis/bigtableadmin__v2.json +++ b/discovery/googleapis/bigtableadmin__v2.json @@ -49,7 +49,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250724", + "revision": "20250828", "rootUrl": "https://bigtableadmin.googleapis.com/", "servicePath": "", "title": "Cloud Bigtable Admin API", @@ -135,66 +135,6 @@ "resources": { "operations": { "methods": { - "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", - "flatPath": "v2/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "bigtableadmin.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^operations/.*$", - "required": true, - "type": "string" - } - }, - "path": "v2/{+name}:cancel", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/bigtable.admin", - "https://www.googleapis.com/auth/bigtable.admin.cluster", - "https://www.googleapis.com/auth/bigtable.admin.instance", - "https://www.googleapis.com/auth/cloud-bigtable.admin", - "https://www.googleapis.com/auth/cloud-bigtable.admin.cluster", - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - "flatPath": "v2/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "bigtableadmin.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^operations/.*$", - "required": true, - "type": "string" - } - }, - "path": "v2/{+name}", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/bigtable.admin", - "https://www.googleapis.com/auth/bigtable.admin.cluster", - "https://www.googleapis.com/auth/bigtable.admin.instance", - "https://www.googleapis.com/auth/cloud-bigtable.admin", - "https://www.googleapis.com/auth/cloud-bigtable.admin.cluster", - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "get": { "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", "flatPath": "v2/operations/{operationsId}", @@ -1850,7 +1790,7 @@ ], "parameters": { "name": { - "description": "Identifier. The unique name of the materialized view. Format: `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`", + "description": "Identifier. The unique name of the materialized view. Format: `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` Views: `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`.", "location": "path", "pattern": "^projects/[^/]+/instances/[^/]+/materializedViews/[^/]+$", "required": true, @@ -3083,37 +3023,6 @@ }, "locations": { "methods": { - "get": { - "description": "Gets information about a location.", - "flatPath": "v2/projects/{projectsId}/locations/{locationsId}", - "httpMethod": "GET", - "id": "bigtableadmin.projects.locations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Resource name for the location.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v2/{+name}", - "response": { - "$ref": "Location" - }, - "scopes": [ - "https://www.googleapis.com/auth/bigtable.admin", - "https://www.googleapis.com/auth/bigtable.admin.cluster", - "https://www.googleapis.com/auth/bigtable.admin.instance", - "https://www.googleapis.com/auth/cloud-bigtable.admin", - "https://www.googleapis.com/auth/cloud-bigtable.admin.cluster", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - }, "list": { "description": "Lists information about the supported locations for this service.", "flatPath": "v2/projects/{projectsId}/locations", @@ -3124,7 +3033,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -4697,6 +4606,13 @@ "readOnly": true, "type": "string" }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: - \"123/environment\": \"production\", - \"123/costCenter\": \"marketing\" Tags and Labels (above) are both used to bind metadata to resources, with different use-cases. See https://cloud.google.com/resource-manager/docs/tags/tags-overview for an in-depth overview on the difference between tags and labels.", + "type": "object" + }, "type": { "description": "The type of the instance. Defaults to `PRODUCTION`.", "enum": [ @@ -5027,19 +4943,19 @@ "id": "MaterializedView", "properties": { "deletionProtection": { - "description": "Set to true to make the MaterializedView protected against deletion.", + "description": "Set to true to make the MaterializedView protected against deletion. Views: `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`.", "type": "boolean" }, "etag": { - "description": "Optional. The etag for this materialized view. This may be sent on update requests to ensure that the client has an up-to-date value before proceeding. The server returns an ABORTED error on a mismatched etag.", + "description": "Optional. The etag for this materialized view. This may be sent on update requests to ensure that the client has an up-to-date value before proceeding. The server returns an ABORTED error on a mismatched etag. Views: `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`.", "type": "string" }, "name": { - "description": "Identifier. The unique name of the materialized view. Format: `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`", + "description": "Identifier. The unique name of the materialized view. Format: `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` Views: `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`.", "type": "string" }, "query": { - "description": "Required. Immutable. The materialized view's select query.", + "description": "Required. Immutable. The materialized view's select query. Views: `SCHEMA_VIEW`, `FULL`.", "type": "string" } }, diff --git a/discovery/googleapis/certificatemanager__v1.json b/discovery/googleapis/certificatemanager__v1.json index fb79d527b..6a7c934f3 100644 --- a/discovery/googleapis/certificatemanager__v1.json +++ b/discovery/googleapis/certificatemanager__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250423", + "revision": "20250813", "rootUrl": "https://certificatemanager.googleapis.com/", "servicePath": "", "title": "Certificate Manager API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/chat__v1.json b/discovery/googleapis/chat__v1.json index ca8fb1a4b..607ed98d0 100644 --- a/discovery/googleapis/chat__v1.json +++ b/discovery/googleapis/chat__v1.json @@ -109,7 +109,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250727", + "revision": "20250911", "rootUrl": "https://chat.googleapis.com/", "servicePath": "", "title": "Google Chat API", @@ -604,7 +604,7 @@ ] }, "search": { - "description": "Returns a list of spaces in a Google Workspace organization based on an administrator's search. Requires [user authentication with administrator privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges) and one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.admin.spaces.readonly` - `https://www.googleapis.com/auth/chat.admin.spaces` In the request, set `use_admin_access` to `true`.", + "description": "Returns a list of spaces in a Google Workspace organization based on an administrator's search. In the request, set `use_admin_access` to `true`. For an example, see [Search for and manage spaces](https://developers.google.com/workspace/chat/search-manage-admin). Requires [user authentication with administrator privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges) and one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.admin.spaces.readonly` - `https://www.googleapis.com/auth/chat.admin.spaces`", "flatPath": "v1/spaces:search", "httpMethod": "GET", "id": "chat.spaces.search", @@ -978,7 +978,7 @@ ] }, "get": { - "description": "Returns details about a message. For an example, see [Get details about a message](https://developers.google.com/workspace/chat/get-messages). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with the authorization scope: - `https://www.googleapis.com/auth/chat.bot` - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.messages.readonly` - `https://www.googleapis.com/auth/chat.messages` Note: Might return a message from a blocked member or space.", + "description": "Returns details about a message. For an example, see [Get details about a message](https://developers.google.com/workspace/chat/get-messages). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.bot`: When using this authorization scope, this method returns details about a message the Chat app has access to, like direct messages and [slash commands](https://developers.google.com/workspace/chat/slash-commands) that invoke the Chat app. - `https://www.googleapis.com/auth/chat.app.messages.readonly` with [administrator approval](https://support.google.com/a?p=chat-app-auth) (available in [Developer Preview](https://developers.google.com/workspace/preview)). When using this authentication scope, this method returns details about a public message in a space. - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.messages.readonly` - `https://www.googleapis.com/auth/chat.messages` Note: Might return a message from a blocked member or space.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", "httpMethod": "GET", "id": "chat.spaces.messages.get", @@ -1005,7 +1005,7 @@ ] }, "list": { - "description": "Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. If you list messages from a space with no messages, the response is an empty object. When using a REST/HTTP interface, the response contains an empty JSON object, `{}`. For an example, see [List messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.messages.readonly` - `https://www.googleapis.com/auth/chat.messages` - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)", + "description": "Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. System messages, like those announcing new space members, aren't included. If you list messages from a space with no messages, the response is an empty object. When using a REST/HTTP interface, the response contains an empty JSON object, `{}`. For an example, see [List messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer Preview](https://developers.google.com/workspace/preview) with the authorization scope: - `https://www.googleapis.com/auth/chat.app.messages.readonly`. When using this authentication scope, this method only returns public messages in a space. It doesn't include private messages. - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.messages.readonly` - `https://www.googleapis.com/auth/chat.messages` - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)", "flatPath": "v1/spaces/{spacesId}/messages", "httpMethod": "GET", "id": "chat.spaces.messages.list", @@ -1079,7 +1079,7 @@ "type": "string" }, "updateMask": { - "description": "Required. The field paths to update. Separate multiple values with commas or use `*` to update all field paths. Currently supported field paths: - `text` - `attachment` - `cards` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `accessory_widgets` (Requires [app authentication](/chat/api/guides/auth/service-accounts).)", + "description": "Required. The field paths to update. Separate multiple values with commas or use `*` to update all field paths. Currently supported field paths: - `text` - `attachment` - `cards` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `accessory_widgets` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `quoted_message_metadata` (Only allows removal of the quoted message.)", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1120,7 +1120,7 @@ "type": "string" }, "updateMask": { - "description": "Required. The field paths to update. Separate multiple values with commas or use `*` to update all field paths. Currently supported field paths: - `text` - `attachment` - `cards` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `accessory_widgets` (Requires [app authentication](/chat/api/guides/auth/service-accounts).)", + "description": "Required. The field paths to update. Separate multiple values with commas or use `*` to update all field paths. Currently supported field paths: - `text` - `attachment` - `cards` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `accessory_widgets` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) - `quoted_message_metadata` (Only allows removal of the quoted message.)", "format": "google-fieldmask", "location": "query", "type": "string" @@ -2077,7 +2077,7 @@ "type": "string" }, "invokedFunction": { - "description": "Name of the invoked function associated with the widget. Only set for Chat apps.", + "description": "Name of the function to invoke. This field doesn't populate for Google Workspace Add-ons that extend Google Chat. Instead, to receive function data like identifiers, add-ons that extend Chat should use the `parameters` field. See [Build interactive interfaces for Chat apps](https://developers.google.com/workspace/add-ons/chat/build).", "type": "string" }, "parameters": { @@ -2328,12 +2328,12 @@ ], "enumDescriptions": [ "Default value for the enum. DO NOT USE.", - "A user sends the Chat app a message, or invokes the Chat app in a space, such as any of the following examples: * Any message in a direct message (DM) space with the Chat app. * A message in a multi-person space where a person @mentions the Chat app, or uses one of its [slash commands](https://developers.google.com/workspace/chat/commands#types). * If you've configured link previews for your Chat app, a user posts a message that contains a link that matches the configured URL pattern.", + "A user sends the Chat app a message, or invokes the Chat app in a space. Examples of message events include: * Any message in a direct message (DM) space with the Chat app. * A message in a multi-person space where a person @mentions the Chat app, or uses one of its [slash commands](https://developers.google.com/workspace/chat/commands#types). * If you've configured link previews for your Chat app, a user posts a message that contains a link that matches the configured URL pattern.", "A user adds the Chat app to a space, or a Google Workspace administrator installs the Chat app in direct message spaces for users in their organization. Chat apps typically respond to this interaction event by posting a welcome message in the space. When administrators install Chat apps, the `space.adminInstalled` field is set to `true` and users can't uninstall them. To learn about Chat apps installed by administrators, see Google Workspace Admin Help's documentation, [Install Marketplace apps in your domain](https://support.google.com/a/answer/172482).", "A user removes the Chat app from a space, or a Google Workspace administrator uninstalls the Chat app for a user in their organization. Chat apps can't respond with messages to this event, because they have already been removed. When administrators uninstall Chat apps, the `space.adminInstalled` field is set to `false`. If a user installed the Chat app before the administrator, the Chat app remains installed for the user and the Chat app doesn't receive a `REMOVED_FROM_SPACE` interaction event.", "A user clicks an interactive element of a card or dialog from a Chat app, such as a button. To receive an interaction event, the button must trigger another interaction with the Chat app. For example, a Chat app doesn't receive a `CARD_CLICKED` interaction event if a user clicks a button that opens a link to a website, but receives interaction events in the following examples: * The user clicks a `Send feedback` button on a card, which opens a dialog for the user to input information. * The user clicks a `Submit` button after inputting information into a card or dialog. If a user clicks a button to open, submit, or cancel a dialog, the `CARD_CLICKED` interaction event's `isDialogEvent` field is set to `true` and includes a [`DialogEventType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/DialogEventType).", - "A user updates a widget in a card message or dialog.", - "A user uses a Chat app [quick command](https://developers.google.com/workspace/chat/commands#types)." + "A user updates a widget in a card message or dialog. This event is triggered when a user interacts with a widget that has an associated action.", + "A user uses a Chat app [command](https://developers.google.com/workspace/chat/commands#types), including slash commands and quick commands." ], "type": "string" }, @@ -2643,6 +2643,13 @@ ], "type": "string" }, + "expressionData": { + "description": "The expression data for the card. Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons.", + "items": { + "$ref": "GoogleAppsCardV1ExpressionData" + }, + "type": "array" + }, "fixedFooter": { "$ref": "GoogleAppsCardV1CardFixedFooter", "description": "The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/workspace/chat/dialogs), but not [card messages](https://developers.google.com/workspace/chat/create-messages#create). [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):" @@ -2749,7 +2756,7 @@ "type": "object" }, "GoogleAppsCardV1Carousel": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): A carousel, also known as a slider, rotates and displays a list of widgets in a slideshow format, with buttons navigating to the previous or next widget. For example, this is a JSON representation of a carousel that contains three text paragraph widgets. ``` { \"carouselCards\": [ { \"widgets\": [ { \"textParagraph\": { \"text\": \"First text paragraph in carousel\", } } ] }, { \"widgets\": [ { \"textParagraph\": { \"text\": \"Second text paragraph in carousel\", } } ] }, { \"widgets\": [ { \"textParagraph\": { \"text\": \"Third text paragraph in carousel\", } } ] } ] } ``` [Google Chat apps](https://developers.google.com/workspace/chat):", + "description": "A carousel, also known as a slider, rotates and displays a list of widgets in a slideshow format, with buttons navigating to the previous or next widget. For example, this is a JSON representation of a carousel that contains three text paragraph widgets. ``` { \"carouselCards\": [ { \"widgets\": [ { \"textParagraph\": { \"text\": \"First text paragraph in carousel\", } } ] }, { \"widgets\": [ { \"textParagraph\": { \"text\": \"Second text paragraph in carousel\", } } ] }, { \"widgets\": [ { \"textParagraph\": { \"text\": \"Third text paragraph in carousel\", } } ] } ] } ``` [Google Chat apps](https://developers.google.com/workspace/chat):", "id": "GoogleAppsCardV1Carousel", "properties": { "carouselCards": { @@ -2763,7 +2770,7 @@ "type": "object" }, "GoogleAppsCardV1CarouselCard": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): A card that can be displayed as a carousel item. [Google Chat apps](https://developers.google.com/workspace/chat):", + "description": "A card that can be displayed as a carousel item. [Google Chat apps](https://developers.google.com/workspace/chat):", "id": "GoogleAppsCardV1CarouselCard", "properties": { "footerWidgets": { @@ -2948,10 +2955,55 @@ }, "type": "object" }, + "GoogleAppsCardV1CommonWidgetAction": { + "description": "Represents an action that is not specific to a widget. Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons.", + "id": "GoogleAppsCardV1CommonWidgetAction", + "properties": { + "updateVisibilityAction": { + "$ref": "GoogleAppsCardV1UpdateVisibilityAction", + "description": "The action to update the visibility of a widget." + } + }, + "type": "object" + }, + "GoogleAppsCardV1Condition": { + "description": "Represents a condition that can be used to trigger an action. Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons.", + "id": "GoogleAppsCardV1Condition", + "properties": { + "actionRuleId": { + "description": "The unique identifier of the ActionRule.", + "type": "string" + }, + "expressionDataCondition": { + "$ref": "GoogleAppsCardV1ExpressionDataCondition", + "description": "The condition that is determined by the expression data." + } + }, + "type": "object" + }, + "GoogleAppsCardV1DataSourceConfig": { + "description": "A configuration object that helps configure the data sources for a widget. Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons.", + "id": "GoogleAppsCardV1DataSourceConfig", + "properties": { + "platformDataSource": { + "$ref": "GoogleAppsCardV1PlatformDataSource", + "description": "The data is from a Google Workspace application." + }, + "remoteDataSource": { + "$ref": "GoogleAppsCardV1Action", + "description": "The data is from a remote data provider." + } + }, + "type": "object" + }, "GoogleAppsCardV1DateTimePicker": { "description": "Lets users input a date, a time, or both a date and a time. Supports form submission validation. When `Action.all_widgets_are_required` is set to `true` or this widget is specified in `Action.required_widgets`, the submission action is blocked unless a value is selected. For an example in Google Chat apps, see [Let a user pick a date and time](https://developers.google.com/workspace/chat/design-interactive-card-dialog#let_a_user_pick_a_date_and_time). Users can input text or use the picker to select dates and times. If users input an invalid date or time, the picker shows an error that prompts users to input the information correctly. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):", "id": "GoogleAppsCardV1DateTimePicker", "properties": { + "hostAppDataSource": { + "$ref": "HostAppDataSourceMarkup", + "description": "A data source that's unique to a Google Workspace host application, such as Gmail emails, Google Calendar events, or Google Chat messages. Only supported by Google Workspace Workflows, but not Google Chat API or Google Workspace Add-ons." + }, "label": { "description": "The text that prompts users to input a date, a time, or a date and time. For example, if users are scheduling an appointment, use a label such as `Appointment date` or `Appointment date and time`.", "type": "string" @@ -3045,6 +3097,78 @@ "properties": {}, "type": "object" }, + "GoogleAppsCardV1EventAction": { + "description": "Represents an actionthat can be performed on an ui element. Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons.", + "id": "GoogleAppsCardV1EventAction", + "properties": { + "actionRuleId": { + "description": "The unique identifier of the ActionRule.", + "type": "string" + }, + "commonWidgetAction": { + "$ref": "GoogleAppsCardV1CommonWidgetAction", + "description": "Common widget action." + }, + "postEventTriggers": { + "description": "The list of triggers that will be triggered after the EventAction is executed.", + "items": { + "$ref": "GoogleAppsCardV1Trigger" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleAppsCardV1ExpressionData": { + "description": "Represents the data that is used to evaluate an expression. Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons.", + "id": "GoogleAppsCardV1ExpressionData", + "properties": { + "conditions": { + "description": "The list of conditions that are determined by the expression evaluation result.", + "items": { + "$ref": "GoogleAppsCardV1Condition" + }, + "type": "array" + }, + "eventActions": { + "description": "The list of actions that the ExpressionData can be used.", + "items": { + "$ref": "GoogleAppsCardV1EventAction" + }, + "type": "array" + }, + "expression": { + "description": "The uncompiled expression.", + "type": "string" + }, + "id": { + "description": "The unique identifier of the ExpressionData.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleAppsCardV1ExpressionDataCondition": { + "description": "Represents a condition that is evaluated using CEL. Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons.", + "id": "GoogleAppsCardV1ExpressionDataCondition", + "properties": { + "conditionType": { + "description": "The type of the condition.", + "enum": [ + "CONDITION_TYPE_UNSPECIFIED", + "EXPRESSION_EVALUATION_SUCCESS", + "EXPRESSION_EVALUATION_FAILURE" + ], + "enumDescriptions": [ + "Unspecified condition type.", + "The expression evaluation was successful.", + "The expression evaluation was unsuccessful." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleAppsCardV1Grid": { "description": "Displays a grid with a collection of items. Items can only include text or images. For responsive columns, or to include more than text or images, use `Columns`. For an example in Google Chat apps, see [Display a Grid with a collection of items](https://developers.google.com/workspace/chat/format-structure-card-dialog#display_a_grid_with_a_collection_of_items). A grid supports any number of columns and items. The number of rows is determined by items divided by columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has 6 rows. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend): For example, the following JSON creates a 2 column grid with a single item: ``` \"grid\": { \"title\": \"A fine collection of items\", \"columnCount\": 2, \"borderStyle\": { \"type\": \"STROKE\", \"cornerRadius\": 4 }, \"items\": [ { \"image\": { \"imageUri\": \"https://www.example.com/image.png\", \"cropStyle\": { \"type\": \"SQUARE\" }, \"borderStyle\": { \"type\": \"STROKE\" } }, \"title\": \"An item\", \"textAlignment\": \"CENTER\" } ], \"onClick\": { \"openLink\": { \"url\": \"https://www.example.com\" } } } ```", "id": "GoogleAppsCardV1Grid", @@ -3246,7 +3370,7 @@ "type": "object" }, "GoogleAppsCardV1NestedWidget": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): A list of widgets that can be displayed in a containing layout, such as a `CarouselCard`. [Google Chat apps](https://developers.google.com/workspace/chat):", + "description": "A list of widgets that can be displayed in a containing layout, such as a `CarouselCard`. [Google Chat apps](https://developers.google.com/workspace/chat):", "id": "GoogleAppsCardV1NestedWidget", "properties": { "buttonList": { @@ -3402,6 +3526,10 @@ "description": "Text that appears at the top of a section. Supports simple HTML formatted text. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) and [Formatting text in Google Workspace add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "type": "string" }, + "id": { + "description": "A unique ID assigned to the section that's used to identify the section to be mutated. The ID has a character limit of 64 characters and should be in the format of `[a-zA-Z0-9-]+`. Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons.", + "type": "string" + }, "uncollapsibleWidgetsCount": { "description": "The number of uncollapsible widgets which remain visible even when a section is collapsed. For example, when a section contains five widgets and the `uncollapsibleWidgetsCount` is set to `2`, the first two widgets are always shown and the last three are collapsed by default. The `uncollapsibleWidgetsCount` is taken into account only when `collapsible` is `true`.", "format": "int32", @@ -3421,6 +3549,13 @@ "description": "A widget that creates one or more UI items that users can select. Supports form submission validation for `dropdown` and `multiselect` menus only. When `Action.all_widgets_are_required` is set to `true` or this widget is specified in `Action.required_widgets`, the submission action is blocked unless a value is selected. For example, a dropdown menu or checkboxes. You can use this widget to collect data that can be predicted or enumerated. For an example in Google Chat apps, see [Add selectable UI elements](/workspace/chat/design-interactive-card-dialog#add_selectable_ui_elements). Chat apps can process the value of items that users select or input. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data). To collect undefined or abstract data from users, use the TextInput widget. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):", "id": "GoogleAppsCardV1SelectionInput", "properties": { + "dataSourceConfigs": { + "description": "Optional. The data source configs for the selection control. This field provides more fine-grained control over the data source. If specified, the `multi_select_max_selected_items` field, `multi_select_min_query_length` field, `external_data_source` field and `platform_data_source` field are ignored. Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons.", + "items": { + "$ref": "GoogleAppsCardV1DataSourceConfig" + }, + "type": "array" + }, "externalDataSource": { "$ref": "GoogleAppsCardV1Action", "description": "An external data source, such as a relational database." @@ -3583,6 +3718,10 @@ "description": "Text that appears below the text input field meant to assist users by prompting them to enter a certain value. This text is always visible. Required if `label` is unspecified. Otherwise, optional.", "type": "string" }, + "hostAppDataSource": { + "$ref": "HostAppDataSourceMarkup", + "description": "A data source that's unique to a Google Workspace host application, such as Gmail emails, Google Calendar events, or Google Chat messages. Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons." + }, "initialSuggestions": { "$ref": "GoogleAppsCardV1Suggestions", "description": "Suggested values that users can enter. These values appear when users click inside the text input field. As users type, the suggested values dynamically filter to match what the users have typed. For example, a text input field for programming language might suggest Java, JavaScript, Python, and C++. When users start typing `Jav`, the list of suggestions filters to show just `Java` and `JavaScript`. Suggested values help guide users to enter values that your app can make sense of. When referring to JavaScript, some users might enter `javascript` and others `java script`. Suggesting `JavaScript` can standardize how users interact with your app. When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set to `MULTIPLE_LINE`. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):" @@ -3642,6 +3781,38 @@ }, "type": "object" }, + "GoogleAppsCardV1Trigger": { + "description": "Represents a trigger. Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons.", + "id": "GoogleAppsCardV1Trigger", + "properties": { + "actionRuleId": { + "description": "The unique identifier of the ActionRule.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleAppsCardV1UpdateVisibilityAction": { + "description": "Represents an action that updates the visibility of a widget. Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons.", + "id": "GoogleAppsCardV1UpdateVisibilityAction", + "properties": { + "visibility": { + "description": "The new visibility.", + "enum": [ + "VISIBILITY_UNSPECIFIED", + "VISIBLE", + "HIDDEN" + ], + "enumDescriptions": [ + "Unspecified visibility. Do not use.", + "The UI element is visible.", + "The UI element is hidden." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleAppsCardV1Validation": { "description": "Represents the necessary data for validating the widget it's attached to. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):", "id": "GoogleAppsCardV1Validation", @@ -3706,6 +3877,13 @@ "$ref": "GoogleAppsCardV1Divider", "description": "Displays a horizontal line divider between widgets. For example, the following JSON creates a divider: ``` \"divider\": { } ```" }, + "eventActions": { + "description": "Specifies the event actions that can be performed on the widget. Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons.", + "items": { + "$ref": "GoogleAppsCardV1EventAction" + }, + "type": "array" + }, "grid": { "$ref": "GoogleAppsCardV1Grid", "description": "Displays a grid with a collection of items. A grid supports any number of columns and items. The number of rows is determined by the upper bounds of the number items divided by the number of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has 6 rows. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend): For example, the following JSON creates a 2 column grid with a single item: ``` \"grid\": { \"title\": \"A fine collection of items\", \"columnCount\": 2, \"borderStyle\": { \"type\": \"STROKE\", \"cornerRadius\": 4 }, \"items\": [ { \"image\": { \"imageUri\": \"https://www.example.com/image.png\", \"cropStyle\": { \"type\": \"SQUARE\" }, \"borderStyle\": { \"type\": \"STROKE\" } }, \"title\": \"An item\", \"textAlignment\": \"CENTER\" } ], \"onClick\": { \"openLink\": { \"url\": \"https://www.example.com\" } } } ```" @@ -3726,6 +3904,10 @@ ], "type": "string" }, + "id": { + "description": "A unique ID assigned to the widget that's used to identify the widget to be mutated. The ID has a character limit of 64 characters and should be in the format of `[a-zA-Z0-9-]+` and. Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons.", + "type": "string" + }, "image": { "$ref": "GoogleAppsCardV1Image", "description": "Displays an image. For example, the following JSON creates an image with alternative text: ``` \"image\": { \"imageUrl\": \"https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png\", \"altText\": \"Chat app avatar\" } ```" @@ -3741,6 +3923,20 @@ "textParagraph": { "$ref": "GoogleAppsCardV1TextParagraph", "description": "Displays a text paragraph. Supports simple HTML formatted text. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) and [Formatting text in Google Workspace add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). For example, the following JSON creates a bolded text: ``` \"textParagraph\": { \"text\": \" *bold text*\" } ```" + }, + "visibility": { + "description": "Specifies whether the widget is visible or hidden. The default value is `VISIBLE`. Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons.", + "enum": [ + "VISIBILITY_UNSPECIFIED", + "VISIBLE", + "HIDDEN" + ], + "enumDescriptions": [ + "Unspecified visibility. Do not use.", + "The UI element is visible.", + "The UI element is hidden." + ], + "type": "string" } }, "type": "object" @@ -3796,12 +3992,16 @@ "type": "object" }, "HostAppDataSourceMarkup": { - "description": "For a `SelectionInput` widget that uses a multiselect menu, a data source from a Google Workspace application. The data source populates selection items for the multiselect menu. [Google Chat apps](https://developers.google.com/workspace/chat):", + "description": "A data source from a Google Workspace application. The data source populates available items for a widget.", "id": "HostAppDataSourceMarkup", "properties": { "chatDataSource": { "$ref": "ChatClientDataSourceMarkup", "description": "A data source from Google Chat." + }, + "workflowDataSource": { + "$ref": "WorkflowDataSourceMarkup", + "description": "A data source from Google Workflow." } }, "type": "object" @@ -4486,7 +4686,7 @@ }, "quotedMessageMetadata": { "$ref": "QuotedMessageMetadata", - "description": "Optional. Information about a message that's quoted by a Google Chat user in a space. Google Chat users can quote a message to reply to it." + "description": "Optional. Information about a message that another message quotes. When you create a message, you can quote messages within the same thread, or quote a root message to create a new root message. However, you can't quote a message reply from a different thread. When you update a message, you can't add or replace the `quotedMessageMetadata` field, but you can remove it. For example usage, see [Quote another message](https://developers.google.com/workspace/chat/create-messages#quote-a-message)." }, "sender": { "$ref": "User", @@ -4676,11 +4876,11 @@ "type": "object" }, "QuotedMessageMetadata": { - "description": "Information about a quoted message.", + "description": "Information about a message that another message quotes. When you create a message, you can quote messages within the same thread, or quote a root message to create a new root message. However, you can't quote a message reply from a different thread. When you update a message, you can't add or replace the `quotedMessageMetadata` field, but you can remove it. For example usage, see [Quote another message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).", "id": "QuotedMessageMetadata", "properties": { "lastUpdateTime": { - "description": "Required. The timestamp when the quoted message was created or when the quoted message was last updated.", + "description": "Required. The timestamp when the quoted message was created or when the quoted message was last updated. If the message was edited, use this field, `last_update_time`. If the message was never edited, use `create_time`. If `last_update_time` doesn't match the latest version of the quoted message, the request fails.", "format": "google-datetime", "type": "string" }, @@ -4952,7 +5152,7 @@ "type": "string" }, "customer": { - "description": "Optional. Immutable. The customer id of the domain of the space. Required only when creating a space with [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and `SpaceType` is `SPACE`, otherwise should not be set. In the format `customers/{customer}`, where `customer` is the `id` from the [Admin SDK customer resource]( https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). Private apps can also use the `customers/my_customer` alias to create the space in the same Google Workspace organization as the app. For DMs, this field isn't populated.", + "description": "Optional. Immutable. The customer id of the domain of the space. Required only when creating a space with [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and `SpaceType` is `SPACE`, otherwise should not be set. In the format `customers/{customer}`, where `customer` is the `id` from the [Admin SDK customer resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). Private apps can also use the `customers/my_customer` alias to create the space in the same Google Workspace organization as the app. For DMs, this field isn't populated.", "type": "string" }, "displayName": { @@ -5549,6 +5749,33 @@ } }, "type": "object" + }, + "WorkflowDataSourceMarkup": { + "description": "* Only supported by Google Workspace Workflow, but not Google Chat apps or Google Workspace add-ons. In a `TextInput` or `SelectionInput` widget with MULTI_SELECT type or a `DateTimePicker`, provide data source from Google.", + "id": "WorkflowDataSourceMarkup", + "properties": { + "includeVariables": { + "description": "Whether to include variables from the previous step in the data source.", + "type": "boolean" + }, + "type": { + "description": "The type of data source.", + "enum": [ + "UNKNOWN", + "USER", + "SPACE", + "USER_WITH_FREE_FORM" + ], + "enumDescriptions": [ + "Default value. Don't use.", + "Google Workspace users. The user can only view and select users from their Google Workspace organization.", + "Google Chat spaces that the user is a member of.", + "Users can choose to view and select existing members from their Google Workspace organization or manually enter an email address or a valid domain." + ], + "type": "string" + } + }, + "type": "object" } } } diff --git a/discovery/googleapis/chromemanagement__v1.json b/discovery/googleapis/chromemanagement__v1.json index 4f698818e..389dd7b38 100644 --- a/discovery/googleapis/chromemanagement__v1.json +++ b/discovery/googleapis/chromemanagement__v1.json @@ -37,7 +37,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250730", + "revision": "20250820", "rootUrl": "https://chromemanagement.googleapis.com/", "servicePath": "", "title": "Chrome Management API", @@ -5271,6 +5271,16 @@ "readOnly": true, "type": "string" }, + "scepCaConnection": { + "$ref": "GoogleChromeManagementVersionsV1ScepCaConnection", + "description": "Output only. The CA connection is a SCEP CA connection.", + "readOnly": true + }, + "scepProfile": { + "$ref": "GoogleChromeManagementVersionsV1ScepProfile", + "description": "Output only. The profile is a SCEP certificate provisioning profile.", + "readOnly": true + }, "signData": { "description": "Output only. The data that the client was asked to sign. This field is only present after the `SignData` operation has been initiated.", "format": "byte", @@ -5287,11 +5297,13 @@ "description": "Output only. The signature algorithm that the adapter expects the client and backend components to use when processing `sign_data`. This field is only present after the `SignData` operation has been initiated.", "enum": [ "SIGNATURE_ALGORITHM_UNSPECIFIED", - "SIGNATURE_ALGORITHM_RSA_PKCS1_V1_5_SHA256" + "SIGNATURE_ALGORITHM_RSA_PKCS1_V1_5_SHA256", + "SIGNATURE_ALGORITHM_ECDSA_SHA256" ], "enumDescriptions": [ "Default value. This value is unused.", - "The server-side builds the PKCS#1 DigestInfo, i.e., the SHA256 hash is constructed on the server-side. The client should sign using RSA with PKCS#1 v1.5 padding." + "The server-side builds the PKCS#1 DigestInfo, i.e., the SHA256 hash is constructed on the server-side. The client should sign using RSA with PKCS#1 v1.5 padding.", + "The PKCS#1 digest info is built by the server-side and sent to the client unhashed. The client is responsible for signing and hashing. Uses the P-256 curve." ], "readOnly": true, "type": "string" @@ -5985,6 +5997,89 @@ }, "type": "object" }, + "GoogleChromeManagementVersionsV1ScepCaConnection": { + "description": "Describes a SCEP Certificate Authority Connection.", + "id": "GoogleChromeManagementVersionsV1ScepCaConnection", + "properties": { + "caConnectionAdapterConfigReference": { + "description": "Output only. A string that references the administrator-provided configuration for the certification authority service. This field can be missing if no configuration was given.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleChromeManagementVersionsV1ScepProfile": { + "description": "Describes a SCEP certificate provisioning profile.", + "id": "GoogleChromeManagementVersionsV1ScepProfile", + "properties": { + "certificateTemplateName": { + "description": "Output only. The certificate template name as defined by the admin on their on-prem infrastructure. This is identifiable by the customer's CA.", + "readOnly": true, + "type": "string" + }, + "country": { + "description": "Output only. The country of the subject.", + "readOnly": true, + "type": "string" + }, + "keyUsages": { + "description": "Output only. The allowed key usages for certificate's key.", + "items": { + "enum": [ + "KEY_USAGE_UNSPECIFIED", + "KEY_USAGE_SIGNING", + "KEY_USAGE_KEY_ENCIPHERMENT" + ], + "enumDescriptions": [ + "The key usage is unspecified.", + "The key can be used for signing.", + "The key can be used for key encipherment." + ], + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "locality": { + "description": "Output only. The locality of the subject.", + "readOnly": true, + "type": "string" + }, + "organization": { + "description": "Output only. The name of the organization the subject belongs to.", + "readOnly": true, + "type": "string" + }, + "organizationalUnits": { + "description": "Output only. The organizational units of the subject.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "state": { + "description": "Output only. The state of the subject.", + "readOnly": true, + "type": "string" + }, + "subjectAltNames": { + "description": "Output only. The subject alternative names.", + "items": { + "$ref": "GoogleChromeManagementVersionsV1SubjectAltName" + }, + "readOnly": true, + "type": "array" + }, + "subjectCommonName": { + "description": "Output only. The common name of the subject.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleChromeManagementVersionsV1SignDataMetadata": { "description": "Metadata for the long-running operation returned by signData.", "id": "GoogleChromeManagementVersionsV1SignDataMetadata", @@ -6010,6 +6105,37 @@ }, "type": "object" }, + "GoogleChromeManagementVersionsV1SubjectAltName": { + "description": "Describes a subject alternative name.", + "id": "GoogleChromeManagementVersionsV1SubjectAltName", + "properties": { + "type": { + "description": "Output only. The type of the SubjectAltName extension.", + "enum": [ + "SUBJECT_ALT_NAME_TYPE_UNSPECIFIED", + "RFC822_NAME", + "DNS_NAME", + "OTHER_NAME_USER_PRINCIPAL_NAME", + "UNIFORM_RESOURCE_IDENTIFIER" + ], + "enumDescriptions": [ + "The subject alternative name type is unspecified.", + "The subject alternative name type is an email address adhering to RFC822.", + "The subject alternative name type is a a Domain Name System (DNS).", + "The subject alternative name type is a User Principal Name (UPN).", + "The subject alternative name type is a Uniform Resource Identifier (URI)." + ], + "readOnly": true, + "type": "string" + }, + "value": { + "description": "Output only. The value of the subject alternative name with respoect to the `type`.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleChromeManagementVersionsV1ThirdPartyProfileUser": { "description": "A representation of non-Google (third party) user that is associated with a managed Chrome profile.", "id": "GoogleChromeManagementVersionsV1ThirdPartyProfileUser", diff --git a/discovery/googleapis/classroom__v1.json b/discovery/googleapis/classroom__v1.json index 19c5a9c0f..98d2cc6d6 100644 --- a/discovery/googleapis/classroom__v1.json +++ b/discovery/googleapis/classroom__v1.json @@ -93,7 +93,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250526", + "revision": "20250827", "rootUrl": "https://classroom.googleapis.com/", "servicePath": "", "title": "Google Classroom API", @@ -179,7 +179,7 @@ "courses": { "methods": { "create": { - "description": "Creates a course. The user specified in `ownerId` is the owner of the created course and added as a teacher. A non-admin requesting user can only create a course with themselves as the owner. Domain admins can create courses owned by any user within their domain. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create courses or for access errors. * `NOT_FOUND` if the primary teacher is not a valid user. * `FAILED_PRECONDITION` if the course owner's account is disabled or for the following request errors: * UserCannotOwnCourse * UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if an alias was specified in the `id` and already exists.", + "description": "Creates a course. The user specified in `ownerId` is the owner of the created course and added as a teacher. A non-admin requesting user can only create a course with themselves as the owner. Domain admins can create courses owned by any user within their domain. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create courses or for access errors. * `NOT_FOUND` if the primary teacher is not a valid user. * `FAILED_PRECONDITION` if the course owner's account is disabled or for the following request errors: * UserCannotOwnCourse * UserGroupsMembershipLimitReached * CourseTitleCannotContainUrl * `ALREADY_EXISTS` if an alias was specified in the `id` and already exists.", "flatPath": "v1/courses", "httpMethod": "POST", "id": "classroom.courses.create", @@ -331,7 +331,7 @@ ] }, "patch": { - "description": "Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * InactiveCourseOwner * IneligibleOwner", + "description": "Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * InactiveCourseOwner * IneligibleOwner * CourseTitleCannotContainUrl", "flatPath": "v1/courses/{id}", "httpMethod": "PATCH", "id": "classroom.courses.patch", @@ -364,7 +364,7 @@ ] }, "update": { - "description": "Updates a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable", + "description": "Updates a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * CourseTitleCannotContainUrl", "flatPath": "v1/courses/{id}", "httpMethod": "PUT", "id": "classroom.courses.update", @@ -723,7 +723,7 @@ ] }, "modifyAssignees": { - "description": "Modifies assignee mode and options of an announcement. Only a teacher of the course that contains the announcement may call this method. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or course work does not exist.", + "description": "Modifies assignee mode and options of an announcement. Only a teacher of the course that contains the announcement may call this method. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or course work does not exist. * `FAILED_PRECONDITION` for the following request error: * EmptyAssignees", "flatPath": "v1/courses/{courseId}/announcements/{id}:modifyAssignees", "httpMethod": "POST", "id": "classroom.courses.announcements.modifyAssignees", @@ -1243,7 +1243,7 @@ ] }, "modifyAssignees": { - "description": "Modifies assignee mode and options of a coursework. Only a teacher of the course that contains the coursework may call this method. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or course work does not exist.", + "description": "Modifies assignee mode and options of a coursework. Only a teacher of the course that contains the coursework may call this method. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or course work does not exist. * `FAILED_PRECONDITION` for the following request error: * EmptyAssignees", "flatPath": "v1/courses/{courseId}/courseWork/{id}:modifyAssignees", "httpMethod": "POST", "id": "classroom.courses.courseWork.modifyAssignees", diff --git a/discovery/googleapis/cloudbuild__v1.json b/discovery/googleapis/cloudbuild__v1.json index def406f1e..66b5571ab 100644 --- a/discovery/googleapis/cloudbuild__v1.json +++ b/discovery/googleapis/cloudbuild__v1.json @@ -252,7 +252,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250718", + "revision": "20250903", "rootUrl": "https://cloudbuild.googleapis.com/", "servicePath": "", "title": "Cloud Build API", @@ -4913,7 +4913,7 @@ "id": "NpmPackage", "properties": { "packagePath": { - "description": "Path to the package.json. e.g. workspace/path/to/package", + "description": "Optional. Path to the package.json. e.g. workspace/path/to/package Only one of `archive` or `package_path` can be specified.", "type": "string" }, "repository": { @@ -5866,6 +5866,10 @@ "format": "int64", "type": "string" }, + "enableNestedVirtualization": { + "description": "Optional. Enable nested virtualization on the worker, if supported by the machine type. By default, nested virtualization is disabled.", + "type": "boolean" + }, "machineType": { "description": "Optional. Machine type of a worker, such as `e2-medium`. See [Worker pool config file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). If left blank, Cloud Build will use a sensible default.", "type": "string" diff --git a/discovery/googleapis/cloudbuild__v2.json b/discovery/googleapis/cloudbuild__v2.json index b694c6ef4..d16b6110a 100644 --- a/discovery/googleapis/cloudbuild__v2.json +++ b/discovery/googleapis/cloudbuild__v2.json @@ -252,7 +252,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250718", + "revision": "20250903", "rootUrl": "https://cloudbuild.googleapis.com/", "servicePath": "", "title": "Cloud Build API", @@ -375,7 +375,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/cloudchannel__v1.json b/discovery/googleapis/cloudchannel__v1.json index f13d4d403..0668cae04 100644 --- a/discovery/googleapis/cloudchannel__v1.json +++ b/discovery/googleapis/cloudchannel__v1.json @@ -28,7 +28,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250614", + "revision": "20250809", "rootUrl": "https://cloudchannel.googleapis.com/", "servicePath": "", "title": "Cloud Channel API", @@ -3037,6 +3037,42 @@ }, "type": "object" }, + "GoogleCloudChannelV1DiscountComponent": { + "description": "Represents a single component of the total discount applicable on a Price.", + "id": "GoogleCloudChannelV1DiscountComponent", + "properties": { + "discountAbsolute": { + "$ref": "GoogleTypeMoney", + "description": "Fixed value discount." + }, + "discountPercentage": { + "description": "Discount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2.", + "format": "double", + "type": "number" + }, + "discountType": { + "description": "Type of the discount.", + "enum": [ + "DISCOUNT_TYPE_UNSPECIFIED", + "REGIONAL_DISCOUNT", + "PROMOTIONAL_DISCOUNT", + "SALES_DISCOUNT", + "RESELLER_MARGIN", + "DEAL_CODE" + ], + "enumDescriptions": [ + "Not used.", + "Regional discount.", + "Promotional discount.", + "Sales-provided discount.", + "Reseller margin.", + "Deal code discount." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudChannelV1EduData": { "description": "Required Edu Attributes", "id": "GoogleCloudChannelV1EduData", @@ -4159,6 +4195,13 @@ "format": "double", "type": "number" }, + "discountComponents": { + "description": "Breakdown of the discount into its components. This will be empty if there is no discount present.", + "items": { + "$ref": "GoogleCloudChannelV1DiscountComponent" + }, + "type": "array" + }, "effectivePrice": { "$ref": "GoogleTypeMoney", "description": "Effective Price after applying the discounts." @@ -4166,6 +4209,10 @@ "externalPriceUri": { "description": "Link to external price list, such as link to Google Voice rate card.", "type": "string" + }, + "pricePeriod": { + "$ref": "GoogleCloudChannelV1Period", + "description": "The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc." } }, "type": "object" diff --git a/discovery/googleapis/clouddeploy__v1.json b/discovery/googleapis/clouddeploy__v1.json index f0755147c..c7fff9758 100644 --- a/discovery/googleapis/clouddeploy__v1.json +++ b/discovery/googleapis/clouddeploy__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250416", + "revision": "20250813", "rootUrl": "https://clouddeploy.googleapis.com/", "servicePath": "", "title": "Cloud Deploy API", @@ -173,7 +173,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/cloudfunctions__v1.json b/discovery/googleapis/cloudfunctions__v1.json index a1ab5fbbf..99750d634 100644 --- a/discovery/googleapis/cloudfunctions__v1.json +++ b/discovery/googleapis/cloudfunctions__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250430", + "revision": "20250908", "rootUrl": "https://cloudfunctions.googleapis.com/", "servicePath": "", "title": "Cloud Functions API", @@ -189,7 +189,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/cloudfunctions__v2.json b/discovery/googleapis/cloudfunctions__v2.json index ccccf000d..fc0917d6a 100644 --- a/discovery/googleapis/cloudfunctions__v2.json +++ b/discovery/googleapis/cloudfunctions__v2.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250424", + "revision": "20250908", "rootUrl": "https://cloudfunctions.googleapis.com/", "servicePath": "", "title": "Cloud Functions API", @@ -123,7 +123,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -2142,6 +2142,7 @@ "enum": [ "UPGRADE_STATE_UNSPECIFIED", "ELIGIBLE_FOR_2ND_GEN_UPGRADE", + "INELIGIBLE_FOR_UPGRADE_UNTIL_REDEPLOYMENT", "UPGRADE_OPERATION_IN_PROGRESS", "SETUP_FUNCTION_UPGRADE_CONFIG_SUCCESSFUL", "SETUP_FUNCTION_UPGRADE_CONFIG_ERROR", @@ -2153,7 +2154,8 @@ ], "enumDescriptions": [ "Unspecified state. Most functions are in this upgrade state.", - "Functions in this state are eligible for 1st Gen -> 2nd Gen upgrade.", + "Functions in this state are eligible for 1st Gen upgrade.", + "Functions in this state are ineligible for 1st Gen upgrade until redeployment with newer runtime.", "An upgrade related operation is in progress.", "SetupFunctionUpgradeConfig API was successful and a 2nd Gen function has been created based on 1st Gen function instance.", "SetupFunctionUpgradeConfig API was un-successful.", diff --git a/discovery/googleapis/cloudidentity__v1.json b/discovery/googleapis/cloudidentity__v1.json index 4d6b28060..68422ac61 100644 --- a/discovery/googleapis/cloudidentity__v1.json +++ b/discovery/googleapis/cloudidentity__v1.json @@ -52,7 +52,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250701", + "revision": "20250805", "rootUrl": "https://cloudidentity.googleapis.com/", "servicePath": "", "title": "Cloud Identity API", @@ -1609,6 +1609,151 @@ } } }, + "inboundOidcSsoProfiles": { + "methods": { + "create": { + "description": "Creates an InboundOidcSsoProfile for a customer. When the target customer has enabled [Multi-party approval for sensitive actions](https://support.google.com/a/answer/13790448), the `Operation` in the response will have `\"done\": false`, it will not have a response, and the metadata will have `\"state\": \"awaiting-multi-party-approval\"`.", + "flatPath": "v1/inboundOidcSsoProfiles", + "httpMethod": "POST", + "id": "cloudidentity.inboundOidcSsoProfiles.create", + "parameterOrder": [], + "parameters": {}, + "path": "v1/inboundOidcSsoProfiles", + "request": { + "$ref": "InboundOidcSsoProfile" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.inboundsso", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an InboundOidcSsoProfile.", + "flatPath": "v1/inboundOidcSsoProfiles/{inboundOidcSsoProfilesId}", + "httpMethod": "DELETE", + "id": "cloudidentity.inboundOidcSsoProfiles.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of the InboundOidcSsoProfile to delete. Format: `inboundOidcSsoProfiles/{sso_profile_id}`", + "location": "path", + "pattern": "^inboundOidcSsoProfiles/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.inboundsso", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an InboundOidcSsoProfile.", + "flatPath": "v1/inboundOidcSsoProfiles/{inboundOidcSsoProfilesId}", + "httpMethod": "GET", + "id": "cloudidentity.inboundOidcSsoProfiles.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of the InboundOidcSsoProfile to get. Format: `inboundOidcSsoProfiles/{sso_profile_id}`", + "location": "path", + "pattern": "^inboundOidcSsoProfiles/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "InboundOidcSsoProfile" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.inboundsso", + "https://www.googleapis.com/auth/cloud-identity.inboundsso.readonly", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists InboundOidcSsoProfile objects for a Google enterprise customer.", + "flatPath": "v1/inboundOidcSsoProfiles", + "httpMethod": "GET", + "id": "cloudidentity.inboundOidcSsoProfiles.list", + "parameterOrder": [], + "parameters": { + "filter": { + "description": "A [Common Expression Language](https://github.com/google/cel-spec) expression to filter the results. The only supported filter is filtering by customer. For example: `customer==\"customers/C0123abc\"`. Omitting the filter or specifying a filter of `customer==\"customers/my_customer\"` will return the profiles for the customer that the caller (authenticated user) belongs to. Specifying a filter of `customer==\"\"` will return the global shared OIDC profiles.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of InboundOidcSsoProfiles to return. The service may return fewer than this value. If omitted (or defaulted to zero) the server will use a sensible default. This default may change over time. The maximum allowed value is 100. Requests with page_size greater than that will be silently interpreted as having this maximum value.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListInboundOidcSsoProfiles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListInboundOidcSsoProfiles` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/inboundOidcSsoProfiles", + "response": { + "$ref": "ListInboundOidcSsoProfilesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.inboundsso", + "https://www.googleapis.com/auth/cloud-identity.inboundsso.readonly", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an InboundOidcSsoProfile. When the target customer has enabled [Multi-party approval for sensitive actions](https://support.google.com/a/answer/13790448), the `Operation` in the response will have `\"done\": false`, it will not have a response, and the metadata will have `\"state\": \"awaiting-multi-party-approval\"`.", + "flatPath": "v1/inboundOidcSsoProfiles/{inboundOidcSsoProfilesId}", + "httpMethod": "PATCH", + "id": "cloudidentity.inboundOidcSsoProfiles.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. [Resource name](https://cloud.google.com/apis/design/resource_names) of the OIDC SSO profile.", + "location": "path", + "pattern": "^inboundOidcSsoProfiles/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "InboundOidcSsoProfile" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.inboundsso", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "inboundSamlSsoProfiles": { "methods": { "create": { @@ -2135,6 +2280,17 @@ "properties": {}, "type": "object" }, + "CreateInboundOidcSsoProfileOperationMetadata": { + "description": "LRO response metadata for InboundOidcSsoProfilesService.CreateInboundOidcSsoProfile.", + "id": "CreateInboundOidcSsoProfileOperationMetadata", + "properties": { + "state": { + "description": "State of this Operation Will be \"awaiting-multi-party-approval\" when the operation is deferred due to the target customer having enabled [Multi-party approval for sensitive actions](https://support.google.com/a/answer/13790448).", + "type": "string" + } + }, + "type": "object" + }, "CreateInboundSamlSsoProfileOperationMetadata": { "description": "LRO response metadata for InboundSamlSsoProfilesService.CreateInboundSamlSsoProfile.", "id": "CreateInboundSamlSsoProfileOperationMetadata", @@ -2170,6 +2326,12 @@ "properties": {}, "type": "object" }, + "DeleteInboundOidcSsoProfileOperationMetadata": { + "description": "LRO response metadata for InboundOidcSsoProfilesService.DeleteInboundOidcSsoProfile.", + "id": "DeleteInboundOidcSsoProfileOperationMetadata", + "properties": {}, + "type": "object" + }, "DeleteInboundSamlSsoProfileOperationMetadata": { "description": "LRO response metadata for InboundSamlSsoProfilesService.DeleteInboundSamlSsoProfile.", "id": "DeleteInboundSamlSsoProfileOperationMetadata", @@ -3496,6 +3658,34 @@ }, "type": "object" }, + "InboundOidcSsoProfile": { + "description": "An [OIDC](https://openid.net/developers/how-connect-works/) federation between a Google enterprise customer and an OIDC identity provider.", + "id": "InboundOidcSsoProfile", + "properties": { + "customer": { + "description": "Immutable. The customer. For example: `customers/C0123abc`.", + "type": "string" + }, + "displayName": { + "description": "Human-readable name of the OIDC SSO profile.", + "type": "string" + }, + "idpConfig": { + "$ref": "OidcIdpConfig", + "description": "OIDC identity provider configuration." + }, + "name": { + "description": "Output only. [Resource name](https://cloud.google.com/apis/design/resource_names) of the OIDC SSO profile.", + "readOnly": true, + "type": "string" + }, + "rpConfig": { + "$ref": "OidcRpConfig", + "description": "OIDC relying party (RP) configuration for this OIDC SSO profile. These are the RP details provided by Google that should be configured on the corresponding identity provider." + } + }, + "type": "object" + }, "InboundSamlSsoProfile": { "description": "A [SAML 2.0](https://www.oasis-open.org/standards#samlv2.0) federation between a Google enterprise customer and a SAML identity provider.", "id": "InboundSamlSsoProfile", @@ -3537,6 +3727,10 @@ "readOnly": true, "type": "string" }, + "oidcSsoInfo": { + "$ref": "OidcSsoInfo", + "description": "OpenID Connect SSO details. Must be set if and only if `sso_mode` is set to `OIDC_SSO`." + }, "rank": { "description": "Must be zero (which is the default value so it can be omitted) for assignments with `target_org_unit` set and must be greater-than-or-equal-to one for assignments with `target_group` set.", "format": "int32", @@ -3556,12 +3750,14 @@ "SSO_MODE_UNSPECIFIED", "SSO_OFF", "SAML_SSO", + "OIDC_SSO", "DOMAIN_WIDE_SAML_IF_ENABLED" ], "enumDescriptions": [ "Not allowed.", "Disable SSO for the targeted users.", "Use an external SAML Identity Provider for SSO for the targeted users.", + "Use an external OIDC Identity Provider for SSO for the targeted users.", "Use the domain-wide SAML Identity Provider for the targeted users if one is configured; otherwise, this is equivalent to `SSO_OFF`. Note that this will also be equivalent to `SSO_OFF` if/when support for domain-wide SAML is removed. Google may disallow this mode at that point and existing assignments with this mode may be automatically changed to `SSO_OFF`." ], "type": "string" @@ -3624,6 +3820,24 @@ }, "type": "object" }, + "ListInboundOidcSsoProfilesResponse": { + "description": "Response of the InboundOidcSsoProfilesService.ListInboundOidcSsoProfiles method.", + "id": "ListInboundOidcSsoProfilesResponse", + "properties": { + "inboundOidcSsoProfiles": { + "description": "List of InboundOidcSsoProfiles.", + "items": { + "$ref": "InboundOidcSsoProfile" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "ListInboundSamlSsoProfilesResponse": { "description": "Response of the InboundSamlSsoProfilesService.ListInboundSamlSsoProfiles method.", "id": "ListInboundSamlSsoProfilesResponse", @@ -4014,6 +4228,55 @@ }, "type": "object" }, + "OidcIdpConfig": { + "description": "OIDC IDP (identity provider) configuration.", + "id": "OidcIdpConfig", + "properties": { + "changePasswordUri": { + "description": "The **Change Password URL** of the identity provider. Users will be sent to this URL when changing their passwords at `myaccount.google.com`. This takes precedence over the change password URL configured at customer-level. Must use `HTTPS`.", + "type": "string" + }, + "issuerUri": { + "description": "Required. The Issuer identifier for the IdP. Must be a URL. The discovery URL will be derived from this as described in Section 4 of [the OIDC specification](https://openid.net/specs/openid-connect-discovery-1_0.html).", + "type": "string" + } + }, + "type": "object" + }, + "OidcRpConfig": { + "description": "OIDC RP (relying party) configuration.", + "id": "OidcRpConfig", + "properties": { + "clientId": { + "description": "OAuth2 client ID for OIDC.", + "type": "string" + }, + "clientSecret": { + "description": "Input only. OAuth2 client secret for OIDC.", + "type": "string" + }, + "redirectUris": { + "description": "Output only. The URL(s) that this client may use in authentication requests.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "OidcSsoInfo": { + "description": "Details that are applicable when `sso_mode` is set to `OIDC_SSO`.", + "id": "OidcSsoInfo", + "properties": { + "inboundOidcSsoProfile": { + "description": "Required. Name of the `InboundOidcSsoProfile` to use. Must be of the form `inboundOidcSsoProfiles/{inbound_oidc_sso_profile}`. ", + "type": "string" + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -4389,6 +4652,17 @@ "properties": {}, "type": "object" }, + "UpdateInboundOidcSsoProfileOperationMetadata": { + "description": "LRO response metadata for InboundOidcSsoProfilesService.UpdateInboundOidcSsoProfile.", + "id": "UpdateInboundOidcSsoProfileOperationMetadata", + "properties": { + "state": { + "description": "State of this Operation Will be \"awaiting-multi-party-approval\" when the operation is deferred due to the target customer having enabled [Multi-party approval for sensitive actions](https://support.google.com/a/answer/13790448).", + "type": "string" + } + }, + "type": "object" + }, "UpdateInboundSamlSsoProfileOperationMetadata": { "description": "LRO response metadata for InboundSamlSsoProfilesService.UpdateInboundSamlSsoProfile.", "id": "UpdateInboundSamlSsoProfileOperationMetadata", diff --git a/discovery/googleapis/cloudkms__v1.json b/discovery/googleapis/cloudkms__v1.json index 10f13e4a8..caaafb2b7 100644 --- a/discovery/googleapis/cloudkms__v1.json +++ b/discovery/googleapis/cloudkms__v1.json @@ -120,7 +120,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250523", + "revision": "20250818", "rootUrl": "https://cloudkms.googleapis.com/", "servicePath": "", "title": "Cloud Key Management Service (KMS) API", @@ -268,7 +268,7 @@ ], "parameters": { "name": { - "description": "Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.", + "description": "Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` `projects/{PROJECT_NUMBER}/autokeyConfig`.", "location": "path", "pattern": "^folders/[^/]+/autokeyConfig$", "required": true, @@ -631,7 +631,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1799,6 +1799,35 @@ "https://www.googleapis.com/auth/cloudkms" ] }, + "decapsulate": { + "description": "Decapsulates data that was encapsulated with a public key retrieved from GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose KEY_ENCAPSULATION.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId}:decapsulate", + "httpMethod": "POST", + "id": "cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.decapsulate", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the CryptoKeyVersion to use for decapsulation.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+/cryptoKeys/[^/]+/cryptoKeyVersions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:decapsulate", + "request": { + "$ref": "DecapsulateRequest" + }, + "response": { + "$ref": "DecapsulateResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloudkms" + ] + }, "destroy": { "description": "Schedule a CryptoKeyVersion for destruction. Upon calling this method, CryptoKeyVersion.state will be set to DESTROY_SCHEDULED, and destroy_time will be set to the time destroy_scheduled_duration in the future. At that time, the state will automatically change to DESTROYED, and the key material will be irrevocably destroyed. Before the destroy_time is reached, RestoreCryptoKeyVersion may be called to reverse the process.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId}:destroy", @@ -1875,12 +1904,16 @@ "enum": [ "PUBLIC_KEY_FORMAT_UNSPECIFIED", "PEM", - "NIST_PQC" + "DER", + "NIST_PQC", + "XWING_RAW_BYTES" ], "enumDescriptions": [ "If the public_key_format field is not specified: - For PQC algorithms, an error will be returned. - For non-PQC algorithms, the default format is PEM, and the field pem will be populated. Otherwise, the public key will be exported through the public_key field in the requested format.", "The returned public key will be encoded in PEM format. See the [RFC7468](https://tools.ietf.org/html/rfc7468) sections for [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and [Textual Encoding of Subject Public Key Info] (https://tools.ietf.org/html/rfc7468#section-13) for more information.", - "This is supported only for PQC algorithms. The key material is returned in the format defined by NIST PQC standards (FIPS 203, FIPS 204, and FIPS 205)." + "The returned public key will be encoded in DER format (the PrivateKeyInfo structure from RFC 5208).", + "This is supported only for PQC algorithms. The key material is returned in the format defined by NIST PQC standards (FIPS 203, FIPS 204, and FIPS 205).", + "The returned public key is in raw bytes format defined in its standard https://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem." ], "location": "query", "type": "string" @@ -2585,7 +2618,7 @@ "type": "object" }, "AutokeyConfig": { - "description": "Cloud KMS Autokey configuration for a folder.", + "description": "Cloud KMS Autokey configuration for a folder or project.", "id": "AutokeyConfig", "properties": { "etag": { @@ -2597,7 +2630,7 @@ "type": "string" }, "name": { - "description": "Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.", + "description": "Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` `projects/{PROJECT_NUMBER}/autokeyConfig`.", "type": "string" }, "state": { @@ -2801,7 +2834,8 @@ "ASYMMETRIC_SIGN", "ASYMMETRIC_DECRYPT", "RAW_ENCRYPT_DECRYPT", - "MAC" + "MAC", + "KEY_ENCAPSULATION" ], "enumDescriptions": [ "Not specified.", @@ -2809,7 +2843,8 @@ "CryptoKeys with this purpose may be used with AsymmetricSign and GetPublicKey.", "CryptoKeys with this purpose may be used with AsymmetricDecrypt and GetPublicKey.", "CryptoKeys with this purpose may be used with RawEncrypt and RawDecrypt. This purpose is meant to be used for interoperable symmetric encryption and does not support automatic CryptoKey rotation.", - "CryptoKeys with this purpose may be used with MacSign." + "CryptoKeys with this purpose may be used with MacSign.", + "CryptoKeys with this purpose may be used with GetPublicKey and Decapsulate." ], "type": "string" }, @@ -2868,6 +2903,9 @@ "HMAC_SHA512", "HMAC_SHA224", "EXTERNAL_SYMMETRIC_ENCRYPTION", + "ML_KEM_768", + "ML_KEM_1024", + "KEM_XWING", "PQ_SIGN_ML_DSA_65", "PQ_SIGN_SLH_DSA_SHA2_128S", "PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256" @@ -2909,6 +2947,9 @@ "HMAC-SHA512 signing with a 512 bit key.", "HMAC-SHA224 signing with a 224 bit key.", "Algorithm representing symmetric encryption by an external key manager.", + "ML-KEM-768 (FIPS 203)", + "ML-KEM-1024 (FIPS 203)", + "X-Wing hybrid KEM combining ML-KEM-768 with X25519 following datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem/.", "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 3. Randomized version.", "The post-quantum stateless hash-based digital signature algorithm, at security level 1. Randomized version.", "The post-quantum stateless hash-based digital signature algorithm, at security level 1. Randomized pre-hash version supporting SHA256 digests." @@ -3080,6 +3121,9 @@ "HMAC_SHA512", "HMAC_SHA224", "EXTERNAL_SYMMETRIC_ENCRYPTION", + "ML_KEM_768", + "ML_KEM_1024", + "KEM_XWING", "PQ_SIGN_ML_DSA_65", "PQ_SIGN_SLH_DSA_SHA2_128S", "PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256" @@ -3121,6 +3165,9 @@ "HMAC-SHA512 signing with a 512 bit key.", "HMAC-SHA224 signing with a 224 bit key.", "Algorithm representing symmetric encryption by an external key manager.", + "ML-KEM-768 (FIPS 203)", + "ML-KEM-1024 (FIPS 203)", + "X-Wing hybrid KEM combining ML-KEM-768 with X25519 following datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem/.", "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 3. Randomized version.", "The post-quantum stateless hash-based digital signature algorithm, at security level 1. Randomized version.", "The post-quantum stateless hash-based digital signature algorithm, at security level 1. Randomized pre-hash version supporting SHA256 digests." @@ -3148,6 +3195,66 @@ }, "type": "object" }, + "DecapsulateRequest": { + "description": "Request message for KeyManagementService.Decapsulate.", + "id": "DecapsulateRequest", + "properties": { + "ciphertext": { + "description": "Required. The ciphertext produced from encapsulation with the named CryptoKeyVersion public key(s).", + "format": "byte", + "type": "string" + }, + "ciphertextCrc32c": { + "description": "Optional. A CRC32C checksum of the DecapsulateRequest.ciphertext. If specified, KeyManagementService will verify the integrity of the received DecapsulateRequest.ciphertext using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(DecapsulateRequest.ciphertext) is equal to DecapsulateRequest.ciphertext_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "DecapsulateResponse": { + "description": "Response message for KeyManagementService.Decapsulate.", + "id": "DecapsulateResponse", + "properties": { + "name": { + "description": "The resource name of the CryptoKeyVersion used for decapsulation. Check this field to verify that the intended resource was used for decapsulation.", + "type": "string" + }, + "protectionLevel": { + "description": "The ProtectionLevel of the CryptoKeyVersion used in decapsulation.", + "enum": [ + "PROTECTION_LEVEL_UNSPECIFIED", + "SOFTWARE", + "HSM", + "EXTERNAL", + "EXTERNAL_VPC" + ], + "enumDescriptions": [ + "Not specified.", + "Crypto operations are performed in software.", + "Crypto operations are performed in a Hardware Security Module.", + "Crypto operations are performed by an external key manager.", + "Crypto operations are performed in an EKM-over-VPC backend." + ], + "type": "string" + }, + "sharedSecret": { + "description": "The decapsulated shared_secret originally encapsulated with the matching public key.", + "format": "byte", + "type": "string" + }, + "sharedSecretCrc32c": { + "description": "Integrity verification field. A CRC32C checksum of the returned DecapsulateResponse.shared_secret. An integrity check of DecapsulateResponse.shared_secret can be performed by computing the CRC32C checksum of DecapsulateResponse.shared_secret and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: receiving this response message indicates that KeyManagementService is able to successfully decrypt the ciphertext. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.", + "format": "int64", + "type": "string" + }, + "verifiedCiphertextCrc32c": { + "description": "Integrity verification field. A flag indicating whether DecapsulateRequest.ciphertext_crc32c was received by KeyManagementService and used for the integrity verification of the ciphertext. A false value of this field indicates either that DecapsulateRequest.ciphertext_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set DecapsulateRequest.ciphertext_crc32c but this field is still false, discard the response and perform a limited number of retries.", + "type": "boolean" + } + }, + "type": "object" + }, "DecryptRequest": { "description": "Request message for KeyManagementService.Decrypt.", "id": "DecryptRequest", @@ -3507,6 +3614,9 @@ "HMAC_SHA512", "HMAC_SHA224", "EXTERNAL_SYMMETRIC_ENCRYPTION", + "ML_KEM_768", + "ML_KEM_1024", + "KEM_XWING", "PQ_SIGN_ML_DSA_65", "PQ_SIGN_SLH_DSA_SHA2_128S", "PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256" @@ -3548,6 +3658,9 @@ "HMAC-SHA512 signing with a 512 bit key.", "HMAC-SHA224 signing with a 224 bit key.", "Algorithm representing symmetric encryption by an external key manager.", + "ML-KEM-768 (FIPS 203)", + "ML-KEM-1024 (FIPS 203)", + "X-Wing hybrid KEM combining ML-KEM-768 with X25519 following datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem/.", "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 3. Randomized version.", "The post-quantum stateless hash-based digital signature algorithm, at security level 1. Randomized version.", "The post-quantum stateless hash-based digital signature algorithm, at security level 1. Randomized pre-hash version supporting SHA256 digests." @@ -4262,6 +4375,9 @@ "HMAC_SHA512", "HMAC_SHA224", "EXTERNAL_SYMMETRIC_ENCRYPTION", + "ML_KEM_768", + "ML_KEM_1024", + "KEM_XWING", "PQ_SIGN_ML_DSA_65", "PQ_SIGN_SLH_DSA_SHA2_128S", "PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256" @@ -4303,6 +4419,9 @@ "HMAC-SHA512 signing with a 512 bit key.", "HMAC-SHA224 signing with a 224 bit key.", "Algorithm representing symmetric encryption by an external key manager.", + "ML-KEM-768 (FIPS 203)", + "ML-KEM-1024 (FIPS 203)", + "X-Wing hybrid KEM combining ML-KEM-768 with X25519 following datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem/.", "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 3. Randomized version.", "The post-quantum stateless hash-based digital signature algorithm, at security level 1. Randomized version.", "The post-quantum stateless hash-based digital signature algorithm, at security level 1. Randomized pre-hash version supporting SHA256 digests." @@ -4349,12 +4468,16 @@ "enum": [ "PUBLIC_KEY_FORMAT_UNSPECIFIED", "PEM", - "NIST_PQC" + "DER", + "NIST_PQC", + "XWING_RAW_BYTES" ], "enumDescriptions": [ "If the public_key_format field is not specified: - For PQC algorithms, an error will be returned. - For non-PQC algorithms, the default format is PEM, and the field pem will be populated. Otherwise, the public key will be exported through the public_key field in the requested format.", "The returned public key will be encoded in PEM format. See the [RFC7468](https://tools.ietf.org/html/rfc7468) sections for [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and [Textual Encoding of Subject Public Key Info] (https://tools.ietf.org/html/rfc7468#section-13) for more information.", - "This is supported only for PQC algorithms. The key material is returned in the format defined by NIST PQC standards (FIPS 203, FIPS 204, and FIPS 205)." + "The returned public key will be encoded in DER format (the PrivateKeyInfo structure from RFC 5208).", + "This is supported only for PQC algorithms. The key material is returned in the format defined by NIST PQC standards (FIPS 203, FIPS 204, and FIPS 205).", + "The returned public key is in raw bytes format defined in its standard https://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem." ], "type": "string" } diff --git a/discovery/googleapis/composer__v1.json b/discovery/googleapis/composer__v1.json index e2c42370b..a188f084c 100644 --- a/discovery/googleapis/composer__v1.json +++ b/discovery/googleapis/composer__v1.json @@ -257,7 +257,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250630", + "revision": "20250803", "rootUrl": "https://composer.googleapis.com/", "servicePath": "", "title": "Cloud Composer API", @@ -2196,7 +2196,8 @@ "CHECK", "SAVE_SNAPSHOT", "LOAD_SNAPSHOT", - "DATABASE_FAILOVER" + "DATABASE_FAILOVER", + "MIGRATE" ], "enumDescriptions": [ "Unused.", @@ -2206,7 +2207,8 @@ "A resource check operation.", "Saves snapshot of the resource operation.", "Loads snapshot of the resource operation.", - "Triggers failover of environment's Cloud SQL instance (only for highly resilient environments)." + "Triggers failover of environment's Cloud SQL instance (only for highly resilient environments).", + "Migrates resource to a new major version." ], "type": "string" }, diff --git a/discovery/googleapis/compute__v1.json b/discovery/googleapis/compute__v1.json index 10e5d4cda..5cb418020 100644 --- a/discovery/googleapis/compute__v1.json +++ b/discovery/googleapis/compute__v1.json @@ -39,7 +39,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250728", + "revision": "20250902", "rootUrl": "https://compute.googleapis.com/", "servicePath": "compute/v1/", "title": "Compute Engine API", @@ -665,6 +665,52 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute" ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions", + "httpMethod": "POST", + "id": "compute.addresses.testIamPermissions", + "parameterOrder": [ + "project", + "region", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions", + "request": { + "$ref": "TestPermissionsRequest" + }, + "response": { + "$ref": "TestPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] } } }, @@ -5110,6 +5156,44 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute" ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "projects/{project}/global/addresses/{resource}/testIamPermissions", + "httpMethod": "POST", + "id": "compute.globalAddresses.testIamPermissions", + "parameterOrder": [ + "project", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/addresses/{resource}/testIamPermissions", + "request": { + "$ref": "TestPermissionsRequest" + }, + "response": { + "$ref": "TestPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] } } }, @@ -9543,6 +9627,52 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute" ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions", + "httpMethod": "POST", + "id": "compute.instanceGroups.testIamPermissions", + "parameterOrder": [ + "project", + "zone", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions", + "request": { + "$ref": "TestPermissionsRequest" + }, + "response": { + "$ref": "TestPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] } } }, @@ -10040,6 +10170,55 @@ "https://www.googleapis.com/auth/compute" ] }, + "addNetworkInterface": { + "description": "Adds one dynamic network interface to an active instance.", + "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/addNetworkInterface", + "httpMethod": "POST", + "id": "compute.instances.addNetworkInterface", + "parameterOrder": [ + "project", + "zone", + "instance" + ], + "parameters": { + "instance": { + "description": "The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an unsigned long integer.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/instances/{instance}/addNetworkInterface", + "request": { + "$ref": "NetworkInterface" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "addResourcePolicies": { "description": "Adds existing resource policies to an instance. You can only add one policy right now which will be applied to this instance for scheduling live migrations.", "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies", @@ -10361,6 +10540,59 @@ "https://www.googleapis.com/auth/compute" ] }, + "deleteNetworkInterface": { + "description": "Deletes one dynamic network interface from an active instance. InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using project+zone+resource_id fields; - dynamic network interface to be deleted, using network_interface_name field;", + "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface", + "httpMethod": "POST", + "id": "compute.instances.deleteNetworkInterface", + "parameterOrder": [ + "project", + "zone", + "instance", + "networkInterfaceName" + ], + "parameters": { + "instance": { + "description": "The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an unsigned long integer.", + "location": "path", + "required": true, + "type": "string" + }, + "networkInterfaceName": { + "description": "The name of the dynamic network interface to be deleted from the instance.", + "location": "query", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "detachDisk": { "description": "Detaches a disk from an instance.", "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/detachDisk", @@ -18182,6 +18414,48 @@ "https://www.googleapis.com/auth/compute" ] }, + "requestRemovePeering": { + "description": "Requests to remove a peering from the specified network. Applicable only for PeeringConnection with update_strategy=CONSENSUS.", + "flatPath": "projects/{project}/global/networks/{network}/requestRemovePeering", + "httpMethod": "POST", + "id": "compute.networks.requestRemovePeering", + "parameterOrder": [ + "project", + "network" + ], + "parameters": { + "network": { + "description": "Name of the network resource to remove peering from.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/global/networks/{network}/requestRemovePeering", + "request": { + "$ref": "NetworksRequestRemovePeeringRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "switchToCustomMode": { "description": "Switches the network mode from auto subnet mode to custom subnet mode.", "flatPath": "projects/{project}/global/networks/{network}/switchToCustomMode", @@ -25235,6 +25509,52 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute" ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions", + "httpMethod": "POST", + "id": "compute.regionInstanceGroups.testIamPermissions", + "parameterOrder": [ + "project", + "region", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions", + "request": { + "$ref": "TestPermissionsRequest" + }, + "response": { + "$ref": "TestPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] } } }, @@ -33025,6 +33345,11 @@ "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, "type": "string" + }, + "showNatIps": { + "description": "Indicates whether NAT IPs should be included in the response.", + "location": "query", + "type": "boolean" } }, "path": "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}", @@ -34553,6 +34878,7 @@ "storagePool": { "description": "Name of the storage pool to delete.", "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, "type": "string" }, @@ -36930,6 +37256,52 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute" ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions", + "httpMethod": "POST", + "id": "compute.targetInstances.testIamPermissions", + "parameterOrder": [ + "project", + "zone", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions", + "request": { + "$ref": "TestPermissionsRequest" + }, + "response": { + "$ref": "TestPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] } } }, @@ -37546,6 +37918,52 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute" ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions", + "httpMethod": "POST", + "id": "compute.targetPools.testIamPermissions", + "parameterOrder": [ + "project", + "region", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions", + "request": { + "$ref": "TestPermissionsRequest" + }, + "response": { + "$ref": "TestPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] } } }, @@ -42773,6 +43191,10 @@ "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "type": "string" }, + "params": { + "$ref": "BackendBucketParams", + "description": "Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload." + }, "selfLink": { "description": "[Output Only] Server-defined URL for the resource.", "type": "string" @@ -42834,7 +43256,7 @@ "type": "integer" }, "negativeCaching": { - "description": "Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, and override any caching headers. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy.", + "description": "Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, and override any caching headers. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy.", "type": "boolean" }, "negativeCachingPolicy": { @@ -43072,6 +43494,20 @@ }, "type": "object" }, + "BackendBucketParams": { + "description": "Additional Backend Bucket parameters.", + "id": "BackendBucketParams", + "properties": { + "resourceManagerTags": { + "additionalProperties": { + "type": "string" + }, + "description": "Tag keys/values directly bound to this resource. Tag keys and values have the same definition as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the resource should be specified in either ID { : } or Namespaced format { : }. For example the following are valid inputs: * {\"tagKeys/333\" : \"tagValues/444\", \"tagKeys/123\" : \"tagValues/456\"} * {\"123/environment\" : \"production\", \"345/abc\" : \"xyz\"} Note: * Invalid combinations of ID & namespaced format is not supported. For instance: {\"123/environment\" : \"tagValues/444\"} is invalid.", + "type": "object" + } + }, + "type": "object" + }, "BackendBucketUsedBy": { "id": "BackendBucketUsedBy", "properties": { @@ -43283,7 +43719,7 @@ "type": "array" }, "localityLbPolicy": { - "description": "The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 - WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round Robin Load Balancing using weights computed from Backend reported Custom Metrics. If set, the Backend Service responses are expected to contain non-standard HTTP response header field Endpoint-Load-Metrics. The reported metrics to use for computing the weights are specified via the customMetrics field. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is not configured—that is, if session affinity remains at the default value of NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If session affinity is set to a value other than NONE, then the default value for localityLbPolicy is MAGLEV. Only ROUND_ROBIN and RING_HASH are 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. localityLbPolicy cannot be specified with haPolicy.", + "description": "The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see Maglev: A Fast and Reliable Software Network Load Balancer. - WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round Robin Load Balancing using weights computed from Backend reported Custom Metrics. If set, the Backend Service responses are expected to contain non-standard HTTP response header field Endpoint-Load-Metrics. The reported metrics to use for computing the weights are specified via the customMetrics field. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is not configured—that is, if session affinity remains at the default value of NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If session affinity is set to a value other than NONE, then the default value for localityLbPolicy is MAGLEV. Only ROUND_ROBIN and RING_HASH are 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. localityLbPolicy cannot be specified with haPolicy.", "enum": [ "INVALID_LB_POLICY", "LEAST_REQUEST", @@ -43292,17 +43728,19 @@ "RANDOM", "RING_HASH", "ROUND_ROBIN", + "WEIGHTED_GCP_RENDEZVOUS", "WEIGHTED_MAGLEV", "WEIGHTED_ROUND_ROBIN" ], "enumDescriptions": [ "", "An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests.", - "This algorithm implements consistent hashing to backends. Maglev can be used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824", + "This algorithm implements consistent hashing to backends. Maglev can be used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see Maglev: A Fast and Reliable Software Network Load Balancer.", "Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer.", "The load balancer selects a random healthy host.", "The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests.", "This is a simple policy in which each healthy backend is selected in round robin order. This is the default.", + "Per-instance weighted Load Balancing via health check reported weights. In internal passthrough network load balancing, it is weighted rendezvous hashing. This option is only supported in internal passthrough network load balancing.", "Per-instance weighted Load Balancing via health check reported weights. If set, the Backend Service must configure a non legacy HTTP-based Health Check, and health check replies are expected to contain non-standard HTTP response header field X-Load-Balancing-Endpoint-Weight to specify the per-instance weights. If set, Load Balancing is weighted based on the per-instance weights reported in the last processed health check replies, as long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. This option is only supported in Network Load Balancing.", "Per-endpoint weighted round-robin Load Balancing using weights computed from Backend reported Custom Metrics. If set, the Backend Service responses are expected to contain non-standard HTTP response header field Endpoint-Load-Metrics. The reported metrics to use for computing the weights are specified via the customMetrics fields." ], @@ -43336,6 +43774,10 @@ "$ref": "OutlierDetection", "description": "Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service. If not set, this feature is considered disabled. Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool and returning them back to the pool) are executed independently by each proxy instance of the load balancer. In most cases, more than one proxy instance handles the traffic received by a backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by only some of the proxies, and while this happens, other proxies may continue to send requests to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud Functions Services - Private Service Connect NEGs, that resolve to Google-managed regional API endpoints or managed services published using Private Service Connect Applicable backend service types can be: - A global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. 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." }, + "params": { + "$ref": "BackendServiceParams", + "description": "Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload." + }, "port": { "deprecated": true, "description": "Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. For internal passthrough Network Load Balancers and external passthrough Network Load Balancers, omit port.", @@ -43396,7 +43838,7 @@ "type": "array" }, "serviceLbPolicy": { - "description": "URL to networkservices.ServiceLbPolicy resource. Can only be set if load balancing scheme is EXTERNAL, EXTERNAL_MANAGED, INTERNAL_MANAGED or INTERNAL_SELF_MANAGED and the scope is global.", + "description": "URL to networkservices.ServiceLbPolicy resource. Can only be set if load balancing scheme is EXTERNAL_MANAGED, INTERNAL_MANAGED or INTERNAL_SELF_MANAGED and the scope is global.", "type": "string" }, "sessionAffinity": { @@ -43662,7 +44104,7 @@ "type": "integer" }, "negativeCaching": { - "description": "Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, and override any caching headers. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy.", + "description": "Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, and override any caching headers. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy.", "type": "boolean" }, "negativeCachingPolicy": { @@ -44268,17 +44710,19 @@ "RANDOM", "RING_HASH", "ROUND_ROBIN", + "WEIGHTED_GCP_RENDEZVOUS", "WEIGHTED_MAGLEV", "WEIGHTED_ROUND_ROBIN" ], "enumDescriptions": [ "", "An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests.", - "This algorithm implements consistent hashing to backends. Maglev can be used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824", + "This algorithm implements consistent hashing to backends. Maglev can be used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see Maglev: A Fast and Reliable Software Network Load Balancer.", "Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer.", "The load balancer selects a random healthy host.", "The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests.", "This is a simple policy in which each healthy backend is selected in round robin order. This is the default.", + "Per-instance weighted Load Balancing via health check reported weights. In internal passthrough network load balancing, it is weighted rendezvous hashing. This option is only supported in internal passthrough network load balancing.", "Per-instance weighted Load Balancing via health check reported weights. If set, the Backend Service must configure a non legacy HTTP-based Health Check, and health check replies are expected to contain non-standard HTTP response header field X-Load-Balancing-Endpoint-Weight to specify the per-instance weights. If set, Load Balancing is weighted based on the per-instance weights reported in the last processed health check replies, as long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. This option is only supported in Network Load Balancing.", "Per-endpoint weighted round-robin Load Balancing using weights computed from Backend reported Custom Metrics. If set, the Backend Service responses are expected to contain non-standard HTTP response header field Endpoint-Load-Metrics. The reported metrics to use for computing the weights are specified via the customMetrics fields." ], @@ -44324,6 +44768,20 @@ }, "type": "object" }, + "BackendServiceParams": { + "description": "Additional Backend Service parameters.", + "id": "BackendServiceParams", + "properties": { + "resourceManagerTags": { + "additionalProperties": { + "type": "string" + }, + "description": "Tag keys/values directly bound to this resource. Tag keys and values have the same definition as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the resource should be specified in either ID { : } or Namespaced format { : }. For example the following are valid inputs: * {\"tagKeys/333\" : \"tagValues/444\", \"tagKeys/123\" : \"tagValues/456\"} * {\"123/environment\" : \"production\", \"345/abc\" : \"xyz\"} Note: * Invalid combinations of ID & namespaced format is not supported. For instance: {\"123/environment\" : \"tagValues/444\"} is invalid.", + "type": "object" + } + }, + "type": "object" + }, "BackendServiceReference": { "id": "BackendServiceReference", "properties": { @@ -52766,6 +53224,7 @@ "description": "[Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.", "enum": [ "DEPROVISIONING", + "PENDING", "PROVISIONING", "REPAIRING", "RUNNING", @@ -52778,6 +53237,7 @@ ], "enumDescriptions": [ "The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", + "For Flex Start provisioning instance is waiting for available capacity from Dynamic Workload Scheduler (DWS).", "Resources are being allocated for the instance.", "The instance is in repair.", "The instance is running.", @@ -55908,6 +56368,10 @@ "description": "Additional instance params.", "id": "InstanceParams", "properties": { + "requestValidForDuration": { + "$ref": "Duration", + "description": "Relative deadline for waiting for capacity. Relevant only for Instances.Insert API." + }, "resourceManagerTags": { "additionalProperties": { "type": "string" @@ -56649,6 +57113,7 @@ "description": "[Output Only] The status of the instance.", "enum": [ "DEPROVISIONING", + "PENDING", "PROVISIONING", "REPAIRING", "RUNNING", @@ -56661,6 +57126,7 @@ ], "enumDescriptions": [ "The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", + "For Flex Start provisioning instance is waiting for available capacity from Dynamic Workload Scheduler (DWS).", "Resources are being allocated for the instance.", "The instance is in repair.", "The instance is running.", @@ -57693,10 +58159,18 @@ "description": "Represents an Interconnect resource. An Interconnect resource is a dedicated connection between the Google Cloud network and your on-premises network. For more information, read the Dedicated Interconnect Overview.", "id": "Interconnect", "properties": { + "aaiEnabled": { + "description": "Enable or disable the application awareness feature on this Cloud Interconnect.", + "type": "boolean" + }, "adminEnabled": { "description": "Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true.", "type": "boolean" }, + "applicationAwareInterconnect": { + "$ref": "InterconnectApplicationAwareInterconnect", + "description": "Configuration information for application awareness on this Cloud Interconnect." + }, "availableFeatures": { "description": "[Output only] List of features available for this Interconnect connection, which can take one of the following values: - IF_MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails.", "items": { @@ -57900,6 +58374,81 @@ }, "type": "object" }, + "InterconnectApplicationAwareInterconnect": { + "description": "Configuration information for application awareness on this Cloud Interconnect.", + "id": "InterconnectApplicationAwareInterconnect", + "properties": { + "bandwidthPercentagePolicy": { + "$ref": "InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy" + }, + "profileDescription": { + "description": "Description for the application awareness profile on this Cloud Interconnect.", + "type": "string" + }, + "shapeAveragePercentages": { + "description": "Optional field to specify a list of shape average percentages to be applied in conjunction with StrictPriorityPolicy or BandwidthPercentagePolicy.", + "items": { + "$ref": "InterconnectApplicationAwareInterconnectBandwidthPercentage" + }, + "type": "array" + }, + "strictPriorityPolicy": { + "$ref": "InterconnectApplicationAwareInterconnectStrictPriorityPolicy" + } + }, + "type": "object" + }, + "InterconnectApplicationAwareInterconnectBandwidthPercentage": { + "description": "Specify bandwidth percentages [1-100] for various traffic classes in BandwidthPercentagePolicy. The sum of all percentages must equal 100. All traffic classes must have a percentage value specified.", + "id": "InterconnectApplicationAwareInterconnectBandwidthPercentage", + "properties": { + "percentage": { + "description": "Bandwidth percentage for a specific traffic class.", + "format": "uint32", + "type": "integer" + }, + "trafficClass": { + "description": "TrafficClass whose bandwidth percentage is being specified.", + "enum": [ + "TC1", + "TC2", + "TC3", + "TC4", + "TC5", + "TC6" + ], + "enumDescriptions": [ + "Traffic Class 1, corresponding to DSCP ranges (0-7) 000xxx.", + "Traffic Class 2, corresponding to DSCP ranges (8-15) 001xxx.", + "Traffic Class 3, corresponding to DSCP ranges (16-23) 010xxx.", + "Traffic Class 4, corresponding to DSCP ranges (24-31) 011xxx.", + "Traffic Class 5, corresponding to DSCP ranges (32-47) 10xxxx.", + "Traffic Class 6, corresponding to DSCP ranges (48-63) 11xxxx." + ], + "type": "string" + } + }, + "type": "object" + }, + "InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy": { + "id": "InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy", + "properties": { + "bandwidthPercentages": { + "description": "Specify bandwidth percentages for various traffic classes for queuing type Bandwidth Percent.", + "items": { + "$ref": "InterconnectApplicationAwareInterconnectBandwidthPercentage" + }, + "type": "array" + } + }, + "type": "object" + }, + "InterconnectApplicationAwareInterconnectStrictPriorityPolicy": { + "description": "Specify configuration for StrictPriorityPolicy.", + "id": "InterconnectApplicationAwareInterconnectStrictPriorityPolicy", + "properties": {}, + "type": "object" + }, "InterconnectAttachment": { "description": "Represents an Interconnect Attachment (VLAN) resource. You can use Interconnect attachments (VLANS) to connect your Virtual Private Cloud networks to your on-premises networks through an Interconnect. For more information, read Creating VLAN Attachments.", "id": "InterconnectAttachment", @@ -58903,7 +59452,7 @@ "type": "string" }, "status": { - "description": "Whether this Attachment is active, and if so, whether BGP is up. This is based on the statuses available in the Pantheon UI here: http://google3/java/com/google/cloud/boq/clientapi/gce/hybrid/api/interconnect_models.proto", + "description": "Whether this Attachment is active, and if so, whether BGP is up.", "enum": [ "ATTACHMENT_STATUS_UNKNOWN", "CONNECTION_DISABLED", @@ -62452,6 +63001,7 @@ "description": "[Output Only] The status of the instance. This field is empty when the instance does not exist.", "enum": [ "DEPROVISIONING", + "PENDING", "PROVISIONING", "REPAIRING", "RUNNING", @@ -62464,6 +63014,7 @@ ], "enumDescriptions": [ "The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", + "For Flex Start provisioning instance is waiting for available capacity from Dynamic Workload Scheduler (DWS).", "Resources are being allocated for the instance.", "The instance is in repair.", "The instance is running.", @@ -65006,6 +65557,10 @@ ], "type": "string" }, + "parentNicName": { + "description": "Name of the parent network interface of a dynamic network interface.", + "type": "string" + }, "queueCount": { "description": "The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users.", "format": "int32", @@ -65028,6 +65583,11 @@ "subnetwork": { "description": "The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region /subnetworks/subnetwork - regions/region/subnetworks/subnetwork ", "type": "string" + }, + "vlan": { + "description": "VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 inclusively.", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -65209,6 +65769,10 @@ "description": "This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.", "type": "boolean" }, + "connectionStatus": { + "$ref": "NetworkPeeringConnectionStatus", + "description": "[Output Only] The effective state of the peering connection as a whole." + }, "exchangeSubnetRoutes": { "description": "Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.", "type": "boolean" @@ -65269,6 +65833,122 @@ "stateDetails": { "description": "[Output Only] Details about the current state of the peering.", "type": "string" + }, + "updateStrategy": { + "description": "The update strategy determines the semantics for updates and deletes to the peering connection configuration.", + "enum": [ + "CONSENSUS", + "INDEPENDENT", + "UNSPECIFIED" + ], + "enumDescriptions": [ + "Updates are reflected in the local peering but aren't applied to the peering connection until a complementary change is made to the matching peering. To delete a peering with the consensus update strategy, both the peerings must request the deletion of the peering before the peering can be deleted.", + "In this mode, changes to the peering configuration can be unilaterally altered by changing either side of the peering. This is the default value if the field is unspecified.", + "Peerings with update strategy UNSPECIFIED are created with update strategy INDEPENDENT." + ], + "type": "string" + } + }, + "type": "object" + }, + "NetworkPeeringConnectionStatus": { + "description": "[Output Only] Describes the state of a peering connection, not just the local peering. This field provides information about the effective settings for the connection as a whole, including pending delete/update requests for CONSENSUS peerings.", + "id": "NetworkPeeringConnectionStatus", + "properties": { + "consensusState": { + "$ref": "NetworkPeeringConnectionStatusConsensusState", + "description": "The consensus state contains information about the status of update and delete for a consensus peering connection." + }, + "trafficConfiguration": { + "$ref": "NetworkPeeringConnectionStatusTrafficConfiguration", + "description": "The active connectivity settings for the peering connection based on the settings of the network peerings." + }, + "updateStrategy": { + "description": "The update strategy determines the update/delete semantics for this peering connection.", + "enum": [ + "CONSENSUS", + "INDEPENDENT", + "UNSPECIFIED" + ], + "enumDescriptions": [ + "Updates are reflected in the local peering but aren't applied to the peering connection until a complementary change is made to the matching peering. To delete a peering with the consensus update strategy, both the peerings must request the deletion of the peering before the peering can be deleted.", + "In this mode, changes to the peering configuration can be unilaterally altered by changing either side of the peering. This is the default value if the field is unspecified.", + "Peerings with update strategy UNSPECIFIED are created with update strategy INDEPENDENT." + ], + "type": "string" + } + }, + "type": "object" + }, + "NetworkPeeringConnectionStatusConsensusState": { + "description": "The status of update/delete for a consensus peering connection. Only set when connection_status.update_strategy is CONSENSUS or a network peering is proposing to update the strategy to CONSENSUS.", + "id": "NetworkPeeringConnectionStatusConsensusState", + "properties": { + "deleteStatus": { + "description": "The status of the delete request.", + "enum": [ + "DELETE_ACKNOWLEDGED", + "DELETE_STATUS_UNSPECIFIED", + "LOCAL_DELETE_REQUESTED", + "PEER_DELETE_REQUESTED" + ], + "enumDescriptions": [ + "Both network admins have agreed this consensus peering connection can be deleted.", + "", + "Network admin has requested deletion of this peering connection.", + "The peer network admin has requested deletion of this peering connection." + ], + "type": "string" + }, + "updateStatus": { + "description": "The status of the update request.", + "enum": [ + "IN_SYNC", + "PENDING_LOCAL_ACKNOWLEDMENT", + "PENDING_PEER_ACKNOWLEDGEMENT", + "UPDATE_STATUS_UNSPECIFIED" + ], + "enumDescriptions": [ + "No pending configuration update proposals to the peering connection.", + "The peer network admin has made an updatePeering call. The change is awaiting acknowledgment from this peering's network admin.", + "The local network admin has made an updatePeering call. The change is awaiting acknowledgment from the peer network admin.", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "NetworkPeeringConnectionStatusTrafficConfiguration": { + "id": "NetworkPeeringConnectionStatusTrafficConfiguration", + "properties": { + "exportCustomRoutesToPeer": { + "description": "Whether custom routes are being exported to the peer network.", + "type": "boolean" + }, + "exportSubnetRoutesWithPublicIpToPeer": { + "description": "Whether subnet routes with public IP ranges are being exported to the peer network.", + "type": "boolean" + }, + "importCustomRoutesFromPeer": { + "description": "Whether custom routes are being imported from the peer network.", + "type": "boolean" + }, + "importSubnetRoutesWithPublicIpFromPeer": { + "description": "Whether subnet routes with public IP ranges are being imported from the peer network.", + "type": "boolean" + }, + "stackType": { + "description": "Which IP version(s) of traffic and routes are being imported or exported between peer networks.", + "enum": [ + "IPV4_IPV6", + "IPV4_ONLY" + ], + "enumDescriptions": [ + "This Peering will allow IPv4 traffic and routes to be exchanged. Additionally if the matching peering is IPV4_IPV6, IPv6 traffic and routes will be exchanged as well.", + "This Peering will only allow IPv4 traffic and routes to be exchanged, even if the matching peering is IPV4_IPV6." + ], + "type": "string" } }, "type": "object" @@ -65325,6 +66005,10 @@ "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "type": "string" }, + "profileType": { + "$ref": "NetworkProfileProfileType", + "description": "[Output Only] Type of the network profile." + }, "selfLink": { "description": "[Output Only] Server-defined URL for the resource.", "type": "string" @@ -65752,6 +66436,56 @@ }, "type": "object" }, + "NetworkProfileProfileType": { + "id": "NetworkProfileProfileType", + "properties": { + "networkType": { + "enum": [ + "RDMA", + "ULL", + "VPC" + ], + "enumDescriptions": [ + "RDMA network.", + "ULL network.", + "VPC network." + ], + "type": "string" + }, + "rdmaSubtype": { + "enum": [ + "FALCON", + "ROCE" + ], + "enumDescriptions": [ + "RDMA over Falcon.", + "RDMA over Converged Ethernet (RoCE)." + ], + "type": "string" + }, + "ullSubtype": { + "enum": [ + "OPERATOR", + "PARTICIPANT" + ], + "enumDescriptions": [ + "Exchange operator.", + "Exchange participant." + ], + "type": "string" + }, + "vpcSubtype": { + "enum": [ + "REGIONAL" + ], + "enumDescriptions": [ + "Regionally bound VPC network." + ], + "type": "string" + } + }, + "type": "object" + }, "NetworkProfilesListResponse": { "description": "Contains a list of network profiles.", "id": "NetworkProfilesListResponse", @@ -66091,6 +66825,16 @@ }, "type": "object" }, + "NetworksRequestRemovePeeringRequest": { + "id": "NetworksRequestRemovePeeringRequest", + "properties": { + "name": { + "description": "Name of the peering, which should conform to RFC1035.", + "type": "string" + } + }, + "type": "object" + }, "NetworksUpdatePeeringRequest": { "id": "NetworksUpdatePeeringRequest", "properties": { @@ -73499,6 +74243,10 @@ "description": "Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources.", "id": "Reservation", "properties": { + "advancedDeploymentControl": { + "$ref": "ReservationAdvancedDeploymentControl", + "description": "Advanced control for cluster management, applicable only to DENSE deployment type reservations." + }, "aggregateReservation": { "$ref": "AllocationAggregateReservation", "description": "Reservation for aggregated resources, providing shape flexibility." @@ -73640,6 +74388,27 @@ }, "type": "object" }, + "ReservationAdvancedDeploymentControl": { + "description": "Advance control for cluster management, applicable only to DENSE deployment type reservations.", + "id": "ReservationAdvancedDeploymentControl", + "properties": { + "reservationOperationalMode": { + "description": "Indicates chosen reservation operational mode for the reservation.", + "enum": [ + "ALL_CAPACITY", + "HIGHLY_AVAILABLE_CAPACITY", + "RESERVATION_OPERATIONAL_MODE_UNSPECIFIED" + ], + "enumDescriptions": [ + "Google Cloud does not manage the failure of machines, but provides additional capacity, which is not guaranteed to be available.", + "Google Cloud manages the failure of machines to provide high availability.", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "ReservationAffinity": { "description": "Specifies the reservations that this instance can consume from.", "id": "ReservationAffinity", @@ -75076,7 +75845,8 @@ "type": "string" }, "workloadPolicy": { - "$ref": "ResourcePolicyWorkloadPolicy" + "$ref": "ResourcePolicyWorkloadPolicy", + "description": "Resource policy for defining instance placement for MIGs." } }, "type": "object" @@ -75693,9 +76463,11 @@ "id": "ResourcePolicyWorkloadPolicy", "properties": { "acceleratorTopology": { + "description": "Specifies the topology required to create a partition for VMs that have interconnected GPUs.", "type": "string" }, "maxTopologyDistance": { + "description": "Specifies the maximum distance between instances.", "enum": [ "BLOCK", "CLUSTER", @@ -75709,13 +76481,14 @@ "type": "string" }, "type": { + "description": "Specifies the intent of the instance placement in the MIG.", "enum": [ "HIGH_AVAILABILITY", "HIGH_THROUGHPUT" ], "enumDescriptions": [ - "VMs will be provisioned in such a way which provides high availability.", - "VMs will be provisioned in such a way which provides high throughput." + "MIG spreads out the instances as much as possible for high availability.", + "MIG provisions instances as close to each other as possible for high throughput." ], "type": "string" } @@ -75726,6 +76499,10 @@ "description": "Contains output only fields. Use this sub-message for actual values set on Instance attributes as compared to the value requested by the user (intent) in their instance CRUD calls.", "id": "ResourceStatus", "properties": { + "effectiveInstanceMetadata": { + "$ref": "ResourceStatusEffectiveInstanceMetadata", + "description": "[Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level." + }, "physicalHost": { "description": "[Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.", "type": "string" @@ -75743,6 +76520,45 @@ }, "type": "object" }, + "ResourceStatusEffectiveInstanceMetadata": { + "description": "Effective values of predefined metadata keys for an instance.", + "id": "ResourceStatusEffectiveInstanceMetadata", + "properties": { + "blockProjectSshKeysMetadataValue": { + "description": "Effective block-project-ssh-keys value at Instance level.", + "type": "boolean" + }, + "enableGuestAttributesMetadataValue": { + "description": "Effective enable-guest-attributes value at Instance level.", + "type": "boolean" + }, + "enableOsInventoryMetadataValue": { + "description": "Effective enable-os-inventory value at Instance level.", + "type": "boolean" + }, + "enableOsconfigMetadataValue": { + "description": "Effective enable-osconfig value at Instance level.", + "type": "boolean" + }, + "enableOsloginMetadataValue": { + "description": "Effective enable-oslogin value at Instance level.", + "type": "boolean" + }, + "serialPortEnableMetadataValue": { + "description": "Effective serial-port-enable value at Instance level.", + "type": "boolean" + }, + "serialPortLoggingEnableMetadataValue": { + "description": "Effective serial-port-logging-enable value at Instance level.", + "type": "boolean" + }, + "vmDnsSettingMetadataValue": { + "description": "Effective VM DNS setting at Instance level.", + "type": "string" + } + }, + "type": "object" + }, "ResourceStatusPhysicalHostTopology": { "description": "Represents the physical host topology of the host on which the VM is running.", "id": "ResourceStatusPhysicalHostTopology", @@ -76413,6 +77229,10 @@ "description": "URI of the network to which this router belongs.", "type": "string" }, + "params": { + "$ref": "RouterParams", + "description": "Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload." + }, "region": { "description": "[Output Only] URI of the region where the router resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.", "type": "string" @@ -77409,6 +78229,20 @@ }, "type": "object" }, + "RouterParams": { + "description": "Additional router parameters.", + "id": "RouterParams", + "properties": { + "resourceManagerTags": { + "additionalProperties": { + "type": "string" + }, + "description": "Tag keys/values directly bound to this resource. The field is allowed for INSERT only. The keys/values to set on the resource should be specified in either ID { : } or Namespaced format { : }. For example the following are valid inputs: * {\"tagKeys/333\" : \"tagValues/444\", \"tagKeys/123\" : \"tagValues/456\"} * {\"123/environment\" : \"production\", \"345/abc\" : \"xyz\"} Note: * Invalid combinations of ID & namespaced format is not supported. For instance: {\"123/environment\" : \"tagValues/444\"} is invalid. * Inconsistent format is not supported. For instance: {\"tagKeys/333\" : \"tagValues/444\", \"123/env\" : \"prod\"} is invalid.", + "type": "object" + } + }, + "type": "object" + }, "RouterStatus": { "id": "RouterStatus", "properties": { @@ -78470,17 +79304,23 @@ "provisioningModel": { "description": "Specifies the provisioning model of the instance.", "enum": [ + "FLEX_START", "RESERVATION_BOUND", "SPOT", "STANDARD" ], "enumDescriptions": [ + "Instance is provisioned using the Flex Start provisioning model and has a limited runtime.", "Bound to the lifecycle of the reservation in which it is provisioned.", "Heavily discounted, no guaranteed runtime.", "Standard provisioning with user controlled runtime, no discounts." ], "type": "string" }, + "skipGuestOsShutdown": { + "description": "Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 Mechanical Off for Standard VMs and 30 seconds for Spot VMs.", + "type": "boolean" + }, "terminationTime": { "description": "Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.", "type": "string" @@ -78939,7 +79779,7 @@ "type": "string" }, "type": { - "description": "The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.", + "description": "The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.", "enum": [ "CLOUD_ARMOR", "CLOUD_ARMOR_EDGE", @@ -79325,7 +80165,7 @@ "id": "SecurityPolicyRule", "properties": { "action": { - "description": "The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. ", + "description": "The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`. ", "type": "string" }, "description": { @@ -79364,7 +80204,7 @@ }, "rateLimitOptions": { "$ref": "SecurityPolicyRuleRateLimitOptions", - "description": "Must be specified if the action is \"rate_based_ban\" or \"throttle\". Cannot be specified for any other actions." + "description": "Must be specified if the action is \"rate_based_ban\" or \"throttle\" or \"fairshare\". Cannot be specified for any other actions." }, "redirectOptions": { "$ref": "SecurityPolicyRuleRedirectOptions", @@ -79410,7 +80250,7 @@ }, "expr": { "$ref": "Expr", - "description": "User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. Expressions containing `evaluateThreatIntelligence` require Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies." + "description": "User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. Expressions containing `evaluateThreatIntelligence` require a Cloud Armor Enterprise subscription and are not supported in Edge Policies nor in Regional Policies. Expressions containing `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor Enterprise subscription and are only supported in Global Security Policies." }, "exprOptions": { "$ref": "SecurityPolicyRuleMatcherExprOptions", @@ -79656,7 +80496,7 @@ "type": "string" }, "enforceOnKey": { - "description": "Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if \"enforceOnKey\" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under \"enforceOnKeyName\". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under \"enforceOnKeyName\". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on \"userIpRequestHeaders\" configured with the security policy. If there is no \"userIpRequestHeaders\" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. ", + "description": "Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if \"enforceOnKey\" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under \"enforceOnKeyName\". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under \"enforceOnKeyName\". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on \"userIpRequestHeaders\" configured with the security policy. If there is no \"userIpRequestHeaders\" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For \"fairshare\" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule.", "enum": [ "ALL", "HTTP_COOKIE", @@ -80223,6 +81063,13 @@ "description": "The url of a connected endpoint.", "type": "string" }, + "natIps": { + "description": "NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it.", + "items": { + "type": "string" + }, + "type": "array" + }, "propagatedConnectionCount": { "description": "The number of consumer Network Connectivity Center spokes that the connected Private Service Connect endpoint has propagated to.", "format": "uint32", @@ -85892,7 +86739,7 @@ "type": "object" }, "TargetHttpsProxy": { - "description": "Represents a Target HTTPS Proxy resource. Google Compute Engine has two Target HTTPS Proxy resources: * [Global](/compute/docs/reference/rest/v1/targetHttpsProxies) * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) A target HTTPS proxy is a component of Google Cloud HTTPS load balancers. * targetHttpProxies are used by global external Application Load Balancers, classic Application Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * regionTargetHttpProxies are used by regional internal Application Load Balancers and regional external Application Load Balancers. Forwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts.", + "description": "Represents a Target HTTPS Proxy resource. Google Compute Engine has two Target HTTPS Proxy resources: * [Global](/compute/docs/reference/rest/v1/targetHttpsProxies) * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) A target HTTPS proxy is a component of Google Cloud HTTPS load balancers. * targetHttpsProxies are used by global external Application Load Balancers, classic Application Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * regionTargetHttpsProxies are used by regional internal Application Load Balancers and regional external Application Load Balancers. Forwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts.", "id": "TargetHttpsProxy", "properties": { "authorizationPolicy": { @@ -88922,6 +89769,8 @@ "enum": [ "FAILURE_DISK", "FAILURE_GPU", + "FAILURE_GPU_MULTIPLE_FAULTY_HOSTS_CUSTOMER_REPORTED", + "FAILURE_GPU_NVLINK_SWITCH_CUSTOMER_REPORTED", "FAILURE_GPU_TEMPERATURE", "FAILURE_GPU_XID", "FAILURE_INFRA", @@ -88929,6 +89778,7 @@ "FAILURE_MEMORY", "FAILURE_NETWORK", "FAILURE_NVLINK", + "FAILURE_REDUNDANT_HARDWARE_FAULT", "INFRASTRUCTURE_RELOCATION", "MAINTENANCE_REASON_UNKNOWN", "PLANNED_NETWORK_UPDATE", @@ -88937,6 +89787,8 @@ "enumDescriptions": [ "Maintenance due to disk errors.", "Maintenance due to GPU errors.", + "Maintenance due to customer reported multiple faulty hosts via R&R Subblock API.", + "Maintenance due to customer reported NVLink switch failure via R&R Subblock API.", "Maintenance due to high GPU temperature.", "Maintenance due to GPU xid failure.", "Maintenance due to infrastructure errors.", @@ -88944,6 +89796,7 @@ "Maintenance due to memory errors.", "Maintenance due to network errors.", "Maintenance due to NVLink failure.", + "Maintenance due to redundant hardware fault.", "Maintenance due to infrastructure relocation.", "Unknown maintenance reason. Do not use this value.", "Maintenance due to planned network update.", @@ -90900,6 +91753,10 @@ "description": "Represents a Cloud VPN Tunnel resource. For more information about VPN, read the the Cloud VPN Overview.", "id": "VpnTunnel", "properties": { + "cipherSuite": { + "$ref": "VpnTunnelCipherSuite", + "description": "User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol." + }, "creationTimestamp": { "description": "[Output Only] Creation timestamp in RFC3339 text format.", "type": "string" @@ -91212,6 +92069,18 @@ }, "type": "object" }, + "VpnTunnelCipherSuite": { + "id": "VpnTunnelCipherSuite", + "properties": { + "phase1": { + "$ref": "VpnTunnelPhase1Algorithms" + }, + "phase2": { + "$ref": "VpnTunnelPhase2Algorithms" + } + }, + "type": "object" + }, "VpnTunnelList": { "description": "Contains a list of VpnTunnel resources.", "id": "VpnTunnelList", @@ -91367,6 +92236,60 @@ }, "type": "object" }, + "VpnTunnelPhase1Algorithms": { + "id": "VpnTunnelPhase1Algorithms", + "properties": { + "dh": { + "items": { + "type": "string" + }, + "type": "array" + }, + "encryption": { + "items": { + "type": "string" + }, + "type": "array" + }, + "integrity": { + "items": { + "type": "string" + }, + "type": "array" + }, + "prf": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "VpnTunnelPhase2Algorithms": { + "id": "VpnTunnelPhase2Algorithms", + "properties": { + "encryption": { + "items": { + "type": "string" + }, + "type": "array" + }, + "integrity": { + "items": { + "type": "string" + }, + "type": "array" + }, + "pfs": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "VpnTunnelsScopedList": { "id": "VpnTunnelsScopedList", "properties": { diff --git a/discovery/googleapis/config__v1.json b/discovery/googleapis/config__v1.json index 271584632..dca4bc4d7 100644 --- a/discovery/googleapis/config__v1.json +++ b/discovery/googleapis/config__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250604", + "revision": "20250813", "rootUrl": "https://config.googleapis.com/", "servicePath": "", "title": "Infrastructure Manager API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1567,6 +1567,10 @@ "description": "Identifier. Resource name of the deployment. Format: `projects/{project}/locations/{location}/deployments/{deployment}`", "type": "string" }, + "providerConfig": { + "$ref": "ProviderConfig", + "description": "Optional. This field specifies the provider configurations." + }, "quotaValidation": { "description": "Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.", "enum": [ @@ -2300,6 +2304,10 @@ ], "type": "string" }, + "providerConfig": { + "$ref": "ProviderConfig", + "description": "Optional. This field specifies the provider configurations." + }, "serviceAccount": { "description": "Required. User-specified Service Account (SA) credentials to be used when previewing resources. Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`", "type": "string" @@ -2518,6 +2526,25 @@ }, "type": "object" }, + "ProviderConfig": { + "description": "ProviderConfig contains the provider configurations.", + "id": "ProviderConfig", + "properties": { + "sourceType": { + "description": "Optional. ProviderSource specifies the source type of the provider.", + "enum": [ + "PROVIDER_SOURCE_UNSPECIFIED", + "SERVICE_MAINTAINED" + ], + "enumDescriptions": [ + "Unspecified source type, default to public sources.", + "Service maintained provider source type." + ], + "type": "string" + } + }, + "type": "object" + }, "Resource": { "description": "Resource represents a Google Cloud Platform resource actuated by IM. Resources are child resources of Revisions.", "id": "Resource", @@ -2819,6 +2846,11 @@ "description": "Revision name. Format: `projects/{project}/locations/{location}/deployments/{deployment}/ revisions/{revision}`", "type": "string" }, + "providerConfig": { + "$ref": "ProviderConfig", + "description": "Output only. This field specifies the provider configurations.", + "readOnly": true + }, "quotaValidation": { "description": "Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.", "enum": [ diff --git a/discovery/googleapis/connectors__v1.json b/discovery/googleapis/connectors__v1.json index d4be90b8d..83abe9446 100644 --- a/discovery/googleapis/connectors__v1.json +++ b/discovery/googleapis/connectors__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250721", + "revision": "20250826", "rootUrl": "https://connectors.googleapis.com/", "servicePath": "", "title": "Connectors API", @@ -198,7 +198,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -3216,7 +3216,7 @@ "type": "string" }, "locationType": { - "description": "Optional. Location Tyep denotes where this value should be sent in BYOC connections.", + "description": "Optional. Location Type denotes where this value should be sent in BYOC connections.", "enum": [ "LOCATION_TYPE_UNSPECIFIED", "HEADER", @@ -3790,19 +3790,9 @@ "description": "Indicate whether connector is being migrated to TLS.", "type": "boolean" }, - "networkEgressMode": { - "description": "Indicate whether connector is being migrated to use direct VPC egress.", - "enum": [ - "NETWORK_EGRESS_MODE_UNSPECIFIED", - "SERVERLESS_VPC_ACCESS_CONNECTOR", - "DIRECT_VPC_EGRESS" - ], - "enumDescriptions": [ - "Network egress mode is not specified.", - "Default model VPC Access Connector.", - "Direct VPC Egress." - ], - "type": "string" + "networkEgressModeOverride": { + "$ref": "NetworkEgressModeOverride", + "description": "Network egress mode override to migrate to direct VPC egress." }, "provisionCloudSpanner": { "description": "Indicate whether cloud spanner is required for connector job.", @@ -7231,6 +7221,35 @@ }, "type": "object" }, + "NetworkEgressModeOverride": { + "description": "NetworkEgressModeOverride provides the network egress mode override for a connector.", + "id": "NetworkEgressModeOverride", + "properties": { + "isEventingOverrideEnabled": { + "description": "boolean should be set to true to make sure only eventing enabled connections are migrated to direct vpc egress.", + "type": "boolean" + }, + "isJobsOverrideEnabled": { + "description": "boolean should be set to true to make sure only async operations enabled connections are migrated to direct vpc egress.", + "type": "boolean" + }, + "networkEgressMode": { + "description": "Determines the VPC Egress mode for the connector.", + "enum": [ + "NETWORK_EGRESS_MODE_UNSPECIFIED", + "SERVERLESS_VPC_ACCESS_CONNECTOR", + "DIRECT_VPC_EGRESS" + ], + "enumDescriptions": [ + "Network Egress mode is not specified.", + "Default model VPC Access Connector.", + "Direct VPC Egress." + ], + "type": "string" + } + }, + "type": "object" + }, "NodeConfig": { "description": "Node configuration for the connection.", "id": "NodeConfig", diff --git a/discovery/googleapis/connectors__v2.json b/discovery/googleapis/connectors__v2.json index 110283863..53d1711a3 100644 --- a/discovery/googleapis/connectors__v2.json +++ b/discovery/googleapis/connectors__v2.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250521", + "revision": "20250826", "rootUrl": "https://connectors.googleapis.com/", "servicePath": "", "title": "Connectors API", @@ -381,6 +381,11 @@ "name" ], "parameters": { + "contextMetadata": { + "description": "Context metadata for request could be used to fetch customization of entity type schema.", + "location": "query", + "type": "string" + }, "name": { "description": "Required. Resource name of the Entity Type. Format: projects/{project}/locations/{location}/connections/{connection}/entityTypes/{entityType}", "location": "path", @@ -692,6 +697,74 @@ } } } + }, + "tools": { + "methods": { + "execute": { + "description": "Executes a specific tool.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/tools/{toolsId}:execute", + "httpMethod": "POST", + "id": "connectors.projects.locations.connections.tools.execute", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the Tool. Format: projects/{project}/locations/{location}/connections/{connection}/tools/{tool}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+/tools/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}:execute", + "request": { + "$ref": "ExecuteToolRequest" + }, + "response": { + "$ref": "ExecuteToolResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all available tools.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/tools", + "httpMethod": "GET", + "id": "connectors.projects.locations.connections.tools.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/tools", + "response": { + "$ref": "ListToolsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } } @@ -744,6 +817,17 @@ }, "type": "array" }, + "metadata": { + "additionalProperties": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "description": "Metadata like service latency, etc.", + "type": "object" + }, "name": { "description": "Name of the action.", "type": "string" @@ -806,6 +890,17 @@ "description": "When the connector is not in ACTIVE state, the description must be populated to specify the reason why it's not in ACTIVE state.", "type": "string" }, + "metadata": { + "additionalProperties": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "description": "Metadata like service latency, etc.", + "type": "object" + }, "state": { "description": "State of the connector.", "enum": [ @@ -899,6 +994,17 @@ "description": "Fields of the entity. The key is name of the field and the value contains the applicable `google.protobuf.Value` entry for this field.", "type": "object" }, + "metadata": { + "additionalProperties": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "description": "Metadata like service latency, etc.", + "type": "object" + }, "name": { "description": "Output only. Resource name of the Entity. Format: projects/{project}/locations/{location}/connections/{connection}/entityTypes/{type}/entities/{id}", "readOnly": true, @@ -911,6 +1017,9 @@ "description": "EntityType message contains metadata information about a single entity type present in the external system.", "id": "EntityType", "properties": { + "defaultSortBy": { + "type": "string" + }, "fields": { "description": "List containing metadata information about each field of the entity type.", "items": { @@ -922,6 +1031,17 @@ "$ref": "JsonSchema", "description": "JsonSchema representation of this entity's schema" }, + "metadata": { + "additionalProperties": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "description": "Metadata like service latency, etc.", + "type": "object" + }, "name": { "description": "The name of the entity type.", "type": "string" @@ -968,6 +1088,17 @@ "properties": { "accessCredentials": { "$ref": "AccessCredentials" + }, + "metadata": { + "additionalProperties": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "description": "Metadata like service latency, etc.", + "type": "object" } }, "type": "object" @@ -991,6 +1122,17 @@ "description": "Response message for ActionService.ExecuteAction", "id": "ExecuteActionResponse", "properties": { + "metadata": { + "additionalProperties": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "description": "Metadata like service latency, etc.", + "type": "object" + }, "results": { "description": "In the case of successful invocation of the specified action, the results Struct contains values based on the response of the action invoked. 1. If the action execution produces any entities as a result, they are returned as an array of Structs with the 'key' being the field name and the 'value' being the value of that field in each result row. { 'results': [{'key': 'value'}, ...] }", "items": { @@ -1034,6 +1176,36 @@ }, "type": "object" }, + "ExecuteToolRequest": { + "description": "Request message for ConnectorAgentService.ExecuteTool", + "id": "ExecuteToolRequest", + "properties": { + "parameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Input parameters for the tool.", + "type": "object" + } + }, + "type": "object" + }, + "ExecuteToolResponse": { + "description": "Response message for ConnectorAgentService.ExecuteTool", + "id": "ExecuteToolResponse", + "properties": { + "result": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Output from the tool execution.", + "type": "object" + } + }, + "type": "object" + }, "Field": { "description": "Message contains EntityType's Field metadata.", "id": "Field", @@ -1744,6 +1916,17 @@ }, "type": "array" }, + "metadata": { + "additionalProperties": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "description": "Metadata like service latency, etc.", + "type": "object" + }, "nextPageToken": { "description": "Next page token if more actions available.", "type": "string" @@ -1769,6 +1952,17 @@ }, "type": "array" }, + "metadata": { + "additionalProperties": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "description": "Metadata like service latency, etc.", + "type": "object" + }, "nextPageToken": { "description": "Next page token if more records are available.", "type": "string" @@ -1780,6 +1974,17 @@ "description": "Response message for EntityService.ListEntityTypes", "id": "ListEntityTypesResponse", "properties": { + "metadata": { + "additionalProperties": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "description": "Metadata like service latency, etc.", + "type": "object" + }, "nextPageToken": { "description": "Next page token if more entity types available.", "type": "string" @@ -1801,6 +2006,24 @@ }, "type": "object" }, + "ListToolsResponse": { + "description": "Response message for ConnectorAgentService.ListTools", + "id": "ListToolsResponse", + "properties": { + "nextPageToken": { + "description": "Next page token.", + "type": "string" + }, + "tools": { + "description": "List of available tools.", + "items": { + "$ref": "Tool" + }, + "type": "array" + } + }, + "type": "object" + }, "MaintenancePolicy": { "description": "Defines policies to service maintenance events.", "id": "MaintenancePolicy", @@ -2194,6 +2417,17 @@ "properties": { "accessCredentials": { "$ref": "AccessCredentials" + }, + "metadata": { + "additionalProperties": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "description": "Metadata like service latency, etc.", + "type": "object" } }, "type": "object" @@ -2474,10 +2708,51 @@ }, "type": "object" }, + "Tool": { + "description": "Message representing a single tool.", + "id": "Tool", + "properties": { + "dependsOn": { + "description": "List of tool names that this tool depends on.", + "items": { + "type": "string" + }, + "type": "array" + }, + "description": { + "description": "Description of the tool.", + "type": "string" + }, + "inputSchema": { + "$ref": "JsonSchema", + "description": "JSON schema for the input parameters of the tool." + }, + "name": { + "description": "Name of the tool.", + "type": "string" + }, + "outputSchema": { + "$ref": "JsonSchema", + "description": "JSON schema for the output of the tool." + } + }, + "type": "object" + }, "UpdateEntitiesWithConditionsResponse": { "description": "Response message for EntityService.UpdateEntitiesWithConditions", "id": "UpdateEntitiesWithConditionsResponse", "properties": { + "metadata": { + "additionalProperties": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "description": "Metadata like service latency, etc.", + "type": "object" + }, "response": { "additionalProperties": { "description": "Properties of the object.", diff --git a/discovery/googleapis/contactcenterinsights__v1.json b/discovery/googleapis/contactcenterinsights__v1.json index 58f279e0a..45b8460b5 100644 --- a/discovery/googleapis/contactcenterinsights__v1.json +++ b/discovery/googleapis/contactcenterinsights__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250729", + "revision": "20250909", "rootUrl": "https://contactcenterinsights.googleapis.com/", "servicePath": "", "title": "Contact Center AI Insights API", @@ -701,7 +701,7 @@ ], "parameters": { "authorizedViewSetId": { - "description": "Optional. A unique ID for the new AuthorizedViewSet. This ID will become the final component of the AuthorizedViewSet's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. See aip.dev/122#resource-id-segments", + "description": "Optional. A unique ID for the new AuthorizedViewSet. This ID will become the final component of the AuthorizedViewSet's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. See https://google.aip.dev/122#resource-id-segments", "location": "query", "type": "string" }, @@ -873,7 +873,7 @@ ], "parameters": { "authorizedViewId": { - "description": "Optional. A unique ID for the new AuthorizedView. This ID will become the final component of the AuthorizedView's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. See aip.dev/122#resource-id-segments", + "description": "Optional. A unique ID for the new AuthorizedView. This ID will become the final component of the AuthorizedView's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. See https://google.aip.dev/122#resource-id-segments", "location": "query", "type": "string" }, @@ -946,6 +946,37 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}:getIamPolicy", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "List AuthorizedViewSets", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews", @@ -1127,6 +1158,62 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}:setIamPolicy", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}:testIamPermissions", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "GoogleIamV1TestIamPermissionsRequest" + }, + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -2369,6 +2456,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "sample": { + "description": "Samples conversations based on user configuration and handles the sampled conversations for different use cases.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations:sample", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.conversations.sample", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the dataset.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/conversations:sample", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1SampleConversationsRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "upload": { "description": "Create a long-running conversation upload operation. This method differs from `CreateConversation` by allowing audio transcription and optional DLP redaction.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations:upload", @@ -3113,6 +3228,130 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "create": { + "description": "Creates a dataset.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.datasets.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "datasetId": { + "description": "Optional. The ID to use for the dataset.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the dataset.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/datasets", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1Dataset" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1Dataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete a dataset.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", + "httpMethod": "DELETE", + "id": "contactcenterinsights.projects.locations.datasets.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the dataset to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a dataset.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.datasets.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the dataset to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1Dataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List datasets matching the input.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.datasets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. A filter to reduce results to a specific subset. Useful for querying datasets with specific properties. Supported fields include, for Q2 though we only support list by project: - `type` - `description` - `project_number`", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of datasets to return in the response. If this value is zero, the service will select a default size. A call might return fewer objects than requested. A non-empty `next_page_token` in the response indicates that more data is available.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The value returned by the last `ListDatasetsResponse`; indicates that this is a continuation of a prior `ListDatasets` call and the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the dataset.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/datasets", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1ListDatasetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "listAllFeedbackLabels": { "description": "List all feedback labels by project number.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:listAllFeedbackLabels", @@ -3153,6 +3392,40 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "patch": { + "description": "Updates a dataset.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", + "httpMethod": "PATCH", + "id": "contactcenterinsights.projects.locations.datasets.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. Identifier. Resource name of the dataset. Format: projects/{project}/locations/{location}/datasets/{dataset}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1Dataset" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1Dataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -3400,6 +3673,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "sample": { + "description": "Samples conversations based on user configuration and handles the sampled conversations for different use cases.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/conversations:sample", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.datasets.conversations.sample", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the dataset.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/conversations:sample", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1SampleConversationsRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -4556,7 +4857,7 @@ ], "parameters": { "filter": { - "description": "Optional. A filter to reduce results to a specific subset. Supports disjunctions (OR) and conjunctions (AND). Supported fields include the following: * `project_id` - id of the project to list tags for * `qa_scorecard_revision_id` - id of the scorecard revision to list tags for * `qa_question_id - id of the question to list tags for`", + "description": "Optional. A filter to reduce results to a specific subset. Supports conjunctions (ie. AND operators). Supported fields include the following: * `project_id` - id of the project to list tags for * `qa_scorecard_id` - id of the scorecard to list tags for * `revision_id` - id of the scorecard revision to list tags for` * `qa_question_id - id of the question to list tags for`", "location": "query", "type": "string" }, @@ -4728,6 +5029,22 @@ "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" + }, + "qaScorecardSources": { + "description": "Optional. The source of scorecards are based on how those Scorecards were created, e.g., a customer-defined scorecard, a predefined scorecard, etc. This field is used to retrieve Scorecards of one or more sources.", + "enum": [ + "QA_SCORECARD_SOURCE_UNSPECIFIED", + "QA_SCORECARD_SOURCE_CUSTOMER_DEFINED", + "QA_SCORECARD_SOURCE_DISCOVERY_ENGINE" + ], + "enumDescriptions": [ + "The source of the scorecard is unspecified. Default to QA_SCORECARD_SOURCE_CUSTOMER_DEFINED.", + "The scorecard is a custom scorecard created by the user.", + "The scorecard is a scorecard created through discovery engine deployment." + ], + "location": "query", + "repeated": true, + "type": "string" } }, "path": "v1/{+parent}/qaScorecards", @@ -4923,6 +5240,22 @@ "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$", "required": true, "type": "string" + }, + "qaScorecardSources": { + "description": "Optional. The source of scorecards are based on how those Scorecards were created, e.g., a customer-defined scorecard, a predefined scorecard, etc. This field is used to retrieve Scorecards Revisions from Scorecards of one or more sources.", + "enum": [ + "QA_SCORECARD_SOURCE_UNSPECIFIED", + "QA_SCORECARD_SOURCE_CUSTOMER_DEFINED", + "QA_SCORECARD_SOURCE_DISCOVERY_ENGINE" + ], + "enumDescriptions": [ + "The source of the scorecard is unspecified. Default to QA_SCORECARD_SOURCE_CUSTOMER_DEFINED.", + "The scorecard is a custom scorecard created by the user.", + "The scorecard is a scorecard created through discovery engine deployment." + ], + "location": "query", + "repeated": true, + "type": "string" } }, "path": "v1/{+parent}/revisions", @@ -6658,6 +6991,13 @@ "format": "int32", "type": "integer" }, + "feedbackLabels": { + "description": "Input only. The feedback labels associated with the conversation.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" + }, + "type": "array" + }, "menuPath": { "description": "An arbitrary string value specifying the menu path the customer took.", "type": "string" @@ -7197,6 +7537,7 @@ "AGENT_TEAM", "QA_QUESTION_ID", "QA_QUESTION_ANSWER_VALUE", + "QA_SCORECARD_ID", "CONVERSATION_PROFILE_ID", "MEDIUM" ], @@ -7208,6 +7549,7 @@ "The dimension is keyed by agent teams.", "The dimension is keyed by QaQuestionIds. Note that: We only group by the QuestionId and not the revision-id of the scorecard this question is a part of. This allows for showing stats for the same question across different scorecard revisions.", "The dimension is keyed by QaQuestionIds-Answer value pairs. Note that: We only group by the QuestionId and not the revision-id of the scorecard this question is a part of. This allows for showing distribution of answers per question across different scorecard revisions.", + "The dimension is keyed by QaScorecardIds. Note that: We only group by the ScorecardId and not the revision-id of the scorecard. This allows for showing stats for the same scorecard across different revisions. This metric is mostly only useful if querying the average normalized score per scorecard.", "The dimension is keyed by the conversation profile ID.", "The dimension is keyed by the conversation medium." ], @@ -7486,6 +7828,9 @@ "EXPORT_V5", "EXPORT_V6", "EXPORT_V7", + "EXPORT_V8", + "EXPORT_V9", + "EXPORT_V10", "EXPORT_VERSION_LATEST_AVAILABLE" ], "enumDescriptions": [ @@ -7497,6 +7842,9 @@ "Export schema version 5.", "Export schema version 6.", "Export schema version 7.", + "Export schema version 8.", + "Export schema version 9.", + "Export schema version 10.", "Export schema version latest available." ], "type": "string" @@ -7800,6 +8148,14 @@ "$ref": "GoogleCloudContactcenterinsightsV1IngestConversationsRequest", "description": "Output only. The original request for ingest.", "readOnly": true + }, + "sampledConversations": { + "description": "Output only. Stores the conversation resources produced by ingest sampling operations.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" } }, "type": "object" @@ -8432,6 +8788,24 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1ListDatasetsResponse": { + "description": "The response to list datasets.", + "id": "GoogleCloudContactcenterinsightsV1ListDatasetsResponse", + "properties": { + "datasets": { + "description": "The datasets that match the request.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1Dataset" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse": { "description": "The response for listing feedback labels.", "id": "GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse", @@ -8942,6 +9316,11 @@ "readOnly": true, "type": "number" }, + "skipValue": { + "description": "Output only. A value of \"Skip\". If provided, this field may only be set to `true`. If a question receives this answer, it will be excluded from any score calculations. This would mean that the question was not evaluated.", + "readOnly": true, + "type": "boolean" + }, "strValue": { "description": "String value.", "type": "string" @@ -9084,12 +9463,16 @@ "enum": [ "PREDEFINED_QUESTION_TYPE_UNSPECIFIED", "CONVERSATION_OUTCOME", - "CONVERSATION_OUTCOME_ESCALATION_INITIATOR_ROLE" + "CONVERSATION_OUTCOME_ESCALATION_INITIATOR_ROLE", + "CONVERSATION_OUTCOME_CUSTOMER_SATISFACTION", + "CONVERSATION_OUTCOME_AGENT_HELPFULNESS" ], "enumDescriptions": [ "The type of the predefined question is unspecified.", "A prebuilt classifier classfying the outcome of the conversation. For example, if the customer issue mentioned in a conversation has been resolved or not.", - "A prebuilt classifier classfying the initiator of the conversation escalation. For example, if it was initiated by the customer or the agent." + "A prebuilt classifier classfying the initiator of the conversation escalation. For example, if it was initiated by the customer or the agent.", + "A prebuilt classifier classfying whether the customer is satisfied with the agent's response.", + "A prebuilt classifier classfying whether the agent is helpful to the customer." ], "type": "string" } @@ -9193,6 +9576,21 @@ "description": "Identifier. The scorecard name. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}", "type": "string" }, + "source": { + "description": "Output only. The source of the scorecard.", + "enum": [ + "QA_SCORECARD_SOURCE_UNSPECIFIED", + "QA_SCORECARD_SOURCE_CUSTOMER_DEFINED", + "QA_SCORECARD_SOURCE_DISCOVERY_ENGINE" + ], + "enumDescriptions": [ + "The source of the scorecard is unspecified. Default to QA_SCORECARD_SOURCE_CUSTOMER_DEFINED.", + "The scorecard is a custom scorecard created by the user.", + "The scorecard is a scorecard created through discovery engine deployment." + ], + "readOnly": true, + "type": "string" + }, "updateTime": { "description": "Output only. The most recent time at which the scorecard was updated.", "format": "google-datetime", @@ -9962,7 +10360,7 @@ "additionalProperties": { "type": "string" }, - "description": "A map that maps a notification trigger to a Pub/Sub topic. Each time a specified trigger occurs, Insights will notify the corresponding Pub/Sub topic. Keys are notification triggers. Supported keys are: * \"all-triggers\": Notify each time any of the supported triggers occurs. * \"create-analysis\": Notify each time an analysis is created. * \"create-conversation\": Notify each time a conversation is created. * \"export-insights-data\": Notify each time an export is complete. * \"ingest-conversations\": Notify each time an IngestConversations LRO is complete. * \"update-conversation\": Notify each time a conversation is updated via UpdateConversation. * \"upload-conversation\": Notify when an UploadConversation LRO is complete. Values are Pub/Sub topics. The format of each Pub/Sub topic is: projects/{project}/topics/{topic}", + "description": "A map that maps a notification trigger to a Pub/Sub topic. Each time a specified trigger occurs, Insights will notify the corresponding Pub/Sub topic. Keys are notification triggers. Supported keys are: * \"all-triggers\": Notify each time any of the supported triggers occurs. * \"create-analysis\": Notify each time an analysis is created. * \"create-conversation\": Notify each time a conversation is created. * \"export-insights-data\": Notify each time an export is complete. * \"ingest-conversations\": Notify each time an IngestConversations LRO is complete. * \"update-conversation\": Notify each time a conversation is updated via UpdateConversation. * \"upload-conversation\": Notify when an UploadConversation LRO is complete. * \"update-or-analyze-conversation\": Notify when an analysis for a conversation is completed or when the conversation is updated. The message will contain the conversation with transcript, analysis and other metadata. Values are Pub/Sub topics. The format of each Pub/Sub topic is: projects/{project}/topics/{topic}", "type": "object" }, "redactionConfig": { @@ -11082,6 +11480,13 @@ "format": "int32", "type": "integer" }, + "feedbackLabels": { + "description": "Input only. The feedback labels associated with the conversation.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel" + }, + "type": "array" + }, "menuPath": { "description": "An arbitrary string value specifying the menu path the customer took.", "type": "string" @@ -11615,6 +12020,7 @@ "AGENT_TEAM", "QA_QUESTION_ID", "QA_QUESTION_ANSWER_VALUE", + "QA_SCORECARD_ID", "CONVERSATION_PROFILE_ID", "MEDIUM" ], @@ -11626,6 +12032,7 @@ "The dimension is keyed by agent teams.", "The dimension is keyed by QaQuestionIds. Note that: We only group by the QuestionId and not the revision-id of the scorecard this question is a part of. This allows for showing stats for the same question across different scorecard revisions.", "The dimension is keyed by QaQuestionIds-Answer value pairs. Note that: We only group by the QuestionId and not the revision-id of the scorecard this question is a part of. This allows for showing distribution of answers per question across different scorecard revisions.", + "The dimension is keyed by QaScorecardIds. Note that: We only group by the ScorecardId and not the revision-id of the scorecard. This allows for showing stats for the same scorecard across different revisions. This metric is mostly only useful if querying the average normalized score per scorecard.", "The dimension is keyed by the conversation profile ID.", "The dimension is keyed by the conversation medium." ], @@ -11893,6 +12300,9 @@ "EXPORT_V5", "EXPORT_V6", "EXPORT_V7", + "EXPORT_V8", + "EXPORT_V9", + "EXPORT_V10", "EXPORT_VERSION_LATEST_AVAILABLE" ], "enumDescriptions": [ @@ -11904,6 +12314,9 @@ "Export schema version 5.", "Export schema version 6.", "Export schema version 7.", + "Export schema version 8.", + "Export schema version 9.", + "Export schema version 10.", "Export schema version latest available." ], "type": "string" @@ -12201,6 +12614,14 @@ "$ref": "GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest", "description": "Output only. The original request for ingest.", "readOnly": true + }, + "sampledConversations": { + "description": "Output only. Stores the conversation resources produced by ingest sampling operations.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" } }, "type": "object" @@ -12841,6 +13262,11 @@ "readOnly": true, "type": "number" }, + "skipValue": { + "description": "Output only. A value of \"Skip\". If provided, this field may only be set to `true`. If a question receives this answer, it will be excluded from any score calculations. This would mean that the question was not evaluated.", + "readOnly": true, + "type": "boolean" + }, "strValue": { "description": "String value.", "type": "string" @@ -13632,6 +14058,151 @@ }, "type": "object" }, + "GoogleIamV1AuditConfig": { + "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", + "id": "GoogleIamV1AuditConfig", + "properties": { + "auditLogConfigs": { + "description": "The configuration for logging of each type of permission.", + "items": { + "$ref": "GoogleIamV1AuditLogConfig" + }, + "type": "array" + }, + "service": { + "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleIamV1AuditLogConfig": { + "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", + "id": "GoogleIamV1AuditLogConfig", + "properties": { + "exemptedMembers": { + "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", + "items": { + "type": "string" + }, + "type": "array" + }, + "logType": { + "description": "The log type that this config enables.", + "enum": [ + "LOG_TYPE_UNSPECIFIED", + "ADMIN_READ", + "DATA_WRITE", + "DATA_READ" + ], + "enumDescriptions": [ + "Default case. Should never be this.", + "Admin reads. Example: CloudIAM getIamPolicy", + "Data writes. Example: CloudSQL Users create", + "Data reads. Example: CloudSQL Users list" + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleIamV1Binding": { + "description": "Associates `members`, or principals, with a `role`.", + "id": "GoogleIamV1Binding", + "properties": { + "condition": { + "$ref": "GoogleTypeExpr", + "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." + }, + "members": { + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "role": { + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", + "type": "string" + } + }, + "type": "object" + }, + "GoogleIamV1Policy": { + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "id": "GoogleIamV1Policy", + "properties": { + "auditConfigs": { + "description": "Specifies cloud audit logging configuration for this policy.", + "items": { + "$ref": "GoogleIamV1AuditConfig" + }, + "type": "array" + }, + "bindings": { + "description": "Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.", + "items": { + "$ref": "GoogleIamV1Binding" + }, + "type": "array" + }, + "etag": { + "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", + "format": "byte", + "type": "string" + }, + "version": { + "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleIamV1SetIamPolicyRequest": { + "description": "Request message for `SetIamPolicy` method.", + "id": "GoogleIamV1SetIamPolicyRequest", + "properties": { + "policy": { + "$ref": "GoogleIamV1Policy", + "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them." + }, + "updateMask": { + "description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: \"bindings, etag\"`", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, + "GoogleIamV1TestIamPermissionsRequest": { + "description": "Request message for `TestIamPermissions` method.", + "id": "GoogleIamV1TestIamPermissionsRequest", + "properties": { + "permissions": { + "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleIamV1TestIamPermissionsResponse": { + "description": "Response message for `TestIamPermissions` method.", + "id": "GoogleIamV1TestIamPermissionsResponse", + "properties": { + "permissions": { + "description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleLongrunningListOperationsResponse": { "description": "The response message for Operations.ListOperations.", "id": "GoogleLongrunningListOperationsResponse", @@ -13718,6 +14289,29 @@ }, "type": "object" }, + "GoogleTypeExpr": { + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() < 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' && document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "id": "GoogleTypeExpr", + "properties": { + "description": { + "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", + "type": "string" + }, + "expression": { + "description": "Textual representation of an expression in Common Expression Language syntax.", + "type": "string" + }, + "location": { + "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "type": "string" + }, + "title": { + "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", + "type": "string" + } + }, + "type": "object" + }, "GoogleTypeInterval": { "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.", "id": "GoogleTypeInterval", diff --git a/discovery/googleapis/container__v1.json b/discovery/googleapis/container__v1.json index 2a695b32b..433773cfc 100644 --- a/discovery/googleapis/container__v1.json +++ b/discovery/googleapis/container__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250725", + "revision": "20250812", "rootUrl": "https://container.googleapis.com/", "servicePath": "", "title": "Kubernetes Engine API", @@ -4037,6 +4037,10 @@ "$ref": "ClusterNetworkPerformanceConfig", "description": "The desired network performance config." }, + "desiredNetworkTierConfig": { + "$ref": "NetworkTierConfig", + "description": "The desired network tier configuration for the cluster." + }, "desiredNodeKubeletConfig": { "$ref": "NodeKubeletConfig", "description": "The desired node kubelet config for the cluster." @@ -5277,6 +5281,10 @@ ], "type": "string" }, + "networkTierConfig": { + "$ref": "NetworkTierConfig", + "description": "Cluster-level network tier configuration is used to determine the default network tier for external IP addresses on cluster resources, such as node pools and load balancers." + }, "nodeIpv4Cidr": { "deprecated": true, "description": "This field is deprecated, use node_ipv4_cidr_block.", @@ -5712,7 +5720,8 @@ "id": "LustreCsiDriverConfig", "properties": { "enableLegacyLustrePort": { - "description": "If set to true, the Lustre CSI driver will install Lustre kernel modules using port 6988.", + "deprecated": true, + "description": "If set to true, the Lustre CSI driver will install Lustre kernel modules using port 6988. This serves as a workaround for a port conflict with the gke-metadata-server. This field is required ONLY under the following conditions: 1. The GKE node version is older than 1.33.2-gke.4655000. 2. You're connecting to a Lustre instance that has the 'gke-support-enabled' flag.", "type": "boolean" }, "enabled": { @@ -6159,6 +6168,29 @@ }, "type": "object" }, + "NetworkTierConfig": { + "description": "NetworkTierConfig contains network tier information.", + "id": "NetworkTierConfig", + "properties": { + "networkTier": { + "description": "Network tier configuration.", + "enum": [ + "NETWORK_TIER_UNSPECIFIED", + "NETWORK_TIER_DEFAULT", + "NETWORK_TIER_PREMIUM", + "NETWORK_TIER_STANDARD" + ], + "enumDescriptions": [ + "By default, use project-level configuration. When unspecified, the behavior defaults to NETWORK_TIER_DEFAULT. For cluster updates, this implies no action (no-op).", + "Default network tier. Use project-level configuration. User can specify this value, meaning they want to keep the same behaviour as before cluster level network tier configuration is introduced. This field ensures backward compatibility for the network tier of cluster resources, such as node pools and load balancers, for their external IP addresses.", + "Premium network tier.", + "Standard network tier." + ], + "type": "string" + } + }, + "type": "object" + }, "NodeAffinity": { "description": "Specifies the NodeAffinity key, values, and affinity operator according to [shared sole tenant node group affinities](https://{$universe.dns_names.final_documentation_domain}/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity).", "id": "NodeAffinity", @@ -6611,6 +6643,11 @@ "$ref": "NetworkPerformanceConfig", "description": "Network bandwidth tier configuration." }, + "networkTierConfig": { + "$ref": "NetworkTierConfig", + "description": "Output only. The network tier configuration for the node pool inherits from the cluster-level configuration and remains immutable throughout the node pool's lifecycle, including during upgrades.", + "readOnly": true + }, "podCidrOverprovisionConfig": { "$ref": "PodCIDROverprovisionConfig", "description": "[PRIVATE FIELD] Pod CIDR size overprovisioning config for the nodepool. Pod CIDR size per node depends on max_pods_per_node. By default, the value of max_pods_per_node is rounded off to next power of 2 and we then double that to get the size of pod CIDR block per node. Example: max_pods_per_node of 30 would result in 64 IPs (/26). This config can disable the doubling of IPs (we still round off to next power of 2) Example: max_pods_per_node of 30 will result in 32 IPs (/27) when overprovisioning is disabled." @@ -7718,6 +7755,22 @@ }, "type": "object" }, + "RotationConfig": { + "description": "RotationConfig is config for secret manager auto rotation.", + "id": "RotationConfig", + "properties": { + "enabled": { + "description": "Whether the rotation is enabled.", + "type": "boolean" + }, + "rotationInterval": { + "description": "The interval between two consecutive rotations. Default rotation interval is 2 minutes.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "SandboxConfig": { "description": "SandboxConfig contains configurations of the sandbox to use for the node.", "id": "SandboxConfig", @@ -7773,6 +7826,10 @@ "enabled": { "description": "Enable/Disable Secret Manager Config.", "type": "boolean" + }, + "rotationConfig": { + "$ref": "RotationConfig", + "description": "Rotation config for secret manager." } }, "type": "object" diff --git a/discovery/googleapis/containeranalysis__v1.json b/discovery/googleapis/containeranalysis__v1.json index 4137b30c3..96b594ccd 100644 --- a/discovery/googleapis/containeranalysis__v1.json +++ b/discovery/googleapis/containeranalysis__v1.json @@ -242,7 +242,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250704", + "revision": "20250829", "rootUrl": "https://containeranalysis.googleapis.com/", "servicePath": "", "title": "Container Analysis API", @@ -2140,7 +2140,7 @@ "type": "object" }, "BuildStep": { - "description": "A step in the build pipeline. Next ID: 22", + "description": "A step in the build pipeline. Next ID: 23", "id": "BuildStep", "properties": { "allowExitCodes": { @@ -2198,6 +2198,10 @@ "$ref": "TimeSpan", "description": "Output only. Stores timing information for pulling this build step's builder image only." }, + "remoteConfig": { + "description": "Remote configuration for the build step.", + "type": "string" + }, "results": { "items": { "$ref": "StepResult" @@ -2280,6 +2284,16 @@ }, "type": "object" }, + "CISAKnownExploitedVulnerabilities": { + "id": "CISAKnownExploitedVulnerabilities", + "properties": { + "knownRansomwareCampaignUse": { + "description": "Whether the vulnerability is known to have been leveraged as part of a ransomware campaign.", + "type": "string" + } + }, + "type": "object" + }, "CVSS": { "description": "Common Vulnerability Scoring System. For details, see https://www.first.org/cvss/specification-document This is a message we will try to use for storing various versions of CVSS rather than making a separate proto for storing a specific version.", "id": "CVSS", @@ -2974,7 +2988,7 @@ "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage", "properties": { "packagePath": { - "description": "Path to the package.json. e.g. workspace/path/to/package", + "description": "Optional. Path to the package.json. e.g. workspace/path/to/package Only one of `archive` or `package_path` can be specified.", "type": "string" }, "repository": { @@ -4632,6 +4646,22 @@ }, "type": "object" }, + "ExploitPredictionScoringSystem": { + "id": "ExploitPredictionScoringSystem", + "properties": { + "percentile": { + "description": "The percentile of the current score, the proportion of all scored vulnerabilities with the same or a lower EPSS score", + "format": "double", + "type": "number" + }, + "score": { + "description": "The EPSS score representing the probability [0-1] of exploitation in the wild in the next 30 days", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "ExportSBOMRequest": { "description": "The request to generate and export SBOM. Target must be specified for the request.", "id": "ExportSBOMRequest", @@ -5282,7 +5312,7 @@ "type": "array" }, "unreachable": { - "description": "Unordered list. Unreachable regions. Populated for requests from the global region when `return_partial_success` is set. Format: projects//locations/", + "description": "Unordered list. Unreachable regions. Populated for requests from the global region when `return_partial_success` is set. Format: `projects/[PROJECT_ID]/locations/[LOCATION]`", "items": { "type": "string" }, @@ -5307,7 +5337,7 @@ "type": "array" }, "unreachable": { - "description": "Unordered list. Unreachable regions. Populated for requests from the global region when `return_partial_success` is set. Format: projects//locations/", + "description": "Unordered list. Unreachable regions. Populated for requests from the global region when `return_partial_success` is set. Format: `projects/[PROJECT_ID]/locations/[LOCATION]`", "items": { "type": "string" }, @@ -6081,6 +6111,20 @@ }, "type": "object" }, + "Risk": { + "id": "Risk", + "properties": { + "cisaKev": { + "$ref": "CISAKnownExploitedVulnerabilities", + "description": "CISA maintains the authoritative source of vulnerabilities that have been exploited in the wild." + }, + "epss": { + "$ref": "ExploitPredictionScoringSystem", + "description": "The Exploit Prediction Scoring System (EPSS) estimates the likelihood (probability) that a software vulnerability will be exploited in the wild." + } + }, + "type": "object" + }, "RunDetails": { "id": "RunDetails", "properties": { @@ -7027,6 +7071,10 @@ }, "type": "array" }, + "risk": { + "$ref": "Risk", + "description": "Risk information about the vulnerability, such as CISA, EPSS, etc." + }, "severity": { "description": "Output only. The note provider assigned severity of this vulnerability.", "enum": [ @@ -7073,7 +7121,7 @@ "type": "array" }, "unreachable": { - "description": "Unordered list. Unreachable regions. Populated for requests from the global region when `return_partial_success` is set. Format: projects//locations/", + "description": "Unordered list. Unreachable regions. Populated for requests from the global region when `return_partial_success` is set. Format: `projects/[PROJECT_ID]/locations/[LOCATION]`", "items": { "type": "string" }, diff --git a/discovery/googleapis/datafusion__v1.json b/discovery/googleapis/datafusion__v1.json index e093dd9bb..e24ed1854 100644 --- a/discovery/googleapis/datafusion__v1.json +++ b/discovery/googleapis/datafusion__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250610", + "revision": "20250901", "rootUrl": "https://datafusion.googleapis.com/", "servicePath": "", "title": "Cloud Data Fusion API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1000,11 +1000,13 @@ "items": { "enum": [ "DISABLED_REASON_UNSPECIFIED", - "KMS_KEY_ISSUE" + "KMS_KEY_ISSUE", + "PROJECT_STATE_OFF" ], "enumDescriptions": [ "This is an unknown reason for disabling.", - "The KMS key used by the instance is either revoked or denied access to" + "The KMS key used by the instance is either revoked or denied access to", + "The consumer project is in a non-ACTIVE state." ], "type": "string" }, @@ -1127,7 +1129,8 @@ "UPDATING", "AUTO_UPDATING", "AUTO_UPGRADING", - "DISABLED" + "DISABLED", + "ENABLING" ], "enumDescriptions": [ "Instance does not have a state yet", @@ -1140,7 +1143,8 @@ "Instance is being updated on customer request", "Instance is being auto-updated", "Instance is being auto-upgraded", - "Instance is disabled" + "Instance is disabled", + "Instance is being enabled." ], "readOnly": true, "type": "string" diff --git a/discovery/googleapis/datamigration__v1.json b/discovery/googleapis/datamigration__v1.json index db644e8bf..71e02819c 100644 --- a/discovery/googleapis/datamigration__v1.json +++ b/discovery/googleapis/datamigration__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250625", + "revision": "20250826", "rootUrl": "https://datamigration.googleapis.com/", "servicePath": "", "title": "Database Migration API", @@ -184,7 +184,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -4254,6 +4254,18 @@ }, "type": "object" }, + "HeterogeneousMetadata": { + "description": "Metadata for heterogeneous migration jobs objects.", + "id": "HeterogeneousMetadata", + "properties": { + "unsupportedEventsCount": { + "description": "The number of unsupported events.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "ImportMappingRulesRequest": { "description": "Request message for 'ImportMappingRules' request.", "id": "ImportMappingRulesRequest", @@ -5089,6 +5101,11 @@ "description": "Output only. The error details in case of failure.", "readOnly": true }, + "heterogeneousMetadata": { + "$ref": "HeterogeneousMetadata", + "description": "Output only. Metadata for heterogeneous migration jobs objects.", + "readOnly": true + }, "name": { "description": "The object's name.", "type": "string" @@ -6467,10 +6484,19 @@ "description": "If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.", "type": "string" }, + "cloudSqlProjectId": { + "description": "Optional. The project id of the Cloud SQL instance. If not provided, the project id of the connection profile will be used.", + "type": "string" + }, "database": { "description": "Required. The name of the specific database within the host.", "type": "string" }, + "dbmPort": { + "description": "Optional. The Database Mirroring (DBM) port of the source SQL Server instance.", + "format": "int32", + "type": "integer" + }, "forwardSshConnectivity": { "$ref": "ForwardSshTunnelConnectivity", "description": "Forward SSH tunnel connectivity." @@ -6516,6 +6542,21 @@ }, "type": "object" }, + "SqlServerDagConfig": { + "description": "Configuration for distributed availability group (DAG) for the SQL Server homogeneous migration.", + "id": "SqlServerDagConfig", + "properties": { + "linkedServer": { + "description": "Required. The name of the linked server that points to the source SQL Server instance. Only used by DAG migrations.", + "type": "string" + }, + "sourceAg": { + "description": "Required. The name of the source availability group. Only used by DAG migrations.", + "type": "string" + } + }, + "type": "object" + }, "SqlServerDatabaseBackup": { "description": "Specifies the backup details for a single database in Cloud Storage for homogeneous migration to Cloud SQL for SQL Server.", "id": "SqlServerDatabaseBackup", @@ -6558,6 +6599,10 @@ "description": "Required. Pattern that describes the default backup naming strategy. The specified pattern should ensure lexicographical order of backups. The pattern must define one of the following capture group sets: Capture group set #1 yy/yyyy - year, 2 or 4 digits mm - month number, 1-12 dd - day of month, 1-31 hh - hour of day, 00-23 mi - minutes, 00-59 ss - seconds, 00-59 Example: For backup file TestDB_20230802_155400.trn, use pattern: (?.*)_backup_(?\\d{4})(?\\d{2})(?\\d{2})_(?\\d{2})(?\\d{2})(?\\d{2}).trn Capture group set #2 timestamp - unix timestamp Example: For backup file TestDB.1691448254.trn, use pattern: (?.*)\\.(?\\d*).trn or (?.*)\\.(?\\d*).trn", "type": "string" }, + "dagConfig": { + "$ref": "SqlServerDagConfig", + "description": "Optional. Configuration for distributed availability group (DAG) for the SQL Server homogeneous migration." + }, "databaseBackups": { "description": "Required. Backup details per database in Cloud Storage.", "items": { diff --git a/discovery/googleapis/dataplex__v1.json b/discovery/googleapis/dataplex__v1.json index ca0ae5836..c06d2ac07 100644 --- a/discovery/googleapis/dataplex__v1.json +++ b/discovery/googleapis/dataplex__v1.json @@ -12,7 +12,7 @@ "baseUrl": "https://dataplex.googleapis.com/", "batchPath": "batch", "canonicalName": "Cloud Dataplex", - "description": "Dataplex API is used to manage the lifecycle of data lakes.", + "description": "A unified, intelligent governance solution for data and AI assets.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/dataplex/docs", "endpoints": [ @@ -262,7 +262,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250729", + "revision": "20250907", "rootUrl": "https://dataplex.googleapis.com/", "servicePath": "", "title": "Cloud Dataplex API", @@ -775,7 +775,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -890,7 +890,7 @@ "type": "string" }, "orderBy": { - "description": "Optional. Specifies the ordering of results. Supported values are: relevance (default) last_modified_timestamp last_modified_timestamp asc", + "description": "Optional. Specifies the ordering of results. Supported values are: relevance last_modified_timestamp last_modified_timestamp asc", "location": "query", "type": "string" }, @@ -906,7 +906,7 @@ "type": "string" }, "query": { - "description": "Required. The query against which entries in scope should be matched. The query syntax is defined in Search syntax for Dataplex Catalog (https://cloud.google.com/dataplex/docs/search-syntax).", + "description": "Required. The query against which entries in scope should be matched. The query syntax is defined in Search syntax for Dataplex Universal Catalog (https://cloud.google.com/dataplex/docs/search-syntax).", "location": "query", "type": "string" }, @@ -1476,37 +1476,6 @@ }, "dataProducts": { "methods": { - "getIamPolicy": { - "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataProducts/{dataProductsId}:getIamPolicy", - "httpMethod": "GET", - "id": "dataplex.projects.locations.dataProducts.getIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "options.requestedPolicyVersion": { - "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", - "format": "int32", - "location": "query", - "type": "integer" - }, - "resource": { - "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/[^/]+/dataProducts/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:getIamPolicy", - "response": { - "$ref": "GoogleIamV1Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataProducts/{dataProductsId}:setIamPolicy", @@ -1567,37 +1536,6 @@ "resources": { "dataAssets": { "methods": { - "getIamPolicy": { - "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataProducts/{dataProductsId}/dataAssets/{dataAssetsId}:getIamPolicy", - "httpMethod": "GET", - "id": "dataplex.projects.locations.dataProducts.dataAssets.getIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "options.requestedPolicyVersion": { - "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", - "format": "int32", - "location": "query", - "type": "integer" - }, - "resource": { - "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/[^/]+/dataProducts/[^/]+/dataAssets/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:getIamPolicy", - "response": { - "$ref": "GoogleIamV1Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataProducts/{dataProductsId}/dataAssets/{dataAssetsId}:setIamPolicy", @@ -6977,7 +6915,7 @@ ] }, "create": { - "description": "Creates a metadata job. For example, use a metadata job to import Dataplex Catalog entries and aspects from a third-party system into Dataplex.", + "description": "Creates a metadata job. For example, use a metadata job to import metadata from a third-party system into Dataplex Universal Catalog.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataJobs", "httpMethod": "POST", "id": "dataplex.projects.locations.metadataJobs.create", @@ -7569,7 +7507,7 @@ "id": "GoogleCloudDataplexV1AspectTypeAuthorization", "properties": { "alternateUsePermission": { - "description": "Immutable. The IAM permission grantable on the EntryGroup to allow access to instantiate Aspects of Dataplex owned AspectTypes, only settable for Dataplex owned Types.", + "description": "Immutable. The IAM permission grantable on the EntryGroup to allow access to instantiate Aspects of Dataplex Universal Catalog owned AspectTypes, only settable for Dataplex Universal Catalog owned Types.", "type": "string" } }, @@ -8596,16 +8534,19 @@ }, "profile": { "$ref": "GoogleCloudDataplexV1DataProfileResultProfile", - "description": "The profile information per field." + "description": "Output only. The profile information per field.", + "readOnly": true }, "rowCount": { - "description": "The count of rows scanned.", + "description": "Output only. The count of rows scanned.", "format": "int64", + "readOnly": true, "type": "string" }, "scannedData": { "$ref": "GoogleCloudDataplexV1ScannedData", - "description": "The data scanned for this result." + "description": "Output only. The data scanned for this result.", + "readOnly": true } }, "type": "object" @@ -8656,10 +8597,11 @@ "id": "GoogleCloudDataplexV1DataProfileResultProfile", "properties": { "fields": { - "description": "List of fields with structural and profile information for each field.", + "description": "Output only. List of fields with structural and profile information for each field.", "items": { "$ref": "GoogleCloudDataplexV1DataProfileResultProfileField" }, + "readOnly": true, "type": "array" } }, @@ -8670,19 +8612,23 @@ "id": "GoogleCloudDataplexV1DataProfileResultProfileField", "properties": { "mode": { - "description": "The mode of the field. Possible values include: REQUIRED, if it is a required field. NULLABLE, if it is an optional field. REPEATED, if it is a repeated field.", + "description": "Output only. The mode of the field. Possible values include: REQUIRED, if it is a required field. NULLABLE, if it is an optional field. REPEATED, if it is a repeated field.", + "readOnly": true, "type": "string" }, "name": { - "description": "The name of the field.", + "description": "Output only. The name of the field.", + "readOnly": true, "type": "string" }, "profile": { "$ref": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo", - "description": "Profile information for the corresponding field." + "description": "Output only. Profile information for the corresponding field.", + "readOnly": true }, "type": { - "description": "The data type retrieved from the schema of the data source. For instance, for a BigQuery native table, it is the BigQuery Table Schema (https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). For a Dataplex Entity, it is the Entity Schema (https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3).", + "description": "Output only. The data type retrieved from the schema of the data source. For instance, for a BigQuery native table, it is the BigQuery Table Schema (https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). For a Dataplex Universal Catalog Entity, it is the Entity Schema (https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3).", + "readOnly": true, "type": "string" } }, @@ -8693,8 +8639,9 @@ "id": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo", "properties": { "distinctRatio": { - "description": "Ratio of rows with distinct values against total scanned rows. Not available for complex non-groupable field type, including RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode.", + "description": "Output only. Ratio of rows with distinct values against total scanned rows. Not available for complex non-groupable field type, including RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode.", "format": "double", + "readOnly": true, "type": "number" }, "doubleProfile": { @@ -8706,8 +8653,9 @@ "description": "Integer type field information." }, "nullRatio": { - "description": "Ratio of rows with null value against total scanned rows.", + "description": "Output only. Ratio of rows with null value against total scanned rows.", "format": "double", + "readOnly": true, "type": "number" }, "stringProfile": { @@ -8715,10 +8663,11 @@ "description": "String type field information." }, "topNValues": { - "description": "The list of top N non-null values, frequency and ratio with which they occur in the scanned data. N is 10 or equal to the number of distinct values in the field, whichever is smaller. Not available for complex non-groupable field type, including RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode.", + "description": "Output only. The list of top N non-null values, frequency and ratio with which they occur in the scanned data. N is 10 or equal to the number of distinct values in the field, whichever is smaller. Not available for complex non-groupable field type, including RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode.", "items": { "$ref": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue" }, + "readOnly": true, "type": "array" } }, @@ -8729,31 +8678,36 @@ "id": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo", "properties": { "average": { - "description": "Average of non-null values in the scanned data. NaN, if the field has a NaN.", + "description": "Output only. Average of non-null values in the scanned data. NaN, if the field has a NaN.", "format": "double", + "readOnly": true, "type": "number" }, "max": { - "description": "Maximum of non-null values in the scanned data. NaN, if the field has a NaN.", + "description": "Output only. Maximum of non-null values in the scanned data. NaN, if the field has a NaN.", "format": "double", + "readOnly": true, "type": "number" }, "min": { - "description": "Minimum of non-null values in the scanned data. NaN, if the field has a NaN.", + "description": "Output only. Minimum of non-null values in the scanned data. NaN, if the field has a NaN.", "format": "double", + "readOnly": true, "type": "number" }, "quartiles": { - "description": "A quartile divides the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. Here, the quartiles is provided as an ordered list of quartile values for the scanned data, occurring in order Q1, median, Q3.", + "description": "Output only. A quartile divides the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. Here, the quartiles is provided as an ordered list of quartile values for the scanned data, occurring in order Q1, median, Q3.", "items": { "format": "double", "type": "number" }, + "readOnly": true, "type": "array" }, "standardDeviation": { - "description": "Standard deviation of non-null values in the scanned data. NaN, if the field has a NaN.", + "description": "Output only. Standard deviation of non-null values in the scanned data. NaN, if the field has a NaN.", "format": "double", + "readOnly": true, "type": "number" } }, @@ -8764,31 +8718,36 @@ "id": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo", "properties": { "average": { - "description": "Average of non-null values in the scanned data. NaN, if the field has a NaN.", + "description": "Output only. Average of non-null values in the scanned data. NaN, if the field has a NaN.", "format": "double", + "readOnly": true, "type": "number" }, "max": { - "description": "Maximum of non-null values in the scanned data. NaN, if the field has a NaN.", + "description": "Output only. Maximum of non-null values in the scanned data. NaN, if the field has a NaN.", "format": "int64", + "readOnly": true, "type": "string" }, "min": { - "description": "Minimum of non-null values in the scanned data. NaN, if the field has a NaN.", + "description": "Output only. Minimum of non-null values in the scanned data. NaN, if the field has a NaN.", "format": "int64", + "readOnly": true, "type": "string" }, "quartiles": { - "description": "A quartile divides the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. Here, the quartiles is provided as an ordered list of approximate quartile values for the scanned data, occurring in order Q1, median, Q3.", + "description": "Output only. A quartile divides the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. Here, the quartiles is provided as an ordered list of approximate quartile values for the scanned data, occurring in order Q1, median, Q3.", "items": { "format": "int64", "type": "string" }, + "readOnly": true, "type": "array" }, "standardDeviation": { - "description": "Standard deviation of non-null values in the scanned data. NaN, if the field has a NaN.", + "description": "Output only. Standard deviation of non-null values in the scanned data. NaN, if the field has a NaN.", "format": "double", + "readOnly": true, "type": "number" } }, @@ -8799,18 +8758,21 @@ "id": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo", "properties": { "averageLength": { - "description": "Average length of non-null values in the scanned data.", + "description": "Output only. Average length of non-null values in the scanned data.", "format": "double", + "readOnly": true, "type": "number" }, "maxLength": { - "description": "Maximum length of non-null values in the scanned data.", + "description": "Output only. Maximum length of non-null values in the scanned data.", "format": "int64", + "readOnly": true, "type": "string" }, "minLength": { - "description": "Minimum length of non-null values in the scanned data.", + "description": "Output only. Minimum length of non-null values in the scanned data.", "format": "int64", + "readOnly": true, "type": "string" } }, @@ -8821,17 +8783,20 @@ "id": "GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue", "properties": { "count": { - "description": "Count of the corresponding value in the scanned data.", + "description": "Output only. Count of the corresponding value in the scanned data.", "format": "int64", + "readOnly": true, "type": "string" }, "ratio": { - "description": "Ratio of the corresponding value in the field against the total number of rows in the scanned data.", + "description": "Output only. Ratio of the corresponding value in the field against the total number of rows in the scanned data.", "format": "double", + "readOnly": true, "type": "number" }, "value": { - "description": "String value of a top N non-null value.", + "description": "Output only. String value of a top N non-null value.", + "readOnly": true, "type": "string" } }, @@ -8854,7 +8819,7 @@ "description": "Optional. Actions to take upon job completion.." }, "rowFilter": { - "description": "Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in GoogleSQL syntax (https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#where_clause).Example: col1 >= 0 AND col2 < 10", + "description": "Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10", "type": "string" }, "samplingPercent": { @@ -8881,7 +8846,7 @@ "id": "GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport", "properties": { "resultsTable": { - "description": "Optional. The BigQuery table to export DataProfileScan results to. Format: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID or projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID", + "description": "Optional. The BigQuery table to export DataProfileScan results to. Format: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID", "type": "string" } }, @@ -8937,7 +8902,8 @@ "id": "GoogleCloudDataplexV1DataQualityDimension", "properties": { "name": { - "description": "Optional. The dimension name a rule belongs to. Custom dimension name is supported with all uppercase letters and maximum length of 30 characters.", + "description": "Output only. The dimension name a rule belongs to. Custom dimension name is supported with all uppercase letters and maximum length of 30 characters.", + "readOnly": true, "type": "string" } }, @@ -8972,7 +8938,7 @@ "properties": { "catalogPublishingStatus": { "$ref": "GoogleCloudDataplexV1DataScanCatalogPublishingStatus", - "description": "Output only. The status of publishing the data scan to Catalog.", + "description": "Output only. The status of publishing the data scan as Dataplex Universal Catalog metadata.", "readOnly": true }, "columns": { @@ -9439,7 +9405,7 @@ "id": "GoogleCloudDataplexV1DataQualitySpec", "properties": { "catalogPublishingEnabled": { - "description": "Optional. If set, the latest DataScan job result will be published to Dataplex Catalog.", + "description": "Optional. If set, the latest DataScan job result will be published as Dataplex Universal Catalog metadata.", "type": "boolean" }, "postScanActions": { @@ -9673,7 +9639,7 @@ "type": "object" }, "GoogleCloudDataplexV1DataScanCatalogPublishingStatus": { - "description": "The status of publishing the data scan result to Catalog.", + "description": "The status of publishing the data scan result as Dataplex Universal Catalog metadata.", "id": "GoogleCloudDataplexV1DataScanCatalogPublishingStatus", "properties": { "state": { @@ -9700,7 +9666,7 @@ "properties": { "catalogPublishingStatus": { "$ref": "GoogleCloudDataplexV1DataScanCatalogPublishingStatus", - "description": "The status of publishing the data scan to Catalog." + "description": "The status of publishing the data scan as Dataplex Universal Catalog metadata." }, "createTime": { "description": "The time when the data scan job was created.", @@ -10102,7 +10068,7 @@ "id": "GoogleCloudDataplexV1DataSource", "properties": { "entity": { - "description": "Immutable. The Dataplex entity that represents the data source (e.g. BigQuery table) for DataScan, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.", + "description": "Immutable. The Dataplex Universal Catalog entity that represents the data source (e.g. BigQuery table) for DataScan, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.", "type": "string" }, "resource": { @@ -10607,7 +10573,7 @@ "type": "object" }, "createTime": { - "description": "Output only. The time when the entry was created in Dataplex.", + "description": "Output only. The time when the entry was created in Dataplex Universal Catalog.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -10633,7 +10599,7 @@ "type": "string" }, "updateTime": { - "description": "Output only. The time when the entry was last updated in Dataplex.", + "description": "Output only. The time when the entry was last updated in Dataplex Universal Catalog.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -10957,7 +10923,7 @@ "id": "GoogleCloudDataplexV1EntryTypeAuthorization", "properties": { "alternateUsePermission": { - "description": "Immutable. The IAM permission grantable on the Entry Group to allow access to instantiate Entries of Dataplex owned Entry Types, only settable for Dataplex owned Types.", + "description": "Immutable. The IAM permission grantable on the Entry Group to allow access to instantiate Entries of Dataplex Universal Catalog owned Entry Types, only settable for Dataplex Universal Catalog owned Types.", "type": "string" } }, @@ -11103,7 +11069,7 @@ "id": "GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime", "properties": { "imageVersion": { - "description": "Required. Dataplex Image version.", + "description": "Required. Dataplex Universal Catalog Image version.", "type": "string" }, "javaLibraries": { @@ -11169,7 +11135,7 @@ "id": "GoogleCloudDataplexV1GenerateDataQualityRulesResponse", "properties": { "rule": { - "description": "The data quality rules that Dataplex generates based on the results of a data profiling scan.", + "description": "The data quality rules that Dataplex Universal Catalog generates based on the results of a data profiling scan.", "items": { "$ref": "GoogleCloudDataplexV1DataQualityRule" }, @@ -11421,7 +11387,7 @@ "id": "GoogleCloudDataplexV1ImportItem", "properties": { "aspectKeys": { - "description": "The aspects to modify. Supports the following syntaxes: {aspect_type_reference}: matches aspects that belong to the specified aspect type and are attached directly to the entry. {aspect_type_reference}@{path}: matches aspects that belong to the specified aspect type and path. {aspect_type_reference}@* : matches aspects of the given type for all paths. *@path : matches aspects of all types on the given path.Replace {aspect_type_reference} with a reference to the aspect type, in the format {project_id_or_number}.{location_id}.{aspect_type_id}.In FULL entry sync mode, if you leave this field empty, it is treated as specifying exactly those aspects that are present within the specified entry. Dataplex implicitly adds the keys for all of the required aspects of an entry.", + "description": "The aspects to modify. Supports the following syntaxes: {aspect_type_reference}: matches aspects that belong to the specified aspect type and are attached directly to the entry. {aspect_type_reference}@{path}: matches aspects that belong to the specified aspect type and path. {aspect_type_reference}@* : matches aspects of the given type for all paths. *@path : matches aspects of all types on the given path.Replace {aspect_type_reference} with a reference to the aspect type, in the format {project_id_or_number}.{location_id}.{aspect_type_id}.In FULL entry sync mode, if you leave this field empty, it is treated as specifying exactly those aspects that are present within the specified entry. Dataplex Universal Catalog implicitly adds the keys for all of the required aspects of an entry.", "items": { "type": "string" }, @@ -11436,7 +11402,7 @@ "description": "Information about the entry link. User should provide either one of the entry or entry_link. While providing entry_link, user should not provide update_mask and aspect_keys." }, "updateMask": { - "description": "The fields to update, in paths that are relative to the Entry resource. Separate each field with a comma.In FULL entry sync mode, Dataplex includes the paths of all of the fields for an entry that can be modified, including aspects. This means that Dataplex replaces the existing entry with the entry in the metadata import file. All modifiable fields are updated, regardless of the fields that are listed in the update mask, and regardless of whether a field is present in the entry object.The update_mask field is ignored when an entry is created or re-created.In an aspect-only metadata job (when entry sync mode is NONE), set this value to aspects.Dataplex also determines which entries and aspects to modify by comparing the values and timestamps that you provide in the metadata import file with the values and timestamps that exist in your project. For more information, see Comparison logic (https://cloud.google.com/dataplex/docs/import-metadata#data-modification-logic).", + "description": "The fields to update, in paths that are relative to the Entry resource. Separate each field with a comma.In FULL entry sync mode, Dataplex Universal Catalog includes the paths of all of the fields for an entry that can be modified, including aspects. This means that Dataplex Universal Catalog replaces the existing entry with the entry in the metadata import file. All modifiable fields are updated, regardless of the fields that are listed in the update mask, and regardless of whether a field is present in the entry object.The update_mask field is ignored when an entry is created or re-created.In an aspect-only metadata job (when entry sync mode is NONE), set this value to aspects.Dataplex Universal Catalog also determines which entries and aspects to modify by comparing the values and timestamps that you provide in the metadata import file with the values and timestamps that exist in your project. For more information, see Comparison logic (https://cloud.google.com/dataplex/docs/import-metadata#data-modification-logic).", "format": "google-fieldmask", "type": "string" } @@ -11524,7 +11490,7 @@ "The job cancellation was successful.", "The job completed successfully.", "The job is no longer running due to an error.", - "The job was cancelled outside of Dataplex." + "The job was cancelled outside of Dataplex Universal Catalog." ], "readOnly": true, "type": "string" @@ -11538,7 +11504,7 @@ ], "enumDescriptions": [ "The trigger is unspecified.", - "The job was triggered by Dataplex based on trigger spec from task definition.", + "The job was triggered by Dataplex Universal Catalog based on trigger spec from task definition.", "The job was triggered by the explicit call of Task API." ], "readOnly": true, @@ -11570,7 +11536,7 @@ ], "enumDescriptions": [ "The job execution trigger is unspecified.", - "The job was triggered by Dataplex based on trigger spec from task definition.", + "The job was triggered by Dataplex Universal Catalog based on trigger spec from task definition.", "The job was triggered by the explicit call of Task API." ], "type": "string" @@ -12419,7 +12385,7 @@ "id": "GoogleCloudDataplexV1MetadataJobExportJobSpec", "properties": { "outputPath": { - "description": "Required. The root path of the Cloud Storage bucket to export the metadata to, in the format gs://{bucket}/. You can optionally specify a custom prefix after the bucket name, in the format gs://{bucket}/{prefix}/. The maximum length of the custom prefix is 128 characters. Dataplex constructs the object path for the exported files by using the bucket name and prefix that you provide, followed by a system-generated path.The bucket must be in the same VPC Service Controls perimeter as the job.", + "description": "Required. The root path of the Cloud Storage bucket to export the metadata to, in the format gs://{bucket}/. You can optionally specify a custom prefix after the bucket name, in the format gs://{bucket}/{prefix}/. The maximum length of the custom prefix is 128 characters. Dataplex Universal Catalog constructs the object path for the exported files by using the bucket name and prefix that you provide, followed by a system-generated path.The bucket must be in the same VPC Service Controls perimeter as the job.", "type": "string" }, "scope": { @@ -12543,7 +12509,7 @@ ], "enumDescriptions": [ "Sync mode unspecified.", - "All resources in the job's scope are modified. If a resource exists in Dataplex but isn't included in the metadata import file, the resource is deleted when you run the metadata job. Use this mode to perform a full sync of the set of entries in the job scope.This sync mode is supported for entries.", + "All resources in the job's scope are modified. If a resource exists in Dataplex Universal Catalog but isn't included in the metadata import file, the resource is deleted when you run the metadata job. Use this mode to perform a full sync of the set of entries in the job scope.This sync mode is supported for entries.", "Only the resources that are explicitly included in the metadata import file are modified. Use this mode to modify a subset of resources while leaving unreferenced resources unchanged.This sync mode is supported for aspects.", "If entry sync mode is NONE, then aspects are modified according to the aspect sync mode. Other metadata that belongs to entries in the job's scope isn't modified.This sync mode is supported for entries." ], @@ -12559,7 +12525,7 @@ ], "enumDescriptions": [ "Sync mode unspecified.", - "All resources in the job's scope are modified. If a resource exists in Dataplex but isn't included in the metadata import file, the resource is deleted when you run the metadata job. Use this mode to perform a full sync of the set of entries in the job scope.This sync mode is supported for entries.", + "All resources in the job's scope are modified. If a resource exists in Dataplex Universal Catalog but isn't included in the metadata import file, the resource is deleted when you run the metadata job. Use this mode to perform a full sync of the set of entries in the job scope.This sync mode is supported for entries.", "Only the resources that are explicitly included in the metadata import file are modified. Use this mode to modify a subset of resources while leaving unreferenced resources unchanged.This sync mode is supported for aspects.", "If entry sync mode is NONE, then aspects are modified according to the aspect sync mode. Other metadata that belongs to entries in the job's scope isn't modified.This sync mode is supported for entries." ], @@ -12856,15 +12822,18 @@ "id": "GoogleCloudDataplexV1ScannedDataIncrementalField", "properties": { "end": { - "description": "Value that marks the end of the range.", + "description": "Output only. Value that marks the end of the range.", + "readOnly": true, "type": "string" }, "field": { - "description": "The field that contains values which monotonically increases over time (e.g. a timestamp column).", + "description": "Output only. The field that contains values which monotonically increases over time (e.g. a timestamp column).", + "readOnly": true, "type": "string" }, "start": { - "description": "Value that marks the start of the range.", + "description": "Output only. Value that marks the start of the range.", + "readOnly": true, "type": "string" } }, @@ -12901,7 +12870,7 @@ "type": "string" }, "userManaged": { - "description": "Required. Set to true if user-managed or false if managed by Dataplex. The default is false (managed by Dataplex). Set to falseto enable Dataplex discovery to update the schema. including new data discovery, schema inference, and schema evolution. Users retain the ability to input and edit the schema. Dataplex treats schema input by the user as though produced by a previous Dataplex discovery operation, and it will evolve the schema and take action based on that treatment. Set to true to fully manage the entity schema. This setting guarantees that Dataplex will not change schema fields.", + "description": "Required. Set to true if user-managed or false if managed by Dataplex Universal Catalog. The default is false (managed by Dataplex Universal Catalog). Set to falseto enable Dataplex Universal Catalog discovery to update the schema. including new data discovery, schema inference, and schema evolution. Users retain the ability to input and edit the schema. Dataplex Universal Catalog treats schema input by the user as though produced by a previous Dataplex Universal Catalog discovery operation, and it will evolve the schema and take action based on that treatment. Set to true to fully manage the entity schema. This setting guarantees that Dataplex Universal Catalog will not change schema fields.", "type": "boolean" } }, diff --git a/discovery/googleapis/dataproc__v1.json b/discovery/googleapis/dataproc__v1.json index 3c1c7f5a6..a3e108282 100644 --- a/discovery/googleapis/dataproc__v1.json +++ b/discovery/googleapis/dataproc__v1.json @@ -102,7 +102,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250624", + "revision": "20250813", "rootUrl": "https://dataproc.googleapis.com/", "servicePath": "", "title": "Cloud Dataproc API", @@ -1759,7 +1759,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the session template.", + "description": "Required. Identifier. The resource name of the session template.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/sessionTemplates/[^/]+$", "required": true, @@ -5218,6 +5218,10 @@ "requestId": { "description": "Optional. A unique ID used to identify the request. If the service receives two AnalyzeBatchRequest (http://cloud/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.AnalyzeBatchRequest)s with the same request_id, the second request is ignored and the Operation that corresponds to the first request created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", "type": "string" + }, + "requestorId": { + "description": "Optional. The requestor ID is used to identify if the request comes from a GCA investigation or the old Ask Gemini Experience. ", + "type": "string" } }, "type": "object" @@ -5909,7 +5913,7 @@ "type": "array" }, "clusterTier": { - "description": "Optional. The tier of the cluster.", + "description": "Optional. The cluster tier.", "enum": [ "CLUSTER_TIER_UNSPECIFIED", "CLUSTER_TIER_STANDARD", @@ -5917,8 +5921,8 @@ ], "enumDescriptions": [ "Not set. Works the same as CLUSTER_TIER_STANDARD.", - "Standard dataproc cluster.", - "Premium dataproc cluster." + "Standard Dataproc cluster.", + "Premium Dataproc cluster." ], "type": "string" }, @@ -10400,7 +10404,7 @@ "type": "object" }, "name": { - "description": "Required. The resource name of the session template.", + "description": "Required. Identifier. The resource name of the session template.", "type": "string" }, "runtimeConfig": { @@ -10690,7 +10694,8 @@ "RANGER", "SOLR", "ZEPPELIN", - "ZOOKEEPER" + "ZOOKEEPER", + "JUPYTER_KERNEL_GATEWAY" ], "enumDescriptions": [ "Unspecified component. Specifying this will cause Cluster creation to fail.", @@ -10710,7 +10715,8 @@ "The Ranger service.", "The Solr service.", "The Zeppelin notebook.", - "The Zookeeper service." + "The Zookeeper service.", + "The Jupyter Kernel Gateway." ], "type": "string" }, diff --git a/discovery/googleapis/datastore__v1.json b/discovery/googleapis/datastore__v1.json index d06e4eca3..5d69eecac 100644 --- a/discovery/googleapis/datastore__v1.json +++ b/discovery/googleapis/datastore__v1.json @@ -17,6 +17,18 @@ "description": "Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. ", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/datastore/", + "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://datastore.us-east7.rep.googleapis.com/", + "location": "us-east7" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://batch-datastore.us-east7.rep.googleapis.com/", + "location": "us-east7" + } + ], "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", "x32": "http://www.google.com/images/icons/product/search-32.gif" @@ -27,7 +39,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250212", + "revision": "20250830", "rootUrl": "https://datastore.googleapis.com/", "servicePath": "", "title": "Cloud Datastore API", diff --git a/discovery/googleapis/datastream__v1.json b/discovery/googleapis/datastream__v1.json index fcdca894e..1dbbed212 100644 --- a/discovery/googleapis/datastream__v1.json +++ b/discovery/googleapis/datastream__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250722", + "revision": "20250827", "rootUrl": "https://datastream.googleapis.com/", "servicePath": "", "title": "Datastream API", @@ -184,7 +184,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -2157,6 +2157,18 @@ "properties": {}, "type": "object" }, + "MongodbChangeStreamPosition": { + "description": "MongoDB change stream position", + "id": "MongodbChangeStreamPosition", + "properties": { + "startTime": { + "description": "Required. The timestamp (in epoch seconds) to start change stream from.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "MongodbCluster": { "description": "MongoDB Cluster structure.", "id": "MongodbCluster", @@ -3549,6 +3561,10 @@ "description": "CDC strategy to start replicating from a specific position in the source.", "id": "SpecificStartPosition", "properties": { + "mongodbChangeStreamPosition": { + "$ref": "MongodbChangeStreamPosition", + "description": "MongoDB change stream position to start replicating from." + }, "mysqlGtidPosition": { "$ref": "MysqlGtidPosition", "description": "MySQL GTID set to start replicating from." diff --git a/discovery/googleapis/deploymentmanager__v2.json b/discovery/googleapis/deploymentmanager__v2.json index e12ca1cf8..f27e56db9 100644 --- a/discovery/googleapis/deploymentmanager__v2.json +++ b/discovery/googleapis/deploymentmanager__v2.json @@ -34,7 +34,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250403", + "revision": "20250828", "rootUrl": "https://deploymentmanager.googleapis.com/", "servicePath": "", "title": "Cloud Deployment Manager V2 API", @@ -1387,6 +1387,7 @@ "description": "REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them." }, "updateMask": { + "description": "Update mask for the policy.", "format": "google-fieldmask", "type": "string" } @@ -2500,6 +2501,14 @@ "type": "string" }, "type": "array" + }, + "zoneToIgmIds": { + "additionalProperties": { + "format": "int64", + "type": "string" + }, + "description": "Map of zone to an ID of the zonal IGM belonging to the RMIG.", + "type": "object" } }, "type": "object" diff --git a/discovery/googleapis/developerconnect__v1.json b/discovery/googleapis/developerconnect__v1.json index 501dba8ed..e77f303fa 100644 --- a/discovery/googleapis/developerconnect__v1.json +++ b/discovery/googleapis/developerconnect__v1.json @@ -77,7 +77,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250710", + "revision": "20250904", "rootUrl": "https://developerconnect.googleapis.com/", "servicePath": "", "title": "Developer Connect API", @@ -200,7 +200,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/dfareporting__v4.json b/discovery/googleapis/dfareporting__v4.json index 6835d1b3a..deccf3c28 100644 --- a/discovery/googleapis/dfareporting__v4.json +++ b/discovery/googleapis/dfareporting__v4.json @@ -31,7 +31,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250722", + "revision": "20250902", "rootUrl": "https://dfareporting.googleapis.com/", "servicePath": "dfareporting/v4/", "title": "Campaign Manager 360 API", @@ -11054,6 +11054,18 @@ "description": "Default email address used in sender field for tag emails.", "type": "string" }, + "euPoliticalAdsDeclaration": { + "description": "Optional. Whether the advertiser plans to serve EU political ads.", + "enum": [ + "ADVERTISER_PLANS_TO_SERVE_EU_POLITICAL_ADS", + "ADVERTISER_DOES_NOT_PLAN_TO_SERVE_EU_POLITICAL_ADS" + ], + "enumDescriptions": [ + "You'll need to confirm if your campaign contains EU political advertising.", + "All new campaigns will have “No” selected for the question that asks if your campaign has EU political ads. You can change this for any campaign at any time." + ], + "type": "string" + }, "floodlightConfigurationId": { "description": "Floodlight configuration ID of this advertiser. The floodlight configuration ID will be created automatically, so on insert this field should be left blank. This field can be set to another advertiser's floodlight configuration ID in order to share that advertiser's floodlight configuration with this advertiser, so long as: - This advertiser's original floodlight configuration is not already associated with floodlight activities or floodlight activity groups. - This advertiser's original floodlight configuration is not already shared with another advertiser. ", "format": "int64", @@ -11724,6 +11736,18 @@ "format": "date", "type": "string" }, + "euPoliticalAdsDeclaration": { + "description": "Optional. Whether the campaign has EU political ads. Campaign Manager 360 doesn't allow campaigns with EU political ads to serve in the EU. They can still serve in other regions.", + "enum": [ + "CONTAINS_EU_POLITICAL_ADS", + "DOES_NOT_CONTAIN_EU_POLITICAL_ADS" + ], + "enumDescriptions": [ + "The campaign contains EU political ads.", + "The campaign does not contain EU political ads." + ], + "type": "string" + }, "eventTagOverrides": { "description": "Overrides that can be used to activate or deactivate advertiser event tags.", "items": { @@ -18114,7 +18138,9 @@ "VPAID_ONLY_BLOCKING", "VPAID_ONLY_FILTERING", "VPAID_FILTERING", - "NON_VPAID_FILTERING" + "NON_VPAID_FILTERING", + "BLOCKING_FILTERING_VPAID", + "BLOCKING_FILTERING_VPAID_ONLY" ], "enumDescriptions": [ "", @@ -18130,6 +18156,8 @@ "", "", "", + "", + "", "" ], "type": "string" @@ -18848,6 +18876,10 @@ "$ref": "DimensionValue", "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field." }, + "allowOnYoutube": { + "description": "Optional. Whether the placement is enabled for YouTube integration.", + "type": "boolean" + }, "campaignId": { "description": "Campaign ID of this placement. This field is a required field on insertion.", "format": "int64", @@ -19110,6 +19142,10 @@ "wrappingOptOut": { "description": "Whether this placement opts out of tag wrapping.", "type": "boolean" + }, + "youtubeSettings": { + "$ref": "YoutubeSettings", + "description": "Optional. YouTube settings for the placement. The placement must be enabled for YouTube to use this field." } }, "type": "object" @@ -22643,6 +22679,105 @@ } }, "type": "object" + }, + "YoutubeSettings": { + "description": "Contains the YouTube settings.", + "id": "YoutubeSettings", + "properties": { + "businessLogoCreativeIds": { + "description": "Optional. The IDs of the creatives to use for the business logo. Currently only one creative is supported.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, + "businessName": { + "description": "Optional. The business name.", + "type": "string" + }, + "callToActions": { + "description": "Optional. The call to actions. Currently only one call to action is supported.", + "items": { + "enum": [ + "CALL_TO_ACTION_UNKNOWN", + "CALL_TO_ACTION_LEARN_MORE", + "CALL_TO_ACTION_GET_QUOTE", + "CALL_TO_ACTION_APPLY_NOW", + "CALL_TO_ACTION_SIGN_UP", + "CALL_TO_ACTION_CONTACT_US", + "CALL_TO_ACTION_SUBSCRIBE", + "CALL_TO_ACTION_DOWNLOAD", + "CALL_TO_ACTION_BOOK_NOW", + "CALL_TO_ACTION_GET_OFFER", + "CALL_TO_ACTION_SHOP_NOW", + "CALL_TO_ACTION_VISIT_STORE", + "CALL_TO_ACTION_CALL_NOW", + "CALL_TO_ACTION_VIEW_MENU", + "CALL_TO_ACTION_TEST_DRIVE", + "CALL_TO_ACTION_SCHEDULE_NOW", + "CALL_TO_ACTION_BUY_NOW", + "CALL_TO_ACTION_DONATE_NOW", + "CALL_TO_ACTION_ORDER_NOW", + "CALL_TO_ACTION_PLAY_NOW", + "CALL_TO_ACTION_SEE_MORE", + "CALL_TO_ACTION_START_NOW", + "CALL_TO_ACTION_VISIT_SITE", + "CALL_TO_ACTION_WATCH_NOW" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "type": "array" + }, + "descriptions": { + "description": "Optional. The descriptions. Currently only one description is supported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "headlines": { + "description": "Optional. The headlines associated with the call to actions. Currently only one headline is supported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "longHeadlines": { + "description": "Optional. The long headlines. Currently only one long headline is supported.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" } } } diff --git a/discovery/googleapis/dialogflow__v2.json b/discovery/googleapis/dialogflow__v2.json index c9a742ed7..790ba6acb 100644 --- a/discovery/googleapis/dialogflow__v2.json +++ b/discovery/googleapis/dialogflow__v2.json @@ -28,7 +28,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250715", + "revision": "20250902", "rootUrl": "https://dialogflow.googleapis.com/", "servicePath": "", "title": "Dialogflow API", @@ -4411,7 +4411,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -14086,6 +14086,11 @@ "$ref": "GoogleCloudDialogflowV2FaqAnswer", "description": "Output only. The FAQ answer.", "readOnly": true + }, + "generatorSuggestion": { + "$ref": "GoogleCloudDialogflowV2GeneratorSuggestion", + "description": "Output only. The generator suggestion.", + "readOnly": true } }, "type": "object" diff --git a/discovery/googleapis/dialogflow__v3.json b/discovery/googleapis/dialogflow__v3.json index 655fe0825..bf8bc758f 100644 --- a/discovery/googleapis/dialogflow__v3.json +++ b/discovery/googleapis/dialogflow__v3.json @@ -28,7 +28,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250627", + "revision": "20250902", "rootUrl": "https://dialogflow.googleapis.com/", "servicePath": "", "title": "Dialogflow API", @@ -152,7 +152,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -5326,10 +5326,18 @@ "$ref": "GoogleCloudDialogflowCxV3FlowInvocation", "description": "Optional. Action performed on behalf of the agent by invoking a CX flow." }, + "flowTransition": { + "$ref": "GoogleCloudDialogflowCxV3FlowTransition", + "description": "Optional. Action performed on behalf of the agent by transitioning to a target CX flow." + }, "playbookInvocation": { "$ref": "GoogleCloudDialogflowCxV3PlaybookInvocation", "description": "Optional. Action performed on behalf of the agent by invoking a child playbook." }, + "playbookTransition": { + "$ref": "GoogleCloudDialogflowCxV3PlaybookTransition", + "description": "Optional. Action performed on behalf of the agent by transitioning to a target playbook." + }, "toolUse": { "$ref": "GoogleCloudDialogflowCxV3ToolUse", "description": "Optional. Action performed on behalf of the agent by calling a plugin tool." @@ -7504,6 +7512,13 @@ }, "type": "array" }, + "inputParameterDefinitions": { + "description": "Optional. Defined structured input parameters for this flow.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3ParameterDefinition" + }, + "type": "array" + }, "knowledgeConnectorSettings": { "$ref": "GoogleCloudDialogflowCxV3KnowledgeConnectorSettings", "description": "Optional. Knowledge connector configuration." @@ -7524,6 +7539,13 @@ "$ref": "GoogleCloudDialogflowCxV3NluSettings", "description": "NLU related settings of the flow." }, + "outputParameterDefinitions": { + "description": "Optional. Defined structured output parameters for this flow.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3ParameterDefinition" + }, + "type": "array" + }, "transitionRouteGroups": { "description": "A flow's transition route group serve two purposes: * They are responsible for matching the user's first utterances in the flow. * They are inherited by every page's transition route groups. Transition route groups defined in the page have higher priority than those defined in the flow. Format: `projects//locations//agents//flows//transitionRouteGroups/` or `projects//locations//agents//transitionRouteGroups/` for agent-level groups.", "items": { @@ -7622,6 +7644,22 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3FlowTransition": { + "description": "Stores metadata of the transition to a target CX flow. Flow transition actions exit the caller playbook and enter the child flow.", + "id": "GoogleCloudDialogflowCxV3FlowTransition", + "properties": { + "displayName": { + "description": "Output only. The display name of the flow.", + "readOnly": true, + "type": "string" + }, + "flow": { + "description": "Required. The unique identifier of the flow. Format: `projects//locations//agents/`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3FlowValidationResult": { "description": "The response message for Flows.GetFlowValidationResult.", "id": "GoogleCloudDialogflowCxV3FlowValidationResult", @@ -8434,6 +8472,35 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3InlineSchema": { + "description": "A type schema object that's specified inline.", + "id": "GoogleCloudDialogflowCxV3InlineSchema", + "properties": { + "items": { + "$ref": "GoogleCloudDialogflowCxV3TypeSchema", + "description": "Schema of the elements if this is an ARRAY type." + }, + "type": { + "description": "Data type of the schema.", + "enum": [ + "DATA_TYPE_UNSPECIFIED", + "STRING", + "NUMBER", + "BOOLEAN", + "ARRAY" + ], + "enumDescriptions": [ + "Not specified.", + "Represents any string value.", + "Represents any number value.", + "Represents a boolean value.", + "Represents a repeated value." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3InlineSource": { "description": "Inline source for a Dialogflow operation that reads or imports objects (e.g. intents) into Dialogflow.", "id": "GoogleCloudDialogflowCxV3InlineSource", @@ -9508,6 +9575,48 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ParameterDefinition": { + "description": "Defines the properties of a parameter. Used to define parameters used in the agent and the input / output parameters for each fulfillment.", + "id": "GoogleCloudDialogflowCxV3ParameterDefinition", + "properties": { + "description": { + "description": "Human-readable description of the parameter. Limited to 300 characters.", + "type": "string" + }, + "name": { + "description": "Required. Name of parameter.", + "type": "string" + }, + "type": { + "deprecated": true, + "description": "Type of parameter.", + "enum": [ + "PARAMETER_TYPE_UNSPECIFIED", + "STRING", + "NUMBER", + "BOOLEAN", + "NULL", + "OBJECT", + "LIST" + ], + "enumDescriptions": [ + "Not specified. No validation will be performed.", + "Represents any string value.", + "Represents any number value.", + "Represents a boolean value.", + "Represents a null value.", + "Represents any object value.", + "Represents a repeated value." + ], + "type": "string" + }, + "typeSchema": { + "$ref": "GoogleCloudDialogflowCxV3TypeSchema", + "description": "Optional. Type schema of parameter." + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3Phrase": { "description": "Text input which can be used for prompt or banned phrases.", "id": "GoogleCloudDialogflowCxV3Phrase", @@ -9544,6 +9653,13 @@ }, "type": "array" }, + "inputParameterDefinitions": { + "description": "Optional. Defined structured input parameters for this playbook.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3ParameterDefinition" + }, + "type": "array" + }, "instruction": { "$ref": "GoogleCloudDialogflowCxV3PlaybookInstruction", "description": "Instruction to accomplish target goal." @@ -9556,6 +9672,27 @@ "description": "The unique identifier of the playbook. Format: `projects//locations//agents//playbooks/`.", "type": "string" }, + "outputParameterDefinitions": { + "description": "Optional. Defined structured output parameters for this playbook.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3ParameterDefinition" + }, + "type": "array" + }, + "playbookType": { + "description": "Optional. Type of the playbook.", + "enum": [ + "PLAYBOOK_TYPE_UNSPECIFIED", + "TASK", + "ROUTINE" + ], + "enumDescriptions": [ + "Unspecified type. Default to TASK.", + "Task playbook.", + "Routine playbook." + ], + "type": "string" + }, "referencedFlows": { "description": "Output only. The resource name of flows referenced by the current playbook in the instructions.", "items": { @@ -9763,6 +9900,22 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3PlaybookTransition": { + "description": "Stores metadata of the transition to another target playbook. Playbook transition actions exit the caller playbook and enter the target playbook.", + "id": "GoogleCloudDialogflowCxV3PlaybookTransition", + "properties": { + "displayName": { + "description": "Output only. The display name of the playbook.", + "readOnly": true, + "type": "string" + }, + "playbook": { + "description": "Required. The unique identifier of the playbook. Format: `projects//locations//agents//playbooks/`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3PlaybookVersion": { "description": "Playbook version is a snapshot of the playbook at certain timestamp.", "id": "GoogleCloudDialogflowCxV3PlaybookVersion", @@ -10649,7 +10802,7 @@ "id": "GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings", "properties": { "audioExportPattern": { - "description": "Filename pattern for exported audio.", + "description": "Filename pattern for exported audio. {conversation} and {timestamp} are placeholders that will be replaced with the conversation ID and epoch micros of the conversation. For example, \"{conversation}/recording_{timestamp}.mulaw\".", "type": "string" }, "audioFormat": { @@ -11709,6 +11862,36 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3TypeSchema": { + "description": "Encapsulates different type schema variations: either a reference to an a schema that's already defined by a tool, or an inline definition.", + "id": "GoogleCloudDialogflowCxV3TypeSchema", + "properties": { + "inlineSchema": { + "$ref": "GoogleCloudDialogflowCxV3InlineSchema", + "description": "Set if this is an inline schema definition." + }, + "schemaReference": { + "$ref": "GoogleCloudDialogflowCxV3TypeSchemaSchemaReference", + "description": "Set if this is a schema reference." + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3TypeSchemaSchemaReference": { + "description": "A reference to the schema of an existing tool.", + "id": "GoogleCloudDialogflowCxV3TypeSchemaSchemaReference", + "properties": { + "schema": { + "description": "The name of the schema.", + "type": "string" + }, + "tool": { + "description": "The tool that contains this schema definition. Format: `projects//locations//agents//tools/`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3UserUtterance": { "description": "UserUtterance represents one message sent by the customer.", "id": "GoogleCloudDialogflowCxV3UserUtterance", diff --git a/discovery/googleapis/digitalassetlinks__v1.json b/discovery/googleapis/digitalassetlinks__v1.json index 211c27114..e437115d0 100644 --- a/discovery/googleapis/digitalassetlinks__v1.json +++ b/discovery/googleapis/digitalassetlinks__v1.json @@ -15,7 +15,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250405", + "revision": "20250802", "rootUrl": "https://digitalassetlinks.googleapis.com/", "servicePath": "", "title": "Digital Asset Links API", @@ -339,7 +339,7 @@ "type": "string" }, "errorCode": { - "description": "Error codes that describe the result of the Check operation.", + "description": "Error codes that describe the result of the Check operation. NOTE: Error codes may be populated even when `linked` is true. The error codes do not necessarily imply that the request failed, but rather, specify any errors encountered in the statements file(s) which may or may not impact whether the server determines the requested source and target to be linked.", "items": { "enum": [ "ERROR_CODE_UNSPECIFIED", diff --git a/discovery/googleapis/displayvideo__v2.json b/discovery/googleapis/displayvideo__v2.json index aed2bb979..61c425fe7 100644 --- a/discovery/googleapis/displayvideo__v2.json +++ b/discovery/googleapis/displayvideo__v2.json @@ -34,7 +34,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250729", + "revision": "20250909", "rootUrl": "https://displayvideo.googleapis.com/", "servicePath": "", "title": "Display & Video 360 API", @@ -9286,6 +9286,20 @@ "readOnly": true, "type": "string" }, + "containsEuPoliticalAds": { + "description": "Optional. Whether this advertiser contains line items that serve European Union political ads. If this field is set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING`, then the following will happen: * Any new line items created under this advertiser will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. * Any existing line items under this advertiser that do not have a set value be updated to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` within a day.", + "enum": [ + "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN", + "CONTAINS_EU_POLITICAL_ADVERTISING", + "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" + ], + "enumDescriptions": [ + "Unknown.", + "Contains EU political advertising.", + "Does not contain EU political advertising." + ], + "type": "string" + }, "creativeConfig": { "$ref": "AdvertiserCreativeConfig", "description": "Required. Creative related settings of the advertiser." @@ -9575,7 +9589,8 @@ "APP_PLATFORM_ANDROID_TV", "APP_PLATFORM_GENERIC_CTV", "APP_PLATFORM_LG_TV", - "APP_PLATFORM_VIZIO_TV" + "APP_PLATFORM_VIZIO_TV", + "APP_PLATFORM_VIDAA" ], "enumDescriptions": [ "Default value when app platform is not specified in this version. This enum is a placeholder for default value and does not represent a real platform option.", @@ -9590,7 +9605,8 @@ "The app platform is Android TV.", "The app platform is a CTV platform that is not explicitly listed elsewhere.", "The app platform is LG TV.", - "The app platform is VIZIO TV." + "The app platform is VIZIO TV.", + "The app platform is Vidaa." ], "type": "string" }, @@ -10868,7 +10884,7 @@ "description": "Required. A line item object containing the fields to be updated and the new values to assign to all line items specified in line_item_ids.\"" }, "updateMask": { - "description": "Required. A field mask identifying which fields to update. Only the following fields are currently supported: * entityStatus", + "description": "Required. A field mask identifying which fields to update. Only the following fields are currently supported: * entityStatus * containsEuPoliticalAds", "format": "google-fieldmask", "type": "string" } @@ -12058,7 +12074,8 @@ "SDF_VERSION_7", "SDF_VERSION_7_1", "SDF_VERSION_8", - "SDF_VERSION_8_1" + "SDF_VERSION_8_1", + "SDF_VERSION_9" ], "enumDeprecated": [ false, @@ -12076,6 +12093,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -12094,7 +12112,8 @@ "SDF version 7. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 8. Read the [v8 migration guide](/display-video/api/structured-data-file/v8-migration-guide) before migrating to this version.", - "SDF version 8.1." + "SDF version 8.1.", + "SDF version 9. Read the [v9 migration guide](/display-video/api/structured-data-file/v9-migration-guide) before migrating to this version." ], "type": "string" } @@ -13547,6 +13566,20 @@ "description": "Request message for LineItemService.DuplicateLineItem.", "id": "DuplicateLineItemRequest", "properties": { + "containsEuPoliticalAds": { + "description": "Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. *Warning*: Starting **September 8, 2025**, this field must be set. If not, either the value `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned to the line item if the parent advertiser has declared that it does not serve EU political ads, or **the request will fail**.", + "enum": [ + "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN", + "CONTAINS_EU_POLITICAL_ADVERTISING", + "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" + ], + "enumDescriptions": [ + "Unknown.", + "Contains EU political advertising.", + "Does not contain EU political advertising." + ], + "type": "string" + }, "targetDisplayName": { "description": "The display name of the new line item. Must be UTF-8 encoded with a maximum size of 240 bytes.", "type": "string" @@ -14783,6 +14816,20 @@ "description": "Request message for LineItemService.GenerateDefaultLineItem.", "id": "GenerateDefaultLineItemRequest", "properties": { + "containsEuPoliticalAds": { + "description": "Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. *Warning*: Starting **September 8, 2025**, this field must be set. If not, either the value `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned to the line item if the parent advertiser has declared that it does not serve EU political ads, or **the request will fail**.", + "enum": [ + "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN", + "CONTAINS_EU_POLITICAL_ADVERTISING", + "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" + ], + "enumDescriptions": [ + "Unknown.", + "Contains EU political advertising.", + "Does not contain EU political advertising." + ], + "type": "string" + }, "displayName": { "description": "Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.", "type": "string" @@ -16759,6 +16806,20 @@ "readOnly": true, "type": "string" }, + "containsEuPoliticalAds": { + "description": "Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. *Warning*: Starting **September 8, 2025**, this field must be set when creating a new line item. If not, either the value `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned if the parent advertiser has declared that it does not serve EU political ads, or **the `advertisers.lineItems.create` request will fail**.", + "enum": [ + "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN", + "CONTAINS_EU_POLITICAL_ADVERTISING", + "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" + ], + "enumDescriptions": [ + "Unknown.", + "Contains EU political advertising.", + "Does not contain EU political advertising." + ], + "type": "string" + }, "conversionCounting": { "$ref": "ConversionCountingConfig", "description": "The conversion tracking setting of the line item." @@ -19344,7 +19405,8 @@ "SDF_VERSION_7", "SDF_VERSION_7_1", "SDF_VERSION_8", - "SDF_VERSION_8_1" + "SDF_VERSION_8_1", + "SDF_VERSION_9" ], "enumDeprecated": [ false, @@ -19362,6 +19424,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -19380,7 +19443,8 @@ "SDF version 7. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 8. Read the [v8 migration guide](/display-video/api/structured-data-file/v8-migration-guide) before migrating to this version.", - "SDF version 8.1." + "SDF version 8.1.", + "SDF version 9. Read the [v9 migration guide](/display-video/api/structured-data-file/v9-migration-guide) before migrating to this version." ], "type": "string" } @@ -19430,7 +19494,8 @@ "SDF_VERSION_7", "SDF_VERSION_7_1", "SDF_VERSION_8", - "SDF_VERSION_8_1" + "SDF_VERSION_8_1", + "SDF_VERSION_9" ], "enumDeprecated": [ false, @@ -19448,6 +19513,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -19466,7 +19532,8 @@ "SDF version 7. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 8. Read the [v8 migration guide](/display-video/api/structured-data-file/v8-migration-guide) before migrating to this version.", - "SDF version 8.1." + "SDF version 8.1.", + "SDF version 9. Read the [v9 migration guide](/display-video/api/structured-data-file/v9-migration-guide) before migrating to this version." ], "type": "string" } @@ -21009,7 +21076,7 @@ "type": "string" }, "value": { - "description": "The value used by the bidding strategy. When the bidding strategy is assigned at the line item level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` When the bidding strategy is assigned at the ad group level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` If not using an applicable strategy, the value of this field will be 0.", + "description": "The value used by the bidding strategy. When the bidding strategy is assigned at the line item level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_SHARE_OF_VOICE` When the bidding strategy is assigned at the ad group level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` If not using an applicable strategy, the value of this field will be 0.", "format": "int64", "type": "string" } diff --git a/discovery/googleapis/displayvideo__v3.json b/discovery/googleapis/displayvideo__v3.json index 0f56ac22e..ecfa6c35f 100644 --- a/discovery/googleapis/displayvideo__v3.json +++ b/discovery/googleapis/displayvideo__v3.json @@ -34,7 +34,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250729", + "revision": "20250909", "rootUrl": "https://displayvideo.googleapis.com/", "servicePath": "", "title": "Display & Video 360 API", @@ -9937,6 +9937,20 @@ "$ref": "AdvertiserBillingConfig", "description": "Required. Billing related settings of the advertiser." }, + "containsEuPoliticalAds": { + "description": "Optional. Whether this advertiser contains line items that serve European Union political ads. If this field is set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING`, then the following will happen: * Any new line items created under this advertiser will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. * Any existing line items under this advertiser that do not have a set value be updated to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` within a day.", + "enum": [ + "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN", + "CONTAINS_EU_POLITICAL_ADVERTISING", + "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" + ], + "enumDescriptions": [ + "Unknown.", + "Contains EU political advertising.", + "Does not contain EU political advertising." + ], + "type": "string" + }, "creativeConfig": { "$ref": "AdvertiserCreativeConfig", "description": "Required. Creative related settings of the advertiser." @@ -10243,6 +10257,49 @@ "description": "Boolean value.", "type": "boolean" }, + "contentDurationValue": { + "description": "Video content duration value.", + "enum": [ + "CONTENT_DURATION_UNSPECIFIED", + "CONTENT_DURATION_UNKNOWN", + "CONTENT_DURATION_0_TO_1_MIN", + "CONTENT_DURATION_1_TO_5_MIN", + "CONTENT_DURATION_5_TO_15_MIN", + "CONTENT_DURATION_15_TO_30_MIN", + "CONTENT_DURATION_30_TO_60_MIN", + "CONTENT_DURATION_OVER_60_MIN" + ], + "enumDescriptions": [ + "Content duration is not specified in this version. This enum is a place holder for a default value and does not represent a real content duration.", + "The content duration is unknown.", + "Content is 0-1 minute long.", + "Content is 1-5 minutes long.", + "Content is 5-15 minutes long.", + "Content is 15-30 minutes long.", + "Content is 30-60 minutes long.", + "Content is over 60 minutes long." + ], + "type": "string" + }, + "contentGenreIdValue": { + "description": "Video genre id value.", + "format": "int64", + "type": "string" + }, + "contentStreamTypeValue": { + "description": "Video delivery type value.", + "enum": [ + "CONTENT_STREAM_TYPE_UNSPECIFIED", + "CONTENT_LIVE_STREAM", + "CONTENT_ON_DEMAND" + ], + "enumDescriptions": [ + "Content stream type is not specified in this version. This enum is a place holder for a default value and does not represent a real content stream type.", + "The content is being live-streamed.", + "The content is viewed on-demand." + ], + "type": "string" + }, "creativeDimensionValue": { "$ref": "Dimensions", "description": "Creative dimension value." @@ -10691,7 +10748,10 @@ "COUNTRY_ID", "CITY_ID", "BROWSER_ID", - "CREATIVE_DIMENSION" + "CREATIVE_DIMENSION", + "VIDEO_CONTENT_DURATION_BUCKET", + "VIDEO_DELIVERY_TYPE", + "VIDEO_GENRE_ID" ], "enumDescriptions": [ "Unknown signal.", @@ -10705,7 +10765,10 @@ "The country or region identifier. Value is stored in the int64Value field of the comparison value.", "The city identifier. Value is stored in the int64Value field of the comparison value.", "The browser identifier. Value is stored in the int64Value field of the comparison value.", - "Creative height and width in pixels. Value is stored in the creativeDimensionValue field of the comparison value." + "Creative height and width in pixels. Value is stored in the creativeDimensionValue field of the comparison value.", + "Video content duration. Value is stored in the contentDurationValue field of the comparison value. The comparisonOperator field must be set to `LIST_CONTAINS`.", + "Video delivery type. Value is stored in the contentStreamTypeValue field of the comparison value. The comparisonOperator field must be set to `LIST_CONTAINS`.", + "Video genre id. Value is stored in the int64Value field of the comparison value. The comparisonOperator field must be set to `LIST_CONTAINS`." ], "type": "string" } @@ -10724,7 +10787,8 @@ "GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL_TO", - "LESS_THAN_OR_EQUAL_TO" + "LESS_THAN_OR_EQUAL_TO", + "LIST_CONTAINS" ], "enumDescriptions": [ "Unknown operator.", @@ -10732,7 +10796,8 @@ "Signal value is greater than the comparison value.", "Signal value is less than the second.", "Signal value is greater than or equal to the second.", - "Signal value is less than or equal to the comparison value." + "Signal value is less than or equal to the comparison value.", + "Signal value is a list and contains the comparison value." ], "type": "string" }, @@ -10808,7 +10873,8 @@ "APP_PLATFORM_ANDROID_TV", "APP_PLATFORM_GENERIC_CTV", "APP_PLATFORM_LG_TV", - "APP_PLATFORM_VIZIO_TV" + "APP_PLATFORM_VIZIO_TV", + "APP_PLATFORM_VIDAA" ], "enumDescriptions": [ "Default value when app platform is not specified in this version. This enum is a placeholder for default value and does not represent a real platform option.", @@ -10823,7 +10889,8 @@ "The app platform is Android TV.", "The app platform is a CTV platform that is not explicitly listed elsewhere.", "The app platform is LG TV.", - "The app platform is VIZIO TV." + "The app platform is VIZIO TV.", + "The app platform is Vidaa." ], "type": "string" }, @@ -12122,7 +12189,7 @@ "description": "Required. A line item object containing the fields to be updated and the new values to assign to all line items specified in line_item_ids.\"" }, "updateMask": { - "description": "Required. A field mask identifying which fields to update. Only the following fields are currently supported: * entityStatus", + "description": "Required. A field mask identifying which fields to update. Only the following fields are currently supported: * entityStatus * containsEuPoliticalAds", "format": "google-fieldmask", "type": "string" } @@ -13511,7 +13578,8 @@ "SDF_VERSION_7", "SDF_VERSION_7_1", "SDF_VERSION_8", - "SDF_VERSION_8_1" + "SDF_VERSION_8_1", + "SDF_VERSION_9" ], "enumDeprecated": [ false, @@ -13529,6 +13597,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -13547,7 +13616,8 @@ "SDF version 7. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 8. Read the [v8 migration guide](/display-video/api/structured-data-file/v8-migration-guide) before migrating to this version.", - "SDF version 8.1." + "SDF version 8.1.", + "SDF version 9. Read the [v9 migration guide](/display-video/api/structured-data-file/v9-migration-guide) before migrating to this version." ], "type": "string" } @@ -15154,6 +15224,20 @@ "description": "Request message for LineItemService.DuplicateLineItem.", "id": "DuplicateLineItemRequest", "properties": { + "containsEuPoliticalAds": { + "description": "Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. *Warning*: Starting **September 8, 2025**, this field must be set. If not, either the value `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned to the line item if the parent advertiser has declared that it does not serve EU political ads, or **the request will fail**.", + "enum": [ + "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN", + "CONTAINS_EU_POLITICAL_ADVERTISING", + "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" + ], + "enumDescriptions": [ + "Unknown.", + "Contains EU political advertising.", + "Does not contain EU political advertising." + ], + "type": "string" + }, "targetDisplayName": { "description": "The display name of the new line item. Must be UTF-8 encoded with a maximum size of 240 bytes.", "type": "string" @@ -16683,6 +16767,20 @@ "description": "Request message for LineItemService.GenerateDefaultLineItem.", "id": "GenerateDefaultLineItemRequest", "properties": { + "containsEuPoliticalAds": { + "description": "Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. *Warning*: Starting **September 8, 2025**, this field must be set. If not, either the value `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned to the line item if the parent advertiser has declared that it does not serve EU political ads, or **the request will fail**.", + "enum": [ + "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN", + "CONTAINS_EU_POLITICAL_ADVERTISING", + "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" + ], + "enumDescriptions": [ + "Unknown.", + "Contains EU political advertising.", + "Does not contain EU political advertising." + ], + "type": "string" + }, "displayName": { "description": "Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.", "type": "string" @@ -18757,6 +18855,20 @@ "readOnly": true, "type": "string" }, + "containsEuPoliticalAds": { + "description": "Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. *Warning*: Starting **September 8, 2025**, this field must be set when creating a new line item. If not, either the value `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned if the parent advertiser has declared that it does not serve EU political ads, or **the `advertisers.lineItems.create` request will fail**.", + "enum": [ + "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN", + "CONTAINS_EU_POLITICAL_ADVERTISING", + "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" + ], + "enumDescriptions": [ + "Unknown.", + "Contains EU political advertising.", + "Does not contain EU political advertising." + ], + "type": "string" + }, "conversionCounting": { "$ref": "ConversionCountingConfig", "description": "The conversion tracking setting of the line item." @@ -21377,7 +21489,8 @@ "SDF_VERSION_7", "SDF_VERSION_7_1", "SDF_VERSION_8", - "SDF_VERSION_8_1" + "SDF_VERSION_8_1", + "SDF_VERSION_9" ], "enumDeprecated": [ false, @@ -21395,6 +21508,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -21413,7 +21527,8 @@ "SDF version 7. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 8. Read the [v8 migration guide](/display-video/api/structured-data-file/v8-migration-guide) before migrating to this version.", - "SDF version 8.1." + "SDF version 8.1.", + "SDF version 9. Read the [v9 migration guide](/display-video/api/structured-data-file/v9-migration-guide) before migrating to this version." ], "type": "string" } @@ -21463,7 +21578,8 @@ "SDF_VERSION_7", "SDF_VERSION_7_1", "SDF_VERSION_8", - "SDF_VERSION_8_1" + "SDF_VERSION_8_1", + "SDF_VERSION_9" ], "enumDeprecated": [ false, @@ -21481,6 +21597,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -21499,7 +21616,8 @@ "SDF version 7. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 8. Read the [v8 migration guide](/display-video/api/structured-data-file/v8-migration-guide) before migrating to this version.", - "SDF version 8.1." + "SDF version 8.1.", + "SDF version 9. Read the [v9 migration guide](/display-video/api/structured-data-file/v9-migration-guide) before migrating to this version." ], "type": "string" } @@ -22874,7 +22992,7 @@ "type": "string" }, "value": { - "description": "The value used by the bidding strategy. When the bidding strategy is assigned at the line item level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` When the bidding strategy is assigned at the ad group level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` If not using an applicable strategy, the value of this field will be 0.", + "description": "The value used by the bidding strategy. When the bidding strategy is assigned at the line item level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_SHARE_OF_VOICE` When the bidding strategy is assigned at the ad group level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` If not using an applicable strategy, the value of this field will be 0.", "format": "int64", "type": "string" } diff --git a/discovery/googleapis/displayvideo__v4.json b/discovery/googleapis/displayvideo__v4.json index c0b5b7bf3..f299925e2 100644 --- a/discovery/googleapis/displayvideo__v4.json +++ b/discovery/googleapis/displayvideo__v4.json @@ -34,7 +34,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250729", + "revision": "20250909", "rootUrl": "https://displayvideo.googleapis.com/", "servicePath": "", "title": "Display & Video 360 API", @@ -9971,6 +9971,20 @@ "$ref": "AdvertiserBillingConfig", "description": "Required. Billing related settings of the advertiser." }, + "containsEuPoliticalAds": { + "description": "Optional. Whether this advertiser contains line items that serve European Union political ads. If this field is set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING`, then the following will happen: * Any new line items created under this advertiser will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. * Any existing line items under this advertiser that do not have a set value be updated to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` within a day.", + "enum": [ + "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN", + "CONTAINS_EU_POLITICAL_ADVERTISING", + "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" + ], + "enumDescriptions": [ + "Unknown.", + "Contains EU political advertising.", + "Does not contain EU political advertising." + ], + "type": "string" + }, "creativeConfig": { "$ref": "AdvertiserCreativeConfig", "description": "Required. Creative related settings of the advertiser." @@ -10277,6 +10291,49 @@ "description": "Boolean value.", "type": "boolean" }, + "contentDurationValue": { + "description": "Video content duration value.", + "enum": [ + "CONTENT_DURATION_UNSPECIFIED", + "CONTENT_DURATION_UNKNOWN", + "CONTENT_DURATION_0_TO_1_MIN", + "CONTENT_DURATION_1_TO_5_MIN", + "CONTENT_DURATION_5_TO_15_MIN", + "CONTENT_DURATION_15_TO_30_MIN", + "CONTENT_DURATION_30_TO_60_MIN", + "CONTENT_DURATION_OVER_60_MIN" + ], + "enumDescriptions": [ + "Content duration is not specified in this version. This enum is a place holder for a default value and does not represent a real content duration.", + "The content duration is unknown.", + "Content is 0-1 minute long.", + "Content is 1-5 minutes long.", + "Content is 5-15 minutes long.", + "Content is 15-30 minutes long.", + "Content is 30-60 minutes long.", + "Content is over 60 minutes long." + ], + "type": "string" + }, + "contentGenreIdValue": { + "description": "Video genre id value.", + "format": "int64", + "type": "string" + }, + "contentStreamTypeValue": { + "description": "Video delivery type value.", + "enum": [ + "CONTENT_STREAM_TYPE_UNSPECIFIED", + "CONTENT_LIVE_STREAM", + "CONTENT_ON_DEMAND" + ], + "enumDescriptions": [ + "Content stream type is not specified in this version. This enum is a place holder for a default value and does not represent a real content stream type.", + "The content is being live-streamed.", + "The content is viewed on-demand." + ], + "type": "string" + }, "creativeDimensionValue": { "$ref": "Dimensions", "description": "Creative dimension value." @@ -10725,7 +10782,10 @@ "COUNTRY_ID", "CITY_ID", "BROWSER_ID", - "CREATIVE_DIMENSION" + "CREATIVE_DIMENSION", + "VIDEO_CONTENT_DURATION_BUCKET", + "VIDEO_DELIVERY_TYPE", + "VIDEO_GENRE_ID" ], "enumDescriptions": [ "Unknown signal.", @@ -10739,7 +10799,10 @@ "The country or region identifier. Value is stored in the int64Value field of the comparison value.", "The city identifier. Value is stored in the int64Value field of the comparison value.", "The browser identifier. Value is stored in the int64Value field of the comparison value.", - "Creative height and width in pixels. Value is stored in the creativeDimensionValue field of the comparison value." + "Creative height and width in pixels. Value is stored in the creativeDimensionValue field of the comparison value.", + "Video content duration. Value is stored in the contentDurationValue field of the comparison value. The comparisonOperator field must be set to `LIST_CONTAINS`.", + "Video delivery type. Value is stored in the contentStreamTypeValue field of the comparison value. The comparisonOperator field must be set to `LIST_CONTAINS`.", + "Video genre id. Value is stored in the int64Value field of the comparison value. The comparisonOperator field must be set to `LIST_CONTAINS`." ], "type": "string" } @@ -10758,7 +10821,8 @@ "GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL_TO", - "LESS_THAN_OR_EQUAL_TO" + "LESS_THAN_OR_EQUAL_TO", + "LIST_CONTAINS" ], "enumDescriptions": [ "Unknown operator.", @@ -10766,7 +10830,8 @@ "Signal value is greater than the comparison value.", "Signal value is less than the second.", "Signal value is greater than or equal to the second.", - "Signal value is less than or equal to the comparison value." + "Signal value is less than or equal to the comparison value.", + "Signal value is a list and contains the comparison value." ], "type": "string" }, @@ -10842,7 +10907,8 @@ "APP_PLATFORM_ANDROID_TV", "APP_PLATFORM_GENERIC_CTV", "APP_PLATFORM_LG_TV", - "APP_PLATFORM_VIZIO_TV" + "APP_PLATFORM_VIZIO_TV", + "APP_PLATFORM_VIDAA" ], "enumDescriptions": [ "Default value when app platform is not specified in this version. This enum is a placeholder for default value and does not represent a real platform option.", @@ -10857,7 +10923,8 @@ "The app platform is Android TV.", "The app platform is a CTV platform that is not explicitly listed elsewhere.", "The app platform is LG TV.", - "The app platform is VIZIO TV." + "The app platform is VIZIO TV.", + "The app platform is Vidaa." ], "type": "string" }, @@ -12156,7 +12223,7 @@ "description": "Required. A line item object containing the fields to be updated and the new values to assign to all line items specified in line_item_ids.\"" }, "updateMask": { - "description": "Required. A field mask identifying which fields to update. Only the following fields are currently supported: * entityStatus", + "description": "Required. A field mask identifying which fields to update. Only the following fields are currently supported: * entityStatus * containsEuPoliticalAds", "format": "google-fieldmask", "type": "string" } @@ -13545,7 +13612,8 @@ "SDF_VERSION_7", "SDF_VERSION_7_1", "SDF_VERSION_8", - "SDF_VERSION_8_1" + "SDF_VERSION_8_1", + "SDF_VERSION_9" ], "enumDeprecated": [ false, @@ -13563,6 +13631,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -13581,7 +13650,8 @@ "SDF version 7. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 8. Read the [v8 migration guide](/display-video/api/structured-data-file/v8-migration-guide) before migrating to this version.", - "SDF version 8.1." + "SDF version 8.1.", + "SDF version 9. Read the [v9 migration guide](/display-video/api/structured-data-file/v9-migration-guide) before migrating to this version." ], "type": "string" } @@ -14081,6 +14151,20 @@ "type": "string" }, "type": "array" + }, + "thirdPartyOptimizationPartner": { + "description": "Optional. Immutable. Designates the third party optimization partner that manages this algorithm.", + "enum": [ + "UNKNOWN", + "SCIBIDS", + "ADELAIDE" + ], + "enumDescriptions": [ + "Type value is not specified or is unknown in this version.", + "Third party data science service provider that DV3 partners/advertisers can partner with.", + "Third party attention measurement service provider that DV3 partners/advertisers can partner with." + ], + "type": "string" } }, "type": "object" @@ -15177,6 +15261,20 @@ "description": "Request message for LineItemService.DuplicateLineItem.", "id": "DuplicateLineItemRequest", "properties": { + "containsEuPoliticalAds": { + "description": "Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. *Warning*: Starting **September 8, 2025**, this field must be set. If not, either the value `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned to the line item if the parent advertiser has declared that it does not serve EU political ads, or **the request will fail**.", + "enum": [ + "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN", + "CONTAINS_EU_POLITICAL_ADVERTISING", + "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" + ], + "enumDescriptions": [ + "Unknown.", + "Contains EU political advertising.", + "Does not contain EU political advertising." + ], + "type": "string" + }, "targetDisplayName": { "description": "The display name of the new line item. Must be UTF-8 encoded with a maximum size of 240 bytes.", "type": "string" @@ -16716,6 +16814,20 @@ "description": "Request message for LineItemService.GenerateDefaultLineItem.", "id": "GenerateDefaultLineItemRequest", "properties": { + "containsEuPoliticalAds": { + "description": "Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. *Warning*: Starting **September 8, 2025**, this field must be set. If not, either the value `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned to the line item if the parent advertiser has declared that it does not serve EU political ads, or **the request will fail**.", + "enum": [ + "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN", + "CONTAINS_EU_POLITICAL_ADVERTISING", + "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" + ], + "enumDescriptions": [ + "Unknown.", + "Contains EU political advertising.", + "Does not contain EU political advertising." + ], + "type": "string" + }, "displayName": { "description": "Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.", "type": "string" @@ -18790,6 +18902,20 @@ "readOnly": true, "type": "string" }, + "containsEuPoliticalAds": { + "description": "Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. *Warning*: Starting **September 8, 2025**, this field must be set when creating a new line item. If not, either the value `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned if the parent advertiser has declared that it does not serve EU political ads, or **the `advertisers.lineItems.create` request will fail**.", + "enum": [ + "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN", + "CONTAINS_EU_POLITICAL_ADVERTISING", + "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" + ], + "enumDescriptions": [ + "Unknown.", + "Contains EU political advertising.", + "Does not contain EU political advertising." + ], + "type": "string" + }, "conversionCounting": { "$ref": "ConversionCountingConfig", "description": "The conversion tracking setting of the line item." @@ -21340,7 +21466,8 @@ "SDF_VERSION_7", "SDF_VERSION_7_1", "SDF_VERSION_8", - "SDF_VERSION_8_1" + "SDF_VERSION_8_1", + "SDF_VERSION_9" ], "enumDeprecated": [ false, @@ -21358,6 +21485,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -21376,7 +21504,8 @@ "SDF version 7. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 8. Read the [v8 migration guide](/display-video/api/structured-data-file/v8-migration-guide) before migrating to this version.", - "SDF version 8.1." + "SDF version 8.1.", + "SDF version 9. Read the [v9 migration guide](/display-video/api/structured-data-file/v9-migration-guide) before migrating to this version." ], "type": "string" } @@ -21426,7 +21555,8 @@ "SDF_VERSION_7", "SDF_VERSION_7_1", "SDF_VERSION_8", - "SDF_VERSION_8_1" + "SDF_VERSION_8_1", + "SDF_VERSION_9" ], "enumDeprecated": [ false, @@ -21444,6 +21574,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -21462,7 +21593,8 @@ "SDF version 7. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", "SDF version 8. Read the [v8 migration guide](/display-video/api/structured-data-file/v8-migration-guide) before migrating to this version.", - "SDF version 8.1." + "SDF version 8.1.", + "SDF version 9. Read the [v9 migration guide](/display-video/api/structured-data-file/v9-migration-guide) before migrating to this version." ], "type": "string" } @@ -22837,7 +22969,7 @@ "type": "string" }, "value": { - "description": "The value used by the bidding strategy. When the bidding strategy is assigned at the line item level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` When the bidding strategy is assigned at the ad group level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` If not using an applicable strategy, the value of this field will be 0.", + "description": "The value used by the bidding strategy. When the bidding strategy is assigned at the line item level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_SHARE_OF_VOICE` When the bidding strategy is assigned at the ad group level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` If not using an applicable strategy, the value of this field will be 0.", "format": "int64", "type": "string" } diff --git a/discovery/googleapis/dlp__v2.json b/discovery/googleapis/dlp__v2.json index fa39cbe91..9d289e0a7 100644 --- a/discovery/googleapis/dlp__v2.json +++ b/discovery/googleapis/dlp__v2.json @@ -245,6 +245,11 @@ "description": "Regional Endpoint", "endpointUrl": "https://dlp.eu.rep.googleapis.com/", "location": "eu" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://dlp.in.rep.googleapis.com/", + "location": "in" } ], "icons": { @@ -257,7 +262,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250727", + "revision": "20250824", "rootUrl": "https://dlp.googleapis.com/", "servicePath": "", "title": "Sensitive Data Protection (DLP)", @@ -6754,7 +6759,7 @@ }, "publishToDataplexCatalog": { "$ref": "GooglePrivacyDlpV2PublishToDataplexCatalog", - "description": "Publishes a portion of each profile to Dataplex Catalog with the aspect type Sensitive Data Protection Profile." + "description": "Publishes a portion of each profile to Dataplex Universal Catalog with the aspect type Sensitive Data Protection Profile." }, "publishToScc": { "$ref": "GooglePrivacyDlpV2PublishToSecurityCommandCenter", @@ -9429,6 +9434,10 @@ "description": "A sample that is a true positive for this infoType.", "type": "string" }, + "locationSupport": { + "$ref": "GooglePrivacyDlpV2LocationSupport", + "description": "Locations at which this feature can be used. May change over time." + }, "name": { "description": "Internal name of the infoType.", "type": "string" @@ -10536,6 +10545,34 @@ }, "type": "object" }, + "GooglePrivacyDlpV2LocationSupport": { + "description": "Locations at which a feature can be used.", + "id": "GooglePrivacyDlpV2LocationSupport", + "properties": { + "locations": { + "description": "Specific locations where the feature may be used. Examples: us-central1, us, asia, global If scope is ANY_LOCATION, no regions will be listed.", + "items": { + "type": "string" + }, + "type": "array" + }, + "regionalizationScope": { + "description": "The current scope for location on this feature. This may expand over time.", + "enum": [ + "REGIONALIZATION_SCOPE_UNSPECIFIED", + "REGIONAL", + "ANY_LOCATION" + ], + "enumDescriptions": [ + "Invalid.", + "Feature may be used with one or more regions. See locations for details.", + "Feature may be used anywhere. Default value." + ], + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2Manual": { "description": "Job trigger option for hybrid jobs. Jobs must be manually created and finished.", "id": "GooglePrivacyDlpV2Manual", @@ -11114,11 +11151,11 @@ "type": "object" }, "GooglePrivacyDlpV2PublishToDataplexCatalog": { - "description": "Create Dataplex Catalog aspects for profiled resources with the aspect type Sensitive Data Protection Profile. To learn more about aspects, see https://cloud.google.com/sensitive-data-protection/docs/add-aspects.", + "description": "Create Dataplex Universal Catalog aspects for profiled resources with the aspect type Sensitive Data Protection Profile. To learn more about aspects, see https://cloud.google.com/sensitive-data-protection/docs/add-aspects.", "id": "GooglePrivacyDlpV2PublishToDataplexCatalog", "properties": { "lowerDataRiskToLow": { - "description": "Whether creating a Dataplex Catalog aspect for a profiled resource should lower the risk of the profile for that resource. This also lowers the data risk of resources at the lower levels of the resource hierarchy. For example, reducing the data risk of a table data profile also reduces the data risk of the constituent column data profiles.", + "description": "Whether creating a Dataplex Universal Catalog aspect for a profiled resource should lower the risk of the profile for that resource. This also lowers the data risk of resources at the lower levels of the resource hierarchy. For example, reducing the data risk of a table data profile also reduces the data risk of the constituent column data profiles.", "type": "boolean" } }, @@ -12238,7 +12275,7 @@ "type": "string" }, "namespacedTagValue": { - "description": "The namespaced name for the tag value to attach to Google Cloud resources. Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for example, \"123456/environment/prod\". This is only set for Google Cloud resources.", + "description": "The namespaced name for the tag value to attach to Google Cloud resources. Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for example, \"123456/environment/prod\" for an organization parent, or \"my-project/environment/prod\" for a project parent. This is only set for Google Cloud resources.", "type": "string" }, "value": { @@ -12303,7 +12340,7 @@ "id": "GooglePrivacyDlpV2TagValue", "properties": { "namespacedValue": { - "description": "The namespaced name for the tag value to attach to resources. Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for example, \"123456/environment/prod\".", + "description": "The namespaced name for the tag value to attach to resources. Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for example, \"123456/environment/prod\" for an organization parent, or \"my-project/environment/prod\" for a project parent.", "type": "string" } }, @@ -13054,6 +13091,42 @@ } }, "type": "object" + }, + "Proto2BridgeMessageSet": { + "deprecated": true, + "description": "This is proto2's version of MessageSet. DEPRECATED: DO NOT USE FOR NEW FIELDS. If you are using editions or proto2, please make your own extendable messages for your use case. If you are using proto3, please use `Any` instead. MessageSet was the implementation of extensions for proto1. When proto2 was introduced, extensions were implemented as a first-class feature. This schema for MessageSet was meant to be a \"bridge\" solution to migrate MessageSet-bearing messages from proto1 to proto2. This schema has been open-sourced only to facilitate the migration of Google products with MessageSet-bearing messages to open-source environments.", + "id": "Proto2BridgeMessageSet", + "properties": {}, + "type": "object" + }, + "UtilStatusProto": { + "description": "Wire-format for a Status object", + "id": "UtilStatusProto", + "properties": { + "canonicalCode": { + "description": "copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional int32 canonical_code = 6;", + "format": "int32", + "type": "integer" + }, + "code": { + "description": "Numeric code drawn from the space specified below. Often, this is the canonical error space, and code is drawn from google3/util/task/codes.proto copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional int32 code = 1;", + "format": "int32", + "type": "integer" + }, + "message": { + "description": "Detail message copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional string message = 3;", + "type": "string" + }, + "messageSet": { + "$ref": "Proto2BridgeMessageSet", + "description": "message_set associates an arbitrary proto message with the status. copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional proto2.bridge.MessageSet message_set = 5;" + }, + "space": { + "description": "copybara:strip_begin(b/383363683) Space to which this status belongs copybara:strip_end_and_replace optional string space = 2; // Space to which this status belongs", + "type": "string" + } + }, + "type": "object" } } } diff --git a/discovery/googleapis/dns__v1.json b/discovery/googleapis/dns__v1.json index e801eb63b..cd4d2ba07 100644 --- a/discovery/googleapis/dns__v1.json +++ b/discovery/googleapis/dns__v1.json @@ -34,7 +34,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250411", + "revision": "20250828", "rootUrl": "https://dns.googleapis.com/", "servicePath": "", "title": "Cloud DNS API", @@ -810,7 +810,7 @@ "policies": { "methods": { "create": { - "description": "Creates a new Policy.", + "description": "Creates a new policy.", "flatPath": "dns/v1/projects/{project}/policies", "httpMethod": "POST", "id": "dns.policies.create", @@ -843,7 +843,7 @@ ] }, "delete": { - "description": "Deletes a previously created Policy. Fails if the policy is still being referenced by a network.", + "description": "Deletes a previously created policy. Fails if the policy is still being referenced by a network.", "flatPath": "dns/v1/projects/{project}/policies/{policy}", "httpMethod": "DELETE", "id": "dns.policies.delete", @@ -877,7 +877,7 @@ ] }, "get": { - "description": "Fetches the representation of an existing Policy.", + "description": "Fetches the representation of an existing policy.", "flatPath": "dns/v1/projects/{project}/policies/{policy}", "httpMethod": "GET", "id": "dns.policies.get", @@ -916,7 +916,7 @@ ] }, "list": { - "description": "Enumerates all Policies associated with a project.", + "description": "Enumerates all policies associated with a project.", "flatPath": "dns/v1/projects/{project}/policies", "httpMethod": "GET", "id": "dns.policies.list", @@ -954,7 +954,7 @@ ] }, "patch": { - "description": "Applies a partial update to an existing Policy.", + "description": "Applies a partial update to an existing policy.", "flatPath": "dns/v1/projects/{project}/policies/{policy}", "httpMethod": "PATCH", "id": "dns.policies.patch", @@ -994,7 +994,7 @@ ] }, "update": { - "description": "Updates an existing Policy.", + "description": "Updates an existing policy.", "flatPath": "dns/v1/projects/{project}/policies/{policy}", "httpMethod": "PUT", "id": "dns.policies.update", @@ -1240,7 +1240,7 @@ "type": "integer" }, "name": { - "description": "Restricts the list to return only records with this fully qualified domain name.", + "description": "Restricts the list to return only records with this fully qualified domain name. Mutually exclusive with the {@code filter} field.", "location": "query", "type": "string" }, @@ -1256,7 +1256,7 @@ "type": "string" }, "type": { - "description": "Restricts the list to return only records of this type. If present, the \"name\" parameter must also be present.", + "description": "Restricts the list to return only records of this type. If present, the \"name\" parameter must also be present. Mutually exclusive with the {@code filter} field.", "location": "query", "type": "string" } @@ -2760,7 +2760,7 @@ }, "dns64Config": { "$ref": "PolicyDns64Config", - "description": "Configurations related to DNS64 for this Policy." + "description": "Configurations related to DNS64 for this policy." }, "enableInboundForwarding": { "description": "Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.", @@ -2859,7 +2859,7 @@ "id": "PolicyDns64ConfigScope", "properties": { "allQueries": { - "description": "Controls whether DNS64 is enabled globally at the network level.", + "description": "Controls whether DNS64 is enabled globally for all networks bound to the policy.", "type": "boolean" }, "kind": { diff --git a/discovery/googleapis/documentai__v1.json b/discovery/googleapis/documentai__v1.json index d8b4204b8..bc5f862a6 100644 --- a/discovery/googleapis/documentai__v1.json +++ b/discovery/googleapis/documentai__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250716", + "revision": "20250908", "rootUrl": "https://documentai.googleapis.com/", "servicePath": "", "title": "Cloud Document AI API", @@ -202,7 +202,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1053,6 +1053,187 @@ } }, "schemas": { + "CloudAiDocumentaiLabHifiaToolsValidationValidatorInput": { + "description": "Definition of the validation rules. Those are the input to the validator logic and they are used to validate a document.", + "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInput", + "properties": { + "validationRules": { + "items": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule" + }, + "type": "array" + } + }, + "type": "object" + }, + "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule": { + "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule", + "properties": { + "description": { + "description": "Description of the validation rule. This has no use but for documentation", + "type": "string" + }, + "fieldOccurrences": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences" + }, + "fieldRegex": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex" + }, + "formValidation": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation" + }, + "name": { + "description": "Name of the validation rule.", + "type": "string" + } + }, + "type": "object" + }, + "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant": { + "description": "The constant value used in the validation rules.", + "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant", + "properties": { + "floatValue": { + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField": { + "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField", + "properties": { + "defaultValue": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant", + "description": "Default value to use if the field is not present. If the field is missing and the default value is not set, the validation run as if the field is not present in the validation logic." + }, + "fieldName": { + "description": "The field name to validate. This can be a simple field name or a nested field one using the ':' (meant as an aggregator) or '*' (meant as foreach) operators.", + "type": "string" + } + }, + "type": "object" + }, + "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences": { + "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences", + "properties": { + "field": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField" + }, + "maxOccurrences": { + "format": "uint32", + "type": "integer" + }, + "minOccurrences": { + "description": "Min and max occurrences of the field. If not set, there is limit set. The defined interval is a closed-closed interval, i.e. [min, max].", + "format": "uint32", + "type": "integer" + } + }, + "type": "object" + }, + "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex": { + "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex", + "properties": { + "field": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField" + }, + "pattern": { + "description": "Python regex to validate the field values.", + "type": "string" + } + }, + "type": "object" + }, + "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation": { + "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation", + "properties": { + "leftOperand": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation" + }, + "rightOperand": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation" + }, + "validationOperator": { + "description": "The relational operator to be applied to the operands.", + "enum": [ + "OPERATION_TYPE_UNSPECIFIED", + "OPERATION_TYPE_EQ", + "OPERATION_TYPE_NE", + "OPERATION_TYPE_LT", + "OPERATION_TYPE_LE", + "OPERATION_TYPE_GT", + "OPERATION_TYPE_GE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation": { + "id": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation", + "properties": { + "constants": { + "description": "A list of constants to be used as operands.", + "items": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant" + }, + "type": "array" + }, + "fields": { + "description": "A list of fields to be used as operands.", + "items": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField" + }, + "type": "array" + }, + "operationType": { + "description": "The operation type to be applied to all the operands.", + "enum": [ + "OPERATION_TYPE_UNSPECIFIED", + "OPERATION_TYPE_SUM", + "OPERATION_TYPE_SUB", + "OPERATION_TYPE_MUL", + "OPERATION_TYPE_DIV", + "OPERATION_TYPE_MAX", + "OPERATION_TYPE_MIN", + "OPERATION_TYPE_ABS", + "OPERATION_TYPE_UNIQUE", + "OPERATION_TYPE_COUNT" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "operations": { + "description": "A list of recursive operations to be used as operands.", + "items": { + "$ref": "CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { "description": "Metadata of the auto-labeling documents operation.", "id": "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata", @@ -2609,6 +2790,20 @@ "description": "Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`.", "type": "string" }, + "method": { + "description": "Optional. Specifies how the entity's value is obtained.", + "enum": [ + "METHOD_UNSPECIFIED", + "EXTRACT", + "DERIVE" + ], + "enumDescriptions": [ + "When the method is not specified, it should be treated as `EXTRACT`.", + "The entity's value is directly extracted as-is from the document text.", + "The entity's value is derived through inference and is not necessarily an exact text extraction from the document." + ], + "type": "string" + }, "normalizedValue": { "$ref": "GoogleCloudDocumentaiV1DocumentEntityNormalizedValue", "description": "Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. address) is not supported for certain parsers. This field is also only populated for certain supported document types." diff --git a/discovery/googleapis/drive__v2.json b/discovery/googleapis/drive__v2.json index f7105f0ce..a463ed71f 100644 --- a/discovery/googleapis/drive__v2.json +++ b/discovery/googleapis/drive__v2.json @@ -51,7 +51,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250506", + "revision": "20250829", "rootUrl": "https://www.googleapis.com/", "servicePath": "drive/v2/", "title": "Google Drive API", @@ -1700,7 +1700,7 @@ "supportsMediaUpload": true }, "list": { - "description": " Lists the user's files. This method accepts the `q` parameter, which is a search query combining one or more search terms. For more information, see the [Search for files & folders](/workspace/drive/api/guides/search-files) guide. *Note:* This method returns *all* files by default, including trashed files. If you don't want trashed files to appear in the list, use the `trashed=false` query parameter to remove trashed files from the results.", + "description": " Lists the user's files. For more information, see [Search for files and folders](/workspace/drive/api/guides/search-files). This method accepts the `q` parameter, which is a search query combining one or more search terms. This method returns *all* files by default, including trashed files. If you don't want trashed files to appear in the list, use the `trashed=false` query parameter to remove trashed files from the results.", "flatPath": "files", "httpMethod": "GET", "id": "drive.files.list", @@ -2206,7 +2206,7 @@ ] }, "update": { - "description": " Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might be changed automatically, such as `modifiedDate`. This method supports patch semantics. This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:*`*/*` Note: Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](/workspace/drive/api/guides/manage-uploads).", + "description": " Updates a file's metadata, content, or both. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might be changed automatically, such as `modifiedDate`. This method supports patch semantics. This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:* `*/*` (Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information, see [Google Workspace and Google Drive supported MIME types](/workspace/drive/api/guides/mime-types).) For more information on uploading files, see [Upload file data](/workspace/drive/api/guides/manage-uploads).", "flatPath": "files/{fileId}", "httpMethod": "PUT", "id": "drive.files.update", @@ -4563,19 +4563,19 @@ "type": "object" }, "Comment": { - "description": "A comment on a file in Google Drive. Some resource methods (such as `comments.update`) require a `commentId`. Use the `comments.list` method to retrieve the ID for a comment in a file.", + "description": "A comment on a file in Google Drive.", "id": "Comment", "properties": { "anchor": { - "description": "A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Add comments and replies](https://developers.google.com/workspace/drive/api/v2/manage-comments).", + "description": "A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Manage comments and replies](https://developers.google.com/workspace/drive/api/v3/manage-comments).", "type": "string" }, "author": { "$ref": "User", - "description": "Output only. The author of the comment. The author's email address and permission ID will not be populated." + "description": "The user who wrote this comment." }, "commentId": { - "description": "Output only. The ID of the comment.", + "description": "The ID of the comment.", "type": "string" }, "content": { @@ -4590,7 +4590,7 @@ "type": "string" }, "context": { - "description": "The context of the file which is being commented on.", + "description": "Context of a file which is being commented on.", "properties": { "type": { "description": "The MIME type of the context snippet.", @@ -4609,24 +4609,24 @@ "type": "string" }, "deleted": { - "description": "Output only. Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.", + "description": "Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.", "type": "boolean" }, "fileId": { - "description": "Output only. The file which this comment is addressing.", + "description": "The file which this comment is addressing.", "type": "string" }, "fileTitle": { - "description": "Output only. The title of the file which this comment is addressing.", + "description": "The title of the file which this comment is addressing.", "type": "string" }, "htmlContent": { - "description": "Output only. HTML formatted content for this comment.", + "description": "HTML formatted content for this comment.", "type": "string" }, "kind": { "default": "drive#comment", - "description": "Output only. This is always `drive#comment`.", + "description": "This is always drive#comment.", "type": "string" }, "modifiedDate": { @@ -4635,18 +4635,18 @@ "type": "string" }, "replies": { - "description": "Output only. Replies to this post.", + "description": "Replies to this post.", "items": { "$ref": "CommentReply" }, "type": "array" }, "selfLink": { - "description": "Output only. A link back to this comment.", + "description": "A link back to this comment.", "type": "string" }, "status": { - "description": "Output only. The status of this comment. Status can be changed by posting a reply to a comment with the desired status. * `open` - The comment is still open. * `resolved` - The comment has been resolved by one of its replies.", + "description": "The status of this comment. Status can be changed by posting a reply to a comment with the desired status. Possible values are: * `open` - The comment is still open. * `resolved` - The comment has been resolved by one of its replies.", "type": "string" } }, @@ -4665,7 +4665,7 @@ }, "kind": { "default": "drive#commentList", - "description": "This is always `drive#commentList`.", + "description": "This is always drive#commentList.", "type": "string" }, "nextLink": { @@ -4684,12 +4684,12 @@ "type": "object" }, "CommentReply": { - "description": "A comment on a file in Google Drive. Some resource methods (such as `replies.update`) require a `replyId`. Use the `replies.list` method to retrieve the ID for a reply.", + "description": "A reply to a comment on a file in Google Drive.", "id": "CommentReply", "properties": { "author": { "$ref": "User", - "description": "Output only. The author of the reply. The author's email address and permission ID will not be populated." + "description": "The user who wrote this reply." }, "content": { "annotations": { @@ -4707,16 +4707,16 @@ "type": "string" }, "deleted": { - "description": "Output only. Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.", + "description": "Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.", "type": "boolean" }, "htmlContent": { - "description": "Output only. HTML formatted content for this reply.", + "description": "HTML formatted content for this reply.", "type": "string" }, "kind": { "default": "drive#commentReply", - "description": "Output only. This is always `drive#commentReply`.", + "description": "This is always drive#commentReply.", "type": "string" }, "modifiedDate": { @@ -4725,11 +4725,11 @@ "type": "string" }, "replyId": { - "description": "Output only. The ID of the reply.", + "description": "The ID of the reply.", "type": "string" }, "verb": { - "description": "The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are: * `resolve` - To resolve a comment. * `reopen` - To reopen (un-resolve) a comment.", + "description": "The action this reply performed to the parent comment. When creating a new reply this is the action to be perform tSo the parent comment. Possible values are: * `resolve` - To resolve a comment. * `reopen` - To reopen (un-resolve) a comment.", "type": "string" } }, diff --git a/discovery/googleapis/drive__v3.json b/discovery/googleapis/drive__v3.json index 566bf8c86..5be0dc7dd 100644 --- a/discovery/googleapis/drive__v3.json +++ b/discovery/googleapis/drive__v3.json @@ -51,7 +51,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250723", + "revision": "20250910", "rootUrl": "https://www.googleapis.com/", "servicePath": "drive/v3/", "title": "Google Drive API", @@ -162,7 +162,7 @@ "accessproposals": { "methods": { "get": { - "description": "Retrieves an AccessProposal by ID.", + "description": "Retrieves an access proposal by ID. For more information, see [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access).", "flatPath": "files/{fileId}/accessproposals/{proposalId}", "httpMethod": "GET", "id": "drive.accessproposals.get", @@ -172,13 +172,13 @@ ], "parameters": { "fileId": { - "description": "Required. The id of the item the request is on.", + "description": "Required. The ID of the item the request is on.", "location": "path", "required": true, "type": "string" }, "proposalId": { - "description": "Required. The id of the access proposal to resolve.", + "description": "Required. The ID of the access proposal to resolve.", "location": "path", "required": true, "type": "string" @@ -197,7 +197,7 @@ ] }, "list": { - "description": "List the AccessProposals on a file. Note: Only approvers are able to list AccessProposals on a file. If the user is not an approver, returns a 403.", + "description": "List the access proposals on a file. For more information, see [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access). Note: Only approvers are able to list access proposals on a file. If the user isn't an approver, a 403 error is returned.", "flatPath": "files/{fileId}/accessproposals", "httpMethod": "GET", "id": "drive.accessproposals.list", @@ -206,13 +206,13 @@ ], "parameters": { "fileId": { - "description": "Required. The id of the item the request is on.", + "description": "Required. The ID of the item the request is on.", "location": "path", "required": true, "type": "string" }, "pageSize": { - "description": "Optional. The number of results per page", + "description": "Optional. The number of results per page.", "format": "int32", "location": "query", "type": "integer" @@ -236,7 +236,7 @@ ] }, "resolve": { - "description": "Used to approve or deny an Access Proposal.", + "description": "Approves or denies an access proposal. For more information, see [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access).", "flatPath": "files/{fileId}/accessproposals/{proposalId}:resolve", "httpMethod": "POST", "id": "drive.accessproposals.resolve", @@ -246,13 +246,13 @@ ], "parameters": { "fileId": { - "description": "Required. The id of the item the request is on.", + "description": "Required. The ID of the item the request is on.", "location": "path", "required": true, "type": "string" }, "proposalId": { - "description": "Required. The id of the access proposal to resolve.", + "description": "Required. The ID of the access proposal to resolve.", "location": "path", "required": true, "type": "string" @@ -833,7 +833,7 @@ "drives": { "methods": { "create": { - "description": "Creates a shared drive.", + "description": "Creates a shared drive. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives).", "flatPath": "drives", "httpMethod": "POST", "id": "drive.drives.create", @@ -860,7 +860,7 @@ ] }, "delete": { - "description": "Permanently deletes a shared drive for which the user is an `organizer`. The shared drive cannot contain any untrashed items.", + "description": "Permanently deletes a shared drive for which the user is an `organizer`. The shared drive cannot contain any untrashed items. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives).", "flatPath": "drives/{driveId}", "httpMethod": "DELETE", "id": "drive.drives.delete", @@ -893,7 +893,7 @@ ] }, "get": { - "description": "Gets a shared drive's metadata by ID.", + "description": "Gets a shared drive's metadata by ID. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives).", "flatPath": "drives/{driveId}", "httpMethod": "GET", "id": "drive.drives.get", @@ -924,7 +924,7 @@ ] }, "hide": { - "description": "Hides a shared drive from the default view.", + "description": "Hides a shared drive from the default view. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives).", "flatPath": "drives/{driveId}/hide", "httpMethod": "POST", "id": "drive.drives.hide", @@ -990,7 +990,7 @@ ] }, "unhide": { - "description": "Restores a shared drive to the default view.", + "description": "Restores a shared drive to the default view. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives).", "flatPath": "drives/{driveId}/unhide", "httpMethod": "POST", "id": "drive.drives.unhide", @@ -1014,7 +1014,7 @@ ] }, "update": { - "description": "Updates the metadata for a shared drive.", + "description": "Updates the metadata for a shared drive. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives).", "flatPath": "drives/{driveId}", "httpMethod": "PATCH", "id": "drive.drives.update", @@ -1051,7 +1051,7 @@ "files": { "methods": { "copy": { - "description": "Creates a copy of a file and applies any requested updates with patch semantics.", + "description": "Creates a copy of a file and applies any requested updates with patch semantics. For more information, see [Create and manage files](https://developers.google.com/workspace/drive/api/guides/create-file).", "flatPath": "files/{fileId}/copy", "httpMethod": "POST", "id": "drive.files.copy", @@ -1061,7 +1061,8 @@ "parameters": { "enforceSingleParent": { "default": "false", - "description": "Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead.", + "deprecated": true, + "description": "Deprecated: Copying files into multiple folders is no longer supported. Use shortcuts instead.", "location": "query", "type": "boolean" }, @@ -1083,13 +1084,13 @@ "type": "string" }, "includePermissionsForView": { - "description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.", + "description": "Specifies which additional view's permissions to include in the response. Only `published` is supported.", "location": "query", "type": "string" }, "keepRevisionForever": { "default": "false", - "description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.", + "description": "Whether to set the `keepForever` field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.", "location": "query", "type": "boolean" }, @@ -1127,7 +1128,7 @@ ] }, "create": { - "description": " Creates a new file. This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:*`*/*` Note: Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](/workspace/drive/api/guides/manage-uploads). Apps creating shortcuts with `files.create` must specify the MIME type `application/vnd.google-apps.shortcut`. Apps should specify a file extension in the `name` property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like `\"name\": \"cat.jpg\"` in the metadata. Subsequent `GET` requests include the read-only `fileExtension` property populated with the extension originally specified in the `title` property. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full filename (with extension) based on the title. In cases where the extension is missing, Drive attempts to determine the extension based on the file's MIME type.", + "description": " Creates a file. For more information, see [Create and manage files](/workspace/drive/api/guides/create-file). This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:* `*/*` (Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information, see [Google Workspace and Google Drive supported MIME types](/workspace/drive/api/guides/mime-types).) For more information on uploading files, see [Upload file data](/workspace/drive/api/guides/manage-uploads). Apps creating shortcuts with the `create` method must specify the MIME type `application/vnd.google-apps.shortcut`. Apps should specify a file extension in the `name` property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like `\"name\": \"cat.jpg\"` in the metadata. Subsequent `GET` requests include the read-only `fileExtension` property populated with the extension originally specified in the `name` property. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full filename (with extension) based on the name. In cases where the extension is missing, Drive attempts to determine the extension based on the file's MIME type.", "flatPath": "files", "httpMethod": "POST", "id": "drive.files.create", @@ -1151,7 +1152,8 @@ "parameters": { "enforceSingleParent": { "default": "false", - "description": "Deprecated. Creating files in multiple folders is no longer supported.", + "deprecated": true, + "description": "Deprecated: Creating files in multiple folders is no longer supported.", "location": "query", "type": "boolean" }, @@ -1167,13 +1169,13 @@ "type": "string" }, "includePermissionsForView": { - "description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.", + "description": "Specifies which additional view's permissions to include in the response. Only `published` is supported.", "location": "query", "type": "string" }, "keepRevisionForever": { "default": "false", - "description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.", + "description": "Whether to set the `keepForever` field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.", "location": "query", "type": "boolean" }, @@ -1217,7 +1219,7 @@ "supportsMediaUpload": true }, "delete": { - "description": "Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive, the user must be an `organizer` on the parent folder. If the target is a folder, all descendants owned by the user are also deleted.", + "description": "Permanently deletes a file owned by the user without moving it to the trash. For more information, see [Trash or delete files and folders](https://developers.google.com/workspace/drive/api/guides/delete). If the file belongs to a shared drive, the user must be an `organizer` on the parent folder. If the target is a folder, all descendants owned by the user are also deleted.", "flatPath": "files/{fileId}", "httpMethod": "DELETE", "id": "drive.files.delete", @@ -1228,7 +1230,7 @@ "enforceSingleParent": { "default": "false", "deprecated": true, - "description": "Deprecated: If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.", + "description": "Deprecated: If an item isn't in a shared drive and its last parent is deleted but the item itself isn't, the item will be placed under its owner's root.", "location": "query", "type": "boolean" }, @@ -1260,7 +1262,7 @@ ] }, "download": { - "description": "Downloads content of a file. Operations are valid for 24 hours from the time of creation.", + "description": "Downloads the content of a file. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads). Operations are valid for 24 hours from the time of creation.", "flatPath": "files/{fileId}/download", "httpMethod": "POST", "id": "drive.files.download", @@ -1275,7 +1277,7 @@ "type": "string" }, "mimeType": { - "description": "Optional. The MIME type the file should be downloaded as. This field can only be set when downloading Google Workspace documents. See [Export MIME types for Google Workspace documents](/drive/api/guides/ref-export-formats) for the list of supported MIME types. If not set, a Google Workspace document is downloaded with a default MIME type. The default MIME type might change in the future.", + "description": "Optional. The MIME type the file should be downloaded as. This field can only be set when downloading Google Workspace documents. For a list of supported MIME types, see [Export MIME types for Google Workspace documents](/workspace/drive/api/guides/ref-export-formats). If not set, a Google Workspace document is downloaded with a default MIME type. The default MIME type might change in the future.", "location": "query", "type": "string" }, @@ -1296,7 +1298,7 @@ ] }, "emptyTrash": { - "description": "Permanently deletes all of the user's trashed files.", + "description": "Permanently deletes all of the user's trashed files. For more information, see [Trash or delete files and folders](https://developers.google.com/workspace/drive/api/guides/delete).", "flatPath": "files/trash", "httpMethod": "DELETE", "id": "drive.files.emptyTrash", @@ -1310,7 +1312,7 @@ "enforceSingleParent": { "default": "false", "deprecated": true, - "description": "Deprecated: If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.", + "description": "Deprecated: If an item isn't in a shared drive and its last parent is deleted but the item itself isn't, the item will be placed under its owner's root.", "location": "query", "type": "boolean" } @@ -1321,7 +1323,7 @@ ] }, "export": { - "description": "Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB.", + "description": "Exports a Google Workspace document to the requested MIME type and returns exported byte content. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads). Note that the exported content is limited to 10 MB.", "flatPath": "files/{fileId}/export", "httpMethod": "GET", "id": "drive.files.export", @@ -1337,7 +1339,7 @@ "type": "string" }, "mimeType": { - "description": "Required. The MIME type of the format requested for this export.", + "description": "Required. The MIME type of the format requested for this export. For a list of supported MIME types, see [Export MIME types for Google Workspace documents](/workspace/drive/api/guides/ref-export-formats).", "location": "query", "required": true, "type": "string" @@ -1354,7 +1356,7 @@ "useMediaDownloadService": true }, "generateIds": { - "description": "Generates a set of file IDs which can be provided in create or copy requests.", + "description": "Generates a set of file IDs which can be provided in create or copy requests. For more information, see [Create and manage files](https://developers.google.com/workspace/drive/api/guides/create-file).", "flatPath": "files/generateIds", "httpMethod": "GET", "id": "drive.files.generateIds", @@ -1371,13 +1373,13 @@ }, "space": { "default": "drive", - "description": "The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive')", + "description": "The space in which the IDs can be used to create files. Supported values are `drive` and `appDataFolder`. (Default: `drive`.) For more information, see [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization).", "location": "query", "type": "string" }, "type": { "default": "files", - "description": "The type of items which the IDs can be used for. Supported values are 'files' and 'shortcuts'. Note that 'shortcuts' are only supported in the `drive` 'space'. (Default: 'files')", + "description": "The type of items which the IDs can be used for. Supported values are `files` and `shortcuts`. Note that `shortcuts` are only supported in the `drive` `space`. (Default: `files`.) For more information, see [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization).", "location": "query", "type": "string" } @@ -1393,7 +1395,7 @@ ] }, "get": { - "description": " Gets a file's metadata or content by ID. If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use [`files.export`](/workspace/drive/api/reference/rest/v3/files/export) instead. For more information, see [Download & export files](/workspace/drive/api/guides/manage-downloads).", + "description": " Gets a file's metadata or content by ID. For more information, see [Search for files and folders](/workspace/drive/api/guides/search-files). If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use [`files.export`](/workspace/drive/api/reference/rest/v3/files/export) instead. For more information, see [Download and export files](/workspace/drive/api/guides/manage-downloads).", "flatPath": "files/{fileId}", "httpMethod": "GET", "id": "drive.files.get", @@ -1419,7 +1421,7 @@ "type": "string" }, "includePermissionsForView": { - "description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.", + "description": "Specifies which additional view's permissions to include in the response. Only `published` is supported.", "location": "query", "type": "string" }, @@ -1456,20 +1458,20 @@ "useMediaDownloadService": true }, "list": { - "description": " Lists the user's files. This method accepts the `q` parameter, which is a search query combining one or more search terms. For more information, see the [Search for files & folders](/workspace/drive/api/guides/search-files) guide. *Note:* This method returns *all* files by default, including trashed files. If you don't want trashed files to appear in the list, use the `trashed=false` query parameter to remove trashed files from the results.", + "description": " Lists the user's files. For more information, see [Search for files and folders](/workspace/drive/api/guides/search-files). This method accepts the `q` parameter, which is a search query combining one or more search terms. This method returns *all* files by default, including trashed files. If you don't want trashed files to appear in the list, use the `trashed=false` query parameter to remove trashed files from the results.", "flatPath": "files", "httpMethod": "GET", "id": "drive.files.list", "parameterOrder": [], "parameters": { "corpora": { - "description": "Bodies of items (files/documents) to which the query applies. Supported bodies are 'user', 'domain', 'drive', and 'allDrives'. Prefer 'user' or 'drive' to 'allDrives' for efficiency. By default, corpora is set to 'user'. However, this can change depending on the filter set through the 'q' parameter.", + "description": "Bodies of items (files or documents) to which the query applies. Supported bodies are: * `user` * `domain` * `drive` * `allDrives` Prefer `user` or `drive` to `allDrives` for efficiency. By default, corpora is set to `user`. However, this can change depending on the filter set through the `q` parameter. For more information, see [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization).", "location": "query", "type": "string" }, "corpus": { "deprecated": true, - "description": "Deprecated: The source of files to list. Use 'corpora' instead.", + "description": "Deprecated: The source of files to list. Use `corpora` instead.", "enum": [ "domain", "user" @@ -1498,7 +1500,7 @@ "type": "string" }, "includePermissionsForView": { - "description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.", + "description": "Specifies which additional view's permissions to include in the response. Only `published` is supported.", "location": "query", "type": "string" }, @@ -1510,7 +1512,7 @@ "type": "boolean" }, "orderBy": { - "description": "A comma-separated list of sort keys. Valid keys are: * `createdTime`: When the file was created. * `folder`: The folder ID. This field is sorted using alphabetical ordering. * `modifiedByMeTime`: The last time the file was modified by the user. * `modifiedTime`: The last time the file was modified by anyone. * `name`: The name of the file. This field is sorted using alphabetical ordering, so 1, 12, 2, 22. * `name_natural`: The name of the file. This field is sorted using natural sort ordering, so 1, 2, 12, 22. * `quotaBytesUsed`: The number of storage quota bytes used by the file. * `recency`: The most recent timestamp from the file's date-time fields. * `sharedWithMeTime`: When the file was shared with the user, if applicable. * `starred`: Whether the user has starred the file. * `viewedByMeTime`: The last time the file was viewed by the user. Each key sorts ascending by default, but can be reversed with the 'desc' modifier. Example usage: `?orderBy=folder,modifiedTime desc,name`.", + "description": "A comma-separated list of sort keys. Valid keys are: * `createdTime`: When the file was created. * `folder`: The folder ID. This field is sorted using alphabetical ordering. * `modifiedByMeTime`: The last time the file was modified by the user. * `modifiedTime`: The last time the file was modified by anyone. * `name`: The name of the file. This field is sorted using alphabetical ordering, so 1, 12, 2, 22. * `name_natural`: The name of the file. This field is sorted using natural sort ordering, so 1, 2, 12, 22. * `quotaBytesUsed`: The number of storage quota bytes used by the file. * `recency`: The most recent timestamp from the file's date-time fields. * `sharedWithMeTime`: When the file was shared with the user, if applicable. * `starred`: Whether the user has starred the file. * `viewedByMeTime`: The last time the file was viewed by the user. Each key sorts ascending by default, but can be reversed with the `desc` modifier. Example usage: `?orderBy=folder,modifiedTime desc,name`.", "location": "query", "type": "string" }, @@ -1524,18 +1526,18 @@ "type": "integer" }, "pageToken": { - "description": "The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.", + "description": "The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from the previous response.", "location": "query", "type": "string" }, "q": { - "description": "A query for filtering the file results. See the \"Search for files & folders\" guide for supported syntax.", + "description": "A query for filtering the file results. For supported syntax, see [Search for files and folders](/workspace/drive/api/guides/search-files).", "location": "query", "type": "string" }, "spaces": { "default": "drive", - "description": "A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.", + "description": "A comma-separated list of spaces to query within the corpora. Supported values are `drive` and `appDataFolder`. For more information, see [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization).", "location": "query", "type": "string" }, @@ -1575,7 +1577,7 @@ ] }, "listLabels": { - "description": "Lists the labels on a file.", + "description": "Lists the labels on a file. For more information, see [List labels on a file](https://developers.google.com/workspace/drive/api/guides/list-labels).", "flatPath": "files/{fileId}/listLabels", "httpMethod": "GET", "id": "drive.files.listLabels", @@ -1599,7 +1601,7 @@ "type": "integer" }, "pageToken": { - "description": "The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.", + "description": "The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from the previous response.", "location": "query", "type": "string" } @@ -1618,7 +1620,7 @@ ] }, "modifyLabels": { - "description": "Modifies the set of labels applied to a file. Returns a list of the labels that were added or modified.", + "description": "Modifies the set of labels applied to a file. For more information, see [Set a label field on a file](https://developers.google.com/workspace/drive/api/guides/set-label). Returns a list of the labels that were added or modified.", "flatPath": "files/{fileId}/modifyLabels", "httpMethod": "POST", "id": "drive.files.modifyLabels", @@ -1647,7 +1649,7 @@ ] }, "update": { - "description": " Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might be changed automatically, such as `modifiedDate`. This method supports patch semantics. This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:*`*/*` Note: Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information on uploading files, see [Upload file data](/workspace/drive/api/guides/manage-uploads).", + "description": " Updates a file's metadata, content, or both. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might be changed automatically, such as `modifiedDate`. This method supports patch semantics. This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:* `*/*` (Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information, see [Google Workspace and Google Drive supported MIME types](/workspace/drive/api/guides/mime-types).) For more information on uploading files, see [Upload file data](/workspace/drive/api/guides/manage-uploads).", "flatPath": "files/{fileId}", "httpMethod": "PATCH", "id": "drive.files.update", @@ -1695,13 +1697,13 @@ "type": "string" }, "includePermissionsForView": { - "description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.", + "description": "Specifies which additional view's permissions to include in the response. Only `published` is supported.", "location": "query", "type": "string" }, "keepRevisionForever": { "default": "false", - "description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.", + "description": "Whether to set the `keepForever` field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.", "location": "query", "type": "boolean" }, @@ -1752,7 +1754,7 @@ "supportsMediaUpload": true }, "watch": { - "description": "Subscribes to changes to a file.", + "description": "Subscribes to changes to a file. For more information, see [Notifications for resource changes](https://developers.google.com/workspace/drive/api/guides/push).", "flatPath": "files/{fileId}/watch", "httpMethod": "POST", "id": "drive.files.watch", @@ -1778,7 +1780,7 @@ "type": "string" }, "includePermissionsForView": { - "description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.", + "description": "Specifies which additional view's permissions to include in the response. Only `published` is supported.", "location": "query", "type": "string" }, @@ -1891,7 +1893,7 @@ "type": "boolean" }, "sendNotificationEmail": { - "description": "Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, and is not allowed for other requests. It must not be disabled for ownership transfers.", + "description": "Whether to send a notification email when sharing to users or groups. This defaults to `true` for users and groups, and is not allowed for other requests. It must not be disabled for ownership transfers.", "location": "query", "type": "boolean" }, @@ -2405,7 +2407,7 @@ "revisions": { "methods": { "delete": { - "description": "Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted.", + "description": "Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted. For more information, see [Manage file revisions](https://developers.google.com/drive/api/guides/manage-revisions).", "flatPath": "files/{fileId}/revisions/{revisionId}", "httpMethod": "DELETE", "id": "drive.revisions.delete", @@ -2435,7 +2437,7 @@ ] }, "get": { - "description": "Gets a revision's metadata or content by ID.", + "description": "Gets a revision's metadata or content by ID. For more information, see [Manage file revisions](https://developers.google.com/workspace/drive/api/guides/manage-revisions).", "flatPath": "files/{fileId}/revisions/{revisionId}", "httpMethod": "GET", "id": "drive.revisions.get", @@ -2481,7 +2483,7 @@ "useMediaDownloadService": true }, "list": { - "description": "Lists a file's revisions.", + "description": "Lists a file's revisions. For more information, see [Manage file revisions](https://developers.google.com/workspace/drive/api/guides/manage-revisions).", "flatPath": "files/{fileId}/revisions", "httpMethod": "GET", "id": "drive.revisions.list", @@ -2526,7 +2528,7 @@ ] }, "update": { - "description": "Updates a revision with patch semantics.", + "description": "Updates a revision with patch semantics. For more information, see [Manage file revisions](https://developers.google.com/workspace/drive/api/guides/manage-revisions).", "flatPath": "files/{fileId}/revisions/{revisionId}", "httpMethod": "PATCH", "id": "drive.revisions.update", @@ -2865,36 +2867,36 @@ "type": "object" }, "AccessProposal": { - "description": "The Access Proposal resource for outstanding access proposals on a file", + "description": "Manage outstanding access proposals on a file.", "id": "AccessProposal", "properties": { "createTime": { - "description": "The creation time", + "description": "The creation time.", "format": "google-datetime", "type": "string" }, "fileId": { - "description": "The file id that the proposal for access is on", + "description": "The file ID that the proposal for access is on.", "type": "string" }, "proposalId": { - "description": "The id of the access proposal", + "description": "The ID of the access proposal.", "type": "string" }, "recipientEmailAddress": { - "description": "The email address of the user that will receive permissions if accepted", + "description": "The email address of the user that will receive permissions, if accepted.", "type": "string" }, "requestMessage": { - "description": "The message that the requester added to the proposal", + "description": "The message that the requester added to the proposal.", "type": "string" }, "requesterEmailAddress": { - "description": "The email address of the requesting user", + "description": "The email address of the requesting user.", "type": "string" }, "rolesAndViews": { - "description": "A wrapper for the role and view of an access proposal.", + "description": "A wrapper for the role and view of an access proposal. For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).", "items": { "$ref": "AccessProposalRoleAndView" }, @@ -2904,15 +2906,15 @@ "type": "object" }, "AccessProposalRoleAndView": { - "description": "A wrapper for the role and view of an access proposal.", + "description": "A wrapper for the role and view of an access proposal. For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).", "id": "AccessProposalRoleAndView", "properties": { "role": { - "description": "The role that was proposed by the requester New values may be added in the future, but the following are currently possible: * `writer` * `commenter` * `reader`", + "description": "The role that was proposed by the requester. The supported values are: * `writer` * `commenter` * `reader`", "type": "string" }, "view": { - "description": "Indicates the view for this access proposal. Only populated for proposals that belong to a view. `published` is the only supported value.", + "description": "Indicates the view for this access proposal. Only populated for proposals that belong to a view. Only `published` is supported.", "type": "string" } }, @@ -3339,7 +3341,7 @@ }, "restrictingUser": { "$ref": "User", - "description": "Output only. The user who set the content restriction. Only populated if `readOnly` is true." + "description": "Output only. The user who set the content restriction. Only populated if `readOnly=true`." }, "restrictionTime": { "description": "The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.", @@ -3366,7 +3368,7 @@ "type": "boolean" }, "restrictedForWriters": { - "description": "Whether download and copy is restricted for writers. If true, download is also restricted for readers.", + "description": "Whether download and copy is restricted for writers. If `true`, download is also restricted for readers.", "type": "boolean" } }, @@ -3382,7 +3384,7 @@ }, "itemDownloadRestriction": { "$ref": "DownloadRestriction", - "description": "The download restriction of the file applied directly by the owner or organizer. This does not take into account shared drive settings or DLP rules." + "description": "The download restriction of the file applied directly by the owner or organizer. This doesn't take into account shared drive settings or DLP rules." } }, "type": "object" @@ -3612,18 +3614,18 @@ "type": "object" }, "capabilities": { - "description": "Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.", + "description": "Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take. For more information, see [Understand file capabilities](https://developers.google.com/workspace/drive/api/guides/manage-sharing#capabilities).", "properties": { "canAcceptOwnership": { "description": "Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.", "type": "boolean" }, "canAddChildren": { - "description": "Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.", + "description": "Output only. Whether the current user can add children to this folder. This is always `false` when the item isn't a folder.", "type": "boolean" }, "canAddFolderFromAnotherDrive": { - "description": "Output only. Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.", + "description": "Output only. Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is `false` when the item isn't a folder. Only populated for items in shared drives.", "type": "boolean" }, "canAddMyDriveParent": { @@ -3639,7 +3641,7 @@ "type": "boolean" }, "canChangeSecurityUpdateEnabled": { - "description": "Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.", + "description": "Output only. Whether the current user can change the `securityUpdateEnabled` field on link share metadata.", "type": "boolean" }, "canChangeViewersCanCopyContent": { @@ -3652,7 +3654,7 @@ "type": "boolean" }, "canCopy": { - "description": "Output only. Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.", + "description": "Output only. Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item if it's not a folder.", "type": "boolean" }, "canDelete": { @@ -3660,7 +3662,7 @@ "type": "boolean" }, "canDeleteChildren": { - "description": "Output only. Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.", + "description": "Output only. Whether the current user can delete children of this folder. This is `false` when the item isn't a folder. Only populated for items in shared drives.", "type": "boolean" }, "canDisableInheritedPermissions": { @@ -3680,7 +3682,7 @@ "type": "boolean" }, "canListChildren": { - "description": "Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.", + "description": "Output only. Whether the current user can list the children of this folder. This is always `false` when the item isn't a folder.", "type": "boolean" }, "canModifyContent": { @@ -3689,7 +3691,7 @@ }, "canModifyContentRestriction": { "deprecated": true, - "description": "Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.", + "description": "Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction`, or `canRemoveContentRestriction`.", "type": "boolean" }, "canModifyEditorContentRestriction": { @@ -3705,7 +3707,7 @@ "type": "boolean" }, "canMoveChildrenOutOfDrive": { - "description": "Output only. Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.", + "description": "Output only. Whether the current user can move children of this folder outside of the shared drive. This is `false` when the item isn't a folder. Only populated for items in shared drives.", "type": "boolean" }, "canMoveChildrenOutOfTeamDrive": { @@ -3714,7 +3716,7 @@ "type": "boolean" }, "canMoveChildrenWithinDrive": { - "description": "Output only. Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user's access to the child and to the destination folder.", + "description": "Output only. Whether the current user can move children of this folder within this drive. This is `false` when the item isn't a folder. Note that a request to move the child may still fail depending on the current user's access to the child and to the destination folder.", "type": "boolean" }, "canMoveChildrenWithinTeamDrive": { @@ -3728,7 +3730,7 @@ "type": "boolean" }, "canMoveItemOutOfDrive": { - "description": "Output only. Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.", + "description": "Output only. Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that's being added.", "type": "boolean" }, "canMoveItemOutOfTeamDrive": { @@ -3737,7 +3739,7 @@ "type": "boolean" }, "canMoveItemWithinDrive": { - "description": "Output only. Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.", + "description": "Output only. Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that's being added and the parent that is being removed.", "type": "boolean" }, "canMoveItemWithinTeamDrive": { @@ -3759,7 +3761,7 @@ "type": "boolean" }, "canReadRevisions": { - "description": "Output only. Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.", + "description": "Output only. Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item if it's not a folder, can be read.", "type": "boolean" }, "canReadTeamDrive": { @@ -3768,11 +3770,11 @@ "type": "boolean" }, "canRemoveChildren": { - "description": "Output only. Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use `canDeleteChildren` or `canTrashChildren` instead.", + "description": "Output only. Whether the current user can remove children from this folder. This is always `false` when the item isn't a folder. For a folder in a shared drive, use `canDeleteChildren` or `canTrashChildren` instead.", "type": "boolean" }, "canRemoveContentRestriction": { - "description": "Output only. Whether there is a content restriction on the file that can be removed by the current user.", + "description": "Output only. Whether there's a content restriction on the file that can be removed by the current user.", "type": "boolean" }, "canRemoveMyDriveParent": { @@ -3792,7 +3794,7 @@ "type": "boolean" }, "canTrashChildren": { - "description": "Output only. Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.", + "description": "Output only. Whether the current user can trash children of this folder. This is `false` when the item isn't a folder. Only populated for items in shared drives.", "type": "boolean" }, "canUntrash": { @@ -3806,14 +3808,14 @@ "description": "Additional information about the content of the file. These fields are never populated in responses.", "properties": { "indexableText": { - "description": "Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.", + "description": "Text to be indexed for the file to improve fullText queries. This is limited to 128 KB in length and may contain HTML elements.", "type": "string" }, "thumbnail": { "description": "A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.", "properties": { "image": { - "description": "The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).", + "description": "The thumbnail data encoded with URL-safe Base64 ([RFC 4648 section 5](https://datatracker.ietf.org/doc/html/rfc4648#section-5)).", "format": "byte", "type": "string" }, @@ -3835,7 +3837,7 @@ "type": "array" }, "copyRequiresWriterPermission": { - "description": "Whether the options to copy, print, or download this file, should be disabled for readers and commenters.", + "description": "Whether the options to copy, print, or download this file should be disabled for readers and commenters.", "type": "boolean" }, "createdTime": { @@ -3872,11 +3874,11 @@ "type": "string" }, "folderColorRgb": { - "description": "The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the `folderColorPalette` field of the About resource. If an unsupported color is specified, the closest color in the palette is used instead.", + "description": "The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the `folderColorPalette` field of the [`about`](/workspace/drive/api/reference/rest/v3/about) resource. If an unsupported color is specified, the closest color in the palette is used instead.", "type": "string" }, "fullFileExtension": { - "description": "Output only. The full file extension extracted from the `name` field. May contain multiple concatenated extensions, such as \"tar.gz\". This is only available for files with binary content in Google Drive. This is automatically updated when the `name` field changes, however it is not cleared if the new name does not contain a valid extension.", + "description": "Output only. The full file extension extracted from the `name` field. May contain multiple concatenated extensions, such as \"tar.gz\". This is only available for files with binary content in Google Drive. This is automatically updated when the `name` field changes, however it's not cleared if the new name doesn't contain a valid extension.", "type": "string" }, "hasAugmentedPermissions": { @@ -3884,7 +3886,7 @@ "type": "boolean" }, "hasThumbnail": { - "description": "Output only. Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.", + "description": "Output only. Whether this file has a thumbnail. This doesn't indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.", "type": "boolean" }, "headRevisionId": { @@ -4065,7 +4067,7 @@ "type": "string" }, "mimeType": { - "description": "The MIME type of the file. Google Drive attempts to automatically detect an appropriate value from uploaded content, if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is imported, if possible. The supported import formats are published in the About resource.", + "description": "The MIME type of the file. Google Drive attempts to automatically detect an appropriate value from uploaded content, if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is imported, if possible. The supported import formats are published in the [`about`](/workspace/drive/api/reference/rest/v3/about) resource.", "type": "string" }, "modifiedByMe": { @@ -4083,7 +4085,7 @@ "type": "string" }, "name": { - "description": "The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant.", + "description": "The name of the file. This isn't necessarily unique within a folder. Note that for immutable items such as the top-level folders of shared drives, the My Drive root folder, and the Application Data folder, the name is constant.", "type": "string" }, "originalFilename": { @@ -4139,11 +4141,11 @@ "type": "string" }, "sha1Checksum": { - "description": "Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", + "description": "Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it's not populated for Docs Editors or shortcut files.", "type": "string" }, "sha256Checksum": { - "description": "Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", + "description": "Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it's not populated for Docs Editors or shortcut files.", "type": "string" }, "shared": { @@ -4171,19 +4173,19 @@ "type": "string" }, "targetResourceKey": { - "description": "Output only. The ResourceKey for the target file.", + "description": "Output only. The `resourceKey` for the target file.", "type": "string" } }, "type": "object" }, "size": { - "description": "Output only. Size in bytes of blobs and first party editor files. Won't be populated for files that have no size, like shortcuts and folders.", + "description": "Output only. Size in bytes of blobs and Google Workspace editor files. Won't be populated for files that have no size, like shortcuts and folders.", "format": "int64", "type": "string" }, "spaces": { - "description": "Output only. The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.", + "description": "Output only. The list of spaces which contain the file. The currently supported values are `drive`, `appDataFolder`, and `photos`.", "items": { "type": "string" }, @@ -4199,7 +4201,7 @@ "type": "string" }, "thumbnailLink": { - "description": "Output only. A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies, consider using a proxy server. Only populated when the requesting app can access the file's content. If the file isn't shared publicly, the URL returned in `Files.thumbnailLink` must be fetched using a credentialed request.", + "description": "Output only. A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies. Consider using a proxy server. Only populated when the requesting app can access the file's content. If the file isn't shared publicly, the URL returned in `files.thumbnailLink` must be fetched using a credentialed request.", "type": "string" }, "thumbnailVersion": { @@ -4280,14 +4282,14 @@ "id": "FileList", "properties": { "files": { - "description": "The list of files. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.", + "description": "The list of files. If `nextPageToken` is populated, then this list may be incomplete and an additional page of results should be fetched.", "items": { "$ref": "File" }, "type": "array" }, "incompleteSearch": { - "description": "Whether the search process was incomplete. If true, then some search results might be missing, since all documents were not searched. This can occur when searching multiple drives with the 'allDrives' corpora, but all corpora couldn't be searched. When this happens, it's suggested that clients narrow their query by choosing a different corpus such as 'user' or 'drive'.", + "description": "Whether the search process was incomplete. If true, then some search results might be missing, since all documents were not searched. This can occur when searching multiple drives with the `allDrives` corpora, but all corpora couldn't be searched. When this happens, it's suggested that clients narrow their query by choosing a different corpus such as `user` or `drive`.", "type": "boolean" }, "kind": { @@ -4416,7 +4418,7 @@ "type": "string" }, "kind": { - "description": "This is always drive#labelFieldModification.", + "description": "This is always `\"drive#labelFieldModification\"`.", "type": "string" }, "setDateValues": { @@ -4450,7 +4452,7 @@ "type": "array" }, "setUserValues": { - "description": "Replaces a `user` field with these new values. The values must be valid email addresses.", + "description": "Replaces a `user` field with these new values. The values must be a valid email addresses.", "items": { "type": "string" }, @@ -4468,7 +4470,7 @@ "id": "LabelList", "properties": { "kind": { - "description": "This is always drive#labelList", + "description": "This is always `\"drive#labelList\"`.", "type": "string" }, "labels": { @@ -4486,7 +4488,7 @@ "type": "object" }, "LabelModification": { - "description": "A modification to a label on a file. A LabelModification can be used to apply a label to a file, update an existing label on a file, or remove a label from a file.", + "description": "A modification to a label on a file. A `LabelModification` can be used to apply a label to a file, update an existing label on a file, or remove a label from a file.", "id": "LabelModification", "properties": { "fieldModifications": { @@ -4497,7 +4499,7 @@ "type": "array" }, "kind": { - "description": "This is always drive#labelModification.", + "description": "This is always `\"drive#labelModification\"`.", "type": "string" }, "labelId": { @@ -4517,11 +4519,11 @@ "type": "object" }, "ListAccessProposalsResponse": { - "description": "The response to an Access Proposal list request.", + "description": "The response to an access proposal list request.", "id": "ListAccessProposalsResponse", "properties": { "accessProposals": { - "description": "The list of Access Proposals. This field is only populated in v3 and v3beta.", + "description": "The list of access proposals. This field is only populated in Drive API v3.", "items": { "$ref": "AccessProposal" }, @@ -4539,7 +4541,7 @@ "id": "ModifyLabelsRequest", "properties": { "kind": { - "description": "This is always drive#modifyLabelsRequest.", + "description": "This is always `\"drive#modifyLabelsRequest\"`.", "type": "string" }, "labelModifications": { @@ -4553,11 +4555,11 @@ "type": "object" }, "ModifyLabelsResponse": { - "description": "Response to a ModifyLabels request. This contains only those labels which were added or updated by the request.", + "description": "Response to a `ModifyLabels` request. This contains only those labels which were added or updated by the request.", "id": "ModifyLabelsResponse", "properties": { "kind": { - "description": "This is always drive#modifyLabelsResponse", + "description": "This is always `\"drive#modifyLabelsResponse\"`.", "type": "string" }, "modifiedLabels": { @@ -4839,7 +4841,7 @@ "id": "ResolveAccessProposalRequest", "properties": { "action": { - "description": "Required. The action to take on the AccessProposal.", + "description": "Required. The action to take on the access proposal.", "enum": [ "ACTION_UNSPECIFIED", "ACCEPT", @@ -4847,24 +4849,24 @@ ], "enumDescriptions": [ "Unspecified action", - "The user accepts the proposal. Note: If this action is used, the `role` field must have at least one value.", - "The user denies the proposal" + "The user accepts the access proposal. Note: If this action is used, the `role` field must have at least one value.", + "The user denies the access proposal." ], "type": "string" }, "role": { - "description": "Optional. The roles the approver has allowed, if any. Note: This field is required for the `ACCEPT` action.", + "description": "Optional. The roles that the approver has allowed, if any. For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles). Note: This field is required for the `ACCEPT` action.", "items": { "type": "string" }, "type": "array" }, "sendNotification": { - "description": "Optional. Whether to send an email to the requester when the AccessProposal is denied or accepted.", + "description": "Optional. Whether to send an email to the requester when the access proposal is denied or accepted.", "type": "boolean" }, "view": { - "description": "Optional. Indicates the view for this access proposal. This should only be set when the proposal belongs to a view. `published` is the only supported value.", + "description": "Optional. Indicates the view for this access proposal. This should only be set when the proposal belongs to a view. Only `published` is supported.", "type": "string" } }, diff --git a/discovery/googleapis/driveactivity__v2.json b/discovery/googleapis/driveactivity__v2.json index f5a430c0a..55e0c1a5a 100644 --- a/discovery/googleapis/driveactivity__v2.json +++ b/discovery/googleapis/driveactivity__v2.json @@ -28,7 +28,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250517", + "revision": "20250816", "rootUrl": "https://driveactivity.googleapis.com/", "servicePath": "", "title": "Drive Activity API", @@ -1137,15 +1137,29 @@ "DIRECT_SHARING", "ITEM_DUPLICATION", "DRIVE_FILE_STREAM", - "FILE_ORGANIZER_CAN_SHARE_FOLDERS" + "FILE_ORGANIZER_CAN_SHARE_FOLDERS", + "READERS_CAN_DOWNLOAD", + "WRITERS_CAN_DOWNLOAD" + ], + "enumDeprecated": [ + false, + false, + false, + true, + false, + false, + false, + false ], "enumDescriptions": [ "The feature which changed restriction settings was not available.", "When restricted, this prevents items from being shared outside the domain.", "When restricted, this prevents direct sharing of individual items.", - "When restricted, this prevents actions like copy, download, and print that might result in uncontrolled duplicates of items. Now deprecated in favor of READERS_CAN_DOWNLOAD.", + "Deprecated: Use READERS_CAN_DOWNLOAD instead.", "When restricted, this prevents use of Drive File Stream.", - "When restricted, this limits sharing of folders to managers only." + "When restricted, this limits sharing of folders to managers only.", + "When restricted, this prevents actions like copy, download, and print for readers. Replaces ITEM_DUPLICATION.", + "When restricted, this prevents actions like copy, download, and print for writers." ], "type": "string" }, diff --git a/discovery/googleapis/drivelabels__v2.json b/discovery/googleapis/drivelabels__v2.json index 035b9c562..a5b51a0c9 100644 --- a/discovery/googleapis/drivelabels__v2.json +++ b/discovery/googleapis/drivelabels__v2.json @@ -34,7 +34,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250602", + "revision": "20250807", "rootUrl": "https://drivelabels.googleapis.com/", "servicePath": "", "title": "Drive Labels API", @@ -121,14 +121,14 @@ "labels": { "methods": { "create": { - "description": "Creates a new Label.", + "description": "Creates a label. For more information, see [Create and publish a label](https://developers.google.com/workspace/drive/labels/guides/create-label).", "flatPath": "v2/labels", "httpMethod": "POST", "id": "drivelabels.labels.create", "parameterOrder": [], "parameters": { "languageCode": { - "description": "The BCP-47 language code to use for evaluating localized Field labels in response. When not specified, values in the default configured language will be used.", + "description": "The BCP-47 language code to use for evaluating localized field labels in response. When not specified, values in the default configured language will be used.", "location": "query", "type": "string" }, @@ -151,7 +151,7 @@ ] }, "delete": { - "description": "Permanently deletes a Label and related metadata on Drive Items. Once deleted, the Label and related Drive item metadata will be deleted. Only draft Labels, and disabled Labels may be deleted.", + "description": "Permanently deletes a label and related metadata on Drive items. For more information, see [Disable, enable, and delete a label](https://developers.google.com/workspace/drive/labels/guides/disable-delete-label). Once deleted, the label and related Drive item metadata will be deleted. Only draft labels and disabled labels may be deleted.", "flatPath": "v2/labels/{labelsId}", "httpMethod": "DELETE", "id": "drivelabels.labels.delete", @@ -167,12 +167,12 @@ "type": "string" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "location": "query", "type": "boolean" }, "writeControl.requiredRevisionId": { - "description": "The revision_id of the label that the write request will be applied to. If this is not the latest revision of the label, the request will not be processed and will return a 400 Bad Request error.", + "description": "The revision ID of the label that the write request will be applied to. If this isn't the latest revision of the label, the request will not be processed and will return a 400 Bad Request error.", "location": "query", "type": "string" } @@ -187,7 +187,7 @@ ] }, "delta": { - "description": "Updates a single Label by applying a set of update requests resulting in a new draft revision. The batch update is all-or-nothing: If any of the update requests are invalid, no changes are applied. The resulting draft revision must be published before the changes may be used with Drive Items.", + "description": "Updates a single label by applying a set of update requests resulting in a new draft revision. For more information, see [Update a label](https://developers.google.com/workspace/drive/labels/guides/update-label). The batch update is all-or-nothing: If any of the update requests are invalid, no changes are applied. The resulting draft revision must be published before the changes may be used with Drive items.", "flatPath": "v2/labels/{labelsId}:delta", "httpMethod": "POST", "id": "drivelabels.labels.delta", @@ -196,7 +196,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the Label to update.", + "description": "Required. The resource name of the label to update.", "location": "path", "pattern": "^labels/[^/]+$", "required": true, @@ -216,7 +216,7 @@ ] }, "disable": { - "description": "Disable a published Label. Disabling a Label will result in a new disabled published revision based on the current published revision. If there is a draft revision, a new disabled draft revision will be created based on the latest draft revision. Older draft revisions will be deleted. Once disabled, a label may be deleted with `DeleteLabel`.", + "description": "Disable a published label. For more information, see [Disable, enable, and delete a label](https://developers.google.com/workspace/drive/labels/guides/disable-delete-label). Disabling a label will result in a new disabled published revision based on the current published revision. If there's a draft revision, a new disabled draft revision will be created based on the latest draft revision. Older draft revisions will be deleted. Once disabled, a label may be deleted with `DeleteLabel`.", "flatPath": "v2/labels/{labelsId}:disable", "httpMethod": "POST", "id": "drivelabels.labels.disable", @@ -245,7 +245,7 @@ ] }, "enable": { - "description": "Enable a disabled Label and restore it to its published state. This will result in a new published revision based on the current disabled published revision. If there is an existing disabled draft revision, a new revision will be created based on that draft and will be enabled.", + "description": "Enable a disabled label and restore it to its published state. For more information, see [Disable, enable, and delete a label](https://developers.google.com/workspace/drive/labels/guides/disable-delete-label). This will result in a new published revision based on the current disabled published revision. If there's an existing disabled draft revision, a new revision will be created based on that draft and will be enabled.", "flatPath": "v2/labels/{labelsId}:enable", "httpMethod": "POST", "id": "drivelabels.labels.enable", @@ -274,7 +274,7 @@ ] }, "get": { - "description": "Get a label by its resource name. Resource name may be any of: * `labels/{id}` - See `labels/{id}@latest` * `labels/{id}@latest` - Gets the latest revision of the label. * `labels/{id}@published` - Gets the current published revision of the label. * `labels/{id}@{revision_id}` - Gets the label at the specified revision ID.", + "description": "Get a label by its resource name. For more information, see [Search for labels](https://developers.google.com/workspace/drive/labels/guides/search-label). Resource name may be any of: * `labels/{id}` - See `labels/{id}@latest` * `labels/{id}@latest` - Gets the latest revision of the label. * `labels/{id}@published` - Gets the current published revision of the label. * `labels/{id}@{revision_id}` - Gets the label at the specified revision ID.", "flatPath": "v2/labels/{labelsId}", "httpMethod": "GET", "id": "drivelabels.labels.get", @@ -325,14 +325,14 @@ ] }, "list": { - "description": "List labels.", + "description": "List labels. For more information, see [Search for labels](https://developers.google.com/workspace/drive/labels/guides/search-label).", "flatPath": "v2/labels", "httpMethod": "GET", "id": "drivelabels.labels.list", "parameterOrder": [], "parameters": { "customer": { - "description": "The customer to scope this list request to. For example: \"customers/abcd1234\". If unset, will return all labels within the current customer.", + "description": "The customer to scope this list request to. For example: `customers/abcd1234`. If unset, will return all labels within the current customer.", "location": "query", "type": "string" }, @@ -342,7 +342,7 @@ "type": "string" }, "minimumRole": { - "description": "Specifies the level of access the user must have on the returned Labels. The minimum role a user must have on a label. Defaults to `READER`.", + "description": "Specifies the level of access the user must have on the returned labels. The minimum role a user must have on a label. Defaults to `READER`.", "enum": [ "LABEL_ROLE_UNSPECIFIED", "READER", @@ -377,7 +377,7 @@ "type": "boolean" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. This will return all Labels within the customer.", + "description": "Set to `true` in order to use the user's admin credentials. This will return all labels within the customer.", "location": "query", "type": "boolean" }, @@ -407,7 +407,7 @@ ] }, "publish": { - "description": "Publish all draft changes to the Label. Once published, the Label may not return to its draft state. See `google.apps.drive.labels.v2.Lifecycle` for more information. Publishing a Label will result in a new published revision. All previous draft revisions will be deleted. Previous published revisions will be kept but are subject to automated deletion as needed. Once published, some changes are no longer permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the Label will be rejected. For example, the following changes to a Label will be rejected after the Label is published: * The label cannot be directly deleted. It must be disabled first, then deleted. * Field.FieldType cannot be changed. * Changes to Field validation options cannot reject something that was previously accepted. * Reducing the max entries.", + "description": "Publish all draft changes to the label. Once published, the label may not return to its draft state. For more information, see [Create and publish a label](https://developers.google.com/workspace/drive/labels/guides/create-label). Publishing a label will result in a new published revision. All previous draft revisions will be deleted. Previous published revisions will be kept but are subject to automated deletion as needed. For more information, see [Label lifecycle](https://developers.google.com/workspace/drive/labels/guides/label-lifecycle). Once published, some changes are no longer permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the label will be rejected. For example, the following changes to a label will be rejected after the label is published: * The label cannot be directly deleted. It must be disabled first, then deleted. * `Field.FieldType` cannot be changed. * Changes to field validation options cannot reject something that was previously accepted. * Reducing the maximum entries.", "flatPath": "v2/labels/{labelsId}:publish", "httpMethod": "POST", "id": "drivelabels.labels.publish", @@ -436,7 +436,7 @@ ] }, "updateLabelCopyMode": { - "description": "Updates a Label's `CopyMode`. Changes to this policy are not revisioned, do not require publishing, and take effect immediately.", + "description": "Updates a label's `CopyMode`. Changes to this policy aren't revisioned, don't require publishing, and take effect immediately.", "flatPath": "v2/labels/{labelsId}:updateLabelCopyMode", "httpMethod": "POST", "id": "drivelabels.labels.updateLabelCopyMode", @@ -445,7 +445,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the Label to update.", + "description": "Required. The resource name of the label to update.", "location": "path", "pattern": "^labels/[^/]+$", "required": true, @@ -465,7 +465,7 @@ ] }, "updateLabelEnabledAppSettings": { - "description": "Updates a Label's EabledAppSettings. Enabling a Label in a Workspace Application allows it to be used in that application. This change is not revisioned, does not require publishing, and takes effect immediately.", + "description": "Updates a label's `EnabledAppSettings`. Enabling a label in a Google Workspace app allows it to be used in that app. This change isn't revisioned, doesn't require publishing, and takes effect immediately.", "flatPath": "v2/labels/{labelsId}:updateLabelEnabledAppSettings", "httpMethod": "POST", "id": "drivelabels.labels.updateLabelEnabledAppSettings", @@ -474,7 +474,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the Label to update. The resource name of the Label to update.", + "description": "Required. The resource name of the label to update. The resource name of the label to update.", "location": "path", "pattern": "^labels/[^/]+$", "required": true, @@ -490,7 +490,7 @@ } }, "updatePermissions": { - "description": "Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.", + "description": "Updates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.", "flatPath": "v2/labels/{labelsId}/permissions", "httpMethod": "PATCH", "id": "drivelabels.labels.updatePermissions", @@ -499,14 +499,14 @@ ], "parameters": { "parent": { - "description": "Required. The parent Label resource name.", + "description": "Required. The parent label resource name.", "location": "path", "pattern": "^labels/[^/]+$", "required": true, "type": "string" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "location": "query", "type": "boolean" } @@ -528,7 +528,7 @@ "locks": { "methods": { "list": { - "description": "Lists the LabelLocks on a Label.", + "description": "Lists the label locks on a label.", "flatPath": "v2/labels/{labelsId}/locks", "httpMethod": "GET", "id": "drivelabels.labels.locks.list", @@ -537,7 +537,7 @@ ], "parameters": { "pageSize": { - "description": "Maximum number of Locks to return per page. Default: 100. Max: 200.", + "description": "Maximum number of locks to return per page. Default: 100. Max: 200.", "format": "int32", "location": "query", "type": "integer" @@ -548,7 +548,7 @@ "type": "string" }, "parent": { - "description": "Required. Label on which Locks are applied. Format: labels/{label}", + "description": "Required. Label on which locks are applied. Format: `labels/{label}`.", "location": "path", "pattern": "^labels/[^/]+$", "required": true, @@ -571,7 +571,7 @@ "permissions": { "methods": { "batchDelete": { - "description": "Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.", + "description": "Deletes label permissions. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.", "flatPath": "v2/labels/{labelsId}/permissions:batchDelete", "httpMethod": "POST", "id": "drivelabels.labels.permissions.batchDelete", @@ -580,7 +580,7 @@ ], "parameters": { "parent": { - "description": "Required. The parent Label resource name shared by all permissions being deleted. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.", + "description": "Required. The parent label resource name shared by all permissions being deleted. Format: `labels/{label}`. If this is set, the parent field in the `UpdateLabelPermissionRequest` messages must either be empty or match this field.", "location": "path", "pattern": "^labels/[^/]+$", "required": true, @@ -600,7 +600,7 @@ ] }, "batchUpdate": { - "description": "Updates Label permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.", + "description": "Updates label permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.", "flatPath": "v2/labels/{labelsId}/permissions:batchUpdate", "httpMethod": "POST", "id": "drivelabels.labels.permissions.batchUpdate", @@ -609,7 +609,7 @@ ], "parameters": { "parent": { - "description": "Required. The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.", + "description": "Required. The parent label resource name shared by all permissions being updated. Format: `labels/{label}`. If this is set, the parent field in the `UpdateLabelPermissionRequest` messages must either be empty or match this field.", "location": "path", "pattern": "^labels/[^/]+$", "required": true, @@ -629,7 +629,7 @@ ] }, "create": { - "description": "Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.", + "description": "Updates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.", "flatPath": "v2/labels/{labelsId}/permissions", "httpMethod": "POST", "id": "drivelabels.labels.permissions.create", @@ -638,14 +638,14 @@ ], "parameters": { "parent": { - "description": "Required. The parent Label resource name on the Label Permission is created. Format: labels/{label}", + "description": "Required. The parent label resource name on the label permission is created. Format: `labels/{label}`.", "location": "path", "pattern": "^labels/[^/]+$", "required": true, "type": "string" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "location": "query", "type": "boolean" } @@ -663,7 +663,7 @@ ] }, "delete": { - "description": "Deletes a Label's permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.", + "description": "Deletes a label's permission. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.", "flatPath": "v2/labels/{labelsId}/permissions/{permissionsId}", "httpMethod": "DELETE", "id": "drivelabels.labels.permissions.delete", @@ -672,14 +672,14 @@ ], "parameters": { "name": { - "description": "Required. Label Permission resource name.", + "description": "Required. Label permission resource name.", "location": "path", "pattern": "^labels/[^/]+/permissions/[^/]+$", "required": true, "type": "string" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "location": "query", "type": "boolean" } @@ -694,7 +694,7 @@ ] }, "list": { - "description": "Lists a Label's permissions.", + "description": "Lists a label's permissions.", "flatPath": "v2/labels/{labelsId}/permissions", "httpMethod": "GET", "id": "drivelabels.labels.permissions.list", @@ -714,14 +714,14 @@ "type": "string" }, "parent": { - "description": "Required. The parent Label resource name on which Label Permission are listed. Format: labels/{label}", + "description": "Required. The parent label resource name on which label permissions are listed. Format: `labels/{label}`.", "location": "path", "pattern": "^labels/[^/]+$", "required": true, "type": "string" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "location": "query", "type": "boolean" } @@ -742,7 +742,7 @@ "revisions": { "methods": { "updatePermissions": { - "description": "Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.", + "description": "Updates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.", "flatPath": "v2/labels/{labelsId}/revisions/{revisionsId}/permissions", "httpMethod": "PATCH", "id": "drivelabels.labels.revisions.updatePermissions", @@ -751,14 +751,14 @@ ], "parameters": { "parent": { - "description": "Required. The parent Label resource name.", + "description": "Required. The parent label resource name.", "location": "path", "pattern": "^labels/[^/]+/revisions/[^/]+$", "required": true, "type": "string" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "location": "query", "type": "boolean" } @@ -780,7 +780,7 @@ "locks": { "methods": { "list": { - "description": "Lists the LabelLocks on a Label.", + "description": "Lists the label locks on a label.", "flatPath": "v2/labels/{labelsId}/revisions/{revisionsId}/locks", "httpMethod": "GET", "id": "drivelabels.labels.revisions.locks.list", @@ -789,7 +789,7 @@ ], "parameters": { "pageSize": { - "description": "Maximum number of Locks to return per page. Default: 100. Max: 200.", + "description": "Maximum number of locks to return per page. Default: 100. Max: 200.", "format": "int32", "location": "query", "type": "integer" @@ -800,7 +800,7 @@ "type": "string" }, "parent": { - "description": "Required. Label on which Locks are applied. Format: labels/{label}", + "description": "Required. Label on which locks are applied. Format: `labels/{label}`.", "location": "path", "pattern": "^labels/[^/]+/revisions/[^/]+$", "required": true, @@ -823,7 +823,7 @@ "permissions": { "methods": { "batchDelete": { - "description": "Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.", + "description": "Deletes label permissions. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.", "flatPath": "v2/labels/{labelsId}/revisions/{revisionsId}/permissions:batchDelete", "httpMethod": "POST", "id": "drivelabels.labels.revisions.permissions.batchDelete", @@ -832,7 +832,7 @@ ], "parameters": { "parent": { - "description": "Required. The parent Label resource name shared by all permissions being deleted. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.", + "description": "Required. The parent label resource name shared by all permissions being deleted. Format: `labels/{label}`. If this is set, the parent field in the `UpdateLabelPermissionRequest` messages must either be empty or match this field.", "location": "path", "pattern": "^labels/[^/]+/revisions/[^/]+$", "required": true, @@ -852,7 +852,7 @@ ] }, "batchUpdate": { - "description": "Updates Label permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.", + "description": "Updates label permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.", "flatPath": "v2/labels/{labelsId}/revisions/{revisionsId}/permissions:batchUpdate", "httpMethod": "POST", "id": "drivelabels.labels.revisions.permissions.batchUpdate", @@ -861,7 +861,7 @@ ], "parameters": { "parent": { - "description": "Required. The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.", + "description": "Required. The parent label resource name shared by all permissions being updated. Format: `labels/{label}`. If this is set, the parent field in the `UpdateLabelPermissionRequest` messages must either be empty or match this field.", "location": "path", "pattern": "^labels/[^/]+/revisions/[^/]+$", "required": true, @@ -881,7 +881,7 @@ ] }, "create": { - "description": "Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.", + "description": "Updates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.", "flatPath": "v2/labels/{labelsId}/revisions/{revisionsId}/permissions", "httpMethod": "POST", "id": "drivelabels.labels.revisions.permissions.create", @@ -890,14 +890,14 @@ ], "parameters": { "parent": { - "description": "Required. The parent Label resource name on the Label Permission is created. Format: labels/{label}", + "description": "Required. The parent label resource name on the label permission is created. Format: `labels/{label}`.", "location": "path", "pattern": "^labels/[^/]+/revisions/[^/]+$", "required": true, "type": "string" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "location": "query", "type": "boolean" } @@ -915,7 +915,7 @@ ] }, "delete": { - "description": "Deletes a Label's permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.", + "description": "Deletes a label's permission. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.", "flatPath": "v2/labels/{labelsId}/revisions/{revisionsId}/permissions/{permissionsId}", "httpMethod": "DELETE", "id": "drivelabels.labels.revisions.permissions.delete", @@ -924,14 +924,14 @@ ], "parameters": { "name": { - "description": "Required. Label Permission resource name.", + "description": "Required. Label permission resource name.", "location": "path", "pattern": "^labels/[^/]+/revisions/[^/]+/permissions/[^/]+$", "required": true, "type": "string" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "location": "query", "type": "boolean" } @@ -946,7 +946,7 @@ ] }, "list": { - "description": "Lists a Label's permissions.", + "description": "Lists a label's permissions.", "flatPath": "v2/labels/{labelsId}/revisions/{revisionsId}/permissions", "httpMethod": "GET", "id": "drivelabels.labels.revisions.permissions.list", @@ -966,14 +966,14 @@ "type": "string" }, "parent": { - "description": "Required. The parent Label resource name on which Label Permission are listed. Format: labels/{label}", + "description": "Required. The parent label resource name on which label permissions are listed. Format: `labels/{label}`.", "location": "path", "pattern": "^labels/[^/]+/revisions/[^/]+$", "required": true, "type": "string" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "location": "query", "type": "boolean" } @@ -998,14 +998,14 @@ "limits": { "methods": { "getLabel": { - "description": "Get the constraints on the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title.", + "description": "Get the constraints on the structure of a label; such as, the maximum number of fields allowed and maximum length of the label title.", "flatPath": "v2/limits/label", "httpMethod": "GET", "id": "drivelabels.limits.getLabel", "parameterOrder": [], "parameters": { "name": { - "description": "Required. Label revision resource name Must be: \"limits/label\"", + "description": "Required. Label revision resource name must be: \"limits/label\".", "location": "query", "type": "string" } @@ -1035,7 +1035,7 @@ ], "parameters": { "customer": { - "description": "The customer to scope this request to. For example: \"customers/abcd1234\". If unset, will return settings within the current customer.", + "description": "The customer to scope this request to. For example: `customers/abcd1234`. If unset, it will return settings within the current customer.", "location": "query", "type": "string" }, @@ -1101,7 +1101,7 @@ "type": "object" }, "GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest": { - "description": "Deletes one of more Label Permissions.", + "description": "Deletes one or more label permissions.", "id": "GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest", "properties": { "requests": { @@ -1112,14 +1112,14 @@ "type": "array" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. If this is set, the use_admin_access field in the DeleteLabelPermissionRequest messages must either be empty or match this field.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access. If this is set, the `use_admin_access` field in the `DeleteLabelPermissionRequest` messages must either be empty or match this field.", "type": "boolean" } }, "type": "object" }, "GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest": { - "description": "Updates one or more Label Permissions.", + "description": "Updates one or more label permissions.", "id": "GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest", "properties": { "requests": { @@ -1130,14 +1130,14 @@ "type": "array" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. If this is set, the use_admin_access field in the UpdateLabelPermissionRequest messages must either be empty or match this field.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access. If this is set, the `use_admin_access` field in the `UpdateLabelPermissionRequest` messages must either be empty or match this field.", "type": "boolean" } }, "type": "object" }, "GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse": { - "description": "Response for updating one or more Label Permissions.", + "description": "Response for updating one or more label permissions.", "id": "GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse", "properties": { "permissions": { @@ -1151,52 +1151,52 @@ "type": "object" }, "GoogleAppsDriveLabelsV2DateLimits": { - "description": "Limits for date Field type.", + "description": "Limits for date field type.", "id": "GoogleAppsDriveLabelsV2DateLimits", "properties": { "maxValue": { "$ref": "GoogleTypeDate", - "description": "Maximum value for the date Field type." + "description": "Maximum value for the date field type." }, "minValue": { "$ref": "GoogleTypeDate", - "description": "Minimum value for the date Field type." + "description": "Minimum value for the date field type." } }, "type": "object" }, "GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest": { - "description": "Deletes a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.", + "description": "Deletes a label permission. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.", "id": "GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest", "properties": { "name": { - "description": "Required. Label Permission resource name.", + "description": "Required. Label permission resource name.", "type": "string" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "type": "boolean" } }, "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest": { - "description": "The set of requests for updating aspects of a Label. If any request is not valid, no requests will be applied.", + "description": "The set of requests for updating aspects of a label. If any request isn't valid, no requests will be applied.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest", "properties": { "languageCode": { - "description": "The BCP-47 language code to use for evaluating localized Field labels when `include_label_in_response` is `true`.", + "description": "The BCP-47 language code to use for evaluating localized field labels when `include_label_in_response` is `true`.", "type": "string" }, "requests": { - "description": "A list of updates to apply to the Label. Requests will be applied in the order they are specified.", + "description": "A list of updates to apply to the label. Requests will be applied in the order they are specified.", "items": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest" }, "type": "array" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "type": "boolean" }, "view": { @@ -1219,7 +1219,7 @@ "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest": { - "description": "Request to create a Field within a Label.", + "description": "Request to create a field within a label.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest", "properties": { "field": { @@ -1230,37 +1230,37 @@ "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest": { - "description": "Request to create a Selection Choice.", + "description": "Request to create a selection choice.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest", "properties": { "choice": { "$ref": "GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice", - "description": "Required. The Choice to create." + "description": "Required. The choice to create." }, "fieldId": { - "description": "Required. The Selection Field in which a Choice will be created.", + "description": "Required. The selection field in which a choice will be created.", "type": "string" } }, "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest": { - "description": "Request to delete the Field.", + "description": "Request to delete the field.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest", "properties": { "id": { - "description": "Required. ID of the Field to delete.", + "description": "Required. ID of the field to delete.", "type": "string" } }, "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest": { - "description": "Request to delete a Choice.", + "description": "Request to delete a choice.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest", "properties": { "fieldId": { - "description": "Required. The Selection Field from which a Choice will be deleted.", + "description": "Required. The selection field from which a choice will be deleted.", "type": "string" }, "id": { @@ -1271,19 +1271,19 @@ "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest": { - "description": "Request to disable the Field.", + "description": "Request to disable the field.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest", "properties": { "disabledPolicy": { "$ref": "GoogleAppsDriveLabelsV2LifecycleDisabledPolicy", - "description": "Required. Field Disabled Policy." + "description": "Required. Field disabled policy." }, "id": { - "description": "Required. Key of the Field to disable.", + "description": "Required. Key of the field to disable.", "type": "string" }, "updateMask": { - "description": "The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.", + "description": "The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as a short-hand for updating every field.", "format": "google-fieldmask", "type": "string" } @@ -1291,7 +1291,7 @@ "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest": { - "description": "Request to disable a Choice.", + "description": "Request to disable a choice.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest", "properties": { "disabledPolicy": { @@ -1299,7 +1299,7 @@ "description": "Required. The disabled policy to update." }, "fieldId": { - "description": "Required. The Selection Field in which a Choice will be disabled.", + "description": "Required. The selection field in which a choice will be disabled.", "type": "string" }, "id": { @@ -1307,7 +1307,7 @@ "type": "string" }, "updateMask": { - "description": "The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.", + "description": "The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as a short-hand for updating every field.", "format": "google-fieldmask", "type": "string" } @@ -1315,22 +1315,22 @@ "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest": { - "description": "Request to enable the Field.", + "description": "Request to enable the field.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest", "properties": { "id": { - "description": "Required. ID of the Field to enable.", + "description": "Required. ID of the field to enable.", "type": "string" } }, "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest": { - "description": "Request to enable a Choice.", + "description": "Request to enable a choice.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest", "properties": { "fieldId": { - "description": "Required. The Selection Field in which a Choice will be enabled.", + "description": "Required. The selection field in which a choice will be enabled.", "type": "string" }, "id": { @@ -1341,74 +1341,74 @@ "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest": { - "description": "A single kind of update to apply to a Label.", + "description": "A single kind of update to apply to a label.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest", "properties": { "createField": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest", - "description": "Creates a new Field." + "description": "Creates a field." }, "createSelectionChoice": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest", - "description": "Creates Choice within a Selection field." + "description": "Create a choice within a selection field." }, "deleteField": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest", - "description": "Deletes a Field from the label." + "description": "Deletes a field from the label." }, "deleteSelectionChoice": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest", - "description": "Delete a Choice within a Selection Field." + "description": "Delete a choice within a selection field." }, "disableField": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest", - "description": "Disables the Field." + "description": "Disables the field." }, "disableSelectionChoice": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest", - "description": "Disable a Choice within a Selection Field." + "description": "Disable a choice within a selection field." }, "enableField": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest", - "description": "Enables the Field." + "description": "Enables the field." }, "enableSelectionChoice": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest", - "description": "Enable a Choice within a Selection Field." + "description": "Enable a choice within a selection field." }, "updateField": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest", - "description": "Updates basic properties of a Field." + "description": "Updates basic properties of a field." }, "updateFieldType": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest", - "description": "Update Field type and/or type options." + "description": "Update field type and/or type options." }, "updateLabel": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest", - "description": "Updates the Label properties." + "description": "Updates the label properties." }, "updateSelectionChoiceProperties": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest", - "description": "Update a Choice properties within a Selection Field." + "description": "Update a choice property within a selection field." } }, "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest": { - "description": "Request to update Field properties.", + "description": "Request to update field properties.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest", "properties": { "id": { - "description": "Required. The Field to update.", + "description": "Required. The field to update.", "type": "string" }, "properties": { "$ref": "GoogleAppsDriveLabelsV2FieldProperties", - "description": "Required. Basic Field properties." + "description": "Required. Basic field properties." }, "updateMask": { - "description": "The fields that should be updated. At least one field must be specified. The root `properties` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.", + "description": "The fields that should be updated. At least one field must be specified. The root `properties` is implied and should not be specified. A single `*` can be used as a short-hand for updating every field.", "format": "google-fieldmask", "type": "string" } @@ -1416,7 +1416,7 @@ "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest": { - "description": "Request to change the type of a Field.", + "description": "Request to change the type of a field.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest", "properties": { "dateOptions": { @@ -1424,7 +1424,7 @@ "description": "Update field to Date." }, "id": { - "description": "Required. The Field to update.", + "description": "Required. The field to update.", "type": "string" }, "integerOptions": { @@ -1440,7 +1440,7 @@ "description": "Update field to Text." }, "updateMask": { - "description": "The fields that should be updated. At least one field must be specified. The root of `type_options` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.", + "description": "The fields that should be updated. At least one field must be specified. The root of `type_options` is implied and should not be specified. A single `*` can be used as a short-hand for updating every field.", "format": "google-fieldmask", "type": "string" }, @@ -1452,7 +1452,7 @@ "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest": { - "description": "Updates basic properties of a Label.", + "description": "Updates basic properties of a label.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest", "properties": { "properties": { @@ -1460,7 +1460,7 @@ "description": "Required. Label properties to update." }, "updateMask": { - "description": "The fields that should be updated. At least one field must be specified. The root `label_properties` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.", + "description": "The fields that should be updated. At least one field must be specified. The root `label_properties` is implied and should not be specified. A single `*` can be used as a short-hand for updating every field.", "format": "google-fieldmask", "type": "string" } @@ -1468,23 +1468,23 @@ "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest": { - "description": "Request to update a Choice properties.", + "description": "Request to update a choice property.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest", "properties": { "fieldId": { - "description": "Required. The Selection Field to update.", + "description": "Required. The selection field to update.", "type": "string" }, "id": { - "description": "Required. The Choice to update.", + "description": "Required. The choice to update.", "type": "string" }, "properties": { "$ref": "GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties", - "description": "Required. The Choice properties to update." + "description": "Required. The choice properties to update." }, "updateMask": { - "description": "The fields that should be updated. At least one field must be specified. The root `properties` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.", + "description": "The fields that should be updated. At least one field must be specified. The root `properties` is implied and should not be specified. A single `*` can be used as a short-hand for updating every field.", "format": "google-fieldmask", "type": "string" } @@ -1492,7 +1492,7 @@ "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse": { - "description": "Response for Label update.", + "description": "Response for label update.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse", "properties": { "responses": { @@ -1504,13 +1504,13 @@ }, "updatedLabel": { "$ref": "GoogleAppsDriveLabelsV2Label", - "description": "The label after updates were applied. This is only set if [BatchUpdateLabelResponse2.include_label_in_response] is `true` and there were no errors." + "description": "The label after updates were applied. This is only set if `include_label_in_response` is `true` and there were no errors." } }, "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse": { - "description": "Response following Field create.", + "description": "Response following field create.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse", "properties": { "id": { @@ -1526,52 +1526,52 @@ "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse": { - "description": "Response following Selection Choice create.", + "description": "Response following selection choice create.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse", "properties": { "fieldId": { - "description": "The server-generated id of the field.", + "description": "The server-generated ID of the field.", "type": "string" }, "id": { - "description": "The server-generated ID of the created choice within the Field", + "description": "The server-generated ID of the created choice within the field.", "type": "string" } }, "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse": { - "description": "Response following Field delete.", + "description": "Response following field delete.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse", "properties": {}, "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse": { - "description": "Response following Choice delete.", + "description": "Response following choice delete.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse", "properties": {}, "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse": { - "description": "Response following Field disable.", + "description": "Response following field disable.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse", "properties": {}, "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse": { - "description": "Response following Choice disable.", + "description": "Response following choice disable.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse", "properties": {}, "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse": { - "description": "Response following Field enable.", + "description": "Response following field enable.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse", "properties": {}, "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse": { - "description": "Response following Choice enable.", + "description": "Response following choice enable.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse", "properties": {}, "type": "object" @@ -1582,57 +1582,57 @@ "properties": { "createField": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse", - "description": "Creates a new Field." + "description": "Creates a field." }, "createSelectionChoice": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse", - "description": "Creates a new selection list option to add to a Selection Field." + "description": "Creates a selection list option to add to a selection field." }, "deleteField": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse", - "description": "Deletes a Field from the label." + "description": "Deletes a field from the label." }, "deleteSelectionChoice": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse", - "description": "Deletes a Choice from a Selection Field." + "description": "Deletes a choice from a selection field." }, "disableField": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse", - "description": "Disables Field." + "description": "Disables field." }, "disableSelectionChoice": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse", - "description": "Disables a Choice within a Selection Field." + "description": "Disables a choice within a selection field." }, "enableField": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse", - "description": "Enables Field." + "description": "Enables field." }, "enableSelectionChoice": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse", - "description": "Enables a Choice within a Selection Field." + "description": "Enables a choice within a selection field." }, "updateField": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse", - "description": "Updates basic properties of a Field." + "description": "Updates basic properties of a field." }, "updateFieldType": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse", - "description": "Update Field type and/or type options." + "description": "Updates field type and/or type options." }, "updateLabel": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse", - "description": "Updated basic properties of a Label." + "description": "Updates basic properties of a label." }, "updateSelectionChoiceProperties": { "$ref": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse", - "description": "Updates a Choice within a Selection Field." + "description": "Updates a choice within a selection field." } }, "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse": { - "description": "Response following update to Field properties.", + "description": "Response following update to field properties.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse", "properties": { "priority": { @@ -1644,19 +1644,19 @@ "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse": { - "description": "Response following update to Field type.", + "description": "Response following update to field type.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse", "properties": {}, "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse": { - "description": "Response following update to Label properties.", + "description": "Response following update to label properties.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse", "properties": {}, "type": "object" }, "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse": { - "description": "Response following update to Selection Choice properties.", + "description": "Response following update to selection choice properties.", "id": "GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse", "properties": { "priority": { @@ -1668,7 +1668,7 @@ "type": "object" }, "GoogleAppsDriveLabelsV2DisableLabelRequest": { - "description": "Request to deprecate a published Label.", + "description": "Request to deprecate a published label.", "id": "GoogleAppsDriveLabelsV2DisableLabelRequest", "properties": { "disabledPolicy": { @@ -1680,17 +1680,17 @@ "type": "string" }, "updateMask": { - "description": "The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand for updating every field.", + "description": "The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as a short-hand for updating every field.", "format": "google-fieldmask", "type": "string" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "type": "boolean" }, "writeControl": { "$ref": "GoogleAppsDriveLabelsV2WriteControl", - "description": "Provides control over how write requests are executed. Defaults to unset, which means last write wins." + "description": "Provides control over how write requests are executed. Defaults to unset, which means the last write wins." } }, "type": "object" @@ -1704,12 +1704,12 @@ "type": "string" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "type": "boolean" }, "writeControl": { "$ref": "GoogleAppsDriveLabelsV2WriteControl", - "description": "Provides control over how write requests are executed. Defaults to unset, which means last write wins." + "description": "Provides control over how write requests are executed. Defaults to unset, which means the last write wins." } }, "type": "object" @@ -1755,7 +1755,7 @@ "readOnly": true }, "id": { - "description": "Output only. The key of a field, unique within a label or library. This value is autogenerated. Matches the regex: `([a-zA-Z0-9])+`", + "description": "Output only. The key of a field, unique within a label or library. This value is autogenerated. Matches the regex: `([a-zA-Z0-9])+`.", "readOnly": true, "type": "string" }, @@ -1770,7 +1770,7 @@ }, "lockStatus": { "$ref": "GoogleAppsDriveLabelsV2LockStatus", - "description": "Output only. The LockStatus of this field.", + "description": "Output only. The `LockStatus` of this field.", "readOnly": true }, "properties": { @@ -1916,47 +1916,47 @@ "type": "object" }, "GoogleAppsDriveLabelsV2FieldLimits": { - "description": "Field constants governing the structure of a Field; such as, the maximum title length, minimum and maximum field values or length, etc.", + "description": "Field constants governing the structure of a field; such as, the maximum title length, minimum and maximum field values or length, etc.", "id": "GoogleAppsDriveLabelsV2FieldLimits", "properties": { "dateLimits": { "$ref": "GoogleAppsDriveLabelsV2DateLimits", - "description": "Date Field limits." + "description": "Date field limits." }, "integerLimits": { "$ref": "GoogleAppsDriveLabelsV2IntegerLimits", - "description": "Integer Field limits." + "description": "Integer field limits." }, "longTextLimits": { "$ref": "GoogleAppsDriveLabelsV2LongTextLimits", - "description": "Long text Field limits." + "description": "Long text field limits." }, "maxDescriptionLength": { - "description": "Limits for Field description, also called help text.", + "description": "Limits for field description, also called help text.", "format": "int32", "type": "integer" }, "maxDisplayNameLength": { - "description": "Limits for Field title.", + "description": "Limits for field title.", "format": "int32", "type": "integer" }, "maxIdLength": { - "description": "Max length for the id.", + "description": "Maximum length for the id.", "format": "int32", "type": "integer" }, "selectionLimits": { "$ref": "GoogleAppsDriveLabelsV2SelectionLimits", - "description": "Selection Field limits." + "description": "Selection field limits." }, "textLimits": { "$ref": "GoogleAppsDriveLabelsV2TextLimits", - "description": "The relevant limits for the specified Field.Type. Text Field limits." + "description": "The relevant limits for the specified Field.Type. Text field limits." }, "userLimits": { "$ref": "GoogleAppsDriveLabelsV2UserLimits", - "description": "User Field limits." + "description": "User field limits." } }, "type": "object" @@ -2080,7 +2080,7 @@ }, "lockStatus": { "$ref": "GoogleAppsDriveLabelsV2LockStatus", - "description": "Output only. The LockStatus of this choice.", + "description": "Output only. The `LockStatus` of this choice.", "readOnly": true }, "properties": { @@ -2245,16 +2245,16 @@ "type": "object" }, "GoogleAppsDriveLabelsV2IntegerLimits": { - "description": "Limits for integer Field type.", + "description": "Limits for integer field type.", "id": "GoogleAppsDriveLabelsV2IntegerLimits", "properties": { "maxValue": { - "description": "Maximum value for an integer Field type.", + "description": "Maximum value for an integer field type.", "format": "int64", "type": "string" }, "minValue": { - "description": "Minimum value for an integer Field type.", + "description": "Minimum value for an integer field type.", "format": "int64", "type": "string" } @@ -2287,19 +2287,19 @@ "readOnly": true }, "customer": { - "description": "Output only. The customer this label belongs to. For example: \"customers/123abc789.\"", + "description": "Output only. The customer this label belongs to. For example: `customers/123abc789`.", "readOnly": true, "type": "string" }, "disableTime": { - "description": "Output only. The time this label was disabled. This value has no meaning when the label is not disabled.", + "description": "Output only. The time this label was disabled. This value has no meaning when the label isn't disabled.", "format": "google-datetime", "readOnly": true, "type": "string" }, "disabler": { "$ref": "GoogleAppsDriveLabelsV2UserInfo", - "description": "Output only. The user who disabled this label. This value has no meaning when the label is not disabled.", + "description": "Output only. The user who disabled this label. This value has no meaning when the label isn't disabled.", "readOnly": true }, "displayHints": { @@ -2309,7 +2309,7 @@ }, "enabledAppSettings": { "$ref": "GoogleAppsDriveLabelsV2LabelEnabledAppSettings", - "description": "Optional. The EnabledAppSettings for this Label." + "description": "Optional. The `EnabledAppSettings` for this Label." }, "fields": { "description": "List of fields in descending priority order.", @@ -2319,7 +2319,7 @@ "type": "array" }, "id": { - "description": "Output only. Globally unique identifier of this label. ID makes up part of the label `name`, but unlike `name`, ID is consistent between revisions. Matches the regex: `([a-zA-Z0-9])+`", + "description": "Output only. Globally unique identifier of this label. ID makes up part of the label `name`, but unlike `name`, ID is consistent between revisions. Matches the regex: `([a-zA-Z0-9])+`.", "readOnly": true, "type": "string" }, @@ -2350,7 +2350,7 @@ }, "lockStatus": { "$ref": "GoogleAppsDriveLabelsV2LockStatus", - "description": "Output only. The LockStatus of this label.", + "description": "Output only. The `LockStatus` of this label.", "readOnly": true }, "name": { @@ -2363,14 +2363,14 @@ "description": "Required. The basic properties of the label." }, "publishTime": { - "description": "Output only. The time this label was published. This value has no meaning when the label is not published.", + "description": "Output only. The time this label was published. This value has no meaning when the label isn't published.", "format": "google-datetime", "readOnly": true, "type": "string" }, "publisher": { "$ref": "GoogleAppsDriveLabelsV2UserInfo", - "description": "Output only. The user who published this label. This value has no meaning when the label is not published.", + "description": "Output only. The user who published this label. This value has no meaning when the label isn't published.>>", "readOnly": true }, "revisionCreateTime": { @@ -2385,7 +2385,7 @@ "readOnly": true }, "revisionId": { - "description": "Output only. Revision ID of the label. Revision ID might be part of the label `name` depending on the request issued. A new revision is created whenever revisioned properties of a label are changed. Matches the regex: `([a-zA-Z0-9])+`", + "description": "Output only. Revision ID of the label. Revision ID might be part of the label `name` depending on the request issued. A new revision is created whenever revisioned properties of a label are changed. Matches the regex: `([a-zA-Z0-9])+`.", "readOnly": true, "type": "string" }, @@ -2430,7 +2430,7 @@ ], "enumDescriptions": [ "Copy mode unspecified.", - "The applied label and field values are not copied by default when the Drive item it's applied to is copied.", + "The applied label and field values aren't copied by default when the Drive item it's applied to is copied.", "The applied label and field values are always copied when the Drive item it's applied to is copied. Only admins can use this mode.", "The applied label and field values are copied if the label is appliable by the user making the copy." ], @@ -2440,7 +2440,7 @@ "type": "object" }, "GoogleAppsDriveLabelsV2LabelDisplayHints": { - "description": "UI display hints for rendering the label.", + "description": "The UI display hints for rendering the label.", "id": "GoogleAppsDriveLabelsV2LabelDisplayHints", "properties": { "disabled": { @@ -2452,7 +2452,7 @@ "type": "boolean" }, "priority": { - "description": "Order to display label in a list.", + "description": "The order to display labels in a list.", "format": "int64", "type": "string" }, @@ -2464,11 +2464,11 @@ "type": "object" }, "GoogleAppsDriveLabelsV2LabelEnabledAppSettings": { - "description": "Describes the Workspace apps in which the Label can be used.", + "description": "Describes the Google Workspace apps in which the label can be used.", "id": "GoogleAppsDriveLabelsV2LabelEnabledAppSettings", "properties": { "enabledApps": { - "description": "Optional. The list of Apps where the Label can be used.", + "description": "Optional. The list of apps where the label can be used.", "items": { "$ref": "GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp" }, @@ -2478,11 +2478,11 @@ "type": "object" }, "GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp": { - "description": "An App where the Label can be used.", + "description": "An app where the label can be used.", "id": "GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp", "properties": { "app": { - "description": "Optional. The name of the App.", + "description": "Optional. The name of the app.", "enum": [ "APP_UNSPECIFIED", "DRIVE", @@ -2490,7 +2490,7 @@ ], "enumDescriptions": [ "Unspecified", - "Drive.", + "Drive", "Gmail" ], "type": "string" @@ -2499,15 +2499,15 @@ "type": "object" }, "GoogleAppsDriveLabelsV2LabelLimits": { - "description": "Label constraints governing the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title.", + "description": "Label constraints governing the structure of a label; such as, the maximum number of fields allowed and maximum length of the label title.", "id": "GoogleAppsDriveLabelsV2LabelLimits", "properties": { "fieldLimits": { "$ref": "GoogleAppsDriveLabelsV2FieldLimits", - "description": "The limits for Fields." + "description": "The limits for fields." }, "maxDeletedFields": { - "description": "The maximum number of published Fields that can be deleted.", + "description": "The maximum number of published fields that can be deleted.", "format": "int32", "type": "integer" }, @@ -2522,7 +2522,7 @@ "type": "integer" }, "maxFields": { - "description": "The maximum number of Fields allowed within the label.", + "description": "The maximum number of fields allowed within the label.", "format": "int32", "type": "integer" }, @@ -2539,46 +2539,46 @@ "type": "object" }, "GoogleAppsDriveLabelsV2LabelLock": { - "description": "A Lock that can be applied to a Label, Field, or Choice.", + "description": "A lock that can be applied to a label, field, or choice.", "id": "GoogleAppsDriveLabelsV2LabelLock", "properties": { "capabilities": { "$ref": "GoogleAppsDriveLabelsV2LabelLockCapabilities", - "description": "Output only. The user's capabilities on this LabelLock.", + "description": "Output only. The user's capabilities on this label lock.", "readOnly": true }, "choiceId": { - "description": "The ID of the Selection Field Choice that should be locked. If present, `field_id` must also be present.", + "description": "The ID of the selection field choice that should be locked. If present, `field_id` must also be present.", "type": "string" }, "createTime": { - "description": "Output only. The time this LabelLock was created.", + "description": "Output only. The time this label lock was created.", "format": "google-datetime", "readOnly": true, "type": "string" }, "creator": { "$ref": "GoogleAppsDriveLabelsV2UserInfo", - "description": "Output only. The user whose credentials were used to create the LabelLock. This will not be present if no user was responsible for creating the LabelLock.", + "description": "Output only. The user whose credentials were used to create the label lock. Not present if no user was responsible for creating the label lock.", "readOnly": true }, "deleteTime": { - "description": "Output only. A timestamp indicating when this LabelLock was scheduled for deletion. This will be present only if this LabelLock is in the DELETING state.", + "description": "Output only. A timestamp indicating when this label lock was scheduled for deletion. Present only if this label lock is in the `DELETING` state.", "format": "google-datetime", "readOnly": true, "type": "string" }, "fieldId": { - "description": "The ID of the Field that should be locked. Empty if the whole Label should be locked.", + "description": "The ID of the field that should be locked. Empty if the whole label should be locked.", "type": "string" }, "name": { - "description": "Output only. Resource name of this LabelLock.", + "description": "Output only. Resource name of this label lock.", "readOnly": true, "type": "string" }, "state": { - "description": "Output only. This LabelLock's state.", + "description": "Output only. This label lock's state.", "enum": [ "STATE_UNSPECIFIED", "ACTIVE", @@ -2586,8 +2586,8 @@ ], "enumDescriptions": [ "Unknown state.", - "The LabelLock is active and is being enforced by the server.", - "The LabelLock is being deleted. The LabelLock will continue to be enforced by the server until it has been fully removed." + "The label lock is active and is being enforced by the server.", + "The label lock is being deleted. The label lock will continue to be enforced by the server until it has been fully removed." ], "readOnly": true, "type": "string" @@ -2596,7 +2596,7 @@ "type": "object" }, "GoogleAppsDriveLabelsV2LabelLockCapabilities": { - "description": "A description of a user's capabilities on a LabelLock.", + "description": "A description of a user's capabilities on a label lock.", "id": "GoogleAppsDriveLabelsV2LabelLockCapabilities", "properties": { "canViewPolicy": { @@ -2611,11 +2611,11 @@ "id": "GoogleAppsDriveLabelsV2LabelPermission", "properties": { "audience": { - "description": "Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the Label.", + "description": "Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the label.", "type": "string" }, "email": { - "description": "Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified.", + "description": "Specifies the email address for a user or group principal. Not populated for audience principals. User and group permissions may only be inserted using an email address. On update requests, if email address is specified, no principal should be specified.", "type": "string" }, "group": { @@ -2690,7 +2690,7 @@ "type": "object" }, "GoogleAppsDriveLabelsV2Lifecycle": { - "description": "The lifecycle state of an object, such as label, field, or choice. The lifecycle enforces the following transitions: * `UNPUBLISHED_DRAFT` (starting state) * `UNPUBLISHED_DRAFT` -> `PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted) * `PUBLISHED` -> `DISABLED` * `DISABLED` -> `PUBLISHED` * `DISABLED` -> (Deleted) The published and disabled states have some distinct characteristics: * Published—Some kinds of changes might be made to an object in this state, in which case `has_unpublished_changes` will be true. Also, some kinds of changes are not permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the label are rejected. * Disabled—When disabled, the configured `DisabledPolicy` takes effect.", + "description": "The lifecycle state of an object, such as label, field, or choice. For more information, see [Label lifecycle](https://developers.google.com/workspace/drive/labels/guides/label-lifecycle). The lifecycle enforces the following transitions: * `UNPUBLISHED_DRAFT` (starting state) * `UNPUBLISHED_DRAFT` -> `PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted) * `PUBLISHED` -> `DISABLED` * `DISABLED` -> `PUBLISHED` * `DISABLED` -> (Deleted) The published and disabled states have some distinct characteristics: * `Published`: Some kinds of changes might be made to an object in this state, in which case `has_unpublished_changes` will be true. Also, some kinds of changes aren't permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the label are rejected. * `Disabled`: When disabled, the configured `DisabledPolicy` takes effect.", "id": "GoogleAppsDriveLabelsV2Lifecycle", "properties": { "disabledPolicy": { @@ -2740,11 +2740,11 @@ "type": "object" }, "GoogleAppsDriveLabelsV2ListLabelLocksResponse": { - "description": "The response to a ListLabelLocksRequest.", + "description": "The response to a `ListLabelLocksRequest`.", "id": "GoogleAppsDriveLabelsV2ListLabelLocksResponse", "properties": { "labelLocks": { - "description": "LabelLocks.", + "description": "Label locks.", "items": { "$ref": "GoogleAppsDriveLabelsV2LabelLock" }, @@ -2758,7 +2758,7 @@ "type": "object" }, "GoogleAppsDriveLabelsV2ListLabelPermissionsResponse": { - "description": "Response for listing the permissions on a Label.", + "description": "Response for listing the permissions on a label.", "id": "GoogleAppsDriveLabelsV2ListLabelPermissionsResponse", "properties": { "labelPermissions": { @@ -2776,7 +2776,7 @@ "type": "object" }, "GoogleAppsDriveLabelsV2ListLabelsResponse": { - "description": "Response for listing Labels.", + "description": "Response for listing labels.", "id": "GoogleAppsDriveLabelsV2ListLabelsResponse", "properties": { "labels": { @@ -2794,11 +2794,11 @@ "type": "object" }, "GoogleAppsDriveLabelsV2ListLimits": { - "description": "Limits for list-variant of a Field type.", + "description": "Limits for list-variant of a field type.", "id": "GoogleAppsDriveLabelsV2ListLimits", "properties": { "maxEntries": { - "description": "Maximum number of values allowed for the Field type.", + "description": "Maximum number of values allowed for the field type.", "format": "int32", "type": "integer" } @@ -2810,7 +2810,7 @@ "id": "GoogleAppsDriveLabelsV2LockStatus", "properties": { "locked": { - "description": "Output only. Indicates whether this label component is the (direct) target of a LabelLock. A label component can be implicitly locked even if it's not the direct target of a LabelLock, in which case this field is set to false.", + "description": "Output only. Indicates whether this label component is the (direct) target of a label lock. A label component can be implicitly locked even if it's not the direct target of a label lock, in which case this field is set to false.", "readOnly": true, "type": "boolean" } @@ -2818,16 +2818,16 @@ "type": "object" }, "GoogleAppsDriveLabelsV2LongTextLimits": { - "description": "Limits for long text Field type.", + "description": "Limits for long text field type.", "id": "GoogleAppsDriveLabelsV2LongTextLimits", "properties": { "maxLength": { - "description": "Maximum length allowed for a long text Field type.", + "description": "Maximum length allowed for a long text field type.", "format": "int32", "type": "integer" }, "minLength": { - "description": "Minimum length allowed for a long text Field type.", + "description": "Minimum length allowed for a long text field type.", "format": "int32", "type": "integer" } @@ -2843,26 +2843,26 @@ "type": "string" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "type": "boolean" }, "writeControl": { "$ref": "GoogleAppsDriveLabelsV2WriteControl", - "description": "Provides control over how write requests are executed. Defaults to unset, which means last write wins." + "description": "Provides control over how write requests are executed. Defaults to unset, which means the last write wins." } }, "type": "object" }, "GoogleAppsDriveLabelsV2SelectionLimits": { - "description": "Limits for selection Field type.", + "description": "Limits for selection field type.", "id": "GoogleAppsDriveLabelsV2SelectionLimits", "properties": { "listLimits": { "$ref": "GoogleAppsDriveLabelsV2ListLimits", - "description": "Limits for list-variant of a Field type." + "description": "Limits for list-variant of a field type." }, "maxChoices": { - "description": "The max number of choices.", + "description": "Maximum number of choices.", "format": "int32", "type": "integer" }, @@ -2877,7 +2877,7 @@ "type": "integer" }, "maxIdLength": { - "description": "Maximum ID length for a selection options.", + "description": "Maximum ID length for a selection option.", "format": "int32", "type": "integer" } @@ -2885,16 +2885,16 @@ "type": "object" }, "GoogleAppsDriveLabelsV2TextLimits": { - "description": "Limits for text Field type.", + "description": "Limits for text field type.", "id": "GoogleAppsDriveLabelsV2TextLimits", "properties": { "maxLength": { - "description": "Maximum length allowed for a text Field type.", + "description": "Maximum length allowed for a text field type.", "format": "int32", "type": "integer" }, "minLength": { - "description": "Minimum length allowed for a text Field type.", + "description": "Minimum length allowed for a text field type.", "format": "int32", "type": "integer" } @@ -2902,11 +2902,11 @@ "type": "object" }, "GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest": { - "description": "Request to update the `CopyMode` of the given Label. Changes to this policy are not revisioned, do not require publishing, and take effect immediately. \\", + "description": "Request to update the `CopyMode` of the given label. Changes to this policy aren't revisioned, don't require publishing, and take effect immediately. \\", "id": "GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest", "properties": { "copyMode": { - "description": "Required. Indicates how the applied Label, and Field values should be copied when a Drive item is copied.", + "description": "Required. Indicates how the applied label and field values should be copied when a Drive item is copied.", "enum": [ "COPY_MODE_UNSPECIFIED", "DO_NOT_COPY", @@ -2915,7 +2915,7 @@ ], "enumDescriptions": [ "Copy mode unspecified.", - "The applied label and field values are not copied by default when the Drive item it's applied to is copied.", + "The applied label and field values aren't copied by default when the Drive item it's applied to is copied.", "The applied label and field values are always copied when the Drive item it's applied to is copied. Only admins can use this mode.", "The applied label and field values are copied if the label is appliable by the user making the copy." ], @@ -2926,7 +2926,7 @@ "type": "string" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "type": "boolean" }, "view": { @@ -2945,19 +2945,19 @@ "type": "object" }, "GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest": { - "description": "Request to update the `EnabledAppSettings` of the given Label. This change is not revisioned, does not require publishing, and takes effect immediately. \\", + "description": "Request to update the `EnabledAppSettings` of the given label. This change is not revisioned, doesn't require publishing, and takes effect immediately. \\", "id": "GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest", "properties": { "enabledAppSettings": { "$ref": "GoogleAppsDriveLabelsV2LabelEnabledAppSettings", - "description": "Required. The new `EnabledAppSettings` value for the Label." + "description": "Required. The new `EnabledAppSettings` value for the label." }, "languageCode": { "description": "Optional. The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.", "type": "string" }, "useAdminAccess": { - "description": "Optional. Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Optional. Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "type": "boolean" }, "view": { @@ -2976,19 +2976,19 @@ "type": "object" }, "GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest": { - "description": "Updates a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.", + "description": "Updates a label permission. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.", "id": "GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest", "properties": { "labelPermission": { "$ref": "GoogleAppsDriveLabelsV2LabelPermission", - "description": "Required. The permission to create or update on the Label." + "description": "Required. The permission to create or update on the label." }, "parent": { - "description": "Required. The parent Label resource name.", + "description": "Required. The parent label resource name.", "type": "string" }, "useAdminAccess": { - "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.", + "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.", "type": "boolean" } }, @@ -3009,12 +3009,12 @@ "type": "boolean" }, "canCreateAdminLabels": { - "description": "Output only. Whether the user is allowed to create new admin labels.", + "description": "Output only. Whether the user is allowed to create admin labels.", "readOnly": true, "type": "boolean" }, "canCreateSharedLabels": { - "description": "Output only. Whether the user is allowed to create new shared labels.", + "description": "Output only. Whether the user is allowed to create shared labels.", "readOnly": true, "type": "boolean" }, @@ -3031,7 +3031,7 @@ "id": "GoogleAppsDriveLabelsV2UserInfo", "properties": { "person": { - "description": "The identifier for this user that can be used with the People API to get more information. For example, people/12345678.", + "description": "The identifier for this user that can be used with the [People API](https://developers.google.com/people) to get more information. For example, `people/12345678`.", "type": "string" } }, @@ -3043,7 +3043,7 @@ "properties": { "listLimits": { "$ref": "GoogleAppsDriveLabelsV2ListLimits", - "description": "Limits for list-variant of a Field type." + "description": "Limits for list-variant of a field type." } }, "type": "object" @@ -3053,7 +3053,7 @@ "id": "GoogleAppsDriveLabelsV2WriteControl", "properties": { "requiredRevisionId": { - "description": "The revision_id of the label that the write request will be applied to. If this is not the latest revision of the label, the request will not be processed and will return a 400 Bad Request error.", + "description": "The revision ID of the label that the write request will be applied to. If this isn't the latest revision of the label, the request will not be processed and will return a 400 Bad Request error.", "type": "string" } }, diff --git a/discovery/googleapis/eventarc__v1.json b/discovery/googleapis/eventarc__v1.json index f9fefd33e..0ac5d8354 100644 --- a/discovery/googleapis/eventarc__v1.json +++ b/discovery/googleapis/eventarc__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250624", + "revision": "20250912", "rootUrl": "https://eventarc.googleapis.com/", "servicePath": "", "title": "Eventarc API", @@ -173,7 +173,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -2557,7 +2557,7 @@ "type": "string" }, "cryptoKeyName": { - "description": "Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`.", + "description": "Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`.", "type": "string" }, "labels": { @@ -2953,6 +2953,14 @@ "description": "Identifier. Resource name of the form projects/{project}/locations/{location}/googleApiSources/{google_api_source}", "type": "string" }, + "organizationSubscription": { + "$ref": "OrganizationSubscription", + "description": "Optional. Config to enable subscribing to events from all projects in the GoogleApiSource's org." + }, + "projectSubscriptions": { + "$ref": "ProjectSubscriptions", + "description": "Optional. Config to enable subscribing to all events from a list of projects. All the projects must be in the same org as the GoogleApiSource." + }, "uid": { "description": "Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.", "readOnly": true, @@ -3001,7 +3009,7 @@ "properties": { "authenticationConfig": { "$ref": "GoogleCloudEventarcV1PipelineDestinationAuthenticationConfig", - "description": "Optional. An authentication config used to authenticate message requests, such that destinations can verify the source. For example, this can be used with private GCP destinations that require GCP credentials to access like Cloud Run. This field is optional and should be set only by users interested in authenticated push" + "description": "Optional. An authentication config used to authenticate message requests, such that destinations can verify the source. For example, this can be used with private Google Cloud destinations that require Google Cloud credentials for access like Cloud Run. This field is optional and should be set only by users interested in authenticated push." }, "httpEndpoint": { "$ref": "GoogleCloudEventarcV1PipelineDestinationHttpEndpoint", @@ -3036,7 +3044,7 @@ "properties": { "googleOidc": { "$ref": "GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOidcToken", - "description": "Optional. This authenticate method will apply Google OIDC tokens signed by a GCP service account to the requests." + "description": "Optional. This authenticate method will apply Google OIDC tokens signed by a Google Cloud service account to the requests." }, "oauthToken": { "$ref": "GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken", @@ -3061,7 +3069,7 @@ "type": "object" }, "GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOidcToken": { - "description": "Represents a config used to authenticate with a Google OIDC token using a GCP service account. Use this authentication method to invoke your Cloud Run and Cloud Functions destinations or HTTP endpoints that support Google OIDC.", + "description": "Represents a config used to authenticate with a Google OIDC token using a Google Cloud service account. Use this authentication method to invoke your Cloud Run and Cloud Functions destinations or HTTP endpoints that support Google OIDC.", "id": "GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOidcToken", "properties": { "audience": { @@ -3715,6 +3723,17 @@ }, "type": "object" }, + "OrganizationSubscription": { + "description": "Config to enabled subscribing to events from other projects in the org.", + "id": "OrganizationSubscription", + "properties": { + "enabled": { + "description": "Required. Enable org level subscription.", + "type": "boolean" + } + }, + "type": "object" + }, "Pipeline": { "description": "A representation of the Pipeline resource.", "id": "Pipeline", @@ -3832,6 +3851,20 @@ }, "type": "object" }, + "ProjectSubscriptions": { + "description": "Config to enable subscribing to all events from a list of projects.", + "id": "ProjectSubscriptions", + "properties": { + "list": { + "description": "Required. A list of projects to receive events from. All the projects must be in the same org. The listed projects should have the format project/{identifier} where identifier can be either the project id for project number. A single list may contain both formats. At most 100 projects can be listed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Provider": { "description": "A representation of the Provider resource.", "id": "Provider", diff --git a/discovery/googleapis/file__v1.json b/discovery/googleapis/file__v1.json index 5cab3f3f9..c5f9091c5 100644 --- a/discovery/googleapis/file__v1.json +++ b/discovery/googleapis/file__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250716", + "revision": "20250825", "rootUrl": "https://file.googleapis.com/", "servicePath": "", "title": "Cloud Filestore API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1455,6 +1455,12 @@ "description": "A Filestore instance.", "id": "Instance", "properties": { + "capacityStepSizeGb": { + "description": "Output only. The increase/decrease capacity step size in GB.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "createTime": { "description": "Output only. The time when the instance was created.", "format": "google-datetime", @@ -1500,6 +1506,18 @@ "description": "Resource labels to represent user provided metadata.", "type": "object" }, + "maxCapacityGb": { + "description": "Output only. The max capacity of the instance in GB.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "minCapacityGb": { + "description": "Output only. The min capacity of the instance in GB.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "name": { "description": "Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`.", "readOnly": true, @@ -1858,12 +1876,14 @@ "enum": [ "CONNECT_MODE_UNSPECIFIED", "DIRECT_PEERING", - "PRIVATE_SERVICE_ACCESS" + "PRIVATE_SERVICE_ACCESS", + "PRIVATE_SERVICE_CONNECT" ], "enumDescriptions": [ "Not set.", "Connect via direct peering to the Filestore service.", - "Connect to your Filestore instance using Private Service Access. Private services access provides an IP address range for multiple Google Cloud services, including Filestore." + "Connect to your Filestore instance using Private Service Access. Private services access provides an IP address range for multiple Google Cloud services, including Filestore.", + "Connect to your Filestore instance using Private Service Connect. A connection policy must exist in the region for the VPC network and the google-cloud-filestore service class." ], "type": "string" }, @@ -1894,6 +1914,10 @@ "description": "The name of the Google Compute Engine [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected.", "type": "string" }, + "pscConfig": { + "$ref": "PscConfig", + "description": "Optional. Private Service Connect configuration. Should only be set when connect_mode is PRIVATE_SERVICE_CONNECT." + }, "reservedIpRange": { "description": "Optional, reserved_ip_range can have one of the following two types of values. * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode. When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the [internal IP address ranges](https://www.arin.net/reference/research/statistics/address_filters/) that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The range you specify can't overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.", "type": "string" @@ -1936,6 +1960,10 @@ }, "type": "array" }, + "network": { + "description": "Optional. The source VPC network for ip_ranges. Required for instances using Private Service Connect, optional otherwise. If provided, must be the same network specified in the `NetworkConfig.network` field.", + "type": "string" + }, "squashMode": { "description": "Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.", "enum": [ @@ -2095,6 +2123,17 @@ }, "type": "object" }, + "PscConfig": { + "description": "Private Service Connect configuration.", + "id": "PscConfig", + "properties": { + "endpointProject": { + "description": "Optional. Consumer service project in which the Private Service Connect endpoint would be set up. This is optional, and only relevant in case the network is a shared VPC. If this is not specified, the endpoint would be setup in the VPC host project.", + "type": "string" + } + }, + "type": "object" + }, "ReplicaConfig": { "description": "Replica configuration for the instance.", "id": "ReplicaConfig", @@ -2116,14 +2155,22 @@ "CREATING", "READY", "REMOVING", - "FAILED" + "FAILED", + "PROMOTING", + "PAUSING", + "PAUSED", + "RESUMING" ], "enumDescriptions": [ "State not set.", "The replica is being created.", "The replica is ready.", "The replica is being removed.", - "The replica is experiencing an issue and might be unusable. You can get further details from the `stateReasons` field of the `ReplicaConfig` object." + "The replica is experiencing an issue and might be unusable. You can get further details from the `stateReasons` field of the `ReplicaConfig` object.", + "The replica is being promoted.", + "The replica is being paused.", + "The replica is paused.", + "The replica is being resumed." ], "readOnly": true, "type": "string" @@ -2134,12 +2181,16 @@ "enum": [ "STATE_REASON_UNSPECIFIED", "PEER_INSTANCE_UNREACHABLE", - "REMOVE_FAILED" + "REMOVE_FAILED", + "PAUSE_FAILED", + "RESUME_FAILED" ], "enumDescriptions": [ "Reason not specified.", "The peer instance is unreachable.", - "The remove replica peer instance operation failed." + "The remove replica peer instance operation failed.", + "The pause replica operation failed.", + "The resume replica operation failed." ], "type": "string" }, diff --git a/discovery/googleapis/firebaseappcheck__v1.json b/discovery/googleapis/firebaseappcheck__v1.json index 9e82ec90d..e70605579 100644 --- a/discovery/googleapis/firebaseappcheck__v1.json +++ b/discovery/googleapis/firebaseappcheck__v1.json @@ -28,7 +28,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20240930", + "revision": "20250901", "rootUrl": "https://firebaseappcheck.googleapis.com/", "servicePath": "", "title": "Firebase App Check API", @@ -2176,6 +2176,18 @@ "description": "An app's Play Integrity configuration object. This configuration controls certain properties of the `AppCheckToken` returned by ExchangePlayIntegrityToken, such as its ttl. Note that your registered SHA-256 certificate fingerprints are used to validate tokens issued by the Play Integrity API; please register them via the Firebase Console or programmatically via the [Firebase Management Service](https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects.androidApps.sha/create).", "id": "GoogleFirebaseAppcheckV1PlayIntegrityConfig", "properties": { + "accountDetails": { + "$ref": "GoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails", + "description": "Specifies account requirements for Android devices running your app. These settings correspond to requirements on the [**account details** field](https://developer.android.com/google/play/integrity/verdicts#account-details-field) obtained from the Play Integrity API. See the [default responses table](https://developer.android.com/google/play/integrity/setup#default) for a quick summary. The default values for these settings work for most apps, and are recommended." + }, + "appIntegrity": { + "$ref": "GoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity", + "description": "Specifies application integrity requirements for Android devices running your app. These settings correspond to requirements on the [**application integrity** field](https://developer.android.com/google/play/integrity/verdicts#application-integrity-field) obtained from the Play Integrity API. See the [default responses table](https://developer.android.com/google/play/integrity/setup#default) for a quick summary. The default values for these settings work for most apps, and are recommended." + }, + "deviceIntegrity": { + "$ref": "GoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity", + "description": "Specifies device integrity requirements for Android devices running your app. These settings correspond to requirements on the [**device integrity** field](https://developer.android.com/google/play/integrity/verdicts#device-integrity-field) obtained from the Play Integrity API. See the [default responses table](https://developer.android.com/google/play/integrity/setup#default) for a quick summary. Warning: There are also [conditional](https://developer.android.com/google/play/integrity/setup#conditional) as well as [optional](https://developer.android.com/google/play/integrity/setup#optional_device_information) responses that you can receive, but requires additional explicit opt-in from you. The App Check API is **not** responsible for any such opt-ins. The default values for these settings work for most apps, and are recommended." + }, "name": { "description": "Required. The relative resource name of the Play Integrity configuration object, in the format: ``` projects/{project_number}/apps/{app_id}/playIntegrityConfig ```", "type": "string" @@ -2188,6 +2200,53 @@ }, "type": "object" }, + "GoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails": { + "description": "A settings object specifying account requirements for Android devices running your app. These settings correspond to requirements on the [**account details** field](https://developer.android.com/google/play/integrity/verdicts#account-details-field) obtained from the Play Integrity API. See the [default responses table](https://developer.android.com/google/play/integrity/setup#default) for a quick summary. The default values for these settings work for most apps, and are recommended.", + "id": "GoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails", + "properties": { + "requireLicensed": { + "description": "Specifies whether the caller must have received the [`LICENSED` verdict](https://developer.android.com/google/play/integrity/verdicts#account-details-field). For additional details about scenarios where your users will receive this `LICENSED` label, see [the default responses table](https://developer.android.com/google/play/integrity/setup#default). If set to `true`, apps without the `LICENSED` app licensing verdict will be rejected. If set to `false`, any app licensing verdict is allowed. The default value is `false`.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity": { + "description": "A settings object specifying application integrity requirements for Android devices running your app. These settings correspond to requirements on the [**application integrity** field](https://developer.android.com/google/play/integrity/verdicts#application-integrity-field) obtained from the Play Integrity API. See the [default responses table](https://developer.android.com/google/play/integrity/setup#default) for a quick summary. The default values for these settings work for most apps, and are recommended.", + "id": "GoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity", + "properties": { + "allowUnrecognizedVersion": { + "description": "Specifies whether your running app is allowed to have the `UNRECOGNIZED_VERSION` [app recognition verdict](https://developer.android.com/google/play/integrity/verdicts#application-integrity-field). Note that the app recognition verdict `PLAY_RECOGNIZED` is a strong, comprehensive integrity signal that takes into account various other signals, including conditional and optional device integrity responses that you have opted into. If your app is published off-Play, this field should be set to `true` to allow instances of your app installed from off-Play sources to function. If set to `false`, only `PLAY_RECOGNIZED` verdicts are allowed, and both `UNRECOGNIZED_VERSION` and `UNEVALUATED` will be rejected. If set to `true`, any app recognition verdict is allowed. The default value is `false`.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity": { + "description": "A settings object specifying device integrity requirements for Android devices running your app. These settings correspond to requirements on the [**device integrity** field](https://developer.android.com/google/play/integrity/verdicts#device-integrity-field) obtained from the Play Integrity API. See the [default responses table](https://developer.android.com/google/play/integrity/setup#default) for a quick summary. Warning: There are also [conditional](https://developer.android.com/google/play/integrity/setup#conditional) as well as [optional](https://developer.android.com/google/play/integrity/setup#optional_device_information) responses that you can receive, but requires additional explicit opt-in from you. The App Check API is **not** responsible for any such opt-ins. The default values for these settings work for most apps, and are recommended.", + "id": "GoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity", + "properties": { + "minDeviceRecognitionLevel": { + "description": "Specifies the minimum device integrity level in order for the device to be considered valid. Any device with a device recognition verdict lower than this level will be rejected. If this is unspecified, the default level is `NO_INTEGRITY`.", + "enum": [ + "DEVICE_RECOGNITION_LEVEL_UNSPECIFIED", + "NO_INTEGRITY", + "MEETS_BASIC_INTEGRITY", + "MEETS_DEVICE_INTEGRITY", + "MEETS_STRONG_INTEGRITY" + ], + "enumDescriptions": [ + "Default value. Do not specify this value directly. When this default value is detected in a configuration, the `NO_INTEGRITY` default level takes effect.", + "If this level is set, no explicit device integrity label requirements will be checked. However, because Play Integrity's other features may perform (and require) their own intrinsic device integrity checks, your `app_integrity` and `account_details` settings may still cause some device integrity checks to be performed.", + "This level corresponds to the `MEETS_BASIC_INTEGRITY` [optional device recognition label](https://developer.android.com/google/play/integrity/verdicts#optional-device-labels). This value represents the most basic level of device integrity, and is the minimum allowed in App Check's standard implementation of Play Integrity. Warning: Because this is an optional response, you **must** first explicitly [opt in your app in the Play Console](https://developer.android.com/google/play/integrity/setup#optional) in order to receive this label. Without this opt-in, **your app may break** for any user whose device is eligible for `MEETS_BASIC_INTEGRITY` but not `MEETS_DEVICE_INTEGRITY`. This API is **not** responsible for any such opt-ins.", + "This level corresponds to the `MEETS_DEVICE_INTEGRITY` [device recognition verdict](https://developer.android.com/google/play/integrity/verdicts#device-integrity-field). Any app integrated with Play Integrity will automatically be eligible to receive this label without any additional action from you. At this level, devices that have the `MEETS_BASIC_INTEGRITY` label but **not** the `MEETS_DEVICE_INTEGRITY` label will be rejected.", + "This level corresponds to the `MEETS_STRONG_INTEGRITY` [optional device recognition label](https://developer.android.com/google/play/integrity/verdicts#optional-device-labels). This value represents the highest level of device integrity. At this level, devices that have the `MEETS_BASIC_INTEGRITY` or `MEETS_DEVICE_INTEGRITY` but **not** the `MEETS_STRONG_INTEGRITY` label will be rejected. Warning: Because this is an optional response, you **must** first explicitly [opt in your app in the Play Console](https://developer.android.com/google/play/integrity/setup#optional) in order to receive this label. Without this opt-in, **your app may break** for any user whose device is eligible for `MEETS_STRONG_INTEGRITY`. This API is **not** responsible for any such opt-ins." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleFirebaseAppcheckV1PublicJwk": { "description": "A JWK as specified by [section 4 of RFC 7517](https://tools.ietf.org/html/rfc7517#section-4) and [section 6.3.1 of RFC 7518](https://tools.ietf.org/html/rfc7518#section-6.3.1).", "id": "GoogleFirebaseAppcheckV1PublicJwk", @@ -2241,6 +2300,10 @@ "description": "Required. The relative resource name of the reCAPTCHA Enterprise configuration object, in the format: ``` projects/{project_number}/apps/{app_id}/recaptchaEnterpriseConfig ```", "type": "string" }, + "riskAnalysis": { + "$ref": "GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis", + "description": "Specifies risk tolerance and requirements for your application. These settings correspond to requirements on the [**`riskAnalysis`**](https://cloud.google.com/recaptcha/docs/interpret-assessment-website#interpret_assessment) tuple in the assessment obtained from reCAPTCHA Enterprise. The default values for these settings work for most apps, and are recommended." + }, "siteKey": { "description": "The score-based site key [created in reCAPTCHA Enterprise](https://cloud.google.com/recaptcha-enterprise/docs/create-key#creating_a_site_key) used to [invoke reCAPTCHA and generate the reCAPTCHA tokens](https://cloud.google.com/recaptcha-enterprise/docs/instrument-web-pages) for your application. Important: This is *not* the `site_secret` (as it is in reCAPTCHA v3), but rather your score-based reCAPTCHA Enterprise site key.", "type": "string" @@ -2253,10 +2316,27 @@ }, "type": "object" }, + "GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis": { + "description": "A settings object specifying risk tolerance and requirements for your application. These settings correspond to requirements on the [**`riskAnalysis`**](https://cloud.google.com/recaptcha/docs/interpret-assessment-website#interpret_assessment) tuple in the assessment obtained from reCAPTCHA Enterprise. The default values for these settings work for most apps, and are recommended.", + "id": "GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis", + "properties": { + "minValidScore": { + "description": "Specifies a minimum score required for a reCAPTCHA token to be considered valid. If its score is greater than or equal to this value, it will be accepted; otherwise, it will be rejected. The value must be between 0.0 and 1.0. The default value is 0.5.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "GoogleFirebaseAppcheckV1RecaptchaV3Config": { "description": "An app's reCAPTCHA v3 configuration object. This configuration is used by ExchangeRecaptchaV3Token to validate reCAPTCHA tokens issued to apps by reCAPTCHA v3. It also controls certain properties of the returned `AppCheckToken`, such as its ttl.", "id": "GoogleFirebaseAppcheckV1RecaptchaV3Config", "properties": { + "minValidScore": { + "description": "Specifies a minimum score required for a reCAPTCHA token to be considered valid. If its score is greater than or equal to this value, it will be accepted; otherwise, it will be rejected. The value must be between 0.0 and 1.0. The default value is 0.5.", + "format": "float", + "type": "number" + }, "name": { "description": "Required. The relative resource name of the reCAPTCHA v3 configuration object, in the format: ``` projects/{project_number}/apps/{app_id}/recaptchaV3Config ```", "type": "string" diff --git a/discovery/googleapis/firebaseappdistribution__v1.json b/discovery/googleapis/firebaseappdistribution__v1.json index f690d89c2..3c030a5c7 100644 --- a/discovery/googleapis/firebaseappdistribution__v1.json +++ b/discovery/googleapis/firebaseappdistribution__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20241115", + "revision": "20250822", "rootUrl": "https://firebaseappdistribution.googleapis.com/", "servicePath": "", "title": "Firebase App Distribution API", @@ -132,7 +132,7 @@ ], "parameters": { "app": { - "description": "The name of the app resource. Format: `projects/{project_number}/apps/{app_id}`", + "description": "Required. The name of the app resource. Format: `projects/{project_number}/apps/{app_id}`", "location": "path", "pattern": "^projects/[^/]+/apps/[^/]+$", "required": true, @@ -277,23 +277,23 @@ ], "parameters": { "filter": { - "description": "The expression to filter releases listed in the response. To learn more about filtering, refer to [Google's AIP-160 standard](http://aip.dev/160). Supported fields: - `releaseNotes.text` supports `=` (can contain a wildcard character (`*`) at the beginning or end of the string) - `createTime` supports `<`, `<=`, `>` and `>=`, and expects an RFC-3339 formatted string Examples: - `createTime <= \"2021-09-08T00:00:00+04:00\"` - `releaseNotes.text=\"fixes\" AND createTime >= \"2021-09-08T00:00:00.0Z\"` - `releaseNotes.text=\"*v1.0.0-rc*\"`", + "description": "Optional. The expression to filter releases listed in the response. To learn more about filtering, refer to [Google's AIP-160 standard](http://aip.dev/160). Supported fields: - `releaseNotes.text` supports `=` (can contain a wildcard character (`*`) at the beginning or end of the string) - `createTime` supports `<`, `<=`, `>` and `>=`, and expects an RFC-3339 formatted string Examples: - `createTime <= \"2021-09-08T00:00:00+04:00\"` - `releaseNotes.text=\"fixes\" AND createTime >= \"2021-09-08T00:00:00.0Z\"` - `releaseNotes.text=\"*v1.0.0-rc*\"`", "location": "query", "type": "string" }, "orderBy": { - "description": "The fields used to order releases. Supported fields: - `createTime` To specify descending order for a field, append a \"desc\" suffix, for example, `createTime desc`. If this parameter is not set, releases are ordered by `createTime` in descending order.", + "description": "Optional. The fields used to order releases. Supported fields: - `createTime` To specify descending order for a field, append a \"desc\" suffix, for example, `createTime desc`. If this parameter is not set, releases are ordered by `createTime` in descending order.", "location": "query", "type": "string" }, "pageSize": { - "description": "The maximum number of releases to return. The service may return fewer than this value. The valid range is [1-100]; If unspecified (0), at most 25 releases are returned. Values above 100 are coerced to 100.", + "description": "Optional. The maximum number of releases to return. The service may return fewer than this value. The valid range is [1-100]; If unspecified (0), at most 25 releases are returned. Values above 100 are coerced to 100.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "A page token, received from a previous `ListReleases` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReleases` must match the call that provided the page token.", + "description": "Optional. A page token, received from a previous `ListReleases` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReleases` must match the call that provided the page token.", "location": "query", "type": "string" }, @@ -330,7 +330,7 @@ "type": "string" }, "updateMask": { - "description": "The list of fields to update.", + "description": "Optional. The list of fields to update.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -411,13 +411,13 @@ ], "parameters": { "pageSize": { - "description": "The maximum number of feedback reports to return. The service may return fewer than this value. The valid range is [1-100]; If unspecified (0), at most 25 feedback reports are returned. Values above 100 are coerced to 100.", + "description": "Output only. The maximum number of feedback reports to return. The service may return fewer than this value. The valid range is [1-100]; If unspecified (0), at most 25 feedback reports are returned. Values above 100 are coerced to 100.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "A page token, received from a previous `ListFeedbackReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFeedbackReports` must match the call that provided the page token.", + "description": "Output only. A page token, received from a previous `ListFeedbackReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFeedbackReports` must match the call that provided the page token.", "location": "query", "type": "string" }, @@ -788,7 +788,7 @@ "type": "string" }, "updateMask": { - "description": "The list of fields to update.", + "description": "Optional. The list of fields to update.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -923,7 +923,7 @@ "type": "string" }, "updateMask": { - "description": "The list of fields to update.", + "description": "Optional. The list of fields to update.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1520,14 +1520,14 @@ "id": "GoogleFirebaseAppdistroV1DistributeReleaseRequest", "properties": { "groupAliases": { - "description": "A list of group aliases (IDs) to be given access to this release. A combined maximum of 999 `testerEmails` and `groupAliases` can be specified in a single request.", + "description": "Optional. A list of group aliases (IDs) to be given access to this release. A combined maximum of 999 `testerEmails` and `groupAliases` can be specified in a single request.", "items": { "type": "string" }, "type": "array" }, "testerEmails": { - "description": "A list of tester email addresses to be given access to this release. A combined maximum of 999 `testerEmails` and `groupAliases` can be specified in a single request.", + "description": "Optional. A list of tester email addresses to be given access to this release. A combined maximum of 999 `testerEmails` and `groupAliases` can be specified in a single request.", "items": { "type": "string" }, @@ -1709,6 +1709,12 @@ "readOnly": true, "type": "string" }, + "expireTime": { + "description": "Output only. The time the release will expire.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "firebaseConsoleUri": { "description": "Output only. A link to the Firebase console displaying a single release.", "readOnly": true, @@ -1726,6 +1732,12 @@ "description": "Output only. A link to the release in the tester web clip or Android app that lets testers (which were granted access to the app) view release notes and install the app onto their devices.", "readOnly": true, "type": "string" + }, + "updateTime": { + "description": "Output only. The time the release was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/discovery/googleapis/firebaseapphosting__v1.json b/discovery/googleapis/firebaseapphosting__v1.json index 8d6e8278b..86250594b 100644 --- a/discovery/googleapis/firebaseapphosting__v1.json +++ b/discovery/googleapis/firebaseapphosting__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250501", + "revision": "20250904", "rootUrl": "https://firebaseapphosting.googleapis.com/", "servicePath": "", "title": "Firebase App Hosting API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1106,6 +1106,33 @@ } }, "schemas": { + "ArchiveSource": { + "description": "The URI of an storage archive or a signed URL to use as the build source.", + "id": "ArchiveSource", + "properties": { + "author": { + "$ref": "SourceUserMetadata", + "description": "Optional. The author contained in the metadata of a version control change." + }, + "description": { + "description": "Optional. An optional message that describes the uploaded version of the source code.", + "type": "string" + }, + "externalSignedUri": { + "description": "Signed URL to an archive in a storage bucket.", + "type": "string" + }, + "rootDirectory": { + "description": "Optional. Relative path in the archive.", + "type": "string" + }, + "userStorageUri": { + "description": "URI to an archive in Cloud Storage. The object must be a zipped (.zip) or gzipped archive file (.tar.gz) containing source to deploy.", + "type": "string" + } + }, + "type": "object" + }, "Backend": { "description": "A backend is the primary resource of App Hosting.", "id": "Backend", @@ -1179,6 +1206,10 @@ "readOnly": true, "type": "boolean" }, + "requestLogsDisabled": { + "description": "Optional. A field that, if true, indicates that incoming request logs are disabled for this backend. Incoming request logs are enabled by default.", + "type": "boolean" + }, "serviceAccount": { "description": "Required. The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.", "type": "string" @@ -1334,6 +1365,10 @@ "description": "The source for the build.", "id": "BuildSource", "properties": { + "archive": { + "$ref": "ArchiveSource", + "description": "An archive source." + }, "codebase": { "$ref": "CodebaseSource", "description": "A codebase source." @@ -2333,7 +2368,7 @@ "type": "object" }, "build": { - "description": "Immutable. The name of a build that already exists. It doesn't have to be built; a rollout will wait for a build to be ready before updating traffic.", + "description": "Required. Immutable. The name of a build that already exists. It doesn't have to be built; a rollout will wait for a build to be ready before updating traffic.", "type": "string" }, "createTime": { @@ -2492,6 +2527,28 @@ }, "type": "object" }, + "SourceUserMetadata": { + "description": "Metadata for the user who started the build.", + "id": "SourceUserMetadata", + "properties": { + "displayName": { + "description": "Output only. The user-chosen displayname. May be empty.", + "readOnly": true, + "type": "string" + }, + "email": { + "description": "Output only. The account email linked to the EUC that created the build. May be a service account or other robot account.", + "readOnly": true, + "type": "string" + }, + "imageUri": { + "description": "Output only. The URI of a profile photo associated with the user who created the build.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", diff --git a/discovery/googleapis/firebasedataconnect__v1.json b/discovery/googleapis/firebasedataconnect__v1.json index 00cdb42d6..ceb65ab9f 100644 --- a/discovery/googleapis/firebasedataconnect__v1.json +++ b/discovery/googleapis/firebasedataconnect__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250706", + "revision": "20250907", "rootUrl": "https://firebasedataconnect.googleapis.com/", "servicePath": "", "title": "Firebase Data Connect API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -486,6 +486,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "introspectGraphql": { + "description": "Execute introspection query against the Firebase Data Connect's generated GraphQL schema. GraphQL introspection query provides metadata such as what tables the schema have, what queries and mutations can be performed on the schema, and so on. Read more at https://graphql.org/learn/introspection. IntrospectGraphql can read schema metadata but cannot read rows from Cloud SQL instance, which can be done via ExecuteGraphqlRead.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:introspectGraphql", + "httpMethod": "POST", + "id": "firebasedataconnect.projects.locations.services.introspectGraphql", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The relative resource name of Firebase Data Connect service, in the format: ``` projects/{project}/locations/{location}/services/{service} ```", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:introspectGraphql", + "request": { + "$ref": "GraphqlRequest" + }, + "response": { + "$ref": "GraphqlResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists Services in a given project and location.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/services", @@ -759,6 +787,62 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "impersonateMutation": { + "description": "Impersonate a mutation defined on a Firebase Data Connect connector. It grants the admin SDK access to mutations defined in the given connector. The caller can choose to impersonate a particular Firebase Auth user, or skip @auth completely.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/connectors/{connectorsId}:impersonateMutation", + "httpMethod": "POST", + "id": "firebasedataconnect.projects.locations.services.connectors.impersonateMutation", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the connector to find the predefined query/mutation, in the format: ``` projects/{project}/locations/{location}/services/{service}/connectors/{connector} ```", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/connectors/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:impersonateMutation", + "request": { + "$ref": "ImpersonateRequest" + }, + "response": { + "$ref": "GraphqlResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "impersonateQuery": { + "description": "Impersonate a query defined on a Firebase Data Connect connector. It grants the admin SDK access to queries defined in the given connector. The caller can choose to impersonate a particular Firebase Auth user, or skip @auth completely.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/connectors/{connectorsId}:impersonateQuery", + "httpMethod": "POST", + "id": "firebasedataconnect.projects.locations.services.connectors.impersonateQuery", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the connector to find the predefined query/mutation, in the format: ``` projects/{project}/locations/{location}/services/{service}/connectors/{connector} ```", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/connectors/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:impersonateQuery", + "request": { + "$ref": "ImpersonateRequest" + }, + "response": { + "$ref": "GraphqlResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists Connectors in a given project and location.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/connectors", @@ -1422,6 +1506,29 @@ }, "type": "object" }, + "ImpersonateRequest": { + "description": "The Impersonate request to Firebase Data Connect.", + "id": "ImpersonateRequest", + "properties": { + "extensions": { + "$ref": "GraphqlRequestExtensions", + "description": "Optional. Additional GraphQL request information." + }, + "operationName": { + "description": "Required. The name of the GraphQL operation name. Required because all Connector operations must be named. See https://graphql.org/learn/queries/#operation-name.", + "type": "string" + }, + "variables": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Values for GraphQL variables provided in this request.", + "type": "object" + } + }, + "type": "object" + }, "Impersonation": { "description": "Impersonation configures the Firebase Auth context to impersonate.", "id": "Impersonation", @@ -1681,6 +1788,11 @@ "description": "Required. Name of the PostgreSQL database.", "type": "string" }, + "ephemeral": { + "description": "Output only. Ephemeral is true if this data connect service is served from temporary in-memory emulation of Postgres. While Cloud SQL is being provisioned, the data connect service provides the ephemeral service to help developers get started. Once the Cloud SQL is provisioned, Data Connect service will transfer its data on a best-effort basis to the Cloud SQL instance. WARNING: Ephemeral data sources will expire after 24 hour. The data will be lost if they aren't transferred to the Cloud SQL instance. WARNING: When `ephemeral=true`, mutations to the database are not guaranteed to be durably persisted, even if an OK status code is returned. All or parts of the data may be lost or reverted to earlier versions.", + "readOnly": true, + "type": "boolean" + }, "schemaMigration": { "description": "Optional. Configure how to perform Postgresql schema migration.", "enum": [ @@ -1710,6 +1822,7 @@ "type": "string" }, "unlinked": { + "deprecated": true, "description": "No Postgres data source is linked. If set, don't allow `database` and `schema_validation` to be configured.", "type": "boolean" } diff --git a/discovery/googleapis/firestore__v1.json b/discovery/googleapis/firestore__v1.json index a17f33b62..791099abb 100644 --- a/discovery/googleapis/firestore__v1.json +++ b/discovery/googleapis/firestore__v1.json @@ -18,6 +18,18 @@ "description": "Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. ", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/firestore", + "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://firestore.us-east7.rep.googleapis.com/", + "location": "us-east7" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://batch-firestore.us-east7.rep.googleapis.com/", + "location": "us-east7" + } + ], "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", "x32": "http://www.google.com/images/icons/product/search-32.gif" @@ -28,7 +40,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250618", + "revision": "20250908", "rootUrl": "https://firestore.googleapis.com/", "servicePath": "", "title": "Cloud Firestore API", @@ -184,7 +196,7 @@ ], "parameters": { "databaseId": { - "description": "Required. The ID to use for the database, which will become the final component of the database's resource name. This value should be 4-63 characters. Valid characters are /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. \"(default)\" database ID is also valid.", + "description": "Required. The ID to use for the database, which will become the final component of the database's resource name. This value should be 4-63 characters. Valid characters are /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. \"(default)\" database ID is also valid if the database is Standard edition.", "location": "query", "type": "string" }, @@ -1792,7 +1804,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -2902,7 +2914,7 @@ "id": "GoogleFirestoreAdminV1CloneDatabaseRequest", "properties": { "databaseId": { - "description": "Required. The ID to use for the database, which will become the final component of the database's resource name. This database ID must not be associated with an existing database. This value should be 4-63 characters. Valid characters are /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. \"(default)\" database ID is also valid.", + "description": "Required. The ID to use for the database, which will become the final component of the database's resource name. This database ID must not be associated with an existing database. This value should be 4-63 characters. Valid characters are /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. \"(default)\" database ID is also valid if the database is Standard edition.", "type": "string" }, "encryptionConfig": { @@ -3501,9 +3513,9 @@ ], "enumDescriptions": [ "Unspecified. It will use database default setting. This value is input only.", - "In order for an index entry to be added, the document must contain all fields specified in the index. This is the only allowed value for indexes having ApiScope `ANY_API` and `DATASTORE_MODE_API`.", - "In order for an index entry to be added, the document must contain at least one of the fields specified in the index. Non-existent fields are treated as having a NULL value when generating index entries.", - "An index entry will be added regardless of whether the document contains any of the fields specified in the index. Non-existent fields are treated as having a NULL value when generating index entries." + "An index entry will only exist if ALL fields are present in the document. This is both the default and only allowed value for Standard Edition databases (for both Cloud Firestore `ANY_API` and Cloud Datastore `DATASTORE_MODE_API`). Take for example the following document: ``` { \"__name__\": \"...\", \"a\": 1, \"b\": 2, \"c\": 3 } ``` an index on `(a ASC, b ASC, c ASC, __name__ ASC)` will generate an index entry for this document since `a`, 'b', `c`, and `__name__` are all present but an index of `(a ASC, d ASC, __name__ ASC)` will not generate an index entry for this document since `d` is missing. This means that such indexes can only be used to serve a query when the query has either implicit or explicit requirements that all fields from the index are present.", + "An index entry will exist if ANY field are present in the document. This is used as the definition of a sparse index for Enterprise Edition databases. Take for example the following document: ``` { \"__name__\": \"...\", \"a\": 1, \"b\": 2, \"c\": 3 } ``` an index on `(a ASC, d ASC)` will generate an index entry for this document since `a` is present, and will fill in an `unset` value for `d`. An index on `(d ASC, e ASC)` will not generate any index entry as neither `d` nor `e` are present. An index that contains `__name__` will generate an index entry for all documents since Firestore guarantees that all documents have a `__name__` field.", + "An index entry will exist regardless of if the fields are present or not. This is the default density for an Enterprise Edition database. The index will store `unset` values for fields that are not present in the document." ], "type": "string" }, @@ -3558,6 +3570,10 @@ "The index was being created, but something went wrong. There is no active long-running operation for the index, and the most recently finished long-running operation failed. The index is not updated when writing a document. Some index data may exist. Use the google.longrunning.Operations API to determine why the operation that last attempted to create this index failed, then re-create the index." ], "type": "string" + }, + "unique": { + "description": "Optional. Whether it is an unique index. Unique index ensures all values for the indexed field(s) are unique across documents.", + "type": "boolean" } }, "type": "object" @@ -3938,7 +3954,7 @@ "type": "string" }, "databaseId": { - "description": "Required. The ID to use for the database, which will become the final component of the database's resource name. This database ID must not be associated with an existing database. This value should be 4-63 characters. Valid characters are /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. \"(default)\" database ID is also valid.", + "description": "Required. The ID to use for the database, which will become the final component of the database's resource name. This database ID must not be associated with an existing database. This value should be 4-63 characters. Valid characters are /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. \"(default)\" database ID is also valid if the database is Standard edition.", "type": "string" }, "encryptionConfig": { diff --git a/discovery/googleapis/fitness__v1.json b/discovery/googleapis/fitness__v1.json index 17415649e..928e6e70d 100644 --- a/discovery/googleapis/fitness__v1.json +++ b/discovery/googleapis/fitness__v1.json @@ -87,7 +87,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20231107", + "revision": "20250819", "rootUrl": "https://fitness.googleapis.com/", "servicePath": "fitness/v1/users/", "title": "Fitness API", @@ -740,7 +740,7 @@ "type": "integer" }, "endTime": { - "description": "An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but startTime is specified, all sessions from startTime to the end of time will be returned.", + "description": "An RFC3339 timestamp. Only sessions starting before endTime and ending after startTime up to (endTime + 1 day) will be included in the response. If this time is omitted but startTime is specified, all sessions ending after startTime to the end of time will be returned.", "location": "query", "type": "string" }, @@ -755,7 +755,7 @@ "type": "string" }, "startTime": { - "description": "An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but endTime is specified, all sessions from the start of time up to endTime will be returned.", + "description": "An RFC3339 timestamp. Only sessions starting before endTime and ending after startTime up to (endTime + 1 day) will be included in the response. If this time is omitted but endTime is specified, all sessions starting before endTime and ending after the start of time up to (endTime + 1 day) will be returned.", "location": "query", "type": "string" }, @@ -1537,7 +1537,7 @@ "type": "string" }, "session": { - "description": "Sessions with an end time that is between startTime and endTime of the request.", + "description": "Sessions starting before endTime of the request and ending after startTime of the request up to (endTime of the request + 1 day).", "items": { "$ref": "Session" }, diff --git a/discovery/googleapis/gkebackup__v1.json b/discovery/googleapis/gkebackup__v1.json index d7629956a..578b79c20 100644 --- a/discovery/googleapis/gkebackup__v1.json +++ b/discovery/googleapis/gkebackup__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250723", + "revision": "20250813", "rootUrl": "https://gkebackup.googleapis.com/", "servicePath": "", "title": "Backup for GKE API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/gkehub__v1.json b/discovery/googleapis/gkehub__v1.json index 479d50ce7..96eb2678c 100644 --- a/discovery/googleapis/gkehub__v1.json +++ b/discovery/googleapis/gkehub__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250720", + "revision": "20250907", "rootUrl": "https://gkehub.googleapis.com/", "servicePath": "", "title": "GKE Hub API", @@ -196,7 +196,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -2512,8 +2512,7 @@ "IN_PROGRESS", "SOAKING", "FORCED_SOAKING", - "COMPLETE", - "FORCED_COMPLETE" + "COMPLETE" ], "enumDescriptions": [ "Required by https://linter.aip.dev/126/unspecified.", @@ -2522,8 +2521,7 @@ "The upgrade is in progress. At the scope level, this means the upgrade is in progress for at least one cluster in the scope.", "The upgrade has finished and is soaking until the soaking time is up. At the scope level, this means at least one cluster is in soaking while the rest are either soaking or complete.", "A cluster will be forced to enter soaking if an upgrade doesn't finish within a certain limit, despite it's actual status.", - "The upgrade has passed all post conditions (soaking). At the scope level, this means all eligible clusters are in COMPLETE status.", - "The upgrade was forced into soaking and the soaking time has passed. This is the equivalent of COMPLETE status for upgrades that were forced into soaking." + "The upgrade has passed all post conditions (soaking). At the scope level, this means all eligible clusters are in COMPLETE status." ], "type": "string" }, @@ -6085,8 +6083,12 @@ "description": "Optional. The Connect agent version to use for connect_resources. Defaults to the latest GKE Connect version. The version must be a currently supported version, obsolete versions will be rejected.", "type": "string" }, + "k8sGitVersion": { + "description": "Optional. Git version of the Kubernetes cluster. This is only used to gate the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and above.", + "type": "string" + }, "k8sVersion": { - "description": "Optional. Major version of the Kubernetes cluster. This is only used to determine which version to use for the CustomResourceDefinition resources, `apiextensions/v1beta1` or`apiextensions/v1`.", + "description": "Optional. Major and minor version of the Kubernetes cluster. This is only used to determine which version to use for the CustomResourceDefinition resources, `apiextensions/v1beta1` or`apiextensions/v1`.", "type": "string" }, "v1beta1Crd": { @@ -6309,7 +6311,18 @@ "MODERNIZATION_IN_PROGRESS", "MODERNIZATION_COMPLETED", "MODERNIZATION_ABORTED", - "MODERNIZATION_WILL_BE_SCHEDULED" + "MODERNIZATION_PREPARING", + "MODERNIZATION_STALLED", + "MODERNIZATION_PREPARED", + "MODERNIZATION_MIGRATING_WORKLOADS", + "MODERNIZATION_ROLLING_BACK_CLUSTER", + "MODERNIZATION_WILL_BE_SCHEDULED", + "MODERNIZATION_MANUAL", + "MODERNIZATION_ELIGIBLE", + "MODERNIZATION_MODERNIZING", + "MODERNIZATION_MODERNIZED_SOAKING", + "MODERNIZATION_FINALIZED", + "MODERNIZATION_ROLLING_BACK_FLEET" ], "enumDescriptions": [ "Default Unspecified code", @@ -6353,7 +6366,18 @@ "Modernization is in progress for a cluster.", "Modernization is completed for a cluster.", "Modernization is aborted for a cluster.", - "Modernization will be scheduled for a fleet." + "Preparing cluster so that its workloads can be migrated.", + "Modernization is stalled for a cluster.", + "Cluster has been prepared for its workloads to be migrated.", + "Migrating the cluster's workloads to the new implementation.", + "Rollback is in progress for modernization of a cluster.", + "Modernization will be scheduled for a fleet.", + "Fleet is opted out from automated modernization.", + "Fleet is eligible for modernization.", + "Modernization of one or more clusters in a fleet is in progress.", + "Modernization of all the fleet's clusters is complete. Soaking before finalizing the modernization.", + "Modernization is finalized for all clusters in a fleet. Rollback is no longer allowed.", + "Rollback is in progress for modernization of all clusters in a fleet." ], "type": "string" }, diff --git a/discovery/googleapis/gkehub__v2.json b/discovery/googleapis/gkehub__v2.json index 79273d5a9..aca2d393d 100644 --- a/discovery/googleapis/gkehub__v2.json +++ b/discovery/googleapis/gkehub__v2.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250720", + "revision": "20250907", "rootUrl": "https://gkehub.googleapis.com/", "servicePath": "", "title": "GKE Hub API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -628,8 +628,7 @@ "IN_PROGRESS", "SOAKING", "FORCED_SOAKING", - "COMPLETE", - "FORCED_COMPLETE" + "COMPLETE" ], "enumDescriptions": [ "Required by https://linter.aip.dev/126/unspecified.", @@ -638,8 +637,7 @@ "The upgrade is in progress. At the scope level, this means the upgrade is in progress for at least one cluster in the scope.", "The upgrade has finished and is soaking until the soaking time is up. At the scope level, this means at least one cluster is in soaking while the rest are either soaking or complete.", "A cluster will be forced to enter soaking if an upgrade doesn't finish within a certain limit, despite it's actual status.", - "The upgrade has passed all post conditions (soaking). At the scope level, this means all eligible clusters are in COMPLETE status.", - "The upgrade was forced into soaking and the soaking time has passed. This is the equivalent of COMPLETE status for upgrades that were forced into soaking." + "The upgrade has passed all post conditions (soaking). At the scope level, this means all eligible clusters are in COMPLETE status." ], "type": "string" }, @@ -3067,7 +3065,18 @@ "MODERNIZATION_IN_PROGRESS", "MODERNIZATION_COMPLETED", "MODERNIZATION_ABORTED", - "MODERNIZATION_WILL_BE_SCHEDULED" + "MODERNIZATION_PREPARING", + "MODERNIZATION_STALLED", + "MODERNIZATION_PREPARED", + "MODERNIZATION_MIGRATING_WORKLOADS", + "MODERNIZATION_ROLLING_BACK_CLUSTER", + "MODERNIZATION_WILL_BE_SCHEDULED", + "MODERNIZATION_MANUAL", + "MODERNIZATION_ELIGIBLE", + "MODERNIZATION_MODERNIZING", + "MODERNIZATION_MODERNIZED_SOAKING", + "MODERNIZATION_FINALIZED", + "MODERNIZATION_ROLLING_BACK_FLEET" ], "enumDescriptions": [ "Default Unspecified code", @@ -3111,7 +3120,18 @@ "Modernization is in progress for a cluster.", "Modernization is completed for a cluster.", "Modernization is aborted for a cluster.", - "Modernization will be scheduled for a fleet." + "Preparing cluster so that its workloads can be migrated.", + "Modernization is stalled for a cluster.", + "Cluster has been prepared for its workloads to be migrated.", + "Migrating the cluster's workloads to the new implementation.", + "Rollback is in progress for modernization of a cluster.", + "Modernization will be scheduled for a fleet.", + "Fleet is opted out from automated modernization.", + "Fleet is eligible for modernization.", + "Modernization of one or more clusters in a fleet is in progress.", + "Modernization of all the fleet's clusters is complete. Soaking before finalizing the modernization.", + "Modernization is finalized for all clusters in a fleet. Rollback is no longer allowed.", + "Rollback is in progress for modernization of all clusters in a fleet." ], "type": "string" }, @@ -3298,7 +3318,7 @@ "MANAGEMENT_NOT_INSTALLED" ], "enumDescriptions": [ - "Unspecified", + "Unspecified.", "Google should manage my Service Mesh for the cluster.", "User will manually configure their service mesh components.", "Google should remove any managed Service Mesh components from this cluster and deprovision any resources." diff --git a/discovery/googleapis/gkeonprem__v1.json b/discovery/googleapis/gkeonprem__v1.json index 6f74c2227..ba707a0f5 100644 --- a/discovery/googleapis/gkeonprem__v1.json +++ b/discovery/googleapis/gkeonprem__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250606", + "revision": "20250908", "rootUrl": "https://gkeonprem.googleapis.com/", "servicePath": "", "title": "GKE On-Prem API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -5697,6 +5697,10 @@ "$ref": "VmwareAdminPrivateRegistryConfig", "description": "Configuration for registry." }, + "proxy": { + "$ref": "VmwareAdminProxy", + "description": "Configuration for proxy." + }, "reconciling": { "description": "Output only. If set, there are currently changes in flight to the VMware admin cluster.", "readOnly": true, @@ -5942,6 +5946,21 @@ }, "type": "object" }, + "VmwareAdminProxy": { + "description": "VmwareAdminProxy represents configuration for admin cluster proxy.", + "id": "VmwareAdminProxy", + "properties": { + "noProxy": { + "description": "A comma-separated list of IP addresses, IP address ranges, host names, and domain names that should not go through the proxy server. When Google Distributed Cloud sends a request to one of these addresses, hosts, or domains, the request is sent directly.", + "type": "string" + }, + "url": { + "description": "The HTTP address of proxy server.", + "type": "string" + } + }, + "type": "object" + }, "VmwareAdminSeesawConfig": { "description": "VmwareSeesawConfig represents configuration parameters for an already existing Seesaw load balancer. IMPORTANT: Please note that the Anthos On-Prem API will not generate or update Seesaw configurations it can only bind a pre-existing configuration to a new user cluster. IMPORTANT: When attempting to create a user cluster with a pre-existing Seesaw load balancer you will need to follow some preparation steps before calling the 'CreateVmwareCluster' API method. First you will need to create the user cluster's namespace via kubectl. The namespace will need to use the following naming convention : -gke-onprem-mgmt or -gke-onprem-mgmt depending on whether you used the 'VmwareCluster.local_name' to disambiguate collisions; for more context see the documentation of 'VmwareCluster.local_name'. Once the namespace is created you will need to create a secret resource via kubectl. This secret will contain copies of your Seesaw credentials. The Secret must be called 'user-cluster-creds' and contain Seesaw's SSH and Cert credentials. The credentials must be keyed with the following names: 'seesaw-ssh-private-key', 'seesaw-ssh-public-key', 'seesaw-ssh-ca-key', 'seesaw-ssh-ca-cert'.", "id": "VmwareAdminSeesawConfig", diff --git a/discovery/googleapis/groupsmigration__v1.json b/discovery/googleapis/groupsmigration__v1.json index 2b173947d..8692fa3df 100644 --- a/discovery/googleapis/groupsmigration__v1.json +++ b/discovery/googleapis/groupsmigration__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20210304", + "revision": "20250901", "rootUrl": "https://groupsmigration.googleapis.com/", "servicePath": "", "title": "Groups Migration API", diff --git a/discovery/googleapis/healthcare__v1.json b/discovery/googleapis/healthcare__v1.json index 020e51515..eb3af1d6d 100644 --- a/discovery/googleapis/healthcare__v1.json +++ b/discovery/googleapis/healthcare__v1.json @@ -28,7 +28,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250710", + "revision": "20250904", "rootUrl": "https://healthcare.googleapis.com/", "servicePath": "", "title": "Cloud Healthcare API", @@ -152,7 +152,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -4202,7 +4202,7 @@ ] }, "search": { - "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/fhir/STU3/http.html#search), [R4](https://hl7.org/fhir/R4/http.html#search), [R5](https://hl7.org/fhir/R5/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/fhir/DSTU2/search.html), [STU3](https://hl7.org/fhir/STU3/search.html), [R4](https://hl7.org/fhir/R4/search.html), [R5](https://hl7.org/fhir/R5/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/fhir/R4/searchparameter-registry.html), [R5](https://hl7.org/fhir/R5/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4 and R5). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changed, and the time when the change reflects in search results. The only exception is resource identifier data, which is indexed synchronously as a special index. As a result, searching using resource identifier is not subject to indexing delay. To use the special synchronous index, the search term for identifier should be in the pattern `identifier=[system]|[value]` or `identifier=[value]`, and any of the following search result parameters can be used: * `_count` * `_include` * `_revinclude` * `_summary` * `_elements` If your query contains any other search parameters, the standard asynchronous index will be used instead. Note that searching against the special index is optimized for resolving a small number of matches. The search isn't optimized if your identifier search criteria matches a large number (i.e. more than 2,000) of resources. For a search query that will match a large number of resources, you can avoiding using the special synchronous index by including an additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if you want to keep the default sorting order. Note: The special synchronous identifier index are currently disabled for DocumentReference and DocumentManifest searches. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", + "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/fhir/STU3/http.html#search), [R4](https://hl7.org/fhir/R4/http.html#search), [R5](https://hl7.org/fhir/R5/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/fhir/DSTU2/search.html), [STU3](https://hl7.org/fhir/STU3/search.html), [R4](https://hl7.org/fhir/R4/search.html), [R5](https://hl7.org/fhir/R5/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/fhir/R4/searchparameter-registry.html), [R5](https://hl7.org/fhir/R5/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4 and R5). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changed, and the time when the change reflects in search results. The only exception is resource identifier data, which is indexed synchronously as a special index. As a result, searching using resource identifier is not subject to indexing delay. To use the special synchronous index, the search term for identifier should be in the pattern `identifier=[system]|[value]` or `identifier=[value]`, and any of the following search result parameters can be used: * `_count` * `_include` * `_revinclude` * `_summary` * `_elements` If your query contains any other search parameters, the standard asynchronous index will be used instead. Note that searching against the special index is optimized for resolving a small number of matches. The search isn't optimized if your identifier search criteria matches a large number (i.e. more than 2,000) of resources. For a search query that will match a large number of resources, you can avoiding using the special synchronous index by including an additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if you want to keep the default sorting order. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/_search", "httpMethod": "POST", "id": "healthcare.projects.locations.datasets.fhirStores.fhir.search", @@ -4231,7 +4231,7 @@ ] }, "search-type": { - "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/fhir/STU3/http.html#search), [R4](https://hl7.org/fhir/R4/http.html#search), [R5](https://hl7.org/fhir/R5/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/fhir/DSTU2/search.html), [STU3](https://hl7.org/fhir/STU3/search.html), [R4](https://hl7.org/fhir/R4/search.html), [R5](https://hl7.org/fhir/R5/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/fhir/R4/searchparameter-registry.html), [R5](https://hl7.org/fhir/R5/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4 and R5). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changed, and the time when the change reflects in search results. The only exception is resource identifier data, which is indexed synchronously as a special index. As a result, searching using resource identifier is not subject to indexing delay. To use the special synchronous index, the search term for identifier should be in the pattern `identifier=[system]|[value]` or `identifier=[value]`, and any of the following search result parameters can be used: * `_count` * `_include` * `_revinclude` * `_summary` * `_elements` If your query contains any other search parameters, the standard asynchronous index will be used instead. Note that searching against the special index is optimized for resolving a small number of matches. The search isn't optimized if your identifier search criteria matches a large number (i.e. more than 2,000) of resources. For a search query that will match a large number of resources, you can avoiding using the special synchronous index by including an additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if you want to keep the default sorting order. Note: The special synchronous identifier index are currently disabled for DocumentReference and DocumentManifest searches. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", + "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/fhir/STU3/http.html#search), [R4](https://hl7.org/fhir/R4/http.html#search), [R5](https://hl7.org/fhir/R5/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/fhir/DSTU2/search.html), [STU3](https://hl7.org/fhir/STU3/search.html), [R4](https://hl7.org/fhir/R4/search.html), [R5](https://hl7.org/fhir/R5/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/fhir/R4/searchparameter-registry.html), [R5](https://hl7.org/fhir/R5/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4 and R5). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changed, and the time when the change reflects in search results. The only exception is resource identifier data, which is indexed synchronously as a special index. As a result, searching using resource identifier is not subject to indexing delay. To use the special synchronous index, the search term for identifier should be in the pattern `identifier=[system]|[value]` or `identifier=[value]`, and any of the following search result parameters can be used: * `_count` * `_include` * `_revinclude` * `_summary` * `_elements` If your query contains any other search parameters, the standard asynchronous index will be used instead. Note that searching against the special index is optimized for resolving a small number of matches. The search isn't optimized if your identifier search criteria matches a large number (i.e. more than 2,000) of resources. For a search query that will match a large number of resources, you can avoiding using the special synchronous index by including an additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if you want to keep the default sorting order. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{resourceType}/_search", "httpMethod": "POST", "id": "healthcare.projects.locations.datasets.fhirStores.fhir.search-type", @@ -5153,7 +5153,7 @@ "No log level specified. This value is unused.", "No additional consent-related logging is added to audit logs.", "The following information is included: * One of the following [`consentMode`](https://cloud.google.com/healthcare-api/docs/fhir-consent#audit_logs) fields: (`off`|`emptyScope`|`enforced`|`btg`|`bypass`). * The accessor's request headers * The `log_level` of the AccessDeterminationLogConfig * The final consent evaluation (`PERMIT`, `DENY`, or `NO_CONSENT`) * A human-readable summary of the evaluation", - "Includes `MINIMUM` and, for each resource owner, returns: * The resource owner's name * Most specific part of the `X-Consent-Scope` resulting in consensual determination * Timestamp of the applied enforcement leading to the decision * Enforcement version at the time the applicable consents were applied * The Consent resource name * The timestamp of the Consent resource used for enforcement * Policy type (`PATIENT` or `ADMIN`) Note that this mode adds some overhead to CRUD operations." + "Includes `MINIMUM` and, for each resource owner, returns: * The resource owner's name * Most specific part of the `X-Consent-Scope` resulting in consensual determination * Timestamp of the applied enforcement leading to the decision * Enforcement version at the time the applicable consents were applied * The Consent resource name * The timestamp of the Consent resource used for enforcement * Policy type (`PATIENT` or `ADMIN`) Due to the limited space for logging, this mode is the same as `MINIMUM` for methods that return multiple resources (such as FHIR Search)." ], "type": "string" } diff --git a/discovery/googleapis/iam__v1.json b/discovery/googleapis/iam__v1.json index 8dacbd1e8..27d1b436a 100644 --- a/discovery/googleapis/iam__v1.json +++ b/discovery/googleapis/iam__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250718", + "revision": "20250905", "rootUrl": "https://iam.googleapis.com/", "servicePath": "", "title": "Identity and Access Management (IAM) API", @@ -281,7 +281,7 @@ "type": "string" }, "pageSize": { - "description": "The maximum number of pools to return. If unspecified, at most 50 pools will be returned. The maximum value is 1000; values above 1000 are truncated to 1000.", + "description": "The maximum number of pools to return. The default value is 50. The maximum value is 100.", "format": "int32", "location": "query", "type": "integer" @@ -2582,7 +2582,7 @@ ], "parameters": { "name": { - "description": "Output only. The resource name of the managed identity.", + "description": "Identifier. The resource name of the managed identity.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/namespaces/[^/]+/managedIdentities/[^/]+$", "required": true, @@ -2952,7 +2952,7 @@ ], "parameters": { "name": { - "description": "Output only. The resource name of the provider.", + "description": "Identifier. The resource name of the provider.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+$", "required": true, @@ -6324,14 +6324,14 @@ "type": "string" }, "expireTime": { - "description": "Output only. Time after which the workload pool provider will be permanently purged and cannot be recovered.", + "description": "Output only. Time after which the workforce identity pool provider will be permanently purged and cannot be recovered.", "format": "google-datetime", "readOnly": true, "type": "string" }, "extendedAttributesOauth2Client": { "$ref": "GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2Client", - "description": "Optional. The configuration for OAuth 2.0 client used to get the extended group memberships for user identities. Only the `AZURE_AD_GROUPS_ID` attribute type is supported. Extended groups supports a subset of Google Cloud services. When the user accesses these services, extended group memberships override the mapped `google.groups` attribute. Extended group memberships cannot be used in attribute mapping or attribute condition expressions. To keep extended group memberships up to date, extended groups are retrieved when the user signs in and at regular intervals during the user's active session. Each user identity in the workforce identity pool must map to a specific, unique Microsoft Entra ID user." + "description": "Optional. The configuration for OAuth 2.0 client used to get the extended group memberships for user identities. Only the `AZURE_AD_GROUPS_ID` attribute type is supported. Extended groups supports a subset of Google Cloud services. When the user accesses these services, extended group memberships override the mapped `google.groups` attribute. Extended group memberships cannot be used in attribute mapping or attribute condition expressions. To keep extended group memberships up to date, extended groups are retrieved when the user signs in and at regular intervals during the user's active session. Each user identity in the workforce identity pool must map to a unique Microsoft Entra ID user." }, "extraAttributesOauth2Client": { "$ref": "GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2Client", @@ -6574,11 +6574,11 @@ "id": "WorkloadIdentityPoolManagedIdentity", "properties": { "description": { - "description": "A description of the managed identity. Cannot exceed 256 characters.", + "description": "Optional. A description of the managed identity. Cannot exceed 256 characters.", "type": "string" }, "disabled": { - "description": "Whether the managed identity is disabled. If disabled, credentials may no longer be issued for the identity, however existing credentials will still be accepted until they expire.", + "description": "Optional. Whether the managed identity is disabled. If disabled, credentials may no longer be issued for the identity, however existing credentials will still be accepted until they expire.", "type": "boolean" }, "expireTime": { @@ -6588,8 +6588,7 @@ "type": "string" }, "name": { - "description": "Output only. The resource name of the managed identity.", - "readOnly": true, + "description": "Identifier. The resource name of the managed identity.", "type": "string" }, "state": { @@ -6615,11 +6614,11 @@ "id": "WorkloadIdentityPoolNamespace", "properties": { "description": { - "description": "A description of the namespace. Cannot exceed 256 characters.", + "description": "Optional. A description of the namespace. Cannot exceed 256 characters.", "type": "string" }, "disabled": { - "description": "Whether the namespace is disabled. If disabled, credentials may no longer be issued for identities within this namespace, however existing credentials will still be accepted until they expire.", + "description": "Optional. Whether the namespace is disabled. If disabled, credentials may no longer be issued for identities within this namespace, however existing credentials will still be accepted until they expire.", "type": "boolean" }, "expireTime": { @@ -6700,8 +6699,7 @@ "type": "string" }, "name": { - "description": "Output only. The resource name of the provider.", - "readOnly": true, + "description": "Identifier. The resource name of the provider.", "type": "string" }, "oidc": { diff --git a/discovery/googleapis/language__v1.json b/discovery/googleapis/language__v1.json index e6129faab..d51ee2839 100644 --- a/discovery/googleapis/language__v1.json +++ b/discovery/googleapis/language__v1.json @@ -28,7 +28,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250518", + "revision": "20250824", "rootUrl": "https://language.googleapis.com/", "servicePath": "", "title": "Cloud Natural Language API", @@ -699,6 +699,7 @@ "CUSTOM", "E2", "G2", + "G4", "C3", "M2", "M1", @@ -718,6 +719,7 @@ "", "", "GPU-based machine, skip quota reporting.", + "GPU-based machine, skip quota reporting.", "", "MEMORY_OPTIMIZED_UPGRADE_PREMIUM", "MEMORY_OPTIMIZED", @@ -879,6 +881,7 @@ "G2_STANDARD_32", "G2_STANDARD_48", "G2_STANDARD_96", + "G4_STANDARD_48", "C3_STANDARD_4", "C3_STANDARD_8", "C3_STANDARD_22", @@ -1064,6 +1067,7 @@ "", "", "", + "", "" ], "type": "string" @@ -1449,7 +1453,8 @@ "NVIDIA_TESLA_V100", "NVIDIA_H100_80GB", "NVIDIA_H100_MEGA_80GB", - "NVIDIA_H200_141GB" + "NVIDIA_H200_141GB", + "NVIDIA_RTX_PRO_6000" ], "enumDescriptions": [ "", @@ -1465,6 +1470,7 @@ "", "", "", + "", "" ], "type": "string" @@ -1620,6 +1626,7 @@ "G2_STANDARD_32", "G2_STANDARD_48", "G2_STANDARD_96", + "G4_STANDARD_48", "C3_STANDARD_4", "C3_STANDARD_8", "C3_STANDARD_22", @@ -1805,6 +1812,7 @@ "", "", "", + "", "" ], "type": "string" @@ -2312,6 +2320,7 @@ "G2_STANDARD_32", "G2_STANDARD_48", "G2_STANDARD_96", + "G4_STANDARD_48", "C3_STANDARD_4", "C3_STANDARD_8", "C3_STANDARD_22", @@ -2497,6 +2506,7 @@ "", "", "", + "", "" ], "type": "string" @@ -2519,6 +2529,7 @@ "CUSTOM", "E2", "G2", + "G4", "C3", "M2", "M1", @@ -2539,6 +2550,7 @@ "", "", "", + "", "MEMORY_OPTIMIZED_UPGRADE_PREMIUM", "MEMORY_OPTIMIZED", "", diff --git a/discovery/googleapis/language__v2.json b/discovery/googleapis/language__v2.json index 9d6673b63..c6970c86e 100644 --- a/discovery/googleapis/language__v2.json +++ b/discovery/googleapis/language__v2.json @@ -28,7 +28,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250518", + "revision": "20250824", "rootUrl": "https://language.googleapis.com/", "servicePath": "", "title": "Cloud Natural Language API", @@ -524,6 +524,7 @@ "CUSTOM", "E2", "G2", + "G4", "C3", "M2", "M1", @@ -543,6 +544,7 @@ "", "", "GPU-based machine, skip quota reporting.", + "GPU-based machine, skip quota reporting.", "", "MEMORY_OPTIMIZED_UPGRADE_PREMIUM", "MEMORY_OPTIMIZED", @@ -704,6 +706,7 @@ "G2_STANDARD_32", "G2_STANDARD_48", "G2_STANDARD_96", + "G4_STANDARD_48", "C3_STANDARD_4", "C3_STANDARD_8", "C3_STANDARD_22", @@ -889,6 +892,7 @@ "", "", "", + "", "" ], "type": "string" @@ -1088,7 +1092,8 @@ "NVIDIA_TESLA_V100", "NVIDIA_H100_80GB", "NVIDIA_H100_MEGA_80GB", - "NVIDIA_H200_141GB" + "NVIDIA_H200_141GB", + "NVIDIA_RTX_PRO_6000" ], "enumDescriptions": [ "", @@ -1104,6 +1109,7 @@ "", "", "", + "", "" ], "type": "string" @@ -1259,6 +1265,7 @@ "G2_STANDARD_32", "G2_STANDARD_48", "G2_STANDARD_96", + "G4_STANDARD_48", "C3_STANDARD_4", "C3_STANDARD_8", "C3_STANDARD_22", @@ -1444,6 +1451,7 @@ "", "", "", + "", "" ], "type": "string" @@ -1706,6 +1714,7 @@ "G2_STANDARD_32", "G2_STANDARD_48", "G2_STANDARD_96", + "G4_STANDARD_48", "C3_STANDARD_4", "C3_STANDARD_8", "C3_STANDARD_22", @@ -1891,6 +1900,7 @@ "", "", "", + "", "" ], "type": "string" @@ -1913,6 +1923,7 @@ "CUSTOM", "E2", "G2", + "G4", "C3", "M2", "M1", @@ -1933,6 +1944,7 @@ "", "", "", + "", "MEMORY_OPTIMIZED_UPGRADE_PREMIUM", "MEMORY_OPTIMIZED", "", diff --git a/discovery/googleapis/logging__v2.json b/discovery/googleapis/logging__v2.json index 4bc6c2999..598710840 100644 --- a/discovery/googleapis/logging__v2.json +++ b/discovery/googleapis/logging__v2.json @@ -28,11 +28,126 @@ "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/logging/docs/", "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.africa-south1.rep.googleapis.com/", + "location": "africa-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.asia-east1.rep.googleapis.com/", + "location": "asia-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.asia-east2.rep.googleapis.com/", + "location": "asia-east2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.asia-northeast1.rep.googleapis.com/", + "location": "asia-northeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.asia-northeast2.rep.googleapis.com/", + "location": "asia-northeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.asia-northeast3.rep.googleapis.com/", + "location": "asia-northeast3" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.asia-south1.rep.googleapis.com/", + "location": "asia-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.asia-south2.rep.googleapis.com/", + "location": "asia-south2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.asia-southeast1.rep.googleapis.com/", + "location": "asia-southeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.asia-southeast2.rep.googleapis.com/", + "location": "asia-southeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.australia-southeast1.rep.googleapis.com/", + "location": "australia-southeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.australia-southeast2.rep.googleapis.com/", + "location": "australia-southeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.europe-central2.rep.googleapis.com/", + "location": "europe-central2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.europe-north1.rep.googleapis.com/", + "location": "europe-north1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.europe-north2.rep.googleapis.com/", + "location": "europe-north2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.europe-southwest1.rep.googleapis.com/", + "location": "europe-southwest1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.europe-west1.rep.googleapis.com/", + "location": "europe-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.europe-west10.rep.googleapis.com/", + "location": "europe-west10" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.europe-west12.rep.googleapis.com/", + "location": "europe-west12" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.europe-west15.rep.googleapis.com/", + "location": "europe-west15" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.europe-west2.rep.googleapis.com/", + "location": "europe-west2" + }, { "description": "Regional Endpoint", "endpointUrl": "https://logging.europe-west3.rep.googleapis.com/", "location": "europe-west3" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.europe-west4.rep.googleapis.com/", + "location": "europe-west4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.europe-west6.rep.googleapis.com/", + "location": "europe-west6" + }, { "description": "Regional Endpoint", "endpointUrl": "https://logging.europe-west8.rep.googleapis.com/", @@ -43,11 +158,46 @@ "endpointUrl": "https://logging.europe-west9.rep.googleapis.com/", "location": "europe-west9" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.me-central1.rep.googleapis.com/", + "location": "me-central1" + }, { "description": "Regional Endpoint", "endpointUrl": "https://logging.me-central2.rep.googleapis.com/", "location": "me-central2" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.me-west1.rep.googleapis.com/", + "location": "me-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.northamerica-northeast1.rep.googleapis.com/", + "location": "northamerica-northeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.northamerica-northeast2.rep.googleapis.com/", + "location": "northamerica-northeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.northamerica-south1.rep.googleapis.com/", + "location": "northamerica-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.southamerica-east1.rep.googleapis.com/", + "location": "southamerica-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://logging.southamerica-west1.rep.googleapis.com/", + "location": "southamerica-west1" + }, { "description": "Regional Endpoint", "endpointUrl": "https://logging.us-central1.rep.googleapis.com/", @@ -129,7 +279,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250704", + "revision": "20250905", "rootUrl": "https://logging.googleapis.com/", "servicePath": "", "title": "Cloud Logging API", @@ -474,7 +624,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -2285,7 +2435,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -3049,7 +3199,7 @@ "type": "string" }, "parent": { - "description": "Required. The parent project in which to create the log scope \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global\"", + "description": "Required. The parent resource in which to create the log scope: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global\"", "location": "path", "pattern": "^folders/[^/]+/locations/[^/]+$", "required": true, @@ -3078,7 +3228,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the log scope to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/logScopes/[LOG_SCOPE_ID]\" For example:\"projects/my-project/locations/global/logScopes/my-log-scope\"", + "description": "Required. The resource name of the log scope to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global/logScopes/my-log-scope\"", "location": "path", "pattern": "^folders/[^/]+/locations/[^/]+/logScopes/[^/]+$", "required": true, @@ -3104,7 +3254,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the log scope: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/logScopes/[LOG_SCOPE_ID]\" For example:\"projects/my-project/locations/global/logScopes/my-log-scope\"", + "description": "Required. The resource name of the log scope: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global/logScopes/my-log-scope\"", "location": "path", "pattern": "^folders/[^/]+/locations/[^/]+/logScopes/[^/]+$", "required": true, @@ -3872,7 +4022,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -5115,7 +5265,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -5879,7 +6029,7 @@ "type": "string" }, "parent": { - "description": "Required. The parent project in which to create the log scope \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global\"", + "description": "Required. The parent resource in which to create the log scope: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global\"", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+$", "required": true, @@ -5908,7 +6058,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the log scope to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/logScopes/[LOG_SCOPE_ID]\" For example:\"projects/my-project/locations/global/logScopes/my-log-scope\"", + "description": "Required. The resource name of the log scope to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global/logScopes/my-log-scope\"", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/logScopes/[^/]+$", "required": true, @@ -5934,7 +6084,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the log scope: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/logScopes/[LOG_SCOPE_ID]\" For example:\"projects/my-project/locations/global/logScopes/my-log-scope\"", + "description": "Required. The resource name of the log scope: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global/logScopes/my-log-scope\"", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/logScopes/[^/]+$", "required": true, @@ -6923,7 +7073,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -7687,7 +7837,7 @@ "type": "string" }, "parent": { - "description": "Required. The parent project in which to create the log scope \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global\"", + "description": "Required. The parent resource in which to create the log scope: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global\"", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -7716,7 +7866,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the log scope to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/logScopes/[LOG_SCOPE_ID]\" For example:\"projects/my-project/locations/global/logScopes/my-log-scope\"", + "description": "Required. The resource name of the log scope to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global/logScopes/my-log-scope\"", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/logScopes/[^/]+$", "required": true, @@ -7742,7 +7892,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the log scope: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/logScopes/[LOG_SCOPE_ID]\" For example:\"projects/my-project/locations/global/logScopes/my-log-scope\"", + "description": "Required. The resource name of the log scope: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global/logScopes/my-log-scope\"", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/logScopes/[^/]+$", "required": true, @@ -10493,7 +10643,7 @@ "type": "string" }, "resourceNames": { - "description": "Required. Names of one or more parent resources: projects/[PROJECT_ID]May alternatively be one or more views: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]A log scope can include a maximum of 5 projects and a maximum of 100 resources in total.", + "description": "Required. Names of one or more parent resources (organizations and folders are not supported.): projects/[PROJECT_ID]May alternatively be one or more views: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]A log scope can include a maximum of 5 projects and a maximum of 100 resources in total.", "items": { "type": "string" }, @@ -11019,7 +11169,8 @@ "description": "Logging query that can be executed in Logs Explorer or via Logging API." }, "name": { - "description": "Optional. Resource name of the recent query.In the format: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/recentQueries/[QUERY_ID]\" For a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support)The QUERY_ID is a system generated alphanumeric ID.", + "description": "Output only. Resource name of the recent query.In the format: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/recentQueries/[QUERY_ID]\" For a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support)The QUERY_ID is a system generated alphanumeric ID.", + "readOnly": true, "type": "string" }, "opsAnalyticsQuery": { diff --git a/discovery/googleapis/looker__v1.json b/discovery/googleapis/looker__v1.json index 6ec23c218..e6f0f019f 100644 --- a/discovery/googleapis/looker__v1.json +++ b/discovery/googleapis/looker__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250721", + "revision": "20250824", "rootUrl": "https://looker.googleapis.com/", "servicePath": "", "title": "Looker (Google Cloud core) API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1526,6 +1526,11 @@ "readOnly": true, "type": "string" }, + "failureReason": { + "description": "Output only. Reason the service attachment creation failed. This value will only be populated if the service attachment encounters an issue during provisioning.", + "readOnly": true, + "type": "string" + }, "localFqdn": { "description": "Optional. Fully qualified domain name that will be used in the private DNS record created for the service attachment.", "type": "string" diff --git a/discovery/googleapis/managedkafka__v1.json b/discovery/googleapis/managedkafka__v1.json index 1cad76e9c..ce59f6a21 100644 --- a/discovery/googleapis/managedkafka__v1.json +++ b/discovery/googleapis/managedkafka__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250701", + "revision": "20250901", "rootUrl": "https://managedkafka.googleapis.com/", "servicePath": "", "title": "Managed Service for Apache Kafka API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1536,6 +1536,21 @@ "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" + }, + "view": { + "description": "Optional. Specifies the view to return for the schema registry instances. If not specified, the default view is SCHEMA_REGISTRY_VIEW_BASIC.", + "enum": [ + "SCHEMA_REGISTRY_VIEW_UNSPECIFIED", + "SCHEMA_REGISTRY_VIEW_BASIC", + "SCHEMA_REGISTRY_VIEW_FULL" + ], + "enumDescriptions": [ + "The unset value. The API will default to SCHEMA_REGISTRY_VIEW_BASIC.", + "If SchemaRegistryView is not specified, this is the default value. Returns only the name of the schema registry. The contexts associated with it are not included.", + "Returns the name of the schema registry and all the contexts associated with it." + ], + "location": "query", + "type": "string" } }, "path": "v1/{+parent}/schemaRegistries", @@ -3167,6 +3182,10 @@ "$ref": "TlsConfig", "description": "Optional. TLS configuration for the Kafka cluster." }, + "updateOptions": { + "$ref": "UpdateOptions", + "description": "Optional. UpdateOptions represents options that control how updates to the cluster are applied." + }, "updateTime": { "description": "Output only. The time when the cluster was last updated.", "format": "google-datetime", @@ -4247,6 +4266,17 @@ }, "type": "object" }, + "UpdateOptions": { + "description": "UpdateOptions specifies options that influence how a cluster update is applied. These options control the behavior of the update process, rather than defining the desired end-state of a cluster.", + "id": "UpdateOptions", + "properties": { + "allowBrokerDownscaleOnClusterUpscale": { + "description": "Optional. If true, allows an update operation that increases the total vCPU and/or memory allocation of the cluster to significantly decrease the per-broker vCPU and/or memory allocation. This can result in reduced performance and availability. By default, the update operation will fail if an upscale request results in a vCPU or memory allocation for the brokers that is smaller than 90% of the current broker size.", + "type": "boolean" + } + }, + "type": "object" + }, "UpdateSchemaConfigRequest": { "description": "Request for updating schema config. On a SchemaSubject-level SchemaConfig, an unset field will be removed from the SchemaConfig.", "id": "UpdateSchemaConfigRequest", diff --git a/discovery/googleapis/manufacturers__v1.json b/discovery/googleapis/manufacturers__v1.json index fb678f387..f8dc90d6b 100644 --- a/discovery/googleapis/manufacturers__v1.json +++ b/discovery/googleapis/manufacturers__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20240809", + "revision": "20250815", "rootUrl": "https://manufacturers.googleapis.com/", "servicePath": "", "title": "Manufacturer Center API", @@ -660,7 +660,7 @@ "type": "string" }, "code": { - "description": "Required. A unique code to identify the certification.", + "description": "Optional. A unique code to identify the certification.", "type": "string" }, "link": { @@ -803,12 +803,28 @@ "type": "string" }, "code": { - "description": "Required. A unique code to identify the certification.", + "description": "Optional. A unique code to identify the certification.", + "type": "string" + }, + "link": { + "description": "Optional. A URL link to the certification.", + "type": "string" + }, + "logo": { + "description": "Optional. A URL link to the certification logo.", "type": "string" }, "name": { "description": "Required. Name of the certification.", "type": "string" + }, + "validUntil": { + "description": "Optional. The expiration date (UTC).", + "type": "string" + }, + "value": { + "description": "Optional. A custom value of the certification.", + "type": "string" } }, "type": "object" diff --git a/discovery/googleapis/memcache__v1.json b/discovery/googleapis/memcache__v1.json index de1fb6e22..2ec9d8102 100644 --- a/discovery/googleapis/memcache__v1.json +++ b/discovery/googleapis/memcache__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250505", + "revision": "20250821", "rootUrl": "https://memcache.googleapis.com/", "servicePath": "", "title": "Cloud Memorystore for Memcached API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -682,6 +682,39 @@ "properties": {}, "type": "object" }, + "GetTagsRequest": { + "description": "Request message for GetTags.", + "id": "GetTagsRequest", + "properties": { + "name": { + "description": "Required. The full One Platform resource name of the service resource.", + "type": "string" + } + }, + "type": "object" + }, + "GetTagsResponse": { + "description": "Response message for GetTags.", + "id": "GetTagsResponse", + "properties": { + "name": { + "description": "Required. The full One Platform resource name of the service resource.", + "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. Tag keys/values directly bound to this resource. Each item in the map must be expressed as \" : \". For example: \"123/environment\" : \"production\", \"123/costCenter\" : \"marketing\"", + "type": "object" + }, + "tagsEtag": { + "description": "A checksum based on the current bindings. This field is always set in server responses.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudMemcacheV1LocationMetadata": { "description": "Metadata for the given google.cloud.location.Location.", "id": "GoogleCloudMemcacheV1LocationMetadata", @@ -1696,6 +1729,54 @@ }, "type": "object" }, + "SetTagsRequest": { + "description": "Request message for SetTags.", + "id": "SetTagsRequest", + "properties": { + "name": { + "description": "Required. The full One Platform resource name of the service resource.", + "type": "string" + }, + "requestId": { + "description": "Optional. A unique identifier for this request. Must be a valid UUID. This request is only idempotent if a `request_id` is provided.", + "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. These bindings will override any bindings previously set and will be effective immediately. Each item in the map must be expressed as \" : \". For example: \"123/environment\" : \"production\", \"123/costCenter\" : \"marketing\"", + "type": "object" + }, + "tagsEtag": { + "description": "Optional. A checksum based on the current bindings which can be passed to prevent race conditions. If not passed, etag check would be skipped.", + "type": "string" + } + }, + "type": "object" + }, + "SetTagsResponse": { + "description": "Response message for SetTags.", + "id": "SetTagsResponse", + "properties": { + "name": { + "description": "Required. The full One Platform resource name of the service resource.", + "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. Tag keys/values directly bound to this resource. Each item in the map must be expressed as \" : \". For example: \"123/environment\" : \"production\", \"123/costCenter\" : \"marketing\"", + "type": "object" + }, + "tagsEtag": { + "description": "A checksum based on the current bindings. This field is always set in server responses.", + "type": "string" + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", diff --git a/discovery/googleapis/metastore__v1.json b/discovery/googleapis/metastore__v1.json index 89f01b24a..026c917d2 100644 --- a/discovery/googleapis/metastore__v1.json +++ b/discovery/googleapis/metastore__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250622", + "revision": "20250814", "rootUrl": "https://metastore.googleapis.com/", "servicePath": "", "title": "Dataproc Metastore API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/migrationcenter__v1.json b/discovery/googleapis/migrationcenter__v1.json index 6e61ea5f7..8de5cc549 100644 --- a/discovery/googleapis/migrationcenter__v1.json +++ b/discovery/googleapis/migrationcenter__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250429", + "revision": "20250904", "rootUrl": "https://migrationcenter.googleapis.com/", "servicePath": "", "title": "Migration Center API", @@ -173,7 +173,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/ml__v1.json b/discovery/googleapis/ml__v1.json index afaa0c055..a02768237 100644 --- a/discovery/googleapis/ml__v1.json +++ b/discovery/googleapis/ml__v1.json @@ -28,7 +28,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250503", + "revision": "20250823", "rootUrl": "https://ml.googleapis.com/", "servicePath": "", "title": "AI Platform Training & Prediction API", @@ -2995,7 +2995,7 @@ "id": "GoogleCloudMlV1__RequestLoggingConfig", "properties": { "bigqueryTableName": { - "description": "Required. Fully qualified BigQuery table name in the following format: \" project_id.dataset_name.table_name\" The specified table must already exist, and the \"Cloud ML Service Agent\" for your project must have permission to write to it. The table must have the following [schema](/bigquery/docs/schemas): Field nameType Mode model STRING REQUIRED model_version STRING REQUIRED time TIMESTAMP REQUIRED raw_data STRING REQUIRED raw_prediction STRING NULLABLE groundtruth STRING NULLABLE ", + "description": "Required. Fully qualified BigQuery table name in the following format: \" project_id.dataset_name.table_name\" The specified table must already exist, and the \"Cloud ML Service Agent\" for your project must have permission to write to it. The table must have the following [schema](/bigquery/docs/schemas): Field name Type Mode model STRING REQUIRED model_version STRING REQUIRED time TIMESTAMP REQUIRED raw_data STRING REQUIRED raw_prediction STRING NULLABLE groundtruth STRING NULLABLE ", "type": "string" }, "samplingPercentage": { diff --git a/discovery/googleapis/monitoring__v3.json b/discovery/googleapis/monitoring__v3.json index 55effe78b..f5d2205a7 100644 --- a/discovery/googleapis/monitoring__v3.json +++ b/discovery/googleapis/monitoring__v3.json @@ -34,7 +34,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250723", + "revision": "20250731", "rootUrl": "https://monitoring.googleapis.com/", "servicePath": "", "title": "Cloud Monitoring API", @@ -4544,7 +4544,7 @@ "type": "array" }, "duration": { - "description": "The amount of time that a time series must fail to report new data to be considered failing. The minimum value of this field is 120 seconds. Larger values that are a multiple of a minute--for example, 240 or 300 seconds--are supported. If an invalid value is given, an error will be returned. The Duration.nanos field is ignored.", + "description": "Required. The amount of time that a time series must fail to report new data to be considered failing. The minimum value of this field is 120 seconds. Larger values that are a multiple of a minute--for example, 240 or 300 seconds--are supported. If an invalid value is given, an error will be returned.", "format": "google-duration", "type": "string" }, @@ -4787,7 +4787,7 @@ "type": "string" }, "duration": { - "description": "The amount of time that a time series must violate the threshold to be considered failing. Currently, only values that are a multiple of a minute--e.g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given, an error will be returned. When choosing a duration, it is useful to keep in mind the frequency of the underlying time series data (which may also be affected by any alignments specified in the aggregations field); a good duration is long enough so that a single outlier does not generate spurious alerts, but short enough that unhealthy states are detected and alerted on quickly.", + "description": "Required. The amount of time that a time series must violate the threshold to be considered failing. Currently, only values that are a multiple of a minute--e.g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given, an error will be returned. When choosing a duration, it is useful to keep in mind the frequency of the underlying time series data (which may also be affected by any alignments specified in the aggregations field); a good duration is long enough so that a single outlier does not generate spurious alerts, but short enough that unhealthy states are detected and alerted on quickly.", "format": "google-duration", "type": "string" }, @@ -4938,7 +4938,7 @@ "id": "MonitoringQueryLanguageCondition", "properties": { "duration": { - "description": "The amount of time that a time series must violate the threshold to be considered failing. Currently, only values that are a multiple of a minute--e.g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given, an error will be returned. When choosing a duration, it is useful to keep in mind the frequency of the underlying time series data (which may also be affected by any alignments specified in the aggregations field); a good duration is long enough so that a single outlier does not generate spurious alerts, but short enough that unhealthy states are detected and alerted on quickly.", + "description": "Optional. The amount of time that a time series must violate the threshold to be considered failing. Currently, only values that are a multiple of a minute--e.g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given, an error will be returned. When choosing a duration, it is useful to keep in mind the frequency of the underlying time series data (which may also be affected by any alignments specified in the aggregations field); a good duration is long enough so that a single outlier does not generate spurious alerts, but short enough that unhealthy states are detected and alerted on quickly. The default value is zero.", "format": "google-duration", "type": "string" }, diff --git a/discovery/googleapis/mybusinessverifications__v1.json b/discovery/googleapis/mybusinessverifications__v1.json index a50d0e58e..70afacfc5 100644 --- a/discovery/googleapis/mybusinessverifications__v1.json +++ b/discovery/googleapis/mybusinessverifications__v1.json @@ -16,7 +16,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250721", + "revision": "20250804", "rootUrl": "https://mybusinessverifications.googleapis.com/", "servicePath": "", "title": "My Business Verifications API", @@ -543,7 +543,8 @@ "PHONE_CALL", "SMS", "AUTO", - "VETTED_PARTNER" + "VETTED_PARTNER", + "TRUSTED_PARTNER" ], "enumDescriptions": [ "Default value, will result in errors.", @@ -552,7 +553,8 @@ "Make a phone call with a verification PIN to a specific phone number. The PIN is used to complete verification with Google.", "Send an SMS with a verification PIN to a specific phone number. The PIN is used to complete verification with Google.", "Verify the location without additional user action. This option may not be available for all locations.", - "This option may not be available for all locations." + "This option may not be available for all locations.", + "Verify the location via a trusted partner." ], "type": "string" }, @@ -608,7 +610,8 @@ "PHONE_CALL", "SMS", "AUTO", - "VETTED_PARTNER" + "VETTED_PARTNER", + "TRUSTED_PARTNER" ], "enumDescriptions": [ "Default value, will result in errors.", @@ -617,7 +620,8 @@ "Make a phone call with a verification PIN to a specific phone number. The PIN is used to complete verification with Google.", "Send an SMS with a verification PIN to a specific phone number. The PIN is used to complete verification with Google.", "Verify the location without additional user action. This option may not be available for all locations.", - "This option may not be available for all locations." + "This option may not be available for all locations.", + "Verify the location via a trusted partner." ], "type": "string" } @@ -675,7 +679,8 @@ "PHONE_CALL", "SMS", "AUTO", - "VETTED_PARTNER" + "VETTED_PARTNER", + "TRUSTED_PARTNER" ], "enumDescriptions": [ "Default value, will result in errors.", @@ -684,7 +689,8 @@ "Make a phone call with a verification PIN to a specific phone number. The PIN is used to complete verification with Google.", "Send an SMS with a verification PIN to a specific phone number. The PIN is used to complete verification with Google.", "Verify the location without additional user action. This option may not be available for all locations.", - "This option may not be available for all locations." + "This option may not be available for all locations.", + "Verify the location via a trusted partner." ], "type": "string" }, @@ -695,6 +701,10 @@ "token": { "$ref": "VerificationToken", "description": "Optional. The input for VETTED_PARTNER method available to select [partners.](https://support.google.com/business/answer/7674102) The input is not needed for a vetted account. Token that is associated to the location. Token that is associated to the location." + }, + "trustedPartnerToken": { + "description": "The input for TRUSTED_PARTNER method The verification token that is associated to the location.", + "type": "string" } }, "type": "object" diff --git a/discovery/googleapis/netapp__v1.json b/discovery/googleapis/netapp__v1.json index 668b191ff..a1ee20f76 100644 --- a/discovery/googleapis/netapp__v1.json +++ b/discovery/googleapis/netapp__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250604", + "revision": "20250908", "rootUrl": "https://netapp.googleapis.com/", "servicePath": "", "title": "NetApp API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -2913,6 +2913,24 @@ "description": "Optional. Description of the replication.", "type": "string" }, + "hybridReplicationType": { + "description": "Optional. Type of the hybrid replication.", + "enum": [ + "VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED", + "MIGRATION", + "CONTINUOUS_REPLICATION", + "ONPREM_REPLICATION", + "REVERSE_ONPREM_REPLICATION" + ], + "enumDescriptions": [ + "Unspecified hybrid replication type.", + "Hybrid replication type for migration.", + "Hybrid replication type for continuous replication.", + "New field for reversible OnPrem replication, to be used for data protection.", + "New field for reversible OnPrem replication, to be used for data protection." + ], + "type": "string" + }, "labels": { "additionalProperties": { "type": "string" @@ -2920,6 +2938,11 @@ "description": "Optional. Labels to be added to the replication as the key value pairs.", "type": "object" }, + "largeVolumeConstituentCount": { + "description": "Optional. Constituent volume count for large volume.", + "format": "int32", + "type": "integer" + }, "peerClusterName": { "description": "Required. Name of the user's local source cluster to be peered with the destination cluster.", "type": "string" @@ -2942,6 +2965,22 @@ "replication": { "description": "Required. Desired name for the replication of this volume.", "type": "string" + }, + "replicationSchedule": { + "description": "Optional. Replication Schedule for the replication created.", + "enum": [ + "HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED", + "EVERY_10_MINUTES", + "HOURLY", + "DAILY" + ], + "enumDescriptions": [ + "Unspecified HybridReplicationSchedule", + "Replication happens once every 10 minutes.", + "Replication happens once every hour.", + "Replication happens once every day." + ], + "type": "string" } }, "type": "object" @@ -3666,16 +3705,25 @@ "enum": [ "HYBRID_REPLICATION_TYPE_UNSPECIFIED", "MIGRATION", - "CONTINUOUS_REPLICATION" + "CONTINUOUS_REPLICATION", + "ONPREM_REPLICATION", + "REVERSE_ONPREM_REPLICATION" ], "enumDescriptions": [ "Unspecified hybrid replication type.", "Hybrid replication type for migration.", - "Hybrid replication type for continuous replication." + "Hybrid replication type for continuous replication.", + "New field for reversible OnPrem replication, to be used for data protection.", + "Hybrid replication type for incremental Transfer in the reverse direction (GCNV is source and Onprem is destination)" ], "readOnly": true, "type": "string" }, + "hybridReplicationUserCommands": { + "$ref": "UserCommands", + "description": "Output only. Copy pastable snapmirror commands to be executed on onprem cluster by the customer.", + "readOnly": true + }, "labels": { "additionalProperties": { "type": "string" @@ -3692,7 +3740,9 @@ "STOPPED", "TRANSFERRING", "BASELINE_TRANSFERRING", - "ABORTED" + "ABORTED", + "EXTERNALLY_MANAGED", + "PENDING_PEERING" ], "enumDescriptions": [ "Unspecified MirrorState", @@ -3701,7 +3751,9 @@ "Destination volume is not receiving replication transfers.", "Incremental replication is in progress.", "Baseline replication is in progress.", - "Replication is aborted." + "Replication is aborted.", + "Replication is being managed from Onprem ONTAP.", + "Peering is yet to be established." ], "readOnly": true, "type": "string" @@ -3756,7 +3808,9 @@ "DELETING", "ERROR", "PENDING_CLUSTER_PEERING", - "PENDING_SVM_PEERING" + "PENDING_SVM_PEERING", + "PENDING_REMOTE_RESYNC", + "EXTERNALLY_MANAGED_REPLICATION" ], "enumDescriptions": [ "Unspecified replication State", @@ -3766,7 +3820,9 @@ "Replication is deleting.", "Replication is in error state.", "Replication is waiting for cluster peering to be established.", - "Replication is waiting for SVM peering to be established." + "Replication is waiting for SVM peering to be established.", + "Replication is waiting for Commands to be executed on Onprem ONTAP.", + "Onprem ONTAP is destination and Replication can only be managed from Onprem." ], "readOnly": true, "type": "string" @@ -3846,6 +3902,11 @@ "description": "Comma separated list of allowed clients IP addresses", "type": "string" }, + "anonUid": { + "description": "Optional. An integer representing the anonymous user ID. Range is 0 to 4294967295. Required when squash_mode is ROOT_SQUASH or ALL_SQUASH.", + "format": "int64", + "type": "string" + }, "hasRootAccess": { "description": "Whether Unix root access will be granted.", "type": "string" @@ -3881,6 +3942,22 @@ "nfsv4": { "description": "NFS V4 protocol.", "type": "boolean" + }, + "squashMode": { + "description": "Optional. Defines how user identity squashing is applied for this export rule. This field is the preferred way to configure squashing behavior and takes precedence over `has_root_access` if both are provided.", + "enum": [ + "SQUASH_MODE_UNSPECIFIED", + "NO_ROOT_SQUASH", + "ROOT_SQUASH", + "ALL_SQUASH" + ], + "enumDescriptions": [ + "Defaults to NO_ROOT_SQUASH.", + "The root user (UID 0) retains full access. Other users are unaffected.", + "The root user (UID 0) is squashed to anonymous user ID. Other users are unaffected.", + "All users are squashed to anonymous user ID." + ], + "type": "string" } }, "type": "object" @@ -4024,11 +4101,23 @@ "description": "Optional. True if the storage pool supports Auto Tiering enabled volumes. Default is false. Auto-tiering can be enabled after storage pool creation but it can't be disabled once enabled.", "type": "boolean" }, + "availableThroughputMibps": { + "description": "Output only. Available throughput of the storage pool (in MiB/s).", + "format": "double", + "readOnly": true, + "type": "number" + }, "capacityGib": { "description": "Required. Capacity in GIB of the pool", "format": "int64", "type": "string" }, + "coldTierSizeUsedGib": { + "description": "Output only. Total cold tier data rounded down to the nearest GiB used by the storage pool.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "createTime": { "description": "Output only. Create time of the storage pool", "format": "google-datetime", @@ -4072,6 +4161,12 @@ "format": "int64", "type": "string" }, + "hotTierSizeUsedGib": { + "description": "Output only. Total hot tier data rounded down to the nearest GiB used by the storage pool.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "kmsConfig": { "description": "Optional. Specifies the KMS config to be used for volume encryption.", "type": "string" @@ -4099,6 +4194,20 @@ "description": "Optional. This field is not implemented. The values provided in this field are ignored.", "type": "string" }, + "qosType": { + "description": "Optional. QoS (Quality of Service) Type of the storage pool", + "enum": [ + "QOS_TYPE_UNSPECIFIED", + "AUTO", + "MANUAL" + ], + "enumDescriptions": [ + "Unspecified QoS Type", + "QoS Type is Auto", + "QoS Type is Manual" + ], + "type": "string" + }, "replicaZone": { "description": "Optional. Specifies the replica zone for regional storagePool.", "type": "string" @@ -4278,6 +4387,21 @@ }, "type": "object" }, + "UserCommands": { + "description": "UserCommands contains the commands to be executed by the customer.", + "id": "UserCommands", + "properties": { + "commands": { + "description": "Output only. List of commands to be executed by the customer.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "ValidateDirectoryServiceRequest": { "description": "ValidateDirectoryServiceRequest validates the directory service policy attached to the storage pool.", "id": "ValidateDirectoryServiceRequest", @@ -4344,7 +4468,7 @@ "type": "string" }, "coldTierSizeGib": { - "description": "Output only. Size of the volume cold tier data in GiB.", + "description": "Output only. Size of the volume cold tier data rounded down to the nearest GiB.", "format": "int64", "readOnly": true, "type": "string" @@ -4383,6 +4507,12 @@ "readOnly": true, "type": "boolean" }, + "hotTierSizeUsedGib": { + "description": "Output only. Total hot tier data rounded down to the nearest GiB used by the Volume. This field is only used for flex Service Level", + "format": "int64", + "readOnly": true, + "type": "string" + }, "hybridReplicationParameters": { "$ref": "HybridReplicationParameters", "description": "Optional. The Hybrid Replication parameters for the volume." @@ -4600,6 +4730,11 @@ "description": "Required. StoragePool name of the volume", "type": "string" }, + "throughputMibps": { + "description": "Optional. Throughput of the volume (in MiB/s)", + "format": "double", + "type": "number" + }, "tieringPolicy": { "$ref": "TieringPolicy", "description": "Tiering policy for the volume." diff --git a/discovery/googleapis/networkconnectivity__v1.json b/discovery/googleapis/networkconnectivity__v1.json index 0d8c1ac3f..d99058461 100644 --- a/discovery/googleapis/networkconnectivity__v1.json +++ b/discovery/googleapis/networkconnectivity__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250703", + "revision": "20250910", "rootUrl": "https://networkconnectivity.googleapis.com/", "servicePath": "", "title": "Network Connectivity API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1544,6 +1544,457 @@ } } }, + "multicloudDataTransferConfigs": { + "methods": { + "create": { + "description": "Creates a `MulticloudDataTransferConfig` resource in a specified project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/multicloudDataTransferConfigs", + "httpMethod": "POST", + "id": "networkconnectivity.projects.locations.multicloudDataTransferConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "multicloudDataTransferConfigId": { + "description": "Required. The ID to use for the `MulticloudDataTransferConfig` resource, which becomes the final component of the `MulticloudDataTransferConfig` resource name.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server waits for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, can ignore the second request. This prevents clients from accidentally creating duplicate `MulticloudDataTransferConfig` resources. The request ID must be a valid UUID with the exception that zero UUID (00000000-0000-0000-0000-000000000000) isn't supported.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/multicloudDataTransferConfigs", + "request": { + "$ref": "MulticloudDataTransferConfig" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a `MulticloudDataTransferConfig` resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/multicloudDataTransferConfigs/{multicloudDataTransferConfigsId}", + "httpMethod": "DELETE", + "id": "networkconnectivity.projects.locations.multicloudDataTransferConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "etag": { + "description": "Optional. The etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The name of the `MulticloudDataTransferConfig` resource to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/multicloudDataTransferConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server waits for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, can ignore the second request. This prevents clients from accidentally creating duplicate `MulticloudDataTransferConfig` resources. The request ID must be a valid UUID with the exception that zero UUID (00000000-0000-0000-0000-000000000000) isn't supported.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the details of a `MulticloudDataTransferConfig` resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/multicloudDataTransferConfigs/{multicloudDataTransferConfigsId}", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.multicloudDataTransferConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the `MulticloudDataTransferConfig` resource to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/multicloudDataTransferConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "MulticloudDataTransferConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists the `MulticloudDataTransferConfig` resources in a specified project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/multicloudDataTransferConfigs", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.multicloudDataTransferConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An expression that filters the results listed in the response.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. The sort order of the results.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of results listed per page.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Optional. If `true`, allows partial responses for multi-regional aggregated list requests.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/multicloudDataTransferConfigs", + "response": { + "$ref": "ListMulticloudDataTransferConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a `MulticloudDataTransferConfig` resource in a specified project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/multicloudDataTransferConfigs/{multicloudDataTransferConfigsId}", + "httpMethod": "PATCH", + "id": "networkconnectivity.projects.locations.multicloudDataTransferConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The name of the `MulticloudDataTransferConfig` resource. Format: `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/multicloudDataTransferConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server waits for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, can ignore the second request. This prevents clients from accidentally creating duplicate `MulticloudDataTransferConfig` resources. The request ID must be a valid UUID with the exception that zero UUID (00000000-0000-0000-0000-000000000000) isn't supported.", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Optional. `FieldMask` is used to specify the fields in the `MulticloudDataTransferConfig` resource to be overwritten by the update. The fields specified in `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If you don't specify a mask, all fields are overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "MulticloudDataTransferConfig" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "destinations": { + "methods": { + "create": { + "description": "Creates a `Destination` resource in a specified project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/multicloudDataTransferConfigs/{multicloudDataTransferConfigsId}/destinations", + "httpMethod": "POST", + "id": "networkconnectivity.projects.locations.multicloudDataTransferConfigs.destinations.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "destinationId": { + "description": "Required. The ID to use for the `Destination` resource, which becomes the final component of the `Destination` resource name.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/multicloudDataTransferConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server waits for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, can ignore the second request. This prevents clients from accidentally creating duplicate `Destination` resources. The request ID must be a valid UUID with the exception that zero UUID (00000000-0000-0000-0000-000000000000) isn't supported.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/destinations", + "request": { + "$ref": "Destination" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a `Destination` resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/multicloudDataTransferConfigs/{multicloudDataTransferConfigsId}/destinations/{destinationsId}", + "httpMethod": "DELETE", + "id": "networkconnectivity.projects.locations.multicloudDataTransferConfigs.destinations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "etag": { + "description": "Optional. The etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The name of the `Destination` resource to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/multicloudDataTransferConfigs/[^/]+/destinations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server waits for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, can ignore the second request. The request ID must be a valid UUID with the exception that zero UUID (00000000-0000-0000-0000-000000000000) isn't supported.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the details of a `Destination` resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/multicloudDataTransferConfigs/{multicloudDataTransferConfigsId}/destinations/{destinationsId}", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.multicloudDataTransferConfigs.destinations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the `Destination` resource to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/multicloudDataTransferConfigs/[^/]+/destinations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Destination" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists the `Destination` resources in a specified project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/multicloudDataTransferConfigs/{multicloudDataTransferConfigsId}/destinations", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.multicloudDataTransferConfigs.destinations.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An expression that filters the results listed in the response.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. The sort order of the results.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of results listed per page.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/multicloudDataTransferConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Optional. If `true`, allow partial responses for multi-regional aggregated list requests.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/destinations", + "response": { + "$ref": "ListDestinationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a `Destination` resource in a specified project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/multicloudDataTransferConfigs/{multicloudDataTransferConfigsId}/destinations/{destinationsId}", + "httpMethod": "PATCH", + "id": "networkconnectivity.projects.locations.multicloudDataTransferConfigs.destinations.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The name of the `Destination` resource. Format: `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/multicloudDataTransferConfigs/[^/]+/destinations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server waits for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, can ignore the second request. The request ID must be a valid UUID with the exception that zero UUID (00000000-0000-0000-0000-000000000000) isn't supported.", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Optional. `FieldMask is used to specify the fields to be overwritten in the `Destination` resource by the update. The fields specified in `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If you don't specify a mask, all fields are overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Destination" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "multicloudDataTransferSupportedServices": { + "methods": { + "get": { + "description": "Gets the details of a service that is supported for Data Transfer Essentials.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/multicloudDataTransferSupportedServices/{multicloudDataTransferSupportedServicesId}", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.multicloudDataTransferSupportedServices.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the service.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/multicloudDataTransferSupportedServices/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "MulticloudDataTransferSupportedService" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists the services in the project for a region that are supported for Data Transfer Essentials.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/multicloudDataTransferSupportedServices", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.multicloudDataTransferSupportedServices.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of results listed per page.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/multicloudDataTransferSupportedServices", + "response": { + "$ref": "ListMulticloudDataTransferSupportedServicesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "operations": { "methods": { "cancel": { @@ -1731,78 +2182,153 @@ }, "path": "v1/{+name}", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single RegionalEndpoint.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/regionalEndpoints/{regionalEndpointsId}", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.regionalEndpoints.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the RegionalEndpoint resource to get. Format: `projects/{project}/locations/{location}/regionalEndpoints/{regional_endpoint}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/regionalEndpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "RegionalEndpoint" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists RegionalEndpoints in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/regionalEndpoints", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.regionalEndpoints.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters the results listed in the response.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Sort the results by a certain order.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource's name of the RegionalEndpoint.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/regionalEndpoints", + "response": { + "$ref": "ListRegionalEndpointsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, + } + } + }, + "remoteTransportProfiles": { + "methods": { "get": { - "description": "Gets details of a single RegionalEndpoint.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/regionalEndpoints/{regionalEndpointsId}", + "description": "Gets details of a single RemoteTransportProfile.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/remoteTransportProfiles/{remoteTransportProfilesId}", "httpMethod": "GET", - "id": "networkconnectivity.projects.locations.regionalEndpoints.get", + "id": "networkconnectivity.projects.locations.remoteTransportProfiles.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. Name of the RegionalEndpoint resource to get. Format: `projects/{project}/locations/{location}/regionalEndpoints/{regional_endpoint}`", + "description": "Required. Name of the resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/regionalEndpoints/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/remoteTransportProfiles/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "RegionalEndpoint" + "$ref": "RemoteTransportProfile" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists RegionalEndpoints in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/regionalEndpoints", + "description": "Lists RemoteTransportProfiles in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/remoteTransportProfiles", "httpMethod": "GET", - "id": "networkconnectivity.projects.locations.regionalEndpoints.list", + "id": "networkconnectivity.projects.locations.remoteTransportProfiles.list", "parameterOrder": [ "parent" ], "parameters": { "filter": { - "description": "A filter expression that filters the results listed in the response.", + "description": "Optional. Filtering results.", "location": "query", "type": "string" }, "orderBy": { - "description": "Sort the results by a certain order.", + "description": "Optional. Hint for how to order the results.", "location": "query", "type": "string" }, "pageSize": { - "description": "Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "A page token.", + "description": "Optional. A token identifying a page of results the server should return.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The parent resource's name of the RegionalEndpoint.", + "description": "Required. Parent value for ListRemoteTransportProfilesRequest.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/regionalEndpoints", + "path": "v1/{+parent}/remoteTransportProfiles", "response": { - "$ref": "ListRegionalEndpointsResponse" + "$ref": "ListRemoteTransportProfilesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -2331,6 +2857,34 @@ "parent" ], "parameters": { + "autoSubnetworkConfig.allocRangeSpace": { + "description": "Optional. The space where we search for a free range to create a subnetwork. It can be narrow down or pick a different space. This is in standard CIDR format. If not specified, “10.0.0.0/8” is used. Only eligible for IPV4_ONLY and IPV4_IPV6 subnetwork.", + "location": "query", + "type": "string" + }, + "autoSubnetworkConfig.ipStack": { + "description": "Optional. The requested IP stack for the subnetwork. If not specified, IPv4 is used.", + "enum": [ + "SUBNET_IP_STACK_UNSPECIFIED", + "IPV4_ONLY", + "IPV6_ONLY", + "IPV4_IPV6" + ], + "enumDescriptions": [ + "Default value. Will create an IPV4_ONLY subnetwork by default.", + "Will create an IPV4_ONLY subnetwork.", + "Will create an IPV6_ONLY subnetwork.", + "Will use IPv4 and IPv6 (dual stack)." + ], + "location": "query", + "type": "string" + }, + "autoSubnetworkConfig.prefixLength": { + "description": "Optional. The desired prefix length for the subnet's IP address range. E.g., 24 for a /24. The actual range is allocated from available space. If not specified, 24 is used. Only eligible for IPV4_ONLY and IPV4_IPV6 subnetwork.", + "format": "int32", + "location": "query", + "type": "integer" + }, "parent": { "description": "Required. The parent resource's name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1", "location": "path", @@ -2347,6 +2901,21 @@ "description": "Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionPolicies/foo') See https://google.aip.dev/122#resource-id-segments Unique per location.", "location": "query", "type": "string" + }, + "subnetworkMode": { + "description": "Optional. If this field is not set, USER_PROVIDED is the inferred value to use.", + "enum": [ + "SUBNETWORK_MODE_UNSPECIFIED", + "USER_PROVIDED", + "AUTO_CREATED" + ], + "enumDescriptions": [ + "The default value if the enum is unset. Note user is not allowed to set the subnetwork mode to this value.", + "Subnetworks are provided from the user input.", + "Subnetwork list is empty from the user input. A subnetwork will be created automatically." + ], + "location": "query", + "type": "string" } }, "path": "v1/{+parent}/serviceConnectionPolicies", @@ -2855,88 +3424,326 @@ "resource": { "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/[^/]+/spokes/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists the Network Connectivity Center spokes in a specified project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/spokes", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.spokes.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "An expression that filters the list of results.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Sort the results by a certain order.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return per page.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/spokes", + "response": { + "$ref": "ListSpokesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a Network Connectivity Center spoke.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/spokes/{spokesId}", + "httpMethod": "PATCH", + "id": "networkconnectivity.projects.locations.spokes.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. The name of the spoke. Spoke names must be unique. They use the following form: `projects/{project_number}/locations/{region}/spokes/{spoke_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Optional. In the case of an update to an existing spoke, field mask is used to specify the fields to be overwritten. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not provide a mask, then all fields are overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Spoke" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/spokes/{spokesId}:setIamPolicy", + "httpMethod": "POST", + "id": "networkconnectivity.projects.locations.spokes.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "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/[^/]+/spokes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/spokes/{spokesId}:testIamPermissions", + "httpMethod": "POST", + "id": "networkconnectivity.projects.locations.spokes.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "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/[^/]+/spokes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "transports": { + "methods": { + "create": { + "description": "Creates a new Transport in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/transports", + "httpMethod": "POST", + "id": "networkconnectivity.projects.locations.transports.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Value for parent.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "transportId": { + "description": "Required. Id of the requesting object", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/transports", + "request": { + "$ref": "Transport" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single Transport.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/transports/{transportsId}", + "httpMethod": "DELETE", + "id": "networkconnectivity.projects.locations.transports.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/transports/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single Transport.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/transports/{transportsId}", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.transports.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/transports/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+resource}:getIamPolicy", + "path": "v1/{+name}", "response": { - "$ref": "Policy" + "$ref": "Transport" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists the Network Connectivity Center spokes in a specified project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/spokes", + "description": "Lists Transports in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/transports", "httpMethod": "GET", - "id": "networkconnectivity.projects.locations.spokes.list", + "id": "networkconnectivity.projects.locations.transports.list", "parameterOrder": [ "parent" ], "parameters": { "filter": { - "description": "An expression that filters the list of results.", + "description": "Optional. Filtering results.", "location": "query", "type": "string" }, "orderBy": { - "description": "Sort the results by a certain order.", + "description": "Optional. Hint for how to order the results.", "location": "query", "type": "string" }, "pageSize": { - "description": "The maximum number of results to return per page.", + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The page token.", + "description": "Optional. A token identifying a page of results the server should return.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The parent resource.", + "description": "Required. Parent value for ListTransportsRequest.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/spokes", + "path": "v1/{+parent}/transports", "response": { - "$ref": "ListSpokesResponse" + "$ref": "ListTransportsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "patch": { - "description": "Updates the parameters of a Network Connectivity Center spoke.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/spokes/{spokesId}", + "description": "Updates the parameters of a single Transport.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/transports/{transportsId}", "httpMethod": "PATCH", - "id": "networkconnectivity.projects.locations.spokes.patch", + "id": "networkconnectivity.projects.locations.transports.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Immutable. The name of the spoke. Spoke names must be unique. They use the following form: `projects/{project_number}/locations/{region}/spokes/{spoke_id}`", + "description": "Identifier. Name of the resource, see google.aip.dev/122 for resource naming.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/spokes/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/transports/[^/]+$", "required": true, "type": "string" }, "requestId": { - "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", "location": "query", "type": "string" }, "updateMask": { - "description": "Optional. In the case of an update to an existing spoke, field mask is used to specify the fields to be overwritten. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not provide a mask, then all fields are overwritten.", + "description": "Optional. Field mask is used to specify the fields to be overwritten in the Transport resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields present in the request will be overwritten.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -2944,7 +3751,7 @@ }, "path": "v1/{+name}", "request": { - "$ref": "Spoke" + "$ref": "Transport" }, "response": { "$ref": "GoogleLongrunningOperation" @@ -2952,62 +3759,6 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "setIamPolicy": { - "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/spokes/{spokesId}:setIamPolicy", - "httpMethod": "POST", - "id": "networkconnectivity.projects.locations.spokes.setIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "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/[^/]+/spokes/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:setIamPolicy", - "request": { - "$ref": "SetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "testIamPermissions": { - "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/spokes/{spokesId}:testIamPermissions", - "httpMethod": "POST", - "id": "networkconnectivity.projects.locations.spokes.testIamPermissions", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "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/[^/]+/spokes/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:testIamPermissions", - "request": { - "$ref": "TestIamPermissionsRequest" - }, - "response": { - "$ref": "TestIamPermissionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] } } } @@ -3154,6 +3905,33 @@ }, "type": "object" }, + "AutoCreatedSubnetworkInfo": { + "description": "Information for the automatically created subnetwork and its associated IR.", + "id": "AutoCreatedSubnetworkInfo", + "properties": { + "internalRange": { + "description": "Output only. URI of the automatically created Internal Range. Only set if the subnetwork mode is AUTO_CREATED during creation.", + "readOnly": true, + "type": "string" + }, + "internalRangeRef": { + "description": "Output only. URI of the automatically created Internal Range reference. Only set if the subnetwork mode is AUTO_CREATED during creation.", + "readOnly": true, + "type": "string" + }, + "subnetwork": { + "description": "Output only. URI of the automatically created subnetwork. Only set if the subnetwork mode is AUTO_CREATED during creation.", + "readOnly": true, + "type": "string" + }, + "subnetworkRef": { + "description": "Output only. URI of the automatically created subnetwork reference. Only set if the subnetwork mode is AUTO_CREATED during creation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Binding": { "description": "Associates `members`, or principals, with a `role`.", "id": "Binding", @@ -3367,6 +4145,102 @@ }, "type": "object" }, + "Destination": { + "description": "The `Destination` resource. It specifies the IP prefix and the associated autonomous system numbers (ASN) that you want to include in a `MulticloudDataTransferConfig` resource.", + "id": "Destination", + "properties": { + "createTime": { + "description": "Output only. Time when the `Destination` resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. A description of this resource.", + "type": "string" + }, + "endpoints": { + "description": "Required. Unordered list. The list of `DestinationEndpoint` resources configured for the IP prefix.", + "items": { + "$ref": "DestinationEndpoint" + }, + "type": "array" + }, + "etag": { + "description": "The etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding.", + "type": "string" + }, + "ipPrefix": { + "description": "Required. Immutable. The IP prefix that represents your workload on another CSP.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. User-defined labels.", + "type": "object" + }, + "name": { + "description": "Identifier. The name of the `Destination` resource. Format: `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.", + "type": "string" + }, + "stateTimeline": { + "$ref": "StateTimeline", + "description": "Output only. The timeline of the expected `Destination` states or the current rest state. If a state change is expected, the value is `ADDING`, `DELETING` or `SUSPENDING`, depending on the action specified. Example: \"state_timeline\": { \"states\": [ { // The time when the `Destination` resource will be activated. \"effectiveTime\": \"2024-12-01T08:00:00Z\", \"state\": \"ADDING\" }, { // The time when the `Destination` resource will be suspended. \"effectiveTime\": \"2024-12-01T20:00:00Z\", \"state\": \"SUSPENDING\" } ] }", + "readOnly": true + }, + "uid": { + "description": "Output only. The Google-generated unique ID for the `Destination` resource. This value is unique across all `Destination` resources. If a resource is deleted and another with the same name is created, the new resource is assigned a different and unique ID.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Time when the `Destination` resource was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DestinationEndpoint": { + "description": "The metadata for a `DestinationEndpoint` resource.", + "id": "DestinationEndpoint", + "properties": { + "asn": { + "description": "Required. The ASN of the remote IP prefix.", + "format": "int64", + "type": "string" + }, + "csp": { + "description": "Required. The CSP of the remote IP prefix.", + "type": "string" + }, + "state": { + "description": "Output only. The state of the `DestinationEndpoint` resource.", + "enum": [ + "STATE_UNSPECIFIED", + "VALID", + "INVALID" + ], + "enumDescriptions": [ + "An invalid state, which is the default case.", + "The `DestinationEndpoint` resource is valid.", + "The `DestinationEndpoint` resource is invalid." + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Time when the `DestinationEndpoint` resource was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "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", @@ -3854,7 +4728,7 @@ "type": "integer" }, "targetCidrRange": { - "description": "Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the \"10.0.0.0/8\" address space. This can be used to search in other rfc-1918 address spaces like \"172.16.0.0/12\" and \"192.168.0.0/16\" or non-rfc-1918 address spaces used in the VPC.", + "description": "Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the [\"10.0.0.0/8\", \"172.16.0.0/12\", \"192.168.0.0/16\"] address space (for auto-mode networks, the \"10.0.0.0/9\" range is used instead of \"10.0.0.0/8\"). This can be used to target the search in other rfc-1918 address spaces like \"172.16.0.0/12\" and \"192.168.0.0/16\" or non-rfc-1918 address spaces used in the VPC.", "items": { "type": "string" }, @@ -4085,6 +4959,31 @@ }, "type": "object" }, + "ListDestinationsResponse": { + "description": "Response message to list `Destination` resources.", + "id": "ListDestinationsResponse", + "properties": { + "destinations": { + "description": "The list of `Destination` resources to be listed.", + "items": { + "$ref": "Destination" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The next page token.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ListGroupsResponse": { "description": "Response for HubService.ListGroups method.", "id": "ListGroupsResponse", @@ -4203,6 +5102,49 @@ }, "type": "object" }, + "ListMulticloudDataTransferConfigsResponse": { + "description": "Response message to list `MulticloudDataTransferConfig` resources.", + "id": "ListMulticloudDataTransferConfigsResponse", + "properties": { + "multicloudDataTransferConfigs": { + "description": "The list of `MulticloudDataTransferConfig` resources to be listed.", + "items": { + "$ref": "MulticloudDataTransferConfig" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The next page token.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListMulticloudDataTransferSupportedServicesResponse": { + "description": "Response message to list the services in your project in regions that are eligible for Data Transfer Essentials configuration.", + "id": "ListMulticloudDataTransferSupportedServicesResponse", + "properties": { + "multicloudDataTransferSupportedServices": { + "description": "The list of supported services.", + "items": { + "$ref": "MulticloudDataTransferSupportedService" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The next page token.", + "type": "string" + } + }, + "type": "object" + }, "ListPolicyBasedRoutesResponse": { "description": "Response for PolicyBasedRoutingService.ListPolicyBasedRoutes method.", "id": "ListPolicyBasedRoutesResponse", @@ -4253,6 +5195,31 @@ }, "type": "object" }, + "ListRemoteTransportProfilesResponse": { + "description": "Message for response to listing RemoteTransportProfiles", + "id": "ListRemoteTransportProfilesResponse", + "properties": { + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + }, + "remoteTransportProfiles": { + "description": "The list of RemoteTransportProfiles.", + "items": { + "$ref": "RemoteTransportProfile" + }, + "type": "array" + }, + "unreachable": { + "description": "Unordered list. Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ListRouteTablesResponse": { "description": "Response for HubService.ListRouteTables method.", "id": "ListRouteTablesResponse", @@ -4386,10 +5353,35 @@ "description": "The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result.", "type": "string" }, - "serviceConnectionTokens": { - "description": "ServiceConnectionTokens to be returned.", + "serviceConnectionTokens": { + "description": "ServiceConnectionTokens to be returned.", + "items": { + "$ref": "ServiceConnectionToken" + }, + "type": "array" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListSpokesResponse": { + "description": "The response for HubService.ListSpokes.", + "id": "ListSpokesResponse", + "properties": { + "nextPageToken": { + "description": "The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.", + "type": "string" + }, + "spokes": { + "description": "The requested spokes.", "items": { - "$ref": "ServiceConnectionToken" + "$ref": "Spoke" }, "type": "array" }, @@ -4403,23 +5395,23 @@ }, "type": "object" }, - "ListSpokesResponse": { - "description": "The response for HubService.ListSpokes.", - "id": "ListSpokesResponse", + "ListTransportsResponse": { + "description": "Message for response to listing Transports.", + "id": "ListTransportsResponse", "properties": { "nextPageToken": { - "description": "The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.", + "description": "A token identifying a page of results the server should return.", "type": "string" }, - "spokes": { - "description": "The requested spokes.", + "transports": { + "description": "The list of Transport.", "items": { - "$ref": "Spoke" + "$ref": "Transport" }, "type": "array" }, "unreachable": { - "description": "Locations that could not be reached.", + "description": "Unordered list. Locations that could not be reached.", "items": { "type": "string" }, @@ -4503,6 +5495,87 @@ }, "type": "object" }, + "MulticloudDataTransferConfig": { + "description": "The `MulticloudDataTransferConfig` resource. It lists the services that you configure for Data Transfer Essentials billing and metering.", + "id": "MulticloudDataTransferConfig", + "properties": { + "createTime": { + "description": "Output only. Time when the `MulticloudDataTransferConfig` resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. A description of this resource.", + "type": "string" + }, + "destinationsActiveCount": { + "description": "Output only. The number of `Destination` resources in use with the `MulticloudDataTransferConfig` resource.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "destinationsCount": { + "description": "Output only. The number of `Destination` resources configured for the `MulticloudDataTransferConfig` resource.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "etag": { + "description": "The etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. User-defined labels.", + "type": "object" + }, + "name": { + "description": "Identifier. The name of the `MulticloudDataTransferConfig` resource. Format: `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}`.", + "type": "string" + }, + "services": { + "additionalProperties": { + "$ref": "StateTimeline" + }, + "description": "Optional. Maps services to their current or planned states. Service names are keys, and the associated values describe the state of the service. If a state change is expected, the value is either `ADDING` or `DELETING`, depending on the actions taken. Sample output: \"services\": { \"big-query\": { \"states\": [ { \"effectiveTime\": \"2024-12-12T08:00:00Z\" \"state\": \"ADDING\", }, ] }, \"cloud-storage\": { \"states\": [ { \"state\": \"ACTIVE\", } ] } }", + "type": "object" + }, + "uid": { + "description": "Output only. The Google-generated unique ID for the `MulticloudDataTransferConfig` resource. This value is unique across all `MulticloudDataTransferConfig` resources. If a resource is deleted and another with the same name is created, the new resource is assigned a different and unique ID.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Time when the `MulticloudDataTransferConfig` resource was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "MulticloudDataTransferSupportedService": { + "description": "A service in your project in a region that is eligible for Data Transfer Essentials configuration.", + "id": "MulticloudDataTransferSupportedService", + "properties": { + "name": { + "description": "Identifier. The name of the service.", + "type": "string" + }, + "serviceConfigs": { + "description": "Output only. The network service tier or regional endpoint supported for the service.", + "items": { + "$ref": "ServiceConfig" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "NextHopInterconnectAttachment": { "description": "A route next hop that leads to an interconnect attachment resource.", "id": "NextHopInterconnectAttachment", @@ -5110,6 +6183,138 @@ }, "type": "object" }, + "RemoteTransportProfile": { + "description": "Message describing RemoteTransportProfile object.", + "id": "RemoteTransportProfile", + "properties": { + "createTime": { + "description": "Output only. [Output only] Create time stamp.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Output only. Description of the profile.", + "readOnly": true, + "type": "string" + }, + "flow": { + "description": "Output only. [Output only] Type of provisioning flows supported by this profile.", + "enum": [ + "KEY_PROVISIONING_FLOW_UNSPECIFIED", + "INPUT_ONLY", + "OUTPUT_ONLY", + "INPUT_OR_OUTPUT" + ], + "enumDescriptions": [ + "Unspecified key provisioning flow.", + "The activationKey field on the Transport must be included in a create or patch request to establish connectivity.", + "The generatedActivationKey field is populated and must be read from the resource and passed into the other provider.", + "Both activation key fields are allowed for establishing connectivity. If a key is input, the generated key is still present after provisioning is finished." + ], + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Output only. Labels as key value pairs.", + "readOnly": true, + "type": "object" + }, + "name": { + "description": "Identifier. Name of the resource in the format of $provider-$site.", + "type": "string" + }, + "orderState": { + "description": "Output only. [Output only] Order state for this profile.", + "enum": [ + "STATE_UNSPECIFIED", + "CLOSED", + "OPEN" + ], + "enumDescriptions": [ + "Unspecified state.", + "Not enough capacity for customers to order.", + "Enough capacity to fulfill an order." + ], + "readOnly": true, + "type": "string" + }, + "provider": { + "description": "Output only. Name of the provider on the other end of this profile. E.g. “Amazon Web Services” or “Microsoft Azure”.", + "readOnly": true, + "type": "string" + }, + "providerSite": { + "description": "Output only. If the profile is a Cloud Service Provider with compute resources, this is populated with the region where connectivity is being established. If the profile provides facility-level selection, this is an identity of the facility any connections on this profile are going through.", + "readOnly": true, + "type": "string" + }, + "region": { + "description": "Output only. GCP Region where this profile is available.", + "readOnly": true, + "type": "string" + }, + "sla": { + "description": "Output only. [Output only] Availability class that will be configured for this particular RemoteTransportProfile.", + "enum": [ + "SERVICE_LEVEL_AVAILABILITY_UNSPECIFIED", + "HIGH", + "MAXIMUM" + ], + "enumDescriptions": [ + "Unspecified service level availability.", + "This represents a 99.9% service level on the availability of the configured connectivity.", + "This represents a 99.99% service level on the availability of the configured connectivity." + ], + "readOnly": true, + "type": "string" + }, + "supportedBandwidths": { + "description": "Output only. List of bandwidth enum values that are supported by this profile.", + "items": { + "enum": [ + "BANDWIDTH_UNSPECIFIED", + "BPS_50M", + "BPS_100M", + "BPS_200M", + "BPS_300M", + "BPS_400M", + "BPS_500M", + "BPS_1G", + "BPS_2G", + "BPS_5G", + "BPS_10G" + ], + "enumDescriptions": [ + "Unspecified bandwidth.", + "50 Megabits per second.", + "100 Megabits per second.", + "200 Megabits per second.", + "300 Megabits per second.", + "400 Megabits per second.", + "500 Megabits per second.", + "1 Gigabit per second.", + "2 Gigabits per second.", + "5 Gigabits per second.", + "10 Gigabits per second." + ], + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "updateTime": { + "description": "Output only. [Output only] Update time stamp.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Route": { "description": "A route defines a path from VM instances within a spoke to a specific destination resource. Only VPC spokes have routes.", "id": "Route", @@ -5375,6 +6580,36 @@ }, "type": "object" }, + "ServiceConfig": { + "description": "Specifies eligibility information for the service.", + "id": "ServiceConfig", + "properties": { + "eligibilityCriteria": { + "description": "Output only. The eligibility criteria for the service.", + "enum": [ + "ELIGIBILITY_CRITERIA_UNSPECIFIED", + "NETWORK_SERVICE_TIER_PREMIUM_ONLY", + "NETWORK_SERVICE_TIER_STANDARD_ONLY", + "REQUEST_ENDPOINT_REGIONAL_ENDPOINT_ONLY" + ], + "enumDescriptions": [ + "The service is not eligible for Data Transfer Essentials configuration. This is the default case.", + "The service is eligible for Data Transfer Essentials configuration only for Premium Tier.", + "The service is eligible for Data Transfer Essentials configuration only for Standard Tier.", + "The service is eligible for Data Transfer Essentials configuration only for the regional endpoint." + ], + "readOnly": true, + "type": "string" + }, + "supportEndTime": { + "description": "Output only. The end time for eligibility criteria support. If not specified, no planned end time is set.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ServiceConnectionMap": { "description": "The ServiceConnectionMap resource.", "id": "ServiceConnectionMap", @@ -5440,7 +6675,7 @@ "type": "array" }, "serviceClass": { - "description": "The service class identifier this ServiceConnectionMap is for. The user of ServiceConnectionMap create API needs to have networkconnecitivty.serviceclasses.use iam permission for the service class.", + "description": "The service class identifier this ServiceConnectionMap is for. The user of ServiceConnectionMap create API needs to have networkconnectivity.serviceClasses.use IAM permission for the service class.", "type": "string" }, "serviceClassUri": { @@ -5465,6 +6700,11 @@ "description": "The ServiceConnectionPolicy resource.", "id": "ServiceConnectionPolicy", "properties": { + "autoCreatedSubnetInfo": { + "$ref": "AutoCreatedSubnetworkInfo", + "description": "Output only. Information for the automatically created subnetwork and its associated IR.", + "readOnly": true + }, "createTime": { "description": "Output only. Time when the ServiceConnectionPolicy was created.", "format": "google-datetime", @@ -5882,6 +7122,40 @@ }, "type": "object" }, + "StateMetadata": { + "description": "The state and activation time details of the resource state.", + "id": "StateMetadata", + "properties": { + "effectiveTime": { + "description": "Output only. Accompanies only the transient states, which include `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which the transient state of the resource will be effective. For instance, if the state is `ADDING`, this field shows the time when the resource state transitions to `ACTIVE`.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The state of the resource.", + "enum": [ + "STATE_UNSPECIFIED", + "ADDING", + "ACTIVE", + "DELETING", + "SUSPENDING", + "SUSPENDED" + ], + "enumDescriptions": [ + "An invalid state, which is the default case.", + "The resource is being added.", + "The resource is in use.", + "The resource is being deleted.", + "The resource is being suspended.", + "The resource is suspended and not in use." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "StateReason": { "description": "The reason a spoke is inactive.", "id": "StateReason", @@ -5921,6 +7195,21 @@ }, "type": "object" }, + "StateTimeline": { + "description": "The timeline of the pending states for a resource.", + "id": "StateTimeline", + "properties": { + "states": { + "description": "Output only. The state and activation time details of the resource state.", + "items": { + "$ref": "StateMetadata" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", @@ -5949,6 +7238,138 @@ }, "type": "object" }, + "Transport": { + "description": "Message describing Transport object.", + "id": "Transport", + "properties": { + "adminEnabled": { + "description": "Optional. Administrative state of the underlying connectivity. If set to true (default), connectivity should be available between your environments. If set to false, the connectivity over these links is disabled. Disabling your Transport does not affect billing, and retains the underlying network bandwidth associated with the connectivity.", + "type": "boolean" + }, + "advertisedRoutes": { + "description": "Optional. [Preview only] List of IP Prefixes that will be advertised to the remote provider. Both IPv4 and IPv6 addresses are supported.", + "type": "string" + }, + "bandwidth": { + "description": "Required. Bandwidth of the Transport. This must be one of the supported bandwidths for the remote profile.", + "enum": [ + "BANDWIDTH_UNSPECIFIED", + "BPS_50M", + "BPS_100M", + "BPS_200M", + "BPS_300M", + "BPS_400M", + "BPS_500M", + "BPS_1G", + "BPS_2G", + "BPS_5G", + "BPS_10G" + ], + "enumDescriptions": [ + "Unspecified bandwidth.", + "50 Megabits per second.", + "100 Megabits per second.", + "200 Megabits per second.", + "300 Megabits per second.", + "400 Megabits per second.", + "500 Megabits per second.", + "1 Gigabit per second.", + "2 Gigabits per second.", + "5 Gigabits per second.", + "10 Gigabits per second." + ], + "type": "string" + }, + "createTime": { + "description": "Output only. [Output only] Create time stamp.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. Description of the Transport.", + "type": "string" + }, + "generatedActivationKey": { + "description": "Output only. [Output only] Google-generated activation key. This is only output if the selected profile supports an OUTPUT key flow. Inputting this to the provider is only valid while the resource is in a PENDING_KEY state. Once the provider has accepted the key, the resource will move to the CONFIGURING state.", + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels as key value pairs.", + "type": "object" + }, + "mtuLimit": { + "description": "Output only. [Output only] The maximum transmission unit (MTU) of a packet that can be sent over this transport.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "name": { + "description": "Identifier. Name of the resource, see google.aip.dev/122 for resource naming.", + "type": "string" + }, + "network": { + "description": "Required. [Preview only] Resource URL of the Network that will be peered with this Transport. This field must be provided during resource creation and cannot be changed.", + "type": "string" + }, + "providedActivationKey": { + "description": "Optional. Key used for establishing a connection with the remote transport. This key can only be provided if the profile supports an INPUT key flow and the resource is in the PENDING_KEY state.", + "type": "string" + }, + "region": { + "description": "Required. GCP Region where this Transport is located.", + "type": "string" + }, + "remoteProfile": { + "description": "Required. Resource URL of the remoteTransportProfile that this Transport is connecting to. Format: projects/{project}/locations/{location}/remoteTransportProfiles/{remote_transport_profile}", + "type": "string" + }, + "stackType": { + "description": "Optional. IP version stack for the established connectivity.", + "enum": [ + "STACK_TYPE_UNSPECIFIED", + "IPV4_ONLY", + "IPV4_IPV6" + ], + "enumDescriptions": [ + "Unspecified stack type.", + "Only IPv4 is supported. (default)", + "Both IPv4 and IPv6 are supported." + ], + "type": "string" + }, + "state": { + "description": "Output only. [Output only] State of the underlying connectivity.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "PENDING_CONFIG", + "PENDING_KEY", + "ACTIVE" + ], + "enumDescriptions": [ + "Unspecified state.", + "The resource exists locally and is being created / associated with the resource on the remote provider’s end of the underlying connectivity.", + "The Transport exists on both sides of the connection, and is waiting for configuration to finalize and be verified as operational.", + "The Transport was created in GCP. Depending on the profile’s key provisioning flow, this is either waiting for an activation key to be input (the key will be validated that it uses remote resources that match the Transport), or for the generated key to be input to the provider for finalizing. The configured bandwidth is not yet guaranteed.", + "The Transport is configured and the underlying connectivity is considered operational." + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. [Output only] Update time stamp.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "VirtualMachine": { "description": "VM instances that this policy-based route applies to.", "id": "VirtualMachine", diff --git a/discovery/googleapis/networkmanagement__v1.json b/discovery/googleapis/networkmanagement__v1.json index d76c43700..371c87f50 100644 --- a/discovery/googleapis/networkmanagement__v1.json +++ b/discovery/googleapis/networkmanagement__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250723", + "revision": "20250905", "rootUrl": "https://networkmanagement.googleapis.com/", "servicePath": "", "title": "Network Management API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -309,6 +309,173 @@ ] } } + }, + "vpcFlowLogsConfigs": { + "methods": { + "create": { + "description": "Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/vpcFlowLogsConfigs", + "httpMethod": "POST", + "id": "networkmanagement.organizations.locations.vpcFlowLogsConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the VpcFlowLogsConfig to create, in one of the following formats: - For project-level resources: `projects/{project_id}/locations/global` - For organization-level resources: `organizations/{organization_id}/locations/global`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "vpcFlowLogsConfigId": { + "description": "Required. ID of the `VpcFlowLogsConfig`.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/vpcFlowLogsConfigs", + "request": { + "$ref": "VpcFlowLogsConfig" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a specific `VpcFlowLogsConfig`.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/vpcFlowLogsConfigs/{vpcFlowLogsConfigsId}", + "httpMethod": "DELETE", + "id": "networkmanagement.organizations.locations.vpcFlowLogsConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the VpcFlowLogsConfig, in one of the following formats: - For a project-level resource: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For an organization-level resource: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/vpcFlowLogsConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the details of a specific `VpcFlowLogsConfig`.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/vpcFlowLogsConfigs/{vpcFlowLogsConfigsId}", + "httpMethod": "GET", + "id": "networkmanagement.organizations.locations.vpcFlowLogsConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the VpcFlowLogsConfig, in one of the following formats: - For project-level resources: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level resources: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/vpcFlowLogsConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "VpcFlowLogsConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all `VpcFlowLogsConfigs` in a given organization.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/vpcFlowLogsConfigs", + "httpMethod": "GET", + "id": "networkmanagement.organizations.locations.vpcFlowLogsConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. A filter expression must use the supported [CEL logic operators] (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Field to use to sort the list.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Number of `VpcFlowLogsConfigs` to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token from an earlier query, as returned in `next_page_token`.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the VpcFlowLogsConfig, in one of the following formats: - For project-level resourcs: `projects/{project_id}/locations/global` - For organization-level resources: `organizations/{organization_id}/locations/global`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/vpcFlowLogsConfigs", + "response": { + "$ref": "ListVpcFlowLogsConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/vpcFlowLogsConfigs/{vpcFlowLogsConfigsId}", + "httpMethod": "PATCH", + "id": "networkmanagement.organizations.locations.vpcFlowLogsConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/vpcFlowLogsConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Mask of fields to update. At least one path must be supplied in this field. For example, to change the state of the configuration to ENABLED, specify `update_mask` = `\"state\"`, and the `vpc_flow_logs_config` would be: `vpc_flow_logs_config = { name = \"projects/my-project/locations/global/vpcFlowLogsConfigs/my-config\" state = \"ENABLED\" }`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "VpcFlowLogsConfig" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } } @@ -353,7 +520,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -871,7 +1038,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the resource. Format: projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}", + "description": "Required. Name of the resource. Format: `projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/networkMonitoringProviders/[^/]+$", "required": true, @@ -907,7 +1074,7 @@ "type": "string" }, "parent": { - "description": "Required. Parent value for ListNetworkMonitoringProvidersRequest. Format: projects/{project}/locations/{location}", + "description": "Required. Parent value for ListNetworkMonitoringProvidersRequest. Format: `projects/{project}/locations/{location}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -1285,6 +1452,93 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "queryOrgVpcFlowLogsConfigs": { + "description": "QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC Flow Logs configurations applicable to the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs", + "httpMethod": "GET", + "id": "networkmanagement.projects.locations.vpcFlowLogsConfigs.queryOrgVpcFlowLogsConfigs", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. A filter expression must use the supported [CEL logic operators] (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Number of `VpcFlowLogsConfigs` to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token from an earlier query, as returned in `next_page_token`.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the VpcFlowLogsConfig, specified in the following format: `projects/{project_id}/locations/global`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs", + "response": { + "$ref": "QueryOrgVpcFlowLogsConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "showEffectiveFlowLogsConfigs": { + "description": "ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs configurations applicable to a specified resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs", + "httpMethod": "GET", + "id": "networkmanagement.projects.locations.vpcFlowLogsConfigs.showEffectiveFlowLogsConfigs", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter expression. A filter expression must use the supported [CEL logic operators] (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token from an earlier query, as returned in `next_page_token`.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the VpcFlowLogsConfig, specified in the following format: `projects/{project_id}/locations/global`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "resource": { + "description": "Required. The resource to get the effective VPC Flow Logs configuration for. The resource must belong to the same project as the parent. The resource must be a network, subnetwork, interconnect attachment, VPN tunnel, or a project.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs", + "response": { + "$ref": "ShowEffectiveFlowLogsConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -1953,7 +2207,10 @@ "NO_MATCHING_NAT64_GATEWAY", "LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH", "NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION", - "CLOUD_NAT_PROTOCOL_UNSUPPORTED" + "CLOUD_NAT_PROTOCOL_UNSUPPORTED", + "L2_INTERCONNECT_UNSUPPORTED_PROTOCOL", + "L2_INTERCONNECT_UNSUPPORTED_PORT", + "L2_INTERCONNECT_DESTINATION_IP_MISMATCH" ], "enumDescriptions": [ "Cause is unspecified.", @@ -2049,10 +2306,17 @@ "Packet with destination IP address within the reserved NAT64 range is dropped due to no matching NAT gateway in the subnet.", "Packet is dropped due to being sent to a backend of a passthrough load balancer that doesn't use the same IP version as the frontend.", "Packet from the unknown NCC network is dropped due to no known route from the source network to the destination IP address.", - "Packet is dropped by Cloud NAT due to using an unsupported protocol." + "Packet is dropped by Cloud NAT due to using an unsupported protocol.", + "Packet is dropped due to using an unsupported protocol (any other than UDP) for L2 Interconnect.", + "Packet is dropped due to using an unsupported port (any other than 6081) for L2 Interconnect.", + "Packet is dropped due to destination IP not matching the appliance mapping IPs configured on the L2 Interconnect attachment." ], "type": "string" }, + "destinationGeolocationCode": { + "description": "Geolocation (region code) of the destination IP address (if relevant).", + "type": "string" + }, "destinationIp": { "description": "Destination IP address of the dropped packet (if relevant).", "type": "string" @@ -2065,6 +2329,10 @@ "description": "URI of the resource that caused the drop.", "type": "string" }, + "sourceGeolocationCode": { + "description": "Geolocation (region code) of the source IP address (if relevant).", + "type": "string" + }, "sourceIp": { "description": "Source IP address of the dropped packet (if relevant).", "type": "string" @@ -2083,6 +2351,137 @@ }, "type": "object" }, + "EffectiveVpcFlowLogsConfig": { + "description": "A configuration to generate a response for GetEffectiveVpcFlowLogsConfig request.", + "id": "EffectiveVpcFlowLogsConfig", + "properties": { + "aggregationInterval": { + "description": "The aggregation interval for the logs. Default value is INTERVAL_5_SEC.", + "enum": [ + "AGGREGATION_INTERVAL_UNSPECIFIED", + "INTERVAL_5_SEC", + "INTERVAL_30_SEC", + "INTERVAL_1_MIN", + "INTERVAL_5_MIN", + "INTERVAL_10_MIN", + "INTERVAL_15_MIN" + ], + "enumDescriptions": [ + "If not specified, will default to INTERVAL_5_SEC.", + "Aggregate logs in 5s intervals.", + "Aggregate logs in 30s intervals.", + "Aggregate logs in 1m intervals.", + "Aggregate logs in 5m intervals.", + "Aggregate logs in 10m intervals.", + "Aggregate logs in 15m intervals." + ], + "type": "string" + }, + "crossProjectMetadata": { + "description": "Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.", + "enum": [ + "CROSS_PROJECT_METADATA_UNSPECIFIED", + "CROSS_PROJECT_METADATA_ENABLED", + "CROSS_PROJECT_METADATA_DISABLED" + ], + "enumDescriptions": [ + "If not specified, the default is CROSS_PROJECT_METADATA_ENABLED.", + "When CROSS_PROJECT_METADATA_ENABLED, metadata from other projects will be included in the logs.", + "When CROSS_PROJECT_METADATA_DISABLED, metadata from other projects will not be included in the logs." + ], + "type": "string" + }, + "filterExpr": { + "description": "Export filter used to define which VPC Flow Logs should be logged.", + "type": "string" + }, + "flowSampling": { + "description": "The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.", + "format": "float", + "type": "number" + }, + "interconnectAttachment": { + "description": "Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}", + "type": "string" + }, + "metadata": { + "description": "Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.", + "enum": [ + "METADATA_UNSPECIFIED", + "INCLUDE_ALL_METADATA", + "EXCLUDE_ALL_METADATA", + "CUSTOM_METADATA" + ], + "enumDescriptions": [ + "If not specified, will default to INCLUDE_ALL_METADATA.", + "Include all metadata fields.", + "Exclude all metadata fields.", + "Include only custom fields (specified in metadata_fields)." + ], + "type": "string" + }, + "metadataFields": { + "description": "Custom metadata fields to include in the reported VPC flow logs. Can only be specified if \"metadata\" was set to CUSTOM_METADATA.", + "items": { + "type": "string" + }, + "type": "array" + }, + "name": { + "description": "Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For a Compute config, the name will be the path of the subnet: `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`", + "type": "string" + }, + "network": { + "description": "Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}", + "type": "string" + }, + "scope": { + "description": "Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).", + "enum": [ + "SCOPE_UNSPECIFIED", + "SUBNET", + "COMPUTE_API_SUBNET", + "NETWORK", + "VPN_TUNNEL", + "INTERCONNECT_ATTACHMENT", + "ORGANIZATION" + ], + "enumDescriptions": [ + "Scope is unspecified.", + "Target resource is a subnet (Network Management API).", + "Target resource is a subnet, and the config originates from the Compute API.", + "Target resource is a network.", + "Target resource is a VPN tunnel.", + "Target resource is an interconnect attachment.", + "Configuration applies to an entire organization." + ], + "type": "string" + }, + "state": { + "description": "The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.", + "enum": [ + "STATE_UNSPECIFIED", + "ENABLED", + "DISABLED" + ], + "enumDescriptions": [ + "If not specified, will default to ENABLED.", + "When ENABLED, this configuration will generate logs.", + "When DISABLED, this configuration will not generate logs." + ], + "type": "string" + }, + "subnet": { + "description": "Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}", + "type": "string" + }, + "vpnTunnel": { + "description": "Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}", + "type": "string" + } + }, + "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", @@ -2110,7 +2509,7 @@ "type": "string" }, "forwardingRule": { - "description": "A forwarding rule and its corresponding IP address represent the frontend configuration of a Google Cloud load balancer. Forwarding rules are also used for protocol forwarding, Private Service Connect and other network services to provide forwarding information in the control plane. Applicable only to destination endpoint. Format: projects/{project}/global/forwardingRules/{id} or projects/{project}/regions/{region}/forwardingRules/{id}", + "description": "A forwarding rule and its corresponding IP address represent the frontend configuration of a Google Cloud load balancer. Forwarding rules are also used for protocol forwarding, Private Service Connect and other network services to provide forwarding information in the control plane. Applicable only to destination endpoint. Format: `projects/{project}/global/forwardingRules/{id}` or `projects/{project}/regions/{region}/forwardingRules/{id}`", "type": "string" }, "forwardingRuleTarget": { @@ -2366,6 +2765,20 @@ }, "type": "array" }, + "targetType": { + "description": "Target type of the firewall rule.", + "enum": [ + "TARGET_TYPE_UNSPECIFIED", + "INSTANCES", + "INTERNAL_MANAGED_LB" + ], + "enumDescriptions": [ + "Target type is not specified. In this case we treat the rule as applying to INSTANCES target type.", + "Firewall rule applies to instances.", + "Firewall rule applies to internal managed load balancers." + ], + "type": "string" + }, "uri": { "description": "The URI of the firewall rule. This field is not applicable to implied VPC firewall rules.", "type": "string" @@ -2509,6 +2922,21 @@ }, "type": "object" }, + "GeoLocation": { + "description": "The geographical location of the MonitoringPoint.", + "id": "GeoLocation", + "properties": { + "country": { + "description": "Country.", + "type": "string" + }, + "formattedAddress": { + "description": "Formatted address.", + "type": "string" + } + }, + "type": "object" + }, "GoogleServiceInfo": { "description": "For display only. Details of a Google Service sending packets to a VPC network. Although the source IP might be a publicly routable address, some Google Services use special routes within Google production infrastructure to reach Compute Engine Instances. https://cloud.google.com/vpc/docs/routes#special_return_paths", "id": "GoogleServiceInfo", @@ -2594,6 +3022,25 @@ }, "type": "object" }, + "HybridSubnetInfo": { + "description": "For display only. Metadata associated with a hybrid subnet.", + "id": "HybridSubnetInfo", + "properties": { + "displayName": { + "description": "Name of a hybrid subnet.", + "type": "string" + }, + "region": { + "description": "Name of a Google Cloud region where the hybrid subnet is configured.", + "type": "string" + }, + "uri": { + "description": "URI of a hybrid subnet.", + "type": "string" + } + }, + "type": "object" + }, "InstanceInfo": { "description": "For display only. Metadata associated with a Compute Engine instance.", "id": "InstanceInfo", @@ -2660,6 +3107,55 @@ }, "type": "object" }, + "InterconnectAttachmentInfo": { + "description": "For display only. Metadata associated with an Interconnect attachment.", + "id": "InterconnectAttachmentInfo", + "properties": { + "cloudRouterUri": { + "description": "URI of the Cloud Router to be used for dynamic routing.", + "type": "string" + }, + "displayName": { + "description": "Name of an Interconnect attachment.", + "type": "string" + }, + "interconnectUri": { + "description": "URI of the Interconnect where the Interconnect attachment is configured.", + "type": "string" + }, + "l2AttachmentMatchedIpAddress": { + "description": "Appliance IP address that was matched for L2_DEDICATED attachments.", + "type": "string" + }, + "region": { + "description": "Name of a Google Cloud region where the Interconnect attachment is configured.", + "type": "string" + }, + "type": { + "description": "The type of interconnect attachment this is.", + "enum": [ + "TYPE_UNSPECIFIED", + "DEDICATED", + "PARTNER", + "PARTNER_PROVIDER", + "L2_DEDICATED" + ], + "enumDescriptions": [ + "Unspecified type.", + "Attachment to a dedicated interconnect.", + "Attachment to a partner interconnect, created by the customer.", + "Attachment to a partner interconnect, created by the partner.", + "Attachment to a L2 interconnect, created by the customer." + ], + "type": "string" + }, + "uri": { + "description": "URI of an Interconnect attachment.", + "type": "string" + } + }, + "type": "object" + }, "LatencyDistribution": { "description": "Describes measured latency distribution.", "id": "LatencyDistribution", @@ -3103,9 +3599,9 @@ "type": "array" }, "geoLocation": { - "description": "Output only. The geographical location of the MonitoringPoint. Examples: - \"New York, NY, USA\" - \"Berlin, Germany\"", - "readOnly": true, - "type": "string" + "$ref": "GeoLocation", + "description": "Output only. The geographical location of the MonitoringPoint. ;", + "readOnly": true }, "host": { "$ref": "Host", @@ -3153,6 +3649,11 @@ "readOnly": true, "type": "string" }, + "upgradeAvailable": { + "description": "Output only. Indicates if an upgrade is available for the MonitoringPoint.", + "readOnly": true, + "type": "boolean" + }, "upgradeType": { "description": "Output only. The type of upgrade available for the MonitoringPoint.", "enum": [ @@ -3245,14 +3746,16 @@ "INTERNAL_TO_EXTERNAL", "EXTERNAL_TO_INTERNAL", "CLOUD_NAT", - "PRIVATE_SERVICE_CONNECT" + "PRIVATE_SERVICE_CONNECT", + "GKE_POD_IP_MASQUERADING" ], "enumDescriptions": [ "Type is unspecified.", "From Compute Engine instance's internal address to external address.", "From Compute Engine instance's external address to internal address.", "Cloud NAT Gateway.", - "Private service connect NAT." + "Private service connect NAT.", + "GKE Pod IP address masquerading." ], "type": "string" } @@ -3340,6 +3843,14 @@ "readOnly": true, "type": "string" }, + "errors": { + "description": "Output only. The list of error messages detected for the NetworkMonitoringProvider.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "name": { "description": "Output only. Identifier. Name of the resource. Format: `projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}`", "readOnly": true, @@ -3410,9 +3921,9 @@ "type": "string" }, "destinationGeoLocation": { - "description": "Output only. Geographical location of the destination MonitoringPoint.", - "readOnly": true, - "type": "string" + "$ref": "GeoLocation", + "description": "Output only. Geographical location of the destination MonitoringPoint. ;", + "readOnly": true }, "displayName": { "description": "Output only. The display name of the network path.", @@ -3704,7 +4215,6 @@ "enum": [ "RESOURCE_TYPE_UNSPECIFIED", "NETWORK_PATH", - "PATH_TEMPLATE", "WEB_PATH", "MONITORING_POLICY", "MONITORING_POINT" @@ -3712,7 +4222,6 @@ "enumDescriptions": [ "The default value. This value is used if the status is omitted.", "Network path.", - "Path template.", "Web path.", "Monitoring policy.", "Monitoring point." @@ -3783,6 +4292,31 @@ }, "type": "object" }, + "QueryOrgVpcFlowLogsConfigsResponse": { + "description": "Response for the `QueryVpcFlowLogsConfigs` method.", + "id": "QueryOrgVpcFlowLogsConfigsResponse", + "properties": { + "nextPageToken": { + "description": "Page token to fetch the next set of configurations.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached (when querying all locations with `-`).", + "items": { + "type": "string" + }, + "type": "array" + }, + "vpcFlowLogsConfigs": { + "description": "List of VPC Flow Log configurations.", + "items": { + "$ref": "VpcFlowLogsConfig" + }, + "type": "array" + } + }, + "type": "object" + }, "ReachabilityDetails": { "description": "Results of the configuration analysis from the last run of the test.", "id": "ReachabilityDetails", @@ -4113,6 +4647,31 @@ }, "type": "object" }, + "ShowEffectiveFlowLogsConfigsResponse": { + "description": "Response for the `ShowEffectiveFlowLogsConfigs` method.", + "id": "ShowEffectiveFlowLogsConfigsResponse", + "properties": { + "effectiveFlowLogsConfigs": { + "description": "List of Effective Vpc Flow Logs configurations.", + "items": { + "$ref": "EffectiveVpcFlowLogsConfig" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Page token to fetch the next set of configurations.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached (when querying all locations with `-`).", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "SingleEdgeResponse": { "description": "Probing results for a single edge device.", "id": "SingleEdgeResponse", @@ -4255,10 +4814,18 @@ "$ref": "GoogleServiceInfo", "description": "Display information of a Google service" }, + "hybridSubnet": { + "$ref": "HybridSubnetInfo", + "description": "Display information of a hybrid subnet." + }, "instance": { "$ref": "InstanceInfo", "description": "Display information of a Compute Engine instance." }, + "interconnectAttachment": { + "$ref": "InterconnectAttachmentInfo", + "description": "Display information of an interconnect attachment." + }, "loadBalancer": { "$ref": "LoadBalancerInfo", "deprecated": true, @@ -4331,8 +4898,10 @@ "ARRIVE_AT_INSTANCE", "ARRIVE_AT_INTERNAL_LOAD_BALANCER", "ARRIVE_AT_EXTERNAL_LOAD_BALANCER", + "ARRIVE_AT_HYBRID_SUBNET", "ARRIVE_AT_VPN_GATEWAY", "ARRIVE_AT_VPN_TUNNEL", + "ARRIVE_AT_INTERCONNECT_ATTACHMENT", "ARRIVE_AT_VPC_CONNECTOR", "DIRECT_VPC_EGRESS_CONNECTION", "SERVERLESS_EXTERNAL_CONNECTION", @@ -4380,6 +4949,8 @@ false, false, false, + false, + false, false ], "enumDescriptions": [ @@ -4407,12 +4978,14 @@ "Forwarding state: arriving at a Compute Engine instance.", "Forwarding state: arriving at a Compute Engine internal load balancer.", "Forwarding state: arriving at a Compute Engine external load balancer.", + "Forwarding state: arriving at a hybrid subnet. Appropriate routing configuration will be determined here.", "Forwarding state: arriving at a Cloud VPN gateway.", "Forwarding state: arriving at a Cloud VPN tunnel.", + "Forwarding state: arriving at an interconnect attachment.", "Forwarding state: arriving at a VPC connector.", "Forwarding state: for packets originating from a serverless endpoint forwarded through Direct VPC egress.", "Forwarding state: for packets originating from a serverless endpoint forwarded through public (external) connectivity.", - "Transition state: packet header translated.", + "Transition state: packet header translated. The `nat` field is populated with the translation information.", "Transition state: original connection is terminated and a new proxied connection is initiated.", "Final state: packet could be delivered.", "Final state: packet could be dropped.", @@ -4554,6 +5127,20 @@ "readOnly": true, "type": "string" }, + "crossProjectMetadata": { + "description": "Optional. Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.", + "enum": [ + "CROSS_PROJECT_METADATA_UNSPECIFIED", + "CROSS_PROJECT_METADATA_ENABLED", + "CROSS_PROJECT_METADATA_DISABLED" + ], + "enumDescriptions": [ + "If not specified, the default is CROSS_PROJECT_METADATA_ENABLED.", + "When CROSS_PROJECT_METADATA_ENABLED, metadata from other projects will be included in the logs.", + "When CROSS_PROJECT_METADATA_DISABLED, metadata from other projects will not be included in the logs." + ], + "type": "string" + }, "description": { "description": "Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.", "type": "string" @@ -4605,6 +5192,10 @@ "description": "Identifier. Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`", "type": "string" }, + "network": { + "description": "Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}", + "type": "string" + }, "state": { "description": "Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.", "enum": [ @@ -4619,6 +5210,10 @@ ], "type": "string" }, + "subnet": { + "description": "Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}", + "type": "string" + }, "targetResourceState": { "description": "Output only. Describes the state of the configured target resource for diagnostic purposes.", "enum": [ diff --git a/discovery/googleapis/networksecurity__v1.json b/discovery/googleapis/networksecurity__v1.json index 7bda25743..0220a51fc 100644 --- a/discovery/googleapis/networksecurity__v1.json +++ b/discovery/googleapis/networksecurity__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250714", + "revision": "20250822", "rootUrl": "https://networksecurity.googleapis.com/", "servicePath": "", "title": "Network Security API", @@ -561,7 +561,7 @@ ], "parameters": { "name": { - "description": "Immutable. Identifier. name of resource", + "description": "Immutable. Identifier. Name of resource.", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/firewallEndpoints/[^/]+$", "required": true, @@ -1082,7 +1082,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -5389,21 +5389,21 @@ "id": "AuthzPolicyAuthzRuleFromRequestSource", "properties": { "ipBlocks": { - "description": "Optional. A list of IP addresses or IP address ranges to match against the source IP address of the request. Limited to 5 ip_blocks.", + "description": "Optional. A list of IP addresses or IP address ranges to match against the source IP address of the request. Limited to 10 ip_blocks per Authorization Policy", "items": { "$ref": "AuthzPolicyAuthzRuleIpBlock" }, "type": "array" }, "principals": { - "description": "Optional. A list of identities derived from the client's certificate. This field will not match on a request unless frontend mutual TLS is enabled for the forwarding rule or Gateway and the client certificate has been successfully validated by mTLS. Each identity is a string whose value is matched against a list of URI SANs, DNS Name SANs, or the common name in the client's certificate. A match happens when any principal matches with the rule. Limited to 5 principals.", + "description": "Optional. A list of identities derived from the client's certificate. This field will not match on a request unless frontend mutual TLS is enabled for the forwarding rule or Gateway and the client certificate has been successfully validated by mTLS. Each identity is a string whose value is matched against a list of URI SANs, DNS Name SANs, or the common name in the client's certificate. A match happens when any principal matches with the rule. Limited to 50 principals per Authorization Policy for Regional Internal Application Load Balancer, Regional External Application Load Balancer, Cross-region Internal Application Load Balancer, and Cloud Service Mesh. Limited to 25 principals per Authorization Policy for Global External Application Load Balancer.", "items": { "$ref": "AuthzPolicyAuthzRulePrincipal" }, "type": "array" }, "resources": { - "description": "Optional. A list of resources to match against the resource of the source VM of a request. Limited to 5 resources.", + "description": "Optional. A list of resources to match against the resource of the source VM of a request. Limited to 10 resources per Authorization Policy.", "items": { "$ref": "AuthzPolicyAuthzRuleRequestResource" }, @@ -5461,9 +5461,9 @@ ], "enumDescriptions": [ "Unspecified principal selector. It will be treated as CLIENT_CERT_URI_SAN by default.", - "The principal rule is matched against a list of URI SANs in the validated client’s certificate. A match happens when there is any exact URI SAN value match. This is the default principal selector.", - "The principal rule is matched against a list of DNS Name SANs in the validated client’s certificate. A match happens when there is any exact DNS Name SAN value match.", - "The principal rule is matched against the common name in the client’s certificate. Authorization against multiple common names in the client certificate is not supported. Requests with multiple common names in the client certificate will be rejected if CLIENT_CERT_COMMON_NAME is set as the principal selector. A match happens when there is an exact common name value match. This is only applicable for Application Load Balancers except for classic Global External Application load balancer. CLIENT_CERT_COMMON_NAME is not supported for INTERNAL_SELF_MANAGED load balancing scheme." + "The principal rule is matched against a list of URI SANs in the validated client's certificate. A match happens when there is any exact URI SAN value match. This is the default principal selector.", + "The principal rule is matched against a list of DNS Name SANs in the validated client's certificate. A match happens when there is any exact DNS Name SAN value match. This is only applicable for Application Load Balancers except for classic Global External Application load balancer. CLIENT_CERT_DNS_NAME_SAN is not supported for INTERNAL_SELF_MANAGED load balancing scheme.", + "The principal rule is matched against the common name in the client's certificate. Authorization against multiple common names in the client certificate is not supported. Requests with multiple common names in the client certificate will be rejected if CLIENT_CERT_COMMON_NAME is set as the principal selector. A match happens when there is an exact common name value match. This is only applicable for Application Load Balancers except for classic Global External Application load balancer. CLIENT_CERT_COMMON_NAME is not supported for INTERNAL_SELF_MANAGED load balancing scheme." ], "type": "string" } @@ -5490,7 +5490,7 @@ "id": "AuthzPolicyAuthzRuleRequestResourceTagValueIdSet", "properties": { "ids": { - "description": "Required. A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request. The match follows AND semantics which means all the ids must match. Limited to 5 matches.", + "description": "Required. A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request. The match follows AND semantics which means all the ids must match. Limited to 5 ids in the Tag value id set.", "items": { "format": "int64", "type": "string" @@ -5557,21 +5557,21 @@ "description": "Optional. A list of headers to match against in http header." }, "hosts": { - "description": "Optional. A list of HTTP Hosts to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 5 matches.", + "description": "Optional. A list of HTTP Hosts to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 10 hosts per Authorization Policy.", "items": { "$ref": "AuthzPolicyAuthzRuleStringMatch" }, "type": "array" }, "methods": { - "description": "Optional. A list of HTTP methods to match against. Each entry must be a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE, OPTIONS). It only allows exact match and is always case sensitive.", + "description": "Optional. A list of HTTP methods to match against. Each entry must be a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE, OPTIONS). It only allows exact match and is always case sensitive. Limited to 10 methods per Authorization Policy.", "items": { "type": "string" }, "type": "array" }, "paths": { - "description": "Optional. A list of paths to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 5 matches. Note that this path match includes the query parameters. For gRPC services, this should be a fully-qualified name of the form /package.service/method.", + "description": "Optional. A list of paths to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 10 paths per Authorization Policy. Note that this path match includes the query parameters. For gRPC services, this should be a fully-qualified name of the form /package.service/method.", "items": { "$ref": "AuthzPolicyAuthzRuleStringMatch" }, @@ -5585,7 +5585,7 @@ "id": "AuthzPolicyAuthzRuleToRequestOperationHeaderSet", "properties": { "headers": { - "description": "Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 5 matches.", + "description": "Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.", "items": { "$ref": "AuthzPolicyAuthzRuleHeaderMatch" }, @@ -5634,7 +5634,7 @@ "id": "AuthzPolicyTarget", "properties": { "loadBalancingScheme": { - "description": "Required. All gateways and forwarding rules referenced by this policy and extensions must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).", + "description": "Required. All gateways and forwarding rules referenced by this policy and extensions must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `INTERNAL_SELF_MANAGED`, and `EXTERNAL_MANAGED`. For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).", "enum": [ "LOAD_BALANCING_SCHEME_UNSPECIFIED", "INTERNAL_MANAGED", @@ -5650,7 +5650,7 @@ "type": "string" }, "resources": { - "description": "Required. A list of references to the Forwarding Rules on which this policy will be applied.", + "description": "Required. A list of references to the Forwarding Rules on which this policy will be applied. For policies created for Cloudrun, this field will reference the Cloud Run services.", "items": { "type": "string" }, @@ -5886,7 +5886,7 @@ "type": "object" }, "FirewallEndpoint": { - "description": "Message describing Endpoint object", + "description": "Message describing Endpoint object.", "id": "FirewallEndpoint", "properties": { "associatedNetworks": { @@ -5911,7 +5911,7 @@ "type": "string" }, "createTime": { - "description": "Output only. Create time stamp", + "description": "Output only. Create time stamp.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -5920,6 +5920,10 @@ "description": "Optional. Description of the firewall endpoint. Max length 2048 characters.", "type": "string" }, + "endpointSettings": { + "$ref": "FirewallEndpointEndpointSettings", + "description": "Optional. Settings for the endpoint." + }, "labels": { "additionalProperties": { "type": "string" @@ -5928,7 +5932,7 @@ "type": "object" }, "name": { - "description": "Immutable. Identifier. name of resource", + "description": "Immutable. Identifier. Name of resource.", "type": "string" }, "reconciling": { @@ -6063,6 +6067,12 @@ }, "type": "object" }, + "FirewallEndpointEndpointSettings": { + "description": "Settings for the endpoint.", + "id": "FirewallEndpointEndpointSettings", + "properties": {}, + "type": "object" + }, "GatewaySecurityPolicy": { "description": "The GatewaySecurityPolicy resource contains a collection of GatewaySecurityPolicyRules and associated metadata.", "id": "GatewaySecurityPolicy", diff --git a/discovery/googleapis/observability__v1.json b/discovery/googleapis/observability__v1.json index 95b3f5982..71402dc55 100644 --- a/discovery/googleapis/observability__v1.json +++ b/discovery/googleapis/observability__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250417", + "revision": "20250904", "rootUrl": "https://observability.googleapis.com/", "servicePath": "", "title": "Observability API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -372,6 +372,163 @@ ] } } + }, + "traceScopes": { + "methods": { + "create": { + "description": "Create a new TraceScope.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/traceScopes", + "httpMethod": "POST", + "id": "observability.projects.locations.traceScopes.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The full resource name of the location where the trace scope should be created projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "traceScopeId": { + "description": "Required. A client-assigned identifier for the trace scope.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/traceScopes", + "request": { + "$ref": "TraceScope" + }, + "response": { + "$ref": "TraceScope" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete a TraceScope.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/traceScopes/{traceScopesId}", + "httpMethod": "DELETE", + "id": "observability.projects.locations.traceScopes.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The full resource name of the trace scope to delete: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/traceScopes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get TraceScope resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/traceScopes/{traceScopesId}", + "httpMethod": "GET", + "id": "observability.projects.locations.traceScopes.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the trace scope: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/traceScopes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "TraceScope" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List TraceScopes of a project in a particular location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/traceScopes", + "httpMethod": "GET", + "id": "observability.projects.locations.traceScopes.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of `next_page_token` in the response indicates that more results might be available.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters should be identical to those in the previous call.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The full resource name of the location to look for trace scopes: projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/traceScopes", + "response": { + "$ref": "ListTraceScopesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Update a TraceScope.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/traceScopes/{traceScopesId}", + "httpMethod": "PATCH", + "id": "observability.projects.locations.traceScopes.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the trace scope. For example: projects/my-project/locations/global/traceScopes/my-trace-scope", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/traceScopes/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "TraceScope" + }, + "response": { + "$ref": "TraceScope" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } } @@ -427,6 +584,24 @@ }, "type": "object" }, + "ListTraceScopesResponse": { + "description": "Response for listing TraceScopes.", + "id": "ListTraceScopesResponse", + "properties": { + "nextPageToken": { + "description": "Optional. If there might be more results than appear in this response, then `next_page_token` is included. To get the next set of results, call the same method again using the value of `next_page_token` as `page_token`.", + "type": "string" + }, + "traceScopes": { + "description": "Optional. A list of trace scopes.", + "items": { + "$ref": "TraceScope" + }, + "type": "array" + } + }, + "type": "object" + }, "Location": { "description": "A resource that represents a Google Cloud location.", "id": "Location", @@ -552,6 +727,10 @@ "description": "Identifier. Name of the resource. The format is: projects/{project}/locations/{location}/scopes/{scope} The `{location}` field must be set to `global`. The `{scope}` field must be set to `_Default`.", "type": "string" }, + "traceScope": { + "description": "Required. The resource name of the `TraceScope`. For example: projects/myproject/locations/global/traceScopes/my-trace-scope", + "type": "string" + }, "updateTime": { "description": "Output only. Update timestamp. Note: The Update timestamp for the default scope is initially unset.", "format": "google-datetime", @@ -587,6 +766,40 @@ } }, "type": "object" + }, + "TraceScope": { + "description": "A trace scope is a collection of resources whose traces are queried together.", + "id": "TraceScope", + "properties": { + "createTime": { + "description": "Output only. The creation timestamp of the trace scope.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. Describes this trace scope. The maximum length of the description is 8000 characters.", + "type": "string" + }, + "name": { + "description": "Identifier. The resource name of the trace scope. For example: projects/my-project/locations/global/traceScopes/my-trace-scope", + "type": "string" + }, + "resourceNames": { + "description": "Required. Names of the projects that are included in this trace scope. * `projects/[PROJECT_ID]` A trace scope can include a maximum of 20 projects.", + "items": { + "type": "string" + }, + "type": "array" + }, + "updateTime": { + "description": "Output only. The last update timestamp of the trace scope.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" } } } diff --git a/discovery/googleapis/ondemandscanning__v1.json b/discovery/googleapis/ondemandscanning__v1.json index d07b453b2..4b31a9b48 100644 --- a/discovery/googleapis/ondemandscanning__v1.json +++ b/discovery/googleapis/ondemandscanning__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250519", + "revision": "20250815", "rootUrl": "https://ondemandscanning.googleapis.com/", "servicePath": "", "title": "On-Demand Scanning API", @@ -696,6 +696,16 @@ }, "type": "object" }, + "CISAKnownExploitedVulnerabilities": { + "id": "CISAKnownExploitedVulnerabilities", + "properties": { + "knownRansomwareCampaignUse": { + "description": "Whether the vulnerability is known to have been leveraged as part of a ransomware campaign.", + "type": "string" + } + }, + "type": "object" + }, "CVSS": { "description": "Common Vulnerability Scoring System. For details, see https://www.first.org/cvss/specification-document This is a message we will try to use for storing various versions of CVSS rather than making a separate proto for storing a specific version.", "id": "CVSS", @@ -1182,6 +1192,22 @@ }, "type": "object" }, + "ExploitPredictionScoringSystem": { + "id": "ExploitPredictionScoringSystem", + "properties": { + "percentile": { + "description": "The percentile of the current score, the proportion of all scored vulnerabilities with the same or a lower EPSS score", + "format": "double", + "type": "number" + }, + "score": { + "description": "The EPSS score representing the probability [0-1] of exploitation in the wild in the next 30 days", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "File": { "id": "File", "properties": { @@ -2437,6 +2463,20 @@ }, "type": "object" }, + "Risk": { + "id": "Risk", + "properties": { + "cisaKev": { + "$ref": "CISAKnownExploitedVulnerabilities", + "description": "CISA maintains the authoritative source of vulnerabilities that have been exploited in the wild." + }, + "epss": { + "$ref": "ExploitPredictionScoringSystem", + "description": "The Exploit Prediction Scoring System (EPSS) estimates the likelihood (probability) that a software vulnerability will be exploited in the wild." + } + }, + "type": "object" + }, "RunDetails": { "id": "RunDetails", "properties": { @@ -3141,6 +3181,10 @@ }, "type": "array" }, + "risk": { + "$ref": "Risk", + "description": "Risk information about the vulnerability, such as CISA, EPSS, etc." + }, "severity": { "description": "Output only. The note provider assigned severity of this vulnerability.", "enum": [ diff --git a/discovery/googleapis/oracledatabase__v1.json b/discovery/googleapis/oracledatabase__v1.json index 38bfe98f3..5b6857776 100644 --- a/discovery/googleapis/oracledatabase__v1.json +++ b/discovery/googleapis/oracledatabase__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250717", + "revision": "20250914", "rootUrl": "https://oracledatabase.googleapis.com/", "servicePath": "", "title": "Oracle Database@Google Cloud API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -737,6 +737,16 @@ "parent" ], "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. An expression for ordering the results of the request.", + "location": "query", + "type": "string" + }, "pageSize": { "description": "Optional. The maximum number of items to return. If unspecified, at most 50 Exadata infrastructures will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", "format": "int32", @@ -993,39 +1003,44 @@ } } }, - "dbSystemShapes": { + "databaseCharacterSets": { "methods": { "list": { - "description": "Lists the database system shapes available for the project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbSystemShapes", + "description": "List DatabaseCharacterSets for the given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/databaseCharacterSets", "httpMethod": "GET", - "id": "oracledatabase.projects.locations.dbSystemShapes.list", + "id": "oracledatabase.projects.locations.databaseCharacterSets.list", "parameterOrder": [ "parent" ], "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request. Only the **character_set_type** field is supported in the following format: `character_set_type=\"{characterSetType}\"`. Accepted values include `DATABASE` and `NATIONAL`.", + "location": "query", + "type": "string" + }, "pageSize": { - "description": "Optional. The maximum number of items to return. If unspecified, at most 50 database system shapes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "description": "Optional. The maximum number of DatabaseCharacterSets to return. The service may return fewer than this value. If unspecified, at most 50 DatabaseCharacterSets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "Optional. A token identifying a page of results the server should return.", + "description": "Optional. A page token, received from a previous `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDatabaseCharacterSets` must match the call that provided the page token.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The parent value for Database System Shapes in the following format: projects/{project}/locations/{location}.", + "description": "Required. The parent value for DatabaseCharacterSets in the following format: projects/{project}/locations/{location}.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/dbSystemShapes", + "path": "v1/{+parent}/databaseCharacterSets", "response": { - "$ref": "ListDbSystemShapesResponse" + "$ref": "ListDatabaseCharacterSetsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -1033,39 +1048,69 @@ } } }, - "entitlements": { + "databases": { "methods": { + "get": { + "description": "Gets details of a single Database.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/databases/{databasesId}", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.databases.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Database resource in the following format: projects/{project}/locations/{region}/databases/{database}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/databases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Database" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { - "description": "Lists the entitlements in a given project.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/entitlements", + "description": "Lists all the Databases for the given project, location and DbSystem.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/databases", "httpMethod": "GET", - "id": "oracledatabase.projects.locations.entitlements.list", + "id": "oracledatabase.projects.locations.databases.list", "parameterOrder": [ "parent" ], "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request. list for container databases is supported only with a valid dbSystem (full resource name) filter in this format: `dbSystem=\"projects/{project}/locations/{location}/dbSystems/{dbSystemId}\"`", + "location": "query", + "type": "string" + }, "pageSize": { - "description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 entitlements will be returned. The maximum value is 1000.", + "description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 System Versions will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "Optional. A token identifying a page of results the server should return.", + "description": "Optional. A token identifying the requested page of results to return. All fields except the filter should remain the same as in the request that provided this page token.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The parent value for the entitlement in the following format: projects/{project}/locations/{location}.", + "description": "Required. The parent resource name in the following format: projects/{project}/locations/{region}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/entitlements", + "path": "v1/{+parent}/databases", "response": { - "$ref": "ListEntitlementsResponse" + "$ref": "ListDatabasesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -1073,24 +1118,64 @@ } } }, - "giVersions": { + "dbSystemInitialStorageSizes": { "methods": { "list": { - "description": "Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/giVersions", + "description": "Lists all the DbSystemInitialStorageSizes for the given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbSystemInitialStorageSizes", "httpMethod": "GET", - "id": "oracledatabase.projects.locations.giVersions.list", + "id": "oracledatabase.projects.locations.dbSystemInitialStorageSizes.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 System Versions will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying the requested page of results to return. All fields except the filter should remain the same as in the request that provided this page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for the DbSystemInitialStorageSize resource with the format: projects/{project}/locations/{location}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/dbSystemInitialStorageSizes", + "response": { + "$ref": "ListDbSystemInitialStorageSizesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "dbSystemShapes": { + "methods": { + "list": { + "description": "Lists the database system shapes available for the project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbSystemShapes", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.dbSystemShapes.list", "parameterOrder": [ "parent" ], "parameters": { "filter": { - "description": "Optional. An expression for filtering the results of the request. Only the shape and gi_version fields are supported in this format: `shape=\"{shape}\"`.", + "description": "Optional. An expression for filtering the results of the request. Only the gcp_oracle_zone_id field is supported in this format: `gcp_oracle_zone_id=\"{gcp_oracle_zone_id}\"`.", "location": "query", "type": "string" }, "pageSize": { - "description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.", + "description": "Optional. The maximum number of items to return. If unspecified, at most 50 database system shapes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", "format": "int32", "location": "query", "type": "integer" @@ -1101,16 +1186,16 @@ "type": "string" }, "parent": { - "description": "Required. The parent value for Grid Infrastructure Version in the following format: Format: projects/{project}/locations/{location}.", + "description": "Required. The parent value for Database System Shapes in the following format: projects/{project}/locations/{location}.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/giVersions", + "path": "v1/{+parent}/dbSystemShapes", "response": { - "$ref": "ListGiVersionsResponse" + "$ref": "ListDbSystemShapesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -1118,38 +1203,38 @@ } } }, - "odbNetworks": { + "dbSystems": { "methods": { "create": { - "description": "Creates a new ODB Network in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks", + "description": "Creates a new DbSystem in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbSystems", "httpMethod": "POST", - "id": "oracledatabase.projects.locations.odbNetworks.create", + "id": "oracledatabase.projects.locations.dbSystems.create", "parameterOrder": [ "parent" ], "parameters": { - "odbNetworkId": { - "description": "Required. The ID of the OdbNetwork to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.", + "dbSystemId": { + "description": "Required. The ID of the DbSystem to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The parent value for the OdbNetwork in the following format: projects/{project}/locations/{location}.", + "description": "Required. The value for parent of the DbSystem in the following format: projects/{project}/locations/{location}.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" }, "requestId": { - "description": "Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", "location": "query", "type": "string" } }, - "path": "v1/{+parent}/odbNetworks", + "path": "v1/{+parent}/dbSystems", "request": { - "$ref": "OdbNetwork" + "$ref": "DbSystem" }, "response": { "$ref": "Operation" @@ -1159,18 +1244,18 @@ ] }, "delete": { - "description": "Deletes a single ODB Network.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}", + "description": "Deletes a single DbSystem.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbSystems/{dbSystemsId}", "httpMethod": "DELETE", - "id": "oracledatabase.projects.locations.odbNetworks.delete", + "id": "oracledatabase.projects.locations.dbSystems.delete", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.", + "description": "Required. The name of the DbSystem in the following format: projects/{project}/locations/{location}/dbSystems/{db_system}.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/dbSystems/[^/]+$", "required": true, "type": "string" }, @@ -1189,35 +1274,35 @@ ] }, "get": { - "description": "Gets details of a single ODB Network.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}", + "description": "Gets details of a single DbSystem.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbSystems/{dbSystemsId}", "httpMethod": "GET", - "id": "oracledatabase.projects.locations.odbNetworks.get", + "id": "oracledatabase.projects.locations.dbSystems.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the OdbNetwork in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.", + "description": "Required. The name of the DbSystem in the following format: projects/{project}/locations/{location}/dbSystems/{db_system}.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/dbSystems/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "OdbNetwork" + "$ref": "DbSystem" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists the ODB Networks in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks", + "description": "Lists all the DbSystems for the given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbSystems", "httpMethod": "GET", - "id": "oracledatabase.projects.locations.odbNetworks.list", + "id": "oracledatabase.projects.locations.dbSystems.list", "parameterOrder": [ "parent" ], @@ -1233,7 +1318,7 @@ "type": "string" }, "pageSize": { - "description": "Optional. The maximum number of items to return. If unspecified, at most 50 ODB Networks will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "description": "Optional. The maximum number of items to return. If unspecified, at most 50 DbSystems will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", "format": "int32", "location": "query", "type": "integer" @@ -1244,130 +1329,403 @@ "type": "string" }, "parent": { - "description": "Required. The parent value for the ODB Network in the following format: projects/{project}/locations/{location}.", + "description": "Required. The parent value for DbSystems in the following format: projects/{project}/locations/{location}.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/odbNetworks", + "path": "v1/{+parent}/dbSystems", "response": { - "$ref": "ListOdbNetworksResponse" + "$ref": "ListDbSystemsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] } - }, - "resources": { - "odbSubnets": { - "methods": { - "create": { - "description": "Creates a new ODB Subnet in a given ODB Network.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets", - "httpMethod": "POST", - "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "odbSubnetId": { - "description": "Required. The ID of the OdbSubnet to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent value for the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+$", - "required": true, - "type": "string" - }, - "requestId": { - "description": "Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+parent}/odbSubnets", - "request": { - "$ref": "OdbSubnet" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } + }, + "dbVersions": { + "methods": { + "list": { + "description": "List DbVersions for the given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbVersions", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.dbVersions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter expression that matches a subset of the DbVersions to show. The supported filter for dbSystem creation is `db_system_shape = {db_system_shape} AND storage_management = {storage_management}`. If no filter is provided, all DbVersions will be returned.", + "location": "query", + "type": "string" }, - "delete": { - "description": "Deletes a single ODB Subnet.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets/{odbSubnetsId}", - "httpMethod": "DELETE", - "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+$", - "required": true, - "type": "string" - }, - "requestId": { - "description": "Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 System Versions will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.", + "format": "int32", + "location": "query", + "type": "integer" }, - "get": { - "description": "Gets details of a single ODB Subnet.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets/{odbSubnetsId}", - "httpMethod": "GET", - "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "OdbSubnet" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "pageToken": { + "description": "Optional. A token identifying the requested page of results to return. All fields except the filter should remain the same as in the request that provided this page token.", + "location": "query", + "type": "string" }, - "list": { - "description": "Lists all the ODB Subnets in a given ODB Network.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets", - "httpMethod": "GET", - "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. An expression for filtering the results of the request.", - "location": "query", + "parent": { + "description": "Required. The parent value for the DbVersion resource with the format: projects/{project}/locations/{location}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/dbVersions", + "response": { + "$ref": "ListDbVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "entitlements": { + "methods": { + "list": { + "description": "Lists the entitlements in a given project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/entitlements", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.entitlements.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 entitlements will be returned. The maximum value is 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for the entitlement in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/entitlements", + "response": { + "$ref": "ListEntitlementsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "giVersions": { + "methods": { + "list": { + "description": "Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/giVersions", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.giVersions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request. Only the shape, gcp_oracle_zone and gi_version fields are supported in this format: `shape=\"{shape}\"`.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for Grid Infrastructure Version in the following format: Format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/giVersions", + "response": { + "$ref": "ListGiVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "odbNetworks": { + "methods": { + "create": { + "description": "Creates a new ODB Network in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks", + "httpMethod": "POST", + "id": "oracledatabase.projects.locations.odbNetworks.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "odbNetworkId": { + "description": "Required. The ID of the OdbNetwork to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for the OdbNetwork in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/odbNetworks", + "request": { + "$ref": "OdbNetwork" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single ODB Network.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}", + "httpMethod": "DELETE", + "id": "oracledatabase.projects.locations.odbNetworks.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single ODB Network.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.odbNetworks.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the OdbNetwork in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "OdbNetwork" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists the ODB Networks in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.odbNetworks.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. An expression for ordering the results of the request.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, at most 50 ODB Networks will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for the ODB Network in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/odbNetworks", + "response": { + "$ref": "ListOdbNetworksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "odbSubnets": { + "methods": { + "create": { + "description": "Creates a new ODB Subnet in a given ODB Network.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets", + "httpMethod": "POST", + "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "odbSubnetId": { + "description": "Required. The ID of the OdbSubnet to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/odbSubnets", + "request": { + "$ref": "OdbSubnet" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single ODB Subnet.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets/{odbSubnetsId}", + "httpMethod": "DELETE", + "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single ODB Subnet.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets/{odbSubnetsId}", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "OdbSubnet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all the ODB Subnets in a given ODB Network.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request.", + "location": "query", "type": "string" }, "orderBy": { @@ -1460,68 +1818,138 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "pluggableDatabases": { + "methods": { "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "description": "Gets details of a single PluggableDatabase.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/pluggableDatabases/{pluggableDatabasesId}", "httpMethod": "GET", - "id": "oracledatabase.projects.locations.operations.get", + "id": "oracledatabase.projects.locations.pluggableDatabases.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "The name of the operation resource.", + "description": "Required. The name of the PluggableDatabase resource in the following format: projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/pluggableDatabases/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "Operation" + "$ref": "PluggableDatabase" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + "description": "Lists all the PluggableDatabases for the given project, location and Container Database.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/pluggableDatabases", "httpMethod": "GET", - "id": "oracledatabase.projects.locations.operations.list", + "id": "oracledatabase.projects.locations.pluggableDatabases.list", "parameterOrder": [ - "name" + "parent" ], "parameters": { "filter": { - "description": "The standard list filter.", + "description": "Optional. An expression for filtering the results of the request. List for pluggable databases is supported only with a valid container database (full resource name) filter in this format: `database=\"projects/{project}/locations/{location}/databases/{database}\"`", "location": "query", "type": "string" }, - "name": { - "description": "The name of the operation's parent resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - }, "pageSize": { - "description": "The standard list page size.", + "description": "Optional. The maximum number of PluggableDatabases to return. The service may return fewer than this value.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The standard list page token.", + "description": "Optional. A page token, received from a previous `ListPluggableDatabases` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPluggableDatabases` must match the call that provided the page token.", "location": "query", "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of PluggableDatabases. Format: projects/{project}/locations/{location}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" } }, - "path": "v1/{+name}/operations", + "path": "v1/{+parent}/pluggableDatabases", "response": { - "$ref": "ListOperationsResponse" + "$ref": "ListPluggableDatabasesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -2595,6 +3023,33 @@ }, "type": "object" }, + "BackupDestinationDetails": { + "description": "The details of the database backup destination.", + "id": "BackupDestinationDetails", + "properties": { + "type": { + "description": "Optional. The type of the database backup destination.", + "enum": [ + "BACKUP_DESTINATION_TYPE_UNSPECIFIED", + "NFS", + "RECOVERY_APPLIANCE", + "OBJECT_STORE", + "LOCAL", + "DBRS" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Backup destination type is NFS.", + "Backup destination type is Recovery Appliance.", + "Backup destination type is Object Store.", + "Backup destination type is Local.", + "Backup destination type is DBRS." + ], + "type": "string" + } + }, + "type": "object" + }, "CancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "CancelOperationRequest", @@ -2648,7 +3103,7 @@ "type": "string" }, "gcpOracleZone": { - "description": "Optional. Google Cloud Platform location where Oracle Exadata is hosted.", + "description": "Optional. The GCP Oracle zone where Oracle Exadata Infrastructure is hosted. Example: us-east4-b-r2. If not specified, the system will pick a zone based on availability.", "type": "string" }, "labels": { @@ -2900,10 +3355,15 @@ "type": "string" }, "gcpOracleZone": { - "description": "Output only. Google Cloud Platform location where Oracle Exadata is hosted. It is same as Google Cloud Platform Oracle zone of Exadata infrastructure.", + "description": "Output only. The GCP Oracle zone where Oracle CloudVmCluster is hosted. This will be the same as the gcp_oracle_zone of the CloudExadataInfrastructure. Example: us-east4-b-r2.", "readOnly": true, "type": "string" }, + "identityConnector": { + "$ref": "IdentityConnector", + "description": "Output only. The identity connector details which will allow OCI to securely access the resources in the customer project.", + "readOnly": true + }, "labels": { "additionalProperties": { "type": "string" @@ -3186,6 +3646,138 @@ }, "type": "object" }, + "DataCollectionOptionsDbSystem": { + "description": "Data collection options for DbSystem.", + "id": "DataCollectionOptionsDbSystem", + "properties": { + "isDiagnosticsEventsEnabled": { + "description": "Optional. Indicates whether to enable data collection for diagnostics.", + "type": "boolean" + }, + "isIncidentLogsEnabled": { + "description": "Optional. Indicates whether to enable incident logs and trace collection.", + "type": "boolean" + } + }, + "type": "object" + }, + "Database": { + "description": "Details of the Database resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/Database/", + "id": "Database", + "properties": { + "adminPassword": { + "description": "Required. The password for the default ADMIN user.", + "type": "string" + }, + "characterSet": { + "description": "Optional. The character set for the database. The default is AL32UTF8.", + "type": "string" + }, + "createTime": { + "description": "Output only. The date and time that the Database was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "databaseId": { + "description": "Optional. The database ID of the Database.", + "type": "string" + }, + "dbHomeName": { + "description": "Optional. The name of the DbHome resource associated with the Database.", + "type": "string" + }, + "dbName": { + "description": "Optional. The database name. The name must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted.", + "type": "string" + }, + "dbUniqueName": { + "description": "Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up.", + "type": "string" + }, + "gcpOracleZone": { + "description": "Output only. The GCP Oracle zone where the Database is created.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The name of the Database resource in the following format: projects/{project}/locations/{region}/databases/{database}", + "type": "string" + }, + "ncharacterSet": { + "description": "Optional. The national character set for the database. The default is AL16UTF16.", + "type": "string" + }, + "ociUrl": { + "description": "Output only. HTTPS link to OCI resources exposed to Customer via UI Interface.", + "readOnly": true, + "type": "string" + }, + "opsInsightsStatus": { + "description": "Output only. The Status of Operations Insights for this Database.", + "enum": [ + "OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED", + "ENABLING", + "ENABLED", + "DISABLING", + "NOT_ENABLED", + "FAILED_ENABLING", + "FAILED_DISABLING" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Indicates that the operations insights are being enabled.", + "Indicates that the operations insights are enabled.", + "Indicates that the operations insights are being disabled.", + "Indicates that the operations insights are not enabled.", + "Indicates that the operations insights failed to enable.", + "Indicates that the operations insights failed to disable." + ], + "readOnly": true, + "type": "string" + }, + "properties": { + "$ref": "DatabaseProperties", + "description": "Optional. The properties of the Database." + }, + "tdeWalletPassword": { + "description": "Optional. The TDE wallet password for the database.", + "type": "string" + } + }, + "type": "object" + }, + "DatabaseCharacterSet": { + "description": "Details of the Database character set resource.", + "id": "DatabaseCharacterSet", + "properties": { + "characterSet": { + "description": "Output only. The character set name for the Database which is the ID in the resource name.", + "readOnly": true, + "type": "string" + }, + "characterSetType": { + "description": "Output only. The character set type for the Database.", + "enum": [ + "CHARACTER_SET_TYPE_UNSPECIFIED", + "DATABASE", + "NATIONAL" + ], + "enumDescriptions": [ + "Character set type is not specified.", + "Character set type is set to database.", + "Character set type is set to national." + ], + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The name of the Database Character Set resource in the following format: projects/{project}/locations/{region}/databaseCharacterSets/{database_character_set}", + "type": "string" + } + }, + "type": "object" + }, "DatabaseConnectionStringProfile": { "description": "The connection string profile to allow clients to group. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DatabaseConnectionStringProfile", "id": "DatabaseConnectionStringProfile", @@ -3280,28 +3872,280 @@ "Ezconnect", "Ezconnectplus" ], - "readOnly": true, + "readOnly": true, + "type": "string" + }, + "tlsAuthentication": { + "description": "Output only. This field indicates the TLS authentication type of the connection.", + "enum": [ + "TLS_AUTHENTICATION_UNSPECIFIED", + "SERVER", + "MUTUAL" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Server", + "Mutual" + ], + "readOnly": true, + "type": "string" + }, + "value": { + "description": "Output only. The value of the connection string.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DatabaseManagementConfig": { + "description": "The configuration of the Database Management service.", + "id": "DatabaseManagementConfig", + "properties": { + "managementState": { + "description": "Output only. The status of the Database Management service.", + "enum": [ + "MANAGEMENT_STATE_UNSPECIFIED", + "ENABLING", + "ENABLED", + "DISABLING", + "DISABLED", + "UPDATING", + "FAILED_ENABLING", + "FAILED_DISABLING", + "FAILED_UPDATING" + ], + "enumDescriptions": [ + "The status is not specified.", + "The Database Management service is enabling.", + "The Database Management service is enabled.", + "The Database Management service is disabling.", + "The Database Management service is disabled.", + "The Database Management service is updating.", + "The Database Management service failed to enable.", + "The Database Management service failed to disable.", + "The Database Management service failed to update." + ], + "readOnly": true, + "type": "string" + }, + "managementType": { + "description": "Output only. The Database Management type.", + "enum": [ + "MANAGEMENT_TYPE_UNSPECIFIED", + "BASIC", + "ADVANCED" + ], + "enumDescriptions": [ + "The type is not specified.", + "Basic Database Management.", + "Advanced Database Management." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DatabaseProperties": { + "description": "The properties of a Database.", + "id": "DatabaseProperties", + "properties": { + "databaseManagementConfig": { + "$ref": "DatabaseManagementConfig", + "description": "Output only. The Database Management config.", + "readOnly": true + }, + "dbBackupConfig": { + "$ref": "DbBackupConfig", + "description": "Optional. Backup options for the Database." + }, + "dbVersion": { + "description": "Required. The Oracle Database version.", + "type": "string" + }, + "state": { + "description": "Output only. State of the Database.", + "enum": [ + "DATABASE_LIFECYCLE_STATE_UNSPECIFIED", + "PROVISIONING", + "AVAILABLE", + "UPDATING", + "BACKUP_IN_PROGRESS", + "UPGRADING", + "CONVERTING", + "TERMINATING", + "TERMINATED", + "RESTORE_FAILED", + "FAILED" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Indicates that the resource is in provisioning state.", + "Indicates that the resource is in available state.", + "Indicates that the resource is in updating state.", + "Indicates that the resource is in backup in progress state.", + "Indicates that the resource is in upgrading state.", + "Indicates that the resource is in converting state.", + "Indicates that the resource is in terminating state.", + "Indicates that the resource is in terminated state.", + "Indicates that the resource is in restore failed state.", + "Indicates that the resource is in failed state." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DbBackupConfig": { + "description": "Backup Options for the Database.", + "id": "DbBackupConfig", + "properties": { + "autoBackupEnabled": { + "description": "Optional. If set to true, enables automatic backups on the database.", + "type": "boolean" + }, + "autoFullBackupDay": { + "description": "Optional. The day of the week on which the full backup should be performed on the database. If no value is provided, it will default to Sunday.", + "enum": [ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ], + "enumDescriptions": [ + "The day of the week is unspecified.", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "type": "string" + }, + "autoFullBackupWindow": { + "description": "Optional. The window in which the full backup should be performed on the database. If no value is provided, the default is anytime.", + "enum": [ + "BACKUP_WINDOW_UNSPECIFIED", + "SLOT_ONE", + "SLOT_TWO", + "SLOT_THREE", + "SLOT_FOUR", + "SLOT_FIVE", + "SLOT_SIX", + "SLOT_SEVEN", + "SLOT_EIGHT", + "SLOT_NINE", + "SLOT_TEN", + "SLOT_ELEVEN", + "SLOT_TWELVE" + ], + "enumDescriptions": [ + "Default unspecified value.", + "12:00 AM - 2:00 AM", + "2:00 AM - 4:00 AM", + "4:00 AM - 6:00 AM", + "6:00 AM - 8:00 AM", + "8:00 AM - 10:00 AM", + "10:00 AM - 12:00 PM", + "12:00 PM - 2:00 PM", + "2:00 PM - 4:00 PM", + "4:00 PM - 6:00 PM", + "6:00 PM - 8:00 PM", + "8:00 PM - 10:00 PM", + "10:00 PM - 12:00 AM" + ], + "type": "string" + }, + "autoIncrementalBackupWindow": { + "description": "Optional. The window in which the incremental backup should be performed on the database. If no value is provided, the default is anytime except the auto full backup day.", + "enum": [ + "BACKUP_WINDOW_UNSPECIFIED", + "SLOT_ONE", + "SLOT_TWO", + "SLOT_THREE", + "SLOT_FOUR", + "SLOT_FIVE", + "SLOT_SIX", + "SLOT_SEVEN", + "SLOT_EIGHT", + "SLOT_NINE", + "SLOT_TEN", + "SLOT_ELEVEN", + "SLOT_TWELVE" + ], + "enumDescriptions": [ + "Default unspecified value.", + "12:00 AM - 2:00 AM", + "2:00 AM - 4:00 AM", + "4:00 AM - 6:00 AM", + "6:00 AM - 8:00 AM", + "8:00 AM - 10:00 AM", + "10:00 AM - 12:00 PM", + "12:00 PM - 2:00 PM", + "2:00 PM - 4:00 PM", + "4:00 PM - 6:00 PM", + "6:00 PM - 8:00 PM", + "8:00 PM - 10:00 PM", + "10:00 PM - 12:00 AM" + ], "type": "string" }, - "tlsAuthentication": { - "description": "Output only. This field indicates the TLS authentication type of the connection.", + "backupDeletionPolicy": { + "description": "Optional. This defines when the backups will be deleted after Database termination.", "enum": [ - "TLS_AUTHENTICATION_UNSPECIFIED", - "SERVER", - "MUTUAL" + "BACKUP_DELETION_POLICY_UNSPECIFIED", + "DELETE_IMMEDIATELY", + "DELETE_AFTER_RETENTION_PERIOD" ], "enumDescriptions": [ "Default unspecified value.", - "Server", - "Mutual" + "Keeps the backup for predefined time i.e. 72 hours and then delete permanently.", + "Keeps the backups as per the policy defined for database backups." ], - "readOnly": true, "type": "string" }, - "value": { - "description": "Output only. The value of the connection string.", - "readOnly": true, + "backupDestinationDetails": { + "description": "Optional. Details of the database backup destinations.", + "items": { + "$ref": "BackupDestinationDetails" + }, + "type": "array" + }, + "retentionPeriodDays": { + "description": "Optional. The number of days an automatic backup is retained before being automatically deleted. This value determines the earliest point in time to which a database can be restored. Min: 1, Max: 60.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DbHome": { + "description": "Details of the Database Home resource.", + "id": "DbHome", + "properties": { + "database": { + "$ref": "Database", + "description": "Required. The Database resource." + }, + "dbVersion": { + "description": "Required. A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.", + "type": "string" + }, + "displayName": { + "description": "Optional. The display name for the Database Home. The name does not have to be unique within your project.", "type": "string" + }, + "isUnifiedAuditingEnabled": { + "description": "Optional. Whether unified auditing is enabled for the Database Home.", + "type": "boolean" } }, "type": "object" @@ -3491,6 +4335,310 @@ }, "type": "object" }, + "DbSystem": { + "description": "Details of the DbSystem (BaseDB) resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystem/", + "id": "DbSystem", + "properties": { + "createTime": { + "description": "Output only. The date and time that the DbSystem was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Required. The display name for the System db. The name does not have to be unique within your project.", + "type": "string" + }, + "entitlementId": { + "description": "Output only. The ID of the subscription entitlement associated with the DbSystem", + "readOnly": true, + "type": "string" + }, + "gcpOracleZone": { + "description": "Optional. The GCP Oracle zone where Oracle DbSystem is hosted. Example: us-east4-b-r2. If not specified, the system will pick a zone based on availability.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels or tags associated with the DbSystem.", + "type": "object" + }, + "name": { + "description": "Identifier. The name of the DbSystem resource in the following format: projects/{project}/locations/{region}/dbSystems/{db_system}", + "type": "string" + }, + "ociUrl": { + "description": "Output only. HTTPS link to OCI resources exposed to Customer via UI Interface.", + "readOnly": true, + "type": "string" + }, + "odbNetwork": { + "description": "Optional. The name of the OdbNetwork associated with the DbSystem. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network} It is optional but if specified, this should match the parent ODBNetwork of the OdbSubnet.", + "type": "string" + }, + "odbSubnet": { + "description": "Required. The name of the OdbSubnet associated with the DbSystem for IP allocation. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}", + "type": "string" + }, + "properties": { + "$ref": "DbSystemProperties", + "description": "Optional. The properties of the DbSystem." + } + }, + "type": "object" + }, + "DbSystemInitialStorageSize": { + "description": "Summary of the DbSystem initial storage size.", + "id": "DbSystemInitialStorageSize", + "properties": { + "name": { + "description": "Output only. The name of the resource.", + "readOnly": true, + "type": "string" + }, + "properties": { + "$ref": "DbSystemInitialStorageSizeProperties", + "description": "Output only. The properties of the DbSystem initial storage size summary.", + "readOnly": true + } + }, + "type": "object" + }, + "DbSystemInitialStorageSizeProperties": { + "description": "The properties of a DbSystem initial storage size summary.", + "id": "DbSystemInitialStorageSizeProperties", + "properties": { + "launchFromBackupStorageSizeDetails": { + "description": "Output only. List of storage disk details available for launches from backup.", + "items": { + "$ref": "StorageSizeDetails" + }, + "readOnly": true, + "type": "array" + }, + "shapeType": { + "description": "Output only. VM shape platform type", + "enum": [ + "SHAPE_TYPE_UNSPECIFIED", + "STANDARD_X86" + ], + "enumDescriptions": [ + "Unspecified shape type.", + "Standard X86." + ], + "readOnly": true, + "type": "string" + }, + "storageManagement": { + "description": "Output only. The storage option used in DB system.", + "enum": [ + "STORAGE_MANAGEMENT_UNSPECIFIED", + "ASM", + "LVM" + ], + "enumDescriptions": [ + "Unspecified storage management.", + "Automatic Storage Management.", + "Logical Volume Management." + ], + "readOnly": true, + "type": "string" + }, + "storageSizeDetails": { + "description": "Output only. List of storage disk details.", + "items": { + "$ref": "StorageSizeDetails" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "DbSystemOptions": { + "description": "Details of the DbSystem Options.", + "id": "DbSystemOptions", + "properties": { + "storageManagement": { + "description": "Optional. The storage option used in DB system.", + "enum": [ + "STORAGE_MANAGEMENT_UNSPECIFIED", + "ASM", + "LVM" + ], + "enumDescriptions": [ + "The storage management is unspecified.", + "Automatic storage management.", + "Logical Volume management." + ], + "type": "string" + } + }, + "type": "object" + }, + "DbSystemProperties": { + "description": "The properties of a DbSystem.", + "id": "DbSystemProperties", + "properties": { + "computeCount": { + "description": "Required. The number of CPU cores to enable for the DbSystem.", + "format": "int32", + "type": "integer" + }, + "computeModel": { + "description": "Optional. The compute model of the DbSystem.", + "enum": [ + "COMPUTE_MODEL_UNSPECIFIED", + "ECPU", + "OCPU" + ], + "enumDescriptions": [ + "The compute model is unspecified.", + "The compute model is virtual.", + "The compute model is physical." + ], + "type": "string" + }, + "dataCollectionOptions": { + "$ref": "DataCollectionOptionsDbSystem", + "description": "Optional. Data collection options for diagnostics." + }, + "dataStorageSizeGb": { + "description": "Optional. The data storage size in GB that is currently available to DbSystems.", + "format": "int32", + "type": "integer" + }, + "databaseEdition": { + "description": "Required. The database edition of the DbSystem.", + "enum": [ + "DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED", + "STANDARD_EDITION", + "ENTERPRISE_EDITION", + "ENTERPRISE_EDITION_HIGH_PERFORMANCE" + ], + "enumDescriptions": [ + "The database edition is unspecified.", + "The database edition is Standard.", + "The database edition is Enterprise.", + "The database edition is Enterprise Edition." + ], + "type": "string" + }, + "dbHome": { + "$ref": "DbHome", + "description": "Optional. Details for creating a Database Home." + }, + "dbSystemOptions": { + "$ref": "DbSystemOptions", + "description": "Optional. The options for the DbSystem." + }, + "domain": { + "description": "Optional. The host domain name of the DbSystem.", + "type": "string" + }, + "hostname": { + "description": "Output only. The hostname of the DbSystem.", + "readOnly": true, + "type": "string" + }, + "hostnamePrefix": { + "description": "Optional. Prefix for DB System host names.", + "type": "string" + }, + "initialDataStorageSizeGb": { + "description": "Required. The initial data storage size in GB.", + "format": "int32", + "type": "integer" + }, + "licenseModel": { + "description": "Required. The license model of the DbSystem.", + "enum": [ + "LICENSE_MODEL_UNSPECIFIED", + "LICENSE_INCLUDED", + "BRING_YOUR_OWN_LICENSE" + ], + "enumDescriptions": [ + "The license model is unspecified.", + "The license model is included.", + "The license model is bring your own license." + ], + "type": "string" + }, + "lifecycleState": { + "description": "Output only. State of the DbSystem.", + "enum": [ + "DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED", + "PROVISIONING", + "AVAILABLE", + "UPDATING", + "TERMINATING", + "TERMINATED", + "FAILED", + "MIGRATED", + "MAINTENANCE_IN_PROGRESS", + "NEEDS_ATTENTION", + "UPGRADING" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Indicates that the resource is in provisioning state.", + "Indicates that the resource is in available state.", + "Indicates that the resource is in updating state.", + "Indicates that the resource is in terminating state.", + "Indicates that the resource is in terminated state.", + "Indicates that the resource is in failed state.", + "Indicates that the resource has been migrated.", + "Indicates that the resource is in maintenance in progress state.", + "Indicates that the resource needs attention.", + "Indicates that the resource is upgrading." + ], + "readOnly": true, + "type": "string" + }, + "memorySizeGb": { + "description": "Optional. The memory size in GB.", + "format": "int32", + "type": "integer" + }, + "nodeCount": { + "description": "Optional. The number of nodes in the DbSystem.", + "format": "int32", + "type": "integer" + }, + "ocid": { + "description": "Output only. OCID of the DbSystem.", + "readOnly": true, + "type": "string" + }, + "privateIp": { + "description": "Optional. The private IP address of the DbSystem.", + "type": "string" + }, + "recoStorageSizeGb": { + "description": "Optional. The reco/redo storage size in GB.", + "format": "int32", + "type": "integer" + }, + "shape": { + "description": "Required. Shape of DB System.", + "type": "string" + }, + "sshPublicKeys": { + "description": "Required. SSH public keys to be stored with the DbSystem.", + "items": { + "type": "string" + }, + "type": "array" + }, + "timeZone": { + "$ref": "TimeZone", + "description": "Optional. Time zone of the DbSystem." + } + }, + "type": "object" + }, "DbSystemShape": { "description": "Details of the Database System Shapes resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystemShapeSummary/", "id": "DbSystemShape", @@ -3535,27 +4683,90 @@ "format": "int32", "type": "integer" }, - "minNodeCount": { - "description": "Optional. Minimum number of database servers.", - "format": "int32", - "type": "integer" + "minNodeCount": { + "description": "Optional. Minimum number of database servers.", + "format": "int32", + "type": "integer" + }, + "minStorageCount": { + "description": "Optional. Minimum number of storage servers.", + "format": "int32", + "type": "integer" + }, + "name": { + "description": "Identifier. The name of the Database System Shape resource with the format: projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape}", + "type": "string" + }, + "shape": { + "description": "Optional. shape", + "type": "string" + } + }, + "type": "object" + }, + "DbVersion": { + "description": "A valid Oracle Database version.", + "id": "DbVersion", + "properties": { + "name": { + "description": "Output only. The name of the DbVersion resource in the following format: projects/{project}/locations/{region}/dbVersions/{db_version}", + "readOnly": true, + "type": "string" + }, + "properties": { + "$ref": "DbVersionProperties", + "description": "Output only. The properties of the DbVersion.", + "readOnly": true + } + }, + "type": "object" + }, + "DbVersionProperties": { + "description": "The properties of a DbVersion.", + "id": "DbVersionProperties", + "properties": { + "isLatestForMajorVersion": { + "description": "Output only. True if this version of the Oracle Database software is the latest version for a release.", + "readOnly": true, + "type": "boolean" + }, + "isPreviewDbVersion": { + "description": "Output only. True if this version of the Oracle Database software is the preview version.", + "readOnly": true, + "type": "boolean" }, - "minStorageCount": { - "description": "Optional. Minimum number of storage servers.", - "format": "int32", - "type": "integer" + "isUpgradeSupported": { + "description": "Output only. True if this version of the Oracle Database software is supported for Upgrade.", + "readOnly": true, + "type": "boolean" }, - "name": { - "description": "Identifier. The name of the Database System Shape resource with the format: projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape}", - "type": "string" + "supportsPdb": { + "description": "Output only. True if this version of the Oracle Database software supports pluggable databases.", + "readOnly": true, + "type": "boolean" }, - "shape": { - "description": "Optional. shape", + "version": { + "description": "Output only. A valid Oracle Database version.", + "readOnly": true, "type": "string" } }, "type": "object" }, + "DefinedTagValue": { + "description": "Wrapper message for the value of a defined tag.", + "id": "DefinedTagValue", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "The tags within the namespace.", + "type": "object" + } + }, + "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", @@ -3660,6 +4871,37 @@ }, "type": "object" }, + "IdentityConnector": { + "description": "The identity connector details which will allow OCI to securely access the resources in the customer project.", + "id": "IdentityConnector", + "properties": { + "connectionState": { + "description": "Output only. The connection state of the identity connector.", + "enum": [ + "CONNECTION_STATE_UNSPECIFIED", + "CONNECTED", + "PARTIALLY_CONNECTED", + "DISCONNECTED", + "UNKNOWN" + ], + "enumDescriptions": [ + "Default unspecified value.", + "The identity pool connection is connected.", + "The identity pool connection is partially connected.", + "The identity pool connection is disconnected.", + "The identity pool connection is in an unknown state." + ], + "readOnly": true, + "type": "string" + }, + "serviceAgentEmail": { + "description": "Output only. A google managed service account on which customers can grant roles to access resources in the customer project. Example: `p176944527254-55-75119d87fd8f@gcp-sa-oci.iam.gserviceaccount.com`", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ListAutonomousDatabaseBackupsResponse": { "description": "The response for `AutonomousDatabaseBackup.List`.", "id": "ListAutonomousDatabaseBackupsResponse", @@ -3768,6 +5010,42 @@ }, "type": "object" }, + "ListDatabaseCharacterSetsResponse": { + "description": "The response for `DatabaseCharacterSet.List`.", + "id": "ListDatabaseCharacterSetsResponse", + "properties": { + "databaseCharacterSets": { + "description": "The list of DatabaseCharacterSets.", + "items": { + "$ref": "DatabaseCharacterSet" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, + "ListDatabasesResponse": { + "description": "The response for `Database.List`.", + "id": "ListDatabasesResponse", + "properties": { + "databases": { + "description": "The list of Databases.", + "items": { + "$ref": "Database" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, "ListDbNodesResponse": { "description": "The response for `DbNode.List`.", "id": "ListDbNodesResponse", @@ -3804,6 +5082,24 @@ }, "type": "object" }, + "ListDbSystemInitialStorageSizesResponse": { + "description": "The response for `DbSystemInitialStorageSizes.List`.", + "id": "ListDbSystemInitialStorageSizesResponse", + "properties": { + "dbSystemInitialStorageSizes": { + "description": "The list of DbSystemInitialStorageSizes.", + "items": { + "$ref": "DbSystemInitialStorageSize" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, "ListDbSystemShapesResponse": { "description": "The response for `DbSystemShape.List`.", "id": "ListDbSystemShapesResponse", @@ -3822,6 +5118,42 @@ }, "type": "object" }, + "ListDbSystemsResponse": { + "description": "The response for `DbSystem.List`.", + "id": "ListDbSystemsResponse", + "properties": { + "dbSystems": { + "description": "The list of DbSystems.", + "items": { + "$ref": "DbSystem" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, + "ListDbVersionsResponse": { + "description": "The response for `DbVersions.List`.", + "id": "ListDbVersionsResponse", + "properties": { + "dbVersions": { + "description": "The list of DbVersions.", + "items": { + "$ref": "DbVersion" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, "ListEntitlementsResponse": { "description": "The response for `Entitlement.List`.", "id": "ListEntitlementsResponse", @@ -3944,6 +5276,24 @@ }, "type": "object" }, + "ListPluggableDatabasesResponse": { + "description": "The response for `PluggableDatabase.List`.", + "id": "ListPluggableDatabasesResponse", + "properties": { + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + }, + "pluggableDatabases": { + "description": "The list of PluggableDatabases.", + "items": { + "$ref": "PluggableDatabase" + }, + "type": "array" + } + }, + "type": "object" + }, "Location": { "description": "A resource that represents a Google Cloud location.", "id": "Location", @@ -4137,6 +5487,10 @@ "readOnly": true, "type": "string" }, + "gcpOracleZone": { + "description": "Optional. The GCP Oracle zone where OdbNetwork is hosted. Example: us-east4-b-r2. If not specified, the system will pick a zone based on availability.", + "type": "string" + }, "labels": { "additionalProperties": { "type": "string" @@ -4320,6 +5674,210 @@ }, "type": "object" }, + "PluggableDatabase": { + "description": "The PluggableDatabase resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/PluggableDatabase/", + "id": "PluggableDatabase", + "properties": { + "createTime": { + "description": "Output only. The date and time that the PluggableDatabase was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The name of the PluggableDatabase resource in the following format: projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}", + "type": "string" + }, + "ociUrl": { + "description": "Output only. HTTPS link to OCI resources exposed to Customer via UI Interface.", + "readOnly": true, + "type": "string" + }, + "properties": { + "$ref": "PluggableDatabaseProperties", + "description": "Optional. The properties of the PluggableDatabase." + } + }, + "type": "object" + }, + "PluggableDatabaseConnectionStrings": { + "description": "The connection strings used to connect to the Oracle Database.", + "id": "PluggableDatabaseConnectionStrings", + "properties": { + "allConnectionStrings": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. All connection strings to use to connect to the pluggable database.", + "type": "object" + }, + "pdbDefault": { + "description": "Optional. The default connection string to use to connect to the pluggable database.", + "type": "string" + }, + "pdbIpDefault": { + "description": "Optional. The default connection string to use to connect to the pluggable database using IP.", + "type": "string" + } + }, + "type": "object" + }, + "PluggableDatabaseNodeLevelDetails": { + "description": "The Pluggable Database Node Level Details.", + "id": "PluggableDatabaseNodeLevelDetails", + "properties": { + "nodeName": { + "description": "Required. The Node name of the Database home.", + "type": "string" + }, + "openMode": { + "description": "Required. The mode that the pluggable database is in to open it.", + "enum": [ + "PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED", + "READ_ONLY", + "READ_WRITE", + "MOUNTED", + "MIGRATE" + ], + "enumDescriptions": [ + "The open mode is unspecified.", + "The pluggable database is opened in read-only mode.", + "The pluggable database is opened in read-write mode.", + "The pluggable database is mounted.", + "The pluggable database is migrated." + ], + "type": "string" + }, + "pluggableDatabaseId": { + "description": "Required. The OCID of the Pluggable Database.", + "type": "string" + } + }, + "type": "object" + }, + "PluggableDatabaseProperties": { + "description": "The properties of a PluggableDatabase.", + "id": "PluggableDatabaseProperties", + "properties": { + "compartmentId": { + "description": "Required. The OCID of the compartment.", + "type": "string" + }, + "connectionStrings": { + "$ref": "PluggableDatabaseConnectionStrings", + "description": "Optional. The Connection strings used to connect to the Oracle Database." + }, + "containerDatabaseOcid": { + "description": "Required. The OCID of the CDB.", + "type": "string" + }, + "databaseManagementConfig": { + "$ref": "DatabaseManagementConfig", + "description": "Output only. The configuration of the Database Management service.", + "readOnly": true + }, + "definedTags": { + "additionalProperties": { + "$ref": "DefinedTagValue" + }, + "description": "Optional. Defined tags for this resource. Each key is predefined and scoped to a namespace.", + "type": "object" + }, + "freeformTags": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.", + "type": "object" + }, + "isRestricted": { + "description": "Optional. The restricted mode of the pluggable database. If a pluggable database is opened in restricted mode, the user needs both create a session and have restricted session privileges to connect to it.", + "type": "boolean" + }, + "lifecycleDetails": { + "description": "Output only. Additional information about the current lifecycle state.", + "readOnly": true, + "type": "string" + }, + "lifecycleState": { + "description": "Output only. The current state of the pluggable database.", + "enum": [ + "PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED", + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + "UPDATING", + "FAILED", + "RELOCATING", + "RELOCATED", + "REFRESHING", + "RESTORE_IN_PROGRESS", + "RESTORE_FAILED", + "BACKUP_IN_PROGRESS", + "DISABLED" + ], + "enumDescriptions": [ + "The lifecycle state is unspecified.", + "The pluggable database is provisioning.", + "The pluggable database is available.", + "The pluggable database is terminating.", + "The pluggable database is terminated.", + "The pluggable database is updating.", + "The pluggable database is in a failed state.", + "The pluggable database is relocating.", + "The pluggable database is relocated.", + "The pluggable database is refreshing.", + "The pluggable database is restoring.", + "The pluggable database restore failed.", + "The pluggable database is backing up.", + "The pluggable database is disabled." + ], + "readOnly": true, + "type": "string" + }, + "ocid": { + "description": "Output only. The OCID of the pluggable database.", + "readOnly": true, + "type": "string" + }, + "operationsInsightsState": { + "description": "Output only. The status of Operations Insights for this Database.", + "enum": [ + "OPERATIONS_INSIGHTS_STATE_UNSPECIFIED", + "ENABLING", + "ENABLED", + "DISABLING", + "NOT_ENABLED", + "FAILED_ENABLING", + "FAILED_DISABLING" + ], + "enumDescriptions": [ + "The status is not specified.", + "Operations Insights is enabling.", + "Operations Insights is enabled.", + "Operations Insights is disabling.", + "Operations Insights is not enabled.", + "Operations Insights failed to enable.", + "Operations Insights failed to disable." + ], + "readOnly": true, + "type": "string" + }, + "pdbName": { + "description": "Required. The database name.", + "type": "string" + }, + "pdbNodeLevelDetails": { + "description": "Optional. Pluggable Database Node Level Details", + "items": { + "$ref": "PluggableDatabaseNodeLevelDetails" + }, + "type": "array" + } + }, + "type": "object" + }, "RestartAutonomousDatabaseRequest": { "description": "The request for `AutonomousDatabase.Restart`.", "id": "RestartAutonomousDatabaseRequest", @@ -4434,6 +5992,25 @@ "properties": {}, "type": "object" }, + "StorageSizeDetails": { + "description": "The initial storage size, in gigabytes, that is applicable for virtual machine DBSystem.", + "id": "StorageSizeDetails", + "properties": { + "dataStorageSizeInGbs": { + "description": "Output only. The data storage size, in gigabytes, that is applicable for virtual machine DBSystem.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "recoStorageSizeInGbs": { + "description": "Output only. The RECO/REDO storage size, in gigabytes, that is applicable for virtual machine DBSystem.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, "SwitchoverAutonomousDatabaseRequest": { "description": "The request for `OracleDatabase.SwitchoverAutonomousDatabase`.", "id": "SwitchoverAutonomousDatabaseRequest", diff --git a/discovery/googleapis/orgpolicy__v2.json b/discovery/googleapis/orgpolicy__v2.json index e63225a4a..088fac530 100644 --- a/discovery/googleapis/orgpolicy__v2.json +++ b/discovery/googleapis/orgpolicy__v2.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250606", + "revision": "20250815", "rootUrl": "https://orgpolicy.googleapis.com/", "servicePath": "", "title": "Organization Policy API", @@ -1365,7 +1365,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. Required for managed constraints if parameters are defined. Passes parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: { \"allowedLocations\" : [\"us-east1\", \"us-west1\"], \"allowAll\" : true }", + "description": "Optional. Required for managed constraints if parameters are defined. Passes parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: ``` { \"allowedLocations\" : [\"us-east1\", \"us-west1\"], \"allowAll\" : true } ```", "type": "object" }, "values": { diff --git a/discovery/googleapis/parallelstore__v1.json b/discovery/googleapis/parallelstore__v1.json index 7d2c08786..33103b6ec 100644 --- a/discovery/googleapis/parallelstore__v1.json +++ b/discovery/googleapis/parallelstore__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250609", + "revision": "20250820", "rootUrl": "https://parallelstore.googleapis.com/", "servicePath": "", "title": "Parallelstore API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/parametermanager__v1.json b/discovery/googleapis/parametermanager__v1.json index e5bbfa9cc..0e683db81 100644 --- a/discovery/googleapis/parametermanager__v1.json +++ b/discovery/googleapis/parametermanager__v1.json @@ -152,7 +152,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250716", + "revision": "20250910", "rootUrl": "https://parametermanager.googleapis.com/", "servicePath": "", "title": "Parameter Manager API", @@ -275,7 +275,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/paymentsresellersubscription__v1.json b/discovery/googleapis/paymentsresellersubscription__v1.json index ae99dc966..101cbc598 100644 --- a/discovery/googleapis/paymentsresellersubscription__v1.json +++ b/discovery/googleapis/paymentsresellersubscription__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250713", + "revision": "20250814", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "servicePath": "", "title": "Payments Reseller Subscription API", @@ -148,7 +148,7 @@ }, "path": "v1/{+parent}/products", "response": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse" + "$ref": "ListProductsResponse" }, "scopes": [ "https://www.googleapis.com/auth/sdm.service" @@ -177,10 +177,10 @@ }, "path": "v1/{+parent}/promotions:findEligible", "request": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest" + "$ref": "FindEligiblePromotionsRequest" }, "response": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse" + "$ref": "FindEligiblePromotionsResponse" }, "scopes": [ "https://www.googleapis.com/auth/sdm.service" @@ -221,7 +221,7 @@ }, "path": "v1/{+parent}/promotions", "response": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse" + "$ref": "ListPromotionsResponse" }, "scopes": [ "https://www.googleapis.com/auth/sdm.service" @@ -250,10 +250,10 @@ }, "path": "v1/{+name}:cancel", "request": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest" + "$ref": "CancelSubscriptionRequest" }, "response": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse" + "$ref": "CancelSubscriptionResponse" }, "scopes": [ "https://www.googleapis.com/auth/sdm.service" @@ -283,10 +283,10 @@ }, "path": "v1/{+parent}/subscriptions", "request": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription" + "$ref": "Subscription" }, "response": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription" + "$ref": "Subscription" }, "scopes": [ "https://www.googleapis.com/auth/sdm.service" @@ -311,10 +311,10 @@ }, "path": "v1/{+name}:entitle", "request": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest" + "$ref": "EntitleSubscriptionRequest" }, "response": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse" + "$ref": "EntitleSubscriptionResponse" }, "scopes": [ "https://www.googleapis.com/auth/sdm.service" @@ -339,10 +339,10 @@ }, "path": "v1/{+name}:extend", "request": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest" + "$ref": "ExtendSubscriptionRequest" }, "response": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse" + "$ref": "ExtendSubscriptionResponse" }, "scopes": [ "https://www.googleapis.com/auth/sdm.service" @@ -367,7 +367,7 @@ }, "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription" + "$ref": "Subscription" }, "scopes": [ "https://www.googleapis.com/auth/sdm.service" @@ -397,10 +397,10 @@ }, "path": "v1/{+parent}/subscriptions:provision", "request": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription" + "$ref": "Subscription" }, "response": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription" + "$ref": "Subscription" }, "scopes": [ "https://www.googleapis.com/auth/sdm.service" @@ -425,10 +425,10 @@ }, "path": "v1/{+name}:resume", "request": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest" + "$ref": "ResumeSubscriptionRequest" }, "response": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse" + "$ref": "ResumeSubscriptionResponse" }, "scopes": [ "https://www.googleapis.com/auth/sdm.service" @@ -453,10 +453,10 @@ }, "path": "v1/{+name}:suspend", "request": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest" + "$ref": "SuspendSubscriptionRequest" }, "response": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse" + "$ref": "SuspendSubscriptionResponse" }, "scopes": [ "https://www.googleapis.com/auth/sdm.service" @@ -481,10 +481,10 @@ }, "path": "v1/{+name}:undoCancel", "request": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest" + "$ref": "UndoCancelSubscriptionRequest" }, "response": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse" + "$ref": "UndoCancelSubscriptionResponse" }, "scopes": [ "https://www.googleapis.com/auth/sdm.service" @@ -513,10 +513,10 @@ }, "path": "v1/{+parent}/userSessions:generate", "request": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest" + "$ref": "GenerateUserSessionRequest" }, "response": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse" + "$ref": "GenerateUserSessionResponse" }, "scopes": [ "https://www.googleapis.com/auth/sdm.service" @@ -528,9 +528,9 @@ } }, "schemas": { - "GoogleCloudPaymentsResellerSubscriptionV1Amount": { + "Amount": { "description": "Describes the amount unit including the currency code.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1Amount", + "id": "Amount", "properties": { "amountMicros": { "description": "Required. Amount in micros (1_000_000 micros = 1 currency unit)", @@ -544,9 +544,9 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest": { + "CancelSubscriptionRequest": { "description": "Request to cancel a subscription.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest", + "id": "CancelSubscriptionRequest", "properties": { "cancelImmediately": { "description": "Optional. If true, Google will cancel the subscription immediately, and may or may not (based on the contract) issue a prorated refund for the remainder of the billing cycle. Otherwise, Google defers the cancelation at renewal_time, and will not issue a refund. - YouTube subscriptions must use this option currently. However, the user will still have access to the subscription until the end of the billing cycle.", @@ -585,27 +585,27 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse": { + "CancelSubscriptionResponse": { "description": "Response that contains the cancelled subscription resource.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse", + "id": "CancelSubscriptionResponse", "properties": { "subscription": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription", + "$ref": "Subscription", "description": "The cancelled subscription resource." } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent": { + "CreateSubscriptionIntent": { "description": "Intent message for creating a Subscription resource.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent", + "id": "CreateSubscriptionIntent", "properties": { "parent": { "description": "Required. The parent resource name, which is the identifier of the partner.", "type": "string" }, "subscription": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription", + "$ref": "Subscription", "description": "Required. The Subscription to be created." }, "subscriptionId": { @@ -615,9 +615,9 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1Duration": { + "Duration": { "description": "Describes the length of a period of a time.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1Duration", + "id": "Duration", "properties": { "count": { "description": "number of duration units to be included.", @@ -643,9 +643,9 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent": { + "EntitleSubscriptionIntent": { "description": "Intent for entitling the previously provisioned subscription to an end user.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent", + "id": "EntitleSubscriptionIntent", "properties": { "name": { "description": "Required. The name of the subscription resource that is entitled to the current end user. It is in the format of \"partners/{partner_id}/subscriptions/{subscriptionId}\".", @@ -654,23 +654,23 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest": { + "EntitleSubscriptionRequest": { "description": "Partner request for entitling the previously provisioned subscription to an end user. The end user identity is inferred from the request OAuth context.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest", + "id": "EntitleSubscriptionRequest", "properties": { "lineItemEntitlementDetails": { "description": "Optional. The line items to be entitled. If unspecified, all line items will be entitled.", "items": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails" + "$ref": "EntitleSubscriptionRequestLineItemEntitlementDetails" }, "type": "array" } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails": { + "EntitleSubscriptionRequestLineItemEntitlementDetails": { "description": "The details of the line item to be entitled.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails", + "id": "EntitleSubscriptionRequestLineItemEntitlementDetails", "properties": { "lineItemIndex": { "description": "Required. The index of the line item to be entitled.", @@ -687,23 +687,23 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse": { + "EntitleSubscriptionResponse": { "description": "Response that contains the entitled subscription resource.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse", + "id": "EntitleSubscriptionResponse", "properties": { "subscription": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription", + "$ref": "Subscription", "description": "The subscription that has user linked to it." } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest": { + "ExtendSubscriptionRequest": { "description": "Request message for extending a Subscription resource. A new recurrence will be made based on the subscription schedule defined by the original product.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest", + "id": "ExtendSubscriptionRequest", "properties": { "extension": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Extension", + "$ref": "Extension", "description": "Required. Specifies details of the extension. Currently, the duration of the extension must be exactly one billing cycle of the original subscription." }, "requestId": { @@ -713,9 +713,9 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse": { + "ExtendSubscriptionResponse": { "description": "Response that contains the timestamps after the extension.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse", + "id": "ExtendSubscriptionResponse", "properties": { "cycleEndTime": { "description": "The time at which the subscription is expected to be extended, in ISO 8061 format. UTC timezone. Example, \"cycleEndTime\":\"2019-08-31T17:28:54.564Z\"", @@ -736,12 +736,12 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1Extension": { + "Extension": { "description": "Describes the details of an extension request.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1Extension", + "id": "Extension", "properties": { "duration": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Duration", + "$ref": "Duration", "description": "Required. Specifies the period of access the subscription should grant." }, "partnerUserToken": { @@ -751,9 +751,9 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest": { + "FindEligiblePromotionsRequest": { "description": "Request to find eligible promotions for the current user.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest", + "id": "FindEligiblePromotionsRequest", "properties": { "filter": { "description": "Optional. Specifies the filters for the promotion results. The syntax is defined in https://google.aip.dev/160 with the following caveats: 1. Only the following features are supported: - Logical operator `AND` - Comparison operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) 2. Only the following fields are supported: - `applicableProducts` - `regionCodes` - `youtubePayload.partnerEligibilityId` - `youtubePayload.postalCode` 3. Unless explicitly mentioned above, other features are not supported. Example: `applicableProducts:partners/partner1/products/product1 AND regionCodes:US AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=eligibility-id`", @@ -771,9 +771,9 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse": { + "FindEligiblePromotionsResponse": { "description": "Response containing the found promotions for the current user.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse", + "id": "FindEligiblePromotionsResponse", "properties": { "nextPageToken": { "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages.", @@ -782,16 +782,16 @@ "promotions": { "description": "The promotions for the current user.", "items": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Promotion" + "$ref": "Promotion" }, "type": "array" } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails": { + "FiniteBillingCycleDetails": { "description": "Details for a subscriptiin line item with finite billing cycles.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails", + "id": "FiniteBillingCycleDetails", "properties": { "billingCycleCountLimit": { "description": "Required. The number of a subscription line item billing cycles after which billing will stop automatically.", @@ -801,37 +801,41 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest": { + "GenerateUserSessionRequest": { "description": "Request to generate a user session.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest", + "id": "GenerateUserSessionRequest", "properties": { "intentPayload": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1IntentPayload", + "$ref": "IntentPayload", "description": "The user intent to generate the user session." } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse": { + "GenerateUserSessionResponse": { "description": "Response that contains the details for generated user session.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse", + "id": "GenerateUserSessionResponse", "properties": { "userSession": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1UserSession", + "$ref": "UserSession", "description": "The generated user session. The token size is proportional to the size of the intent payload." } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload": { + "GoogleHomePayload": { "description": "Payload specific for Google Home products.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload", + "id": "GoogleHomePayload", "properties": { "attachedToGoogleStructure": { "description": "Output only. This identifies whether the subscription is attached to a Google Home structure.", "readOnly": true, "type": "boolean" }, + "googleStructureId": { + "description": "Optional. Structure identifier on Google side.", + "type": "string" + }, "partnerStructureId": { "description": "Optional. This identifies the structure ID on partner side that the subscription should be applied to. Only required when the partner requires structure mapping.", "type": "string" @@ -839,9 +843,9 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload": { + "GoogleOnePayload": { "description": "Payload specific to Google One products.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload", + "id": "GoogleOnePayload", "properties": { "campaigns": { "description": "Campaign attributed to sales of this subscription.", @@ -893,24 +897,39 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1IntentPayload": { + "GoogleTypeLocalizedText": { + "description": "Localized variant of a text in a particular language.", + "id": "GoogleTypeLocalizedText", + "properties": { + "languageCode": { + "description": "The text's BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.", + "type": "string" + }, + "text": { + "description": "Localized string in the language corresponding to language_code below.", + "type": "string" + } + }, + "type": "object" + }, + "IntentPayload": { "description": "The payload that describes the user intent.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1IntentPayload", + "id": "IntentPayload", "properties": { "createIntent": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent", + "$ref": "CreateSubscriptionIntent", "description": "The request to create a subscription." }, "entitleIntent": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent", + "$ref": "EntitleSubscriptionIntent", "description": "The request to entitle a subscription." } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse": { + "ListProductsResponse": { "description": "Response that contains the products.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse", + "id": "ListProductsResponse", "properties": { "nextPageToken": { "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages.", @@ -919,16 +938,16 @@ "products": { "description": "The products for the specified partner.", "items": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Product" + "$ref": "Product" }, "type": "array" } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse": { + "ListPromotionsResponse": { "description": "Response that contains the promotions.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse", + "id": "ListPromotionsResponse", "properties": { "nextPageToken": { "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages.", @@ -937,16 +956,16 @@ "promotions": { "description": "The promotions for the specified partner.", "items": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Promotion" + "$ref": "Promotion" }, "type": "array" } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1Location": { + "Location": { "description": "Describes a location of an end user.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1Location", + "id": "Location", "properties": { "postalCode": { "description": "The postal code this location refers to. Ex. \"94043\"", @@ -959,9 +978,9 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1Product": { + "Product": { "description": "A Product resource that defines a subscription service that can be resold.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1Product", + "id": "Product", "properties": { "bundleDetails": { "$ref": "ProductBundleDetails", @@ -969,7 +988,7 @@ "readOnly": true }, "finiteBillingCycleDetails": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails", + "$ref": "FiniteBillingCycleDetails", "description": "Optional. Details for a subscription line item with finite billing cycles. If unset, the line item will be charged indefinitely." }, "name": { @@ -979,7 +998,7 @@ "priceConfigs": { "description": "Output only. Price configs for the product in the available regions.", "items": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig" + "$ref": "ProductPriceConfig" }, "readOnly": true, "type": "array" @@ -1008,7 +1027,7 @@ "type": "array" }, "subscriptionBillingCycleDuration": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Duration", + "$ref": "Duration", "description": "Output only. Specifies the length of the billing cycle of the subscription.", "readOnly": true }, @@ -1023,9 +1042,37 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement": { + "ProductBundleDetails": { + "description": "Details for a bundle product.", + "id": "ProductBundleDetails", + "properties": { + "bundleElements": { + "description": "The individual products that are included in the bundle.", + "items": { + "$ref": "ProductBundleDetailsBundleElement" + }, + "type": "array" + }, + "entitlementMode": { + "description": "The entitlement mode of the bundle product.", + "enum": [ + "ENTITLEMENT_MODE_UNSPECIFIED", + "ENTITLEMENT_MODE_FULL", + "ENTITLEMENT_MODE_INCREMENTAL" + ], + "enumDescriptions": [ + "Unspecified. It's reserved as an unexpected value, should not be used.", + "All the bundle elements must be fully activated in a single request.", + "The bundle elements could be incrementally activated." + ], + "type": "string" + } + }, + "type": "object" + }, + "ProductBundleDetailsBundleElement": { "description": "The individual product that is included in the bundle.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement", + "id": "ProductBundleDetailsBundleElement", "properties": { "product": { "description": "Required. Output only. Product resource name that identifies the bundle element. The format is 'partners/{partner_id}/products/{product_id}'.", @@ -1035,31 +1082,31 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1ProductPayload": { + "ProductPayload": { "description": "Specifies product specific payload.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1ProductPayload", + "id": "ProductPayload", "properties": { "googleHomePayload": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload", + "$ref": "GoogleHomePayload", "description": "Payload specific to Google Home products." }, "googleOnePayload": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload", + "$ref": "GoogleOnePayload", "description": "Product-specific payloads. Payload specific to Google One products." }, "youtubePayload": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload", + "$ref": "YoutubePayload", "description": "Payload specific to Youtube products." } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig": { + "ProductPriceConfig": { "description": "Configs the prices in an available region.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig", + "id": "ProductPriceConfig", "properties": { "amount": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Amount", + "$ref": "Amount", "description": "Output only. The price in the region.", "readOnly": true }, @@ -1071,9 +1118,9 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1Promotion": { + "Promotion": { "description": "A Promotion resource that defines a promotion for a subscription that can be resold.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1Promotion", + "id": "Promotion", "properties": { "applicableProducts": { "description": "Output only. The product ids this promotion can be applied to.", @@ -1089,11 +1136,11 @@ "type": "string" }, "freeTrialDuration": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Duration", + "$ref": "Duration", "description": "Optional. Specifies the duration of the free trial of the subscription when promotion_type is PROMOTION_TYPE_FREE_TRIAL" }, "introductoryPricingDetails": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails", + "$ref": "PromotionIntroductoryPricingDetails", "description": "Optional. Specifies the introductory pricing details when the promotion_type is PROMOTION_TYPE_INTRODUCTORY_PRICING." }, "name": { @@ -1139,14 +1186,14 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails": { + "PromotionIntroductoryPricingDetails": { "description": "The details of a introductory pricing promotion.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails", + "id": "PromotionIntroductoryPricingDetails", "properties": { "introductoryPricingSpecs": { "description": "Output only. Specifies the introductory pricing periods.", "items": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec" + "$ref": "PromotionIntroductoryPricingDetailsIntroductoryPricingSpec" }, "readOnly": true, "type": "array" @@ -1154,12 +1201,12 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec": { + "PromotionIntroductoryPricingDetailsIntroductoryPricingSpec": { "description": "The duration of an introductory pricing promotion.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec", + "id": "PromotionIntroductoryPricingDetailsIntroductoryPricingSpec", "properties": { "discountAmount": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Amount", + "$ref": "Amount", "description": "Output only. The discount amount. The value is positive.", "readOnly": true }, @@ -1183,26 +1230,26 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest": { + "ResumeSubscriptionRequest": { "description": "Request to resume a suspended subscription.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest", + "id": "ResumeSubscriptionRequest", "properties": {}, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse": { + "ResumeSubscriptionResponse": { "description": "Response that contains the resumed subscription.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse", + "id": "ResumeSubscriptionResponse", "properties": { "subscription": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription", + "$ref": "Subscription", "description": "The resumed subscription resource." } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod": { + "ServicePeriod": { "description": "A description of what time period or moment in time the product or service is being delivered over.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod", + "id": "ServicePeriod", "properties": { "endTime": { "description": "Optional. The end time of the service period. Time is exclusive.", @@ -1217,12 +1264,12 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1Subscription": { + "Subscription": { "description": "A subscription serves as a central billing entity between an external partner and Google. The underlying Google services rely on the subscription state to grant or revoke the user's service entitlement. It's important to note that the subscription state may not always perfectly align with the user's service entitlement. For example, some Google services may continue providing access to the user until the current billing cycle ends, even if the subscription has been immediately canceled. However, other services may not do the same. To fully understand the specific details, please consult the relevant contract or product policy.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1Subscription", + "id": "Subscription", "properties": { "cancellationDetails": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails", + "$ref": "SubscriptionCancellationDetails", "description": "Output only. Describes the details of a cancelled subscription. Only applicable to subscription of state `STATE_CANCELLED`.", "readOnly": true }, @@ -1252,12 +1299,12 @@ "lineItems": { "description": "Required. The line items of the subscription.", "items": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem" + "$ref": "SubscriptionLineItem" }, "type": "array" }, "migrationDetails": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails", + "$ref": "SubscriptionMigrationDetails", "description": "Output only. Describes the details of the migrated subscription. Only populated if this subscription is migrated from another system.", "readOnly": true }, @@ -1294,7 +1341,7 @@ "promotionSpecs": { "description": "Optional. Subscription-level promotions. Only free trial is supported on this level. It determines the first renewal time of the subscription to be the end of the free trial period. Specify the promotion resource name only when used as input.", "items": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec" + "$ref": "SubscriptionPromotionSpec" }, "type": "array" }, @@ -1322,7 +1369,7 @@ "type": "string" }, "serviceLocation": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Location", + "$ref": "Location", "description": "Required. The location that the service is provided as indicated by the partner." }, "state": { @@ -1355,15 +1402,15 @@ "type": "string" }, "upgradeDowngradeDetails": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails", + "$ref": "SubscriptionUpgradeDowngradeDetails", "description": "Optional. Details about the previous subscription that this new subscription upgrades/downgrades from. Only populated if this subscription is an upgrade/downgrade from another subscription." } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails": { + "SubscriptionCancellationDetails": { "description": "Describes the details of a cancelled or cancelling subscription.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails", + "id": "SubscriptionCancellationDetails", "properties": { "reason": { "description": "Output only. The reason of the cancellation.", @@ -1399,12 +1446,12 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem": { + "SubscriptionLineItem": { "description": "Individual line item definition of a subscription.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem", + "id": "SubscriptionLineItem", "properties": { "amount": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Amount", + "$ref": "Amount", "description": "Output only. The price of the product/service in this line item. The amount could be the wholesale price, or it can include a cost of sale based on the contract.", "readOnly": true }, @@ -1419,7 +1466,7 @@ "type": "string" }, "finiteBillingCycleDetails": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails", + "$ref": "FiniteBillingCycleDetails", "description": "Optional. Details for a subscription line item with finite billing cycles. If unset, the line item will be charged indefinitely. Used only with LINE_ITEM_RECURRENCE_TYPE_PERIODIC." }, "lineItemFreeTrialEndTime": { @@ -1437,12 +1484,12 @@ "lineItemPromotionSpecs": { "description": "Optional. The promotions applied on the line item. It can be: - an introductory pricing promotion. - a free trial promotion. This feature is not enabled. If used, the request will be rejected. When used as input in Create or Provision API, specify its resource name only.", "items": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec" + "$ref": "SubscriptionPromotionSpec" }, "type": "array" }, "oneTimeRecurrenceDetails": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails", + "$ref": "SubscriptionLineItemOneTimeRecurrenceDetails", "description": "Output only. Details only set for a ONE_TIME recurrence line item.", "readOnly": true }, @@ -1451,7 +1498,7 @@ "type": "string" }, "productPayload": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ProductPayload", + "$ref": "ProductPayload", "description": "Optional. Product specific payload for this line item." }, "recurrenceType": { @@ -1497,9 +1544,24 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails": { + "SubscriptionLineItemBundleDetails": { + "description": "The bundle details for a line item corresponding to a hard bundle.", + "id": "SubscriptionLineItemBundleDetails", + "properties": { + "bundleElementDetails": { + "description": "Output only. The details for each element in the hard bundle.", + "items": { + "$ref": "SubscriptionLineItemBundleDetailsBundleElementDetails" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "SubscriptionLineItemBundleDetailsBundleElementDetails": { "description": "The details for an element in the hard bundle.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails", + "id": "SubscriptionLineItemBundleDetailsBundleElementDetails", "properties": { "product": { "description": "Output only. Product resource name that identifies the bundle element. The format is 'partners/{partner_id}/products/{product_id}'.", @@ -1515,21 +1577,21 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails": { + "SubscriptionLineItemOneTimeRecurrenceDetails": { "description": "Details for a ONE_TIME recurrence line item.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails", + "id": "SubscriptionLineItemOneTimeRecurrenceDetails", "properties": { "servicePeriod": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod", + "$ref": "ServicePeriod", "description": "Output only. The service period of the ONE_TIME line item.", "readOnly": true } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails": { + "SubscriptionMigrationDetails": { "description": "Describes the details of the migrated subscription.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails", + "id": "SubscriptionMigrationDetails", "properties": { "migratedSubscriptionId": { "description": "Output only. The migrated subscription id in the legacy system.", @@ -1539,17 +1601,17 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec": { + "SubscriptionPromotionSpec": { "description": "Describes the spec for one promotion.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec", + "id": "SubscriptionPromotionSpec", "properties": { "freeTrialDuration": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Duration", + "$ref": "Duration", "description": "Output only. The duration of the free trial if the promotion is of type FREE_TRIAL.", "readOnly": true }, "introductoryPricingDetails": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails", + "$ref": "PromotionIntroductoryPricingDetails", "description": "Output only. The details of the introductory pricing spec if the promotion is of type INTRODUCTORY_PRICING.", "readOnly": true }, @@ -1575,9 +1637,9 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails": { + "SubscriptionUpgradeDowngradeDetails": { "description": "Details about the previous subscription that this new subscription upgrades/downgrades from.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails", + "id": "SubscriptionUpgradeDowngradeDetails", "properties": { "billingCycleSpec": { "description": "Required. Specifies the billing cycle spec for the new upgraded/downgraded subscription.", @@ -1596,49 +1658,49 @@ "type": "string" }, "previousSubscriptionId": { - "description": "Required. The previous subscription id to be replaced. This is not the full resource name, use the subscription_id segment only.", + "description": "Required. The previous subscription id to be replaced. The format can be one of the following: 1. `subscription_id`: the old subscription id under the same partner_id. 2. `partners/{partner_id}/subscriptions/{subscription_id}`. A different partner_id is allowed. But they must be under the same partner group.", "type": "string" } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest": { + "SuspendSubscriptionRequest": { "description": "Request to suspend a subscription.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest", + "id": "SuspendSubscriptionRequest", "properties": {}, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse": { + "SuspendSubscriptionResponse": { "description": "Response that contains the suspended subscription.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse", + "id": "SuspendSubscriptionResponse", "properties": { "subscription": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription", + "$ref": "Subscription", "description": "The suspended subscription resource." } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest": { + "UndoCancelSubscriptionRequest": { "description": "Request to revoke a cancellation request.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest", + "id": "UndoCancelSubscriptionRequest", "properties": {}, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse": { + "UndoCancelSubscriptionResponse": { "description": "Response that contains the updated subscription resource.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse", + "id": "UndoCancelSubscriptionResponse", "properties": { "subscription": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription", + "$ref": "Subscription", "description": "The updated subscription resource." } }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1UserSession": { + "UserSession": { "description": "A user session contains a short-lived token that includes information required to interact with Google Payments Reseller Platform using the following web endpoints. - A user session token should be generated dynamically for an authenticated user. You should refrain from sharing a token directly with a user in an unauthenticated context, such as SMS, or email. - You can re-generate new session tokens repeatedly for same `generate` request if necessary, regardless of the previous tokens being expired or not. You don't need to worry about multiple sessions resulting in duplicate fulfillments as guaranteed by the same subscription id. Please refer to the [Google Managed Signup](/payments/reseller/subscription/reference/index/User.Signup.Integration/Google.Managed.Signup) documentation for additional integration details.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1UserSession", + "id": "UserSession", "properties": { "expireTime": { "description": "Output only. The time at which the user session expires.", @@ -1654,9 +1716,9 @@ }, "type": "object" }, - "GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload": { + "YoutubePayload": { "description": "Payload specific to Youtube products.", - "id": "GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload", + "id": "YoutubePayload", "properties": { "accessEndTime": { "description": "Output only. The access expiration time for this line item.", @@ -1689,64 +1751,6 @@ } }, "type": "object" - }, - "GoogleTypeLocalizedText": { - "description": "Localized variant of a text in a particular language.", - "id": "GoogleTypeLocalizedText", - "properties": { - "languageCode": { - "description": "The text's BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.", - "type": "string" - }, - "text": { - "description": "Localized string in the language corresponding to language_code below.", - "type": "string" - } - }, - "type": "object" - }, - "ProductBundleDetails": { - "description": "Details for a bundle product.", - "id": "ProductBundleDetails", - "properties": { - "bundleElements": { - "description": "The individual products that are included in the bundle.", - "items": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement" - }, - "type": "array" - }, - "entitlementMode": { - "description": "The entitlement mode of the bundle product.", - "enum": [ - "ENTITLEMENT_MODE_UNSPECIFIED", - "ENTITLEMENT_MODE_FULL", - "ENTITLEMENT_MODE_INCREMENTAL" - ], - "enumDescriptions": [ - "Unspecified. It's reserved as an unexpected value, should not be used.", - "All the bundle elements must be fully activated in a single request.", - "The bundle elements could be incrementally activated." - ], - "type": "string" - } - }, - "type": "object" - }, - "SubscriptionLineItemBundleDetails": { - "description": "The bundle details for a line item corresponding to a hard bundle.", - "id": "SubscriptionLineItemBundleDetails", - "properties": { - "bundleElementDetails": { - "description": "Output only. The details for each element in the hard bundle.", - "items": { - "$ref": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails" - }, - "readOnly": true, - "type": "array" - } - }, - "type": "object" } } } diff --git a/discovery/googleapis/places__v1.json b/discovery/googleapis/places__v1.json index 3aecbb413..48436e808 100644 --- a/discovery/googleapis/places__v1.json +++ b/discovery/googleapis/places__v1.json @@ -43,7 +43,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250629", + "revision": "20250810", "rootUrl": "https://places.googleapis.com/", "servicePath": "", "title": "Places API (New)", @@ -1466,7 +1466,7 @@ }, "store": { "$ref": "GoogleMapsPlacesV1ContentBlock", - "description": "A summary of the nearby gas stations." + "description": "A summary of the nearby stores." } }, "type": "object" diff --git a/discovery/googleapis/playintegrity__v1.json b/discovery/googleapis/playintegrity__v1.json index 1cdcd90b5..6de4163c4 100644 --- a/discovery/googleapis/playintegrity__v1.json +++ b/discovery/googleapis/playintegrity__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250602", + "revision": "20250828", "rootUrl": "https://playintegrity.googleapis.com/", "servicePath": "", "title": "Google Play Integrity API", @@ -250,8 +250,8 @@ ], "enumDescriptions": [ "Play does not have sufficient information to evaluate licensing details", - "The app and certificate match the versions distributed by Play.", - "The certificate or package name does not match Google Play records.", + "The user has a valid license to use the app.", + "The user does not have a valid license to use the app.", "Licensing details were not evaluated since a necessary requirement was missed. For example DeviceIntegrity did not meet the minimum bar or the application was not a known Play version." ], "type": "string" @@ -499,6 +499,29 @@ }, "type": "object" }, + "PcAccountDetails": { + "description": "Contains the account information such as the licensing status for the user in the scope.", + "id": "PcAccountDetails", + "properties": { + "appLicensingVerdict": { + "description": "Required. Details about the licensing status of the user for the app in the scope.", + "enum": [ + "UNKNOWN", + "LICENSED", + "UNLICENSED", + "UNEVALUATED" + ], + "enumDescriptions": [ + "Play does not have sufficient information to evaluate licensing details", + "The user has a valid license to use the app.", + "The user does not have a valid license to use the app.", + "Licensing details were not evaluated since a necessary requirement was missed." + ], + "type": "string" + } + }, + "type": "object" + }, "PcDeviceIntegrity": { "description": "Contains the device attestation information.", "id": "PcDeviceIntegrity", @@ -541,10 +564,25 @@ }, "type": "object" }, + "PcTestingDetails": { + "description": "Contains additional information generated for testing responses.", + "id": "PcTestingDetails", + "properties": { + "isTestingResponse": { + "description": "Indicates that the information contained in this payload is a testing response that is statically overridden for a tester.", + "type": "boolean" + } + }, + "type": "object" + }, "PcTokenPayloadExternal": { "description": "Contains PC device attestation details.", "id": "PcTokenPayloadExternal", "properties": { + "accountDetails": { + "$ref": "PcAccountDetails", + "description": "Details about the account information such as the licensing status." + }, "deviceIntegrity": { "$ref": "PcDeviceIntegrity", "description": "Required. Details about the device integrity." @@ -552,6 +590,10 @@ "requestDetails": { "$ref": "PcRequestDetails", "description": "Required. Details about the integrity request." + }, + "testingDetails": { + "$ref": "PcTestingDetails", + "description": "Indicates that this payload is generated for testing purposes and contains any additional data that is linked with testing status." } }, "type": "object" diff --git a/discovery/googleapis/policysimulator__v1.json b/discovery/googleapis/policysimulator__v1.json index 638234aa6..142cd7305 100644 --- a/discovery/googleapis/policysimulator__v1.json +++ b/discovery/googleapis/policysimulator__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250626", + "revision": "20250815", "rootUrl": "https://policysimulator.googleapis.com/", "servicePath": "", "title": "Policy Simulator API", @@ -1219,7 +1219,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. Required for managed constraints if parameters are defined. Passes parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: { \"allowedLocations\" : [\"us-east1\", \"us-west1\"], \"allowAll\" : true }", + "description": "Optional. Required for managed constraints if parameters are defined. Passes parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: ``` { \"allowedLocations\" : [\"us-east1\", \"us-west1\"], \"allowAll\" : true } ```", "type": "object" }, "values": { diff --git a/discovery/googleapis/privateca__v1.json b/discovery/googleapis/privateca__v1.json index 9d27aa9c3..e454397f7 100644 --- a/discovery/googleapis/privateca__v1.json +++ b/discovery/googleapis/privateca__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250528", + "revision": "20250901", "rootUrl": "https://privateca.googleapis.com/", "servicePath": "", "title": "Certificate Authority API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1799,6 +1799,10 @@ "description": "A CaPool represents a group of CertificateAuthorities that form a trust anchor. A CaPool can be used to manage issuance policies for one or more CertificateAuthority resources and to rotate CA certificates in and out of the trust anchor.", "id": "CaPool", "properties": { + "encryptionSpec": { + "$ref": "EncryptionSpec", + "description": "Optional. When EncryptionSpec is provided, the Subject, SubjectAltNames, and the PEM-encoded certificate fields will be encrypted at rest." + }, "issuancePolicy": { "$ref": "IssuancePolicy", "description": "Optional. The IssuancePolicy to control how Certificates will be issued from this CaPool." @@ -2425,6 +2429,17 @@ }, "type": "object" }, + "EncryptionSpec": { + "description": "The configuration used for encrypting data at rest.", + "id": "EncryptionSpec", + "properties": { + "cloudKmsKey": { + "description": "The resource name for a Cloud KMS key in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*`.", + "type": "string" + } + }, + "type": "object" + }, "Expr": { "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() < 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' && document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", "id": "Expr", @@ -3124,37 +3139,6 @@ }, "type": "object" }, - "ReconciliationOperationMetadata": { - "description": "Operation metadata returned by the CLH during resource state reconciliation.", - "id": "ReconciliationOperationMetadata", - "properties": { - "deleteResource": { - "deprecated": true, - "description": "DEPRECATED. Use exclusive_action instead.", - "type": "boolean" - }, - "exclusiveAction": { - "description": "Excluisive action returned by the CLH.", - "enum": [ - "UNKNOWN_REPAIR_ACTION", - "DELETE", - "RETRY" - ], - "enumDeprecated": [ - false, - true, - false - ], - "enumDescriptions": [ - "Unknown repair action.", - "The resource has to be deleted. When using this bit, the CLH should fail the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in SideChannel.", - "This resource could not be repaired but the repair should be tried again at a later time. This can happen if there is a dependency that needs to be resolved first- e.g. if a parent resource must be repaired before a child resource." - ], - "type": "string" - } - }, - "type": "object" - }, "RelativeDistinguishedName": { "description": "RelativeDistinguishedName specifies a relative distinguished name which will be used to build a distinguished name.", "id": "RelativeDistinguishedName", diff --git a/discovery/googleapis/pubsub__v1.json b/discovery/googleapis/pubsub__v1.json index 731f3b1fc..6c08e8fdf 100644 --- a/discovery/googleapis/pubsub__v1.json +++ b/discovery/googleapis/pubsub__v1.json @@ -19,6 +19,16 @@ "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/pubsub/docs", "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://pubsub.asia-south1.rep.googleapis.com/", + "location": "asia-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://pubsub.asia-south2.rep.googleapis.com/", + "location": "asia-south2" + }, { "description": "Regional Endpoint", "endpointUrl": "https://pubsub.me-central2.rep.googleapis.com/", @@ -100,7 +110,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250414", + "revision": "20250807", "rootUrl": "https://pubsub.googleapis.com/", "servicePath": "", "title": "Cloud Pub/Sub API", diff --git a/discovery/googleapis/redis__v1.json b/discovery/googleapis/redis__v1.json index 7a0b8ad6f..a06a1b43d 100644 --- a/discovery/googleapis/redis__v1.json +++ b/discovery/googleapis/redis__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250729", + "revision": "20250909", "rootUrl": "https://redis.googleapis.com/", "servicePath": "", "title": "Google Cloud Memorystore for Redis API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1338,10 +1338,28 @@ "readOnly": true, "type": "string" }, + "lastBackupTime": { + "description": "Output only. The last time a backup was created in the backup collection.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "name": { "description": "Identifier. Full resource path of the backup collection.", "type": "string" }, + "totalBackupCount": { + "description": "Output only. Total number of backups in the backup collection.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "totalBackupSizeBytes": { + "description": "Output only. Total size of all backups in the backup collection.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "uid": { "description": "Output only. System assigned unique identifier of the backup collection.", "readOnly": true, @@ -1503,7 +1521,8 @@ "id": "Cluster", "properties": { "allowFewerZonesDeployment": { - "description": "Optional. Immutable. Allows customers to specify if they are okay with deploying a multi-zone cluster in less than 3 zones. Once set, if there is a zonal outage during the cluster creation, the cluster will only be deployed in 2 zones, and stay within the 2 zones for its lifecycle.", + "deprecated": true, + "description": "Optional. Immutable. Deprecated, do not use.", "type": "boolean" }, "asyncClusterEndpointsDeletionEnabled": { @@ -1575,6 +1594,13 @@ "description": "Optional. The KMS key used to encrypt the at-rest data of the cluster.", "type": "string" }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels to represent user-provided metadata.", + "type": "object" + }, "maintenancePolicy": { "$ref": "ClusterMaintenancePolicy", "description": "Optional. ClusterMaintenancePolicy determines when to allow or deny updates." @@ -1995,7 +2021,7 @@ "type": "object" }, "DatabaseResourceFeed": { - "description": "DatabaseResourceFeed is the top level proto to be used to ingest different database resource level events into Condor platform. Next ID: 10", + "description": "DatabaseResourceFeed is the top level proto to be used to ingest different database resource level events into Condor platform. Next ID: 13", "id": "DatabaseResourceFeed", "properties": { "backupdrMetadata": { @@ -2006,6 +2032,10 @@ "$ref": "ConfigBasedSignalData", "description": "Config based signal data is used to ingest signals that are generated based on the configuration of the database resource." }, + "databaseResourceSignalData": { + "$ref": "DatabaseResourceSignalData", + "description": "Database resource signal data is used to ingest signals from database resource signal feeds." + }, "feedTimestamp": { "description": "Required. Timestamp when feed is generated.", "format": "google-datetime", @@ -2020,7 +2050,8 @@ "SECURITY_FINDING_DATA", "RECOMMENDATION_SIGNAL_DATA", "CONFIG_BASED_SIGNAL_DATA", - "BACKUPDR_METADATA" + "BACKUPDR_METADATA", + "DATABASE_RESOURCE_SIGNAL_DATA" ], "enumDescriptions": [ "", @@ -2029,7 +2060,8 @@ "Database resource security health signal data", "Database resource recommendation signal data", "Database config based signal data", - "Database resource metadata from BackupDR" + "Database resource metadata from BackupDR", + "Database resource signal data" ], "type": "string" }, @@ -2049,6 +2081,10 @@ }, "resourceMetadata": { "$ref": "DatabaseResourceMetadata" + }, + "skipIngestion": { + "description": "Optional. If true, the feed won't be ingested by DB Center. This indicates that the feed is intentionally skipped. For example, BackupDR feeds are only needed for resources integrated with DB Center (e.g., CloudSQL, AlloyDB). Feeds for non-integrated resources (e.g., Compute Engine, Persistent Disk) can be skipped.", + "type": "boolean" } }, "type": "object" @@ -2268,7 +2304,8 @@ "SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED", "SIGNAL_TYPE_MANY_IDLE_CONNECTIONS", "SIGNAL_TYPE_REPLICATION_LAG", - "SIGNAL_TYPE_OUTDATED_VERSION" + "SIGNAL_TYPE_OUTDATED_VERSION", + "SIGNAL_TYPE_OUTDATED_CLIENT" ], "enumDeprecated": [ false, @@ -2371,6 +2408,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2474,7 +2512,8 @@ "Schema not optimized.", "High number of idle connections.", "Replication delay.", - "Outdated version." + "Outdated version.", + "Outdated client." ], "type": "string" }, @@ -2538,7 +2577,7 @@ "type": "object" }, "DatabaseResourceMetadata": { - "description": "Common model for database resource instance metadata. Next ID: 26", + "description": "Common model for database resource instance metadata. Next ID: 27", "id": "DatabaseResourceMetadata", "properties": { "availabilityConfiguration": { @@ -2591,12 +2630,14 @@ "enum": [ "EDITION_UNSPECIFIED", "EDITION_ENTERPRISE", - "EDITION_ENTERPRISE_PLUS" + "EDITION_ENTERPRISE_PLUS", + "EDITION_STANDARD" ], "enumDescriptions": [ "Default, to make it consistent with instance edition enum.", "Represents the enterprise edition.", - "Represents the enterprise plus edition." + "Represents the enterprise plus edition.", + "Represents the standard edition." ], "type": "string" }, @@ -2741,6 +2782,10 @@ "userLabelSet": { "$ref": "UserLabels", "description": "User-provided labels associated with the resource" + }, + "zone": { + "description": "The resource zone. This is only applicable for zonal resources and will be empty for regional and multi-regional resources.", + "type": "string" } }, "type": "object" @@ -2901,7 +2946,8 @@ "SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED", "SIGNAL_TYPE_MANY_IDLE_CONNECTIONS", "SIGNAL_TYPE_REPLICATION_LAG", - "SIGNAL_TYPE_OUTDATED_VERSION" + "SIGNAL_TYPE_OUTDATED_VERSION", + "SIGNAL_TYPE_OUTDATED_CLIENT" ], "enumDeprecated": [ false, @@ -3004,6 +3050,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -3107,7 +3154,69 @@ "Schema not optimized.", "High number of idle connections.", "Replication delay.", - "Outdated version." + "Outdated version.", + "Outdated client." + ], + "type": "string" + } + }, + "type": "object" + }, + "DatabaseResourceSignalData": { + "description": "Database resource signal data. This is used to send signals to Condor which are based on the DB/Instance/Fleet level configurations. These will be used to send signals for all inventory types. Next ID: 7", + "id": "DatabaseResourceSignalData", + "properties": { + "fullResourceName": { + "description": "Required. Full Resource name of the source resource.", + "type": "string" + }, + "lastRefreshTime": { + "description": "Required. Last time signal was refreshed", + "format": "google-datetime", + "type": "string" + }, + "resourceId": { + "$ref": "DatabaseResourceId", + "description": "Database resource id." + }, + "signalBoolValue": { + "description": "Signal data for boolean signals.", + "type": "boolean" + }, + "signalState": { + "description": "Required. Output only. Signal state of the signal", + "enum": [ + "SIGNAL_STATE_UNSPECIFIED", + "ACTIVE", + "INACTIVE", + "DISMISSED" + ], + "enumDescriptions": [ + "Unspecified signal state.", + "Signal is active and requires attention.", + "Signal is inactive and does not require attention.", + "Signal is dismissed by the user and should not be shown to the user again." + ], + "readOnly": true, + "type": "string" + }, + "signalType": { + "description": "Required. Signal type of the signal", + "enum": [ + "SIGNAL_TYPE_UNSPECIFIED", + "SIGNAL_TYPE_OUTDATED_MINOR_VERSION", + "SIGNAL_TYPE_DATABASE_AUDITING_DISABLED", + "SIGNAL_TYPE_NO_ROOT_PASSWORD", + "SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS", + "SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS" + ], + "enumDescriptions": [ + "Unspecified signal type.", + "Outdated Minor Version", + "Represents database auditing is disabled.", + "Represents if a database has a password configured for the root account or not.", + "Represents if a resource is exposed to public access.", + "Represents if a resources requires all incoming connections to use SSL or not." ], "type": "string" } diff --git a/discovery/googleapis/retail__v2.json b/discovery/googleapis/retail__v2.json index 40eb07e1a..22032b11d 100644 --- a/discovery/googleapis/retail__v2.json +++ b/discovery/googleapis/retail__v2.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250717", + "revision": "20250911", "rootUrl": "https://retail.googleapis.com/", "servicePath": "", "title": "Vertex AI Search for commerce API", @@ -1663,6 +1663,34 @@ }, "placements": { "methods": { + "conversationalSearch": { + "description": "Performs a conversational search. This feature is only available for users who have Conversational Search enabled.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/placements/{placementsId}:conversationalSearch", + "httpMethod": "POST", + "id": "retail.projects.locations.catalogs.placements.conversationalSearch", + "parameterOrder": [ + "placement" + ], + "parameters": { + "placement": { + "description": "Required. The resource name of the search engine placement, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search` or `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` This field is used to identify the serving config name and the set of models that will be used to make the search.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/placements/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+placement}:conversationalSearch", + "request": { + "$ref": "GoogleCloudRetailV2ConversationalSearchRequest" + }, + "response": { + "$ref": "GoogleCloudRetailV2ConversationalSearchResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "predict": { "description": "Makes a recommendation prediction.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/placements/{placementsId}:predict", @@ -1751,6 +1779,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "conversationalSearch": { + "description": "Performs a conversational search. This feature is only available for users who have Conversational Search enabled.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/servingConfigs/{servingConfigsId}:conversationalSearch", + "httpMethod": "POST", + "id": "retail.projects.locations.catalogs.servingConfigs.conversationalSearch", + "parameterOrder": [ + "placement" + ], + "parameters": { + "placement": { + "description": "Required. The resource name of the search engine placement, such as `projects/*/locations/global/catalogs/default_catalog/placements/default_search` or `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` This field is used to identify the serving config name and the set of models that will be used to make the search.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/servingConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+placement}:conversationalSearch", + "request": { + "$ref": "GoogleCloudRetailV2ConversationalSearchRequest" + }, + "response": { + "$ref": "GoogleCloudRetailV2ConversationalSearchResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates a ServingConfig. A maximum of 100 ServingConfigs are allowed in a Catalog, otherwise a FAILED_PRECONDITION error is returned.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/servingConfigs", @@ -3253,6 +3309,261 @@ }, "type": "object" }, + "GoogleCloudRetailV2ConversationalSearchRequest": { + "description": "Request message for ConversationalSearchService.ConversationalSearch method.", + "id": "GoogleCloudRetailV2ConversationalSearchRequest", + "properties": { + "branch": { + "description": "Required. The branch resource name, such as `projects/*/locations/global/catalogs/default_catalog/branches/0`. Use \"default_branch\" as the branch ID or leave this field empty, to search products under the default branch.", + "type": "string" + }, + "conversationId": { + "description": "Optional. This field specifies the conversation id, which maintains the state of the conversation between client side and server side. Use the value from the previous ConversationalSearchResponse.conversation_id. For the initial request, this should be empty.", + "type": "string" + }, + "conversationalFilteringSpec": { + "$ref": "GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec", + "description": "Optional. This field specifies all conversational filtering related parameters." + }, + "pageCategories": { + "description": "Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.page_categories; To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, replace it with other character(s). Category pages include special pages such as sales or promotions. For instance, a special sale page may have the category hierarchy: \"pageCategories\" : [\"Sales > 2017 Black Friday Deals\"].", + "items": { + "type": "string" + }, + "type": "array" + }, + "query": { + "description": "Optional. Raw search query to be searched for. If this field is empty, the request is considered a category browsing request.", + "type": "string" + }, + "safetySettings": { + "description": "Optional. The safety settings to be applied to the generated content.", + "items": { + "$ref": "GoogleCloudRetailV2SafetySetting" + }, + "type": "array" + }, + "searchParams": { + "$ref": "GoogleCloudRetailV2ConversationalSearchRequestSearchParams", + "description": "Optional. Search parameters." + }, + "userInfo": { + "$ref": "GoogleCloudRetailV2UserInfo", + "description": "Optional. User information." + }, + "userLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.", + "type": "object" + }, + "visitorId": { + "description": "Required. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. This should be the same identifier as UserEvent.visitor_id. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec": { + "description": "This field specifies all conversational filtering related parameters addition to conversational retail search.", + "id": "GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec", + "properties": { + "conversationalFilteringMode": { + "description": "Optional. Mode to control Conversational Filtering. Defaults to Mode.DISABLED if it's unset.", + "enum": [ + "MODE_UNSPECIFIED", + "DISABLED", + "ENABLED", + "CONVERSATIONAL_FILTER_ONLY" + ], + "enumDescriptions": [ + "Default value.", + "Disables Conversational Filtering when using Conversational Search.", + "Enables Conversational Filtering when using Conversational Search.", + "Enables Conversational Filtering without Conversational Search." + ], + "type": "string" + }, + "enableConversationalFiltering": { + "deprecated": true, + "description": "Optional. This field is deprecated. Please use ConversationalFilteringSpec.conversational_filtering_mode instead.", + "type": "boolean" + }, + "userAnswer": { + "$ref": "GoogleCloudRetailV2ConversationalSearchRequestUserAnswer", + "description": "Optional. This field specifies the current user answer during the conversational filtering search. It can be either user selected from suggested answers or user input plain text." + } + }, + "type": "object" + }, + "GoogleCloudRetailV2ConversationalSearchRequestSearchParams": { + "description": "Search parameters.", + "id": "GoogleCloudRetailV2ConversationalSearchRequestSearchParams", + "properties": { + "boostSpec": { + "$ref": "GoogleCloudRetailV2SearchRequestBoostSpec", + "description": "Optional. The boost spec to specify the boosting of search results. The syntax of the boost spec is the same as SearchRequest.boost_spec." + }, + "canonicalFilter": { + "description": "Optional. The canonical filter string to restrict search results. The syntax of the canonical filter string is the same as SearchRequest.canonical_filter.", + "type": "string" + }, + "filter": { + "description": "Optional. The filter string to restrict search results. The syntax of the filter string is the same as SearchRequest.filter.", + "type": "string" + }, + "sortBy": { + "description": "Optional. The sort string to specify the sorting of search results. The syntax of the sort string is the same as SearchRequest.sort.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2ConversationalSearchRequestUserAnswer": { + "description": "This field specifies the current user answer during the conversational filtering search. This can be either user selected from suggested answers or user input plain text.", + "id": "GoogleCloudRetailV2ConversationalSearchRequestUserAnswer", + "properties": { + "selectedAnswer": { + "$ref": "GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer", + "description": "Optional. This field specifies the selected answer during the conversational search. This should be a subset of ConversationalSearchResponse.followup_question.suggested_answers." + }, + "textAnswer": { + "description": "This field specifies the incremental input text from the user during the conversational search.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer": { + "description": "This field specifies the selected answers during the conversational search.", + "id": "GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer", + "properties": { + "productAttributeValue": { + "$ref": "GoogleCloudRetailV2ProductAttributeValue", + "description": "Optional. This field specifies the selected answer which is a attribute key-value." + } + }, + "type": "object" + }, + "GoogleCloudRetailV2ConversationalSearchResponse": { + "description": "Response message for ConversationalSearchService.ConversationalSearch method.", + "id": "GoogleCloudRetailV2ConversationalSearchResponse", + "properties": { + "conversationId": { + "description": "Conversation UUID. This field will be stored in client side storage to maintain the conversation session with server and will be used for next search request's ConversationalSearchRequest.conversation_id to restore conversation state in server.", + "type": "string" + }, + "conversationalFilteringResult": { + "$ref": "GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult", + "description": "This field specifies all related information that is needed on client side for UI rendering of conversational filtering search." + }, + "conversationalTextResponse": { + "description": "The conversational answer-based text response generated by the Server.", + "type": "string" + }, + "followupQuestion": { + "$ref": "GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion", + "description": "The conversational followup question generated for Intent refinement." + }, + "refinedSearch": { + "description": "The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.", + "items": { + "$ref": "GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch" + }, + "type": "array" + }, + "state": { + "description": "Output only. The state of the response generation.", + "enum": [ + "STATE_UNSPECIFIED", + "STREAMING", + "SUCCEEDED" + ], + "enumDescriptions": [ + "Unknown.", + "Response generation is being streamed.", + "Response generation has succeeded." + ], + "readOnly": true, + "type": "string" + }, + "userQueryTypes": { + "description": "The types Retail classifies the search query as. Supported values are: - \"ORDER_SUPPORT\" - \"SIMPLE_PRODUCT_SEARCH\" - \"INTENT_REFINEMENT\" - \"PRODUCT_DETAILS\" - \"PRODUCT_COMPARISON\" - \"DEALS_AND_COUPONS\" - \"STORE_RELEVANT\" - \"BLOCKLISTED\" - \"BEST_PRODUCT\" - \"RETAIL_SUPPORT\" - \"DISABLED\"", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult": { + "description": "This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.", + "id": "GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult", + "properties": { + "additionalFilter": { + "$ref": "GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter", + "description": "This is the incremental additional filters implied from the current user answer. User should add the suggested addition filters to the previous ConversationalSearchRequest.search_params.filter and SearchRequest.filter, and use the merged filter in the follow up requests." + }, + "followupQuestion": { + "$ref": "GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion", + "description": "The conversational filtering question." + } + }, + "type": "object" + }, + "GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter": { + "description": "Additional filter that client side need to apply.", + "id": "GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter", + "properties": { + "productAttributeValue": { + "$ref": "GoogleCloudRetailV2ProductAttributeValue", + "description": "Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future." + } + }, + "type": "object" + }, + "GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion": { + "description": "The conversational followup question generated for Intent refinement.", + "id": "GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion", + "properties": { + "followupQuestion": { + "description": "The conversational followup question generated for Intent refinement.", + "type": "string" + }, + "suggestedAnswers": { + "description": "The answer options provided to client for the follow-up question.", + "items": { + "$ref": "GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer": { + "description": "Suggested answers to the follow-up question. If it's numerical attribute, only ProductAttributeInterval will be set. If it's textual attribute, only productAttributeValue will be set.", + "id": "GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer", + "properties": { + "productAttributeValue": { + "$ref": "GoogleCloudRetailV2ProductAttributeValue", + "description": "Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future." + } + }, + "type": "object" + }, + "GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch": { + "description": "The proposed refined search for intent-refinement/bundled shopping conversation. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.", + "id": "GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch", + "properties": { + "query": { + "description": "The query to be used for search.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2CreateModelMetadata": { "description": "Metadata associated with a create operation.", "id": "GoogleCloudRetailV2CreateModelMetadata", @@ -5349,6 +5660,67 @@ }, "type": "object" }, + "GoogleCloudRetailV2SafetySetting": { + "description": "Safety settings.", + "id": "GoogleCloudRetailV2SafetySetting", + "properties": { + "category": { + "description": "Harm category.", + "enum": [ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_CIVIC_INTEGRITY" + ], + "enumDescriptions": [ + "The harm category is unspecified.", + "The harm category is hate speech.", + "The harm category is dangerous content.", + "The harm category is harassment.", + "The harm category is sexually explicit content.", + "The harm category is civic integrity." + ], + "type": "string" + }, + "method": { + "description": "Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.", + "enum": [ + "HARM_BLOCK_METHOD_UNSPECIFIED", + "SEVERITY", + "PROBABILITY" + ], + "enumDescriptions": [ + "The harm block method is unspecified.", + "The harm block method uses both probability and severity scores.", + "The harm block method uses the probability score." + ], + "type": "string" + }, + "threshold": { + "description": "The harm block threshold.", + "enum": [ + "HARM_BLOCK_THRESHOLD_UNSPECIFIED", + "BLOCK_LOW_AND_ABOVE", + "BLOCK_MEDIUM_AND_ABOVE", + "BLOCK_ONLY_HIGH", + "BLOCK_NONE", + "OFF" + ], + "enumDescriptions": [ + "Unspecified harm block threshold.", + "Block low threshold and above (i.e. block more).", + "Block medium threshold and above.", + "Block only high threshold (i.e. block less).", + "Block none.", + "Turn off the safety filter." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2SearchRequest": { "description": "Request message for SearchService.Search method.", "id": "GoogleCloudRetailV2SearchRequest", diff --git a/discovery/googleapis/run__v1.json b/discovery/googleapis/run__v1.json index 3edc17f71..11c8bdd5f 100644 --- a/discovery/googleapis/run__v1.json +++ b/discovery/googleapis/run__v1.json @@ -186,6 +186,11 @@ "endpointUrl": "https://us-central1-run.googleapis.com/", "location": "us-central1" }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://us-central2-run.googleapis.com/", + "location": "us-central2" + }, { "description": "Locational Endpoint", "endpointUrl": "https://us-east1-run.googleapis.com/", @@ -201,6 +206,11 @@ "endpointUrl": "https://us-east5-run.googleapis.com/", "location": "us-east5" }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://us-east7-run.googleapis.com/", + "location": "us-east7" + }, { "description": "Locational Endpoint", "endpointUrl": "https://us-south1-run.googleapis.com/", @@ -225,6 +235,11 @@ "description": "Locational Endpoint", "endpointUrl": "https://us-west4-run.googleapis.com/", "location": "us-west4" + }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://us-west8-run.googleapis.com/", + "location": "us-west8" } ], "icons": { @@ -237,7 +252,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250704", + "revision": "20250905", "rootUrl": "https://run.googleapis.com/", "servicePath": "", "title": "Cloud Run Admin API", @@ -1731,7 +1746,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -3004,7 +3019,7 @@ "additionalProperties": { "type": "string" }, - "description": "stores driver specific attributes. For Google Cloud Storage volumes, the following attributes are supported: * bucketName: the name of the Cloud Storage bucket to mount. The Cloud Run Service identity must have access to this bucket.", + "description": "stores driver specific attributes. For Google Cloud Storage volumes, the following attributes are supported: * bucketName: the name of the Cloud Storage bucket to mount. The Cloud Run Service identity must have access to this bucket. * mountOptions: comma-separated list of mount options to pass to the gcsfuse.", "type": "object" } }, @@ -4709,7 +4724,7 @@ "id": "GoogleDevtoolsCloudbuildV1NpmPackage", "properties": { "packagePath": { - "description": "Path to the package.json. e.g. workspace/path/to/package", + "description": "Optional. Path to the package.json. e.g. workspace/path/to/package Only one of `archive` or `package_path` can be specified.", "type": "string" }, "repository": { @@ -5319,11 +5334,11 @@ "id": "InstanceSplit", "properties": { "latestRevision": { - "description": "Uses the \"status.latestReadyRevisionName\" to determine the traffic target. When it changes, traffic will automatically migrate from the prior \"latest ready\" revision to the new one.", + "description": "Uses the \"status.latestReadyRevisionName\" to determine the instance split target. When it changes, workloads will automatically migrate from the prior \"latest ready\" revision to the new one.", "type": "boolean" }, "percent": { - "description": "Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.", + "description": "Optional. Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.", "format": "int32", "type": "integer" }, @@ -6176,7 +6191,7 @@ "type": "object" }, "runtimeClassName": { - "description": "Runtime. Leave unset for default.", + "description": "Optional. Runtime. Leave unset for default.", "type": "string" }, "serviceAccountName": { @@ -6944,7 +6959,7 @@ "type": "array" }, "instanceSplits": { - "description": "Holds the configured traffic distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that we last observed.", + "description": "Holds the configured workload distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that we last observed.", "items": { "$ref": "InstanceSplit" }, diff --git a/discovery/googleapis/run__v2.json b/discovery/googleapis/run__v2.json index bf4a7f3e8..df3196fd6 100644 --- a/discovery/googleapis/run__v2.json +++ b/discovery/googleapis/run__v2.json @@ -186,6 +186,11 @@ "endpointUrl": "https://us-central1-run.googleapis.com/", "location": "us-central1" }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://us-central2-run.googleapis.com/", + "location": "us-central2" + }, { "description": "Locational Endpoint", "endpointUrl": "https://us-east1-run.googleapis.com/", @@ -201,6 +206,11 @@ "endpointUrl": "https://us-east5-run.googleapis.com/", "location": "us-east5" }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://us-east7-run.googleapis.com/", + "location": "us-east7" + }, { "description": "Locational Endpoint", "endpointUrl": "https://us-south1-run.googleapis.com/", @@ -225,6 +235,11 @@ "description": "Locational Endpoint", "endpointUrl": "https://us-west4-run.googleapis.com/", "location": "us-west4" + }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://us-west8-run.googleapis.com/", + "location": "us-west8" } ], "icons": { @@ -237,7 +252,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250718", + "revision": "20250905", "rootUrl": "https://run.googleapis.com/", "servicePath": "", "title": "Cloud Run Admin API", @@ -3764,7 +3779,7 @@ "type": "integer" }, "items": { - "description": "If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.", + "description": "If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path + VolumeMount.sub_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.", "items": { "$ref": "GoogleCloudRunV2VersionToPath" }, @@ -4099,6 +4114,34 @@ "description": "Required. Artifact Registry URI to store the built image.", "type": "string" }, + "machineType": { + "description": "Optional. The machine type from default pool to use for the build. If left blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8 is supported. If worker_pool is set, this field will be ignored.", + "type": "string" + }, + "releaseTrack": { + "description": "Optional. The release track of the client that initiated the build request.", + "enum": [ + "LAUNCH_STAGE_UNSPECIFIED", + "UNIMPLEMENTED", + "PRELAUNCH", + "EARLY_ACCESS", + "ALPHA", + "BETA", + "GA", + "DEPRECATED" + ], + "enumDescriptions": [ + "Do not use this default value.", + "The feature is not yet implemented. Users can not use it.", + "Prelaunch features are hidden from users and are only visible internally.", + "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.", + "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don't have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", + "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.", + "GA features are open to all developers and are considered stable and fully qualified for production use.", + "Deprecated features are scheduled to be shut down and removed. For more information, see the \"Deprecation Policy\" section of our [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud Platform Subject to the Deprecation Policy](https://cloud.google.com/terms/deprecation) documentation." + ], + "type": "string" + }, "serviceAccount": { "description": "Optional. The service account to use for the build. If not set, the default Cloud Build service account for the project will be used.", "type": "string" @@ -4579,6 +4622,10 @@ "name": { "description": "Required. This must match the Name of a Volume.", "type": "string" + }, + "subPath": { + "description": "Optional. Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", + "type": "string" } }, "type": "object" @@ -4723,7 +4770,7 @@ "type": "string" }, "latestReadyRevision": { - "description": "Output only. Name of the latest revision that is serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.", + "description": "Output only. Name of the latest revision that is serving workloads. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.", "readOnly": true, "type": "string" }, @@ -4756,13 +4803,13 @@ "type": "string" }, "observedGeneration": { - "description": "Output only. The generation of this WorkerPool currently serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. Please note that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will be a `string` instead of an `integer`.", + "description": "Output only. The generation of this WorkerPool currently serving workloads. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. Please note that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will be a `string` instead of an `integer`.", "format": "int64", "readOnly": true, "type": "string" }, "reconciling": { - "description": "Output only. Returns true if the WorkerPool is currently being acted upon by the system to bring it into the desired state. When a new WorkerPool is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the WorkerPool to the desired serving state. This process is called reconciliation. While reconciliation is in process, `observed_generation`, `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the serving state matches the WorkerPool, or there was an error, and reconciliation failed. This state can be found in `terminal_condition.state`. If reconciliation succeeded, the following fields will match: `traffic` and `traffic_statuses`, `observed_generation` and `generation`, `latest_ready_revision` and `latest_created_revision`. If reconciliation failed, `traffic_statuses`, `observed_generation`, and `latest_ready_revision` will have the state of the last serving revision, or empty for newly created WorkerPools. Additional information on the failure can be found in `terminal_condition` and `conditions`.", + "description": "Output only. Returns true if the WorkerPool is currently being acted upon by the system to bring it into the desired state. When a new WorkerPool is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the WorkerPool to the desired serving state. This process is called reconciliation. While reconciliation is in process, `observed_generation`, `latest_ready_revison`, `instance_split_statuses`, and `uri` will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the serving state matches the WorkerPool, or there was an error, and reconciliation failed. This state can be found in `terminal_condition.state`. If reconciliation succeeded, the following fields will match: `instance_splits` and `instance_split_statuses`, `observed_generation` and `generation`, `latest_ready_revision` and `latest_created_revision`. If reconciliation failed, `instance_split_statuses`, `observed_generation`, and `latest_ready_revision` will have the state of the last serving revision, or empty for newly created WorkerPools. Additional information on the failure can be found in `terminal_condition` and `conditions`.", "readOnly": true, "type": "boolean" }, @@ -5890,7 +5937,7 @@ "id": "GoogleDevtoolsCloudbuildV1NpmPackage", "properties": { "packagePath": { - "description": "Path to the package.json. e.g. workspace/path/to/package", + "description": "Optional. Path to the package.json. e.g. workspace/path/to/package Only one of `archive` or `package_path` can be specified.", "type": "string" }, "repository": { diff --git a/discovery/googleapis/script__v1.json b/discovery/googleapis/script__v1.json index 93d6813f7..0ab2a4799 100644 --- a/discovery/googleapis/script__v1.json +++ b/discovery/googleapis/script__v1.json @@ -76,7 +76,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250623", + "revision": "20250824", "rootUrl": "https://script.googleapis.com/", "servicePath": "", "title": "Apps Script API", @@ -1084,7 +1084,7 @@ "id": "File", "properties": { "createTime": { - "description": "Creation date timestamp. This read-only field is only visible to users who have WRITER permission for the script project.", + "description": "Creation date timestamp.", "format": "google-datetime", "type": "string" }, @@ -1094,7 +1094,7 @@ }, "lastModifyUser": { "$ref": "GoogleAppsScriptTypeUser", - "description": "The user who modified the file most recently. This read-only field is only visible to users who have WRITER permission for the script project." + "description": "The user who modified the file most recently. The details visible in this object are controlled by the profile visibility settings of the last modifying user." }, "name": { "description": "The name of the file. The file extension is not part of the file name, which can be identified from the type field.", @@ -1121,7 +1121,7 @@ "type": "string" }, "updateTime": { - "description": "Last modified date timestamp. This read-only field is only visible to users who have WRITER permission for the script project.", + "description": "Last modified date timestamp.", "format": "google-datetime", "type": "string" } diff --git a/discovery/googleapis/secretmanager__v1.json b/discovery/googleapis/secretmanager__v1.json index 7bafb8c96..96ce59966 100644 --- a/discovery/googleapis/secretmanager__v1.json +++ b/discovery/googleapis/secretmanager__v1.json @@ -207,7 +207,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250704", + "revision": "20250910", "rootUrl": "https://secretmanager.googleapis.com/", "servicePath": "", "title": "Secret Manager API", @@ -330,7 +330,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/securitycenter__v1.json b/discovery/googleapis/securitycenter__v1.json index 745233205..00e8812b6 100644 --- a/discovery/googleapis/securitycenter__v1.json +++ b/discovery/googleapis/securitycenter__v1.json @@ -42,7 +42,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250721", + "revision": "20250905", "rootUrl": "https://securitycenter.googleapis.com/", "servicePath": "", "title": "Security Command Center API", @@ -6696,7 +6696,7 @@ "type": "object" }, "BigQueryDestination": { - "description": "The destination big query dataset to export findings to.", + "description": "The destination BigQuery dataset to export findings to.", "id": "BigQueryDestination", "properties": { "dataset": { @@ -7814,7 +7814,7 @@ "properties": { "bigQueryDestination": { "$ref": "BigQueryDestination", - "description": "Required. The destination big query dataset to export findings to." + "description": "Required. The destination BigQuery dataset to export findings to." }, "exportStartTime": { "description": "Optional. Timestamp at which export was started", @@ -9826,6 +9826,11 @@ "readOnly": true, "type": "string" }, + "cryptoKeyName": { + "description": "Output only. The resource name of the Cloud KMS `CryptoKey` used to protect this configuration's data, if configured during Security Command Center activation.", + "readOnly": true, + "type": "string" + }, "dataset": { "description": "The dataset to write findings' updates to. Its format is \"projects/[project_id]/datasets/[bigquery_dataset_id]\". BigQuery dataset unique ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).", "type": "string" @@ -10897,7 +10902,7 @@ "description": "Fields related to Backup and DR findings." }, "canonicalName": { - "description": "Output only. The canonical name of the finding. The following list shows some examples: + `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}` + `organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}` + `folders/{folder_id}/sources/{source_id}/findings/{finding_id}` + `folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}` + `projects/{project_id}/sources/{source_id}/findings/{finding_id}` + `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}` The prefix is the closest CRM ancestor of the resource associated with the finding.", + "description": "Output only. The canonical name of the finding. The following list shows some examples: + `organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}` + `folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}` + `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}` The prefix is the closest CRM ancestor of the resource associated with the finding.", "readOnly": true, "type": "string" }, @@ -10960,6 +10965,11 @@ "readOnly": true, "type": "string" }, + "cryptoKeyName": { + "description": "Output only. The name of the Cloud KMS key used to encrypt this finding, if any.", + "readOnly": true, + "type": "string" + }, "dataAccessEvents": { "description": "Data access events associated with the finding.", "items": { @@ -11730,6 +11740,10 @@ "description": "A resource associated with the an issue.", "id": "GoogleCloudSecuritycenterV2IssueResource", "properties": { + "application": { + "$ref": "GoogleCloudSecuritycenterV2IssueResourceApplication", + "description": "The AppHub application associated with the resource, if any. Only populated for the primary resource." + }, "awsMetadata": { "$ref": "GoogleCloudSecuritycenterV2IssueResourceAwsMetadata", "description": "The AWS metadata of the resource associated with the issue. Only populated for AWS resources." @@ -11773,6 +11787,17 @@ }, "type": "object" }, + "GoogleCloudSecuritycenterV2IssueResourceApplication": { + "description": "The AppHub application associated with the resource, if any.", + "id": "GoogleCloudSecuritycenterV2IssueResourceApplication", + "properties": { + "name": { + "description": "The resource name of an Application. Format: `projects/{host-project-id}/locations/{location}/applications/{application-id}`", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudSecuritycenterV2IssueResourceAwsMetadata": { "description": "The AWS metadata of a resource associated with an issue.", "id": "GoogleCloudSecuritycenterV2IssueResourceAwsMetadata", @@ -12752,6 +12777,11 @@ "readOnly": true, "type": "string" }, + "cryptoKeyName": { + "description": "Output only. The resource name of the Cloud KMS `CryptoKey` used to encrypt this configuration data, if CMEK was enabled during Security Command Center activation.", + "readOnly": true, + "type": "string" + }, "description": { "description": "A description of the mute config.", "type": "string" diff --git a/discovery/googleapis/securityposture__v1.json b/discovery/googleapis/securityposture__v1.json index f48efd9f9..c0c01ddf6 100644 --- a/discovery/googleapis/securityposture__v1.json +++ b/discovery/googleapis/securityposture__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250624", + "revision": "20250819", "rootUrl": "https://securityposture.googleapis.com/", "servicePath": "", "title": "Security Posture API", @@ -860,7 +860,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1170,7 +1170,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. Required for managed constraints if parameters are defined. Passes parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: { \"allowedLocations\" : [\"us-east1\", \"us-west1\"], \"allowAll\" : true }", + "description": "Optional. Required for managed constraints if parameters are defined. Passes parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: ``` { \"allowedLocations\": [\"us-east1\", \"us-west1\"], \"allowAll\": true } ```", "type": "object" }, "resourceTypes": { @@ -1988,11 +1988,11 @@ "type": "object" }, "ResourceTypes": { - "description": "Set multiple resource types for one policy, for example: resourceTypes: included: - compute.googleapis.com/Instance - compute.googleapis.com/Disk Constraint definition contains an empty resource type in order to support multiple resource types in the policy. Only supports managed constraints. Method type is `GOVERN_TAGS`. Refer go/multi-resource-support-force-tags-gmc to get more details.", + "description": "Set multiple resource types for one policy, for example: ``` resourceTypes: included: - compute.googleapis.com/Instance - compute.googleapis.com/Disk ``` Constraint definition contains an empty resource type in order to support multiple resource types in the policy. Only supports managed constraints. Method type is `GOVERN_TAGS`.", "id": "ResourceTypes", "properties": { "included": { - "description": "Optional. The resource types we currently support. cloud/orgpolicy/customconstraintconfig/prod/resource_types.prototext", + "description": "Optional. The resource types we currently support.", "items": { "type": "string" }, diff --git a/discovery/googleapis/servicecontrol__v1.json b/discovery/googleapis/servicecontrol__v1.json index 6d7e1a2ab..ae7d6723d 100644 --- a/discovery/googleapis/servicecontrol__v1.json +++ b/discovery/googleapis/servicecontrol__v1.json @@ -28,7 +28,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250411", + "revision": "20250820", "rootUrl": "https://servicecontrol.googleapis.com/", "servicePath": "", "title": "Service Control API", @@ -420,6 +420,10 @@ "description": "Structured claims presented with the credential. JWTs include `{key: value}` pairs for standard and private claims. The following is a subset of the standard required and optional claims that would typically be presented for a Google-based JWT: {'iss': 'accounts.google.com', 'sub': '113289723416554971153', 'aud': ['123456789012', 'pubsub.googleapis.com'], 'azp': '123456789012.apps.googleusercontent.com', 'email': 'jsmith@example.com', 'iat': 1353601026, 'exp': 1353604926} SAML assertions are similarly specified, but with an identity provider dependent structure.", "type": "object" }, + "oauth": { + "$ref": "Oauth", + "description": "Attributes of the OAuth token associated with the request." + }, "presenter": { "description": "The authorized presenter of the credential. Reflects the optional Authorized Presenter (`azp`) claim within a JWT or the OAuth client id. For example, a Google Cloud Platform client id looks as follows: \"123456789012.apps.googleusercontent.com\".", "type": "string" @@ -439,6 +443,18 @@ "description": "The authority selector specified by the requestor, if any. It is not guaranteed that the principal was allowed to use this authority.", "type": "string" }, + "loggableShortLivedCredential": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Converted from \"identity_cloudgaia.AuditLoggableShortLivedCredential\" proto. This message will be used by security, detection and response team. For context please refer to go/cg:short-lived-credential-logging. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the `@type` property.", + "type": "object" + }, + "oauthInfo": { + "$ref": "OAuthInfo", + "description": "OAuth authentication information such as the OAuth client ID." + }, "principalEmail": { "description": "The email address of the authenticated user (or service account on behalf of third party principal) making the request. For third party identity callers, the `principal_subject` field is populated instead of this field. For privacy reasons, the principal email address is sometimes redacted. For more information, see [Caller identities in audit logs](https://cloud.google.com/logging/docs/audit#user-id).", "type": "string" @@ -560,7 +576,7 @@ "INJECTED_ERROR" ], "enumDescriptions": [ - "This is never used in `CheckResponse`.", + "This is the default value if error code is not explicitly set. It should not be used directly.", "The consumer's project id, network container, or resource container was not found. Same as google.rpc.Code.NOT_FOUND.", "The consumer doesn't have access to the specified resource. Same as google.rpc.Code.PERMISSION_DENIED.", "Quota check failed. Same as google.rpc.Code.RESOURCE_EXHAUSTED.", @@ -627,6 +643,10 @@ "$ref": "ConsumerInfo", "description": "Consumer info of this check." }, + "ignoreApiKeyUidAsCredentialId": { + "description": "Whether or not the api key should be ignored in the credential_id during reporting.", + "type": "boolean" + }, "unusedArguments": { "description": "A list of fields and label keys that are ignored by the server. The client doesn't need to send them for following requests to improve performance and allow better aggregation.", "items": { @@ -1187,6 +1207,28 @@ }, "type": "object" }, + "OAuthInfo": { + "description": "OAuth related information about the request.", + "id": "OAuthInfo", + "properties": { + "oauthClientId": { + "description": "The OAuth client ID of the 1P or 3P application acting on behalf of the user.", + "type": "string" + } + }, + "type": "object" + }, + "Oauth": { + "description": "This message defines attributes associated with OAuth credentials.", + "id": "Oauth", + "properties": { + "clientId": { + "description": "The optional OAuth client ID. This is the unique public identifier issued by an authorization server to a registered client application. Empty string is equivalent to no oauth client id. WARNING: This is for MCP tools/call and tools/list authorization and not for general use.", + "type": "string" + } + }, + "type": "object" + }, "Operation": { "description": "Represents information regarding an operation.", "id": "Operation", diff --git a/discovery/googleapis/servicecontrol__v2.json b/discovery/googleapis/servicecontrol__v2.json index 0bf2cf56f..6e3a20151 100644 --- a/discovery/googleapis/servicecontrol__v2.json +++ b/discovery/googleapis/servicecontrol__v2.json @@ -28,7 +28,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250425", + "revision": "20250820", "rootUrl": "https://servicecontrol.googleapis.com/", "servicePath": "", "title": "Service Control API", @@ -143,7 +143,7 @@ ] }, "report": { - "description": "This method provides telemetry reporting for services that are integrated with [Service Infrastructure](https://cloud.google.com/service-infrastructure). It reports a list of operations that have occurred on a service. It must be called after the operations have been executed. For more information, see [Telemetry Reporting](https://cloud.google.com/service-infrastructure/docs/telemetry-reporting). NOTE: The telemetry reporting has a hard limit of 1000 operations and 1MB per Report call. It is recommended to have no more than 100 operations per call. This method requires the `servicemanagement.services.report` permission on the specified service. For more information, see [Service Control API Access Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).", + "description": "This method provides telemetry reporting for services that are integrated with [Service Infrastructure](https://cloud.google.com/service-infrastructure). It reports a list of operations that have occurred on a service. It must be called after the operations have been executed. For more information, see [Telemetry Reporting](https://cloud.google.com/service-infrastructure/docs/telemetry-reporting). NOTE: The telemetry reporting has a hard limit of 100 operations and 1MB per Report call. This method requires the `servicemanagement.services.report` permission on the specified service. For more information, see [Service Control API Access Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).", "flatPath": "v2/services/{serviceName}:report", "httpMethod": "POST", "id": "servicecontrol.services.report", @@ -361,6 +361,10 @@ "description": "Structured claims presented with the credential. JWTs include `{key: value}` pairs for standard and private claims. The following is a subset of the standard required and optional claims that would typically be presented for a Google-based JWT: {'iss': 'accounts.google.com', 'sub': '113289723416554971153', 'aud': ['123456789012', 'pubsub.googleapis.com'], 'azp': '123456789012.apps.googleusercontent.com', 'email': 'jsmith@example.com', 'iat': 1353601026, 'exp': 1353604926} SAML assertions are similarly specified, but with an identity provider dependent structure.", "type": "object" }, + "oauth": { + "$ref": "Oauth", + "description": "Attributes of the OAuth token associated with the request." + }, "presenter": { "description": "The authorized presenter of the credential. Reflects the optional Authorized Presenter (`azp`) claim within a JWT or the OAuth client id. For example, a Google Cloud Platform client id looks as follows: \"123456789012.apps.googleusercontent.com\".", "type": "string" @@ -380,6 +384,18 @@ "description": "The authority selector specified by the requestor, if any. It is not guaranteed that the principal was allowed to use this authority.", "type": "string" }, + "loggableShortLivedCredential": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Converted from \"identity_cloudgaia.AuditLoggableShortLivedCredential\" proto. This message will be used by security, detection and response team. For context please refer to go/cg:short-lived-credential-logging. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the `@type` property.", + "type": "object" + }, + "oauthInfo": { + "$ref": "OAuthInfo", + "description": "OAuth authentication information such as the OAuth client ID." + }, "principalEmail": { "description": "The email address of the authenticated user (or service account on behalf of third party principal) making the request. For third party identity callers, the `principal_subject` field is populated instead of this field. For privacy reasons, the principal email address is sometimes redacted. For more information, see [Caller identities in audit logs](https://cloud.google.com/logging/docs/audit#user-id).", "type": "string" @@ -526,6 +542,28 @@ }, "type": "object" }, + "OAuthInfo": { + "description": "OAuth related information about the request.", + "id": "OAuthInfo", + "properties": { + "oauthClientId": { + "description": "The OAuth client ID of the 1P or 3P application acting on behalf of the user.", + "type": "string" + } + }, + "type": "object" + }, + "Oauth": { + "description": "This message defines attributes associated with OAuth credentials.", + "id": "Oauth", + "properties": { + "clientId": { + "description": "The optional OAuth client ID. This is the unique public identifier issued by an authorization server to a registered client application. Empty string is equivalent to no oauth client id. WARNING: This is for MCP tools/call and tools/list authorization and not for general use.", + "type": "string" + } + }, + "type": "object" + }, "OrgPolicyViolationInfo": { "description": "Represents OrgPolicy Violation information.", "id": "OrgPolicyViolationInfo", diff --git a/discovery/googleapis/servicedirectory__v1.json b/discovery/googleapis/servicedirectory__v1.json index c0df3e105..1cdb68ef0 100644 --- a/discovery/googleapis/servicedirectory__v1.json +++ b/discovery/googleapis/servicedirectory__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250321", + "revision": "20250906", "rootUrl": "https://servicedirectory.googleapis.com/", "servicePath": "", "title": "Service Directory API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/solar__v1.json b/discovery/googleapis/solar__v1.json index 2d9356a9d..c863aa856 100644 --- a/discovery/googleapis/solar__v1.json +++ b/discovery/googleapis/solar__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250427", + "revision": "20250804", "rootUrl": "https://solar.googleapis.com/", "servicePath": "", "title": "Solar API", @@ -158,7 +158,7 @@ "Solar data is derived from aerial imagery captured at low-altitude and processed at 0.1 m/pixel.", "Solar data is derived from enhanced aerial imagery captured at high-altitude and processed at 0.25 m/pixel.", "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel.", - "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel. **Note:** This enum is only available if `experiments=EXPANDED_COVERAGE` is set in the request. For more information, see [Expanded Coverage](https://developers.google.com/maps/documentation/solar/expanded-coverage)." + "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel." ], "location": "query", "type": "string" @@ -240,7 +240,7 @@ "Solar data is derived from aerial imagery captured at low-altitude and processed at 0.1 m/pixel.", "Solar data is derived from enhanced aerial imagery captured at high-altitude and processed at 0.25 m/pixel.", "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel.", - "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel. **Note:** This enum is only available if `experiments=EXPANDED_COVERAGE` is set in the request. For more information, see [Expanded Coverage](https://developers.google.com/maps/documentation/solar/expanded-coverage)." + "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel." ], "location": "query", "type": "string" @@ -342,7 +342,7 @@ "Solar data is derived from aerial imagery captured at low-altitude and processed at 0.1 m/pixel.", "Solar data is derived from enhanced aerial imagery captured at high-altitude and processed at 0.25 m/pixel.", "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel.", - "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel. **Note:** This enum is only available if `experiments=EXPANDED_COVERAGE` is set in the request. For more information, see [Expanded Coverage](https://developers.google.com/maps/documentation/solar/expanded-coverage)." + "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel." ], "type": "string" }, @@ -438,7 +438,7 @@ "Solar data is derived from aerial imagery captured at low-altitude and processed at 0.1 m/pixel.", "Solar data is derived from enhanced aerial imagery captured at high-altitude and processed at 0.25 m/pixel.", "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel.", - "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel. **Note:** This enum is only available if `experiments=EXPANDED_COVERAGE` is set in the request. For more information, see [Expanded Coverage](https://developers.google.com/maps/documentation/solar/expanded-coverage)." + "Solar data is derived from enhanced satellite imagery processed at 0.25 m/pixel." ], "type": "string" }, diff --git a/discovery/googleapis/storage__v1.json b/discovery/googleapis/storage__v1.json index 967e33dc8..448d7b0ba 100644 --- a/discovery/googleapis/storage__v1.json +++ b/discovery/googleapis/storage__v1.json @@ -253,7 +253,7 @@ "location": "northamerica-south1" } ], - "etag": "\"31383438373536343936353833383831333836\"", + "etag": "\"3136333632333439343533383832363638313632\"", "icons": { "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png", "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png" @@ -267,7 +267,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250718", + "revision": "20250814", "rootUrl": "https://storage.googleapis.com/", "servicePath": "storage/v1/", "title": "Cloud Storage JSON API", @@ -5403,6 +5403,16 @@ "description": "If true, copies the source object's ACL; otherwise, uses the bucket's default object ACL. The default is false.", "type": "boolean" }, + "createdAfterTime": { + "description": "Restores only the objects that were created after this time.", + "format": "date-time", + "type": "string" + }, + "createdBeforeTime": { + "description": "Restores only the objects that were created before this time.", + "format": "date-time", + "type": "string" + }, "matchGlobs": { "description": "Restores only the objects matching any of the specified glob(s). If this parameter is not specified, all objects will be restored within the specified time range.", "items": { diff --git a/discovery/googleapis/storagebatchoperations__v1.json b/discovery/googleapis/storagebatchoperations__v1.json index dc7133f5f..3d6319d48 100644 --- a/discovery/googleapis/storagebatchoperations__v1.json +++ b/discovery/googleapis/storagebatchoperations__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250409", + "revision": "20250910", "rootUrl": "https://storagebatchoperations.googleapis.com/", "servicePath": "", "title": "Storage Batch Operations API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/storagetransfer__v1.json b/discovery/googleapis/storagetransfer__v1.json index 473d75bbe..26a3addb2 100644 --- a/discovery/googleapis/storagetransfer__v1.json +++ b/discovery/googleapis/storagetransfer__v1.json @@ -24,7 +24,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250523", + "revision": "20250801", "rootUrl": "https://storagetransfer.googleapis.com/", "servicePath": "", "title": "Storage Transfer API", @@ -843,14 +843,15 @@ "id": "ErrorLogEntry", "properties": { "errorDetails": { - "description": "A list of messages that carry the error details.", + "description": "Optional. A list of messages that carry the error details.", "items": { "type": "string" }, "type": "array" }, "url": { - "description": "Required. A URL that refers to the target (a data source, a data sink, or an object) with which the error is associated.", + "description": "Output only. A URL that refers to the target (a data source, a data sink, or an object) with which the error is associated.", + "readOnly": true, "type": "string" } }, @@ -1904,23 +1905,23 @@ "properties": { "awsS3CompatibleDataSource": { "$ref": "AwsS3CompatibleData", - "description": "An AWS S3 compatible data source." + "description": "Optional. An AWS S3 compatible data source." }, "awsS3DataSource": { "$ref": "AwsS3Data", - "description": "An AWS S3 data source." + "description": "Optional. An AWS S3 data source." }, "azureBlobStorageDataSource": { "$ref": "AzureBlobStorageData", - "description": "An Azure Blob Storage data source." + "description": "Optional. An Azure Blob Storage data source." }, "gcsDataSink": { "$ref": "GcsData", - "description": "A Cloud Storage data sink." + "description": "Optional. A Cloud Storage data sink." }, "gcsDataSource": { "$ref": "GcsData", - "description": "A Cloud Storage data source." + "description": "Optional. A Cloud Storage data source." }, "gcsIntermediateDataLocation": { "$ref": "GcsData", @@ -1928,11 +1929,11 @@ }, "hdfsDataSource": { "$ref": "HdfsData", - "description": "An HDFS cluster data source." + "description": "Optional. An HDFS cluster data source." }, "httpDataSource": { "$ref": "HttpData", - "description": "An HTTP URL data source." + "description": "Optional. An HTTP URL data source." }, "objectConditions": { "$ref": "ObjectConditions", @@ -1940,11 +1941,11 @@ }, "posixDataSink": { "$ref": "PosixFilesystem", - "description": "A POSIX Filesystem data sink." + "description": "Optional. A POSIX Filesystem data sink." }, "posixDataSource": { "$ref": "PosixFilesystem", - "description": "A POSIX Filesystem data source." + "description": "Optional. A POSIX Filesystem data source." }, "sinkAgentPoolName": { "description": "Specifies the agent pool name associated with the posix data sink. When unspecified, the default name is used.", diff --git a/discovery/googleapis/sts__v1.json b/discovery/googleapis/sts__v1.json index 19ec1ed81..a4437e4ff 100644 --- a/discovery/googleapis/sts__v1.json +++ b/discovery/googleapis/sts__v1.json @@ -238,7 +238,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250521", + "revision": "20250827", "rootUrl": "https://sts.googleapis.com/", "servicePath": "", "title": "Security Token Service API", @@ -414,7 +414,7 @@ "type": "string" }, "options": { - "description": "A set of features that Security Token Service supports, in addition to the standard OAuth 2.0 token exchange, formatted as a serialized JSON object of Options. The size of the parameter value must not exceed 4096 characters.", + "description": "A set of features that Security Token Service supports, in addition to the standard OAuth 2.0 token exchange, formatted as a serialized JSON object of Options. The size of the parameter value must not exceed 4 * 1024 * 1024 characters (4 MB).", "type": "string" }, "requestedTokenType": { @@ -426,11 +426,11 @@ "type": "string" }, "subjectToken": { - "description": "Required. The input token. This token is either an external credential issued by a workload identity pool provider, or a short-lived access token issued by Google. If the token is an OIDC JWT, it must use the JWT format defined in [RFC 7523](https://tools.ietf.org/html/rfc7523), and the `subject_token_type` must be either `urn:ietf:params:oauth:token-type:jwt` or `urn:ietf:params:oauth:token-type:id_token`. The following headers are required: - `kid`: The identifier of the signing key securing the JWT. - `alg`: The cryptographic algorithm securing the JWT. Must be `RS256` or `ES256`. The following payload fields are required. For more information, see [RFC 7523, Section 3](https://tools.ietf.org/html/rfc7523#section-3): - `iss`: The issuer of the token. The issuer must provide a discovery document at the URL `/.well-known/openid-configuration`, where `` is the value of this field. The document must be formatted according to section 4.2 of the [OIDC 1.0 Discovery specification](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationResponse). - `iat`: The issue time, in seconds, since the Unix epoch. Must be in the past. - `exp`: The expiration time, in seconds, since the Unix epoch. Must be less than 48 hours after `iat`. Shorter expiration times are more secure. If possible, we recommend setting an expiration time less than 6 hours. - `sub`: The identity asserted in the JWT. - `aud`: For workload identity pools, this must be a value specified in the allowed audiences for the workload identity pool provider, or one of the audiences allowed by default if no audiences were specified. See https://cloud.google.com/iam/docs/reference/rest/v1/projects.locations.workloadIdentityPools.providers#oidc. For workforce pools, this must match the client ID specified in the provider configuration. See https://cloud.google.com/iam/docs/reference/rest/v1/locations.workforcePools.providers#oidc. Example header: ``` { \"alg\": \"RS256\", \"kid\": \"us-east-11\" } ``` Example payload: ``` { \"iss\": \"https://accounts.google.com\", \"iat\": 1517963104, \"exp\": 1517966704, \"aud\": \"//iam.googleapis.com/projects/1234567890123/locations/global/workloadIdentityPools/my-pool/providers/my-provider\", \"sub\": \"113475438248934895348\", \"my_claims\": { \"additional_claim\": \"value\" } } ``` If `subject_token` is for AWS, it must be a serialized `GetCallerIdentity` token. This token contains the same information as a request to the AWS [`GetCallerIdentity()`](https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity) method, as well as the AWS [signature](https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) for the request information. Use Signature Version 4. Format the request as URL-encoded JSON, and set the `subject_token_type` parameter to `urn:ietf:params:aws:token-type:aws4_request`. The following parameters are required: - `url`: The URL of the AWS STS endpoint for `GetCallerIdentity()`, such as `https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15`. Regional endpoints are also supported. - `method`: The HTTP request method: `POST`. - `headers`: The HTTP request headers, which must include: - `Authorization`: The request signature. - `x-amz-date`: The time you will send the request, formatted as an [ISO8601 Basic](https://docs.aws.amazon.com/general/latest/gr/sigv4_elements.html#sigv4_elements_date) string. This value is typically set to the current time and is used to help prevent replay attacks. - `host`: The hostname of the `url` field; for example, `sts.amazonaws.com`. - `x-goog-cloud-target-resource`: The full, canonical resource name of the workload identity pool provider, with or without an `https:` prefix. To help ensure data integrity, we recommend including this header in the `SignedHeaders` field of the signed request. For example: //iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ https://iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ If you are using temporary security credentials provided by AWS, you must also include the header `x-amz-security-token`, with the value set to the session token. The following example shows a `GetCallerIdentity` token: ``` { \"headers\": [ {\"key\": \"x-amz-date\", \"value\": \"20200815T015049Z\"}, {\"key\": \"Authorization\", \"value\": \"AWS4-HMAC-SHA256+Credential=$credential,+SignedHeaders=host;x-amz-date;x-goog-cloud-target-resource,+Signature=$signature\"}, {\"key\": \"x-goog-cloud-target-resource\", \"value\": \"//iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/\"}, {\"key\": \"host\", \"value\": \"sts.amazonaws.com\"} . ], \"method\": \"POST\", \"url\": \"https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15\" } ``` If the token is a SAML 2.0 assertion, it must use the format defined in [the SAML 2.0 spec](https://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0-cd-02.pdf), and the `subject_token_type` must be `urn:ietf:params:oauth:token-type:saml2`. See [Verification of external credentials](https://cloud.google.com/iam/docs/using-workload-identity-federation#verification_of_external_credentials) for details on how SAML 2.0 assertions are validated during token exchanges. You can also use a Google-issued OAuth 2.0 access token with this field to obtain an access token with new security attributes applied, such as a Credential Access Boundary. In this case, set `subject_token_type` to `urn:ietf:params:oauth:token-type:access_token`. If an access token already contains security attributes, you cannot apply additional security attributes.", + "description": "Required. The input token. This token is either an external credential issued by a workload identity pool provider, or a short-lived access token issued by Google. If the token is an OIDC JWT, it must use the JWT format defined in [RFC 7523](https://tools.ietf.org/html/rfc7523), and the `subject_token_type` must be either `urn:ietf:params:oauth:token-type:jwt` or `urn:ietf:params:oauth:token-type:id_token`. The following headers are required: - `kid`: The identifier of the signing key securing the JWT. - `alg`: The cryptographic algorithm securing the JWT. Must be `RS256` or `ES256`. The following payload fields are required. For more information, see [RFC 7523, Section 3](https://tools.ietf.org/html/rfc7523#section-3): - `iss`: The issuer of the token. The issuer must provide a discovery document at the URL `/.well-known/openid-configuration`, where `` is the value of this field. The document must be formatted according to section 4.2 of the [OIDC 1.0 Discovery specification](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationResponse). - `iat`: The issue time, in seconds, since the Unix epoch. Must be in the past. - `exp`: The expiration time, in seconds, since the Unix epoch. Must be less than 48 hours after `iat`. Shorter expiration times are more secure. If possible, we recommend setting an expiration time less than 6 hours. - `sub`: The identity asserted in the JWT. - `aud`: For workload identity pools, this must be a value specified in the allowed audiences for the workload identity pool provider, or one of the audiences allowed by default if no audiences were specified. See https://cloud.google.com/iam/docs/reference/rest/v1/projects.locations.workloadIdentityPools.providers#oidc. For workforce pools, this must match the client ID specified in the provider configuration. See https://cloud.google.com/iam/docs/reference/rest/v1/locations.workforcePools.providers#oidc. Example header: ``` { \"alg\": \"RS256\", \"kid\": \"us-east-11\" } ``` Example payload: ``` { \"iss\": \"https://accounts.google.com\", \"iat\": 1517963104, \"exp\": 1517966704, \"aud\": \"//iam.googleapis.com/projects/1234567890123/locations/global/workloadIdentityPools/my-pool/providers/my-provider\", \"sub\": \"113475438248934895348\", \"my_claims\": { \"additional_claim\": \"value\" } } ``` If `subject_token` is for AWS, it must be a serialized `GetCallerIdentity` token. This token contains the same information as a request to the AWS [`GetCallerIdentity()`](https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity) method, as well as the AWS [signature](https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) for the request information. Use Signature Version 4. Format the request as URL-encoded JSON, and set the `subject_token_type` parameter to `urn:ietf:params:aws:token-type:aws4_request`. The following parameters are required: - `url`: The URL of the AWS STS endpoint for `GetCallerIdentity()`, such as `https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15`. Regional endpoints are also supported. - `method`: The HTTP request method: `POST`. - `headers`: The HTTP request headers, which must include: - `Authorization`: The request signature. - `x-amz-date`: The time you will send the request, formatted as an [ISO8601 Basic](https://docs.aws.amazon.com/general/latest/gr/sigv4_elements.html#sigv4_elements_date) string. This value is typically set to the current time and is used to help prevent replay attacks. - `host`: The hostname of the `url` field; for example, `sts.amazonaws.com`. - `x-goog-cloud-target-resource`: The full, canonical resource name of the workload identity pool provider, with or without an `https:` prefix. To help ensure data integrity, we recommend including this header in the `SignedHeaders` field of the signed request. For example: //iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ https://iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ If you are using temporary security credentials provided by AWS, you must also include the header `x-amz-security-token`, with the value set to the session token. The following example shows a `GetCallerIdentity` token: ``` { \"headers\": [ {\"key\": \"x-amz-date\", \"value\": \"20200815T015049Z\"}, {\"key\": \"Authorization\", \"value\": \"AWS4-HMAC-SHA256+Credential=$credential,+SignedHeaders=host;x-amz-date;x-goog-cloud-target-resource,+Signature=$signature\"}, {\"key\": \"x-goog-cloud-target-resource\", \"value\": \"//iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/\"}, {\"key\": \"host\", \"value\": \"sts.amazonaws.com\"} . ], \"method\": \"POST\", \"url\": \"https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15\" } ``` If the token is a SAML 2.0 assertion, it must use the format defined in [the SAML 2.0 spec](https://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0-cd-02.pdf), and the `subject_token_type` must be `urn:ietf:params:oauth:token-type:saml2`. See [Verification of external credentials](https://cloud.google.com/iam/docs/using-workload-identity-federation#verification_of_external_credentials) for details on how SAML 2.0 assertions are validated during token exchanges. You can also use a Google-issued OAuth 2.0 access token with this field to obtain an access token with new security attributes applied, such as a Credential Access Boundary. In this case, set `subject_token_type` to `urn:ietf:params:oauth:token-type:access_token`. If an access token already contains security attributes, you cannot apply additional security attributes. If the request is for X.509 certificate-based authentication, the `subject_token` must be a JSON-formatted list of X.509 certificates in DER format, as defined in [RFC 7515](https://www.rfc-editor.org/rfc/rfc7515#section-4.1.6). `subject_token_type` must be `urn:ietf:params:oauth:token-type:mtls`. The following example shows a JSON-formatted list of X.509 certificate in DER format: ``` [\\\"MIIEYDCCA0i...\\\", \\\"MCIFFGAGTT0...\\\"] ```", "type": "string" }, "subjectTokenType": { - "description": "Required. An identifier that indicates the type of the security token in the `subject_token` parameter. Supported values are `urn:ietf:params:oauth:token-type:jwt`, `urn:ietf:params:oauth:token-type:id_token`, `urn:ietf:params:aws:token-type:aws4_request`, `urn:ietf:params:oauth:token-type:access_token`, and `urn:ietf:params:oauth:token-type:saml2`.", + "description": "Required. An identifier that indicates the type of the security token in the `subject_token` parameter. Supported values are `urn:ietf:params:oauth:token-type:jwt`, `urn:ietf:params:oauth:token-type:id_token`, `urn:ietf:params:aws:token-type:aws4_request`, `urn:ietf:params:oauth:token-type:access_token`, `urn:ietf:params:oauth:token-type:mtls`, and `urn:ietf:params:oauth:token-type:saml2`.", "type": "string" } }, diff --git a/discovery/googleapis/tagmanager__v1.json b/discovery/googleapis/tagmanager__v1.json index 5af527231..ed82b28f9 100644 --- a/discovery/googleapis/tagmanager__v1.json +++ b/discovery/googleapis/tagmanager__v1.json @@ -43,7 +43,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250409", + "revision": "20250820", "rootUrl": "https://tagmanager.googleapis.com/", "servicePath": "", "title": "Tag Manager API", @@ -2161,7 +2161,10 @@ "elementVisibilityRatio", "elementVisibilityTime", "elementVisibilityFirstTime", - "elementVisibilityRecentTime" + "elementVisibilityRecentTime", + "analyticsClientId", + "analyticsSessionId", + "analyticsSessionNumber" ], "enumDescriptions": [ "", @@ -2268,6 +2271,9 @@ "", "", "", + "", + "", + "", "" ], "type": "string" diff --git a/discovery/googleapis/tagmanager__v2.json b/discovery/googleapis/tagmanager__v2.json index 401d974a0..bce77b865 100644 --- a/discovery/googleapis/tagmanager__v2.json +++ b/discovery/googleapis/tagmanager__v2.json @@ -43,7 +43,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250409", + "revision": "20250820", "rootUrl": "https://tagmanager.googleapis.com/", "servicePath": "", "title": "Tag Manager API", @@ -1459,7 +1459,10 @@ "serverPageLocationUrl", "serverPageLocationPath", "serverPageLocationHostname", - "visitorRegion" + "visitorRegion", + "analyticsClientId", + "analyticsSessionId", + "analyticsSessionNumber" ], "enumDescriptions": [ "", @@ -1575,6 +1578,9 @@ "", "", "", + "", + "", + "", "" ], "location": "query", @@ -1722,7 +1728,10 @@ "serverPageLocationUrl", "serverPageLocationPath", "serverPageLocationHostname", - "visitorRegion" + "visitorRegion", + "analyticsClientId", + "analyticsSessionId", + "analyticsSessionNumber" ], "enumDescriptions": [ "", @@ -1838,6 +1847,9 @@ "", "", "", + "", + "", + "", "" ], "location": "query", @@ -2013,7 +2025,10 @@ "serverPageLocationUrl", "serverPageLocationPath", "serverPageLocationHostname", - "visitorRegion" + "visitorRegion", + "analyticsClientId", + "analyticsSessionId", + "analyticsSessionNumber" ], "enumDescriptions": [ "", @@ -2129,6 +2144,9 @@ "", "", "", + "", + "", + "", "" ], "location": "query", @@ -4153,7 +4171,10 @@ "serverPageLocationUrl", "serverPageLocationPath", "serverPageLocationHostname", - "visitorRegion" + "visitorRegion", + "analyticsClientId", + "analyticsSessionId", + "analyticsSessionNumber" ], "enumDescriptions": [ "", @@ -4269,6 +4290,9 @@ "", "", "", + "", + "", + "", "" ], "type": "string" diff --git a/discovery/googleapis/testing__v1.json b/discovery/googleapis/testing__v1.json index 78f4ee440..477fa0a93 100644 --- a/discovery/googleapis/testing__v1.json +++ b/discovery/googleapis/testing__v1.json @@ -27,7 +27,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250725", + "revision": "20250819", "rootUrl": "https://testing.googleapis.com/", "servicePath": "", "title": "Cloud Testing API", @@ -2049,7 +2049,7 @@ "description": "Required. The source file." }, "devicePath": { - "description": "Required. Where to put the content on the device. Must be an absolute, allowlisted path. If the file exists, it will be replaced. The following device-side directories and any of their subdirectories are allowlisted: ${EXTERNAL_STORAGE}, /sdcard, or /storage ${ANDROID_DATA}/local/tmp, or /data/local/tmp Specifying a path outside of these directory trees is invalid. The paths /sdcard and /data will be made available and treated as implicit path substitutions. E.g. if /sdcard on a particular device does not map to external storage, the system will replace it with the external storage path prefix for that device and copy the file there. It is strongly advised to use the Environment API in app and test code to access files on the device in a portable way.", + "description": "Required. Where to put the content on the device. Must be an absolute, allowlisted path. If the file exists, it will be replaced. The following device-side directories and any of their subdirectories are allowlisted: ${EXTERNAL_STORAGE}, /sdcard ${ANDROID_DATA}/local/tmp, or /data/local/tmp Specifying a path outside of these directory trees is invalid. The paths /sdcard and /data will be made available and treated as implicit path substitutions. E.g. if /sdcard on a particular device does not map to external storage, the system will replace it with the external storage path prefix for that device and copy the file there. It is strongly advised to use the Environment API in app and test code to access files on the device in a portable way.", "type": "string" } }, diff --git a/discovery/googleapis/texttospeech__v1.json b/discovery/googleapis/texttospeech__v1.json index def478aa9..c4ec73f7f 100644 --- a/discovery/googleapis/texttospeech__v1.json +++ b/discovery/googleapis/texttospeech__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250716", + "revision": "20250903", "rootUrl": "https://texttospeech.googleapis.com/", "servicePath": "", "title": "Cloud Text-to-Speech API", @@ -624,6 +624,10 @@ "$ref": "MultiSpeakerMarkup", "description": "The multi-speaker input to be synthesized. Only applicable for multi-speaker synthesis." }, + "prompt": { + "description": "This is system instruction supported only for controllable voice models. If used, we will pass text to Flash TTS as is. Can only used with Flash TTS. What AI Studio calls Style Instructions.", + "type": "string" + }, "ssml": { "description": "The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return google.rpc.Code.INVALID_ARGUMENT. For more information, see [SSML](https://cloud.google.com/text-to-speech/docs/ssml).", "type": "string" @@ -793,6 +797,10 @@ "description": "Required. The language (and potentially also the region) of the voice expressed as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g. \"en-US\". This should not include a script tag (e.g. use \"cmn-cn\" rather than \"cmn-Hant-cn\"), because the script will be inferred from the input provided in the SynthesisInput. The TTS service will use this parameter to help choose an appropriate voice. Note that the TTS service may choose a voice with a slightly different language code than the one selected; it may substitute a different region (e.g. using en-US rather than en-CA if there isn't a Canadian voice available), or even a different language, e.g. using \"nb\" (Norwegian Bokmal) instead of \"no\" (Norwegian)\".", "type": "string" }, + "modelName": { + "description": "Optional. The name of the model. If set, the service will choose the model matching the specified configuration.", + "type": "string" + }, "name": { "description": "The name of the voice. If both the name and the gender are not set, the service will choose a voice based on the other parameters such as language_code.", "type": "string" diff --git a/discovery/googleapis/tpu__v1.json b/discovery/googleapis/tpu__v1.json index 2cf7891f9..a7f7ef285 100644 --- a/discovery/googleapis/tpu__v1.json +++ b/discovery/googleapis/tpu__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250320", + "revision": "20250903", "rootUrl": "https://tpu.googleapis.com/", "servicePath": "", "title": "Cloud TPU API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/tpu__v2.json b/discovery/googleapis/tpu__v2.json index 0ac5bdb9b..6d7066889 100644 --- a/discovery/googleapis/tpu__v2.json +++ b/discovery/googleapis/tpu__v2.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250410", + "revision": "20250903", "rootUrl": "https://tpu.googleapis.com/", "servicePath": "", "title": "Cloud TPU API", @@ -176,7 +176,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1002,12 +1002,34 @@ }, "type": "object" }, + "BootDiskConfig": { + "description": "Sets the boot disk configuration for the TPU node.", + "id": "BootDiskConfig", + "properties": { + "customerEncryptionKey": { + "$ref": "CustomerEncryptionKey", + "description": "Optional. Customer encryption key for boot disk." + } + }, + "type": "object" + }, "CreatingData": { "description": "Further data for the creating state.", "id": "CreatingData", "properties": {}, "type": "object" }, + "CustomerEncryptionKey": { + "description": "Defines the customer encryption key for disk encryption.", + "id": "CustomerEncryptionKey", + "properties": { + "kmsKeyName": { + "description": "The name of the encryption key that is stored in Google Cloud KMS. For example: \"kmsKeyName\": \"projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY The fully-qualifed key name may be returned for resource GET requests. For example: \"kmsKeyName\": \"projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY/cryptoKeyVersions/1 ", + "type": "string" + } + }, + "type": "object" + }, "DeletingData": { "description": "Further data for the deleting state.", "id": "DeletingData", @@ -1423,6 +1445,10 @@ "readOnly": true, "type": "string" }, + "bootDiskConfig": { + "$ref": "BootDiskConfig", + "description": "Optional. Boot disk configuration." + }, "cidrBlock": { "description": "The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block.", "type": "string" diff --git a/discovery/googleapis/trafficdirector__v2.json b/discovery/googleapis/trafficdirector__v2.json index b1bdb25ff..7861f06f7 100644 --- a/discovery/googleapis/trafficdirector__v2.json +++ b/discovery/googleapis/trafficdirector__v2.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20230711", + "revision": "20250908", "rootUrl": "https://trafficdirector.googleapis.com/", "servicePath": "", "title": "Traffic Director API", @@ -920,7 +920,7 @@ "type": "object" }, "ValueMatcher": { - "description": "Specifies the way to match a ProtobufWkt::Value. Primitive values and ListValue are supported. StructValue is not supported and is always not matched. [#next-free-field: 7]", + "description": "Specifies the way to match a Protobuf::Value. Primitive values and ListValue are supported. StructValue is not supported and is always not matched. [#next-free-field: 7]", "id": "ValueMatcher", "properties": { "boolMatch": { diff --git a/discovery/googleapis/trafficdirector__v3.json b/discovery/googleapis/trafficdirector__v3.json index 9aca644e7..5f6bfbbfe 100644 --- a/discovery/googleapis/trafficdirector__v3.json +++ b/discovery/googleapis/trafficdirector__v3.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250618", + "revision": "20250908", "rootUrl": "https://trafficdirector.googleapis.com/", "servicePath": "", "title": "Traffic Director API", @@ -1120,7 +1120,7 @@ "type": "string" }, "networkNamespaceFilepath": { - "description": "Filepath that specifies the Linux network namespace this socket will be created in (see ``man 7 network_namespaces``). If this field is set, Envoy will create the socket in the specified network namespace. .. note:: Setting this parameter requires Envoy to run with the ``CAP_NET_ADMIN`` capability. .. note:: Currently only used for Listener sockets. .. attention:: Network namespaces are only configurable on Linux. Otherwise, this field has no effect.", + "description": "Filepath that specifies the Linux network namespace this socket will be created in (see ``man 7 network_namespaces``). If this field is set, Envoy will create the socket in the specified network namespace. .. note:: Setting this parameter requires Envoy to run with the ``CAP_NET_ADMIN`` capability. .. attention:: Network namespaces are only configurable on Linux. Otherwise, this field has no effect.", "type": "string" }, "portValue": { @@ -1323,7 +1323,7 @@ "type": "object" }, "ValueMatcher": { - "description": "Specifies the way to match a ProtobufWkt::Value. Primitive values and ListValue are supported. StructValue is not supported and is always not matched. [#next-free-field: 8]", + "description": "Specifies the way to match a Protobuf::Value. Primitive values and ListValue are supported. StructValue is not supported and is always not matched. [#next-free-field: 8]", "id": "ValueMatcher", "properties": { "boolMatch": { diff --git a/discovery/googleapis/versionhistory__v1.json b/discovery/googleapis/versionhistory__v1.json index 1cd9c2ce5..6cda6aad1 100644 --- a/discovery/googleapis/versionhistory__v1.json +++ b/discovery/googleapis/versionhistory__v1.json @@ -16,7 +16,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250601", + "revision": "20250810", "rootUrl": "https://versionhistory.googleapis.com/", "servicePath": "", "title": "versionhistory.googleapis.com API", @@ -477,6 +477,13 @@ "description": "Whether or not the release was available for version pinning.", "type": "boolean" }, + "rolloutData": { + "description": "Rollout-related metadata. Some releases are part of one or more A/B rollouts. This field contains the names and data describing this release's role in any rollouts.", + "items": { + "$ref": "RolloutData" + }, + "type": "array" + }, "serving": { "$ref": "Interval", "description": "Timestamp interval of when the release was live. If end_time is unspecified, the release is currently live." @@ -488,6 +495,24 @@ }, "type": "object" }, + "RolloutData": { + "description": "Rollout-related metadata for a release.", + "id": "RolloutData", + "properties": { + "rolloutName": { + "description": "The name of the rollout.", + "type": "string" + }, + "tag": { + "description": "Tags associated with a release's role in a rollout. Most rollouts will have at least one release with a \"rollout\" tag and another release with a \"control\" tag. Some rollouts may have additional named arms.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Version": { "description": "Each Version is owned by a Channel. A Version only displays the Version number (e.g. 84.0.4147.38). A Version owns a collection of releases.", "id": "Version", diff --git a/discovery/googleapis/vision__v1.json b/discovery/googleapis/vision__v1.json index 752cb2618..c36087b6e 100644 --- a/discovery/googleapis/vision__v1.json +++ b/discovery/googleapis/vision__v1.json @@ -28,7 +28,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20241115", + "revision": "20250804", "rootUrl": "https://vision.googleapis.com/", "servicePath": "", "title": "Cloud Vision API", @@ -2176,7 +2176,7 @@ "type": "integer" }, "model": { - "description": "Model to use for the feature. Supported values: \"builtin/stable\" (the default if unset) and \"builtin/latest\". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also support \"builtin/weekly\" for the bleeding edge release updated weekly.", + "description": "Model to use for the feature. Supported values: \"builtin/stable\" (the default if unset) and \"builtin/latest\". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also support \"builtin/rc\" for the latest release candidate.", "type": "string" }, "type": { diff --git a/discovery/googleapis/vmmigration__v1.json b/discovery/googleapis/vmmigration__v1.json index e6269464e..458c9f404 100644 --- a/discovery/googleapis/vmmigration__v1.json +++ b/discovery/googleapis/vmmigration__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250724", + "revision": "20250911", "rootUrl": "https://vmmigration.googleapis.com/", "servicePath": "", "title": "VM Migration API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -571,7 +571,7 @@ "imageImportJobs": { "methods": { "cancel": { - "description": "Initiates the cancellation of a running clone job.", + "description": "Initiates the cancellation of a running ImageImportJob.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/imageImports/{imageImportsId}/imageImportJobs/{imageImportJobsId}:cancel", "httpMethod": "POST", "id": "vmmigration.projects.locations.imageImports.imageImportJobs.cancel", @@ -907,6 +907,62 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "fetchStorageInventory": { + "description": "List remote source's inventory of storage resources. The remote source is another cloud vendor (e.g. AWS, Azure). The inventory describes the list of existing storage resources in that source. Note that this operation lists the resources on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}:fetchStorageInventory", + "httpMethod": "GET", + "id": "vmmigration.projects.locations.sources.fetchStorageInventory", + "parameterOrder": [ + "source" + ], + "parameters": { + "forceRefresh": { + "description": "Optional. If this flag is set to true, the source will be queried instead of using cached results. Using this flag will make the call slower.", + "location": "query", + "type": "boolean" + }, + "pageSize": { + "description": "Optional. The maximum number of VMs to return. The service may return fewer than this value.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `FetchStorageInventory` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchStorageInventory` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "source": { + "description": "Required. The name of the Source.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+$", + "required": true, + "type": "string" + }, + "type": { + "description": "Required. The type of the storage inventory to fetch.", + "enum": [ + "STORAGE_TYPE_UNSPECIFIED", + "DISKS", + "SNAPSHOTS" + ], + "enumDescriptions": [ + "The type is unspecified.", + "The type is disks.", + "The type is snapshots." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1/{+source}:fetchStorageInventory", + "response": { + "$ref": "FetchStorageInventoryResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Gets details of a single Source.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}", @@ -1190,6 +1246,239 @@ } } }, + "diskMigrationJobs": { + "methods": { + "cancel": { + "description": "Cancels the disk migration job.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/diskMigrationJobs/{diskMigrationJobsId}:cancel", + "httpMethod": "POST", + "id": "vmmigration.projects.locations.sources.diskMigrationJobs.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the DiskMigrationJob.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "CancelDiskMigrationJobRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates a new disk migration job in a given Source.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/diskMigrationJobs", + "httpMethod": "POST", + "id": "vmmigration.projects.locations.sources.diskMigrationJobs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "diskMigrationJobId": { + "description": "Required. The DiskMigrationJob identifier. The maximum length of this value is 63 characters. Valid characters are lower case Latin letters, digits and hyphen. It must start with a Latin letter and must not end with a hyphen.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The DiskMigrationJob's parent.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request timed out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/diskMigrationJobs", + "request": { + "$ref": "DiskMigrationJob" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single DiskMigrationJob.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/diskMigrationJobs/{diskMigrationJobsId}", + "httpMethod": "DELETE", + "id": "vmmigration.projects.locations.sources.diskMigrationJobs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the DiskMigrationJob.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single DiskMigrationJob.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/diskMigrationJobs/{diskMigrationJobsId}", + "httpMethod": "GET", + "id": "vmmigration.projects.locations.sources.diskMigrationJobs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the DiskMigrationJob.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "DiskMigrationJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists DiskMigrationJobs in a given Source.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/diskMigrationJobs", + "httpMethod": "GET", + "id": "vmmigration.projects.locations.sources.diskMigrationJobs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The filter request (according to AIP-160).", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Ordering of the result list.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of disk migration jobs to return. The service may return fewer than this value. If unspecified, at most 500 disk migration jobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListDiskMigrationJobs` call. Provide this to retrieve the subsequent page. When paginating, all parameters provided to `ListDiskMigrationJobs` except `page_size` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of DiskMigrationJobs.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/diskMigrationJobs", + "response": { + "$ref": "ListDiskMigrationJobsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single DiskMigrationJob.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/diskMigrationJobs/{diskMigrationJobsId}", + "httpMethod": "PATCH", + "id": "vmmigration.projects.locations.sources.diskMigrationJobs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Identifier. The identifier of the DiskMigrationJob.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request timed out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Optional. Field mask is used to specify the fields to be overwritten in the DiskMigrationJob resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask, then a mask equivalent to all fields that are populated (have a non-empty value), will be implied.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "DiskMigrationJob" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "run": { + "description": "Runs the disk migration job.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/diskMigrationJobs/{diskMigrationJobsId}:run", + "httpMethod": "POST", + "id": "vmmigration.projects.locations.sources.diskMigrationJobs.run", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the DiskMigrationJob.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/diskMigrationJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:run", + "request": { + "$ref": "RunDiskMigrationJobRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "migratingVms": { "methods": { "create": { @@ -2278,6 +2567,21 @@ }, "type": "object" }, + "AdaptationModifier": { + "description": "AdaptationModifier a modifier to be used for configuration of the OS adaptation process.", + "id": "AdaptationModifier", + "properties": { + "modifier": { + "description": "Optional. The modifier name.", + "type": "string" + }, + "value": { + "description": "Optional. The value of the modifier. The actual value depends on the modifier and can also be empty.", + "type": "string" + } + }, + "type": "object" + }, "AdaptingOSStep": { "description": "AdaptingOSStep contains specific step details.", "id": "AdaptingOSStep", @@ -2462,6 +2766,56 @@ }, "type": "object" }, + "AwsSourceDiskDetails": { + "description": "Represents the source AWS Disk details.", + "id": "AwsSourceDiskDetails", + "properties": { + "diskType": { + "description": "Optional. Output only. Disk type.", + "enum": [ + "TYPE_UNSPECIFIED", + "GP2", + "GP3", + "IO1", + "IO2", + "ST1", + "SC1", + "STANDARD" + ], + "enumDescriptions": [ + "Unspecified AWS disk type. Should not be used.", + "GP2 disk type.", + "GP3 disk type.", + "IO1 disk type.", + "IO2 disk type.", + "ST1 disk type.", + "SC1 disk type.", + "Standard disk type." + ], + "readOnly": true, + "type": "string" + }, + "sizeGib": { + "description": "Output only. Size in GiB.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Output only. A map of AWS volume tags.", + "readOnly": true, + "type": "object" + }, + "volumeId": { + "description": "Required. AWS volume ID.", + "type": "string" + } + }, + "type": "object" + }, "AwsSourceVmDetails": { "description": "Represent the source AWS VM details.", "id": "AwsSourceVmDetails", @@ -2988,6 +3342,12 @@ "properties": {}, "type": "object" }, + "CancelDiskMigrationJobRequest": { + "description": "Request message for 'CancelDiskMigrationJob' request.", + "id": "CancelDiskMigrationJobRequest", + "properties": {}, + "type": "object" + }, "CancelImageImportJobRequest": { "description": "Request message for 'CancelImageImportJob' request.", "id": "CancelImageImportJobRequest", @@ -3126,6 +3486,46 @@ }, "type": "object" }, + "ComputeEngineDisk": { + "description": "Compute Engine disk target details.", + "id": "ComputeEngineDisk", + "properties": { + "diskId": { + "description": "Optional. Target Compute Engine Disk ID. This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 \"disk1\" is the resource ID for the disk.", + "type": "string" + }, + "diskType": { + "description": "Required. The disk type to use.", + "enum": [ + "COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED", + "COMPUTE_ENGINE_DISK_TYPE_STANDARD", + "COMPUTE_ENGINE_DISK_TYPE_SSD", + "COMPUTE_ENGINE_DISK_TYPE_BALANCED", + "COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED" + ], + "enumDescriptions": [ + "An unspecified disk type. Will be used as STANDARD.", + "A Standard disk type.", + "SSD hard disk type.", + "An alternative to SSD persistent disks that balance performance and cost.", + "Hyperdisk balanced disk type." + ], + "type": "string" + }, + "replicaZones": { + "description": "Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "zone": { + "description": "Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone}", + "type": "string" + } + }, + "type": "object" + }, "ComputeEngineDisksTargetDefaults": { "description": "ComputeEngineDisksTargetDefaults is a collection of details for creating Persistent Disks in a target Compute Engine project.", "id": "ComputeEngineDisksTargetDefaults", @@ -3182,6 +3582,13 @@ "description": "ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project.", "id": "ComputeEngineTargetDefaults", "properties": { + "adaptationModifiers": { + "description": "Optional. AdaptationModifiers are the set of modifiers used during OS adaptation.", + "items": { + "$ref": "AdaptationModifier" + }, + "type": "array" + }, "additionalLicenses": { "description": "Additional licenses to assign to the VM.", "items": { @@ -3345,6 +3752,13 @@ "description": "ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project.", "id": "ComputeEngineTargetDetails", "properties": { + "adaptationModifiers": { + "description": "Optional. Modifiers to be used as configuration of the OS adaptation process.", + "items": { + "$ref": "AdaptationModifier" + }, + "type": "array" + }, "additionalLicenses": { "description": "Additional licenses to assign to the VM.", "items": { @@ -3549,12 +3963,24 @@ }, "type": "object" }, + "CopyingSourceDiskSnapshotStep": { + "description": "CopyingSourceDiskSnapshotStep contains specific step details.", + "id": "CopyingSourceDiskSnapshotStep", + "properties": {}, + "type": "object" + }, "CreatingImageStep": { "description": "CreatingImageStep contains specific step details.", "id": "CreatingImageStep", "properties": {}, "type": "object" }, + "CreatingSourceDiskSnapshotStep": { + "description": "CreatingSourceDiskSnapshotStep contains specific step details.", + "id": "CreatingSourceDiskSnapshotStep", + "properties": {}, + "type": "object" + }, "CutoverForecast": { "description": "CutoverForecast holds information about future CutoverJobs of a MigratingVm.", "id": "CutoverForecast", @@ -3905,6 +4331,134 @@ }, "type": "object" }, + "DiskMigrationJob": { + "description": "Describes the disk which will be migrated from the source environment. The source disk has to be unattached.", + "id": "DiskMigrationJob", + "properties": { + "awsSourceDiskDetails": { + "$ref": "AwsSourceDiskDetails", + "description": "Details of the unattached AWS source disk." + }, + "createTime": { + "description": "Output only. The time the DiskMigrationJob resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "errors": { + "description": "Output only. Provides details on the errors that led to the disk migration job's state in case of an error.", + "items": { + "$ref": "Status" + }, + "readOnly": true, + "type": "array" + }, + "name": { + "description": "Output only. Identifier. The identifier of the DiskMigrationJob.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. State of the DiskMigrationJob.", + "enum": [ + "STATE_UNSPECIFIED", + "READY", + "RUNNING", + "SUCCEEDED", + "CANCELLING", + "CANCELLED", + "FAILED" + ], + "enumDescriptions": [ + "The state is unspecified. This is not in use.", + "The initial state of the disk migration. In this state the customers can update the target details.", + "The migration is active, and it's running or scheduled to run.", + "The migration completed successfully.", + "Migration cancellation was initiated.", + "The migration was cancelled.", + "The migration process encountered an unrecoverable error and was aborted." + ], + "readOnly": true, + "type": "string" + }, + "steps": { + "description": "Output only. The disk migration steps list representing its progress.", + "items": { + "$ref": "DiskMigrationStep" + }, + "readOnly": true, + "type": "array" + }, + "targetDetails": { + "$ref": "DiskMigrationJobTargetDetails", + "description": "Required. Details of the target Disk in Compute Engine." + }, + "updateTime": { + "description": "Output only. The last time the DiskMigrationJob resource was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DiskMigrationJobTargetDetails": { + "description": "Details of the target disk in Compute Engine.", + "id": "DiskMigrationJobTargetDetails", + "properties": { + "encryption": { + "$ref": "Encryption", + "description": "Optional. The encryption to apply to the disk. If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. A map of labels to associate with the disk.", + "type": "object" + }, + "targetDisk": { + "$ref": "ComputeEngineDisk", + "description": "Required. The target disk." + }, + "targetProject": { + "description": "Required. The name of the resource of type TargetProject which represents the Compute Engine project in which to create the disk. Should be of the form: projects/{project}/locations/global/targetProjects/{target-project}", + "type": "string" + } + }, + "type": "object" + }, + "DiskMigrationStep": { + "description": "DiskMigrationStep holds information about the disk migration step progress.", + "id": "DiskMigrationStep", + "properties": { + "copyingSourceDiskSnapshot": { + "$ref": "CopyingSourceDiskSnapshotStep", + "description": "Copying source disk snapshot step." + }, + "creatingSourceDiskSnapshot": { + "$ref": "CreatingSourceDiskSnapshotStep", + "description": "Creating source disk snapshot step." + }, + "endTime": { + "description": "Output only. The time the step has ended.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "provisioningTargetDisk": { + "$ref": "ProvisioningTargetDiskStep", + "description": "Creating target disk step." + }, + "startTime": { + "description": "Output only. The time the step has started.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "DisksMigrationDisksTargetDefaults": { "description": "Details for a disk only migration.", "id": "DisksMigrationDisksTargetDefaults", @@ -4092,6 +4646,31 @@ }, "type": "object" }, + "FetchStorageInventoryResponse": { + "description": "Response message for fetchStorageInventory.", + "id": "FetchStorageInventoryResponse", + "properties": { + "nextPageToken": { + "description": "Output only. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "readOnly": true, + "type": "string" + }, + "resources": { + "description": "The list of storage resources in the source.", + "items": { + "$ref": "SourceStorageResource" + }, + "type": "array" + }, + "updateTime": { + "description": "Output only. The timestamp when the source was last queried (if the result is from the cache).", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "FinalizeMigrationRequest": { "description": "Request message for 'FinalizeMigration' request.", "id": "FinalizeMigrationRequest", @@ -4284,6 +4863,13 @@ "description": "Parameters affecting the OS adaptation process.", "id": "ImageImportOsAdaptationParameters", "properties": { + "adaptationModifiers": { + "description": "Optional. Modifiers to be used as configuration of the OS adaptation process.", + "items": { + "$ref": "AdaptationModifier" + }, + "type": "array" + }, "bootConversion": { "description": "Optional. By default the image will keep its existing boot option. Setting this property will trigger an internal process which will convert the image from using the existing boot option to another. The size of the boot disk might be increased to allow the conversion", "enum": [ @@ -4471,6 +5057,34 @@ }, "type": "object" }, + "ListDiskMigrationJobsResponse": { + "description": "Response message for 'ListDiskMigrationJobs' request.", + "id": "ListDiskMigrationJobsResponse", + "properties": { + "diskMigrationJobs": { + "description": "Output only. The list of the disk migration jobs.", + "items": { + "$ref": "DiskMigrationJob" + }, + "readOnly": true, + "type": "array" + }, + "nextPageToken": { + "description": "Optional. Output only. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "readOnly": true, + "type": "string" + }, + "unreachable": { + "description": "Output only. Locations that could not be reached.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "ListGroupsResponse": { "description": "Response message for 'ListGroups' request.", "id": "ListGroupsResponse", @@ -5058,7 +5672,8 @@ "CUTOVER_ERROR", "UTILIZATION_REPORT_ERROR", "APPLIANCE_UPGRADE_ERROR", - "IMAGE_IMPORT_ERROR" + "IMAGE_IMPORT_ERROR", + "DISK_MIGRATION_ERROR" ], "enumDescriptions": [ "Default value. This value is not used.", @@ -5071,7 +5686,8 @@ "Migrate to Virtual Machines encountered an error in cutover operation.", "Migrate to Virtual Machines encountered an error during utilization report creation.", "Migrate to Virtual Machines encountered an error during appliance upgrade.", - "Migrate to Virtual Machines encountered an error in image import operation." + "Migrate to Virtual Machines encountered an error in image import operation.", + "Migrate to Virtual Machines encountered an error in disk migration operation." ], "readOnly": true, "type": "string" @@ -5382,6 +5998,12 @@ "properties": {}, "type": "object" }, + "ProvisioningTargetDiskStep": { + "description": "ProvisioningTargetDiskStep contains specific step details.", + "id": "ProvisioningTargetDiskStep", + "properties": {}, + "type": "object" + }, "RemoveGroupMigrationRequest": { "description": "Request message for 'RemoveMigration' request.", "id": "RemoveGroupMigrationRequest", @@ -5513,6 +6135,12 @@ "properties": {}, "type": "object" }, + "RunDiskMigrationJobRequest": { + "description": "Request message for 'RunDiskMigrationJobRequest' request.", + "id": "RunDiskMigrationJobRequest", + "properties": {}, + "type": "object" + }, "SchedulePolicy": { "description": "A policy for scheduling replications.", "id": "SchedulePolicy", @@ -5671,6 +6299,17 @@ }, "type": "object" }, + "SourceStorageResource": { + "description": "SourceStorageResource describes a storage resource in the source.", + "id": "SourceStorageResource", + "properties": { + "awsDiskDetails": { + "$ref": "AwsSourceDiskDetails", + "description": "Source AWS volume details." + } + }, + "type": "object" + }, "StartMigrationRequest": { "description": "Request message for 'StartMigrationRequest' request.", "id": "StartMigrationRequest", diff --git a/discovery/googleapis/vmwareengine__v1.json b/discovery/googleapis/vmwareengine__v1.json index 8540c8f44..bb8900a83 100644 --- a/discovery/googleapis/vmwareengine__v1.json +++ b/discovery/googleapis/vmwareengine__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250603", + "revision": "20250811", "rootUrl": "https://vmwareengine.googleapis.com/", "servicePath": "", "title": "VMware Engine API", @@ -1395,6 +1395,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "privateCloudDeletionNow": { + "description": "Accelerates the deletion of a private cloud that is currently in soft deletion A `PrivateCloud` resource in soft deletion has `PrivateCloud.state` set to `SOFT_DELETED` and `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/privateClouds/{privateCloudsId}:privateCloudDeletionNow", + "httpMethod": "POST", + "id": "vmwareengine.projects.locations.privateClouds.privateCloudDeletionNow", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the private cloud in softdeletion. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: `projects/my-project/locations/us-central1-a/privateClouds/my-cloud`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/privateClouds/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:privateCloudDeletionNow", + "request": { + "$ref": "AcceleratePrivateCloudDeletionRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "resetNsxCredentials": { "description": "Resets credentials of the NSX appliance.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/privateClouds/{privateCloudsId}:resetNsxCredentials", @@ -3373,6 +3401,21 @@ } }, "schemas": { + "AcceleratePrivateCloudDeletionRequest": { + "description": "Request message for VmwareEngine.AcceleratePrivateCloudDeletion", + "id": "AcceleratePrivateCloudDeletionRequest", + "properties": { + "etag": { + "description": "Optional. Checksum used to ensure that the user-provided value is up to date before the server processes the request. The server compares provided checksum with the current checksum of the resource. If the user-provided value is out of date, this request returns an `ABORTED` error.", + "type": "string" + }, + "requestId": { + "description": "Optional. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + } + }, + "type": "object" + }, "Announcement": { "description": "Announcement for the resources of Vmware Engine.", "id": "Announcement", diff --git a/discovery/googleapis/vpcaccess__v1.json b/discovery/googleapis/vpcaccess__v1.json index c011bea19..454ca34c1 100644 --- a/discovery/googleapis/vpcaccess__v1.json +++ b/discovery/googleapis/vpcaccess__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250413", + "revision": "20250817", "rootUrl": "https://vpcaccess.googleapis.com/", "servicePath": "", "title": "Serverless VPC Access API", @@ -123,7 +123,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/walletobjects__v1.json b/discovery/googleapis/walletobjects__v1.json index 3eb7a64e8..60790acc8 100644 --- a/discovery/googleapis/walletobjects__v1.json +++ b/discovery/googleapis/walletobjects__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250506", + "revision": "20250909", "rootUrl": "https://walletobjects.googleapis.com/", "servicePath": "", "title": "Google Wallet API", @@ -6207,9 +6207,13 @@ "description": "Identifies what kind of resource this is. Value: the fixed string `\"walletobjects#image\"`.", "type": "string" }, + "privateImageId": { + "description": "An ID for an already uploaded private image. Either this or source_uri should be set. Requests setting both or neither will be rejected. Please contact support to use private images.", + "type": "string" + }, "sourceUri": { "$ref": "ImageUri", - "description": "The URI for the image." + "description": "A URI for the image. Either this or private_image_id should be set. Requests setting both or neither will be rejected." } }, "type": "object" @@ -7329,6 +7333,11 @@ ], "type": "string" }, + "physicalHeaders": { + "description": "The physical headers provided by RequestReceivedParameters in Scotty request. type is uploader_service.KeyValuePairs.", + "format": "byte", + "type": "string" + }, "requestId": { "description": "The Scotty request ID.", "type": "string" @@ -9748,6 +9757,23 @@ }, "type": "object" }, + "UploadPrivateImageRequest": { + "description": "Request to upload a private image to use in a pass.", + "id": "UploadPrivateImageRequest", + "properties": {}, + "type": "object" + }, + "UploadPrivateImageResponse": { + "description": "Response for uploading the private image.", + "id": "UploadPrivateImageResponse", + "properties": { + "privateImageId": { + "description": "Unique ID of the uploaded image to be referenced later in Image.private_image_id.", + "type": "string" + } + }, + "type": "object" + }, "Uri": { "id": "Uri", "properties": { diff --git a/discovery/googleapis/workflows__v1.json b/discovery/googleapis/workflows__v1.json index 5ebd8d995..e3f2fbe61 100644 --- a/discovery/googleapis/workflows__v1.json +++ b/discovery/googleapis/workflows__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250409", + "revision": "20250814", "rootUrl": "https://workflows.googleapis.com/", "servicePath": "", "title": "Workflows API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis/workloadmanager__v1.json b/discovery/googleapis/workloadmanager__v1.json index e5f5ca9e2..ca622386c 100644 --- a/discovery/googleapis/workloadmanager__v1.json +++ b/discovery/googleapis/workloadmanager__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250727", + "revision": "20250903", "rootUrl": "https://workloadmanager.googleapis.com/", "servicePath": "", "title": "Workload Manager API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -910,9 +910,25 @@ "description": "Optional. The available version of the agent in artifact registry.", "type": "string" }, + "hanaMonitoring": { + "$ref": "ServiceStates", + "description": "Optional. HANA monitoring metrics of the agent." + }, "installedVersion": { "description": "Optional. The installed version of the agent on the host.", "type": "string" + }, + "isFullyEnabled": { + "description": "Optional. Whether the agent is fully enabled. If false, the agent is has some issues.", + "type": "boolean" + }, + "processMetrics": { + "$ref": "ServiceStates", + "description": "Optional. The Process metrics of the agent." + }, + "systemDiscovery": { + "$ref": "ServiceStates", + "description": "Optional. The System discovery metrics of the agent." } }, "type": "object" @@ -1241,7 +1257,7 @@ "readOnly": true }, "kind": { - "description": "Output only. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc.", + "description": "Output only. ", "enum": [ "RESOURCE_KIND_UNSPECIFIED", "RESOURCE_KIND_INSTANCE", @@ -1274,7 +1290,7 @@ "type": "string" }, "name": { - "description": "Output only. resource name", + "description": "Output only. resource name Example: compute.googleapis.com/projects/wlm-obs-dev/zones/us-central1-a/instances/sap-pri", "readOnly": true, "type": "string" } @@ -1446,6 +1462,20 @@ "readOnly": true, "type": "string" }, + "engine": { + "description": "Optional. Engine", + "enum": [ + "ENGINE_UNSPECIFIED", + "ENGINE_SCANNER", + "V2" + ], + "enumDescriptions": [ + "The original CG", + "SlimCG / Scanner", + "Evaluation Engine V2" + ], + "type": "string" + }, "evaluationId": { "description": "Output only. [Output only] Evaluation ID", "readOnly": true, @@ -1633,6 +1663,23 @@ }, "type": "object" }, + "IAMPermission": { + "description": "The IAM permission status.", + "id": "IAMPermission", + "properties": { + "granted": { + "description": "Output only. Whether the permission is granted.", + "readOnly": true, + "type": "boolean" + }, + "name": { + "description": "Output only. The name of the permission.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Insight": { "description": "A presentation of host resource usage where the workload runs.", "id": "Insight", @@ -1642,7 +1689,7 @@ "description": "The insights data for the agent status." }, "instanceId": { - "description": "Required. The instance id where the insight is generated from", + "description": "Optional. The instance id where the insight is generated from", "type": "string" }, "sapDiscovery": { @@ -2142,6 +2189,20 @@ "readOnly": true, "type": "string" }, + "ruleType": { + "description": "The type of the rule.", + "enum": [ + "RULE_TYPE_UNSPECIFIED", + "BASELINE", + "CUSTOM" + ], + "enumDescriptions": [ + "Not specified.", + "Baseline rules", + "Custom rules" + ], + "type": "string" + }, "secondaryCategory": { "description": "the secondary category", "type": "string" @@ -2977,6 +3038,42 @@ }, "type": "object" }, + "ServiceStates": { + "description": "The state of the service.", + "id": "ServiceStates", + "properties": { + "iamPermissions": { + "description": "Optional. Output only. The IAM permissions for the service.", + "items": { + "$ref": "IAMPermission" + }, + "readOnly": true, + "type": "array" + }, + "state": { + "description": "Output only. The overall state of the service.", + "enum": [ + "STATE_UNSPECIFIED", + "CONFIG_FAILURE", + "IAM_FAILURE", + "FUNCTIONALITY_FAILURE", + "ENABLED", + "DISABLED" + ], + "enumDescriptions": [ + "The state is unspecified.", + "The state means the service has config errors.", + "The state means the service has IAM permission errors.", + "The state means the service has functionality errors.", + "The state means the service has no error.", + "The state means the service disabled." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ShellCommand": { "description": "* A ShellCommand is invoked via the agent's command line executor", "id": "ShellCommand", @@ -3146,7 +3243,7 @@ "type": "string" }, "instanceName": { - "description": "Required. instance_name lists the human readable name of the instance that the data comes from.", + "description": "Optional. instance_name lists the human readable name of the instance that the data comes from.", "type": "string" }, "projectId": { diff --git a/discovery/googleapis/workstations__v1.json b/discovery/googleapis/workstations__v1.json index 27f59f779..e4b562e1c 100644 --- a/discovery/googleapis/workstations__v1.json +++ b/discovery/googleapis/workstations__v1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250604", + "revision": "20250814", "rootUrl": "https://workstations.googleapis.com/", "servicePath": "", "title": "Cloud Workstations API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis_beta/adexchangebuyer2__v2beta1.json b/discovery/googleapis_beta/adexchangebuyer2__v2beta1.json index a17d99904..7456e009c 100644 --- a/discovery/googleapis_beta/adexchangebuyer2__v2beta1.json +++ b/discovery/googleapis_beta/adexchangebuyer2__v2beta1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20241002", + "revision": "20250807", "rootUrl": "https://adexchangebuyer.googleapis.com/", "servicePath": "", "title": "Ad Exchange Buyer API II", @@ -5664,14 +5664,16 @@ "AD_NOT_RENDERED", "INVALID_IMPRESSION", "FATAL_VAST_ERROR", - "LOST_IN_MEDIATION" + "LOST_IN_MEDIATION", + "OVERDELIVERED_IMPRESSION" ], "enumDescriptions": [ "A placeholder for an undefined status. This value will never be returned in responses.", "The buyer was not billed because the ad was not rendered by the publisher.", "The buyer was not billed because the impression won by the bid was determined to be invalid.", "A video impression was served but a fatal error was reported from the client during playback.", - "The buyer was not billed because the ad was outplaced in the mediation waterfall." + "The buyer was not billed because the ad was outplaced in the mediation waterfall.", + "The impression was not billed because it exceeded a guaranteed deal delivery goal." ], "type": "string" } diff --git a/discovery/googleapis_beta/analyticsadmin__v1alpha.json b/discovery/googleapis_beta/analyticsadmin__v1alpha.json index 6f591e9eb..547d54233 100644 --- a/discovery/googleapis_beta/analyticsadmin__v1alpha.json +++ b/discovery/googleapis_beta/analyticsadmin__v1alpha.json @@ -34,7 +34,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250723", + "revision": "20250820", "rootUrl": "https://analyticsadmin.googleapis.com/", "servicePath": "", "title": "Google Analytics Admin API", @@ -835,7 +835,7 @@ ] }, "getReportingIdentitySettings": { - "description": "Returns the singleton data retention settings for this property.", + "description": "Returns the reporting identity settings for this property.", "flatPath": "v1alpha/properties/{propertiesId}/reportingIdentitySettings", "httpMethod": "GET", "id": "analyticsadmin.properties.getReportingIdentitySettings", diff --git a/discovery/googleapis_beta/cloudsupport__v2beta.json b/discovery/googleapis_beta/cloudsupport__v2beta.json index 68e38fe3a..f47ded2d8 100644 --- a/discovery/googleapis_beta/cloudsupport__v2beta.json +++ b/discovery/googleapis_beta/cloudsupport__v2beta.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250609", + "revision": "20250806", "rootUrl": "https://cloudsupport.googleapis.com/", "servicePath": "", "title": "Google Cloud Support API", @@ -443,6 +443,31 @@ "resources": { "attachments": { "methods": { + "get": { + "description": "Retrieve an attachment associated with a support case. EXAMPLES: cURL: ```shell attachment=\"projects/some-project/cases/23598314/attachments/0684M00000P3h1fQAB\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$attachment\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2beta\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = ( supportApiService.cases() .attachments() .get(name=\"projects/some-project/cases/43595344/attachments/0684M00000P3h1fQAB\") ) print(request.execute()) ```", + "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}/attachments/{attachmentsId}", + "httpMethod": "GET", + "id": "cloudsupport.cases.attachments.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the attachment to get.", + "location": "path", + "pattern": "^[^/]+/[^/]+/cases/[^/]+/attachments/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2beta/{+name}", + "response": { + "$ref": "Attachment" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "List all the attachments associated with a support case. EXAMPLES: cURL: ```shell case=\"projects/some-project/cases/23598314\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case/attachments\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = ( supportApiService.cases() .attachments() .list(parent=\"projects/some-project/cases/43595344\") ) print(request.execute()) ```", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}/attachments", @@ -511,6 +536,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "get": { + "description": "Retrieve a comment. EXAMPLES: cURL: ```shell comment=\"projects/some-project/cases/43595344/comments/234567890\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$comment\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2beta\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = supportApiService.cases().comments().get( name=\"projects/some-project/cases/43595344/comments/234567890\", ) print(request.execute()) ```", + "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}/comments/{commentsId}", + "httpMethod": "GET", + "id": "cloudsupport.cases.comments.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the comment to retrieve.", + "location": "path", + "pattern": "^[^/]+/[^/]+/cases/[^/]+/comments/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2beta/{+name}", + "response": { + "$ref": "Comment" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "List all the comments associated with a case. EXAMPLES: cURL: ```shell case=\"projects/some-project/cases/43595344\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case/comments\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = ( supportApiService.cases() .comments() .list(parent=\"projects/some-project/cases/43595344\") ) print(request.execute()) ```", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}/comments", diff --git a/discovery/googleapis_beta/dataflow__v1b3.json b/discovery/googleapis_beta/dataflow__v1b3.json index 2cc573f02..1728f709a 100644 --- a/discovery/googleapis_beta/dataflow__v1b3.json +++ b/discovery/googleapis_beta/dataflow__v1b3.json @@ -110,7 +110,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250716", + "revision": "20250825", "rootUrl": "https://dataflow.googleapis.com/", "servicePath": "", "title": "Dataflow API", @@ -344,7 +344,7 @@ ] }, "create": { - "description": "A Job is a multi-stage computation graph run by the Cloud Dataflow service. Creates a Cloud Dataflow job. To create a job, we recommend using `projects.locations.jobs.create` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.create` is not recommended, as your job will always start in `us-central1`. Do not enter confidential information when you supply string values using the API.", + "description": "Creates a Dataflow job. To create a job, we recommend using `projects.locations.jobs.create` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.create` is not recommended, as your job will always start in `us-central1`. Do not enter confidential information when you supply string values using the API.", "flatPath": "v1b3/projects/{projectId}/jobs", "httpMethod": "POST", "id": "dataflow.projects.jobs.create", @@ -975,7 +975,7 @@ "jobs": { "methods": { "create": { - "description": "A Job is a multi-stage computation graph run by the Cloud Dataflow service. Creates a Cloud Dataflow job. To create a job, we recommend using `projects.locations.jobs.create` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.create` is not recommended, as your job will always start in `us-central1`. Do not enter confidential information when you supply string values using the API.", + "description": "Creates a Dataflow job. To create a job, we recommend using `projects.locations.jobs.create` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.create` is not recommended, as your job will always start in `us-central1`. Do not enter confidential information when you supply string values using the API.", "flatPath": "v1b3/projects/{projectId}/locations/{location}/jobs", "httpMethod": "POST", "id": "dataflow.projects.locations.jobs.create", @@ -3420,7 +3420,9 @@ "JOB_STATE_PENDING", "JOB_STATE_CANCELLING", "JOB_STATE_QUEUED", - "JOB_STATE_RESOURCE_CLEANING_UP" + "JOB_STATE_RESOURCE_CLEANING_UP", + "JOB_STATE_PAUSING", + "JOB_STATE_PAUSED" ], "enumDescriptions": [ "The job's run state isn't specified.", @@ -3435,7 +3437,9 @@ "`JOB_STATE_PENDING` indicates that the job has been created but is not yet running. Jobs that are pending may only transition to `JOB_STATE_RUNNING`, or `JOB_STATE_FAILED`.", "`JOB_STATE_CANCELLING` indicates that the job has been explicitly cancelled and is in the process of stopping. Jobs that are cancelling may only transition to `JOB_STATE_CANCELLED` or `JOB_STATE_FAILED`.", "`JOB_STATE_QUEUED` indicates that the job has been created but is being delayed until launch. Jobs that are queued may only transition to `JOB_STATE_PENDING` or `JOB_STATE_CANCELLED`.", - "`JOB_STATE_RESOURCE_CLEANING_UP` indicates that the batch job's associated resources are currently being cleaned up after a successful run. Currently, this is an opt-in feature, please reach out to Cloud support team if you are interested." + "`JOB_STATE_RESOURCE_CLEANING_UP` indicates that the batch job's associated resources are currently being cleaned up after a successful run. Currently, this is an opt-in feature, please reach out to Cloud support team if you are interested.", + "`JOB_STATE_PAUSING` is not implemented yet.", + "`JOB_STATE_PAUSED` is not implemented yet." ], "type": "string" } @@ -4067,7 +4071,9 @@ "JOB_STATE_PENDING", "JOB_STATE_CANCELLING", "JOB_STATE_QUEUED", - "JOB_STATE_RESOURCE_CLEANING_UP" + "JOB_STATE_RESOURCE_CLEANING_UP", + "JOB_STATE_PAUSING", + "JOB_STATE_PAUSED" ], "enumDescriptions": [ "The job's run state isn't specified.", @@ -4082,7 +4088,9 @@ "`JOB_STATE_PENDING` indicates that the job has been created but is not yet running. Jobs that are pending may only transition to `JOB_STATE_RUNNING`, or `JOB_STATE_FAILED`.", "`JOB_STATE_CANCELLING` indicates that the job has been explicitly cancelled and is in the process of stopping. Jobs that are cancelling may only transition to `JOB_STATE_CANCELLED` or `JOB_STATE_FAILED`.", "`JOB_STATE_QUEUED` indicates that the job has been created but is being delayed until launch. Jobs that are queued may only transition to `JOB_STATE_PENDING` or `JOB_STATE_CANCELLED`.", - "`JOB_STATE_RESOURCE_CLEANING_UP` indicates that the batch job's associated resources are currently being cleaned up after a successful run. Currently, this is an opt-in feature, please reach out to Cloud support team if you are interested." + "`JOB_STATE_RESOURCE_CLEANING_UP` indicates that the batch job's associated resources are currently being cleaned up after a successful run. Currently, this is an opt-in feature, please reach out to Cloud support team if you are interested.", + "`JOB_STATE_PAUSING` is not implemented yet.", + "`JOB_STATE_PAUSED` is not implemented yet." ], "type": "string" }, @@ -4153,7 +4161,9 @@ "JOB_STATE_PENDING", "JOB_STATE_CANCELLING", "JOB_STATE_QUEUED", - "JOB_STATE_RESOURCE_CLEANING_UP" + "JOB_STATE_RESOURCE_CLEANING_UP", + "JOB_STATE_PAUSING", + "JOB_STATE_PAUSED" ], "enumDescriptions": [ "The job's run state isn't specified.", @@ -4168,7 +4178,9 @@ "`JOB_STATE_PENDING` indicates that the job has been created but is not yet running. Jobs that are pending may only transition to `JOB_STATE_RUNNING`, or `JOB_STATE_FAILED`.", "`JOB_STATE_CANCELLING` indicates that the job has been explicitly cancelled and is in the process of stopping. Jobs that are cancelling may only transition to `JOB_STATE_CANCELLED` or `JOB_STATE_FAILED`.", "`JOB_STATE_QUEUED` indicates that the job has been created but is being delayed until launch. Jobs that are queued may only transition to `JOB_STATE_PENDING` or `JOB_STATE_CANCELLED`.", - "`JOB_STATE_RESOURCE_CLEANING_UP` indicates that the batch job's associated resources are currently being cleaned up after a successful run. Currently, this is an opt-in feature, please reach out to Cloud support team if you are interested." + "`JOB_STATE_RESOURCE_CLEANING_UP` indicates that the batch job's associated resources are currently being cleaned up after a successful run. Currently, this is an opt-in feature, please reach out to Cloud support team if you are interested.", + "`JOB_STATE_PAUSING` is not implemented yet.", + "`JOB_STATE_PAUSED` is not implemented yet." ], "type": "string" }, diff --git a/discovery/googleapis_beta/datastream__v1alpha1.json b/discovery/googleapis_beta/datastream__v1alpha1.json index 62aedc001..91ff484c7 100644 --- a/discovery/googleapis_beta/datastream__v1alpha1.json +++ b/discovery/googleapis_beta/datastream__v1alpha1.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250321", + "revision": "20250817", "rootUrl": "https://datastream.googleapis.com/", "servicePath": "", "title": "Datastream API", @@ -185,7 +185,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" diff --git a/discovery/googleapis_beta/firebaseappcheck__v1beta.json b/discovery/googleapis_beta/firebaseappcheck__v1beta.json index c226f9bd9..8b8d76796 100644 --- a/discovery/googleapis_beta/firebaseappcheck__v1beta.json +++ b/discovery/googleapis_beta/firebaseappcheck__v1beta.json @@ -28,7 +28,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20240930", + "revision": "20250901", "rootUrl": "https://firebaseappcheck.googleapis.com/", "servicePath": "", "title": "Firebase App Check API", @@ -2392,6 +2392,18 @@ "description": "An app's Play Integrity configuration object. This configuration controls certain properties of the `AppCheckToken` returned by ExchangePlayIntegrityToken, such as its ttl. Note that your registered SHA-256 certificate fingerprints are used to validate tokens issued by the Play Integrity API; please register them via the Firebase Console or programmatically via the [Firebase Management Service](https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects.androidApps.sha/create).", "id": "GoogleFirebaseAppcheckV1betaPlayIntegrityConfig", "properties": { + "accountDetails": { + "$ref": "GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails", + "description": "Specifies account requirements for Android devices running your app. These settings correspond to requirements on the [**account details** field](https://developer.android.com/google/play/integrity/verdicts#account-details-field) obtained from the Play Integrity API. See the [default responses table](https://developer.android.com/google/play/integrity/setup#default) for a quick summary. The default values for these settings work for most apps, and are recommended." + }, + "appIntegrity": { + "$ref": "GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity", + "description": "Specifies application integrity requirements for Android devices running your app. These settings correspond to requirements on the [**application integrity** field](https://developer.android.com/google/play/integrity/verdicts#application-integrity-field) obtained from the Play Integrity API. See the [default responses table](https://developer.android.com/google/play/integrity/setup#default) for a quick summary. The default values for these settings work for most apps, and are recommended." + }, + "deviceIntegrity": { + "$ref": "GoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity", + "description": "Specifies device integrity requirements for Android devices running your app. These settings correspond to requirements on the [**device integrity** field](https://developer.android.com/google/play/integrity/verdicts#device-integrity-field) obtained from the Play Integrity API. See the [default responses table](https://developer.android.com/google/play/integrity/setup#default) for a quick summary. Warning: There are also [conditional](https://developer.android.com/google/play/integrity/setup#conditional) as well as [optional](https://developer.android.com/google/play/integrity/setup#optional_device_information) responses that you can receive, but requires additional explicit opt-in from you. The App Check API is **not** responsible for any such opt-ins. The default values for these settings work for most apps, and are recommended." + }, "name": { "description": "Required. The relative resource name of the Play Integrity configuration object, in the format: ``` projects/{project_number}/apps/{app_id}/playIntegrityConfig ```", "type": "string" @@ -2404,6 +2416,53 @@ }, "type": "object" }, + "GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails": { + "description": "A settings object specifying account requirements for Android devices running your app. These settings correspond to requirements on the [**account details** field](https://developer.android.com/google/play/integrity/verdicts#account-details-field) obtained from the Play Integrity API. See the [default responses table](https://developer.android.com/google/play/integrity/setup#default) for a quick summary. The default values for these settings work for most apps, and are recommended.", + "id": "GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails", + "properties": { + "requireLicensed": { + "description": "Specifies whether the caller must have received the [`LICENSED` verdict](https://developer.android.com/google/play/integrity/verdicts#account-details-field). For additional details about scenarios where your users will receive this `LICENSED` label, see [the default responses table](https://developer.android.com/google/play/integrity/setup#default). If set to `true`, apps without the `LICENSED` app licensing verdict will be rejected. If set to `false`, any app licensing verdict is allowed. The default value is `false`.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity": { + "description": "A settings object specifying application integrity requirements for Android devices running your app. These settings correspond to requirements on the [**application integrity** field](https://developer.android.com/google/play/integrity/verdicts#application-integrity-field) obtained from the Play Integrity API. See the [default responses table](https://developer.android.com/google/play/integrity/setup#default) for a quick summary. The default values for these settings work for most apps, and are recommended.", + "id": "GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity", + "properties": { + "allowUnrecognizedVersion": { + "description": "Specifies whether your running app is allowed to have the `UNRECOGNIZED_VERSION` [app recognition verdict](https://developer.android.com/google/play/integrity/verdicts#application-integrity-field). Note that the app recognition verdict `PLAY_RECOGNIZED` is a strong, comprehensive integrity signal that takes into account various other signals, including conditional and optional device integrity responses that you have opted into. If your app is published off-Play, this field should be set to `true` to allow instances of your app installed from off-Play sources to function. If set to `false`, only `PLAY_RECOGNIZED` verdicts are allowed, and both `UNRECOGNIZED_VERSION` and `UNEVALUATED` will be rejected. If set to `true`, any app recognition verdict is allowed. The default value is `false`.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity": { + "description": "A settings object specifying device integrity requirements for Android devices running your app. These settings correspond to requirements on the [**device integrity** field](https://developer.android.com/google/play/integrity/verdicts#device-integrity-field) obtained from the Play Integrity API. See the [default responses table](https://developer.android.com/google/play/integrity/setup#default) for a quick summary. Warning: There are also [conditional](https://developer.android.com/google/play/integrity/setup#conditional) as well as [optional](https://developer.android.com/google/play/integrity/setup#optional_device_information) responses that you can receive, but requires additional explicit opt-in from you. The App Check API is **not** responsible for any such opt-ins. The default values for these settings work for most apps, and are recommended.", + "id": "GoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity", + "properties": { + "minDeviceRecognitionLevel": { + "description": "Specifies the minimum device integrity level in order for the device to be considered valid. Any device with a device recognition verdict lower than this level will be rejected. If this is unspecified, the default level is `NO_INTEGRITY`.", + "enum": [ + "DEVICE_RECOGNITION_LEVEL_UNSPECIFIED", + "NO_INTEGRITY", + "MEETS_BASIC_INTEGRITY", + "MEETS_DEVICE_INTEGRITY", + "MEETS_STRONG_INTEGRITY" + ], + "enumDescriptions": [ + "Default value. Do not specify this value directly. When this default value is detected in a configuration, the `NO_INTEGRITY` default level takes effect.", + "If this level is set, no explicit device integrity label requirements will be checked. However, because Play Integrity's other features may perform (and require) their own intrinsic device integrity checks, your `app_integrity` and `account_details` settings may still cause some device integrity checks to be performed.", + "This level corresponds to the `MEETS_BASIC_INTEGRITY` [optional device recognition label](https://developer.android.com/google/play/integrity/verdicts#optional-device-labels). This value represents the most basic level of device integrity, and is the minimum allowed in App Check's standard implementation of Play Integrity. Warning: Because this is an optional response, you **must** first explicitly [opt in your app in the Play Console](https://developer.android.com/google/play/integrity/setup#optional) in order to receive this label. Without this opt-in, **your app may break** for any user whose device is eligible for `MEETS_BASIC_INTEGRITY` but not `MEETS_DEVICE_INTEGRITY`. This API is **not** responsible for any such opt-ins.", + "This level corresponds to the `MEETS_DEVICE_INTEGRITY` [device recognition verdict](https://developer.android.com/google/play/integrity/verdicts#device-integrity-field). Any app integrated with Play Integrity will automatically be eligible to receive this label without any additional action from you. At this level, devices that have the `MEETS_BASIC_INTEGRITY` label but **not** the `MEETS_DEVICE_INTEGRITY` label will be rejected.", + "This level corresponds to the `MEETS_STRONG_INTEGRITY` [optional device recognition label](https://developer.android.com/google/play/integrity/verdicts#optional-device-labels). This value represents the highest level of device integrity. At this level, devices that have the `MEETS_BASIC_INTEGRITY` or `MEETS_DEVICE_INTEGRITY` but **not** the `MEETS_STRONG_INTEGRITY` label will be rejected. Warning: Because this is an optional response, you **must** first explicitly [opt in your app in the Play Console](https://developer.android.com/google/play/integrity/setup#optional) in order to receive this label. Without this opt-in, **your app may break** for any user whose device is eligible for `MEETS_STRONG_INTEGRITY`. This API is **not** responsible for any such opt-ins." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleFirebaseAppcheckV1betaPublicJwk": { "description": "A JWK as specified by [section 4 of RFC 7517](https://tools.ietf.org/html/rfc7517#section-4) and [section 6.3.1 of RFC 7518](https://tools.ietf.org/html/rfc7518#section-6.3.1).", "id": "GoogleFirebaseAppcheckV1betaPublicJwk", @@ -2454,6 +2513,11 @@ "description": "An app's reCAPTCHA v3 configuration object. This configuration is used by ExchangeRecaptchaToken to validate reCAPTCHA tokens issued to apps by reCAPTCHA v3. It also controls certain properties of the returned `AppCheckToken`, such as its ttl.", "id": "GoogleFirebaseAppcheckV1betaRecaptchaConfig", "properties": { + "minValidScore": { + "description": "Specifies a minimum score required for a reCAPTCHA token to be considered valid. If its score is greater than or equal to this value, it will be accepted; otherwise, it will be rejected. The value must be between 0.0 and 1.0. The default value is 0.5.", + "format": "float", + "type": "number" + }, "name": { "description": "Required. The relative resource name of the reCAPTCHA v3 configuration object, in the format: ``` projects/{project_number}/apps/{app_id}/recaptchaConfig ```", "type": "string" @@ -2483,6 +2547,10 @@ "description": "Required. The relative resource name of the reCAPTCHA Enterprise configuration object, in the format: ``` projects/{project_number}/apps/{app_id}/recaptchaEnterpriseConfig ```", "type": "string" }, + "riskAnalysis": { + "$ref": "GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis", + "description": "Specifies risk tolerance and requirements for your application. These settings correspond to requirements on the [**`riskAnalysis`**](https://cloud.google.com/recaptcha/docs/interpret-assessment-website#interpret_assessment) tuple in the assessment obtained from reCAPTCHA Enterprise. The default values for these settings work for most apps, and are recommended." + }, "siteKey": { "description": "The score-based site key [created in reCAPTCHA Enterprise](https://cloud.google.com/recaptcha-enterprise/docs/create-key#creating_a_site_key) used to [invoke reCAPTCHA and generate the reCAPTCHA tokens](https://cloud.google.com/recaptcha-enterprise/docs/instrument-web-pages) for your application. Important: This is *not* the `site_secret` (as it is in reCAPTCHA v3), but rather your score-based reCAPTCHA Enterprise site key.", "type": "string" @@ -2495,10 +2563,27 @@ }, "type": "object" }, + "GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis": { + "description": "A settings object specifying risk tolerance and requirements for your application. These settings correspond to requirements on the [**`riskAnalysis`**](https://cloud.google.com/recaptcha/docs/interpret-assessment-website#interpret_assessment) tuple in the assessment obtained from reCAPTCHA Enterprise. The default values for these settings work for most apps, and are recommended.", + "id": "GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis", + "properties": { + "minValidScore": { + "description": "Specifies a minimum score required for a reCAPTCHA token to be considered valid. If its score is greater than or equal to this value, it will be accepted; otherwise, it will be rejected. The value must be between 0.0 and 1.0. The default value is 0.5.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "GoogleFirebaseAppcheckV1betaRecaptchaV3Config": { "description": "An app's reCAPTCHA v3 configuration object. This configuration is used by ExchangeRecaptchaV3Token to validate reCAPTCHA tokens issued to apps by reCAPTCHA v3. It also controls certain properties of the returned `AppCheckToken`, such as its ttl.", "id": "GoogleFirebaseAppcheckV1betaRecaptchaV3Config", "properties": { + "minValidScore": { + "description": "Specifies a minimum score required for a reCAPTCHA token to be considered valid. If its score is greater than or equal to this value, it will be accepted; otherwise, it will be rejected. The value must be between 0.0 and 1.0. The default value is 0.5.", + "format": "float", + "type": "number" + }, "name": { "description": "Required. The relative resource name of the reCAPTCHA v3 configuration object, in the format: ``` projects/{project_number}/apps/{app_id}/recaptchaV3Config ```", "type": "string" diff --git a/discovery/googleapis_beta/gkehub__v2alpha.json b/discovery/googleapis_beta/gkehub__v2alpha.json index a0316f4c7..338ac393c 100644 --- a/discovery/googleapis_beta/gkehub__v2alpha.json +++ b/discovery/googleapis_beta/gkehub__v2alpha.json @@ -25,7 +25,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250720", + "revision": "20250907", "rootUrl": "https://gkehub.googleapis.com/", "servicePath": "", "title": "GKE Hub API", @@ -148,7 +148,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -628,8 +628,7 @@ "IN_PROGRESS", "SOAKING", "FORCED_SOAKING", - "COMPLETE", - "FORCED_COMPLETE" + "COMPLETE" ], "enumDescriptions": [ "Required by https://linter.aip.dev/126/unspecified.", @@ -638,8 +637,7 @@ "The upgrade is in progress. At the scope level, this means the upgrade is in progress for at least one cluster in the scope.", "The upgrade has finished and is soaking until the soaking time is up. At the scope level, this means at least one cluster is in soaking while the rest are either soaking or complete.", "A cluster will be forced to enter soaking if an upgrade doesn't finish within a certain limit, despite it's actual status.", - "The upgrade has passed all post conditions (soaking). At the scope level, this means all eligible clusters are in COMPLETE status.", - "The upgrade was forced into soaking and the soaking time has passed. This is the equivalent of COMPLETE status for upgrades that were forced into soaking." + "The upgrade has passed all post conditions (soaking). At the scope level, this means all eligible clusters are in COMPLETE status." ], "type": "string" }, @@ -3067,7 +3065,18 @@ "MODERNIZATION_IN_PROGRESS", "MODERNIZATION_COMPLETED", "MODERNIZATION_ABORTED", - "MODERNIZATION_WILL_BE_SCHEDULED" + "MODERNIZATION_PREPARING", + "MODERNIZATION_STALLED", + "MODERNIZATION_PREPARED", + "MODERNIZATION_MIGRATING_WORKLOADS", + "MODERNIZATION_ROLLING_BACK_CLUSTER", + "MODERNIZATION_WILL_BE_SCHEDULED", + "MODERNIZATION_MANUAL", + "MODERNIZATION_ELIGIBLE", + "MODERNIZATION_MODERNIZING", + "MODERNIZATION_MODERNIZED_SOAKING", + "MODERNIZATION_FINALIZED", + "MODERNIZATION_ROLLING_BACK_FLEET" ], "enumDescriptions": [ "Default Unspecified code", @@ -3111,7 +3120,18 @@ "Modernization is in progress for a cluster.", "Modernization is completed for a cluster.", "Modernization is aborted for a cluster.", - "Modernization will be scheduled for a fleet." + "Preparing cluster so that its workloads can be migrated.", + "Modernization is stalled for a cluster.", + "Cluster has been prepared for its workloads to be migrated.", + "Migrating the cluster's workloads to the new implementation.", + "Rollback is in progress for modernization of a cluster.", + "Modernization will be scheduled for a fleet.", + "Fleet is opted out from automated modernization.", + "Fleet is eligible for modernization.", + "Modernization of one or more clusters in a fleet is in progress.", + "Modernization of all the fleet's clusters is complete. Soaking before finalizing the modernization.", + "Modernization is finalized for all clusters in a fleet. Rollback is no longer allowed.", + "Rollback is in progress for modernization of all clusters in a fleet." ], "type": "string" }, @@ -3298,7 +3318,7 @@ "MANAGEMENT_NOT_INSTALLED" ], "enumDescriptions": [ - "Unspecified", + "Unspecified.", "Google should manage my Service Mesh for the cluster.", "User will manually configure their service mesh components.", "Google should remove any managed Service Mesh components from this cluster and deprovision any resources." diff --git a/discovery/googleapis_beta/lifesciences__v2beta.json b/discovery/googleapis_beta/lifesciences__v2beta.json deleted file mode 100644 index eba68dc45..000000000 --- a/discovery/googleapis_beta/lifesciences__v2beta.json +++ /dev/null @@ -1,1223 +0,0 @@ -{ - "auth": { - "oauth2": { - "scopes": { - "https://www.googleapis.com/auth/cloud-platform": { - "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." - } - } - } - }, - "basePath": "", - "baseUrl": "https://lifesciences.googleapis.com/", - "batchPath": "batch", - "canonicalName": "Cloud Life Sciences", - "description": "Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data.", - "discoveryVersion": "v1", - "documentationLink": "https://cloud.google.com/life-sciences", - "icons": { - "x16": "http://www.google.com/images/icons/product/search-16.gif", - "x32": "http://www.google.com/images/icons/product/search-32.gif" - }, - "id": "lifesciences:v2beta", - "kind": "discovery#restDescription", - "name": "lifesciences", - "ownerDomain": "google.com", - "ownerName": "Google", - "protocol": "rest", - "revision": "20250411", - "rootUrl": "https://lifesciences.googleapis.com/", - "servicePath": "", - "title": "Cloud Life Sciences API", - "version": "v2beta", - "version_module": true, - "parameters": { - "$.xgafv": { - "description": "V1 error format.", - "enum": [ - "1", - "2" - ], - "enumDescriptions": [ - "v1 error format", - "v2 error format" - ], - "location": "query", - "type": "string" - }, - "access_token": { - "description": "OAuth access token.", - "location": "query", - "type": "string" - }, - "alt": { - "default": "json", - "description": "Data format for response.", - "enum": [ - "json", - "media", - "proto" - ], - "enumDescriptions": [ - "Responses with Content-Type of application/json", - "Media download with context-dependent Content-Type", - "Responses with Content-Type of application/x-protobuf" - ], - "location": "query", - "type": "string" - }, - "callback": { - "description": "JSONP", - "location": "query", - "type": "string" - }, - "fields": { - "description": "Selector specifying which fields to include in a partial response.", - "location": "query", - "type": "string" - }, - "key": { - "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", - "location": "query", - "type": "string" - }, - "oauth_token": { - "description": "OAuth 2.0 token for the current user.", - "location": "query", - "type": "string" - }, - "prettyPrint": { - "default": "true", - "description": "Returns response with indentations and line breaks.", - "location": "query", - "type": "boolean" - }, - "quotaUser": { - "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", - "location": "query", - "type": "string" - }, - "uploadType": { - "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", - "location": "query", - "type": "string" - }, - "upload_protocol": { - "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", - "location": "query", - "type": "string" - } - }, - "resources": { - "projects": { - "resources": { - "locations": { - "methods": { - "get": { - "description": "Gets information about a location.", - "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}", - "httpMethod": "GET", - "id": "lifesciences.projects.locations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Resource name for the location.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v2beta/{+name}", - "response": { - "$ref": "Location" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists information about the supported locations for this service.", - "flatPath": "v2beta/projects/{projectsId}/locations", - "httpMethod": "GET", - "id": "lifesciences.projects.locations.list", - "parameterOrder": [ - "name" - ], - "parameters": { - "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", - "location": "query", - "repeated": true, - "type": "string" - }, - "filter": { - "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", - "location": "query", - "type": "string" - }, - "name": { - "description": "The resource that owns the locations collection, if applicable.", - "location": "path", - "pattern": "^projects/[^/]+$", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "The maximum number of results to return. If not set, the service selects a default.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", - "location": "query", - "type": "string" - } - }, - "path": "v2beta/{+name}/locations", - "response": { - "$ref": "ListLocationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, - "resources": { - "operations": { - "methods": { - "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients may use Operations.GetOperation or Operations.ListOperations to check whether the cancellation succeeded or the operation completed despite cancellation. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission: * `lifesciences.operations.cancel`", - "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "lifesciences.projects.locations.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v2beta/{+name}:cancel", - "request": { - "$ref": "CancelOperationRequest" - }, - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission: * `lifesciences.operations.get`", - "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "lifesciences.projects.locations.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v2beta/{+name}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists operations that match the specified filter in the request. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission: * `lifesciences.operations.list`", - "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/operations", - "httpMethod": "GET", - "id": "lifesciences.projects.locations.operations.list", - "parameterOrder": [ - "name" - ], - "parameters": { - "filter": { - "description": "A string for filtering Operations. The following filter fields are supported: * createTime: The time this job was created * events: The set of event (names) that have occurred while running the pipeline. The : operator can be used to determine if a particular event has occurred. * error: If the pipeline is running, this value is NULL. Once the pipeline finishes, the value is the standard Google error code. * labels.key or labels.\"key with space\" where key is a label key. * done: If the pipeline is running, this value is false. Once the pipeline finishes, the value is true.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the operation's parent resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "The maximum number of results to return. The maximum value is 256.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The standard list page token.", - "location": "query", - "type": "string" - } - }, - "path": "v2beta/{+name}/operations", - "response": { - "$ref": "ListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "pipelines": { - "methods": { - "run": { - "description": "Runs a pipeline. The returned Operation's metadata field will contain a google.cloud.lifesciences.v2beta.Metadata object describing the status of the pipeline execution. The response field will contain a google.cloud.lifesciences.v2beta.RunPipelineResponse object if the pipeline completes successfully. **Note:** Before you can use this method, the *Life Sciences Service Agent* must have access to your project. This is done automatically when the Cloud Life Sciences API is first enabled, but if you delete this permission you must disable and re-enable the API to grant the Life Sciences Service Agent the required permissions. Authorization requires the following [Google IAM](https://cloud.google.com/iam/) permission: * `lifesciences.workflows.run`", - "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/pipelines:run", - "httpMethod": "POST", - "id": "lifesciences.projects.locations.pipelines.run", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "The project and location that this request should be executed against.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v2beta/{+parent}/pipelines:run", - "request": { - "$ref": "RunPipelineRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - } - } - } - }, - "schemas": { - "Accelerator": { - "description": "Carries information about an accelerator that can be attached to a VM.", - "id": "Accelerator", - "properties": { - "count": { - "description": "How many accelerators of this type to attach.", - "format": "int64", - "type": "string" - }, - "type": { - "description": "The accelerator type string (for example, \"nvidia-tesla-t4\"). Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is attached, the required runtime libraries will be made available to all containers under `/usr/local/nvidia`. The driver version to install must be specified using the NVIDIA driver version parameter on the virtual machine specification. Note that attaching a GPU increases the worker VM startup time by a few minutes.", - "type": "string" - } - }, - "type": "object" - }, - "Action": { - "description": "Specifies a single action that runs a Docker container.", - "id": "Action", - "properties": { - "alwaysRun": { - "description": "By default, after an action fails, no further actions are run. This flag indicates that this action must be run even if the pipeline has already failed. This is useful for actions that copy output files off of the VM or for debugging. Note that no actions will be run if image prefetching fails.", - "type": "boolean" - }, - "blockExternalNetwork": { - "description": "Prevents the container from accessing the external network.", - "type": "boolean" - }, - "commands": { - "description": "If specified, overrides the `CMD` specified in the container. If the container also has an `ENTRYPOINT` the values are used as entrypoint arguments. Otherwise, they are used as a command and arguments to run inside the container.", - "items": { - "type": "string" - }, - "type": "array" - }, - "containerName": { - "description": "An optional name for the container. The container hostname will be set to this name, making it useful for inter-container communication. The name must contain only upper and lowercase alphanumeric characters and hyphens and cannot start with a hyphen.", - "type": "string" - }, - "credentials": { - "$ref": "Secret", - "description": "If the specified image is hosted on a private registry other than Google Container Registry, the credentials required to pull the image must be specified here as an encrypted secret. The secret must decrypt to a JSON-encoded dictionary containing both `username` and `password` keys." - }, - "disableImagePrefetch": { - "description": "All container images are typically downloaded before any actions are executed. This helps prevent typos in URIs or issues like lack of disk space from wasting large amounts of compute resources. If set, this flag prevents the worker from downloading the image until just before the action is executed.", - "type": "boolean" - }, - "disableStandardErrorCapture": { - "description": "A small portion of the container's standard error stream is typically captured and returned inside the `ContainerStoppedEvent`. Setting this flag disables this functionality.", - "type": "boolean" - }, - "enableFuse": { - "description": "Enable access to the FUSE device for this action. Filesystems can then be mounted into disks shared with other actions. The other actions do not need the `enable_fuse` flag to access the mounted filesystem. This has the effect of causing the container to be executed with `CAP_SYS_ADMIN` and exposes `/dev/fuse` to the container, so use it only for containers you trust.", - "type": "boolean" - }, - "encryptedEnvironment": { - "$ref": "Secret", - "description": "The encrypted environment to pass into the container. This environment is merged with values specified in the google.cloud.lifesciences.v2beta.Pipeline message, overwriting any duplicate values. The secret must decrypt to a JSON-encoded dictionary where key-value pairs serve as environment variable names and their values. The decoded environment variables can overwrite the values specified by the `environment` field." - }, - "entrypoint": { - "description": "If specified, overrides the `ENTRYPOINT` specified in the container.", - "type": "string" - }, - "environment": { - "additionalProperties": { - "type": "string" - }, - "description": "The environment to pass into the container. This environment is merged with values specified in the google.cloud.lifesciences.v2beta.Pipeline message, overwriting any duplicate values. In addition to the values passed here, a few other values are automatically injected into the environment. These cannot be hidden or overwritten. `GOOGLE_PIPELINE_FAILED` will be set to \"1\" if the pipeline failed because an action has exited with a non-zero status (and did not have the `IGNORE_EXIT_STATUS` flag set). This can be used to determine if additional debug or logging actions should execute. `GOOGLE_LAST_EXIT_STATUS` will be set to the exit status of the last non-background action that executed. This can be used by workflow engine authors to determine whether an individual action has succeeded or failed.", - "type": "object" - }, - "ignoreExitStatus": { - "description": "Normally, a non-zero exit status causes the pipeline to fail. This flag allows execution of other actions to continue instead.", - "type": "boolean" - }, - "imageUri": { - "description": "Required. The URI to pull the container image from. Note that all images referenced by actions in the pipeline are pulled before the first action runs. If multiple actions reference the same image, it is only pulled once, ensuring that the same image is used for all actions in a single pipeline. The image URI can be either a complete host and image specification (e.g., quay.io/biocontainers/samtools), a library and image name (e.g., google/cloud-sdk) or a bare image name ('bash') to pull from the default library. No schema is required in any of these cases. If the specified image is not public, the service account specified for the Virtual Machine must have access to pull the images from GCR, or appropriate credentials must be specified in the google.cloud.lifesciences.v2beta.Action.credentials field.", - "type": "string" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels to associate with the action. This field is provided to assist workflow engine authors in identifying actions (for example, to indicate what sort of action they perform, such as localization or debugging). They are returned in the operation metadata, but are otherwise ignored.", - "type": "object" - }, - "mounts": { - "description": "A list of mounts to make available to the action. In addition to the values specified here, every action has a special virtual disk mounted under `/google` that contains log files and other operational components. - /google/logs All logs written during the pipeline execution. - /google/logs/output The combined standard output and standard error of all actions run as part of the pipeline execution. - /google/logs/action/*/stdout The complete contents of each individual action's standard output. - /google/logs/action/*/stderr The complete contents of each individual action's standard error output. ", - "items": { - "$ref": "Mount" - }, - "type": "array" - }, - "pidNamespace": { - "description": "An optional identifier for a PID namespace to run the action inside. Multiple actions should use the same string to share a namespace. If unspecified, a separate isolated namespace is used.", - "type": "string" - }, - "portMappings": { - "additionalProperties": { - "format": "int32", - "type": "integer" - }, - "description": "A map of containers to host port mappings for this container. If the container already specifies exposed ports, use the `PUBLISH_EXPOSED_PORTS` flag instead. The host port number must be less than 65536. If it is zero, an unused random port is assigned. To determine the resulting port number, consult the `ContainerStartedEvent` in the operation metadata.", - "type": "object" - }, - "publishExposedPorts": { - "description": "Exposes all ports specified by `EXPOSE` statements in the container. To discover the host side port numbers, consult the `ACTION_STARTED` event in the operation metadata.", - "type": "boolean" - }, - "runInBackground": { - "description": "This flag allows an action to continue running in the background while executing subsequent actions. This is useful to provide services to other actions (or to provide debugging support tools like SSH servers).", - "type": "boolean" - }, - "timeout": { - "description": "The maximum amount of time to give the action to complete. If the action fails to complete before the timeout, it will be terminated and the exit status will be non-zero. The pipeline will continue or terminate based on the rules defined by the `ALWAYS_RUN` and `IGNORE_EXIT_STATUS` flags.", - "format": "google-duration", - "type": "string" - } - }, - "type": "object" - }, - "CancelOperationRequest": { - "description": "The request message for Operations.CancelOperation.", - "id": "CancelOperationRequest", - "properties": {}, - "type": "object" - }, - "ContainerKilledEvent": { - "description": "An event generated when a container is forcibly terminated by the worker. Currently, this only occurs when the container outlives the timeout specified by the user.", - "id": "ContainerKilledEvent", - "properties": { - "actionId": { - "description": "The numeric ID of the action that started the container.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "ContainerStartedEvent": { - "description": "An event generated when a container starts.", - "id": "ContainerStartedEvent", - "properties": { - "actionId": { - "description": "The numeric ID of the action that started this container.", - "format": "int32", - "type": "integer" - }, - "ipAddress": { - "description": "The public IP address that can be used to connect to the container. This field is only populated when at least one port mapping is present. If the instance was created with a private address, this field will be empty even if port mappings exist.", - "type": "string" - }, - "portMappings": { - "additionalProperties": { - "format": "int32", - "type": "integer" - }, - "description": "The container-to-host port mappings installed for this container. This set will contain any ports exposed using the `PUBLISH_EXPOSED_PORTS` flag as well as any specified in the `Action` definition.", - "type": "object" - } - }, - "type": "object" - }, - "ContainerStoppedEvent": { - "description": "An event generated when a container exits.", - "id": "ContainerStoppedEvent", - "properties": { - "actionId": { - "description": "The numeric ID of the action that started this container.", - "format": "int32", - "type": "integer" - }, - "exitStatus": { - "description": "The exit status of the container.", - "format": "int32", - "type": "integer" - }, - "stderr": { - "description": "The tail end of any content written to standard error by the container. If the content emits large amounts of debugging noise or contains sensitive information, you can prevent the content from being printed by setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag. Note that only a small amount of the end of the stream is captured here. The entire stream is stored in the `/google/logs` directory mounted into each action, and can be copied off the machine as described elsewhere.", - "type": "string" - } - }, - "type": "object" - }, - "DelayedEvent": { - "description": "An event generated whenever a resource limitation or transient error delays execution of a pipeline that was otherwise ready to run.", - "id": "DelayedEvent", - "properties": { - "cause": { - "description": "A textual description of the cause of the delay. The string can change without notice because it is often generated by another service (such as Compute Engine).", - "type": "string" - }, - "metrics": { - "description": "If the delay was caused by a resource shortage, this field lists the Compute Engine metrics that are preventing this operation from running (for example, `CPUS` or `INSTANCES`). If the particular metric is not known, a single `UNKNOWN` metric will be present.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "Disk": { - "description": "Carries information about a disk that can be attached to a VM. See https://cloud.google.com/compute/docs/disks/performance for more information about disk type, size, and performance considerations. Specify either `Volume` or `Disk`, but not both.", - "id": "Disk", - "properties": { - "name": { - "description": "A user-supplied name for the disk. Used when mounting the disk into actions. The name must contain only upper and lowercase alphanumeric characters and hyphens and cannot start with a hyphen.", - "type": "string" - }, - "sizeGb": { - "description": "The size, in GB, of the disk to attach. If the size is not specified, a default is chosen to ensure reasonable I/O performance. If the disk type is specified as `local-ssd`, multiple local drives are automatically combined to provide the requested size. Note, however, that each physical SSD is 375GB in size, and no more than 8 drives can be attached to a single instance.", - "format": "int32", - "type": "integer" - }, - "sourceImage": { - "description": "An optional image to put on the disk before attaching it to the VM.", - "type": "string" - }, - "type": { - "description": "The Compute Engine disk type. If unspecified, `pd-standard` is used.", - "type": "string" - } - }, - "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" - }, - "Event": { - "description": "Carries information about events that occur during pipeline execution.", - "id": "Event", - "properties": { - "containerKilled": { - "$ref": "ContainerKilledEvent", - "description": "See google.cloud.lifesciences.v2beta.ContainerKilledEvent." - }, - "containerStarted": { - "$ref": "ContainerStartedEvent", - "description": "See google.cloud.lifesciences.v2beta.ContainerStartedEvent." - }, - "containerStopped": { - "$ref": "ContainerStoppedEvent", - "description": "See google.cloud.lifesciences.v2beta.ContainerStoppedEvent." - }, - "delayed": { - "$ref": "DelayedEvent", - "description": "See google.cloud.lifesciences.v2beta.DelayedEvent." - }, - "description": { - "description": "A human-readable description of the event. Note that these strings can change at any time without notice. Any application logic must use the information in the `details` field.", - "type": "string" - }, - "failed": { - "$ref": "FailedEvent", - "description": "See google.cloud.lifesciences.v2beta.FailedEvent." - }, - "pullStarted": { - "$ref": "PullStartedEvent", - "description": "See google.cloud.lifesciences.v2beta.PullStartedEvent." - }, - "pullStopped": { - "$ref": "PullStoppedEvent", - "description": "See google.cloud.lifesciences.v2beta.PullStoppedEvent." - }, - "timestamp": { - "description": "The time at which the event occurred.", - "format": "google-datetime", - "type": "string" - }, - "unexpectedExitStatus": { - "$ref": "UnexpectedExitStatusEvent", - "description": "See google.cloud.lifesciences.v2beta.UnexpectedExitStatusEvent." - }, - "workerAssigned": { - "$ref": "WorkerAssignedEvent", - "description": "See google.cloud.lifesciences.v2beta.WorkerAssignedEvent." - }, - "workerReleased": { - "$ref": "WorkerReleasedEvent", - "description": "See google.cloud.lifesciences.v2beta.WorkerReleasedEvent." - } - }, - "type": "object" - }, - "ExistingDisk": { - "description": "Configuration for an existing disk to be attached to the VM.", - "id": "ExistingDisk", - "properties": { - "disk": { - "description": "If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If `disk` does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form `zones//disks/`, where `` is the zone in which the instance is allocated. The disk must be ext4 formatted. If all `Mount` references to this disk have the `read_only` flag set to true, the disk will be attached in `read-only` mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared.", - "type": "string" - } - }, - "type": "object" - }, - "FailedEvent": { - "description": "An event generated when the execution of a pipeline has failed. Note that other events can continue to occur after this event.", - "id": "FailedEvent", - "properties": { - "cause": { - "description": "The human-readable description of the cause of the failure.", - "type": "string" - }, - "code": { - "description": "The Google standard error code that best describes this failure.", - "enum": [ - "OK", - "CANCELLED", - "UNKNOWN", - "INVALID_ARGUMENT", - "DEADLINE_EXCEEDED", - "NOT_FOUND", - "ALREADY_EXISTS", - "PERMISSION_DENIED", - "UNAUTHENTICATED", - "RESOURCE_EXHAUSTED", - "FAILED_PRECONDITION", - "ABORTED", - "OUT_OF_RANGE", - "UNIMPLEMENTED", - "INTERNAL", - "UNAVAILABLE", - "DATA_LOSS" - ], - "enumDescriptions": [ - "Not an error; returned on success. HTTP Mapping: 200 OK", - "The operation was cancelled, typically by the caller. HTTP Mapping: 499 Client Closed Request", - "Unknown error. For example, this error may be returned when a `Status` value received from another address space belongs to an error space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error. HTTP Mapping: 500 Internal Server Error", - "The client specified an invalid argument. Note that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name). HTTP Mapping: 400 Bad Request", - "The deadline expired before the operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire. HTTP Mapping: 504 Gateway Timeout", - "Some requested entity (e.g., file or directory) was not found. Note to server developers: if a request is denied for an entire class of users, such as gradual feature rollout or undocumented allowlist, `NOT_FOUND` may be used. If a request is denied for some users within a class of users, such as user-based access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404 Not Found", - "The entity that a client attempted to create (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict", - "The caller does not have permission to execute the specified operation. `PERMISSION_DENIED` must not be used for rejections caused by exhausting some resource (use `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED` must not be used if the caller can not be identified (use `UNAUTHENTICATED` instead for those errors). This error code does not imply the request is valid or the requested entity exists or satisfies other pre-conditions. HTTP Mapping: 403 Forbidden", - "The request does not have valid authentication credentials for the operation. HTTP Mapping: 401 Unauthorized", - "Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. HTTP Mapping: 429 Too Many Requests", - "The operation was rejected because the system is not in a state required for the operation's execution. For example, the directory to be deleted is non-empty, an rmdir operation is applied to a non-directory, etc. Service implementors can use the following guidelines to decide between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can retry just the failing call. (b) Use `ABORTED` if the client should retry at a higher level. For example, when a client-specified test-and-set fails, indicating the client should restart a read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the client should not retry until the system state has been explicitly fixed. For example, if an \"rmdir\" fails because the directory is non-empty, `FAILED_PRECONDITION` should be returned since the client should not retry unless the files are deleted from the directory. HTTP Mapping: 400 Bad Request", - "The operation was aborted, typically due to a concurrency issue such as a sequencer check failure or transaction abort. See the guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: 409 Conflict", - "The operation was attempted past the valid range. E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, this error indicates a problem that may be fixed if the system state changes. For example, a 32-bit file system will generate `INVALID_ARGUMENT` if asked to read at an offset that is not in the range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to read from an offset past the current file size. There is a fair bit of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific error) when it applies so that callers who are iterating through a space can easily look for an `OUT_OF_RANGE` error to detect when they are done. HTTP Mapping: 400 Bad Request", - "The operation is not implemented or is not supported/enabled in this service. HTTP Mapping: 501 Not Implemented", - "Internal errors. This means that some invariants expected by the underlying system have been broken. This error code is reserved for serious errors. HTTP Mapping: 500 Internal Server Error", - "The service is currently unavailable. This is most likely a transient condition, which can be corrected by retrying with a backoff. Note that it is not always safe to retry non-idempotent operations. See the guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: 503 Service Unavailable", - "Unrecoverable data loss or corruption. HTTP Mapping: 500 Internal Server Error" - ], - "type": "string" - } - }, - "type": "object" - }, - "ListLocationsResponse": { - "description": "The response message for Locations.ListLocations.", - "id": "ListLocationsResponse", - "properties": { - "locations": { - "description": "A list of locations that matches the specified filter in the request.", - "items": { - "$ref": "Location" - }, - "type": "array" - }, - "nextPageToken": { - "description": "The standard List next-page token.", - "type": "string" - } - }, - "type": "object" - }, - "ListOperationsResponse": { - "description": "The response message for Operations.ListOperations.", - "id": "ListOperationsResponse", - "properties": { - "nextPageToken": { - "description": "The standard List next-page token.", - "type": "string" - }, - "operations": { - "description": "A list of operations that matches the specified filter in the request.", - "items": { - "$ref": "Operation" - }, - "type": "array" - } - }, - "type": "object" - }, - "Location": { - "description": "A resource that represents a Google Cloud location.", - "id": "Location", - "properties": { - "displayName": { - "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", - "type": "string" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", - "type": "object" - }, - "locationId": { - "description": "The canonical id for this location. For example: `\"us-east1\"`.", - "type": "string" - }, - "metadata": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", - "type": "any" - }, - "description": "Service-specific metadata. For example the available capacity at the given location.", - "type": "object" - }, - "name": { - "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`", - "type": "string" - } - }, - "type": "object" - }, - "Metadata": { - "description": "Carries information about the pipeline execution that is returned in the long running operation's metadata field.", - "id": "Metadata", - "properties": { - "createTime": { - "description": "The time at which the operation was created by the API.", - "format": "google-datetime", - "type": "string" - }, - "endTime": { - "description": "The time at which execution was completed and resources were cleaned up.", - "format": "google-datetime", - "type": "string" - }, - "events": { - "description": "The list of events that have happened so far during the execution of this operation.", - "items": { - "$ref": "Event" - }, - "type": "array" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "The user-defined labels associated with this operation.", - "type": "object" - }, - "pipeline": { - "$ref": "Pipeline", - "description": "The pipeline this operation represents." - }, - "pubSubTopic": { - "description": "The name of the Cloud Pub/Sub topic where notifications of operation status changes are sent.", - "type": "string" - }, - "startTime": { - "description": "The first time at which resources were allocated to execute the pipeline.", - "format": "google-datetime", - "type": "string" - } - }, - "type": "object" - }, - "Mount": { - "description": "Carries information about a particular disk mount inside a container.", - "id": "Mount", - "properties": { - "disk": { - "description": "The name of the disk to mount, as specified in the resources section.", - "type": "string" - }, - "path": { - "description": "The path to mount the disk inside the container.", - "type": "string" - }, - "readOnly": { - "description": "If true, the disk is mounted read-only inside the container.", - "type": "boolean" - } - }, - "type": "object" - }, - "NFSMount": { - "description": "Configuration for an `NFSMount` to be attached to the VM.", - "id": "NFSMount", - "properties": { - "target": { - "description": "A target NFS mount. The target must be specified as `address:/mount\".", - "type": "string" - } - }, - "type": "object" - }, - "Network": { - "description": "VM networking options.", - "id": "Network", - "properties": { - "network": { - "description": "The network name to attach the VM's network interface to. The value will be prefixed with `global/networks/` unless it contains a `/`, in which case it is assumed to be a fully specified network resource URL. If unspecified, the global default network is used.", - "type": "string" - }, - "subnetwork": { - "description": "If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here. The value is prefixed with `regions/*/subnetworks/` unless it contains a `/`, in which case it is assumed to be a fully specified subnetwork resource URL. If the `*` character appears in the value, it is replaced with the region that the virtual machine has been allocated in.", - "type": "string" - }, - "usePrivateAddress": { - "description": "If set to true, do not attach a public IP address to the VM. Note that without a public IP address, additional configuration is required to allow the VM to access Google services. See https://cloud.google.com/vpc/docs/configure-private-google-access for more information.", - "type": "boolean" - } - }, - "type": "object" - }, - "Operation": { - "description": "This resource represents a long-running operation that is the result of a network API call.", - "id": "Operation", - "properties": { - "done": { - "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", - "type": "boolean" - }, - "error": { - "$ref": "Status", - "description": "The error result of the operation in case of failure or cancellation." - }, - "metadata": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", - "type": "any" - }, - "description": "An Metadata object. This will always be returned with the Operation.", - "type": "object" - }, - "name": { - "description": "The server-assigned name for the operation. This may be passed to the other operation methods to retrieve information about the operation's status.", - "type": "string" - }, - "response": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", - "type": "any" - }, - "description": "An Empty object.", - "type": "object" - } - }, - "type": "object" - }, - "PersistentDisk": { - "description": "Configuration for a persistent disk to be attached to the VM. See https://cloud.google.com/compute/docs/disks/performance for more information about disk type, size, and performance considerations.", - "id": "PersistentDisk", - "properties": { - "sizeGb": { - "description": "The size, in GB, of the disk to attach. If the size is not specified, a default is chosen to ensure reasonable I/O performance. If the disk type is specified as `local-ssd`, multiple local drives are automatically combined to provide the requested size. Note, however, that each physical SSD is 375GB in size, and no more than 8 drives can be attached to a single instance.", - "format": "int32", - "type": "integer" - }, - "sourceImage": { - "description": "An image to put on the disk before attaching it to the VM.", - "type": "string" - }, - "type": { - "description": "The Compute Engine disk type. If unspecified, `pd-standard` is used.", - "type": "string" - } - }, - "type": "object" - }, - "Pipeline": { - "description": "Specifies a series of actions to execute, expressed as Docker containers.", - "id": "Pipeline", - "properties": { - "actions": { - "description": "The list of actions to execute, in the order they are specified.", - "items": { - "$ref": "Action" - }, - "type": "array" - }, - "encryptedEnvironment": { - "$ref": "Secret", - "description": "The encrypted environment to pass into every action. Each action can also specify its own encrypted environment. The secret must decrypt to a JSON-encoded dictionary where key-value pairs serve as environment variable names and their values. The decoded environment variables can overwrite the values specified by the `environment` field." - }, - "environment": { - "additionalProperties": { - "type": "string" - }, - "description": "The environment to pass into every action. Each action can also specify additional environment variables but cannot delete an entry from this map (though they can overwrite it with a different value).", - "type": "object" - }, - "resources": { - "$ref": "Resources", - "description": "The resources required for execution." - }, - "timeout": { - "description": "The maximum amount of time to give the pipeline to complete. This includes the time spent waiting for a worker to be allocated. If the pipeline fails to complete before the timeout, it will be cancelled and the error code will be set to DEADLINE_EXCEEDED. If unspecified, it will default to 7 days.", - "format": "google-duration", - "type": "string" - } - }, - "type": "object" - }, - "PullStartedEvent": { - "description": "An event generated when the worker starts pulling an image.", - "id": "PullStartedEvent", - "properties": { - "imageUri": { - "description": "The URI of the image that was pulled.", - "type": "string" - } - }, - "type": "object" - }, - "PullStoppedEvent": { - "description": "An event generated when the worker stops pulling an image.", - "id": "PullStoppedEvent", - "properties": { - "imageUri": { - "description": "The URI of the image that was pulled.", - "type": "string" - } - }, - "type": "object" - }, - "Resources": { - "description": "The system resources for the pipeline run. At least one zone or region must be specified or the pipeline run will fail.", - "id": "Resources", - "properties": { - "regions": { - "description": "The list of regions allowed for VM allocation. If set, the `zones` field must not be set.", - "items": { - "type": "string" - }, - "type": "array" - }, - "virtualMachine": { - "$ref": "VirtualMachine", - "description": "The virtual machine specification." - }, - "zones": { - "description": "The list of zones allowed for VM allocation. If set, the `regions` field must not be set.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "RunPipelineRequest": { - "description": "The arguments to the `RunPipeline` method. The requesting user must have the `iam.serviceAccounts.actAs` permission for the Cloud Life Sciences service account or the request will fail.", - "id": "RunPipelineRequest", - "properties": { - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "User-defined labels to associate with the returned operation. These labels are not propagated to any Google Cloud Platform resources used by the operation, and can be modified at any time. To associate labels with resources created while executing the operation, see the appropriate resource message (for example, `VirtualMachine`).", - "type": "object" - }, - "pipeline": { - "$ref": "Pipeline", - "description": "Required. The description of the pipeline to run." - }, - "pubSubTopic": { - "description": "The name of an existing Pub/Sub topic. The server will publish messages to this topic whenever the status of the operation changes. The Life Sciences Service Agent account must have publisher permissions to the specified topic or notifications will not be sent.", - "type": "string" - } - }, - "type": "object" - }, - "RunPipelineResponse": { - "description": "The response to the RunPipeline method, returned in the operation's result field on success.", - "id": "RunPipelineResponse", - "properties": {}, - "type": "object" - }, - "Secret": { - "description": "Holds encrypted information that is only decrypted and stored in RAM by the worker VM when running the pipeline.", - "id": "Secret", - "properties": { - "cipherText": { - "description": "The value of the cipherText response from the `encrypt` method. This field is intentionally unaudited.", - "type": "string" - }, - "keyName": { - "description": "The name of the Cloud KMS key that will be used to decrypt the secret value. The VM service account must have the required permissions and authentication scopes to invoke the `decrypt` method on the specified key.", - "type": "string" - } - }, - "type": "object" - }, - "ServiceAccount": { - "description": "Carries information about a Google Cloud service account.", - "id": "ServiceAccount", - "properties": { - "email": { - "description": "Email address of the service account. If not specified, the default Compute Engine service account for the project will be used.", - "type": "string" - }, - "scopes": { - "description": "List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "Status": { - "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", - "id": "Status", - "properties": { - "code": { - "description": "The status code, which should be an enum value of google.rpc.Code.", - "format": "int32", - "type": "integer" - }, - "details": { - "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", - "items": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", - "type": "any" - }, - "type": "object" - }, - "type": "array" - }, - "message": { - "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", - "type": "string" - } - }, - "type": "object" - }, - "UnexpectedExitStatusEvent": { - "description": "An event generated when the execution of a container results in a non-zero exit status that was not otherwise ignored. Execution will continue, but only actions that are flagged as `ALWAYS_RUN` will be executed. Other actions will be skipped.", - "id": "UnexpectedExitStatusEvent", - "properties": { - "actionId": { - "description": "The numeric ID of the action that started the container.", - "format": "int32", - "type": "integer" - }, - "exitStatus": { - "description": "The exit status of the container.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "VirtualMachine": { - "description": "Carries information about a Compute Engine VM resource.", - "id": "VirtualMachine", - "properties": { - "accelerators": { - "description": "The list of accelerators to attach to the VM.", - "items": { - "$ref": "Accelerator" - }, - "type": "array" - }, - "bootDiskSizeGb": { - "description": "The size of the boot disk, in GB. The boot disk must be large enough to accommodate all of the Docker images from each action in the pipeline at the same time. If not specified, a small but reasonable default value is used.", - "format": "int32", - "type": "integer" - }, - "bootImage": { - "description": "The host operating system image to use. Currently, only Container-Optimized OS images can be used. The default value is `projects/cos-cloud/global/images/family/cos-stable`, which selects the latest stable release of Container-Optimized OS. This option is provided to allow testing against the beta release of the operating system to ensure that the new version does not interact negatively with production pipelines. To test a pipeline against the beta release of Container-Optimized OS, use the value `projects/cos-cloud/global/images/family/cos-beta`.", - "type": "string" - }, - "cpuPlatform": { - "description": "The CPU platform to request. An instance based on a newer platform can be allocated, but never one with fewer capabilities. The value of this parameter must be a valid Compute Engine CPU platform name (such as \"Intel Skylake\"). This parameter is only useful for carefully optimized work loads where the CPU platform has a significant impact. For more information about the effect of this parameter, see https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.", - "type": "string" - }, - "disks": { - "description": "The list of disks to create and attach to the VM. Specify either the `volumes[]` field or the `disks[]` field, but not both.", - "items": { - "$ref": "Disk" - }, - "type": "array" - }, - "dockerCacheImages": { - "description": "The Compute Engine Disk Images to use as a Docker cache. The disks will be mounted into the Docker folder in a way that the images present in the cache will not need to be pulled. The digests of the cached images must match those of the tags used or the latest version will still be pulled. The root directory of the ext4 image must contain `image` and `overlay2` directories copied from the Docker directory of a VM where the desired Docker images have already been pulled. Any images pulled that are not cached will be stored on the first cache disk instead of the boot disk. Only a single image is supported.", - "items": { - "type": "string" - }, - "type": "array" - }, - "enableStackdriverMonitoring": { - "description": "Whether Stackdriver monitoring should be enabled on the VM.", - "type": "boolean" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional set of labels to apply to the VM and any attached disk resources. These labels must adhere to the [name and value restrictions](https://cloud.google.com/compute/docs/labeling-resources) on VM labels imposed by Compute Engine. Labels keys with the prefix 'google-' are reserved for use by Google. Labels applied at creation time to the VM. Applied on a best-effort basis to attached disk resources shortly after VM creation.", - "type": "object" - }, - "machineType": { - "description": "Required. The machine type of the virtual machine to create. Must be the short name of a standard machine type (such as \"n1-standard-1\") or a custom machine type (such as \"custom-1-4096\", where \"1\" indicates the number of vCPUs and \"4096\" indicates the memory in MB). See [Creating an instance with a custom machine type](https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create) for more specifications on creating a custom machine type.", - "type": "string" - }, - "network": { - "$ref": "Network", - "description": "The VM network configuration." - }, - "nvidiaDriverVersion": { - "deprecated": true, - "description": "The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator. The version specified here must be compatible with the GPU libraries contained in the container being executed, and must be one of the drivers hosted in the `nvidia-drivers-us-public` bucket on Google Cloud Storage.", - "type": "string" - }, - "preemptible": { - "description": "If true, allocate a preemptible VM.", - "type": "boolean" - }, - "reservation": { - "description": "If specified, the VM will only be allocated inside the matching reservation. It will fail if the VM parameters don't match the reservation.", - "type": "string" - }, - "serviceAccount": { - "$ref": "ServiceAccount", - "description": "The service account to install on the VM. This account does not need any permissions other than those required by the pipeline." - }, - "volumes": { - "description": "The list of disks and other storage to create or attach to the VM. Specify either the `volumes[]` field or the `disks[]` field, but not both.", - "items": { - "$ref": "Volume" - }, - "type": "array" - } - }, - "type": "object" - }, - "Volume": { - "description": "Carries information about storage that can be attached to a VM. Specify either `Volume` or `Disk`, but not both.", - "id": "Volume", - "properties": { - "existingDisk": { - "$ref": "ExistingDisk", - "description": "Configuration for a existing disk." - }, - "nfsMount": { - "$ref": "NFSMount", - "description": "Configuration for an NFS mount." - }, - "persistentDisk": { - "$ref": "PersistentDisk", - "description": "Configuration for a persistent disk." - }, - "volume": { - "description": "A user-supplied name for the volume. Used when mounting the volume into `Actions`. The name must contain only upper and lowercase alphanumeric characters and hyphens and cannot start with a hyphen.", - "type": "string" - } - }, - "type": "object" - }, - "WorkerAssignedEvent": { - "description": "An event generated after a worker VM has been assigned to run the pipeline.", - "id": "WorkerAssignedEvent", - "properties": { - "instance": { - "description": "The worker's instance name.", - "type": "string" - }, - "machineType": { - "description": "The machine type that was assigned for the worker.", - "type": "string" - }, - "zone": { - "description": "The zone the worker is running in.", - "type": "string" - } - }, - "type": "object" - }, - "WorkerReleasedEvent": { - "description": "An event generated when the worker VM that was assigned to the pipeline has been released (deleted).", - "id": "WorkerReleasedEvent", - "properties": { - "instance": { - "description": "The worker's instance name.", - "type": "string" - }, - "zone": { - "description": "The zone the worker was running in.", - "type": "string" - } - }, - "type": "object" - } - } -} diff --git a/discovery/googleapis_beta/sqladmin__v1beta4.json b/discovery/googleapis_beta/sqladmin__v1beta4.json index c3dac9522..df8b8dc68 100644 --- a/discovery/googleapis_beta/sqladmin__v1beta4.json +++ b/discovery/googleapis_beta/sqladmin__v1beta4.json @@ -28,7 +28,7 @@ "ownerDomain": "google.com", "ownerName": "Google", "protocol": "rest", - "revision": "20250613", + "revision": "20250908", "rootUrl": "https://sqladmin.googleapis.com/", "servicePath": "", "title": "Cloud SQL Admin API", @@ -1113,6 +1113,41 @@ "https://www.googleapis.com/auth/sqlservice.admin" ] }, + "executeSql": { + "description": "Execute SQL statements.", + "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/executeSql", + "httpMethod": "POST", + "id": "sql.instances.executeSql", + "parameterOrder": [ + "project", + "instance" + ], + "parameters": { + "instance": { + "description": "Required. Database instance ID. This does not include the project ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Required. Project ID of the project that contains the instance.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "sql/v1beta4/projects/{project}/instances/{instance}/executeSql", + "request": { + "$ref": "ExecuteSqlPayload" + }, + "response": { + "$ref": "SqlInstancesExecuteSqlResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/sqlservice.admin" + ] + }, "export": { "description": "Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.", "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/export", @@ -1533,6 +1568,21 @@ "required": true, "type": "string" }, + "mode": { + "description": "Optional. Reset SSL mode to use.", + "enum": [ + "RESET_SSL_MODE_UNSPECIFIED", + "ALL", + "SYNC_FROM_PRIMARY" + ], + "enumDescriptions": [ + "Reset SSL mode is not specified.", + "Refresh all TLS configs. This is the default behaviour.", + "Refreshes the replication-related TLS configuration settings provided by the primary instance. Not applicable to on-premises replication instances." + ], + "location": "query", + "type": "string" + }, "project": { "description": "Project ID of the project that contains the instance.", "location": "path", @@ -1991,6 +2041,12 @@ "location": "path", "required": true, "type": "string" + }, + "sourceInstanceDeletionTime": { + "description": "The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.", + "format": "google-datetime", + "location": "query", + "type": "string" } }, "path": "sql/v1beta4/projects/{project}/instances/{instance}/getLatestRecoveryTime", @@ -2711,7 +2767,7 @@ "type": "object" }, "Backup": { - "description": "A backup resource. Next ID: 30", + "description": "A backup resource.", "id": "Backup", "properties": { "backupInterval": { @@ -3554,6 +3610,26 @@ "preferredZone": { "description": "Optional. Copy clone and point-in-time recovery clone of an instance to the specified zone. If no zone is specified, clone to the same primary zone as the source instance.", "type": "string" + }, + "sourceInstanceDeletionTime": { + "description": "The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "Column": { + "description": "Contains the name and datatype of a column.", + "id": "Column", + "properties": { + "name": { + "description": "Name of the column.", + "type": "string" + }, + "type": { + "description": "Datatype of the column.", + "type": "string" } }, "type": "object" @@ -3804,6 +3880,22 @@ "description": "This is always `sql#connectSettings`.", "type": "string" }, + "mdxProtocolSupport": { + "description": "Optional. Output only. mdx_protocol_support controls how the client uses metadata exchange when connecting to the instance. The values in the list representing parts of the MDX protocol that are supported by this instance. When the list is empty, the instance does not support MDX, so the client must not send an MDX request. The default is empty.", + "items": { + "enum": [ + "MDX_PROTOCOL_SUPPORT_UNSPECIFIED", + "CLIENT_PROTOCOL_TYPE" + ], + "enumDescriptions": [ + "Not specified.", + "Client should send the client protocol type in the MDX request." + ], + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "nodeCount": { "description": "The number of read pool nodes in a read pool.", "format": "int32", @@ -3862,6 +3954,12 @@ "$ref": "ConnectionPoolFlags" }, "type": "array" + }, + "poolerCount": { + "description": "Output only. Number of connection poolers.", + "format": "int32", + "readOnly": true, + "type": "integer" } }, "type": "object" @@ -3983,10 +4081,6 @@ ], "type": "string" }, - "clearNetwork": { - "description": "Clears private network settings when the instance is restored.", - "type": "boolean" - }, "connectionName": { "description": "Connection name of the Cloud SQL instance used in connection strings.", "type": "string" @@ -4661,6 +4755,48 @@ "properties": {}, "type": "object" }, + "ExecuteSqlPayload": { + "description": "The request payload used to execute SQL statements.", + "id": "ExecuteSqlPayload", + "properties": { + "autoIamAuthn": { + "description": "Optional. When set to true, the API caller identity associated with the request is used for database authentication. The API caller must be an IAM user in the database.", + "type": "boolean" + }, + "database": { + "description": "Optional. Name of the database on which the statement will be executed.", + "type": "string" + }, + "partialResultMode": { + "description": "Optional. Controls how the API should respond when the SQL execution result exceeds 10 MB. The default mode is to throw an error.", + "enum": [ + "PARTIAL_RESULT_MODE_UNSPECIFIED", + "FAIL_PARTIAL_RESULT", + "ALLOW_PARTIAL_RESULT" + ], + "enumDescriptions": [ + "Unspecified mode, effectively the same as `FAIL_PARTIAL_RESULT`.", + "Throw an error if the result exceeds 10 MB. Don't return the result.", + "Return a truncated result and set `partial_result` to true if the result exceeds 10 MB. Don't throw an error." + ], + "type": "string" + }, + "rowLimit": { + "description": "Optional. The maximum number of rows returned per SQL statement.", + "format": "int64", + "type": "string" + }, + "sqlStatement": { + "description": "Required. SQL statements to run on the database. It can be a single statement or a sequence of statements separated by semicolons.", + "type": "string" + }, + "user": { + "description": "Optional. The name of an existing database user to connect to the database. When `auto_iam_authn` is set to true, this field is ignored and the API caller's IAM user is used.", + "type": "string" + } + }, + "type": "object" + }, "ExportContext": { "description": "Database instance export context.", "id": "ExportContext", @@ -4881,6 +5017,22 @@ }, "type": "object" }, + "FinalBackupConfig": { + "description": "Config used to determine the final backup settings for the instance.", + "id": "FinalBackupConfig", + "properties": { + "enabled": { + "description": "Whether the final backup is enabled for the instance.", + "type": "boolean" + }, + "retentionDays": { + "description": "The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "Flag": { "description": "A flag resource.", "id": "Flag", @@ -5647,6 +5799,13 @@ "$ref": "RestoreBackupContext", "description": "Parameters required to perform the restore backup operation." }, + "restoreInstanceClearOverridesFieldNames": { + "description": "Optional. This field has the same purpose as restore_instance_settings, changes any instance settings stored in the backup you are restoring from. With the difference that these fields are cleared in the settings.", + "items": { + "type": "string" + }, + "type": "array" + }, "restoreInstanceSettings": { "$ref": "DatabaseInstance", "description": "Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances." @@ -5905,6 +6064,33 @@ }, "type": "object" }, + "Message": { + "description": "Represents a notice or warning message from the database.", + "id": "Message", + "properties": { + "message": { + "description": "The full message string. For PostgreSQL, this is a formatted string that may include severity, code, and the notice/warning message. For MySQL, this contains the warning message.", + "type": "string" + }, + "severity": { + "description": "The severity of the message (e.g., \"NOTICE\" for PostgreSQL, \"WARNING\" for MySQL).", + "type": "string" + } + }, + "type": "object" + }, + "Metadata": { + "description": "The additional metadata information regarding the execution of the SQL statements.", + "id": "Metadata", + "properties": { + "sqlStatementExecutionTime": { + "description": "The time taken to execute the SQL statements.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "MySqlReplicaConfiguration": { "description": "Read-replica configuration specific to MySQL databases.", "id": "MySqlReplicaConfiguration", @@ -6480,7 +6666,7 @@ "id": "PointInTimeRestoreContext", "properties": { "allocatedIpRange": { - "description": "Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: \"google-managed-services-default\". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035) standards. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use. http://go/speckle-subnet-picker-clone", + "description": "Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: \"google-managed-services-default\". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035) standards. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.", "type": "string" }, "datasource": { @@ -6643,6 +6829,67 @@ }, "type": "object" }, + "QueryResult": { + "description": "QueryResult contains the result of executing a single SQL statement.", + "id": "QueryResult", + "properties": { + "columns": { + "description": "List of columns included in the result. This also includes the data type of the column.", + "items": { + "$ref": "Column" + }, + "type": "array" + }, + "message": { + "description": "Message related to the SQL execution result.", + "type": "string" + }, + "partialResult": { + "description": "Set to true if the SQL execution's result is truncated due to size limits.", + "type": "boolean" + }, + "rows": { + "description": "Rows returned by the SQL statement.", + "items": { + "$ref": "Row" + }, + "type": "array" + } + }, + "type": "object" + }, + "ReadPoolAutoScaleConfig": { + "description": "The read pool auto-scale configuration.", + "id": "ReadPoolAutoScaleConfig", + "properties": { + "disableScaleIn": { + "description": "Indicates whether read pool auto scaling supports scale in operations (removing nodes).", + "type": "boolean" + }, + "enabled": { + "description": "Indicates whether read pool auto scaling is enabled.", + "type": "boolean" + }, + "maxNodeCount": { + "description": "Maximum number of read pool nodes to be maintained.", + "format": "int32", + "type": "integer" + }, + "minNodeCount": { + "description": "Minimum number of read pool nodes to be maintained.", + "format": "int32", + "type": "integer" + }, + "targetMetrics": { + "description": "Optional. Target metrics for read pool auto scaling.", + "items": { + "$ref": "TargetMetric" + }, + "type": "array" + } + }, + "type": "object" + }, "ReplicaConfiguration": { "description": "Read-replica configuration for connecting to the primary instance.", "id": "ReplicaConfiguration", @@ -6768,6 +7015,20 @@ }, "type": "object" }, + "Row": { + "description": "Contains the values for a row.", + "id": "Row", + "properties": { + "values": { + "description": "The values for the row.", + "items": { + "$ref": "Value" + }, + "type": "array" + } + }, + "type": "object" + }, "SelectedObjects": { "description": "A list of objects that the user selects for replication from an external source instance.", "id": "SelectedObjects", @@ -6954,6 +7215,10 @@ "description": "Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances.", "type": "boolean" }, + "finalBackupConfig": { + "$ref": "FinalBackupConfig", + "description": "Optional. The final backup configuration for the instance." + }, "insightsConfig": { "$ref": "InsightsConfig", "description": "Insights configuration, for now relevant only for Postgres." @@ -6992,6 +7257,10 @@ ], "type": "string" }, + "readPoolAutoScaleConfig": { + "$ref": "ReadPoolAutoScaleConfig", + "description": "Optional. The read pool auto-scale configuration for the instance." + }, "replicationLagMaxSeconds": { "description": "Optional. Configuration value for recreation of replica after certain replication lag.", "format": "int32", @@ -7056,6 +7325,17 @@ "description": "Active Directory configuration, relevant only for Cloud SQL for SQL Server.", "id": "SqlActiveDirectoryConfig", "properties": { + "adminCredentialSecretName": { + "description": "Optional. The secret manager key storing the administrator credential. (e.g., projects/{project}/secrets/{secret}).", + "type": "string" + }, + "dnsServers": { + "description": "Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.", + "items": { + "type": "string" + }, + "type": "array" + }, "domain": { "description": "The name of the domain (e.g., mydomain.com).", "type": "string" @@ -7063,6 +7343,24 @@ "kind": { "description": "This is always sql#activeDirectoryConfig.", "type": "string" + }, + "mode": { + "description": "Optional. The mode of the Active Directory configuration.", + "enum": [ + "ACTIVE_DIRECTORY_MODE_UNSPECIFIED", + "MANAGED_ACTIVE_DIRECTORY", + "SELF_MANAGED_ACTIVE_DIRECTORY" + ], + "enumDescriptions": [ + "Unspecified mode.", + "Managed Active Directory mode. This is the fallback option to maintain backward compatibility.", + "Self-managed Active Directory mode." + ], + "type": "string" + }, + "organizationalUnit": { + "description": "Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.", + "type": "string" } }, "type": "object" @@ -7136,7 +7434,11 @@ "UNSUPPORTED_SYSTEM_OBJECTS", "UNSUPPORTED_TABLES_WITH_REPLICA_IDENTITY", "SELECTED_OBJECTS_NOT_EXIST_ON_SOURCE", - "PSC_ONLY_INSTANCE_WITH_NO_NETWORK_ATTACHMENT_URI" + "PSC_ONLY_INSTANCE_WITH_NO_NETWORK_ATTACHMENT_URI", + "SELECTED_OBJECTS_REFERENCE_UNSELECTED_OBJECTS", + "PROMPT_DELETE_EXISTING", + "WILL_DELETE_EXISTING", + "PG_DDL_REPLICATION_INSUFFICIENT_PRIVILEGE" ], "enumDescriptions": [ "", @@ -7193,7 +7495,11 @@ "The selected objects include system objects that aren't supported for migration.", "The source database has tables with the FULL or NOTHING replica identity. Before starting your migration, either remove the identity or change it to DEFAULT. Note that this is an error and will block the migration.", "The selected objects don't exist on the source instance.", - "PSC only destination instance does not have a network attachment URI." + "PSC only destination instance does not have a network attachment URI.", + "Selected objects reference unselected objects. Based on their object type (foreign key constraint or view), selected objects will fail during migration.", + "The migration will delete existing data in the replica; set replica_overwrite_enabled in the request to acknowledge this. This is an error. MySQL only.", + "The migration will delete existing data in the replica; replica_overwrite_enabled was set in the request acknowledging this. This is a warning rather than an error. MySQL only.", + "The replication user is missing specific privileges to setup DDL replication. (e.g. CREATE EVENT TRIGGER, CREATE SCHEMA) for PostgreSQL." ], "type": "string" } @@ -7211,6 +7517,31 @@ }, "type": "object" }, + "SqlInstancesExecuteSqlResponse": { + "description": "Execute SQL statements response.", + "id": "SqlInstancesExecuteSqlResponse", + "properties": { + "messages": { + "description": "A list of notices and warnings generated during query execution. For PostgreSQL, this includes all notices and warnings. For MySQL, this includes warnings generated by the last executed statement. To retrieve all warnings for a multi-statement query, `SHOW WARNINGS` must be executed after each statement.", + "items": { + "$ref": "Message" + }, + "type": "array" + }, + "metadata": { + "$ref": "Metadata", + "description": "The additional metadata information regarding the execution of the SQL statements." + }, + "results": { + "description": "The list of results after executing all the SQL statements.", + "items": { + "$ref": "QueryResult" + }, + "type": "array" + } + }, + "type": "object" + }, "SqlInstancesGetDiskShrinkConfigResponse": { "description": "Instance get disk shrink config response.", "id": "SqlInstancesGetDiskShrinkConfigResponse", @@ -7235,6 +7566,11 @@ "description": "Instance get latest recovery time response.", "id": "SqlInstancesGetLatestRecoveryTimeResponse", "properties": { + "earliestRecoveryTime": { + "description": "Timestamp, identifies the earliest recovery time of the source instance.", + "format": "google-datetime", + "type": "string" + }, "kind": { "description": "This is always `sql#getLatestRecoveryTime`.", "type": "string" @@ -7296,6 +7632,10 @@ "$ref": "MySqlSyncConfig", "description": "MySQL-specific settings for start external sync." }, + "replicaOverwriteEnabled": { + "description": "Optional. MySQL only. True if end-user has confirmed that this SES call will wipe replica databases overlapping with the proposed selected_objects. If this field is not set and there are both overlapping and additional databases proposed, an error will be returned.", + "type": "boolean" + }, "skipVerification": { "description": "Whether to skip the verification step (VESS).", "type": "boolean" @@ -7704,6 +8044,22 @@ }, "type": "object" }, + "TargetMetric": { + "description": "Target metric for read pool auto scaling.", + "id": "TargetMetric", + "properties": { + "metric": { + "description": "The metric name to be used for auto scaling.", + "type": "string" + }, + "targetValue": { + "description": "The target value for the metric.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "Tier": { "description": "A Google Cloud SQL service tier resource.", "id": "Tier", @@ -7797,6 +8153,20 @@ "description": "Optional. The host from which the user can connect. For `insert` operations, host defaults to an empty string. For `update` operations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.", "type": "string" }, + "iamStatus": { + "description": "Indicates if a group is active or inactive for IAM database authentication.", + "enum": [ + "IAM_STATUS_UNSPECIFIED", + "INACTIVE", + "ACTIVE" + ], + "enumDescriptions": [ + "The default value for users that are not of type CLOUD_IAM_GROUP. Only CLOUD_IAM_GROUP users will be inactive or active. Users with an IamStatus of IAM_STATUS_UNSPECIFIED will not display whether they are active or inactive as that is not applicable to them.", + "INACTIVE indicates a group is not available for IAM database authentication.", + "ACTIVE indicates a group is available for IAM database authentication." + ], + "type": "string" + }, "instance": { "description": "The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for *update* because it is already specified on the URL.", "type": "string" @@ -7899,6 +8269,21 @@ } }, "type": "object" + }, + "Value": { + "description": "The cell value of the table.", + "id": "Value", + "properties": { + "nullValue": { + "description": "If cell value is null, then this flag will be set to true.", + "type": "boolean" + }, + "value": { + "description": "The cell value represented in string format.", + "type": "string" + } + }, + "type": "object" } } } diff --git a/generated/googleapis/CHANGELOG.md b/generated/googleapis/CHANGELOG.md index 5b0e070de..df18bb318 100644 --- a/generated/googleapis/CHANGELOG.md +++ b/generated/googleapis/CHANGELOG.md @@ -1,3 +1,157 @@ +## 15.0.0 + +### APIs + +- `accessapproval` - updated `v1` +- `admin.directory` - updated `v1` +- `admin.reports` - updated `v1` +- `aiplatform` - updated `v1` +- `alloydb` - updated `v1` +- `analyticshub` - updated `v1` +- `androidmanagement` - updated `v1` +- `androidpublisher` - updated `v3` +- `apigateway` - updated `v1` +- `apigee` - updated `v1` +- `apihub` - updated `v1` +- `appengine` - updated `v1` +- `apphub` - updated `v1` +- `authorizedbuyersmarketplace` - updated `v1` +- `backupdr` - updated `v1` +- `batch` - updated `v1` +- `beyondcorp` - updated `v1` +- `bigquery` - updated `v2` +- `bigquerydatatransfer` - updated `v1` +- `bigqueryreservation` - updated `v1` +- `bigtableadmin` - updated `v2` +- `certificatemanager` - updated `v1` +- `chat` - updated `v1` +- `chromemanagement` - updated `v1` +- `classroom` - updated `v1` +- `cloudbuild` - updated `v1` +- `cloudbuild` - updated `v2` +- `cloudchannel` - updated `v1` +- `clouddeploy` - updated `v1` +- `cloudfunctions` - updated `v1` +- `cloudfunctions` - updated `v2` +- `cloudidentity` - updated `v1` +- `cloudkms` - updated `v1` +- `composer` - updated `v1` +- `compute` - updated `v1` +- `config` - updated `v1` +- `connectors` - updated `v1` +- `connectors` - updated `v2` +- `contactcenterinsights` - updated `v1` +- `container` - updated `v1` +- `containeranalysis` - updated `v1` +- `datafusion` - updated `v1` +- `datamigration` - updated `v1` +- `dataplex` - updated `v1` +- `dataproc` - updated `v1` +- `datastore` - updated `v1` +- `datastream` - updated `v1` +- `deploymentmanager` - updated `v2` +- `developerconnect` - updated `v1` +- `dfareporting` - updated `v4` +- `dialogflow` - updated `v2` +- `dialogflow` - updated `v3` +- `digitalassetlinks` - updated `v1` +- `displayvideo` - updated `v2` +- `displayvideo` - updated `v3` +- `displayvideo` - updated `v4` +- `dlp` - updated `v2` +- `dns` - updated `v1` +- `documentai` - updated `v1` +- `drive` - updated `v2` +- `drive` - updated `v3` +- `driveactivity` - updated `v2` +- `drivelabels` - updated `v2` +- `eventarc` - updated `v1` +- `file` - updated `v1` +- `firebaseappcheck` - updated `v1` +- `firebaseappdistribution` - updated `v1` +- `firebaseapphosting` - updated `v1` +- `firebasedataconnect` - updated `v1` +- `firestore` - updated `v1` +- `fitness` - updated `v1` +- `gkebackup` - updated `v1` +- `gkehub` - updated `v1` +- `gkehub` - updated `v2` +- `gkeonprem` - updated `v1` +- `groupsmigration` - updated `v1` +- `healthcare` - updated `v1` +- `iam` - updated `v1` +- `language` - updated `v1` +- `language` - updated `v2` +- `logging` - updated `v2` +- `looker` - updated `v1` +- `managedkafka` - updated `v1` +- `manufacturers` - updated `v1` +- `memcache` - updated `v1` +- `metastore` - updated `v1` +- `migrationcenter` - updated `v1` +- `ml` - updated `v1` +- `monitoring` - updated `v3` +- `mybusinessverifications` - updated `v1` +- `netapp` - updated `v1` +- `networkconnectivity` - updated `v1` +- `networkmanagement` - updated `v1` +- `networksecurity` - updated `v1` +- `observability` - updated `v1` +- `ondemandscanning` - updated `v1` +- `oracledatabase` - updated `v1` +- `orgpolicy` - updated `v2` +- `parallelstore` - updated `v1` +- `parametermanager` - updated `v1` +- `paymentsresellersubscription` - updated `v1` +- `places` - updated `v1` +- `playintegrity` - updated `v1` +- `policysimulator` - updated `v1` +- `privateca` - updated `v1` +- `pubsub` - updated `v1` +- `redis` - updated `v1` +- `retail` - updated `v2` +- `run` - updated `v1` +- `run` - updated `v2` +- `script` - updated `v1` +- `secretmanager` - updated `v1` +- `securitycenter` - updated `v1` +- `securityposture` - updated `v1` +- `servicecontrol` - updated `v1` +- `servicecontrol` - updated `v2` +- `servicedirectory` - updated `v1` +- `solar` - updated `v1` +- `storage` - updated `v1` +- `storagebatchoperations` - updated `v1` +- `storagetransfer` - updated `v1` +- `sts` - updated `v1` +- `tagmanager` - updated `v1` +- `tagmanager` - updated `v2` +- `testing` - updated `v1` +- `texttospeech` - updated `v1` +- `tpu` - updated `v1` +- `tpu` - updated `v2` +- `trafficdirector` - updated `v2` +- `trafficdirector` - updated `v3` +- `versionhistory` - updated `v1` +- `vision` - updated `v1` +- `vmmigration` - updated `v1` +- `vmwareengine` - updated `v1` +- `vpcaccess` - updated `v1` +- `walletobjects` - updated `v1` +- `workflows` - updated `v1` +- `workloadmanager` - updated `v1` +- `workstations` - updated `v1` +- `adexchangebuyer2` - updated `v2beta1` +- `analyticsadmin` - updated `v1alpha` +- `cloudsupport` - updated `v2beta` +- `dataflow` - updated `v1b3` +- `datastream` - updated `v1alpha1` +- `firebaseappcheck` - updated v1beta` +- `gkehub` - updated `v2alpha` +- `lifesciences` - updated `v2beta` +- `sqladmin` - updated `v1beta4` +- `lifesciences` - removed `v2beta`. + ## 14.1.0-wip - Require `sdk: ^3.7.0` @@ -5,7 +159,7 @@ ## 14.0.0 - Require Dart 3.6 or later. -- Note *many* APIs were removed in this release due to changes in Google API +- Note _many_ APIs were removed in this release due to changes in Google API security practices. ### APIs @@ -50,34 +204,34 @@ ## 13.1.0 - - `logging` - removed (*BROKEN*) `tail()` function call. - - `dataportability` - new! - - `speech` - added `v2` +- `logging` - removed (_BROKEN_) `tail()` function call. +- `dataportability` - new! +- `speech` - added `v2` ## 13.0.0 - - `apphub` - new! - - `bigqueryconnection` - new! - - `displayvideo` - Removed v1 (v2, v3 still exist) - - `walletobjects` - new! - - `workspaceevents` - new! +- `apphub` - new! +- `bigqueryconnection` - new! +- `displayvideo` - Removed v1 (v2, v3 still exist) +- `walletobjects` - new! +- `workspaceevents` - new! ## 12.0.0 - - `alloydb` - new! - - `backupdr` - new! - - `biglake` - new! - - `bigquerydatapolicy` - new! - - `cloudbuild` - added `v2` - - `displayvideo` - added `v3` - - `gameservices` - Removed! - - `language` - added `v2` - - `looker` - new! - - `rapidmigrationassessment` - new! - - `safebrowsing` - added `v5` - - `trafficdirector` - added `v3` - - `vmwareengine` - new! - - `workstations` - new! +- `alloydb` - new! +- `backupdr` - new! +- `biglake` - new! +- `bigquerydatapolicy` - new! +- `cloudbuild` - added `v2` +- `displayvideo` - added `v3` +- `gameservices` - Removed! +- `language` - added `v2` +- `looker` - new! +- `rapidmigrationassessment` - new! +- `safebrowsing` - added `v5` +- `trafficdirector` - added `v3` +- `vmwareengine` - new! +- `workstations` - new! ## 11.4.0 @@ -204,7 +358,7 @@ ## 7.0.0 -- Removed *many* types defined in the source library JSON definition, but that +- Removed _many_ types defined in the source library JSON definition, but that were not used by the API. - Drop unusable `Firestore` `listen` function and related types. [#77](https://github.com/google/googleapis.dart/issues/77) @@ -250,7 +404,7 @@ ### API changes -- `adexchangebuyer` - **removed** +- `adexchangebuyer` - **removed** - `contactcenterinsights` - new! - `mybusinessbusinessinformation` - new! - `mybusinessnotifications` - new! diff --git a/generated/googleapis/README.md b/generated/googleapis/README.md index 35c123796..0783a03d1 100644 --- a/generated/googleapis/README.md +++ b/generated/googleapis/README.md @@ -18,1957 +18,1957 @@ package. Views Abusive Experience Report data, and gets a list of sites that have a significant number of abusive experiences. - [Original documentation](https://developers.google.com/abusive-experience-report/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/abusiveexperiencereport_v1/abusiveexperiencereport_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/abusiveexperiencereport_v1/abusiveexperiencereport_v1-library.html) #### Accelerated Mobile Pages (AMP) URL API - `acceleratedmobilepageurl/v1` Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s). - [Original documentation](https://developers.google.com/amp/cache/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/acceleratedmobilepageurl_v1/acceleratedmobilepageurl_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/acceleratedmobilepageurl_v1/acceleratedmobilepageurl_v1-library.html) #### Access Approval API - `accessapproval/v1` An API for controlling access to data by Google personnel. - [Original documentation](https://cloud.google.com/assured-workloads/access-approval/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/accessapproval_v1/accessapproval_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/accessapproval_v1/accessapproval_v1-library.html) #### Access Context Manager API - `accesscontextmanager/v1` An API for setting attribute based access control to requests to Google Cloud services. *Warning:* Do not mix *v1alpha* and *v1* API usage in the same access policy. The v1alpha API supports new Access Context Manager features, which may have different attributes or behaviors that are not supported by v1. The practice of mixed API usage within a policy may result in the inability to update that policy, including any access levels or service perimeters belonging to it. It is not recommended to use both v1 and v1alpha for modifying policies with critical service perimeters. Modifications using v1alpha should be limited to policies with non-production/non-critical service perimeters. - [Original documentation](https://cloud.google.com/access-context-manager/docs/reference/rest/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/accesscontextmanager_v1/accesscontextmanager_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/accesscontextmanager_v1/accesscontextmanager_v1-library.html) #### Address Validation API - `addressvalidation/v1` The Address Validation API allows developers to verify the accuracy of addresses. Given an address, it returns information about the correctness of the components of the parsed address, a geocode, and a verdict on the deliverability of the parsed address. - [Original documentation](https://developers.google.com/maps/documentation/addressvalidation) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/addressvalidation_v1/addressvalidation_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/addressvalidation_v1/addressvalidation_v1-library.html) #### Ad Experience Report API - `adexperiencereport/v1` Views Ad Experience Report data, and gets a list of sites that have a significant number of annoying ads. - [Original documentation](https://developers.google.com/ad-experience-report/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/adexperiencereport_v1/adexperiencereport_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/adexperiencereport_v1/adexperiencereport_v1-library.html) #### Admin SDK API - `admin/datatransfer_v1` Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain. - [Original documentation](https://developers.google.com/workspace/admin/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/admin_datatransfer_v1/admin_datatransfer_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/admin_datatransfer_v1/admin_datatransfer_v1-library.html) #### Admin SDK API - `admin/directory_v1` Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain. - [Original documentation](https://developers.google.com/workspace/admin/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/admin_directory_v1/admin_directory_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/admin_directory_v1/admin_directory_v1-library.html) #### Admin SDK API - `admin/reports_v1` Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain. - [Original documentation](https://developers.google.com/workspace/admin/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/admin_reports_v1/admin_reports_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/admin_reports_v1/admin_reports_v1-library.html) #### AdMob API - `admob/v1` The AdMob API allows publishers to programmatically get information about their AdMob account. - [Original documentation](https://developers.google.com/admob/api/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/admob_v1/admob_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/admob_v1/admob_v1-library.html) #### AdSense Management API - `adsense/v2` The AdSense Management API allows publishers to access their inventory and run earnings and performance reports. - [Original documentation](https://developers.google.com/adsense/management/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/adsense_v2/adsense_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/adsense_v2/adsense_v2-library.html) #### AdSense Platform API - `adsenseplatform/v1` - [Original documentation](https://developers.google.com/adsense/platforms/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/adsenseplatform_v1/adsenseplatform_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/adsenseplatform_v1/adsenseplatform_v1-library.html) #### Advisory Notifications API - `advisorynotifications/v1` An API for accessing Advisory Notifications in Google Cloud - [Original documentation](https://cloud.google.com/advisory-notifications) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/advisorynotifications_v1/advisorynotifications_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/advisorynotifications_v1/advisorynotifications_v1-library.html) #### Vertex AI API - `aiplatform/v1` Train high-quality custom machine learning models with minimal machine learning expertise and effort. - [Original documentation](https://cloud.google.com/vertex-ai/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/aiplatform_v1/aiplatform_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/aiplatform_v1/aiplatform_v1-library.html) #### Air Quality API - `airquality/v1` The Air Quality API. - [Original documentation](https://developers.google.com/maps/documentation/air-quality) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/airquality_v1/airquality_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/airquality_v1/airquality_v1-library.html) #### AlloyDB API - `alloydb/v1` AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases. - [Original documentation](https://cloud.google.com/alloydb/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/alloydb_v1/alloydb_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/alloydb_v1/alloydb_v1-library.html) #### ![Logo](https://www.google.com/images/icons/product/analytics-16.png) Google Analytics API - `analytics/v3` Views and manages your Google Analytics data. - [Original documentation](https://developers.google.com/analytics/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/analytics_v3/analytics_v3-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/analytics_v3/analytics_v3-library.html) #### Analytics Hub API - `analyticshub/v1` Exchange data and analytics assets securely and efficiently. - [Original documentation](https://cloud.google.com/bigquery/docs/analytics-hub-introduction) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/analyticshub_v1/analyticshub_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/analyticshub_v1/analyticshub_v1-library.html) #### Android Device Provisioning Partner API - `androiddeviceprovisioning/v1` Automates Android zero-touch enrollment for device resellers, customers, and EMMs. - [Original documentation](https://developers.google.com/zero-touch/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/androiddeviceprovisioning_v1/androiddeviceprovisioning_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/androiddeviceprovisioning_v1/androiddeviceprovisioning_v1-library.html) #### Google Play EMM API - `androidenterprise/v1` Manages the deployment of apps to Android Enterprise devices. - [Original documentation](https://developers.google.com/android/work/play/emm-api) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/androidenterprise_v1/androidenterprise_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/androidenterprise_v1/androidenterprise_v1-library.html) #### Android Management API - `androidmanagement/v1` The Android Management API provides remote enterprise management of Android devices and apps. - [Original documentation](https://developers.google.com/android/management) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/androidmanagement_v1/androidmanagement_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/androidmanagement_v1/androidmanagement_v1-library.html) #### Google Play Android Developer API - `androidpublisher/v3` Lets Android application developers access their Google Play accounts. At a high level, the expected workflow is to "insert" an Edit, make changes as necessary, and then "commit" it. - [Original documentation](https://developers.google.com/android-publisher) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/androidpublisher_v3/androidpublisher_v3-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/androidpublisher_v3/androidpublisher_v3-library.html) #### API Gateway API - `apigateway/v1` - [Original documentation](https://cloud.google.com/api-gateway/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/apigateway_v1/apigateway_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/apigateway_v1/apigateway_v1-library.html) #### Apigee API - `apigee/v1` Use the Apigee API to programmatically develop and manage APIs with a set of RESTful operations. Develop and secure API proxies, deploy and undeploy API proxy revisions, monitor APIs, configure environments, manage users, and more. Note: This product is available as a free trial for a time period of 60 days. - [Original documentation](https://cloud.google.com/apigee-api-management/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/apigee_v1/apigee_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/apigee_v1/apigee_v1-library.html) #### Apigee Registry API - `apigeeregistry/v1` - [Original documentation](https://cloud.google.com/apigee/docs/api-hub/what-is-api-hub) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/apigeeregistry_v1/apigeeregistry_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/apigeeregistry_v1/apigeeregistry_v1-library.html) #### API hub API - `apihub/v1` - [Original documentation](https://cloud.google.com/apigee/docs/api-hub/what-is-api-hub) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/apihub_v1/apihub_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/apihub_v1/apihub_v1-library.html) #### API Keys API - `apikeys/v2` Manages the API keys associated with developer projects. - [Original documentation](https://cloud.google.com/api-keys/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/apikeys_v2/apikeys_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/apikeys_v2/apikeys_v2-library.html) #### App Engine Admin API - `appengine/v1` Provisions and manages developers' App Engine applications. - [Original documentation](https://cloud.google.com/appengine/docs/admin-api/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/appengine_v1/appengine_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/appengine_v1/appengine_v1-library.html) #### App Hub API - `apphub/v1` - [Original documentation](https://cloud.google.com/app-hub/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/apphub_v1/apphub_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/apphub_v1/apphub_v1-library.html) #### Places Aggregate API - `areainsights/v1` Places Aggregate API. - [Original documentation](https://developers.google.com/maps/documentation/places-aggregate/overview) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/areainsights_v1/areainsights_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/areainsights_v1/areainsights_v1-library.html) #### Artifact Registry API - `artifactregistry/v1` Store and manage build artifacts in a scalable and integrated service built on Google infrastructure. - [Original documentation](https://cloud.google.com/artifacts/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/artifactregistry_v1/artifactregistry_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/artifactregistry_v1/artifactregistry_v1-library.html) #### Assured Workloads API - `assuredworkloads/v1` - [Original documentation](https://cloud.google.com/learnmoreurl) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/assuredworkloads_v1/assuredworkloads_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/assuredworkloads_v1/assuredworkloads_v1-library.html) #### Authorized Buyers Marketplace API - `authorizedbuyersmarketplace/v1` The Authorized Buyers Marketplace API lets buyers programmatically discover inventory; propose, retrieve and negotiate deals with publishers. - [Original documentation](https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/authorizedbuyersmarketplace_v1/authorizedbuyersmarketplace_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/authorizedbuyersmarketplace_v1/authorizedbuyersmarketplace_v1-library.html) #### Backup and DR Service API - `backupdr/v1` - [Original documentation](https://cloud.google.com/backup-disaster-recovery) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/backupdr_v1/backupdr_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/backupdr_v1/backupdr_v1-library.html) #### Bare Metal Solution API - `baremetalsolution/v2` Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center. - [Original documentation](https://cloud.google.com/bare-metal) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/baremetalsolution_v2/baremetalsolution_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/baremetalsolution_v2/baremetalsolution_v2-library.html) #### Batch API - `batch/v1` An API to manage the running of Batch resources on Google Cloud Platform. - [Original documentation](https://cloud.google.com/batch/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/batch_v1/batch_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/batch_v1/batch_v1-library.html) #### BeyondCorp API - `beyondcorp/v1` Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity solutions. - [Original documentation](https://cloud.google.com/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/beyondcorp_v1/beyondcorp_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/beyondcorp_v1/beyondcorp_v1-library.html) #### BigLake API - `biglake/v1` The BigLake API provides access to BigLake Metastore, a serverless, fully managed, and highly available metastore for open-source data that can be used for querying Apache Iceberg tables in BigQuery. - [Original documentation](https://cloud.google.com/bigquery/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/biglake_v1/biglake_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/biglake_v1/biglake_v1-library.html) #### BigQuery API - `bigquery/v2` A data platform for customers to create, manage, share and query data. - [Original documentation](https://cloud.google.com/bigquery/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/bigquery_v2/bigquery_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/bigquery_v2/bigquery_v2-library.html) #### BigQuery Connection API - `bigqueryconnection/v1` Allows users to manage BigQuery connections to external data sources. - [Original documentation](https://cloud.google.com/bigquery/docs/connections-api-intro) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/bigqueryconnection_v1/bigqueryconnection_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/bigqueryconnection_v1/bigqueryconnection_v1-library.html) #### BigQuery Data Policy API - `bigquerydatapolicy/v1` Allows users to manage BigQuery data policies. - [Original documentation](https://cloud.google.com/bigquery/docs/column-data-masking) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/bigquerydatapolicy_v1/bigquerydatapolicy_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/bigquerydatapolicy_v1/bigquerydatapolicy_v1-library.html) #### BigQuery Data Transfer API - `bigquerydatatransfer/v1` Schedule queries or transfer external data from SaaS applications to Google BigQuery on a regular basis. - [Original documentation](https://cloud.google.com/bigquery-transfer/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/bigquerydatatransfer_v1/bigquerydatatransfer_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/bigquerydatatransfer_v1/bigquerydatatransfer_v1-library.html) #### BigQuery Reservation API - `bigqueryreservation/v1` A service to modify your BigQuery reservations. - [Original documentation](https://cloud.google.com/bigquery/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/bigqueryreservation_v1/bigqueryreservation_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/bigqueryreservation_v1/bigqueryreservation_v1-library.html) #### Cloud Bigtable Admin API - `bigtableadmin/v2` Administer your Cloud Bigtable tables and instances. - [Original documentation](https://cloud.google.com/bigtable/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/bigtableadmin_v2/bigtableadmin_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/bigtableadmin_v2/bigtableadmin_v2-library.html) #### Cloud Billing Budget API - `billingbudgets/v1` The Cloud Billing Budget API stores Cloud Billing budgets, which define a budget plan and the rules to execute as spend is tracked against that plan. - [Original documentation](https://cloud.google.com/billing/docs/how-to/budget-api-overview) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/billingbudgets_v1/billingbudgets_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/billingbudgets_v1/billingbudgets_v1-library.html) #### Binary Authorization API - `binaryauthorization/v1` The management interface for Binary Authorization, a service that provides policy-based deployment validation and control for images deployed to Google Kubernetes Engine (GKE), Anthos Service Mesh, Anthos Clusters, and Cloud Run. - [Original documentation](https://cloud.google.com/binary-authorization/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/binaryauthorization_v1/binaryauthorization_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/binaryauthorization_v1/binaryauthorization_v1-library.html) #### Blockchain Node Engine API - `blockchainnodeengine/v1` - [Original documentation](https://cloud.google.com/blockchain-node-engine) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/blockchainnodeengine_v1/blockchainnodeengine_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/blockchainnodeengine_v1/blockchainnodeengine_v1-library.html) #### Blogger API - `blogger/v3` The Blogger API provides access to posts, comments and pages of a Blogger blog. - [Original documentation](https://developers.google.com/blogger/docs/3.0/getting_started) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/blogger_v3/blogger_v3-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/blogger_v3/blogger_v3-library.html) #### Books API - `books/v1` The Google Books API allows clients to access the Google Books repository. - [Original documentation](https://code.google.com/apis/books/docs/v1/getting_started.html) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/books_v1/books_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/books_v1/books_v1-library.html) #### Business Profile Performance API - `businessprofileperformance/v1` The Business Profile Performance API allows merchants to fetch performance reports about their business profile on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. - [Original documentation](https://developers.google.com/my-business/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/businessprofileperformance_v1/businessprofileperformance_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/businessprofileperformance_v1/businessprofileperformance_v1-library.html) #### Calendar API - `calendar/v3` Manipulates events and other calendar data. - [Original documentation](https://developers.google.com/workspace/calendar/firstapp) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/calendar_v3/calendar_v3-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/calendar_v3/calendar_v3-library.html) #### Certificate Manager API - `certificatemanager/v1` - [Original documentation](https://cloud.google.com/certificate-manager) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/certificatemanager_v1/certificatemanager_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/certificatemanager_v1/certificatemanager_v1-library.html) #### Google Chat API - `chat/v1` The Google Chat API lets you build Chat apps to integrate your services with Google Chat and manage Chat resources such as spaces, members, and messages. - [Original documentation](https://developers.google.com/hangouts/chat) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/chat_v1/chat_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/chat_v1/chat_v1-library.html) #### Chrome Management API - `chromemanagement/v1` The Chrome Management API is a suite of services that allows Chrome administrators to view, manage and gain insights on their Chrome OS and Chrome Browser devices. - [Original documentation](https://developers.google.com/chrome/management/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/chromemanagement_v1/chromemanagement_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/chromemanagement_v1/chromemanagement_v1-library.html) #### Chrome Policy API - `chromepolicy/v1` The Chrome Policy API is a suite of services that allows Chrome administrators to control the policies applied to their managed Chrome OS devices and Chrome browsers. - [Original documentation](https://developers.google.com/chrome/policy) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/chromepolicy_v1/chromepolicy_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/chromepolicy_v1/chromepolicy_v1-library.html) #### Chrome UX Report API - `chromeuxreport/v1` The Chrome UX Report API lets you view real user experience data for millions of websites. - [Original documentation](https://developers.google.com/web/tools/chrome-user-experience-report/api/reference) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/chromeuxreport_v1/chromeuxreport_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/chromeuxreport_v1/chromeuxreport_v1-library.html) #### Google Civic Information API - `civicinfo/v2` Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses. - [Original documentation](https://developers.google.com/civic-information/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/civicinfo_v2/civicinfo_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/civicinfo_v2/civicinfo_v2-library.html) #### Google Classroom API - `classroom/v1` Manages classes, rosters, and invitations in Google Classroom. - [Original documentation](https://developers.google.com/workspace/classroom/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/classroom_v1/classroom_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/classroom_v1/classroom_v1-library.html) #### Cloud Asset API - `cloudasset/v1` The Cloud Asset API manages the history and inventory of Google Cloud resources. - [Original documentation](https://cloud.google.com/asset-inventory/docs/quickstart) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudasset_v1/cloudasset_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudasset_v1/cloudasset_v1-library.html) #### Cloud Billing API - `cloudbilling/v1` Allows developers to manage billing for their Google Cloud Platform projects programmatically. - [Original documentation](https://cloud.google.com/billing/docs/apis) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudbilling_v1/cloudbilling_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudbilling_v1/cloudbilling_v1-library.html) #### Cloud Build API - `cloudbuild/v1` Creates and manages builds on Google Cloud Platform. - [Original documentation](https://cloud.google.com/cloud-build/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudbuild_v1/cloudbuild_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudbuild_v1/cloudbuild_v1-library.html) #### Cloud Build API - `cloudbuild/v2` Creates and manages builds on Google Cloud Platform. - [Original documentation](https://cloud.google.com/cloud-build/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudbuild_v2/cloudbuild_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudbuild_v2/cloudbuild_v2-library.html) #### Cloud Channel API - `cloudchannel/v1` The Cloud Channel API enables Google Cloud partners to have a single unified resale platform and APIs across all of Google Cloud including GCP, Workspace, Maps and Chrome. - [Original documentation](https://cloud.google.com/channel) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudchannel_v1/cloudchannel_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudchannel_v1/cloudchannel_v1-library.html) #### Cloud Controls Partner API - `cloudcontrolspartner/v1` Provides insights about your customers and their Assured Workloads based on your Sovereign Controls by Partners offering. - [Original documentation](https://cloud.google.com/sovereign-controls-by-partners/docs/sovereign-partners/reference/rest) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudcontrolspartner_v1/cloudcontrolspartner_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudcontrolspartner_v1/cloudcontrolspartner_v1-library.html) #### Cloud Deploy API - `clouddeploy/v1` - [Original documentation](https://cloud.google.com/deploy/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/clouddeploy_v1/clouddeploy_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/clouddeploy_v1/clouddeploy_v1-library.html) #### Cloud Functions API - `cloudfunctions/v1` Manages lightweight user-provided functions executed in response to events. - [Original documentation](https://cloud.google.com/functions) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudfunctions_v1/cloudfunctions_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudfunctions_v1/cloudfunctions_v1-library.html) #### Cloud Functions API - `cloudfunctions/v2` Manages lightweight user-provided functions executed in response to events. - [Original documentation](https://cloud.google.com/functions) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudfunctions_v2/cloudfunctions_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudfunctions_v2/cloudfunctions_v2-library.html) #### Cloud Identity API - `cloudidentity/v1` API for provisioning and managing identity resources. - [Original documentation](https://cloud.google.com/identity/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudidentity_v1/cloudidentity_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudidentity_v1/cloudidentity_v1-library.html) #### Cloud Key Management Service (KMS) API - `cloudkms/v1` Manages keys and performs cryptographic operations in a central cloud service, for direct use by other cloud resources and applications. - [Original documentation](https://cloud.google.com/kms/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudkms_v1/cloudkms_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudkms_v1/cloudkms_v1-library.html) #### Cloud Profiler API - `cloudprofiler/v2` Manages continuous profiling information. - [Original documentation](https://cloud.google.com/profiler/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudprofiler_v2/cloudprofiler_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudprofiler_v2/cloudprofiler_v2-library.html) #### Cloud Resource Manager API - `cloudresourcemanager/v1` Creates, reads, and updates metadata for Google Cloud Platform resource containers. - [Original documentation](https://cloud.google.com/resource-manager) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudresourcemanager_v1/cloudresourcemanager_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudresourcemanager_v1/cloudresourcemanager_v1-library.html) #### Cloud Resource Manager API - `cloudresourcemanager/v2` Creates, reads, and updates metadata for Google Cloud Platform resource containers. - [Original documentation](https://cloud.google.com/resource-manager) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudresourcemanager_v2/cloudresourcemanager_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudresourcemanager_v2/cloudresourcemanager_v2-library.html) #### Cloud Resource Manager API - `cloudresourcemanager/v3` Creates, reads, and updates metadata for Google Cloud Platform resource containers. - [Original documentation](https://cloud.google.com/resource-manager) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudresourcemanager_v3/cloudresourcemanager_v3-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudresourcemanager_v3/cloudresourcemanager_v3-library.html) #### Cloud Scheduler API - `cloudscheduler/v1` Creates and manages jobs run on a regular recurring schedule. - [Original documentation](https://cloud.google.com/scheduler/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudscheduler_v1/cloudscheduler_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudscheduler_v1/cloudscheduler_v1-library.html) #### Cloud Search API - `cloudsearch/v1` Cloud Search provides cloud-based search capabilities over Google Workspace data. The Cloud Search API allows indexing of non-Google Workspace data into Cloud Search. - [Original documentation](https://developers.google.com/cloud-search/docs/guides/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudsearch_v1/cloudsearch_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudsearch_v1/cloudsearch_v1-library.html) #### Cloud Shell API - `cloudshell/v1` Allows users to start, configure, and connect to interactive shell sessions running in the cloud. - [Original documentation](https://cloud.google.com/shell/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudshell_v1/cloudshell_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudshell_v1/cloudshell_v1-library.html) #### Google Cloud Support API - `cloudsupport/v2` Manages Google Cloud technical support cases for Customer Care support offerings. - [Original documentation](https://cloud.google.com/support/docs/apis) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudsupport_v2/cloudsupport_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudsupport_v2/cloudsupport_v2-library.html) #### Cloud Tasks API - `cloudtasks/v2` Manages the execution of large numbers of distributed requests. - [Original documentation](https://cloud.google.com/tasks/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudtasks_v2/cloudtasks_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudtasks_v2/cloudtasks_v2-library.html) #### Cloud Trace API - `cloudtrace/v2` Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenTelemetry. - [Original documentation](https://cloud.google.com/trace) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/cloudtrace_v2/cloudtrace_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/cloudtrace_v2/cloudtrace_v2-library.html) #### Cloud Composer API - `composer/v1` Manages Apache Airflow environments on Google Cloud Platform. - [Original documentation](https://cloud.google.com/composer/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/composer_v1/composer_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/composer_v1/composer_v1-library.html) #### ![Logo](https://www.google.com/images/icons/product/compute_engine-16.png) Compute Engine API - `compute/v1` Creates and runs virtual machines on Google Cloud Platform. - [Original documentation](https://cloud.google.com/compute/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/compute_v1/compute_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/compute_v1/compute_v1-library.html) #### Infrastructure Manager API - `config/v1` Creates and manages Google Cloud Platform resources and infrastructure. - [Original documentation](https://cloud.google.com/infrastructure-manager/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/config_v1/config_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/config_v1/config_v1-library.html) #### Connectors API - `connectors/v1` Enables users to create and manage connections to Google Cloud services and third-party business applications using the Connectors interface. - [Original documentation](https://cloud.google.com/apigee/docs/api-platform/connectors/about-connectors) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/connectors_v1/connectors_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/connectors_v1/connectors_v1-library.html) #### Connectors API - `connectors/v2` Enables users to create and manage connections to Google Cloud services and third-party business applications using the Connectors interface. - [Original documentation](https://cloud.google.com/apigee/docs/api-platform/connectors/about-connectors) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/connectors_v2/connectors_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/connectors_v2/connectors_v2-library.html) #### Contact Center AI Insights API - `contactcenterinsights/v1` - [Original documentation](https://cloud.google.com/contact-center/insights/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/contactcenterinsights_v1/contactcenterinsights_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/contactcenterinsights_v1/contactcenterinsights_v1-library.html) #### Kubernetes Engine API - `container/v1` Builds and manages container-based applications, powered by the open source Kubernetes technology. - [Original documentation](https://cloud.google.com/kubernetes-engine/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/container_v1/container_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/container_v1/container_v1-library.html) #### Container Analysis API - `containeranalysis/v1` This API is a prerequisite for leveraging Artifact Analysis scanning capabilities in Artifact Registry. In addition, the Container Analysis API is an implementation of the Grafeas API, which enables storing, querying, and retrieval of critical metadata about all of your software artifacts. - [Original documentation](https://cloud.google.com/container-analysis/api/reference/rest/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/containeranalysis_v1/containeranalysis_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/containeranalysis_v1/containeranalysis_v1-library.html) #### Content API for Shopping - `content/v2_1` Manage your product listings and accounts for Google Shopping - [Original documentation](https://developers.google.com/shopping-content/v2/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/content_v2_1/content_v2_1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/content_v2_1/content_v2_1-library.html) #### Document AI Warehouse API - `contentwarehouse/v1` - [Original documentation](https://cloud.google.com/document-warehouse) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/contentwarehouse_v1/contentwarehouse_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/contentwarehouse_v1/contentwarehouse_v1-library.html) #### CSS API - `css/v1` Programmatically manage your Comparison Shopping Service (CSS) account data at scale. - [Original documentation](https://developers.google.com/comparison-shopping-services/api/overview) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/css_v1/css_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/css_v1/css_v1-library.html) #### Custom Search API - `customsearch/v1` Searches over a website or collection of websites - [Original documentation](https://developers.google.com/custom-search/v1/introduction) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/customsearch_v1/customsearch_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/customsearch_v1/customsearch_v1-library.html) #### Google Cloud Data Catalog API - `datacatalog/v1` A fully managed and highly scalable data discovery and metadata management service. - [Original documentation](https://cloud.google.com/data-catalog/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/datacatalog_v1/datacatalog_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/datacatalog_v1/datacatalog_v1-library.html) #### Cloud Data Fusion API - `datafusion/v1` Cloud Data Fusion is a fully-managed, cloud native, enterprise data integration service for quickly building and managing data pipelines. It provides a graphical interface to increase time efficiency and reduce complexity, and allows business users, developers, and data scientists to easily and reliably build scalable data integration solutions to cleanse, prepare, blend, transfer and transform data without having to wrestle with infrastructure. - [Original documentation](https://cloud.google.com/data-fusion/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/datafusion_v1/datafusion_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/datafusion_v1/datafusion_v1-library.html) #### Data Lineage API - `datalineage/v1` - [Original documentation](https://cloud.google.com/data-catalog) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/datalineage_v1/datalineage_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/datalineage_v1/datalineage_v1-library.html) #### Database Migration API - `datamigration/v1` Manage Cloud Database Migration Service resources on Google Cloud Platform. - [Original documentation](https://cloud.google.com/database-migration/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/datamigration_v1/datamigration_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/datamigration_v1/datamigration_v1-library.html) #### Data pipelines API - `datapipelines/v1` Data Pipelines provides an interface for creating, updating, and managing recurring Data Analytics jobs. - [Original documentation](https://cloud.google.com/dataflow/docs/guides/data-pipelines) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/datapipelines_v1/datapipelines_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/datapipelines_v1/datapipelines_v1-library.html) #### Cloud Dataplex API - `dataplex/v1` -Dataplex API is used to manage the lifecycle of data lakes. +A unified, intelligent governance solution for data and AI assets. - [Original documentation](https://cloud.google.com/dataplex/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/dataplex_v1/dataplex_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/dataplex_v1/dataplex_v1-library.html) #### Data Portability API - `dataportability/v1` The Data Portability API lets you build applications that request authorization from a user to move a copy of data from Google services into your application. This enables data portability and facilitates switching services. - [Original documentation](https://developers.google.com/data-portability) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/dataportability_v1/dataportability_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/dataportability_v1/dataportability_v1-library.html) #### Cloud Dataproc API - `dataproc/v1` Manages Hadoop-based clusters and jobs on Google Cloud Platform. - [Original documentation](https://cloud.google.com/dataproc/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/dataproc_v1/dataproc_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/dataproc_v1/dataproc_v1-library.html) #### Cloud Datastore API - `datastore/v1` Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. - [Original documentation](https://cloud.google.com/datastore/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/datastore_v1/datastore_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/datastore_v1/datastore_v1-library.html) #### Datastream API - `datastream/v1` - [Original documentation](https://cloud.google.com/datastream/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/datastream_v1/datastream_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/datastream_v1/datastream_v1-library.html) #### Cloud Deployment Manager V2 API - `deploymentmanager/v2` The Google Cloud Deployment Manager v2 API provides services for configuring, deploying, and viewing Google Cloud services and APIs via templates which specify deployments of Cloud resources. - [Original documentation](https://cloud.google.com/deployment-manager) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/deploymentmanager_v2/deploymentmanager_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/deploymentmanager_v2/deploymentmanager_v2-library.html) #### Developer Connect API - `developerconnect/v1` Connect third-party source code management to Google - [Original documentation](http://cloud.google.com/developer-connect/docs/overview) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/developerconnect_v1/developerconnect_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/developerconnect_v1/developerconnect_v1-library.html) #### Campaign Manager 360 API - `dfareporting/v3_5` Build applications to efficiently manage large or complex trafficking, reporting, and attribution workflows for Campaign Manager 360. - [Original documentation](https://developers.google.com/doubleclick-advertisers/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/dfareporting_v3_5/dfareporting_v3_5-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/dfareporting_v3_5/dfareporting_v3_5-library.html) #### Campaign Manager 360 API - `dfareporting/v4` Build applications to efficiently manage large or complex trafficking, reporting, and attribution workflows for Campaign Manager 360. - [Original documentation](https://developers.google.com/doubleclick-advertisers/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/dfareporting_v4/dfareporting_v4-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/dfareporting_v4/dfareporting_v4-library.html) #### Dialogflow API - `dialogflow/v2` Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices). - [Original documentation](https://cloud.google.com/dialogflow/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/dialogflow_v2/dialogflow_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/dialogflow_v2/dialogflow_v2-library.html) #### Dialogflow API - `dialogflow/v3` Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices). - [Original documentation](https://cloud.google.com/dialogflow/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/dialogflow_v3/dialogflow_v3-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/dialogflow_v3/dialogflow_v3-library.html) #### Digital Asset Links API - `digitalassetlinks/v1` Discovers relationships between online assets such as websites or mobile apps. - [Original documentation](https://developers.google.com/digital-asset-links/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/digitalassetlinks_v1/digitalassetlinks_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/digitalassetlinks_v1/digitalassetlinks_v1-library.html) #### API Discovery Service - `discovery/v1` Provides information about other Google APIs, such as what APIs are available, the resource, and method details for each API. - [Original documentation](https://developers.google.com/discovery/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/discovery_v1/discovery_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/discovery_v1/discovery_v1-library.html) #### Display & Video 360 API - `displayvideo/v2` Display & Video 360 API allows users to automate complex Display & Video 360 workflows, such as creating insertion orders and setting targeting options for individual line items. - [Original documentation](https://developers.google.com/display-video/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/displayvideo_v2/displayvideo_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/displayvideo_v2/displayvideo_v2-library.html) #### Display & Video 360 API - `displayvideo/v3` Display & Video 360 API allows users to automate complex Display & Video 360 workflows, such as creating insertion orders and setting targeting options for individual line items. - [Original documentation](https://developers.google.com/display-video/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/displayvideo_v3/displayvideo_v3-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/displayvideo_v3/displayvideo_v3-library.html) #### Display & Video 360 API - `displayvideo/v4` Display & Video 360 API allows users to automate complex Display & Video 360 workflows, such as creating insertion orders and setting targeting options for individual line items. - [Original documentation](https://developers.google.com/display-video/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/displayvideo_v4/displayvideo_v4-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/displayvideo_v4/displayvideo_v4-library.html) #### Sensitive Data Protection (DLP) - `dlp/v2` Discover and protect your sensitive data. A fully managed service designed to help you discover, classify, and protect your valuable data assets with ease. - [Original documentation](https://cloud.google.com/sensitive-data-protection/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/dlp_v2/dlp_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/dlp_v2/dlp_v2-library.html) #### Cloud DNS API - `dns/v1` - [Original documentation](https://cloud.google.com/dns/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/dns_v1/dns_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/dns_v1/dns_v1-library.html) #### Google Docs API - `docs/v1` Reads and writes Google Docs documents. - [Original documentation](https://developers.google.com/workspace/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/docs_v1/docs_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/docs_v1/docs_v1-library.html) #### Cloud Document AI API - `documentai/v1` Service to parse structured information from unstructured or semi-structured documents using state-of-the-art Google AI such as natural language, computer vision, translation, and AutoML. - [Original documentation](https://cloud.google.com/document-ai/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/documentai_v1/documentai_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/documentai_v1/documentai_v1-library.html) #### Cloud Domains API - `domains/v1` Enables management and configuration of domain names. - [Original documentation](https://cloud.google.com/domains/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/domains_v1/domains_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/domains_v1/domains_v1-library.html) #### DoubleClick Bid Manager API - `doubleclickbidmanager/v2` DoubleClick Bid Manager API allows users to manage and create campaigns and reports. - [Original documentation](https://developers.google.com/bid-manager/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/doubleclickbidmanager_v2/doubleclickbidmanager_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/doubleclickbidmanager_v2/doubleclickbidmanager_v2-library.html) #### Search Ads 360 API - `doubleclicksearch/v2` The Search Ads 360 API allows developers to automate uploading conversions and downloading reports from Search Ads 360. - [Original documentation](https://developers.google.com/search-ads) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/doubleclicksearch_v2/doubleclicksearch_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/doubleclicksearch_v2/doubleclicksearch_v2-library.html) #### Google Drive API - `drive/v2` The Google Drive API allows clients to access resources from Google Drive. - [Original documentation](https://developers.google.com/workspace/drive/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/drive_v2/drive_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/drive_v2/drive_v2-library.html) #### Google Drive API - `drive/v3` The Google Drive API allows clients to access resources from Google Drive. - [Original documentation](https://developers.google.com/workspace/drive/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/drive_v3/drive_v3-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/drive_v3/drive_v3-library.html) #### Drive Activity API - `driveactivity/v2` Provides a historical view of activity in Google Drive. - [Original documentation](https://developers.google.com/workspace/drive/activity/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/driveactivity_v2/driveactivity_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/driveactivity_v2/driveactivity_v2-library.html) #### Drive Labels API - `drivelabels/v2` An API for managing Drive Labels - [Original documentation](https://developers.google.com/workspace/drive/labels) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/drivelabels_v2/drivelabels_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/drivelabels_v2/drivelabels_v2-library.html) #### Essential Contacts API - `essentialcontacts/v1` - [Original documentation](https://cloud.google.com/essentialcontacts/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/essentialcontacts_v1/essentialcontacts_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/essentialcontacts_v1/essentialcontacts_v1-library.html) #### Eventarc API - `eventarc/v1` Build event-driven applications on Google Cloud Platform. - [Original documentation](https://cloud.google.com/eventarc) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/eventarc_v1/eventarc_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/eventarc_v1/eventarc_v1-library.html) #### Firebase Cloud Messaging API - `fcm/v1` FCM send API that provides a cross-platform messaging solution to reliably deliver messages. - [Original documentation](https://firebase.google.com/docs/cloud-messaging) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/fcm_v1/fcm_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/fcm_v1/fcm_v1-library.html) #### Cloud Filestore API - `file/v1` The Cloud Filestore API is used for creating and managing cloud file servers. - [Original documentation](https://cloud.google.com/filestore/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/file_v1/file_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/file_v1/file_v1-library.html) #### Firebase App Check API - `firebaseappcheck/v1` Firebase App Check works alongside other Firebase services to help protect your backend resources from abuse, such as billing fraud or phishing. - [Original documentation](https://firebase.google.com/docs/app-check) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/firebaseappcheck_v1/firebaseappcheck_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/firebaseappcheck_v1/firebaseappcheck_v1-library.html) #### Firebase App Distribution API - `firebaseappdistribution/v1` - [Original documentation](https://firebase.google.com/products/app-distribution) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/firebaseappdistribution_v1/firebaseappdistribution_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/firebaseappdistribution_v1/firebaseappdistribution_v1-library.html) #### Firebase App Hosting API - `firebaseapphosting/v1` Firebase App Hosting streamlines the development and deployment of dynamic Next.js and Angular applications, offering built-in framework support, GitHub integration, and integration with other Firebase products. You can use this API to intervene in the Firebase App Hosting build process and add custom functionality not supported in our default Console & CLI flows, including triggering builds from external CI/CD workflows or deploying from pre-built container images. - [Original documentation](https://firebase.google.com/docs/app-hosting) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/firebaseapphosting_v1/firebaseapphosting_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/firebaseapphosting_v1/firebaseapphosting_v1-library.html) #### Firebase Data Connect API - `firebasedataconnect/v1` Firebase Data Connect is a relational database service for mobile and web apps that lets you build and scale using a fully-managed PostgreSQL database powered by Cloud SQL. The REST API lets developers manage the connections to their database, change the schema of their database, and query the database. - [Original documentation](https://firebase.google.com/docs/data-connect) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/firebasedataconnect_v1/firebasedataconnect_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/firebasedataconnect_v1/firebasedataconnect_v1-library.html) #### Firebase Dynamic Links API - `firebasedynamiclinks/v1` Programmatically creates and manages Firebase Dynamic Links. - [Original documentation](https://firebase.google.com/docs/dynamic-links/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/firebasedynamiclinks_v1/firebasedynamiclinks_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/firebasedynamiclinks_v1/firebasedynamiclinks_v1-library.html) #### Firebase Hosting API - `firebasehosting/v1` The Firebase Hosting REST API enables programmatic and customizable management and deployments to your Firebase-hosted sites. Use this REST API to create and manage channels and sites as well as to deploy new or updated hosting configurations and content files. - [Original documentation](https://firebase.google.com/docs/hosting/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/firebasehosting_v1/firebasehosting_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/firebasehosting_v1/firebasehosting_v1-library.html) #### Firebase ML API - `firebaseml/v1` Access custom machine learning models hosted via Firebase ML. - [Original documentation](https://firebase.google.com) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/firebaseml_v1/firebaseml_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/firebaseml_v1/firebaseml_v1-library.html) #### Firebase Rules API - `firebaserules/v1` Creates and manages rules that determine when a Firebase Rules-enabled service should permit a request. - [Original documentation](https://firebase.google.com/docs/storage/security) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/firebaserules_v1/firebaserules_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/firebaserules_v1/firebaserules_v1-library.html) #### Cloud Firestore API - `firestore/v1` Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. - [Original documentation](https://cloud.google.com/firestore) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/firestore_v1/firestore_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/firestore_v1/firestore_v1-library.html) #### Fitness API - `fitness/v1` The Fitness API for managing users' fitness tracking data. - [Original documentation](https://developers.google.com/fit/rest/v1/get-started) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/fitness_v1/fitness_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/fitness_v1/fitness_v1-library.html) #### Google Forms API - `forms/v1` Reads and writes Google Forms and responses. - [Original documentation](https://developers.google.com/workspace/forms/api) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/forms_v1/forms_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/forms_v1/forms_v1-library.html) #### Google Play Games Services API - `games/v1` The Google Play Games Service allows developers to enhance games with social leaderboards, achievements, game state, sign-in with Google, and more. - [Original documentation](https://developers.google.com/games/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/games_v1/games_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/games_v1/games_v1-library.html) #### Google Play Games Services Publishing API - `gamesConfiguration/v1configuration` The Google Play Game Services Publishing API allows developers to configure their games in Game Services. - [Original documentation](https://developers.google.com/games/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/gamesConfiguration_v1configuration/gamesConfiguration_v1configuration-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/gamesConfiguration_v1configuration/gamesConfiguration_v1configuration-library.html) #### Google Play Games Services Management API - `gamesManagement/v1management` The Google Play Games Management API allows developers to manage resources from the Google Play Game service. - [Original documentation](https://developers.google.com/games/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/gamesManagement_v1management/gamesManagement_v1management-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/gamesManagement_v1management/gamesManagement_v1management-library.html) #### Backup for GKE API - `gkebackup/v1` Backup for GKE is a managed Kubernetes workload backup and restore service for GKE clusters. - [Original documentation](https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/gkebackup_v1/gkebackup_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/gkebackup_v1/gkebackup_v1-library.html) #### GKE Hub API - `gkehub/v1` - [Original documentation](https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/gkehub_v1/gkehub_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/gkehub_v1/gkehub_v1-library.html) #### GKE Hub API - `gkehub/v2` - [Original documentation](https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/gkehub_v2/gkehub_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/gkehub_v2/gkehub_v2-library.html) #### GKE On-Prem API - `gkeonprem/v1` - [Original documentation](https://cloud.google.com/anthos/clusters/docs/on-prem/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/gkeonprem_v1/gkeonprem_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/gkeonprem_v1/gkeonprem_v1-library.html) #### Gmail API - `gmail/v1` The Gmail API lets you view and manage Gmail mailbox data like threads, messages, and labels. - [Original documentation](https://developers.google.com/workspace/gmail/api/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/gmail_v1/gmail_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/gmail_v1/gmail_v1-library.html) #### Gmail Postmaster Tools API - `gmailpostmastertools/v1` The Postmaster Tools API is a RESTful API that provides programmatic access to email traffic metrics (like spam reports, delivery errors etc) otherwise available through the Gmail Postmaster Tools UI currently. - [Original documentation](https://developers.google.com/workspace/gmail/postmaster) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/gmailpostmastertools_v1/gmailpostmastertools_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/gmailpostmastertools_v1/gmailpostmastertools_v1-library.html) #### Groups Migration API - `groupsmigration/v1` The Groups Migration API allows domain administrators to archive emails into Google groups. - [Original documentation](https://developers.google.com/google-apps/groups-migration/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/groupsmigration_v1/groupsmigration_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/groupsmigration_v1/groupsmigration_v1-library.html) #### ![Logo](https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png) Groups Settings API - `groupssettings/v1` Manages permission levels and related settings of a group. - [Original documentation](https://developers.google.com/google-apps/groups-settings/get_started) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/groupssettings_v1/groupssettings_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/groupssettings_v1/groupssettings_v1-library.html) #### Cloud Healthcare API - `healthcare/v1` Manage, store, and access healthcare data in Google Cloud Platform. - [Original documentation](https://cloud.google.com/healthcare) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/healthcare_v1/healthcare_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/healthcare_v1/healthcare_v1-library.html) #### HomeGraph API - `homegraph/v1` - [Original documentation](https://developers.home.google.com/cloud-to-cloud/get-started) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/homegraph_v1/homegraph_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/homegraph_v1/homegraph_v1-library.html) #### Identity and Access Management (IAM) API - `iam/v1` Manages identity and access control for Google Cloud resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. Enabling this API also enables the IAM Service Account Credentials API (iamcredentials.googleapis.com). However, disabling this API doesn't disable the IAM Service Account Credentials API. - [Original documentation](https://cloud.google.com/iam/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/iam_v1/iam_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/iam_v1/iam_v1-library.html) #### Identity and Access Management (IAM) API - `iam/v2` Manages identity and access control for Google Cloud resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. Enabling this API also enables the IAM Service Account Credentials API (iamcredentials.googleapis.com). However, disabling this API doesn't disable the IAM Service Account Credentials API. - [Original documentation](https://cloud.google.com/iam/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/iam_v2/iam_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/iam_v2/iam_v2-library.html) #### IAM Service Account Credentials API - `iamcredentials/v1` Creates short-lived credentials for impersonating IAM service accounts. Disabling this API also disables the IAM API (iam.googleapis.com). However, enabling this API doesn't enable the IAM API. - [Original documentation](https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/iamcredentials_v1/iamcredentials_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/iamcredentials_v1/iamcredentials_v1-library.html) #### Cloud Identity-Aware Proxy API - `iap/v1` Controls access to cloud applications running on Google Cloud Platform. - [Original documentation](https://cloud.google.com/iap) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/iap_v1/iap_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/iap_v1/iap_v1-library.html) #### Identity Toolkit API - `identitytoolkit/v1` The Google Identity Toolkit API lets you use open standards to verify a user's identity. - [Original documentation](https://cloud.google.com/identity-platform) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/identitytoolkit_v1/identitytoolkit_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/identitytoolkit_v1/identitytoolkit_v1-library.html) #### Identity Toolkit API - `identitytoolkit/v2` The Google Identity Toolkit API lets you use open standards to verify a user's identity. - [Original documentation](https://cloud.google.com/identity-platform) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/identitytoolkit_v2/identitytoolkit_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/identitytoolkit_v2/identitytoolkit_v2-library.html) #### ![Logo](https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png) Google Identity Toolkit API - `identitytoolkit/v3` Help the third party sites to implement federated login. - [Original documentation](https://developers.google.com/identity-toolkit/v3/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/identitytoolkit_v3/identitytoolkit_v3-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/identitytoolkit_v3/identitytoolkit_v3-library.html) #### Cloud IDS API - `ids/v1` Cloud IDS (Cloud Intrusion Detection System) detects malware, spyware, command-and-control attacks, and other network-based threats. Its security efficacy is industry leading, built with Palo Alto Networks technologies. When you use this product, your organization name and consumption levels will be shared with Palo Alto Networks. - [Original documentation](https://cloud.google.com/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/ids_v1/ids_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/ids_v1/ids_v1-library.html) #### Web Search Indexing API - `indexing/v3` Notifies Google Web Search when your web pages change. - [Original documentation](https://developers.google.com/search/apis/indexing-api/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/indexing_v3/indexing_v3-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/indexing_v3/indexing_v3-library.html) #### Application Integration API - `integrations/v1` - [Original documentation](https://cloud.google.com/application-integration) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/integrations_v1/integrations_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/integrations_v1/integrations_v1-library.html) #### Cloud Talent Solution API - `jobs/v3` Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. - [Original documentation](https://cloud.google.com/talent-solution/job-search/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/jobs_v3/jobs_v3-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/jobs_v3/jobs_v3-library.html) #### Cloud Talent Solution API - `jobs/v4` Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. - [Original documentation](https://cloud.google.com/talent-solution/job-search/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/jobs_v4/jobs_v4-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/jobs_v4/jobs_v4-library.html) #### Google Keep API - `keep/v1` The Google Keep API is used in an enterprise environment to manage Google Keep content and resolve issues identified by cloud security software. - [Original documentation](https://developers.google.com/workspace/keep/api) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/keep_v1/keep_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/keep_v1/keep_v1-library.html) #### Knowledge Graph Search API - `kgsearch/v1` Searches the Google Knowledge Graph for entities. - [Original documentation](https://developers.google.com/knowledge-graph/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/kgsearch_v1/kgsearch_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/kgsearch_v1/kgsearch_v1-library.html) #### KMS Inventory API - `kmsinventory/v1` - [Original documentation](https://cloud.google.com/kms/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/kmsinventory_v1/kmsinventory_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/kmsinventory_v1/kmsinventory_v1-library.html) #### Cloud Natural Language API - `language/v1` Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers. - [Original documentation](https://cloud.google.com/natural-language/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/language_v1/language_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/language_v1/language_v1-library.html) #### Cloud Natural Language API - `language/v2` Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers. - [Original documentation](https://cloud.google.com/natural-language/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/language_v2/language_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/language_v2/language_v2-library.html) #### Library Agent API - `libraryagent/v1` A simple Google Example Library API. - [Original documentation](https://cloud.google.com/docs/quota) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/libraryagent_v1/libraryagent_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/libraryagent_v1/libraryagent_v1-library.html) #### Enterprise License Manager API - `licensing/v1` The Google Enterprise License Manager API lets you manage Google Workspace and related licenses for all users of a customer that you manage. - [Original documentation](https://developers.google.com/workspace/admin/licensing/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/licensing_v1/licensing_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/licensing_v1/licensing_v1-library.html) #### Local Services API - `localservices/v1` - [Original documentation](https://ads.google.com/local-services-ads/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/localservices_v1/localservices_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/localservices_v1/localservices_v1-library.html) #### Cloud Logging API - `logging/v2` Writes log entries and manages your Cloud Logging configuration. - [Original documentation](https://cloud.google.com/logging/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/logging_v2/logging_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/logging_v2/logging_v2-library.html) #### Looker (Google Cloud core) API - `looker/v1` - [Original documentation](https://cloud.google.com/looker/docs/reference/rest/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/looker_v1/looker_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/looker_v1/looker_v1-library.html) #### Managed Service for Microsoft Active Directory API - `managedidentities/v1` The Managed Service for Microsoft Active Directory API is used for managing a highly available, hardened service running Microsoft Active Directory (AD). - [Original documentation](https://cloud.google.com/managed-microsoft-ad/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/managedidentities_v1/managedidentities_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/managedidentities_v1/managedidentities_v1-library.html) #### Managed Service for Apache Kafka API - `managedkafka/v1` Manage Apache Kafka clusters and resources. - [Original documentation](https://cloud.google.com/managed-service-for-apache-kafka/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/managedkafka_v1/managedkafka_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/managedkafka_v1/managedkafka_v1-library.html) #### Manufacturer Center API - `manufacturers/v1` Public API for managing Manufacturer Center related data. - [Original documentation](https://developers.google.com/manufacturers/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/manufacturers_v1/manufacturers_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/manufacturers_v1/manufacturers_v1-library.html) #### Google Meet API - `meet/v2` Create and manage meetings in Google Meet. - [Original documentation](https://developers.google.com/workspace/meet/api) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/meet_v2/meet_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/meet_v2/meet_v2-library.html) #### Cloud Memorystore for Memcached API - `memcache/v1` Google Cloud Memorystore for Memcached API is used for creating and managing Memcached instances in GCP. - [Original documentation](https://cloud.google.com/memorystore/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/memcache_v1/memcache_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/memcache_v1/memcache_v1-library.html) #### Dataproc Metastore API - `metastore/v1` The Dataproc Metastore API is used to manage the lifecycle and configuration of metastore services. - [Original documentation](https://cloud.google.com/dataproc-metastore/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/metastore_v1/metastore_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/metastore_v1/metastore_v1-library.html) #### Migration Center API - `migrationcenter/v1` A unified platform that helps you accelerate your end-to-end cloud journey from your current on-premises or cloud environments to Google Cloud. - [Original documentation](https://cloud.google.com/migration-center) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/migrationcenter_v1/migrationcenter_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/migrationcenter_v1/migrationcenter_v1-library.html) #### AI Platform Training & Prediction API - `ml/v1` An API to enable creating and using machine learning models. - [Original documentation](https://cloud.google.com/ml/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/ml_v1/ml_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/ml_v1/ml_v1-library.html) #### Cloud Monitoring API - `monitoring/v3` Manages your Cloud Monitoring data and configurations. - [Original documentation](https://cloud.google.com/monitoring/api/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/monitoring_v3/monitoring_v3-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/monitoring_v3/monitoring_v3-library.html) #### My Business Account Management API - `mybusinessaccountmanagement/v1` The My Business Account Management API provides an interface for managing access to a location on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. - [Original documentation](https://developers.google.com/my-business/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/mybusinessaccountmanagement_v1/mybusinessaccountmanagement_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/mybusinessaccountmanagement_v1/mybusinessaccountmanagement_v1-library.html) #### My Business Business Information API - `mybusinessbusinessinformation/v1` The My Business Business Information API provides an interface for managing business information. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. - [Original documentation](https://developers.google.com/my-business/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/mybusinessbusinessinformation_v1/mybusinessbusinessinformation_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/mybusinessbusinessinformation_v1/mybusinessbusinessinformation_v1-library.html) #### My Business Lodging API - `mybusinesslodging/v1` The My Business Lodging API enables managing lodging business information on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. - [Original documentation](https://developers.google.com/my-business/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/mybusinesslodging_v1/mybusinesslodging_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/mybusinesslodging_v1/mybusinesslodging_v1-library.html) #### My Business Notifications API - `mybusinessnotifications/v1` The My Business Notification Settings API enables managing notification settings for business accounts. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. - [Original documentation](https://developers.google.com/my-business/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/mybusinessnotifications_v1/mybusinessnotifications_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/mybusinessnotifications_v1/mybusinessnotifications_v1-library.html) #### My Business Place Actions API - `mybusinessplaceactions/v1` The My Business Place Actions API provides an interface for managing place action links of a location on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. - [Original documentation](https://developers.google.com/my-business/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/mybusinessplaceactions_v1/mybusinessplaceactions_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/mybusinessplaceactions_v1/mybusinessplaceactions_v1-library.html) #### My Business Q&A API - `mybusinessqanda/v1` The My Business Q&A API allows questions and answers to be posted for specific listings. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. - [Original documentation](https://developers.google.com/my-business/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/mybusinessqanda_v1/mybusinessqanda_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/mybusinessqanda_v1/mybusinessqanda_v1-library.html) #### My Business Verifications API - `mybusinessverifications/v1` The My Business Verifications API provides an interface for taking verifications related actions for locations. - [Original documentation](https://developers.google.com/my-business/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/mybusinessverifications_v1/mybusinessverifications_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/mybusinessverifications_v1/mybusinessverifications_v1-library.html) #### NetApp API - `netapp/v1` Google Cloud NetApp Volumes is a fully-managed, cloud-based data storage service that provides advanced data management capabilities and highly scalable performance with global availability. - [Original documentation](https://cloud.google.com/netapp/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/netapp_v1/netapp_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/netapp_v1/netapp_v1-library.html) #### Network Connectivity API - `networkconnectivity/v1` This API enables connectivity with and between Google Cloud resources. - [Original documentation](https://cloud.google.com/network-connectivity/docs/reference/networkconnectivity/rest) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/networkconnectivity_v1/networkconnectivity_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/networkconnectivity_v1/networkconnectivity_v1-library.html) #### Network Management API - `networkmanagement/v1` The Network Management API provides a collection of network performance monitoring and diagnostic capabilities. - [Original documentation](https://cloud.google.com/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/networkmanagement_v1/networkmanagement_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/networkmanagement_v1/networkmanagement_v1-library.html) #### Network Security API - `networksecurity/v1` - [Original documentation](https://cloud.google.com/networking) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/networksecurity_v1/networksecurity_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/networksecurity_v1/networksecurity_v1-library.html) #### Network Services API - `networkservices/v1` - [Original documentation](https://cloud.google.com/networking) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/networkservices_v1/networkservices_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/networkservices_v1/networkservices_v1-library.html) #### Notebooks API - `notebooks/v1` Notebooks API is used to manage notebook resources in Google Cloud. - [Original documentation](https://cloud.google.com/notebooks/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/notebooks_v1/notebooks_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/notebooks_v1/notebooks_v1-library.html) #### Notebooks API - `notebooks/v2` Notebooks API is used to manage notebook resources in Google Cloud. - [Original documentation](https://cloud.google.com/notebooks/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/notebooks_v2/notebooks_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/notebooks_v2/notebooks_v2-library.html) #### ![Logo](https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png) Google OAuth2 API - `oauth2/v2` Obtains end-user authorization grants for use with other Google APIs. - [Original documentation](https://developers.google.com/identity/protocols/oauth2/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/oauth2_v2/oauth2_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/oauth2_v2/oauth2_v2-library.html) #### Observability API - `observability/v1` - [Original documentation](https://cloud.google.com/stackdriver/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/observability_v1/observability_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/observability_v1/observability_v1-library.html) #### On-Demand Scanning API - `ondemandscanning/v1` A service to scan container images for vulnerabilities. - [Original documentation](https://cloud.google.com/container-analysis/docs/on-demand-scanning/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/ondemandscanning_v1/ondemandscanning_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/ondemandscanning_v1/ondemandscanning_v1-library.html) #### Oracle Database@Google Cloud API - `oracledatabase/v1` The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. - [Original documentation](https://cloud.google.com/oracle/database/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/oracledatabase_v1/oracledatabase_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/oracledatabase_v1/oracledatabase_v1-library.html) #### Organization Policy API - `orgpolicy/v2` The Organization Policy API allows users to configure governance rules on their Google Cloud resources across the resource hierarchy. - [Original documentation](https://cloud.google.com/orgpolicy/docs/reference/rest/index.html) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/orgpolicy_v2/orgpolicy_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/orgpolicy_v2/orgpolicy_v2-library.html) #### OS Config API - `osconfig/v1` OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. - [Original documentation](https://cloud.google.com/compute/docs/osconfig/rest) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/osconfig_v1/osconfig_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/osconfig_v1/osconfig_v1-library.html) #### OS Config API - `osconfig/v2` OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. - [Original documentation](https://cloud.google.com/compute/docs/osconfig/rest) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/osconfig_v2/osconfig_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/osconfig_v2/osconfig_v2-library.html) #### Cloud OS Login API - `oslogin/v1` You can use OS Login to manage access to your VM instances using IAM roles. - [Original documentation](https://cloud.google.com/compute/docs/oslogin/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/oslogin_v1/oslogin_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/oslogin_v1/oslogin_v1-library.html) #### PageSpeed Insights API - `pagespeedonline/v5` The PageSpeed Insights API lets you analyze the performance of your website with a simple API. It offers tailored suggestions for how you can optimize your site, and lets you easily integrate PageSpeed Insights analysis into your development tools and workflow. - [Original documentation](https://developers.google.com/speed/docs/insights/v5/about) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/pagespeedonline_v5/pagespeedonline_v5-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/pagespeedonline_v5/pagespeedonline_v5-library.html) #### Parallelstore API - `parallelstore/v1` - [Original documentation](https://cloud.google.com/parallelstore) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/parallelstore_v1/parallelstore_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/parallelstore_v1/parallelstore_v1-library.html) #### Parameter Manager API - `parametermanager/v1` Parameter Manager is a single source of truth to store, access and manage the lifecycle of your workload parameters. Parameter Manager aims to make management of sensitive application parameters effortless for customers without diminishing focus on security. - [Original documentation](https://cloud.google.com/secret-manager/parameter-manager/docs/overview) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/parametermanager_v1/parametermanager_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/parametermanager_v1/parametermanager_v1-library.html) #### Payments Reseller Subscription API - `paymentsresellersubscription/v1` - [Original documentation](https://developers.google.com/payments/reseller/subscription/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/paymentsresellersubscription_v1/paymentsresellersubscription_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/paymentsresellersubscription_v1/paymentsresellersubscription_v1-library.html) #### People API - `people/v1` Provides access to information about profiles and contacts. - [Original documentation](https://developers.google.com/people/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/people_v1/people_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/people_v1/people_v1-library.html) #### Places API (New) - `places/v1` - [Original documentation](https://mapsplatform.google.com/maps-products/#places-section) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/places_v1/places_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/places_v1/places_v1-library.html) #### Google Play Custom App Publishing API - `playcustomapp/v1` API to create and publish custom Android apps - [Original documentation](https://developers.google.com/android/work/play/custom-app-api/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/playcustomapp_v1/playcustomapp_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/playcustomapp_v1/playcustomapp_v1-library.html) #### Google Play Integrity API - `playintegrity/v1` The Play Integrity API helps you check that you're interacting with your genuine app on a genuine Android device powered by Google Play services. The Play Integrity API has replaced SafetyNet Attestation and Android Device Verification. - [Original documentation](https://developer.android.com/google/play/integrity) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/playintegrity_v1/playintegrity_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/playintegrity_v1/playintegrity_v1-library.html) #### Policy Analyzer API - `policyanalyzer/v1` - [Original documentation](https://www.google.com) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/policyanalyzer_v1/policyanalyzer_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/policyanalyzer_v1/policyanalyzer_v1-library.html) #### Policy Simulator API - `policysimulator/v1` Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. A `Replay` is a type of simulation that lets you see how your members' access to resources might change if you changed your IAM policy. During a `Replay`, Policy Simulator re-evaluates, or replays, past access attempts under both the current policy and your proposed policy, and compares those results to determine how your members' access might change under the proposed policy. - [Original documentation](https://cloud.google.com/iam/docs/simulating-access) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/policysimulator_v1/policysimulator_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/policysimulator_v1/policysimulator_v1-library.html) #### Policy Troubleshooter API - `policytroubleshooter/v1` - [Original documentation](https://cloud.google.com/iam/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/policytroubleshooter_v1/policytroubleshooter_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/policytroubleshooter_v1/policytroubleshooter_v1-library.html) #### Pollen API - `pollen/v1` The Pollen API. - [Original documentation](https://developers.google.com/maps/documentation/pollen) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/pollen_v1/pollen_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/pollen_v1/pollen_v1-library.html) #### Certificate Authority API - `privateca/v1` The Certificate Authority Service API is a highly-available, scalable service that enables you to simplify and automate the management of private certificate authorities (CAs) while staying in control of your private keys. - [Original documentation](https://cloud.google.com/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/privateca_v1/privateca_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/privateca_v1/privateca_v1-library.html) #### Public Certificate Authority API - `publicca/v1` The Public Certificate Authority API may be used to create and manage ACME external account binding keys associated with Google Trust Services' publicly trusted certificate authority. - [Original documentation](https://cloud.google.com/public-certificate-authority/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/publicca_v1/publicca_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/publicca_v1/publicca_v1-library.html) #### Cloud Pub/Sub API - `pubsub/v1` Provides reliable, many-to-many, asynchronous messaging between applications. - [Original documentation](https://cloud.google.com/pubsub/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/pubsub_v1/pubsub_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/pubsub_v1/pubsub_v1-library.html) #### Pub/Sub Lite API - `pubsublite/v1` - [Original documentation](https://cloud.google.com/pubsub/lite/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/pubsublite_v1/pubsublite_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/pubsublite_v1/pubsublite_v1-library.html) #### Rapid Migration Assessment API - `rapidmigrationassessment/v1` The Rapid Migration Assessment service is our first-party migration assessment and planning tool. - [Original documentation](https://cloud.google.com/migration-center) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/rapidmigrationassessment_v1/rapidmigrationassessment_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/rapidmigrationassessment_v1/rapidmigrationassessment_v1-library.html) #### Reader Revenue Subscription Linking API - `readerrevenuesubscriptionlinking/v1` readerrevenuesubscriptionlinking.googleapis.com API. - [Original documentation](https://developers.google.com/news/subscribe/subscription-linking/overview) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/readerrevenuesubscriptionlinking_v1/readerrevenuesubscriptionlinking_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/readerrevenuesubscriptionlinking_v1/readerrevenuesubscriptionlinking_v1-library.html) #### Real-time Bidding API - `realtimebidding/v1` Allows external bidders to manage their RTB integration with Google. This includes managing bidder endpoints, QPS quotas, configuring what ad inventory to receive with pretargeting, submitting creatives for verification, and accessing creative metadata such as approval status. - [Original documentation](https://developers.google.com/authorized-buyers/apis/realtimebidding/reference/rest/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/realtimebidding_v1/realtimebidding_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/realtimebidding_v1/realtimebidding_v1-library.html) #### reCAPTCHA Enterprise API - `recaptchaenterprise/v1` Help protect your website from fraudulent activity, spam, and abuse without creating friction. - [Original documentation](https://cloud.google.com/recaptcha-enterprise/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/recaptchaenterprise_v1/recaptchaenterprise_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/recaptchaenterprise_v1/recaptchaenterprise_v1-library.html) #### Recommender API - `recommender/v1` - [Original documentation](https://cloud.google.com/recommender/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/recommender_v1/recommender_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/recommender_v1/recommender_v1-library.html) #### Google Cloud Memorystore for Redis API - `redis/v1` Creates and manages Redis instances on the Google Cloud Platform. - [Original documentation](https://cloud.google.com/memorystore/docs/redis/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/redis_v1/redis_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/redis_v1/redis_v1-library.html) #### Google Workspace Reseller API - `reseller/v1` Perform common functions that are available on the Channel Services console at scale, like placing orders and viewing customer information - [Original documentation](https://developers.google.com/google-apps/reseller/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/reseller_v1/reseller_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/reseller_v1/reseller_v1-library.html) #### Vertex AI Search for commerce API - `retail/v2` Vertex AI Search for commerce API is made up of Retail Search, Browse and Recommendations. These discovery AI solutions help you implement personalized search, browse and recommendations, based on machine learning models, across your websites and mobile applications. - [Original documentation](https://cloud.google.com/recommendations) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/retail_v2/retail_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/retail_v2/retail_v2-library.html) #### Cloud Run Admin API - `run/v1` Deploy and manage user provided container images that scale automatically based on incoming requests. The Cloud Run Admin API v1 follows the Knative Serving API specification, while v2 is aligned with Google Cloud AIP-based API standards, as described in https://google.aip.dev/. - [Original documentation](https://cloud.google.com/run/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/run_v1/run_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/run_v1/run_v1-library.html) #### Cloud Run Admin API - `run/v2` Deploy and manage user provided container images that scale automatically based on incoming requests. The Cloud Run Admin API v1 follows the Knative Serving API specification, while v2 is aligned with Google Cloud AIP-based API standards, as described in https://google.aip.dev/. - [Original documentation](https://cloud.google.com/run/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/run_v2/run_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/run_v2/run_v2-library.html) #### Cloud Runtime Configuration API - `runtimeconfig/v1` The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions. - [Original documentation](https://cloud.google.com/deployment-manager/runtime-configurator/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/runtimeconfig_v1/runtimeconfig_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/runtimeconfig_v1/runtimeconfig_v1-library.html) #### Safe Browsing API - `safebrowsing/v4` Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes – meaning “for sale or revenue-generating purposes” – please refer to the Web Risk API. - [Original documentation](https://developers.google.com/safe-browsing/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/safebrowsing_v4/safebrowsing_v4-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/safebrowsing_v4/safebrowsing_v4-library.html) #### Safe Browsing API - `safebrowsing/v5` Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes – meaning “for sale or revenue-generating purposes” – please refer to the Web Risk API. - [Original documentation](https://developers.google.com/safe-browsing/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/safebrowsing_v5/safebrowsing_v5-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/safebrowsing_v5/safebrowsing_v5-library.html) #### Apps Script API - `script/v1` Manages and executes Google Apps Script projects. - [Original documentation](https://developers.google.com/apps-script/api/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/script_v1/script_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/script_v1/script_v1-library.html) #### Google Search Console API - `searchconsole/v1` The Search Console API provides access to both Search Console data (verified users only) and to public information on an URL basis (anyone) - [Original documentation](https://developers.google.com/webmaster-tools/about) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/searchconsole_v1/searchconsole_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/searchconsole_v1/searchconsole_v1-library.html) #### Secret Manager API - `secretmanager/v1` Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security. - [Original documentation](https://cloud.google.com/secret-manager/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/secretmanager_v1/secretmanager_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/secretmanager_v1/secretmanager_v1-library.html) #### Secure Source Manager API - `securesourcemanager/v1` Regionally deployed, single-tenant managed source code repository hosted on Google Cloud. - [Original documentation](https://cloud.google.com/secure-source-manager) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/securesourcemanager_v1/securesourcemanager_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/securesourcemanager_v1/securesourcemanager_v1-library.html) #### Security Command Center API - `securitycenter/v1` Security Command Center API provides access to temporal views of assets and findings within an organization. - [Original documentation](https://cloud.google.com/security-command-center) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/securitycenter_v1/securitycenter_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/securitycenter_v1/securitycenter_v1-library.html) #### Security Posture API - `securityposture/v1` Defines, assesses, and monitors the overall status of your security in Google Cloud. You can use security postures to evaluate your current cloud security against defined benchmarks and help maintain the level of security that your organization requires. - [Original documentation](https://cloud.google.com/security-command-center) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/securityposture_v1/securityposture_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/securityposture_v1/securityposture_v1-library.html) #### Service Consumer Management API - `serviceconsumermanagement/v1` Manages the service consumers of a Service Infrastructure service. - [Original documentation](https://cloud.google.com/service-consumer-management/docs/overview) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/serviceconsumermanagement_v1/serviceconsumermanagement_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/serviceconsumermanagement_v1/serviceconsumermanagement_v1-library.html) #### Service Control API - `servicecontrol/v1` Provides admission control and telemetry reporting for services integrated with Service Infrastructure. - [Original documentation](https://cloud.google.com/service-control/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/servicecontrol_v1/servicecontrol_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/servicecontrol_v1/servicecontrol_v1-library.html) #### Service Control API - `servicecontrol/v2` Provides admission control and telemetry reporting for services integrated with Service Infrastructure. - [Original documentation](https://cloud.google.com/service-control/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/servicecontrol_v2/servicecontrol_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/servicecontrol_v2/servicecontrol_v2-library.html) #### Service Directory API - `servicedirectory/v1` Service Directory is a platform for discovering, publishing, and connecting services. - [Original documentation](https://cloud.google.com/service-directory) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/servicedirectory_v1/servicedirectory_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/servicedirectory_v1/servicedirectory_v1-library.html) #### Service Management API - `servicemanagement/v1` Google Service Management allows service producers to publish their services on Google Cloud Platform so that they can be discovered and used by service consumers. - [Original documentation](https://cloud.google.com/service-management/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/servicemanagement_v1/servicemanagement_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/servicemanagement_v1/servicemanagement_v1-library.html) #### Service Networking API - `servicenetworking/v1` Provides automatic management of network configurations necessary for certain services. - [Original documentation](https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/servicenetworking_v1/servicenetworking_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/servicenetworking_v1/servicenetworking_v1-library.html) #### Service Usage API - `serviceusage/v1` Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use. - [Original documentation](https://cloud.google.com/service-usage/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/serviceusage_v1/serviceusage_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/serviceusage_v1/serviceusage_v1-library.html) #### Google Sheets API - `sheets/v4` Reads and writes Google Sheets. - [Original documentation](https://developers.google.com/workspace/sheets/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/sheets_v4/sheets_v4-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/sheets_v4/sheets_v4-library.html) #### ![Logo](https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png) Google Site Verification API - `siteVerification/v1` Verifies ownership of websites or domains with Google. - [Original documentation](https://developers.google.com/site-verification/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/siteVerification_v1/siteVerification_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/siteVerification_v1/siteVerification_v1-library.html) #### Google Slides API - `slides/v1` Reads and writes Google Slides presentations. - [Original documentation](https://developers.google.com/workspace/slides/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/slides_v1/slides_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/slides_v1/slides_v1-library.html) #### Smart Device Management API - `smartdevicemanagement/v1` Allow select enterprise partners to access, control, and manage Google and Nest devices programmatically. - [Original documentation](https://developers.google.com/nest/device-access) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/smartdevicemanagement_v1/smartdevicemanagement_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/smartdevicemanagement_v1/smartdevicemanagement_v1-library.html) #### Solar API - `solar/v1` Solar API. - [Original documentation](https://developers.google.com/maps/documentation/solar) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/solar_v1/solar_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/solar_v1/solar_v1-library.html) #### Cloud Spanner API - `spanner/v1` Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service. - [Original documentation](https://cloud.google.com/spanner/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/spanner_v1/spanner_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/spanner_v1/spanner_v1-library.html) #### Cloud Speech-to-Text API - `speech/v1` Converts audio to text by applying powerful neural network models. - [Original documentation](https://cloud.google.com/speech-to-text/docs/quickstart-protocol) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/speech_v1/speech_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/speech_v1/speech_v1-library.html) #### ![Logo](https://www.google.com/images/icons/product/cloud_storage-16.png) Cloud Storage JSON API - `storage/v1` Stores and retrieves potentially large, immutable data objects. - [Original documentation](https://developers.google.com/storage/docs/json_api/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/storage_v1/storage_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/storage_v1/storage_v1-library.html) #### Storage Batch Operations API - `storagebatchoperations/v1` - [Original documentation](https://cloud.google.com/storage/docs/batch-operations/overview) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/storagebatchoperations_v1/storagebatchoperations_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/storagebatchoperations_v1/storagebatchoperations_v1-library.html) #### Storage Transfer API - `storagetransfer/v1` Transfers data from external data sources to a Google Cloud Storage bucket or between Google Cloud Storage buckets. - [Original documentation](https://cloud.google.com/storage-transfer/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/storagetransfer_v1/storagetransfer_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/storagetransfer_v1/storagetransfer_v1-library.html) #### Street View Publish API - `streetviewpublish/v1` Publishes 360 photos to Google Maps, along with position, orientation, and connectivity metadata. Apps can offer an interface for positioning, connecting, and uploading user-generated Street View images. - [Original documentation](https://developers.google.com/streetview/publish/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/streetviewpublish_v1/streetviewpublish_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/streetviewpublish_v1/streetviewpublish_v1-library.html) #### Security Token Service API - `sts/v1` The Security Token Service exchanges Google or third-party credentials for a short-lived access token to Google Cloud resources. - [Original documentation](https://cloud.google.com/iam/docs/workload-identity-federation) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/sts_v1/sts_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/sts_v1/sts_v1-library.html) #### Tag Manager API - `tagmanager/v1` This API allows clients to access and modify container and tag configuration. - [Original documentation](https://developers.google.com/tag-manager) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/tagmanager_v1/tagmanager_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/tagmanager_v1/tagmanager_v1-library.html) #### Tag Manager API - `tagmanager/v2` This API allows clients to access and modify container and tag configuration. - [Original documentation](https://developers.google.com/tag-manager) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/tagmanager_v2/tagmanager_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/tagmanager_v2/tagmanager_v2-library.html) #### Google Tasks API - `tasks/v1` The Google Tasks API lets you manage your tasks and task lists. - [Original documentation](https://developers.google.com/workspace/tasks/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/tasks_v1/tasks_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/tasks_v1/tasks_v1-library.html) #### Cloud Testing API - `testing/v1` Allows developers to run automated tests for their mobile applications on Google infrastructure. - [Original documentation](https://firebase.google.com/docs/test-lab/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/testing_v1/testing_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/testing_v1/testing_v1-library.html) #### Cloud Text-to-Speech API - `texttospeech/v1` Synthesizes natural-sounding speech by applying powerful neural network models. - [Original documentation](https://cloud.google.com/text-to-speech/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/texttospeech_v1/texttospeech_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/texttospeech_v1/texttospeech_v1-library.html) #### Cloud TPU API - `tpu/v1` TPU API provides customers with access to Google TPU technology. - [Original documentation](https://cloud.google.com/tpu/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/tpu_v1/tpu_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/tpu_v1/tpu_v1-library.html) #### Cloud TPU API - `tpu/v2` TPU API provides customers with access to Google TPU technology. - [Original documentation](https://cloud.google.com/tpu/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/tpu_v2/tpu_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/tpu_v2/tpu_v2-library.html) #### Traffic Director API - `trafficdirector/v2` - [Original documentation](https://cloud.google.com/traffic-director) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/trafficdirector_v2/trafficdirector_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/trafficdirector_v2/trafficdirector_v2-library.html) #### Traffic Director API - `trafficdirector/v3` - [Original documentation](https://cloud.google.com/traffic-director) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/trafficdirector_v3/trafficdirector_v3-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/trafficdirector_v3/trafficdirector_v3-library.html) #### Transcoder API - `transcoder/v1` This API converts video files into formats suitable for consumer distribution. For more information, see the Transcoder API overview. - [Original documentation](https://cloud.google.com/transcoder/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/transcoder_v1/transcoder_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/transcoder_v1/transcoder_v1-library.html) #### Cloud Translation API - `translate/v3` Integrates text translation into your website or application. - [Original documentation](https://cloud.google.com/translate/docs/quickstarts) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/translate_v3/translate_v3-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/translate_v3/translate_v3-library.html) #### Travel Impact Model API - `travelimpactmodel/v1` Travel Impact Model API lets you query travel carbon emission estimates. - [Original documentation](https://developers.google.com/travel/impact-model) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/travelimpactmodel_v1/travelimpactmodel_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/travelimpactmodel_v1/travelimpactmodel_v1-library.html) #### Google Vault API - `vault/v1` Retention and eDiscovery for Google Workspace. To work with Vault resources, the account must have the [required Vault privileges](https://support.google.com/vault/answer/2799699) and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the **View All Matters** privilege. For example, to download an export, an account needs the **Manage Exports** privilege and the matter shared with them. - [Original documentation](https://developers.google.com/workspace/vault) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/vault_v1/vault_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/vault_v1/vault_v1-library.html) #### Chrome Verified Access API - `verifiedaccess/v1` API for Verified Access chrome extension to provide credential verification for chrome devices connecting to an enterprise network - [Original documentation](https://developers.google.com/chrome/verified-access) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/verifiedaccess_v1/verifiedaccess_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/verifiedaccess_v1/verifiedaccess_v1-library.html) #### Chrome Verified Access API - `verifiedaccess/v2` API for Verified Access chrome extension to provide credential verification for chrome devices connecting to an enterprise network - [Original documentation](https://developers.google.com/chrome/verified-access) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/verifiedaccess_v2/verifiedaccess_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/verifiedaccess_v2/verifiedaccess_v2-library.html) #### versionhistory.googleapis.com API - `versionhistory/v1` Version History API - Prod - [Original documentation](https://developer.chrome.com/docs/web-platform/versionhistory/guide) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/versionhistory_v1/versionhistory_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/versionhistory_v1/versionhistory_v1-library.html) #### Cloud Video Intelligence API - `videointelligence/v1` Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. - [Original documentation](https://cloud.google.com/video-intelligence/docs/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/videointelligence_v1/videointelligence_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/videointelligence_v1/videointelligence_v1-library.html) #### Cloud Vision API - `vision/v1` Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications. - [Original documentation](https://cloud.google.com/vision/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/vision_v1/vision_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/vision_v1/vision_v1-library.html) #### VM Migration API - `vmmigration/v1` Use the Migrate to Virtual Machines API to programmatically migrate workloads. - [Original documentation](https://cloud.google.com/migrate/virtual-machines) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/vmmigration_v1/vmmigration_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/vmmigration_v1/vmmigration_v1-library.html) #### VMware Engine API - `vmwareengine/v1` The Google VMware Engine API lets you programmatically manage VMware environments. - [Original documentation](https://cloud.google.com/solutions/vmware-as-a-service) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/vmwareengine_v1/vmwareengine_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/vmwareengine_v1/vmwareengine_v1-library.html) #### Serverless VPC Access API - `vpcaccess/v1` API for managing VPC access connectors. - [Original documentation](https://cloud.google.com/vpc/docs/configure-serverless-vpc-access) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/vpcaccess_v1/vpcaccess_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/vpcaccess_v1/vpcaccess_v1-library.html) #### Google Wallet API - `walletobjects/v1` API for issuers to save and manage Google Wallet Objects. - [Original documentation](https://developers.google.com/pay/passes) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/walletobjects_v1/walletobjects_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/walletobjects_v1/walletobjects_v1-library.html) #### Web Fonts Developer API - `webfonts/v1` The Google Web Fonts Developer API lets you retrieve information about web fonts served by Google. - [Original documentation](https://developers.google.com/fonts/docs/developer_api) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/webfonts_v1/webfonts_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/webfonts_v1/webfonts_v1-library.html) #### Web Risk API - `webrisk/v1` - [Original documentation](https://cloud.google.com/web-risk/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/webrisk_v1/webrisk_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/webrisk_v1/webrisk_v1-library.html) #### Web Security Scanner API - `websecurityscanner/v1` Scans your Compute and App Engine apps for common web vulnerabilities. - [Original documentation](https://cloud.google.com/security-command-center/docs/concepts-web-security-scanner-overview/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/websecurityscanner_v1/websecurityscanner_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/websecurityscanner_v1/websecurityscanner_v1-library.html) #### Workflow Executions API - `workflowexecutions/v1` Execute workflows created with Workflows API. - [Original documentation](https://cloud.google.com/workflows) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/workflowexecutions_v1/workflowexecutions_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/workflowexecutions_v1/workflowexecutions_v1-library.html) #### Workflows API - `workflows/v1` Manage workflow definitions. To execute workflows and manage executions, see the Workflows Executions API. - [Original documentation](https://cloud.google.com/workflows) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/workflows_v1/workflows_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/workflows_v1/workflows_v1-library.html) #### Workload Manager API - `workloadmanager/v1` Workload Manager is a service that provides tooling for enterprise workloads to automate the deployment and validation of your workloads against best practices and recommendations. - [Original documentation](https://cloud.google.com/workload-manager/docs) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/workloadmanager_v1/workloadmanager_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/workloadmanager_v1/workloadmanager_v1-library.html) #### Google Workspace Events API - `workspaceevents/v1` The Google Workspace Events API lets you subscribe to events and manage change notifications across Google Workspace applications. - [Original documentation](https://developers.google.com/workspace/events) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/workspaceevents_v1/workspaceevents_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/workspaceevents_v1/workspaceevents_v1-library.html) #### Cloud Workstations API - `workstations/v1` Allows administrators to create managed developer environments in the cloud. - [Original documentation](https://cloud.google.com/workstations) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/workstations_v1/workstations_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/workstations_v1/workstations_v1-library.html) #### YouTube Data API v3 - `youtube/v3` The YouTube Data API v3 is an API that provides access to YouTube data, such as videos, playlists, and channels. - [Original documentation](https://developers.google.com/youtube/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/youtube_v3/youtube_v3-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/youtube_v3/youtube_v3-library.html) #### YouTube Analytics API - `youtubeAnalytics/v2` Retrieves your YouTube Analytics data. - [Original documentation](https://developers.google.com/youtube/analytics) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/youtubeAnalytics_v2/youtubeAnalytics_v2-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/youtubeAnalytics_v2/youtubeAnalytics_v2-library.html) #### YouTube Reporting API - `youtubereporting/v1` Schedules reporting jobs containing your YouTube Analytics data and downloads the resulting bulk data reports in the form of CSV files. - [Original documentation](https://developers.google.com/youtube/reporting/v1/reports/) -- [Dart package details](https://pub.dev/documentation/googleapis/14.1.0-wip/youtubereporting_v1/youtubereporting_v1-library.html) +- [Dart package details](https://pub.dev/documentation/googleapis/15.0.0/youtubereporting_v1/youtubereporting_v1-library.html) diff --git a/generated/googleapis/lib/accessapproval/v1.dart b/generated/googleapis/lib/accessapproval/v1.dart index 161149f2b..45c19f0d1 100644 --- a/generated/googleapis/lib/accessapproval/v1.dart +++ b/generated/googleapis/lib/accessapproval/v1.dart @@ -77,11 +77,10 @@ class FoldersResource { /// Deletes the settings associated with a project, folder, or organization. /// - /// This will have the effect of disabling Access Approval for the project, - /// folder, or organization, but only if all ancestors also have Access - /// Approval disabled. If Access Approval is enabled at a higher level of the - /// hierarchy, then Access Approval will still be enabled at this level as the - /// settings are inherited. + /// This will have the effect of disabling Access Approval for the resource. + /// Access Approval may remain active based on parent resource settings. To + /// confirm the effective settings, call GetAccessApprovalSettings and verify + /// effective setting is disabled. /// /// Request parameters: /// @@ -116,7 +115,8 @@ class FoldersResource { return Empty.fromJson(response_ as core.Map); } - /// Gets the settings associated with a project, folder, or organization. + /// Gets the Access Approval settings associated with a project, folder, or + /// organization. /// /// Request parameters: /// @@ -304,11 +304,11 @@ class FoldersApprovalRequestsResource { /// Dismisses a request. /// - /// Returns the updated ApprovalRequest. NOTE: This does not deny access to - /// the resource if another request has been made and approved. It is - /// equivalent in effect to ignoring the request altogether. Returns NOT_FOUND - /// if the request does not exist. Returns FAILED_PRECONDITION if the request - /// exists but is not in a pending state. + /// Returns the updated ApprovalRequest. NOTE: When a request is dismissed, it + /// is considered ignored. Dismissing a request does not prevent access + /// granted by other Access Approval requests. Returns NOT_FOUND if the + /// request does not exist. Returns FAILED_PRECONDITION if the request exists + /// but is not in a pending state. /// /// [request] - The metadata request object. /// @@ -392,10 +392,10 @@ class FoldersApprovalRequestsResource { /// Invalidates an existing ApprovalRequest. /// - /// Returns the updated ApprovalRequest. NOTE: This does not deny access to - /// the resource if another request has been made and approved. It only - /// invalidates a single approval. Returns FAILED_PRECONDITION if the request - /// exists but is not in an approved state. + /// Returns the updated ApprovalRequest. NOTE: This action revokes Google + /// access based on this approval request. If the resource has other active + /// approvals, access will remain granted. Returns FAILED_PRECONDITION if the + /// request exists but is not in an approved state. /// /// [request] - The metadata request object. /// @@ -509,11 +509,10 @@ class OrganizationsResource { /// Deletes the settings associated with a project, folder, or organization. /// - /// This will have the effect of disabling Access Approval for the project, - /// folder, or organization, but only if all ancestors also have Access - /// Approval disabled. If Access Approval is enabled at a higher level of the - /// hierarchy, then Access Approval will still be enabled at this level as the - /// settings are inherited. + /// This will have the effect of disabling Access Approval for the resource. + /// Access Approval may remain active based on parent resource settings. To + /// confirm the effective settings, call GetAccessApprovalSettings and verify + /// effective setting is disabled. /// /// Request parameters: /// @@ -548,7 +547,8 @@ class OrganizationsResource { return Empty.fromJson(response_ as core.Map); } - /// Gets the settings associated with a project, folder, or organization. + /// Gets the Access Approval settings associated with a project, folder, or + /// organization. /// /// Request parameters: /// @@ -737,11 +737,11 @@ class OrganizationsApprovalRequestsResource { /// Dismisses a request. /// - /// Returns the updated ApprovalRequest. NOTE: This does not deny access to - /// the resource if another request has been made and approved. It is - /// equivalent in effect to ignoring the request altogether. Returns NOT_FOUND - /// if the request does not exist. Returns FAILED_PRECONDITION if the request - /// exists but is not in a pending state. + /// Returns the updated ApprovalRequest. NOTE: When a request is dismissed, it + /// is considered ignored. Dismissing a request does not prevent access + /// granted by other Access Approval requests. Returns NOT_FOUND if the + /// request does not exist. Returns FAILED_PRECONDITION if the request exists + /// but is not in a pending state. /// /// [request] - The metadata request object. /// @@ -827,10 +827,10 @@ class OrganizationsApprovalRequestsResource { /// Invalidates an existing ApprovalRequest. /// - /// Returns the updated ApprovalRequest. NOTE: This does not deny access to - /// the resource if another request has been made and approved. It only - /// invalidates a single approval. Returns FAILED_PRECONDITION if the request - /// exists but is not in an approved state. + /// Returns the updated ApprovalRequest. NOTE: This action revokes Google + /// access based on this approval request. If the resource has other active + /// approvals, access will remain granted. Returns FAILED_PRECONDITION if the + /// request exists but is not in an approved state. /// /// [request] - The metadata request object. /// @@ -945,11 +945,10 @@ class ProjectsResource { /// Deletes the settings associated with a project, folder, or organization. /// - /// This will have the effect of disabling Access Approval for the project, - /// folder, or organization, but only if all ancestors also have Access - /// Approval disabled. If Access Approval is enabled at a higher level of the - /// hierarchy, then Access Approval will still be enabled at this level as the - /// settings are inherited. + /// This will have the effect of disabling Access Approval for the resource. + /// Access Approval may remain active based on parent resource settings. To + /// confirm the effective settings, call GetAccessApprovalSettings and verify + /// effective setting is disabled. /// /// Request parameters: /// @@ -984,7 +983,8 @@ class ProjectsResource { return Empty.fromJson(response_ as core.Map); } - /// Gets the settings associated with a project, folder, or organization. + /// Gets the Access Approval settings associated with a project, folder, or + /// organization. /// /// Request parameters: /// @@ -1172,11 +1172,11 @@ class ProjectsApprovalRequestsResource { /// Dismisses a request. /// - /// Returns the updated ApprovalRequest. NOTE: This does not deny access to - /// the resource if another request has been made and approved. It is - /// equivalent in effect to ignoring the request altogether. Returns NOT_FOUND - /// if the request does not exist. Returns FAILED_PRECONDITION if the request - /// exists but is not in a pending state. + /// Returns the updated ApprovalRequest. NOTE: When a request is dismissed, it + /// is considered ignored. Dismissing a request does not prevent access + /// granted by other Access Approval requests. Returns NOT_FOUND if the + /// request does not exist. Returns FAILED_PRECONDITION if the request exists + /// but is not in a pending state. /// /// [request] - The metadata request object. /// @@ -1260,10 +1260,10 @@ class ProjectsApprovalRequestsResource { /// Invalidates an existing ApprovalRequest. /// - /// Returns the updated ApprovalRequest. NOTE: This does not deny access to - /// the resource if another request has been made and approved. It only - /// invalidates a single approval. Returns FAILED_PRECONDITION if the request - /// exists but is not in an approved state. + /// Returns the updated ApprovalRequest. NOTE: This action revokes Google + /// access based on this approval request. If the resource has other active + /// approvals, access will remain granted. Returns FAILED_PRECONDITION if the + /// request exists but is not in an approved state. /// /// [request] - The metadata request object. /// @@ -1412,17 +1412,15 @@ class AccessApprovalSettings { /// Output only. core.bool? ancestorHasActiveKeyVersion; - /// Policy for approval. + /// Policy configuration for Access Approval that sets the operating mode. /// - /// This contains all policies. + /// The available policies are Transparency, Streamlined Support, and Approval + /// Required. /// /// Optional. CustomerApprovalApprovalPolicy? approvalPolicy; - /// Policy for approval included inherited settings to understand the exact - /// policy applied to this resource. - /// - /// This is a read-only field. + /// Effective policy applied for Access Approval, inclusive of inheritance. /// /// Output only. CustomerApprovalApprovalPolicy? effectiveApprovalPolicy; @@ -1447,8 +1445,7 @@ class AccessApprovalSettings { /// services. If name refers to a folder or project, enrollment can only be /// done on an all or nothing basis. If a cloud_product is repeated in this /// list, the first entry will be honored and all following entries will be - /// discarded. A maximum of 10 enrolled services will be enforced, to be - /// expanded as the set of supported services is expanded. + /// discarded. core.List? enrolledServices; /// This field is read only (not settable via UpdateAccessApprovalSettings @@ -1479,28 +1476,40 @@ class AccessApprovalSettings { /// addresses are allowed. core.List? notificationEmails; - /// A pubsub topic to which notifications relating to approval requests should - /// be sent. + /// A pubsub topic that notifications relating to access approval are + /// published to. + /// + /// Notifications include pre-approved accesses. /// /// Optional. core.String? notificationPubsubTopic; - /// This preference is communicated to Google personnel when sending an - /// approval request but can be overridden if necessary. + /// This field is used to set a preference for granularity of an access + /// approval request. + /// + /// If true, Google personnel will be asked to send resource-level requests + /// when possible. If false, Google personnel will be asked to send requests + /// at the project level. core.bool? preferNoBroadApprovalRequests; - /// This preference is shared with Google personnel, but can be overridden if - /// said personnel deems necessary. + /// Set the default access approval request expiration time. /// - /// The approver ultimately can set the expiration at approval time. + /// This value is able to be set directly by the customer at the time of + /// approval, overriding this suggested value. We recommend setting this value + /// to 30 days. core.int? preferredRequestExpirationDays; - /// A setting to indicate the maximum width of an Access Approval request. + /// A setting that indicates the maximum scope of an Access Approval request: + /// either organization, folder, or project. + /// + /// Google administrators will be asked to send requests no broader than the + /// configured scope. /// /// Optional. /// Possible string values are: - /// - "REQUEST_SCOPE_MAX_WIDTH_PREFERENCE_UNSPECIFIED" : Default value for - /// proto, shouldn't be used. + /// - "REQUEST_SCOPE_MAX_WIDTH_PREFERENCE_UNSPECIFIED" : Default value, + /// defaults to ORGANIZATION if not set. This value is not able to be + /// configured by the user, do not use. /// - "ORGANIZATION" : This is the widest scope possible. It means the /// customer has no scope restriction when it comes to Access Approval /// requests. @@ -1510,8 +1519,10 @@ class AccessApprovalSettings { /// broad as the Project level. core.String? requestScopeMaxWidthPreference; - /// A setting to require approval request justifications to be customer - /// visible. + /// When enabled, Google will only be able to send approval requests for + /// access reasons with a customer accessible case ID in the reason detail. + /// + /// Also known as "Require customer initiated support case justification" /// /// Optional. core.bool? requireCustomerVisibleJustification; @@ -1605,9 +1616,10 @@ class AccessApprovalSettings { }; } -/// Home office and physical location of the principal. +/// Physical assigned office and physical location of the Google administrator +/// performing the access. class AccessLocations { - /// The "home office" location of the principal. + /// The "home office" location of the Google administrator. /// /// A two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" /// or a region code. In some limited situations Google systems may refer @@ -1616,7 +1628,7 @@ class AccessLocations { /// * SAM: South America * ANT: Antarctica * ANY: Any location core.String? principalOfficeCountry; - /// Physical location of the principal at the time of the access. + /// Physical location of the Google administrator at the time of the access. /// /// A two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" /// or a region code. In some limited situations Google systems may refer @@ -1651,9 +1663,9 @@ class AccessReason { /// See comments for each type above. core.String? detail; - /// Type of access justification. + /// Type of access reason. /// Possible string values are: - /// - "TYPE_UNSPECIFIED" : Default value for proto, shouldn't be used. + /// - "TYPE_UNSPECIFIED" : This value is not used. /// - "CUSTOMER_INITIATED_SUPPORT" : Customer made a request or raised an /// issue that required the principal to access customer data. `detail` is of /// the form ("#####" is the issue ID): * "Feedback Report: #####" * "Case @@ -1723,7 +1735,7 @@ class ApprovalRequest { /// The locations for which approval is being requested. AccessLocations? requestedLocations; - /// The justification for which approval is being requested. + /// The access reason for which approval is being requested. AccessReason? requestedReason; /// The resource for which approval is being requested. @@ -1891,6 +1903,8 @@ class ApproveDecision { } /// This field contains the augmented information of the request. +/// +/// Requires augmented administrative access to be enabled. class AugmentedInfo { /// For command-line tools, the full command-line exactly as entered by the /// actor without adding any additional characters (such as quotation marks). @@ -1912,16 +1926,20 @@ class CustomerApprovalApprovalPolicy { /// /// Optional. /// Possible string values are: - /// - "JUSTIFICATION_BASED_APPROVAL_POLICY_UNSPECIFIED" : Default value for - /// proto. - /// - "JUSTIFICATION_BASED_APPROVAL_ENABLED_ALL" : Instant approval is enabled - /// for all accesses. - /// - "JUSTIFICATION_BASED_APPROVAL_ENABLED_EXTERNAL_JUSTIFICATIONS" : Instant - /// approval is enabled for external justifications. - /// - "JUSTIFICATION_BASED_APPROVAL_NOT_ENABLED" : Instant approval is not - /// enabled for any accesses. - /// - "JUSTIFICATION_BASED_APPROVAL_INHERITED" : Instant approval is inherited - /// from the parent. + /// - "JUSTIFICATION_BASED_APPROVAL_POLICY_UNSPECIFIED" : Default value, + /// defaults to JUSTIFICATION_BASED_APPROVAL_NOT_ENABLED if not set. This + /// value is not able to be configured by the user, do not use. + /// - "JUSTIFICATION_BASED_APPROVAL_ENABLED_ALL" : Audit-only mode. All + /// accesses are pre-approved instantly. + /// - "JUSTIFICATION_BASED_APPROVAL_ENABLED_EXTERNAL_JUSTIFICATIONS" : + /// Customer initiated support access reasons are pre-approved instantly. All + /// other accesses require customer approval. + /// - "JUSTIFICATION_BASED_APPROVAL_NOT_ENABLED" : All access approval + /// requests require customer approval. This is the default value if the + /// policy is not set. + /// - "JUSTIFICATION_BASED_APPROVAL_INHERITED" : Defer configuration to parent + /// settings. This is the default value if the policy is not set and the + /// parent has a value set. core.String? justificationBasedApprovalPolicy; CustomerApprovalApprovalPolicy({this.justificationBasedApprovalPolicy}); @@ -1977,15 +1995,39 @@ typedef Empty = $Empty; class EnrolledService { /// The product for which Access Approval will be enrolled. /// - /// Allowed values are listed below (case-sensitive): * all * GA * App Engine - /// * Artifact Registry * BigQuery * Certificate Authority Service * Cloud - /// Bigtable * Cloud Key Management Service * Compute Engine * Cloud Composer - /// * Cloud Dataflow * Cloud Dataproc * Cloud DLP * Cloud EKM * Cloud - /// Firestore * Cloud HSM * Cloud Identity and Access Management * Cloud - /// Logging * Cloud NAT * Cloud Pub/Sub * Cloud Spanner * Cloud SQL * Cloud - /// Storage * Eventarc * Google Kubernetes Engine * Organization Policy - /// Serivice * Persistent Disk * Resource Manager * Secret Manager * Speaker - /// ID Note: These values are supported as input for legacy purposes, but will + /// Allowed values are listed below (case-sensitive): * all * GA * Access + /// Context Manager * Anthos Identity Service * AlloyDB for PostgreSQL * + /// Apigee * Application Integration * App Hub * Artifact Registry * Anthos + /// Service Mesh * Access Transparency * BigQuery * Certificate Authority + /// Service * Cloud Bigtable * CCAI Assist and Knowledge * Cloud Dataflow * + /// Cloud Dataproc * CEP Security Gateway * Compliance Evaluation Service * + /// Cloud Firestore * Cloud Healthcare API * Chronicle * Cloud AI Companion + /// Gateway - Titan * Google Cloud Armor * Cloud Asset Inventory * Cloud Asset + /// Search * Cloud Deploy * Cloud DNS * Cloud Latency * Cloud Memorystore for + /// Redis * CloudNet Control * Cloud Riptide * Cloud Tasks * Cloud Trace * + /// Cloud Data Transfer * Cloud Composer * Integration Connectors * Contact + /// Center AI Insights * Cloud Pub/Sub * Cloud Run * Resource Manager * Cloud + /// Spanner * Database Center * Cloud Dataform * Cloud Data Fusion * Dataplex + /// * Dialogflow Customer Experience Edition * Cloud DLP * Document AI * Edge + /// Container * Edge Network * Cloud EKM * Eventarc * Firebase Data Connect * + /// Firebase Rules * App Engine * Cloud Build * Compute Engine * Cloud + /// Functions (2nd Gen) * Cloud Filestore * Cloud Interconnect * Cloud NetApp + /// Volumes * Cloud Storage * Generative AI App Builder * Google Kubernetes + /// Engine * Backup for GKE API * GKE Connect * GKE Hub * Hoverboard * Cloud + /// HSM * Cloud Identity and Access Management * Cloud Identity-Aware Proxy * + /// Infrastructure Manager * Identity Storage Service * Key Access + /// Justifications * Cloud Key Management Service * Cloud Logging * Looker + /// (Google Cloud core) * Looker Studio * Management Hub * Model Armor * Cloud + /// Monitoring * Cloud NAT * Connectivity Hub * External passthrough Network + /// Load Balancer * OIDC One * Organization Policy Service * Org Lifecycle * + /// Persistent Disk * Parameter Manager * Private Services Access * Regional + /// Internal Application Load Balancer * Storage Batch Operations * Cloud + /// Security Command Center * Secure Source Manager * Seeker * Service + /// Provisioning * Speaker ID * Secret Manager * Cloud SQL * Cloud + /// Speech-to-Text * Traffic Director * Cloud Text-to-Speech * USPS Andromeda + /// * Vertex AI * Virtual Private Cloud (VPC) * VPC Access * VPC Service + /// Controls Troubleshooter * VPC virtnet * Cloud Workstations * Web Risk + /// Note: These values are supported as input for legacy purposes, but will /// not be returned from the API. * all * ga-only * appengine.googleapis.com * /// artifactregistry.googleapis.com * bigquery.googleapis.com * /// bigtable.googleapis.com * container.googleapis.com * @@ -2005,8 +2047,9 @@ class EnrolledService { /// The enrollment level of the service. /// Possible string values are: - /// - "ENROLLMENT_LEVEL_UNSPECIFIED" : Default value for proto, shouldn't be - /// used. + /// - "ENROLLMENT_LEVEL_UNSPECIFIED" : Default value if not set, defaults to + /// "BLOCK_ALL". This value is not available to be set by the user, do not + /// use. /// - "BLOCK_ALL" : Service is enrolled in Access Approval for all requests core.String? enrollmentLevel; diff --git a/generated/googleapis/lib/admin/directory_v1.dart b/generated/googleapis/lib/admin/directory_v1.dart index 8c51c2b12..9a4fc46a5 100644 --- a/generated/googleapis/lib/admin/directory_v1.dart +++ b/generated/googleapis/lib/admin/directory_v1.dart @@ -8456,6 +8456,16 @@ class ChromeOsDevice { /// The Chrome device's operating system version. core.String? osVersion; + /// Compliance status of the OS version. + /// + /// Output only. + /// Possible string values are: + /// - "complianceUnspecified" : Compliance status unspecified. + /// - "compliant" : Compliance status compliant. + /// - "pending" : Compliance status pending. + /// - "notCompliant" : Compliance status not compliant. + core.String? osVersionCompliance; + /// The Chrome device's platform version. core.String? platformVersion; @@ -8537,6 +8547,7 @@ class ChromeOsDevice { this.orgUnitPath, this.osUpdateStatus, this.osVersion, + this.osVersionCompliance, this.platformVersion, this.recentUsers, this.screenshotFiles, @@ -8670,6 +8681,7 @@ class ChromeOsDevice { ) : null, osVersion: json_['osVersion'] as core.String?, + osVersionCompliance: json_['osVersionCompliance'] as core.String?, platformVersion: json_['platformVersion'] as core.String?, recentUsers: (json_['recentUsers'] as core.List?) @@ -8763,6 +8775,8 @@ class ChromeOsDevice { if (orgUnitPath != null) 'orgUnitPath': orgUnitPath!, if (osUpdateStatus != null) 'osUpdateStatus': osUpdateStatus!, if (osVersion != null) 'osVersion': osVersion!, + if (osVersionCompliance != null) + 'osVersionCompliance': osVersionCompliance!, if (platformVersion != null) 'platformVersion': platformVersion!, if (recentUsers != null) 'recentUsers': recentUsers!, if (screenshotFiles != null) 'screenshotFiles': screenshotFiles!, diff --git a/generated/googleapis/lib/admin/reports_v1.dart b/generated/googleapis/lib/admin/reports_v1.dart index 7a50532d4..fb50a41a7 100644 --- a/generated/googleapis/lib/admin/reports_v1.dart +++ b/generated/googleapis/lib/admin/reports_v1.dart @@ -103,7 +103,7 @@ class ActivitiesResource { /// [applicationName] - Application name for which the events are to be /// retrieved. /// Value must have pattern - /// `(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(keep)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)|(vault)|(gemini_in_workspace_apps)`. + /// `(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(classroom)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gmail)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(keep)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)|(vault)|(gemini_in_workspace_apps)`. /// Possible string values are: /// - "access_transparency" : The Google Workspace Access Transparency /// activity reports return information about different types of Access @@ -121,6 +121,9 @@ class ActivitiesResource { /// customers. /// - "gcp" : The Google Cloud Platform application's activity reports return /// information about various GCP activity events. + /// - "gmail" : The Gmail application's activity reports return information + /// about various \[Gmail activity + /// events\](/admin-sdk/reports/v1/appendix/activity/gmail). /// - "gplus" : The Google+ application's activity reports return information /// about various Google+ activity events. /// - "groups" : The Google Groups application's activity reports return @@ -159,6 +162,9 @@ class ActivitiesResource { /// - "gemini_in_workspace_apps" : The Gemini for Workspace activity reports /// return information about various types of Gemini activity events performed /// by users within a Workspace application. + /// - "classroom" : The Classroom activity reports return information about + /// different types of + /// [Classroom activity events](https://developers.google.com/workspace/admin/reports/v1/appendix/activity/classroom). /// /// [actorIpAddress] - The Internet Protocol (IP) Address of host where the /// event was performed. This is an additional way to filter a report's @@ -184,7 +190,8 @@ class ActivitiesResource { /// itself can be requested in August. If the `endTime` is not specified, the /// report returns all activities from the `startTime` until the current time /// or the most recent 180 days if the `startTime` is more than 180 days in - /// the past. + /// the past. For Gmail requests, `startTime` and `endTime` must be provided + /// and the difference must not be greater than 30 days. /// Value must have pattern /// `(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:\.(\d+))?(?:(Z)|(\[-+\])(\d\d):(\d\d))`. /// @@ -264,7 +271,9 @@ class ActivitiesResource { /// The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. /// The report returns all activities from `startTime` until `endTime`. The /// `startTime` must be before the `endTime` (if specified) and the current - /// time when the request is made, or the API returns an error. + /// time when the request is made, or the API returns an error. For Gmail + /// requests, `startTime` and `endTime` must be provided and the difference + /// must not be greater than 30 days. /// Value must have pattern /// `(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:\.(\d+))?(?:(Z)|(\[-+\])(\d\d):(\d\d))`. /// @@ -341,7 +350,7 @@ class ActivitiesResource { /// [applicationName] - Application name for which the events are to be /// retrieved. /// Value must have pattern - /// `(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(keep)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)`. + /// `(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(classroom)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(keep)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)`. /// Possible string values are: /// - "access_transparency" : The Google Workspace Access Transparency /// activity reports return information about different types of Access @@ -392,6 +401,9 @@ class ActivitiesResource { /// - "keep" : The Keep application's activity reports return information /// about various Google Keep activity events. The Keep activity report is /// only available for Google Workspace Business and Enterprise customers. + /// - "classroom" : The Classroom activity reports return information about + /// different types of + /// [Classroom activity events](https://developers.google.com/workspace/admin/reports/v1/appendix/activity/classroom). /// /// [actorIpAddress] - The Internet Protocol (IP) Address of host where the /// event was performed. This is an additional way to filter a report's diff --git a/generated/googleapis/lib/aiplatform/v1.dart b/generated/googleapis/lib/aiplatform/v1.dart index 4f3200346..22ebf0675 100644 --- a/generated/googleapis/lib/aiplatform/v1.dart +++ b/generated/googleapis/lib/aiplatform/v1.dart @@ -50,7 +50,14 @@ /// - [ProjectsLocationsDeploymentResourcePoolsOperationsResource] /// - [ProjectsLocationsEndpointsResource] /// - [ProjectsLocationsEndpointsChatResource] +/// - [ProjectsLocationsEndpointsDeployedModelsResource] +/// - [ProjectsLocationsEndpointsDeployedModelsInvokeResource] +/// - [ProjectsLocationsEndpointsInvokeResource] +/// - [ProjectsLocationsEndpointsOpenapiResource] /// - [ProjectsLocationsEndpointsOperationsResource] +/// - [ProjectsLocationsEvaluationItemsResource] +/// - [ProjectsLocationsEvaluationRunsResource] +/// - [ProjectsLocationsEvaluationSetsResource] /// - [ProjectsLocationsFeatureGroupsResource] /// - [ProjectsLocationsFeatureGroupsFeaturesResource] /// - [ProjectsLocationsFeatureGroupsFeaturesOperationsResource] @@ -1424,6 +1431,12 @@ class ProjectsLocationsResource { ProjectsLocationsDeploymentResourcePoolsResource(_requester); ProjectsLocationsEndpointsResource get endpoints => ProjectsLocationsEndpointsResource(_requester); + ProjectsLocationsEvaluationItemsResource get evaluationItems => + ProjectsLocationsEvaluationItemsResource(_requester); + ProjectsLocationsEvaluationRunsResource get evaluationRuns => + ProjectsLocationsEvaluationRunsResource(_requester); + ProjectsLocationsEvaluationSetsResource get evaluationSets => + ProjectsLocationsEvaluationSetsResource(_requester); ProjectsLocationsFeatureGroupsResource get featureGroups => ProjectsLocationsFeatureGroupsResource(_requester); ProjectsLocationsFeatureOnlineStoresResource get featureOnlineStores => @@ -1709,6 +1722,101 @@ class ProjectsLocationsResource { ); } + /// Generates rubrics for a given prompt. + /// + /// A rubric represents a single testable criterion for evaluation. One input + /// prompt could have multiple rubrics This RPC allows users to get suggested + /// rubrics based on provided prompt, which can then be reviewed and used for + /// subsequent evaluations. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [location] - Required. The resource name of the Location to generate + /// rubrics from. Format: `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudAiplatformV1GenerateInstanceRubricsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future + generateInstanceRubrics( + GoogleCloudAiplatformV1GenerateInstanceRubricsRequest request, + core.String location, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + core.Uri.encodeFull('$location') + ':generateInstanceRubrics'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleCloudAiplatformV1GenerateInstanceRubricsResponse.fromJson( + response_ as core.Map, + ); + } + + /// Generates synthetic data based on the provided configuration. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [location] - Required. The resource name of the Location to run the job. + /// Format: `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudAiplatformV1GenerateSyntheticDataResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future + generateSyntheticData( + GoogleCloudAiplatformV1GenerateSyntheticDataRequest request, + core.String location, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + core.Uri.encodeFull('$location') + ':generateSyntheticData'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleCloudAiplatformV1GenerateSyntheticDataResponse.fromJson( + response_ as core.Map, + ); + } + /// Gets information about a location. /// /// Request parameters: @@ -1792,9 +1900,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -6229,6 +6337,12 @@ class ProjectsLocationsEndpointsResource { ProjectsLocationsEndpointsChatResource get chat => ProjectsLocationsEndpointsChatResource(_requester); + ProjectsLocationsEndpointsDeployedModelsResource get deployedModels => + ProjectsLocationsEndpointsDeployedModelsResource(_requester); + ProjectsLocationsEndpointsInvokeResource get invoke => + ProjectsLocationsEndpointsInvokeResource(_requester); + ProjectsLocationsEndpointsOpenapiResource get openapi => + ProjectsLocationsEndpointsOpenapiResource(_requester); ProjectsLocationsEndpointsOperationsResource get operations => ProjectsLocationsEndpointsOperationsResource(_requester); @@ -7340,6 +7454,210 @@ class ProjectsLocationsEndpointsChatResource { } } +class ProjectsLocationsEndpointsDeployedModelsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsEndpointsDeployedModelsInvokeResource get invoke => + ProjectsLocationsEndpointsDeployedModelsInvokeResource(_requester); + + ProjectsLocationsEndpointsDeployedModelsResource(commons.ApiRequester client) + : _requester = client; +} + +class ProjectsLocationsEndpointsDeployedModelsInvokeResource { + final commons.ApiRequester _requester; + + ProjectsLocationsEndpointsDeployedModelsInvokeResource( + commons.ApiRequester client, + ) : _requester = client; + + /// Forwards arbitrary HTTP requests for both streaming and non-streaming + /// cases. + /// + /// To use this method, invoke_route_prefix must be set to allow the paths + /// that will be specified in the request. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [endpoint] - Required. The name of the Endpoint requested to serve the + /// prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/endpoints/\[^/\]+$`. + /// + /// [deployedModelId] - ID of the DeployedModel that serves the invoke + /// request. + /// + /// [invokeId] - null + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleApiHttpBody]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future invoke( + GoogleCloudAiplatformV1InvokeRequest request, + core.String endpoint, + core.String deployedModelId, + core.String invokeId, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + + core.Uri.encodeFull('$endpoint') + + '/deployedModels/' + + commons.escapeVariable('$deployedModelId') + + '/invoke/' + + core.Uri.encodeFull('$invokeId'); + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleApiHttpBody.fromJson( + response_ as core.Map, + ); + } +} + +class ProjectsLocationsEndpointsInvokeResource { + final commons.ApiRequester _requester; + + ProjectsLocationsEndpointsInvokeResource(commons.ApiRequester client) + : _requester = client; + + /// Forwards arbitrary HTTP requests for both streaming and non-streaming + /// cases. + /// + /// To use this method, invoke_route_prefix must be set to allow the paths + /// that will be specified in the request. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [endpoint] - Required. The name of the Endpoint requested to serve the + /// prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/endpoints/\[^/\]+$`. + /// + /// [invokeId] - null + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleApiHttpBody]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future invoke( + GoogleCloudAiplatformV1InvokeRequest request, + core.String endpoint, + core.String invokeId, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + + core.Uri.encodeFull('$endpoint') + + '/invoke/' + + core.Uri.encodeFull('$invokeId'); + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleApiHttpBody.fromJson( + response_ as core.Map, + ); + } +} + +class ProjectsLocationsEndpointsOpenapiResource { + final commons.ApiRequester _requester; + + ProjectsLocationsEndpointsOpenapiResource(commons.ApiRequester client) + : _requester = client; + + /// Forwards arbitrary HTTP requests for both streaming and non-streaming + /// cases. + /// + /// To use this method, invoke_route_prefix must be set to allow the paths + /// that will be specified in the request. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [endpoint] - Required. The name of the Endpoint requested to serve the + /// prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/endpoints/openapi$`. + /// + /// [deployedModelId] - ID of the DeployedModel that serves the invoke + /// request. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleApiHttpBody]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future embeddings( + GoogleApiHttpBody request, + core.String endpoint, { + core.String? deployedModelId, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (deployedModelId != null) 'deployedModelId': [deployedModelId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$endpoint') + '/embeddings'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleApiHttpBody.fromJson( + response_ as core.Map, + ); + } +} + class ProjectsLocationsEndpointsOperationsResource { final commons.ApiRequester _requester; @@ -7583,56 +7901,43 @@ class ProjectsLocationsEndpointsOperationsResource { } } -class ProjectsLocationsFeatureGroupsResource { +class ProjectsLocationsEvaluationItemsResource { final commons.ApiRequester _requester; - ProjectsLocationsFeatureGroupsFeaturesResource get features => - ProjectsLocationsFeatureGroupsFeaturesResource(_requester); - ProjectsLocationsFeatureGroupsOperationsResource get operations => - ProjectsLocationsFeatureGroupsOperationsResource(_requester); - - ProjectsLocationsFeatureGroupsResource(commons.ApiRequester client) + ProjectsLocationsEvaluationItemsResource(commons.ApiRequester client) : _requester = client; - /// Creates a new FeatureGroup in a given project and location. + /// Creates an Evaluation Item. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the Location to create - /// FeatureGroups. Format: `projects/{project}/locations/{location}` + /// [parent] - Required. The resource name of the Location to create the + /// Evaluation Item in. Format: `projects/{project}/locations/{location}` /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// - /// [featureGroupId] - Required. The ID to use for this FeatureGroup, which - /// will become the final component of the FeatureGroup's resource name. This - /// value may be up to 128 characters, and valid characters are `[a-z0-9_]`. - /// The first character cannot be a number. The value must be unique within - /// the project and location. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleCloudAiplatformV1EvaluationItem]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future create( - GoogleCloudAiplatformV1FeatureGroup request, + async.Future create( + GoogleCloudAiplatformV1EvaluationItem request, core.String parent, { - core.String? featureGroupId, core.String? $fields, }) async { final body_ = convert.json.encode(request); final queryParams_ = >{ - if (featureGroupId != null) 'featureGroupId': [featureGroupId], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/featureGroups'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/evaluationItems'; final response_ = await _requester.request( url_, @@ -7640,23 +7945,20 @@ class ProjectsLocationsFeatureGroupsResource { body: body_, queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleCloudAiplatformV1EvaluationItem.fromJson( response_ as core.Map, ); } - /// Deletes a single FeatureGroup. + /// Deletes an Evaluation Item. /// /// Request parameters: /// - /// [name] - Required. The name of the FeatureGroup to be deleted. Format: - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /// [name] - Required. The name of the EvaluationItem resource to be deleted. + /// Format: + /// `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. - /// - /// [force] - If set to true, any Features under this FeatureGroup will also - /// be deleted. (Otherwise, the request will only work if the FeatureGroup has - /// no Features.) + /// `^projects/\[^/\]+/locations/\[^/\]+/evaluationItems/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -7670,11 +7972,9 @@ class ProjectsLocationsFeatureGroupsResource { /// this method will complete with the same error. async.Future delete( core.String name, { - core.bool? force, core.String? $fields, }) async { final queryParams_ = >{ - if (force != null) 'force': ['${force}'], if ($fields != null) 'fields': [$fields], }; @@ -7690,25 +7990,26 @@ class ProjectsLocationsFeatureGroupsResource { ); } - /// Gets details of a single FeatureGroup. + /// Gets an Evaluation Item. /// /// Request parameters: /// - /// [name] - Required. The name of the FeatureGroup resource. + /// [name] - Required. The name of the EvaluationItem resource. Format: + /// `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/evaluationItems/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1FeatureGroup]. + /// Completes with a [GoogleCloudAiplatformV1EvaluationItem]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( + async.Future get( core.String name, { core.String? $fields, }) async { @@ -7723,113 +8024,44 @@ class ProjectsLocationsFeatureGroupsResource { 'GET', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1FeatureGroup.fromJson( - response_ as core.Map, - ); - } - - /// Gets the access control policy for a resource. - /// - /// Returns an empty policy if the resource exists and does not have a policy - /// set. - /// - /// Request parameters: - /// - /// [resource] - 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. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. - /// - /// [options_requestedPolicyVersion] - Optional. The maximum policy version - /// that will be used to format the policy. Valid values are 0, 1, and 3. - /// Requests specifying an invalid value will be rejected. Requests for - /// policies with any conditional role bindings must specify version 3. - /// Policies with no conditional role bindings may specify any valid value or - /// leave the field unset. The policy in the response might use the policy - /// version that you specified, or it might use a lower policy version. For - /// example, if you specify version 3, but the policy has no conditional role - /// bindings, the response uses version 1. To learn which resources support - /// conditions in their IAM policies, see the - /// [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [GoogleIamV1Policy]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future getIamPolicy( - core.String resource, { - core.int? options_requestedPolicyVersion, - core.String? $fields, - }) async { - final queryParams_ = >{ - if (options_requestedPolicyVersion != null) - 'options.requestedPolicyVersion': ['${options_requestedPolicyVersion}'], - if ($fields != null) 'fields': [$fields], - }; - - final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':getIamPolicy'; - - final response_ = await _requester.request( - url_, - 'POST', - queryParams: queryParams_, - ); - return GoogleIamV1Policy.fromJson( + return GoogleCloudAiplatformV1EvaluationItem.fromJson( response_ as core.Map, ); } - /// Lists FeatureGroups in a given project and location. + /// Lists Evaluation Items. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the Location to list - /// FeatureGroups. Format: `projects/{project}/locations/{location}` + /// [parent] - Required. The resource name of the Location from which to list + /// the Evaluation Items. Format: `projects/{project}/locations/{location}` /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// - /// [filter] - Lists the FeatureGroups that match the filter expression. The - /// following fields are supported: * `create_time`: Supports `=`, `!=`, `<`, - /// `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * - /// `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. - /// Values must be in RFC 3339 format. * `labels`: Supports key-value equality - /// and key presence. Examples: * `create_time > "2020-01-01" OR update_time > - /// "2020-01-01"` FeatureGroups created or updated after 2020-01-01. * - /// `labels.env = "prod"` FeatureGroups with label "env" set to "prod". + /// [filter] - Optional. Filter expression that matches a subset of the + /// EvaluationItems to show. For field names both snake_case and camelCase are + /// supported. For more information about filter syntax, see + /// \[AIP-160\](https://google.aip.dev/160). /// - /// [orderBy] - A comma-separated list of fields to order by, sorted in - /// ascending order. Use "desc" after a field name for descending. Supported - /// Fields: * `create_time` * `update_time` + /// [orderBy] - Optional. A comma-separated list of fields to order by, sorted + /// in ascending order by default. Use `desc` after a field name for + /// descending. /// - /// [pageSize] - The maximum number of FeatureGroups to return. The service - /// may return fewer than this value. If unspecified, at most 100 - /// FeatureGroups will be returned. The maximum value is 100; any value - /// greater than 100 will be coerced to 100. + /// [pageSize] - Optional. The maximum number of Evaluation Items to return. /// - /// [pageToken] - A page token, received from a previous - /// FeatureRegistryService.ListFeatureGroups call. Provide this to retrieve - /// the subsequent page. When paginating, all other parameters provided to - /// FeatureRegistryService.ListFeatureGroups must match the call that provided - /// the page token. + /// [pageToken] - Optional. A page token, received from a previous + /// `ListEvaluationItems` call. Provide this to retrieve the subsequent page. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1ListFeatureGroupsResponse]. + /// Completes with a [GoogleCloudAiplatformV1ListEvaluationItemsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( + async.Future list( core.String parent, { core.String? filter, core.String? orderBy, @@ -7845,102 +8077,96 @@ class ProjectsLocationsFeatureGroupsResource { if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/featureGroups'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/evaluationItems'; final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1ListFeatureGroupsResponse.fromJson( + return GoogleCloudAiplatformV1ListEvaluationItemsResponse.fromJson( response_ as core.Map, ); } +} - /// Updates the parameters of a single FeatureGroup. +class ProjectsLocationsEvaluationRunsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsEvaluationRunsResource(commons.ApiRequester client) + : _requester = client; + + /// Cancels an Evaluation Run. + /// + /// Attempts to cancel a running Evaluation Run asynchronously. Status of run + /// can be checked via GetEvaluationRun. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - Identifier. Name of the FeatureGroup. Format: - /// `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + /// [name] - Required. The name of the EvaluationRun resource to be cancelled. + /// Format: + /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. - /// - /// [updateMask] - Field mask is used to specify the fields to be overwritten - /// in the FeatureGroup resource by the update. The fields specified in the - /// update_mask are relative to the resource, not the full request. A field - /// will be overwritten if it is in the mask. If the user does not provide a - /// mask then only the non-empty fields present in the request will be - /// overwritten. Set the update_mask to `*` to override all fields. Updatable - /// fields: * `labels` * `description` * `big_query` * - /// `big_query.entity_id_columns` * `service_agent_type` + /// `^projects/\[^/\]+/locations/\[^/\]+/evaluationRuns/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleProtobufEmpty]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future patch( - GoogleCloudAiplatformV1FeatureGroup request, + async.Future cancel( + GoogleCloudAiplatformV1CancelEvaluationRunRequest request, core.String name, { - core.String? updateMask, core.String? $fields, }) async { final body_ = convert.json.encode(request); final queryParams_ = >{ - if (updateMask != null) 'updateMask': [updateMask], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':cancel'; final response_ = await _requester.request( url_, - 'PATCH', + 'POST', body: body_, queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleProtobufEmpty.fromJson( response_ as core.Map, ); } - /// Sets the access control policy on the specified resource. - /// - /// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, - /// and `PERMISSION_DENIED` errors. + /// Creates an Evaluation Run. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [resource] - 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. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. + /// [parent] - Required. The resource name of the Location to create the + /// Evaluation Run in. Format: `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleIamV1Policy]. + /// Completes with a [GoogleCloudAiplatformV1EvaluationRun]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future setIamPolicy( - GoogleIamV1SetIamPolicyRequest request, - core.String resource, { + async.Future create( + GoogleCloudAiplatformV1EvaluationRun request, + core.String parent, { core.String? $fields, }) async { final body_ = convert.json.encode(request); @@ -7948,7 +8174,7 @@ class ProjectsLocationsFeatureGroupsResource { if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':setIamPolicy'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/evaluationRuns'; final response_ = await _requester.request( url_, @@ -7956,165 +8182,188 @@ class ProjectsLocationsFeatureGroupsResource { body: body_, queryParams: queryParams_, ); - return GoogleIamV1Policy.fromJson( + return GoogleCloudAiplatformV1EvaluationRun.fromJson( response_ as core.Map, ); } - /// Returns permissions that a caller has on the specified resource. - /// - /// If the resource does not exist, this will return an empty set of - /// permissions, not a `NOT_FOUND` error. Note: This operation is designed to - /// be used for building permission-aware UIs and command-line tools, not for - /// authorization checking. This operation may "fail open" without warning. + /// Deletes an Evaluation Run. /// /// Request parameters: /// - /// [resource] - 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. + /// [name] - Required. The name of the EvaluationRun resource to be deleted. + /// Format: + /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. - /// - /// [permissions] - The set of permissions to check for the `resource`. - /// Permissions with wildcards (such as `*` or `storage.*`) are not allowed. - /// For more information see - /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + /// `^projects/\[^/\]+/locations/\[^/\]+/evaluationRuns/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleIamV1TestIamPermissionsResponse]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future testIamPermissions( - core.String resource, { - core.List? permissions, + async.Future delete( + core.String name, { core.String? $fields, }) async { final queryParams_ = >{ - if (permissions != null) 'permissions': permissions, if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + core.Uri.encodeFull('$resource') + ':testIamPermissions'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', + 'DELETE', queryParams: queryParams_, ); - return GoogleIamV1TestIamPermissionsResponse.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } -} - -class ProjectsLocationsFeatureGroupsFeaturesResource { - final commons.ApiRequester _requester; - - ProjectsLocationsFeatureGroupsFeaturesOperationsResource get operations => - ProjectsLocationsFeatureGroupsFeaturesOperationsResource(_requester); - - ProjectsLocationsFeatureGroupsFeaturesResource(commons.ApiRequester client) - : _requester = client; - /// Creates a batch of Features in a given FeatureGroup. - /// - /// [request] - The metadata request object. + /// Gets an Evaluation Run. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the EntityType/FeatureGroup to - /// create the batch of Features under. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /// [name] - Required. The name of the EvaluationRun resource. Format: + /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/evaluationRuns/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleCloudAiplatformV1EvaluationRun]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future batchCreate( - GoogleCloudAiplatformV1BatchCreateFeaturesRequest request, - core.String parent, { + async.Future get( + core.String name, { core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + core.Uri.encodeFull('$parent') + '/features:batchCreate'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'GET', queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleCloudAiplatformV1EvaluationRun.fromJson( response_ as core.Map, ); } - /// Creates a new Feature in a given FeatureGroup. - /// - /// [request] - The metadata request object. + /// Lists Evaluation Runs. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the EntityType or FeatureGroup - /// to create a Feature. Format for entity_type as parent: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// Format for feature_group as parent: - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. + /// [parent] - Required. The resource name of the Location from which to list + /// the Evaluation Runs. Format: `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// - /// [featureId] - Required. The ID to use for the Feature, which will become - /// the final component of the Feature's resource name. This value may be up - /// to 128 characters, and valid characters are `[a-z0-9_]`. The first - /// character cannot be a number. The value must be unique within an - /// EntityType/FeatureGroup. + /// [filter] - Optional. Filter expression that matches a subset of the + /// EvaluationRuns to show. For field names both snake_case and camelCase are + /// supported. For more information about filter syntax, see + /// \[AIP-160\](https://google.aip.dev/160). + /// + /// [orderBy] - Optional. A comma-separated list of fields to order by, sorted + /// in ascending order by default. Use `desc` after a field name for + /// descending. + /// + /// [pageSize] - Optional. The maximum number of Evaluation Runs to return. + /// + /// [pageToken] - Optional. A page token, received from a previous + /// `ListEvaluationRuns` call. Provide this to retrieve the subsequent page. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleCloudAiplatformV1ListEvaluationRunsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future create( - GoogleCloudAiplatformV1Feature request, + async.Future list( core.String parent, { - core.String? featureId, + core.String? filter, + core.String? orderBy, + core.int? pageSize, + core.String? pageToken, core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ - if (featureId != null) 'featureId': [featureId], - if ($fields != null) 'fields': [$fields], + if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/features'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/evaluationRuns'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return GoogleCloudAiplatformV1ListEvaluationRunsResponse.fromJson( + response_ as core.Map, + ); + } +} + +class ProjectsLocationsEvaluationSetsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsEvaluationSetsResource(commons.ApiRequester client) + : _requester = client; + + /// Creates an Evaluation Set. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - Required. The resource name of the Location to create the + /// Evaluation Set in. Format: `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudAiplatformV1EvaluationSet]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future create( + GoogleCloudAiplatformV1EvaluationSet request, + core.String parent, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/evaluationSets'; final response_ = await _requester.request( url_, @@ -8122,20 +8371,20 @@ class ProjectsLocationsFeatureGroupsFeaturesResource { body: body_, queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleCloudAiplatformV1EvaluationSet.fromJson( response_ as core.Map, ); } - /// Deletes a single Feature. + /// Deletes an Evaluation Set. /// /// Request parameters: /// - /// [name] - Required. The name of the Features to be deleted. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + /// [name] - Required. The name of the EvaluationSet resource to be deleted. + /// Format: + /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/features/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/evaluationSets/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -8167,29 +8416,26 @@ class ProjectsLocationsFeatureGroupsFeaturesResource { ); } - /// Gets details of a single Feature. + /// Gets an Evaluation Set. /// /// Request parameters: /// - /// [name] - Required. The name of the Feature resource. Format for - /// entity_type as parent: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// Format for feature_group as parent: - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /// [name] - Required. The name of the EvaluationSet resource. Format: + /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/features/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/evaluationSets/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1Feature]. + /// Completes with a [GoogleCloudAiplatformV1EvaluationSet]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( + async.Future get( core.String name, { core.String? $fields, }) async { @@ -8204,141 +8450,97 @@ class ProjectsLocationsFeatureGroupsFeaturesResource { 'GET', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1Feature.fromJson( + return GoogleCloudAiplatformV1EvaluationSet.fromJson( response_ as core.Map, ); } - /// Lists Features in a given FeatureGroup. + /// Lists Evaluation Sets. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the Location to list Features. - /// Format for entity_type as parent: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// Format for feature_group as parent: - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. - /// - /// [filter] - Lists the Features that match the filter expression. The - /// following filters are supported: * `value_type`: Supports = and != - /// comparisons. * `create_time`: Supports =, !=, \<, \>, \>=, and \<= - /// comparisons. Values must be in RFC 3339 format. * `update_time`: Supports - /// =, !=, \<, \>, \>=, and \<= comparisons. Values must be in RFC 3339 - /// format. * `labels`: Supports key-value equality as well as key presence. - /// Examples: * `value_type = DOUBLE` --\> Features whose type is DOUBLE. * - /// `create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > - /// \"2020-01-31T15:30:00.000000Z\"` --\> EntityTypes created or updated after - /// 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` - /// --\> Features having both (active: yes) and (env: prod) labels. * - /// `labels.env: *` --\> Any Feature which has a label with 'env' as the key. - /// - /// [latestStatsCount] - Only applicable for Vertex AI Feature Store (Legacy). - /// If set, return the most recent ListFeaturesRequest.latest_stats_count of - /// stats for each Feature in response. Valid value is \[0, 10\]. If number of - /// stats exists \< ListFeaturesRequest.latest_stats_count, return all - /// existing stats. + /// [parent] - Required. The resource name of the Location from which to list + /// the Evaluation Sets. Format: `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// - /// [orderBy] - A comma-separated list of fields to order by, sorted in - /// ascending order. Use "desc" after a field name for descending. Supported - /// fields: * `feature_id` * `value_type` (Not supported for FeatureRegistry - /// Feature) * `create_time` * `update_time` + /// [filter] - Optional. Filter expression that matches a subset of the + /// EvaluationSets to show. For field names both snake_case and camelCase are + /// supported. For more information about filter syntax, see + /// \[AIP-160\](https://google.aip.dev/160). /// - /// [pageSize] - The maximum number of Features to return. The service may - /// return fewer than this value. If unspecified, at most 1000 Features will - /// be returned. The maximum value is 1000; any value greater than 1000 will - /// be coerced to 1000. + /// [orderBy] - Optional. A comma-separated list of fields to order by, sorted + /// in ascending order by default. Use `desc` after a field name for + /// descending. /// - /// [pageToken] - A page token, received from a previous - /// FeaturestoreService.ListFeatures call or - /// FeatureRegistryService.ListFeatures call. Provide this to retrieve the - /// subsequent page. When paginating, all other parameters provided to - /// FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures - /// must match the call that provided the page token. + /// [pageSize] - Optional. The maximum number of Evaluation Sets to return. /// - /// [readMask] - Mask specifying which fields to read. + /// [pageToken] - Optional. A page token, received from a previous + /// `ListEvaluationSets` call. Provide this to retrieve the subsequent page. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1ListFeaturesResponse]. + /// Completes with a [GoogleCloudAiplatformV1ListEvaluationSetsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( + async.Future list( core.String parent, { core.String? filter, - core.int? latestStatsCount, core.String? orderBy, core.int? pageSize, core.String? pageToken, - core.String? readMask, core.String? $fields, }) async { final queryParams_ = >{ if (filter != null) 'filter': [filter], - if (latestStatsCount != null) 'latestStatsCount': ['${latestStatsCount}'], if (orderBy != null) 'orderBy': [orderBy], if (pageSize != null) 'pageSize': ['${pageSize}'], if (pageToken != null) 'pageToken': [pageToken], - if (readMask != null) 'readMask': [readMask], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/features'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/evaluationSets'; final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1ListFeaturesResponse.fromJson( + return GoogleCloudAiplatformV1ListEvaluationSetsResponse.fromJson( response_ as core.Map, ); } - /// Updates the parameters of a single Feature. + /// Updates an Evaluation Set. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - Immutable. Name of the Feature. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` - /// The last part feature is assigned by the client. The feature can be up to - /// 64 characters long and can consist only of ASCII Latin letters A-Z and - /// a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value - /// will be unique given an entity type. + /// [name] - Identifier. The resource name of the EvaluationSet. Format: + /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/features/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/evaluationSets/\[^/\]+$`. /// - /// [updateMask] - Field mask is used to specify the fields to be overwritten - /// in the Features resource by the update. The fields specified in the - /// update_mask are relative to the resource, not the full request. A field - /// will be overwritten if it is in the mask. If the user does not provide a - /// mask then only the non-empty fields present in the request will be - /// overwritten. Set the update_mask to `*` to override all fields. Updatable - /// fields: * `description` * `labels` * `disable_monitoring` (Not supported - /// for FeatureRegistryService Feature) * `point_of_contact` (Not supported - /// for FeaturestoreService FeatureStore) + /// [updateMask] - Optional. The update mask applies to the resource. For the + /// `FieldMask` definition, see google.protobuf.FieldMask. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleCloudAiplatformV1EvaluationSet]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future patch( - GoogleCloudAiplatformV1Feature request, + async.Future patch( + GoogleCloudAiplatformV1EvaluationSet request, core.String name, { core.String? updateMask, core.String? $fields, @@ -8357,71 +8559,86 @@ class ProjectsLocationsFeatureGroupsFeaturesResource { body: body_, queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleCloudAiplatformV1EvaluationSet.fromJson( response_ as core.Map, ); } } -class ProjectsLocationsFeatureGroupsFeaturesOperationsResource { +class ProjectsLocationsFeatureGroupsResource { final commons.ApiRequester _requester; - ProjectsLocationsFeatureGroupsFeaturesOperationsResource( - commons.ApiRequester client, - ) : _requester = client; + ProjectsLocationsFeatureGroupsFeaturesResource get features => + ProjectsLocationsFeatureGroupsFeaturesResource(_requester); + ProjectsLocationsFeatureGroupsOperationsResource get operations => + ProjectsLocationsFeatureGroupsOperationsResource(_requester); - /// Deletes a long-running operation. + ProjectsLocationsFeatureGroupsResource(commons.ApiRequester client) + : _requester = client; + + /// Creates a new FeatureGroup in a given project and location. /// - /// This method indicates that the client is no longer interested in the - /// operation result. It does not cancel the operation. If the server doesn't - /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation resource to be deleted. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. + /// [parent] - Required. The resource name of the Location to create + /// FeatureGroups. Format: `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [featureGroupId] - Required. The ID to use for this FeatureGroup, which + /// will become the final component of the FeatureGroup's resource name. This + /// value may be up to 128 characters, and valid characters are `[a-z0-9_]`. + /// The first character cannot be a number. The value must be unique within + /// the project and location. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleProtobufEmpty]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete( - core.String name, { + async.Future create( + GoogleCloudAiplatformV1FeatureGroup request, + core.String parent, { + core.String? featureGroupId, core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ + if (featureGroupId != null) 'featureGroupId': [featureGroupId], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/featureGroups'; final response_ = await _requester.request( url_, - 'DELETE', + 'POST', + body: body_, queryParams: queryParams_, ); - return GoogleProtobufEmpty.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } - /// Gets the latest state of a long-running operation. - /// - /// Clients can use this method to poll the operation result at intervals as - /// recommended by the API service. + /// Deletes a single FeatureGroup. /// /// Request parameters: /// - /// [name] - The name of the operation resource. + /// [name] - Required. The name of the FeatureGroup to be deleted. Format: + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. + /// + /// [force] - If set to true, any Features under this FeatureGroup will also + /// be deleted. (Otherwise, the request will only work if the FeatureGroup has + /// no Features.) /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -8433,11 +8650,13 @@ class ProjectsLocationsFeatureGroupsFeaturesOperationsResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( + async.Future delete( core.String name, { + core.bool? force, core.String? $fields, }) async { final queryParams_ = >{ + if (force != null) 'force': ['${force}'], if ($fields != null) 'fields': [$fields], }; @@ -8445,7 +8664,7 @@ class ProjectsLocationsFeatureGroupsFeaturesOperationsResource { final response_ = await _requester.request( url_, - 'GET', + 'DELETE', queryParams: queryParams_, ); return GoogleLongrunningOperation.fromJson( @@ -8453,171 +8672,192 @@ class ProjectsLocationsFeatureGroupsFeaturesOperationsResource { ); } - /// Lists operations that match the specified filter in the request. - /// - /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. + /// Gets details of a single FeatureGroup. /// /// Request parameters: /// - /// [name] - The name of the operation's parent resource. + /// [name] - Required. The name of the FeatureGroup resource. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. - /// - /// [filter] - The standard list filter. - /// - /// [pageSize] - The standard list page size. - /// - /// [pageToken] - The standard list page token. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningListOperationsResponse]. + /// Completes with a [GoogleCloudAiplatformV1FeatureGroup]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future listWait( + async.Future get( core.String name, { - core.String? filter, - core.int? pageSize, - core.String? pageToken, core.String? $fields, }) async { final queryParams_ = >{ - if (filter != null) 'filter': [filter], - if (pageSize != null) 'pageSize': ['${pageSize}'], - if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return GoogleLongrunningListOperationsResponse.fromJson( + return GoogleCloudAiplatformV1FeatureGroup.fromJson( response_ as core.Map, ); } - /// Waits until the specified long-running operation is done or reaches at - /// most a specified timeout, returning the latest state. + /// Gets the access control policy for a resource. /// - /// If the operation is already done, the latest state is immediately - /// returned. If the timeout specified is greater than the default HTTP/RPC - /// timeout, the HTTP/RPC timeout is used. If the server does not support this - /// method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method - /// is on a best-effort basis. It may return the latest state before the - /// specified timeout (including immediately), meaning even an immediate - /// response is no guarantee that the operation is done. + /// Returns an empty policy if the resource exists and does not have a policy + /// set. /// /// Request parameters: /// - /// [name] - The name of the operation resource to wait on. + /// [resource] - 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. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. /// - /// [timeout] - The maximum duration to wait before timing out. If left blank, - /// the wait will be at most the time permitted by the underlying HTTP/RPC - /// protocol. If RPC context deadline is also specified, the shorter one will - /// be used. + /// [options_requestedPolicyVersion] - Optional. The maximum policy version + /// that will be used to format the policy. Valid values are 0, 1, and 3. + /// Requests specifying an invalid value will be rejected. Requests for + /// policies with any conditional role bindings must specify version 3. + /// Policies with no conditional role bindings may specify any valid value or + /// leave the field unset. The policy in the response might use the policy + /// version that you specified, or it might use a lower policy version. For + /// example, if you specify version 3, but the policy has no conditional role + /// bindings, the response uses version 1. To learn which resources support + /// conditions in their IAM policies, see the + /// [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleIamV1Policy]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future wait( - core.String name, { - core.String? timeout, + async.Future getIamPolicy( + core.String resource, { + core.int? options_requestedPolicyVersion, core.String? $fields, }) async { final queryParams_ = >{ - if (timeout != null) 'timeout': [timeout], + if (options_requestedPolicyVersion != null) + 'options.requestedPolicyVersion': ['${options_requestedPolicyVersion}'], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; + final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':getIamPolicy'; final response_ = await _requester.request( url_, 'POST', queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleIamV1Policy.fromJson( response_ as core.Map, ); } -} - -class ProjectsLocationsFeatureGroupsOperationsResource { - final commons.ApiRequester _requester; - - ProjectsLocationsFeatureGroupsOperationsResource(commons.ApiRequester client) - : _requester = client; - /// Deletes a long-running operation. - /// - /// This method indicates that the client is no longer interested in the - /// operation result. It does not cancel the operation. If the server doesn't - /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + /// Lists FeatureGroups in a given project and location. /// /// Request parameters: /// - /// [name] - The name of the operation resource to be deleted. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/operations/\[^/\]+$`. + /// [parent] - Required. The resource name of the Location to list + /// FeatureGroups. Format: `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [filter] - Lists the FeatureGroups that match the filter expression. The + /// following fields are supported: * `create_time`: Supports `=`, `!=`, `<`, + /// `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * + /// `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + /// Values must be in RFC 3339 format. * `labels`: Supports key-value equality + /// and key presence. Examples: * `create_time > "2020-01-01" OR update_time > + /// "2020-01-01"` FeatureGroups created or updated after 2020-01-01. * + /// `labels.env = "prod"` FeatureGroups with label "env" set to "prod". + /// + /// [orderBy] - A comma-separated list of fields to order by, sorted in + /// ascending order. Use "desc" after a field name for descending. Supported + /// Fields: * `create_time` * `update_time` + /// + /// [pageSize] - The maximum number of FeatureGroups to return. The service + /// may return fewer than this value. If unspecified, at most 100 + /// FeatureGroups will be returned. The maximum value is 100; any value + /// greater than 100 will be coerced to 100. + /// + /// [pageToken] - A page token, received from a previous + /// FeatureRegistryService.ListFeatureGroups call. Provide this to retrieve + /// the subsequent page. When paginating, all other parameters provided to + /// FeatureRegistryService.ListFeatureGroups must match the call that provided + /// the page token. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleProtobufEmpty]. + /// Completes with a [GoogleCloudAiplatformV1ListFeatureGroupsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete( - core.String name, { + async.Future list( + core.String parent, { + core.String? filter, + core.String? orderBy, + core.int? pageSize, + core.String? pageToken, core.String? $fields, }) async { final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/featureGroups'; final response_ = await _requester.request( url_, - 'DELETE', + 'GET', queryParams: queryParams_, ); - return GoogleProtobufEmpty.fromJson( + return GoogleCloudAiplatformV1ListFeatureGroupsResponse.fromJson( response_ as core.Map, ); } - /// Gets the latest state of a long-running operation. + /// Updates the parameters of a single FeatureGroup. /// - /// Clients can use this method to poll the operation result at intervals as - /// recommended by the API service. + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation resource. + /// [name] - Identifier. Name of the FeatureGroup. Format: + /// `projects/{project}/locations/{location}/featureGroups/{featureGroup}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. + /// + /// [updateMask] - Field mask is used to specify the fields to be overwritten + /// in the FeatureGroup resource by the update. The fields specified in the + /// update_mask are relative to the resource, not the full request. A field + /// will be overwritten if it is in the mask. If the user does not provide a + /// mask then only the non-empty fields present in the request will be + /// overwritten. Set the update_mask to `*` to override all fields. Updatable + /// fields: * `labels` * `description` * `big_query` * + /// `big_query.entity_id_columns` * `service_agent_type` /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -8629,11 +8869,15 @@ class ProjectsLocationsFeatureGroupsOperationsResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( + async.Future patch( + GoogleCloudAiplatformV1FeatureGroup request, core.String name, { + core.String? updateMask, core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ + if (updateMask != null) 'updateMask': [updateMask], if ($fields != null) 'fields': [$fields], }; @@ -8641,7 +8885,8 @@ class ProjectsLocationsFeatureGroupsOperationsResource { final response_ = await _requester.request( url_, - 'GET', + 'PATCH', + body: body_, queryParams: queryParams_, ); return GoogleLongrunningOperation.fromJson( @@ -8649,139 +8894,131 @@ class ProjectsLocationsFeatureGroupsOperationsResource { ); } - /// Lists operations that match the specified filter in the request. + /// Sets the access control policy on the specified resource. /// - /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. + /// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, + /// and `PERMISSION_DENIED` errors. + /// + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation's parent resource. + /// [resource] - 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. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/operations/\[^/\]+$`. - /// - /// [filter] - The standard list filter. - /// - /// [pageSize] - The standard list page size. - /// - /// [pageToken] - The standard list page token. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningListOperationsResponse]. + /// Completes with a [GoogleIamV1Policy]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future listWait( - core.String name, { - core.String? filter, - core.int? pageSize, - core.String? pageToken, + async.Future setIamPolicy( + GoogleIamV1SetIamPolicyRequest request, + core.String resource, { core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ - if (filter != null) 'filter': [filter], - if (pageSize != null) 'pageSize': ['${pageSize}'], - if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; + final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':setIamPolicy'; final response_ = await _requester.request( url_, - 'GET', + 'POST', + body: body_, queryParams: queryParams_, ); - return GoogleLongrunningListOperationsResponse.fromJson( + return GoogleIamV1Policy.fromJson( response_ as core.Map, ); } - /// Waits until the specified long-running operation is done or reaches at - /// most a specified timeout, returning the latest state. + /// Returns permissions that a caller has on the specified resource. /// - /// If the operation is already done, the latest state is immediately - /// returned. If the timeout specified is greater than the default HTTP/RPC - /// timeout, the HTTP/RPC timeout is used. If the server does not support this - /// method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method - /// is on a best-effort basis. It may return the latest state before the - /// specified timeout (including immediately), meaning even an immediate - /// response is no guarantee that the operation is done. + /// If the resource does not exist, this will return an empty set of + /// permissions, not a `NOT_FOUND` error. Note: This operation is designed to + /// be used for building permission-aware UIs and command-line tools, not for + /// authorization checking. This operation may "fail open" without warning. /// /// Request parameters: /// - /// [name] - The name of the operation resource to wait on. + /// [resource] - 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. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. /// - /// [timeout] - The maximum duration to wait before timing out. If left blank, - /// the wait will be at most the time permitted by the underlying HTTP/RPC - /// protocol. If RPC context deadline is also specified, the shorter one will - /// be used. + /// [permissions] - The set of permissions to check for the `resource`. + /// Permissions with wildcards (such as `*` or `storage.*`) are not allowed. + /// For more information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleIamV1TestIamPermissionsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future wait( - core.String name, { - core.String? timeout, + async.Future testIamPermissions( + core.String resource, { + core.List? permissions, core.String? $fields, }) async { final queryParams_ = >{ - if (timeout != null) 'timeout': [timeout], + if (permissions != null) 'permissions': permissions, if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; + final url_ = + 'v1/' + core.Uri.encodeFull('$resource') + ':testIamPermissions'; final response_ = await _requester.request( url_, 'POST', queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleIamV1TestIamPermissionsResponse.fromJson( response_ as core.Map, ); } } -class ProjectsLocationsFeatureOnlineStoresResource { +class ProjectsLocationsFeatureGroupsFeaturesResource { final commons.ApiRequester _requester; - ProjectsLocationsFeatureOnlineStoresFeatureViewsResource get featureViews => - ProjectsLocationsFeatureOnlineStoresFeatureViewsResource(_requester); - ProjectsLocationsFeatureOnlineStoresOperationsResource get operations => - ProjectsLocationsFeatureOnlineStoresOperationsResource(_requester); + ProjectsLocationsFeatureGroupsFeaturesOperationsResource get operations => + ProjectsLocationsFeatureGroupsFeaturesOperationsResource(_requester); - ProjectsLocationsFeatureOnlineStoresResource(commons.ApiRequester client) + ProjectsLocationsFeatureGroupsFeaturesResource(commons.ApiRequester client) : _requester = client; - /// Creates a new FeatureOnlineStore in a given project and location. + /// Creates a batch of Features in a given FeatureGroup. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the Location to create - /// FeatureOnlineStores. Format: `projects/{project}/locations/{location}` - /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. - /// - /// [featureOnlineStoreId] - Required. The ID to use for this - /// FeatureOnlineStore, which will become the final component of the - /// FeatureOnlineStore's resource name. This value may be up to 60 characters, - /// and valid characters are `[a-z0-9_]`. The first character cannot be a - /// number. The value must be unique within the project and location. + /// [parent] - Required. The resource name of the EntityType/FeatureGroup to + /// create the batch of Features under. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -8793,21 +9030,18 @@ class ProjectsLocationsFeatureOnlineStoresResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future create( - GoogleCloudAiplatformV1FeatureOnlineStore request, + async.Future batchCreate( + GoogleCloudAiplatformV1BatchCreateFeaturesRequest request, core.String parent, { - core.String? featureOnlineStoreId, core.String? $fields, }) async { final body_ = convert.json.encode(request); final queryParams_ = >{ - if (featureOnlineStoreId != null) - 'featureOnlineStoreId': [featureOnlineStoreId], if ($fields != null) 'fields': [$fields], }; final url_ = - 'v1/' + core.Uri.encodeFull('$parent') + '/featureOnlineStores'; + 'v1/' + core.Uri.encodeFull('$parent') + '/features:batchCreate'; final response_ = await _requester.request( url_, @@ -8820,21 +9054,25 @@ class ProjectsLocationsFeatureOnlineStoresResource { ); } - /// Deletes a single FeatureOnlineStore. + /// Creates a new Feature in a given FeatureGroup. /// - /// The FeatureOnlineStore must not contain any FeatureViews. + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - Required. The name of the FeatureOnlineStore to be deleted. - /// Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + /// [parent] - Required. The resource name of the EntityType or FeatureGroup + /// to create a Feature. Format for entity_type as parent: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// Format for feature_group as parent: + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. /// - /// [force] - If set to true, any FeatureViews and Features for this - /// FeatureOnlineStore will also be deleted. (Otherwise, the request will only - /// work if the FeatureOnlineStore has no FeatureViews.) + /// [featureId] - Required. The ID to use for the Feature, which will become + /// the final component of the Feature's resource name. This value may be up + /// to 128 characters, and valid characters are `[a-z0-9_]`. The first + /// character cannot be a number. The value must be unique within an + /// EntityType/FeatureGroup. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -8846,21 +9084,24 @@ class ProjectsLocationsFeatureOnlineStoresResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete( - core.String name, { - core.bool? force, + async.Future create( + GoogleCloudAiplatformV1Feature request, + core.String parent, { + core.String? featureId, core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ - if (force != null) 'force': ['${force}'], + if (featureId != null) 'featureId': [featureId], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/features'; final response_ = await _requester.request( url_, - 'DELETE', + 'POST', + body: body_, queryParams: queryParams_, ); return GoogleLongrunningOperation.fromJson( @@ -8868,25 +9109,27 @@ class ProjectsLocationsFeatureOnlineStoresResource { ); } - /// Gets details of a single FeatureOnlineStore. + /// Deletes a single Feature. /// /// Request parameters: /// - /// [name] - Required. The name of the FeatureOnlineStore resource. + /// [name] - Required. The name of the Features to be deleted. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/features/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1FeatureOnlineStore]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( + async.Future delete( core.String name, { core.String? $fields, }) async { @@ -8898,163 +9141,173 @@ class ProjectsLocationsFeatureOnlineStoresResource { final response_ = await _requester.request( url_, - 'GET', + 'DELETE', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1FeatureOnlineStore.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } - /// Gets the access control policy for a resource. - /// - /// Returns an empty policy if the resource exists and does not have a policy - /// set. + /// Gets details of a single Feature. /// /// Request parameters: /// - /// [resource] - 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. + /// [name] - Required. The name of the Feature resource. Format for + /// entity_type as parent: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// Format for feature_group as parent: + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. - /// - /// [options_requestedPolicyVersion] - Optional. The maximum policy version - /// that will be used to format the policy. Valid values are 0, 1, and 3. - /// Requests specifying an invalid value will be rejected. Requests for - /// policies with any conditional role bindings must specify version 3. - /// Policies with no conditional role bindings may specify any valid value or - /// leave the field unset. The policy in the response might use the policy - /// version that you specified, or it might use a lower policy version. For - /// example, if you specify version 3, but the policy has no conditional role - /// bindings, the response uses version 1. To learn which resources support - /// conditions in their IAM policies, see the - /// [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/features/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleIamV1Policy]. + /// Completes with a [GoogleCloudAiplatformV1Feature]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future getIamPolicy( - core.String resource, { - core.int? options_requestedPolicyVersion, + async.Future get( + core.String name, { core.String? $fields, }) async { final queryParams_ = >{ - if (options_requestedPolicyVersion != null) - 'options.requestedPolicyVersion': ['${options_requestedPolicyVersion}'], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':getIamPolicy'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', + 'GET', queryParams: queryParams_, ); - return GoogleIamV1Policy.fromJson( + return GoogleCloudAiplatformV1Feature.fromJson( response_ as core.Map, ); } - /// Lists FeatureOnlineStores in a given project and location. + /// Lists Features in a given FeatureGroup. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the Location to list - /// FeatureOnlineStores. Format: `projects/{project}/locations/{location}` - /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// [parent] - Required. The resource name of the Location to list Features. + /// Format for entity_type as parent: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// Format for feature_group as parent: + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+$`. /// - /// [filter] - Lists the FeatureOnlineStores that match the filter expression. - /// The following fields are supported: * `create_time`: Supports `=`, `!=`, - /// `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * - /// `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. - /// Values must be in RFC 3339 format. * `labels`: Supports key-value equality - /// and key presence. Examples: * `create_time > "2020-01-01" OR update_time > - /// "2020-01-01"` FeatureOnlineStores created or updated after 2020-01-01. * - /// `labels.env = "prod"` FeatureOnlineStores with label "env" set to "prod". + /// [filter] - Lists the Features that match the filter expression. The + /// following filters are supported: * `value_type`: Supports = and != + /// comparisons. * `create_time`: Supports =, !=, \<, \>, \>=, and \<= + /// comparisons. Values must be in RFC 3339 format. * `update_time`: Supports + /// =, !=, \<, \>, \>=, and \<= comparisons. Values must be in RFC 3339 + /// format. * `labels`: Supports key-value equality as well as key presence. + /// Examples: * `value_type = DOUBLE` --\> Features whose type is DOUBLE. * + /// `create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > + /// \"2020-01-31T15:30:00.000000Z\"` --\> EntityTypes created or updated after + /// 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` + /// --\> Features having both (active: yes) and (env: prod) labels. * + /// `labels.env: *` --\> Any Feature which has a label with 'env' as the key. + /// + /// [latestStatsCount] - Only applicable for Vertex AI Feature Store (Legacy). + /// If set, return the most recent ListFeaturesRequest.latest_stats_count of + /// stats for each Feature in response. Valid value is \[0, 10\]. If number of + /// stats exists \< ListFeaturesRequest.latest_stats_count, return all + /// existing stats. /// /// [orderBy] - A comma-separated list of fields to order by, sorted in /// ascending order. Use "desc" after a field name for descending. Supported - /// Fields: * `create_time` * `update_time` + /// fields: * `feature_id` * `value_type` (Not supported for FeatureRegistry + /// Feature) * `create_time` * `update_time` /// - /// [pageSize] - The maximum number of FeatureOnlineStores to return. The - /// service may return fewer than this value. If unspecified, at most 100 - /// FeatureOnlineStores will be returned. The maximum value is 100; any value - /// greater than 100 will be coerced to 100. + /// [pageSize] - The maximum number of Features to return. The service may + /// return fewer than this value. If unspecified, at most 1000 Features will + /// be returned. The maximum value is 1000; any value greater than 1000 will + /// be coerced to 1000. /// /// [pageToken] - A page token, received from a previous - /// FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide this - /// to retrieve the subsequent page. When paginating, all other parameters - /// provided to FeatureOnlineStoreAdminService.ListFeatureOnlineStores must - /// match the call that provided the page token. + /// FeaturestoreService.ListFeatures call or + /// FeatureRegistryService.ListFeatures call. Provide this to retrieve the + /// subsequent page. When paginating, all other parameters provided to + /// FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures + /// must match the call that provided the page token. + /// + /// [readMask] - Mask specifying which fields to read. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse]. + /// Completes with a [GoogleCloudAiplatformV1ListFeaturesResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( + async.Future list( core.String parent, { core.String? filter, + core.int? latestStatsCount, core.String? orderBy, core.int? pageSize, core.String? pageToken, + core.String? readMask, core.String? $fields, }) async { final queryParams_ = >{ if (filter != null) 'filter': [filter], + if (latestStatsCount != null) 'latestStatsCount': ['${latestStatsCount}'], if (orderBy != null) 'orderBy': [orderBy], if (pageSize != null) 'pageSize': ['${pageSize}'], if (pageToken != null) 'pageToken': [pageToken], + if (readMask != null) 'readMask': [readMask], if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + core.Uri.encodeFull('$parent') + '/featureOnlineStores'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/features'; final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse.fromJson( + return GoogleCloudAiplatformV1ListFeaturesResponse.fromJson( response_ as core.Map, ); } - /// Updates the parameters of a single FeatureOnlineStore. + /// Updates the parameters of a single Feature. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - Identifier. Name of the FeatureOnlineStore. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` + /// [name] - Immutable. Name of the Feature. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + /// The last part feature is assigned by the client. The feature can be up to + /// 64 characters long and can consist only of ASCII Latin letters A-Z and + /// a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value + /// will be unique given an entity type. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/features/\[^/\]+$`. /// /// [updateMask] - Field mask is used to specify the fields to be overwritten - /// in the FeatureOnlineStore resource by the update. The fields specified in - /// the update_mask are relative to the resource, not the full request. A - /// field will be overwritten if it is in the mask. If the user does not - /// provide a mask then only the non-empty fields present in the request will - /// be overwritten. Set the update_mask to `*` to override all fields. - /// Updatable fields: * `labels` * `description` * `bigtable` * - /// `bigtable.auto_scaling` * `bigtable.enable_multi_region_replica` + /// in the Features resource by the update. The fields specified in the + /// update_mask are relative to the resource, not the full request. A field + /// will be overwritten if it is in the mask. If the user does not provide a + /// mask then only the non-empty fields present in the request will be + /// overwritten. Set the update_mask to `*` to override all fields. Updatable + /// fields: * `description` * `labels` * `disable_monitoring` (Not supported + /// for FeatureRegistryService Feature) * `point_of_contact` (Not supported + /// for FeaturestoreService FeatureStore) /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -9067,7 +9320,7 @@ class ProjectsLocationsFeatureOnlineStoresResource { /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future patch( - GoogleCloudAiplatformV1FeatureOnlineStore request, + GoogleCloudAiplatformV1Feature request, core.String name, { core.String? updateMask, core.String? $fields, @@ -9090,197 +9343,171 @@ class ProjectsLocationsFeatureOnlineStoresResource { response_ as core.Map, ); } +} - /// Sets the access control policy on the specified resource. - /// - /// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, - /// and `PERMISSION_DENIED` errors. +class ProjectsLocationsFeatureGroupsFeaturesOperationsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsFeatureGroupsFeaturesOperationsResource( + commons.ApiRequester client, + ) : _requester = client; + + /// Deletes a long-running operation. /// - /// [request] - The metadata request object. + /// This method indicates that the client is no longer interested in the + /// operation result. It does not cancel the operation. If the server doesn't + /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. /// /// Request parameters: /// - /// [resource] - 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. + /// [name] - The name of the operation resource to be deleted. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleIamV1Policy]. + /// Completes with a [GoogleProtobufEmpty]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future setIamPolicy( - GoogleIamV1SetIamPolicyRequest request, - core.String resource, { + async.Future delete( + core.String name, { core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':setIamPolicy'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'DELETE', queryParams: queryParams_, ); - return GoogleIamV1Policy.fromJson( + return GoogleProtobufEmpty.fromJson( response_ as core.Map, ); } - /// Returns permissions that a caller has on the specified resource. + /// Gets the latest state of a long-running operation. /// - /// If the resource does not exist, this will return an empty set of - /// permissions, not a `NOT_FOUND` error. Note: This operation is designed to - /// be used for building permission-aware UIs and command-line tools, not for - /// authorization checking. This operation may "fail open" without warning. + /// Clients can use this method to poll the operation result at intervals as + /// recommended by the API service. /// /// Request parameters: /// - /// [resource] - 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. + /// [name] - The name of the operation resource. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. - /// - /// [permissions] - The set of permissions to check for the `resource`. - /// Permissions with wildcards (such as `*` or `storage.*`) are not allowed. - /// For more information see - /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleIamV1TestIamPermissionsResponse]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future testIamPermissions( - core.String resource, { - core.List? permissions, + async.Future get( + core.String name, { core.String? $fields, }) async { final queryParams_ = >{ - if (permissions != null) 'permissions': permissions, if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + core.Uri.encodeFull('$resource') + ':testIamPermissions'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', + 'GET', queryParams: queryParams_, ); - return GoogleIamV1TestIamPermissionsResponse.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } -} - -class ProjectsLocationsFeatureOnlineStoresFeatureViewsResource { - final commons.ApiRequester _requester; - - ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsResource - get featureViewSyncs => - ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsResource( - _requester, - ); - ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsResource - get operations => - ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsResource( - _requester, - ); - - ProjectsLocationsFeatureOnlineStoresFeatureViewsResource( - commons.ApiRequester client, - ) : _requester = client; - /// Creates a new FeatureView in a given FeatureOnlineStore. + /// Lists operations that match the specified filter in the request. /// - /// [request] - The metadata request object. + /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the FeatureOnlineStore to create - /// FeatureViews. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + /// [name] - The name of the operation's parent resource. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. /// - /// [featureViewId] - Required. The ID to use for the FeatureView, which will - /// become the final component of the FeatureView's resource name. This value - /// may be up to 60 characters, and valid characters are `[a-z0-9_]`. The - /// first character cannot be a number. The value must be unique within a - /// FeatureOnlineStore. + /// [filter] - The standard list filter. /// - /// [runSyncImmediately] - Immutable. If set to true, one on demand sync will - /// be run immediately, regardless whether the FeatureView.sync_config is - /// configured or not. + /// [pageSize] - The standard list page size. + /// + /// [pageToken] - The standard list page token. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleLongrunningListOperationsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future create( - GoogleCloudAiplatformV1FeatureView request, - core.String parent, { - core.String? featureViewId, - core.bool? runSyncImmediately, + async.Future listWait( + core.String name, { + core.String? filter, + core.int? pageSize, + core.String? pageToken, core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ - if (featureViewId != null) 'featureViewId': [featureViewId], - if (runSyncImmediately != null) - 'runSyncImmediately': ['${runSyncImmediately}'], + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/featureViews'; + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'GET', queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleLongrunningListOperationsResponse.fromJson( response_ as core.Map, ); } - /// Deletes a single FeatureView. + /// Waits until the specified long-running operation is done or reaches at + /// most a specified timeout, returning the latest state. + /// + /// If the operation is already done, the latest state is immediately + /// returned. If the timeout specified is greater than the default HTTP/RPC + /// timeout, the HTTP/RPC timeout is used. If the server does not support this + /// method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method + /// is on a best-effort basis. It may return the latest state before the + /// specified timeout (including immediately), meaning even an immediate + /// response is no guarantee that the operation is done. /// /// Request parameters: /// - /// [name] - Required. The name of the FeatureView to be deleted. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + /// [name] - The name of the operation resource to wait on. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. + /// + /// [timeout] - The maximum duration to wait before timing out. If left blank, + /// the wait will be at most the time permitted by the underlying HTTP/RPC + /// protocol. If RPC context deadline is also specified, the shorter one will + /// be used. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -9292,317 +9519,304 @@ class ProjectsLocationsFeatureOnlineStoresFeatureViewsResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete( + async.Future wait( core.String name, { + core.String? timeout, core.String? $fields, }) async { final queryParams_ = >{ + if (timeout != null) 'timeout': [timeout], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; final response_ = await _requester.request( url_, - 'DELETE', + 'POST', queryParams: queryParams_, ); return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } +} - /// Bidirectional streaming RPC to directly write to feature values in a - /// feature view. - /// - /// Requests may not have a one-to-one mapping to responses and responses may - /// be returned out-of-order to reduce latency. +class ProjectsLocationsFeatureGroupsOperationsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsFeatureGroupsOperationsResource(commons.ApiRequester client) + : _requester = client; + + /// Deletes a long-running operation. /// - /// [request] - The metadata request object. + /// This method indicates that the client is no longer interested in the + /// operation result. It does not cancel the operation. If the server doesn't + /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. /// /// Request parameters: /// - /// [featureView] - FeatureView resource format - /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + /// [name] - The name of the operation resource to be deleted. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1FeatureViewDirectWriteResponse]. + /// Completes with a [GoogleProtobufEmpty]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future - directWrite( - GoogleCloudAiplatformV1FeatureViewDirectWriteRequest request, - core.String featureView, { + async.Future delete( + core.String name, { core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$featureView') + ':directWrite'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'DELETE', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1FeatureViewDirectWriteResponse.fromJson( + return GoogleProtobufEmpty.fromJson( response_ as core.Map, ); } - /// Fetch feature values under a FeatureView. + /// Gets the latest state of a long-running operation. /// - /// [request] - The metadata request object. + /// Clients can use this method to poll the operation result at intervals as + /// recommended by the API service. /// /// Request parameters: /// - /// [featureView] - Required. FeatureView resource format - /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + /// [name] - The name of the operation resource. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1FetchFeatureValuesResponse]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future - fetchFeatureValues( - GoogleCloudAiplatformV1FetchFeatureValuesRequest request, - core.String featureView, { + async.Future get( + core.String name, { core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + core.Uri.encodeFull('$featureView') + ':fetchFeatureValues'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'GET', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1FetchFeatureValuesResponse.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } - /// Gets details of a single FeatureView. + /// Lists operations that match the specified filter in the request. + /// + /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. /// /// Request parameters: /// - /// [name] - Required. The name of the FeatureView resource. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + /// [name] - The name of the operation's parent resource. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/operations/\[^/\]+$`. + /// + /// [filter] - The standard list filter. + /// + /// [pageSize] - The standard list page size. + /// + /// [pageToken] - The standard list page token. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1FeatureView]. + /// Completes with a [GoogleLongrunningListOperationsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( + async.Future listWait( core.String name, { + core.String? filter, + core.int? pageSize, + core.String? pageToken, core.String? $fields, }) async { final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1FeatureView.fromJson( + return GoogleLongrunningListOperationsResponse.fromJson( response_ as core.Map, ); } - /// Gets the access control policy for a resource. + /// Waits until the specified long-running operation is done or reaches at + /// most a specified timeout, returning the latest state. /// - /// Returns an empty policy if the resource exists and does not have a policy - /// set. + /// If the operation is already done, the latest state is immediately + /// returned. If the timeout specified is greater than the default HTTP/RPC + /// timeout, the HTTP/RPC timeout is used. If the server does not support this + /// method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method + /// is on a best-effort basis. It may return the latest state before the + /// specified timeout (including immediately), meaning even an immediate + /// response is no guarantee that the operation is done. /// /// Request parameters: /// - /// [resource] - 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. + /// [name] - The name of the operation resource to wait on. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureGroups/\[^/\]+/operations/\[^/\]+$`. /// - /// [options_requestedPolicyVersion] - Optional. The maximum policy version - /// that will be used to format the policy. Valid values are 0, 1, and 3. - /// Requests specifying an invalid value will be rejected. Requests for - /// policies with any conditional role bindings must specify version 3. - /// Policies with no conditional role bindings may specify any valid value or - /// leave the field unset. The policy in the response might use the policy - /// version that you specified, or it might use a lower policy version. For - /// example, if you specify version 3, but the policy has no conditional role - /// bindings, the response uses version 1. To learn which resources support - /// conditions in their IAM policies, see the - /// [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + /// [timeout] - The maximum duration to wait before timing out. If left blank, + /// the wait will be at most the time permitted by the underlying HTTP/RPC + /// protocol. If RPC context deadline is also specified, the shorter one will + /// be used. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleIamV1Policy]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future getIamPolicy( - core.String resource, { - core.int? options_requestedPolicyVersion, + async.Future wait( + core.String name, { + core.String? timeout, core.String? $fields, }) async { final queryParams_ = >{ - if (options_requestedPolicyVersion != null) - 'options.requestedPolicyVersion': ['${options_requestedPolicyVersion}'], + if (timeout != null) 'timeout': [timeout], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':getIamPolicy'; + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; final response_ = await _requester.request( url_, 'POST', queryParams: queryParams_, ); - return GoogleIamV1Policy.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } +} - /// Lists FeatureViews in a given FeatureOnlineStore. +class ProjectsLocationsFeatureOnlineStoresResource { + final commons.ApiRequester _requester; + + ProjectsLocationsFeatureOnlineStoresFeatureViewsResource get featureViews => + ProjectsLocationsFeatureOnlineStoresFeatureViewsResource(_requester); + ProjectsLocationsFeatureOnlineStoresOperationsResource get operations => + ProjectsLocationsFeatureOnlineStoresOperationsResource(_requester); + + ProjectsLocationsFeatureOnlineStoresResource(commons.ApiRequester client) + : _requester = client; + + /// Creates a new FeatureOnlineStore in a given project and location. /// - /// Request parameters: - /// - /// [parent] - Required. The resource name of the FeatureOnlineStore to list - /// FeatureViews. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. - /// - /// [filter] - Lists the FeatureViews that match the filter expression. The - /// following filters are supported: * `create_time`: Supports `=`, `!=`, `<`, - /// `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 format. * - /// `update_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. - /// Values must be in RFC 3339 format. * `labels`: Supports key-value equality - /// as well as key presence. Examples: * `create_time > - /// \"2020-01-31T15:30:00.000000Z\" OR update_time > - /// \"2020-01-31T15:30:00.000000Z\"` --\> FeatureViews created or updated - /// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = - /// prod` --\> FeatureViews having both (active: yes) and (env: prod) labels. - /// * `labels.env: *` --\> Any FeatureView which has a label with 'env' as the - /// key. + /// [request] - The metadata request object. /// - /// [orderBy] - A comma-separated list of fields to order by, sorted in - /// ascending order. Use "desc" after a field name for descending. Supported - /// fields: * `feature_view_id` * `create_time` * `update_time` + /// Request parameters: /// - /// [pageSize] - The maximum number of FeatureViews to return. The service may - /// return fewer than this value. If unspecified, at most 1000 FeatureViews - /// will be returned. The maximum value is 1000; any value greater than 1000 - /// will be coerced to 1000. + /// [parent] - Required. The resource name of the Location to create + /// FeatureOnlineStores. Format: `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// - /// [pageToken] - A page token, received from a previous - /// FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to - /// retrieve the subsequent page. When paginating, all other parameters - /// provided to FeatureOnlineStoreAdminService.ListFeatureViews must match the - /// call that provided the page token. + /// [featureOnlineStoreId] - Required. The ID to use for this + /// FeatureOnlineStore, which will become the final component of the + /// FeatureOnlineStore's resource name. This value may be up to 60 characters, + /// and valid characters are `[a-z0-9_]`. The first character cannot be a + /// number. The value must be unique within the project and location. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1ListFeatureViewsResponse]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( + async.Future create( + GoogleCloudAiplatformV1FeatureOnlineStore request, core.String parent, { - core.String? filter, - core.String? orderBy, - core.int? pageSize, - core.String? pageToken, + core.String? featureOnlineStoreId, core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ - if (filter != null) 'filter': [filter], - if (orderBy != null) 'orderBy': [orderBy], - if (pageSize != null) 'pageSize': ['${pageSize}'], - if (pageToken != null) 'pageToken': [pageToken], + if (featureOnlineStoreId != null) + 'featureOnlineStoreId': [featureOnlineStoreId], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/featureViews'; + final url_ = + 'v1/' + core.Uri.encodeFull('$parent') + '/featureOnlineStores'; final response_ = await _requester.request( url_, - 'GET', + 'POST', + body: body_, queryParams: queryParams_, ); - return GoogleCloudAiplatformV1ListFeatureViewsResponse.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } - /// Updates the parameters of a single FeatureView. + /// Deletes a single FeatureOnlineStore. /// - /// [request] - The metadata request object. + /// The FeatureOnlineStore must not contain any FeatureViews. /// /// Request parameters: /// - /// [name] - Identifier. Name of the FeatureView. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + /// [name] - Required. The name of the FeatureOnlineStore to be deleted. + /// Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. /// - /// [updateMask] - Field mask is used to specify the fields to be overwritten - /// in the FeatureView resource by the update. The fields specified in the - /// update_mask are relative to the resource, not the full request. A field - /// will be overwritten if it is in the mask. If the user does not provide a - /// mask then only the non-empty fields present in the request will be - /// overwritten. Set the update_mask to `*` to override all fields. Updatable - /// fields: * `labels` * `service_agent_type` * `big_query_source` * - /// `big_query_source.uri` * `big_query_source.entity_id_columns` * - /// `feature_registry_source` * `feature_registry_source.feature_groups` * - /// `sync_config` * `sync_config.cron` * - /// `optimized_config.automatic_resources` + /// [force] - If set to true, any FeatureViews and Features for this + /// FeatureOnlineStore will also be deleted. (Otherwise, the request will only + /// work if the FeatureOnlineStore has no FeatureViews.) /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -9614,15 +9828,13 @@ class ProjectsLocationsFeatureOnlineStoresFeatureViewsResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future patch( - GoogleCloudAiplatformV1FeatureView request, + async.Future delete( core.String name, { - core.String? updateMask, + core.bool? force, core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ - if (updateMask != null) 'updateMask': [updateMask], + if (force != null) 'force': ['${force}'], if ($fields != null) 'fields': [$fields], }; @@ -9630,8 +9842,7 @@ class ProjectsLocationsFeatureOnlineStoresFeatureViewsResource { final response_ = await _requester.request( url_, - 'PATCH', - body: body_, + 'DELETE', queryParams: queryParams_, ); return GoogleLongrunningOperation.fromJson( @@ -9639,70 +9850,69 @@ class ProjectsLocationsFeatureOnlineStoresFeatureViewsResource { ); } - /// Search the nearest entities under a FeatureView. - /// - /// Search only works for indexable feature view; if a feature view isn't - /// indexable, returns Invalid argument response. - /// - /// [request] - The metadata request object. + /// Gets details of a single FeatureOnlineStore. /// /// Request parameters: /// - /// [featureView] - Required. FeatureView resource format - /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + /// [name] - Required. The name of the FeatureOnlineStore resource. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1SearchNearestEntitiesResponse]. + /// Completes with a [GoogleCloudAiplatformV1FeatureOnlineStore]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future - searchNearestEntities( - GoogleCloudAiplatformV1SearchNearestEntitiesRequest request, - core.String featureView, { + async.Future get( + core.String name, { core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + core.Uri.encodeFull('$featureView') + ':searchNearestEntities'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'GET', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1SearchNearestEntitiesResponse.fromJson( + return GoogleCloudAiplatformV1FeatureOnlineStore.fromJson( response_ as core.Map, ); } - /// Sets the access control policy on the specified resource. - /// - /// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, - /// and `PERMISSION_DENIED` errors. + /// Gets the access control policy for a resource. /// - /// [request] - The metadata request object. + /// Returns an empty policy if the resource exists and does not have a policy + /// set. /// /// Request parameters: /// /// [resource] - REQUIRED: The resource for which the policy is being - /// specified. See + /// requested. See /// [Resource names](https://cloud.google.com/apis/design/resource_names) for /// the appropriate value for this field. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. + /// + /// [options_requestedPolicyVersion] - Optional. The maximum policy version + /// that will be used to format the policy. Valid values are 0, 1, and 3. + /// Requests specifying an invalid value will be rejected. Requests for + /// policies with any conditional role bindings must specify version 3. + /// Policies with no conditional role bindings may specify any valid value or + /// leave the field unset. The policy in the response might use the policy + /// version that you specified, or it might use a lower policy version. For + /// example, if you specify version 3, but the policy has no conditional role + /// bindings, the response uses version 1. To learn which resources support + /// conditions in their IAM policies, see the + /// [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -9714,22 +9924,22 @@ class ProjectsLocationsFeatureOnlineStoresFeatureViewsResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future setIamPolicy( - GoogleIamV1SetIamPolicyRequest request, + async.Future getIamPolicy( core.String resource, { + core.int? options_requestedPolicyVersion, core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ + if (options_requestedPolicyVersion != null) + 'options.requestedPolicyVersion': ['${options_requestedPolicyVersion}'], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':setIamPolicy'; + final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':getIamPolicy'; final response_ = await _requester.request( url_, 'POST', - body: body_, queryParams: queryParams_, ); return GoogleIamV1Policy.fromJson( @@ -9737,38 +9947,169 @@ class ProjectsLocationsFeatureOnlineStoresFeatureViewsResource { ); } - /// Triggers on-demand sync for the FeatureView. + /// Lists FeatureOnlineStores in a given project and location. + /// + /// Request parameters: + /// + /// [parent] - Required. The resource name of the Location to list + /// FeatureOnlineStores. Format: `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [filter] - Lists the FeatureOnlineStores that match the filter expression. + /// The following fields are supported: * `create_time`: Supports `=`, `!=`, + /// `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * + /// `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + /// Values must be in RFC 3339 format. * `labels`: Supports key-value equality + /// and key presence. Examples: * `create_time > "2020-01-01" OR update_time > + /// "2020-01-01"` FeatureOnlineStores created or updated after 2020-01-01. * + /// `labels.env = "prod"` FeatureOnlineStores with label "env" set to "prod". + /// + /// [orderBy] - A comma-separated list of fields to order by, sorted in + /// ascending order. Use "desc" after a field name for descending. Supported + /// Fields: * `create_time` * `update_time` + /// + /// [pageSize] - The maximum number of FeatureOnlineStores to return. The + /// service may return fewer than this value. If unspecified, at most 100 + /// FeatureOnlineStores will be returned. The maximum value is 100; any value + /// greater than 100 will be coerced to 100. + /// + /// [pageToken] - A page token, received from a previous + /// FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide this + /// to retrieve the subsequent page. When paginating, all other parameters + /// provided to FeatureOnlineStoreAdminService.ListFeatureOnlineStores must + /// match the call that provided the page token. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String parent, { + core.String? filter, + core.String? orderBy, + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + core.Uri.encodeFull('$parent') + '/featureOnlineStores'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse.fromJson( + response_ as core.Map, + ); + } + + /// Updates the parameters of a single FeatureOnlineStore. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [featureView] - Required. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + /// [name] - Identifier. Name of the FeatureOnlineStore. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. + /// + /// [updateMask] - Field mask is used to specify the fields to be overwritten + /// in the FeatureOnlineStore resource by the update. The fields specified in + /// the update_mask are relative to the resource, not the full request. A + /// field will be overwritten if it is in the mask. If the user does not + /// provide a mask then only the non-empty fields present in the request will + /// be overwritten. Set the update_mask to `*` to override all fields. + /// Updatable fields: * `labels` * `description` * `bigtable` * + /// `bigtable.auto_scaling` * `bigtable.enable_multi_region_replica` /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1SyncFeatureViewResponse]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future sync( - GoogleCloudAiplatformV1SyncFeatureViewRequest request, - core.String featureView, { + async.Future patch( + GoogleCloudAiplatformV1FeatureOnlineStore request, + core.String name, { + core.String? updateMask, core.String? $fields, }) async { final body_ = convert.json.encode(request); final queryParams_ = >{ + if (updateMask != null) 'updateMask': [updateMask], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$featureView') + ':sync'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'PATCH', + body: body_, + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } + + /// Sets the access control policy on the specified resource. + /// + /// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, + /// and `PERMISSION_DENIED` errors. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [resource] - 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. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleIamV1Policy]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future setIamPolicy( + GoogleIamV1SetIamPolicyRequest request, + core.String resource, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':setIamPolicy'; final response_ = await _requester.request( url_, @@ -9776,7 +10117,7 @@ class ProjectsLocationsFeatureOnlineStoresFeatureViewsResource { body: body_, queryParams: queryParams_, ); - return GoogleCloudAiplatformV1SyncFeatureViewResponse.fromJson( + return GoogleIamV1Policy.fromJson( response_ as core.Map, ); } @@ -9795,7 +10136,7 @@ class ProjectsLocationsFeatureOnlineStoresFeatureViewsResource { /// [Resource names](https://cloud.google.com/apis/design/resource_names) for /// the appropriate value for this field. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. /// /// [permissions] - The set of permissions to check for the `resource`. /// Permissions with wildcards (such as `*` or `storage.*`) are not allowed. @@ -9836,378 +10177,414 @@ class ProjectsLocationsFeatureOnlineStoresFeatureViewsResource { } } -class ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsResource { +class ProjectsLocationsFeatureOnlineStoresFeatureViewsResource { final commons.ApiRequester _requester; - ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsResource( + ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsResource + get featureViewSyncs => + ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsResource( + _requester, + ); + ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsResource + get operations => + ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsResource( + _requester, + ); + + ProjectsLocationsFeatureOnlineStoresFeatureViewsResource( commons.ApiRequester client, ) : _requester = client; - /// Gets details of a single FeatureViewSync. + /// Creates a new FeatureView in a given FeatureOnlineStore. + /// + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - Required. The name of the FeatureViewSync resource. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + /// [parent] - Required. The resource name of the FeatureOnlineStore to create + /// FeatureViews. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+/featureViewSyncs/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. + /// + /// [featureViewId] - Required. The ID to use for the FeatureView, which will + /// become the final component of the FeatureView's resource name. This value + /// may be up to 60 characters, and valid characters are `[a-z0-9_]`. The + /// first character cannot be a number. The value must be unique within a + /// FeatureOnlineStore. + /// + /// [runSyncImmediately] - Immutable. If set to true, one on demand sync will + /// be run immediately, regardless whether the FeatureView.sync_config is + /// configured or not. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1FeatureViewSync]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( - core.String name, { + async.Future create( + GoogleCloudAiplatformV1FeatureView request, + core.String parent, { + core.String? featureViewId, + core.bool? runSyncImmediately, core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ + if (featureViewId != null) 'featureViewId': [featureViewId], + if (runSyncImmediately != null) + 'runSyncImmediately': ['${runSyncImmediately}'], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/featureViews'; final response_ = await _requester.request( url_, - 'GET', + 'POST', + body: body_, queryParams: queryParams_, ); - return GoogleCloudAiplatformV1FeatureViewSync.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } - /// Lists FeatureViewSyncs in a given FeatureView. + /// Deletes a single FeatureView. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the FeatureView to list - /// FeatureViewSyncs. Format: + /// [name] - Required. The name of the FeatureView to be deleted. Format: /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` /// Value must have pattern /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. /// - /// [filter] - Lists the FeatureViewSyncs that match the filter expression. - /// The following filters are supported: * `create_time`: Supports `=`, `!=`, - /// `<`, `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 format. - /// Examples: * `create_time > \"2020-01-31T15:30:00.000000Z\"` --\> - /// FeatureViewSyncs created after 2020-01-31T15:30:00.000000Z. - /// - /// [orderBy] - A comma-separated list of fields to order by, sorted in - /// ascending order. Use "desc" after a field name for descending. Supported - /// fields: * `create_time` - /// - /// [pageSize] - The maximum number of FeatureViewSyncs to return. The service - /// may return fewer than this value. If unspecified, at most 1000 - /// FeatureViewSyncs will be returned. The maximum value is 1000; any value - /// greater than 1000 will be coerced to 1000. - /// - /// [pageToken] - A page token, received from a previous - /// FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide this to - /// retrieve the subsequent page. When paginating, all other parameters - /// provided to FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match - /// the call that provided the page token. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1ListFeatureViewSyncsResponse]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( - core.String parent, { - core.String? filter, - core.String? orderBy, - core.int? pageSize, - core.String? pageToken, + async.Future delete( + core.String name, { core.String? $fields, }) async { final queryParams_ = >{ - if (filter != null) 'filter': [filter], - if (orderBy != null) 'orderBy': [orderBy], - if (pageSize != null) 'pageSize': ['${pageSize}'], - if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/featureViewSyncs'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'GET', + 'DELETE', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1ListFeatureViewSyncsResponse.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } -} - -class ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsResource { - final commons.ApiRequester _requester; - - ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsResource( - commons.ApiRequester client, - ) : _requester = client; - /// Deletes a long-running operation. + /// Bidirectional streaming RPC to directly write to feature values in a + /// feature view. /// - /// This method indicates that the client is no longer interested in the - /// operation result. It does not cancel the operation. If the server doesn't - /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + /// Requests may not have a one-to-one mapping to responses and responses may + /// be returned out-of-order to reduce latency. + /// + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation resource to be deleted. + /// [featureView] - FeatureView resource format + /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleProtobufEmpty]. + /// Completes with a [GoogleCloudAiplatformV1FeatureViewDirectWriteResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete( - core.String name, { + async.Future + directWrite( + GoogleCloudAiplatformV1FeatureViewDirectWriteRequest request, + core.String featureView, { core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = 'v1/' + core.Uri.encodeFull('$featureView') + ':directWrite'; final response_ = await _requester.request( url_, - 'DELETE', + 'POST', + body: body_, queryParams: queryParams_, ); - return GoogleProtobufEmpty.fromJson( + return GoogleCloudAiplatformV1FeatureViewDirectWriteResponse.fromJson( response_ as core.Map, ); } - /// Gets the latest state of a long-running operation. + /// Fetch feature values under a FeatureView. /// - /// Clients can use this method to poll the operation result at intervals as - /// recommended by the API service. + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation resource. + /// [featureView] - Required. FeatureView resource format + /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleCloudAiplatformV1FetchFeatureValuesResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( - core.String name, { + async.Future + fetchFeatureValues( + GoogleCloudAiplatformV1FetchFeatureValuesRequest request, + core.String featureView, { core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = + 'v1/' + core.Uri.encodeFull('$featureView') + ':fetchFeatureValues'; final response_ = await _requester.request( url_, - 'GET', + 'POST', + body: body_, queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleCloudAiplatformV1FetchFeatureValuesResponse.fromJson( response_ as core.Map, ); } - /// Lists operations that match the specified filter in the request. - /// - /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. + /// Gets details of a single FeatureView. /// /// Request parameters: /// - /// [name] - The name of the operation's parent resource. + /// [name] - Required. The name of the FeatureView resource. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+/operations/\[^/\]+$`. - /// - /// [filter] - The standard list filter. - /// - /// [pageSize] - The standard list page size. - /// - /// [pageToken] - The standard list page token. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningListOperationsResponse]. + /// Completes with a [GoogleCloudAiplatformV1FeatureView]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future listWait( + async.Future get( core.String name, { - core.String? filter, - core.int? pageSize, - core.String? pageToken, core.String? $fields, }) async { final queryParams_ = >{ - if (filter != null) 'filter': [filter], - if (pageSize != null) 'pageSize': ['${pageSize}'], - if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return GoogleLongrunningListOperationsResponse.fromJson( + return GoogleCloudAiplatformV1FeatureView.fromJson( response_ as core.Map, ); } - /// Waits until the specified long-running operation is done or reaches at - /// most a specified timeout, returning the latest state. + /// Gets the access control policy for a resource. /// - /// If the operation is already done, the latest state is immediately - /// returned. If the timeout specified is greater than the default HTTP/RPC - /// timeout, the HTTP/RPC timeout is used. If the server does not support this - /// method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method - /// is on a best-effort basis. It may return the latest state before the - /// specified timeout (including immediately), meaning even an immediate - /// response is no guarantee that the operation is done. + /// Returns an empty policy if the resource exists and does not have a policy + /// set. /// /// Request parameters: /// - /// [name] - The name of the operation resource to wait on. + /// [resource] - 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. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. /// - /// [timeout] - The maximum duration to wait before timing out. If left blank, - /// the wait will be at most the time permitted by the underlying HTTP/RPC - /// protocol. If RPC context deadline is also specified, the shorter one will - /// be used. + /// [options_requestedPolicyVersion] - Optional. The maximum policy version + /// that will be used to format the policy. Valid values are 0, 1, and 3. + /// Requests specifying an invalid value will be rejected. Requests for + /// policies with any conditional role bindings must specify version 3. + /// Policies with no conditional role bindings may specify any valid value or + /// leave the field unset. The policy in the response might use the policy + /// version that you specified, or it might use a lower policy version. For + /// example, if you specify version 3, but the policy has no conditional role + /// bindings, the response uses version 1. To learn which resources support + /// conditions in their IAM policies, see the + /// [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleIamV1Policy]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future wait( - core.String name, { - core.String? timeout, + async.Future getIamPolicy( + core.String resource, { + core.int? options_requestedPolicyVersion, core.String? $fields, }) async { final queryParams_ = >{ - if (timeout != null) 'timeout': [timeout], + if (options_requestedPolicyVersion != null) + 'options.requestedPolicyVersion': ['${options_requestedPolicyVersion}'], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; + final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':getIamPolicy'; final response_ = await _requester.request( url_, 'POST', queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleIamV1Policy.fromJson( response_ as core.Map, ); } -} - -class ProjectsLocationsFeatureOnlineStoresOperationsResource { - final commons.ApiRequester _requester; - - ProjectsLocationsFeatureOnlineStoresOperationsResource( - commons.ApiRequester client, - ) : _requester = client; - /// Deletes a long-running operation. - /// - /// This method indicates that the client is no longer interested in the - /// operation result. It does not cancel the operation. If the server doesn't - /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + /// Lists FeatureViews in a given FeatureOnlineStore. /// /// Request parameters: /// - /// [name] - The name of the operation resource to be deleted. + /// [parent] - Required. The resource name of the FeatureOnlineStore to list + /// FeatureViews. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+$`. + /// + /// [filter] - Lists the FeatureViews that match the filter expression. The + /// following filters are supported: * `create_time`: Supports `=`, `!=`, `<`, + /// `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 format. * + /// `update_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. + /// Values must be in RFC 3339 format. * `labels`: Supports key-value equality + /// as well as key presence. Examples: * `create_time > + /// \"2020-01-31T15:30:00.000000Z\" OR update_time > + /// \"2020-01-31T15:30:00.000000Z\"` --\> FeatureViews created or updated + /// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = + /// prod` --\> FeatureViews having both (active: yes) and (env: prod) labels. + /// * `labels.env: *` --\> Any FeatureView which has a label with 'env' as the + /// key. + /// + /// [orderBy] - A comma-separated list of fields to order by, sorted in + /// ascending order. Use "desc" after a field name for descending. Supported + /// fields: * `feature_view_id` * `create_time` * `update_time` + /// + /// [pageSize] - The maximum number of FeatureViews to return. The service may + /// return fewer than this value. If unspecified, at most 1000 FeatureViews + /// will be returned. The maximum value is 1000; any value greater than 1000 + /// will be coerced to 1000. + /// + /// [pageToken] - A page token, received from a previous + /// FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to + /// retrieve the subsequent page. When paginating, all other parameters + /// provided to FeatureOnlineStoreAdminService.ListFeatureViews must match the + /// call that provided the page token. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleProtobufEmpty]. + /// Completes with a [GoogleCloudAiplatformV1ListFeatureViewsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete( - core.String name, { + async.Future list( + core.String parent, { + core.String? filter, + core.String? orderBy, + core.int? pageSize, + core.String? pageToken, core.String? $fields, }) async { final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/featureViews'; final response_ = await _requester.request( url_, - 'DELETE', + 'GET', queryParams: queryParams_, ); - return GoogleProtobufEmpty.fromJson( + return GoogleCloudAiplatformV1ListFeatureViewsResponse.fromJson( response_ as core.Map, ); } - /// Gets the latest state of a long-running operation. + /// Updates the parameters of a single FeatureView. /// - /// Clients can use this method to poll the operation result at intervals as - /// recommended by the API service. + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation resource. + /// [name] - Identifier. Name of the FeatureView. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. + /// + /// [updateMask] - Field mask is used to specify the fields to be overwritten + /// in the FeatureView resource by the update. The fields specified in the + /// update_mask are relative to the resource, not the full request. A field + /// will be overwritten if it is in the mask. If the user does not provide a + /// mask then only the non-empty fields present in the request will be + /// overwritten. Set the update_mask to `*` to override all fields. Updatable + /// fields: * `labels` * `service_agent_type` * `big_query_source` * + /// `big_query_source.uri` * `big_query_source.entity_id_columns` * + /// `feature_registry_source` * `feature_registry_source.feature_groups` * + /// `sync_config` * `sync_config.cron` * + /// `optimized_config.automatic_resources` /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -10219,11 +10596,15 @@ class ProjectsLocationsFeatureOnlineStoresOperationsResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( + async.Future patch( + GoogleCloudAiplatformV1FeatureView request, core.String name, { + core.String? updateMask, core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ + if (updateMask != null) 'updateMask': [updateMask], if ($fields != null) 'fields': [$fields], }; @@ -10231,7 +10612,8 @@ class ProjectsLocationsFeatureOnlineStoresOperationsResource { final response_ = await _requester.request( url_, - 'GET', + 'PATCH', + body: body_, queryParams: queryParams_, ); return GoogleLongrunningOperation.fromJson( @@ -10239,154 +10621,128 @@ class ProjectsLocationsFeatureOnlineStoresOperationsResource { ); } - /// Lists operations that match the specified filter in the request. + /// Search the nearest entities under a FeatureView. /// - /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. + /// Search only works for indexable feature view; if a feature view isn't + /// indexable, returns Invalid argument response. + /// + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation's parent resource. + /// [featureView] - Required. FeatureView resource format + /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/operations/\[^/\]+$`. - /// - /// [filter] - The standard list filter. - /// - /// [pageSize] - The standard list page size. - /// - /// [pageToken] - The standard list page token. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningListOperationsResponse]. + /// Completes with a [GoogleCloudAiplatformV1SearchNearestEntitiesResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future listWait( - core.String name, { - core.String? filter, - core.int? pageSize, - core.String? pageToken, + async.Future + searchNearestEntities( + GoogleCloudAiplatformV1SearchNearestEntitiesRequest request, + core.String featureView, { core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ - if (filter != null) 'filter': [filter], - if (pageSize != null) 'pageSize': ['${pageSize}'], - if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; + final url_ = + 'v1/' + core.Uri.encodeFull('$featureView') + ':searchNearestEntities'; final response_ = await _requester.request( url_, - 'GET', + 'POST', + body: body_, queryParams: queryParams_, ); - return GoogleLongrunningListOperationsResponse.fromJson( + return GoogleCloudAiplatformV1SearchNearestEntitiesResponse.fromJson( response_ as core.Map, ); } - /// Waits until the specified long-running operation is done or reaches at - /// most a specified timeout, returning the latest state. + /// Sets the access control policy on the specified resource. /// - /// If the operation is already done, the latest state is immediately - /// returned. If the timeout specified is greater than the default HTTP/RPC - /// timeout, the HTTP/RPC timeout is used. If the server does not support this - /// method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method - /// is on a best-effort basis. It may return the latest state before the - /// specified timeout (including immediately), meaning even an immediate - /// response is no guarantee that the operation is done. + /// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, + /// and `PERMISSION_DENIED` errors. + /// + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation resource to wait on. + /// [resource] - 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. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/operations/\[^/\]+$`. - /// - /// [timeout] - The maximum duration to wait before timing out. If left blank, - /// the wait will be at most the time permitted by the underlying HTTP/RPC - /// protocol. If RPC context deadline is also specified, the shorter one will - /// be used. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleIamV1Policy]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future wait( - core.String name, { - core.String? timeout, + async.Future setIamPolicy( + GoogleIamV1SetIamPolicyRequest request, + core.String resource, { core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ - if (timeout != null) 'timeout': [timeout], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; + final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':setIamPolicy'; final response_ = await _requester.request( url_, 'POST', + body: body_, queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleIamV1Policy.fromJson( response_ as core.Map, ); } -} - -class ProjectsLocationsFeaturestoresResource { - final commons.ApiRequester _requester; - - ProjectsLocationsFeaturestoresEntityTypesResource get entityTypes => - ProjectsLocationsFeaturestoresEntityTypesResource(_requester); - ProjectsLocationsFeaturestoresOperationsResource get operations => - ProjectsLocationsFeaturestoresOperationsResource(_requester); - - ProjectsLocationsFeaturestoresResource(commons.ApiRequester client) - : _requester = client; - /// Batch reads Feature values from a Featurestore. - /// - /// This API enables batch reading Feature values, where each read instance in - /// the batch may read Feature values of entities from one or more - /// EntityTypes. Point-in-time correctness is guaranteed for Feature values of - /// each read instance as of each instance's read timestamp. + /// Triggers on-demand sync for the FeatureView. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [featurestore] - Required. The resource name of the Featurestore from - /// which to query Feature values. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// [featureView] - Required. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleCloudAiplatformV1SyncFeatureViewResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future batchReadFeatureValues( - GoogleCloudAiplatformV1BatchReadFeatureValuesRequest request, - core.String featurestore, { + async.Future sync( + GoogleCloudAiplatformV1SyncFeatureViewRequest request, + core.String featureView, { core.String? $fields, }) async { final body_ = convert.json.encode(request); @@ -10394,10 +10750,7 @@ class ProjectsLocationsFeaturestoresResource { if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + - core.Uri.encodeFull('$featurestore') + - ':batchReadFeatureValues'; + final url_ = 'v1/' + core.Uri.encodeFull('$featureView') + ':sync'; final response_ = await _requester.request( url_, @@ -10405,95 +10758,97 @@ class ProjectsLocationsFeaturestoresResource { body: body_, queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleCloudAiplatformV1SyncFeatureViewResponse.fromJson( response_ as core.Map, ); } - /// Creates a new Featurestore in a given project and location. + /// Returns permissions that a caller has on the specified resource. /// - /// [request] - The metadata request object. + /// If the resource does not exist, this will return an empty set of + /// permissions, not a `NOT_FOUND` error. Note: This operation is designed to + /// be used for building permission-aware UIs and command-line tools, not for + /// authorization checking. This operation may "fail open" without warning. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the Location to create - /// Featurestores. Format: `projects/{project}/locations/{location}` - /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// [resource] - 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. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. /// - /// [featurestoreId] - Required. The ID to use for this Featurestore, which - /// will become the final component of the Featurestore's resource name. This - /// value may be up to 60 characters, and valid characters are `[a-z0-9_]`. - /// The first character cannot be a number. The value must be unique within - /// the project and location. + /// [permissions] - The set of permissions to check for the `resource`. + /// Permissions with wildcards (such as `*` or `storage.*`) are not allowed. + /// For more information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleIamV1TestIamPermissionsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future create( - GoogleCloudAiplatformV1Featurestore request, - core.String parent, { - core.String? featurestoreId, + async.Future testIamPermissions( + core.String resource, { + core.List? permissions, core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ - if (featurestoreId != null) 'featurestoreId': [featurestoreId], + if (permissions != null) 'permissions': permissions, if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/featurestores'; + final url_ = + 'v1/' + core.Uri.encodeFull('$resource') + ':testIamPermissions'; final response_ = await _requester.request( url_, 'POST', - body: body_, queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleIamV1TestIamPermissionsResponse.fromJson( response_ as core.Map, ); } +} - /// Deletes a single Featurestore. - /// - /// The Featurestore must not contain any EntityTypes or `force` must be set - /// to true for the request to succeed. +class ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsResource( + commons.ApiRequester client, + ) : _requester = client; + + /// Gets details of a single FeatureViewSync. /// /// Request parameters: /// - /// [name] - Required. The name of the Featurestore to be deleted. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// [name] - Required. The name of the FeatureViewSync resource. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. - /// - /// [force] - If set to true, any EntityTypes and Features for this - /// Featurestore will also be deleted. (Otherwise, the request will only work - /// if the Featurestore has no EntityTypes.) + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+/featureViewSyncs/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleCloudAiplatformV1FeatureViewSync]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete( + async.Future get( core.String name, { - core.bool? force, core.String? $fields, }) async { final queryParams_ = >{ - if (force != null) 'force': ['${force}'], if ($fields != null) 'fields': [$fields], }; @@ -10501,519 +10856,444 @@ class ProjectsLocationsFeaturestoresResource { final response_ = await _requester.request( url_, - 'DELETE', + 'GET', queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleCloudAiplatformV1FeatureViewSync.fromJson( response_ as core.Map, ); } - /// Gets details of a single Featurestore. + /// Lists FeatureViewSyncs in a given FeatureView. /// /// Request parameters: /// - /// [name] - Required. The name of the Featurestore resource. + /// [parent] - Required. The resource name of the FeatureView to list + /// FeatureViewSyncs. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+$`. + /// + /// [filter] - Lists the FeatureViewSyncs that match the filter expression. + /// The following filters are supported: * `create_time`: Supports `=`, `!=`, + /// `<`, `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 format. + /// Examples: * `create_time > \"2020-01-31T15:30:00.000000Z\"` --\> + /// FeatureViewSyncs created after 2020-01-31T15:30:00.000000Z. + /// + /// [orderBy] - A comma-separated list of fields to order by, sorted in + /// ascending order. Use "desc" after a field name for descending. Supported + /// fields: * `create_time` + /// + /// [pageSize] - The maximum number of FeatureViewSyncs to return. The service + /// may return fewer than this value. If unspecified, at most 1000 + /// FeatureViewSyncs will be returned. The maximum value is 1000; any value + /// greater than 1000 will be coerced to 1000. + /// + /// [pageToken] - A page token, received from a previous + /// FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide this to + /// retrieve the subsequent page. When paginating, all other parameters + /// provided to FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match + /// the call that provided the page token. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1Featurestore]. + /// Completes with a [GoogleCloudAiplatformV1ListFeatureViewSyncsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( - core.String name, { + async.Future list( + core.String parent, { + core.String? filter, + core.String? orderBy, + core.int? pageSize, + core.String? pageToken, core.String? $fields, }) async { final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/featureViewSyncs'; final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1Featurestore.fromJson( + return GoogleCloudAiplatformV1ListFeatureViewSyncsResponse.fromJson( response_ as core.Map, ); } +} - /// Gets the access control policy for a resource. +class ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsResource( + commons.ApiRequester client, + ) : _requester = client; + + /// Deletes a long-running operation. /// - /// Returns an empty policy if the resource exists and does not have a policy - /// set. + /// This method indicates that the client is no longer interested in the + /// operation result. It does not cancel the operation. If the server doesn't + /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. /// /// Request parameters: /// - /// [resource] - 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. + /// [name] - The name of the operation resource to be deleted. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. - /// - /// [options_requestedPolicyVersion] - Optional. The maximum policy version - /// that will be used to format the policy. Valid values are 0, 1, and 3. - /// Requests specifying an invalid value will be rejected. Requests for - /// policies with any conditional role bindings must specify version 3. - /// Policies with no conditional role bindings may specify any valid value or - /// leave the field unset. The policy in the response might use the policy - /// version that you specified, or it might use a lower policy version. For - /// example, if you specify version 3, but the policy has no conditional role - /// bindings, the response uses version 1. To learn which resources support - /// conditions in their IAM policies, see the - /// [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleIamV1Policy]. + /// Completes with a [GoogleProtobufEmpty]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future getIamPolicy( - core.String resource, { - core.int? options_requestedPolicyVersion, + async.Future delete( + core.String name, { core.String? $fields, }) async { final queryParams_ = >{ - if (options_requestedPolicyVersion != null) - 'options.requestedPolicyVersion': ['${options_requestedPolicyVersion}'], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':getIamPolicy'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', + 'DELETE', queryParams: queryParams_, ); - return GoogleIamV1Policy.fromJson( + return GoogleProtobufEmpty.fromJson( response_ as core.Map, ); } - /// Lists Featurestores in a given project and location. - /// - /// Request parameters: - /// - /// [parent] - Required. The resource name of the Location to list - /// Featurestores. Format: `projects/{project}/locations/{location}` - /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. - /// - /// [filter] - Lists the featurestores that match the filter expression. The - /// following fields are supported: * `create_time`: Supports `=`, `!=`, `<`, - /// `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * - /// `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. - /// Values must be in RFC 3339 format. * - /// `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `<`, `>`, - /// `<=`, and `>=` comparisons. * `labels`: Supports key-value equality and - /// key presence. Examples: * `create_time > "2020-01-01" OR update_time > - /// "2020-01-01"` Featurestores created or updated after 2020-01-01. * - /// `labels.env = "prod"` Featurestores with label "env" set to "prod". - /// - /// [orderBy] - A comma-separated list of fields to order by, sorted in - /// ascending order. Use "desc" after a field name for descending. Supported - /// Fields: * `create_time` * `update_time` * - /// `online_serving_config.fixed_node_count` + /// Gets the latest state of a long-running operation. /// - /// [pageSize] - The maximum number of Featurestores to return. The service - /// may return fewer than this value. If unspecified, at most 100 - /// Featurestores will be returned. The maximum value is 100; any value - /// greater than 100 will be coerced to 100. + /// Clients can use this method to poll the operation result at intervals as + /// recommended by the API service. /// - /// [pageToken] - A page token, received from a previous - /// FeaturestoreService.ListFeaturestores call. Provide this to retrieve the - /// subsequent page. When paginating, all other parameters provided to - /// FeaturestoreService.ListFeaturestores must match the call that provided - /// the page token. + /// Request parameters: /// - /// [readMask] - Mask specifying which fields to read. + /// [name] - The name of the operation resource. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1ListFeaturestoresResponse]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( - core.String parent, { - core.String? filter, - core.String? orderBy, - core.int? pageSize, - core.String? pageToken, - core.String? readMask, + async.Future get( + core.String name, { core.String? $fields, }) async { final queryParams_ = >{ - if (filter != null) 'filter': [filter], - if (orderBy != null) 'orderBy': [orderBy], - if (pageSize != null) 'pageSize': ['${pageSize}'], - if (pageToken != null) 'pageToken': [pageToken], - if (readMask != null) 'readMask': [readMask], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/featurestores'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1ListFeaturestoresResponse.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } - /// Updates the parameters of a single Featurestore. + /// Lists operations that match the specified filter in the request. /// - /// [request] - The metadata request object. + /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. /// /// Request parameters: /// - /// [name] - Output only. Name of the Featurestore. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// [name] - The name of the operation's parent resource. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+/operations/\[^/\]+$`. /// - /// [updateMask] - Field mask is used to specify the fields to be overwritten - /// in the Featurestore resource by the update. The fields specified in the - /// update_mask are relative to the resource, not the full request. A field - /// will be overwritten if it is in the mask. If the user does not provide a - /// mask then only the non-empty fields present in the request will be - /// overwritten. Set the update_mask to `*` to override all fields. Updatable - /// fields: * `labels` * `online_serving_config.fixed_node_count` * - /// `online_serving_config.scaling` * `online_storage_ttl_days` + /// [filter] - The standard list filter. + /// + /// [pageSize] - The standard list page size. + /// + /// [pageToken] - The standard list page token. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleLongrunningListOperationsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future patch( - GoogleCloudAiplatformV1Featurestore request, + async.Future listWait( core.String name, { - core.String? updateMask, + core.String? filter, + core.int? pageSize, + core.String? pageToken, core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ - if (updateMask != null) 'updateMask': [updateMask], + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; final response_ = await _requester.request( url_, - 'PATCH', - body: body_, + 'GET', queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleLongrunningListOperationsResponse.fromJson( response_ as core.Map, ); } - /// Searches Features matching a query in a given project. - /// - /// Request parameters: + /// Waits until the specified long-running operation is done or reaches at + /// most a specified timeout, returning the latest state. /// - /// [location] - Required. The resource name of the Location to search - /// Features. Format: `projects/{project}/locations/{location}` - /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// If the operation is already done, the latest state is immediately + /// returned. If the timeout specified is greater than the default HTTP/RPC + /// timeout, the HTTP/RPC timeout is used. If the server does not support this + /// method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method + /// is on a best-effort basis. It may return the latest state before the + /// specified timeout (including immediately), meaning even an immediate + /// response is no guarantee that the operation is done. /// - /// [pageSize] - The maximum number of Features to return. The service may - /// return fewer than this value. If unspecified, at most 100 Features will be - /// returned. The maximum value is 100; any value greater than 100 will be - /// coerced to 100. + /// Request parameters: /// - /// [pageToken] - A page token, received from a previous - /// FeaturestoreService.SearchFeatures call. Provide this to retrieve the - /// subsequent page. When paginating, all other parameters provided to - /// FeaturestoreService.SearchFeatures, except `page_size`, must match the - /// call that provided the page token. + /// [name] - The name of the operation resource to wait on. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/featureViews/\[^/\]+/operations/\[^/\]+$`. /// - /// [query] - Query string that is a conjunction of field-restricted queries - /// and/or field-restricted filters. Field-restricted queries and filters can - /// be combined using `AND` to form a conjunction. A field query is in the - /// form FIELD:QUERY. This implicitly checks if QUERY exists as a substring - /// within Feature's FIELD. The QUERY and the FIELD are converted to a - /// sequence of words (i.e. tokens) for comparison. This is done by: * - /// Removing leading/trailing whitespace and tokenizing the search value. - /// Characters that are not one of alphanumeric `[a-zA-Z0-9]`, underscore `_`, - /// or asterisk `*` are treated as delimiters for tokens. `*` is treated as a - /// wildcard that matches characters within a token. * Ignoring case. * - /// Prepending an asterisk to the first and appending an asterisk to the last - /// token in QUERY. A QUERY must be either a singular token or a phrase. A - /// phrase is one or multiple words enclosed in double quotation marks ("). - /// With phrases, the order of the words is important. Words in the phrase - /// must be matching in order and consecutively. Supported FIELDs for - /// field-restricted queries: * `feature_id` * `description` * - /// `entity_type_id` Examples: * `feature_id: foo` --\> Matches a Feature with - /// ID containing the substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * - /// `feature_id: foo*feature` --\> Matches a Feature with ID containing the - /// substring `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND - /// description: bar` --\> Matches a Feature with ID containing the substring - /// `foo` and description containing the substring `bar`. Besides field - /// queries, the following exact-match filters are supported. The exact-match - /// filters do not support wildcards. Unlike field-restricted queries, - /// exact-match filters are case-sensitive. * `feature_id`: Supports = - /// comparisons. * `description`: Supports = comparisons. Multi-token filters - /// should be enclosed in quotes. * `entity_type_id`: Supports = comparisons. - /// * `value_type`: Supports = and != comparisons. * `labels`: Supports - /// key-value equality as well as key presence. * `featurestore_id`: Supports - /// = comparisons. Examples: * `description = "foo bar"` --\> Any Feature with - /// description exactly equal to `foo bar` * `value_type = DOUBLE` --\> - /// Features whose type is DOUBLE. * `labels.active = yes AND labels.env = - /// prod` --\> Features having both (active: yes) and (env: prod) labels. * - /// `labels.env: *` --\> Any Feature which has a label with `env` as the key. + /// [timeout] - The maximum duration to wait before timing out. If left blank, + /// the wait will be at most the time permitted by the underlying HTTP/RPC + /// protocol. If RPC context deadline is also specified, the shorter one will + /// be used. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1SearchFeaturesResponse]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future searchFeatures( - core.String location, { - core.int? pageSize, - core.String? pageToken, - core.String? query, + async.Future wait( + core.String name, { + core.String? timeout, core.String? $fields, }) async { final queryParams_ = >{ - if (pageSize != null) 'pageSize': ['${pageSize}'], - if (pageToken != null) 'pageToken': [pageToken], - if (query != null) 'query': [query], + if (timeout != null) 'timeout': [timeout], if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + - core.Uri.encodeFull('$location') + - '/featurestores:searchFeatures'; + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; final response_ = await _requester.request( url_, - 'GET', + 'POST', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1SearchFeaturesResponse.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } +} - /// Sets the access control policy on the specified resource. - /// - /// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, - /// and `PERMISSION_DENIED` errors. +class ProjectsLocationsFeatureOnlineStoresOperationsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsFeatureOnlineStoresOperationsResource( + commons.ApiRequester client, + ) : _requester = client; + + /// Deletes a long-running operation. /// - /// [request] - The metadata request object. + /// This method indicates that the client is no longer interested in the + /// operation result. It does not cancel the operation. If the server doesn't + /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. /// /// Request parameters: /// - /// [resource] - 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. + /// [name] - The name of the operation resource to be deleted. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleIamV1Policy]. + /// Completes with a [GoogleProtobufEmpty]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future setIamPolicy( - GoogleIamV1SetIamPolicyRequest request, - core.String resource, { + async.Future delete( + core.String name, { core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':setIamPolicy'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'DELETE', queryParams: queryParams_, ); - return GoogleIamV1Policy.fromJson( + return GoogleProtobufEmpty.fromJson( response_ as core.Map, ); } - /// Returns permissions that a caller has on the specified resource. + /// Gets the latest state of a long-running operation. /// - /// If the resource does not exist, this will return an empty set of - /// permissions, not a `NOT_FOUND` error. Note: This operation is designed to - /// be used for building permission-aware UIs and command-line tools, not for - /// authorization checking. This operation may "fail open" without warning. + /// Clients can use this method to poll the operation result at intervals as + /// recommended by the API service. /// /// Request parameters: /// - /// [resource] - 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. + /// [name] - The name of the operation resource. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. - /// - /// [permissions] - The set of permissions to check for the `resource`. - /// Permissions with wildcards (such as `*` or `storage.*`) are not allowed. - /// For more information see - /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleIamV1TestIamPermissionsResponse]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future testIamPermissions( - core.String resource, { - core.List? permissions, + async.Future get( + core.String name, { core.String? $fields, }) async { final queryParams_ = >{ - if (permissions != null) 'permissions': permissions, if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + core.Uri.encodeFull('$resource') + ':testIamPermissions'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', + 'GET', queryParams: queryParams_, ); - return GoogleIamV1TestIamPermissionsResponse.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } -} - -class ProjectsLocationsFeaturestoresEntityTypesResource { - final commons.ApiRequester _requester; - - ProjectsLocationsFeaturestoresEntityTypesFeaturesResource get features => - ProjectsLocationsFeaturestoresEntityTypesFeaturesResource(_requester); - ProjectsLocationsFeaturestoresEntityTypesOperationsResource get operations => - ProjectsLocationsFeaturestoresEntityTypesOperationsResource(_requester); - - ProjectsLocationsFeaturestoresEntityTypesResource(commons.ApiRequester client) - : _requester = client; - /// Creates a new EntityType in a given Featurestore. + /// Lists operations that match the specified filter in the request. /// - /// [request] - The metadata request object. + /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the Featurestore to create - /// EntityTypes. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// [name] - The name of the operation's parent resource. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/operations/\[^/\]+$`. /// - /// [entityTypeId] - Required. The ID to use for the EntityType, which will - /// become the final component of the EntityType's resource name. This value - /// may be up to 60 characters, and valid characters are `[a-z0-9_]`. The - /// first character cannot be a number. The value must be unique within a - /// featurestore. + /// [filter] - The standard list filter. + /// + /// [pageSize] - The standard list page size. + /// + /// [pageToken] - The standard list page token. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleLongrunningListOperationsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future create( - GoogleCloudAiplatformV1EntityType request, - core.String parent, { - core.String? entityTypeId, + async.Future listWait( + core.String name, { + core.String? filter, + core.int? pageSize, + core.String? pageToken, core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ - if (entityTypeId != null) 'entityTypeId': [entityTypeId], + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/entityTypes'; + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'GET', queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleLongrunningListOperationsResponse.fromJson( response_ as core.Map, ); } - /// Deletes a single EntityType. + /// Waits until the specified long-running operation is done or reaches at + /// most a specified timeout, returning the latest state. /// - /// The EntityType must not have any Features or `force` must be set to true - /// for the request to succeed. + /// If the operation is already done, the latest state is immediately + /// returned. If the timeout specified is greater than the default HTTP/RPC + /// timeout, the HTTP/RPC timeout is used. If the server does not support this + /// method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method + /// is on a best-effort basis. It may return the latest state before the + /// specified timeout (including immediately), meaning even an immediate + /// response is no guarantee that the operation is done. /// /// Request parameters: /// - /// [name] - Required. The name of the EntityType to be deleted. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// [name] - The name of the operation resource to wait on. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featureOnlineStores/\[^/\]+/operations/\[^/\]+$`. /// - /// [force] - If set to true, any Features for this EntityType will also be - /// deleted. (Otherwise, the request will only work if the EntityType has no - /// Features.) + /// [timeout] - The maximum duration to wait before timing out. If left blank, + /// the wait will be at most the time permitted by the underlying HTTP/RPC + /// protocol. If RPC context deadline is also specified, the shorter one will + /// be used. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -11025,47 +11305,56 @@ class ProjectsLocationsFeaturestoresEntityTypesResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete( + async.Future wait( core.String name, { - core.bool? force, + core.String? timeout, core.String? $fields, }) async { final queryParams_ = >{ - if (force != null) 'force': ['${force}'], + if (timeout != null) 'timeout': [timeout], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; final response_ = await _requester.request( url_, - 'DELETE', + 'POST', queryParams: queryParams_, ); return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } +} - /// Delete Feature values from Featurestore. +class ProjectsLocationsFeaturestoresResource { + final commons.ApiRequester _requester; + + ProjectsLocationsFeaturestoresEntityTypesResource get entityTypes => + ProjectsLocationsFeaturestoresEntityTypesResource(_requester); + ProjectsLocationsFeaturestoresOperationsResource get operations => + ProjectsLocationsFeaturestoresOperationsResource(_requester); + + ProjectsLocationsFeaturestoresResource(commons.ApiRequester client) + : _requester = client; + + /// Batch reads Feature values from a Featurestore. /// - /// The progress of the deletion is tracked by the returned operation. The - /// deleted feature values are guaranteed to be invisible to subsequent read - /// operations after the operation is marked as successfully done. If a delete - /// feature values operation fails, the feature values returned from reads and - /// exports may be inconsistent. If consistency is required, the caller must - /// retry the same delete request again and wait till the new operation - /// returned is marked as successfully done. + /// This API enables batch reading Feature values, where each read instance in + /// the batch may read Feature values of entities from one or more + /// EntityTypes. Point-in-time correctness is guaranteed for Feature values of + /// each read instance as of each instance's read timestamp. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [entityType] - Required. The resource name of the EntityType grouping the - /// Features for which values are being deleted from. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + /// [featurestore] - Required. The resource name of the Featurestore from + /// which to query Feature values. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -11077,9 +11366,9 @@ class ProjectsLocationsFeaturestoresEntityTypesResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future deleteFeatureValues( - GoogleCloudAiplatformV1DeleteFeatureValuesRequest request, - core.String entityType, { + async.Future batchReadFeatureValues( + GoogleCloudAiplatformV1BatchReadFeatureValuesRequest request, + core.String featurestore, { core.String? $fields, }) async { final body_ = convert.json.encode(request); @@ -11088,7 +11377,9 @@ class ProjectsLocationsFeaturestoresEntityTypesResource { }; final url_ = - 'v1/' + core.Uri.encodeFull('$entityType') + ':deleteFeatureValues'; + 'v1/' + + core.Uri.encodeFull('$featurestore') + + ':batchReadFeatureValues'; final response_ = await _requester.request( url_, @@ -11101,17 +11392,21 @@ class ProjectsLocationsFeaturestoresEntityTypesResource { ); } - /// Exports Feature values from all the entities of a target EntityType. + /// Creates a new Featurestore in a given project and location. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [entityType] - Required. The resource name of the EntityType from which to - /// export Feature values. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. + /// [parent] - Required. The resource name of the Location to create + /// Featurestores. Format: `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [featurestoreId] - Required. The ID to use for this Featurestore, which + /// will become the final component of the Featurestore's resource name. This + /// value may be up to 60 characters, and valid characters are `[a-z0-9_]`. + /// The first character cannot be a number. The value must be unique within + /// the project and location. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -11123,18 +11418,19 @@ class ProjectsLocationsFeaturestoresEntityTypesResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future exportFeatureValues( - GoogleCloudAiplatformV1ExportFeatureValuesRequest request, - core.String entityType, { + async.Future create( + GoogleCloudAiplatformV1Featurestore request, + core.String parent, { + core.String? featurestoreId, core.String? $fields, }) async { final body_ = convert.json.encode(request); final queryParams_ = >{ + if (featurestoreId != null) 'featurestoreId': [featurestoreId], if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + core.Uri.encodeFull('$entityType') + ':exportFeatureValues'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/featurestores'; final response_ = await _requester.request( url_, @@ -11147,26 +11443,73 @@ class ProjectsLocationsFeaturestoresEntityTypesResource { ); } - /// Gets details of a single EntityType. + /// Deletes a single Featurestore. + /// + /// The Featurestore must not contain any EntityTypes or `force` must be set + /// to true for the request to succeed. /// /// Request parameters: /// - /// [name] - Required. The name of the EntityType resource. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// [name] - Required. The name of the Featurestore to be deleted. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. + /// + /// [force] - If set to true, any EntityTypes and Features for this + /// Featurestore will also be deleted. (Otherwise, the request will only work + /// if the Featurestore has no EntityTypes.) /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1EntityType]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( + async.Future delete( + core.String name, { + core.bool? force, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (force != null) 'force': ['${force}'], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'DELETE', + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } + + /// Gets details of a single Featurestore. + /// + /// Request parameters: + /// + /// [name] - Required. The name of the Featurestore resource. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudAiplatformV1Featurestore]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get( core.String name, { core.String? $fields, }) async { @@ -11181,7 +11524,7 @@ class ProjectsLocationsFeaturestoresEntityTypesResource { 'GET', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1EntityType.fromJson( + return GoogleCloudAiplatformV1Featurestore.fromJson( response_ as core.Map, ); } @@ -11198,7 +11541,7 @@ class ProjectsLocationsFeaturestoresEntityTypesResource { /// [Resource names](https://cloud.google.com/apis/design/resource_names) for /// the appropriate value for this field. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. /// /// [options_requestedPolicyVersion] - Optional. The maximum policy version /// that will be used to format the policy. Valid values are 0, 1, and 3. @@ -11245,189 +11588,115 @@ class ProjectsLocationsFeaturestoresEntityTypesResource { ); } - /// Imports Feature values into the Featurestore from a source storage. + /// Lists Featurestores in a given project and location. /// - /// The progress of the import is tracked by the returned operation. The - /// imported features are guaranteed to be visible to subsequent read - /// operations after the operation is marked as successfully done. If an - /// import operation fails, the Feature values returned from reads and exports - /// may be inconsistent. If consistency is required, the caller must retry the - /// same import request again and wait till the new operation returned is - /// marked as successfully done. There are also scenarios where the caller can - /// cause inconsistency. - Source data for import contains multiple distinct - /// Feature values for the same entity ID and timestamp. - Source is modified - /// during an import. This includes adding, updating, or removing source data - /// and/or metadata. Examples of updating metadata include but are not limited - /// to changing storage location, storage class, or retention policy. - Online - /// serving cluster is under-provisioned. + /// Request parameters: /// - /// [request] - The metadata request object. + /// [parent] - Required. The resource name of the Location to list + /// Featurestores. Format: `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// - /// Request parameters: + /// [filter] - Lists the featurestores that match the filter expression. The + /// following fields are supported: * `create_time`: Supports `=`, `!=`, `<`, + /// `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * + /// `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + /// Values must be in RFC 3339 format. * + /// `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `<`, `>`, + /// `<=`, and `>=` comparisons. * `labels`: Supports key-value equality and + /// key presence. Examples: * `create_time > "2020-01-01" OR update_time > + /// "2020-01-01"` Featurestores created or updated after 2020-01-01. * + /// `labels.env = "prod"` Featurestores with label "env" set to "prod". /// - /// [entityType] - Required. The resource name of the EntityType grouping the - /// Features for which values are being imported. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. + /// [orderBy] - A comma-separated list of fields to order by, sorted in + /// ascending order. Use "desc" after a field name for descending. Supported + /// Fields: * `create_time` * `update_time` * + /// `online_serving_config.fixed_node_count` + /// + /// [pageSize] - The maximum number of Featurestores to return. The service + /// may return fewer than this value. If unspecified, at most 100 + /// Featurestores will be returned. The maximum value is 100; any value + /// greater than 100 will be coerced to 100. + /// + /// [pageToken] - A page token, received from a previous + /// FeaturestoreService.ListFeaturestores call. Provide this to retrieve the + /// subsequent page. When paginating, all other parameters provided to + /// FeaturestoreService.ListFeaturestores must match the call that provided + /// the page token. + /// + /// [readMask] - Mask specifying which fields to read. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleCloudAiplatformV1ListFeaturestoresResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future importFeatureValues( - GoogleCloudAiplatformV1ImportFeatureValuesRequest request, - core.String entityType, { + async.Future list( + core.String parent, { + core.String? filter, + core.String? orderBy, + core.int? pageSize, + core.String? pageToken, + core.String? readMask, core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if (readMask != null) 'readMask': [readMask], if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + core.Uri.encodeFull('$entityType') + ':importFeatureValues'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/featurestores'; final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'GET', queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleCloudAiplatformV1ListFeaturestoresResponse.fromJson( response_ as core.Map, ); } - /// Lists EntityTypes in a given Featurestore. + /// Updates the parameters of a single Featurestore. + /// + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the Featurestore to list - /// EntityTypes. Format: + /// [name] - Output only. Name of the Featurestore. Format: /// `projects/{project}/locations/{location}/featurestores/{featurestore}` /// Value must have pattern /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. /// - /// [filter] - Lists the EntityTypes that match the filter expression. The - /// following filters are supported: * `create_time`: Supports `=`, `!=`, `<`, - /// `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 format. * - /// `update_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. - /// Values must be in RFC 3339 format. * `labels`: Supports key-value equality - /// as well as key presence. Examples: * `create_time > - /// \"2020-01-31T15:30:00.000000Z\" OR update_time > - /// \"2020-01-31T15:30:00.000000Z\"` --\> EntityTypes created or updated after - /// 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` - /// --\> EntityTypes having both (active: yes) and (env: prod) labels. * - /// `labels.env: *` --\> Any EntityType which has a label with 'env' as the - /// key. - /// - /// [orderBy] - A comma-separated list of fields to order by, sorted in - /// ascending order. Use "desc" after a field name for descending. Supported - /// fields: * `entity_type_id` * `create_time` * `update_time` - /// - /// [pageSize] - The maximum number of EntityTypes to return. The service may - /// return fewer than this value. If unspecified, at most 1000 EntityTypes - /// will be returned. The maximum value is 1000; any value greater than 1000 - /// will be coerced to 1000. - /// - /// [pageToken] - A page token, received from a previous - /// FeaturestoreService.ListEntityTypes call. Provide this to retrieve the - /// subsequent page. When paginating, all other parameters provided to - /// FeaturestoreService.ListEntityTypes must match the call that provided the - /// page token. - /// - /// [readMask] - Mask specifying which fields to read. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [GoogleCloudAiplatformV1ListEntityTypesResponse]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future list( - core.String parent, { - core.String? filter, - core.String? orderBy, - core.int? pageSize, - core.String? pageToken, - core.String? readMask, - core.String? $fields, - }) async { - final queryParams_ = >{ - if (filter != null) 'filter': [filter], - if (orderBy != null) 'orderBy': [orderBy], - if (pageSize != null) 'pageSize': ['${pageSize}'], - if (pageToken != null) 'pageToken': [pageToken], - if (readMask != null) 'readMask': [readMask], - if ($fields != null) 'fields': [$fields], - }; - - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/entityTypes'; - - final response_ = await _requester.request( - url_, - 'GET', - queryParams: queryParams_, - ); - return GoogleCloudAiplatformV1ListEntityTypesResponse.fromJson( - response_ as core.Map, - ); - } - - /// Updates the parameters of a single EntityType. - /// - /// [request] - The metadata request object. - /// - /// Request parameters: - /// - /// [name] - Immutable. Name of the EntityType. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// The last part entity_type is assigned by the client. The entity_type can - /// be up to 64 characters long and can consist only of ASCII Latin letters - /// A-Z and a-z and underscore(_), and ASCII digits 0-9 starting with a - /// letter. The value will be unique given a featurestore. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. - /// /// [updateMask] - Field mask is used to specify the fields to be overwritten - /// in the EntityType resource by the update. The fields specified in the + /// in the Featurestore resource by the update. The fields specified in the /// update_mask are relative to the resource, not the full request. A field /// will be overwritten if it is in the mask. If the user does not provide a /// mask then only the non-empty fields present in the request will be /// overwritten. Set the update_mask to `*` to override all fields. Updatable - /// fields: * `description` * `labels` * - /// `monitoring_config.snapshot_analysis.disabled` * - /// `monitoring_config.snapshot_analysis.monitoring_interval_days` * - /// `monitoring_config.snapshot_analysis.staleness_days` * - /// `monitoring_config.import_features_analysis.state` * - /// `monitoring_config.import_features_analysis.anomaly_detection_baseline` * - /// `monitoring_config.numerical_threshold_config.value` * - /// `monitoring_config.categorical_threshold_config.value` * - /// `offline_storage_ttl_days` + /// fields: * `labels` * `online_serving_config.fixed_node_count` * + /// `online_serving_config.scaling` * `online_storage_ttl_days` /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1EntityType]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future patch( - GoogleCloudAiplatformV1EntityType request, + async.Future patch( + GoogleCloudAiplatformV1Featurestore request, core.String name, { core.String? updateMask, core.String? $fields, @@ -11446,59 +11715,100 @@ class ProjectsLocationsFeaturestoresEntityTypesResource { body: body_, queryParams: queryParams_, ); - return GoogleCloudAiplatformV1EntityType.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } - /// Reads Feature values of a specific entity of an EntityType. + /// Searches Features matching a query in a given project. /// - /// For reading feature values of multiple entities of an EntityType, please - /// use StreamingReadFeatureValues. + /// Request parameters: /// - /// [request] - The metadata request object. + /// [location] - Required. The resource name of the Location to search + /// Features. Format: `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// - /// Request parameters: + /// [pageSize] - The maximum number of Features to return. The service may + /// return fewer than this value. If unspecified, at most 100 Features will be + /// returned. The maximum value is 100; any value greater than 100 will be + /// coerced to 100. /// - /// [entityType] - Required. The resource name of the EntityType for the - /// entity being read. Value format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. - /// For example, for a machine learning model predicting user clicks on a - /// website, an EntityType ID could be `user`. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. + /// [pageToken] - A page token, received from a previous + /// FeaturestoreService.SearchFeatures call. Provide this to retrieve the + /// subsequent page. When paginating, all other parameters provided to + /// FeaturestoreService.SearchFeatures, except `page_size`, must match the + /// call that provided the page token. + /// + /// [query] - Query string that is a conjunction of field-restricted queries + /// and/or field-restricted filters. Field-restricted queries and filters can + /// be combined using `AND` to form a conjunction. A field query is in the + /// form FIELD:QUERY. This implicitly checks if QUERY exists as a substring + /// within Feature's FIELD. The QUERY and the FIELD are converted to a + /// sequence of words (i.e. tokens) for comparison. This is done by: * + /// Removing leading/trailing whitespace and tokenizing the search value. + /// Characters that are not one of alphanumeric `[a-zA-Z0-9]`, underscore `_`, + /// or asterisk `*` are treated as delimiters for tokens. `*` is treated as a + /// wildcard that matches characters within a token. * Ignoring case. * + /// Prepending an asterisk to the first and appending an asterisk to the last + /// token in QUERY. A QUERY must be either a singular token or a phrase. A + /// phrase is one or multiple words enclosed in double quotation marks ("). + /// With phrases, the order of the words is important. Words in the phrase + /// must be matching in order and consecutively. Supported FIELDs for + /// field-restricted queries: * `feature_id` * `description` * + /// `entity_type_id` Examples: * `feature_id: foo` --\> Matches a Feature with + /// ID containing the substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * + /// `feature_id: foo*feature` --\> Matches a Feature with ID containing the + /// substring `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND + /// description: bar` --\> Matches a Feature with ID containing the substring + /// `foo` and description containing the substring `bar`. Besides field + /// queries, the following exact-match filters are supported. The exact-match + /// filters do not support wildcards. Unlike field-restricted queries, + /// exact-match filters are case-sensitive. * `feature_id`: Supports = + /// comparisons. * `description`: Supports = comparisons. Multi-token filters + /// should be enclosed in quotes. * `entity_type_id`: Supports = comparisons. + /// * `value_type`: Supports = and != comparisons. * `labels`: Supports + /// key-value equality as well as key presence. * `featurestore_id`: Supports + /// = comparisons. Examples: * `description = "foo bar"` --\> Any Feature with + /// description exactly equal to `foo bar` * `value_type = DOUBLE` --\> + /// Features whose type is DOUBLE. * `labels.active = yes AND labels.env = + /// prod` --\> Features having both (active: yes) and (env: prod) labels. * + /// `labels.env: *` --\> Any Feature which has a label with `env` as the key. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1ReadFeatureValuesResponse]. + /// Completes with a [GoogleCloudAiplatformV1SearchFeaturesResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future - readFeatureValues( - GoogleCloudAiplatformV1ReadFeatureValuesRequest request, - core.String entityType, { + async.Future searchFeatures( + core.String location, { + core.int? pageSize, + core.String? pageToken, + core.String? query, core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if (query != null) 'query': [query], if ($fields != null) 'fields': [$fields], }; final url_ = - 'v1/' + core.Uri.encodeFull('$entityType') + ':readFeatureValues'; + 'v1/' + + core.Uri.encodeFull('$location') + + '/featurestores:searchFeatures'; final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'GET', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1ReadFeatureValuesResponse.fromJson( + return GoogleCloudAiplatformV1SearchFeaturesResponse.fromJson( response_ as core.Map, ); } @@ -11517,7 +11827,7 @@ class ProjectsLocationsFeaturestoresEntityTypesResource { /// [Resource names](https://cloud.google.com/apis/design/resource_names) for /// the appropriate value for this field. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -11552,60 +11862,6 @@ class ProjectsLocationsFeaturestoresEntityTypesResource { ); } - /// Reads Feature values for multiple entities. - /// - /// Depending on their size, data for different entities may be broken up - /// across multiple responses. - /// - /// [request] - The metadata request object. - /// - /// Request parameters: - /// - /// [entityType] - Required. The resource name of the entities' type. Value - /// format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. - /// For example, for a machine learning model predicting user clicks on a - /// website, an EntityType ID could be `user`. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [GoogleCloudAiplatformV1ReadFeatureValuesResponse]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future - streamingReadFeatureValues( - GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest request, - core.String entityType, { - core.String? $fields, - }) async { - final body_ = convert.json.encode(request); - final queryParams_ = >{ - if ($fields != null) 'fields': [$fields], - }; - - final url_ = - 'v1/' + - core.Uri.encodeFull('$entityType') + - ':streamingReadFeatureValues'; - - final response_ = await _requester.request( - url_, - 'POST', - body: body_, - queryParams: queryParams_, - ); - return GoogleCloudAiplatformV1ReadFeatureValuesResponse.fromJson( - response_ as core.Map, - ); - } - /// Returns permissions that a caller has on the specified resource. /// /// If the resource does not exist, this will return an empty set of @@ -11620,7 +11876,7 @@ class ProjectsLocationsFeaturestoresEntityTypesResource { /// [Resource names](https://cloud.google.com/apis/design/resource_names) for /// the appropriate value for this field. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. /// /// [permissions] - The set of permissions to check for the `resource`. /// Permissions with wildcards (such as `*` or `storage.*`) are not allowed. @@ -11659,49 +11915,60 @@ class ProjectsLocationsFeaturestoresEntityTypesResource { response_ as core.Map, ); } +} - /// Writes Feature values of one or more entities of an EntityType. - /// - /// The Feature values are merged into existing entities if any. The Feature - /// values to be written must have timestamp within the online storage - /// retention. +class ProjectsLocationsFeaturestoresEntityTypesResource { + final commons.ApiRequester _requester; + + ProjectsLocationsFeaturestoresEntityTypesFeaturesResource get features => + ProjectsLocationsFeaturestoresEntityTypesFeaturesResource(_requester); + ProjectsLocationsFeaturestoresEntityTypesOperationsResource get operations => + ProjectsLocationsFeaturestoresEntityTypesOperationsResource(_requester); + + ProjectsLocationsFeaturestoresEntityTypesResource(commons.ApiRequester client) + : _requester = client; + + /// Creates a new EntityType in a given Featurestore. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [entityType] - Required. The resource name of the EntityType for the - /// entities being written. Value format: - /// `projects/{project}/locations/{location}/featurestores/ - /// {featurestore}/entityTypes/{entityType}`. For example, for a machine - /// learning model predicting user clicks on a website, an EntityType ID could - /// be `user`. + /// [parent] - Required. The resource name of the Featurestore to create + /// EntityTypes. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. + /// + /// [entityTypeId] - Required. The ID to use for the EntityType, which will + /// become the final component of the EntityType's resource name. This value + /// may be up to 60 characters, and valid characters are `[a-z0-9_]`. The + /// first character cannot be a number. The value must be unique within a + /// featurestore. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1WriteFeatureValuesResponse]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future - writeFeatureValues( - GoogleCloudAiplatformV1WriteFeatureValuesRequest request, - core.String entityType, { + async.Future create( + GoogleCloudAiplatformV1EntityType request, + core.String parent, { + core.String? entityTypeId, core.String? $fields, }) async { final body_ = convert.json.encode(request); final queryParams_ = >{ + if (entityTypeId != null) 'entityTypeId': [entityTypeId], if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + core.Uri.encodeFull('$entityType') + ':writeFeatureValues'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/entityTypes'; final response_ = await _requester.request( url_, @@ -11709,38 +11976,27 @@ class ProjectsLocationsFeaturestoresEntityTypesResource { body: body_, queryParams: queryParams_, ); - return GoogleCloudAiplatformV1WriteFeatureValuesResponse.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } -} - -class ProjectsLocationsFeaturestoresEntityTypesFeaturesResource { - final commons.ApiRequester _requester; - - ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsResource - get operations => - ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsResource( - _requester, - ); - - ProjectsLocationsFeaturestoresEntityTypesFeaturesResource( - commons.ApiRequester client, - ) : _requester = client; - /// Creates a batch of Features in a given EntityType. + /// Deletes a single EntityType. /// - /// [request] - The metadata request object. + /// The EntityType must not have any Features or `force` must be set to true + /// for the request to succeed. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the EntityType/FeatureGroup to - /// create the batch of Features under. Format: + /// [name] - Required. The name of the EntityType to be deleted. Format: /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` /// Value must have pattern /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. /// + /// [force] - If set to true, any Features for this EntityType will also be + /// deleted. (Otherwise, the request will only work if the EntityType has no + /// Features.) + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -11751,23 +12007,21 @@ class ProjectsLocationsFeaturestoresEntityTypesFeaturesResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future batchCreate( - GoogleCloudAiplatformV1BatchCreateFeaturesRequest request, - core.String parent, { + async.Future delete( + core.String name, { + core.bool? force, core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ + if (force != null) 'force': ['${force}'], if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + core.Uri.encodeFull('$parent') + '/features:batchCreate'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'DELETE', queryParams: queryParams_, ); return GoogleLongrunningOperation.fromJson( @@ -11775,26 +12029,26 @@ class ProjectsLocationsFeaturestoresEntityTypesFeaturesResource { ); } - /// Creates a new Feature in a given EntityType. + /// Delete Feature values from Featurestore. + /// + /// The progress of the deletion is tracked by the returned operation. The + /// deleted feature values are guaranteed to be invisible to subsequent read + /// operations after the operation is marked as successfully done. If a delete + /// feature values operation fails, the feature values returned from reads and + /// exports may be inconsistent. If consistency is required, the caller must + /// retry the same delete request again and wait till the new operation + /// returned is marked as successfully done. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the EntityType or FeatureGroup - /// to create a Feature. Format for entity_type as parent: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// Format for feature_group as parent: - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /// [entityType] - Required. The resource name of the EntityType grouping the + /// Features for which values are being deleted from. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` /// Value must have pattern /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. /// - /// [featureId] - Required. The ID to use for the Feature, which will become - /// the final component of the Feature's resource name. This value may be up - /// to 128 characters, and valid characters are `[a-z0-9_]`. The first - /// character cannot be a number. The value must be unique within an - /// EntityType/FeatureGroup. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -11805,19 +12059,18 @@ class ProjectsLocationsFeaturestoresEntityTypesFeaturesResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future create( - GoogleCloudAiplatformV1Feature request, - core.String parent, { - core.String? featureId, + async.Future deleteFeatureValues( + GoogleCloudAiplatformV1DeleteFeatureValuesRequest request, + core.String entityType, { core.String? $fields, }) async { final body_ = convert.json.encode(request); final queryParams_ = >{ - if (featureId != null) 'featureId': [featureId], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/features'; + final url_ = + 'v1/' + core.Uri.encodeFull('$entityType') + ':deleteFeatureValues'; final response_ = await _requester.request( url_, @@ -11830,15 +12083,17 @@ class ProjectsLocationsFeaturestoresEntityTypesFeaturesResource { ); } - /// Deletes a single Feature. + /// Exports Feature values from all the entities of a target EntityType. + /// + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - Required. The name of the Features to be deleted. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + /// [entityType] - Required. The resource name of the EntityType from which to + /// export Feature values. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -11850,19 +12105,23 @@ class ProjectsLocationsFeaturestoresEntityTypesFeaturesResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete( - core.String name, { + async.Future exportFeatureValues( + GoogleCloudAiplatformV1ExportFeatureValuesRequest request, + core.String entityType, { core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = + 'v1/' + core.Uri.encodeFull('$entityType') + ':exportFeatureValues'; final response_ = await _requester.request( url_, - 'DELETE', + 'POST', + body: body_, queryParams: queryParams_, ); return GoogleLongrunningOperation.fromJson( @@ -11870,29 +12129,26 @@ class ProjectsLocationsFeaturestoresEntityTypesFeaturesResource { ); } - /// Gets details of a single Feature. + /// Gets details of a single EntityType. /// /// Request parameters: /// - /// [name] - Required. The name of the Feature resource. Format for - /// entity_type as parent: + /// [name] - Required. The name of the EntityType resource. Format: /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// Format for feature_group as parent: - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1Feature]. + /// Completes with a [GoogleCloudAiplatformV1EntityType]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( + async.Future get( core.String name, { core.String? $fields, }) async { @@ -11907,246 +12163,260 @@ class ProjectsLocationsFeaturestoresEntityTypesFeaturesResource { 'GET', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1Feature.fromJson( + return GoogleCloudAiplatformV1EntityType.fromJson( response_ as core.Map, ); } - /// Lists Features in a given EntityType. + /// Gets the access control policy for a resource. + /// + /// Returns an empty policy if the resource exists and does not have a policy + /// set. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the Location to list Features. - /// Format for entity_type as parent: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// Format for feature_group as parent: - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /// [resource] - 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. /// Value must have pattern /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. /// - /// [filter] - Lists the Features that match the filter expression. The - /// following filters are supported: * `value_type`: Supports = and != - /// comparisons. * `create_time`: Supports =, !=, \<, \>, \>=, and \<= - /// comparisons. Values must be in RFC 3339 format. * `update_time`: Supports - /// =, !=, \<, \>, \>=, and \<= comparisons. Values must be in RFC 3339 - /// format. * `labels`: Supports key-value equality as well as key presence. - /// Examples: * `value_type = DOUBLE` --\> Features whose type is DOUBLE. * - /// `create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > - /// \"2020-01-31T15:30:00.000000Z\"` --\> EntityTypes created or updated after - /// 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` - /// --\> Features having both (active: yes) and (env: prod) labels. * - /// `labels.env: *` --\> Any Feature which has a label with 'env' as the key. - /// - /// [latestStatsCount] - Only applicable for Vertex AI Feature Store (Legacy). - /// If set, return the most recent ListFeaturesRequest.latest_stats_count of - /// stats for each Feature in response. Valid value is \[0, 10\]. If number of - /// stats exists \< ListFeaturesRequest.latest_stats_count, return all - /// existing stats. - /// - /// [orderBy] - A comma-separated list of fields to order by, sorted in - /// ascending order. Use "desc" after a field name for descending. Supported - /// fields: * `feature_id` * `value_type` (Not supported for FeatureRegistry - /// Feature) * `create_time` * `update_time` - /// - /// [pageSize] - The maximum number of Features to return. The service may - /// return fewer than this value. If unspecified, at most 1000 Features will - /// be returned. The maximum value is 1000; any value greater than 1000 will - /// be coerced to 1000. - /// - /// [pageToken] - A page token, received from a previous - /// FeaturestoreService.ListFeatures call or - /// FeatureRegistryService.ListFeatures call. Provide this to retrieve the - /// subsequent page. When paginating, all other parameters provided to - /// FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures - /// must match the call that provided the page token. - /// - /// [readMask] - Mask specifying which fields to read. + /// [options_requestedPolicyVersion] - Optional. The maximum policy version + /// that will be used to format the policy. Valid values are 0, 1, and 3. + /// Requests specifying an invalid value will be rejected. Requests for + /// policies with any conditional role bindings must specify version 3. + /// Policies with no conditional role bindings may specify any valid value or + /// leave the field unset. The policy in the response might use the policy + /// version that you specified, or it might use a lower policy version. For + /// example, if you specify version 3, but the policy has no conditional role + /// bindings, the response uses version 1. To learn which resources support + /// conditions in their IAM policies, see the + /// [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1ListFeaturesResponse]. + /// Completes with a [GoogleIamV1Policy]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( - core.String parent, { - core.String? filter, - core.int? latestStatsCount, - core.String? orderBy, - core.int? pageSize, - core.String? pageToken, - core.String? readMask, + async.Future getIamPolicy( + core.String resource, { + core.int? options_requestedPolicyVersion, core.String? $fields, }) async { final queryParams_ = >{ - if (filter != null) 'filter': [filter], - if (latestStatsCount != null) 'latestStatsCount': ['${latestStatsCount}'], - if (orderBy != null) 'orderBy': [orderBy], - if (pageSize != null) 'pageSize': ['${pageSize}'], - if (pageToken != null) 'pageToken': [pageToken], - if (readMask != null) 'readMask': [readMask], + if (options_requestedPolicyVersion != null) + 'options.requestedPolicyVersion': ['${options_requestedPolicyVersion}'], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/features'; + final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':getIamPolicy'; final response_ = await _requester.request( url_, - 'GET', + 'POST', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1ListFeaturesResponse.fromJson( + return GoogleIamV1Policy.fromJson( response_ as core.Map, ); } - /// Updates the parameters of a single Feature. - /// - /// [request] - The metadata request object. - /// - /// Request parameters: + /// Imports Feature values into the Featurestore from a source storage. /// - /// [name] - Immutable. Name of the Feature. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` - /// The last part feature is assigned by the client. The feature can be up to - /// 64 characters long and can consist only of ASCII Latin letters A-Z and - /// a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value - /// will be unique given an entity type. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+$`. + /// The progress of the import is tracked by the returned operation. The + /// imported features are guaranteed to be visible to subsequent read + /// operations after the operation is marked as successfully done. If an + /// import operation fails, the Feature values returned from reads and exports + /// may be inconsistent. If consistency is required, the caller must retry the + /// same import request again and wait till the new operation returned is + /// marked as successfully done. There are also scenarios where the caller can + /// cause inconsistency. - Source data for import contains multiple distinct + /// Feature values for the same entity ID and timestamp. - Source is modified + /// during an import. This includes adding, updating, or removing source data + /// and/or metadata. Examples of updating metadata include but are not limited + /// to changing storage location, storage class, or retention policy. - Online + /// serving cluster is under-provisioned. /// - /// [updateMask] - Field mask is used to specify the fields to be overwritten - /// in the Features resource by the update. The fields specified in the - /// update_mask are relative to the resource, not the full request. A field - /// will be overwritten if it is in the mask. If the user does not provide a - /// mask then only the non-empty fields present in the request will be - /// overwritten. Set the update_mask to `*` to override all fields. Updatable - /// fields: * `description` * `labels` * `disable_monitoring` (Not supported - /// for FeatureRegistryService Feature) * `point_of_contact` (Not supported - /// for FeaturestoreService FeatureStore) + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [entityType] - Required. The resource name of the EntityType grouping the + /// Features for which values are being imported. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1Feature]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future patch( - GoogleCloudAiplatformV1Feature request, - core.String name, { - core.String? updateMask, + async.Future importFeatureValues( + GoogleCloudAiplatformV1ImportFeatureValuesRequest request, + core.String entityType, { core.String? $fields, }) async { final body_ = convert.json.encode(request); final queryParams_ = >{ - if (updateMask != null) 'updateMask': [updateMask], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = + 'v1/' + core.Uri.encodeFull('$entityType') + ':importFeatureValues'; final response_ = await _requester.request( url_, - 'PATCH', + 'POST', body: body_, queryParams: queryParams_, ); - return GoogleCloudAiplatformV1Feature.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } -} - -class ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsResource { - final commons.ApiRequester _requester; - ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsResource( - commons.ApiRequester client, - ) : _requester = client; - - /// Starts asynchronous cancellation on a long-running operation. - /// - /// The server makes a best effort to cancel the operation, but success is not - /// guaranteed. If the server doesn't support this method, it returns - /// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation - /// or other methods to check whether the cancellation succeeded or whether - /// the operation completed despite cancellation. On successful cancellation, - /// the operation is not deleted; instead, it becomes an operation with an - /// Operation.error value with a google.rpc.Status.code of `1`, corresponding - /// to `Code.CANCELLED`. + /// Lists EntityTypes in a given Featurestore. /// /// Request parameters: /// - /// [name] - The name of the operation resource to be cancelled. + /// [parent] - Required. The resource name of the Featurestore to list + /// EntityTypes. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. + /// + /// [filter] - Lists the EntityTypes that match the filter expression. The + /// following filters are supported: * `create_time`: Supports `=`, `!=`, `<`, + /// `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 format. * + /// `update_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. + /// Values must be in RFC 3339 format. * `labels`: Supports key-value equality + /// as well as key presence. Examples: * `create_time > + /// \"2020-01-31T15:30:00.000000Z\" OR update_time > + /// \"2020-01-31T15:30:00.000000Z\"` --\> EntityTypes created or updated after + /// 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` + /// --\> EntityTypes having both (active: yes) and (env: prod) labels. * + /// `labels.env: *` --\> Any EntityType which has a label with 'env' as the + /// key. + /// + /// [orderBy] - A comma-separated list of fields to order by, sorted in + /// ascending order. Use "desc" after a field name for descending. Supported + /// fields: * `entity_type_id` * `create_time` * `update_time` + /// + /// [pageSize] - The maximum number of EntityTypes to return. The service may + /// return fewer than this value. If unspecified, at most 1000 EntityTypes + /// will be returned. The maximum value is 1000; any value greater than 1000 + /// will be coerced to 1000. + /// + /// [pageToken] - A page token, received from a previous + /// FeaturestoreService.ListEntityTypes call. Provide this to retrieve the + /// subsequent page. When paginating, all other parameters provided to + /// FeaturestoreService.ListEntityTypes must match the call that provided the + /// page token. + /// + /// [readMask] - Mask specifying which fields to read. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleProtobufEmpty]. + /// Completes with a [GoogleCloudAiplatformV1ListEntityTypesResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future cancel( - core.String name, { + async.Future list( + core.String parent, { + core.String? filter, + core.String? orderBy, + core.int? pageSize, + core.String? pageToken, + core.String? readMask, core.String? $fields, }) async { final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if (readMask != null) 'readMask': [readMask], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':cancel'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/entityTypes'; final response_ = await _requester.request( url_, - 'POST', + 'GET', queryParams: queryParams_, ); - return GoogleProtobufEmpty.fromJson( + return GoogleCloudAiplatformV1ListEntityTypesResponse.fromJson( response_ as core.Map, ); } - /// Deletes a long-running operation. + /// Updates the parameters of a single EntityType. /// - /// This method indicates that the client is no longer interested in the - /// operation result. It does not cancel the operation. If the server doesn't - /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation resource to be deleted. + /// [name] - Immutable. Name of the EntityType. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// The last part entity_type is assigned by the client. The entity_type can + /// be up to 64 characters long and can consist only of ASCII Latin letters + /// A-Z and a-z and underscore(_), and ASCII digits 0-9 starting with a + /// letter. The value will be unique given a featurestore. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. + /// + /// [updateMask] - Field mask is used to specify the fields to be overwritten + /// in the EntityType resource by the update. The fields specified in the + /// update_mask are relative to the resource, not the full request. A field + /// will be overwritten if it is in the mask. If the user does not provide a + /// mask then only the non-empty fields present in the request will be + /// overwritten. Set the update_mask to `*` to override all fields. Updatable + /// fields: * `description` * `labels` * + /// `monitoring_config.snapshot_analysis.disabled` * + /// `monitoring_config.snapshot_analysis.monitoring_interval_days` * + /// `monitoring_config.snapshot_analysis.staleness_days` * + /// `monitoring_config.import_features_analysis.state` * + /// `monitoring_config.import_features_analysis.anomaly_detection_baseline` * + /// `monitoring_config.numerical_threshold_config.value` * + /// `monitoring_config.categorical_threshold_config.value` * + /// `offline_storage_ttl_days` /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleProtobufEmpty]. + /// Completes with a [GoogleCloudAiplatformV1EntityType]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete( + async.Future patch( + GoogleCloudAiplatformV1EntityType request, core.String name, { + core.String? updateMask, core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ + if (updateMask != null) 'updateMask': [updateMask], if ($fields != null) 'fields': [$fields], }; @@ -12154,268 +12424,304 @@ class ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsResource { final response_ = await _requester.request( url_, - 'DELETE', + 'PATCH', + body: body_, queryParams: queryParams_, ); - return GoogleProtobufEmpty.fromJson( + return GoogleCloudAiplatformV1EntityType.fromJson( response_ as core.Map, ); } - /// Gets the latest state of a long-running operation. + /// Reads Feature values of a specific entity of an EntityType. /// - /// Clients can use this method to poll the operation result at intervals as - /// recommended by the API service. + /// For reading feature values of multiple entities of an EntityType, please + /// use StreamingReadFeatureValues. + /// + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation resource. + /// [entityType] - Required. The resource name of the EntityType for the + /// entity being read. Value format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. + /// For example, for a machine learning model predicting user clicks on a + /// website, an EntityType ID could be `user`. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleCloudAiplatformV1ReadFeatureValuesResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( - core.String name, { + async.Future + readFeatureValues( + GoogleCloudAiplatformV1ReadFeatureValuesRequest request, + core.String entityType, { core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = + 'v1/' + core.Uri.encodeFull('$entityType') + ':readFeatureValues'; final response_ = await _requester.request( url_, - 'GET', + 'POST', + body: body_, queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleCloudAiplatformV1ReadFeatureValuesResponse.fromJson( response_ as core.Map, ); } - /// Lists operations that match the specified filter in the request. + /// Sets the access control policy on the specified resource. /// - /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. + /// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, + /// and `PERMISSION_DENIED` errors. + /// + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation's parent resource. + /// [resource] - 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. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+$`. - /// - /// [filter] - The standard list filter. - /// - /// [pageSize] - The standard list page size. - /// - /// [pageToken] - The standard list page token. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningListOperationsResponse]. + /// Completes with a [GoogleIamV1Policy]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( - core.String name, { - core.String? filter, - core.int? pageSize, - core.String? pageToken, + async.Future setIamPolicy( + GoogleIamV1SetIamPolicyRequest request, + core.String resource, { core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ - if (filter != null) 'filter': [filter], - if (pageSize != null) 'pageSize': ['${pageSize}'], - if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + '/operations'; + final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':setIamPolicy'; final response_ = await _requester.request( url_, - 'GET', + 'POST', + body: body_, queryParams: queryParams_, ); - return GoogleLongrunningListOperationsResponse.fromJson( + return GoogleIamV1Policy.fromJson( response_ as core.Map, ); } - /// Waits until the specified long-running operation is done or reaches at - /// most a specified timeout, returning the latest state. + /// Reads Feature values for multiple entities. /// - /// If the operation is already done, the latest state is immediately - /// returned. If the timeout specified is greater than the default HTTP/RPC - /// timeout, the HTTP/RPC timeout is used. If the server does not support this - /// method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method - /// is on a best-effort basis. It may return the latest state before the - /// specified timeout (including immediately), meaning even an immediate - /// response is no guarantee that the operation is done. + /// Depending on their size, data for different entities may be broken up + /// across multiple responses. + /// + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation resource to wait on. + /// [entityType] - Required. The resource name of the entities' type. Value + /// format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. + /// For example, for a machine learning model predicting user clicks on a + /// website, an EntityType ID could be `user`. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. - /// - /// [timeout] - The maximum duration to wait before timing out. If left blank, - /// the wait will be at most the time permitted by the underlying HTTP/RPC - /// protocol. If RPC context deadline is also specified, the shorter one will - /// be used. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleCloudAiplatformV1ReadFeatureValuesResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future wait( - core.String name, { - core.String? timeout, + async.Future + streamingReadFeatureValues( + GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest request, + core.String entityType, { core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ - if (timeout != null) 'timeout': [timeout], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; + final url_ = + 'v1/' + + core.Uri.encodeFull('$entityType') + + ':streamingReadFeatureValues'; final response_ = await _requester.request( url_, 'POST', + body: body_, queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleCloudAiplatformV1ReadFeatureValuesResponse.fromJson( response_ as core.Map, ); } -} - -class ProjectsLocationsFeaturestoresEntityTypesOperationsResource { - final commons.ApiRequester _requester; - - ProjectsLocationsFeaturestoresEntityTypesOperationsResource( - commons.ApiRequester client, - ) : _requester = client; - /// Starts asynchronous cancellation on a long-running operation. + /// Returns permissions that a caller has on the specified resource. /// - /// The server makes a best effort to cancel the operation, but success is not - /// guaranteed. If the server doesn't support this method, it returns - /// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation - /// or other methods to check whether the cancellation succeeded or whether - /// the operation completed despite cancellation. On successful cancellation, - /// the operation is not deleted; instead, it becomes an operation with an - /// Operation.error value with a google.rpc.Status.code of `1`, corresponding - /// to `Code.CANCELLED`. + /// If the resource does not exist, this will return an empty set of + /// permissions, not a `NOT_FOUND` error. Note: This operation is designed to + /// be used for building permission-aware UIs and command-line tools, not for + /// authorization checking. This operation may "fail open" without warning. /// /// Request parameters: /// - /// [name] - The name of the operation resource to be cancelled. + /// [resource] - 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. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. + /// + /// [permissions] - The set of permissions to check for the `resource`. + /// Permissions with wildcards (such as `*` or `storage.*`) are not allowed. + /// For more information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleProtobufEmpty]. + /// Completes with a [GoogleIamV1TestIamPermissionsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future cancel( - core.String name, { + async.Future testIamPermissions( + core.String resource, { + core.List? permissions, core.String? $fields, }) async { final queryParams_ = >{ + if (permissions != null) 'permissions': permissions, if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':cancel'; + final url_ = + 'v1/' + core.Uri.encodeFull('$resource') + ':testIamPermissions'; final response_ = await _requester.request( url_, 'POST', queryParams: queryParams_, ); - return GoogleProtobufEmpty.fromJson( + return GoogleIamV1TestIamPermissionsResponse.fromJson( response_ as core.Map, ); } - /// Deletes a long-running operation. + /// Writes Feature values of one or more entities of an EntityType. /// - /// This method indicates that the client is no longer interested in the - /// operation result. It does not cancel the operation. If the server doesn't - /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + /// The Feature values are merged into existing entities if any. The Feature + /// values to be written must have timestamp within the online storage + /// retention. + /// + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation resource to be deleted. + /// [entityType] - Required. The resource name of the EntityType for the + /// entities being written. Value format: + /// `projects/{project}/locations/{location}/featurestores/ + /// {featurestore}/entityTypes/{entityType}`. For example, for a machine + /// learning model predicting user clicks on a website, an EntityType ID could + /// be `user`. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleProtobufEmpty]. + /// Completes with a [GoogleCloudAiplatformV1WriteFeatureValuesResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete( - core.String name, { + async.Future + writeFeatureValues( + GoogleCloudAiplatformV1WriteFeatureValuesRequest request, + core.String entityType, { core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = + 'v1/' + core.Uri.encodeFull('$entityType') + ':writeFeatureValues'; final response_ = await _requester.request( url_, - 'DELETE', + 'POST', + body: body_, queryParams: queryParams_, ); - return GoogleProtobufEmpty.fromJson( + return GoogleCloudAiplatformV1WriteFeatureValuesResponse.fromJson( response_ as core.Map, ); } +} - /// Gets the latest state of a long-running operation. +class ProjectsLocationsFeaturestoresEntityTypesFeaturesResource { + final commons.ApiRequester _requester; + + ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsResource + get operations => + ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsResource( + _requester, + ); + + ProjectsLocationsFeaturestoresEntityTypesFeaturesResource( + commons.ApiRequester client, + ) : _requester = client; + + /// Creates a batch of Features in a given EntityType. /// - /// Clients can use this method to poll the operation result at intervals as - /// recommended by the API service. + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation resource. + /// [parent] - Required. The resource name of the EntityType/FeatureGroup to + /// create the batch of Features under. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -12427,19 +12733,23 @@ class ProjectsLocationsFeaturestoresEntityTypesOperationsResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( - core.String name, { + async.Future batchCreate( + GoogleCloudAiplatformV1BatchCreateFeaturesRequest request, + core.String parent, { core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = + 'v1/' + core.Uri.encodeFull('$parent') + '/features:batchCreate'; final response_ = await _requester.request( url_, - 'GET', + 'POST', + body: body_, queryParams: queryParams_, ); return GoogleLongrunningOperation.fromJson( @@ -12447,79 +12757,70 @@ class ProjectsLocationsFeaturestoresEntityTypesOperationsResource { ); } - /// Lists operations that match the specified filter in the request. + /// Creates a new Feature in a given EntityType. /// - /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation's parent resource. + /// [parent] - Required. The resource name of the EntityType or FeatureGroup + /// to create a Feature. Format for entity_type as parent: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// Format for feature_group as parent: + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` /// Value must have pattern /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. /// - /// [filter] - The standard list filter. - /// - /// [pageSize] - The standard list page size. - /// - /// [pageToken] - The standard list page token. + /// [featureId] - Required. The ID to use for the Feature, which will become + /// the final component of the Feature's resource name. This value may be up + /// to 128 characters, and valid characters are `[a-z0-9_]`. The first + /// character cannot be a number. The value must be unique within an + /// EntityType/FeatureGroup. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningListOperationsResponse]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( - core.String name, { - core.String? filter, - core.int? pageSize, - core.String? pageToken, + async.Future create( + GoogleCloudAiplatformV1Feature request, + core.String parent, { + core.String? featureId, core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ - if (filter != null) 'filter': [filter], - if (pageSize != null) 'pageSize': ['${pageSize}'], - if (pageToken != null) 'pageToken': [pageToken], + if (featureId != null) 'featureId': [featureId], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + '/operations'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/features'; final response_ = await _requester.request( url_, - 'GET', + 'POST', + body: body_, queryParams: queryParams_, ); - return GoogleLongrunningListOperationsResponse.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } - /// Waits until the specified long-running operation is done or reaches at - /// most a specified timeout, returning the latest state. - /// - /// If the operation is already done, the latest state is immediately - /// returned. If the timeout specified is greater than the default HTTP/RPC - /// timeout, the HTTP/RPC timeout is used. If the server does not support this - /// method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method - /// is on a best-effort basis. It may return the latest state before the - /// specified timeout (including immediately), meaning even an immediate - /// response is no guarantee that the operation is done. + /// Deletes a single Feature. /// /// Request parameters: /// - /// [name] - The name of the operation resource to wait on. + /// [name] - Required. The name of the Features to be deleted. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/operations/\[^/\]+$`. - /// - /// [timeout] - The maximum duration to wait before timing out. If left blank, - /// the wait will be at most the time permitted by the underlying HTTP/RPC - /// protocol. If RPC context deadline is also specified, the shorter one will - /// be used. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -12531,51 +12832,245 @@ class ProjectsLocationsFeaturestoresEntityTypesOperationsResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future wait( + async.Future delete( core.String name, { - core.String? timeout, core.String? $fields, }) async { final queryParams_ = >{ - if (timeout != null) 'timeout': [timeout], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', + 'DELETE', queryParams: queryParams_, ); return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } -} -class ProjectsLocationsFeaturestoresOperationsResource { - final commons.ApiRequester _requester; - - ProjectsLocationsFeaturestoresOperationsResource(commons.ApiRequester client) - : _requester = client; - - /// Starts asynchronous cancellation on a long-running operation. - /// - /// The server makes a best effort to cancel the operation, but success is not - /// guaranteed. If the server doesn't support this method, it returns - /// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation - /// or other methods to check whether the cancellation succeeded or whether - /// the operation completed despite cancellation. On successful cancellation, - /// the operation is not deleted; instead, it becomes an operation with an - /// Operation.error value with a google.rpc.Status.code of `1`, corresponding - /// to `Code.CANCELLED`. + /// Gets details of a single Feature. /// /// Request parameters: /// - /// [name] - The name of the operation resource to be cancelled. + /// [name] - Required. The name of the Feature resource. Format for + /// entity_type as parent: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// Format for feature_group as parent: + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudAiplatformV1Feature]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return GoogleCloudAiplatformV1Feature.fromJson( + response_ as core.Map, + ); + } + + /// Lists Features in a given EntityType. + /// + /// Request parameters: + /// + /// [parent] - Required. The resource name of the Location to list Features. + /// Format for entity_type as parent: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// Format for feature_group as parent: + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. + /// + /// [filter] - Lists the Features that match the filter expression. The + /// following filters are supported: * `value_type`: Supports = and != + /// comparisons. * `create_time`: Supports =, !=, \<, \>, \>=, and \<= + /// comparisons. Values must be in RFC 3339 format. * `update_time`: Supports + /// =, !=, \<, \>, \>=, and \<= comparisons. Values must be in RFC 3339 + /// format. * `labels`: Supports key-value equality as well as key presence. + /// Examples: * `value_type = DOUBLE` --\> Features whose type is DOUBLE. * + /// `create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > + /// \"2020-01-31T15:30:00.000000Z\"` --\> EntityTypes created or updated after + /// 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` + /// --\> Features having both (active: yes) and (env: prod) labels. * + /// `labels.env: *` --\> Any Feature which has a label with 'env' as the key. + /// + /// [latestStatsCount] - Only applicable for Vertex AI Feature Store (Legacy). + /// If set, return the most recent ListFeaturesRequest.latest_stats_count of + /// stats for each Feature in response. Valid value is \[0, 10\]. If number of + /// stats exists \< ListFeaturesRequest.latest_stats_count, return all + /// existing stats. + /// + /// [orderBy] - A comma-separated list of fields to order by, sorted in + /// ascending order. Use "desc" after a field name for descending. Supported + /// fields: * `feature_id` * `value_type` (Not supported for FeatureRegistry + /// Feature) * `create_time` * `update_time` + /// + /// [pageSize] - The maximum number of Features to return. The service may + /// return fewer than this value. If unspecified, at most 1000 Features will + /// be returned. The maximum value is 1000; any value greater than 1000 will + /// be coerced to 1000. + /// + /// [pageToken] - A page token, received from a previous + /// FeaturestoreService.ListFeatures call or + /// FeatureRegistryService.ListFeatures call. Provide this to retrieve the + /// subsequent page. When paginating, all other parameters provided to + /// FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures + /// must match the call that provided the page token. + /// + /// [readMask] - Mask specifying which fields to read. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudAiplatformV1ListFeaturesResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String parent, { + core.String? filter, + core.int? latestStatsCount, + core.String? orderBy, + core.int? pageSize, + core.String? pageToken, + core.String? readMask, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (latestStatsCount != null) 'latestStatsCount': ['${latestStatsCount}'], + if (orderBy != null) 'orderBy': [orderBy], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if (readMask != null) 'readMask': [readMask], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/features'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return GoogleCloudAiplatformV1ListFeaturesResponse.fromJson( + response_ as core.Map, + ); + } + + /// Updates the parameters of a single Feature. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Immutable. Name of the Feature. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + /// The last part feature is assigned by the client. The feature can be up to + /// 64 characters long and can consist only of ASCII Latin letters A-Z and + /// a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value + /// will be unique given an entity type. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+$`. + /// + /// [updateMask] - Field mask is used to specify the fields to be overwritten + /// in the Features resource by the update. The fields specified in the + /// update_mask are relative to the resource, not the full request. A field + /// will be overwritten if it is in the mask. If the user does not provide a + /// mask then only the non-empty fields present in the request will be + /// overwritten. Set the update_mask to `*` to override all fields. Updatable + /// fields: * `description` * `labels` * `disable_monitoring` (Not supported + /// for FeatureRegistryService Feature) * `point_of_contact` (Not supported + /// for FeaturestoreService FeatureStore) + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudAiplatformV1Feature]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future patch( + GoogleCloudAiplatformV1Feature request, + core.String name, { + core.String? updateMask, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (updateMask != null) 'updateMask': [updateMask], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'PATCH', + body: body_, + queryParams: queryParams_, + ); + return GoogleCloudAiplatformV1Feature.fromJson( + response_ as core.Map, + ); + } +} + +class ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsResource( + commons.ApiRequester client, + ) : _requester = client; + + /// Starts asynchronous cancellation on a long-running operation. + /// + /// The server makes a best effort to cancel the operation, but success is not + /// guaranteed. If the server doesn't support this method, it returns + /// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation + /// or other methods to check whether the cancellation succeeded or whether + /// the operation completed despite cancellation. On successful cancellation, + /// the operation is not deleted; instead, it becomes an operation with an + /// Operation.error value with a google.rpc.Status.code of `1`, corresponding + /// to `Code.CANCELLED`. + /// + /// Request parameters: + /// + /// [name] - The name of the operation resource to be cancelled. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -12617,7 +13112,7 @@ class ProjectsLocationsFeaturestoresOperationsResource { /// /// [name] - The name of the operation resource to be deleted. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -12658,7 +13153,7 @@ class ProjectsLocationsFeaturestoresOperationsResource { /// /// [name] - The name of the operation resource. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -12698,7 +13193,7 @@ class ProjectsLocationsFeaturestoresOperationsResource { /// /// [name] - The name of the operation's parent resource. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+$`. /// /// [filter] - The standard list filter. /// @@ -12757,7 +13252,7 @@ class ProjectsLocationsFeaturestoresOperationsResource { /// /// [name] - The name of the operation resource to wait on. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/features/\[^/\]+/operations/\[^/\]+$`. /// /// [timeout] - The maximum duration to wait before timing out. If left blank, /// the wait will be at most the time permitted by the underlying HTTP/RPC @@ -12797,36 +13292,29 @@ class ProjectsLocationsFeaturestoresOperationsResource { } } -class ProjectsLocationsHyperparameterTuningJobsResource { +class ProjectsLocationsFeaturestoresEntityTypesOperationsResource { final commons.ApiRequester _requester; - ProjectsLocationsHyperparameterTuningJobsOperationsResource get operations => - ProjectsLocationsHyperparameterTuningJobsOperationsResource(_requester); - - ProjectsLocationsHyperparameterTuningJobsResource(commons.ApiRequester client) - : _requester = client; + ProjectsLocationsFeaturestoresEntityTypesOperationsResource( + commons.ApiRequester client, + ) : _requester = client; - /// Cancels a HyperparameterTuningJob. - /// - /// Starts asynchronous cancellation on the HyperparameterTuningJob. The - /// server makes a best effort to cancel the job, but success is not - /// guaranteed. Clients can use JobService.GetHyperparameterTuningJob or other - /// methods to check whether the cancellation succeeded or whether the job - /// completed despite cancellation. On successful cancellation, the - /// HyperparameterTuningJob is not deleted; instead it becomes a job with a - /// HyperparameterTuningJob.error value with a google.rpc.Status.code of 1, - /// corresponding to `Code.CANCELLED`, and HyperparameterTuningJob.state is - /// set to `CANCELLED`. + /// Starts asynchronous cancellation on a long-running operation. /// - /// [request] - The metadata request object. + /// The server makes a best effort to cancel the operation, but success is not + /// guaranteed. If the server doesn't support this method, it returns + /// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation + /// or other methods to check whether the cancellation succeeded or whether + /// the operation completed despite cancellation. On successful cancellation, + /// the operation is not deleted; instead, it becomes an operation with an + /// Operation.error value with a google.rpc.Status.code of `1`, corresponding + /// to `Code.CANCELLED`. /// /// Request parameters: /// - /// [name] - Required. The name of the HyperparameterTuningJob to cancel. - /// Format: - /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + /// [name] - The name of the operation resource to be cancelled. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -12839,11 +13327,9 @@ class ProjectsLocationsHyperparameterTuningJobsResource { /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future cancel( - GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest request, core.String name, { core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; @@ -12853,7 +13339,6 @@ class ProjectsLocationsHyperparameterTuningJobsResource { final response_ = await _requester.request( url_, 'POST', - body: body_, queryParams: queryParams_, ); return GoogleProtobufEmpty.fromJson( @@ -12861,60 +13346,58 @@ class ProjectsLocationsHyperparameterTuningJobsResource { ); } - /// Creates a HyperparameterTuningJob + /// Deletes a long-running operation. /// - /// [request] - The metadata request object. + /// This method indicates that the client is no longer interested in the + /// operation result. It does not cancel the operation. If the server doesn't + /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the Location to create the - /// HyperparameterTuningJob in. Format: - /// `projects/{project}/locations/{location}` - /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// [name] - The name of the operation resource to be deleted. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1HyperparameterTuningJob]. + /// Completes with a [GoogleProtobufEmpty]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future create( - GoogleCloudAiplatformV1HyperparameterTuningJob request, - core.String parent, { + async.Future delete( + core.String name, { core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + core.Uri.encodeFull('$parent') + '/hyperparameterTuningJobs'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'DELETE', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1HyperparameterTuningJob.fromJson( + return GoogleProtobufEmpty.fromJson( response_ as core.Map, ); } - /// Deletes a HyperparameterTuningJob. + /// Gets the latest state of a long-running operation. + /// + /// Clients can use this method to poll the operation result at intervals as + /// recommended by the API service. /// /// Request parameters: /// - /// [name] - Required. The name of the HyperparameterTuningJob resource to be - /// deleted. Format: - /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + /// [name] - The name of the operation resource. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -12926,7 +13409,7 @@ class ProjectsLocationsHyperparameterTuningJobsResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete( + async.Future get( core.String name, { core.String? $fields, }) async { @@ -12938,7 +13421,7 @@ class ProjectsLocationsHyperparameterTuningJobsResource { final response_ = await _requester.request( url_, - 'DELETE', + 'GET', queryParams: queryParams_, ); return GoogleLongrunningOperation.fromJson( @@ -12946,123 +13429,118 @@ class ProjectsLocationsHyperparameterTuningJobsResource { ); } - /// Gets a HyperparameterTuningJob + /// Lists operations that match the specified filter in the request. + /// + /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. /// /// Request parameters: /// - /// [name] - Required. The name of the HyperparameterTuningJob resource. - /// Format: - /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + /// [name] - The name of the operation's parent resource. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+$`. + /// + /// [filter] - The standard list filter. + /// + /// [pageSize] - The standard list page size. + /// + /// [pageToken] - The standard list page token. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudAiplatformV1HyperparameterTuningJob]. + /// Completes with a [GoogleLongrunningListOperationsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( + async.Future list( core.String name, { + core.String? filter, + core.int? pageSize, + core.String? pageToken, core.String? $fields, }) async { final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = 'v1/' + core.Uri.encodeFull('$name') + '/operations'; final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1HyperparameterTuningJob.fromJson( + return GoogleLongrunningListOperationsResponse.fromJson( response_ as core.Map, ); } - /// Lists HyperparameterTuningJobs in a Location. - /// - /// Request parameters: - /// - /// [parent] - Required. The resource name of the Location to list the - /// HyperparameterTuningJobs from. Format: - /// `projects/{project}/locations/{location}` - /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// Waits until the specified long-running operation is done or reaches at + /// most a specified timeout, returning the latest state. /// - /// [filter] - The standard list filter. Supported fields: * \`display_name\` - /// supports \`=\`, \`!=\` comparisons, and \`:\` wildcard. * \`state\` - /// supports \`=\`, \`!=\` comparisons. * \`create_time\` supports \`=\`, - /// \`!=\`,\`\<\`, \`\<=\`,\`\>\`, \`\>=\` comparisons. \`create_time\` must - /// be in RFC 3339 format. * \`labels\` supports general map functions that - /// is: \`labels.key=value\` - key:value equality \`labels.key:* - key - /// existence Some examples of using the filter are: * - /// \`state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"\` * - /// \`state!="JOB_STATE_FAILED" OR display_name="my_job"\` * \`NOT - /// display_name="my_job"\` * \`create_time\>"2021-05-18T00:00:00Z"\` * - /// \`labels.keyA=valueA\` * \`labels.keyB:*\` + /// If the operation is already done, the latest state is immediately + /// returned. If the timeout specified is greater than the default HTTP/RPC + /// timeout, the HTTP/RPC timeout is used. If the server does not support this + /// method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method + /// is on a best-effort basis. It may return the latest state before the + /// specified timeout (including immediately), meaning even an immediate + /// response is no guarantee that the operation is done. /// - /// [pageSize] - The standard list page size. + /// Request parameters: /// - /// [pageToken] - The standard list page token. Typically obtained via - /// ListHyperparameterTuningJobsResponse.next_page_token of the previous - /// JobService.ListHyperparameterTuningJobs call. + /// [name] - The name of the operation resource to wait on. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/entityTypes/\[^/\]+/operations/\[^/\]+$`. /// - /// [readMask] - Mask specifying which fields to read. + /// [timeout] - The maximum duration to wait before timing out. If left blank, + /// the wait will be at most the time permitted by the underlying HTTP/RPC + /// protocol. If RPC context deadline is also specified, the shorter one will + /// be used. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a - /// [GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future - list( - core.String parent, { - core.String? filter, - core.int? pageSize, - core.String? pageToken, - core.String? readMask, + async.Future wait( + core.String name, { + core.String? timeout, core.String? $fields, }) async { final queryParams_ = >{ - if (filter != null) 'filter': [filter], - if (pageSize != null) 'pageSize': ['${pageSize}'], - if (pageToken != null) 'pageToken': [pageToken], - if (readMask != null) 'readMask': [readMask], + if (timeout != null) 'timeout': [timeout], if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + core.Uri.encodeFull('$parent') + '/hyperparameterTuningJobs'; + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; final response_ = await _requester.request( url_, - 'GET', + 'POST', queryParams: queryParams_, ); - return GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } } -class ProjectsLocationsHyperparameterTuningJobsOperationsResource { +class ProjectsLocationsFeaturestoresOperationsResource { final commons.ApiRequester _requester; - ProjectsLocationsHyperparameterTuningJobsOperationsResource( - commons.ApiRequester client, - ) : _requester = client; + ProjectsLocationsFeaturestoresOperationsResource(commons.ApiRequester client) + : _requester = client; /// Starts asynchronous cancellation on a long-running operation. /// @@ -13079,7 +13557,7 @@ class ProjectsLocationsHyperparameterTuningJobsOperationsResource { /// /// [name] - The name of the operation resource to be cancelled. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -13121,7 +13599,7 @@ class ProjectsLocationsHyperparameterTuningJobsOperationsResource { /// /// [name] - The name of the operation resource to be deleted. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -13162,7 +13640,7 @@ class ProjectsLocationsHyperparameterTuningJobsOperationsResource { /// /// [name] - The name of the operation resource. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/operations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -13202,7 +13680,7 @@ class ProjectsLocationsHyperparameterTuningJobsOperationsResource { /// /// [name] - The name of the operation's parent resource. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+$`. /// /// [filter] - The standard list filter. /// @@ -13261,7 +13739,7 @@ class ProjectsLocationsHyperparameterTuningJobsOperationsResource { /// /// [name] - The name of the operation resource to wait on. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/featurestores/\[^/\]+/operations/\[^/\]+$`. /// /// [timeout] - The maximum duration to wait before timing out. If left blank, /// the wait will be at most the time permitted by the underlying HTTP/RPC @@ -13301,38 +13779,50 @@ class ProjectsLocationsHyperparameterTuningJobsOperationsResource { } } -class ProjectsLocationsIndexEndpointsResource { +class ProjectsLocationsHyperparameterTuningJobsResource { final commons.ApiRequester _requester; - ProjectsLocationsIndexEndpointsOperationsResource get operations => - ProjectsLocationsIndexEndpointsOperationsResource(_requester); + ProjectsLocationsHyperparameterTuningJobsOperationsResource get operations => + ProjectsLocationsHyperparameterTuningJobsOperationsResource(_requester); - ProjectsLocationsIndexEndpointsResource(commons.ApiRequester client) + ProjectsLocationsHyperparameterTuningJobsResource(commons.ApiRequester client) : _requester = client; - /// Creates an IndexEndpoint. + /// Cancels a HyperparameterTuningJob. + /// + /// Starts asynchronous cancellation on the HyperparameterTuningJob. The + /// server makes a best effort to cancel the job, but success is not + /// guaranteed. Clients can use JobService.GetHyperparameterTuningJob or other + /// methods to check whether the cancellation succeeded or whether the job + /// completed despite cancellation. On successful cancellation, the + /// HyperparameterTuningJob is not deleted; instead it becomes a job with a + /// HyperparameterTuningJob.error value with a google.rpc.Status.code of 1, + /// corresponding to `Code.CANCELLED`, and HyperparameterTuningJob.state is + /// set to `CANCELLED`. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [parent] - Required. The resource name of the Location to create the - /// IndexEndpoint in. Format: `projects/{project}/locations/{location}` - /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// [name] - Required. The name of the HyperparameterTuningJob to cancel. + /// Format: + /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleProtobufEmpty]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future create( - GoogleCloudAiplatformV1IndexEndpoint request, - core.String parent, { + async.Future cancel( + GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest request, + core.String name, { core.String? $fields, }) async { final body_ = convert.json.encode(request); @@ -13340,7 +13830,7 @@ class ProjectsLocationsIndexEndpointsResource { if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/indexEndpoints'; + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':cancel'; final response_ = await _requester.request( url_, @@ -13348,63 +13838,65 @@ class ProjectsLocationsIndexEndpointsResource { body: body_, queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleProtobufEmpty.fromJson( response_ as core.Map, ); } - /// Deletes an IndexEndpoint. + /// Creates a HyperparameterTuningJob + /// + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - Required. The name of the IndexEndpoint resource to be deleted. - /// Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/indexEndpoints/\[^/\]+$`. + /// [parent] - Required. The resource name of the Location to create the + /// HyperparameterTuningJob in. Format: + /// `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [GoogleCloudAiplatformV1HyperparameterTuningJob]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete( - core.String name, { + async.Future create( + GoogleCloudAiplatformV1HyperparameterTuningJob request, + core.String parent, { core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = + 'v1/' + core.Uri.encodeFull('$parent') + '/hyperparameterTuningJobs'; final response_ = await _requester.request( url_, - 'DELETE', + 'POST', + body: body_, queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return GoogleCloudAiplatformV1HyperparameterTuningJob.fromJson( response_ as core.Map, ); } - /// Deploys an Index into this IndexEndpoint, creating a DeployedIndex within - /// it. - /// - /// [request] - The metadata request object. + /// Deletes a HyperparameterTuningJob. /// /// Request parameters: /// - /// [indexEndpoint] - Required. The name of the IndexEndpoint resource into - /// which to deploy an Index. Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// [name] - Required. The name of the HyperparameterTuningJob resource to be + /// deleted. Format: + /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/indexEndpoints/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -13416,22 +13908,19 @@ class ProjectsLocationsIndexEndpointsResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future deployIndex( - GoogleCloudAiplatformV1DeployIndexRequest request, - core.String indexEndpoint, { + async.Future delete( + core.String name, { core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$indexEndpoint') + ':deployIndex'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'DELETE', queryParams: queryParams_, ); return GoogleLongrunningOperation.fromJson( @@ -13439,13 +13928,506 @@ class ProjectsLocationsIndexEndpointsResource { ); } - /// Finds the nearest neighbors of each vector within the request. - /// - /// [request] - The metadata request object. + /// Gets a HyperparameterTuningJob /// /// Request parameters: /// - /// [indexEndpoint] - Required. The name of the index endpoint. Format: + /// [name] - Required. The name of the HyperparameterTuningJob resource. + /// Format: + /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudAiplatformV1HyperparameterTuningJob]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return GoogleCloudAiplatformV1HyperparameterTuningJob.fromJson( + response_ as core.Map, + ); + } + + /// Lists HyperparameterTuningJobs in a Location. + /// + /// Request parameters: + /// + /// [parent] - Required. The resource name of the Location to list the + /// HyperparameterTuningJobs from. Format: + /// `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [filter] - The standard list filter. Supported fields: * \`display_name\` + /// supports \`=\`, \`!=\` comparisons, and \`:\` wildcard. * \`state\` + /// supports \`=\`, \`!=\` comparisons. * \`create_time\` supports \`=\`, + /// \`!=\`,\`\<\`, \`\<=\`,\`\>\`, \`\>=\` comparisons. \`create_time\` must + /// be in RFC 3339 format. * \`labels\` supports general map functions that + /// is: \`labels.key=value\` - key:value equality \`labels.key:* - key + /// existence Some examples of using the filter are: * + /// \`state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"\` * + /// \`state!="JOB_STATE_FAILED" OR display_name="my_job"\` * \`NOT + /// display_name="my_job"\` * \`create_time\>"2021-05-18T00:00:00Z"\` * + /// \`labels.keyA=valueA\` * \`labels.keyB:*\` + /// + /// [pageSize] - The standard list page size. + /// + /// [pageToken] - The standard list page token. Typically obtained via + /// ListHyperparameterTuningJobsResponse.next_page_token of the previous + /// JobService.ListHyperparameterTuningJobs call. + /// + /// [readMask] - Mask specifying which fields to read. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a + /// [GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future + list( + core.String parent, { + core.String? filter, + core.int? pageSize, + core.String? pageToken, + core.String? readMask, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if (readMask != null) 'readMask': [readMask], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + core.Uri.encodeFull('$parent') + '/hyperparameterTuningJobs'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse.fromJson( + response_ as core.Map, + ); + } +} + +class ProjectsLocationsHyperparameterTuningJobsOperationsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsHyperparameterTuningJobsOperationsResource( + commons.ApiRequester client, + ) : _requester = client; + + /// Starts asynchronous cancellation on a long-running operation. + /// + /// The server makes a best effort to cancel the operation, but success is not + /// guaranteed. If the server doesn't support this method, it returns + /// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation + /// or other methods to check whether the cancellation succeeded or whether + /// the operation completed despite cancellation. On successful cancellation, + /// the operation is not deleted; instead, it becomes an operation with an + /// Operation.error value with a google.rpc.Status.code of `1`, corresponding + /// to `Code.CANCELLED`. + /// + /// Request parameters: + /// + /// [name] - The name of the operation resource to be cancelled. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+/operations/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleProtobufEmpty]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future cancel( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':cancel'; + + final response_ = await _requester.request( + url_, + 'POST', + queryParams: queryParams_, + ); + return GoogleProtobufEmpty.fromJson( + response_ as core.Map, + ); + } + + /// Deletes a long-running operation. + /// + /// This method indicates that the client is no longer interested in the + /// operation result. It does not cancel the operation. If the server doesn't + /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + /// + /// Request parameters: + /// + /// [name] - The name of the operation resource to be deleted. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+/operations/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleProtobufEmpty]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future delete( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'DELETE', + queryParams: queryParams_, + ); + return GoogleProtobufEmpty.fromJson( + response_ as core.Map, + ); + } + + /// Gets the latest state of a long-running operation. + /// + /// Clients can use this method to poll the operation result at intervals as + /// recommended by the API service. + /// + /// Request parameters: + /// + /// [name] - The name of the operation resource. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+/operations/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningOperation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } + + /// Lists operations that match the specified filter in the request. + /// + /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. + /// + /// Request parameters: + /// + /// [name] - The name of the operation's parent resource. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+$`. + /// + /// [filter] - The standard list filter. + /// + /// [pageSize] - The standard list page size. + /// + /// [pageToken] - The standard list page token. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningListOperationsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String name, { + core.String? filter, + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name') + '/operations'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return GoogleLongrunningListOperationsResponse.fromJson( + response_ as core.Map, + ); + } + + /// Waits until the specified long-running operation is done or reaches at + /// most a specified timeout, returning the latest state. + /// + /// If the operation is already done, the latest state is immediately + /// returned. If the timeout specified is greater than the default HTTP/RPC + /// timeout, the HTTP/RPC timeout is used. If the server does not support this + /// method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method + /// is on a best-effort basis. It may return the latest state before the + /// specified timeout (including immediately), meaning even an immediate + /// response is no guarantee that the operation is done. + /// + /// Request parameters: + /// + /// [name] - The name of the operation resource to wait on. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/hyperparameterTuningJobs/\[^/\]+/operations/\[^/\]+$`. + /// + /// [timeout] - The maximum duration to wait before timing out. If left blank, + /// the wait will be at most the time permitted by the underlying HTTP/RPC + /// protocol. If RPC context deadline is also specified, the shorter one will + /// be used. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningOperation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future wait( + core.String name, { + core.String? timeout, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (timeout != null) 'timeout': [timeout], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':wait'; + + final response_ = await _requester.request( + url_, + 'POST', + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } +} + +class ProjectsLocationsIndexEndpointsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsIndexEndpointsOperationsResource get operations => + ProjectsLocationsIndexEndpointsOperationsResource(_requester); + + ProjectsLocationsIndexEndpointsResource(commons.ApiRequester client) + : _requester = client; + + /// Creates an IndexEndpoint. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - Required. The resource name of the Location to create the + /// IndexEndpoint in. Format: `projects/{project}/locations/{location}` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningOperation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future create( + GoogleCloudAiplatformV1IndexEndpoint request, + core.String parent, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/indexEndpoints'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } + + /// Deletes an IndexEndpoint. + /// + /// Request parameters: + /// + /// [name] - Required. The name of the IndexEndpoint resource to be deleted. + /// Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/indexEndpoints/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningOperation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future delete( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'DELETE', + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } + + /// Deploys an Index into this IndexEndpoint, creating a DeployedIndex within + /// it. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [indexEndpoint] - Required. The name of the IndexEndpoint resource into + /// which to deploy an Index. Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/indexEndpoints/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningOperation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future deployIndex( + GoogleCloudAiplatformV1DeployIndexRequest request, + core.String indexEndpoint, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$indexEndpoint') + ':deployIndex'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } + + /// Finds the nearest neighbors of each vector within the request. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [indexEndpoint] - Required. The name of the index endpoint. Format: /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` /// Value must have pattern /// `^projects/\[^/\]+/locations/\[^/\]+/indexEndpoints/\[^/\]+$`. @@ -24367,6 +25349,10 @@ class ProjectsLocationsRagCorporaRagFilesResource { /// Value must have pattern /// `^projects/\[^/\]+/locations/\[^/\]+/ragCorpora/\[^/\]+/ragFiles/\[^/\]+$`. /// + /// [forceDelete] - Optional. If set to true, any errors generated by external + /// vector database during the deletion will be ignored. The default value is + /// false. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -24379,9 +25365,11 @@ class ProjectsLocationsRagCorporaRagFilesResource { /// this method will complete with the same error. async.Future delete( core.String name, { + core.bool? forceDelete, core.String? $fields, }) async { final queryParams_ = >{ + if (forceDelete != null) 'forceDelete': ['${forceDelete}'], if ($fields != null) 'fields': [$fields], }; @@ -34573,6 +35561,122 @@ class GoogleCloudAiplatformV1BigQueryDestination { }; } +/// The request set for the evaluation run. +class GoogleCloudAiplatformV1BigQueryRequestSet { + /// Map of candidate name to candidate response column name. + /// + /// The column will be in evaluation_item.CandidateResponse format. + /// + /// Optional. + core.Map? candidateResponseColumns; + + /// The name of the column that contains the requests to evaluate. + /// + /// This will be in evaluation_item.EvalPrompt format. + /// + /// Optional. + core.String? promptColumn; + + /// The name of the column that contains the rubrics. + /// + /// This will be in evaluation_rubric.RubricGroup format (cl/762595858). + /// + /// Optional. + core.String? rubricsColumn; + + /// The sampling config for the bigquery resource. + /// + /// Optional. + GoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig? samplingConfig; + + /// The URI of a BigQuery table. + /// + /// e.g. bq://projectId.bqDatasetId.bqTableId + /// + /// Required. + core.String? uri; + + GoogleCloudAiplatformV1BigQueryRequestSet({ + this.candidateResponseColumns, + this.promptColumn, + this.rubricsColumn, + this.samplingConfig, + this.uri, + }); + + GoogleCloudAiplatformV1BigQueryRequestSet.fromJson(core.Map json_) + : this( + candidateResponseColumns: (json_['candidateResponseColumns'] + as core.Map?) + ?.map((key, value) => core.MapEntry(key, value as core.String)), + promptColumn: json_['promptColumn'] as core.String?, + rubricsColumn: json_['rubricsColumn'] as core.String?, + samplingConfig: + json_.containsKey('samplingConfig') + ? GoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig.fromJson( + json_['samplingConfig'] + as core.Map, + ) + : null, + uri: json_['uri'] as core.String?, + ); + + core.Map toJson() => { + if (candidateResponseColumns != null) + 'candidateResponseColumns': candidateResponseColumns!, + if (promptColumn != null) 'promptColumn': promptColumn!, + if (rubricsColumn != null) 'rubricsColumn': rubricsColumn!, + if (samplingConfig != null) 'samplingConfig': samplingConfig!, + if (uri != null) 'uri': uri!, + }; +} + +/// The sampling config. +class GoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig { + /// The total number of logged data to import. + /// + /// If available data is less than the sampling count, all data will be + /// imported. Default is 100. + /// + /// Optional. + core.int? samplingCount; + + /// How long to wait before sampling data from the BigQuery table. + /// + /// If not specified, defaults to 0. + /// + /// Optional. + core.String? samplingDuration; + + /// The sampling method to use. + /// + /// Optional. + /// Possible string values are: + /// - "SAMPLING_METHOD_UNSPECIFIED" : Unspecified sampling method. + /// - "RANDOM" : Random sampling. + core.String? samplingMethod; + + GoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig({ + this.samplingCount, + this.samplingDuration, + this.samplingMethod, + }); + + GoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig.fromJson( + core.Map json_, + ) : this( + samplingCount: json_['samplingCount'] as core.int?, + samplingDuration: json_['samplingDuration'] as core.String?, + samplingMethod: json_['samplingMethod'] as core.String?, + ); + + core.Map toJson() => { + if (samplingCount != null) 'samplingCount': samplingCount!, + if (samplingDuration != null) 'samplingDuration': samplingDuration!, + if (samplingMethod != null) 'samplingMethod': samplingMethod!, + }; +} + /// The BigQuery location for the input content. class GoogleCloudAiplatformV1BigQuerySource { /// BigQuery URI to a table, up to 2000 characters long. @@ -35039,6 +36143,9 @@ typedef GoogleCloudAiplatformV1CancelCustomJobRequest = $Empty; /// Request message for JobService.CancelDataLabelingJob. typedef GoogleCloudAiplatformV1CancelDataLabelingJobRequest = $Empty; +/// Request message for EvaluationManagementService.CancelEvaluationRun. +typedef GoogleCloudAiplatformV1CancelEvaluationRunRequest = $Empty; + /// Request message for JobService.CancelHyperparameterTuningJob. typedef GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest = $Empty; @@ -35102,7 +36209,8 @@ class GoogleCloudAiplatformV1Candidate { /// - "SPII" : Token generation stopped because the content potentially /// contains Sensitive Personally Identifiable Information (SPII). /// - "MALFORMED_FUNCTION_CALL" : The function call generated by the model is - /// invalid. + /// syntaxtically invalid (e.g. the function call generated is not parsable). + /// - "MODEL_ARMOR" : The model response was blocked by Model Armor. /// - "IMAGE_SAFETY" : Token generation stopped because generated images has /// safety violations. /// - "IMAGE_PROHIBITED_CONTENT" : Image generation stopped because generated @@ -35110,8 +36218,10 @@ class GoogleCloudAiplatformV1Candidate { /// - "IMAGE_RECITATION" : Image generation stopped due to recitation. /// - "IMAGE_OTHER" : Image generation stopped because of other miscellaneous /// issue. - /// - "UNEXPECTED_TOOL_CALL" : The tool call generated by the model is - /// invalid. + /// - "UNEXPECTED_TOOL_CALL" : The function call generated by the model is + /// semantically invalid (e.g. a function call is generated when function + /// calling is not enabled or the function is not in the function + /// declaration). core.String? finishReason; /// Metadata specifies sources used to ground generated content. @@ -35218,6 +36328,115 @@ class GoogleCloudAiplatformV1Candidate { }; } +/// Responses from model or agent. +class GoogleCloudAiplatformV1CandidateResponse { + /// The name of the candidate that produced the response. + /// + /// Required. + core.String? candidate; + + /// Text response. + core.String? text; + + /// Fields and values that can be used to populate the response template. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Object? value; + + GoogleCloudAiplatformV1CandidateResponse({ + this.candidate, + this.text, + this.value, + }); + + GoogleCloudAiplatformV1CandidateResponse.fromJson(core.Map json_) + : this( + candidate: json_['candidate'] as core.String?, + text: json_['text'] as core.String?, + value: json_['value'], + ); + + core.Map toJson() => { + if (candidate != null) 'candidate': candidate!, + if (text != null) 'text': text!, + if (value != null) 'value': value!, + }; +} + +/// Result for a single candidate. +class GoogleCloudAiplatformV1CandidateResult { + /// Additional results for the metric. + /// + /// Optional. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Object? additionalResults; + + /// The candidate that is being evaluated. + /// + /// The value is the same as the candidate name in the EvaluationRequest. + /// + /// Required. + core.String? candidate; + + /// The explanation for the metric. + /// + /// Optional. + core.String? explanation; + + /// The metric that was evaluated. + /// + /// Required. + core.String? metric; + + /// The rubric verdicts for the metric. + /// + /// Optional. + core.List? rubricVerdicts; + + /// The score for the metric. + /// + /// Optional. + core.double? score; + + GoogleCloudAiplatformV1CandidateResult({ + this.additionalResults, + this.candidate, + this.explanation, + this.metric, + this.rubricVerdicts, + this.score, + }); + + GoogleCloudAiplatformV1CandidateResult.fromJson(core.Map json_) + : this( + additionalResults: json_['additionalResults'], + candidate: json_['candidate'] as core.String?, + explanation: json_['explanation'] as core.String?, + metric: json_['metric'] as core.String?, + rubricVerdicts: + (json_['rubricVerdicts'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1RubricVerdict.fromJson( + value as core.Map, + ), + ) + .toList(), + score: (json_['score'] as core.num?)?.toDouble(), + ); + + core.Map toJson() => { + if (additionalResults != null) 'additionalResults': additionalResults!, + if (candidate != null) 'candidate': candidate!, + if (explanation != null) 'explanation': explanation!, + if (metric != null) 'metric': metric!, + if (rubricVerdicts != null) 'rubricVerdicts': rubricVerdicts!, + if (score != null) 'score': score!, + }; +} + /// Request message for VizierService.CheckTrialEarlyStoppingState. typedef GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest = $Empty; @@ -38427,16 +39646,35 @@ class GoogleCloudAiplatformV1DeployRequestDeployConfig { /// The endpoint config to use for the deployment. class GoogleCloudAiplatformV1DeployRequestEndpointConfig { - /// If true, the endpoint will be exposed through a dedicated DNS + /// By default, if dedicated endpoint is enabled and private service connect + /// config is not set, the endpoint will be exposed through a dedicated DNS /// \[Endpoint.dedicated_endpoint_dns\]. /// - /// Your request to the dedicated DNS will be isolated from other users' - /// traffic and will have better performance and reliability. Note: Once you - /// enabled dedicated endpoint, you won't be able to send request to the - /// shared DNS {region}-aiplatform.googleapis.com. The limitations will be - /// removed soon. + /// If private service connect config is set, the endpoint will be exposed + /// through private service connect. Your request to the dedicated DNS will be + /// isolated from other users' traffic and will have better performance and + /// reliability. Note: Once you enabled dedicated endpoint, you won't be able + /// to send request to the shared DNS {region}-aiplatform.googleapis.com. The + /// limitations will be removed soon. If this field is set to true, the + /// dedicated endpoint will be disabled and the deployed model will be exposed + /// through the shared DNS {region}-aiplatform.googleapis.com. /// /// Optional. + core.bool? dedicatedEndpointDisabled; + + /// Use dedicated_endpoint_disabled instead. + /// + /// If true, the endpoint will be exposed through a dedicated DNS + /// \[Endpoint.dedicated_endpoint_dns\]. Your request to the dedicated DNS + /// will be isolated from other users' traffic and will have better + /// performance and reliability. Note: Once you enabled dedicated endpoint, + /// you won't be able to send request to the shared DNS + /// {region}-aiplatform.googleapis.com. The limitations will be removed soon. + /// + /// Optional. Deprecated. + @core.Deprecated( + 'Not supported. Member documentation may have more information.', + ) core.bool? dedicatedEndpointEnabled; /// The user-specified display name of the endpoint. @@ -38446,23 +39684,64 @@ class GoogleCloudAiplatformV1DeployRequestEndpointConfig { /// Optional. core.String? endpointDisplayName; + /// The ID to use for endpoint, which will become the final component of the + /// endpoint resource name. + /// + /// If not provided, Vertex AI will generate a value for this ID. If the first + /// character is a letter, this value may be up to 63 characters, and valid + /// characters are `[a-z0-9-]`. The last character must be a letter or number. + /// If the first character is a number, this value may be up to 9 characters, + /// and valid characters are `[0-9]` with no leading zeros. When using + /// HTTP/JSON, this field is populated based on a query string argument, such + /// as `?endpoint_id=12345`. This is the fallback for fields that are not + /// included in either the URI or the body. + /// + /// Optional. Immutable. + core.String? endpointUserId; + + /// Configuration for private service connect. + /// + /// If set, the endpoint will be exposed through private service connect. + /// + /// Optional. + GoogleCloudAiplatformV1PrivateServiceConnectConfig? + privateServiceConnectConfig; + GoogleCloudAiplatformV1DeployRequestEndpointConfig({ + this.dedicatedEndpointDisabled, this.dedicatedEndpointEnabled, this.endpointDisplayName, + this.endpointUserId, + this.privateServiceConnectConfig, }); GoogleCloudAiplatformV1DeployRequestEndpointConfig.fromJson(core.Map json_) : this( + dedicatedEndpointDisabled: + json_['dedicatedEndpointDisabled'] as core.bool?, dedicatedEndpointEnabled: json_['dedicatedEndpointEnabled'] as core.bool?, endpointDisplayName: json_['endpointDisplayName'] as core.String?, + endpointUserId: json_['endpointUserId'] as core.String?, + privateServiceConnectConfig: + json_.containsKey('privateServiceConnectConfig') + ? GoogleCloudAiplatformV1PrivateServiceConnectConfig.fromJson( + json_['privateServiceConnectConfig'] + as core.Map, + ) + : null, ); core.Map toJson() => { + if (dedicatedEndpointDisabled != null) + 'dedicatedEndpointDisabled': dedicatedEndpointDisabled!, if (dedicatedEndpointEnabled != null) 'dedicatedEndpointEnabled': dedicatedEndpointEnabled!, if (endpointDisplayName != null) 'endpointDisplayName': endpointDisplayName!, + if (endpointUserId != null) 'endpointUserId': endpointUserId!, + if (privateServiceConnectConfig != null) + 'privateServiceConnectConfig': privateServiceConnectConfig!, }; } @@ -40345,6 +41624,15 @@ class GoogleCloudAiplatformV1EvaluateInstancesRequest { /// Input for groundedness metric. GoogleCloudAiplatformV1GroundednessInput? groundednessInput; + /// The instance to be evaluated. + GoogleCloudAiplatformV1EvaluationInstance? instance; + + /// The metrics used for evaluation. + /// + /// Currently, we only support evaluating a single metric. If multiple metrics + /// are provided, only the first one will be evaluated. + core.List? metrics; + /// Input for Metricx metric. GoogleCloudAiplatformV1MetricxInput? metricxInput; @@ -40443,6 +41731,8 @@ class GoogleCloudAiplatformV1EvaluateInstancesRequest { this.fluencyInput, this.fulfillmentInput, this.groundednessInput, + this.instance, + this.metrics, this.metricxInput, this.pairwiseMetricInput, this.pairwiseQuestionAnsweringQualityInput, @@ -40525,6 +41815,20 @@ class GoogleCloudAiplatformV1EvaluateInstancesRequest { as core.Map, ) : null, + instance: + json_.containsKey('instance') + ? GoogleCloudAiplatformV1EvaluationInstance.fromJson( + json_['instance'] as core.Map, + ) + : null, + metrics: + (json_['metrics'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1Metric.fromJson( + value as core.Map, + ), + ) + .toList(), metricxInput: json_.containsKey('metricxInput') ? GoogleCloudAiplatformV1MetricxInput.fromJson( @@ -40708,6 +42012,8 @@ class GoogleCloudAiplatformV1EvaluateInstancesRequest { if (fluencyInput != null) 'fluencyInput': fluencyInput!, if (fulfillmentInput != null) 'fulfillmentInput': fulfillmentInput!, if (groundednessInput != null) 'groundednessInput': groundednessInput!, + if (instance != null) 'instance': instance!, + if (metrics != null) 'metrics': metrics!, if (metricxInput != null) 'metricxInput': metricxInput!, if (pairwiseMetricInput != null) 'pairwiseMetricInput': pairwiseMetricInput!, @@ -40788,6 +42094,12 @@ class GoogleCloudAiplatformV1EvaluateInstancesResponse { /// Result for groundedness metric. GoogleCloudAiplatformV1GroundednessResult? groundednessResult; + /// Metric results for each instance. + /// + /// The order of the metric results is guaranteed to be the same as the order + /// of the instances in the request. + core.List? metricResults; + /// Result for Metricx metric. GoogleCloudAiplatformV1MetricxResult? metricxResult; @@ -40894,6 +42206,7 @@ class GoogleCloudAiplatformV1EvaluateInstancesResponse { this.fluencyResult, this.fulfillmentResult, this.groundednessResult, + this.metricResults, this.metricxResult, this.pairwiseMetricResult, this.pairwiseQuestionAnsweringQualityResult, @@ -40969,6 +42282,14 @@ class GoogleCloudAiplatformV1EvaluateInstancesResponse { as core.Map, ) : null, + metricResults: + (json_['metricResults'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1MetricResult.fromJson( + value as core.Map, + ), + ) + .toList(), metricxResult: json_.containsKey('metricxResult') ? GoogleCloudAiplatformV1MetricxResult.fromJson( @@ -41120,299 +42441,1816 @@ class GoogleCloudAiplatformV1EvaluateInstancesResponse { as core.Map, ) : null, - trajectoryPrecisionResults: - json_.containsKey('trajectoryPrecisionResults') - ? GoogleCloudAiplatformV1TrajectoryPrecisionResults.fromJson( - json_['trajectoryPrecisionResults'] + trajectoryPrecisionResults: + json_.containsKey('trajectoryPrecisionResults') + ? GoogleCloudAiplatformV1TrajectoryPrecisionResults.fromJson( + json_['trajectoryPrecisionResults'] + as core.Map, + ) + : null, + trajectoryRecallResults: + json_.containsKey('trajectoryRecallResults') + ? GoogleCloudAiplatformV1TrajectoryRecallResults.fromJson( + json_['trajectoryRecallResults'] + as core.Map, + ) + : null, + trajectorySingleToolUseResults: + json_.containsKey('trajectorySingleToolUseResults') + ? GoogleCloudAiplatformV1TrajectorySingleToolUseResults.fromJson( + json_['trajectorySingleToolUseResults'] + as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (bleuResults != null) 'bleuResults': bleuResults!, + if (coherenceResult != null) 'coherenceResult': coherenceResult!, + if (cometResult != null) 'cometResult': cometResult!, + if (exactMatchResults != null) 'exactMatchResults': exactMatchResults!, + if (fluencyResult != null) 'fluencyResult': fluencyResult!, + if (fulfillmentResult != null) 'fulfillmentResult': fulfillmentResult!, + if (groundednessResult != null) 'groundednessResult': groundednessResult!, + if (metricResults != null) 'metricResults': metricResults!, + if (metricxResult != null) 'metricxResult': metricxResult!, + if (pairwiseMetricResult != null) + 'pairwiseMetricResult': pairwiseMetricResult!, + if (pairwiseQuestionAnsweringQualityResult != null) + 'pairwiseQuestionAnsweringQualityResult': + pairwiseQuestionAnsweringQualityResult!, + if (pairwiseSummarizationQualityResult != null) + 'pairwiseSummarizationQualityResult': pairwiseSummarizationQualityResult!, + if (pointwiseMetricResult != null) + 'pointwiseMetricResult': pointwiseMetricResult!, + if (questionAnsweringCorrectnessResult != null) + 'questionAnsweringCorrectnessResult': questionAnsweringCorrectnessResult!, + if (questionAnsweringHelpfulnessResult != null) + 'questionAnsweringHelpfulnessResult': questionAnsweringHelpfulnessResult!, + if (questionAnsweringQualityResult != null) + 'questionAnsweringQualityResult': questionAnsweringQualityResult!, + if (questionAnsweringRelevanceResult != null) + 'questionAnsweringRelevanceResult': questionAnsweringRelevanceResult!, + if (rougeResults != null) 'rougeResults': rougeResults!, + if (rubricBasedInstructionFollowingResult != null) + 'rubricBasedInstructionFollowingResult': + rubricBasedInstructionFollowingResult!, + if (safetyResult != null) 'safetyResult': safetyResult!, + if (summarizationHelpfulnessResult != null) + 'summarizationHelpfulnessResult': summarizationHelpfulnessResult!, + if (summarizationQualityResult != null) + 'summarizationQualityResult': summarizationQualityResult!, + if (summarizationVerbosityResult != null) + 'summarizationVerbosityResult': summarizationVerbosityResult!, + if (toolCallValidResults != null) + 'toolCallValidResults': toolCallValidResults!, + if (toolNameMatchResults != null) + 'toolNameMatchResults': toolNameMatchResults!, + if (toolParameterKeyMatchResults != null) + 'toolParameterKeyMatchResults': toolParameterKeyMatchResults!, + if (toolParameterKvMatchResults != null) + 'toolParameterKvMatchResults': toolParameterKvMatchResults!, + if (trajectoryAnyOrderMatchResults != null) + 'trajectoryAnyOrderMatchResults': trajectoryAnyOrderMatchResults!, + if (trajectoryExactMatchResults != null) + 'trajectoryExactMatchResults': trajectoryExactMatchResults!, + if (trajectoryInOrderMatchResults != null) + 'trajectoryInOrderMatchResults': trajectoryInOrderMatchResults!, + if (trajectoryPrecisionResults != null) + 'trajectoryPrecisionResults': trajectoryPrecisionResults!, + if (trajectoryRecallResults != null) + 'trajectoryRecallResults': trajectoryRecallResults!, + if (trajectorySingleToolUseResults != null) + 'trajectorySingleToolUseResults': trajectorySingleToolUseResults!, + }; +} + +/// True positive, false positive, or false negative. +/// +/// EvaluatedAnnotation is only available under ModelEvaluationSlice with slice +/// of `annotationSpec` dimension. +class GoogleCloudAiplatformV1EvaluatedAnnotation { + /// The data item payload that the Model predicted this EvaluatedAnnotation + /// on. + /// + /// Output only. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Object? dataItemPayload; + + /// Annotations of model error analysis results. + core.List? + errorAnalysisAnnotations; + + /// ID of the EvaluatedDataItemView under the same ancestor ModelEvaluation. + /// + /// The EvaluatedDataItemView consists of all ground truths and predictions on + /// data_item_payload. + /// + /// Output only. + core.String? evaluatedDataItemViewId; + + /// Explanations of predictions. + /// + /// Each element of the explanations indicates the explanation for one + /// explanation Method. The attributions list in the + /// EvaluatedAnnotationExplanation.explanation object corresponds to the + /// predictions list. For example, the second element in the attributions list + /// explains the second element in the predictions list. + core.List? + explanations; + + /// The ground truth Annotations, i.e. the Annotations that exist in the test + /// data the Model is evaluated on. + /// + /// For true positive, there is one and only one ground truth annotation, + /// which matches the only prediction in predictions. For false positive, + /// there are zero or more ground truth annotations that are similar to the + /// only prediction in predictions, but not enough for a match. For false + /// negative, there is one and only one ground truth annotation, which doesn't + /// match any predictions created by the model. The schema of the ground truth + /// is stored in ModelEvaluation.annotation_schema_uri + /// + /// Output only. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.List? groundTruths; + + /// The model predicted annotations. + /// + /// For true positive, there is one and only one prediction, which matches the + /// only one ground truth annotation in ground_truths. For false positive, + /// there is one and only one prediction, which doesn't match any ground truth + /// annotation of the corresponding data_item_view_id. For false negative, + /// there are zero or more predictions which are similar to the only ground + /// truth annotation in ground_truths but not enough for a match. The schema + /// of the prediction is stored in ModelEvaluation.annotation_schema_uri + /// + /// Output only. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.List? predictions; + + /// Type of the EvaluatedAnnotation. + /// + /// Output only. + /// Possible string values are: + /// - "EVALUATED_ANNOTATION_TYPE_UNSPECIFIED" : Invalid value. + /// - "TRUE_POSITIVE" : The EvaluatedAnnotation is a true positive. It has a + /// prediction created by the Model and a ground truth Annotation which the + /// prediction matches. + /// - "FALSE_POSITIVE" : The EvaluatedAnnotation is false positive. It has a + /// prediction created by the Model which does not match any ground truth + /// annotation. + /// - "FALSE_NEGATIVE" : The EvaluatedAnnotation is false negative. It has a + /// ground truth annotation which is not matched by any of the model created + /// predictions. + core.String? type; + + GoogleCloudAiplatformV1EvaluatedAnnotation({ + this.dataItemPayload, + this.errorAnalysisAnnotations, + this.evaluatedDataItemViewId, + this.explanations, + this.groundTruths, + this.predictions, + this.type, + }); + + GoogleCloudAiplatformV1EvaluatedAnnotation.fromJson(core.Map json_) + : this( + dataItemPayload: json_['dataItemPayload'], + errorAnalysisAnnotations: + (json_['errorAnalysisAnnotations'] as core.List?) + ?.map( + (value) => + GoogleCloudAiplatformV1ErrorAnalysisAnnotation.fromJson( + value as core.Map, + ), + ) + .toList(), + evaluatedDataItemViewId: + json_['evaluatedDataItemViewId'] as core.String?, + explanations: + (json_['explanations'] as core.List?) + ?.map( + (value) => + GoogleCloudAiplatformV1EvaluatedAnnotationExplanation.fromJson( + value as core.Map, + ), + ) + .toList(), + groundTruths: + json_.containsKey('groundTruths') + ? json_['groundTruths'] as core.List + : null, + predictions: + json_.containsKey('predictions') + ? json_['predictions'] as core.List + : null, + type: json_['type'] as core.String?, + ); + + core.Map toJson() => { + if (dataItemPayload != null) 'dataItemPayload': dataItemPayload!, + if (errorAnalysisAnnotations != null) + 'errorAnalysisAnnotations': errorAnalysisAnnotations!, + if (evaluatedDataItemViewId != null) + 'evaluatedDataItemViewId': evaluatedDataItemViewId!, + if (explanations != null) 'explanations': explanations!, + if (groundTruths != null) 'groundTruths': groundTruths!, + if (predictions != null) 'predictions': predictions!, + if (type != null) 'type': type!, + }; +} + +/// Explanation result of the prediction produced by the Model. +class GoogleCloudAiplatformV1EvaluatedAnnotationExplanation { + /// Explanation attribution response details. + GoogleCloudAiplatformV1Explanation? explanation; + + /// Explanation type. + /// + /// For AutoML Image Classification models, possible values are: * + /// `image-integrated-gradients` * `image-xrai` + core.String? explanationType; + + GoogleCloudAiplatformV1EvaluatedAnnotationExplanation({ + this.explanation, + this.explanationType, + }); + + GoogleCloudAiplatformV1EvaluatedAnnotationExplanation.fromJson(core.Map json_) + : this( + explanation: + json_.containsKey('explanation') + ? GoogleCloudAiplatformV1Explanation.fromJson( + json_['explanation'] as core.Map, + ) + : null, + explanationType: json_['explanationType'] as core.String?, + ); + + core.Map toJson() => { + if (explanation != null) 'explanation': explanation!, + if (explanationType != null) 'explanationType': explanationType!, + }; +} + +/// The dataset used for evaluation. +class GoogleCloudAiplatformV1EvaluationDataset { + /// BigQuery source holds the dataset. + GoogleCloudAiplatformV1BigQuerySource? bigquerySource; + + /// Cloud storage source holds the dataset. + /// + /// Currently only one Cloud Storage file path is supported. + GoogleCloudAiplatformV1GcsSource? gcsSource; + + GoogleCloudAiplatformV1EvaluationDataset({ + this.bigquerySource, + this.gcsSource, + }); + + GoogleCloudAiplatformV1EvaluationDataset.fromJson(core.Map json_) + : this( + bigquerySource: + json_.containsKey('bigquerySource') + ? GoogleCloudAiplatformV1BigQuerySource.fromJson( + json_['bigquerySource'] + as core.Map, + ) + : null, + gcsSource: + json_.containsKey('gcsSource') + ? GoogleCloudAiplatformV1GcsSource.fromJson( + json_['gcsSource'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (bigquerySource != null) 'bigquerySource': bigquerySource!, + if (gcsSource != null) 'gcsSource': gcsSource!, + }; +} + +/// A single instance to be evaluated. +/// +/// Instances are used to specify the input data for evaluation, from simple +/// string comparisons to complex, multi-turn model evaluations +class GoogleCloudAiplatformV1EvaluationInstance { + /// Other data used to populate placeholders based on their key. + /// + /// Optional. + GoogleCloudAiplatformV1EvaluationInstanceMapInstance? otherData; + + /// Data used to populate placeholder `prompt` in a metric prompt template. + /// + /// Optional. + GoogleCloudAiplatformV1EvaluationInstanceInstanceData? prompt; + + /// Data used to populate placeholder `reference` in a metric prompt template. + /// + /// Optional. + GoogleCloudAiplatformV1EvaluationInstanceInstanceData? reference; + + /// Data used to populate placeholder `response` in a metric prompt template. + /// + /// Required. + GoogleCloudAiplatformV1EvaluationInstanceInstanceData? response; + + /// Named groups of rubrics associated with the prompt. + /// + /// This is used for rubric-based evaluations where rubrics can be referenced + /// by a key. The key could represent versions, associated metrics, etc. + /// + /// Optional. + core.Map? rubricGroups; + + GoogleCloudAiplatformV1EvaluationInstance({ + this.otherData, + this.prompt, + this.reference, + this.response, + this.rubricGroups, + }); + + GoogleCloudAiplatformV1EvaluationInstance.fromJson(core.Map json_) + : this( + otherData: + json_.containsKey('otherData') + ? GoogleCloudAiplatformV1EvaluationInstanceMapInstance.fromJson( + json_['otherData'] as core.Map, + ) + : null, + prompt: + json_.containsKey('prompt') + ? GoogleCloudAiplatformV1EvaluationInstanceInstanceData.fromJson( + json_['prompt'] as core.Map, + ) + : null, + reference: + json_.containsKey('reference') + ? GoogleCloudAiplatformV1EvaluationInstanceInstanceData.fromJson( + json_['reference'] as core.Map, + ) + : null, + response: + json_.containsKey('response') + ? GoogleCloudAiplatformV1EvaluationInstanceInstanceData.fromJson( + json_['response'] as core.Map, + ) + : null, + rubricGroups: (json_['rubricGroups'] + as core.Map?) + ?.map( + (key, value) => core.MapEntry( + key, + GoogleCloudAiplatformV1RubricGroup.fromJson( + value as core.Map, + ), + ), + ), + ); + + core.Map toJson() => { + if (otherData != null) 'otherData': otherData!, + if (prompt != null) 'prompt': prompt!, + if (reference != null) 'reference': reference!, + if (response != null) 'response': response!, + if (rubricGroups != null) 'rubricGroups': rubricGroups!, + }; +} + +/// Instance data used to populate placeholders in a metric prompt template. +class GoogleCloudAiplatformV1EvaluationInstanceInstanceData { + /// List of Gemini content data. + GoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents? contents; + + /// Text data. + core.String? text; + + GoogleCloudAiplatformV1EvaluationInstanceInstanceData({ + this.contents, + this.text, + }); + + GoogleCloudAiplatformV1EvaluationInstanceInstanceData.fromJson(core.Map json_) + : this( + contents: + json_.containsKey('contents') + ? GoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents.fromJson( + json_['contents'] as core.Map, + ) + : null, + text: json_['text'] as core.String?, + ); + + core.Map toJson() => { + if (contents != null) 'contents': contents!, + if (text != null) 'text': text!, + }; +} + +/// List of standard Content messages from Gemini API. +class GoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents { + /// Repeated contents. + /// + /// Optional. + core.List? contents; + + GoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents({ + this.contents, + }); + + GoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents.fromJson( + core.Map json_, + ) : this( + contents: + (json_['contents'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1Content.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (contents != null) 'contents': contents!, + }; +} + +/// Instance data specified as a map. +class GoogleCloudAiplatformV1EvaluationInstanceMapInstance { + /// Map of instance data. + /// + /// Optional. + core.Map? + mapInstance; + + GoogleCloudAiplatformV1EvaluationInstanceMapInstance({this.mapInstance}); + + GoogleCloudAiplatformV1EvaluationInstanceMapInstance.fromJson(core.Map json_) + : this( + mapInstance: + (json_['mapInstance'] as core.Map?)?.map( + (key, value) => core.MapEntry( + key, + GoogleCloudAiplatformV1EvaluationInstanceInstanceData.fromJson( + value as core.Map, + ), + ), + ), + ); + + core.Map toJson() => { + if (mapInstance != null) 'mapInstance': mapInstance!, + }; +} + +/// EvaluationItem is a single evaluation request or result. +/// +/// The content of an EvaluationItem is immutable - it cannot be updated once +/// created. EvaluationItems can be deleted when no longer needed. +class GoogleCloudAiplatformV1EvaluationItem { + /// Timestamp when this item was created. + /// + /// Output only. + core.String? createTime; + + /// The display name of the EvaluationItem. + /// + /// Required. + core.String? displayName; + + /// Error for the evaluation item. + /// + /// Output only. + GoogleRpcStatus? error; + + /// The type of the EvaluationItem. + /// + /// Required. + /// Possible string values are: + /// - "EVALUATION_ITEM_TYPE_UNSPECIFIED" : The default value. This value is + /// unused. + /// - "REQUEST" : The EvaluationItem is a request to evaluate. + /// - "RESULT" : The EvaluationItem is the result of evaluation. + core.String? evaluationItemType; + + /// The request to evaluate. + GoogleCloudAiplatformV1EvaluationRequest? evaluationRequest; + + /// The response from evaluation. + /// + /// Output only. + GoogleCloudAiplatformV1EvaluationResult? evaluationResponse; + + /// The GCS object where the request or response is stored. + core.String? gcsUri; + + /// Labels for the EvaluationItem. + /// + /// Optional. + core.Map? labels; + + /// Metadata for the EvaluationItem. + /// + /// Optional. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Object? metadata; + + /// Identifier. + /// + /// The resource name of the EvaluationItem. Format: + /// `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + core.String? name; + + GoogleCloudAiplatformV1EvaluationItem({ + this.createTime, + this.displayName, + this.error, + this.evaluationItemType, + this.evaluationRequest, + this.evaluationResponse, + this.gcsUri, + this.labels, + this.metadata, + this.name, + }); + + GoogleCloudAiplatformV1EvaluationItem.fromJson(core.Map json_) + : this( + createTime: json_['createTime'] as core.String?, + displayName: json_['displayName'] as core.String?, + error: + json_.containsKey('error') + ? GoogleRpcStatus.fromJson( + json_['error'] as core.Map, + ) + : null, + evaluationItemType: json_['evaluationItemType'] as core.String?, + evaluationRequest: + json_.containsKey('evaluationRequest') + ? GoogleCloudAiplatformV1EvaluationRequest.fromJson( + json_['evaluationRequest'] + as core.Map, + ) + : null, + evaluationResponse: + json_.containsKey('evaluationResponse') + ? GoogleCloudAiplatformV1EvaluationResult.fromJson( + json_['evaluationResponse'] + as core.Map, + ) + : null, + gcsUri: json_['gcsUri'] as core.String?, + labels: (json_['labels'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), + metadata: json_['metadata'], + name: json_['name'] as core.String?, + ); + + core.Map toJson() => { + if (createTime != null) 'createTime': createTime!, + if (displayName != null) 'displayName': displayName!, + if (error != null) 'error': error!, + if (evaluationItemType != null) 'evaluationItemType': evaluationItemType!, + if (evaluationRequest != null) 'evaluationRequest': evaluationRequest!, + if (evaluationResponse != null) 'evaluationResponse': evaluationResponse!, + if (gcsUri != null) 'gcsUri': gcsUri!, + if (labels != null) 'labels': labels!, + if (metadata != null) 'metadata': metadata!, + if (name != null) 'name': name!, + }; +} + +/// Prompt to be evaluated. +class GoogleCloudAiplatformV1EvaluationPrompt { + /// Prompt template data. + GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData? promptTemplateData; + + /// Text prompt. + core.String? text; + + /// Fields and values that can be used to populate the prompt template. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Object? value; + + GoogleCloudAiplatformV1EvaluationPrompt({ + this.promptTemplateData, + this.text, + this.value, + }); + + GoogleCloudAiplatformV1EvaluationPrompt.fromJson(core.Map json_) + : this( + promptTemplateData: + json_.containsKey('promptTemplateData') + ? GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData.fromJson( + json_['promptTemplateData'] + as core.Map, + ) + : null, + text: json_['text'] as core.String?, + value: json_['value'], + ); + + core.Map toJson() => { + if (promptTemplateData != null) 'promptTemplateData': promptTemplateData!, + if (text != null) 'text': text!, + if (value != null) 'value': value!, + }; +} + +/// Message to hold a prompt template and the values to populate the template. +class GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData { + /// The values for fields in the prompt template. + core.Map? values; + + GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData({this.values}); + + GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData.fromJson( + core.Map json_, + ) : this( + values: (json_['values'] as core.Map?)?.map( + (key, value) => core.MapEntry( + key, + GoogleCloudAiplatformV1Content.fromJson( + value as core.Map, + ), + ), + ), + ); + + core.Map toJson() => { + if (values != null) 'values': values!, + }; +} + +/// Single evaluation request. +class GoogleCloudAiplatformV1EvaluationRequest { + /// Responses from model under test and other baseline models for comparison. + /// + /// Optional. + core.List? candidateResponses; + + /// The Ideal response or ground truth. + /// + /// Optional. + GoogleCloudAiplatformV1CandidateResponse? goldenResponse; + + /// The request/prompt to evaluate. + /// + /// Required. + GoogleCloudAiplatformV1EvaluationPrompt? prompt; + + /// Named groups of rubrics associated with this prompt. + /// + /// The key is a user-defined name for the rubric group. + /// + /// Optional. + core.Map? rubrics; + + GoogleCloudAiplatformV1EvaluationRequest({ + this.candidateResponses, + this.goldenResponse, + this.prompt, + this.rubrics, + }); + + GoogleCloudAiplatformV1EvaluationRequest.fromJson(core.Map json_) + : this( + candidateResponses: + (json_['candidateResponses'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1CandidateResponse.fromJson( + value as core.Map, + ), + ) + .toList(), + goldenResponse: + json_.containsKey('goldenResponse') + ? GoogleCloudAiplatformV1CandidateResponse.fromJson( + json_['goldenResponse'] + as core.Map, + ) + : null, + prompt: + json_.containsKey('prompt') + ? GoogleCloudAiplatformV1EvaluationPrompt.fromJson( + json_['prompt'] as core.Map, + ) + : null, + rubrics: (json_['rubrics'] as core.Map?) + ?.map( + (key, value) => core.MapEntry( + key, + GoogleCloudAiplatformV1RubricGroup.fromJson( + value as core.Map, + ), + ), + ), + ); + + core.Map toJson() => { + if (candidateResponses != null) 'candidateResponses': candidateResponses!, + if (goldenResponse != null) 'goldenResponse': goldenResponse!, + if (prompt != null) 'prompt': prompt!, + if (rubrics != null) 'rubrics': rubrics!, + }; +} + +/// Evaluation result. +class GoogleCloudAiplatformV1EvaluationResult { + /// The results for the metric. + /// + /// Optional. + core.List? candidateResults; + + /// The request item that was evaluated. + /// + /// Format: + /// projects/{project}/locations/{location}/evaluationItems/{evaluation_item} + /// + /// Required. + core.String? evaluationRequest; + + /// The evaluation run that was used to generate the result. + /// + /// Format: + /// projects/{project}/locations/{location}/evaluationRuns/{evaluation_run} + /// + /// Required. + core.String? evaluationRun; + + /// Metadata about the evaluation result. + /// + /// Optional. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Object? metadata; + + /// The metric that was evaluated. + /// + /// Required. + core.String? metric; + + /// The request that was evaluated. + /// + /// Required. + GoogleCloudAiplatformV1EvaluationRequest? request; + + GoogleCloudAiplatformV1EvaluationResult({ + this.candidateResults, + this.evaluationRequest, + this.evaluationRun, + this.metadata, + this.metric, + this.request, + }); + + GoogleCloudAiplatformV1EvaluationResult.fromJson(core.Map json_) + : this( + candidateResults: + (json_['candidateResults'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1CandidateResult.fromJson( + value as core.Map, + ), + ) + .toList(), + evaluationRequest: json_['evaluationRequest'] as core.String?, + evaluationRun: json_['evaluationRun'] as core.String?, + metadata: json_['metadata'], + metric: json_['metric'] as core.String?, + request: + json_.containsKey('request') + ? GoogleCloudAiplatformV1EvaluationRequest.fromJson( + json_['request'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (candidateResults != null) 'candidateResults': candidateResults!, + if (evaluationRequest != null) 'evaluationRequest': evaluationRequest!, + if (evaluationRun != null) 'evaluationRun': evaluationRun!, + if (metadata != null) 'metadata': metadata!, + if (metric != null) 'metric': metric!, + if (request != null) 'request': request!, + }; +} + +/// The results of the evaluation run. +class GoogleCloudAiplatformV1EvaluationResults { + /// The evaluation set where item level results are stored. + core.String? evaluationSet; + + /// The summary metrics for the evaluation run. + /// + /// Optional. + GoogleCloudAiplatformV1SummaryMetrics? summaryMetrics; + + GoogleCloudAiplatformV1EvaluationResults({ + this.evaluationSet, + this.summaryMetrics, + }); + + GoogleCloudAiplatformV1EvaluationResults.fromJson(core.Map json_) + : this( + evaluationSet: json_['evaluationSet'] as core.String?, + summaryMetrics: + json_.containsKey('summaryMetrics') + ? GoogleCloudAiplatformV1SummaryMetrics.fromJson( + json_['summaryMetrics'] + as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (evaluationSet != null) 'evaluationSet': evaluationSet!, + if (summaryMetrics != null) 'summaryMetrics': summaryMetrics!, + }; +} + +/// Configuration for a rubric group to be generated/saved for evaluation. +class GoogleCloudAiplatformV1EvaluationRubricConfig { + /// Dynamically generate rubrics using a predefined spec. + GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec? + predefinedRubricGenerationSpec; + + /// Dynamically generate rubrics using this specification. + GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec? + rubricGenerationSpec; + + /// The key used to save the generated rubrics. + /// + /// If a generation spec is provided, this key will be used for the name of + /// the generated rubric group. Otherwise, this key will be used to look up + /// the existing rubric group on the evaluation item. Note that if a rubric + /// group key is specified on both a rubric config and an evaluation metric, + /// the key from the metric will be used to select the rubrics for evaluation. + /// + /// Required. + core.String? rubricGroupKey; + + GoogleCloudAiplatformV1EvaluationRubricConfig({ + this.predefinedRubricGenerationSpec, + this.rubricGenerationSpec, + this.rubricGroupKey, + }); + + GoogleCloudAiplatformV1EvaluationRubricConfig.fromJson(core.Map json_) + : this( + predefinedRubricGenerationSpec: + json_.containsKey('predefinedRubricGenerationSpec') + ? GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec.fromJson( + json_['predefinedRubricGenerationSpec'] + as core.Map, + ) + : null, + rubricGenerationSpec: + json_.containsKey('rubricGenerationSpec') + ? GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec.fromJson( + json_['rubricGenerationSpec'] + as core.Map, + ) + : null, + rubricGroupKey: json_['rubricGroupKey'] as core.String?, + ); + + core.Map toJson() => { + if (predefinedRubricGenerationSpec != null) + 'predefinedRubricGenerationSpec': predefinedRubricGenerationSpec!, + if (rubricGenerationSpec != null) + 'rubricGenerationSpec': rubricGenerationSpec!, + if (rubricGroupKey != null) 'rubricGroupKey': rubricGroupKey!, + }; +} + +/// EvaluationRun is a resource that represents a single evaluation run, which +/// includes a set of prompts, model responses, evaluation configuration and the +/// resulting metrics. +class GoogleCloudAiplatformV1EvaluationRun { + /// Time when the evaluation run was completed. + /// + /// Output only. + core.String? completionTime; + + /// Time when the evaluation run was created. + /// + /// Output only. + core.String? createTime; + + /// The data source for the evaluation run. + /// + /// Required. + GoogleCloudAiplatformV1EvaluationRunDataSource? dataSource; + + /// The display name of the Evaluation Run. + /// + /// Required. + core.String? displayName; + + /// Only populated when the evaluation run's state is FAILED or CANCELLED. + /// + /// Output only. + GoogleRpcStatus? error; + + /// The configuration used for the evaluation. + /// + /// Required. + GoogleCloudAiplatformV1EvaluationRunEvaluationConfig? evaluationConfig; + + /// The results of the evaluation run. + /// + /// Only populated when the evaluation run's state is SUCCEEDED. + /// + /// Output only. + GoogleCloudAiplatformV1EvaluationResults? evaluationResults; + + /// The specific evaluation set of the evaluation run. + /// + /// For runs with an evaluation set input, this will be that same set. For + /// runs with BigQuery input, it's the sampled BigQuery dataset. + /// + /// Output only. + core.String? evaluationSetSnapshot; + + /// The candidate to inference config map for the evaluation run. + /// + /// The candidate can be up to 128 characters long and can consist of any + /// UTF-8 characters. + /// + /// Optional. + core.Map? + inferenceConfigs; + + /// Labels for the evaluation run. + /// + /// Optional. + core.Map? labels; + + /// Metadata about the evaluation run, can be used by the caller to store + /// additional tracking information about the evaluation run. + /// + /// Optional. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Object? metadata; + + /// Identifier. + /// + /// The resource name of the EvaluationRun. This is a unique identifier. + /// Format: + /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` + core.String? name; + + /// The state of the evaluation run. + /// + /// Output only. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : Unspecified state. + /// - "PENDING" : The evaluation run is pending. + /// - "RUNNING" : The evaluation run is running. + /// - "SUCCEEDED" : The evaluation run has succeeded. + /// - "FAILED" : The evaluation run has failed. + /// - "CANCELLED" : The evaluation run has been cancelled. + /// - "INFERENCE" : The evaluation run is performing inference. + /// - "GENERATING_RUBRICS" : The evaluation run is performing rubric + /// generation. + core.String? state; + + GoogleCloudAiplatformV1EvaluationRun({ + this.completionTime, + this.createTime, + this.dataSource, + this.displayName, + this.error, + this.evaluationConfig, + this.evaluationResults, + this.evaluationSetSnapshot, + this.inferenceConfigs, + this.labels, + this.metadata, + this.name, + this.state, + }); + + GoogleCloudAiplatformV1EvaluationRun.fromJson(core.Map json_) + : this( + completionTime: json_['completionTime'] as core.String?, + createTime: json_['createTime'] as core.String?, + dataSource: + json_.containsKey('dataSource') + ? GoogleCloudAiplatformV1EvaluationRunDataSource.fromJson( + json_['dataSource'] as core.Map, + ) + : null, + displayName: json_['displayName'] as core.String?, + error: + json_.containsKey('error') + ? GoogleRpcStatus.fromJson( + json_['error'] as core.Map, + ) + : null, + evaluationConfig: + json_.containsKey('evaluationConfig') + ? GoogleCloudAiplatformV1EvaluationRunEvaluationConfig.fromJson( + json_['evaluationConfig'] + as core.Map, + ) + : null, + evaluationResults: + json_.containsKey('evaluationResults') + ? GoogleCloudAiplatformV1EvaluationResults.fromJson( + json_['evaluationResults'] + as core.Map, + ) + : null, + evaluationSetSnapshot: json_['evaluationSetSnapshot'] as core.String?, + inferenceConfigs: (json_['inferenceConfigs'] + as core.Map?) + ?.map( + (key, value) => core.MapEntry( + key, + GoogleCloudAiplatformV1EvaluationRunInferenceConfig.fromJson( + value as core.Map, + ), + ), + ), + labels: (json_['labels'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), + metadata: json_['metadata'], + name: json_['name'] as core.String?, + state: json_['state'] as core.String?, + ); + + core.Map toJson() => { + if (completionTime != null) 'completionTime': completionTime!, + if (createTime != null) 'createTime': createTime!, + if (dataSource != null) 'dataSource': dataSource!, + if (displayName != null) 'displayName': displayName!, + if (error != null) 'error': error!, + if (evaluationConfig != null) 'evaluationConfig': evaluationConfig!, + if (evaluationResults != null) 'evaluationResults': evaluationResults!, + if (evaluationSetSnapshot != null) + 'evaluationSetSnapshot': evaluationSetSnapshot!, + if (inferenceConfigs != null) 'inferenceConfigs': inferenceConfigs!, + if (labels != null) 'labels': labels!, + if (metadata != null) 'metadata': metadata!, + if (name != null) 'name': name!, + if (state != null) 'state': state!, + }; +} + +/// The data source for the evaluation run. +class GoogleCloudAiplatformV1EvaluationRunDataSource { + /// Evaluation data in bigquery. + GoogleCloudAiplatformV1BigQueryRequestSet? bigqueryRequestSet; + + /// The EvaluationSet resource name. + /// + /// Format: + /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + core.String? evaluationSet; + + GoogleCloudAiplatformV1EvaluationRunDataSource({ + this.bigqueryRequestSet, + this.evaluationSet, + }); + + GoogleCloudAiplatformV1EvaluationRunDataSource.fromJson(core.Map json_) + : this( + bigqueryRequestSet: + json_.containsKey('bigqueryRequestSet') + ? GoogleCloudAiplatformV1BigQueryRequestSet.fromJson( + json_['bigqueryRequestSet'] + as core.Map, + ) + : null, + evaluationSet: json_['evaluationSet'] as core.String?, + ); + + core.Map toJson() => { + if (bigqueryRequestSet != null) 'bigqueryRequestSet': bigqueryRequestSet!, + if (evaluationSet != null) 'evaluationSet': evaluationSet!, + }; +} + +/// The Evalution configuration used for the evaluation run. +class GoogleCloudAiplatformV1EvaluationRunEvaluationConfig { + /// The autorater config for the evaluation run. + /// + /// Optional. + GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig? + autoraterConfig; + + /// The metrics to be calculated in the evaluation run. + /// + /// Required. + core.List? metrics; + + /// The output config for the evaluation run. + /// + /// Optional. + GoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig? + outputConfig; + + /// The prompt template used for inference. + /// + /// The values for variables in the prompt template are defined in + /// EvaluationItem.EvaluationPrompt.PromptTemplateData.values. + GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate? + promptTemplate; + + /// The rubric configs for the evaluation run. + /// + /// They are used to generate rubrics which can be used by rubric-based + /// metrics. Multiple rubric configs can be specified for rubric generation + /// but only one rubric config can be used for a rubric-based metric. If more + /// than one rubric config is provided, the evaluation metric must specify a + /// rubric group key. Note that if a generation spec is specified on both a + /// rubric config and an evaluation metric, the rubrics generated for the + /// metric will be used for evaluation. + /// + /// Optional. + core.List? rubricConfigs; + + GoogleCloudAiplatformV1EvaluationRunEvaluationConfig({ + this.autoraterConfig, + this.metrics, + this.outputConfig, + this.promptTemplate, + this.rubricConfigs, + }); + + GoogleCloudAiplatformV1EvaluationRunEvaluationConfig.fromJson(core.Map json_) + : this( + autoraterConfig: + json_.containsKey('autoraterConfig') + ? GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig.fromJson( + json_['autoraterConfig'] + as core.Map, + ) + : null, + metrics: + (json_['metrics'] as core.List?) + ?.map( + (value) => + GoogleCloudAiplatformV1EvaluationRunMetric.fromJson( + value as core.Map, + ), + ) + .toList(), + outputConfig: + json_.containsKey('outputConfig') + ? GoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig.fromJson( + json_['outputConfig'] as core.Map, + ) + : null, + promptTemplate: + json_.containsKey('promptTemplate') + ? GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate.fromJson( + json_['promptTemplate'] + as core.Map, + ) + : null, + rubricConfigs: + (json_['rubricConfigs'] as core.List?) + ?.map( + (value) => + GoogleCloudAiplatformV1EvaluationRubricConfig.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (autoraterConfig != null) 'autoraterConfig': autoraterConfig!, + if (metrics != null) 'metrics': metrics!, + if (outputConfig != null) 'outputConfig': outputConfig!, + if (promptTemplate != null) 'promptTemplate': promptTemplate!, + if (rubricConfigs != null) 'rubricConfigs': rubricConfigs!, + }; +} + +/// The autorater config used for the evaluation run. +class GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig { + /// The fully qualified name of the publisher model or tuned autorater + /// endpoint to use. + /// + /// Publisher model format: + /// `projects/{project}/locations/{location}/publishers / * /models / * ` + /// Tuned model endpoint format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + /// Optional. + core.String? autoraterModel; + + /// Configuration options for model generation and outputs. + /// + /// Optional. + GoogleCloudAiplatformV1GenerationConfig? generationConfig; + + /// Number of samples for each instance in the dataset. + /// + /// If not specified, the default is 4. Minimum value is 1, maximum value is + /// 32. + /// + /// Optional. + core.int? sampleCount; + + GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig({ + this.autoraterModel, + this.generationConfig, + this.sampleCount, + }); + + GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig.fromJson( + core.Map json_, + ) : this( + autoraterModel: json_['autoraterModel'] as core.String?, + generationConfig: + json_.containsKey('generationConfig') + ? GoogleCloudAiplatformV1GenerationConfig.fromJson( + json_['generationConfig'] + as core.Map, + ) + : null, + sampleCount: json_['sampleCount'] as core.int?, + ); + + core.Map toJson() => { + if (autoraterModel != null) 'autoraterModel': autoraterModel!, + if (generationConfig != null) 'generationConfig': generationConfig!, + if (sampleCount != null) 'sampleCount': sampleCount!, + }; +} + +/// The output config for the evaluation run. +class GoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig { + /// BigQuery destination for evaluation output. + GoogleCloudAiplatformV1BigQueryDestination? bigqueryDestination; + + /// Cloud Storage destination for evaluation output. + GoogleCloudAiplatformV1GcsDestination? gcsDestination; + + GoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig({ + this.bigqueryDestination, + this.gcsDestination, + }); + + GoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig.fromJson( + core.Map json_, + ) : this( + bigqueryDestination: + json_.containsKey('bigqueryDestination') + ? GoogleCloudAiplatformV1BigQueryDestination.fromJson( + json_['bigqueryDestination'] + as core.Map, + ) + : null, + gcsDestination: + json_.containsKey('gcsDestination') + ? GoogleCloudAiplatformV1GcsDestination.fromJson( + json_['gcsDestination'] + as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (bigqueryDestination != null) + 'bigqueryDestination': bigqueryDestination!, + if (gcsDestination != null) 'gcsDestination': gcsDestination!, + }; +} + +/// Prompt template used for inference. +class GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate { + /// Prompt template stored in Cloud Storage. + /// + /// Format: "gs://my-bucket/file-name.txt". + core.String? gcsUri; + + /// Inline prompt template. + /// + /// Template variables should be in the format "{var_name}". Example: + /// "Translate the following from {source_lang} to {target_lang}: {text}" + core.String? promptTemplate; + + GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate({ + this.gcsUri, + this.promptTemplate, + }); + + GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate.fromJson( + core.Map json_, + ) : this( + gcsUri: json_['gcsUri'] as core.String?, + promptTemplate: json_['promptTemplate'] as core.String?, + ); + + core.Map toJson() => { + if (gcsUri != null) 'gcsUri': gcsUri!, + if (promptTemplate != null) 'promptTemplate': promptTemplate!, + }; +} + +/// An inference config used for model inference during the evaluation run. +class GoogleCloudAiplatformV1EvaluationRunInferenceConfig { + /// Generation config. + /// + /// Optional. + GoogleCloudAiplatformV1GenerationConfig? generationConfig; + + /// The fully qualified name of the publisher model or endpoint to use. + /// + /// Publisher model format: + /// `projects/{project}/locations/{location}/publishers / * /models / * ` + /// Endpoint format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + /// Required. + core.String? model; + + GoogleCloudAiplatformV1EvaluationRunInferenceConfig({ + this.generationConfig, + this.model, + }); + + GoogleCloudAiplatformV1EvaluationRunInferenceConfig.fromJson(core.Map json_) + : this( + generationConfig: + json_.containsKey('generationConfig') + ? GoogleCloudAiplatformV1GenerationConfig.fromJson( + json_['generationConfig'] + as core.Map, + ) + : null, + model: json_['model'] as core.String?, + ); + + core.Map toJson() => { + if (generationConfig != null) 'generationConfig': generationConfig!, + if (model != null) 'model': model!, + }; +} + +/// The metric used for evaluation runs. +class GoogleCloudAiplatformV1EvaluationRunMetric { + /// Spec for an LLM based metric. + GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec? + llmBasedMetricSpec; + + /// The name of the metric. + /// + /// Required. + core.String? metric; + + /// Spec for a pre-defined metric. + GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec? + predefinedMetricSpec; + + /// Spec for rubric based metric. + GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec? + rubricBasedMetricSpec; + + GoogleCloudAiplatformV1EvaluationRunMetric({ + this.llmBasedMetricSpec, + this.metric, + this.predefinedMetricSpec, + this.rubricBasedMetricSpec, + }); + + GoogleCloudAiplatformV1EvaluationRunMetric.fromJson(core.Map json_) + : this( + llmBasedMetricSpec: + json_.containsKey('llmBasedMetricSpec') + ? GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec.fromJson( + json_['llmBasedMetricSpec'] + as core.Map, + ) + : null, + metric: json_['metric'] as core.String?, + predefinedMetricSpec: + json_.containsKey('predefinedMetricSpec') + ? GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec.fromJson( + json_['predefinedMetricSpec'] + as core.Map, + ) + : null, + rubricBasedMetricSpec: + json_.containsKey('rubricBasedMetricSpec') + ? GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec.fromJson( + json_['rubricBasedMetricSpec'] + as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (llmBasedMetricSpec != null) 'llmBasedMetricSpec': llmBasedMetricSpec!, + if (metric != null) 'metric': metric!, + if (predefinedMetricSpec != null) + 'predefinedMetricSpec': predefinedMetricSpec!, + if (rubricBasedMetricSpec != null) + 'rubricBasedMetricSpec': rubricBasedMetricSpec!, + }; +} + +/// Specification for an LLM based metric. +class GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec { + /// Optional additional configuration for the metric. + /// + /// Optional. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map? additionalConfig; + + /// Optional configuration for the judge LLM (Autorater). + /// + /// Optional. + GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig? + judgeAutoraterConfig; + + /// Template for the prompt sent to the judge model. + /// + /// Required. + core.String? metricPromptTemplate; + + /// Dynamically generate rubrics using a predefined spec. + GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec? + predefinedRubricGenerationSpec; + + /// Dynamically generate rubrics using this specification. + GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec? + rubricGenerationSpec; + + /// Use a pre-defined group of rubrics associated with the input. + /// + /// Refers to a key in the rubric_groups map of EvaluationInstance. + core.String? rubricGroupKey; + + /// System instructions for the judge model. + /// + /// Optional. + core.String? systemInstruction; + + GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec({ + this.additionalConfig, + this.judgeAutoraterConfig, + this.metricPromptTemplate, + this.predefinedRubricGenerationSpec, + this.rubricGenerationSpec, + this.rubricGroupKey, + this.systemInstruction, + }); + + GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec.fromJson( + core.Map json_, + ) : this( + additionalConfig: + json_.containsKey('additionalConfig') + ? json_['additionalConfig'] + as core.Map + : null, + judgeAutoraterConfig: + json_.containsKey('judgeAutoraterConfig') + ? GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig.fromJson( + json_['judgeAutoraterConfig'] as core.Map, ) : null, - trajectoryRecallResults: - json_.containsKey('trajectoryRecallResults') - ? GoogleCloudAiplatformV1TrajectoryRecallResults.fromJson( - json_['trajectoryRecallResults'] + metricPromptTemplate: json_['metricPromptTemplate'] as core.String?, + predefinedRubricGenerationSpec: + json_.containsKey('predefinedRubricGenerationSpec') + ? GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec.fromJson( + json_['predefinedRubricGenerationSpec'] as core.Map, ) : null, - trajectorySingleToolUseResults: - json_.containsKey('trajectorySingleToolUseResults') - ? GoogleCloudAiplatformV1TrajectorySingleToolUseResults.fromJson( - json_['trajectorySingleToolUseResults'] + rubricGenerationSpec: + json_.containsKey('rubricGenerationSpec') + ? GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec.fromJson( + json_['rubricGenerationSpec'] as core.Map, ) : null, + rubricGroupKey: json_['rubricGroupKey'] as core.String?, + systemInstruction: json_['systemInstruction'] as core.String?, ); core.Map toJson() => { - if (bleuResults != null) 'bleuResults': bleuResults!, - if (coherenceResult != null) 'coherenceResult': coherenceResult!, - if (cometResult != null) 'cometResult': cometResult!, - if (exactMatchResults != null) 'exactMatchResults': exactMatchResults!, - if (fluencyResult != null) 'fluencyResult': fluencyResult!, - if (fulfillmentResult != null) 'fulfillmentResult': fulfillmentResult!, - if (groundednessResult != null) 'groundednessResult': groundednessResult!, - if (metricxResult != null) 'metricxResult': metricxResult!, - if (pairwiseMetricResult != null) - 'pairwiseMetricResult': pairwiseMetricResult!, - if (pairwiseQuestionAnsweringQualityResult != null) - 'pairwiseQuestionAnsweringQualityResult': - pairwiseQuestionAnsweringQualityResult!, - if (pairwiseSummarizationQualityResult != null) - 'pairwiseSummarizationQualityResult': pairwiseSummarizationQualityResult!, - if (pointwiseMetricResult != null) - 'pointwiseMetricResult': pointwiseMetricResult!, - if (questionAnsweringCorrectnessResult != null) - 'questionAnsweringCorrectnessResult': questionAnsweringCorrectnessResult!, - if (questionAnsweringHelpfulnessResult != null) - 'questionAnsweringHelpfulnessResult': questionAnsweringHelpfulnessResult!, - if (questionAnsweringQualityResult != null) - 'questionAnsweringQualityResult': questionAnsweringQualityResult!, - if (questionAnsweringRelevanceResult != null) - 'questionAnsweringRelevanceResult': questionAnsweringRelevanceResult!, - if (rougeResults != null) 'rougeResults': rougeResults!, - if (rubricBasedInstructionFollowingResult != null) - 'rubricBasedInstructionFollowingResult': - rubricBasedInstructionFollowingResult!, - if (safetyResult != null) 'safetyResult': safetyResult!, - if (summarizationHelpfulnessResult != null) - 'summarizationHelpfulnessResult': summarizationHelpfulnessResult!, - if (summarizationQualityResult != null) - 'summarizationQualityResult': summarizationQualityResult!, - if (summarizationVerbosityResult != null) - 'summarizationVerbosityResult': summarizationVerbosityResult!, - if (toolCallValidResults != null) - 'toolCallValidResults': toolCallValidResults!, - if (toolNameMatchResults != null) - 'toolNameMatchResults': toolNameMatchResults!, - if (toolParameterKeyMatchResults != null) - 'toolParameterKeyMatchResults': toolParameterKeyMatchResults!, - if (toolParameterKvMatchResults != null) - 'toolParameterKvMatchResults': toolParameterKvMatchResults!, - if (trajectoryAnyOrderMatchResults != null) - 'trajectoryAnyOrderMatchResults': trajectoryAnyOrderMatchResults!, - if (trajectoryExactMatchResults != null) - 'trajectoryExactMatchResults': trajectoryExactMatchResults!, - if (trajectoryInOrderMatchResults != null) - 'trajectoryInOrderMatchResults': trajectoryInOrderMatchResults!, - if (trajectoryPrecisionResults != null) - 'trajectoryPrecisionResults': trajectoryPrecisionResults!, - if (trajectoryRecallResults != null) - 'trajectoryRecallResults': trajectoryRecallResults!, - if (trajectorySingleToolUseResults != null) - 'trajectorySingleToolUseResults': trajectorySingleToolUseResults!, + if (additionalConfig != null) 'additionalConfig': additionalConfig!, + if (judgeAutoraterConfig != null) + 'judgeAutoraterConfig': judgeAutoraterConfig!, + if (metricPromptTemplate != null) + 'metricPromptTemplate': metricPromptTemplate!, + if (predefinedRubricGenerationSpec != null) + 'predefinedRubricGenerationSpec': predefinedRubricGenerationSpec!, + if (rubricGenerationSpec != null) + 'rubricGenerationSpec': rubricGenerationSpec!, + if (rubricGroupKey != null) 'rubricGroupKey': rubricGroupKey!, + if (systemInstruction != null) 'systemInstruction': systemInstruction!, }; } -/// True positive, false positive, or false negative. -/// -/// EvaluatedAnnotation is only available under ModelEvaluationSlice with slice -/// of `annotationSpec` dimension. -class GoogleCloudAiplatformV1EvaluatedAnnotation { - /// The data item payload that the Model predicted this EvaluatedAnnotation - /// on. +/// Specification for a pre-defined metric. +class GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec { + /// The name of a pre-defined metric, such as "instruction_following_v1" or + /// "text_quality_v1". /// - /// Output only. + /// Required. + core.String? metricSpecName; + + /// The parameters needed to run the pre-defined metric. + /// + /// Optional. /// /// The values for Object must be JSON objects. It can consist of `num`, /// `String`, `bool` and `null` as well as `Map` and `List` values. - core.Object? dataItemPayload; + core.Map? parameters; - /// Annotations of model error analysis results. - core.List? - errorAnalysisAnnotations; + GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec({ + this.metricSpecName, + this.parameters, + }); - /// ID of the EvaluatedDataItemView under the same ancestor ModelEvaluation. - /// - /// The EvaluatedDataItemView consists of all ground truths and predictions on - /// data_item_payload. - /// - /// Output only. - core.String? evaluatedDataItemViewId; + GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec.fromJson( + core.Map json_, + ) : this( + metricSpecName: json_['metricSpecName'] as core.String?, + parameters: + json_.containsKey('parameters') + ? json_['parameters'] as core.Map + : null, + ); - /// Explanations of predictions. - /// - /// Each element of the explanations indicates the explanation for one - /// explanation Method. The attributions list in the - /// EvaluatedAnnotationExplanation.explanation object corresponds to the - /// predictions list. For example, the second element in the attributions list - /// explains the second element in the predictions list. - core.List? - explanations; + core.Map toJson() => { + if (metricSpecName != null) 'metricSpecName': metricSpecName!, + if (parameters != null) 'parameters': parameters!, + }; +} - /// The ground truth Annotations, i.e. the Annotations that exist in the test - /// data the Model is evaluated on. - /// - /// For true positive, there is one and only one ground truth annotation, - /// which matches the only prediction in predictions. For false positive, - /// there are zero or more ground truth annotations that are similar to the - /// only prediction in predictions, but not enough for a match. For false - /// negative, there is one and only one ground truth annotation, which doesn't - /// match any predictions created by the model. The schema of the ground truth - /// is stored in ModelEvaluation.annotation_schema_uri - /// - /// Output only. - /// - /// The values for Object must be JSON objects. It can consist of `num`, - /// `String`, `bool` and `null` as well as `Map` and `List` values. - core.List? groundTruths; +/// Specification for a metric that is based on rubrics. +class GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec { + /// Use rubrics provided directly in the spec. + GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics? + inlineRubrics; - /// The model predicted annotations. + /// Optional configuration for the judge LLM (Autorater). /// - /// For true positive, there is one and only one prediction, which matches the - /// only one ground truth annotation in ground_truths. For false positive, - /// there is one and only one prediction, which doesn't match any ground truth - /// annotation of the corresponding data_item_view_id. For false negative, - /// there are zero or more predictions which are similar to the only ground - /// truth annotation in ground_truths but not enough for a match. The schema - /// of the prediction is stored in ModelEvaluation.annotation_schema_uri + /// The definition of AutoraterConfig needs to be provided. /// - /// Output only. + /// Optional. + GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig? + judgeAutoraterConfig; + + /// Template for the prompt used by the judge model to evaluate against + /// rubrics. /// - /// The values for Object must be JSON objects. It can consist of `num`, - /// `String`, `bool` and `null` as well as `Map` and `List` values. - core.List? predictions; + /// Optional. + core.String? metricPromptTemplate; - /// Type of the EvaluatedAnnotation. + /// Dynamically generate rubrics for evaluation using this specification. + GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec? + rubricGenerationSpec; + + /// Use a pre-defined group of rubrics associated with the input content. /// - /// Output only. - /// Possible string values are: - /// - "EVALUATED_ANNOTATION_TYPE_UNSPECIFIED" : Invalid value. - /// - "TRUE_POSITIVE" : The EvaluatedAnnotation is a true positive. It has a - /// prediction created by the Model and a ground truth Annotation which the - /// prediction matches. - /// - "FALSE_POSITIVE" : The EvaluatedAnnotation is false positive. It has a - /// prediction created by the Model which does not match any ground truth - /// annotation. - /// - "FALSE_NEGATIVE" : The EvaluatedAnnotation is false negative. It has a - /// ground truth annotation which is not matched by any of the model created - /// predictions. - core.String? type; + /// This refers to a key in the `rubric_groups` map of + /// `RubricEnhancedContents`. + core.String? rubricGroupKey; - GoogleCloudAiplatformV1EvaluatedAnnotation({ - this.dataItemPayload, - this.errorAnalysisAnnotations, - this.evaluatedDataItemViewId, - this.explanations, - this.groundTruths, - this.predictions, - this.type, + GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec({ + this.inlineRubrics, + this.judgeAutoraterConfig, + this.metricPromptTemplate, + this.rubricGenerationSpec, + this.rubricGroupKey, }); - GoogleCloudAiplatformV1EvaluatedAnnotation.fromJson(core.Map json_) - : this( - dataItemPayload: json_['dataItemPayload'], - errorAnalysisAnnotations: - (json_['errorAnalysisAnnotations'] as core.List?) - ?.map( - (value) => - GoogleCloudAiplatformV1ErrorAnalysisAnnotation.fromJson( - value as core.Map, - ), + GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec.fromJson( + core.Map json_, + ) : this( + inlineRubrics: + json_.containsKey('inlineRubrics') + ? GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics.fromJson( + json_['inlineRubrics'] as core.Map, ) - .toList(), - evaluatedDataItemViewId: - json_['evaluatedDataItemViewId'] as core.String?, - explanations: - (json_['explanations'] as core.List?) - ?.map( - (value) => - GoogleCloudAiplatformV1EvaluatedAnnotationExplanation.fromJson( - value as core.Map, - ), + : null, + judgeAutoraterConfig: + json_.containsKey('judgeAutoraterConfig') + ? GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig.fromJson( + json_['judgeAutoraterConfig'] + as core.Map, ) - .toList(), - groundTruths: - json_.containsKey('groundTruths') - ? json_['groundTruths'] as core.List : null, - predictions: - json_.containsKey('predictions') - ? json_['predictions'] as core.List + metricPromptTemplate: json_['metricPromptTemplate'] as core.String?, + rubricGenerationSpec: + json_.containsKey('rubricGenerationSpec') + ? GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec.fromJson( + json_['rubricGenerationSpec'] + as core.Map, + ) : null, - type: json_['type'] as core.String?, + rubricGroupKey: json_['rubricGroupKey'] as core.String?, ); core.Map toJson() => { - if (dataItemPayload != null) 'dataItemPayload': dataItemPayload!, - if (errorAnalysisAnnotations != null) - 'errorAnalysisAnnotations': errorAnalysisAnnotations!, - if (evaluatedDataItemViewId != null) - 'evaluatedDataItemViewId': evaluatedDataItemViewId!, - if (explanations != null) 'explanations': explanations!, - if (groundTruths != null) 'groundTruths': groundTruths!, - if (predictions != null) 'predictions': predictions!, - if (type != null) 'type': type!, + if (inlineRubrics != null) 'inlineRubrics': inlineRubrics!, + if (judgeAutoraterConfig != null) + 'judgeAutoraterConfig': judgeAutoraterConfig!, + if (metricPromptTemplate != null) + 'metricPromptTemplate': metricPromptTemplate!, + if (rubricGenerationSpec != null) + 'rubricGenerationSpec': rubricGenerationSpec!, + if (rubricGroupKey != null) 'rubricGroupKey': rubricGroupKey!, }; } -/// Explanation result of the prediction produced by the Model. -class GoogleCloudAiplatformV1EvaluatedAnnotationExplanation { - /// Explanation attribution response details. - GoogleCloudAiplatformV1Explanation? explanation; +/// Defines a list of rubrics, used when providing rubrics inline. +class GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics { + /// The list of rubrics. + core.List? rubrics; - /// Explanation type. + GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics({ + this.rubrics, + }); + + GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics.fromJson( + core.Map json_, + ) : this( + rubrics: + (json_['rubrics'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1Rubric.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (rubrics != null) 'rubrics': rubrics!, + }; +} + +/// Specification for how rubrics should be generated. +class GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec { + /// Configuration for the model used in rubric generation. /// - /// For AutoML Image Classification models, possible values are: * - /// `image-integrated-gradients` * `image-xrai` - core.String? explanationType; + /// Configs including sampling count and base model can be specified here. + /// Flipping is not supported for rubric generation. + /// + /// Optional. + GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig? + modelConfig; - GoogleCloudAiplatformV1EvaluatedAnnotationExplanation({ - this.explanation, - this.explanationType, + /// Template for the prompt used to generate rubrics. + /// + /// The details should be updated based on the most-recent recipe + /// requirements. + /// + /// Optional. + core.String? promptTemplate; + + /// The type of rubric content to be generated. + /// + /// Optional. + /// Possible string values are: + /// - "RUBRIC_CONTENT_TYPE_UNSPECIFIED" : The content type to generate is not + /// specified. + /// - "PROPERTY" : Generate rubrics based on properties. + /// - "NL_QUESTION_ANSWER" : Generate rubrics in an NL question answer format. + /// - "PYTHON_CODE_ASSERTION" : Generate rubrics in a unit test format. + core.String? rubricContentType; + + /// An optional, pre-defined list of allowed types for generated rubrics. + /// + /// If this field is provided, it implies `include_rubric_type` should be + /// true, and the generated rubric types should be chosen from this ontology. + /// + /// Optional. + core.List? rubricTypeOntology; + + GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec({ + this.modelConfig, + this.promptTemplate, + this.rubricContentType, + this.rubricTypeOntology, }); - GoogleCloudAiplatformV1EvaluatedAnnotationExplanation.fromJson(core.Map json_) - : this( - explanation: - json_.containsKey('explanation') - ? GoogleCloudAiplatformV1Explanation.fromJson( - json_['explanation'] as core.Map, + GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec.fromJson( + core.Map json_, + ) : this( + modelConfig: + json_.containsKey('modelConfig') + ? GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig.fromJson( + json_['modelConfig'] as core.Map, ) : null, - explanationType: json_['explanationType'] as core.String?, + promptTemplate: json_['promptTemplate'] as core.String?, + rubricContentType: json_['rubricContentType'] as core.String?, + rubricTypeOntology: + (json_['rubricTypeOntology'] as core.List?) + ?.map((value) => value as core.String) + .toList(), ); core.Map toJson() => { - if (explanation != null) 'explanation': explanation!, - if (explanationType != null) 'explanationType': explanationType!, + if (modelConfig != null) 'modelConfig': modelConfig!, + if (promptTemplate != null) 'promptTemplate': promptTemplate!, + if (rubricContentType != null) 'rubricContentType': rubricContentType!, + if (rubricTypeOntology != null) 'rubricTypeOntology': rubricTypeOntology!, }; } -/// The dataset used for evaluation. -class GoogleCloudAiplatformV1EvaluationDataset { - /// BigQuery source holds the dataset. - GoogleCloudAiplatformV1BigQuerySource? bigquerySource; +/// EvaluationSet is a collection of related EvaluationItems that are evaluated +/// together. +class GoogleCloudAiplatformV1EvaluationSet { + /// Timestamp when this item was created. + /// + /// Output only. + core.String? createTime; - /// Cloud storage source holds the dataset. + /// The display name of the EvaluationSet. /// - /// Currently only one Cloud Storage file path is supported. - GoogleCloudAiplatformV1GcsSource? gcsSource; + /// Required. + core.String? displayName; - GoogleCloudAiplatformV1EvaluationDataset({ - this.bigquerySource, - this.gcsSource, + /// The EvaluationItems that are part of this dataset. + /// + /// Required. + core.List? evaluationItems; + + /// Metadata for the EvaluationSet. + /// + /// Optional. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Object? metadata; + + /// Identifier. + /// + /// The resource name of the EvaluationSet. Format: + /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + core.String? name; + + /// Timestamp when this item was last updated. + /// + /// Output only. + core.String? updateTime; + + GoogleCloudAiplatformV1EvaluationSet({ + this.createTime, + this.displayName, + this.evaluationItems, + this.metadata, + this.name, + this.updateTime, }); - GoogleCloudAiplatformV1EvaluationDataset.fromJson(core.Map json_) + GoogleCloudAiplatformV1EvaluationSet.fromJson(core.Map json_) : this( - bigquerySource: - json_.containsKey('bigquerySource') - ? GoogleCloudAiplatformV1BigQuerySource.fromJson( - json_['bigquerySource'] - as core.Map, - ) - : null, - gcsSource: - json_.containsKey('gcsSource') - ? GoogleCloudAiplatformV1GcsSource.fromJson( - json_['gcsSource'] as core.Map, - ) - : null, + createTime: json_['createTime'] as core.String?, + displayName: json_['displayName'] as core.String?, + evaluationItems: + (json_['evaluationItems'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + metadata: json_['metadata'], + name: json_['name'] as core.String?, + updateTime: json_['updateTime'] as core.String?, ); core.Map toJson() => { - if (bigquerySource != null) 'bigquerySource': bigquerySource!, - if (gcsSource != null) 'gcsSource': gcsSource!, + if (createTime != null) 'createTime': createTime!, + if (displayName != null) 'displayName': displayName!, + if (evaluationItems != null) 'evaluationItems': evaluationItems!, + if (metadata != null) 'metadata': metadata!, + if (name != null) 'name': name!, + if (updateTime != null) 'updateTime': updateTime!, }; } @@ -47168,6 +50006,14 @@ class GoogleCloudAiplatformV1GenerateContentRequest { /// Optional. core.Map? labels; + /// Settings for prompt and response sanitization using the Model Armor + /// service. + /// + /// If supplied, safety_settings must not be supplied. + /// + /// Optional. + GoogleCloudAiplatformV1ModelArmorConfig? modelArmorConfig; + /// Per request settings for blocking unsafe content. /// /// Enforced on GenerateContentResponse.candidates. @@ -47204,6 +50050,7 @@ class GoogleCloudAiplatformV1GenerateContentRequest { this.contents, this.generationConfig, this.labels, + this.modelArmorConfig, this.safetySettings, this.systemInstruction, this.toolConfig, @@ -47231,6 +50078,13 @@ class GoogleCloudAiplatformV1GenerateContentRequest { labels: (json_['labels'] as core.Map?)?.map( (key, value) => core.MapEntry(key, value as core.String), ), + modelArmorConfig: + json_.containsKey('modelArmorConfig') + ? GoogleCloudAiplatformV1ModelArmorConfig.fromJson( + json_['modelArmorConfig'] + as core.Map, + ) + : null, safetySettings: (json_['safetySettings'] as core.List?) ?.map( @@ -47267,6 +50121,7 @@ class GoogleCloudAiplatformV1GenerateContentRequest { if (contents != null) 'contents': contents!, if (generationConfig != null) 'generationConfig': generationConfig!, if (labels != null) 'labels': labels!, + if (modelArmorConfig != null) 'modelArmorConfig': modelArmorConfig!, if (safetySettings != null) 'safetySettings': safetySettings!, if (systemInstruction != null) 'systemInstruction': systemInstruction!, if (toolConfig != null) 'toolConfig': toolConfig!, @@ -47357,27 +50212,36 @@ class GoogleCloudAiplatformV1GenerateContentResponse { } /// Content filter results for a prompt sent in the request. +/// +/// Note: This is sent only in the first stream chunk and only if no candidates +/// were generated due to content violations. class GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback { - /// Blocked reason. + /// The reason why the prompt was blocked. /// /// Output only. /// Possible string values are: - /// - "BLOCKED_REASON_UNSPECIFIED" : Unspecified blocked reason. - /// - "SAFETY" : Candidates blocked due to safety. - /// - "OTHER" : Candidates blocked due to other reason. - /// - "BLOCKLIST" : Candidates blocked due to the terms which are included - /// from the terminology blocklist. - /// - "PROHIBITED_CONTENT" : Candidates blocked due to prohibited content. - /// - "IMAGE_SAFETY" : Candidates blocked due to unsafe image generation + /// - "BLOCKED_REASON_UNSPECIFIED" : The blocked reason is unspecified. + /// - "SAFETY" : The prompt was blocked for safety reasons. + /// - "OTHER" : The prompt was blocked for other reasons. For example, it may + /// be due to the prompt's language, or because it contains other harmful /// content. + /// - "BLOCKLIST" : The prompt was blocked because it contains a term from the + /// terminology blocklist. + /// - "PROHIBITED_CONTENT" : The prompt was blocked because it contains + /// prohibited content. + /// - "MODEL_ARMOR" : The prompt was blocked by Model Armor. + /// - "IMAGE_SAFETY" : The prompt was blocked because it contains content that + /// is unsafe for image generation. core.String? blockReason; - /// A readable block reason message. + /// A readable message that explains the reason why the prompt was blocked. /// /// Output only. core.String? blockReasonMessage; - /// Safety ratings. + /// A list of safety ratings for the prompt. + /// + /// There is one rating per category. /// /// Output only. core.List? safetyRatings; @@ -47410,66 +50274,74 @@ class GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback { }; } -/// Usage metadata about response(s). +/// Usage metadata about the content generation request and response. +/// +/// This message provides a detailed breakdown of token usage and other relevant +/// metrics. class GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata { - /// List of modalities of the cached content in the request input. + /// A detailed breakdown of the token count for each modality in the cached + /// content. /// /// Output only. core.List? cacheTokensDetails; - /// Number of tokens in the cached part in the input (the cached content). + /// The number of tokens in the cached content that was used for this request. /// /// Output only. core.int? cachedContentTokenCount; - /// Number of tokens in the response(s). + /// The total number of tokens in the generated candidates. core.int? candidatesTokenCount; - /// List of modalities that were returned in the response. + /// A detailed breakdown of the token count for each modality in the generated + /// candidates. /// /// Output only. core.List? candidatesTokensDetails; - /// Number of tokens in the request. + /// The total number of tokens in the prompt. /// - /// When `cached_content` is set, this is still the total effective prompt - /// size meaning this includes the number of tokens in the cached content. + /// This includes any text, images, or other media provided in the request. + /// When `cached_content` is set, this also includes the number of tokens in + /// the cached content. core.int? promptTokenCount; - /// List of modalities that were processed in the request input. + /// A detailed breakdown of the token count for each modality in the prompt. /// /// Output only. core.List? promptTokensDetails; - /// Number of tokens present in thoughts output. + /// The number of tokens that were part of the model's generated "thoughts" + /// output, if applicable. /// /// Output only. core.int? thoughtsTokenCount; - /// Number of tokens present in tool-use prompt(s). + /// The number of tokens in the results from tool executions, which are + /// provided back to the model as input, if applicable. /// /// Output only. core.int? toolUsePromptTokenCount; - /// List of modalities that were processed for tool-use request inputs. + /// A detailed breakdown by modality of the token counts from the results of + /// tool executions, which are provided back to the model as input. /// /// Output only. core.List? toolUsePromptTokensDetails; - /// Total token count for prompt, response candidates, and tool-use prompts - /// (if present). + /// The total number of tokens for the entire request. + /// + /// This is the sum of `prompt_token_count`, `candidates_token_count`, + /// `tool_use_prompt_token_count`, and `thoughts_token_count`. core.int? totalTokenCount; - /// Traffic type. - /// - /// This shows whether a request consumes Pay-As-You-Go or Provisioned - /// Throughput quota. + /// The traffic type for this request. /// /// Output only. /// Possible string values are: /// - "TRAFFIC_TYPE_UNSPECIFIED" : Unspecified request traffic type. - /// - "ON_DEMAND" : Type for Pay-As-You-Go traffic. + /// - "ON_DEMAND" : The request was processed using Pay-As-You-Go quota. /// - "PROVISIONED_THROUGHPUT" : Type for Provisioned Throughput traffic. core.String? trafficType; @@ -47552,6 +50424,193 @@ class GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata { }; } +/// Request message for EvaluationService.GenerateInstanceRubrics. +class GoogleCloudAiplatformV1GenerateInstanceRubricsRequest { + /// The prompt to generate rubrics from. + /// + /// For single-turn queries, this is a single instance. For multi-turn + /// queries, this is a repeated field that contains conversation history + + /// latest request. + /// + /// Required. + core.List? contents; + + /// Specification for using the rubric generation configs of a pre-defined + /// metric, e.g. "generic_quality_v1" and "instruction_following_v1". + /// + /// Some of the configs may be only used in rubric generation and not + /// supporting evaluation, e.g. "fully_customized_generic_quality_v1". If this + /// field is set, the `rubric_generation_spec` field will be ignored. + /// + /// Optional. + GoogleCloudAiplatformV1PredefinedMetricSpec? predefinedRubricGenerationSpec; + + /// Specification for how the rubrics should be generated. + /// + /// Optional. + GoogleCloudAiplatformV1RubricGenerationSpec? rubricGenerationSpec; + + GoogleCloudAiplatformV1GenerateInstanceRubricsRequest({ + this.contents, + this.predefinedRubricGenerationSpec, + this.rubricGenerationSpec, + }); + + GoogleCloudAiplatformV1GenerateInstanceRubricsRequest.fromJson(core.Map json_) + : this( + contents: + (json_['contents'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1Content.fromJson( + value as core.Map, + ), + ) + .toList(), + predefinedRubricGenerationSpec: + json_.containsKey('predefinedRubricGenerationSpec') + ? GoogleCloudAiplatformV1PredefinedMetricSpec.fromJson( + json_['predefinedRubricGenerationSpec'] + as core.Map, + ) + : null, + rubricGenerationSpec: + json_.containsKey('rubricGenerationSpec') + ? GoogleCloudAiplatformV1RubricGenerationSpec.fromJson( + json_['rubricGenerationSpec'] + as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (contents != null) 'contents': contents!, + if (predefinedRubricGenerationSpec != null) + 'predefinedRubricGenerationSpec': predefinedRubricGenerationSpec!, + if (rubricGenerationSpec != null) + 'rubricGenerationSpec': rubricGenerationSpec!, + }; +} + +/// Response message for EvaluationService.GenerateInstanceRubrics. +class GoogleCloudAiplatformV1GenerateInstanceRubricsResponse { + /// A list of generated rubrics. + /// + /// Output only. + core.List? generatedRubrics; + + GoogleCloudAiplatformV1GenerateInstanceRubricsResponse({ + this.generatedRubrics, + }); + + GoogleCloudAiplatformV1GenerateInstanceRubricsResponse.fromJson( + core.Map json_, + ) : this( + generatedRubrics: + (json_['generatedRubrics'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1Rubric.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (generatedRubrics != null) 'generatedRubrics': generatedRubrics!, + }; +} + +/// Request message for DataFoundryService.GenerateSyntheticData. +class GoogleCloudAiplatformV1GenerateSyntheticDataRequest { + /// The number of synthetic examples to generate. + /// + /// For this stateless API, the count is limited to a small number. + /// + /// Required. + core.int? count; + + /// A list of few-shot examples to guide the model's output style and format. + /// + /// Optional. + core.List? examples; + + /// The schema of the desired output, defined by a list of fields. + /// + /// Required. + core.List? outputFieldSpecs; + + /// Generate data from a high-level task description. + GoogleCloudAiplatformV1TaskDescriptionStrategy? taskDescription; + + GoogleCloudAiplatformV1GenerateSyntheticDataRequest({ + this.count, + this.examples, + this.outputFieldSpecs, + this.taskDescription, + }); + + GoogleCloudAiplatformV1GenerateSyntheticDataRequest.fromJson(core.Map json_) + : this( + count: json_['count'] as core.int?, + examples: + (json_['examples'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1SyntheticExample.fromJson( + value as core.Map, + ), + ) + .toList(), + outputFieldSpecs: + (json_['outputFieldSpecs'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1OutputFieldSpec.fromJson( + value as core.Map, + ), + ) + .toList(), + taskDescription: + json_.containsKey('taskDescription') + ? GoogleCloudAiplatformV1TaskDescriptionStrategy.fromJson( + json_['taskDescription'] + as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (count != null) 'count': count!, + if (examples != null) 'examples': examples!, + if (outputFieldSpecs != null) 'outputFieldSpecs': outputFieldSpecs!, + if (taskDescription != null) 'taskDescription': taskDescription!, + }; +} + +/// The response containing the generated data. +class GoogleCloudAiplatformV1GenerateSyntheticDataResponse { + /// A list of generated synthetic examples. + core.List? syntheticExamples; + + GoogleCloudAiplatformV1GenerateSyntheticDataResponse({ + this.syntheticExamples, + }); + + GoogleCloudAiplatformV1GenerateSyntheticDataResponse.fromJson(core.Map json_) + : this( + syntheticExamples: + (json_['syntheticExamples'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1SyntheticExample.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (syntheticExamples != null) 'syntheticExamples': syntheticExamples!, + }; +} + /// Generation config. class GoogleCloudAiplatformV1GenerationConfig { /// If enabled, audio timestamp will be included in the request to the model. @@ -47996,40 +51055,18 @@ class GoogleCloudAiplatformV1GoogleDriveSourceResourceId { /// Tool to retrieve public maps data for grounding, powered by Google. class GoogleCloudAiplatformV1GoogleMaps { - /// The authentication config to access the API. - /// - /// Deprecated. Please use auth_config instead. - @core.Deprecated( - 'Not supported. Member documentation may have more information.', - ) - GoogleCloudAiplatformV1ApiAuth? apiAuth; - - /// The authentication config to access the API. + /// If true, include the widget context token in the response. /// - /// Only API key is supported. - GoogleCloudAiplatformV1AuthConfig? authConfig; + /// Optional. + core.bool? enableWidget; - GoogleCloudAiplatformV1GoogleMaps({this.apiAuth, this.authConfig}); + GoogleCloudAiplatformV1GoogleMaps({this.enableWidget}); GoogleCloudAiplatformV1GoogleMaps.fromJson(core.Map json_) - : this( - apiAuth: - json_.containsKey('apiAuth') - ? GoogleCloudAiplatformV1ApiAuth.fromJson( - json_['apiAuth'] as core.Map, - ) - : null, - authConfig: - json_.containsKey('authConfig') - ? GoogleCloudAiplatformV1AuthConfig.fromJson( - json_['authConfig'] as core.Map, - ) - : null, - ); + : this(enableWidget: json_['enableWidget'] as core.bool?); core.Map toJson() => { - if (apiAuth != null) 'apiAuth': apiAuth!, - if (authConfig != null) 'authConfig': authConfig!, + if (enableWidget != null) 'enableWidget': enableWidget!, }; } @@ -48221,13 +51258,13 @@ class GoogleCloudAiplatformV1GroundingChunkMaps { /// Can be used to look up the Place. core.String? placeId; - /// Text of the chunk. + /// Text of the place answer. core.String? text; - /// Title of the chunk. + /// Title of the place. core.String? title; - /// URI reference of the chunk. + /// URI reference of the place. core.String? uri; GoogleCloudAiplatformV1GroundingChunkMaps({ @@ -48264,9 +51301,6 @@ class GoogleCloudAiplatformV1GroundingChunkMaps { /// Sources used to generate the place answer. class GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources { - /// A link where users can flag a problem with the generated answer. - core.String? flagContentUri; - /// Snippets of reviews that are used to generate the answer. core.List< GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet @@ -48274,14 +51308,12 @@ class GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources { reviewSnippets; GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources({ - this.flagContentUri, this.reviewSnippets, }); GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources.fromJson( core.Map json_, ) : this( - flagContentUri: json_['flagContentUri'] as core.String?, reviewSnippets: (json_['reviewSnippets'] as core.List?) ?.map( @@ -48294,72 +51326,49 @@ class GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources { ); core.Map toJson() => { - if (flagContentUri != null) 'flagContentUri': flagContentUri!, if (reviewSnippets != null) 'reviewSnippets': reviewSnippets!, }; } -/// Author attribution for a photo or review. -typedef GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution = - $AuthorAttribution; - /// Encapsulates a review snippet. class GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet { - /// This review's author. - GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution? - authorAttribution; - - /// A link where users can flag a problem with the review. - core.String? flagContentUri; - /// A link to show the review on Google Maps. core.String? googleMapsUri; - /// A string of formatted recent time, expressing the review time relative to - /// the current time in a form appropriate for the language and country. - core.String? relativePublishTimeDescription; + /// Id of the review referencing the place. + core.String? reviewId; - /// A reference representing this place review which may be used to look up - /// this place review again. - core.String? review; + /// Title of the review. + core.String? title; GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet({ - this.authorAttribution, - this.flagContentUri, this.googleMapsUri, - this.relativePublishTimeDescription, - this.review, + this.reviewId, + this.title, }); GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet.fromJson( core.Map json_, ) : this( - authorAttribution: - json_.containsKey('authorAttribution') - ? GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution.fromJson( - json_['authorAttribution'] - as core.Map, - ) - : null, - flagContentUri: json_['flagContentUri'] as core.String?, googleMapsUri: json_['googleMapsUri'] as core.String?, - relativePublishTimeDescription: - json_['relativePublishTimeDescription'] as core.String?, - review: json_['review'] as core.String?, + reviewId: json_['reviewId'] as core.String?, + title: json_['title'] as core.String?, ); core.Map toJson() => { - if (authorAttribution != null) 'authorAttribution': authorAttribution!, - if (flagContentUri != null) 'flagContentUri': flagContentUri!, if (googleMapsUri != null) 'googleMapsUri': googleMapsUri!, - if (relativePublishTimeDescription != null) - 'relativePublishTimeDescription': relativePublishTimeDescription!, - if (review != null) 'review': review!, + if (reviewId != null) 'reviewId': reviewId!, + if (title != null) 'title': title!, }; } /// Chunk from context retrieved by the retrieval tools. class GoogleCloudAiplatformV1GroundingChunkRetrievedContext { + /// The full document name for the referenced Vertex AI Search document. + /// + /// Output only. + core.String? documentName; + /// Additional context for the RAG retrieval result. /// /// This is only populated when using the RAG retrieval tool. @@ -48375,6 +51384,7 @@ class GoogleCloudAiplatformV1GroundingChunkRetrievedContext { core.String? uri; GoogleCloudAiplatformV1GroundingChunkRetrievedContext({ + this.documentName, this.ragChunk, this.text, this.title, @@ -48383,6 +51393,7 @@ class GoogleCloudAiplatformV1GroundingChunkRetrievedContext { GoogleCloudAiplatformV1GroundingChunkRetrievedContext.fromJson(core.Map json_) : this( + documentName: json_['documentName'] as core.String?, ragChunk: json_.containsKey('ragChunk') ? GoogleCloudAiplatformV1RagChunk.fromJson( @@ -48395,6 +51406,7 @@ class GoogleCloudAiplatformV1GroundingChunkRetrievedContext { ); core.Map toJson() => { + if (documentName != null) 'documentName': documentName!, if (ragChunk != null) 'ragChunk': ragChunk!, if (text != null) 'text': text!, if (title != null) 'title': title!, @@ -48457,6 +51469,14 @@ class GoogleCloudAiplatformV1GroundingMetadata { /// Optional. GoogleCloudAiplatformV1SearchEntryPoint? searchEntryPoint; + /// List of source flagging uris. + /// + /// This is currently populated only for Google Maps grounding. + /// + /// Optional. Output only. + core.List? + sourceFlaggingUris; + /// Web search queries for the following-up web search. /// /// Optional. @@ -48468,6 +51488,7 @@ class GoogleCloudAiplatformV1GroundingMetadata { this.groundingSupports, this.retrievalMetadata, this.searchEntryPoint, + this.sourceFlaggingUris, this.webSearchQueries, }); @@ -48505,6 +51526,15 @@ class GoogleCloudAiplatformV1GroundingMetadata { as core.Map, ) : null, + sourceFlaggingUris: + (json_['sourceFlaggingUris'] as core.List?) + ?.map( + (value) => + GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri.fromJson( + value as core.Map, + ), + ) + .toList(), webSearchQueries: (json_['webSearchQueries'] as core.List?) ?.map((value) => value as core.String) @@ -48518,10 +51548,39 @@ class GoogleCloudAiplatformV1GroundingMetadata { if (groundingSupports != null) 'groundingSupports': groundingSupports!, if (retrievalMetadata != null) 'retrievalMetadata': retrievalMetadata!, if (searchEntryPoint != null) 'searchEntryPoint': searchEntryPoint!, + if (sourceFlaggingUris != null) 'sourceFlaggingUris': sourceFlaggingUris!, if (webSearchQueries != null) 'webSearchQueries': webSearchQueries!, }; } +/// Source content flagging uri for a place or review. +/// +/// This is currently populated only for Google Maps grounding. +class GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri { + /// A link where users can flag a problem with the source (place or review). + core.String? flagContentUri; + + /// Id of the place or review. + core.String? sourceId; + + GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri({ + this.flagContentUri, + this.sourceId, + }); + + GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri.fromJson( + core.Map json_, + ) : this( + flagContentUri: json_['flagContentUri'] as core.String?, + sourceId: json_['sourceId'] as core.String?, + ); + + core.Map toJson() => { + if (flagContentUri != null) 'flagContentUri': flagContentUri!, + if (sourceId != null) 'sourceId': sourceId!, + }; +} + /// Grounding support. class GoogleCloudAiplatformV1GroundingSupport { /// Confidence score of the support references. @@ -50371,6 +53430,35 @@ class GoogleCloudAiplatformV1IntegratedGradientsAttribution { }; } +/// Request message for PredictionService.Invoke. +class GoogleCloudAiplatformV1InvokeRequest { + /// ID of the DeployedModel that serves the invoke request. + core.String? deployedModelId; + + /// The invoke method input. + /// + /// Supports HTTP headers and arbitrary data payload. + GoogleApiHttpBody? httpBody; + + GoogleCloudAiplatformV1InvokeRequest({this.deployedModelId, this.httpBody}); + + GoogleCloudAiplatformV1InvokeRequest.fromJson(core.Map json_) + : this( + deployedModelId: json_['deployedModelId'] as core.String?, + httpBody: + json_.containsKey('httpBody') + ? GoogleApiHttpBody.fromJson( + json_['httpBody'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (deployedModelId != null) 'deployedModelId': deployedModelId!, + if (httpBody != null) 'httpBody': httpBody!, + }; +} + /// The Jira source for the ImportRagFilesRequest. class GoogleCloudAiplatformV1JiraSource { /// The Jira queries. @@ -50466,6 +53554,100 @@ class GoogleCloudAiplatformV1JiraSourceJiraQueries { }; } +/// Specification for an LLM based metric. +class GoogleCloudAiplatformV1LLMBasedMetricSpec { + /// Optional additional configuration for the metric. + /// + /// Optional. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map? additionalConfig; + + /// Optional configuration for the judge LLM (Autorater). + /// + /// Optional. + GoogleCloudAiplatformV1AutoraterConfig? judgeAutoraterConfig; + + /// Template for the prompt sent to the judge model. + /// + /// Required. + core.String? metricPromptTemplate; + + /// Dynamically generate rubrics using a predefined spec. + GoogleCloudAiplatformV1PredefinedMetricSpec? predefinedRubricGenerationSpec; + + /// Dynamically generate rubrics using this specification. + GoogleCloudAiplatformV1RubricGenerationSpec? rubricGenerationSpec; + + /// Use a pre-defined group of rubrics associated with the input. + /// + /// Refers to a key in the rubric_groups map of EvaluationInstance. + core.String? rubricGroupKey; + + /// System instructions for the judge model. + /// + /// Optional. + core.String? systemInstruction; + + GoogleCloudAiplatformV1LLMBasedMetricSpec({ + this.additionalConfig, + this.judgeAutoraterConfig, + this.metricPromptTemplate, + this.predefinedRubricGenerationSpec, + this.rubricGenerationSpec, + this.rubricGroupKey, + this.systemInstruction, + }); + + GoogleCloudAiplatformV1LLMBasedMetricSpec.fromJson(core.Map json_) + : this( + additionalConfig: + json_.containsKey('additionalConfig') + ? json_['additionalConfig'] + as core.Map + : null, + judgeAutoraterConfig: + json_.containsKey('judgeAutoraterConfig') + ? GoogleCloudAiplatformV1AutoraterConfig.fromJson( + json_['judgeAutoraterConfig'] + as core.Map, + ) + : null, + metricPromptTemplate: json_['metricPromptTemplate'] as core.String?, + predefinedRubricGenerationSpec: + json_.containsKey('predefinedRubricGenerationSpec') + ? GoogleCloudAiplatformV1PredefinedMetricSpec.fromJson( + json_['predefinedRubricGenerationSpec'] + as core.Map, + ) + : null, + rubricGenerationSpec: + json_.containsKey('rubricGenerationSpec') + ? GoogleCloudAiplatformV1RubricGenerationSpec.fromJson( + json_['rubricGenerationSpec'] + as core.Map, + ) + : null, + rubricGroupKey: json_['rubricGroupKey'] as core.String?, + systemInstruction: json_['systemInstruction'] as core.String?, + ); + + core.Map toJson() => { + if (additionalConfig != null) 'additionalConfig': additionalConfig!, + if (judgeAutoraterConfig != null) + 'judgeAutoraterConfig': judgeAutoraterConfig!, + if (metricPromptTemplate != null) + 'metricPromptTemplate': metricPromptTemplate!, + if (predefinedRubricGenerationSpec != null) + 'predefinedRubricGenerationSpec': predefinedRubricGenerationSpec!, + if (rubricGenerationSpec != null) + 'rubricGenerationSpec': rubricGenerationSpec!, + if (rubricGroupKey != null) 'rubricGroupKey': rubricGroupKey!, + if (systemInstruction != null) 'systemInstruction': systemInstruction!, + }; +} + /// Contains information about the Large Model. class GoogleCloudAiplatformV1LargeModelReference { /// The unique name of the large Foundation or pre-built model. @@ -50983,6 +54165,102 @@ class GoogleCloudAiplatformV1ListEntityTypesResponse { }; } +/// Response message for EvaluationManagementService.ListEvaluationItems. +class GoogleCloudAiplatformV1ListEvaluationItemsResponse { + /// List of EvaluationItems in the requested page. + core.List? evaluationItems; + + /// A token to retrieve the next page of results. + core.String? nextPageToken; + + GoogleCloudAiplatformV1ListEvaluationItemsResponse({ + this.evaluationItems, + this.nextPageToken, + }); + + GoogleCloudAiplatformV1ListEvaluationItemsResponse.fromJson(core.Map json_) + : this( + evaluationItems: + (json_['evaluationItems'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1EvaluationItem.fromJson( + value as core.Map, + ), + ) + .toList(), + nextPageToken: json_['nextPageToken'] as core.String?, + ); + + core.Map toJson() => { + if (evaluationItems != null) 'evaluationItems': evaluationItems!, + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + }; +} + +/// Response message for EvaluationManagementService.ListEvaluationRuns. +class GoogleCloudAiplatformV1ListEvaluationRunsResponse { + /// List of EvaluationRuns in the requested page. + core.List? evaluationRuns; + + /// A token to retrieve the next page of results. + core.String? nextPageToken; + + GoogleCloudAiplatformV1ListEvaluationRunsResponse({ + this.evaluationRuns, + this.nextPageToken, + }); + + GoogleCloudAiplatformV1ListEvaluationRunsResponse.fromJson(core.Map json_) + : this( + evaluationRuns: + (json_['evaluationRuns'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1EvaluationRun.fromJson( + value as core.Map, + ), + ) + .toList(), + nextPageToken: json_['nextPageToken'] as core.String?, + ); + + core.Map toJson() => { + if (evaluationRuns != null) 'evaluationRuns': evaluationRuns!, + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + }; +} + +/// Response message for EvaluationManagementService.ListEvaluationSets. +class GoogleCloudAiplatformV1ListEvaluationSetsResponse { + /// List of EvaluationSets in the requested page. + core.List? evaluationSets; + + /// A token to retrieve the next page of results. + core.String? nextPageToken; + + GoogleCloudAiplatformV1ListEvaluationSetsResponse({ + this.evaluationSets, + this.nextPageToken, + }); + + GoogleCloudAiplatformV1ListEvaluationSetsResponse.fromJson(core.Map json_) + : this( + evaluationSets: + (json_['evaluationSets'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1EvaluationSet.fromJson( + value as core.Map, + ), + ) + .toList(), + nextPageToken: json_['nextPageToken'] as core.String?, + ); + + core.Map toJson() => { + if (evaluationSets != null) 'evaluationSets': evaluationSets!, + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + }; +} + /// Response message for MetadataService.ListExecutions. class GoogleCloudAiplatformV1ListExecutionsResponse { /// The Executions retrieved from the MetadataStore. @@ -52944,12 +56222,18 @@ class GoogleCloudAiplatformV1Metric { /// Spec for exact match metric. GoogleCloudAiplatformV1ExactMatchSpec? exactMatchSpec; + /// Spec for an LLM based metric. + GoogleCloudAiplatformV1LLMBasedMetricSpec? llmBasedMetricSpec; + /// Spec for pairwise metric. GoogleCloudAiplatformV1PairwiseMetricSpec? pairwiseMetricSpec; /// Spec for pointwise metric. GoogleCloudAiplatformV1PointwiseMetricSpec? pointwiseMetricSpec; + /// The spec for a pre-defined metric. + GoogleCloudAiplatformV1PredefinedMetricSpec? predefinedMetricSpec; + /// Spec for rouge metric. GoogleCloudAiplatformV1RougeSpec? rougeSpec; @@ -52957,8 +56241,10 @@ class GoogleCloudAiplatformV1Metric { this.aggregationMetrics, this.bleuSpec, this.exactMatchSpec, + this.llmBasedMetricSpec, this.pairwiseMetricSpec, this.pointwiseMetricSpec, + this.predefinedMetricSpec, this.rougeSpec, }); @@ -52981,6 +56267,13 @@ class GoogleCloudAiplatformV1Metric { as core.Map, ) : null, + llmBasedMetricSpec: + json_.containsKey('llmBasedMetricSpec') + ? GoogleCloudAiplatformV1LLMBasedMetricSpec.fromJson( + json_['llmBasedMetricSpec'] + as core.Map, + ) + : null, pairwiseMetricSpec: json_.containsKey('pairwiseMetricSpec') ? GoogleCloudAiplatformV1PairwiseMetricSpec.fromJson( @@ -52995,6 +56288,13 @@ class GoogleCloudAiplatformV1Metric { as core.Map, ) : null, + predefinedMetricSpec: + json_.containsKey('predefinedMetricSpec') + ? GoogleCloudAiplatformV1PredefinedMetricSpec.fromJson( + json_['predefinedMetricSpec'] + as core.Map, + ) + : null, rougeSpec: json_.containsKey('rougeSpec') ? GoogleCloudAiplatformV1RougeSpec.fromJson( @@ -53007,13 +56307,75 @@ class GoogleCloudAiplatformV1Metric { if (aggregationMetrics != null) 'aggregationMetrics': aggregationMetrics!, if (bleuSpec != null) 'bleuSpec': bleuSpec!, if (exactMatchSpec != null) 'exactMatchSpec': exactMatchSpec!, + if (llmBasedMetricSpec != null) 'llmBasedMetricSpec': llmBasedMetricSpec!, if (pairwiseMetricSpec != null) 'pairwiseMetricSpec': pairwiseMetricSpec!, if (pointwiseMetricSpec != null) 'pointwiseMetricSpec': pointwiseMetricSpec!, + if (predefinedMetricSpec != null) + 'predefinedMetricSpec': predefinedMetricSpec!, if (rougeSpec != null) 'rougeSpec': rougeSpec!, }; } +/// Result for a single metric on a single instance. +class GoogleCloudAiplatformV1MetricResult { + /// The error status for the metric result. + /// + /// Output only. + GoogleRpcStatus? error; + + /// The explanation for the metric result. + /// + /// Output only. + core.String? explanation; + + /// For rubric-based metrics, the verdicts for each rubric. + /// + /// Output only. + core.List? rubricVerdicts; + + /// The score for the metric. + /// + /// Please refer to each metric's documentation for the meaning of the score. + /// + /// Output only. + core.double? score; + + GoogleCloudAiplatformV1MetricResult({ + this.error, + this.explanation, + this.rubricVerdicts, + this.score, + }); + + GoogleCloudAiplatformV1MetricResult.fromJson(core.Map json_) + : this( + error: + json_.containsKey('error') + ? GoogleRpcStatus.fromJson( + json_['error'] as core.Map, + ) + : null, + explanation: json_['explanation'] as core.String?, + rubricVerdicts: + (json_['rubricVerdicts'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1RubricVerdict.fromJson( + value as core.Map, + ), + ) + .toList(), + score: (json_['score'] as core.num?)?.toDouble(), + ); + + core.Map toJson() => { + if (error != null) 'error': error!, + if (explanation != null) 'explanation': explanation!, + if (rubricVerdicts != null) 'rubricVerdicts': rubricVerdicts!, + if (score != null) 'score': score!, + }; +} + /// Input for MetricX metric. class GoogleCloudAiplatformV1MetricxInput { /// Metricx instance. @@ -54152,6 +57514,36 @@ class GoogleCloudAiplatformV1Model { }; } +/// Configuration for Model Armor integrations of prompt and responses. +class GoogleCloudAiplatformV1ModelArmorConfig { + /// The name of the Model Armor template to use for prompt sanitization. + /// + /// Optional. + core.String? promptTemplateName; + + /// The name of the Model Armor template to use for response sanitization. + /// + /// Optional. + core.String? responseTemplateName; + + GoogleCloudAiplatformV1ModelArmorConfig({ + this.promptTemplateName, + this.responseTemplateName, + }); + + GoogleCloudAiplatformV1ModelArmorConfig.fromJson(core.Map json_) + : this( + promptTemplateName: json_['promptTemplateName'] as core.String?, + responseTemplateName: json_['responseTemplateName'] as core.String?, + ); + + core.Map toJson() => { + if (promptTemplateName != null) 'promptTemplateName': promptTemplateName!, + if (responseTemplateName != null) + 'responseTemplateName': responseTemplateName!, + }; +} + /// User input field to specify the base model source. /// /// Currently it only supports specifing the Model Garden models and Genie @@ -58687,6 +62079,56 @@ class GoogleCloudAiplatformV1OutputConfig { }; } +/// Defines a specification for a single output field. +class GoogleCloudAiplatformV1OutputFieldSpec { + /// The name of the output field. + /// + /// Required. + core.String? fieldName; + + /// The data type of the field. + /// + /// Defaults to CONTENT if not set. + /// + /// Optional. + /// Possible string values are: + /// - "FIELD_TYPE_UNSPECIFIED" : Field type is unspecified. + /// - "CONTENT" : Arbitrary content field type. + /// - "TEXT" : Text field type. + /// - "IMAGE" : Image field type. + /// - "AUDIO" : Audio field type. + core.String? fieldType; + + /// Optional, but recommended. + /// + /// Additional guidance specific to this field to provide targeted + /// instructions for the LLM to generate the content of a single output field. + /// While the LLM can sometimes infer content from the field name, providing + /// explicit guidance is preferred. + /// + /// Optional. + core.String? guidance; + + GoogleCloudAiplatformV1OutputFieldSpec({ + this.fieldName, + this.fieldType, + this.guidance, + }); + + GoogleCloudAiplatformV1OutputFieldSpec.fromJson(core.Map json_) + : this( + fieldName: json_['fieldName'] as core.String?, + fieldType: json_['fieldType'] as core.String?, + guidance: json_['guidance'] as core.String?, + ); + + core.Map toJson() => { + if (fieldName != null) 'fieldName': fieldName!, + if (fieldType != null) 'fieldType': fieldType!, + if (guidance != null) 'guidance': guidance!, + }; +} + /// PSC config that is used to automatically create PSC endpoints in the user /// projects. class GoogleCloudAiplatformV1PSCAutomationConfig { @@ -60847,6 +64289,44 @@ class GoogleCloudAiplatformV1PrebuiltVoiceConfig { }; } +/// The spec for a pre-defined metric. +class GoogleCloudAiplatformV1PredefinedMetricSpec { + /// The name of a pre-defined metric, such as "instruction_following_v1" or + /// "text_quality_v1". + /// + /// Required. + core.String? metricSpecName; + + /// The parameters needed to run the pre-defined metric. + /// + /// Optional. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map? metricSpecParameters; + + GoogleCloudAiplatformV1PredefinedMetricSpec({ + this.metricSpecName, + this.metricSpecParameters, + }); + + GoogleCloudAiplatformV1PredefinedMetricSpec.fromJson(core.Map json_) + : this( + metricSpecName: json_['metricSpecName'] as core.String?, + metricSpecParameters: + json_.containsKey('metricSpecParameters') + ? json_['metricSpecParameters'] + as core.Map + : null, + ); + + core.Map toJson() => { + if (metricSpecName != null) 'metricSpecName': metricSpecName!, + if (metricSpecParameters != null) + 'metricSpecParameters': metricSpecParameters!, + }; +} + /// Assigns input data to training, validation, and test sets based on the value /// of a provided key. /// @@ -65029,6 +68509,9 @@ class GoogleCloudAiplatformV1ReasoningEngine { /// Optional. core.String? etag; + /// Labels for the ReasoningEngine. + core.Map? labels; + /// Identifier. /// /// The resource name of the ReasoningEngine. Format: @@ -65051,6 +68534,7 @@ class GoogleCloudAiplatformV1ReasoningEngine { this.displayName, this.encryptionSpec, this.etag, + this.labels, this.name, this.spec, this.updateTime, @@ -65069,6 +68553,9 @@ class GoogleCloudAiplatformV1ReasoningEngine { ) : null, etag: json_['etag'] as core.String?, + labels: (json_['labels'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), name: json_['name'] as core.String?, spec: json_.containsKey('spec') @@ -65085,6 +68572,7 @@ class GoogleCloudAiplatformV1ReasoningEngine { if (displayName != null) 'displayName': displayName!, if (encryptionSpec != null) 'encryptionSpec': encryptionSpec!, if (etag != null) 'etag': etag!, + if (labels != null) 'labels': labels!, if (name != null) 'name': name!, if (spec != null) 'spec': spec!, if (updateTime != null) 'updateTime': updateTime!, @@ -65175,6 +68663,13 @@ class GoogleCloudAiplatformV1ReasoningEngineSpec { /// The specification of a Reasoning Engine deployment. class GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec { + /// Concurrency for each container and agent server. + /// + /// Recommended value: 2 * cpu + 1. Defaults to 9. + /// + /// Optional. + core.int? containerConcurrency; + /// Environment variables to be set with the Reasoning Engine deployment. /// /// The environment variables can be updated through the UpdateReasoningEngine @@ -65183,6 +68678,41 @@ class GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec { /// Optional. core.List? env; + /// The maximum number of application instances that can be launched to handle + /// increased traffic. + /// + /// Defaults to 100. Range: \[1, 1000\]. If VPC-SC or PSC-I is enabled, the + /// acceptable range is \[1, 100\]. + /// + /// Optional. + core.int? maxInstances; + + /// The minimum number of application instances that will be kept running at + /// all times. + /// + /// Defaults to 1. Range: \[0, 10\]. + /// + /// Optional. + core.int? minInstances; + + /// Configuration for PSC-I. + /// + /// Optional. + GoogleCloudAiplatformV1PscInterfaceConfig? pscInterfaceConfig; + + /// Resource limits for each container. + /// + /// Only 'cpu' and 'memory' keys are supported. Defaults to {"cpu": "4", + /// "memory": "4Gi"}. * The only supported values for CPU are '1', '2', '4', + /// '6' and '8'. For more information, go to + /// https://cloud.google.com/run/docs/configuring/cpu. * The only supported + /// values for memory are '1Gi', '2Gi', ... '32 Gi'. * For required cpu on + /// different memory values, go to + /// https://cloud.google.com/run/docs/configuring/memory-limits + /// + /// Optional. + core.Map? resourceLimits; + /// Environment variables where the value is a secret in Cloud Secret Manager. /// /// To use this feature, add 'Secret Manager Secret Accessor' role @@ -65193,13 +68723,19 @@ class GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec { core.List? secretEnv; GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec({ + this.containerConcurrency, this.env, + this.maxInstances, + this.minInstances, + this.pscInterfaceConfig, + this.resourceLimits, this.secretEnv, }); GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec.fromJson( core.Map json_, ) : this( + containerConcurrency: json_['containerConcurrency'] as core.int?, env: (json_['env'] as core.List?) ?.map( @@ -65208,6 +68744,18 @@ class GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec { ), ) .toList(), + maxInstances: json_['maxInstances'] as core.int?, + minInstances: json_['minInstances'] as core.int?, + pscInterfaceConfig: + json_.containsKey('pscInterfaceConfig') + ? GoogleCloudAiplatformV1PscInterfaceConfig.fromJson( + json_['pscInterfaceConfig'] + as core.Map, + ) + : null, + resourceLimits: (json_['resourceLimits'] + as core.Map?) + ?.map((key, value) => core.MapEntry(key, value as core.String)), secretEnv: (json_['secretEnv'] as core.List?) ?.map( @@ -65219,7 +68767,13 @@ class GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec { ); core.Map toJson() => { + if (containerConcurrency != null) + 'containerConcurrency': containerConcurrency!, if (env != null) 'env': env!, + if (maxInstances != null) 'maxInstances': maxInstances!, + if (minInstances != null) 'minInstances': minInstances!, + if (pscInterfaceConfig != null) 'pscInterfaceConfig': pscInterfaceConfig!, + if (resourceLimits != null) 'resourceLimits': resourceLimits!, if (secretEnv != null) 'secretEnv': secretEnv!, }; } @@ -66026,6 +69580,68 @@ class GoogleCloudAiplatformV1RougeSpec { }; } +/// Message representing a single testable criterion for evaluation. +/// +/// One input prompt could have multiple rubrics. +class GoogleCloudAiplatformV1Rubric { + /// The actual testable criteria for the rubric. + /// + /// Required. + GoogleCloudAiplatformV1RubricContent? content; + + /// The relative importance of this rubric. + /// + /// Optional. + /// Possible string values are: + /// - "IMPORTANCE_UNSPECIFIED" : Importance is not specified. + /// - "HIGH" : High importance. + /// - "MEDIUM" : Medium importance. + /// - "LOW" : Low importance. + core.String? importance; + + /// Unique identifier for the rubric. + /// + /// This ID is used to refer to this rubric, e.g., in RubricVerdict. + core.String? rubricId; + + /// A type designator for the rubric, which can inform how it's evaluated or + /// interpreted by systems or users. + /// + /// It's recommended to use consistent, well-defined, upper snake_case + /// strings. Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT", + /// "INSTRUCTION_ADHERENCE". + /// + /// Optional. + core.String? type; + + GoogleCloudAiplatformV1Rubric({ + this.content, + this.importance, + this.rubricId, + this.type, + }); + + GoogleCloudAiplatformV1Rubric.fromJson(core.Map json_) + : this( + content: + json_.containsKey('content') + ? GoogleCloudAiplatformV1RubricContent.fromJson( + json_['content'] as core.Map, + ) + : null, + importance: json_['importance'] as core.String?, + rubricId: json_['rubricId'] as core.String?, + type: json_['type'] as core.String?, + ); + + core.Map toJson() => { + if (content != null) 'content': content!, + if (importance != null) 'importance': importance!, + if (rubricId != null) 'rubricId': rubricId!, + if (type != null) 'type': type!, + }; +} + /// Instance and metric spec for RubricBasedInstructionFollowing metric. class GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput { /// Instance for RubricBasedInstructionFollowing metric. @@ -66133,6 +69749,45 @@ class GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult { /// verdicts corresponding to rubrics along with overall score. typedef GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec = $Empty; +/// Content of the rubric, defining the testable criteria. +class GoogleCloudAiplatformV1RubricContent { + /// Evaluation criteria based on a specific property. + GoogleCloudAiplatformV1RubricContentProperty? property; + + GoogleCloudAiplatformV1RubricContent({this.property}); + + GoogleCloudAiplatformV1RubricContent.fromJson(core.Map json_) + : this( + property: + json_.containsKey('property') + ? GoogleCloudAiplatformV1RubricContentProperty.fromJson( + json_['property'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (property != null) 'property': property!, + }; +} + +/// Defines criteria based on a specific property. +class GoogleCloudAiplatformV1RubricContentProperty { + /// Description of the property being evaluated. + /// + /// Example: "The model's response is grammatically correct." + core.String? description; + + GoogleCloudAiplatformV1RubricContentProperty({this.description}); + + GoogleCloudAiplatformV1RubricContentProperty.fromJson(core.Map json_) + : this(description: json_['description'] as core.String?); + + core.Map toJson() => { + if (description != null) 'description': description!, + }; +} + /// Rubric critique result. class GoogleCloudAiplatformV1RubricCritiqueResult { /// Rubric to be evaluated. @@ -66159,6 +69814,163 @@ class GoogleCloudAiplatformV1RubricCritiqueResult { }; } +/// Specification for how rubrics should be generated. +class GoogleCloudAiplatformV1RubricGenerationSpec { + /// Configuration for the model used in rubric generation. + /// + /// Configs including sampling count and base model can be specified here. + /// Flipping is not supported for rubric generation. + GoogleCloudAiplatformV1AutoraterConfig? modelConfig; + + /// Template for the prompt used to generate rubrics. + /// + /// The details should be updated based on the most-recent recipe + /// requirements. + core.String? promptTemplate; + + /// The type of rubric content to be generated. + /// Possible string values are: + /// - "RUBRIC_CONTENT_TYPE_UNSPECIFIED" : The content type to generate is not + /// specified. + /// - "PROPERTY" : Generate rubrics based on properties. + /// - "NL_QUESTION_ANSWER" : Generate rubrics in an NL question answer format. + /// - "PYTHON_CODE_ASSERTION" : Generate rubrics in a unit test format. + core.String? rubricContentType; + + /// An optional, pre-defined list of allowed types for generated rubrics. + /// + /// If this field is provided, it implies `include_rubric_type` should be + /// true, and the generated rubric types should be chosen from this ontology. + /// + /// Optional. + core.List? rubricTypeOntology; + + GoogleCloudAiplatformV1RubricGenerationSpec({ + this.modelConfig, + this.promptTemplate, + this.rubricContentType, + this.rubricTypeOntology, + }); + + GoogleCloudAiplatformV1RubricGenerationSpec.fromJson(core.Map json_) + : this( + modelConfig: + json_.containsKey('modelConfig') + ? GoogleCloudAiplatformV1AutoraterConfig.fromJson( + json_['modelConfig'] as core.Map, + ) + : null, + promptTemplate: json_['promptTemplate'] as core.String?, + rubricContentType: json_['rubricContentType'] as core.String?, + rubricTypeOntology: + (json_['rubricTypeOntology'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (modelConfig != null) 'modelConfig': modelConfig!, + if (promptTemplate != null) 'promptTemplate': promptTemplate!, + if (rubricContentType != null) 'rubricContentType': rubricContentType!, + if (rubricTypeOntology != null) 'rubricTypeOntology': rubricTypeOntology!, + }; +} + +/// A group of rubrics, used for grouping rubrics based on a metric or a +/// version. +class GoogleCloudAiplatformV1RubricGroup { + /// Human-readable name for the group. + /// + /// This should be unique within a given context if used for display or + /// selection. Example: "Instruction Following V1", "Content Quality - + /// Summarization Task". + core.String? displayName; + + /// Unique identifier for the group. + core.String? groupId; + + /// Rubrics that are part of this group. + core.List? rubrics; + + GoogleCloudAiplatformV1RubricGroup({ + this.displayName, + this.groupId, + this.rubrics, + }); + + GoogleCloudAiplatformV1RubricGroup.fromJson(core.Map json_) + : this( + displayName: json_['displayName'] as core.String?, + groupId: json_['groupId'] as core.String?, + rubrics: + (json_['rubrics'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1Rubric.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (displayName != null) 'displayName': displayName!, + if (groupId != null) 'groupId': groupId!, + if (rubrics != null) 'rubrics': rubrics!, + }; +} + +/// Represents the verdict of an evaluation against a single rubric. +class GoogleCloudAiplatformV1RubricVerdict { + /// The full rubric definition that was evaluated. + /// + /// Storing this ensures the verdict is self-contained and understandable, + /// especially if the original rubric definition changes or was dynamically + /// generated. + /// + /// Required. + GoogleCloudAiplatformV1Rubric? evaluatedRubric; + + /// Human-readable reasoning or explanation for the verdict. + /// + /// This can include specific examples or details from the evaluated content + /// that justify the given verdict. + /// + /// Optional. + core.String? reasoning; + + /// Outcome of the evaluation against the rubric, represented as a boolean. + /// + /// `true` indicates a "Pass", `false` indicates a "Fail". + /// + /// Required. + core.bool? verdict; + + GoogleCloudAiplatformV1RubricVerdict({ + this.evaluatedRubric, + this.reasoning, + this.verdict, + }); + + GoogleCloudAiplatformV1RubricVerdict.fromJson(core.Map json_) + : this( + evaluatedRubric: + json_.containsKey('evaluatedRubric') + ? GoogleCloudAiplatformV1Rubric.fromJson( + json_['evaluatedRubric'] + as core.Map, + ) + : null, + reasoning: json_['reasoning'] as core.String?, + verdict: json_['verdict'] as core.bool?, + ); + + core.Map toJson() => { + if (evaluatedRubric != null) 'evaluatedRubric': evaluatedRubric!, + if (reasoning != null) 'reasoning': reasoning!, + if (verdict != null) 'verdict': verdict!, + }; +} + /// Input for safety metric. class GoogleCloudAiplatformV1SafetyInput { /// Safety instance. @@ -70142,6 +73954,49 @@ class GoogleCloudAiplatformV1SummarizationVerbositySpec { }; } +/// The summary metrics for the evaluation run. +class GoogleCloudAiplatformV1SummaryMetrics { + /// The number of items that failed to be evaluated. + /// + /// Optional. + core.int? failedItems; + + /// Map of metric name to metric value. + /// + /// Optional. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map? metrics; + + /// The total number of items that were evaluated. + /// + /// Optional. + core.int? totalItems; + + GoogleCloudAiplatformV1SummaryMetrics({ + this.failedItems, + this.metrics, + this.totalItems, + }); + + GoogleCloudAiplatformV1SummaryMetrics.fromJson(core.Map json_) + : this( + failedItems: json_['failedItems'] as core.int?, + metrics: + json_.containsKey('metrics') + ? json_['metrics'] as core.Map + : null, + totalItems: json_['totalItems'] as core.int?, + ); + + core.Map toJson() => { + if (failedItems != null) 'failedItems': failedItems!, + if (metrics != null) 'metrics': metrics!, + if (totalItems != null) 'totalItems': totalItems!, + }; +} + /// Hyperparameters for SFT. class GoogleCloudAiplatformV1SupervisedHyperParameters { /// Adapter size for tuning. @@ -70577,6 +74432,66 @@ class GoogleCloudAiplatformV1SyncFeatureViewResponse { }; } +/// Represents a single synthetic example, composed of multiple fields. +/// +/// Used for providing few-shot examples in the request and for returning +/// generated examples in the response. +class GoogleCloudAiplatformV1SyntheticExample { + /// A list of fields that constitute an example. + /// + /// Required. + core.List? fields; + + GoogleCloudAiplatformV1SyntheticExample({this.fields}); + + GoogleCloudAiplatformV1SyntheticExample.fromJson(core.Map json_) + : this( + fields: + (json_['fields'] as core.List?) + ?.map( + (value) => GoogleCloudAiplatformV1SyntheticField.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (fields != null) 'fields': fields!, + }; +} + +/// Represents a single named field within a SyntheticExample. +class GoogleCloudAiplatformV1SyntheticField { + /// The content of the field. + /// + /// Required. + GoogleCloudAiplatformV1Content? content; + + /// The name of the field. + /// + /// Optional. + core.String? fieldName; + + GoogleCloudAiplatformV1SyntheticField({this.content, this.fieldName}); + + GoogleCloudAiplatformV1SyntheticField.fromJson(core.Map json_) + : this( + content: + json_.containsKey('content') + ? GoogleCloudAiplatformV1Content.fromJson( + json_['content'] as core.Map, + ) + : null, + fieldName: json_['fieldName'] as core.String?, + ); + + core.Map toJson() => { + if (content != null) 'content': content!, + if (fieldName != null) 'fieldName': fieldName!, + }; +} + /// The storage details for TFRecord output content. class GoogleCloudAiplatformV1TFRecordDestination { /// Google Cloud Storage location. @@ -70602,6 +74517,23 @@ class GoogleCloudAiplatformV1TFRecordDestination { }; } +/// Defines a generation strategy based on a high-level task description. +class GoogleCloudAiplatformV1TaskDescriptionStrategy { + /// A high-level description of the synthetic data to be generated. + /// + /// Required. + core.String? taskDescription; + + GoogleCloudAiplatformV1TaskDescriptionStrategy({this.taskDescription}); + + GoogleCloudAiplatformV1TaskDescriptionStrategy.fromJson(core.Map json_) + : this(taskDescription: json_['taskDescription'] as core.String?); + + core.Map toJson() => { + if (taskDescription != null) 'taskDescription': taskDescription!, + }; +} + /// A tensor value type. class GoogleCloudAiplatformV1Tensor { /// Type specific representations that make it easy to create tensor protos in @@ -71616,11 +75548,12 @@ class GoogleCloudAiplatformV1Tool { /// Optional. GoogleCloudAiplatformV1ToolGoogleSearch? googleSearch; - /// GoogleSearchRetrieval tool type. - /// - /// Specialized retrieval tool that is powered by Google search. + /// Specialized retrieval tool that is powered by Google Search. /// /// Optional. + @core.Deprecated( + 'Not supported. Member documentation may have more information.', + ) GoogleCloudAiplatformV1GoogleSearchRetrieval? googleSearchRetrieval; /// Retrieval tool type. diff --git a/generated/googleapis/lib/alloydb/v1.dart b/generated/googleapis/lib/alloydb/v1.dart index 85d2c00de..5d1bfd9af 100644 --- a/generated/googleapis/lib/alloydb/v1.dart +++ b/generated/googleapis/lib/alloydb/v1.dart @@ -154,9 +154,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -2503,6 +2503,7 @@ class Backup { /// - "POSTGRES_14" : The database version is Postgres 14. /// - "POSTGRES_15" : The database version is Postgres 15. /// - "POSTGRES_16" : The database version is Postgres 16. + /// - "POSTGRES_17" : The database version is Postgres 17. core.String? databaseVersion; /// Delete time stamp @@ -2911,6 +2912,7 @@ class Cluster { /// - "POSTGRES_14" : The database version is Postgres 14. /// - "POSTGRES_15" : The database version is Postgres 15. /// - "POSTGRES_16" : The database version is Postgres 16. + /// - "POSTGRES_17" : The database version is Postgres 17. core.String? databaseVersion; /// Delete time stamp @@ -6085,6 +6087,7 @@ class UpgradeClusterRequest { /// - "POSTGRES_14" : The database version is Postgres 14. /// - "POSTGRES_15" : The database version is Postgres 15. /// - "POSTGRES_16" : The database version is Postgres 16. + /// - "POSTGRES_17" : The database version is Postgres 17. core.String? version; UpgradeClusterRequest({ diff --git a/generated/googleapis/lib/analyticshub/v1.dart b/generated/googleapis/lib/analyticshub/v1.dart index 127553836..314ecbd83 100644 --- a/generated/googleapis/lib/analyticshub/v1.dart +++ b/generated/googleapis/lib/analyticshub/v1.dart @@ -28,6 +28,7 @@ /// - [ProjectsLocationsResource] /// - [ProjectsLocationsDataExchangesResource] /// - [ProjectsLocationsDataExchangesListingsResource] +/// - [ProjectsLocationsDataExchangesQueryTemplatesResource] /// - [ProjectsLocationsSubscriptionsResource] library; @@ -173,6 +174,8 @@ class ProjectsLocationsDataExchangesResource { ProjectsLocationsDataExchangesListingsResource get listings => ProjectsLocationsDataExchangesListingsResource(_requester); + ProjectsLocationsDataExchangesQueryTemplatesResource get queryTemplates => + ProjectsLocationsDataExchangesQueryTemplatesResource(_requester); ProjectsLocationsDataExchangesResource(commons.ApiRequester client) : _requester = client; @@ -1105,6 +1108,325 @@ class ProjectsLocationsDataExchangesListingsResource { } } +class ProjectsLocationsDataExchangesQueryTemplatesResource { + final commons.ApiRequester _requester; + + ProjectsLocationsDataExchangesQueryTemplatesResource( + commons.ApiRequester client, + ) : _requester = client; + + /// Approves a query template. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Required. The resource path of the QueryTemplate. e.g. + /// `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/dataExchanges/\[^/\]+/queryTemplates/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [QueryTemplate]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future approve( + ApproveQueryTemplateRequest request, + core.String name, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':approve'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return QueryTemplate.fromJson( + response_ as core.Map, + ); + } + + /// Creates a new QueryTemplate + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent resource path of the QueryTemplate. e.g. + /// `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/dataExchanges/\[^/\]+$`. + /// + /// [queryTemplateId] - Required. The ID of the QueryTemplate to create. Must + /// contain only Unicode letters, numbers (0-9), underscores (_). Max length: + /// 100 bytes. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [QueryTemplate]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future create( + QueryTemplate request, + core.String parent, { + core.String? queryTemplateId, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (queryTemplateId != null) 'queryTemplateId': [queryTemplateId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/queryTemplates'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return QueryTemplate.fromJson( + response_ as core.Map, + ); + } + + /// Deletes a query template. + /// + /// Request parameters: + /// + /// [name] - Required. The resource path of the QueryTemplate. e.g. + /// `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/dataExchanges/\[^/\]+/queryTemplates/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Empty]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future delete(core.String name, {core.String? $fields}) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'DELETE', + queryParams: queryParams_, + ); + return Empty.fromJson(response_ as core.Map); + } + + /// Gets a QueryTemplate + /// + /// Request parameters: + /// + /// [name] - Required. The parent resource path of the QueryTemplate. e.g. + /// `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/dataExchanges/\[^/\]+/queryTemplates/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [QueryTemplate]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return QueryTemplate.fromJson( + response_ as core.Map, + ); + } + + /// Lists all QueryTemplates in a given project and location. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent resource path of the QueryTemplates. e.g. + /// `projects/myproject/locations/us/dataExchanges/123`. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/dataExchanges/\[^/\]+$`. + /// + /// [pageSize] - Optional. The maximum number of results to return in a single + /// response page. Leverage the page tokens to iterate through the entire + /// collection. + /// + /// [pageToken] - Optional. Page token, returned by a previous call, to + /// request the next page of results. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListQueryTemplatesResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String parent, { + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/queryTemplates'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return ListQueryTemplatesResponse.fromJson( + response_ as core.Map, + ); + } + + /// Updates an existing QueryTemplate + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Output only. The resource name of the QueryTemplate. e.g. + /// `projects/myproject/locations/us/dataExchanges/123/queryTemplates/456` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/dataExchanges/\[^/\]+/queryTemplates/\[^/\]+$`. + /// + /// [updateMask] - Optional. Field mask specifies the fields to update in the + /// query template resource. The fields specified in the `updateMask` are + /// relative to the resource and are not a full request. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [QueryTemplate]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future patch( + QueryTemplate request, + core.String name, { + core.String? updateMask, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (updateMask != null) 'updateMask': [updateMask], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'PATCH', + body: body_, + queryParams: queryParams_, + ); + return QueryTemplate.fromJson( + response_ as core.Map, + ); + } + + /// Submits a query template for approval. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Required. The resource path of the QueryTemplate. e.g. + /// `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/dataExchanges/\[^/\]+/queryTemplates/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [QueryTemplate]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future submit( + SubmitQueryTemplateRequest request, + core.String name, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':submit'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return QueryTemplate.fromJson( + response_ as core.Map, + ); + } +} + class ProjectsLocationsSubscriptionsResource { final commons.ApiRequester _requester; @@ -1424,6 +1746,9 @@ class ProjectsLocationsSubscriptionsResource { } } +/// Message for approving a QueryTemplate. +typedef ApproveQueryTemplateRequest = $Empty; + /// Specifies the audit configuration for a service. /// /// The configuration determines which permission types are logged, and what @@ -1587,6 +1912,19 @@ class BigQueryDatasetSource { /// Optional. core.String? dataset; + /// Server-owned effective state of replicas. + /// + /// Contains both primary and secondary replicas. Each replica includes a + /// system-computed (output-only) state and primary designation. + /// + /// Output only. + core.List? effectiveReplicas; + + /// A list of regions where the publisher has created shared dataset replicas. + /// + /// Optional. + core.List? replicaLocations; + /// If set, restricted export policy will be propagated and enforced on the /// linked dataset. /// @@ -1602,6 +1940,8 @@ class BigQueryDatasetSource { BigQueryDatasetSource({ this.dataset, + this.effectiveReplicas, + this.replicaLocations, this.restrictedExportPolicy, this.selectedResources, }); @@ -1609,6 +1949,18 @@ class BigQueryDatasetSource { BigQueryDatasetSource.fromJson(core.Map json_) : this( dataset: json_['dataset'] as core.String?, + effectiveReplicas: + (json_['effectiveReplicas'] as core.List?) + ?.map( + (value) => Replica.fromJson( + value as core.Map, + ), + ) + .toList(), + replicaLocations: + (json_['replicaLocations'] as core.List?) + ?.map((value) => value as core.String) + .toList(), restrictedExportPolicy: json_.containsKey('restrictedExportPolicy') ? RestrictedExportPolicy.fromJson( @@ -1628,6 +1980,8 @@ class BigQueryDatasetSource { core.Map toJson() => { if (dataset != null) 'dataset': dataset!, + if (effectiveReplicas != null) 'effectiveReplicas': effectiveReplicas!, + if (replicaLocations != null) 'replicaLocations': replicaLocations!, if (restrictedExportPolicy != null) 'restrictedExportPolicy': restrictedExportPolicy!, if (selectedResources != null) 'selectedResources': selectedResources!, @@ -2181,12 +2535,21 @@ class DestinationDataset { /// Required. core.String? location; + /// The geographic locations where the dataset should be replicated. + /// + /// See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations) + /// for supported locations. + /// + /// Optional. + core.List? replicaLocations; + DestinationDataset({ this.datasetReference, this.description, this.friendlyName, this.labels, this.location, + this.replicaLocations, }); DestinationDataset.fromJson(core.Map json_) @@ -2204,6 +2567,10 @@ class DestinationDataset { (key, value) => core.MapEntry(key, value as core.String), ), location: json_['location'] as core.String?, + replicaLocations: + (json_['replicaLocations'] as core.List?) + ?.map((value) => value as core.String) + .toList(), ); core.Map toJson() => { @@ -2212,6 +2579,7 @@ class DestinationDataset { if (friendlyName != null) 'friendlyName': friendlyName!, if (labels != null) 'labels': labels!, if (location != null) 'location': location!, + if (replicaLocations != null) 'replicaLocations': replicaLocations!, }; } @@ -2884,6 +3252,35 @@ class ListOrgDataExchangesResponse { }; } +/// Message for response to the list of QueryTemplates. +class ListQueryTemplatesResponse { + /// A token to request the next page of results. + core.String? nextPageToken; + + /// The list of QueryTemplates. + core.List? queryTemplates; + + ListQueryTemplatesResponse({this.nextPageToken, this.queryTemplates}); + + ListQueryTemplatesResponse.fromJson(core.Map json_) + : this( + nextPageToken: json_['nextPageToken'] as core.String?, + queryTemplates: + (json_['queryTemplates'] as core.List?) + ?.map( + (value) => QueryTemplate.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + if (queryTemplates != null) 'queryTemplates': queryTemplates!, + }; +} + /// Message for response to the listing of shared resource subscriptions. class ListSharedResourceSubscriptionsResponse { /// Next page token. @@ -3611,9 +4008,179 @@ class PushConfig { }; } +/// A query template is a container for sharing table-valued functions defined +/// by contributors in a data clean room. +class QueryTemplate { + /// Timestamp when the QueryTemplate was created. + /// + /// Output only. + core.String? createTime; + + /// Short description of the QueryTemplate. + /// + /// The description must not contain Unicode non-characters and C0 and C1 + /// control codes except tabs (HT), new lines (LF), carriage returns (CR), and + /// page breaks (FF). Default value is an empty string. Max length: 2000 + /// bytes. + /// + /// Optional. + core.String? description; + + /// Human-readable display name of the QueryTemplate. + /// + /// The display name must contain only Unicode letters, numbers (0-9), + /// underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or + /// end with spaces. Default value is an empty string. Max length: 63 bytes. + /// + /// Required. + core.String? displayName; + + /// Documentation describing the QueryTemplate. + /// + /// Optional. + core.String? documentation; + + /// The resource name of the QueryTemplate. + /// + /// e.g. + /// `projects/myproject/locations/us/dataExchanges/123/queryTemplates/456` + /// + /// Output only. + core.String? name; + + /// Email or URL of the primary point of contact of the QueryTemplate. + /// + /// Max Length: 1000 bytes. + /// + /// Optional. + core.String? primaryContact; + + /// Will be deprecated. + /// + /// Email or URL of the primary point of contact of the QueryTemplate. Max + /// Length: 1000 bytes. + /// + /// Optional. + core.String? proposer; + + /// The routine associated with the QueryTemplate. + /// + /// Optional. + Routine? routine; + + /// The QueryTemplate lifecycle state. + /// + /// Output only. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : Default value. This value is unused. + /// - "DRAFTED" : The QueryTemplate is in draft state. + /// - "PENDING" : The QueryTemplate is in pending state. + /// - "DELETED" : The QueryTemplate is in deleted state. + /// - "APPROVED" : The QueryTemplate is in approved state. + core.String? state; + + /// Timestamp when the QueryTemplate was last modified. + /// + /// Output only. + core.String? updateTime; + + QueryTemplate({ + this.createTime, + this.description, + this.displayName, + this.documentation, + this.name, + this.primaryContact, + this.proposer, + this.routine, + this.state, + this.updateTime, + }); + + QueryTemplate.fromJson(core.Map json_) + : this( + createTime: json_['createTime'] as core.String?, + description: json_['description'] as core.String?, + displayName: json_['displayName'] as core.String?, + documentation: json_['documentation'] as core.String?, + name: json_['name'] as core.String?, + primaryContact: json_['primaryContact'] as core.String?, + proposer: json_['proposer'] as core.String?, + routine: + json_.containsKey('routine') + ? Routine.fromJson( + json_['routine'] as core.Map, + ) + : null, + state: json_['state'] as core.String?, + updateTime: json_['updateTime'] as core.String?, + ); + + core.Map toJson() => { + if (createTime != null) 'createTime': createTime!, + if (description != null) 'description': description!, + if (displayName != null) 'displayName': displayName!, + if (documentation != null) 'documentation': documentation!, + if (name != null) 'name': name!, + if (primaryContact != null) 'primaryContact': primaryContact!, + if (proposer != null) 'proposer': proposer!, + if (routine != null) 'routine': routine!, + if (state != null) 'state': state!, + if (updateTime != null) 'updateTime': updateTime!, + }; +} + /// Message for refreshing a subscription. typedef RefreshSubscriptionRequest = $Empty; +/// Represents the state of a replica of a shared dataset. +/// +/// It includes the geographic location of the replica and system-computed, +/// output-only fields indicating its replication state and whether it is the +/// primary replica. +class Replica { + /// The geographic location where the replica resides. + /// + /// See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations) + /// for supported locations. Eg. "us-central1". + /// + /// Output only. + core.String? location; + + /// Indicates that this replica is the primary replica. + /// + /// Output only. + /// Possible string values are: + /// - "PRIMARY_STATE_UNSPECIFIED" : Default value. This value is unused. + /// - "PRIMARY_REPLICA" : The replica is the primary replica. + core.String? primaryState; + + /// Assigned by Analytics Hub based on real BigQuery replication state. + /// + /// Output only. + /// Possible string values are: + /// - "REPLICA_STATE_UNSPECIFIED" : Default value. This value is unused. + /// - "READY_TO_USE" : The replica is backfilled and ready to use. + /// - "UNAVAILABLE" : The replica is unavailable, does not exist, or has not + /// been backfilled yet. + core.String? replicaState; + + Replica({this.location, this.primaryState, this.replicaState}); + + Replica.fromJson(core.Map json_) + : this( + location: json_['location'] as core.String?, + primaryState: json_['primaryState'] as core.String?, + replicaState: json_['replicaState'] as core.String?, + ); + + core.Map toJson() => { + if (location != null) 'location': location!, + if (primaryState != null) 'primaryState': primaryState!, + if (replicaState != null) 'replicaState': replicaState!, + }; +} + /// Restricted export config, used to configure restricted export on linked /// dataset. class RestrictedExportConfig { @@ -3736,6 +4303,35 @@ class RevokeSubscriptionRequest { /// Empty for now. typedef RevokeSubscriptionResponse = $Empty; +/// Represents a bigquery routine. +class Routine { + /// The definition body of the routine. + /// + /// Optional. + core.String? definitionBody; + + /// The type of routine. + /// + /// Required. + /// Possible string values are: + /// - "ROUTINE_TYPE_UNSPECIFIED" : Default value. + /// - "TABLE_VALUED_FUNCTION" : Non-built-in persistent TVF. + core.String? routineType; + + Routine({this.definitionBody, this.routineType}); + + Routine.fromJson(core.Map json_) + : this( + definitionBody: json_['definitionBody'] as core.String?, + routineType: json_['routineType'] as core.String?, + ); + + core.Map toJson() => { + if (definitionBody != null) 'definitionBody': definitionBody!, + if (routineType != null) 'routineType': routineType!, + }; +} + /// Resource in this dataset that is selectively shared. class SelectedResource { /// Format: For routine: @@ -3850,6 +4446,9 @@ class SharingEnvironmentConfig { /// [API Design Guide](https://cloud.google.com/apis/design/errors). typedef Status = $Status00; +/// Message for submitting a QueryTemplate. +typedef SubmitQueryTemplateRequest = $Empty; + /// Message for subscribing to a Data Exchange. class SubscribeDataExchangeRequest { /// The parent resource path of the Subscription. diff --git a/generated/googleapis/lib/androidmanagement/v1.dart b/generated/googleapis/lib/androidmanagement/v1.dart index adc642d5f..8d57740e6 100644 --- a/generated/googleapis/lib/androidmanagement/v1.dart +++ b/generated/googleapis/lib/androidmanagement/v1.dart @@ -598,8 +598,9 @@ class EnterprisesDevicesResource { /// enterprises/{enterpriseId}. /// Value must have pattern `^enterprises/\[^/\]+$`. /// - /// [pageSize] - The requested page size. The actual page size may be fixed to - /// a min or max value. + /// [pageSize] - The requested page size. If unspecified, at most 10 devices + /// will be returned. The maximum value is 100; values above 100 will be + /// coerced to 100. The limits can change over time. /// /// [pageToken] - A token identifying a page of results returned by the /// server. @@ -1873,7 +1874,9 @@ class AdvancedSecurityOverrides { /// Controls access to developer settings: developer options and safe boot. /// /// Replaces safeBootDisabled (deprecated) and debuggingFeaturesAllowed - /// (deprecated). + /// (deprecated). On personally-owned devices with a work profile, setting + /// this policy will not disable safe boot. In this case, a + /// NonComplianceDetail with MANAGEMENT_MODE is reported. /// Possible string values are: /// - "DEVELOPER_SETTINGS_UNSPECIFIED" : Unspecified. Defaults to /// DEVELOPER_SETTINGS_DISABLED. @@ -2806,6 +2809,12 @@ class ApplicationPolicy { /// provider. core.String? credentialProviderPolicy; + /// Configuration for this custom app.install_type must be set to CUSTOM for + /// this to be set. + /// + /// Optional. + CustomAppConfig? customAppConfig; + /// The default policy for all permissions requested by the app. /// /// If specified, this overrides the policy-level default_permission_policy @@ -2850,13 +2859,20 @@ class ApplicationPolicy { /// Configuration to enable this app as an extension app, with the capability /// of interacting with Android Device Policy offline.This field can be set - /// for at most one app.The signing key certificate fingerprint of the app on - /// the device must match one of the entries in signingKeyFingerprintsSha256 - /// or the signing key certificate fingerprints obtained from Play Store for - /// the app to be able to communicate with Android Device Policy. - /// - /// If the app is not on Play Store and signingKeyFingerprintsSha256 is not - /// set, a NonComplianceDetail with INVALID_VALUE is reported. + /// for at most one app. + /// + /// If there is any app with COMPANION_APP role, this field cannot be set.The + /// signing key certificate fingerprint of the app on the device must match + /// one of the entries in ApplicationPolicy.signingKeyCerts or + /// ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) or the signing + /// key certificate fingerprints obtained from Play Store for the app to be + /// able to communicate with Android Device Policy. If the app is not on Play + /// Store and if ApplicationPolicy.signingKeyCerts and + /// ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) are not set, a + /// NonComplianceDetail with INVALID_VALUE is reported. + @core.Deprecated( + 'Not supported. Member documentation may have more information.', + ) ExtensionConfig? extensionConfig; /// The constraints for installing the app. @@ -2896,7 +2912,26 @@ class ApplicationPolicy { /// won't complete until the app is installed. After installation, users won't /// be able to remove the app. You can only set this installType for one app /// per policy. When this is present in the policy, status bar will be - /// automatically disabled. + /// automatically disabled.If there is any app with KIOSK role, then this + /// install type cannot be set for any app. + /// - "CUSTOM" : The app can only be installed and updated via AMAPI SDK + /// command + /// (https://developers.google.com/android/management/extensibility-sdk-integration).Note: + /// This only affects fully managed devices. Play related fields + /// minimumVersionCode, accessibleTrackIds, autoUpdateMode, installConstraint + /// and installPriority cannot be set for the app. The app isn't available in + /// the Play Store. The app installed on the device has applicationSource set + /// to CUSTOM. The signing key certificate fingerprint of the app on the + /// device must match one of the entries in ApplicationPolicy.signingKeyCerts + /// . Otherwise, a NonComplianceDetail with APP_SIGNING_CERT_MISMATCH is + /// reported. Changing the installType to and from CUSTOM uninstalls the + /// existing app if its signing key certificate fingerprint doesn't match the + /// one from the new app source. Removing the app from applications doesn't + /// uninstall the existing app if it conforms to playStoreMode. See also + /// customAppConfig. This is different from the Google Play Custom App + /// Publishing + /// (https://developers.google.com/android/work/play/custom-app-api/get-started) + /// feature. core.String? installType; /// Whether the app is allowed to lock itself in full-screen mode. @@ -2972,6 +3007,52 @@ class ApplicationPolicy { /// - "PREFERENTIAL_NETWORK_ID_FIVE" : Preferential network identifier 5. core.String? preferentialNetworkId; + /// Roles the app has.Apps having certain roles can be exempted from power and + /// background execution restrictions, suspension and hibernation on Android + /// 14 and above. + /// + /// The user control can also be disallowed for apps with certain roles on + /// Android 11 and above. Refer to the documentation of each RoleType for more + /// details.The app is notified about the roles that are set for it if the app + /// has a notification receiver service with . The app is notified whenever + /// its roles are updated or after the app is installed when it has nonempty + /// list of roles. The app can use this notification to bootstrap itself after + /// the installation. See Integrate with the AMAPI SDK + /// (https://developers.google.com/android/management/sdk-integration) and + /// Manage app roles + /// (https://developers.google.com/android/management/app-roles) guides for + /// more details on the requirements for the service.For the exemptions to be + /// applied and the app to be notified about the roles, the signing key + /// certificate fingerprint of the app on the device must match one of the + /// signing key certificate fingerprints obtained from Play Store or one of + /// the entries in ApplicationPolicy.signingKeyCerts. Otherwise, a + /// NonComplianceDetail with APP_SIGNING_CERT_MISMATCH is reported.There must + /// not be duplicate roles with the same roleType. Multiple apps cannot hold a + /// role with the same roleType. A role with type ROLE_TYPE_UNSPECIFIED is not + /// allowed. + /// + /// Optional. + core.List? roles; + + /// Signing key certificates of the app.This field is required in the + /// following cases: The app has installType set to CUSTOM (i.e. a custom + /// app). + /// + /// The app has roles set to a nonempty list and the app does not exist on the + /// Play Store. The app has extensionConfig set (i.e. an extension app) but + /// ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) is not set and + /// the app does not exist on the Play Store.If this field is not set for a + /// custom app, the policy is rejected. If it is not set when required for a + /// non-custom app, a NonComplianceDetail with INVALID_VALUE is reported.For + /// other cases, this field is optional and the signing key certificates + /// obtained from Play Store are used.See following policy settings to see how + /// this field is used: choosePrivateKeyRules + /// ApplicationPolicy.InstallType.CUSTOM ApplicationPolicy.extensionConfig + /// ApplicationPolicy.roles + /// + /// Optional. + core.List? signingKeyCerts; + /// Specifies whether user control is permitted for the app. /// /// User control includes user actions like force-stopping and clearing app @@ -2985,12 +3066,15 @@ class ApplicationPolicy { /// app to determine if user control is allowed or disallowed. User control is /// allowed by default for most apps but disallowed for following types of /// apps: extension apps (see extensionConfig for more details) kiosk apps - /// (see KIOSK install type for more details) other critical system apps + /// (see KIOSK install type for more details) apps with roles set to a + /// nonempty list other critical system apps /// - "USER_CONTROL_ALLOWED" : User control is allowed for the app. Kiosk apps /// can use this to allow user control. For extension apps (see /// extensionConfig for more details), user control is disallowed even if this - /// value is set. For kiosk apps (see KIOSK install type for more details), - /// this value can be used to allow user control. + /// value is set.For apps with roles set to a nonempty list (except roles + /// containing only KIOSK role), this value cannot be set.For kiosk apps (see + /// KIOSK install type and KIOSK role type for more details), this value can + /// be used to allow user control. /// - "USER_CONTROL_DISALLOWED" : User control is disallowed for the app. This /// is supported on Android 11 and above. A NonComplianceDetail with API_LEVEL /// is reported if the Android version is less than 11. @@ -3014,6 +3098,7 @@ class ApplicationPolicy { this.autoUpdateMode, this.connectedWorkAndPersonalApp, this.credentialProviderPolicy, + this.customAppConfig, this.defaultPermissionPolicy, this.delegatedScopes, this.disabled, @@ -3028,6 +3113,8 @@ class ApplicationPolicy { this.packageName, this.permissionGrants, this.preferentialNetworkId, + this.roles, + this.signingKeyCerts, this.userControlSettings, this.workProfileWidgets, }); @@ -3045,6 +3132,13 @@ class ApplicationPolicy { json_['connectedWorkAndPersonalApp'] as core.String?, credentialProviderPolicy: json_['credentialProviderPolicy'] as core.String?, + customAppConfig: + json_.containsKey('customAppConfig') + ? CustomAppConfig.fromJson( + json_['customAppConfig'] + as core.Map, + ) + : null, defaultPermissionPolicy: json_['defaultPermissionPolicy'] as core.String?, delegatedScopes: @@ -3093,6 +3187,22 @@ class ApplicationPolicy { ) .toList(), preferentialNetworkId: json_['preferentialNetworkId'] as core.String?, + roles: + (json_['roles'] as core.List?) + ?.map( + (value) => Role.fromJson( + value as core.Map, + ), + ) + .toList(), + signingKeyCerts: + (json_['signingKeyCerts'] as core.List?) + ?.map( + (value) => ApplicationSigningKeyCert.fromJson( + value as core.Map, + ), + ) + .toList(), userControlSettings: json_['userControlSettings'] as core.String?, workProfileWidgets: json_['workProfileWidgets'] as core.String?, ); @@ -3106,6 +3216,7 @@ class ApplicationPolicy { 'connectedWorkAndPersonalApp': connectedWorkAndPersonalApp!, if (credentialProviderPolicy != null) 'credentialProviderPolicy': credentialProviderPolicy!, + if (customAppConfig != null) 'customAppConfig': customAppConfig!, if (defaultPermissionPolicy != null) 'defaultPermissionPolicy': defaultPermissionPolicy!, if (delegatedScopes != null) 'delegatedScopes': delegatedScopes!, @@ -3124,6 +3235,8 @@ class ApplicationPolicy { if (permissionGrants != null) 'permissionGrants': permissionGrants!, if (preferentialNetworkId != null) 'preferentialNetworkId': preferentialNetworkId!, + if (roles != null) 'roles': roles!, + if (signingKeyCerts != null) 'signingKeyCerts': signingKeyCerts!, if (userControlSettings != null) 'userControlSettings': userControlSettings!, if (workProfileWidgets != null) 'workProfileWidgets': workProfileWidgets!, @@ -3173,6 +3286,9 @@ class ApplicationReport { /// - "SYSTEM_APP_UPDATED_VERSION" : This is an updated system app. /// - "INSTALLED_FROM_PLAY_STORE" : The app was installed from the Google Play /// Store. + /// - "CUSTOM" : The app was installed using the AMAPI SDK command + /// (https://developers.google.com/android/management/extensibility-sdk-integration). + /// See also: CUSTOM core.String? applicationSource; /// The display name of the app. @@ -3307,6 +3423,39 @@ class ApplicationReportingSettings { }; } +/// The application signing key certificate. +class ApplicationSigningKeyCert { + /// The SHA-256 hash value of the signing key certificate of the app. + /// + /// This must be a valid SHA-256 hash value, i.e. 32 bytes. Otherwise, the + /// policy is rejected. + /// + /// Required. + core.String? signingKeyCertFingerprintSha256; + core.List get signingKeyCertFingerprintSha256AsBytes => + convert.base64.decode(signingKeyCertFingerprintSha256!); + + set signingKeyCertFingerprintSha256AsBytes(core.List bytes_) { + signingKeyCertFingerprintSha256 = convert.base64 + .encode(bytes_) + .replaceAll('/', '_') + .replaceAll('+', '-'); + } + + ApplicationSigningKeyCert({this.signingKeyCertFingerprintSha256}); + + ApplicationSigningKeyCert.fromJson(core.Map json_) + : this( + signingKeyCertFingerprintSha256: + json_['signingKeyCertFingerprintSha256'] as core.String?, + ); + + core.Map toJson() => { + if (signingKeyCertFingerprintSha256 != null) + 'signingKeyCertFingerprintSha256': signingKeyCertFingerprintSha256!, + }; +} + /// An action to block access to apps and data on a fully managed device or in a /// work profile. /// @@ -3364,9 +3513,11 @@ class BlockAction { class ChoosePrivateKeyRule { /// The package names to which this rule applies. /// - /// The hash of the signing certificate for each app is verified against the - /// hash provided by Play. If no package names are specified, then the alias - /// is provided to all apps that call KeyChain.choosePrivateKeyAlias + /// The signing key certificate fingerprint of the app is verified against the + /// signing key certificate fingerprints provided by Play Store and + /// ApplicationPolicy.signingKeyCerts . If no package names are specified, + /// then the alias is provided to all apps that call + /// KeyChain.choosePrivateKeyAlias /// (https://developer.android.com/reference/android/security/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String\[\],%20java.security.Principal\[\],%20java.lang.String,%20int,%20java.lang.String%29) /// or any overloads (but not without calling KeyChain.choosePrivateKeyAlias, /// even on Android 11 and above). Any app with the same Android UID as a @@ -4184,6 +4335,32 @@ class CrossProfilePolicies { }; } +/// Configuration for a custom app. +class CustomAppConfig { + /// User uninstall settings of the custom app. + /// + /// Optional. + /// Possible string values are: + /// - "USER_UNINSTALL_SETTINGS_UNSPECIFIED" : Unspecified. Defaults to + /// DISALLOW_UNINSTALL_BY_USER. + /// - "DISALLOW_UNINSTALL_BY_USER" : User is not allowed to uninstall the + /// custom app. + /// - "ALLOW_UNINSTALL_BY_USER" : User is allowed to uninstall the custom app. + core.String? userUninstallSettings; + + CustomAppConfig({this.userUninstallSettings}); + + CustomAppConfig.fromJson(core.Map json_) + : this( + userUninstallSettings: json_['userUninstallSettings'] as core.String?, + ); + + core.Map toJson() => { + if (userUninstallSettings != null) + 'userUninstallSettings': userUninstallSettings!, + }; +} + /// Represents a whole or partial calendar date, such as a birthday. /// /// The time of day and time zone are either specified elsewhere or are @@ -4211,9 +4388,12 @@ class Device { /// The password requirements currently applied to the device. /// - /// The applied requirements may be slightly different from those specified in - /// passwordPolicies in some cases. fieldPath is set based on - /// passwordPolicies. + /// This field exists because the applied requirements may be slightly + /// different from those specified in passwordPolicies in some cases. Note + /// that this field does not provide information about password compliance. + /// For non-compliance information, see nonComplianceDetails. + /// NonComplianceDetail.fieldPath, is set based on passwordPolicies, not based + /// on this field. core.List? appliedPasswordPolicies; /// The name of the policy currently applied to the device. @@ -5671,6 +5851,9 @@ class ExtensionConfig { /// (see Integrate with the AMAPI SDK /// (https://developers.google.com/android/management/sdk-integration) guide /// for more details). + @core.Deprecated( + 'Not supported. Member documentation may have more information.', + ) core.String? notificationReceiver; /// Hex-encoded SHA-256 hashes of the signing key certificates of the @@ -5687,6 +5870,9 @@ class ExtensionConfig { /// certificate fingerprints obtained from the Play Store or the ones provided /// in this field for the app to be able to communicate with Android Device /// Policy.In production use cases, it is recommended to leave this empty. + @core.Deprecated( + 'Not supported. Member documentation may have more information.', + ) core.List? signingKeyFingerprintsSha256; ExtensionConfig({ @@ -5949,6 +6135,9 @@ class HardwareInfo { core.String? model; /// The device serial number. + /// + /// However, for personally-owned devices running Android 12 and above, this + /// is the same as the enterpriseSpecificId. core.String? serialNumber; /// Device skin shutdown temperature thresholds in Celsius. @@ -7291,6 +7480,8 @@ class NonComplianceDetail { /// the minimum version code specified by policy. /// - "DEVICE_INCOMPATIBLE" : The device is incompatible with the policy /// requirements. + /// - "APP_SIGNING_CERT_MISMATCH" : The app's signing certificate does not + /// match the setting value. /// - "PROJECT_NOT_PERMITTED" : The Google Cloud Platform project used to /// manage the device is not permitted to use this policy. core.String? nonComplianceReason; @@ -7434,6 +7625,8 @@ class NonComplianceDetailCondition { /// the minimum version code specified by policy. /// - "DEVICE_INCOMPATIBLE" : The device is incompatible with the policy /// requirements. + /// - "APP_SIGNING_CERT_MISMATCH" : The app's signing certificate does not + /// match the setting value. /// - "PROJECT_NOT_PERMITTED" : The Google Cloud Platform project used to /// manage the device is not permitted to use this policy. core.String? nonComplianceReason; @@ -10030,6 +10223,60 @@ class RequestDeviceInfoStatus { }; } +/// Role an app can have. +class Role { + /// The type of the role an app can have. + /// + /// Required. + /// Possible string values are: + /// - "ROLE_TYPE_UNSPECIFIED" : The role type is unspecified. This value must + /// not be used. + /// - "COMPANION_APP" : The role type for companion apps. This role enables + /// the app as a companion app with the capability of interacting with Android + /// Device Policy offline. This is the recommended way to configure an app as + /// a companion app. For legacy way, see extensionConfig.On Android 14 and + /// above, the app with this role is exempted from power and background + /// execution restrictions, suspension and hibernation. On Android 11 and + /// above, the user control is disallowed for the app with this role. + /// userControlSettings cannot be set to USER_CONTROL_ALLOWED for the app with + /// this role.Android Device Policy notifies the companion app of any local + /// command status updates if the app has a service with . See Integrate with + /// the AMAPI SDK + /// (https://developers.google.com/android/management/sdk-integration) guide + /// for more details on the requirements for the service. + /// - "KIOSK" : The role type for kiosk apps. An app can have this role only + /// if it has installType set to REQUIRED_FOR_SETUP or CUSTOM. Before adding + /// this role to an app with CUSTOM install type, the app must already be + /// installed on the device.The app having this role type is set as the + /// preferred home intent and allowlisted for lock task mode. When there is an + /// app with this role type, status bar will be automatically disabled.This is + /// preferable to setting installType to KIOSK.On Android 11 and above, the + /// user control is disallowed but userControlSettings can be set to + /// USER_CONTROL_ALLOWED to allow user control for the app with this role. + /// - "MOBILE_THREAT_DEFENSE_ENDPOINT_DETECTION_RESPONSE" : The role type for + /// Mobile Threat Defense (MTD) / Endpoint Detection & Response (EDR) apps.On + /// Android 14 and above, the app with this role is exempted from power and + /// background execution restrictions, suspension and hibernation. On Android + /// 11 and above, the user control is disallowed and userControlSettings + /// cannot be set to USER_CONTROL_ALLOWED for the app with this role. + /// - "SYSTEM_HEALTH_MONITORING" : The role type for system health monitoring + /// apps.On Android 14 and above, the app with this role is exempted from + /// power and background execution restrictions, suspension and hibernation. + /// On Android 11 and above, the user control is disallowed and + /// userControlSettings cannot be set to USER_CONTROL_ALLOWED for the app with + /// this role. + core.String? roleType; + + Role({this.roleType}); + + Role.fromJson(core.Map json_) + : this(roleType: json_['roleType'] as core.String?); + + core.Map toJson() => { + if (roleType != null) 'roleType': roleType!, + }; +} + /// Controls for the screen brightness settings. class ScreenBrightnessSettings { /// The screen brightness between 1 and 255 where 1 is the lowest and 255 is diff --git a/generated/googleapis/lib/androidpublisher/v3.dart b/generated/googleapis/lib/androidpublisher/v3.dart index 7a70da3ed..c6ac1e5b4 100644 --- a/generated/googleapis/lib/androidpublisher/v3.dart +++ b/generated/googleapis/lib/androidpublisher/v3.dart @@ -6778,7 +6778,9 @@ class PurchasesSubscriptionsResource { /// Cancels a user's subscription purchase. /// - /// The subscription remains valid until its expiration time. + /// The subscription remains valid until its expiration time. Newer version is + /// available at purchases.subscriptionsv2.cancel for better client library + /// support. /// /// Request parameters: /// @@ -7058,6 +7060,57 @@ class PurchasesSubscriptionsv2Resource { PurchasesSubscriptionsv2Resource(commons.ApiRequester client) : _requester = client; + /// Cancel a subscription purchase for the user. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [packageName] - Required. The package of the application for which this + /// subscription was purchased (for example, 'com.some.thing'). + /// + /// [token] - Required. The token provided to the user's device when the + /// subscription was purchased. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [CancelSubscriptionPurchaseResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future cancel( + CancelSubscriptionPurchaseRequest request, + core.String packageName, + core.String token, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'androidpublisher/v3/applications/' + + commons.escapeVariable('$packageName') + + '/purchases/subscriptionsv2/tokens/' + + commons.escapeVariable('$token') + + ':cancel'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return CancelSubscriptionPurchaseResponse.fromJson( + response_ as core.Map, + ); + } + /// Get metadata about a subscription /// /// Request parameters: @@ -8929,16 +8982,21 @@ class AutoRenewingPlan { /// signup. SubscriptionItemPriceChangeDetails? priceChangeDetails; + /// The information of the latest price step-up consent. + PriceStepUpConsentDetails? priceStepUpConsentDetails; + /// The current recurring price of the auto renewing plan. /// - /// Note that the price does not take into account discounts and taxes, call - /// orders.get API instead if transaction details are needed. + /// Note that the price does not take into account discounts and does not + /// include taxes for tax-exclusive pricing, please call orders.get API + /// instead if transaction details are needed. Money? recurringPrice; AutoRenewingPlan({ this.autoRenewEnabled, this.installmentDetails, this.priceChangeDetails, + this.priceStepUpConsentDetails, this.recurringPrice, }); @@ -8959,6 +9017,13 @@ class AutoRenewingPlan { as core.Map, ) : null, + priceStepUpConsentDetails: + json_.containsKey('priceStepUpConsentDetails') + ? PriceStepUpConsentDetails.fromJson( + json_['priceStepUpConsentDetails'] + as core.Map, + ) + : null, recurringPrice: json_.containsKey('recurringPrice') ? Money.fromJson( @@ -8972,6 +9037,8 @@ class AutoRenewingPlan { if (autoRenewEnabled != null) 'autoRenewEnabled': autoRenewEnabled!, if (installmentDetails != null) 'installmentDetails': installmentDetails!, if (priceChangeDetails != null) 'priceChangeDetails': priceChangeDetails!, + if (priceStepUpConsentDetails != null) + 'priceStepUpConsentDetails': priceStepUpConsentDetails!, if (recurringPrice != null) 'recurringPrice': recurringPrice!, }; } @@ -10012,6 +10079,35 @@ class CancelOneTimeProductOfferRequest { }; } +/// Request for the purchases.subscriptionsv2.cancel API. +class CancelSubscriptionPurchaseRequest { + /// Additional details around the subscription revocation. + /// + /// Required. + CancellationContext? cancellationContext; + + CancelSubscriptionPurchaseRequest({this.cancellationContext}); + + CancelSubscriptionPurchaseRequest.fromJson(core.Map json_) + : this( + cancellationContext: + json_.containsKey('cancellationContext') + ? CancellationContext.fromJson( + json_['cancellationContext'] + as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (cancellationContext != null) + 'cancellationContext': cancellationContext!, + }; +} + +/// Response for the purchases.subscriptionsv2.cancel API. +typedef CancelSubscriptionPurchaseResponse = $Empty; + /// Result of the cancel survey when the subscription was canceled by the user. class CancelSurveyResult { /// The reason the user selected in the cancel survey. @@ -10112,6 +10208,36 @@ class CanceledStateContext { }; } +/// Cancellation context of the purchases.subscriptionsv2.cancel API. +class CancellationContext { + /// The type of cancellation for the purchased subscription. + /// + /// Required. + /// Possible string values are: + /// - "CANCELLATION_TYPE_UNSPECIFIED" : Cancellation type unspecified. + /// - "USER_REQUESTED_STOP_RENEWALS" : Cancellation requested by the user, and + /// the subscription can be restored. It only stops the subscription's next + /// renewal. For an installment subscription, users still need to finish the + /// commitment period. For more details on renewals and payments, see + /// https://developer.android.com/google/play/billing/subscriptions#installments + /// - "DEVELOPER_REQUESTED_STOP_PAYMENTS" : Cancellation requested by the + /// developer, and the subscription cannot be restored. It stops the + /// subscription's next payment. For an installment subscription, users will + /// not need to pay the next payment and finish the commitment period. For + /// more details on renewals and payments, see + /// https://developer.android.com/google/play/billing/subscriptions#installments + core.String? cancellationType; + + CancellationContext({this.cancellationType}); + + CancellationContext.fromJson(core.Map json_) + : this(cancellationType: json_['cancellationType'] as core.String?); + + core.Map toJson() => { + if (cancellationType != null) 'cancellationType': cancellationType!, + }; +} + /// Details of when the order was canceled. class CancellationEvent { /// The time when the order was canceled. @@ -10614,6 +10740,9 @@ class DeactivateSubscriptionOfferRequest { }; } +/// Information related to deferred item replacement. +typedef DeferredItemRemoval = $Empty; + /// Information related to deferred item replacement. class DeferredItemReplacement { /// The product_id going to replace the existing product_id. @@ -14729,8 +14858,6 @@ class OneTimeProductPurchaseOptionRegionalPricingAndAvailabilityConfig { /// as AVAILABLE. /// - "AVAILABLE_IF_RELEASED" : The purchase option is initially unavailable, /// but made available via a released pre-order offer. - /// - "AVAILABLE_FOR_OFFERS_ONLY" : The purchase option is unavailable but - /// offers linked to it (i.e. Play Points offer) are available. core.String? availability; /// The price of the purchase option in the specified region. @@ -15581,6 +15708,55 @@ class Price { }; } +/// Information related to a price step-up that requires user consent. +class PriceStepUpConsentDetails { + /// The deadline by which the user must provide consent. + /// + /// If consent is not provided by this time, the subscription will be + /// canceled. + core.String? consentDeadlineTime; + + /// The new price which requires user consent. + Money? newPrice; + + /// The state of the price step-up consent. + /// + /// Output only. + /// Possible string values are: + /// - "CONSENT_STATE_UNSPECIFIED" : Unspecified consent state. + /// - "PENDING" : The user has not yet provided consent. + /// - "CONFIRMED" : The user has consented, and the new price is waiting to + /// take effect. + /// - "COMPLETED" : The user has consented, and the new price has taken + /// effect. + core.String? state; + + PriceStepUpConsentDetails({ + this.consentDeadlineTime, + this.newPrice, + this.state, + }); + + PriceStepUpConsentDetails.fromJson(core.Map json_) + : this( + consentDeadlineTime: json_['consentDeadlineTime'] as core.String?, + newPrice: + json_.containsKey('newPrice') + ? Money.fromJson( + json_['newPrice'] as core.Map, + ) + : null, + state: json_['state'] as core.String?, + ); + + core.Map toJson() => { + if (consentDeadlineTime != null) + 'consentDeadlineTime': consentDeadlineTime!, + if (newPrice != null) 'newPrice': newPrice!, + if (state != null) 'state': state!, + }; +} + /// Details of when the order was processed. class ProcessedEvent { /// The time when the order was processed. @@ -18280,6 +18456,9 @@ class SubscriptionPurchaseLineItem { /// The item is auto renewing. AutoRenewingPlan? autoRenewingPlan; + /// Information for deferred item removal. + DeferredItemRemoval? deferredItemRemoval; + /// Information for deferred item replacement. DeferredItemReplacement? deferredItemReplacement; @@ -18311,6 +18490,7 @@ class SubscriptionPurchaseLineItem { SubscriptionPurchaseLineItem({ this.autoRenewingPlan, + this.deferredItemRemoval, this.deferredItemReplacement, this.expiryTime, this.latestSuccessfulOrderId, @@ -18329,6 +18509,13 @@ class SubscriptionPurchaseLineItem { as core.Map, ) : null, + deferredItemRemoval: + json_.containsKey('deferredItemRemoval') + ? DeferredItemRemoval.fromJson( + json_['deferredItemRemoval'] + as core.Map, + ) + : null, deferredItemReplacement: json_.containsKey('deferredItemReplacement') ? DeferredItemReplacement.fromJson( @@ -18363,6 +18550,8 @@ class SubscriptionPurchaseLineItem { core.Map toJson() => { if (autoRenewingPlan != null) 'autoRenewingPlan': autoRenewingPlan!, + if (deferredItemRemoval != null) + 'deferredItemRemoval': deferredItemRemoval!, if (deferredItemReplacement != null) 'deferredItemReplacement': deferredItemReplacement!, if (expiryTime != null) 'expiryTime': expiryTime!, @@ -19281,6 +19470,9 @@ class TrackCountryAvailability { /// A release within a track. class TrackRelease { /// Restricts a release to a specific set of countries. + /// + /// Note this is only allowed to be set for inProgress releases in the + /// production track. CountryTargeting? countryTargeting; /// In-app update priority of the release. diff --git a/generated/googleapis/lib/apigateway/v1.dart b/generated/googleapis/lib/apigateway/v1.dart index 884754332..92b56948e 100644 --- a/generated/googleapis/lib/apigateway/v1.dart +++ b/generated/googleapis/lib/apigateway/v1.dart @@ -126,9 +126,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/apigee/v1.dart b/generated/googleapis/lib/apigee/v1.dart index f418c5467..26967f4d9 100644 --- a/generated/googleapis/lib/apigee/v1.dart +++ b/generated/googleapis/lib/apigee/v1.dart @@ -106,6 +106,7 @@ /// - [OrganizationsOptimizedHostStatsResource] /// - [OrganizationsReportsResource] /// - [OrganizationsSecurityAssessmentResultsResource] +/// - [OrganizationsSecurityFeedbackResource] /// - [OrganizationsSecurityMonitoringConditionsResource] /// - [OrganizationsSecurityProfilesResource] /// - [OrganizationsSecurityProfilesEnvironmentsResource] @@ -263,6 +264,8 @@ class OrganizationsResource { OrganizationsSecurityAssessmentResultsResource get securityAssessmentResults => OrganizationsSecurityAssessmentResultsResource(_requester); + OrganizationsSecurityFeedbackResource get securityFeedback => + OrganizationsSecurityFeedbackResource(_requester); OrganizationsSecurityMonitoringConditionsResource get securityMonitoringConditions => OrganizationsSecurityMonitoringConditionsResource(_requester); @@ -4066,14 +4069,16 @@ class OrganizationsAppsResource { /// `approved` or `revoked`. Defaults to `approved`. /// /// [pageSize] - Optional. Count of apps a single page can have in the - /// response. If unspecified, at most 100 apps will be returned. The maximum - /// value is 100; values above 100 will be coerced to 100. "page_size" is + /// response. If unspecified, at most 1000 apps will be returned. The maximum + /// value is 1000; values above 1000 will be coerced to 1000. "page_size" is /// supported from ver 1.10.0 and above. /// /// [pageToken] - Optional. The starting index record for listing the /// developers. "page_token" is supported from ver 1.10.0 and above. /// - /// [rows] - Optional. Maximum number of app IDs to return. Defaults to 1000. + /// [rows] - Optional. Maximum number of app IDs to return. Defaults to 1000, + /// which is also the upper limit. To get more than 1000, use pagination with + /// 'pageSize' and 'pageToken' parameters. /// /// [startKey] - Returns the list of apps starting from the specified app ID. /// @@ -15665,6 +15670,248 @@ class OrganizationsSecurityAssessmentResultsResource { } } +class OrganizationsSecurityFeedbackResource { + final commons.ApiRequester _requester; + + OrganizationsSecurityFeedbackResource(commons.ApiRequester client) + : _requester = client; + + /// Creates a new report containing customer feedback. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - Required. Name of the organization. Use the following structure + /// in your request: `organizations/{org}`. + /// Value must have pattern `^organizations/\[^/\]+$`. + /// + /// [securityFeedbackId] - Optional. The id for this feedback report. If not + /// provided, it will be set to a system-generated UUID. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudApigeeV1SecurityFeedback]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future create( + GoogleCloudApigeeV1SecurityFeedback request, + core.String parent, { + core.String? securityFeedbackId, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (securityFeedbackId != null) + 'securityFeedbackId': [securityFeedbackId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/securityFeedback'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleCloudApigeeV1SecurityFeedback.fromJson( + response_ as core.Map, + ); + } + + /// Deletes a specific feedback report. + /// + /// Used for "undo" of a feedback submission. + /// + /// Request parameters: + /// + /// [name] - Required. Name of the SecurityFeedback to delete. Use the + /// following structure in your request: + /// `organizations/{org}/securityFeedback/{feedback_id}` + /// Value must have pattern + /// `^organizations/\[^/\]+/securityFeedback/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleProtobufEmpty]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future delete( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'DELETE', + queryParams: queryParams_, + ); + return GoogleProtobufEmpty.fromJson( + response_ as core.Map, + ); + } + + /// Gets a specific customer feedback report. + /// + /// Request parameters: + /// + /// [name] - Required. Name of the SecurityFeedback. Format: + /// `organizations/{org}/securityFeedback/{feedback_id}` Example: + /// organizations/apigee-organization-name/securityFeedback/feedback-id + /// Value must have pattern + /// `^organizations/\[^/\]+/securityFeedback/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudApigeeV1SecurityFeedback]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return GoogleCloudApigeeV1SecurityFeedback.fromJson( + response_ as core.Map, + ); + } + + /// Lists all feedback reports which have already been submitted. + /// + /// Request parameters: + /// + /// [parent] - Required. Name of the organization. Format: + /// `organizations/{org}`. Example: + /// organizations/apigee-organization-name/securityFeedback + /// Value must have pattern `^organizations/\[^/\]+$`. + /// + /// [pageSize] - Optional. The maximum number of feedback reports to return. + /// The service may return fewer than this value. + /// LINT.IfChange(documented_page_size_limits) If unspecified, at most 10 + /// feedback reports will be returned. The maximum value is 100; values above + /// 100 will be coerced to 100. LINT.ThenChange( + /// //depot/google3/edge/sense/boq/service/v1/securityfeedback/securityfeedback_rpc.go:page_size_limits + /// ) + /// + /// [pageToken] - Optional. A page token, received from a previous + /// `ListSecurityFeedback` call. Provide this to retrieve the subsequent page. + /// When paginating, all other parameters provided to `ListSecurityFeedback` + /// must match the call that provided the page token. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudApigeeV1ListSecurityFeedbackResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String parent, { + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/securityFeedback'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return GoogleCloudApigeeV1ListSecurityFeedbackResponse.fromJson( + response_ as core.Map, + ); + } + + /// Updates a specific feedback report. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Output only. Identifier. The feedback name is intended to be a + /// system-generated uuid. + /// Value must have pattern + /// `^organizations/\[^/\]+/securityFeedback/\[^/\]+$`. + /// + /// [updateMask] - Optional. The list of fields to update. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudApigeeV1SecurityFeedback]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future patch( + GoogleCloudApigeeV1SecurityFeedback request, + core.String name, { + core.String? updateMask, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (updateMask != null) 'updateMask': [updateMask], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'PATCH', + body: body_, + queryParams: queryParams_, + ); + return GoogleCloudApigeeV1SecurityFeedback.fromJson( + response_ as core.Map, + ); + } +} + class OrganizationsSecurityMonitoringConditionsResource { final commons.ApiRequester _requester; @@ -18359,7 +18606,11 @@ class GoogleCloudApigeeV1AdjustDeveloperBalanceRequest { /// /// * A negative value of `adjustment` means that that the API provider wants /// to adjust the balance for an over-charged developer i.e. the balance of - /// the developer will increase. + /// the developer will increase. NOTE: An adjustment cannot increase the + /// balance of the developer beyond the balance as of the most recent credit. + /// For example, if a developer's balance is updated to be $100, and they + /// spend $10, a negative adjustment can only increase the balance of the + /// developer to $100. GoogleTypeMoney? adjustment; GoogleCloudApigeeV1AdjustDeveloperBalanceRequest({this.adjustment}); @@ -20570,7 +20821,7 @@ class GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest { /// /// For Apigee, the environment is the scope of the resources. /// - /// Required. + /// Optional. core.String? scope; GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest({ @@ -26552,6 +26803,41 @@ class GoogleCloudApigeeV1ListSecurityActionsResponse { }; } +/// Response for ListSecurityFeedback +class GoogleCloudApigeeV1ListSecurityFeedbackResponse { + /// A token that can be sent as `page_token` in `ListSecurityFeedbackRequest` + /// to retrieve the next page. + /// + /// If this field is omitted, there are no subsequent pages. + core.String? nextPageToken; + + /// List of SecurityFeedback reports. + core.List? securityFeedback; + + GoogleCloudApigeeV1ListSecurityFeedbackResponse({ + this.nextPageToken, + this.securityFeedback, + }); + + GoogleCloudApigeeV1ListSecurityFeedbackResponse.fromJson(core.Map json_) + : this( + nextPageToken: json_['nextPageToken'] as core.String?, + securityFeedback: + (json_['securityFeedback'] as core.List?) + ?.map( + (value) => GoogleCloudApigeeV1SecurityFeedback.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + if (securityFeedback != null) 'securityFeedback': securityFeedback!, + }; +} + /// Response for ListSecurityIncidents. class GoogleCloudApigeeV1ListSecurityIncidentsResponse { /// A token that can be sent as `page_token` to retrieve the next page. @@ -30966,6 +31252,143 @@ class GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommen }; } +/// Represents a feedback report from an Advanced API Security customer. +class GoogleCloudApigeeV1SecurityFeedback { + /// Optional text the user can provide for additional, unstructured context. + /// + /// Optional. + core.String? comment; + + /// The time when this specific feedback id was created. + /// + /// Output only. + core.String? createTime; + + /// The display name of the feedback. + /// + /// Optional. + core.String? displayName; + + /// One or more attribute/value pairs for constraining the feedback. + /// + /// Required. + core.List? + feedbackContexts; + + /// The type of feedback being submitted. + /// + /// Required. + /// Possible string values are: + /// - "FEEDBACK_TYPE_UNSPECIFIED" : Unspecified feedback type. + /// - "EXCLUDED_DETECTION" : Feedback identifying attributes to be excluded + /// from detections. + core.String? feedbackType; + + /// Identifier. + /// + /// The feedback name is intended to be a system-generated uuid. + /// + /// Output only. + core.String? name; + + /// The reason for the feedback. + /// + /// Optional. + /// Possible string values are: + /// - "REASON_UNSPECIFIED" : Unspecified reason. + /// - "INTERNAL_SYSTEM" : The feedback is created for an internal system. + /// - "NON_RISK_CLIENT" : The feedback is created for a non-risk client. + /// - "NAT" : The feedback is created for to label NAT. + /// - "PENETRATION_TEST" : The feedback is created for a penetration test. + /// - "OTHER" : The feedback is created for other reasons. + core.String? reason; + + /// The time when this specific feedback id was updated. + /// + /// Output only. + core.String? updateTime; + + GoogleCloudApigeeV1SecurityFeedback({ + this.comment, + this.createTime, + this.displayName, + this.feedbackContexts, + this.feedbackType, + this.name, + this.reason, + this.updateTime, + }); + + GoogleCloudApigeeV1SecurityFeedback.fromJson(core.Map json_) + : this( + comment: json_['comment'] as core.String?, + createTime: json_['createTime'] as core.String?, + displayName: json_['displayName'] as core.String?, + feedbackContexts: + (json_['feedbackContexts'] as core.List?) + ?.map( + (value) => + GoogleCloudApigeeV1SecurityFeedbackFeedbackContext.fromJson( + value as core.Map, + ), + ) + .toList(), + feedbackType: json_['feedbackType'] as core.String?, + name: json_['name'] as core.String?, + reason: json_['reason'] as core.String?, + updateTime: json_['updateTime'] as core.String?, + ); + + core.Map toJson() => { + if (comment != null) 'comment': comment!, + if (createTime != null) 'createTime': createTime!, + if (displayName != null) 'displayName': displayName!, + if (feedbackContexts != null) 'feedbackContexts': feedbackContexts!, + if (feedbackType != null) 'feedbackType': feedbackType!, + if (name != null) 'name': name!, + if (reason != null) 'reason': reason!, + if (updateTime != null) 'updateTime': updateTime!, + }; +} + +/// FeedbackContext captures the intent of the submitted feedback. +class GoogleCloudApigeeV1SecurityFeedbackFeedbackContext { + /// The attribute the user is providing feedback about. + /// + /// Required. + /// Possible string values are: + /// - "ATTRIBUTE_UNSPECIFIED" : Unspecified attribute. + /// - "ATTRIBUTE_ENVIRONMENTS" : Values will be a list of environments. + /// - "ATTRIBUTE_IP_ADDRESS_RANGES" : Values will be a list of IP addresses. + /// This could be either IPv4 or IPv6. + /// - "ATTRIBUTE_API_KEYS" : Values will be a list of API keys. + core.String? attribute; + + /// The values of the attribute the user is providing feedback about. + /// + /// Required. + core.List? values; + + GoogleCloudApigeeV1SecurityFeedbackFeedbackContext({ + this.attribute, + this.values, + }); + + GoogleCloudApigeeV1SecurityFeedbackFeedbackContext.fromJson(core.Map json_) + : this( + attribute: json_['attribute'] as core.String?, + values: + (json_['values'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (attribute != null) 'attribute': attribute!, + if (values != null) 'values': values!, + }; +} + /// Represents an SecurityIncident resource. class GoogleCloudApigeeV1SecurityIncident { /// Detection types which are part of the incident. @@ -31103,7 +31526,7 @@ class GoogleCloudApigeeV1SecurityMonitoringCondition { /// /// For Apigee, the environment is the scope of the resources. /// - /// Required. + /// Optional. core.String? scope; /// Total number of deployed resources within scope. diff --git a/generated/googleapis/lib/apihub/v1.dart b/generated/googleapis/lib/apihub/v1.dart index b5602aabb..fd8e27d10 100644 --- a/generated/googleapis/lib/apihub/v1.dart +++ b/generated/googleapis/lib/apihub/v1.dart @@ -207,9 +207,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -409,6 +409,9 @@ class ProjectsLocationsApiHubInstancesResource { /// Deletes the API hub instance. /// + /// Deleting the API hub instance will also result in the removal of all + /// associated runtime project attachments and the host project registration. + /// /// Request parameters: /// /// [name] - Required. The name of the Api Hub instance to delete. Format: @@ -4705,6 +4708,53 @@ class ProjectsLocationsPluginsInstancesResource { ); } + /// Manages data for a given plugin instance. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Required. The name of the plugin instance for which data needs to + /// be managed. Format: + /// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/plugins/\[^/\]+/instances/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a + /// [GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future + manageSourceData( + GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest request, + core.String name, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':manageSourceData'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse.fromJson( + response_ as core.Map, + ); + } + /// Updates a plugin instance in the API hub. /// /// The following fields in the plugin_instance can be updated currently: * @@ -9181,6 +9231,73 @@ class GoogleCloudApihubV1LookupRuntimeProjectAttachmentResponse { }; } +/// The ManagePluginInstanceSourceData method's request. +class GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest { + /// Action to be performed. + /// + /// Required. + /// Possible string values are: + /// - "ACTION_UNSPECIFIED" : Default unspecified action. + /// - "UPLOAD" : Upload or upsert data. + /// - "DELETE" : Delete data. + core.String? action; + + /// Data to be managed. + /// + /// Required. + core.String? data; + core.List get dataAsBytes => convert.base64.decode(data!); + + set dataAsBytes(core.List bytes_) { + data = convert.base64 + .encode(bytes_) + .replaceAll('/', '_') + .replaceAll('+', '-'); + } + + /// Type of data to be managed. + /// + /// Required. + /// Possible string values are: + /// - "DATA_TYPE_UNSPECIFIED" : Default unspecified type. + /// - "PROXY_DEPLOYMENT_MANIFEST" : Proxy deployment manifest. + /// - "ENVIRONMENT_MANIFEST" : Environment manifest. + /// - "PROXY_BUNDLE" : Proxy bundle. + /// - "SHARED_FLOW_BUNDLE" : Shared flow bundle. + core.String? dataType; + + /// Relative path of data being managed for a given plugin instance. + /// + /// Required. + core.String? relativePath; + + GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest({ + this.action, + this.data, + this.dataType, + this.relativePath, + }); + + GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest.fromJson( + core.Map json_, + ) : this( + action: json_['action'] as core.String?, + data: json_['data'] as core.String?, + dataType: json_['dataType'] as core.String?, + relativePath: json_['relativePath'] as core.String?, + ); + + core.Map toJson() => { + if (action != null) 'action': action!, + if (data != null) 'data': data!, + if (dataType != null) 'dataType': dataType!, + if (relativePath != null) 'relativePath': relativePath!, + }; +} + +/// The ManagePluginInstanceSourceData method's response. +typedef GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse = $Empty; + /// MatchResult represents the result of matching a discovered API operation /// with a catalog API operation. class GoogleCloudApihubV1MatchResult { @@ -9514,7 +9631,10 @@ class GoogleCloudApihubV1PathParam { class GoogleCloudApihubV1Plugin { /// The configuration of actions supported by the plugin. /// - /// Required. + /// **REQUIRED**: This field must be provided when creating or updating a + /// Plugin. The server will reject requests if this field is missing. + /// + /// Optional. core.List? actionsConfig; /// The configuration template for the plugin. diff --git a/generated/googleapis/lib/appengine/v1.dart b/generated/googleapis/lib/appengine/v1.dart index ae5d8ccfe..6be64976b 100644 --- a/generated/googleapis/lib/appengine/v1.dart +++ b/generated/googleapis/lib/appengine/v1.dart @@ -151,8 +151,8 @@ class AppsResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the Application resource to get. - /// Example: apps/myapp. + /// [appsId] - Part of `name`. Required. Name of the Application resource to + /// get. Example: apps/myapp. /// /// [includeExtraData] - Options to include extra data /// Possible string values are: @@ -251,8 +251,8 @@ class AppsResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the Application resource to update. - /// Example: apps/myapp. + /// [appsId] - Part of `name`. Required. Name of the Application resource to + /// update. Example: apps/myapp. /// /// [updateMask] - Required. Standard field mask for the set of fields to be /// updated. @@ -306,8 +306,8 @@ class AppsResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the application to repair. Example: - /// apps/myapp + /// [appsId] - Part of `name`. Required. Name of the application to repair. + /// Example: apps/myapp /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -353,8 +353,8 @@ class AppsAuthorizedCertificatesResource { /// /// Request parameters: /// - /// [appsId] - Part of `parent`. Name of the parent Application resource. - /// Example: apps/myapp. + /// [appsId] - Part of `parent`. Required. Name of the parent Application + /// resource. Example: apps/myapp. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -396,8 +396,8 @@ class AppsAuthorizedCertificatesResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the resource to delete. Example: - /// apps/myapp/authorizedCertificates/12345. + /// [appsId] - Part of `name`. Required. Name of the resource to delete. + /// Example: apps/myapp/authorizedCertificates/12345. /// /// [authorizedCertificatesId] - Part of `name`. See documentation of /// `appsId`. @@ -439,8 +439,8 @@ class AppsAuthorizedCertificatesResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the resource requested. Example: - /// apps/myapp/authorizedCertificates/12345. + /// [appsId] - Part of `name`. Required. Name of the resource requested. + /// Example: apps/myapp/authorizedCertificates/12345. /// /// [authorizedCertificatesId] - Part of `name`. See documentation of /// `appsId`. @@ -494,8 +494,8 @@ class AppsAuthorizedCertificatesResource { /// /// Request parameters: /// - /// [appsId] - Part of `parent`. Name of the parent Application resource. - /// Example: apps/myapp. + /// [appsId] - Part of `parent`. Required. Name of the parent Application + /// resource. Example: apps/myapp. /// /// [pageSize] - Maximum results to return per page. /// @@ -559,8 +559,8 @@ class AppsAuthorizedCertificatesResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the resource to update. Example: - /// apps/myapp/authorizedCertificates/12345. + /// [appsId] - Part of `name`. Required. Name of the resource to update. + /// Example: apps/myapp/authorizedCertificates/12345. /// /// [authorizedCertificatesId] - Part of `name`. See documentation of /// `appsId`. @@ -620,8 +620,8 @@ class AppsAuthorizedDomainsResource { /// /// Request parameters: /// - /// [appsId] - Part of `parent`. Name of the parent Application resource. - /// Example: apps/myapp. + /// [appsId] - Part of `parent`. Required. Name of the parent Application + /// resource. Example: apps/myapp. /// /// [pageSize] - Maximum results to return per page. /// @@ -678,8 +678,8 @@ class AppsDomainMappingsResource { /// /// Request parameters: /// - /// [appsId] - Part of `parent`. Name of the parent Application resource. - /// Example: apps/myapp. + /// [appsId] - Part of `parent`. Required. Name of the parent Application + /// resource. Example: apps/myapp. /// /// [overrideStrategy] - Whether the domain creation should override any /// existing mappings for this domain. By default, overrides are rejected. @@ -735,8 +735,8 @@ class AppsDomainMappingsResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the resource to delete. Example: - /// apps/myapp/domainMappings/example.com. + /// [appsId] - Part of `name`. Required. Name of the resource to delete. + /// Example: apps/myapp/domainMappings/example.com. /// /// [domainMappingsId] - Part of `name`. See documentation of `appsId`. /// @@ -777,8 +777,8 @@ class AppsDomainMappingsResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the resource requested. Example: - /// apps/myapp/domainMappings/example.com. + /// [appsId] - Part of `name`. Required. Name of the resource requested. + /// Example: apps/myapp/domainMappings/example.com. /// /// [domainMappingsId] - Part of `name`. See documentation of `appsId`. /// @@ -821,8 +821,8 @@ class AppsDomainMappingsResource { /// /// Request parameters: /// - /// [appsId] - Part of `parent`. Name of the parent Application resource. - /// Example: apps/myapp. + /// [appsId] - Part of `parent`. Required. Name of the parent Application + /// resource. Example: apps/myapp. /// /// [pageSize] - Maximum results to return per page. /// @@ -874,8 +874,8 @@ class AppsDomainMappingsResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the resource to update. Example: - /// apps/myapp/domainMappings/example.com. + /// [appsId] - Part of `name`. Required. Name of the resource to update. + /// Example: apps/myapp/domainMappings/example.com. /// /// [domainMappingsId] - Part of `name`. See documentation of `appsId`. /// @@ -992,8 +992,9 @@ class AppsFirewallIngressRulesResource { /// /// Request parameters: /// - /// [appsId] - Part of `parent`. Name of the parent Firewall collection in - /// which to create a new rule. Example: apps/myapp/firewall/ingressRules. + /// [appsId] - Part of `parent`. Required. Name of the parent Firewall + /// collection in which to create a new rule. Example: + /// apps/myapp/firewall/ingressRules. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1278,9 +1279,9 @@ class AppsLocationsResource { /// [appsId] - Part of `name`. The resource that owns the locations /// collection, if applicable. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like "displayName=tokyo", and is @@ -1443,8 +1444,8 @@ class AppsServicesResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the resource requested. Example: - /// apps/myapp/services/default. + /// [appsId] - Part of `name`. Required. Name of the resource requested. + /// Example: apps/myapp/services/default. /// /// [servicesId] - Part of `name`. See documentation of `appsId`. /// @@ -1485,8 +1486,8 @@ class AppsServicesResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the resource requested. Example: - /// apps/myapp/services/default. + /// [appsId] - Part of `name`. Required. Name of the resource requested. + /// Example: apps/myapp/services/default. /// /// [servicesId] - Part of `name`. See documentation of `appsId`. /// @@ -1527,8 +1528,8 @@ class AppsServicesResource { /// /// Request parameters: /// - /// [appsId] - Part of `parent`. Name of the parent Application resource. - /// Example: apps/myapp. + /// [appsId] - Part of `parent`. Required. Name of the parent Application + /// resource. Example: apps/myapp. /// /// [pageSize] - Maximum results to return per page. /// @@ -1574,8 +1575,8 @@ class AppsServicesResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the resource to update. Example: - /// apps/myapp/services/default. + /// [appsId] - Part of `name`. Required. Name of the resource to update. + /// Example: apps/myapp/services/default. /// /// [servicesId] - Part of `name`. See documentation of `appsId`. /// @@ -1652,8 +1653,8 @@ class AppsServicesVersionsResource { /// /// Request parameters: /// - /// [appsId] - Part of `parent`. Name of the parent resource to create this - /// version under. Example: apps/myapp/services/default. + /// [appsId] - Part of `parent`. Required. Name of the parent resource to + /// create this version under. Example: apps/myapp/services/default. /// /// [servicesId] - Part of `parent`. See documentation of `appsId`. /// @@ -1698,8 +1699,8 @@ class AppsServicesVersionsResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the resource requested. Example: - /// apps/myapp/services/default/versions/v1. + /// [appsId] - Part of `name`. Required. Name of the resource requested. + /// Example: apps/myapp/services/default/versions/v1. /// /// [servicesId] - Part of `name`. See documentation of `appsId`. /// @@ -1748,8 +1749,8 @@ class AppsServicesVersionsResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the resource requested. Example: - /// apps/myapp/services/default/versions/v1. + /// [appsId] - Part of `name`. Required. Name of the resource requested. + /// Example: apps/myapp/services/default/versions/v1. /// /// [servicesId] - Part of `name`. See documentation of `appsId`. /// @@ -1805,8 +1806,8 @@ class AppsServicesVersionsResource { /// /// Request parameters: /// - /// [appsId] - Part of `parent`. Name of the parent Service resource. Example: - /// apps/myapp/services/default. + /// [appsId] - Part of `parent`. Required. Name of the parent Service + /// resource. Example: apps/myapp/services/default. /// /// [servicesId] - Part of `parent`. See documentation of `appsId`. /// @@ -1903,8 +1904,8 @@ class AppsServicesVersionsResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the resource to update. Example: - /// apps/myapp/services/default/versions/1. + /// [appsId] - Part of `name`. Required. Name of the resource to update. + /// Example: apps/myapp/services/default/versions/1. /// /// [servicesId] - Part of `name`. See documentation of `appsId`. /// @@ -1973,8 +1974,8 @@ class AppsServicesVersionsInstancesResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the resource requested. Example: - /// apps/myapp/services/default/versions/v1/instances/instance-1. + /// [appsId] - Part of `name`. Required. Name of the resource requested. + /// Example: apps/myapp/services/default/versions/v1/instances/instance-1. /// /// [servicesId] - Part of `name`. See documentation of `appsId`. /// @@ -2041,8 +2042,8 @@ class AppsServicesVersionsInstancesResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the resource requested. Example: - /// apps/myapp/services/default/versions/v1/instances/instance-1. + /// [appsId] - Part of `name`. Required. Name of the resource requested. + /// Example: apps/myapp/services/default/versions/v1/instances/instance-1. /// /// [servicesId] - Part of `name`. See documentation of `appsId`. /// @@ -2093,8 +2094,8 @@ class AppsServicesVersionsInstancesResource { /// /// Request parameters: /// - /// [appsId] - Part of `name`. Name of the resource requested. Example: - /// apps/myapp/services/default/versions/v1/instances/instance-1. + /// [appsId] - Part of `name`. Required. Name of the resource requested. + /// Example: apps/myapp/services/default/versions/v1/instances/instance-1. /// /// [servicesId] - Part of `name`. See documentation of `appsId`. /// @@ -2147,8 +2148,8 @@ class AppsServicesVersionsInstancesResource { /// /// Request parameters: /// - /// [appsId] - Part of `parent`. Name of the parent Version resource. Example: - /// apps/myapp/services/default/versions/v1. + /// [appsId] - Part of `parent`. Required. Name of the parent Version + /// resource. Example: apps/myapp/services/default/versions/v1. /// /// [servicesId] - Part of `parent`. See documentation of `appsId`. /// @@ -2248,8 +2249,8 @@ class ProjectsLocationsApplicationsResource { /// /// Request parameters: /// - /// [projectsId] - Part of `name`. Name of the Application resource to update. - /// Example: apps/myapp. + /// [projectsId] - Part of `name`. Required. Name of the Application resource + /// to update. Example: apps/myapp. /// /// [locationsId] - Part of `name`. See documentation of `projectsId`. /// @@ -2313,8 +2314,8 @@ class ProjectsLocationsApplicationsAuthorizedCertificatesResource { /// /// Request parameters: /// - /// [projectsId] - Part of `parent`. Name of the parent Application resource. - /// Example: apps/myapp. + /// [projectsId] - Part of `parent`. Required. Name of the parent Application + /// resource. Example: apps/myapp. /// /// [locationsId] - Part of `parent`. See documentation of `projectsId`. /// @@ -2366,8 +2367,8 @@ class ProjectsLocationsApplicationsAuthorizedCertificatesResource { /// /// Request parameters: /// - /// [projectsId] - Part of `name`. Name of the resource to delete. Example: - /// apps/myapp/authorizedCertificates/12345. + /// [projectsId] - Part of `name`. Required. Name of the resource to delete. + /// Example: apps/myapp/authorizedCertificates/12345. /// /// [locationsId] - Part of `name`. See documentation of `projectsId`. /// @@ -2419,8 +2420,8 @@ class ProjectsLocationsApplicationsAuthorizedCertificatesResource { /// /// Request parameters: /// - /// [projectsId] - Part of `name`. Name of the resource requested. Example: - /// apps/myapp/authorizedCertificates/12345. + /// [projectsId] - Part of `name`. Required. Name of the resource requested. + /// Example: apps/myapp/authorizedCertificates/12345. /// /// [locationsId] - Part of `name`. See documentation of `projectsId`. /// @@ -2484,8 +2485,8 @@ class ProjectsLocationsApplicationsAuthorizedCertificatesResource { /// /// Request parameters: /// - /// [projectsId] - Part of `parent`. Name of the parent Application resource. - /// Example: apps/myapp. + /// [projectsId] - Part of `parent`. Required. Name of the parent Application + /// resource. Example: apps/myapp. /// /// [locationsId] - Part of `parent`. See documentation of `projectsId`. /// @@ -2559,8 +2560,8 @@ class ProjectsLocationsApplicationsAuthorizedCertificatesResource { /// /// Request parameters: /// - /// [projectsId] - Part of `name`. Name of the resource to update. Example: - /// apps/myapp/authorizedCertificates/12345. + /// [projectsId] - Part of `name`. Required. Name of the resource to update. + /// Example: apps/myapp/authorizedCertificates/12345. /// /// [locationsId] - Part of `name`. See documentation of `projectsId`. /// @@ -2631,8 +2632,8 @@ class ProjectsLocationsApplicationsAuthorizedDomainsResource { /// /// Request parameters: /// - /// [projectsId] - Part of `parent`. Name of the parent Application resource. - /// Example: apps/myapp. + /// [projectsId] - Part of `parent`. Required. Name of the parent Application + /// resource. Example: apps/myapp. /// /// [locationsId] - Part of `parent`. See documentation of `projectsId`. /// @@ -2703,8 +2704,8 @@ class ProjectsLocationsApplicationsDomainMappingsResource { /// /// Request parameters: /// - /// [projectsId] - Part of `parent`. Name of the parent Application resource. - /// Example: apps/myapp. + /// [projectsId] - Part of `parent`. Required. Name of the parent Application + /// resource. Example: apps/myapp. /// /// [locationsId] - Part of `parent`. See documentation of `projectsId`. /// @@ -2769,8 +2770,8 @@ class ProjectsLocationsApplicationsDomainMappingsResource { /// /// Request parameters: /// - /// [projectsId] - Part of `name`. Name of the resource requested. Example: - /// apps/myapp/domainMappings/example.com. + /// [projectsId] - Part of `name`. Required. Name of the resource requested. + /// Example: apps/myapp/domainMappings/example.com. /// /// [locationsId] - Part of `name`. See documentation of `projectsId`. /// @@ -2833,8 +2834,8 @@ class ProjectsLocationsApplicationsServicesResource { /// /// Request parameters: /// - /// [projectsId] - Part of `name`. Name of the resource requested. Example: - /// apps/myapp/services/default. + /// [projectsId] - Part of `name`. Required. Name of the resource requested. + /// Example: apps/myapp/services/default. /// /// [locationsId] - Part of `name`. See documentation of `projectsId`. /// @@ -2887,8 +2888,8 @@ class ProjectsLocationsApplicationsServicesResource { /// /// Request parameters: /// - /// [projectsId] - Part of `name`. Name of the resource to update. Example: - /// apps/myapp/services/default. + /// [projectsId] - Part of `name`. Required. Name of the resource to update. + /// Example: apps/myapp/services/default. /// /// [locationsId] - Part of `name`. See documentation of `projectsId`. /// @@ -2971,8 +2972,8 @@ class ProjectsLocationsApplicationsServicesVersionsResource { /// /// Request parameters: /// - /// [projectsId] - Part of `name`. Name of the resource requested. Example: - /// apps/myapp/services/default/versions/v1. + /// [projectsId] - Part of `name`. Required. Name of the resource requested. + /// Example: apps/myapp/services/default/versions/v1. /// /// [locationsId] - Part of `name`. See documentation of `projectsId`. /// @@ -3063,8 +3064,8 @@ class ProjectsLocationsApplicationsServicesVersionsResource { /// /// Request parameters: /// - /// [projectsId] - Part of `name`. Name of the resource to update. Example: - /// apps/myapp/services/default/versions/1. + /// [projectsId] - Part of `name`. Required. Name of the resource to update. + /// Example: apps/myapp/services/default/versions/1. /// /// [locationsId] - Part of `name`. See documentation of `projectsId`. /// @@ -3283,12 +3284,6 @@ class Application { /// stored.Defaults to us-central.View the list of supported locations /// (https://cloud.google.com/appengine/docs/locations). core.String? locationId; - - /// Full path to the Application resource in the API. - /// - /// Example: apps/myapp.@OutputOnly - /// - /// Output only. core.String? name; /// The service account associated with the application. @@ -4269,6 +4264,12 @@ class FileInfo { /// A single firewall rule that is evaluated against incoming traffic and /// provides an action to take on matched requests. +/// +/// A positive integer between 1, Int32.MaxValue-1 that defines the order of +/// rule evaluation. Rules with the lowest priority are evaluated first.A +/// default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic +/// when no previous rule matches. Only the action of this rule can be modified +/// by the user. class FirewallRule { /// The action to take on matched requests. /// Possible string values are: @@ -4281,13 +4282,6 @@ class FirewallRule { /// /// This field has a maximum length of 400 characters. core.String? description; - - /// A positive integer between 1, Int32.MaxValue-1 that defines the order of - /// rule evaluation. - /// - /// Rules with the lowest priority are evaluated first.A default rule at - /// priority Int32.MaxValue matches all IPv4 and IPv6 traffic when no previous - /// rule matches. Only the action of this rule can be modified by the user. core.int? priority; /// IP address or range, defined using CIDR notation, of requests that this diff --git a/generated/googleapis/lib/apphub/v1.dart b/generated/googleapis/lib/apphub/v1.dart index 9e08b3c06..55554b40d 100644 --- a/generated/googleapis/lib/apphub/v1.dart +++ b/generated/googleapis/lib/apphub/v1.dart @@ -180,9 +180,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/authorizedbuyersmarketplace/v1.dart b/generated/googleapis/lib/authorizedbuyersmarketplace/v1.dart index 98b17753c..c968a088e 100644 --- a/generated/googleapis/lib/authorizedbuyersmarketplace/v1.dart +++ b/generated/googleapis/lib/authorizedbuyersmarketplace/v1.dart @@ -4780,6 +4780,8 @@ class SendRfpRequest { CriteriaTargeting? geoTargeting; /// Inventory sizes to be targeted. + /// + /// Only PIXEL inventory size type is supported. InventorySizeTargeting? inventorySizeTargeting; /// A message that is sent to the publisher. diff --git a/generated/googleapis/lib/backupdr/v1.dart b/generated/googleapis/lib/backupdr/v1.dart index 2b231d256..24afbf38b 100644 --- a/generated/googleapis/lib/backupdr/v1.dart +++ b/generated/googleapis/lib/backupdr/v1.dart @@ -32,6 +32,7 @@ /// - [ProjectsLocationsOperationsResource] /// - [ProjectsLocationsResourceBackupConfigsResource] /// - [ProjectsLocationsServiceConfigResource] +/// - [ProjectsLocationsTrialResource] library; import 'dart:async' as async; @@ -97,6 +98,8 @@ class ProjectsLocationsResource { ProjectsLocationsResourceBackupConfigsResource(_requester); ProjectsLocationsServiceConfigResource get serviceConfig => ProjectsLocationsServiceConfigResource(_requester); + ProjectsLocationsTrialResource get trial => + ProjectsLocationsTrialResource(_requester); ProjectsLocationsResource(commons.ApiRequester client) : _requester = client; @@ -132,6 +135,38 @@ class ProjectsLocationsResource { return Location.fromJson(response_ as core.Map); } + /// Gets the Trial state for a given project + /// + /// Request parameters: + /// + /// [name] - Required. The name of the trial to retrieve. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+/trial$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Trial]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future getTrial(core.String name, {core.String? $fields}) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return Trial.fromJson(response_ as core.Map); + } + /// Lists information about the supported locations for this service. /// /// Request parameters: @@ -139,9 +174,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -3055,6 +3090,53 @@ class ProjectsLocationsServiceConfigResource { } } +class ProjectsLocationsTrialResource { + final commons.ApiRequester _requester; + + ProjectsLocationsTrialResource(commons.ApiRequester client) + : _requester = client; + + /// Subscribes to a trial for a project + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent resource where this trial will be created. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Trial]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future subscribe( + SubscribeTrialRequest request, + core.String parent, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/trial:subscribe'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return Trial.fromJson(response_ as core.Map); + } +} + /// request message for AbandonBackup. class AbandonBackupRequest { /// An optional request ID to identify requests. @@ -4857,7 +4939,9 @@ class BackupRule { /// It is defined in “days”. The value should be greater than or equal to /// minimum enforced retention of the backup vault. Minimum value is 1 and /// maximum value is 36159 for custom retention on-demand backup. Minimum and - /// maximum values are workload specific for all other rules. + /// maximum values are workload specific for all other rules. Note: Longer + /// retention can lead to higher storage costs post introductory trial. We + /// recommend starting with a short duration of 3 days or less. /// /// Required. core.int? backupRetentionDays; @@ -4939,7 +5023,10 @@ class BackupVault { /// The default and minimum enforced retention for each backup within the /// backup vault. /// - /// The enforced retention for each backup can be extended. + /// The enforced retention for each backup can be extended. Note: Longer + /// minimum enforced retention period impacts potential storage costs post + /// introductory trial. We recommend starting with a short duration of 3 days + /// or less. /// /// Required. core.String? backupMinimumEnforcedRetentionDuration; @@ -6506,6 +6593,9 @@ class DataSourceReference { /// DiskBackupProperties represents the properties of a Disk backup. class DiskBackupProperties { + /// The access mode of the source disk. + core.String? accessMode; + /// The architecture of the source disk. /// /// Valid values are ARM64 or X86_64. @@ -6518,15 +6608,30 @@ class DiskBackupProperties { /// A description of the source disk. core.String? description; + /// Indicates whether the source disk is using confidential compute mode. + core.bool? enableConfidentialCompute; + /// A list of guest OS features that are applicable to this backup. core.List? guestOsFeature; + /// The labels of the source disk. + core.Map? labels; + /// A list of publicly available licenses that are applicable to this backup. /// /// This is applicable if the original image had licenses attached, e.g. /// Windows image. core.List? licenses; + /// The physical block size of the source disk. + core.String? physicalBlockSizeBytes; + + /// The number of IOPS provisioned for the source disk. + core.String? provisionedIops; + + /// The number of throughput provisioned for the source disk. + core.String? provisionedThroughput; + /// Region and zone are mutually exclusive fields. /// /// The URL of the region of the source disk. @@ -6541,6 +6646,9 @@ class DiskBackupProperties { /// The source disk used to create this backup. core.String? sourceDisk; + /// The storage pool of the source disk. + core.String? storagePool; + /// The URL of the type of the disk. core.String? type; @@ -6548,22 +6656,32 @@ class DiskBackupProperties { core.String? zone; DiskBackupProperties({ + this.accessMode, this.architecture, this.description, + this.enableConfidentialCompute, this.guestOsFeature, + this.labels, this.licenses, + this.physicalBlockSizeBytes, + this.provisionedIops, + this.provisionedThroughput, this.region, this.replicaZones, this.sizeGb, this.sourceDisk, + this.storagePool, this.type, this.zone, }); DiskBackupProperties.fromJson(core.Map json_) : this( + accessMode: json_['accessMode'] as core.String?, architecture: json_['architecture'] as core.String?, description: json_['description'] as core.String?, + enableConfidentialCompute: + json_['enableConfidentialCompute'] as core.bool?, guestOsFeature: (json_['guestOsFeature'] as core.List?) ?.map( @@ -6572,10 +6690,16 @@ class DiskBackupProperties { ), ) .toList(), + labels: (json_['labels'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), licenses: (json_['licenses'] as core.List?) ?.map((value) => value as core.String) .toList(), + physicalBlockSizeBytes: json_['physicalBlockSizeBytes'] as core.String?, + provisionedIops: json_['provisionedIops'] as core.String?, + provisionedThroughput: json_['provisionedThroughput'] as core.String?, region: json_['region'] as core.String?, replicaZones: (json_['replicaZones'] as core.List?) @@ -6583,19 +6707,30 @@ class DiskBackupProperties { .toList(), sizeGb: json_['sizeGb'] as core.String?, sourceDisk: json_['sourceDisk'] as core.String?, + storagePool: json_['storagePool'] as core.String?, type: json_['type'] as core.String?, zone: json_['zone'] as core.String?, ); core.Map toJson() => { + if (accessMode != null) 'accessMode': accessMode!, if (architecture != null) 'architecture': architecture!, if (description != null) 'description': description!, + if (enableConfidentialCompute != null) + 'enableConfidentialCompute': enableConfidentialCompute!, if (guestOsFeature != null) 'guestOsFeature': guestOsFeature!, + if (labels != null) 'labels': labels!, if (licenses != null) 'licenses': licenses!, + if (physicalBlockSizeBytes != null) + 'physicalBlockSizeBytes': physicalBlockSizeBytes!, + if (provisionedIops != null) 'provisionedIops': provisionedIops!, + if (provisionedThroughput != null) + 'provisionedThroughput': provisionedThroughput!, if (region != null) 'region': region!, if (replicaZones != null) 'replicaZones': replicaZones!, if (sizeGb != null) 'sizeGb': sizeGb!, if (sourceDisk != null) 'sourceDisk': sourceDisk!, + if (storagePool != null) 'storagePool': storagePool!, if (type != null) 'type': type!, if (zone != null) 'zone': zone!, }; @@ -8868,6 +9003,8 @@ class ResourceBackupConfig { /// - "RESOURCE_TYPE_UNSPECIFIED" : Resource type not set. /// - "CLOUD_SQL_INSTANCE" : Cloud SQL instance. /// - "COMPUTE_ENGINE_VM" : Compute Engine VM. + /// - "COMPUTE_ENGINE_DISK" : Compute Engine Disk. + /// - "COMPUTE_ENGINE_REGIONAL_DISK" : Compute Engine Regional Disk. core.String? targetResourceType; /// The unique identifier of the resource backup config. @@ -9543,6 +9680,9 @@ class StandardSchedule { /// [API Design Guide](https://cloud.google.com/apis/design/errors). typedef Status = $Status00; +/// Request message for subscribing to a trial. +typedef SubscribeTrialRequest = $Empty; + /// A set of instance tags. class Tags { /// An array of tags. @@ -9573,6 +9713,66 @@ typedef TestIamPermissionsRequest = $TestIamPermissionsRequest00; /// Response message for `TestIamPermissions` method. typedef TestIamPermissionsResponse = $PermissionsResponse; +/// Represents a Trial for a project. +class Trial { + /// The reason for ending the trial. + /// + /// Output only. + /// Possible string values are: + /// - "END_REASON_UNSPECIFIED" : End reason not set. + /// - "MOVE_TO_PAID" : Trial is deliberately ended by the user to transition + /// to paid usage. + /// - "DISCONTINUED" : Trial is discontinued before expiration. + core.String? endReason; + + /// The time when the trial will expire. + /// + /// Output only. + core.String? endTime; + + /// Identifier. + /// + /// The resource name of the trial. Format: + /// projects/{project}/locations/{location}/trial + core.String? name; + + /// The time when the trial was subscribed. + /// + /// Output only. + core.String? startTime; + + /// The state of the trial. + /// + /// Output only. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : State not set. + /// - "SUBSCRIBED" : Trial is subscribed. + /// - "UNSUBSCRIBED" : Trial is unsubscribed before expiration. + /// - "EXPIRED" : Trial is expired post 30 days of subscription. + /// - "ELIGIBLE" : Trial is eligible for enablement. + /// - "NOT_ELIGIBLE" : Trial is not eligible for enablement. + core.String? state; + + Trial({this.endReason, this.endTime, this.name, this.startTime, this.state}); + + Trial.fromJson(core.Map json_) + : this( + endReason: json_['endReason'] as core.String?, + endTime: json_['endTime'] as core.String?, + name: json_['name'] as core.String?, + startTime: json_['startTime'] as core.String?, + state: json_['state'] as core.String?, + ); + + core.Map toJson() => { + if (endReason != null) 'endReason': endReason!, + if (endTime != null) 'endTime': endTime!, + if (name != null) 'name': name!, + if (startTime != null) 'startTime': startTime!, + if (state != null) 'state': state!, + }; +} + /// Request message for triggering a backup. class TriggerBackupRequest { /// An optional request ID to identify requests. diff --git a/generated/googleapis/lib/batch/v1.dart b/generated/googleapis/lib/batch/v1.dart index f38d54cd9..e36c57c71 100644 --- a/generated/googleapis/lib/batch/v1.dart +++ b/generated/googleapis/lib/batch/v1.dart @@ -125,9 +125,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/beyondcorp/v1.dart b/generated/googleapis/lib/beyondcorp/v1.dart index ae47e367c..2f8735f3d 100644 --- a/generated/googleapis/lib/beyondcorp/v1.dart +++ b/generated/googleapis/lib/beyondcorp/v1.dart @@ -351,9 +351,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/bigquery/v2.dart b/generated/googleapis/lib/bigquery/v2.dart index e70beacce..2c5ab08c0 100644 --- a/generated/googleapis/lib/bigquery/v2.dart +++ b/generated/googleapis/lib/bigquery/v2.dart @@ -5002,8 +5002,10 @@ class DataMaskingStatistics { }; } -/// Data policy option proto, it currently supports name only, will support -/// precedence later. +/// Data policy option. +/// +/// For more information, see +/// [Mask data by applying data policies to a column](https://cloud.google.com/bigquery/docs/column-data-masking#data-policies-on-column/). class DataPolicyOption { /// Data policy resource name in the form of /// projects/project_id/locations/location_id/dataPolicies/data_policy_id. @@ -8767,6 +8769,15 @@ class JobConfiguration { /// \[Pick one\] Configures a load job. JobConfigurationLoad? load; + /// INTERNAL: DO NOT USE. + /// + /// The maximum rate of slot consumption to allow for this job. If set, the + /// number of slots used to execute the job will be throttled to try and keep + /// its slot consumption below the requested rate. + /// + /// Optional. + core.int? maxSlots; + /// \[Pick one\] Configures a query job. JobConfigurationQuery? query; @@ -8788,6 +8799,7 @@ class JobConfiguration { this.jobType, this.labels, this.load, + this.maxSlots, this.query, this.reservation, }); @@ -8818,6 +8830,7 @@ class JobConfiguration { json_['load'] as core.Map, ) : null, + maxSlots: json_['maxSlots'] as core.int?, query: json_.containsKey('query') ? JobConfigurationQuery.fromJson( @@ -8835,6 +8848,7 @@ class JobConfiguration { if (jobType != null) 'jobType': jobType!, if (labels != null) 'labels': labels!, if (load != null) 'load': load!, + if (maxSlots != null) 'maxSlots': maxSlots!, if (query != null) 'query': query!, if (reservation != null) 'reservation': reservation!, }; @@ -13715,6 +13729,15 @@ class QueryRequest { /// Optional. core.int? maxResults; + /// INTERNAL: DO NOT USE. + /// + /// The maximum rate of slot consumption to allow for this job. If set, the + /// number of slots used to execute the job will be throttled to try and keep + /// its slot consumption below the requested rate. This limit is best effort. + /// + /// Optional. + core.int? maxSlots; + /// Limits the bytes billed for this query. /// /// Queries with bytes billed above this limit will fail (without incurring a @@ -13835,6 +13858,7 @@ class QueryRequest { this.labels, this.location, this.maxResults, + this.maxSlots, this.maximumBytesBilled, this.parameterMode, this.preserveNulls, @@ -13889,6 +13913,7 @@ class QueryRequest { ), location: json_['location'] as core.String?, maxResults: json_['maxResults'] as core.int?, + maxSlots: json_['maxSlots'] as core.int?, maximumBytesBilled: json_['maximumBytesBilled'] as core.String?, parameterMode: json_['parameterMode'] as core.String?, preserveNulls: json_['preserveNulls'] as core.bool?, @@ -13925,6 +13950,7 @@ class QueryRequest { if (labels != null) 'labels': labels!, if (location != null) 'location': location!, if (maxResults != null) 'maxResults': maxResults!, + if (maxSlots != null) 'maxSlots': maxSlots!, if (maximumBytesBilled != null) 'maximumBytesBilled': maximumBytesBilled!, if (parameterMode != null) 'parameterMode': parameterMode!, if (preserveNulls != null) 'preserveNulls': preserveNulls!, @@ -14643,16 +14669,17 @@ class Routine { /// The body of the routine. /// - /// For functions, this is the expression in the AS clause. If language=SQL, - /// it is the substring inside (but excluding) the parentheses. For example, - /// for the function created with the following statement: `CREATE FUNCTION - /// JoinLines(x string, y string) as (concat(x, "\n", y))` The definition_body - /// is `concat(x, "\n", y)` (\n is not replaced with linebreak). If - /// language=JAVASCRIPT, it is the evaluated string in the AS clause. For + /// For functions, this is the expression in the AS clause. If `language = + /// "SQL"`, it is the substring inside (but excluding) the parentheses. For /// example, for the function created with the following statement: `CREATE - /// FUNCTION f() RETURNS STRING LANGUAGE js AS 'return "\n";\n'` The - /// definition_body is `return "\n";\n` Note that both \n are replaced with - /// linebreaks. + /// FUNCTION JoinLines(x string, y string) as (concat(x, "\n", y))` The + /// definition_body is `concat(x, "\n", y)` (\n is not replaced with + /// linebreak). If `language="JAVASCRIPT"`, it is the evaluated string in the + /// AS clause. For example, for the function created with the following + /// statement: `CREATE FUNCTION f() RETURNS STRING LANGUAGE js AS 'return + /// "\n";\n'` The definition_body is `return "\n";\n` Note that both \n are + /// replaced with linebreaks. If `definition_body` references another routine, + /// then that routine must be fully qualified with its project ID. /// /// Required. core.String? definitionBody; @@ -17437,7 +17464,7 @@ class TableFieldSchema { /// Optional. core.String? collation; - /// Data policy options, will replace the data_policies. + /// Data policies attached to this field, used for field-level access control. /// /// Optional. core.List? dataPolicies; diff --git a/generated/googleapis/lib/bigquerydatatransfer/v1.dart b/generated/googleapis/lib/bigquerydatatransfer/v1.dart index 1b845d3b8..8bba91fd5 100644 --- a/generated/googleapis/lib/bigquerydatatransfer/v1.dart +++ b/generated/googleapis/lib/bigquerydatatransfer/v1.dart @@ -384,9 +384,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -2199,6 +2199,9 @@ class DataSourceParameter { /// Cannot be changed after initial creation. core.bool? immutable; + /// For list parameters, the max size of the list. + core.String? maxListSize; + /// For integer and double values specifies maximum allowed value. core.double? maxValue; @@ -2251,6 +2254,7 @@ class DataSourceParameter { this.displayName, this.fields, this.immutable, + this.maxListSize, this.maxValue, this.minValue, this.paramId, @@ -2281,6 +2285,7 @@ class DataSourceParameter { ) .toList(), immutable: json_['immutable'] as core.bool?, + maxListSize: json_['maxListSize'] as core.String?, maxValue: (json_['maxValue'] as core.num?)?.toDouble(), minValue: (json_['minValue'] as core.num?)?.toDouble(), paramId: json_['paramId'] as core.String?, @@ -2300,6 +2305,7 @@ class DataSourceParameter { if (displayName != null) 'displayName': displayName!, if (fields != null) 'fields': fields!, if (immutable != null) 'immutable': immutable!, + if (maxListSize != null) 'maxListSize': maxListSize!, if (maxValue != null) 'maxValue': maxValue!, if (minValue != null) 'minValue': minValue!, if (paramId != null) 'paramId': paramId!, diff --git a/generated/googleapis/lib/bigqueryreservation/v1.dart b/generated/googleapis/lib/bigqueryreservation/v1.dart index 89826ba4b..d0ed21e6a 100644 --- a/generated/googleapis/lib/bigqueryreservation/v1.dart +++ b/generated/googleapis/lib/bigqueryreservation/v1.dart @@ -1783,6 +1783,18 @@ class Assignment { /// - "CONTINUOUS" : Continuous SQL jobs will use this reservation. /// Reservations with continuous assignments cannot be mixed with /// non-continuous assignments. + /// - "BACKGROUND_CHANGE_DATA_CAPTURE" : Finer granularity background jobs for + /// capturing changes in a source database and streaming them into BigQuery. + /// Reservations with this job type take priority over a default BACKGROUND + /// reservation assignment (if it exists). + /// - "BACKGROUND_COLUMN_METADATA_INDEX" : Finer granularity background jobs + /// for refreshing cached metadata for BigQuery tables. Reservations with this + /// job type take priority over a default BACKGROUND reservation assignment + /// (if it exists). + /// - "BACKGROUND_SEARCH_INDEX_REFRESH" : Finer granularity background jobs + /// for refreshing search indexes upon BigQuery table columns. Reservations + /// with this job type take priority over a default BACKGROUND reservation + /// assignment (if it exists). core.String? jobType; /// Name of the resource. @@ -2317,13 +2329,18 @@ typedef Expr = $Expr; /// The request for ReservationService.FailoverReservation. class FailoverReservationRequest { - /// failover mode for the failover operation. + /// A parameter that determines how writes that are pending replication are + /// handled after a failover is initiated. + /// + /// If not specified, HARD failover mode is used by default. /// /// Optional. /// Possible string values are: /// - "FAILOVER_MODE_UNSPECIFIED" : Invalid value. /// - "SOFT" : When customers initiate a soft failover, BigQuery will wait - /// until all committed writes are replicated to the secondary. + /// until all committed writes are replicated to the secondary. This mode + /// requires both regions to be available for the failover to succeed and + /// prevents data loss. /// - "HARD" : When customers initiate a hard failover, BigQuery will not wait /// until all committed writes are replicated to the secondary. There can be /// data loss for hard failover. diff --git a/generated/googleapis/lib/bigtableadmin/v2.dart b/generated/googleapis/lib/bigtableadmin/v2.dart index f4eb83eae..484f8aa7e 100644 --- a/generated/googleapis/lib/bigtableadmin/v2.dart +++ b/generated/googleapis/lib/bigtableadmin/v2.dart @@ -115,83 +115,6 @@ class OperationsResource { OperationsResource(commons.ApiRequester client) : _requester = client; - /// Starts asynchronous cancellation on a long-running operation. - /// - /// The server makes a best effort to cancel the operation, but success is not - /// guaranteed. If the server doesn't support this method, it returns - /// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation - /// or other methods to check whether the cancellation succeeded or whether - /// the operation completed despite cancellation. On successful cancellation, - /// the operation is not deleted; instead, it becomes an operation with an - /// Operation.error value with a google.rpc.Status.code of `1`, corresponding - /// to `Code.CANCELLED`. - /// - /// Request parameters: - /// - /// [name] - The name of the operation resource to be cancelled. - /// Value must have pattern `^operations/.*$`. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Empty]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future cancel(core.String name, {core.String? $fields}) async { - final queryParams_ = >{ - if ($fields != null) 'fields': [$fields], - }; - - final url_ = 'v2/' + core.Uri.encodeFull('$name') + ':cancel'; - - final response_ = await _requester.request( - url_, - 'POST', - queryParams: queryParams_, - ); - return Empty.fromJson(response_ as core.Map); - } - - /// Deletes a long-running operation. - /// - /// This method indicates that the client is no longer interested in the - /// operation result. It does not cancel the operation. If the server doesn't - /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. - /// - /// Request parameters: - /// - /// [name] - The name of the operation resource to be deleted. - /// Value must have pattern `^operations/.*$`. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Empty]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future delete(core.String name, {core.String? $fields}) async { - final queryParams_ = >{ - if ($fields != null) 'fields': [$fields], - }; - - final url_ = 'v2/' + core.Uri.encodeFull('$name'); - - final response_ = await _requester.request( - url_, - 'DELETE', - queryParams: queryParams_, - ); - return Empty.fromJson(response_ as core.Map); - } - /// Gets the latest state of a long-running operation. /// /// Clients can use this method to poll the operation result at intervals as @@ -2403,6 +2326,7 @@ class ProjectsInstancesMaterializedViewsResource { /// /// [name] - Identifier. The unique name of the materialized view. Format: /// `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` + /// Views: `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`. /// Value must have pattern /// `^projects/\[^/\]+/instances/\[^/\]+/materializedViews/\[^/\]+$`. /// @@ -4061,38 +3985,6 @@ class ProjectsLocationsResource { ProjectsLocationsResource(commons.ApiRequester client) : _requester = client; - /// Gets information about a location. - /// - /// Request parameters: - /// - /// [name] - Resource name for the location. - /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Location]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future get(core.String name, {core.String? $fields}) async { - final queryParams_ = >{ - if ($fields != null) 'fields': [$fields], - }; - - final url_ = 'v2/' + core.Uri.encodeFull('$name'); - - final response_ = await _requester.request( - url_, - 'GET', - queryParams: queryParams_, - ); - return Location.fromJson(response_ as core.Map); - } - /// Lists information about the supported locations for this service. /// /// Request parameters: @@ -4100,9 +3992,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -6590,6 +6482,18 @@ class Instance { /// destroyed if the creation process encounters an error. core.String? state; + /// Input only. + /// + /// Immutable. Tag keys/values directly bound to this resource. For example: - + /// "123/environment": "production", - "123/costCenter": "marketing" Tags and + /// Labels (above) are both used to bind metadata to resources, with different + /// use-cases. See + /// https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + /// in-depth overview on the difference between tags and labels. + /// + /// Optional. + core.Map? tags; + /// The type of the instance. /// /// Defaults to `PRODUCTION`. @@ -6611,6 +6515,7 @@ class Instance { this.satisfiesPzi, this.satisfiesPzs, this.state, + this.tags, this.type, }); @@ -6625,6 +6530,9 @@ class Instance { satisfiesPzi: json_['satisfiesPzi'] as core.bool?, satisfiesPzs: json_['satisfiesPzs'] as core.bool?, state: json_['state'] as core.String?, + tags: (json_['tags'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), type: json_['type'] as core.String?, ); @@ -6636,6 +6544,7 @@ class Instance { if (satisfiesPzi != null) 'satisfiesPzi': satisfiesPzi!, if (satisfiesPzs != null) 'satisfiesPzs': satisfiesPzs!, if (state != null) 'state': state!, + if (tags != null) 'tags': tags!, if (type != null) 'type': type!, }; } @@ -7140,13 +7049,15 @@ class LogicalView { /// A materialized view object that can be referenced in SQL queries. class MaterializedView { /// Set to true to make the MaterializedView protected against deletion. + /// + /// Views: `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`. core.bool? deletionProtection; /// The etag for this materialized view. /// /// This may be sent on update requests to ensure that the client has an /// up-to-date value before proceeding. The server returns an ABORTED error on - /// a mismatched etag. + /// a mismatched etag. Views: `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`. /// /// Optional. core.String? etag; @@ -7155,10 +7066,13 @@ class MaterializedView { /// /// The unique name of the materialized view. Format: /// `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` + /// Views: `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`. core.String? name; /// The materialized view's select query. /// + /// Views: `SCHEMA_VIEW`, `FULL`. + /// /// Required. Immutable. core.String? query; diff --git a/generated/googleapis/lib/certificatemanager/v1.dart b/generated/googleapis/lib/certificatemanager/v1.dart index 344d04ec3..d428a33ca 100644 --- a/generated/googleapis/lib/certificatemanager/v1.dart +++ b/generated/googleapis/lib/certificatemanager/v1.dart @@ -131,9 +131,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/chat/v1.dart b/generated/googleapis/lib/chat/v1.dart index 06dc7bffe..35488669e 100644 --- a/generated/googleapis/lib/chat/v1.dart +++ b/generated/googleapis/lib/chat/v1.dart @@ -1124,13 +1124,14 @@ class SpacesResource { /// Returns a list of spaces in a Google Workspace organization based on an /// administrator's search. /// + /// In the request, set `use_admin_access` to `true`. For an example, see + /// [Search for and manage spaces](https://developers.google.com/workspace/chat/search-manage-admin). /// Requires /// [user authentication with administrator privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges) /// and one of the following /// [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): /// - `https://www.googleapis.com/auth/chat.admin.spaces.readonly` - - /// `https://www.googleapis.com/auth/chat.admin.spaces` In the request, set - /// `use_admin_access` to `true`. + /// `https://www.googleapis.com/auth/chat.admin.spaces` /// /// Request parameters: /// @@ -1985,8 +1986,18 @@ class SpacesMessagesResource { /// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): /// - /// [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - /// with the authorization scope: - `https://www.googleapis.com/auth/chat.bot` - /// - + /// with one of the following authorization scopes: - + /// `https://www.googleapis.com/auth/chat.bot`: When using this authorization + /// scope, this method returns details about a message the Chat app has access + /// to, like direct messages and + /// [slash commands](https://developers.google.com/workspace/chat/slash-commands) + /// that invoke the Chat app. - + /// `https://www.googleapis.com/auth/chat.app.messages.readonly` with + /// [administrator approval](https://support.google.com/a?p=chat-app-auth) + /// (available in + /// [Developer Preview](https://developers.google.com/workspace/preview)). + /// When using this authentication scope, this method returns details about a + /// public message in a space. - /// [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) /// with one of the following authorization scopes: - /// `https://www.googleapis.com/auth/chat.messages.readonly` - @@ -2030,15 +2041,25 @@ class SpacesMessagesResource { /// Lists messages in a space that the caller is a member of, including /// messages from blocked members and spaces. /// + /// System messages, like those announcing new space members, aren't included. /// If you list messages from a space with no messages, the response is an /// empty object. When using a REST/HTTP interface, the response contains an /// empty JSON object, `{}`. For an example, see /// [List messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). - /// Requires - /// [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - /// with one of the following - /// [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - /// - `https://www.googleapis.com/auth/chat.messages.readonly` - + /// Supports the following types of + /// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + /// - + /// [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + /// with + /// [administrator approval](https://support.google.com/a?p=chat-app-auth) in + /// [Developer Preview](https://developers.google.com/workspace/preview) with + /// the authorization scope: - + /// `https://www.googleapis.com/auth/chat.app.messages.readonly`. When using + /// this authentication scope, this method only returns public messages in a + /// space. It doesn't include private messages. - + /// [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + /// with one of the following authorization scopes: - + /// `https://www.googleapis.com/auth/chat.messages.readonly` - /// `https://www.googleapis.com/auth/chat.messages` - /// `https://www.googleapis.com/auth/chat.import` (import mode spaces only) /// @@ -2176,7 +2197,8 @@ class SpacesMessagesResource { /// authentication\](/chat/api/guides/auth/service-accounts).) - `cards_v2` /// (Requires \[app authentication\](/chat/api/guides/auth/service-accounts).) /// - `accessory_widgets` (Requires \[app - /// authentication\](/chat/api/guides/auth/service-accounts).) + /// authentication\](/chat/api/guides/auth/service-accounts).) - + /// `quoted_message_metadata` (Only allows removal of the quoted message.) /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2260,7 +2282,8 @@ class SpacesMessagesResource { /// authentication\](/chat/api/guides/auth/service-accounts).) - `cards_v2` /// (Requires \[app authentication\](/chat/api/guides/auth/service-accounts).) /// - `accessory_widgets` (Requires \[app - /// authentication\](/chat/api/guides/auth/service-accounts).) + /// authentication\](/chat/api/guides/auth/service-accounts).) - + /// `quoted_message_metadata` (Only allows removal of the quoted message.) /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -4683,6 +4706,12 @@ class GoogleAppsCardV1Card { /// the top card in the card stack. core.String? displayStyle; + /// The expression data for the card. + /// + /// Only supported by Google Workspace Workflow, but not Google Chat apps or + /// Google Workspace add-ons. + core.List? expressionData; + /// The fixed footer shown at the bottom of this card. /// /// Setting `fixedFooter` without specifying a `primaryButton` or a @@ -4733,6 +4762,7 @@ class GoogleAppsCardV1Card { GoogleAppsCardV1Card({ this.cardActions, this.displayStyle, + this.expressionData, this.fixedFooter, this.header, this.name, @@ -4752,6 +4782,14 @@ class GoogleAppsCardV1Card { ) .toList(), displayStyle: json_['displayStyle'] as core.String?, + expressionData: + (json_['expressionData'] as core.List?) + ?.map( + (value) => GoogleAppsCardV1ExpressionData.fromJson( + value as core.Map, + ), + ) + .toList(), fixedFooter: json_.containsKey('fixedFooter') ? GoogleAppsCardV1CardFixedFooter.fromJson( @@ -4786,6 +4824,7 @@ class GoogleAppsCardV1Card { core.Map toJson() => { if (cardActions != null) 'cardActions': cardActions!, if (displayStyle != null) 'displayStyle': displayStyle!, + if (expressionData != null) 'expressionData': expressionData!, if (fixedFooter != null) 'fixedFooter': fixedFooter!, if (header != null) 'header': header!, if (name != null) 'name': name!, @@ -4938,9 +4977,9 @@ class GoogleAppsCardV1CardHeader { }; } -/// [Developer Preview](https://developers.google.com/workspace/preview): A -/// carousel, also known as a slider, rotates and displays a list of widgets in -/// a slideshow format, with buttons navigating to the previous or next widget. +/// A carousel, also known as a slider, rotates and displays a list of widgets +/// in a slideshow format, with buttons navigating to the previous or next +/// widget. /// /// For example, this is a JSON representation of a carousel that contains three /// text paragraph widgets. ``` { "carouselCards": [ { "widgets": [ { @@ -4972,8 +5011,7 @@ class GoogleAppsCardV1Carousel { }; } -/// [Developer Preview](https://developers.google.com/workspace/preview): A card -/// that can be displayed as a carousel item. +/// A card that can be displayed as a carousel item. /// /// [Google Chat apps](https://developers.google.com/workspace/chat): class GoogleAppsCardV1CarouselCard { @@ -5318,6 +5356,105 @@ class GoogleAppsCardV1Columns { }; } +/// Represents an action that is not specific to a widget. +/// +/// Only supported by Google Workspace Workflow, but not Google Chat apps or +/// Google Workspace add-ons. +class GoogleAppsCardV1CommonWidgetAction { + /// The action to update the visibility of a widget. + GoogleAppsCardV1UpdateVisibilityAction? updateVisibilityAction; + + GoogleAppsCardV1CommonWidgetAction({this.updateVisibilityAction}); + + GoogleAppsCardV1CommonWidgetAction.fromJson(core.Map json_) + : this( + updateVisibilityAction: + json_.containsKey('updateVisibilityAction') + ? GoogleAppsCardV1UpdateVisibilityAction.fromJson( + json_['updateVisibilityAction'] + as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (updateVisibilityAction != null) + 'updateVisibilityAction': updateVisibilityAction!, + }; +} + +/// Represents a condition that can be used to trigger an action. +/// +/// Only supported by Google Workspace Workflow, but not Google Chat apps or +/// Google Workspace add-ons. +class GoogleAppsCardV1Condition { + /// The unique identifier of the ActionRule. + core.String? actionRuleId; + + /// The condition that is determined by the expression data. + GoogleAppsCardV1ExpressionDataCondition? expressionDataCondition; + + GoogleAppsCardV1Condition({this.actionRuleId, this.expressionDataCondition}); + + GoogleAppsCardV1Condition.fromJson(core.Map json_) + : this( + actionRuleId: json_['actionRuleId'] as core.String?, + expressionDataCondition: + json_.containsKey('expressionDataCondition') + ? GoogleAppsCardV1ExpressionDataCondition.fromJson( + json_['expressionDataCondition'] + as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (actionRuleId != null) 'actionRuleId': actionRuleId!, + if (expressionDataCondition != null) + 'expressionDataCondition': expressionDataCondition!, + }; +} + +/// A configuration object that helps configure the data sources for a widget. +/// +/// Only supported by Google Workspace Workflow, but not Google Chat apps or +/// Google Workspace add-ons. +class GoogleAppsCardV1DataSourceConfig { + /// The data is from a Google Workspace application. + GoogleAppsCardV1PlatformDataSource? platformDataSource; + + /// The data is from a remote data provider. + GoogleAppsCardV1Action? remoteDataSource; + + GoogleAppsCardV1DataSourceConfig({ + this.platformDataSource, + this.remoteDataSource, + }); + + GoogleAppsCardV1DataSourceConfig.fromJson(core.Map json_) + : this( + platformDataSource: + json_.containsKey('platformDataSource') + ? GoogleAppsCardV1PlatformDataSource.fromJson( + json_['platformDataSource'] + as core.Map, + ) + : null, + remoteDataSource: + json_.containsKey('remoteDataSource') + ? GoogleAppsCardV1Action.fromJson( + json_['remoteDataSource'] + as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (platformDataSource != null) 'platformDataSource': platformDataSource!, + if (remoteDataSource != null) 'remoteDataSource': remoteDataSource!, + }; +} + /// Lets users input a date, a time, or both a date and a time. /// /// Supports form submission validation. When `Action.all_widgets_are_required` @@ -5330,6 +5467,13 @@ class GoogleAppsCardV1Columns { /// to input the information correctly. \[Google Workspace add-ons and Chat /// apps\](https://developers.google.com/workspace/extend): class GoogleAppsCardV1DateTimePicker { + /// A data source that's unique to a Google Workspace host application, such + /// as Gmail emails, Google Calendar events, or Google Chat messages. + /// + /// Only supported by Google Workspace Workflows, but not Google Chat API or + /// Google Workspace Add-ons. + HostAppDataSourceMarkup? hostAppDataSource; + /// The text that prompts users to input a date, a time, or a date and time. /// /// For example, if users are scheduling an appointment, use a label such as @@ -5373,6 +5517,7 @@ class GoogleAppsCardV1DateTimePicker { core.String? valueMsEpoch; GoogleAppsCardV1DateTimePicker({ + this.hostAppDataSource, this.label, this.name, this.onChangeAction, @@ -5383,6 +5528,13 @@ class GoogleAppsCardV1DateTimePicker { GoogleAppsCardV1DateTimePicker.fromJson(core.Map json_) : this( + hostAppDataSource: + json_.containsKey('hostAppDataSource') + ? HostAppDataSourceMarkup.fromJson( + json_['hostAppDataSource'] + as core.Map, + ) + : null, label: json_['label'] as core.String?, name: json_['name'] as core.String?, onChangeAction: @@ -5398,6 +5550,7 @@ class GoogleAppsCardV1DateTimePicker { ); core.Map toJson() => { + if (hostAppDataSource != null) 'hostAppDataSource': hostAppDataSource!, if (label != null) 'label': label!, if (name != null) 'name': name!, if (onChangeAction != null) 'onChangeAction': onChangeAction!, @@ -5552,6 +5705,133 @@ class GoogleAppsCardV1DecoratedText { /// following JSON creates a divider: ``` "divider": {} ``` typedef GoogleAppsCardV1Divider = $Empty; +/// Represents an actionthat can be performed on an ui element. +/// +/// Only supported by Google Workspace Workflow, but not Google Chat apps or +/// Google Workspace add-ons. +class GoogleAppsCardV1EventAction { + /// The unique identifier of the ActionRule. + core.String? actionRuleId; + + /// Common widget action. + GoogleAppsCardV1CommonWidgetAction? commonWidgetAction; + + /// The list of triggers that will be triggered after the EventAction is + /// executed. + core.List? postEventTriggers; + + GoogleAppsCardV1EventAction({ + this.actionRuleId, + this.commonWidgetAction, + this.postEventTriggers, + }); + + GoogleAppsCardV1EventAction.fromJson(core.Map json_) + : this( + actionRuleId: json_['actionRuleId'] as core.String?, + commonWidgetAction: + json_.containsKey('commonWidgetAction') + ? GoogleAppsCardV1CommonWidgetAction.fromJson( + json_['commonWidgetAction'] + as core.Map, + ) + : null, + postEventTriggers: + (json_['postEventTriggers'] as core.List?) + ?.map( + (value) => GoogleAppsCardV1Trigger.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (actionRuleId != null) 'actionRuleId': actionRuleId!, + if (commonWidgetAction != null) 'commonWidgetAction': commonWidgetAction!, + if (postEventTriggers != null) 'postEventTriggers': postEventTriggers!, + }; +} + +/// Represents the data that is used to evaluate an expression. +/// +/// Only supported by Google Workspace Workflow, but not Google Chat apps or +/// Google Workspace add-ons. +class GoogleAppsCardV1ExpressionData { + /// The list of conditions that are determined by the expression evaluation + /// result. + core.List? conditions; + + /// The list of actions that the ExpressionData can be used. + core.List? eventActions; + + /// The uncompiled expression. + core.String? expression; + + /// The unique identifier of the ExpressionData. + core.String? id; + + GoogleAppsCardV1ExpressionData({ + this.conditions, + this.eventActions, + this.expression, + this.id, + }); + + GoogleAppsCardV1ExpressionData.fromJson(core.Map json_) + : this( + conditions: + (json_['conditions'] as core.List?) + ?.map( + (value) => GoogleAppsCardV1Condition.fromJson( + value as core.Map, + ), + ) + .toList(), + eventActions: + (json_['eventActions'] as core.List?) + ?.map( + (value) => GoogleAppsCardV1EventAction.fromJson( + value as core.Map, + ), + ) + .toList(), + expression: json_['expression'] as core.String?, + id: json_['id'] as core.String?, + ); + + core.Map toJson() => { + if (conditions != null) 'conditions': conditions!, + if (eventActions != null) 'eventActions': eventActions!, + if (expression != null) 'expression': expression!, + if (id != null) 'id': id!, + }; +} + +/// Represents a condition that is evaluated using CEL. +/// +/// Only supported by Google Workspace Workflow, but not Google Chat apps or +/// Google Workspace add-ons. +class GoogleAppsCardV1ExpressionDataCondition { + /// The type of the condition. + /// Possible string values are: + /// - "CONDITION_TYPE_UNSPECIFIED" : Unspecified condition type. + /// - "EXPRESSION_EVALUATION_SUCCESS" : The expression evaluation was + /// successful. + /// - "EXPRESSION_EVALUATION_FAILURE" : The expression evaluation was + /// unsuccessful. + core.String? conditionType; + + GoogleAppsCardV1ExpressionDataCondition({this.conditionType}); + + GoogleAppsCardV1ExpressionDataCondition.fromJson(core.Map json_) + : this(conditionType: json_['conditionType'] as core.String?); + + core.Map toJson() => { + if (conditionType != null) 'conditionType': conditionType!, + }; +} + /// Displays a grid with a collection of items. /// /// Items can only include text or images. For responsive columns, or to include @@ -5974,8 +6254,7 @@ class GoogleAppsCardV1MaterialIcon { }; } -/// [Developer Preview](https://developers.google.com/workspace/preview): A list -/// of widgets that can be displayed in a containing layout, such as a +/// A list of widgets that can be displayed in a containing layout, such as a /// `CarouselCard`. /// /// [Google Chat apps](https://developers.google.com/workspace/chat): @@ -6322,6 +6601,14 @@ class GoogleAppsCardV1Section { /// add-ons\](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). core.String? header; + /// A unique ID assigned to the section that's used to identify the section to + /// be mutated. + /// + /// The ID has a character limit of 64 characters and should be in the format + /// of `[a-zA-Z0-9-]+`. Only supported by Google Workspace Workflow, but not + /// Google Chat apps or Google Workspace add-ons. + core.String? id; + /// The number of uncollapsible widgets which remain visible even when a /// section is collapsed. /// @@ -6341,6 +6628,7 @@ class GoogleAppsCardV1Section { this.collapseControl, this.collapsible, this.header, + this.id, this.uncollapsibleWidgetsCount, this.widgets, }); @@ -6356,6 +6644,7 @@ class GoogleAppsCardV1Section { : null, collapsible: json_['collapsible'] as core.bool?, header: json_['header'] as core.String?, + id: json_['id'] as core.String?, uncollapsibleWidgetsCount: json_['uncollapsibleWidgetsCount'] as core.int?, widgets: @@ -6372,6 +6661,7 @@ class GoogleAppsCardV1Section { if (collapseControl != null) 'collapseControl': collapseControl!, if (collapsible != null) 'collapsible': collapsible!, if (header != null) 'header': header!, + if (id != null) 'id': id!, if (uncollapsibleWidgetsCount != null) 'uncollapsibleWidgetsCount': uncollapsibleWidgetsCount!, if (widgets != null) 'widgets': widgets!, @@ -6394,6 +6684,17 @@ class GoogleAppsCardV1Section { /// \[Google Workspace add-ons and Chat /// apps\](https://developers.google.com/workspace/extend): class GoogleAppsCardV1SelectionInput { + /// The data source configs for the selection control. + /// + /// This field provides more fine-grained control over the data source. If + /// specified, the `multi_select_max_selected_items` field, + /// `multi_select_min_query_length` field, `external_data_source` field and + /// `platform_data_source` field are ignored. Only supported by Google + /// Workspace Workflow, but not Google Chat apps or Google Workspace add-ons. + /// + /// Optional. + core.List? dataSourceConfigs; + /// An external data source, such as a relational database. GoogleAppsCardV1Action? externalDataSource; @@ -6484,6 +6785,7 @@ class GoogleAppsCardV1SelectionInput { core.String? type; GoogleAppsCardV1SelectionInput({ + this.dataSourceConfigs, this.externalDataSource, this.hintText, this.items, @@ -6498,6 +6800,14 @@ class GoogleAppsCardV1SelectionInput { GoogleAppsCardV1SelectionInput.fromJson(core.Map json_) : this( + dataSourceConfigs: + (json_['dataSourceConfigs'] as core.List?) + ?.map( + (value) => GoogleAppsCardV1DataSourceConfig.fromJson( + value as core.Map, + ), + ) + .toList(), externalDataSource: json_.containsKey('externalDataSource') ? GoogleAppsCardV1Action.fromJson( @@ -6538,6 +6848,7 @@ class GoogleAppsCardV1SelectionInput { ); core.Map toJson() => { + if (dataSourceConfigs != null) 'dataSourceConfigs': dataSourceConfigs!, if (externalDataSource != null) 'externalDataSource': externalDataSource!, if (hintText != null) 'hintText': hintText!, if (items != null) 'items': items!, @@ -6763,6 +7074,13 @@ class GoogleAppsCardV1TextInput { /// Otherwise, optional. core.String? hintText; + /// A data source that's unique to a Google Workspace host application, such + /// as Gmail emails, Google Calendar events, or Google Chat messages. + /// + /// Only supported by Google Workspace Workflow, but not Google Chat apps or + /// Google Workspace add-ons. + HostAppDataSourceMarkup? hostAppDataSource; + /// Suggested values that users can enter. /// /// These values appear when users click inside the text input field. As users @@ -6832,6 +7150,7 @@ class GoogleAppsCardV1TextInput { GoogleAppsCardV1TextInput({ this.autoCompleteAction, this.hintText, + this.hostAppDataSource, this.initialSuggestions, this.label, this.name, @@ -6852,6 +7171,13 @@ class GoogleAppsCardV1TextInput { ) : null, hintText: json_['hintText'] as core.String?, + hostAppDataSource: + json_.containsKey('hostAppDataSource') + ? HostAppDataSourceMarkup.fromJson( + json_['hostAppDataSource'] + as core.Map, + ) + : null, initialSuggestions: json_.containsKey('initialSuggestions') ? GoogleAppsCardV1Suggestions.fromJson( @@ -6882,6 +7208,7 @@ class GoogleAppsCardV1TextInput { core.Map toJson() => { if (autoCompleteAction != null) 'autoCompleteAction': autoCompleteAction!, if (hintText != null) 'hintText': hintText!, + if (hostAppDataSource != null) 'hostAppDataSource': hostAppDataSource!, if (initialSuggestions != null) 'initialSuggestions': initialSuggestions!, if (label != null) 'label': label!, if (name != null) 'name': name!, @@ -6930,6 +7257,46 @@ class GoogleAppsCardV1TextParagraph { }; } +/// Represents a trigger. +/// +/// Only supported by Google Workspace Workflow, but not Google Chat apps or +/// Google Workspace add-ons. +class GoogleAppsCardV1Trigger { + /// The unique identifier of the ActionRule. + core.String? actionRuleId; + + GoogleAppsCardV1Trigger({this.actionRuleId}); + + GoogleAppsCardV1Trigger.fromJson(core.Map json_) + : this(actionRuleId: json_['actionRuleId'] as core.String?); + + core.Map toJson() => { + if (actionRuleId != null) 'actionRuleId': actionRuleId!, + }; +} + +/// Represents an action that updates the visibility of a widget. +/// +/// Only supported by Google Workspace Workflow, but not Google Chat apps or +/// Google Workspace add-ons. +class GoogleAppsCardV1UpdateVisibilityAction { + /// The new visibility. + /// Possible string values are: + /// - "VISIBILITY_UNSPECIFIED" : Unspecified visibility. Do not use. + /// - "VISIBLE" : The UI element is visible. + /// - "HIDDEN" : The UI element is hidden. + core.String? visibility; + + GoogleAppsCardV1UpdateVisibilityAction({this.visibility}); + + GoogleAppsCardV1UpdateVisibilityAction.fromJson(core.Map json_) + : this(visibility: json_['visibility'] as core.String?); + + core.Map toJson() => { + if (visibility != null) 'visibility': visibility!, + }; +} + /// Represents the necessary data for validating the widget it's attached to. /// /// \[Google Workspace add-ons and Chat @@ -7037,6 +7404,12 @@ class GoogleAppsCardV1Widget { /// For example, the following JSON creates a divider: ``` "divider": { } ``` GoogleAppsCardV1Divider? divider; + /// Specifies the event actions that can be performed on the widget. + /// + /// Only supported by Google Workspace Workflow, but not Google Chat apps or + /// Google Workspace add-ons. + core.List? eventActions; + /// Displays a grid with a collection of items. /// /// A grid supports any number of columns and items. The number of rows is @@ -7065,6 +7438,14 @@ class GoogleAppsCardV1Widget { /// layouts, aligns widgets to the left. core.String? horizontalAlignment; + /// A unique ID assigned to the widget that's used to identify the widget to + /// be mutated. + /// + /// The ID has a character limit of 64 characters and should be in the format + /// of `[a-zA-Z0-9-]+` and. Only supported by Google Workspace Workflow, but + /// not Google Chat apps or Google Workspace add-ons. + core.String? id; + /// Displays an image. /// /// For example, the following JSON creates an image with alternative text: @@ -7106,6 +7487,16 @@ class GoogleAppsCardV1Widget { /// "textParagraph": { "text": " *bold text*" } ``` GoogleAppsCardV1TextParagraph? textParagraph; + /// Specifies whether the widget is visible or hidden. + /// + /// The default value is `VISIBLE`. Only supported by Google Workspace + /// Workflow, but not Google Chat apps or Google Workspace add-ons. + /// Possible string values are: + /// - "VISIBILITY_UNSPECIFIED" : Unspecified visibility. Do not use. + /// - "VISIBLE" : The UI element is visible. + /// - "HIDDEN" : The UI element is hidden. + core.String? visibility; + GoogleAppsCardV1Widget({ this.buttonList, this.carousel, @@ -7114,12 +7505,15 @@ class GoogleAppsCardV1Widget { this.dateTimePicker, this.decoratedText, this.divider, + this.eventActions, this.grid, this.horizontalAlignment, + this.id, this.image, this.selectionInput, this.textInput, this.textParagraph, + this.visibility, }); GoogleAppsCardV1Widget.fromJson(core.Map json_) @@ -7167,6 +7561,14 @@ class GoogleAppsCardV1Widget { json_['divider'] as core.Map, ) : null, + eventActions: + (json_['eventActions'] as core.List?) + ?.map( + (value) => GoogleAppsCardV1EventAction.fromJson( + value as core.Map, + ), + ) + .toList(), grid: json_.containsKey('grid') ? GoogleAppsCardV1Grid.fromJson( @@ -7174,6 +7576,7 @@ class GoogleAppsCardV1Widget { ) : null, horizontalAlignment: json_['horizontalAlignment'] as core.String?, + id: json_['id'] as core.String?, image: json_.containsKey('image') ? GoogleAppsCardV1Image.fromJson( @@ -7199,6 +7602,7 @@ class GoogleAppsCardV1Widget { json_['textParagraph'] as core.Map, ) : null, + visibility: json_['visibility'] as core.String?, ); core.Map toJson() => { @@ -7209,13 +7613,16 @@ class GoogleAppsCardV1Widget { if (dateTimePicker != null) 'dateTimePicker': dateTimePicker!, if (decoratedText != null) 'decoratedText': decoratedText!, if (divider != null) 'divider': divider!, + if (eventActions != null) 'eventActions': eventActions!, if (grid != null) 'grid': grid!, if (horizontalAlignment != null) 'horizontalAlignment': horizontalAlignment!, + if (id != null) 'id': id!, if (image != null) 'image': image!, if (selectionInput != null) 'selectionInput': selectionInput!, if (textInput != null) 'textInput': textInput!, if (textParagraph != null) 'textParagraph': textParagraph!, + if (visibility != null) 'visibility': visibility!, }; } @@ -7343,16 +7750,17 @@ class Group { }; } -/// For a `SelectionInput` widget that uses a multiselect menu, a data source -/// from a Google Workspace application. +/// A data source from a Google Workspace application. /// -/// The data source populates selection items for the multiselect menu. -/// [Google Chat apps](https://developers.google.com/workspace/chat): +/// The data source populates available items for a widget. class HostAppDataSourceMarkup { /// A data source from Google Chat. ChatClientDataSourceMarkup? chatDataSource; - HostAppDataSourceMarkup({this.chatDataSource}); + /// A data source from Google Workflow. + WorkflowDataSourceMarkup? workflowDataSource; + + HostAppDataSourceMarkup({this.chatDataSource, this.workflowDataSource}); HostAppDataSourceMarkup.fromJson(core.Map json_) : this( @@ -7363,10 +7771,18 @@ class HostAppDataSourceMarkup { as core.Map, ) : null, + workflowDataSource: + json_.containsKey('workflowDataSource') + ? WorkflowDataSourceMarkup.fromJson( + json_['workflowDataSource'] + as core.Map, + ) + : null, ); core.Map toJson() => { if (chatDataSource != null) 'chatDataSource': chatDataSource!, + if (workflowDataSource != null) 'workflowDataSource': workflowDataSource!, }; } @@ -8338,10 +8754,14 @@ class Message { /// Optional. Immutable. User? privateMessageViewer; - /// Information about a message that's quoted by a Google Chat user in a - /// space. + /// Information about a message that another message quotes. /// - /// Google Chat users can quote a message to reply to it. + /// When you create a message, you can quote messages within the same thread, + /// or quote a root message to create a new root message. However, you can't + /// quote a message reply from a different thread. When you update a message, + /// you can't add or replace the `quotedMessageMetadata` field, but you can + /// remove it. For example usage, see + /// [Quote another message](https://developers.google.com/workspace/chat/create-messages#quote-a-message). /// /// Optional. QuotedMessageMetadata? quotedMessageMetadata; @@ -8942,11 +9362,22 @@ class PermissionSettings { }; } -/// Information about a quoted message. +/// Information about a message that another message quotes. +/// +/// When you create a message, you can quote messages within the same thread, or +/// quote a root message to create a new root message. However, you can't quote +/// a message reply from a different thread. When you update a message, you +/// can't add or replace the `quotedMessageMetadata` field, but you can remove +/// it. For example usage, see +/// [Quote another message](https://developers.google.com/workspace/chat/create-messages#quote-a-message). class QuotedMessageMetadata { /// The timestamp when the quoted message was created or when the quoted /// message was last updated. /// + /// If the message was edited, use this field, `last_update_time`. If the + /// message was never edited, use `create_time`. If `last_update_time` doesn't + /// match the latest version of the quoted message, the request fails. + /// /// Required. core.String? lastUpdateTime; @@ -9494,9 +9925,8 @@ class Space { /// Required only when creating a space with /// [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) /// and `SpaceType` is `SPACE`, otherwise should not be set. In the format - /// `customers/{customer}`, where `customer` is the `id` from the \[Admin SDK - /// customer resource\]( - /// https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + /// `customers/{customer}`, where `customer` is the `id` from the + /// [Admin SDK customer resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). /// Private apps can also use the `customers/my_customer` alias to create the /// space in the same Google Workspace organization as the app. For DMs, this /// field isn't populated. @@ -10656,3 +11086,37 @@ class WidgetMarkup { if (textParagraph != null) 'textParagraph': textParagraph!, }; } + +/// * Only supported by Google Workspace Workflow, but not Google Chat apps or +/// Google Workspace add-ons. +/// +/// In a `TextInput` or `SelectionInput` widget with MULTI_SELECT type or a +/// `DateTimePicker`, provide data source from Google. +class WorkflowDataSourceMarkup { + /// Whether to include variables from the previous step in the data source. + core.bool? includeVariables; + + /// The type of data source. + /// Possible string values are: + /// - "UNKNOWN" : Default value. Don't use. + /// - "USER" : Google Workspace users. The user can only view and select users + /// from their Google Workspace organization. + /// - "SPACE" : Google Chat spaces that the user is a member of. + /// - "USER_WITH_FREE_FORM" : Users can choose to view and select existing + /// members from their Google Workspace organization or manually enter an + /// email address or a valid domain. + core.String? type; + + WorkflowDataSourceMarkup({this.includeVariables, this.type}); + + WorkflowDataSourceMarkup.fromJson(core.Map json_) + : this( + includeVariables: json_['includeVariables'] as core.bool?, + type: json_['type'] as core.String?, + ); + + core.Map toJson() => { + if (includeVariables != null) 'includeVariables': includeVariables!, + if (type != null) 'type': type!, + }; +} diff --git a/generated/googleapis/lib/classroom/v1.dart b/generated/googleapis/lib/classroom/v1.dart index f02cb594e..3338be66a 100644 --- a/generated/googleapis/lib/classroom/v1.dart +++ b/generated/googleapis/lib/classroom/v1.dart @@ -207,8 +207,8 @@ class CoursesResource { /// create courses or for access errors. * `NOT_FOUND` if the primary teacher /// is not a valid user. * `FAILED_PRECONDITION` if the course owner's account /// is disabled or for the following request errors: * UserCannotOwnCourse * - /// UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if an alias was - /// specified in the `id` and already exists. + /// UserGroupsMembershipLimitReached * CourseTitleCannotContainUrl * + /// `ALREADY_EXISTS` if an alias was specified in the `id` and already exists. /// /// [request] - The metadata request object. /// @@ -438,7 +438,7 @@ class CoursesResource { /// `INVALID_ARGUMENT` if invalid fields are specified in the update mask or /// if no update mask is supplied. * `FAILED_PRECONDITION` for the following /// request errors: * CourseNotModifiable * InactiveCourseOwner * - /// IneligibleOwner + /// IneligibleOwner * CourseTitleCannotContainUrl /// /// [request] - The metadata request object. /// @@ -495,7 +495,7 @@ class CoursesResource { /// the requesting user is not permitted to modify the requested course or for /// access errors. * `NOT_FOUND` if no course exists with the requested ID. * /// `FAILED_PRECONDITION` for the following request errors: * - /// CourseNotModifiable + /// CourseNotModifiable * CourseTitleCannotContainUrl /// /// [request] - The metadata request object. /// @@ -1080,7 +1080,8 @@ class CoursesAnnouncementsResource { /// `PERMISSION_DENIED` if the requesting user is not permitted to access the /// requested course or course work or for access errors. * `INVALID_ARGUMENT` /// if the request is malformed. * `NOT_FOUND` if the requested course or - /// course work does not exist. + /// course work does not exist. * `FAILED_PRECONDITION` for the following + /// request error: * EmptyAssignees /// /// [request] - The metadata request object. /// @@ -1860,7 +1861,8 @@ class CoursesCourseWorkResource { /// `PERMISSION_DENIED` if the requesting user is not permitted to access the /// requested course or course work or for access errors. * `INVALID_ARGUMENT` /// if the request is malformed. * `NOT_FOUND` if the requested course or - /// course work does not exist. + /// course work does not exist. * `FAILED_PRECONDITION` for the following + /// request error: * EmptyAssignees /// /// [request] - The metadata request object. /// diff --git a/generated/googleapis/lib/cloudbuild/v1.dart b/generated/googleapis/lib/cloudbuild/v1.dart index 7ed36b849..e8b998216 100644 --- a/generated/googleapis/lib/cloudbuild/v1.dart +++ b/generated/googleapis/lib/cloudbuild/v1.dart @@ -7312,7 +7312,10 @@ class NetworkConfig { class NpmPackage { /// Path to the package.json. /// - /// e.g. workspace/path/to/package + /// e.g. workspace/path/to/package Only one of `archive` or `package_path` can + /// be specified. + /// + /// Optional. core.String? packagePath; /// Artifact Registry repository, in the form @@ -8823,6 +8826,14 @@ class WorkerConfig { /// standard disk size. core.String? diskSizeGb; + /// Enable nested virtualization on the worker, if supported by the machine + /// type. + /// + /// By default, nested virtualization is disabled. + /// + /// Optional. + core.bool? enableNestedVirtualization; + /// Machine type of a worker, such as `e2-medium`. /// /// See @@ -8832,16 +8843,24 @@ class WorkerConfig { /// Optional. core.String? machineType; - WorkerConfig({this.diskSizeGb, this.machineType}); + WorkerConfig({ + this.diskSizeGb, + this.enableNestedVirtualization, + this.machineType, + }); WorkerConfig.fromJson(core.Map json_) : this( diskSizeGb: json_['diskSizeGb'] as core.String?, + enableNestedVirtualization: + json_['enableNestedVirtualization'] as core.bool?, machineType: json_['machineType'] as core.String?, ); core.Map toJson() => { if (diskSizeGb != null) 'diskSizeGb': diskSizeGb!, + if (enableNestedVirtualization != null) + 'enableNestedVirtualization': enableNestedVirtualization!, if (machineType != null) 'machineType': machineType!, }; } diff --git a/generated/googleapis/lib/cloudbuild/v2.dart b/generated/googleapis/lib/cloudbuild/v2.dart index 734a4cedf..9291a8470 100644 --- a/generated/googleapis/lib/cloudbuild/v2.dart +++ b/generated/googleapis/lib/cloudbuild/v2.dart @@ -121,9 +121,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/cloudchannel/v1.dart b/generated/googleapis/lib/cloudchannel/v1.dart index 37c396964..a13797187 100644 --- a/generated/googleapis/lib/cloudchannel/v1.dart +++ b/generated/googleapis/lib/cloudchannel/v1.dart @@ -5381,6 +5381,53 @@ class GoogleCloudChannelV1DateRange { }; } +/// Represents a single component of the total discount applicable on a Price. +class GoogleCloudChannelV1DiscountComponent { + /// Fixed value discount. + GoogleTypeMoney? discountAbsolute; + + /// Discount percentage, represented as decimal. + /// + /// For example, a 20% discount will be represented as 0.2. + core.double? discountPercentage; + + /// Type of the discount. + /// Possible string values are: + /// - "DISCOUNT_TYPE_UNSPECIFIED" : Not used. + /// - "REGIONAL_DISCOUNT" : Regional discount. + /// - "PROMOTIONAL_DISCOUNT" : Promotional discount. + /// - "SALES_DISCOUNT" : Sales-provided discount. + /// - "RESELLER_MARGIN" : Reseller margin. + /// - "DEAL_CODE" : Deal code discount. + core.String? discountType; + + GoogleCloudChannelV1DiscountComponent({ + this.discountAbsolute, + this.discountPercentage, + this.discountType, + }); + + GoogleCloudChannelV1DiscountComponent.fromJson(core.Map json_) + : this( + discountAbsolute: + json_.containsKey('discountAbsolute') + ? GoogleTypeMoney.fromJson( + json_['discountAbsolute'] + as core.Map, + ) + : null, + discountPercentage: + (json_['discountPercentage'] as core.num?)?.toDouble(), + discountType: json_['discountType'] as core.String?, + ); + + core.Map toJson() => { + if (discountAbsolute != null) 'discountAbsolute': discountAbsolute!, + if (discountPercentage != null) 'discountPercentage': discountPercentage!, + if (discountType != null) 'discountType': discountType!, + }; +} + /// Required Edu Attributes class GoogleCloudChannelV1EduData { /// Size of the institute. @@ -7113,17 +7160,30 @@ class GoogleCloudChannelV1Price { /// For example, a 20% discount will be represent as 0.2. core.double? discount; + /// Breakdown of the discount into its components. + /// + /// This will be empty if there is no discount present. + core.List? discountComponents; + /// Effective Price after applying the discounts. GoogleTypeMoney? effectivePrice; /// Link to external price list, such as link to Google Voice rate card. core.String? externalPriceUri; + /// The time period with respect to which base and effective prices are + /// defined. + /// + /// Example: 1 month, 6 months, 1 year, etc. + GoogleCloudChannelV1Period? pricePeriod; + GoogleCloudChannelV1Price({ this.basePrice, this.discount, + this.discountComponents, this.effectivePrice, this.externalPriceUri, + this.pricePeriod, }); GoogleCloudChannelV1Price.fromJson(core.Map json_) @@ -7135,6 +7195,14 @@ class GoogleCloudChannelV1Price { ) : null, discount: (json_['discount'] as core.num?)?.toDouble(), + discountComponents: + (json_['discountComponents'] as core.List?) + ?.map( + (value) => GoogleCloudChannelV1DiscountComponent.fromJson( + value as core.Map, + ), + ) + .toList(), effectivePrice: json_.containsKey('effectivePrice') ? GoogleTypeMoney.fromJson( @@ -7143,13 +7211,21 @@ class GoogleCloudChannelV1Price { ) : null, externalPriceUri: json_['externalPriceUri'] as core.String?, + pricePeriod: + json_.containsKey('pricePeriod') + ? GoogleCloudChannelV1Period.fromJson( + json_['pricePeriod'] as core.Map, + ) + : null, ); core.Map toJson() => { if (basePrice != null) 'basePrice': basePrice!, if (discount != null) 'discount': discount!, + if (discountComponents != null) 'discountComponents': discountComponents!, if (effectivePrice != null) 'effectivePrice': effectivePrice!, if (externalPriceUri != null) 'externalPriceUri': externalPriceUri!, + if (pricePeriod != null) 'pricePeriod': pricePeriod!, }; } diff --git a/generated/googleapis/lib/clouddeploy/v1.dart b/generated/googleapis/lib/clouddeploy/v1.dart index e43dec2ba..9b1cc0eaf 100644 --- a/generated/googleapis/lib/clouddeploy/v1.dart +++ b/generated/googleapis/lib/clouddeploy/v1.dart @@ -166,9 +166,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/cloudfunctions/v1.dart b/generated/googleapis/lib/cloudfunctions/v1.dart index a24a3085b..54d77bfa6 100644 --- a/generated/googleapis/lib/cloudfunctions/v1.dart +++ b/generated/googleapis/lib/cloudfunctions/v1.dart @@ -179,9 +179,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/cloudfunctions/v2.dart b/generated/googleapis/lib/cloudfunctions/v2.dart index e4c09f885..1701fc74f 100644 --- a/generated/googleapis/lib/cloudfunctions/v2.dart +++ b/generated/googleapis/lib/cloudfunctions/v2.dart @@ -91,9 +91,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -3019,7 +3019,9 @@ class UpgradeInfo { /// - "UPGRADE_STATE_UNSPECIFIED" : Unspecified state. Most functions are in /// this upgrade state. /// - "ELIGIBLE_FOR_2ND_GEN_UPGRADE" : Functions in this state are eligible - /// for 1st Gen -\> 2nd Gen upgrade. + /// for 1st Gen upgrade. + /// - "INELIGIBLE_FOR_UPGRADE_UNTIL_REDEPLOYMENT" : Functions in this state + /// are ineligible for 1st Gen upgrade until redeployment with newer runtime. /// - "UPGRADE_OPERATION_IN_PROGRESS" : An upgrade related operation is in /// progress. /// - "SETUP_FUNCTION_UPGRADE_CONFIG_SUCCESSFUL" : SetupFunctionUpgradeConfig diff --git a/generated/googleapis/lib/cloudidentity/v1.dart b/generated/googleapis/lib/cloudidentity/v1.dart index 1def4d521..ba400c3d9 100644 --- a/generated/googleapis/lib/cloudidentity/v1.dart +++ b/generated/googleapis/lib/cloudidentity/v1.dart @@ -27,6 +27,7 @@ /// - [DevicesDeviceUsersClientStatesResource] /// - [GroupsResource] /// - [GroupsMembershipsResource] +/// - [InboundOidcSsoProfilesResource] /// - [InboundSamlSsoProfilesResource] /// - [InboundSamlSsoProfilesIdpCredentialsResource] /// - [InboundSsoAssignmentsResource] @@ -99,6 +100,8 @@ class CloudIdentityApi { CustomersResource get customers => CustomersResource(_requester); DevicesResource get devices => DevicesResource(_requester); GroupsResource get groups => GroupsResource(_requester); + InboundOidcSsoProfilesResource get inboundOidcSsoProfiles => + InboundOidcSsoProfilesResource(_requester); InboundSamlSsoProfilesResource get inboundSamlSsoProfiles => InboundSamlSsoProfilesResource(_requester); InboundSsoAssignmentsResource get inboundSsoAssignments => @@ -2458,6 +2461,243 @@ class GroupsMembershipsResource { } } +class InboundOidcSsoProfilesResource { + final commons.ApiRequester _requester; + + InboundOidcSsoProfilesResource(commons.ApiRequester client) + : _requester = client; + + /// Creates an InboundOidcSsoProfile for a customer. + /// + /// When the target customer has enabled \[Multi-party approval for sensitive + /// actions\](https://support.google.com/a/answer/13790448), the `Operation` + /// in the response will have `"done": false`, it will not have a response, + /// and the metadata will have `"state": "awaiting-multi-party-approval"`. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future create( + InboundOidcSsoProfile request, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + const url_ = 'v1/inboundOidcSsoProfiles'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + + /// Deletes an InboundOidcSsoProfile. + /// + /// Request parameters: + /// + /// [name] - Required. The + /// [resource name](https://cloud.google.com/apis/design/resource_names) of + /// the InboundOidcSsoProfile to delete. Format: + /// `inboundOidcSsoProfiles/{sso_profile_id}` + /// Value must have pattern `^inboundOidcSsoProfiles/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future delete( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'DELETE', + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + + /// Gets an InboundOidcSsoProfile. + /// + /// Request parameters: + /// + /// [name] - Required. The + /// [resource name](https://cloud.google.com/apis/design/resource_names) of + /// the InboundOidcSsoProfile to get. Format: + /// `inboundOidcSsoProfiles/{sso_profile_id}` + /// Value must have pattern `^inboundOidcSsoProfiles/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [InboundOidcSsoProfile]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return InboundOidcSsoProfile.fromJson( + response_ as core.Map, + ); + } + + /// Lists InboundOidcSsoProfile objects for a Google enterprise customer. + /// + /// Request parameters: + /// + /// [filter] - A + /// [Common Expression Language](https://github.com/google/cel-spec) + /// expression to filter the results. The only supported filter is filtering + /// by customer. For example: `customer=="customers/C0123abc"`. Omitting the + /// filter or specifying a filter of `customer=="customers/my_customer"` will + /// return the profiles for the customer that the caller (authenticated user) + /// belongs to. Specifying a filter of `customer==""` will return the global + /// shared OIDC profiles. + /// + /// [pageSize] - The maximum number of InboundOidcSsoProfiles to return. The + /// service may return fewer than this value. If omitted (or defaulted to + /// zero) the server will use a sensible default. This default may change over + /// time. The maximum allowed value is 100. Requests with page_size greater + /// than that will be silently interpreted as having this maximum value. + /// + /// [pageToken] - A page token, received from a previous + /// `ListInboundOidcSsoProfiles` call. Provide this to retrieve the subsequent + /// page. When paginating, all other parameters provided to + /// `ListInboundOidcSsoProfiles` must match the call that provided the page + /// token. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListInboundOidcSsoProfilesResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list({ + core.String? filter, + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + const url_ = 'v1/inboundOidcSsoProfiles'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return ListInboundOidcSsoProfilesResponse.fromJson( + response_ as core.Map, + ); + } + + /// Updates an InboundOidcSsoProfile. + /// + /// When the target customer has enabled \[Multi-party approval for sensitive + /// actions\](https://support.google.com/a/answer/13790448), the `Operation` + /// in the response will have `"done": false`, it will not have a response, + /// and the metadata will have `"state": "awaiting-multi-party-approval"`. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Output only. + /// [Resource name](https://cloud.google.com/apis/design/resource_names) of + /// the OIDC SSO profile. + /// Value must have pattern `^inboundOidcSsoProfiles/\[^/\]+$`. + /// + /// [updateMask] - Required. The list of fields to be updated. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future patch( + InboundOidcSsoProfile request, + core.String name, { + core.String? updateMask, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (updateMask != null) 'updateMask': [updateMask], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'PATCH', + body: body_, + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } +} + class InboundSamlSsoProfilesResource { final commons.ApiRequester _requester; @@ -5032,6 +5272,70 @@ class IdpCredential { }; } +/// An [OIDC](https://openid.net/developers/how-connect-works/) federation +/// between a Google enterprise customer and an OIDC identity provider. +class InboundOidcSsoProfile { + /// The customer. + /// + /// For example: `customers/C0123abc`. + /// + /// Immutable. + core.String? customer; + + /// Human-readable name of the OIDC SSO profile. + core.String? displayName; + + /// OIDC identity provider configuration. + OidcIdpConfig? idpConfig; + + /// [Resource name](https://cloud.google.com/apis/design/resource_names) of + /// the OIDC SSO profile. + /// + /// Output only. + core.String? name; + + /// OIDC relying party (RP) configuration for this OIDC SSO profile. + /// + /// These are the RP details provided by Google that should be configured on + /// the corresponding identity provider. + OidcRpConfig? rpConfig; + + InboundOidcSsoProfile({ + this.customer, + this.displayName, + this.idpConfig, + this.name, + this.rpConfig, + }); + + InboundOidcSsoProfile.fromJson(core.Map json_) + : this( + customer: json_['customer'] as core.String?, + displayName: json_['displayName'] as core.String?, + idpConfig: + json_.containsKey('idpConfig') + ? OidcIdpConfig.fromJson( + json_['idpConfig'] as core.Map, + ) + : null, + name: json_['name'] as core.String?, + rpConfig: + json_.containsKey('rpConfig') + ? OidcRpConfig.fromJson( + json_['rpConfig'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (customer != null) 'customer': customer!, + if (displayName != null) 'displayName': displayName!, + if (idpConfig != null) 'idpConfig': idpConfig!, + if (name != null) 'name': name!, + if (rpConfig != null) 'rpConfig': rpConfig!, + }; +} + /// A [SAML 2.0](https://www.oasis-open.org/standards#samlv2.0) federation /// between a Google enterprise customer and a SAML identity provider. class InboundSamlSsoProfile { @@ -5111,6 +5415,11 @@ class InboundSsoAssignment { /// Output only. core.String? name; + /// OpenID Connect SSO details. + /// + /// Must be set if and only if `sso_mode` is set to `OIDC_SSO`. + OidcSsoInfo? oidcSsoInfo; + /// Must be zero (which is the default value so it can be omitted) for /// assignments with `target_org_unit` set and must be /// greater-than-or-equal-to one for assignments with `target_group` set. @@ -5134,6 +5443,8 @@ class InboundSsoAssignment { /// - "SSO_OFF" : Disable SSO for the targeted users. /// - "SAML_SSO" : Use an external SAML Identity Provider for SSO for the /// targeted users. + /// - "OIDC_SSO" : Use an external OIDC Identity Provider for SSO for the + /// targeted users. /// - "DOMAIN_WIDE_SAML_IF_ENABLED" : Use the domain-wide SAML Identity /// Provider for the targeted users if one is configured; otherwise, this is /// equivalent to `SSO_OFF`. Note that this will also be equivalent to @@ -5155,6 +5466,7 @@ class InboundSsoAssignment { InboundSsoAssignment({ this.customer, this.name, + this.oidcSsoInfo, this.rank, this.samlSsoInfo, this.signInBehavior, @@ -5167,6 +5479,12 @@ class InboundSsoAssignment { : this( customer: json_['customer'] as core.String?, name: json_['name'] as core.String?, + oidcSsoInfo: + json_.containsKey('oidcSsoInfo') + ? OidcSsoInfo.fromJson( + json_['oidcSsoInfo'] as core.Map, + ) + : null, rank: json_['rank'] as core.int?, samlSsoInfo: json_.containsKey('samlSsoInfo') @@ -5189,6 +5507,7 @@ class InboundSsoAssignment { core.Map toJson() => { if (customer != null) 'customer': customer!, if (name != null) 'name': name!, + if (oidcSsoInfo != null) 'oidcSsoInfo': oidcSsoInfo!, if (rank != null) 'rank': rank!, if (samlSsoInfo != null) 'samlSsoInfo': samlSsoInfo!, if (signInBehavior != null) 'signInBehavior': signInBehavior!, @@ -5276,6 +5595,42 @@ class ListIdpCredentialsResponse { }; } +/// Response of the InboundOidcSsoProfilesService.ListInboundOidcSsoProfiles +/// method. +class ListInboundOidcSsoProfilesResponse { + /// List of InboundOidcSsoProfiles. + core.List? inboundOidcSsoProfiles; + + /// A token, which can be sent as `page_token` to retrieve the next page. + /// + /// If this field is omitted, there are no subsequent pages. + core.String? nextPageToken; + + ListInboundOidcSsoProfilesResponse({ + this.inboundOidcSsoProfiles, + this.nextPageToken, + }); + + ListInboundOidcSsoProfilesResponse.fromJson(core.Map json_) + : this( + inboundOidcSsoProfiles: + (json_['inboundOidcSsoProfiles'] as core.List?) + ?.map( + (value) => InboundOidcSsoProfile.fromJson( + value as core.Map, + ), + ) + .toList(), + nextPageToken: json_['nextPageToken'] as core.String?, + ); + + core.Map toJson() => { + if (inboundOidcSsoProfiles != null) + 'inboundOidcSsoProfiles': inboundOidcSsoProfiles!, + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + }; +} + /// Response of the InboundSamlSsoProfilesService.ListInboundSamlSsoProfiles /// method. class ListInboundSamlSsoProfilesResponse { @@ -5913,6 +6268,94 @@ class ModifyMembershipRolesResponse { }; } +/// OIDC IDP (identity provider) configuration. +class OidcIdpConfig { + /// The **Change Password URL** of the identity provider. + /// + /// Users will be sent to this URL when changing their passwords at + /// `myaccount.google.com`. This takes precedence over the change password URL + /// configured at customer-level. Must use `HTTPS`. + core.String? changePasswordUri; + + /// The Issuer identifier for the IdP. + /// + /// Must be a URL. The discovery URL will be derived from this as described in + /// Section 4 of + /// [the OIDC specification](https://openid.net/specs/openid-connect-discovery-1_0.html). + /// + /// Required. + core.String? issuerUri; + + OidcIdpConfig({this.changePasswordUri, this.issuerUri}); + + OidcIdpConfig.fromJson(core.Map json_) + : this( + changePasswordUri: json_['changePasswordUri'] as core.String?, + issuerUri: json_['issuerUri'] as core.String?, + ); + + core.Map toJson() => { + if (changePasswordUri != null) 'changePasswordUri': changePasswordUri!, + if (issuerUri != null) 'issuerUri': issuerUri!, + }; +} + +/// OIDC RP (relying party) configuration. +class OidcRpConfig { + /// OAuth2 client ID for OIDC. + core.String? clientId; + + /// Input only. + /// + /// OAuth2 client secret for OIDC. + core.String? clientSecret; + + /// The URL(s) that this client may use in authentication requests. + /// + /// Output only. + core.List? redirectUris; + + OidcRpConfig({this.clientId, this.clientSecret, this.redirectUris}); + + OidcRpConfig.fromJson(core.Map json_) + : this( + clientId: json_['clientId'] as core.String?, + clientSecret: json_['clientSecret'] as core.String?, + redirectUris: + (json_['redirectUris'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (clientId != null) 'clientId': clientId!, + if (clientSecret != null) 'clientSecret': clientSecret!, + if (redirectUris != null) 'redirectUris': redirectUris!, + }; +} + +/// Details that are applicable when `sso_mode` is set to `OIDC_SSO`. +class OidcSsoInfo { + /// Name of the `InboundOidcSsoProfile` to use. + /// + /// Must be of the form `inboundOidcSsoProfiles/{inbound_oidc_sso_profile}`. + /// + /// Required. + core.String? inboundOidcSsoProfile; + + OidcSsoInfo({this.inboundOidcSsoProfile}); + + OidcSsoInfo.fromJson(core.Map json_) + : this( + inboundOidcSsoProfile: json_['inboundOidcSsoProfile'] as core.String?, + ); + + core.Map toJson() => { + if (inboundOidcSsoProfile != null) + 'inboundOidcSsoProfile': inboundOidcSsoProfile!, + }; +} + /// This resource represents a long-running operation that is the result of a /// network API call. class Operation { diff --git a/generated/googleapis/lib/cloudkms/v1.dart b/generated/googleapis/lib/cloudkms/v1.dart index 4de4132ec..b3390e335 100644 --- a/generated/googleapis/lib/cloudkms/v1.dart +++ b/generated/googleapis/lib/cloudkms/v1.dart @@ -173,7 +173,8 @@ class FoldersResource { /// Request parameters: /// /// [name] - Identifier. Name of the AutokeyConfig resource, e.g. - /// `folders/{FOLDER_NUMBER}/autokeyConfig`. + /// `folders/{FOLDER_NUMBER}/autokeyConfig` + /// `projects/{PROJECT_NUMBER}/autokeyConfig`. /// Value must have pattern `^folders/\[^/\]+/autokeyConfig$`. /// /// [updateMask] - Required. Masks which fields of the AutokeyConfig to @@ -718,9 +719,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -2499,6 +2500,52 @@ class ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsResource { ); } + /// Decapsulates data that was encapsulated with a public key retrieved from + /// GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose + /// KEY_ENCAPSULATION. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Required. The resource name of the CryptoKeyVersion to use for + /// decapsulation. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/keyRings/\[^/\]+/cryptoKeys/\[^/\]+/cryptoKeyVersions/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [DecapsulateResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future decapsulate( + DecapsulateRequest request, + core.String name, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':decapsulate'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return DecapsulateResponse.fromJson( + response_ as core.Map, + ); + } + /// Schedule a CryptoKeyVersion for destruction. /// /// Upon calling this method, CryptoKeyVersion.state will be set to @@ -2614,9 +2661,14 @@ class ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsResource { /// and /// [Textual Encoding of Subject Public Key Info](https://tools.ietf.org/html/rfc7468#section-13) /// for more information. + /// - "DER" : The returned public key will be encoded in DER format (the + /// PrivateKeyInfo structure from RFC 5208). /// - "NIST_PQC" : This is supported only for PQC algorithms. The key material /// is returned in the format defined by NIST PQC standards (FIPS 203, FIPS /// 204, and FIPS 205). + /// - "XWING_RAW_BYTES" : The returned public key is in raw bytes format + /// defined in its standard + /// https://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -3770,7 +3822,7 @@ class AuditConfig { /// exempting jose@example.com from DATA_READ logging. typedef AuditLogConfig = $AuditLogConfig; -/// Cloud KMS Autokey configuration for a folder. +/// Cloud KMS Autokey configuration for a folder or project. class AutokeyConfig { /// A checksum computed by the server based on the value of other fields. /// @@ -3799,7 +3851,8 @@ class AutokeyConfig { /// Identifier. /// /// Name of the AutokeyConfig resource, e.g. - /// `folders/{FOLDER_NUMBER}/autokeyConfig`. + /// `folders/{FOLDER_NUMBER}/autokeyConfig` + /// `projects/{PROJECT_NUMBER}/autokeyConfig`. core.String? name; /// The state for the AutokeyConfig. @@ -4190,6 +4243,8 @@ class CryptoKey { /// interoperable symmetric encryption and does not support automatic /// CryptoKey rotation. /// - "MAC" : CryptoKeys with this purpose may be used with MacSign. + /// - "KEY_ENCAPSULATION" : CryptoKeys with this purpose may be used with + /// GetPublicKey and Decapsulate. core.String? purpose; /// next_rotation_time will be advanced by this period when the service @@ -4352,6 +4407,10 @@ class CryptoKeyVersion { /// - "HMAC_SHA224" : HMAC-SHA224 signing with a 224 bit key. /// - "EXTERNAL_SYMMETRIC_ENCRYPTION" : Algorithm representing symmetric /// encryption by an external key manager. + /// - "ML_KEM_768" : ML-KEM-768 (FIPS 203) + /// - "ML_KEM_1024" : ML-KEM-1024 (FIPS 203) + /// - "KEM_XWING" : X-Wing hybrid KEM combining ML-KEM-768 with X25519 + /// following datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem/. /// - "PQ_SIGN_ML_DSA_65" : The post-quantum Module-Lattice-Based Digital /// Signature Algorithm, at security level 3. Randomized version. /// - "PQ_SIGN_SLH_DSA_SHA2_128S" : The post-quantum stateless hash-based @@ -4575,90 +4634,65 @@ class CryptoKeyVersion { /// A CryptoKeyVersionTemplate specifies the properties to use when creating a /// new CryptoKeyVersion, either manually with CreateCryptoKeyVersion or /// automatically as a result of auto-rotation. -class CryptoKeyVersionTemplate { - /// Algorithm to use when creating a CryptoKeyVersion based on this template. - /// - /// For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if - /// both this field is omitted and CryptoKey.purpose is ENCRYPT_DECRYPT. +typedef CryptoKeyVersionTemplate = $CryptoKeyVersionTemplate; + +/// Request message for KeyManagementService.Decapsulate. +class DecapsulateRequest { + /// The ciphertext produced from encapsulation with the named CryptoKeyVersion + /// public key(s). /// /// Required. - /// Possible string values are: - /// - "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED" : Not specified. - /// - "GOOGLE_SYMMETRIC_ENCRYPTION" : Creates symmetric encryption keys. - /// - "AES_128_GCM" : AES-GCM (Galois Counter Mode) using 128-bit keys. - /// - "AES_256_GCM" : AES-GCM (Galois Counter Mode) using 256-bit keys. - /// - "AES_128_CBC" : AES-CBC (Cipher Block Chaining Mode) using 128-bit keys. - /// - "AES_256_CBC" : AES-CBC (Cipher Block Chaining Mode) using 256-bit keys. - /// - "AES_128_CTR" : AES-CTR (Counter Mode) using 128-bit keys. - /// - "AES_256_CTR" : AES-CTR (Counter Mode) using 256-bit keys. - /// - "RSA_SIGN_PSS_2048_SHA256" : RSASSA-PSS 2048 bit key with a SHA256 - /// digest. - /// - "RSA_SIGN_PSS_3072_SHA256" : RSASSA-PSS 3072 bit key with a SHA256 - /// digest. - /// - "RSA_SIGN_PSS_4096_SHA256" : RSASSA-PSS 4096 bit key with a SHA256 - /// digest. - /// - "RSA_SIGN_PSS_4096_SHA512" : RSASSA-PSS 4096 bit key with a SHA512 - /// digest. - /// - "RSA_SIGN_PKCS1_2048_SHA256" : RSASSA-PKCS1-v1_5 with a 2048 bit key and - /// a SHA256 digest. - /// - "RSA_SIGN_PKCS1_3072_SHA256" : RSASSA-PKCS1-v1_5 with a 3072 bit key and - /// a SHA256 digest. - /// - "RSA_SIGN_PKCS1_4096_SHA256" : RSASSA-PKCS1-v1_5 with a 4096 bit key and - /// a SHA256 digest. - /// - "RSA_SIGN_PKCS1_4096_SHA512" : RSASSA-PKCS1-v1_5 with a 4096 bit key and - /// a SHA512 digest. - /// - "RSA_SIGN_RAW_PKCS1_2048" : RSASSA-PKCS1-v1_5 signing without encoding, - /// with a 2048 bit key. - /// - "RSA_SIGN_RAW_PKCS1_3072" : RSASSA-PKCS1-v1_5 signing without encoding, - /// with a 3072 bit key. - /// - "RSA_SIGN_RAW_PKCS1_4096" : RSASSA-PKCS1-v1_5 signing without encoding, - /// with a 4096 bit key. - /// - "RSA_DECRYPT_OAEP_2048_SHA256" : RSAES-OAEP 2048 bit key with a SHA256 - /// digest. - /// - "RSA_DECRYPT_OAEP_3072_SHA256" : RSAES-OAEP 3072 bit key with a SHA256 - /// digest. - /// - "RSA_DECRYPT_OAEP_4096_SHA256" : RSAES-OAEP 4096 bit key with a SHA256 - /// digest. - /// - "RSA_DECRYPT_OAEP_4096_SHA512" : RSAES-OAEP 4096 bit key with a SHA512 - /// digest. - /// - "RSA_DECRYPT_OAEP_2048_SHA1" : RSAES-OAEP 2048 bit key with a SHA1 - /// digest. - /// - "RSA_DECRYPT_OAEP_3072_SHA1" : RSAES-OAEP 3072 bit key with a SHA1 - /// digest. - /// - "RSA_DECRYPT_OAEP_4096_SHA1" : RSAES-OAEP 4096 bit key with a SHA1 - /// digest. - /// - "EC_SIGN_P256_SHA256" : ECDSA on the NIST P-256 curve with a SHA256 - /// digest. Other hash functions can also be used: - /// https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms - /// - "EC_SIGN_P384_SHA384" : ECDSA on the NIST P-384 curve with a SHA384 - /// digest. Other hash functions can also be used: - /// https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms - /// - "EC_SIGN_SECP256K1_SHA256" : ECDSA on the non-NIST secp256k1 curve. This - /// curve is only supported for HSM protection level. Other hash functions can - /// also be used: - /// https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms - /// - "EC_SIGN_ED25519" : EdDSA on the Curve25519 in pure mode (taking data as - /// input). - /// - "HMAC_SHA256" : HMAC-SHA256 signing with a 256 bit key. - /// - "HMAC_SHA1" : HMAC-SHA1 signing with a 160 bit key. - /// - "HMAC_SHA384" : HMAC-SHA384 signing with a 384 bit key. - /// - "HMAC_SHA512" : HMAC-SHA512 signing with a 512 bit key. - /// - "HMAC_SHA224" : HMAC-SHA224 signing with a 224 bit key. - /// - "EXTERNAL_SYMMETRIC_ENCRYPTION" : Algorithm representing symmetric - /// encryption by an external key manager. - /// - "PQ_SIGN_ML_DSA_65" : The post-quantum Module-Lattice-Based Digital - /// Signature Algorithm, at security level 3. Randomized version. - /// - "PQ_SIGN_SLH_DSA_SHA2_128S" : The post-quantum stateless hash-based - /// digital signature algorithm, at security level 1. Randomized version. - /// - "PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256" : The post-quantum stateless - /// hash-based digital signature algorithm, at security level 1. Randomized - /// pre-hash version supporting SHA256 digests. - core.String? algorithm; + core.String? ciphertext; + core.List get ciphertextAsBytes => + convert.base64.decode(ciphertext!); + + set ciphertextAsBytes(core.List bytes_) { + ciphertext = convert.base64 + .encode(bytes_) + .replaceAll('/', '_') + .replaceAll('+', '-'); + } + + /// A CRC32C checksum of the DecapsulateRequest.ciphertext. + /// + /// If specified, KeyManagementService will verify the integrity of the + /// received DecapsulateRequest.ciphertext using this checksum. + /// KeyManagementService will report an error if the checksum verification + /// fails. If you receive a checksum error, your client should verify that + /// CRC32C(DecapsulateRequest.ciphertext) is equal to + /// DecapsulateRequest.ciphertext_crc32c, and if so, perform a limited number + /// of retries. A persistent mismatch may indicate an issue in your + /// computation of the CRC32C checksum. Note: This field is defined as int64 + /// for reasons of compatibility across different languages. However, it is a + /// non-negative integer, which will never exceed 2^32-1, and can be safely + /// downconverted to uint32 in languages that support this type. + /// + /// Optional. + core.String? ciphertextCrc32c; + + DecapsulateRequest({this.ciphertext, this.ciphertextCrc32c}); - /// ProtectionLevel to use when creating a CryptoKeyVersion based on this - /// template. + DecapsulateRequest.fromJson(core.Map json_) + : this( + ciphertext: json_['ciphertext'] as core.String?, + ciphertextCrc32c: json_['ciphertextCrc32c'] as core.String?, + ); + + core.Map toJson() => { + if (ciphertext != null) 'ciphertext': ciphertext!, + if (ciphertextCrc32c != null) 'ciphertextCrc32c': ciphertextCrc32c!, + }; +} + +/// Response message for KeyManagementService.Decapsulate. +class DecapsulateResponse { + /// The resource name of the CryptoKeyVersion used for decapsulation. /// - /// Immutable. Defaults to SOFTWARE. + /// Check this field to verify that the intended resource was used for + /// decapsulation. + core.String? name; + + /// The ProtectionLevel of the CryptoKeyVersion used in decapsulation. /// Possible string values are: /// - "PROTECTION_LEVEL_UNSPECIFIED" : Not specified. /// - "SOFTWARE" : Crypto operations are performed in software. @@ -4668,17 +4702,71 @@ class CryptoKeyVersionTemplate { /// backend. core.String? protectionLevel; - CryptoKeyVersionTemplate({this.algorithm, this.protectionLevel}); + /// The decapsulated shared_secret originally encapsulated with the matching + /// public key. + core.String? sharedSecret; + core.List get sharedSecretAsBytes => + convert.base64.decode(sharedSecret!); + + set sharedSecretAsBytes(core.List bytes_) { + sharedSecret = convert.base64 + .encode(bytes_) + .replaceAll('/', '_') + .replaceAll('+', '-'); + } + + /// Integrity verification field. + /// + /// A CRC32C checksum of the returned DecapsulateResponse.shared_secret. An + /// integrity check of DecapsulateResponse.shared_secret can be performed by + /// computing the CRC32C checksum of DecapsulateResponse.shared_secret and + /// comparing your results to this field. Discard the response in case of + /// non-matching checksum values, and perform a limited number of retries. A + /// persistent mismatch may indicate an issue in your computation of the + /// CRC32C checksum. Note: receiving this response message indicates that + /// KeyManagementService is able to successfully decrypt the ciphertext. Note: + /// This field is defined as int64 for reasons of compatibility across + /// different languages. However, it is a non-negative integer, which will + /// never exceed 2^32-1, and can be safely downconverted to uint32 in + /// languages that support this type. + core.String? sharedSecretCrc32c; + + /// Integrity verification field. + /// + /// A flag indicating whether DecapsulateRequest.ciphertext_crc32c was + /// received by KeyManagementService and used for the integrity verification + /// of the ciphertext. A false value of this field indicates either that + /// DecapsulateRequest.ciphertext_crc32c was left unset or that it was not + /// delivered to KeyManagementService. If you've set + /// DecapsulateRequest.ciphertext_crc32c but this field is still false, + /// discard the response and perform a limited number of retries. + core.bool? verifiedCiphertextCrc32c; - CryptoKeyVersionTemplate.fromJson(core.Map json_) + DecapsulateResponse({ + this.name, + this.protectionLevel, + this.sharedSecret, + this.sharedSecretCrc32c, + this.verifiedCiphertextCrc32c, + }); + + DecapsulateResponse.fromJson(core.Map json_) : this( - algorithm: json_['algorithm'] as core.String?, + name: json_['name'] as core.String?, protectionLevel: json_['protectionLevel'] as core.String?, + sharedSecret: json_['sharedSecret'] as core.String?, + sharedSecretCrc32c: json_['sharedSecretCrc32c'] as core.String?, + verifiedCiphertextCrc32c: + json_['verifiedCiphertextCrc32c'] as core.bool?, ); core.Map toJson() => { - if (algorithm != null) 'algorithm': algorithm!, + if (name != null) 'name': name!, if (protectionLevel != null) 'protectionLevel': protectionLevel!, + if (sharedSecret != null) 'sharedSecret': sharedSecret!, + if (sharedSecretCrc32c != null) 'sharedSecretCrc32c': sharedSecretCrc32c!, + if (verifiedCiphertextCrc32c != null) + 'verifiedCiphertextCrc32c': verifiedCiphertextCrc32c!, }; } @@ -5397,6 +5485,10 @@ class ImportCryptoKeyVersionRequest { /// - "HMAC_SHA224" : HMAC-SHA224 signing with a 224 bit key. /// - "EXTERNAL_SYMMETRIC_ENCRYPTION" : Algorithm representing symmetric /// encryption by an external key manager. + /// - "ML_KEM_768" : ML-KEM-768 (FIPS 203) + /// - "ML_KEM_1024" : ML-KEM-1024 (FIPS 203) + /// - "KEM_XWING" : X-Wing hybrid KEM combining ML-KEM-768 with X25519 + /// following datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem/. /// - "PQ_SIGN_ML_DSA_65" : The post-quantum Module-Lattice-Based Digital /// Signature Algorithm, at security level 3. Randomized version. /// - "PQ_SIGN_SLH_DSA_SHA2_128S" : The post-quantum stateless hash-based @@ -6711,6 +6803,10 @@ class PublicKey { /// - "HMAC_SHA224" : HMAC-SHA224 signing with a 224 bit key. /// - "EXTERNAL_SYMMETRIC_ENCRYPTION" : Algorithm representing symmetric /// encryption by an external key manager. + /// - "ML_KEM_768" : ML-KEM-768 (FIPS 203) + /// - "ML_KEM_1024" : ML-KEM-1024 (FIPS 203) + /// - "KEM_XWING" : X-Wing hybrid KEM combining ML-KEM-768 with X25519 + /// following datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem/. /// - "PQ_SIGN_ML_DSA_65" : The post-quantum Module-Lattice-Based Digital /// Signature Algorithm, at security level 3. Randomized version. /// - "PQ_SIGN_SLH_DSA_SHA2_128S" : The post-quantum stateless hash-based @@ -6776,9 +6872,14 @@ class PublicKey { /// and /// [Textual Encoding of Subject Public Key Info](https://tools.ietf.org/html/rfc7468#section-13) /// for more information. + /// - "DER" : The returned public key will be encoded in DER format (the + /// PrivateKeyInfo structure from RFC 5208). /// - "NIST_PQC" : This is supported only for PQC algorithms. The key material /// is returned in the format defined by NIST PQC standards (FIPS 203, FIPS /// 204, and FIPS 205). + /// - "XWING_RAW_BYTES" : The returned public key is in raw bytes format + /// defined in its standard + /// https://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem. core.String? publicKeyFormat; PublicKey({ diff --git a/generated/googleapis/lib/compute/v1.dart b/generated/googleapis/lib/compute/v1.dart index e7837d8a5..5bebf0fc4 100644 --- a/generated/googleapis/lib/compute/v1.dart +++ b/generated/googleapis/lib/compute/v1.dart @@ -1237,6 +1237,65 @@ class AddressesResource { ); return Operation.fromJson(response_ as core.Map); } + + /// Returns permissions that a caller has on the specified resource. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [project] - Project ID for this request. + /// Value must have pattern + /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. + /// + /// [region] - The name of the region for this request. + /// Value must have pattern `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?`. + /// + /// [resource] - Name or id of the resource for this request. + /// Value must have pattern + /// `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?|\[1-9\]\[0-9\]{0,19}`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [TestPermissionsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future testIamPermissions( + TestPermissionsRequest request, + core.String project, + core.String region, + core.String resource, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'projects/' + + commons.escapeVariable('$project') + + '/regions/' + + commons.escapeVariable('$region') + + '/addresses/' + + commons.escapeVariable('$resource') + + '/testIamPermissions'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return TestPermissionsResponse.fromJson( + response_ as core.Map, + ); + } } class AutoscalersResource { @@ -8222,75 +8281,10 @@ class GlobalAddressesResource { ); return Operation.fromJson(response_ as core.Map); } -} - -class GlobalForwardingRulesResource { - final commons.ApiRequester _requester; - - GlobalForwardingRulesResource(commons.ApiRequester client) - : _requester = client; - - /// Deletes the specified GlobalForwardingRule resource. - /// - /// Request parameters: - /// - /// [project] - Project ID for this request. - /// Value must have pattern - /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. - /// - /// [forwardingRule] - Name of the ForwardingRule resource to delete. - /// Value must have pattern - /// `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?|\[1-9\]\[0-9\]{0,19}`. - /// - /// [requestId] - An optional request ID to identify requests. Specify a - /// unique request ID so that if you must retry your request, the server will - /// know to ignore the request if it has already been completed. For example, - /// consider a situation where you make an initial request and the request - /// times out. If you make the request again with the same request ID, the - /// server can check if original operation with the same request ID was - /// received, and if so, will ignore the second request. This prevents clients - /// from accidentally creating duplicate commitments. The request ID must be a - /// valid UUID with the exception that zero UUID is not supported ( - /// 00000000-0000-0000-0000-000000000000). - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Operation]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future delete( - core.String project, - core.String forwardingRule, { - core.String? requestId, - core.String? $fields, - }) async { - final queryParams_ = >{ - if (requestId != null) 'requestId': [requestId], - if ($fields != null) 'fields': [$fields], - }; - - final url_ = - 'projects/' + - commons.escapeVariable('$project') + - '/global/forwardingRules/' + - commons.escapeVariable('$forwardingRule'); - - final response_ = await _requester.request( - url_, - 'DELETE', - queryParams: queryParams_, - ); - return Operation.fromJson(response_ as core.Map); - } - /// Returns the specified GlobalForwardingRule resource. + /// Returns permissions that a caller has on the specified resource. /// - /// Gets a list of available forwarding rules by making a list() request. + /// [request] - The metadata request object. /// /// Request parameters: /// @@ -8298,25 +8292,27 @@ class GlobalForwardingRulesResource { /// Value must have pattern /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. /// - /// [forwardingRule] - Name of the ForwardingRule resource to return. + /// [resource] - Name or id of the resource for this request. /// Value must have pattern - /// `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?|\[1-9\]\[0-9\]{0,19}`. + /// `\[a-z\](?:\[-a-z0-9_\]{0,61}\[a-z0-9\])?|\[1-9\]\[0-9\]{0,19}`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [ForwardingRule]. + /// Completes with a [TestPermissionsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( + async.Future testIamPermissions( + TestPermissionsRequest request, core.String project, - core.String forwardingRule, { + core.String resource, { core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; @@ -8324,23 +8320,29 @@ class GlobalForwardingRulesResource { final url_ = 'projects/' + commons.escapeVariable('$project') + - '/global/forwardingRules/' + - commons.escapeVariable('$forwardingRule'); + '/global/addresses/' + + commons.escapeVariable('$resource') + + '/testIamPermissions'; final response_ = await _requester.request( url_, - 'GET', + 'POST', + body: body_, queryParams: queryParams_, ); - return ForwardingRule.fromJson( + return TestPermissionsResponse.fromJson( response_ as core.Map, ); } +} - /// Creates a GlobalForwardingRule resource in the specified project using the - /// data included in the request. - /// - /// [request] - The metadata request object. +class GlobalForwardingRulesResource { + final commons.ApiRequester _requester; + + GlobalForwardingRulesResource(commons.ApiRequester client) + : _requester = client; + + /// Deletes the specified GlobalForwardingRule resource. /// /// Request parameters: /// @@ -8348,6 +8350,10 @@ class GlobalForwardingRulesResource { /// Value must have pattern /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. /// + /// [forwardingRule] - Name of the ForwardingRule resource to delete. + /// Value must have pattern + /// `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?|\[1-9\]\[0-9\]{0,19}`. + /// /// [requestId] - An optional request ID to identify requests. Specify a /// unique request ID so that if you must retry your request, the server will /// know to ignore the request if it has already been completed. For example, @@ -8369,13 +8375,12 @@ class GlobalForwardingRulesResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future insert( - ForwardingRule request, - core.String project, { + async.Future delete( + core.String project, + core.String forwardingRule, { core.String? requestId, core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ if (requestId != null) 'requestId': [requestId], if ($fields != null) 'fields': [$fields], @@ -8384,19 +8389,20 @@ class GlobalForwardingRulesResource { final url_ = 'projects/' + commons.escapeVariable('$project') + - '/global/forwardingRules'; + '/global/forwardingRules/' + + commons.escapeVariable('$forwardingRule'); final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'DELETE', queryParams: queryParams_, ); return Operation.fromJson(response_ as core.Map); } - /// Retrieves a list of GlobalForwardingRule resources available to the - /// specified project. + /// Returns the specified GlobalForwardingRule resource. + /// + /// Gets a list of available forwarding rules by making a list() request. /// /// Request parameters: /// @@ -8404,114 +8410,47 @@ class GlobalForwardingRulesResource { /// Value must have pattern /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. /// - /// [filter] - A filter expression that filters resources listed in the - /// response. Most Compute resources support two types of filter expressions: - /// expressions that support regular expressions and expressions that follow - /// API improvement proposal AIP-160. These two types of filter expressions - /// cannot be mixed in one request. If you want to use AIP-160, your - /// expression must specify the field name, an operator, and the value that - /// you want to use for filtering. The value must be a string, a number, or a - /// boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or - /// `:`. For example, if you are filtering Compute Engine instances, you can - /// exclude instances named `example-instance` by specifying `name != - /// example-instance`. The `:*` comparison can be used to test whether a key - /// has been defined. For example, to find all objects with `owner` label use: - /// ``` labels.owner:* ``` You can also filter nested fields. For example, you - /// could specify `scheduling.automaticRestart = false` to include instances - /// only if they are not scheduled for automatic restarts. You can use - /// filtering on nested fields to filter based on resource labels. To filter - /// on multiple expressions, provide each separate expression within - /// parentheses. For example: ``` (scheduling.automaticRestart = true) - /// (cpuPlatform = "Intel Skylake") ``` By default, each expression is an - /// `AND` expression. However, you can include `AND` and `OR` expressions - /// explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR - /// (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) - /// ``` If you want to use a regular expression, use the `eq` (equal) or `ne` - /// (not equal) operator against a single un-parenthesized expression with or - /// without quotes or against multiple parenthesized expressions. Examples: - /// `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - /// `fieldname eq "double quoted literal"` `(fieldname1 eq literal) - /// (fieldname2 ne "literal")` The literal value is interpreted as a regular - /// expression using Google RE2 library syntax. The literal value must match - /// the entire field. For example, to filter for instances that do not end - /// with name "instance", you would use `name ne .*instance`. You cannot - /// combine constraints on multiple fields using regular expressions. - /// - /// [maxResults] - The maximum number of results per page that should be - /// returned. If the number of available results is larger than `maxResults`, - /// Compute Engine returns a `nextPageToken` that can be used to get the next - /// page of results in subsequent list requests. Acceptable values are `0` to - /// `500`, inclusive. (Default: `500`) - /// - /// [orderBy] - Sorts list results by a certain order. By default, results are - /// returned in alphanumerical order based on the resource name. You can also - /// sort results in descending order based on the creation timestamp using - /// `orderBy="creationTimestamp desc"`. This sorts results based on the - /// `creationTimestamp` field in reverse chronological order (newest result - /// first). Use this to sort resources like operations so that the newest - /// operation is returned first. Currently, only sorting by `name` or - /// `creationTimestamp desc` is supported. - /// - /// [pageToken] - Specifies a page token to use. Set `pageToken` to the - /// `nextPageToken` returned by a previous list request to get the next page - /// of results. - /// - /// [returnPartialSuccess] - Opt-in for partial success behavior which - /// provides partial results in case of failure. The default value is false. - /// For example, when partial success behavior is enabled, aggregatedList for - /// a single zone scope either returns all resources in the zone or no - /// resources, with an error code. + /// [forwardingRule] - Name of the ForwardingRule resource to return. + /// Value must have pattern + /// `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?|\[1-9\]\[0-9\]{0,19}`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [ForwardingRuleList]. + /// Completes with a [ForwardingRule]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( - core.String project, { - core.String? filter, - core.int? maxResults, - core.String? orderBy, - core.String? pageToken, - core.bool? returnPartialSuccess, + async.Future get( + core.String project, + core.String forwardingRule, { core.String? $fields, }) async { final queryParams_ = >{ - if (filter != null) 'filter': [filter], - if (maxResults != null) 'maxResults': ['${maxResults}'], - if (orderBy != null) 'orderBy': [orderBy], - if (pageToken != null) 'pageToken': [pageToken], - if (returnPartialSuccess != null) - 'returnPartialSuccess': ['${returnPartialSuccess}'], if ($fields != null) 'fields': [$fields], }; final url_ = 'projects/' + commons.escapeVariable('$project') + - '/global/forwardingRules'; + '/global/forwardingRules/' + + commons.escapeVariable('$forwardingRule'); final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return ForwardingRuleList.fromJson( + return ForwardingRule.fromJson( response_ as core.Map, ); } - /// Updates the specified forwarding rule with the data included in the - /// request. - /// - /// This method supports PATCH semantics and uses the JSON merge patch format - /// and processing rules. Currently, you can only patch the network_tier - /// field. + /// Creates a GlobalForwardingRule resource in the specified project using the + /// data included in the request. /// /// [request] - The metadata request object. /// @@ -8521,10 +8460,183 @@ class GlobalForwardingRulesResource { /// Value must have pattern /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. /// - /// [forwardingRule] - Name of the ForwardingRule resource to patch. - /// Value must have pattern - /// `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?|\[1-9\]\[0-9\]{0,19}`. - /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. For example, + /// consider a situation where you make an initial request and the request + /// times out. If you make the request again with the same request ID, the + /// server can check if original operation with the same request ID was + /// received, and if so, will ignore the second request. This prevents clients + /// from accidentally creating duplicate commitments. The request ID must be a + /// valid UUID with the exception that zero UUID is not supported ( + /// 00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future insert( + ForwardingRule request, + core.String project, { + core.String? requestId, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (requestId != null) 'requestId': [requestId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'projects/' + + commons.escapeVariable('$project') + + '/global/forwardingRules'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + + /// Retrieves a list of GlobalForwardingRule resources available to the + /// specified project. + /// + /// Request parameters: + /// + /// [project] - Project ID for this request. + /// Value must have pattern + /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. + /// + /// [filter] - A filter expression that filters resources listed in the + /// response. Most Compute resources support two types of filter expressions: + /// expressions that support regular expressions and expressions that follow + /// API improvement proposal AIP-160. These two types of filter expressions + /// cannot be mixed in one request. If you want to use AIP-160, your + /// expression must specify the field name, an operator, and the value that + /// you want to use for filtering. The value must be a string, a number, or a + /// boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or + /// `:`. For example, if you are filtering Compute Engine instances, you can + /// exclude instances named `example-instance` by specifying `name != + /// example-instance`. The `:*` comparison can be used to test whether a key + /// has been defined. For example, to find all objects with `owner` label use: + /// ``` labels.owner:* ``` You can also filter nested fields. For example, you + /// could specify `scheduling.automaticRestart = false` to include instances + /// only if they are not scheduled for automatic restarts. You can use + /// filtering on nested fields to filter based on resource labels. To filter + /// on multiple expressions, provide each separate expression within + /// parentheses. For example: ``` (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake") ``` By default, each expression is an + /// `AND` expression. However, you can include `AND` and `OR` expressions + /// explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR + /// (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) + /// ``` If you want to use a regular expression, use the `eq` (equal) or `ne` + /// (not equal) operator against a single un-parenthesized expression with or + /// without quotes or against multiple parenthesized expressions. Examples: + /// `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + /// `fieldname eq "double quoted literal"` `(fieldname1 eq literal) + /// (fieldname2 ne "literal")` The literal value is interpreted as a regular + /// expression using Google RE2 library syntax. The literal value must match + /// the entire field. For example, to filter for instances that do not end + /// with name "instance", you would use `name ne .*instance`. You cannot + /// combine constraints on multiple fields using regular expressions. + /// + /// [maxResults] - The maximum number of results per page that should be + /// returned. If the number of available results is larger than `maxResults`, + /// Compute Engine returns a `nextPageToken` that can be used to get the next + /// page of results in subsequent list requests. Acceptable values are `0` to + /// `500`, inclusive. (Default: `500`) + /// + /// [orderBy] - Sorts list results by a certain order. By default, results are + /// returned in alphanumerical order based on the resource name. You can also + /// sort results in descending order based on the creation timestamp using + /// `orderBy="creationTimestamp desc"`. This sorts results based on the + /// `creationTimestamp` field in reverse chronological order (newest result + /// first). Use this to sort resources like operations so that the newest + /// operation is returned first. Currently, only sorting by `name` or + /// `creationTimestamp desc` is supported. + /// + /// [pageToken] - Specifies a page token to use. Set `pageToken` to the + /// `nextPageToken` returned by a previous list request to get the next page + /// of results. + /// + /// [returnPartialSuccess] - Opt-in for partial success behavior which + /// provides partial results in case of failure. The default value is false. + /// For example, when partial success behavior is enabled, aggregatedList for + /// a single zone scope either returns all resources in the zone or no + /// resources, with an error code. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ForwardingRuleList]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String project, { + core.String? filter, + core.int? maxResults, + core.String? orderBy, + core.String? pageToken, + core.bool? returnPartialSuccess, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (maxResults != null) 'maxResults': ['${maxResults}'], + if (orderBy != null) 'orderBy': [orderBy], + if (pageToken != null) 'pageToken': [pageToken], + if (returnPartialSuccess != null) + 'returnPartialSuccess': ['${returnPartialSuccess}'], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'projects/' + + commons.escapeVariable('$project') + + '/global/forwardingRules'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return ForwardingRuleList.fromJson( + response_ as core.Map, + ); + } + + /// Updates the specified forwarding rule with the data included in the + /// request. + /// + /// This method supports PATCH semantics and uses the JSON merge patch format + /// and processing rules. Currently, you can only patch the network_tier + /// field. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [project] - Project ID for this request. + /// Value must have pattern + /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. + /// + /// [forwardingRule] - Name of the ForwardingRule resource to patch. + /// Value must have pattern + /// `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?|\[1-9\]\[0-9\]{0,19}`. + /// /// [requestId] - An optional request ID to identify requests. Specify a /// unique request ID so that if you must retry your request, the server will /// know to ignore the request if it has already been completed. For example, @@ -15479,6 +15591,65 @@ class InstanceGroupsResource { ); return Operation.fromJson(response_ as core.Map); } + + /// Returns permissions that a caller has on the specified resource. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [project] - Project ID for this request. + /// Value must have pattern + /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. + /// + /// [zone] - The name of the zone for this request. + /// Value must have pattern `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?`. + /// + /// [resource] - Name or id of the resource for this request. + /// Value must have pattern + /// `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?|\[1-9\]\[0-9\]{0,19}`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [TestPermissionsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future testIamPermissions( + TestPermissionsRequest request, + core.String project, + core.String zone, + core.String resource, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'projects/' + + commons.escapeVariable('$project') + + '/zones/' + + commons.escapeVariable('$zone') + + '/instanceGroups/' + + commons.escapeVariable('$resource') + + '/testIamPermissions'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return TestPermissionsResponse.fromJson( + response_ as core.Map, + ); + } } class InstanceSettingsResource { @@ -16259,6 +16430,75 @@ class InstancesResource { return Operation.fromJson(response_ as core.Map); } + /// Adds one dynamic network interface to an active instance. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [project] - Project ID for this request. + /// Value must have pattern + /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. + /// + /// [zone] - The name of the zone for this request. + /// Value must have pattern `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?`. + /// + /// [instance] - The instance name for this request stored as resource_id. + /// Name should conform to RFC1035 or be an unsigned long integer. + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. For example, + /// consider a situation where you make an initial request and the request + /// times out. If you make the request again with the same request ID, the + /// server can check if original operation with the same request ID was + /// received, and if so, will ignore the second request. This prevents clients + /// from accidentally creating duplicate commitments. The request ID must be a + /// valid UUID with the exception that zero UUID is not supported ( + /// 00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future addNetworkInterface( + NetworkInterface request, + core.String project, + core.String zone, + core.String instance, { + core.String? requestId, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (requestId != null) 'requestId': [requestId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'projects/' + + commons.escapeVariable('$project') + + '/zones/' + + commons.escapeVariable('$zone') + + '/instances/' + + commons.escapeVariable('$instance') + + '/addNetworkInterface'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + /// Adds existing resource policies to an instance. /// /// You can only add one policy right now which will be applied to this @@ -16750,6 +16990,79 @@ class InstancesResource { return Operation.fromJson(response_ as core.Map); } + /// Deletes one dynamic network interface from an active instance. + /// + /// InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to + /// delete, using project+zone+resource_id fields; - dynamic network interface + /// to be deleted, using network_interface_name field; + /// + /// Request parameters: + /// + /// [project] - Project ID for this request. + /// Value must have pattern + /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. + /// + /// [zone] - The name of the zone for this request. + /// Value must have pattern `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?`. + /// + /// [instance] - The instance name for this request stored as resource_id. + /// Name should conform to RFC1035 or be an unsigned long integer. + /// + /// [networkInterfaceName] - The name of the dynamic network interface to be + /// deleted from the instance. + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. For example, + /// consider a situation where you make an initial request and the request + /// times out. If you make the request again with the same request ID, the + /// server can check if original operation with the same request ID was + /// received, and if so, will ignore the second request. This prevents clients + /// from accidentally creating duplicate commitments. The request ID must be a + /// valid UUID with the exception that zero UUID is not supported ( + /// 00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future deleteNetworkInterface( + core.String project, + core.String zone, + core.String instance, + core.String networkInterfaceName, { + core.String? requestId, + core.String? $fields, + }) async { + final queryParams_ = >{ + 'networkInterfaceName': [networkInterfaceName], + if (requestId != null) 'requestId': [requestId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'projects/' + + commons.escapeVariable('$project') + + '/zones/' + + commons.escapeVariable('$zone') + + '/instances/' + + commons.escapeVariable('$instance') + + '/deleteNetworkInterface'; + + final response_ = await _requester.request( + url_, + 'POST', + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + /// Detaches a disk from an instance. /// /// Request parameters: @@ -28496,8 +28809,71 @@ class NetworksResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future patch( - Network request, + async.Future patch( + Network request, + core.String project, + core.String network, { + core.String? requestId, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (requestId != null) 'requestId': [requestId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'projects/' + + commons.escapeVariable('$project') + + '/global/networks/' + + commons.escapeVariable('$network'); + + final response_ = await _requester.request( + url_, + 'PATCH', + body: body_, + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + + /// Removes a peering from the specified network. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [project] - Project ID for this request. + /// Value must have pattern + /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. + /// + /// [network] - Name of the network resource to remove peering from. + /// Value must have pattern + /// `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?|\[1-9\]\[0-9\]{0,19}`. + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. For example, + /// consider a situation where you make an initial request and the request + /// times out. If you make the request again with the same request ID, the + /// server can check if original operation with the same request ID was + /// received, and if so, will ignore the second request. This prevents clients + /// from accidentally creating duplicate commitments. The request ID must be a + /// valid UUID with the exception that zero UUID is not supported ( + /// 00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future removePeering( + NetworksRemovePeeringRequest request, core.String project, core.String network, { core.String? requestId, @@ -28513,18 +28889,21 @@ class NetworksResource { 'projects/' + commons.escapeVariable('$project') + '/global/networks/' + - commons.escapeVariable('$network'); + commons.escapeVariable('$network') + + '/removePeering'; final response_ = await _requester.request( url_, - 'PATCH', + 'POST', body: body_, queryParams: queryParams_, ); return Operation.fromJson(response_ as core.Map); } - /// Removes a peering from the specified network. + /// Requests to remove a peering from the specified network. + /// + /// Applicable only for PeeringConnection with update_strategy=CONSENSUS. /// /// [request] - The metadata request object. /// @@ -28559,8 +28938,8 @@ class NetworksResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future removePeering( - NetworksRemovePeeringRequest request, + async.Future requestRemovePeering( + NetworksRequestRemovePeeringRequest request, core.String project, core.String network, { core.String? requestId, @@ -28577,7 +28956,7 @@ class NetworksResource { commons.escapeVariable('$project') + '/global/networks/' + commons.escapeVariable('$network') + - '/removePeering'; + '/requestRemovePeering'; final response_ = await _requester.request( url_, @@ -39560,6 +39939,65 @@ class RegionInstanceGroupsResource { ); return Operation.fromJson(response_ as core.Map); } + + /// Returns permissions that a caller has on the specified resource. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [project] - Project ID for this request. + /// Value must have pattern + /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. + /// + /// [region] - The name of the region for this request. + /// Value must have pattern `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?`. + /// + /// [resource] - Name or id of the resource for this request. + /// Value must have pattern + /// `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?|\[1-9\]\[0-9\]{0,19}`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [TestPermissionsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future testIamPermissions( + TestPermissionsRequest request, + core.String project, + core.String region, + core.String resource, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'projects/' + + commons.escapeVariable('$project') + + '/regions/' + + commons.escapeVariable('$region') + + '/instanceGroups/' + + commons.escapeVariable('$resource') + + '/testIamPermissions'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return TestPermissionsResponse.fromJson( + response_ as core.Map, + ); + } } class RegionInstanceTemplatesResource { @@ -51134,6 +51572,9 @@ class ServiceAttachmentsResource { /// Value must have pattern /// `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?|\[1-9\]\[0-9\]{0,19}`. /// + /// [showNatIps] - Indicates whether NAT IPs should be included in the + /// response. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -51148,9 +51589,11 @@ class ServiceAttachmentsResource { core.String project, core.String region, core.String serviceAttachment, { + core.bool? showNatIps, core.String? $fields, }) async { final queryParams_ = >{ + if (showNatIps != null) 'showNatIps': ['${showNatIps}'], if ($fields != null) 'fields': [$fields], }; @@ -53656,6 +54099,8 @@ class StoragePoolsResource { /// Value must have pattern `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?`. /// /// [storagePool] - Name of the storage pool to delete. + /// Value must have pattern + /// `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?|\[1-9\]\[0-9\]{0,19}`. /// /// [requestId] - An optional request ID to identify requests. Specify a /// unique request ID so that if you must retry your request, the server will @@ -57252,10 +57697,197 @@ class TargetInstancesResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future insert( - TargetInstance request, + async.Future insert( + TargetInstance request, + core.String project, + core.String zone, { + core.String? requestId, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (requestId != null) 'requestId': [requestId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'projects/' + + commons.escapeVariable('$project') + + '/zones/' + + commons.escapeVariable('$zone') + + '/targetInstances'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + + /// Retrieves a list of TargetInstance resources available to the specified + /// project and zone. + /// + /// Request parameters: + /// + /// [project] - Project ID for this request. + /// Value must have pattern + /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. + /// + /// [zone] - Name of the zone scoping this request. + /// Value must have pattern `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?`. + /// + /// [filter] - A filter expression that filters resources listed in the + /// response. Most Compute resources support two types of filter expressions: + /// expressions that support regular expressions and expressions that follow + /// API improvement proposal AIP-160. These two types of filter expressions + /// cannot be mixed in one request. If you want to use AIP-160, your + /// expression must specify the field name, an operator, and the value that + /// you want to use for filtering. The value must be a string, a number, or a + /// boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or + /// `:`. For example, if you are filtering Compute Engine instances, you can + /// exclude instances named `example-instance` by specifying `name != + /// example-instance`. The `:*` comparison can be used to test whether a key + /// has been defined. For example, to find all objects with `owner` label use: + /// ``` labels.owner:* ``` You can also filter nested fields. For example, you + /// could specify `scheduling.automaticRestart = false` to include instances + /// only if they are not scheduled for automatic restarts. You can use + /// filtering on nested fields to filter based on resource labels. To filter + /// on multiple expressions, provide each separate expression within + /// parentheses. For example: ``` (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake") ``` By default, each expression is an + /// `AND` expression. However, you can include `AND` and `OR` expressions + /// explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR + /// (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) + /// ``` If you want to use a regular expression, use the `eq` (equal) or `ne` + /// (not equal) operator against a single un-parenthesized expression with or + /// without quotes or against multiple parenthesized expressions. Examples: + /// `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + /// `fieldname eq "double quoted literal"` `(fieldname1 eq literal) + /// (fieldname2 ne "literal")` The literal value is interpreted as a regular + /// expression using Google RE2 library syntax. The literal value must match + /// the entire field. For example, to filter for instances that do not end + /// with name "instance", you would use `name ne .*instance`. You cannot + /// combine constraints on multiple fields using regular expressions. + /// + /// [maxResults] - The maximum number of results per page that should be + /// returned. If the number of available results is larger than `maxResults`, + /// Compute Engine returns a `nextPageToken` that can be used to get the next + /// page of results in subsequent list requests. Acceptable values are `0` to + /// `500`, inclusive. (Default: `500`) + /// + /// [orderBy] - Sorts list results by a certain order. By default, results are + /// returned in alphanumerical order based on the resource name. You can also + /// sort results in descending order based on the creation timestamp using + /// `orderBy="creationTimestamp desc"`. This sorts results based on the + /// `creationTimestamp` field in reverse chronological order (newest result + /// first). Use this to sort resources like operations so that the newest + /// operation is returned first. Currently, only sorting by `name` or + /// `creationTimestamp desc` is supported. + /// + /// [pageToken] - Specifies a page token to use. Set `pageToken` to the + /// `nextPageToken` returned by a previous list request to get the next page + /// of results. + /// + /// [returnPartialSuccess] - Opt-in for partial success behavior which + /// provides partial results in case of failure. The default value is false. + /// For example, when partial success behavior is enabled, aggregatedList for + /// a single zone scope either returns all resources in the zone or no + /// resources, with an error code. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [TargetInstanceList]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String project, + core.String zone, { + core.String? filter, + core.int? maxResults, + core.String? orderBy, + core.String? pageToken, + core.bool? returnPartialSuccess, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (maxResults != null) 'maxResults': ['${maxResults}'], + if (orderBy != null) 'orderBy': [orderBy], + if (pageToken != null) 'pageToken': [pageToken], + if (returnPartialSuccess != null) + 'returnPartialSuccess': ['${returnPartialSuccess}'], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'projects/' + + commons.escapeVariable('$project') + + '/zones/' + + commons.escapeVariable('$zone') + + '/targetInstances'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return TargetInstanceList.fromJson( + response_ as core.Map, + ); + } + + /// Sets the Google Cloud Armor security policy for the specified target + /// instance. + /// + /// For more information, see Google Cloud Armor Overview + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [project] - Project ID for this request. + /// Value must have pattern + /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. + /// + /// [zone] - Name of the zone scoping this request. + /// Value must have pattern `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?`. + /// + /// [targetInstance] - Name of the TargetInstance resource to which the + /// security policy should be set. The name should conform to RFC1035. + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. For example, + /// consider a situation where you make an initial request and the request + /// times out. If you make the request again with the same request ID, the + /// server can check if original operation with the same request ID was + /// received, and if so, will ignore the second request. This prevents clients + /// from accidentally creating duplicate commitments. The request ID must be a + /// valid UUID with the exception that zero UUID is not supported ( + /// 00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future setSecurityPolicy( + SecurityPolicyReference request, core.String project, - core.String zone, { + core.String zone, + core.String targetInstance, { core.String? requestId, core.String? $fields, }) async { @@ -57270,7 +57902,9 @@ class TargetInstancesResource { commons.escapeVariable('$project') + '/zones/' + commons.escapeVariable('$zone') + - '/targetInstances'; + '/targetInstances/' + + commons.escapeVariable('$targetInstance') + + '/setSecurityPolicy'; final response_ = await _requester.request( url_, @@ -57281,127 +57915,7 @@ class TargetInstancesResource { return Operation.fromJson(response_ as core.Map); } - /// Retrieves a list of TargetInstance resources available to the specified - /// project and zone. - /// - /// Request parameters: - /// - /// [project] - Project ID for this request. - /// Value must have pattern - /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. - /// - /// [zone] - Name of the zone scoping this request. - /// Value must have pattern `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?`. - /// - /// [filter] - A filter expression that filters resources listed in the - /// response. Most Compute resources support two types of filter expressions: - /// expressions that support regular expressions and expressions that follow - /// API improvement proposal AIP-160. These two types of filter expressions - /// cannot be mixed in one request. If you want to use AIP-160, your - /// expression must specify the field name, an operator, and the value that - /// you want to use for filtering. The value must be a string, a number, or a - /// boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or - /// `:`. For example, if you are filtering Compute Engine instances, you can - /// exclude instances named `example-instance` by specifying `name != - /// example-instance`. The `:*` comparison can be used to test whether a key - /// has been defined. For example, to find all objects with `owner` label use: - /// ``` labels.owner:* ``` You can also filter nested fields. For example, you - /// could specify `scheduling.automaticRestart = false` to include instances - /// only if they are not scheduled for automatic restarts. You can use - /// filtering on nested fields to filter based on resource labels. To filter - /// on multiple expressions, provide each separate expression within - /// parentheses. For example: ``` (scheduling.automaticRestart = true) - /// (cpuPlatform = "Intel Skylake") ``` By default, each expression is an - /// `AND` expression. However, you can include `AND` and `OR` expressions - /// explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR - /// (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) - /// ``` If you want to use a regular expression, use the `eq` (equal) or `ne` - /// (not equal) operator against a single un-parenthesized expression with or - /// without quotes or against multiple parenthesized expressions. Examples: - /// `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` - /// `fieldname eq "double quoted literal"` `(fieldname1 eq literal) - /// (fieldname2 ne "literal")` The literal value is interpreted as a regular - /// expression using Google RE2 library syntax. The literal value must match - /// the entire field. For example, to filter for instances that do not end - /// with name "instance", you would use `name ne .*instance`. You cannot - /// combine constraints on multiple fields using regular expressions. - /// - /// [maxResults] - The maximum number of results per page that should be - /// returned. If the number of available results is larger than `maxResults`, - /// Compute Engine returns a `nextPageToken` that can be used to get the next - /// page of results in subsequent list requests. Acceptable values are `0` to - /// `500`, inclusive. (Default: `500`) - /// - /// [orderBy] - Sorts list results by a certain order. By default, results are - /// returned in alphanumerical order based on the resource name. You can also - /// sort results in descending order based on the creation timestamp using - /// `orderBy="creationTimestamp desc"`. This sorts results based on the - /// `creationTimestamp` field in reverse chronological order (newest result - /// first). Use this to sort resources like operations so that the newest - /// operation is returned first. Currently, only sorting by `name` or - /// `creationTimestamp desc` is supported. - /// - /// [pageToken] - Specifies a page token to use. Set `pageToken` to the - /// `nextPageToken` returned by a previous list request to get the next page - /// of results. - /// - /// [returnPartialSuccess] - Opt-in for partial success behavior which - /// provides partial results in case of failure. The default value is false. - /// For example, when partial success behavior is enabled, aggregatedList for - /// a single zone scope either returns all resources in the zone or no - /// resources, with an error code. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [TargetInstanceList]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future list( - core.String project, - core.String zone, { - core.String? filter, - core.int? maxResults, - core.String? orderBy, - core.String? pageToken, - core.bool? returnPartialSuccess, - core.String? $fields, - }) async { - final queryParams_ = >{ - if (filter != null) 'filter': [filter], - if (maxResults != null) 'maxResults': ['${maxResults}'], - if (orderBy != null) 'orderBy': [orderBy], - if (pageToken != null) 'pageToken': [pageToken], - if (returnPartialSuccess != null) - 'returnPartialSuccess': ['${returnPartialSuccess}'], - if ($fields != null) 'fields': [$fields], - }; - - final url_ = - 'projects/' + - commons.escapeVariable('$project') + - '/zones/' + - commons.escapeVariable('$zone') + - '/targetInstances'; - - final response_ = await _requester.request( - url_, - 'GET', - queryParams: queryParams_, - ); - return TargetInstanceList.fromJson( - response_ as core.Map, - ); - } - - /// Sets the Google Cloud Armor security policy for the specified target - /// instance. - /// - /// For more information, see Google Cloud Armor Overview + /// Returns permissions that a caller has on the specified resource. /// /// [request] - The metadata request object. /// @@ -57411,44 +57925,32 @@ class TargetInstancesResource { /// Value must have pattern /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. /// - /// [zone] - Name of the zone scoping this request. + /// [zone] - The name of the zone for this request. /// Value must have pattern `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?`. /// - /// [targetInstance] - Name of the TargetInstance resource to which the - /// security policy should be set. The name should conform to RFC1035. - /// - /// [requestId] - An optional request ID to identify requests. Specify a - /// unique request ID so that if you must retry your request, the server will - /// know to ignore the request if it has already been completed. For example, - /// consider a situation where you make an initial request and the request - /// times out. If you make the request again with the same request ID, the - /// server can check if original operation with the same request ID was - /// received, and if so, will ignore the second request. This prevents clients - /// from accidentally creating duplicate commitments. The request ID must be a - /// valid UUID with the exception that zero UUID is not supported ( - /// 00000000-0000-0000-0000-000000000000). + /// [resource] - Name or id of the resource for this request. + /// Value must have pattern + /// `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?|\[1-9\]\[0-9\]{0,19}`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [Operation]. + /// Completes with a [TestPermissionsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future setSecurityPolicy( - SecurityPolicyReference request, + async.Future testIamPermissions( + TestPermissionsRequest request, core.String project, core.String zone, - core.String targetInstance, { - core.String? requestId, + core.String resource, { core.String? $fields, }) async { final body_ = convert.json.encode(request); final queryParams_ = >{ - if (requestId != null) 'requestId': [requestId], if ($fields != null) 'fields': [$fields], }; @@ -57458,8 +57960,8 @@ class TargetInstancesResource { '/zones/' + commons.escapeVariable('$zone') + '/targetInstances/' + - commons.escapeVariable('$targetInstance') + - '/setSecurityPolicy'; + commons.escapeVariable('$resource') + + '/testIamPermissions'; final response_ = await _requester.request( url_, @@ -57467,7 +57969,9 @@ class TargetInstancesResource { body: body_, queryParams: queryParams_, ); - return Operation.fromJson(response_ as core.Map); + return TestPermissionsResponse.fromJson( + response_ as core.Map, + ); } } @@ -58389,6 +58893,65 @@ class TargetPoolsResource { ); return Operation.fromJson(response_ as core.Map); } + + /// Returns permissions that a caller has on the specified resource. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [project] - Project ID for this request. + /// Value must have pattern + /// `(?:(?:\[-a-z0-9\]{1,63}\.)*(?:\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?):)?(?:\[0-9\]{1,19}|(?:\[a-z0-9\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?))`. + /// + /// [region] - The name of the region for this request. + /// Value must have pattern `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?`. + /// + /// [resource] - Name or id of the resource for this request. + /// Value must have pattern + /// `\[a-z\](?:\[-a-z0-9\]{0,61}\[a-z0-9\])?|\[1-9\]\[0-9\]{0,19}`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [TestPermissionsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future testIamPermissions( + TestPermissionsRequest request, + core.String project, + core.String region, + core.String resource, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'projects/' + + commons.escapeVariable('$project') + + '/regions/' + + commons.escapeVariable('$region') + + '/targetPools/' + + commons.escapeVariable('$resource') + + '/testIamPermissions'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return TestPermissionsResponse.fromJson( + response_ as core.Map, + ); + } } class TargetSslProxiesResource { @@ -66844,6 +67407,12 @@ class BackendBucket { /// letter, or digit, except the last character, which cannot be a dash. core.String? name; + /// Input only. + /// + /// \[Input Only\] Additional params passed with the request, but not + /// persisted as part of resource payload. + BackendBucketParams? params; + /// Server-defined URL for the resource. /// /// Output only. @@ -66867,6 +67436,7 @@ class BackendBucket { this.kind, this.loadBalancingScheme, this.name, + this.params, this.selfLink, this.usedBy, }); @@ -66893,6 +67463,12 @@ class BackendBucket { kind: json_['kind'] as core.String?, loadBalancingScheme: json_['loadBalancingScheme'] as core.String?, name: json_['name'] as core.String?, + params: + json_.containsKey('params') + ? BackendBucketParams.fromJson( + json_['params'] as core.Map, + ) + : null, selfLink: json_['selfLink'] as core.String?, usedBy: (json_['usedBy'] as core.List?) @@ -66919,6 +67495,7 @@ class BackendBucket { if (loadBalancingScheme != null) 'loadBalancingScheme': loadBalancingScheme!, if (name != null) 'name': name!, + if (params != null) 'params': params!, if (selfLink != null) 'selfLink': selfLink!, if (usedBy != null) 'usedBy': usedBy!, }; @@ -67018,8 +67595,8 @@ class BackendBucketCdnPolicy { /// the following default TTLs to these status codes: HTTP 300 (Multiple /// Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 /// (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not - /// Found), 421 (Misdirected Request), 501 (Not Implemented): 60s. These - /// defaults can be overridden in negative_caching_policy. + /// Found), 501 (Not Implemented): 60s. These defaults can be overridden in + /// negative_caching_policy. core.bool? negativeCaching; /// Sets a cache TTL for the specified HTTP status code. @@ -67401,6 +67978,9 @@ class BackendBucketList { }; } +/// Additional Backend Bucket parameters. +typedef BackendBucketParams = $Params; + class BackendBucketUsedBy { /// Server-defined URL for UrlMaps referencing that BackendBucket. /// @@ -67759,11 +68339,11 @@ class BackendService { /// was redirected to the load balancer. - MAGLEV: used as a drop in /// replacement for the ring hash load balancer. Maglev is not as stable as /// ring hash but has faster table lookup build times and host selection - /// times. For more information about Maglev, see - /// https://ai.google/research/pubs/pub44824 - WEIGHTED_ROUND_ROBIN: - /// Per-endpoint Weighted Round Robin Load Balancing using weights computed - /// from Backend reported Custom Metrics. If set, the Backend Service - /// responses are expected to contain non-standard HTTP response header field + /// times. For more information about Maglev, see Maglev: A Fast and Reliable + /// Software Network Load Balancer. - WEIGHTED_ROUND_ROBIN: Per-endpoint + /// Weighted Round Robin Load Balancing using weights computed from Backend + /// reported Custom Metrics. If set, the Backend Service responses are + /// expected to contain non-standard HTTP response header field /// Endpoint-Load-Metrics. The reported metrics to use for computing the /// weights are specified via the customMetrics field. This field is /// applicable to either: - A regional backend service with the @@ -67786,7 +68366,7 @@ class BackendService { /// Maglev can be used as a drop in replacement for the ring hash load /// balancer. Maglev is not as stable as ring hash but has faster table lookup /// build times and host selection times. For more information about Maglev, - /// see https://ai.google/research/pubs/pub44824 + /// see Maglev: A Fast and Reliable Software Network Load Balancer. /// - "ORIGINAL_DESTINATION" : Backend host is selected based on the client /// connection metadata, i.e., connections are opened to the same address as /// the destination address of the incoming connection before the connection @@ -67798,6 +68378,10 @@ class BackendService { /// requests. /// - "ROUND_ROBIN" : This is a simple policy in which each healthy backend is /// selected in round robin order. This is the default. + /// - "WEIGHTED_GCP_RENDEZVOUS" : Per-instance weighted Load Balancing via + /// health check reported weights. In internal passthrough network load + /// balancing, it is weighted rendezvous hashing. This option is only + /// supported in internal passthrough network load balancing. /// - "WEIGHTED_MAGLEV" : Per-instance weighted Load Balancing via health /// check reported weights. If set, the Backend Service must configure a non /// legacy HTTP-based Health Check, and health check replies are expected to @@ -67885,6 +68469,12 @@ class BackendService { /// true. OutlierDetection? outlierDetection; + /// Input only. + /// + /// \[Input Only\] Additional params passed with the request, but not + /// persisted as part of resource payload. + BackendServiceParams? params; + /// Deprecated in favor of portName. /// /// The TCP port to connect on the backend. The default value is 80. For @@ -67960,7 +68550,7 @@ class BackendService { /// URL to networkservices.ServiceLbPolicy resource. /// - /// Can only be set if load balancing scheme is EXTERNAL, EXTERNAL_MANAGED, + /// Can only be set if load balancing scheme is EXTERNAL_MANAGED, /// INTERNAL_MANAGED or INTERNAL_SELF_MANAGED and the scope is global. core.String? serviceLbPolicy; @@ -68069,6 +68659,7 @@ class BackendService { this.name, this.network, this.outlierDetection, + this.params, this.port, this.portName, this.protocol, @@ -68220,6 +68811,12 @@ class BackendService { as core.Map, ) : null, + params: + json_.containsKey('params') + ? BackendServiceParams.fromJson( + json_['params'] as core.Map, + ) + : null, port: json_['port'] as core.int?, portName: json_['portName'] as core.String?, protocol: json_['protocol'] as core.String?, @@ -68313,6 +68910,7 @@ class BackendService { if (name != null) 'name': name!, if (network != null) 'network': network!, if (outlierDetection != null) 'outlierDetection': outlierDetection!, + if (params != null) 'params': params!, if (port != null) 'port': port!, if (portName != null) 'portName': portName!, if (protocol != null) 'protocol': protocol!, @@ -68649,8 +69247,8 @@ class BackendServiceCdnPolicy { /// the following default TTLs to these status codes: HTTP 300 (Multiple /// Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 /// (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not - /// Found), 421 (Misdirected Request), 501 (Not Implemented): 60s. These - /// defaults can be overridden in negative_caching_policy. + /// Found), 501 (Not Implemented): 60s. These defaults can be overridden in + /// negative_caching_policy. core.bool? negativeCaching; /// Sets a cache TTL for the specified HTTP status code. @@ -69747,7 +70345,7 @@ class BackendServiceLocalityLoadBalancingPolicyConfigPolicy { /// Maglev can be used as a drop in replacement for the ring hash load /// balancer. Maglev is not as stable as ring hash but has faster table lookup /// build times and host selection times. For more information about Maglev, - /// see https://ai.google/research/pubs/pub44824 + /// see Maglev: A Fast and Reliable Software Network Load Balancer. /// - "ORIGINAL_DESTINATION" : Backend host is selected based on the client /// connection metadata, i.e., connections are opened to the same address as /// the destination address of the incoming connection before the connection @@ -69759,6 +70357,10 @@ class BackendServiceLocalityLoadBalancingPolicyConfigPolicy { /// requests. /// - "ROUND_ROBIN" : This is a simple policy in which each healthy backend is /// selected in round robin order. This is the default. + /// - "WEIGHTED_GCP_RENDEZVOUS" : Per-instance weighted Load Balancing via + /// health check reported weights. In internal passthrough network load + /// balancing, it is weighted rendezvous hashing. This option is only + /// supported in internal passthrough network load balancing. /// - "WEIGHTED_MAGLEV" : Per-instance weighted Load Balancing via health /// check reported weights. If set, the Backend Service must configure a non /// legacy HTTP-based Health Check, and health check replies are expected to @@ -69850,6 +70452,9 @@ class BackendServiceLogConfig { }; } +/// Additional Backend Service parameters. +typedef BackendServiceParams = $Params; + class BackendServiceReference { core.String? backendService; @@ -84018,6 +84623,8 @@ class Instance { /// - "DEPROVISIONING" : The instance is halted and we are performing tear /// down tasks like network deprogramming, releasing quota, IP, tearing down /// disks etc. + /// - "PENDING" : For Flex Start provisioning instance is waiting for + /// available capacity from Dynamic Workload Scheduler (DWS). /// - "PROVISIONING" : Resources are being allocated for the instance. /// - "REPAIRING" : The instance is in repair. /// - "RUNNING" : The instance is running. @@ -89345,6 +89952,11 @@ class InstanceMoveRequest { /// Additional instance params. class InstanceParams { + /// Relative deadline for waiting for capacity. + /// + /// Relevant only for Instances.Insert API. + Duration? requestValidForDuration; + /// Resource manager tags to be bound to the instance. /// /// Tag keys and values have the same definition as resource manager tags. @@ -89353,16 +89965,25 @@ class InstanceParams { /// empty. core.Map? resourceManagerTags; - InstanceParams({this.resourceManagerTags}); + InstanceParams({this.requestValidForDuration, this.resourceManagerTags}); InstanceParams.fromJson(core.Map json_) : this( + requestValidForDuration: + json_.containsKey('requestValidForDuration') + ? Duration.fromJson( + json_['requestValidForDuration'] + as core.Map, + ) + : null, resourceManagerTags: (json_['resourceManagerTags'] as core.Map?) ?.map((key, value) => core.MapEntry(key, value as core.String)), ); core.Map toJson() => { + if (requestValidForDuration != null) + 'requestValidForDuration': requestValidForDuration!, if (resourceManagerTags != null) 'resourceManagerTags': resourceManagerTags!, }; @@ -90556,6 +91177,8 @@ class InstanceWithNamedPorts { /// - "DEPROVISIONING" : The instance is halted and we are performing tear /// down tasks like network deprogramming, releasing quota, IP, tearing down /// disks etc. + /// - "PENDING" : For Flex Start provisioning instance is waiting for + /// available capacity from Dynamic Workload Scheduler (DWS). /// - "PROVISIONING" : Resources are being allocated for the instance. /// - "REPAIRING" : The instance is in repair. /// - "RUNNING" : The instance is running. @@ -92115,6 +92738,10 @@ class Int64RangeMatch { /// network and your on-premises network. For more information, read the /// Dedicated Interconnect Overview. class Interconnect { + /// Enable or disable the application awareness feature on this Cloud + /// Interconnect. + core.bool? aaiEnabled; + /// Administrative status of the interconnect. /// /// When this is set to true, the Interconnect is functional and can carry @@ -92123,6 +92750,10 @@ class Interconnect { /// status is set to true. core.bool? adminEnabled; + /// Configuration information for application awareness on this Cloud + /// Interconnect. + InterconnectApplicationAwareInterconnect? applicationAwareInterconnect; + /// List of features available for this Interconnect connection, which can /// take one of the following values: - IF_MACSEC If present then the /// Interconnect connection is provisioned on MACsec capable hardware ports. @@ -92365,7 +92996,9 @@ class Interconnect { core.String? state; Interconnect({ + this.aaiEnabled, this.adminEnabled, + this.applicationAwareInterconnect, this.availableFeatures, this.circuitInfos, this.creationTimestamp, @@ -92400,7 +93033,15 @@ class Interconnect { Interconnect.fromJson(core.Map json_) : this( + aaiEnabled: json_['aaiEnabled'] as core.bool?, adminEnabled: json_['adminEnabled'] as core.bool?, + applicationAwareInterconnect: + json_.containsKey('applicationAwareInterconnect') + ? InterconnectApplicationAwareInterconnect.fromJson( + json_['applicationAwareInterconnect'] + as core.Map, + ) + : null, availableFeatures: (json_['availableFeatures'] as core.List?) ?.map((value) => value as core.String) @@ -92467,7 +93108,10 @@ class Interconnect { ); core.Map toJson() => { + if (aaiEnabled != null) 'aaiEnabled': aaiEnabled!, if (adminEnabled != null) 'adminEnabled': adminEnabled!, + if (applicationAwareInterconnect != null) + 'applicationAwareInterconnect': applicationAwareInterconnect!, if (availableFeatures != null) 'availableFeatures': availableFeatures!, if (circuitInfos != null) 'circuitInfos': circuitInfos!, if (creationTimestamp != null) 'creationTimestamp': creationTimestamp!, @@ -92503,6 +93147,140 @@ class Interconnect { }; } +/// Configuration information for application awareness on this Cloud +/// Interconnect. +class InterconnectApplicationAwareInterconnect { + InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy? + bandwidthPercentagePolicy; + + /// Description for the application awareness profile on this Cloud + /// Interconnect. + core.String? profileDescription; + + /// Optional field to specify a list of shape average percentages to be + /// applied in conjunction with StrictPriorityPolicy or + /// BandwidthPercentagePolicy. + core.List? + shapeAveragePercentages; + InterconnectApplicationAwareInterconnectStrictPriorityPolicy? + strictPriorityPolicy; + + InterconnectApplicationAwareInterconnect({ + this.bandwidthPercentagePolicy, + this.profileDescription, + this.shapeAveragePercentages, + this.strictPriorityPolicy, + }); + + InterconnectApplicationAwareInterconnect.fromJson(core.Map json_) + : this( + bandwidthPercentagePolicy: + json_.containsKey('bandwidthPercentagePolicy') + ? InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy.fromJson( + json_['bandwidthPercentagePolicy'] + as core.Map, + ) + : null, + profileDescription: json_['profileDescription'] as core.String?, + shapeAveragePercentages: + (json_['shapeAveragePercentages'] as core.List?) + ?.map( + (value) => + InterconnectApplicationAwareInterconnectBandwidthPercentage.fromJson( + value as core.Map, + ), + ) + .toList(), + strictPriorityPolicy: + json_.containsKey('strictPriorityPolicy') + ? InterconnectApplicationAwareInterconnectStrictPriorityPolicy.fromJson( + json_['strictPriorityPolicy'] + as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (bandwidthPercentagePolicy != null) + 'bandwidthPercentagePolicy': bandwidthPercentagePolicy!, + if (profileDescription != null) 'profileDescription': profileDescription!, + if (shapeAveragePercentages != null) + 'shapeAveragePercentages': shapeAveragePercentages!, + if (strictPriorityPolicy != null) + 'strictPriorityPolicy': strictPriorityPolicy!, + }; +} + +/// Specify bandwidth percentages \[1-100\] for various traffic classes in +/// BandwidthPercentagePolicy. +/// +/// The sum of all percentages must equal 100. All traffic classes must have a +/// percentage value specified. +class InterconnectApplicationAwareInterconnectBandwidthPercentage { + /// Bandwidth percentage for a specific traffic class. + core.int? percentage; + + /// TrafficClass whose bandwidth percentage is being specified. + /// Possible string values are: + /// - "TC1" : Traffic Class 1, corresponding to DSCP ranges (0-7) 000xxx. + /// - "TC2" : Traffic Class 2, corresponding to DSCP ranges (8-15) 001xxx. + /// - "TC3" : Traffic Class 3, corresponding to DSCP ranges (16-23) 010xxx. + /// - "TC4" : Traffic Class 4, corresponding to DSCP ranges (24-31) 011xxx. + /// - "TC5" : Traffic Class 5, corresponding to DSCP ranges (32-47) 10xxxx. + /// - "TC6" : Traffic Class 6, corresponding to DSCP ranges (48-63) 11xxxx. + core.String? trafficClass; + + InterconnectApplicationAwareInterconnectBandwidthPercentage({ + this.percentage, + this.trafficClass, + }); + + InterconnectApplicationAwareInterconnectBandwidthPercentage.fromJson( + core.Map json_, + ) : this( + percentage: json_['percentage'] as core.int?, + trafficClass: json_['trafficClass'] as core.String?, + ); + + core.Map toJson() => { + if (percentage != null) 'percentage': percentage!, + if (trafficClass != null) 'trafficClass': trafficClass!, + }; +} + +class InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy { + /// Specify bandwidth percentages for various traffic classes for queuing type + /// Bandwidth Percent. + core.List? + bandwidthPercentages; + + InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy({ + this.bandwidthPercentages, + }); + + InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy.fromJson( + core.Map json_, + ) : this( + bandwidthPercentages: + (json_['bandwidthPercentages'] as core.List?) + ?.map( + (value) => + InterconnectApplicationAwareInterconnectBandwidthPercentage.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (bandwidthPercentages != null) + 'bandwidthPercentages': bandwidthPercentages!, + }; +} + +/// Specify configuration for StrictPriorityPolicy. +typedef InterconnectApplicationAwareInterconnectStrictPriorityPolicy = $Empty; + /// Represents an Interconnect Attachment (VLAN) resource. /// /// You can use Interconnect attachments (VLANS) to connect your Virtual Private @@ -94268,9 +95046,6 @@ class InterconnectAttachmentGroupsOperationalStatusAttachmentStatus { core.String? isActive; /// Whether this Attachment is active, and if so, whether BGP is up. - /// - /// This is based on the statuses available in the Pantheon UI here: - /// http://google3/java/com/google/cloud/boq/clientapi/gce/hybrid/api/interconnect_models.proto /// Possible string values are: /// - "ATTACHMENT_STATUS_UNKNOWN" /// - "CONNECTION_DISABLED" @@ -99883,6 +100658,8 @@ class ManagedInstance { /// - "DEPROVISIONING" : The instance is halted and we are performing tear /// down tasks like network deprogramming, releasing quota, IP, tearing down /// disks etc. + /// - "PENDING" : For Flex Start provisioning instance is waiting for + /// available capacity from Dynamic Workload Scheduler (DWS). /// - "PROVISIONING" : Resources are being allocated for the instance. /// - "REPAIRING" : The instance is in repair. /// - "RUNNING" : The instance is running. @@ -103974,6 +104751,9 @@ class NetworkInterface { /// - "VIRTIO_NET" : VIRTIO core.String? nicType; + /// Name of the parent network interface of a dynamic network interface. + core.String? parentNicName; + /// The networking queue count that's specified by users for the network /// interface. /// @@ -104007,6 +104787,10 @@ class NetworkInterface { /// /subnetworks/subnetwork - regions/region/subnetworks/subnetwork core.String? subnetwork; + /// VLAN tag of a dynamic network interface, must be an integer in the range + /// from 2 to 255 inclusively. + core.int? vlan; + NetworkInterface({ this.accessConfigs, this.aliasIpRanges, @@ -104021,9 +104805,11 @@ class NetworkInterface { this.networkAttachment, this.networkIP, this.nicType, + this.parentNicName, this.queueCount, this.stackType, this.subnetwork, + this.vlan, }); NetworkInterface.fromJson(core.Map json_) @@ -104063,9 +104849,11 @@ class NetworkInterface { networkAttachment: json_['networkAttachment'] as core.String?, networkIP: json_['networkIP'] as core.String?, nicType: json_['nicType'] as core.String?, + parentNicName: json_['parentNicName'] as core.String?, queueCount: json_['queueCount'] as core.int?, stackType: json_['stackType'] as core.String?, subnetwork: json_['subnetwork'] as core.String?, + vlan: json_['vlan'] as core.int?, ); core.Map toJson() => { @@ -104083,9 +104871,11 @@ class NetworkInterface { if (networkAttachment != null) 'networkAttachment': networkAttachment!, if (networkIP != null) 'networkIP': networkIP!, if (nicType != null) 'nicType': nicType!, + if (parentNicName != null) 'parentNicName': parentNicName!, if (queueCount != null) 'queueCount': queueCount!, if (stackType != null) 'stackType': stackType!, if (subnetwork != null) 'subnetwork': subnetwork!, + if (vlan != null) 'vlan': vlan!, }; } @@ -104323,6 +105113,11 @@ class NetworkPeering { /// networks when peering state is ACTIVE. core.bool? autoCreateRoutes; + /// The effective state of the peering connection as a whole. + /// + /// Output only. + NetworkPeeringConnectionStatus? connectionStatus; + /// Indicates whether full mesh connectivity is created and managed /// automatically between peered networks. /// @@ -104406,8 +105201,24 @@ class NetworkPeering { /// Output only. core.String? stateDetails; + /// The update strategy determines the semantics for updates and deletes to + /// the peering connection configuration. + /// Possible string values are: + /// - "CONSENSUS" : Updates are reflected in the local peering but aren't + /// applied to the peering connection until a complementary change is made to + /// the matching peering. To delete a peering with the consensus update + /// strategy, both the peerings must request the deletion of the peering + /// before the peering can be deleted. + /// - "INDEPENDENT" : In this mode, changes to the peering configuration can + /// be unilaterally altered by changing either side of the peering. This is + /// the default value if the field is unspecified. + /// - "UNSPECIFIED" : Peerings with update strategy UNSPECIFIED are created + /// with update strategy INDEPENDENT. + core.String? updateStrategy; + NetworkPeering({ this.autoCreateRoutes, + this.connectionStatus, this.exchangeSubnetRoutes, this.exportCustomRoutes, this.exportSubnetRoutesWithPublicIp, @@ -104419,11 +105230,19 @@ class NetworkPeering { this.stackType, this.state, this.stateDetails, + this.updateStrategy, }); NetworkPeering.fromJson(core.Map json_) : this( autoCreateRoutes: json_['autoCreateRoutes'] as core.bool?, + connectionStatus: + json_.containsKey('connectionStatus') + ? NetworkPeeringConnectionStatus.fromJson( + json_['connectionStatus'] + as core.Map, + ) + : null, exchangeSubnetRoutes: json_['exchangeSubnetRoutes'] as core.bool?, exportCustomRoutes: json_['exportCustomRoutes'] as core.bool?, exportSubnetRoutesWithPublicIp: @@ -104437,10 +105256,12 @@ class NetworkPeering { stackType: json_['stackType'] as core.String?, state: json_['state'] as core.String?, stateDetails: json_['stateDetails'] as core.String?, + updateStrategy: json_['updateStrategy'] as core.String?, ); core.Map toJson() => { if (autoCreateRoutes != null) 'autoCreateRoutes': autoCreateRoutes!, + if (connectionStatus != null) 'connectionStatus': connectionStatus!, if (exchangeSubnetRoutes != null) 'exchangeSubnetRoutes': exchangeSubnetRoutes!, if (exportCustomRoutes != null) 'exportCustomRoutes': exportCustomRoutes!, @@ -104455,6 +105276,178 @@ class NetworkPeering { if (stackType != null) 'stackType': stackType!, if (state != null) 'state': state!, if (stateDetails != null) 'stateDetails': stateDetails!, + if (updateStrategy != null) 'updateStrategy': updateStrategy!, + }; +} + +/// Describes the state of a peering connection, not just the local peering. +/// +/// This field provides information about the effective settings for the +/// connection as a whole, including pending delete/update requests for +/// CONSENSUS peerings. +/// +/// Output only. +class NetworkPeeringConnectionStatus { + /// The consensus state contains information about the status of update and + /// delete for a consensus peering connection. + NetworkPeeringConnectionStatusConsensusState? consensusState; + + /// The active connectivity settings for the peering connection based on the + /// settings of the network peerings. + NetworkPeeringConnectionStatusTrafficConfiguration? trafficConfiguration; + + /// The update strategy determines the update/delete semantics for this + /// peering connection. + /// Possible string values are: + /// - "CONSENSUS" : Updates are reflected in the local peering but aren't + /// applied to the peering connection until a complementary change is made to + /// the matching peering. To delete a peering with the consensus update + /// strategy, both the peerings must request the deletion of the peering + /// before the peering can be deleted. + /// - "INDEPENDENT" : In this mode, changes to the peering configuration can + /// be unilaterally altered by changing either side of the peering. This is + /// the default value if the field is unspecified. + /// - "UNSPECIFIED" : Peerings with update strategy UNSPECIFIED are created + /// with update strategy INDEPENDENT. + core.String? updateStrategy; + + NetworkPeeringConnectionStatus({ + this.consensusState, + this.trafficConfiguration, + this.updateStrategy, + }); + + NetworkPeeringConnectionStatus.fromJson(core.Map json_) + : this( + consensusState: + json_.containsKey('consensusState') + ? NetworkPeeringConnectionStatusConsensusState.fromJson( + json_['consensusState'] + as core.Map, + ) + : null, + trafficConfiguration: + json_.containsKey('trafficConfiguration') + ? NetworkPeeringConnectionStatusTrafficConfiguration.fromJson( + json_['trafficConfiguration'] + as core.Map, + ) + : null, + updateStrategy: json_['updateStrategy'] as core.String?, + ); + + core.Map toJson() => { + if (consensusState != null) 'consensusState': consensusState!, + if (trafficConfiguration != null) + 'trafficConfiguration': trafficConfiguration!, + if (updateStrategy != null) 'updateStrategy': updateStrategy!, + }; +} + +/// The status of update/delete for a consensus peering connection. +/// +/// Only set when connection_status.update_strategy is CONSENSUS or a network +/// peering is proposing to update the strategy to CONSENSUS. +class NetworkPeeringConnectionStatusConsensusState { + /// The status of the delete request. + /// Possible string values are: + /// - "DELETE_ACKNOWLEDGED" : Both network admins have agreed this consensus + /// peering connection can be deleted. + /// - "DELETE_STATUS_UNSPECIFIED" + /// - "LOCAL_DELETE_REQUESTED" : Network admin has requested deletion of this + /// peering connection. + /// - "PEER_DELETE_REQUESTED" : The peer network admin has requested deletion + /// of this peering connection. + core.String? deleteStatus; + + /// The status of the update request. + /// Possible string values are: + /// - "IN_SYNC" : No pending configuration update proposals to the peering + /// connection. + /// - "PENDING_LOCAL_ACKNOWLEDMENT" : The peer network admin has made an + /// updatePeering call. The change is awaiting acknowledgment from this + /// peering's network admin. + /// - "PENDING_PEER_ACKNOWLEDGEMENT" : The local network admin has made an + /// updatePeering call. The change is awaiting acknowledgment from the peer + /// network admin. + /// - "UPDATE_STATUS_UNSPECIFIED" + core.String? updateStatus; + + NetworkPeeringConnectionStatusConsensusState({ + this.deleteStatus, + this.updateStatus, + }); + + NetworkPeeringConnectionStatusConsensusState.fromJson(core.Map json_) + : this( + deleteStatus: json_['deleteStatus'] as core.String?, + updateStatus: json_['updateStatus'] as core.String?, + ); + + core.Map toJson() => { + if (deleteStatus != null) 'deleteStatus': deleteStatus!, + if (updateStatus != null) 'updateStatus': updateStatus!, + }; +} + +class NetworkPeeringConnectionStatusTrafficConfiguration { + /// Whether custom routes are being exported to the peer network. + core.bool? exportCustomRoutesToPeer; + + /// Whether subnet routes with public IP ranges are being exported to the peer + /// network. + core.bool? exportSubnetRoutesWithPublicIpToPeer; + + /// Whether custom routes are being imported from the peer network. + core.bool? importCustomRoutesFromPeer; + + /// Whether subnet routes with public IP ranges are being imported from the + /// peer network. + core.bool? importSubnetRoutesWithPublicIpFromPeer; + + /// Which IP version(s) of traffic and routes are being imported or exported + /// between peer networks. + /// Possible string values are: + /// - "IPV4_IPV6" : This Peering will allow IPv4 traffic and routes to be + /// exchanged. Additionally if the matching peering is IPV4_IPV6, IPv6 traffic + /// and routes will be exchanged as well. + /// - "IPV4_ONLY" : This Peering will only allow IPv4 traffic and routes to be + /// exchanged, even if the matching peering is IPV4_IPV6. + core.String? stackType; + + NetworkPeeringConnectionStatusTrafficConfiguration({ + this.exportCustomRoutesToPeer, + this.exportSubnetRoutesWithPublicIpToPeer, + this.importCustomRoutesFromPeer, + this.importSubnetRoutesWithPublicIpFromPeer, + this.stackType, + }); + + NetworkPeeringConnectionStatusTrafficConfiguration.fromJson(core.Map json_) + : this( + exportCustomRoutesToPeer: + json_['exportCustomRoutesToPeer'] as core.bool?, + exportSubnetRoutesWithPublicIpToPeer: + json_['exportSubnetRoutesWithPublicIpToPeer'] as core.bool?, + importCustomRoutesFromPeer: + json_['importCustomRoutesFromPeer'] as core.bool?, + importSubnetRoutesWithPublicIpFromPeer: + json_['importSubnetRoutesWithPublicIpFromPeer'] as core.bool?, + stackType: json_['stackType'] as core.String?, + ); + + core.Map toJson() => { + if (exportCustomRoutesToPeer != null) + 'exportCustomRoutesToPeer': exportCustomRoutesToPeer!, + if (exportSubnetRoutesWithPublicIpToPeer != null) + 'exportSubnetRoutesWithPublicIpToPeer': + exportSubnetRoutesWithPublicIpToPeer!, + if (importCustomRoutesFromPeer != null) + 'importCustomRoutesFromPeer': importCustomRoutesFromPeer!, + if (importSubnetRoutesWithPublicIpFromPeer != null) + 'importSubnetRoutesWithPublicIpFromPeer': + importSubnetRoutesWithPublicIpFromPeer!, + if (stackType != null) 'stackType': stackType!, }; } @@ -104520,6 +105513,11 @@ class NetworkProfile { /// Output only. core.String? name; + /// Type of the network profile. + /// + /// Output only. + NetworkProfileProfileType? profileType; + /// Server-defined URL for the resource. /// /// Output only. @@ -104538,6 +105536,7 @@ class NetworkProfile { this.kind, this.location, this.name, + this.profileType, this.selfLink, this.selfLinkWithId, }); @@ -104561,6 +105560,12 @@ class NetworkProfile { ) : null, name: json_['name'] as core.String?, + profileType: + json_.containsKey('profileType') + ? NetworkProfileProfileType.fromJson( + json_['profileType'] as core.Map, + ) + : null, selfLink: json_['selfLink'] as core.String?, selfLinkWithId: json_['selfLinkWithId'] as core.String?, ); @@ -104573,6 +105578,7 @@ class NetworkProfile { if (kind != null) 'kind': kind!, if (location != null) 'location': location!, if (name != null) 'name': name!, + if (profileType != null) 'profileType': profileType!, if (selfLink != null) 'selfLink': selfLink!, if (selfLinkWithId != null) 'selfLinkWithId': selfLinkWithId!, }; @@ -104885,6 +105891,54 @@ class NetworkProfileNetworkFeatures { }; } +class NetworkProfileProfileType { + /// + /// Possible string values are: + /// - "RDMA" : RDMA network. + /// - "ULL" : ULL network. + /// - "VPC" : VPC network. + core.String? networkType; + + /// + /// Possible string values are: + /// - "FALCON" : RDMA over Falcon. + /// - "ROCE" : RDMA over Converged Ethernet (RoCE). + core.String? rdmaSubtype; + + /// + /// Possible string values are: + /// - "OPERATOR" : Exchange operator. + /// - "PARTICIPANT" : Exchange participant. + core.String? ullSubtype; + + /// + /// Possible string values are: + /// - "REGIONAL" : Regionally bound VPC network. + core.String? vpcSubtype; + + NetworkProfileProfileType({ + this.networkType, + this.rdmaSubtype, + this.ullSubtype, + this.vpcSubtype, + }); + + NetworkProfileProfileType.fromJson(core.Map json_) + : this( + networkType: json_['networkType'] as core.String?, + rdmaSubtype: json_['rdmaSubtype'] as core.String?, + ullSubtype: json_['ullSubtype'] as core.String?, + vpcSubtype: json_['vpcSubtype'] as core.String?, + ); + + core.Map toJson() => { + if (networkType != null) 'networkType': networkType!, + if (rdmaSubtype != null) 'rdmaSubtype': rdmaSubtype!, + if (ullSubtype != null) 'ullSubtype': ullSubtype!, + if (vpcSubtype != null) 'vpcSubtype': vpcSubtype!, + }; +} + class NetworkProfilesListResponseWarningData { /// A key that provides more detail on the warning being returned. /// @@ -105405,19 +106459,8 @@ class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy { }; } -class NetworksRemovePeeringRequest { - /// Name of the peering, which should conform to RFC1035. - core.String? name; - - NetworksRemovePeeringRequest({this.name}); - - NetworksRemovePeeringRequest.fromJson(core.Map json_) - : this(name: json_['name'] as core.String?); - - core.Map toJson() => { - if (name != null) 'name': name!, - }; -} +typedef NetworksRemovePeeringRequest = $RemovePeeringRequest; +typedef NetworksRequestRemovePeeringRequest = $RemovePeeringRequest; class NetworksUpdatePeeringRequest { NetworkPeering? networkPeering; @@ -116361,6 +117404,10 @@ class RequestMirrorPolicy { /// reserved VMs are not running. For more information, read Reserving zonal /// resources. class Reservation { + /// Advanced control for cluster management, applicable only to DENSE + /// deployment type reservations. + ReservationAdvancedDeploymentControl? advancedDeploymentControl; + /// Reservation for aggregated resources, providing shape flexibility. AllocationAggregateReservation? aggregateReservation; @@ -116511,6 +117558,7 @@ class Reservation { core.String? zone; Reservation({ + this.advancedDeploymentControl, this.aggregateReservation, this.commitment, this.creationTimestamp, @@ -116538,6 +117586,13 @@ class Reservation { Reservation.fromJson(core.Map json_) : this( + advancedDeploymentControl: + json_.containsKey('advancedDeploymentControl') + ? ReservationAdvancedDeploymentControl.fromJson( + json_['advancedDeploymentControl'] + as core.Map, + ) + : null, aggregateReservation: json_.containsKey('aggregateReservation') ? AllocationAggregateReservation.fromJson( @@ -116606,6 +117661,8 @@ class Reservation { ); core.Map toJson() => { + if (advancedDeploymentControl != null) + 'advancedDeploymentControl': advancedDeploymentControl!, if (aggregateReservation != null) 'aggregateReservation': aggregateReservation!, if (commitment != null) 'commitment': commitment!, @@ -116638,6 +117695,32 @@ class Reservation { }; } +/// Advance control for cluster management, applicable only to DENSE deployment +/// type reservations. +class ReservationAdvancedDeploymentControl { + /// Indicates chosen reservation operational mode for the reservation. + /// Possible string values are: + /// - "ALL_CAPACITY" : Google Cloud does not manage the failure of machines, + /// but provides additional capacity, which is not guaranteed to be available. + /// - "HIGHLY_AVAILABLE_CAPACITY" : Google Cloud manages the failure of + /// machines to provide high availability. + /// - "RESERVATION_OPERATIONAL_MODE_UNSPECIFIED" + core.String? reservationOperationalMode; + + ReservationAdvancedDeploymentControl({this.reservationOperationalMode}); + + ReservationAdvancedDeploymentControl.fromJson(core.Map json_) + : this( + reservationOperationalMode: + json_['reservationOperationalMode'] as core.String?, + ); + + core.Map toJson() => { + if (reservationOperationalMode != null) + 'reservationOperationalMode': reservationOperationalMode!, + }; +} + /// Specifies the reservations that this instance can consume from. class ReservationAffinity { /// Specifies the type of reservation from which this instance can consume @@ -118603,6 +119686,8 @@ class ResourcePolicy { /// - "INVALID" /// - "READY" : Resource policy is ready to be used. core.String? status; + + /// Resource policy for defining instance placement for MIGs. ResourcePolicyWorkloadPolicy? workloadPolicy; ResourcePolicy({ @@ -119665,21 +120750,23 @@ class ResourcePolicyWeeklyCycleDayOfWeek { /// Represents the workload policy. class ResourcePolicyWorkloadPolicy { + /// Specifies the topology required to create a partition for VMs that have + /// interconnected GPUs. core.String? acceleratorTopology; - /// + /// Specifies the maximum distance between instances. /// Possible string values are: /// - "BLOCK" : VMs must be provisioned in the same block. /// - "CLUSTER" : VMs must be provisioned in the same cluster. /// - "SUBBLOCK" : VMs must be provisioned in the same subblock. core.String? maxTopologyDistance; - /// + /// Specifies the intent of the instance placement in the MIG. /// Possible string values are: - /// - "HIGH_AVAILABILITY" : VMs will be provisioned in such a way which - /// provides high availability. - /// - "HIGH_THROUGHPUT" : VMs will be provisioned in such a way which provides - /// high throughput. + /// - "HIGH_AVAILABILITY" : MIG spreads out the instances as much as possible + /// for high availability. + /// - "HIGH_THROUGHPUT" : MIG provisions instances as close to each other as + /// possible for high throughput. core.String? type; ResourcePolicyWorkloadPolicy({ @@ -119710,6 +120797,13 @@ class ResourcePolicyWorkloadPolicy { /// compared to the value requested by the user (intent) in their instance CRUD /// calls. class ResourceStatus { + /// Effective metadata is a field that consolidates project, zonal instance + /// settings, and instance-level predefined metadata keys to provide the + /// overridden value for those metadata keys at the instance level. + /// + /// Output only. + ResourceStatusEffectiveInstanceMetadata? effectiveInstanceMetadata; + /// The precise location of your instance within the zone's data center, /// including the block, sub-block, and host. /// @@ -119728,6 +120822,7 @@ class ResourceStatus { UpcomingMaintenance? upcomingMaintenance; ResourceStatus({ + this.effectiveInstanceMetadata, this.physicalHost, this.physicalHostTopology, this.scheduling, @@ -119736,6 +120831,13 @@ class ResourceStatus { ResourceStatus.fromJson(core.Map json_) : this( + effectiveInstanceMetadata: + json_.containsKey('effectiveInstanceMetadata') + ? ResourceStatusEffectiveInstanceMetadata.fromJson( + json_['effectiveInstanceMetadata'] + as core.Map, + ) + : null, physicalHost: json_['physicalHost'] as core.String?, physicalHostTopology: json_.containsKey('physicalHostTopology') @@ -119760,6 +120862,8 @@ class ResourceStatus { ); core.Map toJson() => { + if (effectiveInstanceMetadata != null) + 'effectiveInstanceMetadata': effectiveInstanceMetadata!, if (physicalHost != null) 'physicalHost': physicalHost!, if (physicalHostTopology != null) 'physicalHostTopology': physicalHostTopology!, @@ -119769,6 +120873,84 @@ class ResourceStatus { }; } +/// Effective values of predefined metadata keys for an instance. +class ResourceStatusEffectiveInstanceMetadata { + /// Effective block-project-ssh-keys value at Instance level. + core.bool? blockProjectSshKeysMetadataValue; + + /// Effective enable-guest-attributes value at Instance level. + core.bool? enableGuestAttributesMetadataValue; + + /// Effective enable-os-inventory value at Instance level. + core.bool? enableOsInventoryMetadataValue; + + /// Effective enable-osconfig value at Instance level. + core.bool? enableOsconfigMetadataValue; + + /// Effective enable-oslogin value at Instance level. + core.bool? enableOsloginMetadataValue; + + /// Effective serial-port-enable value at Instance level. + core.bool? serialPortEnableMetadataValue; + + /// Effective serial-port-logging-enable value at Instance level. + core.bool? serialPortLoggingEnableMetadataValue; + + /// Effective VM DNS setting at Instance level. + core.String? vmDnsSettingMetadataValue; + + ResourceStatusEffectiveInstanceMetadata({ + this.blockProjectSshKeysMetadataValue, + this.enableGuestAttributesMetadataValue, + this.enableOsInventoryMetadataValue, + this.enableOsconfigMetadataValue, + this.enableOsloginMetadataValue, + this.serialPortEnableMetadataValue, + this.serialPortLoggingEnableMetadataValue, + this.vmDnsSettingMetadataValue, + }); + + ResourceStatusEffectiveInstanceMetadata.fromJson(core.Map json_) + : this( + blockProjectSshKeysMetadataValue: + json_['blockProjectSshKeysMetadataValue'] as core.bool?, + enableGuestAttributesMetadataValue: + json_['enableGuestAttributesMetadataValue'] as core.bool?, + enableOsInventoryMetadataValue: + json_['enableOsInventoryMetadataValue'] as core.bool?, + enableOsconfigMetadataValue: + json_['enableOsconfigMetadataValue'] as core.bool?, + enableOsloginMetadataValue: + json_['enableOsloginMetadataValue'] as core.bool?, + serialPortEnableMetadataValue: + json_['serialPortEnableMetadataValue'] as core.bool?, + serialPortLoggingEnableMetadataValue: + json_['serialPortLoggingEnableMetadataValue'] as core.bool?, + vmDnsSettingMetadataValue: + json_['vmDnsSettingMetadataValue'] as core.String?, + ); + + core.Map toJson() => { + if (blockProjectSshKeysMetadataValue != null) + 'blockProjectSshKeysMetadataValue': blockProjectSshKeysMetadataValue!, + if (enableGuestAttributesMetadataValue != null) + 'enableGuestAttributesMetadataValue': enableGuestAttributesMetadataValue!, + if (enableOsInventoryMetadataValue != null) + 'enableOsInventoryMetadataValue': enableOsInventoryMetadataValue!, + if (enableOsconfigMetadataValue != null) + 'enableOsconfigMetadataValue': enableOsconfigMetadataValue!, + if (enableOsloginMetadataValue != null) + 'enableOsloginMetadataValue': enableOsloginMetadataValue!, + if (serialPortEnableMetadataValue != null) + 'serialPortEnableMetadataValue': serialPortEnableMetadataValue!, + if (serialPortLoggingEnableMetadataValue != null) + 'serialPortLoggingEnableMetadataValue': + serialPortLoggingEnableMetadataValue!, + if (vmDnsSettingMetadataValue != null) + 'vmDnsSettingMetadataValue': vmDnsSettingMetadataValue!, + }; +} + /// Represents the physical host topology of the host on which the VM is /// running. class ResourceStatusPhysicalHostTopology { @@ -120719,6 +121901,12 @@ class Router { /// URI of the network to which this router belongs. core.String? network; + /// Input only. + /// + /// \[Input Only\] Additional params passed with the request, but not + /// persisted as part of resource payload. + RouterParams? params; + /// URI of the region where the router resides. /// /// You must specify this field as part of the HTTP request URL. It is not @@ -120745,6 +121933,7 @@ class Router { this.name, this.nats, this.network, + this.params, this.region, this.selfLink, }); @@ -120797,6 +121986,12 @@ class Router { ) .toList(), network: json_['network'] as core.String?, + params: + json_.containsKey('params') + ? RouterParams.fromJson( + json_['params'] as core.Map, + ) + : null, region: json_['region'] as core.String?, selfLink: json_['selfLink'] as core.String?, ); @@ -120816,6 +122011,7 @@ class Router { if (name != null) 'name': name!, if (nats != null) 'nats': nats!, if (network != null) 'network': network!, + if (params != null) 'params': params!, if (region != null) 'region': region!, if (selfLink != null) 'selfLink': selfLink!, }; @@ -122403,6 +123599,36 @@ class RouterNatSubnetworkToNat64 { }; } +/// Additional router parameters. +class RouterParams { + /// Tag keys/values directly bound to this resource. + /// + /// The field is allowed for INSERT only. The keys/values to set on the + /// resource should be specified in either ID { : } or Namespaced format { : + /// }. For example the following are valid inputs: * {"tagKeys/333" : + /// "tagValues/444", "tagKeys/123" : "tagValues/456"} * {"123/environment" : + /// "production", "345/abc" : "xyz"} Note: * Invalid combinations of ID & + /// namespaced format is not supported. For instance: {"123/environment" : + /// "tagValues/444"} is invalid. * Inconsistent format is not supported. For + /// instance: {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is + /// invalid. + core.Map? resourceManagerTags; + + RouterParams({this.resourceManagerTags}); + + RouterParams.fromJson(core.Map json_) + : this( + resourceManagerTags: (json_['resourceManagerTags'] + as core.Map?) + ?.map((key, value) => core.MapEntry(key, value as core.String)), + ); + + core.Map toJson() => { + if (resourceManagerTags != null) + 'resourceManagerTags': resourceManagerTags!, + }; +} + class RouterStatus { /// A list of the best dynamic routes for this Cloud Router's Virtual Private /// Cloud (VPC) network in the same region as this Cloud Router. @@ -123989,6 +125215,8 @@ class Scheduling { /// Specifies the provisioning model of the instance. /// Possible string values are: + /// - "FLEX_START" : Instance is provisioned using the Flex Start provisioning + /// model and has a limited runtime. /// - "RESERVATION_BOUND" : Bound to the lifecycle of the reservation in which /// it is provisioned. /// - "SPOT" : Heavily discounted, no guaranteed runtime. @@ -123996,6 +125224,11 @@ class Scheduling { /// discounts. core.String? provisioningModel; + /// Default is false and there will be 120 seconds between GCE ACPI G2 Soft + /// Off and ACPI G3 Mechanical Off for Standard VMs and 30 seconds for Spot + /// VMs. + core.bool? skipGuestOsShutdown; + /// Specifies the timestamp, when the instance will be terminated, in RFC3339 /// text format. /// @@ -124017,6 +125250,7 @@ class Scheduling { this.onInstanceStopAction, this.preemptible, this.provisioningModel, + this.skipGuestOsShutdown, this.terminationTime, }); @@ -124061,6 +125295,7 @@ class Scheduling { : null, preemptible: json_['preemptible'] as core.bool?, provisioningModel: json_['provisioningModel'] as core.String?, + skipGuestOsShutdown: json_['skipGuestOsShutdown'] as core.bool?, terminationTime: json_['terminationTime'] as core.String?, ); @@ -124082,6 +125317,8 @@ class Scheduling { 'onInstanceStopAction': onInstanceStopAction!, if (preemptible != null) 'preemptible': preemptible!, if (provisioningModel != null) 'provisioningModel': provisioningModel!, + if (skipGuestOsShutdown != null) + 'skipGuestOsShutdown': skipGuestOsShutdown!, if (terminationTime != null) 'terminationTime': terminationTime!, }; } @@ -124735,15 +125972,15 @@ class SecurityPolicy { /// Armor edge security policies can be configured to filter incoming HTTP /// requests targeting backend services (including Cloud CDN-enabled) as well /// as backend buckets (Cloud Storage). They filter requests before the - /// request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: - /// Cloud Armor internal service policies can be configured to filter HTTP - /// requests targeting services managed by Traffic Director in a service mesh. - /// They filter requests before the request is served from the application. - - /// CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to - /// filter packets targeting network load balancing resources such as backend - /// services, target pools, target instances, and instances with external IPs. - /// They filter requests before the request is served from the application. - /// This field can be set only at resource creation time. + /// request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE + /// (preview only): Cloud Armor internal service policies can be configured to + /// filter HTTP requests targeting services managed by Traffic Director in a + /// service mesh. They filter requests before the request is served from the + /// application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be + /// configured to filter packets targeting network load balancing resources + /// such as backend services, target pools, target instances, and instances + /// with external IPs. They filter requests before the request is served from + /// the application. This field can be set only at resource creation time. /// Possible string values are: /// - "CLOUD_ARMOR" /// - "CLOUD_ARMOR_EDGE" @@ -125427,7 +126664,11 @@ class SecurityPolicyRule { /// action is only supported in Global Security Policies of type CLOUD_ARMOR. /// - throttle: limit client traffic to the configured threshold. Configure /// parameters for this action in rateLimitOptions. Requires - /// rate_limit_options to be set for this. + /// rate_limit_options to be set for this. - fairshare (preview only): when + /// traffic reaches the threshold limit, requests from the clients matching + /// this rule begin to be rate-limited using the Fair Share algorithm. This + /// action is only allowed in security policies of type + /// `CLOUD_ARMOR_INTERNAL_SERVICE`. core.String? action; /// An optional description of this resource. @@ -125494,7 +126735,8 @@ class SecurityPolicyRule { /// and 2147483647 is the lowest priority. core.int? priority; - /// Must be specified if the action is "rate_based_ban" or "throttle". + /// Must be specified if the action is "rate_based_ban" or "throttle" or + /// "fairshare". /// /// Cannot be specified for any other actions. SecurityPolicyRuleRateLimitOptions? rateLimitOptions; @@ -125648,11 +126890,12 @@ class SecurityPolicyRuleMatcher { /// /// A CEVAL expression is used to specify match criteria such as origin.ip, /// source.region_code and contents in the request header. Expressions - /// containing `evaluateThreatIntelligence` require Cloud Armor Managed - /// Protection Plus tier and are not supported in Edge Policies nor in - /// Regional Policies. Expressions containing - /// `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed - /// Protection Plus tier and are only supported in Global Security Policies. + /// containing `evaluateThreatIntelligence` require a Cloud Armor Enterprise + /// subscription and are not supported in Edge Policies nor in Regional + /// Policies. Expressions containing + /// `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor + /// Enterprise subscription and are only supported in Global Security + /// Policies. Expr? expr; /// The configuration options available when specifying a user defined CEVAL @@ -126135,6 +127378,8 @@ class SecurityPolicyRuleRateLimitOptions { /// IP address cannot be resolved from it, the key type defaults to IP. - /// TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using /// HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. + /// For "fairshare" action, this value is limited to ALL i.e. a single rate + /// limit threshold is enforced for all the requests matching the rule. /// Possible string values are: /// - "ALL" /// - "HTTP_COOKIE" @@ -127102,6 +128347,10 @@ class ServiceAttachmentConnectedEndpoint { /// The url of a connected endpoint. core.String? endpoint; + /// NAT IPs of the connected PSC endpoint and those of other endpoints + /// propagated from it. + core.List? natIps; + /// The number of consumer Network Connectivity Center spokes that the /// connected Private Service Connect endpoint has propagated to. core.int? propagatedConnectionCount; @@ -127125,6 +128374,7 @@ class ServiceAttachmentConnectedEndpoint { ServiceAttachmentConnectedEndpoint({ this.consumerNetwork, this.endpoint, + this.natIps, this.propagatedConnectionCount, this.pscConnectionId, this.status, @@ -127134,6 +128384,10 @@ class ServiceAttachmentConnectedEndpoint { : this( consumerNetwork: json_['consumerNetwork'] as core.String?, endpoint: json_['endpoint'] as core.String?, + natIps: + (json_['natIps'] as core.List?) + ?.map((value) => value as core.String) + .toList(), propagatedConnectionCount: json_['propagatedConnectionCount'] as core.int?, pscConnectionId: json_['pscConnectionId'] as core.String?, @@ -127143,6 +128397,7 @@ class ServiceAttachmentConnectedEndpoint { core.Map toJson() => { if (consumerNetwork != null) 'consumerNetwork': consumerNetwork!, if (endpoint != null) 'endpoint': endpoint!, + if (natIps != null) 'natIps': natIps!, if (propagatedConnectionCount != null) 'propagatedConnectionCount': propagatedConnectionCount!, if (pscConnectionId != null) 'pscConnectionId': pscConnectionId!, @@ -135686,9 +136941,9 @@ class TargetHttpsProxiesSetSslCertificatesRequest { /// \[Global\](/compute/docs/reference/rest/v1/targetHttpsProxies) * /// \[Regional\](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) A /// target HTTPS proxy is a component of Google Cloud HTTPS load balancers. * -/// targetHttpProxies are used by global external Application Load Balancers, +/// targetHttpsProxies are used by global external Application Load Balancers, /// classic Application Load Balancers, cross-region internal Application Load -/// Balancers, and Traffic Director. * regionTargetHttpProxies are used by +/// Balancers, and Traffic Director. * regionTargetHttpsProxies are used by /// regional internal Application Load Balancers and regional external /// Application Load Balancers. Forwarding rules reference a target HTTPS proxy, /// and the target proxy then references a URL map. For more information, read @@ -143246,6 +144501,10 @@ class VpnGatewaysScopedList { /// /// For more information about VPN, read the the Cloud VPN Overview. class VpnTunnel { + /// User specified list of ciphers to use for the phase 1 and phase 2 of the + /// IKE protocol. + VpnTunnelCipherSuite? cipherSuite; + /// Creation timestamp in RFC3339 text format. /// /// Output only. @@ -143449,6 +144708,7 @@ class VpnTunnel { core.int? vpnGatewayInterface; VpnTunnel({ + this.cipherSuite, this.creationTimestamp, this.description, this.detailedStatus, @@ -143477,6 +144737,12 @@ class VpnTunnel { VpnTunnel.fromJson(core.Map json_) : this( + cipherSuite: + json_.containsKey('cipherSuite') + ? VpnTunnelCipherSuite.fromJson( + json_['cipherSuite'] as core.Map, + ) + : null, creationTimestamp: json_['creationTimestamp'] as core.String?, description: json_['description'] as core.String?, detailedStatus: json_['detailedStatus'] as core.String?, @@ -143513,6 +144779,7 @@ class VpnTunnel { ); core.Map toJson() => { + if (cipherSuite != null) 'cipherSuite': cipherSuite!, if (creationTimestamp != null) 'creationTimestamp': creationTimestamp!, if (description != null) 'description': description!, if (detailedStatus != null) 'detailedStatus': detailedStatus!, @@ -143771,6 +145038,34 @@ class VpnTunnelAggregatedList { }; } +class VpnTunnelCipherSuite { + VpnTunnelPhase1Algorithms? phase1; + VpnTunnelPhase2Algorithms? phase2; + + VpnTunnelCipherSuite({this.phase1, this.phase2}); + + VpnTunnelCipherSuite.fromJson(core.Map json_) + : this( + phase1: + json_.containsKey('phase1') + ? VpnTunnelPhase1Algorithms.fromJson( + json_['phase1'] as core.Map, + ) + : null, + phase2: + json_.containsKey('phase2') + ? VpnTunnelPhase2Algorithms.fromJson( + json_['phase2'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (phase1 != null) 'phase1': phase1!, + if (phase2 != null) 'phase2': phase2!, + }; +} + class VpnTunnelListWarningData { /// A key that provides more detail on the warning being returned. /// @@ -143987,6 +145282,77 @@ class VpnTunnelList { }; } +class VpnTunnelPhase1Algorithms { + core.List? dh; + core.List? encryption; + core.List? integrity; + core.List? prf; + + VpnTunnelPhase1Algorithms({ + this.dh, + this.encryption, + this.integrity, + this.prf, + }); + + VpnTunnelPhase1Algorithms.fromJson(core.Map json_) + : this( + dh: + (json_['dh'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + encryption: + (json_['encryption'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + integrity: + (json_['integrity'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + prf: + (json_['prf'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (dh != null) 'dh': dh!, + if (encryption != null) 'encryption': encryption!, + if (integrity != null) 'integrity': integrity!, + if (prf != null) 'prf': prf!, + }; +} + +class VpnTunnelPhase2Algorithms { + core.List? encryption; + core.List? integrity; + core.List? pfs; + + VpnTunnelPhase2Algorithms({this.encryption, this.integrity, this.pfs}); + + VpnTunnelPhase2Algorithms.fromJson(core.Map json_) + : this( + encryption: + (json_['encryption'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + integrity: + (json_['integrity'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + pfs: + (json_['pfs'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (encryption != null) 'encryption': encryption!, + if (integrity != null) 'integrity': integrity!, + if (pfs != null) 'pfs': pfs!, + }; +} + class VpnTunnelsScopedListWarningData { /// A key that provides more detail on the warning being returned. /// diff --git a/generated/googleapis/lib/config/v1.dart b/generated/googleapis/lib/config/v1.dart index 3d550d6f2..feed6f88a 100644 --- a/generated/googleapis/lib/config/v1.dart +++ b/generated/googleapis/lib/config/v1.dart @@ -131,9 +131,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -2292,6 +2292,11 @@ class Deployment { /// `projects/{project}/locations/{location}/deployments/{deployment}` core.String? name; + /// This field specifies the provider configurations. + /// + /// Optional. + ProviderConfig? providerConfig; + /// Input to control quota checks for resources in terraform configuration /// files. /// @@ -2394,6 +2399,7 @@ class Deployment { this.latestRevision, this.lockState, this.name, + this.providerConfig, this.quotaValidation, this.serviceAccount, this.state, @@ -2430,6 +2436,13 @@ class Deployment { latestRevision: json_['latestRevision'] as core.String?, lockState: json_['lockState'] as core.String?, name: json_['name'] as core.String?, + providerConfig: + json_.containsKey('providerConfig') + ? ProviderConfig.fromJson( + json_['providerConfig'] + as core.Map, + ) + : null, quotaValidation: json_['quotaValidation'] as core.String?, serviceAccount: json_['serviceAccount'] as core.String?, state: json_['state'] as core.String?, @@ -2470,6 +2483,7 @@ class Deployment { if (latestRevision != null) 'latestRevision': latestRevision!, if (lockState != null) 'lockState': lockState!, if (name != null) 'name': name!, + if (providerConfig != null) 'providerConfig': providerConfig!, if (quotaValidation != null) 'quotaValidation': quotaValidation!, if (serviceAccount != null) 'serviceAccount': serviceAccount!, if (state != null) 'state': state!, @@ -3341,6 +3355,11 @@ class Preview { /// current resources. core.String? previewMode; + /// This field specifies the provider configurations. + /// + /// Optional. + ProviderConfig? providerConfig; + /// User-specified Service Account (SA) credentials to be used when previewing /// resources. /// @@ -3415,6 +3434,7 @@ class Preview { this.name, this.previewArtifacts, this.previewMode, + this.providerConfig, this.serviceAccount, this.state, this.terraformBlueprint, @@ -3454,6 +3474,13 @@ class Preview { ) : null, previewMode: json_['previewMode'] as core.String?, + providerConfig: + json_.containsKey('providerConfig') + ? ProviderConfig.fromJson( + json_['providerConfig'] + as core.Map, + ) + : null, serviceAccount: json_['serviceAccount'] as core.String?, state: json_['state'] as core.String?, terraformBlueprint: @@ -3490,6 +3517,7 @@ class Preview { if (name != null) 'name': name!, if (previewArtifacts != null) 'previewArtifacts': previewArtifacts!, if (previewMode != null) 'previewMode': previewMode!, + if (providerConfig != null) 'providerConfig': providerConfig!, if (serviceAccount != null) 'serviceAccount': serviceAccount!, if (state != null) 'state': state!, if (terraformBlueprint != null) 'terraformBlueprint': terraformBlueprint!, @@ -3699,6 +3727,27 @@ class PropertyDrift { }; } +/// ProviderConfig contains the provider configurations. +class ProviderConfig { + /// ProviderSource specifies the source type of the provider. + /// + /// Optional. + /// Possible string values are: + /// - "PROVIDER_SOURCE_UNSPECIFIED" : Unspecified source type, default to + /// public sources. + /// - "SERVICE_MAINTAINED" : Service maintained provider source type. + core.String? sourceType; + + ProviderConfig({this.sourceType}); + + ProviderConfig.fromJson(core.Map json_) + : this(sourceType: json_['sourceType'] as core.String?); + + core.Map toJson() => { + if (sourceType != null) 'sourceType': sourceType!, + }; +} + /// Resource represents a Google Cloud Platform resource actuated by IM. /// /// Resources are child resources of Revisions. @@ -4121,6 +4170,11 @@ class Revision { /// revisions/{revision}` core.String? name; + /// This field specifies the provider configurations. + /// + /// Output only. + ProviderConfig? providerConfig; + /// Input to control quota checks for resources in terraform configuration /// files. /// @@ -4224,6 +4278,7 @@ class Revision { this.importExistingResources, this.logs, this.name, + this.providerConfig, this.quotaValidation, this.quotaValidationResults, this.serviceAccount, @@ -4253,6 +4308,13 @@ class Revision { importExistingResources: json_['importExistingResources'] as core.bool?, logs: json_['logs'] as core.String?, name: json_['name'] as core.String?, + providerConfig: + json_.containsKey('providerConfig') + ? ProviderConfig.fromJson( + json_['providerConfig'] + as core.Map, + ) + : null, quotaValidation: json_['quotaValidation'] as core.String?, quotaValidationResults: json_['quotaValidationResults'] as core.String?, serviceAccount: json_['serviceAccount'] as core.String?, @@ -4290,6 +4352,7 @@ class Revision { 'importExistingResources': importExistingResources!, if (logs != null) 'logs': logs!, if (name != null) 'name': name!, + if (providerConfig != null) 'providerConfig': providerConfig!, if (quotaValidation != null) 'quotaValidation': quotaValidation!, if (quotaValidationResults != null) 'quotaValidationResults': quotaValidationResults!, diff --git a/generated/googleapis/lib/connectors/v1.dart b/generated/googleapis/lib/connectors/v1.dart index b0ec629cb..311ca9c29 100644 --- a/generated/googleapis/lib/connectors/v1.dart +++ b/generated/googleapis/lib/connectors/v1.dart @@ -228,9 +228,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -4579,7 +4579,7 @@ class ConfigVariableTemplate { /// Optional. core.String? key; - /// Location Tyep denotes where this value should be sent in BYOC connections. + /// Location Type denotes where this value should be sent in BYOC connections. /// /// Optional. /// Possible string values are: @@ -5475,13 +5475,8 @@ class ConnectorInfraConfig { /// Indicate whether connector is being migrated to TLS. core.bool? migrateTls; - /// Indicate whether connector is being migrated to use direct VPC egress. - /// Possible string values are: - /// - "NETWORK_EGRESS_MODE_UNSPECIFIED" : Network egress mode is not - /// specified. - /// - "SERVERLESS_VPC_ACCESS_CONNECTOR" : Default model VPC Access Connector. - /// - "DIRECT_VPC_EGRESS" : Direct VPC Egress. - core.String? networkEgressMode; + /// Network egress mode override to migrate to direct VPC egress. + NetworkEgressModeOverride? networkEgressModeOverride; /// Indicate whether cloud spanner is required for connector job. core.bool? provisionCloudSpanner; @@ -5511,7 +5506,7 @@ class ConnectorInfraConfig { this.maxInstanceRequestConcurrency, this.migrateDeploymentModel, this.migrateTls, - this.networkEgressMode, + this.networkEgressModeOverride, this.provisionCloudSpanner, this.provisionMemstore, this.ratelimitThreshold, @@ -5540,7 +5535,13 @@ class ConnectorInfraConfig { json_['maxInstanceRequestConcurrency'] as core.int?, migrateDeploymentModel: json_['migrateDeploymentModel'] as core.bool?, migrateTls: json_['migrateTls'] as core.bool?, - networkEgressMode: json_['networkEgressMode'] as core.String?, + networkEgressModeOverride: + json_.containsKey('networkEgressModeOverride') + ? NetworkEgressModeOverride.fromJson( + json_['networkEgressModeOverride'] + as core.Map, + ) + : null, provisionCloudSpanner: json_['provisionCloudSpanner'] as core.bool?, provisionMemstore: json_['provisionMemstore'] as core.bool?, ratelimitThreshold: json_['ratelimitThreshold'] as core.String?, @@ -5576,7 +5577,8 @@ class ConnectorInfraConfig { if (migrateDeploymentModel != null) 'migrateDeploymentModel': migrateDeploymentModel!, if (migrateTls != null) 'migrateTls': migrateTls!, - if (networkEgressMode != null) 'networkEgressMode': networkEgressMode!, + if (networkEgressModeOverride != null) + 'networkEgressModeOverride': networkEgressModeOverride!, if (provisionCloudSpanner != null) 'provisionCloudSpanner': provisionCloudSpanner!, if (provisionMemstore != null) 'provisionMemstore': provisionMemstore!, @@ -10087,6 +10089,48 @@ class NetworkConfig { }; } +/// NetworkEgressModeOverride provides the network egress mode override for a +/// connector. +class NetworkEgressModeOverride { + /// boolean should be set to true to make sure only eventing enabled + /// connections are migrated to direct vpc egress. + core.bool? isEventingOverrideEnabled; + + /// boolean should be set to true to make sure only async operations enabled + /// connections are migrated to direct vpc egress. + core.bool? isJobsOverrideEnabled; + + /// Determines the VPC Egress mode for the connector. + /// Possible string values are: + /// - "NETWORK_EGRESS_MODE_UNSPECIFIED" : Network Egress mode is not + /// specified. + /// - "SERVERLESS_VPC_ACCESS_CONNECTOR" : Default model VPC Access Connector. + /// - "DIRECT_VPC_EGRESS" : Direct VPC Egress. + core.String? networkEgressMode; + + NetworkEgressModeOverride({ + this.isEventingOverrideEnabled, + this.isJobsOverrideEnabled, + this.networkEgressMode, + }); + + NetworkEgressModeOverride.fromJson(core.Map json_) + : this( + isEventingOverrideEnabled: + json_['isEventingOverrideEnabled'] as core.bool?, + isJobsOverrideEnabled: json_['isJobsOverrideEnabled'] as core.bool?, + networkEgressMode: json_['networkEgressMode'] as core.String?, + ); + + core.Map toJson() => { + if (isEventingOverrideEnabled != null) + 'isEventingOverrideEnabled': isEventingOverrideEnabled!, + if (isJobsOverrideEnabled != null) + 'isJobsOverrideEnabled': isJobsOverrideEnabled!, + if (networkEgressMode != null) 'networkEgressMode': networkEgressMode!, + }; +} + /// Node configuration for the connection. typedef NodeConfig = $NodeConfig; diff --git a/generated/googleapis/lib/connectors/v2.dart b/generated/googleapis/lib/connectors/v2.dart index 51833b446..da36745f0 100644 --- a/generated/googleapis/lib/connectors/v2.dart +++ b/generated/googleapis/lib/connectors/v2.dart @@ -28,6 +28,7 @@ /// - [ProjectsLocationsConnectionsActionsResource] /// - [ProjectsLocationsConnectionsEntityTypesResource] /// - [ProjectsLocationsConnectionsEntityTypesEntitiesResource] +/// - [ProjectsLocationsConnectionsToolsResource] library; import 'dart:async' as async; @@ -92,6 +93,8 @@ class ProjectsLocationsConnectionsResource { ProjectsLocationsConnectionsActionsResource(_requester); ProjectsLocationsConnectionsEntityTypesResource get entityTypes => ProjectsLocationsConnectionsEntityTypesResource(_requester); + ProjectsLocationsConnectionsToolsResource get tools => + ProjectsLocationsConnectionsToolsResource(_requester); ProjectsLocationsConnectionsResource(commons.ApiRequester client) : _requester = client; @@ -495,6 +498,9 @@ class ProjectsLocationsConnectionsEntityTypesResource { /// Value must have pattern /// `^projects/\[^/\]+/locations/\[^/\]+/connections/\[^/\]+/entityTypes/\[^/\]+$`. /// + /// [contextMetadata] - Context metadata for request could be used to fetch + /// customization of entity type schema. + /// /// [view] - Specifies view for entity type schema. /// Possible string values are: /// - "ENTITY_TYPE_SCHEMA_VIEW_UNSPECIFIED" : VIEW_UNSPECIFIED. The unset @@ -515,10 +521,12 @@ class ProjectsLocationsConnectionsEntityTypesResource { /// this method will complete with the same error. async.Future get( core.String name, { + core.String? contextMetadata, core.String? view, core.String? $fields, }) async { final queryParams_ = >{ + if (contextMetadata != null) 'contextMetadata': [contextMetadata], if (view != null) 'view': [view], if ($fields != null) 'fields': [$fields], }; @@ -952,6 +960,104 @@ class ProjectsLocationsConnectionsEntityTypesEntitiesResource { } } +class ProjectsLocationsConnectionsToolsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsConnectionsToolsResource(commons.ApiRequester client) + : _requester = client; + + /// Executes a specific tool. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Required. Resource name of the Tool. Format: + /// projects/{project}/locations/{location}/connections/{connection}/tools/{tool} + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/connections/\[^/\]+/tools/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ExecuteToolResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future execute( + ExecuteToolRequest request, + core.String name, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v2/' + core.Uri.encodeFull('$name') + ':execute'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return ExecuteToolResponse.fromJson( + response_ as core.Map, + ); + } + + /// Lists all available tools. + /// + /// Request parameters: + /// + /// [parent] - Required. Resource name of the Connection. Format: + /// projects/{project}/locations/{location}/connections/{connection} + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/connections/\[^/\]+$`. + /// + /// [pageSize] - Page size. + /// + /// [pageToken] - Page token. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListToolsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String parent, { + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v2/' + core.Uri.encodeFull('$parent') + '/tools'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return ListToolsResponse.fromJson( + response_ as core.Map, + ); + } +} + /// AccessCredentials includes the OAuth access token, and the other fields /// returned along with it. class AccessCredentials { @@ -995,6 +1101,12 @@ class Action { /// List containing input parameter metadata. core.List? inputParameters; + /// Metadata like service latency, etc. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map>? metadata; + /// Name of the action. core.String? name; @@ -1009,6 +1121,7 @@ class Action { this.displayName, this.inputJsonSchema, this.inputParameters, + this.metadata, this.name, this.resultJsonSchema, this.resultMetadata, @@ -1033,6 +1146,13 @@ class Action { ), ) .toList(), + metadata: (json_['metadata'] as core.Map?) + ?.map( + (key, value) => core.MapEntry( + key, + value as core.Map, + ), + ), name: json_['name'] as core.String?, resultJsonSchema: json_.containsKey('resultJsonSchema') @@ -1056,6 +1176,7 @@ class Action { if (displayName != null) 'displayName': displayName!, if (inputJsonSchema != null) 'inputJsonSchema': inputJsonSchema!, if (inputParameters != null) 'inputParameters': inputParameters!, + if (metadata != null) 'metadata': metadata!, if (name != null) 'name': name!, if (resultJsonSchema != null) 'resultJsonSchema': resultJsonSchema!, if (resultMetadata != null) 'resultMetadata': resultMetadata!, @@ -1126,6 +1247,12 @@ class CheckStatusResponse { /// populated to specify the reason why it's not in ACTIVE state. core.String? description; + /// Metadata like service latency, etc. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map>? metadata; + /// State of the connector. /// Possible string values are: /// - "STATE_UNSPECIFIED" : State unspecified. @@ -1141,16 +1268,24 @@ class CheckStatusResponse { /// auth configuration not present, invalid auth credentials, etc. core.String? state; - CheckStatusResponse({this.description, this.state}); + CheckStatusResponse({this.description, this.metadata, this.state}); CheckStatusResponse.fromJson(core.Map json_) : this( description: json_['description'] as core.String?, + metadata: (json_['metadata'] as core.Map?) + ?.map( + (key, value) => core.MapEntry( + key, + value as core.Map, + ), + ), state: json_['state'] as core.String?, ); core.Map toJson() => { if (description != null) 'description': description!, + if (metadata != null) 'metadata': metadata!, if (state != null) 'state': state!, }; } @@ -1174,6 +1309,12 @@ class Entity { /// `String`, `bool` and `null` as well as `Map` and `List` values. core.Map? fields; + /// Metadata like service latency, etc. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map>? metadata; + /// Resource name of the Entity. /// /// Format: @@ -1182,7 +1323,7 @@ class Entity { /// Output only. core.String? name; - Entity({this.fields, this.name}); + Entity({this.fields, this.metadata, this.name}); Entity.fromJson(core.Map json_) : this( @@ -1190,11 +1331,19 @@ class Entity { json_.containsKey('fields') ? json_['fields'] as core.Map : null, + metadata: (json_['metadata'] as core.Map?) + ?.map( + (key, value) => core.MapEntry( + key, + value as core.Map, + ), + ), name: json_['name'] as core.String?, ); core.Map toJson() => { if (fields != null) 'fields': fields!, + if (metadata != null) 'metadata': metadata!, if (name != null) 'name': name!, }; } @@ -1202,20 +1351,36 @@ class Entity { /// EntityType message contains metadata information about a single entity type /// present in the external system. class EntityType { + core.String? defaultSortBy; + /// List containing metadata information about each field of the entity type. core.List? fields; /// JsonSchema representation of this entity's schema JsonSchema? jsonSchema; + /// Metadata like service latency, etc. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map>? metadata; + /// The name of the entity type. core.String? name; core.List? operations; - EntityType({this.fields, this.jsonSchema, this.name, this.operations}); + EntityType({ + this.defaultSortBy, + this.fields, + this.jsonSchema, + this.metadata, + this.name, + this.operations, + }); EntityType.fromJson(core.Map json_) : this( + defaultSortBy: json_['defaultSortBy'] as core.String?, fields: (json_['fields'] as core.List?) ?.map( @@ -1230,6 +1395,13 @@ class EntityType { json_['jsonSchema'] as core.Map, ) : null, + metadata: (json_['metadata'] as core.Map?) + ?.map( + (key, value) => core.MapEntry( + key, + value as core.Map, + ), + ), name: json_['name'] as core.String?, operations: (json_['operations'] as core.List?) @@ -1238,8 +1410,10 @@ class EntityType { ); core.Map toJson() => { + if (defaultSortBy != null) 'defaultSortBy': defaultSortBy!, if (fields != null) 'fields': fields!, if (jsonSchema != null) 'jsonSchema': jsonSchema!, + if (metadata != null) 'metadata': metadata!, if (name != null) 'name': name!, if (operations != null) 'operations': operations!, }; @@ -1278,7 +1452,13 @@ class ExchangeAuthCodeRequest { class ExchangeAuthCodeResponse { AccessCredentials? accessCredentials; - ExchangeAuthCodeResponse({this.accessCredentials}); + /// Metadata like service latency, etc. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map>? metadata; + + ExchangeAuthCodeResponse({this.accessCredentials, this.metadata}); ExchangeAuthCodeResponse.fromJson(core.Map json_) : this( @@ -1289,10 +1469,18 @@ class ExchangeAuthCodeResponse { as core.Map, ) : null, + metadata: (json_['metadata'] as core.Map?) + ?.map( + (key, value) => core.MapEntry( + key, + value as core.Map, + ), + ), ); core.Map toJson() => { if (accessCredentials != null) 'accessCredentials': accessCredentials!, + if (metadata != null) 'metadata': metadata!, }; } @@ -1323,6 +1511,12 @@ class ExecuteActionRequest { /// Response message for ActionService.ExecuteAction class ExecuteActionResponse { + /// Metadata like service latency, etc. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map>? metadata; + /// In the case of successful invocation of the specified action, the results /// Struct contains values based on the response of the action invoked. /// @@ -1335,10 +1529,17 @@ class ExecuteActionResponse { /// `String`, `bool` and `null` as well as `Map` and `List` values. core.List>? results; - ExecuteActionResponse({this.results}); + ExecuteActionResponse({this.metadata, this.results}); ExecuteActionResponse.fromJson(core.Map json_) : this( + metadata: (json_['metadata'] as core.Map?) + ?.map( + (key, value) => core.MapEntry( + key, + value as core.Map, + ), + ), results: (json_['results'] as core.List?) ?.map((value) => value as core.Map) @@ -1346,6 +1547,7 @@ class ExecuteActionResponse { ); core.Map toJson() => { + if (metadata != null) 'metadata': metadata!, if (results != null) 'results': results!, }; } @@ -1405,6 +1607,52 @@ class ExecuteSqlQueryResponse { }; } +/// Request message for ConnectorAgentService.ExecuteTool +class ExecuteToolRequest { + /// Input parameters for the tool. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map? parameters; + + ExecuteToolRequest({this.parameters}); + + ExecuteToolRequest.fromJson(core.Map json_) + : this( + parameters: + json_.containsKey('parameters') + ? json_['parameters'] as core.Map + : null, + ); + + core.Map toJson() => { + if (parameters != null) 'parameters': parameters!, + }; +} + +/// Response message for ConnectorAgentService.ExecuteTool +class ExecuteToolResponse { + /// Output from the tool execution. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map? result; + + ExecuteToolResponse({this.result}); + + ExecuteToolResponse.fromJson(core.Map json_) + : this( + result: + json_.containsKey('result') + ? json_['result'] as core.Map + : null, + ); + + core.Map toJson() => { + if (result != null) 'result': result!, + }; +} + /// Message contains EntityType's Field metadata. class Field { /// The following map contains fields that are not explicitly mentioned @@ -1828,6 +2076,12 @@ class ListActionsResponse { /// List of action metadata. core.List? actions; + /// Metadata like service latency, etc. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map>? metadata; + /// Next page token if more actions available. core.String? nextPageToken; @@ -1838,6 +2092,7 @@ class ListActionsResponse { ListActionsResponse({ this.actions, + this.metadata, this.nextPageToken, this.unsupportedActionNames, }); @@ -1852,6 +2107,13 @@ class ListActionsResponse { ), ) .toList(), + metadata: (json_['metadata'] as core.Map?) + ?.map( + (key, value) => core.MapEntry( + key, + value as core.Map, + ), + ), nextPageToken: json_['nextPageToken'] as core.String?, unsupportedActionNames: (json_['unsupportedActionNames'] as core.List?) @@ -1861,6 +2123,7 @@ class ListActionsResponse { core.Map toJson() => { if (actions != null) 'actions': actions!, + if (metadata != null) 'metadata': metadata!, if (nextPageToken != null) 'nextPageToken': nextPageToken!, if (unsupportedActionNames != null) 'unsupportedActionNames': unsupportedActionNames!, @@ -1872,10 +2135,16 @@ class ListEntitiesResponse { /// List containing entity rows. core.List? entities; + /// Metadata like service latency, etc. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map>? metadata; + /// Next page token if more records are available. core.String? nextPageToken; - ListEntitiesResponse({this.entities, this.nextPageToken}); + ListEntitiesResponse({this.entities, this.metadata, this.nextPageToken}); ListEntitiesResponse.fromJson(core.Map json_) : this( @@ -1887,17 +2156,31 @@ class ListEntitiesResponse { ), ) .toList(), + metadata: (json_['metadata'] as core.Map?) + ?.map( + (key, value) => core.MapEntry( + key, + value as core.Map, + ), + ), nextPageToken: json_['nextPageToken'] as core.String?, ); core.Map toJson() => { if (entities != null) 'entities': entities!, + if (metadata != null) 'metadata': metadata!, if (nextPageToken != null) 'nextPageToken': nextPageToken!, }; } /// Response message for EntityService.ListEntityTypes class ListEntityTypesResponse { + /// Metadata like service latency, etc. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map>? metadata; + /// Next page token if more entity types available. core.String? nextPageToken; @@ -1910,6 +2193,7 @@ class ListEntityTypesResponse { core.List? unsupportedTypeNames; ListEntityTypesResponse({ + this.metadata, this.nextPageToken, this.types, this.unsupportedTypeNames, @@ -1917,6 +2201,13 @@ class ListEntityTypesResponse { ListEntityTypesResponse.fromJson(core.Map json_) : this( + metadata: (json_['metadata'] as core.Map?) + ?.map( + (key, value) => core.MapEntry( + key, + value as core.Map, + ), + ), nextPageToken: json_['nextPageToken'] as core.String?, types: (json_['types'] as core.List?) @@ -1933,6 +2224,7 @@ class ListEntityTypesResponse { ); core.Map toJson() => { + if (metadata != null) 'metadata': metadata!, if (nextPageToken != null) 'nextPageToken': nextPageToken!, if (types != null) 'types': types!, if (unsupportedTypeNames != null) @@ -1940,6 +2232,35 @@ class ListEntityTypesResponse { }; } +/// Response message for ConnectorAgentService.ListTools +class ListToolsResponse { + /// Next page token. + core.String? nextPageToken; + + /// List of available tools. + core.List? tools; + + ListToolsResponse({this.nextPageToken, this.tools}); + + ListToolsResponse.fromJson(core.Map json_) + : this( + nextPageToken: json_['nextPageToken'] as core.String?, + tools: + (json_['tools'] as core.List?) + ?.map( + (value) => Tool.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + if (tools != null) 'tools': tools!, + }; +} + /// A wrapper around the SQL query statement. /// /// This is needed so that the JSON representation of ExecuteSqlQueryRequest has @@ -2100,7 +2421,13 @@ class RefreshAccessTokenRequest { class RefreshAccessTokenResponse { AccessCredentials? accessCredentials; - RefreshAccessTokenResponse({this.accessCredentials}); + /// Metadata like service latency, etc. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map>? metadata; + + RefreshAccessTokenResponse({this.accessCredentials, this.metadata}); RefreshAccessTokenResponse.fromJson(core.Map json_) : this( @@ -2111,10 +2438,18 @@ class RefreshAccessTokenResponse { as core.Map, ) : null, + metadata: (json_['metadata'] as core.Map?) + ?.map( + (key, value) => core.MapEntry( + key, + value as core.Map, + ), + ), ); core.Map toJson() => { if (accessCredentials != null) 'accessCredentials': accessCredentials!, + if (metadata != null) 'metadata': metadata!, }; } @@ -2223,18 +2558,87 @@ class ResultMetadata { }; } +/// Message representing a single tool. +class Tool { + /// List of tool names that this tool depends on. + core.List? dependsOn; + + /// Description of the tool. + core.String? description; + + /// JSON schema for the input parameters of the tool. + JsonSchema? inputSchema; + + /// Name of the tool. + core.String? name; + + /// JSON schema for the output of the tool. + JsonSchema? outputSchema; + + Tool({ + this.dependsOn, + this.description, + this.inputSchema, + this.name, + this.outputSchema, + }); + + Tool.fromJson(core.Map json_) + : this( + dependsOn: + (json_['dependsOn'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + description: json_['description'] as core.String?, + inputSchema: + json_.containsKey('inputSchema') + ? JsonSchema.fromJson( + json_['inputSchema'] as core.Map, + ) + : null, + name: json_['name'] as core.String?, + outputSchema: + json_.containsKey('outputSchema') + ? JsonSchema.fromJson( + json_['outputSchema'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (dependsOn != null) 'dependsOn': dependsOn!, + if (description != null) 'description': description!, + if (inputSchema != null) 'inputSchema': inputSchema!, + if (name != null) 'name': name!, + if (outputSchema != null) 'outputSchema': outputSchema!, + }; +} + /// Response message for EntityService.UpdateEntitiesWithConditions class UpdateEntitiesWithConditionsResponse { + /// Metadata like service latency, etc. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map>? metadata; + /// Response returned by the external system. /// /// The values for Object must be JSON objects. It can consist of `num`, /// `String`, `bool` and `null` as well as `Map` and `List` values. core.Map? response; - UpdateEntitiesWithConditionsResponse({this.response}); + UpdateEntitiesWithConditionsResponse({this.metadata, this.response}); UpdateEntitiesWithConditionsResponse.fromJson(core.Map json_) : this( + metadata: (json_['metadata'] as core.Map?) + ?.map( + (key, value) => core.MapEntry( + key, + value as core.Map, + ), + ), response: json_.containsKey('response') ? json_['response'] as core.Map @@ -2242,6 +2646,7 @@ class UpdateEntitiesWithConditionsResponse { ); core.Map toJson() => { + if (metadata != null) 'metadata': metadata!, if (response != null) 'response': response!, }; } diff --git a/generated/googleapis/lib/contactcenterinsights/v1.dart b/generated/googleapis/lib/contactcenterinsights/v1.dart index cf5cfaf17..19e602139 100644 --- a/generated/googleapis/lib/contactcenterinsights/v1.dart +++ b/generated/googleapis/lib/contactcenterinsights/v1.dart @@ -1036,7 +1036,7 @@ class ProjectsLocationsAuthorizedViewSetsResource { /// AuthorizedViewSet's resource name. If no ID is specified, a /// server-generated ID will be used. This value should be 4-64 characters and /// must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. See - /// aip.dev/122#resource-id-segments + /// https://google.aip.dev/122#resource-id-segments /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1302,7 +1302,8 @@ class ProjectsLocationsAuthorizedViewSetsAuthorizedViewsResource { /// This ID will become the final component of the AuthorizedView's resource /// name. If no ID is specified, a server-generated ID will be used. This /// value should be 4-64 characters and must match the regular expression - /// `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. See aip.dev/122#resource-id-segments + /// `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. See + /// https://google.aip.dev/122#resource-id-segments /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1415,6 +1416,65 @@ class ProjectsLocationsAuthorizedViewSetsAuthorizedViewsResource { ); } + /// Gets the access control policy for a resource. + /// + /// Returns an empty policy if the resource exists and does not have a policy + /// set. + /// + /// Request parameters: + /// + /// [resource] - 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. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/authorizedViewSets/\[^/\]+/authorizedViews/\[^/\]+$`. + /// + /// [options_requestedPolicyVersion] - Optional. The maximum policy version + /// that will be used to format the policy. Valid values are 0, 1, and 3. + /// Requests specifying an invalid value will be rejected. Requests for + /// policies with any conditional role bindings must specify version 3. + /// Policies with no conditional role bindings may specify any valid value or + /// leave the field unset. The policy in the response might use the policy + /// version that you specified, or it might use a lower policy version. For + /// example, if you specify version 3, but the policy has no conditional role + /// bindings, the response uses version 1. To learn which resources support + /// conditions in their IAM policies, see the + /// [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleIamV1Policy]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future getIamPolicy( + core.String resource, { + core.int? options_requestedPolicyVersion, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (options_requestedPolicyVersion != null) + 'options.requestedPolicyVersion': ['${options_requestedPolicyVersion}'], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':getIamPolicy'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return GoogleIamV1Policy.fromJson( + response_ as core.Map, + ); + } + /// List AuthorizedViewSets /// /// Request parameters: @@ -1692,6 +1752,107 @@ class ProjectsLocationsAuthorizedViewSetsAuthorizedViewsResource { response_ as core.Map, ); } + + /// Sets the access control policy on the specified resource. + /// + /// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, + /// and `PERMISSION_DENIED` errors. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [resource] - 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. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/authorizedViewSets/\[^/\]+/authorizedViews/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleIamV1Policy]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future setIamPolicy( + GoogleIamV1SetIamPolicyRequest request, + core.String resource, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':setIamPolicy'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleIamV1Policy.fromJson( + response_ as core.Map, + ); + } + + /// Returns permissions that a caller has on the specified resource. + /// + /// If the resource does not exist, this will return an empty set of + /// permissions, not a `NOT_FOUND` error. Note: This operation is designed to + /// be used for building permission-aware UIs and command-line tools, not for + /// authorization checking. This operation may "fail open" without warning. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [resource] - 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. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/authorizedViewSets/\[^/\]+/authorizedViews/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleIamV1TestIamPermissionsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future testIamPermissions( + GoogleIamV1TestIamPermissionsRequest request, + core.String resource, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + core.Uri.encodeFull('$resource') + ':testIamPermissions'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleIamV1TestIamPermissionsResponse.fromJson( + response_ as core.Map, + ); + } } class ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsResource { @@ -3560,6 +3721,50 @@ class ProjectsLocationsConversationsResource { ); } + /// Samples conversations based on user configuration and handles the sampled + /// conversations for different use cases. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent resource of the dataset. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningOperation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future sample( + GoogleCloudContactcenterinsightsV1SampleConversationsRequest request, + core.String parent, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + core.Uri.encodeFull('$parent') + '/conversations:sample'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } + /// Create a long-running conversation upload operation. /// /// This method differs from `CreateConversation` by allowing audio @@ -4700,6 +4905,185 @@ class ProjectsLocationsDatasetsResource { ); } + /// Creates a dataset. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent resource of the dataset. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [datasetId] - Optional. The ID to use for the dataset. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudContactcenterinsightsV1Dataset]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future create( + GoogleCloudContactcenterinsightsV1Dataset request, + core.String parent, { + core.String? datasetId, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (datasetId != null) 'datasetId': [datasetId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/datasets'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleCloudContactcenterinsightsV1Dataset.fromJson( + response_ as core.Map, + ); + } + + /// Delete a dataset. + /// + /// Request parameters: + /// + /// [name] - Required. The name of the dataset to delete. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/datasets/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningOperation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future delete( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'DELETE', + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } + + /// Gets a dataset. + /// + /// Request parameters: + /// + /// [name] - Required. The name of the dataset to get. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/datasets/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudContactcenterinsightsV1Dataset]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return GoogleCloudContactcenterinsightsV1Dataset.fromJson( + response_ as core.Map, + ); + } + + /// List datasets matching the input. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent resource of the dataset. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [filter] - Optional. A filter to reduce results to a specific subset. + /// Useful for querying datasets with specific properties. Supported fields + /// include, for Q2 though we only support list by project: - `type` - + /// `description` - `project_number` + /// + /// [pageSize] - Optional. The maximum number of datasets to return in the + /// response. If this value is zero, the service will select a default size. A + /// call might return fewer objects than requested. A non-empty + /// `next_page_token` in the response indicates that more data is available. + /// + /// [pageToken] - Optional. The value returned by the last + /// `ListDatasetsResponse`; indicates that this is a continuation of a prior + /// `ListDatasets` call and the system should return the next page of data. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudContactcenterinsightsV1ListDatasetsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String parent, { + core.String? filter, + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/datasets'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return GoogleCloudContactcenterinsightsV1ListDatasetsResponse.fromJson( + response_ as core.Map, + ); + } + /// List all feedback labels by project number. /// /// Request parameters: @@ -4757,10 +5141,58 @@ class ProjectsLocationsDatasetsResource { final response_ = await _requester.request( url_, - 'GET', + 'GET', + queryParams: queryParams_, + ); + return GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse.fromJson( + response_ as core.Map, + ); + } + + /// Updates a dataset. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Immutable. Identifier. Resource name of the dataset. Format: + /// projects/{project}/locations/{location}/datasets/{dataset} + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/datasets/\[^/\]+$`. + /// + /// [updateMask] - Optional. The list of fields to update. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudContactcenterinsightsV1Dataset]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future patch( + GoogleCloudContactcenterinsightsV1Dataset request, + core.String name, { + core.String? updateMask, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (updateMask != null) 'updateMask': [updateMask], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'PATCH', + body: body_, queryParams: queryParams_, ); - return GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse.fromJson( + return GoogleCloudContactcenterinsightsV1Dataset.fromJson( response_ as core.Map, ); } @@ -5133,6 +5565,51 @@ class ProjectsLocationsDatasetsConversationsResource { response_ as core.Map, ); } + + /// Samples conversations based on user configuration and handles the sampled + /// conversations for different use cases. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent resource of the dataset. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/datasets/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningOperation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future sample( + GoogleCloudContactcenterinsightsV1SampleConversationsRequest request, + core.String parent, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + core.Uri.encodeFull('$parent') + '/conversations:sample'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } } class ProjectsLocationsDatasetsConversationsAnalysesResource { @@ -6889,10 +7366,11 @@ class ProjectsLocationsQaQuestionTagsResource { /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// /// [filter] - Optional. A filter to reduce results to a specific subset. - /// Supports disjunctions (OR) and conjunctions (AND). Supported fields - /// include the following: * `project_id` - id of the project to list tags for - /// * `qa_scorecard_revision_id` - id of the scorecard revision to list tags - /// for * `qa_question_id - id of the question to list tags for` + /// Supports conjunctions (ie. AND operators). Supported fields include the + /// following: * \`project_id\` - id of the project to list tags for * + /// \`qa_scorecard_id\` - id of the scorecard to list tags for * + /// \`revision_id\` - id of the scorecard revision to list tags for\` * + /// \`qa_question_id - id of the question to list tags for\` /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -7136,6 +7614,11 @@ class ProjectsLocationsQaScorecardsResource { /// continuation of a prior `ListQaScorecards` call and that the system should /// return the next page of data. /// + /// [qaScorecardSources] - Optional. The source of scorecards are based on how + /// those Scorecards were created, e.g., a customer-defined scorecard, a + /// predefined scorecard, etc. This field is used to retrieve Scorecards of + /// one or more sources. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -7151,11 +7634,13 @@ class ProjectsLocationsQaScorecardsResource { core.String parent, { core.int? pageSize, core.String? pageToken, + core.List? qaScorecardSources, core.String? $fields, }) async { final queryParams_ = >{ if (pageSize != null) 'pageSize': ['${pageSize}'], if (pageToken != null) 'pageToken': [pageToken], + if (qaScorecardSources != null) 'qaScorecardSources': qaScorecardSources, if ($fields != null) 'fields': [$fields], }; @@ -7432,6 +7917,11 @@ class ProjectsLocationsQaScorecardsRevisionsResource { /// continuation of a prior `ListQaScorecardRevisions` call and that the /// system should return the next page of data. /// + /// [qaScorecardSources] - Optional. The source of scorecards are based on how + /// those Scorecards were created, e.g., a customer-defined scorecard, a + /// predefined scorecard, etc. This field is used to retrieve Scorecards + /// Revisions from Scorecards of one or more sources. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -7451,12 +7941,14 @@ class ProjectsLocationsQaScorecardsRevisionsResource { core.String? filter, core.int? pageSize, core.String? pageToken, + core.List? qaScorecardSources, core.String? $fields, }) async { final queryParams_ = >{ if (filter != null) 'filter': [filter], if (pageSize != null) 'pageSize': ['${pageSize}'], if (pageToken != null) 'pageToken': [pageToken], + if (qaScorecardSources != null) 'qaScorecardSources': qaScorecardSources, if ($fields != null) 'fields': [$fields], }; @@ -10237,6 +10729,11 @@ class GoogleCloudContactcenterinsightsV1ConversationQualityMetadata { /// An arbitrary integer value indicating the customer's satisfaction rating. core.int? customerSatisfactionRating; + /// Input only. + /// + /// The feedback labels associated with the conversation. + core.List? feedbackLabels; + /// An arbitrary string value specifying the menu path the customer took. core.String? menuPath; @@ -10246,6 +10743,7 @@ class GoogleCloudContactcenterinsightsV1ConversationQualityMetadata { GoogleCloudContactcenterinsightsV1ConversationQualityMetadata({ this.agentInfo, this.customerSatisfactionRating, + this.feedbackLabels, this.menuPath, this.waitDuration, }); @@ -10264,6 +10762,15 @@ class GoogleCloudContactcenterinsightsV1ConversationQualityMetadata { .toList(), customerSatisfactionRating: json_['customerSatisfactionRating'] as core.int?, + feedbackLabels: + (json_['feedbackLabels'] as core.List?) + ?.map( + (value) => + GoogleCloudContactcenterinsightsV1FeedbackLabel.fromJson( + value as core.Map, + ), + ) + .toList(), menuPath: json_['menuPath'] as core.String?, waitDuration: json_['waitDuration'] as core.String?, ); @@ -10272,6 +10779,7 @@ class GoogleCloudContactcenterinsightsV1ConversationQualityMetadata { if (agentInfo != null) 'agentInfo': agentInfo!, if (customerSatisfactionRating != null) 'customerSatisfactionRating': customerSatisfactionRating!, + if (feedbackLabels != null) 'feedbackLabels': feedbackLabels!, if (menuPath != null) 'menuPath': menuPath!, if (waitDuration != null) 'waitDuration': waitDuration!, }; @@ -10623,6 +11131,79 @@ class GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentW }; } +/// Dataset resource represents a collection of conversations that may be +/// bounded (Static Dataset, e.g. golden dataset for training), or unbounded +/// (Dynamic Dataset, e.g. live traffic, or agent training traffic) +class GoogleCloudContactcenterinsightsV1Dataset { + /// Dataset create time. + /// + /// Output only. + core.String? createTime; + + /// Dataset description. + core.String? description; + + /// Display name for the dataaset + core.String? displayName; + + /// Identifier. + /// + /// Resource name of the dataset. Format: + /// projects/{project}/locations/{location}/datasets/{dataset} + /// + /// Immutable. + core.String? name; + + /// Option TTL for the dataset. + /// + /// Optional. + core.String? ttl; + + /// Dataset usage type. + /// Possible string values are: + /// - "TYPE_UNSPECIFIED" : Default value for unspecified. + /// - "EVAL" : For evals only. + /// - "LIVE" : Dataset with new conversations coming in regularly (Insights + /// legacy conversations and AI trainer) + core.String? type; + + /// Dataset update time. + /// + /// Output only. + core.String? updateTime; + + GoogleCloudContactcenterinsightsV1Dataset({ + this.createTime, + this.description, + this.displayName, + this.name, + this.ttl, + this.type, + this.updateTime, + }); + + GoogleCloudContactcenterinsightsV1Dataset.fromJson(core.Map json_) + : this( + createTime: json_['createTime'] as core.String?, + description: json_['description'] as core.String?, + displayName: json_['displayName'] as core.String?, + name: json_['name'] as core.String?, + ttl: json_['ttl'] as core.String?, + type: json_['type'] as core.String?, + updateTime: json_['updateTime'] as core.String?, + ); + + core.Map toJson() => { + if (createTime != null) 'createTime': createTime!, + if (description != null) 'description': description!, + if (displayName != null) 'displayName': displayName!, + if (name != null) 'name': name!, + if (ttl != null) 'ttl': ttl!, + if (type != null) 'type': type!, + if (updateTime != null) 'updateTime': updateTime!, + }; +} + /// The request to deploy an issue model. class GoogleCloudContactcenterinsightsV1DeployIssueModelRequest { /// The issue model to deploy. @@ -10751,6 +11332,11 @@ class GoogleCloudContactcenterinsightsV1Dimension { /// QuestionId and not the revision-id of the scorecard this question is a /// part of. This allows for showing distribution of answers per question /// across different scorecard revisions. + /// - "QA_SCORECARD_ID" : The dimension is keyed by QaScorecardIds. Note that: + /// We only group by the ScorecardId and not the revision-id of the scorecard. + /// This allows for showing stats for the same scorecard across different + /// revisions. This metric is mostly only useful if querying the average + /// normalized score per scorecard. /// - "CONVERSATION_PROFILE_ID" : The dimension is keyed by the conversation /// profile ID. /// - "MEDIUM" : The dimension is keyed by the conversation medium. @@ -11187,6 +11773,9 @@ class GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest { /// - "EXPORT_V5" : Export schema version 5. /// - "EXPORT_V6" : Export schema version 6. /// - "EXPORT_V7" : Export schema version 7. + /// - "EXPORT_V8" : Export schema version 8. + /// - "EXPORT_V9" : Export schema version 9. + /// - "EXPORT_V10" : Export schema version 10. /// - "EXPORT_VERSION_LATEST_AVAILABLE" : Export schema version latest /// available. core.String? exportSchemaVersion; @@ -12622,6 +13211,41 @@ class GoogleCloudContactcenterinsightsV1ListConversationsResponse { }; } +/// The response to list datasets. +class GoogleCloudContactcenterinsightsV1ListDatasetsResponse { + /// The datasets that match the request. + core.List? datasets; + + /// A token, which can be sent as `page_token` to retrieve the next page. + /// + /// If this field is omitted, there are no subsequent pages. + core.String? nextPageToken; + + GoogleCloudContactcenterinsightsV1ListDatasetsResponse({ + this.datasets, + this.nextPageToken, + }); + + GoogleCloudContactcenterinsightsV1ListDatasetsResponse.fromJson( + core.Map json_, + ) : this( + datasets: + (json_['datasets'] as core.List?) + ?.map( + (value) => GoogleCloudContactcenterinsightsV1Dataset.fromJson( + value as core.Map, + ), + ) + .toList(), + nextPageToken: json_['nextPageToken'] as core.String?, + ); + + core.Map toJson() => { + if (datasets != null) 'datasets': datasets!, + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + }; +} + /// The response for listing feedback labels. class GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse { /// The feedback labels that match the request. @@ -13500,6 +14124,15 @@ class GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue { /// Output only. core.double? score; + /// A value of "Skip". + /// + /// If provided, this field may only be set to `true`. If a question receives + /// this answer, it will be excluded from any score calculations. This would + /// mean that the question was not evaluated. + /// + /// Output only. + core.bool? skipValue; + /// String value. core.String? strValue; @@ -13511,6 +14144,7 @@ class GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue { this.numValue, this.potentialScore, this.score, + this.skipValue, this.strValue, }); @@ -13523,6 +14157,7 @@ class GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue { numValue: (json_['numValue'] as core.num?)?.toDouble(), potentialScore: (json_['potentialScore'] as core.num?)?.toDouble(), score: (json_['score'] as core.num?)?.toDouble(), + skipValue: json_['skipValue'] as core.bool?, strValue: json_['strValue'] as core.String?, ); @@ -13534,6 +14169,7 @@ class GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue { if (numValue != null) 'numValue': numValue!, if (potentialScore != null) 'potentialScore': potentialScore!, if (score != null) 'score': score!, + if (skipValue != null) 'skipValue': skipValue!, if (strValue != null) 'strValue': strValue!, }; } @@ -13788,6 +14424,10 @@ class GoogleCloudContactcenterinsightsV1QaQuestionPredefinedQuestionConfig { /// - "CONVERSATION_OUTCOME_ESCALATION_INITIATOR_ROLE" : A prebuilt classifier /// classfying the initiator of the conversation escalation. For example, if /// it was initiated by the customer or the agent. + /// - "CONVERSATION_OUTCOME_CUSTOMER_SATISFACTION" : A prebuilt classifier + /// classfying whether the customer is satisfied with the agent's response. + /// - "CONVERSATION_OUTCOME_AGENT_HELPFULNESS" : A prebuilt classifier + /// classfying whether the agent is helpful to the customer. core.String? type; GoogleCloudContactcenterinsightsV1QaQuestionPredefinedQuestionConfig({ @@ -13936,6 +14576,18 @@ class GoogleCloudContactcenterinsightsV1QaScorecard { /// projects/{project}/locations/{location}/qaScorecards/{qa_scorecard} core.String? name; + /// The source of the scorecard. + /// + /// Output only. + /// Possible string values are: + /// - "QA_SCORECARD_SOURCE_UNSPECIFIED" : The source of the scorecard is + /// unspecified. Default to QA_SCORECARD_SOURCE_CUSTOMER_DEFINED. + /// - "QA_SCORECARD_SOURCE_CUSTOMER_DEFINED" : The scorecard is a custom + /// scorecard created by the user. + /// - "QA_SCORECARD_SOURCE_DISCOVERY_ENGINE" : The scorecard is a scorecard + /// created through discovery engine deployment. + core.String? source; + /// The most recent time at which the scorecard was updated. /// /// Output only. @@ -13947,6 +14599,7 @@ class GoogleCloudContactcenterinsightsV1QaScorecard { this.displayName, this.isDefault, this.name, + this.source, this.updateTime, }); @@ -13957,6 +14610,7 @@ class GoogleCloudContactcenterinsightsV1QaScorecard { displayName: json_['displayName'] as core.String?, isDefault: json_['isDefault'] as core.bool?, name: json_['name'] as core.String?, + source: json_['source'] as core.String?, updateTime: json_['updateTime'] as core.String?, ); @@ -13966,6 +14620,7 @@ class GoogleCloudContactcenterinsightsV1QaScorecard { if (displayName != null) 'displayName': displayName!, if (isDefault != null) 'isDefault': isDefault!, if (name != null) 'name': name!, + if (source != null) 'source': source!, if (updateTime != null) 'updateTime': updateTime!, }; } @@ -14693,6 +15348,53 @@ class GoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput { }; } +/// The request to sample conversations to a dataset. +class GoogleCloudContactcenterinsightsV1SampleConversationsRequest { + /// The dataset resource to copy the sampled conversations to. + GoogleCloudContactcenterinsightsV1Dataset? destinationDataset; + + /// The parent resource of the dataset. + /// + /// Required. + core.String? parent; + + /// The sample rule used for sampling conversations. + /// + /// Optional. + GoogleCloudContactcenterinsightsV1SampleRule? sampleRule; + + GoogleCloudContactcenterinsightsV1SampleConversationsRequest({ + this.destinationDataset, + this.parent, + this.sampleRule, + }); + + GoogleCloudContactcenterinsightsV1SampleConversationsRequest.fromJson( + core.Map json_, + ) : this( + destinationDataset: + json_.containsKey('destinationDataset') + ? GoogleCloudContactcenterinsightsV1Dataset.fromJson( + json_['destinationDataset'] + as core.Map, + ) + : null, + parent: json_['parent'] as core.String?, + sampleRule: + json_.containsKey('sampleRule') + ? GoogleCloudContactcenterinsightsV1SampleRule.fromJson( + json_['sampleRule'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (destinationDataset != null) 'destinationDataset': destinationDataset!, + if (parent != null) 'parent': parent!, + if (sampleRule != null) 'sampleRule': sampleRule!, + }; +} + /// Message for sampling conversations. class GoogleCloudContactcenterinsightsV1SampleRule { /// To specify the filter for the conversions that should apply this sample @@ -14898,8 +15600,11 @@ class GoogleCloudContactcenterinsightsV1Settings { /// "ingest-conversations": Notify each time an IngestConversations LRO is /// complete. * "update-conversation": Notify each time a conversation is /// updated via UpdateConversation. * "upload-conversation": Notify when an - /// UploadConversation LRO is complete. Values are Pub/Sub topics. The format - /// of each Pub/Sub topic is: projects/{project}/topics/{topic} + /// UploadConversation LRO is complete. * "update-or-analyze-conversation": + /// Notify when an analysis for a conversation is completed or when the + /// conversation is updated. The message will contain the conversation with + /// transcript, analysis and other metadata. Values are Pub/Sub topics. The + /// format of each Pub/Sub topic is: projects/{project}/topics/{topic} core.Map? pubsubNotificationSettings; /// Default DLP redaction resources to be applied while ingesting @@ -15357,6 +16062,331 @@ class GoogleCloudContactcenterinsightsV1View { }; } +/// Specifies the audit configuration for a service. +/// +/// The configuration determines which permission types are logged, and what +/// identities, if any, are exempted from logging. An AuditConfig must have one +/// or more AuditLogConfigs. If there are AuditConfigs for both `allServices` +/// and a specific service, the union of the two AuditConfigs is used for that +/// service: the log_types specified in each AuditConfig are enabled, and the +/// exempted_members in each AuditLogConfig are exempted. Example Policy with +/// multiple AuditConfigs: { "audit_configs": \[ { "service": "allServices", +/// "audit_log_configs": \[ { "log_type": "DATA_READ", "exempted_members": \[ +/// "user:jose@example.com" \] }, { "log_type": "DATA_WRITE" }, { "log_type": +/// "ADMIN_READ" } \] }, { "service": "sampleservice.googleapis.com", +/// "audit_log_configs": \[ { "log_type": "DATA_READ" }, { "log_type": +/// "DATA_WRITE", "exempted_members": \[ "user:aliya@example.com" \] } \] } \] } +/// For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +/// logging. It also exempts `jose@example.com` from DATA_READ logging, and +/// `aliya@example.com` from DATA_WRITE logging. +class GoogleIamV1AuditConfig { + /// The configuration for logging of each type of permission. + core.List? auditLogConfigs; + + /// Specifies a service that will be enabled for audit logging. + /// + /// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + /// `allServices` is a special value that covers all services. + core.String? service; + + GoogleIamV1AuditConfig({this.auditLogConfigs, this.service}); + + GoogleIamV1AuditConfig.fromJson(core.Map json_) + : this( + auditLogConfigs: + (json_['auditLogConfigs'] as core.List?) + ?.map( + (value) => GoogleIamV1AuditLogConfig.fromJson( + value as core.Map, + ), + ) + .toList(), + service: json_['service'] as core.String?, + ); + + core.Map toJson() => { + if (auditLogConfigs != null) 'auditLogConfigs': auditLogConfigs!, + if (service != null) 'service': service!, + }; +} + +/// Provides the configuration for logging a type of permissions. +/// +/// Example: { "audit_log_configs": \[ { "log_type": "DATA_READ", +/// "exempted_members": \[ "user:jose@example.com" \] }, { "log_type": +/// "DATA_WRITE" } \] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while +/// exempting jose@example.com from DATA_READ logging. +typedef GoogleIamV1AuditLogConfig = $AuditLogConfig; + +/// Associates `members`, or principals, with a `role`. +class GoogleIamV1Binding { + /// The condition that is associated with this binding. + /// + /// If the condition evaluates to `true`, then this binding applies to the + /// current request. If the condition evaluates to `false`, then this binding + /// does not apply to the current request. However, a different role binding + /// might grant the same role to one or more of the principals in this + /// binding. To learn which resources support conditions in their IAM + /// policies, see the + /// [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + GoogleTypeExpr? condition; + + /// Specifies the principals requesting access for a Google Cloud resource. + /// + /// `members` can have the following values: * `allUsers`: A special + /// identifier that represents anyone who is on the internet; with or without + /// a Google account. * `allAuthenticatedUsers`: A special identifier that + /// represents anyone who is authenticated with a Google account or a service + /// account. Does not include identities that come from external identity + /// providers (IdPs) through identity federation. * `user:{emailid}`: An email + /// address that represents a specific Google account. For example, + /// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that + /// represents a Google service account. For example, + /// `my-other-app@appspot.gserviceaccount.com`. * + /// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An + /// identifier for a + /// [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). + /// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + /// `group:{emailid}`: An email address that represents a Google group. For + /// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain + /// (primary) that represents all the users of that domain. For example, + /// `google.com` or `example.com`. * + /// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: + /// A single identity in a workforce identity pool. * + /// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + /// All workforce identities in a group. * + /// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: + /// All workforce identities with a specific attribute value. * + /// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id} + /// / * `: All identities in a workforce identity pool. * + /// `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: + /// A single identity in a workload identity pool. * + /// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: + /// A workload identity pool group. * + /// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: + /// All identities in a workload identity pool with a certain attribute. * + /// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id} + /// / * `: All identities in a workload identity pool. * + /// `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + /// identifier) representing a user that has been recently deleted. For + /// example, `alice@example.com?uid=123456789012345678901`. If the user is + /// recovered, this value reverts to `user:{emailid}` and the recovered user + /// retains the role in the binding. * + /// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + /// unique identifier) representing a service account that has been recently + /// deleted. For example, + /// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If + /// the service account is undeleted, this value reverts to + /// `serviceAccount:{emailid}` and the undeleted service account retains the + /// role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email + /// address (plus unique identifier) representing a Google group that has been + /// recently deleted. For example, + /// `admins@example.com?uid=123456789012345678901`. If the group is recovered, + /// this value reverts to `group:{emailid}` and the recovered group retains + /// the role in the binding. * + /// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: + /// Deleted single identity in a workforce identity pool. For example, + /// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. + core.List? members; + + /// Role that is assigned to the list of `members`, or principals. + /// + /// For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + /// overview of the IAM roles and permissions, see the + /// [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For + /// a list of the available pre-defined roles, see + /// [here](https://cloud.google.com/iam/docs/understanding-roles). + core.String? role; + + GoogleIamV1Binding({this.condition, this.members, this.role}); + + GoogleIamV1Binding.fromJson(core.Map json_) + : this( + condition: + json_.containsKey('condition') + ? GoogleTypeExpr.fromJson( + json_['condition'] as core.Map, + ) + : null, + members: + (json_['members'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + role: json_['role'] as core.String?, + ); + + core.Map toJson() => { + if (condition != null) 'condition': condition!, + if (members != null) 'members': members!, + if (role != null) 'role': role!, + }; +} + +/// An Identity and Access Management (IAM) policy, which specifies access +/// controls for Google Cloud resources. +/// +/// A `Policy` is a collection of `bindings`. A `binding` binds one or more +/// `members`, or principals, to a single `role`. Principals can be user +/// accounts, service accounts, Google groups, and domains (such as G Suite). A +/// `role` is a named list of permissions; each `role` can be an IAM predefined +/// role or a user-created custom role. For some types of Google Cloud +/// resources, a `binding` can also specify a `condition`, which is a logical +/// expression that allows access to a resource only if the expression evaluates +/// to `true`. A condition can add constraints based on attributes of the +/// request, the resource, or both. To learn which resources support conditions +/// in their IAM policies, see the +/// [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). +/// **JSON example:** ``` { "bindings": [ { "role": +/// "roles/resourcemanager.organizationAdmin", "members": [ +/// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +/// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +/// "roles/resourcemanager.organizationViewer", "members": [ +/// "user:eve@example.com" ], "condition": { "title": "expirable access", +/// "description": "Does not grant access after Sep 2020", "expression": +/// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +/// "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - +/// members: - user:mike@example.com - group:admins@example.com - +/// domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com +/// role: roles/resourcemanager.organizationAdmin - members: - +/// user:eve@example.com role: roles/resourcemanager.organizationViewer +/// condition: title: expirable access description: Does not grant access after +/// Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') +/// etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, +/// see the [IAM documentation](https://cloud.google.com/iam/docs/). +class GoogleIamV1Policy { + /// Specifies cloud audit logging configuration for this policy. + core.List? auditConfigs; + + /// Associates a list of `members`, or principals, with a `role`. + /// + /// Optionally, may specify a `condition` that determines how and when the + /// `bindings` are applied. Each of the `bindings` must contain at least one + /// principal. The `bindings` in a `Policy` can refer to up to 1,500 + /// principals; up to 250 of these principals can be Google groups. Each + /// occurrence of a principal counts towards these limits. For example, if the + /// `bindings` grant 50 different roles to `user:alice@example.com`, and not + /// to any other principal, then you can add another 1,450 principals to the + /// `bindings` in the `Policy`. + core.List? bindings; + + /// `etag` is used for optimistic concurrency control as a way to help prevent + /// simultaneous updates of a policy from overwriting each other. + /// + /// It is strongly suggested that systems make use of the `etag` in the + /// read-modify-write cycle to perform policy updates in order to avoid race + /// conditions: An `etag` is returned in the response to `getIamPolicy`, and + /// systems are expected to put that etag in the request to `setIamPolicy` to + /// ensure that their change will be applied to the same version of the + /// policy. **Important:** If you use IAM Conditions, you must include the + /// `etag` field whenever you call `setIamPolicy`. If you omit this field, + /// then IAM allows you to overwrite a version `3` policy with a version `1` + /// policy, and all of the conditions in the version `3` policy are lost. + core.String? etag; + core.List get etagAsBytes => convert.base64.decode(etag!); + + set etagAsBytes(core.List bytes_) { + etag = convert.base64 + .encode(bytes_) + .replaceAll('/', '_') + .replaceAll('+', '-'); + } + + /// Specifies the format of the policy. + /// + /// Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + /// are rejected. Any operation that affects conditional role bindings must + /// specify version `3`. This requirement applies to the following operations: + /// * Getting a policy that includes a conditional role binding * Adding a + /// conditional role binding to a policy * Changing a conditional role binding + /// in a policy * Removing any role binding, with or without a condition, from + /// a policy that includes conditions **Important:** If you use IAM + /// Conditions, you must include the `etag` field whenever you call + /// `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a + /// version `3` policy with a version `1` policy, and all of the conditions in + /// the version `3` policy are lost. If a policy does not include any + /// conditions, operations on that policy may specify any valid version or + /// leave the field unset. To learn which resources support conditions in + /// their IAM policies, see the + /// [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + core.int? version; + + GoogleIamV1Policy({ + this.auditConfigs, + this.bindings, + this.etag, + this.version, + }); + + GoogleIamV1Policy.fromJson(core.Map json_) + : this( + auditConfigs: + (json_['auditConfigs'] as core.List?) + ?.map( + (value) => GoogleIamV1AuditConfig.fromJson( + value as core.Map, + ), + ) + .toList(), + bindings: + (json_['bindings'] as core.List?) + ?.map( + (value) => GoogleIamV1Binding.fromJson( + value as core.Map, + ), + ) + .toList(), + etag: json_['etag'] as core.String?, + version: json_['version'] as core.int?, + ); + + core.Map toJson() => { + if (auditConfigs != null) 'auditConfigs': auditConfigs!, + if (bindings != null) 'bindings': bindings!, + if (etag != null) 'etag': etag!, + if (version != null) 'version': version!, + }; +} + +/// Request message for `SetIamPolicy` method. +class GoogleIamV1SetIamPolicyRequest { + /// REQUIRED: The complete policy to be applied to the `resource`. + /// + /// The size of the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Google Cloud services (such as Projects) might + /// reject them. + GoogleIamV1Policy? policy; + + /// OPTIONAL: A FieldMask specifying which fields of the policy to modify. + /// + /// Only the fields in the mask will be modified. If no mask is provided, the + /// following default mask is used: `paths: "bindings, etag"` + core.String? updateMask; + + GoogleIamV1SetIamPolicyRequest({this.policy, this.updateMask}); + + GoogleIamV1SetIamPolicyRequest.fromJson(core.Map json_) + : this( + policy: + json_.containsKey('policy') + ? GoogleIamV1Policy.fromJson( + json_['policy'] as core.Map, + ) + : null, + updateMask: json_['updateMask'] as core.String?, + ); + + core.Map toJson() => { + if (policy != null) 'policy': policy!, + if (updateMask != null) 'updateMask': updateMask!, + }; +} + +/// Request message for `TestIamPermissions` method. +typedef GoogleIamV1TestIamPermissionsRequest = $TestIamPermissionsRequest00; + +/// Response message for `TestIamPermissions` method. +typedef GoogleIamV1TestIamPermissionsResponse = $PermissionsResponse; + /// The response message for Operations.ListOperations. class GoogleLongrunningListOperationsResponse { /// The standard List next-page token. @@ -15485,3 +16515,23 @@ typedef GoogleProtobufEmpty = $Empty; /// You can find out more about this error model and how to work with it in the /// [API Design Guide](https://cloud.google.com/apis/design/errors). typedef GoogleRpcStatus = $Status00; + +/// Represents a textual expression in the Common Expression Language (CEL) +/// syntax. +/// +/// CEL is a C-like expression language. The syntax and semantics of CEL are +/// documented at https://github.com/google/cel-spec. Example (Comparison): +/// title: "Summary size limit" description: "Determines if a summary is less +/// than 100 chars" expression: "document.summary.size() \< 100" Example +/// (Equality): title: "Requestor is owner" description: "Determines if +/// requestor is the document owner" expression: "document.owner == +/// request.auth.claims.email" Example (Logic): title: "Public documents" +/// description: "Determine whether the document should be publicly visible" +/// expression: "document.type != 'private' && document.type != 'internal'" +/// Example (Data Manipulation): title: "Notification string" description: +/// "Create a notification string with a timestamp." expression: "'New message +/// received at ' + string(document.create_time)" The exact variables and +/// functions that may be referenced within an expression are determined by the +/// service that evaluates it. See the service documentation for additional +/// information. +typedef GoogleTypeExpr = $Expr; diff --git a/generated/googleapis/lib/container/v1.dart b/generated/googleapis/lib/container/v1.dart index daf2ffc15..5467be357 100644 --- a/generated/googleapis/lib/container/v1.dart +++ b/generated/googleapis/lib/container/v1.dart @@ -6453,6 +6453,9 @@ class ClusterUpdate { /// The desired network performance config. ClusterNetworkPerformanceConfig? desiredNetworkPerformanceConfig; + /// The desired network tier configuration for the cluster. + NetworkTierConfig? desiredNetworkTierConfig; + /// The desired node kubelet config for the cluster. NodeKubeletConfig? desiredNodeKubeletConfig; @@ -6648,6 +6651,7 @@ class ClusterUpdate { this.desiredMonitoringConfig, this.desiredMonitoringService, this.desiredNetworkPerformanceConfig, + this.desiredNetworkTierConfig, this.desiredNodeKubeletConfig, this.desiredNodePoolAutoConfigKubeletConfig, this.desiredNodePoolAutoConfigLinuxNodeConfig, @@ -6909,6 +6913,13 @@ class ClusterUpdate { as core.Map, ) : null, + desiredNetworkTierConfig: + json_.containsKey('desiredNetworkTierConfig') + ? NetworkTierConfig.fromJson( + json_['desiredNetworkTierConfig'] + as core.Map, + ) + : null, desiredNodeKubeletConfig: json_.containsKey('desiredNodeKubeletConfig') ? NodeKubeletConfig.fromJson( @@ -7176,6 +7187,8 @@ class ClusterUpdate { 'desiredMonitoringService': desiredMonitoringService!, if (desiredNetworkPerformanceConfig != null) 'desiredNetworkPerformanceConfig': desiredNetworkPerformanceConfig!, + if (desiredNetworkTierConfig != null) + 'desiredNetworkTierConfig': desiredNetworkTierConfig!, if (desiredNodeKubeletConfig != null) 'desiredNodeKubeletConfig': desiredNodeKubeletConfig!, if (desiredNodePoolAutoConfigKubeletConfig != null) @@ -8932,6 +8945,11 @@ class IPAllocationPolicy { /// - "EXTERNAL" : Access type external (all v6 addresses are external IPs) core.String? ipv6AccessType; + /// Cluster-level network tier configuration is used to determine the default + /// network tier for external IP addresses on cluster resources, such as node + /// pools and load balancers. + NetworkTierConfig? networkTierConfig; + /// This field is deprecated, use node_ipv4_cidr_block. @core.Deprecated( 'Not supported. Member documentation may have more information.', @@ -9048,6 +9066,7 @@ class IPAllocationPolicy { this.createSubnetwork, this.defaultPodIpv4RangeUtilization, this.ipv6AccessType, + this.networkTierConfig, this.nodeIpv4Cidr, this.nodeIpv4CidrBlock, this.podCidrOverprovisionConfig, @@ -9095,6 +9114,13 @@ class IPAllocationPolicy { defaultPodIpv4RangeUtilization: (json_['defaultPodIpv4RangeUtilization'] as core.num?)?.toDouble(), ipv6AccessType: json_['ipv6AccessType'] as core.String?, + networkTierConfig: + json_.containsKey('networkTierConfig') + ? NetworkTierConfig.fromJson( + json_['networkTierConfig'] + as core.Map, + ) + : null, nodeIpv4Cidr: json_['nodeIpv4Cidr'] as core.String?, nodeIpv4CidrBlock: json_['nodeIpv4CidrBlock'] as core.String?, podCidrOverprovisionConfig: @@ -9132,6 +9158,7 @@ class IPAllocationPolicy { if (defaultPodIpv4RangeUtilization != null) 'defaultPodIpv4RangeUtilization': defaultPodIpv4RangeUtilization!, if (ipv6AccessType != null) 'ipv6AccessType': ipv6AccessType!, + if (networkTierConfig != null) 'networkTierConfig': networkTierConfig!, if (nodeIpv4Cidr != null) 'nodeIpv4Cidr': nodeIpv4Cidr!, if (nodeIpv4CidrBlock != null) 'nodeIpv4CidrBlock': nodeIpv4CidrBlock!, if (podCidrOverprovisionConfig != null) @@ -9746,6 +9773,15 @@ class LoggingVariantConfig { class LustreCsiDriverConfig { /// If set to true, the Lustre CSI driver will install Lustre kernel modules /// using port 6988. + /// + /// This serves as a workaround for a port conflict with the + /// gke-metadata-server. This field is required ONLY under the following + /// conditions: 1. The GKE node version is older than 1.33.2-gke.4655000. 2. + /// You're connecting to a Lustre instance that has the 'gke-support-enabled' + /// flag. + @core.Deprecated( + 'Not supported. Member documentation may have more information.', + ) core.bool? enableLegacyLustrePort; /// Whether the Lustre CSI driver is enabled for this cluster. @@ -10531,6 +10567,33 @@ class NetworkTags { }; } +/// NetworkTierConfig contains network tier information. +class NetworkTierConfig { + /// Network tier configuration. + /// Possible string values are: + /// - "NETWORK_TIER_UNSPECIFIED" : By default, use project-level + /// configuration. When unspecified, the behavior defaults to + /// NETWORK_TIER_DEFAULT. For cluster updates, this implies no action (no-op). + /// - "NETWORK_TIER_DEFAULT" : Default network tier. Use project-level + /// configuration. User can specify this value, meaning they want to keep the + /// same behaviour as before cluster level network tier configuration is + /// introduced. This field ensures backward compatibility for the network tier + /// of cluster resources, such as node pools and load balancers, for their + /// external IP addresses. + /// - "NETWORK_TIER_PREMIUM" : Premium network tier. + /// - "NETWORK_TIER_STANDARD" : Standard network tier. + core.String? networkTier; + + NetworkTierConfig({this.networkTier}); + + NetworkTierConfig.fromJson(core.Map json_) + : this(networkTier: json_['networkTier'] as core.String?); + + core.Map toJson() => { + if (networkTier != null) 'networkTier': networkTier!, + }; +} + /// Specifies the NodeAffinity key, values, and affinity operator according to /// [shared sole tenant node group affinities](https://{$universe.dns_names.final_documentation_domain}/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity). class NodeAffinity { @@ -11587,6 +11650,13 @@ class NodeNetworkConfig { /// Network bandwidth tier configuration. NetworkPerformanceConfig? networkPerformanceConfig; + /// The network tier configuration for the node pool inherits from the + /// cluster-level configuration and remains immutable throughout the node + /// pool's lifecycle, including during upgrades. + /// + /// Output only. + NetworkTierConfig? networkTierConfig; + /// \[PRIVATE FIELD\] Pod CIDR size overprovisioning config for the nodepool. /// /// Pod CIDR size per node depends on max_pods_per_node. By default, the value @@ -11641,6 +11711,7 @@ class NodeNetworkConfig { this.createPodRange, this.enablePrivateNodes, this.networkPerformanceConfig, + this.networkTierConfig, this.podCidrOverprovisionConfig, this.podIpv4CidrBlock, this.podIpv4RangeUtilization, @@ -11675,6 +11746,13 @@ class NodeNetworkConfig { as core.Map, ) : null, + networkTierConfig: + json_.containsKey('networkTierConfig') + ? NetworkTierConfig.fromJson( + json_['networkTierConfig'] + as core.Map, + ) + : null, podCidrOverprovisionConfig: json_.containsKey('podCidrOverprovisionConfig') ? PodCIDROverprovisionConfig.fromJson( @@ -11698,6 +11776,7 @@ class NodeNetworkConfig { if (enablePrivateNodes != null) 'enablePrivateNodes': enablePrivateNodes!, if (networkPerformanceConfig != null) 'networkPerformanceConfig': networkPerformanceConfig!, + if (networkTierConfig != null) 'networkTierConfig': networkTierConfig!, if (podCidrOverprovisionConfig != null) 'podCidrOverprovisionConfig': podCidrOverprovisionConfig!, if (podIpv4CidrBlock != null) 'podIpv4CidrBlock': podIpv4CidrBlock!, @@ -13600,6 +13679,30 @@ class RollbackNodePoolUpgradeRequest { }; } +/// RotationConfig is config for secret manager auto rotation. +class RotationConfig { + /// Whether the rotation is enabled. + core.bool? enabled; + + /// The interval between two consecutive rotations. + /// + /// Default rotation interval is 2 minutes. + core.String? rotationInterval; + + RotationConfig({this.enabled, this.rotationInterval}); + + RotationConfig.fromJson(core.Map json_) + : this( + enabled: json_['enabled'] as core.bool?, + rotationInterval: json_['rotationInterval'] as core.String?, + ); + + core.Map toJson() => { + if (enabled != null) 'enabled': enabled!, + if (rotationInterval != null) 'rotationInterval': rotationInterval!, + }; +} + /// SandboxConfig contains configurations of the sandbox to use for the node. class SandboxConfig { /// Type of the sandbox to use for the node. @@ -13654,13 +13757,26 @@ class SecretManagerConfig { /// Enable/Disable Secret Manager Config. core.bool? enabled; - SecretManagerConfig({this.enabled}); + /// Rotation config for secret manager. + RotationConfig? rotationConfig; + + SecretManagerConfig({this.enabled, this.rotationConfig}); SecretManagerConfig.fromJson(core.Map json_) - : this(enabled: json_['enabled'] as core.bool?); + : this( + enabled: json_['enabled'] as core.bool?, + rotationConfig: + json_.containsKey('rotationConfig') + ? RotationConfig.fromJson( + json_['rotationConfig'] + as core.Map, + ) + : null, + ); core.Map toJson() => { if (enabled != null) 'enabled': enabled!, + if (rotationConfig != null) 'rotationConfig': rotationConfig!, }; } diff --git a/generated/googleapis/lib/containeranalysis/v1.dart b/generated/googleapis/lib/containeranalysis/v1.dart index 5514b4fc6..b33753a10 100644 --- a/generated/googleapis/lib/containeranalysis/v1.dart +++ b/generated/googleapis/lib/containeranalysis/v1.dart @@ -2915,6 +2915,7 @@ class BuildProvenance { } typedef BuilderConfig = $Shared01; +typedef CISAKnownExploitedVulnerabilities = $CISAKnownExploitedVulnerabilities; /// Common Vulnerability Scoring System. /// @@ -3811,6 +3812,7 @@ class Envelope { } typedef EnvelopeSignature = $EnvelopeSignature; +typedef ExploitPredictionScoringSystem = $ExploitPredictionScoringSystem; /// The request to generate and export SBOM. /// @@ -4595,7 +4597,8 @@ class ListNotesResponse { /// Unordered list. /// /// Unreachable regions. Populated for requests from the global region when - /// `return_partial_success` is set. Format: projects//locations/ + /// `return_partial_success` is set. Format: + /// `projects/[PROJECT_ID]/locations/[LOCATION]` core.List? unreachable; ListNotesResponse({this.nextPageToken, this.notes, this.unreachable}); @@ -4638,7 +4641,8 @@ class ListOccurrencesResponse { /// Unordered list. /// /// Unreachable regions. Populated for requests from the global region when - /// `return_partial_success` is set. Format: projects//locations/ + /// `return_partial_success` is set. Format: + /// `projects/[PROJECT_ID]/locations/[LOCATION]` core.List? unreachable; ListOccurrencesResponse({ @@ -5892,6 +5896,39 @@ class RepoId { typedef ResourceDescriptor = $ResourceDescriptor; +class Risk { + /// CISA maintains the authoritative source of vulnerabilities that have been + /// exploited in the wild. + CISAKnownExploitedVulnerabilities? cisaKev; + + /// The Exploit Prediction Scoring System (EPSS) estimates the likelihood + /// (probability) that a software vulnerability will be exploited in the wild. + ExploitPredictionScoringSystem? epss; + + Risk({this.cisaKev, this.epss}); + + Risk.fromJson(core.Map json_) + : this( + cisaKev: + json_.containsKey('cisaKev') + ? CISAKnownExploitedVulnerabilities.fromJson( + json_['cisaKev'] as core.Map, + ) + : null, + epss: + json_.containsKey('epss') + ? ExploitPredictionScoringSystem.fromJson( + json_['epss'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (cisaKev != null) 'cisaKev': cisaKev!, + if (epss != null) 'epss': epss!, + }; +} + class RunDetails { ProvenanceBuilder? builder; core.List? byproducts; @@ -7053,6 +7090,9 @@ class VulnerabilityOccurrence { /// Output only. core.List? relatedUrls; + /// Risk information about the vulnerability, such as CISA, EPSS, etc. + Risk? risk; + /// The note provider assigned severity of this vulnerability. /// /// Output only. @@ -7086,6 +7126,7 @@ class VulnerabilityOccurrence { this.longDescription, this.packageIssue, this.relatedUrls, + this.risk, this.severity, this.shortDescription, this.type, @@ -7128,6 +7169,12 @@ class VulnerabilityOccurrence { ), ) .toList(), + risk: + json_.containsKey('risk') + ? Risk.fromJson( + json_['risk'] as core.Map, + ) + : null, severity: json_['severity'] as core.String?, shortDescription: json_['shortDescription'] as core.String?, type: json_['type'] as core.String?, @@ -7150,6 +7197,7 @@ class VulnerabilityOccurrence { if (longDescription != null) 'longDescription': longDescription!, if (packageIssue != null) 'packageIssue': packageIssue!, if (relatedUrls != null) 'relatedUrls': relatedUrls!, + if (risk != null) 'risk': risk!, if (severity != null) 'severity': severity!, if (shortDescription != null) 'shortDescription': shortDescription!, if (type != null) 'type': type!, @@ -7166,7 +7214,8 @@ class VulnerabilityOccurrencesSummary { /// Unordered list. /// /// Unreachable regions. Populated for requests from the global region when - /// `return_partial_success` is set. Format: projects//locations/ + /// `return_partial_success` is set. Format: + /// `projects/[PROJECT_ID]/locations/[LOCATION]` core.List? unreachable; VulnerabilityOccurrencesSummary({this.counts, this.unreachable}); diff --git a/generated/googleapis/lib/datafusion/v1.dart b/generated/googleapis/lib/datafusion/v1.dart index 4020383ab..6e8fd3d04 100644 --- a/generated/googleapis/lib/datafusion/v1.dart +++ b/generated/googleapis/lib/datafusion/v1.dart @@ -137,9 +137,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -1548,6 +1548,7 @@ class Instance { /// - "AUTO_UPDATING" : Instance is being auto-updated /// - "AUTO_UPGRADING" : Instance is being auto-upgraded /// - "DISABLED" : Instance is disabled + /// - "ENABLING" : Instance is being enabled. core.String? state; /// Additional information about the current state of this Data Fusion diff --git a/generated/googleapis/lib/datamigration/v1.dart b/generated/googleapis/lib/datamigration/v1.dart index e1973fa3d..df387ee89 100644 --- a/generated/googleapis/lib/datamigration/v1.dart +++ b/generated/googleapis/lib/datamigration/v1.dart @@ -180,9 +180,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -6277,6 +6277,24 @@ class GenerateTcpProxyScriptRequest { }; } +/// Metadata for heterogeneous migration jobs objects. +class HeterogeneousMetadata { + /// The number of unsupported events. + core.String? unsupportedEventsCount; + + HeterogeneousMetadata({this.unsupportedEventsCount}); + + HeterogeneousMetadata.fromJson(core.Map json_) + : this( + unsupportedEventsCount: json_['unsupportedEventsCount'] as core.String?, + ); + + core.Map toJson() => { + if (unsupportedEventsCount != null) + 'unsupportedEventsCount': unsupportedEventsCount!, + }; +} + /// Request message for 'ImportMappingRules' request. class ImportMappingRulesRequest { /// Should the conversion workspace be committed automatically after the @@ -7661,6 +7679,11 @@ class MigrationJobObject { /// Output only. Status? error; + /// Metadata for heterogeneous migration jobs objects. + /// + /// Output only. + HeterogeneousMetadata? heterogeneousMetadata; + /// The object's name. core.String? name; @@ -7704,6 +7727,7 @@ class MigrationJobObject { MigrationJobObject({ this.createTime, this.error, + this.heterogeneousMetadata, this.name, this.phase, this.sourceObject, @@ -7720,6 +7744,13 @@ class MigrationJobObject { json_['error'] as core.Map, ) : null, + heterogeneousMetadata: + json_.containsKey('heterogeneousMetadata') + ? HeterogeneousMetadata.fromJson( + json_['heterogeneousMetadata'] + as core.Map, + ) + : null, name: json_['name'] as core.String?, phase: json_['phase'] as core.String?, sourceObject: @@ -7735,6 +7766,8 @@ class MigrationJobObject { core.Map toJson() => { if (createTime != null) 'createTime': createTime!, if (error != null) 'error': error!, + if (heterogeneousMetadata != null) + 'heterogeneousMetadata': heterogeneousMetadata!, if (name != null) 'name': name!, if (phase != null) 'phase': phase!, if (sourceObject != null) 'sourceObject': sourceObject!, @@ -10097,11 +10130,23 @@ class SqlServerConnectionProfile { /// SQL instance ID of the source. core.String? cloudSqlId; + /// The project id of the Cloud SQL instance. + /// + /// If not provided, the project id of the connection profile will be used. + /// + /// Optional. + core.String? cloudSqlProjectId; + /// The name of the specific database within the host. /// /// Required. core.String? database; + /// The Database Mirroring (DBM) port of the source SQL Server instance. + /// + /// Optional. + core.int? dbmPort; + /// Forward SSH tunnel connectivity. ForwardSshTunnelConnectivity? forwardSshConnectivity; @@ -10152,7 +10197,9 @@ class SqlServerConnectionProfile { SqlServerConnectionProfile({ this.backups, this.cloudSqlId, + this.cloudSqlProjectId, this.database, + this.dbmPort, this.forwardSshConnectivity, this.host, this.password, @@ -10174,7 +10221,9 @@ class SqlServerConnectionProfile { ) : null, cloudSqlId: json_['cloudSqlId'] as core.String?, + cloudSqlProjectId: json_['cloudSqlProjectId'] as core.String?, database: json_['database'] as core.String?, + dbmPort: json_['dbmPort'] as core.int?, forwardSshConnectivity: json_.containsKey('forwardSshConnectivity') ? ForwardSshTunnelConnectivity.fromJson( @@ -10219,7 +10268,9 @@ class SqlServerConnectionProfile { core.Map toJson() => { if (backups != null) 'backups': backups!, if (cloudSqlId != null) 'cloudSqlId': cloudSqlId!, + if (cloudSqlProjectId != null) 'cloudSqlProjectId': cloudSqlProjectId!, if (database != null) 'database': database!, + if (dbmPort != null) 'dbmPort': dbmPort!, if (forwardSshConnectivity != null) 'forwardSshConnectivity': forwardSshConnectivity!, if (host != null) 'host': host!, @@ -10237,6 +10288,38 @@ class SqlServerConnectionProfile { }; } +/// Configuration for distributed availability group (DAG) for the SQL Server +/// homogeneous migration. +class SqlServerDagConfig { + /// The name of the linked server that points to the source SQL Server + /// instance. + /// + /// Only used by DAG migrations. + /// + /// Required. + core.String? linkedServer; + + /// The name of the source availability group. + /// + /// Only used by DAG migrations. + /// + /// Required. + core.String? sourceAg; + + SqlServerDagConfig({this.linkedServer, this.sourceAg}); + + SqlServerDagConfig.fromJson(core.Map json_) + : this( + linkedServer: json_['linkedServer'] as core.String?, + sourceAg: json_['sourceAg'] as core.String?, + ); + + core.Map toJson() => { + if (linkedServer != null) 'linkedServer': linkedServer!, + if (sourceAg != null) 'sourceAg': sourceAg!, + }; +} + /// Specifies the backup details for a single database in Cloud Storage for /// homogeneous migration to Cloud SQL for SQL Server. class SqlServerDatabaseBackup { @@ -10333,6 +10416,12 @@ class SqlServerHomogeneousMigrationJobConfig { /// Required. core.String? backupFilePattern; + /// Configuration for distributed availability group (DAG) for the SQL Server + /// homogeneous migration. + /// + /// Optional. + SqlServerDagConfig? dagConfig; + /// Backup details per database in Cloud Storage. /// /// Required. @@ -10350,6 +10439,7 @@ class SqlServerHomogeneousMigrationJobConfig { SqlServerHomogeneousMigrationJobConfig({ this.backupFilePattern, + this.dagConfig, this.databaseBackups, this.promoteWhenReady, this.useDiffBackup, @@ -10358,6 +10448,12 @@ class SqlServerHomogeneousMigrationJobConfig { SqlServerHomogeneousMigrationJobConfig.fromJson(core.Map json_) : this( backupFilePattern: json_['backupFilePattern'] as core.String?, + dagConfig: + json_.containsKey('dagConfig') + ? SqlServerDagConfig.fromJson( + json_['dagConfig'] as core.Map, + ) + : null, databaseBackups: (json_['databaseBackups'] as core.List?) ?.map( @@ -10372,6 +10468,7 @@ class SqlServerHomogeneousMigrationJobConfig { core.Map toJson() => { if (backupFilePattern != null) 'backupFilePattern': backupFilePattern!, + if (dagConfig != null) 'dagConfig': dagConfig!, if (databaseBackups != null) 'databaseBackups': databaseBackups!, if (promoteWhenReady != null) 'promoteWhenReady': promoteWhenReady!, if (useDiffBackup != null) 'useDiffBackup': useDiffBackup!, diff --git a/generated/googleapis/lib/dataplex/v1.dart b/generated/googleapis/lib/dataplex/v1.dart index 9f5258f23..3327d69b4 100644 --- a/generated/googleapis/lib/dataplex/v1.dart +++ b/generated/googleapis/lib/dataplex/v1.dart @@ -14,7 +14,7 @@ /// Cloud Dataplex API - v1 /// -/// Dataplex API is used to manage the lifecycle of data lakes. +/// A unified, intelligent governance solution for data and AI assets. /// /// For more information, see /// @@ -74,7 +74,7 @@ import '../src/user_agent.dart'; export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show ApiRequestError, DetailedApiRequestError; -/// Dataplex API is used to manage the lifecycle of data lakes. +/// A unified, intelligent governance solution for data and AI assets. class CloudDataplexApi { /// See, edit, configure, and delete your Google Cloud data and see the email /// address for your Google Account. @@ -807,9 +807,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like "displayName=tokyo", and is @@ -935,8 +935,7 @@ class ProjectsLocationsResource { /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// /// [orderBy] - Optional. Specifies the ordering of results. Supported values - /// are: relevance (default) last_modified_timestamp last_modified_timestamp - /// asc + /// are: relevance last_modified_timestamp last_modified_timestamp asc /// /// [pageSize] - Optional. Number of results in the search page. If \<=0, then /// defaults to 10. Max limit for page_size is 1000. Throws an invalid @@ -946,8 +945,8 @@ class ProjectsLocationsResource { /// call. Provide this to retrieve the subsequent page. /// /// [query] - Required. The query against which entries in scope should be - /// matched. The query syntax is defined in Search syntax for Dataplex Catalog - /// (https://cloud.google.com/dataplex/docs/search-syntax). + /// matched. The query syntax is defined in Search syntax for Dataplex + /// Universal Catalog (https://cloud.google.com/dataplex/docs/search-syntax). /// /// [scope] - Optional. The scope under which the search should be operating. /// It must either be organizations/ or projects/. If it is unspecified, it @@ -1879,65 +1878,6 @@ class ProjectsLocationsDataProductsResource { ProjectsLocationsDataProductsResource(commons.ApiRequester client) : _requester = client; - /// Gets the access control policy for a resource. - /// - /// Returns an empty policy if the resource exists and does not have a policy - /// set. - /// - /// Request parameters: - /// - /// [resource] - 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. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/dataProducts/\[^/\]+$`. - /// - /// [options_requestedPolicyVersion] - Optional. The maximum policy version - /// that will be used to format the policy.Valid values are 0, 1, and 3. - /// Requests specifying an invalid value will be rejected.Requests for - /// policies with any conditional role bindings must specify version 3. - /// Policies with no conditional role bindings may specify any valid value or - /// leave the field unset.The policy in the response might use the policy - /// version that you specified, or it might use a lower policy version. For - /// example, if you specify version 3, but the policy has no conditional role - /// bindings, the response uses version 1.To learn which resources support - /// conditions in their IAM policies, see the IAM documentation - /// (https://cloud.google.com/iam/help/conditions/resource-policies). - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [GoogleIamV1Policy]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future getIamPolicy( - core.String resource, { - core.int? options_requestedPolicyVersion, - core.String? $fields, - }) async { - final queryParams_ = >{ - if (options_requestedPolicyVersion != null) - 'options.requestedPolicyVersion': ['${options_requestedPolicyVersion}'], - if ($fields != null) 'fields': [$fields], - }; - - final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':getIamPolicy'; - - final response_ = await _requester.request( - url_, - 'GET', - queryParams: queryParams_, - ); - return GoogleIamV1Policy.fromJson( - response_ as core.Map, - ); - } - /// Sets the access control policy on the specified resource. /// /// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and @@ -2046,65 +1986,6 @@ class ProjectsLocationsDataProductsDataAssetsResource { ProjectsLocationsDataProductsDataAssetsResource(commons.ApiRequester client) : _requester = client; - /// Gets the access control policy for a resource. - /// - /// Returns an empty policy if the resource exists and does not have a policy - /// set. - /// - /// Request parameters: - /// - /// [resource] - 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. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/dataProducts/\[^/\]+/dataAssets/\[^/\]+$`. - /// - /// [options_requestedPolicyVersion] - Optional. The maximum policy version - /// that will be used to format the policy.Valid values are 0, 1, and 3. - /// Requests specifying an invalid value will be rejected.Requests for - /// policies with any conditional role bindings must specify version 3. - /// Policies with no conditional role bindings may specify any valid value or - /// leave the field unset.The policy in the response might use the policy - /// version that you specified, or it might use a lower policy version. For - /// example, if you specify version 3, but the policy has no conditional role - /// bindings, the response uses version 1.To learn which resources support - /// conditions in their IAM policies, see the IAM documentation - /// (https://cloud.google.com/iam/help/conditions/resource-policies). - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [GoogleIamV1Policy]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future getIamPolicy( - core.String resource, { - core.int? options_requestedPolicyVersion, - core.String? $fields, - }) async { - final queryParams_ = >{ - if (options_requestedPolicyVersion != null) - 'options.requestedPolicyVersion': ['${options_requestedPolicyVersion}'], - if ($fields != null) 'fields': [$fields], - }; - - final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':getIamPolicy'; - - final response_ = await _requester.request( - url_, - 'GET', - queryParams: queryParams_, - ); - return GoogleIamV1Policy.fromJson( - response_ as core.Map, - ); - } - /// Sets the access control policy on the specified resource. /// /// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and @@ -10607,8 +10488,8 @@ class ProjectsLocationsMetadataJobsResource { /// Creates a metadata job. /// - /// For example, use a metadata job to import Dataplex Catalog entries and - /// aspects from a third-party system into Dataplex. + /// For example, use a metadata job to import metadata from a third-party + /// system into Dataplex Universal Catalog. /// /// [request] - The metadata request object. /// @@ -11541,8 +11422,8 @@ class GoogleCloudDataplexV1AspectType { /// Authorization for an AspectType. class GoogleCloudDataplexV1AspectTypeAuthorization { /// The IAM permission grantable on the EntryGroup to allow access to - /// instantiate Aspects of Dataplex owned AspectTypes, only settable for - /// Dataplex owned Types. + /// instantiate Aspects of Dataplex Universal Catalog owned AspectTypes, only + /// settable for Dataplex Universal Catalog owned Types. /// /// Immutable. core.String? alternateUsePermission; @@ -13340,12 +13221,18 @@ class GoogleCloudDataplexV1DataProfileResult { postScanActionsResult; /// The profile information per field. + /// + /// Output only. GoogleCloudDataplexV1DataProfileResultProfile? profile; /// The count of rows scanned. + /// + /// Output only. core.String? rowCount; /// The data scanned for this result. + /// + /// Output only. GoogleCloudDataplexV1ScannedData? scannedData; GoogleCloudDataplexV1DataProfileResult({ @@ -13425,6 +13312,8 @@ typedef GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExpor /// Contains name, type, mode and field type specific profile information. class GoogleCloudDataplexV1DataProfileResultProfile { /// List of fields with structural and profile information for each field. + /// + /// Output only. core.List? fields; GoogleCloudDataplexV1DataProfileResultProfile({this.fields}); @@ -13453,20 +13342,28 @@ class GoogleCloudDataplexV1DataProfileResultProfileField { /// /// Possible values include: REQUIRED, if it is a required field. NULLABLE, if /// it is an optional field. REPEATED, if it is a repeated field. + /// + /// Output only. core.String? mode; /// The name of the field. + /// + /// Output only. core.String? name; /// Profile information for the corresponding field. + /// + /// Output only. GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo? profile; /// The data type retrieved from the schema of the data source. /// /// For instance, for a BigQuery native table, it is the BigQuery Table Schema /// (https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). - /// For a Dataplex Entity, it is the Entity Schema + /// For a Dataplex Universal Catalog Entity, it is the Entity Schema /// (https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3). + /// + /// Output only. core.String? type; GoogleCloudDataplexV1DataProfileResultProfileField({ @@ -13503,6 +13400,8 @@ class GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo { /// /// Not available for complex non-groupable field type, including RECORD, /// ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode. + /// + /// Output only. core.double? distinctRatio; /// Double type field information. @@ -13514,6 +13413,8 @@ class GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo { integerProfile; /// Ratio of rows with null value against total scanned rows. + /// + /// Output only. core.double? nullRatio; /// String type field information. @@ -13527,6 +13428,8 @@ class GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo { /// is smaller. Not available for complex non-groupable field type, including /// RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE /// mode. + /// + /// Output only. core.List< GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue >? @@ -13591,16 +13494,22 @@ class GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldIn /// Average of non-null values in the scanned data. /// /// NaN, if the field has a NaN. + /// + /// Output only. core.double? average; /// Maximum of non-null values in the scanned data. /// /// NaN, if the field has a NaN. + /// + /// Output only. core.double? max; /// Minimum of non-null values in the scanned data. /// /// NaN, if the field has a NaN. + /// + /// Output only. core.double? min; /// A quartile divides the number of data points into four parts, or quarters, @@ -13615,11 +13524,15 @@ class GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldIn /// quartile, as 75% of the data lies below this point. Here, the quartiles is /// provided as an ordered list of quartile values for the scanned data, /// occurring in order Q1, median, Q3. + /// + /// Output only. core.List? quartiles; /// Standard deviation of non-null values in the scanned data. /// /// NaN, if the field has a NaN. + /// + /// Output only. core.double? standardDeviation; GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo({ @@ -13658,16 +13571,22 @@ class GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldI /// Average of non-null values in the scanned data. /// /// NaN, if the field has a NaN. + /// + /// Output only. core.double? average; /// Maximum of non-null values in the scanned data. /// /// NaN, if the field has a NaN. + /// + /// Output only. core.String? max; /// Minimum of non-null values in the scanned data. /// /// NaN, if the field has a NaN. + /// + /// Output only. core.String? min; /// A quartile divides the number of data points into four parts, or quarters, @@ -13682,11 +13601,15 @@ class GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldI /// quartile, as 75% of the data lies below this point. Here, the quartiles is /// provided as an ordered list of approximate quartile values for the scanned /// data, occurring in order Q1, median, Q3. + /// + /// Output only. core.List? quartiles; /// Standard deviation of non-null values in the scanned data. /// /// NaN, if the field has a NaN. + /// + /// Output only. core.double? standardDeviation; GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo({ @@ -13723,12 +13646,18 @@ class GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldI /// The profile information for a string type field. class GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo { /// Average length of non-null values in the scanned data. + /// + /// Output only. core.double? averageLength; /// Maximum length of non-null values in the scanned data. + /// + /// Output only. core.String? maxLength; /// Minimum length of non-null values in the scanned data. + /// + /// Output only. core.String? minLength; GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo({ @@ -13755,13 +13684,19 @@ class GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldIn /// Top N non-null values in the scanned data. class GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue { /// Count of the corresponding value in the scanned data. + /// + /// Output only. core.String? count; /// Ratio of the corresponding value in the field against the total number of /// rows in the scanned data. + /// + /// Output only. core.double? ratio; /// String value of a top N non-null value. + /// + /// Output only. core.String? value; GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue({ @@ -13808,9 +13743,7 @@ class GoogleCloudDataplexV1DataProfileSpec { /// A filter applied to all rows in a single DataScan job. /// /// The filter needs to be a valid SQL expression for a WHERE clause in - /// GoogleSQL syntax - /// (https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#where_clause).Example: - /// col1 \>= 0 AND col2 \< 10 + /// BigQuery standard SQL syntax. Example: col1 \>= 0 AND col2 \< 10 /// /// Optional. core.String? rowFilter; @@ -13899,7 +13832,6 @@ class GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport { /// /// Format: /// //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - /// or projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID /// /// Optional. core.String? resultsTable; @@ -14007,7 +13939,7 @@ class GoogleCloudDataplexV1DataQualityDimension { /// Custom dimension name is supported with all uppercase letters and maximum /// length of 30 characters. /// - /// Optional. + /// Output only. core.String? name; GoogleCloudDataplexV1DataQualityDimension({this.name}); @@ -14067,7 +13999,8 @@ class GoogleCloudDataplexV1DataQualityDimensionResult { /// The output of a DataQualityScan. class GoogleCloudDataplexV1DataQualityResult { - /// The status of publishing the data scan to Catalog. + /// The status of publishing the data scan as Dataplex Universal Catalog + /// metadata. /// /// Output only. GoogleCloudDataplexV1DataScanCatalogPublishingStatus? catalogPublishingStatus; @@ -14752,8 +14685,8 @@ typedef GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation = $Empty; /// DataQualityScan related setting. class GoogleCloudDataplexV1DataQualitySpec { - /// If set, the latest DataScan job result will be published to Dataplex - /// Catalog. + /// If set, the latest DataScan job result will be published as Dataplex + /// Universal Catalog metadata. /// /// Optional. core.bool? catalogPublishingEnabled; @@ -15268,7 +15201,8 @@ class GoogleCloudDataplexV1DataScan { }; } -/// The status of publishing the data scan result to Catalog. +/// The status of publishing the data scan result as Dataplex Universal Catalog +/// metadata. class GoogleCloudDataplexV1DataScanCatalogPublishingStatus { /// Execution state for catalog publishing. /// @@ -15544,8 +15478,8 @@ class GoogleCloudDataplexV1DataScanJob { /// The data source for DataScan. class GoogleCloudDataplexV1DataSource { - /// The Dataplex entity that represents the data source (e.g. BigQuery table) - /// for DataScan, of the form: + /// The Dataplex Universal Catalog entity that represents the data source + /// (e.g. BigQuery table) for DataScan, of the form: /// projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}. /// /// Immutable. @@ -16108,7 +16042,7 @@ class GoogleCloudDataplexV1Entry { /// Optional. core.Map? aspects; - /// The time when the entry was created in Dataplex. + /// The time when the entry was created in Dataplex Universal Catalog. /// /// Output only. core.String? createTime; @@ -16147,7 +16081,7 @@ class GoogleCloudDataplexV1Entry { /// Optional. Immutable. core.String? parentEntry; - /// The time when the entry was last updated in Dataplex. + /// The time when the entry was last updated in Dataplex Universal Catalog. /// /// Output only. core.String? updateTime; @@ -16716,8 +16650,8 @@ class GoogleCloudDataplexV1EntryTypeAspectInfo { /// Authorization for an Entry Type. class GoogleCloudDataplexV1EntryTypeAuthorization { /// The IAM permission grantable on the Entry Group to allow access to - /// instantiate Entries of Dataplex owned Entry Types, only settable for - /// Dataplex owned Types. + /// instantiate Entries of Dataplex Universal Catalog owned Entry Types, only + /// settable for Dataplex Universal Catalog owned Types. /// /// Immutable. core.String? alternateUsePermission; @@ -16987,7 +16921,7 @@ class GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources { /// Software Runtime Configuration to run Analyze. class GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime { - /// Dataplex Image version. + /// Dataplex Universal Catalog Image version. /// /// Required. core.String? imageVersion; @@ -17108,8 +17042,8 @@ typedef GoogleCloudDataplexV1GenerateDataQualityRulesRequest = $Empty; /// Response details for data quality rule recommendations. class GoogleCloudDataplexV1GenerateDataQualityRulesResponse { - /// The data quality rules that Dataplex generates based on the results of a - /// data profiling scan. + /// The data quality rules that Dataplex Universal Catalog generates based on + /// the results of a data profiling scan. core.List? rule; GoogleCloudDataplexV1GenerateDataQualityRulesResponse({this.rule}); @@ -17495,7 +17429,7 @@ class GoogleCloudDataplexV1Job { /// - "CANCELLED" : The job cancellation was successful. /// - "SUCCEEDED" : The job completed successfully. /// - "FAILED" : The job is no longer running due to an error. - /// - "ABORTED" : The job was cancelled outside of Dataplex. + /// - "ABORTED" : The job was cancelled outside of Dataplex Universal Catalog. core.String? state; /// Job execution trigger. @@ -17503,8 +17437,8 @@ class GoogleCloudDataplexV1Job { /// Output only. /// Possible string values are: /// - "TRIGGER_UNSPECIFIED" : The trigger is unspecified. - /// - "TASK_CONFIG" : The job was triggered by Dataplex based on trigger spec - /// from task definition. + /// - "TASK_CONFIG" : The job was triggered by Dataplex Universal Catalog + /// based on trigger spec from task definition. /// - "RUN_REQUEST" : The job was triggered by the explicit call of Task API. core.String? trigger; @@ -18906,10 +18840,10 @@ class GoogleCloudDataplexV1MetadataJobExportJobSpec { /// /// You can optionally specify a custom prefix after the bucket name, in the /// format gs://{bucket}/{prefix}/. The maximum length of the custom prefix is - /// 128 characters. Dataplex constructs the object path for the exported files - /// by using the bucket name and prefix that you provide, followed by a - /// system-generated path.The bucket must be in the same VPC Service Controls - /// perimeter as the job. + /// 128 characters. Dataplex Universal Catalog constructs the object path for + /// the exported files by using the bucket name and prefix that you provide, + /// followed by a system-generated path.The bucket must be in the same VPC + /// Service Controls perimeter as the job. /// /// Required. core.String? outputPath; @@ -19126,10 +19060,10 @@ class GoogleCloudDataplexV1MetadataJobImportJobSpec { /// Possible string values are: /// - "SYNC_MODE_UNSPECIFIED" : Sync mode unspecified. /// - "FULL" : All resources in the job's scope are modified. If a resource - /// exists in Dataplex but isn't included in the metadata import file, the - /// resource is deleted when you run the metadata job. Use this mode to - /// perform a full sync of the set of entries in the job scope.This sync mode - /// is supported for entries. + /// exists in Dataplex Universal Catalog but isn't included in the metadata + /// import file, the resource is deleted when you run the metadata job. Use + /// this mode to perform a full sync of the set of entries in the job + /// scope.This sync mode is supported for entries. /// - "INCREMENTAL" : Only the resources that are explicitly included in the /// metadata import file are modified. Use this mode to modify a subset of /// resources while leaving unreferenced resources unchanged.This sync mode is @@ -19145,10 +19079,10 @@ class GoogleCloudDataplexV1MetadataJobImportJobSpec { /// Possible string values are: /// - "SYNC_MODE_UNSPECIFIED" : Sync mode unspecified. /// - "FULL" : All resources in the job's scope are modified. If a resource - /// exists in Dataplex but isn't included in the metadata import file, the - /// resource is deleted when you run the metadata job. Use this mode to - /// perform a full sync of the set of entries in the job scope.This sync mode - /// is supported for entries. + /// exists in Dataplex Universal Catalog but isn't included in the metadata + /// import file, the resource is deleted when you run the metadata job. Use + /// this mode to perform a full sync of the set of entries in the job + /// scope.This sync mode is supported for entries. /// - "INCREMENTAL" : Only the resources that are explicitly included in the /// metadata import file are modified. Use this mode to modify a subset of /// resources while leaving unreferenced resources unchanged.This sync mode is @@ -19648,13 +19582,19 @@ class GoogleCloudDataplexV1ScannedData { /// A data range denoted by a pair of start/end values of a field. class GoogleCloudDataplexV1ScannedDataIncrementalField { /// Value that marks the end of the range. + /// + /// Output only. core.String? end; /// The field that contains values which monotonically increases over time /// (e.g. a timestamp column). + /// + /// Output only. core.String? field; /// Value that marks the start of the range. + /// + /// Output only. core.String? start; GoogleCloudDataplexV1ScannedDataIncrementalField({ @@ -19703,16 +19643,18 @@ class GoogleCloudDataplexV1Schema { /// gs://bucket/path/to/table/dt=2019-10-31/lang=en/late. core.String? partitionStyle; - /// Set to true if user-managed or false if managed by Dataplex. + /// Set to true if user-managed or false if managed by Dataplex Universal + /// Catalog. /// - /// The default is false (managed by Dataplex). Set to falseto enable Dataplex - /// discovery to update the schema. including new data discovery, schema - /// inference, and schema evolution. Users retain the ability to input and - /// edit the schema. Dataplex treats schema input by the user as though - /// produced by a previous Dataplex discovery operation, and it will evolve - /// the schema and take action based on that treatment. Set to true to fully - /// manage the entity schema. This setting guarantees that Dataplex will not - /// change schema fields. + /// The default is false (managed by Dataplex Universal Catalog). Set to + /// falseto enable Dataplex Universal Catalog discovery to update the schema. + /// including new data discovery, schema inference, and schema evolution. + /// Users retain the ability to input and edit the schema. Dataplex Universal + /// Catalog treats schema input by the user as though produced by a previous + /// Dataplex Universal Catalog discovery operation, and it will evolve the + /// schema and take action based on that treatment. Set to true to fully + /// manage the entity schema. This setting guarantees that Dataplex Universal + /// Catalog will not change schema fields. /// /// Required. core.bool? userManaged; diff --git a/generated/googleapis/lib/dataproc/v1.dart b/generated/googleapis/lib/dataproc/v1.dart index 139516912..3dcb8aa76 100644 --- a/generated/googleapis/lib/dataproc/v1.dart +++ b/generated/googleapis/lib/dataproc/v1.dart @@ -2269,7 +2269,7 @@ class ProjectsLocationsSessionTemplatesResource { /// /// Request parameters: /// - /// [name] - Required. The resource name of the session template. + /// [name] - Required. Identifier. The resource name of the session template. /// Value must have pattern /// `^projects/\[^/\]+/locations/\[^/\]+/sessionTemplates/\[^/\]+$`. /// @@ -7532,13 +7532,25 @@ class AnalyzeBatchRequest { /// Optional. core.String? requestId; - AnalyzeBatchRequest({this.requestId}); + /// The requestor ID is used to identify if the request comes from a GCA + /// investigation or the old Ask Gemini Experience. + /// + /// + /// + /// Optional. + core.String? requestorId; + + AnalyzeBatchRequest({this.requestId, this.requestorId}); AnalyzeBatchRequest.fromJson(core.Map json_) - : this(requestId: json_['requestId'] as core.String?); + : this( + requestId: json_['requestId'] as core.String?, + requestorId: json_['requestorId'] as core.String?, + ); core.Map toJson() => { if (requestId != null) 'requestId': requestId!, + if (requestorId != null) 'requestorId': requestorId!, }; } @@ -8648,14 +8660,14 @@ class ClusterConfig { /// Optional. core.List? auxiliaryNodeGroups; - /// The tier of the cluster. + /// The cluster tier. /// /// Optional. /// Possible string values are: /// - "CLUSTER_TIER_UNSPECIFIED" : Not set. Works the same as /// CLUSTER_TIER_STANDARD. - /// - "CLUSTER_TIER_STANDARD" : Standard dataproc cluster. - /// - "CLUSTER_TIER_PREMIUM" : Premium dataproc cluster. + /// - "CLUSTER_TIER_STANDARD" : Standard Dataproc cluster. + /// - "CLUSTER_TIER_PREMIUM" : Premium Dataproc cluster. core.String? clusterTier; /// The type of the cluster. @@ -16538,6 +16550,8 @@ class SessionTemplate { /// Optional. core.Map? labels; + /// Identifier. + /// /// The resource name of the session template. /// /// Required. diff --git a/generated/googleapis/lib/datastream/v1.dart b/generated/googleapis/lib/datastream/v1.dart index 320d425e3..e7769ca47 100644 --- a/generated/googleapis/lib/datastream/v1.dart +++ b/generated/googleapis/lib/datastream/v1.dart @@ -174,9 +174,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -3257,6 +3257,23 @@ class LookupStreamObjectRequest { /// destination table. typedef Merge = $Empty; +/// MongoDB change stream position +class MongodbChangeStreamPosition { + /// The timestamp (in epoch seconds) to start change stream from. + /// + /// Required. + core.String? startTime; + + MongodbChangeStreamPosition({this.startTime}); + + MongodbChangeStreamPosition.fromJson(core.Map json_) + : this(startTime: json_['startTime'] as core.String?); + + core.Map toJson() => { + if (startTime != null) 'startTime': startTime!, + }; +} + /// MongoDB Cluster structure. class MongodbCluster { /// MongoDB databases in the cluster. @@ -5879,6 +5896,9 @@ class SourceObjectIdentifier { /// CDC strategy to start replicating from a specific position in the source. class SpecificStartPosition { + /// MongoDB change stream position to start replicating from. + MongodbChangeStreamPosition? mongodbChangeStreamPosition; + /// MySQL GTID set to start replicating from. MysqlGtidPosition? mysqlGtidPosition; @@ -5892,6 +5912,7 @@ class SpecificStartPosition { SqlServerLsnPosition? sqlServerLsnPosition; SpecificStartPosition({ + this.mongodbChangeStreamPosition, this.mysqlGtidPosition, this.mysqlLogPosition, this.oracleScnPosition, @@ -5900,6 +5921,13 @@ class SpecificStartPosition { SpecificStartPosition.fromJson(core.Map json_) : this( + mongodbChangeStreamPosition: + json_.containsKey('mongodbChangeStreamPosition') + ? MongodbChangeStreamPosition.fromJson( + json_['mongodbChangeStreamPosition'] + as core.Map, + ) + : null, mysqlGtidPosition: json_.containsKey('mysqlGtidPosition') ? MysqlGtidPosition.fromJson( @@ -5931,6 +5959,8 @@ class SpecificStartPosition { ); core.Map toJson() => { + if (mongodbChangeStreamPosition != null) + 'mongodbChangeStreamPosition': mongodbChangeStreamPosition!, if (mysqlGtidPosition != null) 'mysqlGtidPosition': mysqlGtidPosition!, if (mysqlLogPosition != null) 'mysqlLogPosition': mysqlLogPosition!, if (oracleScnPosition != null) 'oracleScnPosition': oracleScnPosition!, diff --git a/generated/googleapis/lib/deploymentmanager/v2.dart b/generated/googleapis/lib/deploymentmanager/v2.dart index 119db6105..3ba48158b 100644 --- a/generated/googleapis/lib/deploymentmanager/v2.dart +++ b/generated/googleapis/lib/deploymentmanager/v2.dart @@ -2017,6 +2017,8 @@ class GlobalSetPolicyRequest { /// in general a valid policy but certain services (like Projects) might /// reject them. Policy? policy; + + /// Update mask for the policy. core.String? updateMask; GlobalSetPolicyRequest({ @@ -3891,7 +3893,10 @@ class SetAutoscalerLinkOperationMetadata { /// List of zonal IGM IDs part of the RMIG. core.List? zonalIgmIds; - SetAutoscalerLinkOperationMetadata({this.zonalIgmIds}); + /// Map of zone to an ID of the zonal IGM belonging to the RMIG. + core.Map? zoneToIgmIds; + + SetAutoscalerLinkOperationMetadata({this.zonalIgmIds, this.zoneToIgmIds}); SetAutoscalerLinkOperationMetadata.fromJson(core.Map json_) : this( @@ -3899,10 +3904,14 @@ class SetAutoscalerLinkOperationMetadata { (json_['zonalIgmIds'] as core.List?) ?.map((value) => value as core.String) .toList(), + zoneToIgmIds: (json_['zoneToIgmIds'] + as core.Map?) + ?.map((key, value) => core.MapEntry(key, value as core.String)), ); core.Map toJson() => { if (zonalIgmIds != null) 'zonalIgmIds': zonalIgmIds!, + if (zoneToIgmIds != null) 'zoneToIgmIds': zoneToIgmIds!, }; } diff --git a/generated/googleapis/lib/developerconnect/v1.dart b/generated/googleapis/lib/developerconnect/v1.dart index 1ef781a6c..fb0bc8d31 100644 --- a/generated/googleapis/lib/developerconnect/v1.dart +++ b/generated/googleapis/lib/developerconnect/v1.dart @@ -129,9 +129,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/dfareporting/v4.dart b/generated/googleapis/lib/dfareporting/v4.dart index 3f8c0bf60..ba3b4b8a5 100644 --- a/generated/googleapis/lib/dfareporting/v4.dart +++ b/generated/googleapis/lib/dfareporting/v4.dart @@ -13560,6 +13560,17 @@ class Advertiser { /// Default email address used in sender field for tag emails. core.String? defaultEmail; + /// Whether the advertiser plans to serve EU political ads. + /// + /// Optional. + /// Possible string values are: + /// - "ADVERTISER_PLANS_TO_SERVE_EU_POLITICAL_ADS" : You'll need to confirm if + /// your campaign contains EU political advertising. + /// - "ADVERTISER_DOES_NOT_PLAN_TO_SERVE_EU_POLITICAL_ADS" : All new campaigns + /// will have “No” selected for the question that asks if your campaign has EU + /// political ads. You can change this for any campaign at any time. + core.String? euPoliticalAdsDeclaration; + /// Floodlight configuration ID of this advertiser. /// /// The floodlight configuration ID will be created automatically, so on @@ -13629,6 +13640,7 @@ class Advertiser { this.clickThroughUrlSuffix, this.defaultClickThroughEventTagId, this.defaultEmail, + this.euPoliticalAdsDeclaration, this.floodlightConfigurationId, this.floodlightConfigurationIdDimensionValue, this.id, @@ -13650,6 +13662,8 @@ class Advertiser { defaultClickThroughEventTagId: json_['defaultClickThroughEventTagId'] as core.String?, defaultEmail: json_['defaultEmail'] as core.String?, + euPoliticalAdsDeclaration: + json_['euPoliticalAdsDeclaration'] as core.String?, floodlightConfigurationId: json_['floodlightConfigurationId'] as core.String?, floodlightConfigurationIdDimensionValue: @@ -13691,6 +13705,8 @@ class Advertiser { if (defaultClickThroughEventTagId != null) 'defaultClickThroughEventTagId': defaultClickThroughEventTagId!, if (defaultEmail != null) 'defaultEmail': defaultEmail!, + if (euPoliticalAdsDeclaration != null) + 'euPoliticalAdsDeclaration': euPoliticalAdsDeclaration!, if (floodlightConfigurationId != null) 'floodlightConfigurationId': floodlightConfigurationId!, if (floodlightConfigurationIdDimensionValue != null) @@ -14578,6 +14594,18 @@ class Campaign { core.String? defaultLandingPageId; core.DateTime? endDate; + /// Whether the campaign has EU political ads. + /// + /// Campaign Manager 360 doesn't allow campaigns with EU political ads to + /// serve in the EU. They can still serve in other regions. + /// + /// Optional. + /// Possible string values are: + /// - "CONTAINS_EU_POLITICAL_ADS" : The campaign contains EU political ads. + /// - "DOES_NOT_CONTAIN_EU_POLITICAL_ADS" : The campaign does not contain EU + /// political ads. + core.String? euPoliticalAdsDeclaration; + /// Overrides that can be used to activate or deactivate advertiser event /// tags. core.List? eventTagOverrides; @@ -14638,6 +14666,7 @@ class Campaign { this.defaultClickThroughEventTagProperties, this.defaultLandingPageId, this.endDate, + this.euPoliticalAdsDeclaration, this.eventTagOverrides, this.externalId, this.id, @@ -14725,6 +14754,8 @@ class Campaign { json_.containsKey('endDate') ? core.DateTime.parse(json_['endDate'] as core.String) : null, + euPoliticalAdsDeclaration: + json_['euPoliticalAdsDeclaration'] as core.String?, eventTagOverrides: (json_['eventTagOverrides'] as core.List?) ?.map( @@ -14795,6 +14826,8 @@ class Campaign { if (endDate != null) 'endDate': "${endDate!.year.toString().padLeft(4, '0')}-${endDate!.month.toString().padLeft(2, '0')}-${endDate!.day.toString().padLeft(2, '0')}", + if (euPoliticalAdsDeclaration != null) + 'euPoliticalAdsDeclaration': euPoliticalAdsDeclaration!, if (eventTagOverrides != null) 'eventTagOverrides': eventTagOverrides!, if (externalId != null) 'externalId': externalId!, if (id != null) 'id': id!, @@ -24180,6 +24213,8 @@ class MeasurementPartnerWrappingData { /// - "VPAID_ONLY_FILTERING" /// - "VPAID_FILTERING" /// - "NON_VPAID_FILTERING" + /// - "BLOCKING_FILTERING_VPAID" + /// - "BLOCKING_FILTERING_VPAID_ONLY" core.String? tagWrappingMode; /// Tag provided by the measurement partner during wrapping. @@ -25311,6 +25346,11 @@ class Placement { /// This is a read-only, auto-generated field. DimensionValue? advertiserIdDimensionValue; + /// Whether the placement is enabled for YouTube integration. + /// + /// Optional. + core.bool? allowOnYoutube; + /// Campaign ID of this placement. /// /// This field is a required field on insertion. @@ -25549,6 +25589,13 @@ class Placement { /// Whether this placement opts out of tag wrapping. core.bool? wrappingOptOut; + /// YouTube settings for the placement. + /// + /// The placement must be enabled for YouTube to use this field. + /// + /// Optional. + YoutubeSettings? youtubeSettings; + Placement({ this.accountId, this.activeStatus, @@ -25557,6 +25604,7 @@ class Placement { this.additionalSizes, this.advertiserId, this.advertiserIdDimensionValue, + this.allowOnYoutube, this.campaignId, this.campaignIdDimensionValue, this.comment, @@ -25596,6 +25644,7 @@ class Placement { this.videoSettings, this.vpaidAdapterChoice, this.wrappingOptOut, + this.youtubeSettings, }); Placement.fromJson(core.Map json_) @@ -25620,6 +25669,7 @@ class Placement { as core.Map, ) : null, + allowOnYoutube: json_['allowOnYoutube'] as core.bool?, campaignId: json_['campaignId'] as core.String?, campaignIdDimensionValue: json_.containsKey('campaignIdDimensionValue') @@ -25748,6 +25798,13 @@ class Placement { : null, vpaidAdapterChoice: json_['vpaidAdapterChoice'] as core.String?, wrappingOptOut: json_['wrappingOptOut'] as core.bool?, + youtubeSettings: + json_.containsKey('youtubeSettings') + ? YoutubeSettings.fromJson( + json_['youtubeSettings'] + as core.Map, + ) + : null, ); core.Map toJson() => { @@ -25760,6 +25817,7 @@ class Placement { if (advertiserId != null) 'advertiserId': advertiserId!, if (advertiserIdDimensionValue != null) 'advertiserIdDimensionValue': advertiserIdDimensionValue!, + if (allowOnYoutube != null) 'allowOnYoutube': allowOnYoutube!, if (campaignId != null) 'campaignId': campaignId!, if (campaignIdDimensionValue != null) 'campaignIdDimensionValue': campaignIdDimensionValue!, @@ -25809,6 +25867,7 @@ class Placement { if (videoSettings != null) 'videoSettings': videoSettings!, if (vpaidAdapterChoice != null) 'vpaidAdapterChoice': vpaidAdapterChoice!, if (wrappingOptOut != null) 'wrappingOptOut': wrappingOptOut!, + if (youtubeSettings != null) 'youtubeSettings': youtubeSettings!, }; } @@ -31647,3 +31706,90 @@ class VideoSettings { if (transcodeSettings != null) 'transcodeSettings': transcodeSettings!, }; } + +/// Contains the YouTube settings. +class YoutubeSettings { + /// The IDs of the creatives to use for the business logo. + /// + /// Currently only one creative is supported. + /// + /// Optional. + core.List? businessLogoCreativeIds; + + /// The business name. + /// + /// Optional. + core.String? businessName; + + /// The call to actions. + /// + /// Currently only one call to action is supported. + /// + /// Optional. + core.List? callToActions; + + /// The descriptions. + /// + /// Currently only one description is supported. + /// + /// Optional. + core.List? descriptions; + + /// The headlines associated with the call to actions. + /// + /// Currently only one headline is supported. + /// + /// Optional. + core.List? headlines; + + /// The long headlines. + /// + /// Currently only one long headline is supported. + /// + /// Optional. + core.List? longHeadlines; + + YoutubeSettings({ + this.businessLogoCreativeIds, + this.businessName, + this.callToActions, + this.descriptions, + this.headlines, + this.longHeadlines, + }); + + YoutubeSettings.fromJson(core.Map json_) + : this( + businessLogoCreativeIds: + (json_['businessLogoCreativeIds'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + businessName: json_['businessName'] as core.String?, + callToActions: + (json_['callToActions'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + descriptions: + (json_['descriptions'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + headlines: + (json_['headlines'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + longHeadlines: + (json_['longHeadlines'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (businessLogoCreativeIds != null) + 'businessLogoCreativeIds': businessLogoCreativeIds!, + if (businessName != null) 'businessName': businessName!, + if (callToActions != null) 'callToActions': callToActions!, + if (descriptions != null) 'descriptions': descriptions!, + if (headlines != null) 'headlines': headlines!, + if (longHeadlines != null) 'longHeadlines': longHeadlines!, + }; +} diff --git a/generated/googleapis/lib/dialogflow/v2.dart b/generated/googleapis/lib/dialogflow/v2.dart index c387a5bde..c261c512d 100644 --- a/generated/googleapis/lib/dialogflow/v2.dart +++ b/generated/googleapis/lib/dialogflow/v2.dart @@ -6946,9 +6946,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -14586,10 +14586,16 @@ class GoogleCloudDialogflowV2AgentAssistantRecord { /// Output only. GoogleCloudDialogflowV2FaqAnswer? faqAnswer; + /// The generator suggestion. + /// + /// Output only. + GoogleCloudDialogflowV2GeneratorSuggestion? generatorSuggestion; + GoogleCloudDialogflowV2AgentAssistantRecord({ this.articleSuggestionAnswer, this.dialogflowAssistAnswer, this.faqAnswer, + this.generatorSuggestion, }); GoogleCloudDialogflowV2AgentAssistantRecord.fromJson(core.Map json_) @@ -14614,6 +14620,13 @@ class GoogleCloudDialogflowV2AgentAssistantRecord { json_['faqAnswer'] as core.Map, ) : null, + generatorSuggestion: + json_.containsKey('generatorSuggestion') + ? GoogleCloudDialogflowV2GeneratorSuggestion.fromJson( + json_['generatorSuggestion'] + as core.Map, + ) + : null, ); core.Map toJson() => { @@ -14622,6 +14635,8 @@ class GoogleCloudDialogflowV2AgentAssistantRecord { if (dialogflowAssistAnswer != null) 'dialogflowAssistAnswer': dialogflowAssistAnswer!, if (faqAnswer != null) 'faqAnswer': faqAnswer!, + if (generatorSuggestion != null) + 'generatorSuggestion': generatorSuggestion!, }; } diff --git a/generated/googleapis/lib/dialogflow/v3.dart b/generated/googleapis/lib/dialogflow/v3.dart index 2927ae226..93c414f87 100644 --- a/generated/googleapis/lib/dialogflow/v3.dart +++ b/generated/googleapis/lib/dialogflow/v3.dart @@ -161,9 +161,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -8187,11 +8187,23 @@ class GoogleCloudDialogflowCxV3Action { /// Optional. GoogleCloudDialogflowCxV3FlowInvocation? flowInvocation; + /// Action performed on behalf of the agent by transitioning to a target CX + /// flow. + /// + /// Optional. + GoogleCloudDialogflowCxV3FlowTransition? flowTransition; + /// Action performed on behalf of the agent by invoking a child playbook. /// /// Optional. GoogleCloudDialogflowCxV3PlaybookInvocation? playbookInvocation; + /// Action performed on behalf of the agent by transitioning to a target + /// playbook. + /// + /// Optional. + GoogleCloudDialogflowCxV3PlaybookTransition? playbookTransition; + /// Action performed on behalf of the agent by calling a plugin tool. /// /// Optional. @@ -8205,7 +8217,9 @@ class GoogleCloudDialogflowCxV3Action { GoogleCloudDialogflowCxV3Action({ this.agentUtterance, this.flowInvocation, + this.flowTransition, this.playbookInvocation, + this.playbookTransition, this.toolUse, this.userUtterance, }); @@ -8226,6 +8240,13 @@ class GoogleCloudDialogflowCxV3Action { as core.Map, ) : null, + flowTransition: + json_.containsKey('flowTransition') + ? GoogleCloudDialogflowCxV3FlowTransition.fromJson( + json_['flowTransition'] + as core.Map, + ) + : null, playbookInvocation: json_.containsKey('playbookInvocation') ? GoogleCloudDialogflowCxV3PlaybookInvocation.fromJson( @@ -8233,6 +8254,13 @@ class GoogleCloudDialogflowCxV3Action { as core.Map, ) : null, + playbookTransition: + json_.containsKey('playbookTransition') + ? GoogleCloudDialogflowCxV3PlaybookTransition.fromJson( + json_['playbookTransition'] + as core.Map, + ) + : null, toolUse: json_.containsKey('toolUse') ? GoogleCloudDialogflowCxV3ToolUse.fromJson( @@ -8250,7 +8278,9 @@ class GoogleCloudDialogflowCxV3Action { core.Map toJson() => { if (agentUtterance != null) 'agentUtterance': agentUtterance!, if (flowInvocation != null) 'flowInvocation': flowInvocation!, + if (flowTransition != null) 'flowTransition': flowTransition!, if (playbookInvocation != null) 'playbookInvocation': playbookInvocation!, + if (playbookTransition != null) 'playbookTransition': playbookTransition!, if (toolUse != null) 'toolUse': toolUse!, if (userUtterance != null) 'userUtterance': userUtterance!, }; @@ -12041,6 +12071,12 @@ class GoogleCloudDialogflowCxV3Flow { /// being ignored. core.List? eventHandlers; + /// Defined structured input parameters for this flow. + /// + /// Optional. + core.List? + inputParameterDefinitions; + /// Knowledge connector configuration. /// /// Optional. @@ -12065,6 +12101,12 @@ class GoogleCloudDialogflowCxV3Flow { /// NLU related settings of the flow. GoogleCloudDialogflowCxV3NluSettings? nluSettings; + /// Defined structured output parameters for this flow. + /// + /// Optional. + core.List? + outputParameterDefinitions; + /// A flow's transition route group serve two purposes: * They are responsible /// for matching the user's first utterances in the flow. /// @@ -12094,11 +12136,13 @@ class GoogleCloudDialogflowCxV3Flow { this.description, this.displayName, this.eventHandlers, + this.inputParameterDefinitions, this.knowledgeConnectorSettings, this.locked, this.multiLanguageSettings, this.name, this.nluSettings, + this.outputParameterDefinitions, this.transitionRouteGroups, this.transitionRoutes, }); @@ -12122,6 +12166,15 @@ class GoogleCloudDialogflowCxV3Flow { ), ) .toList(), + inputParameterDefinitions: + (json_['inputParameterDefinitions'] as core.List?) + ?.map( + (value) => + GoogleCloudDialogflowCxV3ParameterDefinition.fromJson( + value as core.Map, + ), + ) + .toList(), knowledgeConnectorSettings: json_.containsKey('knowledgeConnectorSettings') ? GoogleCloudDialogflowCxV3KnowledgeConnectorSettings.fromJson( @@ -12144,6 +12197,15 @@ class GoogleCloudDialogflowCxV3Flow { json_['nluSettings'] as core.Map, ) : null, + outputParameterDefinitions: + (json_['outputParameterDefinitions'] as core.List?) + ?.map( + (value) => + GoogleCloudDialogflowCxV3ParameterDefinition.fromJson( + value as core.Map, + ), + ) + .toList(), transitionRouteGroups: (json_['transitionRouteGroups'] as core.List?) ?.map((value) => value as core.String) @@ -12163,6 +12225,8 @@ class GoogleCloudDialogflowCxV3Flow { if (description != null) 'description': description!, if (displayName != null) 'displayName': displayName!, if (eventHandlers != null) 'eventHandlers': eventHandlers!, + if (inputParameterDefinitions != null) + 'inputParameterDefinitions': inputParameterDefinitions!, if (knowledgeConnectorSettings != null) 'knowledgeConnectorSettings': knowledgeConnectorSettings!, if (locked != null) 'locked': locked!, @@ -12170,6 +12234,8 @@ class GoogleCloudDialogflowCxV3Flow { 'multiLanguageSettings': multiLanguageSettings!, if (name != null) 'name': name!, if (nluSettings != null) 'nluSettings': nluSettings!, + if (outputParameterDefinitions != null) + 'outputParameterDefinitions': outputParameterDefinitions!, if (transitionRouteGroups != null) 'transitionRouteGroups': transitionRouteGroups!, if (transitionRoutes != null) 'transitionRoutes': transitionRoutes!, @@ -12299,6 +12365,36 @@ class GoogleCloudDialogflowCxV3FlowMultiLanguageSettings { }; } +/// Stores metadata of the transition to a target CX flow. +/// +/// Flow transition actions exit the caller playbook and enter the child flow. +class GoogleCloudDialogflowCxV3FlowTransition { + /// The display name of the flow. + /// + /// Output only. + core.String? displayName; + + /// The unique identifier of the flow. + /// + /// Format: `projects//locations//agents/`. + /// + /// Required. + core.String? flow; + + GoogleCloudDialogflowCxV3FlowTransition({this.displayName, this.flow}); + + GoogleCloudDialogflowCxV3FlowTransition.fromJson(core.Map json_) + : this( + displayName: json_['displayName'] as core.String?, + flow: json_['flow'] as core.String?, + ); + + core.Map toJson() => { + if (displayName != null) 'displayName': displayName!, + if (flow != null) 'flow': flow!, + }; +} + /// The response message for Flows.GetFlowValidationResult. class GoogleCloudDialogflowCxV3FlowValidationResult { /// The unique identifier of the flow validation result. @@ -13797,6 +13893,39 @@ class GoogleCloudDialogflowCxV3ImportTestCasesRequest { }; } +/// A type schema object that's specified inline. +class GoogleCloudDialogflowCxV3InlineSchema { + /// Schema of the elements if this is an ARRAY type. + GoogleCloudDialogflowCxV3TypeSchema? items; + + /// Data type of the schema. + /// Possible string values are: + /// - "DATA_TYPE_UNSPECIFIED" : Not specified. + /// - "STRING" : Represents any string value. + /// - "NUMBER" : Represents any number value. + /// - "BOOLEAN" : Represents a boolean value. + /// - "ARRAY" : Represents a repeated value. + core.String? type; + + GoogleCloudDialogflowCxV3InlineSchema({this.items, this.type}); + + GoogleCloudDialogflowCxV3InlineSchema.fromJson(core.Map json_) + : this( + items: + json_.containsKey('items') + ? GoogleCloudDialogflowCxV3TypeSchema.fromJson( + json_['items'] as core.Map, + ) + : null, + type: json_['type'] as core.String?, + ); + + core.Map toJson() => { + if (items != null) 'items': items!, + if (type != null) 'type': type!, + }; +} + /// Inline source for a Dialogflow operation that reads or imports objects (e.g. /// intents) into Dialogflow. class GoogleCloudDialogflowCxV3InlineSource { @@ -15787,6 +15916,69 @@ class GoogleCloudDialogflowCxV3Page { }; } +/// Defines the properties of a parameter. +/// +/// Used to define parameters used in the agent and the input / output +/// parameters for each fulfillment. +class GoogleCloudDialogflowCxV3ParameterDefinition { + /// Human-readable description of the parameter. + /// + /// Limited to 300 characters. + core.String? description; + + /// Name of parameter. + /// + /// Required. + core.String? name; + + /// Type of parameter. + /// Possible string values are: + /// - "PARAMETER_TYPE_UNSPECIFIED" : Not specified. No validation will be + /// performed. + /// - "STRING" : Represents any string value. + /// - "NUMBER" : Represents any number value. + /// - "BOOLEAN" : Represents a boolean value. + /// - "NULL" : Represents a null value. + /// - "OBJECT" : Represents any object value. + /// - "LIST" : Represents a repeated value. + @core.Deprecated( + 'Not supported. Member documentation may have more information.', + ) + core.String? type; + + /// Type schema of parameter. + /// + /// Optional. + GoogleCloudDialogflowCxV3TypeSchema? typeSchema; + + GoogleCloudDialogflowCxV3ParameterDefinition({ + this.description, + this.name, + this.type, + this.typeSchema, + }); + + GoogleCloudDialogflowCxV3ParameterDefinition.fromJson(core.Map json_) + : this( + description: json_['description'] as core.String?, + name: json_['name'] as core.String?, + type: json_['type'] as core.String?, + typeSchema: + json_.containsKey('typeSchema') + ? GoogleCloudDialogflowCxV3TypeSchema.fromJson( + json_['typeSchema'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (description != null) 'description': description!, + if (name != null) 'name': name!, + if (type != null) 'type': type!, + if (typeSchema != null) 'typeSchema': typeSchema!, + }; +} + /// Text input which can be used for prompt or banned phrases. class GoogleCloudDialogflowCxV3Phrase { /// Text input which can be used for prompt or banned phrases. @@ -15836,6 +16028,12 @@ class GoogleCloudDialogflowCxV3Playbook { /// Optional. core.List? handlers; + /// Defined structured input parameters for this playbook. + /// + /// Optional. + core.List? + inputParameterDefinitions; + /// Instruction to accomplish target goal. GoogleCloudDialogflowCxV3PlaybookInstruction? instruction; @@ -15849,6 +16047,21 @@ class GoogleCloudDialogflowCxV3Playbook { /// Format: `projects//locations//agents//playbooks/`. core.String? name; + /// Defined structured output parameters for this playbook. + /// + /// Optional. + core.List? + outputParameterDefinitions; + + /// Type of the playbook. + /// + /// Optional. + /// Possible string values are: + /// - "PLAYBOOK_TYPE_UNSPECIFIED" : Unspecified type. Default to TASK. + /// - "TASK" : Task playbook. + /// - "ROUTINE" : Routine playbook. + core.String? playbookType; + /// The resource name of flows referenced by the current playbook in the /// instructions. /// @@ -15885,9 +16098,12 @@ class GoogleCloudDialogflowCxV3Playbook { this.displayName, this.goal, this.handlers, + this.inputParameterDefinitions, this.instruction, this.llmModelSettings, this.name, + this.outputParameterDefinitions, + this.playbookType, this.referencedFlows, this.referencedPlaybooks, this.referencedTools, @@ -15908,6 +16124,15 @@ class GoogleCloudDialogflowCxV3Playbook { ), ) .toList(), + inputParameterDefinitions: + (json_['inputParameterDefinitions'] as core.List?) + ?.map( + (value) => + GoogleCloudDialogflowCxV3ParameterDefinition.fromJson( + value as core.Map, + ), + ) + .toList(), instruction: json_.containsKey('instruction') ? GoogleCloudDialogflowCxV3PlaybookInstruction.fromJson( @@ -15922,6 +16147,16 @@ class GoogleCloudDialogflowCxV3Playbook { ) : null, name: json_['name'] as core.String?, + outputParameterDefinitions: + (json_['outputParameterDefinitions'] as core.List?) + ?.map( + (value) => + GoogleCloudDialogflowCxV3ParameterDefinition.fromJson( + value as core.Map, + ), + ) + .toList(), + playbookType: json_['playbookType'] as core.String?, referencedFlows: (json_['referencedFlows'] as core.List?) ?.map((value) => value as core.String) @@ -15943,9 +16178,14 @@ class GoogleCloudDialogflowCxV3Playbook { if (displayName != null) 'displayName': displayName!, if (goal != null) 'goal': goal!, if (handlers != null) 'handlers': handlers!, + if (inputParameterDefinitions != null) + 'inputParameterDefinitions': inputParameterDefinitions!, if (instruction != null) 'instruction': instruction!, if (llmModelSettings != null) 'llmModelSettings': llmModelSettings!, if (name != null) 'name': name!, + if (outputParameterDefinitions != null) + 'outputParameterDefinitions': outputParameterDefinitions!, + if (playbookType != null) 'playbookType': playbookType!, if (referencedFlows != null) 'referencedFlows': referencedFlows!, if (referencedPlaybooks != null) 'referencedPlaybooks': referencedPlaybooks!, @@ -16219,6 +16459,40 @@ class GoogleCloudDialogflowCxV3PlaybookStep { }; } +/// Stores metadata of the transition to another target playbook. +/// +/// Playbook transition actions exit the caller playbook and enter the target +/// playbook. +class GoogleCloudDialogflowCxV3PlaybookTransition { + /// The display name of the playbook. + /// + /// Output only. + core.String? displayName; + + /// The unique identifier of the playbook. + /// + /// Format: `projects//locations//agents//playbooks/`. + /// + /// Required. + core.String? playbook; + + GoogleCloudDialogflowCxV3PlaybookTransition({ + this.displayName, + this.playbook, + }); + + GoogleCloudDialogflowCxV3PlaybookTransition.fromJson(core.Map json_) + : this( + displayName: json_['displayName'] as core.String?, + playbook: json_['playbook'] as core.String?, + ); + + core.Map toJson() => { + if (displayName != null) 'displayName': displayName!, + if (playbook != null) 'playbook': playbook!, + }; +} + /// Playbook version is a snapshot of the playbook at certain timestamp. class GoogleCloudDialogflowCxV3PlaybookVersion { /// The description of the playbook version. @@ -18047,6 +18321,10 @@ class GoogleCloudDialogflowCxV3SecuritySettings { /// Settings for exporting audio. class GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings { /// Filename pattern for exported audio. + /// + /// {conversation} and {timestamp} are placeholders that will be replaced with + /// the conversation ID and epoch micros of the conversation. For example, + /// "{conversation}/recording_{timestamp}.mulaw". core.String? audioExportPattern; /// File format for exported audio file. @@ -19913,6 +20191,67 @@ class GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition { }; } +/// Encapsulates different type schema variations: either a reference to an a +/// schema that's already defined by a tool, or an inline definition. +class GoogleCloudDialogflowCxV3TypeSchema { + /// Set if this is an inline schema definition. + GoogleCloudDialogflowCxV3InlineSchema? inlineSchema; + + /// Set if this is a schema reference. + GoogleCloudDialogflowCxV3TypeSchemaSchemaReference? schemaReference; + + GoogleCloudDialogflowCxV3TypeSchema({ + this.inlineSchema, + this.schemaReference, + }); + + GoogleCloudDialogflowCxV3TypeSchema.fromJson(core.Map json_) + : this( + inlineSchema: + json_.containsKey('inlineSchema') + ? GoogleCloudDialogflowCxV3InlineSchema.fromJson( + json_['inlineSchema'] as core.Map, + ) + : null, + schemaReference: + json_.containsKey('schemaReference') + ? GoogleCloudDialogflowCxV3TypeSchemaSchemaReference.fromJson( + json_['schemaReference'] + as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (inlineSchema != null) 'inlineSchema': inlineSchema!, + if (schemaReference != null) 'schemaReference': schemaReference!, + }; +} + +/// A reference to the schema of an existing tool. +class GoogleCloudDialogflowCxV3TypeSchemaSchemaReference { + /// The name of the schema. + core.String? schema; + + /// The tool that contains this schema definition. + /// + /// Format: `projects//locations//agents//tools/`. + core.String? tool; + + GoogleCloudDialogflowCxV3TypeSchemaSchemaReference({this.schema, this.tool}); + + GoogleCloudDialogflowCxV3TypeSchemaSchemaReference.fromJson(core.Map json_) + : this( + schema: json_['schema'] as core.String?, + tool: json_['tool'] as core.String?, + ); + + core.Map toJson() => { + if (schema != null) 'schema': schema!, + if (tool != null) 'tool': tool!, + }; +} + /// UserUtterance represents one message sent by the customer. typedef GoogleCloudDialogflowCxV3UserUtterance = $Utterance; diff --git a/generated/googleapis/lib/digitalassetlinks/v1.dart b/generated/googleapis/lib/digitalassetlinks/v1.dart index 93a56d796..f8d9b4c2f 100644 --- a/generated/googleapis/lib/digitalassetlinks/v1.dart +++ b/generated/googleapis/lib/digitalassetlinks/v1.dart @@ -638,6 +638,12 @@ class CheckResponse { core.String? debugString; /// Error codes that describe the result of the Check operation. + /// + /// NOTE: Error codes may be populated even when `linked` is true. The error + /// codes do not necessarily imply that the request failed, but rather, + /// specify any errors encountered in the statements file(s) which may or may + /// not impact whether the server determines the requested source and target + /// to be linked. core.List? errorCode; /// Set to true if the assets specified in the request are linked by the diff --git a/generated/googleapis/lib/displayvideo/v2.dart b/generated/googleapis/lib/displayvideo/v2.dart index 88d9f1403..e04dd072a 100644 --- a/generated/googleapis/lib/displayvideo/v2.dart +++ b/generated/googleapis/lib/displayvideo/v2.dart @@ -12782,6 +12782,24 @@ class Advertiser { /// Output only. core.String? advertiserId; + /// Whether this advertiser contains line items that serve European Union + /// political ads. + /// + /// If this field is set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING`, then + /// the following will happen: * Any new line items created under this + /// advertiser will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if + /// not otherwise specified. * Any existing line items under this advertiser + /// that do not have a set value be updated to + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` within a day. + /// + /// Optional. + /// Possible string values are: + /// - "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN" : Unknown. + /// - "CONTAINS_EU_POLITICAL_ADVERTISING" : Contains EU political advertising. + /// - "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" : Does not contain EU + /// political advertising. + core.String? containsEuPoliticalAds; + /// Creative related settings of the advertiser. /// /// Required. @@ -12864,6 +12882,7 @@ class Advertiser { Advertiser({ this.adServerConfig, this.advertiserId, + this.containsEuPoliticalAds, this.creativeConfig, this.dataAccessConfig, this.displayName, @@ -12887,6 +12906,7 @@ class Advertiser { ) : null, advertiserId: json_['advertiserId'] as core.String?, + containsEuPoliticalAds: json_['containsEuPoliticalAds'] as core.String?, creativeConfig: json_.containsKey('creativeConfig') ? AdvertiserCreativeConfig.fromJson( @@ -12931,6 +12951,8 @@ class Advertiser { core.Map toJson() => { if (adServerConfig != null) 'adServerConfig': adServerConfig!, if (advertiserId != null) 'advertiserId': advertiserId!, + if (containsEuPoliticalAds != null) + 'containsEuPoliticalAds': containsEuPoliticalAds!, if (creativeConfig != null) 'creativeConfig': creativeConfig!, if (dataAccessConfig != null) 'dataAccessConfig': dataAccessConfig!, if (displayName != null) 'displayName': displayName!, @@ -15373,7 +15395,8 @@ class BulkUpdateLineItemsRequest { /// A field mask identifying which fields to update. /// - /// Only the following fields are currently supported: * entityStatus + /// Only the following fields are currently supported: * entityStatus * + /// containsEuPoliticalAds /// /// Required. core.String? updateMask; @@ -16372,6 +16395,9 @@ class CreateSdfDownloadTaskRequest { /// guide\](/display-video/api/structured-data-file/v8-migration-guide) before /// migrating to this version. /// - "SDF_VERSION_8_1" : SDF version 8.1. + /// - "SDF_VERSION_9" : SDF version 9. Read the \[v9 migration + /// guide\](/display-video/api/structured-data-file/v9-migration-guide) before + /// migrating to this version. core.String? version; CreateSdfDownloadTaskRequest({ @@ -18343,6 +18369,24 @@ typedef GenderTargetingOptionDetails = $GenderTargetingOptionDetails; /// Request message for LineItemService.GenerateDefaultLineItem. class GenerateDefaultLineItemRequest { + /// Whether this line item will serve European Union political ads. + /// + /// If contains_eu_political_ads has been set to + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then + /// this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if + /// not otherwise specified. This field can then be updated using the UI, API, + /// or Structured Data Files. *Warning*: Starting **September 8, 2025**, this + /// field must be set. If not, either the value + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned to the line + /// item if the parent advertiser has declared that it does not serve EU + /// political ads, or **the request will fail**. + /// Possible string values are: + /// - "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN" : Unknown. + /// - "CONTAINS_EU_POLITICAL_ADVERTISING" : Contains EU political advertising. + /// - "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" : Does not contain EU + /// political advertising. + core.String? containsEuPoliticalAds; + /// The display name of the line item. /// /// Must be UTF-8 encoded with a maximum size of 240 bytes. @@ -18436,6 +18480,7 @@ class GenerateDefaultLineItemRequest { MobileApp? mobileApp; GenerateDefaultLineItemRequest({ + this.containsEuPoliticalAds, this.displayName, this.insertionOrderId, this.lineItemType, @@ -18444,6 +18489,7 @@ class GenerateDefaultLineItemRequest { GenerateDefaultLineItemRequest.fromJson(core.Map json_) : this( + containsEuPoliticalAds: json_['containsEuPoliticalAds'] as core.String?, displayName: json_['displayName'] as core.String?, insertionOrderId: json_['insertionOrderId'] as core.String?, lineItemType: json_['lineItemType'] as core.String?, @@ -18456,6 +18502,8 @@ class GenerateDefaultLineItemRequest { ); core.Map toJson() => { + if (containsEuPoliticalAds != null) + 'containsEuPoliticalAds': containsEuPoliticalAds!, if (displayName != null) 'displayName': displayName!, if (insertionOrderId != null) 'insertionOrderId': insertionOrderId!, if (lineItemType != null) 'lineItemType': lineItemType!, @@ -20197,6 +20245,24 @@ class LineItem { /// Output only. core.String? campaignId; + /// Whether this line item will serve European Union political ads. + /// + /// If contains_eu_political_ads has been set to + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then + /// this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if + /// not otherwise specified. This field can then be updated using the UI, API, + /// or Structured Data Files. *Warning*: Starting **September 8, 2025**, this + /// field must be set when creating a new line item. If not, either the value + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned if the parent + /// advertiser has declared that it does not serve EU political ads, or **the + /// `advertisers.lineItems.create` request will fail**. + /// Possible string values are: + /// - "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN" : Unknown. + /// - "CONTAINS_EU_POLITICAL_ADVERTISING" : Contains EU political advertising. + /// - "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" : Does not contain EU + /// political advertising. + core.String? containsEuPoliticalAds; + /// The conversion tracking setting of the line item. ConversionCountingConfig? conversionCounting; @@ -20422,6 +20488,7 @@ class LineItem { this.bidStrategy, this.budget, this.campaignId, + this.containsEuPoliticalAds, this.conversionCounting, this.creativeIds, this.displayName, @@ -20461,6 +20528,7 @@ class LineItem { ) : null, campaignId: json_['campaignId'] as core.String?, + containsEuPoliticalAds: json_['containsEuPoliticalAds'] as core.String?, conversionCounting: json_.containsKey('conversionCounting') ? ConversionCountingConfig.fromJson( @@ -20552,6 +20620,8 @@ class LineItem { if (bidStrategy != null) 'bidStrategy': bidStrategy!, if (budget != null) 'budget': budget!, if (campaignId != null) 'campaignId': campaignId!, + if (containsEuPoliticalAds != null) + 'containsEuPoliticalAds': containsEuPoliticalAds!, if (conversionCounting != null) 'conversionCounting': conversionCounting!, if (creativeIds != null) 'creativeIds': creativeIds!, if (displayName != null) 'displayName': displayName!, diff --git a/generated/googleapis/lib/displayvideo/v3.dart b/generated/googleapis/lib/displayvideo/v3.dart index 1a5dcf02c..cf0885619 100644 --- a/generated/googleapis/lib/displayvideo/v3.dart +++ b/generated/googleapis/lib/displayvideo/v3.dart @@ -13407,6 +13407,24 @@ class Advertiser { /// Required. AdvertiserBillingConfig? billingConfig; + /// Whether this advertiser contains line items that serve European Union + /// political ads. + /// + /// If this field is set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING`, then + /// the following will happen: * Any new line items created under this + /// advertiser will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if + /// not otherwise specified. * Any existing line items under this advertiser + /// that do not have a set value be updated to + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` within a day. + /// + /// Optional. + /// Possible string values are: + /// - "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN" : Unknown. + /// - "CONTAINS_EU_POLITICAL_ADVERTISING" : Contains EU political advertising. + /// - "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" : Does not contain EU + /// political advertising. + core.String? containsEuPoliticalAds; + /// Creative related settings of the advertiser. /// /// Required. @@ -13490,6 +13508,7 @@ class Advertiser { this.adServerConfig, this.advertiserId, this.billingConfig, + this.containsEuPoliticalAds, this.creativeConfig, this.dataAccessConfig, this.displayName, @@ -13519,6 +13538,7 @@ class Advertiser { json_['billingConfig'] as core.Map, ) : null, + containsEuPoliticalAds: json_['containsEuPoliticalAds'] as core.String?, creativeConfig: json_.containsKey('creativeConfig') ? AdvertiserCreativeConfig.fromJson( @@ -13564,6 +13584,8 @@ class Advertiser { if (adServerConfig != null) 'adServerConfig': adServerConfig!, if (advertiserId != null) 'advertiserId': advertiserId!, if (billingConfig != null) 'billingConfig': billingConfig!, + if (containsEuPoliticalAds != null) + 'containsEuPoliticalAds': containsEuPoliticalAds!, if (creativeConfig != null) 'creativeConfig': creativeConfig!, if (dataAccessConfig != null) 'dataAccessConfig': dataAccessConfig!, if (displayName != null) 'displayName': displayName!, @@ -16093,7 +16115,8 @@ class BulkUpdateLineItemsRequest { /// A field mask identifying which fields to update. /// - /// Only the following fields are currently supported: * entityStatus + /// Only the following fields are currently supported: * entityStatus * + /// containsEuPoliticalAds /// /// Required. core.String? updateMask; @@ -17161,6 +17184,9 @@ class CreateSdfDownloadTaskRequest { /// guide\](/display-video/api/structured-data-file/v8-migration-guide) before /// migrating to this version. /// - "SDF_VERSION_8_1" : SDF version 8.1. + /// - "SDF_VERSION_9" : SDF version 9. Read the \[v9 migration + /// guide\](/display-video/api/structured-data-file/v9-migration-guide) before + /// migrating to this version. core.String? version; CreateSdfDownloadTaskRequest({ @@ -19519,6 +19545,24 @@ typedef GenderTargetingOptionDetails = $GenderTargetingOptionDetails; /// Request message for LineItemService.GenerateDefaultLineItem. class GenerateDefaultLineItemRequest { + /// Whether this line item will serve European Union political ads. + /// + /// If contains_eu_political_ads has been set to + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then + /// this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if + /// not otherwise specified. This field can then be updated using the UI, API, + /// or Structured Data Files. *Warning*: Starting **September 8, 2025**, this + /// field must be set. If not, either the value + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned to the line + /// item if the parent advertiser has declared that it does not serve EU + /// political ads, or **the request will fail**. + /// Possible string values are: + /// - "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN" : Unknown. + /// - "CONTAINS_EU_POLITICAL_ADVERTISING" : Contains EU political advertising. + /// - "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" : Does not contain EU + /// political advertising. + core.String? containsEuPoliticalAds; + /// The display name of the line item. /// /// Must be UTF-8 encoded with a maximum size of 240 bytes. @@ -19612,6 +19656,7 @@ class GenerateDefaultLineItemRequest { MobileApp? mobileApp; GenerateDefaultLineItemRequest({ + this.containsEuPoliticalAds, this.displayName, this.insertionOrderId, this.lineItemType, @@ -19620,6 +19665,7 @@ class GenerateDefaultLineItemRequest { GenerateDefaultLineItemRequest.fromJson(core.Map json_) : this( + containsEuPoliticalAds: json_['containsEuPoliticalAds'] as core.String?, displayName: json_['displayName'] as core.String?, insertionOrderId: json_['insertionOrderId'] as core.String?, lineItemType: json_['lineItemType'] as core.String?, @@ -19632,6 +19678,8 @@ class GenerateDefaultLineItemRequest { ); core.Map toJson() => { + if (containsEuPoliticalAds != null) + 'containsEuPoliticalAds': containsEuPoliticalAds!, if (displayName != null) 'displayName': displayName!, if (insertionOrderId != null) 'insertionOrderId': insertionOrderId!, if (lineItemType != null) 'lineItemType': lineItemType!, @@ -21122,6 +21170,24 @@ class LineItem { /// Output only. core.String? campaignId; + /// Whether this line item will serve European Union political ads. + /// + /// If contains_eu_political_ads has been set to + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then + /// this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if + /// not otherwise specified. This field can then be updated using the UI, API, + /// or Structured Data Files. *Warning*: Starting **September 8, 2025**, this + /// field must be set when creating a new line item. If not, either the value + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned if the parent + /// advertiser has declared that it does not serve EU political ads, or **the + /// `advertisers.lineItems.create` request will fail**. + /// Possible string values are: + /// - "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN" : Unknown. + /// - "CONTAINS_EU_POLITICAL_ADVERTISING" : Contains EU political advertising. + /// - "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" : Does not contain EU + /// political advertising. + core.String? containsEuPoliticalAds; + /// The conversion tracking setting of the line item. ConversionCountingConfig? conversionCounting; @@ -21347,6 +21413,7 @@ class LineItem { this.bidStrategy, this.budget, this.campaignId, + this.containsEuPoliticalAds, this.conversionCounting, this.creativeIds, this.displayName, @@ -21386,6 +21453,7 @@ class LineItem { ) : null, campaignId: json_['campaignId'] as core.String?, + containsEuPoliticalAds: json_['containsEuPoliticalAds'] as core.String?, conversionCounting: json_.containsKey('conversionCounting') ? ConversionCountingConfig.fromJson( @@ -21477,6 +21545,8 @@ class LineItem { if (bidStrategy != null) 'bidStrategy': bidStrategy!, if (budget != null) 'budget': budget!, if (campaignId != null) 'campaignId': campaignId!, + if (containsEuPoliticalAds != null) + 'containsEuPoliticalAds': containsEuPoliticalAds!, if (conversionCounting != null) 'conversionCounting': conversionCounting!, if (creativeIds != null) 'creativeIds': creativeIds!, if (displayName != null) 'displayName': displayName!, diff --git a/generated/googleapis/lib/displayvideo/v4.dart b/generated/googleapis/lib/displayvideo/v4.dart index da0300aea..61c53f201 100644 --- a/generated/googleapis/lib/displayvideo/v4.dart +++ b/generated/googleapis/lib/displayvideo/v4.dart @@ -13461,6 +13461,24 @@ class Advertiser { /// Required. AdvertiserBillingConfig? billingConfig; + /// Whether this advertiser contains line items that serve European Union + /// political ads. + /// + /// If this field is set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING`, then + /// the following will happen: * Any new line items created under this + /// advertiser will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if + /// not otherwise specified. * Any existing line items under this advertiser + /// that do not have a set value be updated to + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` within a day. + /// + /// Optional. + /// Possible string values are: + /// - "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN" : Unknown. + /// - "CONTAINS_EU_POLITICAL_ADVERTISING" : Contains EU political advertising. + /// - "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" : Does not contain EU + /// political advertising. + core.String? containsEuPoliticalAds; + /// Creative related settings of the advertiser. /// /// Required. @@ -13544,6 +13562,7 @@ class Advertiser { this.adServerConfig, this.advertiserId, this.billingConfig, + this.containsEuPoliticalAds, this.creativeConfig, this.dataAccessConfig, this.displayName, @@ -13573,6 +13592,7 @@ class Advertiser { json_['billingConfig'] as core.Map, ) : null, + containsEuPoliticalAds: json_['containsEuPoliticalAds'] as core.String?, creativeConfig: json_.containsKey('creativeConfig') ? AdvertiserCreativeConfig.fromJson( @@ -13618,6 +13638,8 @@ class Advertiser { if (adServerConfig != null) 'adServerConfig': adServerConfig!, if (advertiserId != null) 'advertiserId': advertiserId!, if (billingConfig != null) 'billingConfig': billingConfig!, + if (containsEuPoliticalAds != null) + 'containsEuPoliticalAds': containsEuPoliticalAds!, if (creativeConfig != null) 'creativeConfig': creativeConfig!, if (dataAccessConfig != null) 'dataAccessConfig': dataAccessConfig!, if (displayName != null) 'displayName': displayName!, @@ -16148,7 +16170,8 @@ class BulkUpdateLineItemsRequest { /// A field mask identifying which fields to update. /// - /// Only the following fields are currently supported: * entityStatus + /// Only the following fields are currently supported: * entityStatus * + /// containsEuPoliticalAds /// /// Required. core.String? updateMask; @@ -17216,6 +17239,9 @@ class CreateSdfDownloadTaskRequest { /// guide\](/display-video/api/structured-data-file/v8-migration-guide) before /// migrating to this version. /// - "SDF_VERSION_8_1" : SDF version 8.1. + /// - "SDF_VERSION_9" : SDF version 9. Read the \[v9 migration + /// guide\](/display-video/api/structured-data-file/v9-migration-guide) before + /// migrating to this version. core.String? version; CreateSdfDownloadTaskRequest({ @@ -18213,6 +18239,18 @@ class CustomBiddingAlgorithm { /// \[`accessor`\](/display-video/api/reference/rest/v1/customBiddingAlgorithms/list#body.QUERY_PARAMETERS.oneof_accessor). core.List? sharedAdvertiserIds; + /// Designates the third party optimization partner that manages this + /// algorithm. + /// + /// Optional. Immutable. + /// Possible string values are: + /// - "UNKNOWN" : Type value is not specified or is unknown in this version. + /// - "SCIBIDS" : Third party data science service provider that DV3 + /// partners/advertisers can partner with. + /// - "ADELAIDE" : Third party attention measurement service provider that DV3 + /// partners/advertisers can partner with. + core.String? thirdPartyOptimizationPartner; + CustomBiddingAlgorithm({ this.advertiserId, this.customBiddingAlgorithmId, @@ -18223,6 +18261,7 @@ class CustomBiddingAlgorithm { this.name, this.partnerId, this.sharedAdvertiserIds, + this.thirdPartyOptimizationPartner, }); CustomBiddingAlgorithm.fromJson(core.Map json_) @@ -18248,6 +18287,8 @@ class CustomBiddingAlgorithm { (json_['sharedAdvertiserIds'] as core.List?) ?.map((value) => value as core.String) .toList(), + thirdPartyOptimizationPartner: + json_['thirdPartyOptimizationPartner'] as core.String?, ); core.Map toJson() => { @@ -18263,6 +18304,8 @@ class CustomBiddingAlgorithm { if (partnerId != null) 'partnerId': partnerId!, if (sharedAdvertiserIds != null) 'sharedAdvertiserIds': sharedAdvertiserIds!, + if (thirdPartyOptimizationPartner != null) + 'thirdPartyOptimizationPartner': thirdPartyOptimizationPartner!, }; } @@ -19580,6 +19623,24 @@ typedef GenderTargetingOptionDetails = $GenderTargetingOptionDetails; /// Request message for LineItemService.GenerateDefaultLineItem. class GenerateDefaultLineItemRequest { + /// Whether this line item will serve European Union political ads. + /// + /// If contains_eu_political_ads has been set to + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then + /// this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if + /// not otherwise specified. This field can then be updated using the UI, API, + /// or Structured Data Files. *Warning*: Starting **September 8, 2025**, this + /// field must be set. If not, either the value + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned to the line + /// item if the parent advertiser has declared that it does not serve EU + /// political ads, or **the request will fail**. + /// Possible string values are: + /// - "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN" : Unknown. + /// - "CONTAINS_EU_POLITICAL_ADVERTISING" : Contains EU political advertising. + /// - "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" : Does not contain EU + /// political advertising. + core.String? containsEuPoliticalAds; + /// The display name of the line item. /// /// Must be UTF-8 encoded with a maximum size of 240 bytes. @@ -19673,6 +19734,7 @@ class GenerateDefaultLineItemRequest { MobileApp? mobileApp; GenerateDefaultLineItemRequest({ + this.containsEuPoliticalAds, this.displayName, this.insertionOrderId, this.lineItemType, @@ -19681,6 +19743,7 @@ class GenerateDefaultLineItemRequest { GenerateDefaultLineItemRequest.fromJson(core.Map json_) : this( + containsEuPoliticalAds: json_['containsEuPoliticalAds'] as core.String?, displayName: json_['displayName'] as core.String?, insertionOrderId: json_['insertionOrderId'] as core.String?, lineItemType: json_['lineItemType'] as core.String?, @@ -19693,6 +19756,8 @@ class GenerateDefaultLineItemRequest { ); core.Map toJson() => { + if (containsEuPoliticalAds != null) + 'containsEuPoliticalAds': containsEuPoliticalAds!, if (displayName != null) 'displayName': displayName!, if (insertionOrderId != null) 'insertionOrderId': insertionOrderId!, if (lineItemType != null) 'lineItemType': lineItemType!, @@ -21183,6 +21248,24 @@ class LineItem { /// Output only. core.String? campaignId; + /// Whether this line item will serve European Union political ads. + /// + /// If contains_eu_political_ads has been set to + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then + /// this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if + /// not otherwise specified. This field can then be updated using the UI, API, + /// or Structured Data Files. *Warning*: Starting **September 8, 2025**, this + /// field must be set when creating a new line item. If not, either the value + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned if the parent + /// advertiser has declared that it does not serve EU political ads, or **the + /// `advertisers.lineItems.create` request will fail**. + /// Possible string values are: + /// - "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN" : Unknown. + /// - "CONTAINS_EU_POLITICAL_ADVERTISING" : Contains EU political advertising. + /// - "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" : Does not contain EU + /// political advertising. + core.String? containsEuPoliticalAds; + /// The conversion tracking setting of the line item. ConversionCountingConfig? conversionCounting; @@ -21408,6 +21491,7 @@ class LineItem { this.bidStrategy, this.budget, this.campaignId, + this.containsEuPoliticalAds, this.conversionCounting, this.creativeIds, this.displayName, @@ -21447,6 +21531,7 @@ class LineItem { ) : null, campaignId: json_['campaignId'] as core.String?, + containsEuPoliticalAds: json_['containsEuPoliticalAds'] as core.String?, conversionCounting: json_.containsKey('conversionCounting') ? ConversionCountingConfig.fromJson( @@ -21538,6 +21623,8 @@ class LineItem { if (bidStrategy != null) 'bidStrategy': bidStrategy!, if (budget != null) 'budget': budget!, if (campaignId != null) 'campaignId': campaignId!, + if (containsEuPoliticalAds != null) + 'containsEuPoliticalAds': containsEuPoliticalAds!, if (conversionCounting != null) 'conversionCounting': conversionCounting!, if (creativeIds != null) 'creativeIds': creativeIds!, if (displayName != null) 'displayName': displayName!, diff --git a/generated/googleapis/lib/dlp/v2.dart b/generated/googleapis/lib/dlp/v2.dart index 6aca1ee53..bb8ff79b8 100644 --- a/generated/googleapis/lib/dlp/v2.dart +++ b/generated/googleapis/lib/dlp/v2.dart @@ -11621,8 +11621,8 @@ class GooglePrivacyDlpV2DataProfileAction { /// analytics\](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download). GooglePrivacyDlpV2PublishToChronicle? publishToChronicle; - /// Publishes a portion of each profile to Dataplex Catalog with the aspect - /// type Sensitive Data Protection Profile. + /// Publishes a portion of each profile to Dataplex Universal Catalog with the + /// aspect type Sensitive Data Protection Profile. GooglePrivacyDlpV2PublishToDataplexCatalog? publishToDataplexCatalog; /// Publishes findings to Security Command Center for each data profile. @@ -16530,6 +16530,11 @@ class GooglePrivacyDlpV2InfoTypeDescription { /// A sample that is a true positive for this infoType. core.String? example; + /// Locations at which this feature can be used. + /// + /// May change over time. + GooglePrivacyDlpV2LocationSupport? locationSupport; + /// Internal name of the infoType. core.String? name; @@ -16556,6 +16561,7 @@ class GooglePrivacyDlpV2InfoTypeDescription { this.description, this.displayName, this.example, + this.locationSupport, this.name, this.sensitivityScore, this.specificInfoTypes, @@ -16576,6 +16582,13 @@ class GooglePrivacyDlpV2InfoTypeDescription { description: json_['description'] as core.String?, displayName: json_['displayName'] as core.String?, example: json_['example'] as core.String?, + locationSupport: + json_.containsKey('locationSupport') + ? GooglePrivacyDlpV2LocationSupport.fromJson( + json_['locationSupport'] + as core.Map, + ) + : null, name: json_['name'] as core.String?, sensitivityScore: json_.containsKey('sensitivityScore') @@ -16607,6 +16620,7 @@ class GooglePrivacyDlpV2InfoTypeDescription { if (description != null) 'description': description!, if (displayName != null) 'displayName': displayName!, if (example != null) 'example': example!, + if (locationSupport != null) 'locationSupport': locationSupport!, if (name != null) 'name': name!, if (sensitivityScore != null) 'sensitivityScore': sensitivityScore!, if (specificInfoTypes != null) 'specificInfoTypes': specificInfoTypes!, @@ -18674,6 +18688,45 @@ class GooglePrivacyDlpV2Location { }; } +/// Locations at which a feature can be used. +class GooglePrivacyDlpV2LocationSupport { + /// Specific locations where the feature may be used. + /// + /// Examples: us-central1, us, asia, global If scope is ANY_LOCATION, no + /// regions will be listed. + core.List? locations; + + /// The current scope for location on this feature. + /// + /// This may expand over time. + /// Possible string values are: + /// - "REGIONALIZATION_SCOPE_UNSPECIFIED" : Invalid. + /// - "REGIONAL" : Feature may be used with one or more regions. See locations + /// for details. + /// - "ANY_LOCATION" : Feature may be used anywhere. Default value. + core.String? regionalizationScope; + + GooglePrivacyDlpV2LocationSupport({ + this.locations, + this.regionalizationScope, + }); + + GooglePrivacyDlpV2LocationSupport.fromJson(core.Map json_) + : this( + locations: + (json_['locations'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + regionalizationScope: json_['regionalizationScope'] as core.String?, + ); + + core.Map toJson() => { + if (locations != null) 'locations': locations!, + if (regionalizationScope != null) + 'regionalizationScope': regionalizationScope!, + }; +} + /// Job trigger option for hybrid jobs. /// /// Jobs must be manually created and finished. @@ -19825,14 +19878,14 @@ typedef GooglePrivacyDlpV2PublishSummaryToCscc = $Empty; /// Message expressing intention to publish to Google Security Operations. typedef GooglePrivacyDlpV2PublishToChronicle = $Empty; -/// Create Dataplex Catalog aspects for profiled resources with the aspect type -/// Sensitive Data Protection Profile. +/// Create Dataplex Universal Catalog aspects for profiled resources with the +/// aspect type Sensitive Data Protection Profile. /// /// To learn more about aspects, see /// https://cloud.google.com/sensitive-data-protection/docs/add-aspects. class GooglePrivacyDlpV2PublishToDataplexCatalog { - /// Whether creating a Dataplex Catalog aspect for a profiled resource should - /// lower the risk of the profile for that resource. + /// Whether creating a Dataplex Universal Catalog aspect for a profiled + /// resource should lower the risk of the profile for that resource. /// /// This also lowers the data risk of resources at the lower levels of the /// resource hierarchy. For example, reducing the data risk of a table data @@ -21945,8 +21998,9 @@ class GooglePrivacyDlpV2Tag { /// The namespaced name for the tag value to attach to Google Cloud resources. /// /// Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for - /// example, "123456/environment/prod". This is only set for Google Cloud - /// resources. + /// example, "123456/environment/prod" for an organization parent, or + /// "my-project/environment/prod" for a project parent. This is only set for + /// Google Cloud resources. core.String? namespacedTagValue; /// The value of a tag key-value pair. @@ -22076,7 +22130,8 @@ class GooglePrivacyDlpV2TagValue { /// The namespaced name for the tag value to attach to resources. /// /// Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for - /// example, "123456/environment/prod". + /// example, "123456/environment/prod" for an organization parent, or + /// "my-project/environment/prod" for a project parent. core.String? namespacedValue; GooglePrivacyDlpV2TagValue({this.namespacedValue}); diff --git a/generated/googleapis/lib/dns/v1.dart b/generated/googleapis/lib/dns/v1.dart index 166067d1d..27bf0cb95 100644 --- a/generated/googleapis/lib/dns/v1.dart +++ b/generated/googleapis/lib/dns/v1.dart @@ -979,7 +979,7 @@ class PoliciesResource { PoliciesResource(commons.ApiRequester client) : _requester = client; - /// Creates a new Policy. + /// Creates a new policy. /// /// [request] - The metadata request object. /// @@ -1025,7 +1025,7 @@ class PoliciesResource { return Policy.fromJson(response_ as core.Map); } - /// Deletes a previously created Policy. + /// Deletes a previously created policy. /// /// Fails if the policy is still being referenced by a network. /// @@ -1073,7 +1073,7 @@ class PoliciesResource { ); } - /// Fetches the representation of an existing Policy. + /// Fetches the representation of an existing policy. /// /// Request parameters: /// @@ -1121,7 +1121,7 @@ class PoliciesResource { return Policy.fromJson(response_ as core.Map); } - /// Enumerates all Policies associated with a project. + /// Enumerates all policies associated with a project. /// /// Request parameters: /// @@ -1168,7 +1168,7 @@ class PoliciesResource { ); } - /// Applies a partial update to an existing Policy. + /// Applies a partial update to an existing policy. /// /// [request] - The metadata request object. /// @@ -1223,7 +1223,7 @@ class PoliciesResource { ); } - /// Updates an existing Policy. + /// Updates an existing policy. /// /// [request] - The metadata request object. /// @@ -1519,13 +1519,14 @@ class ResourceRecordSetsResource { /// unspecified, the server decides how many results to return. /// /// [name] - Restricts the list to return only records with this fully - /// qualified domain name. + /// qualified domain name. Mutually exclusive with the {@code filter} field. /// /// [pageToken] - Optional. A tag returned by a previous list request that was /// truncated. Use this parameter to continue a previous list request. /// /// [type] - Restricts the list to return only records of this type. If - /// present, the "name" parameter must also be present. + /// present, the "name" parameter must also be present. Mutually exclusive + /// with the {@code filter} field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -3965,7 +3966,7 @@ class Policy { /// Has no effect on the policy's function. core.String? description; - /// Configurations related to DNS64 for this Policy. + /// Configurations related to DNS64 for this policy. PolicyDns64Config? dns64Config; /// Allows networks bound to this policy to receive DNS queries sent by VMs or @@ -4155,7 +4156,8 @@ class PolicyDns64Config { } class PolicyDns64ConfigScope { - /// Controls whether DNS64 is enabled globally at the network level. + /// Controls whether DNS64 is enabled globally for all networks bound to the + /// policy. core.bool? allQueries; core.String? kind; diff --git a/generated/googleapis/lib/documentai/v1.dart b/generated/googleapis/lib/documentai/v1.dart index 97b42b5e8..9353e1c4f 100644 --- a/generated/googleapis/lib/documentai/v1.dart +++ b/generated/googleapis/lib/documentai/v1.dart @@ -227,9 +227,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -2474,6 +2474,18 @@ class GoogleCloudDocumentaiV1DocumentEntity { /// Optional. core.String? mentionText; + /// Specifies how the entity's value is obtained. + /// + /// Optional. + /// Possible string values are: + /// - "METHOD_UNSPECIFIED" : When the method is not specified, it should be + /// treated as `EXTRACT`. + /// - "EXTRACT" : The entity's value is directly extracted as-is from the + /// document text. + /// - "DERIVE" : The entity's value is derived through inference and is not + /// necessarily an exact text extraction from the document. + core.String? method; + /// Normalized entity value. /// /// Absent if the extracted value could not be converted or the type (e.g. @@ -2523,6 +2535,7 @@ class GoogleCloudDocumentaiV1DocumentEntity { this.id, this.mentionId, this.mentionText, + this.method, this.normalizedValue, this.pageAnchor, this.properties, @@ -2538,6 +2551,7 @@ class GoogleCloudDocumentaiV1DocumentEntity { id: json_['id'] as core.String?, mentionId: json_['mentionId'] as core.String?, mentionText: json_['mentionText'] as core.String?, + method: json_['method'] as core.String?, normalizedValue: json_.containsKey('normalizedValue') ? GoogleCloudDocumentaiV1DocumentEntityNormalizedValue.fromJson( @@ -2580,6 +2594,7 @@ class GoogleCloudDocumentaiV1DocumentEntity { if (id != null) 'id': id!, if (mentionId != null) 'mentionId': mentionId!, if (mentionText != null) 'mentionText': mentionText!, + if (method != null) 'method': method!, if (normalizedValue != null) 'normalizedValue': normalizedValue!, if (pageAnchor != null) 'pageAnchor': pageAnchor!, if (properties != null) 'properties': properties!, diff --git a/generated/googleapis/lib/drive/v2.dart b/generated/googleapis/lib/drive/v2.dart index 4efe502da..0f40371a2 100644 --- a/generated/googleapis/lib/drive/v2.dart +++ b/generated/googleapis/lib/drive/v2.dart @@ -2009,12 +2009,12 @@ class FilesResource { /// Lists the user's files. /// - /// This method accepts the `q` parameter, which is a search query combining - /// one or more search terms. For more information, see the \[Search for files - /// & folders\](/workspace/drive/api/guides/search-files) guide. *Note:* This - /// method returns *all* files by default, including trashed files. If you - /// don't want trashed files to appear in the list, use the `trashed=false` - /// query parameter to remove trashed files from the results. + /// For more information, see \[Search for files and + /// folders\](/workspace/drive/api/guides/search-files). This method accepts + /// the `q` parameter, which is a search query combining one or more search + /// terms. This method returns *all* files by default, including trashed + /// files. If you don't want trashed files to appear in the list, use the + /// `trashed=false` query parameter to remove trashed files from the results. /// /// Request parameters: /// @@ -2563,17 +2563,19 @@ class FilesResource { return File.fromJson(response_ as core.Map); } - /// Updates a file's metadata and/or content. + /// Updates a file's metadata, content, or both. /// /// When calling this method, only populate fields in the request that you /// want to modify. When updating fields, some fields might be changed /// automatically, such as `modifiedDate`. This method supports patch /// semantics. This method supports an * / upload* URI and accepts uploaded /// media with the following characteristics: - *Maximum file size:* 5,120 GB - /// - *Accepted Media MIME types:*`* / * ` Note: Specify a valid MIME type, - /// rather than the literal `* / * ` value. The literal `* / * ` is only used - /// to indicate that any valid MIME type can be uploaded. For more information - /// on uploading files, see \[Upload file + /// - *Accepted Media MIME types:* `* / * ` (Specify a valid MIME type, rather + /// than the literal `* / * ` value. The literal `* / * ` is only used to + /// indicate that any valid MIME type can be uploaded. For more information, + /// see \[Google Workspace and Google Drive supported MIME + /// types\](/workspace/drive/api/guides/mime-types).) For more information on + /// uploading files, see \[Upload file /// data\](/workspace/drive/api/guides/manage-uploads). /// /// [request] - The metadata request object. @@ -5667,7 +5669,7 @@ class ChildReference { }; } -/// The context of the file which is being commented on. +/// Context of a file which is being commented on. class CommentContext { /// The MIME type of the context snippet. core.String? type; @@ -5693,26 +5695,17 @@ class CommentContext { } /// A comment on a file in Google Drive. -/// -/// Some resource methods (such as `comments.update`) require a `commentId`. Use -/// the `comments.list` method to retrieve the ID for a comment in a file. class Comment { /// A region of the document represented as a JSON string. /// /// For details on defining anchor properties, refer to - /// [Add comments and replies](https://developers.google.com/workspace/drive/api/v2/manage-comments). + /// [Manage comments and replies](https://developers.google.com/workspace/drive/api/v3/manage-comments). core.String? anchor; - /// The author of the comment. - /// - /// The author's email address and permission ID will not be populated. - /// - /// Output only. + /// The user who wrote this comment. User? author; /// The ID of the comment. - /// - /// Output only. core.String? commentId; /// The plain text content used to create this comment. @@ -5721,7 +5714,7 @@ class Comment { /// edits to a comment's content. core.String? content; - /// The context of the file which is being commented on. + /// Context of a file which is being commented on. CommentContext? context; /// The date when this comment was first created. @@ -5731,50 +5724,34 @@ class Comment { /// /// If a comment has been deleted the content will be cleared and this will /// only represent a comment that once existed. - /// - /// Output only. core.bool? deleted; /// The file which this comment is addressing. - /// - /// Output only. core.String? fileId; /// The title of the file which this comment is addressing. - /// - /// Output only. core.String? fileTitle; /// HTML formatted content for this comment. - /// - /// Output only. core.String? htmlContent; - /// This is always `drive#comment`. - /// - /// Output only. + /// This is always drive#comment. core.String? kind; /// The date when this comment or any of its replies were last modified. core.DateTime? modifiedDate; /// Replies to this post. - /// - /// Output only. core.List? replies; /// A link back to this comment. - /// - /// Output only. core.String? selfLink; /// The status of this comment. /// /// Status can be changed by posting a reply to a comment with the desired - /// status. * `open` - The comment is still open. * `resolved` - The comment - /// has been resolved by one of its replies. - /// - /// Output only. + /// status. Possible values are: * `open` - The comment is still open. * + /// `resolved` - The comment has been resolved by one of its replies. core.String? status; Comment({ @@ -5866,7 +5843,7 @@ class CommentList { /// additional page of results should be fetched. core.List? items; - /// This is always `drive#commentList`. + /// This is always drive#commentList. core.String? kind; /// A link to the next page of comments. @@ -5915,16 +5892,9 @@ class CommentList { }; } -/// A comment on a file in Google Drive. -/// -/// Some resource methods (such as `replies.update`) require a `replyId`. Use -/// the `replies.list` method to retrieve the ID for a reply. +/// A reply to a comment on a file in Google Drive. class CommentReply { - /// The author of the reply. - /// - /// The author's email address and permission ID will not be populated. - /// - /// Output only. + /// The user who wrote this reply. User? author; /// The plain text content used to create this reply. @@ -5941,31 +5911,23 @@ class CommentReply { /// /// If a reply has been deleted the content will be cleared and this will only /// represent a reply that once existed. - /// - /// Output only. core.bool? deleted; /// HTML formatted content for this reply. - /// - /// Output only. core.String? htmlContent; - /// This is always `drive#commentReply`. - /// - /// Output only. + /// This is always drive#commentReply. core.String? kind; /// The date when this reply was last modified. core.DateTime? modifiedDate; /// The ID of the reply. - /// - /// Output only. core.String? replyId; /// The action this reply performed to the parent comment. /// - /// When creating a new reply this is the action to be perform to the parent + /// When creating a new reply this is the action to be perform tSo the parent /// comment. Possible values are: * `resolve` - To resolve a comment. * /// `reopen` - To reopen (un-resolve) a comment. core.String? verb; diff --git a/generated/googleapis/lib/drive/v3.dart b/generated/googleapis/lib/drive/v3.dart index 282c66742..c38096c7c 100644 --- a/generated/googleapis/lib/drive/v3.dart +++ b/generated/googleapis/lib/drive/v3.dart @@ -174,13 +174,16 @@ class AccessproposalsResource { AccessproposalsResource(commons.ApiRequester client) : _requester = client; - /// Retrieves an AccessProposal by ID. + /// Retrieves an access proposal by ID. + /// + /// For more information, see + /// [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access). /// /// Request parameters: /// - /// [fileId] - Required. The id of the item the request is on. + /// [fileId] - Required. The ID of the item the request is on. /// - /// [proposalId] - Required. The id of the access proposal to resolve. + /// [proposalId] - Required. The ID of the access proposal to resolve. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -217,16 +220,18 @@ class AccessproposalsResource { ); } - /// List the AccessProposals on a file. + /// List the access proposals on a file. /// - /// Note: Only approvers are able to list AccessProposals on a file. If the - /// user is not an approver, returns a 403. + /// For more information, see + /// [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access). + /// Note: Only approvers are able to list access proposals on a file. If the + /// user isn't an approver, a 403 error is returned. /// /// Request parameters: /// - /// [fileId] - Required. The id of the item the request is on. + /// [fileId] - Required. The ID of the item the request is on. /// - /// [pageSize] - Optional. The number of results per page + /// [pageSize] - Optional. The number of results per page. /// /// [pageToken] - Optional. The continuation token on the list of access /// requests. @@ -266,15 +271,18 @@ class AccessproposalsResource { ); } - /// Used to approve or deny an Access Proposal. + /// Approves or denies an access proposal. + /// + /// For more information, see + /// [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access). /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [fileId] - Required. The id of the item the request is on. + /// [fileId] - Required. The ID of the item the request is on. /// - /// [proposalId] - Required. The id of the access proposal to resolve. + /// [proposalId] - Required. The ID of the access proposal to resolve. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1018,6 +1026,9 @@ class DrivesResource { /// Creates a shared drive. /// + /// For more information, see + /// [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives). + /// /// [request] - The metadata request object. /// /// Request parameters: @@ -1062,7 +1073,9 @@ class DrivesResource { /// Permanently deletes a shared drive for which the user is an `organizer`. /// - /// The shared drive cannot contain any untrashed items. + /// The shared drive cannot contain any untrashed items. For more information, + /// see + /// [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives). /// /// Request parameters: /// @@ -1110,6 +1123,9 @@ class DrivesResource { /// Gets a shared drive's metadata by ID. /// + /// For more information, see + /// [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives). + /// /// Request parameters: /// /// [driveId] - The ID of the shared drive. @@ -1151,6 +1167,9 @@ class DrivesResource { /// Hides a shared drive from the default view. /// + /// For more information, see + /// [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives). + /// /// Request parameters: /// /// [driveId] - The ID of the shared drive. @@ -1237,6 +1256,9 @@ class DrivesResource { /// Restores a shared drive to the default view. /// + /// For more information, see + /// [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives). + /// /// Request parameters: /// /// [driveId] - The ID of the shared drive. @@ -1271,6 +1293,9 @@ class DrivesResource { /// Updates the metadata for a shared drive. /// + /// For more information, see + /// [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives). + /// /// [request] - The metadata request object. /// /// Request parameters: @@ -1324,13 +1349,16 @@ class FilesResource { /// Creates a copy of a file and applies any requested updates with patch /// semantics. /// + /// For more information, see + /// [Create and manage files](https://developers.google.com/workspace/drive/api/guides/create-file). + /// /// [request] - The metadata request object. /// /// Request parameters: /// /// [fileId] - The ID of the file. /// - /// [enforceSingleParent] - Deprecated. Copying files into multiple folders is + /// [enforceSingleParent] - Deprecated: Copying files into multiple folders is /// no longer supported. Use shortcuts instead. /// /// [ignoreDefaultVisibility] - Whether to ignore the domain's default @@ -1343,9 +1371,9 @@ class FilesResource { /// the `labelInfo` part of the response. /// /// [includePermissionsForView] - Specifies which additional view's - /// permissions to include in the response. Only 'published' is supported. + /// permissions to include in the response. Only `published` is supported. /// - /// [keepRevisionForever] - Whether to set the 'keepForever' field in the new + /// [keepRevisionForever] - Whether to set the `keepForever` field in the new /// head revision. This is only applicable to files with binary content in /// Google Drive. Only 200 revisions for the file can be kept forever. If the /// limit is reached, try deleting pinned revisions. @@ -1411,24 +1439,28 @@ class FilesResource { return File.fromJson(response_ as core.Map); } - /// Creates a new file. - /// - /// This method supports an * / upload* URI and accepts uploaded media with - /// the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted - /// Media MIME types:*`* / * ` Note: Specify a valid MIME type, rather than - /// the literal `* / * ` value. The literal `* / * ` is only used to indicate - /// that any valid MIME type can be uploaded. For more information on + /// Creates a file. + /// + /// For more information, see \[Create and manage + /// files\](/workspace/drive/api/guides/create-file). This method supports an + /// * / upload* URI and accepts uploaded media with the following + /// characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME + /// types:* `* / * ` (Specify a valid MIME type, rather than the literal `* / + /// * ` value. The literal `* / * ` is only used to indicate that any valid + /// MIME type can be uploaded. For more information, see \[Google Workspace + /// and Google Drive supported MIME + /// types\](/workspace/drive/api/guides/mime-types).) For more information on /// uploading files, see \[Upload file /// data\](/workspace/drive/api/guides/manage-uploads). Apps creating - /// shortcuts with `files.create` must specify the MIME type + /// shortcuts with the `create` method must specify the MIME type /// `application/vnd.google-apps.shortcut`. Apps should specify a file /// extension in the `name` property when inserting files with the API. For /// example, an operation to insert a JPEG file should specify something like /// `"name": "cat.jpg"` in the metadata. Subsequent `GET` requests include the /// read-only `fileExtension` property populated with the extension originally - /// specified in the `title` property. When a Google Drive user requests to + /// specified in the `name` property. When a Google Drive user requests to /// download a file, or when the file is downloaded through the sync client, - /// Drive builds a full filename (with extension) based on the title. In cases + /// Drive builds a full filename (with extension) based on the name. In cases /// where the extension is missing, Drive attempts to determine the extension /// based on the file's MIME type. /// @@ -1436,7 +1468,7 @@ class FilesResource { /// /// Request parameters: /// - /// [enforceSingleParent] - Deprecated. Creating files in multiple folders is + /// [enforceSingleParent] - Deprecated: Creating files in multiple folders is /// no longer supported. /// /// [ignoreDefaultVisibility] - Whether to ignore the domain's default @@ -1449,9 +1481,9 @@ class FilesResource { /// the `labelInfo` part of the response. /// /// [includePermissionsForView] - Specifies which additional view's - /// permissions to include in the response. Only 'published' is supported. + /// permissions to include in the response. Only `published` is supported. /// - /// [keepRevisionForever] - Whether to set the 'keepForever' field in the new + /// [keepRevisionForever] - Whether to set the `keepForever` field in the new /// head revision. This is only applicable to files with binary content in /// Google Drive. Only 200 revisions for the file can be kept forever. If the /// limit is reached, try deleting pinned revisions. @@ -1542,6 +1574,8 @@ class FilesResource { /// Permanently deletes a file owned by the user without moving it to the /// trash. /// + /// For more information, see + /// [Trash or delete files and folders](https://developers.google.com/workspace/drive/api/guides/delete). /// If the file belongs to a shared drive, the user must be an `organizer` on /// the parent folder. If the target is a folder, all descendants owned by the /// user are also deleted. @@ -1550,9 +1584,9 @@ class FilesResource { /// /// [fileId] - The ID of the file. /// - /// [enforceSingleParent] - Deprecated: If an item is not in a shared drive - /// and its last parent is deleted but the item itself is not, the item will - /// be placed under its owner's root. + /// [enforceSingleParent] - Deprecated: If an item isn't in a shared drive and + /// its last parent is deleted but the item itself isn't, the item will be + /// placed under its owner's root. /// /// [supportsAllDrives] - Whether the requesting application supports both My /// Drives and shared drives. @@ -1594,8 +1628,10 @@ class FilesResource { ); } - /// Downloads content of a file. + /// Downloads the content of a file. /// + /// For more information, see + /// [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads). /// Operations are valid for 24 hours from the time of creation. /// /// Request parameters: @@ -1604,11 +1640,10 @@ class FilesResource { /// /// [mimeType] - Optional. The MIME type the file should be downloaded as. /// This field can only be set when downloading Google Workspace documents. - /// See \[Export MIME types for Google Workspace - /// documents\](/drive/api/guides/ref-export-formats) for the list of - /// supported MIME types. If not set, a Google Workspace document is - /// downloaded with a default MIME type. The default MIME type might change in - /// the future. + /// For a list of supported MIME types, see \[Export MIME types for Google + /// Workspace documents\](/workspace/drive/api/guides/ref-export-formats). If + /// not set, a Google Workspace document is downloaded with a default MIME + /// type. The default MIME type might change in the future. /// /// [revisionId] - Optional. The revision ID of the file to download. This /// field can only be set when downloading blob files, Google Docs, and Google @@ -1649,13 +1684,16 @@ class FilesResource { /// Permanently deletes all of the user's trashed files. /// + /// For more information, see + /// [Trash or delete files and folders](https://developers.google.com/workspace/drive/api/guides/delete). + /// /// Request parameters: /// /// [driveId] - If set, empties the trash of the provided shared drive. /// - /// [enforceSingleParent] - Deprecated: If an item is not in a shared drive - /// and its last parent is deleted but the item itself is not, the item will - /// be placed under its owner's root. + /// [enforceSingleParent] - Deprecated: If an item isn't in a shared drive and + /// its last parent is deleted but the item itself isn't, the item will be + /// placed under its owner's root. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1690,14 +1728,18 @@ class FilesResource { /// Exports a Google Workspace document to the requested MIME type and returns /// exported byte content. /// - /// Note that the exported content is limited to 10MB. + /// For more information, see + /// [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads). + /// Note that the exported content is limited to 10 MB. /// /// Request parameters: /// /// [fileId] - The ID of the file. /// /// [mimeType] - Required. The MIME type of the format requested for this - /// export. + /// export. For a list of supported MIME types, see \[Export MIME types for + /// Google Workspace + /// documents\](/workspace/drive/api/guides/ref-export-formats). /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1740,17 +1782,23 @@ class FilesResource { /// Generates a set of file IDs which can be provided in create or copy /// requests. /// + /// For more information, see + /// [Create and manage files](https://developers.google.com/workspace/drive/api/guides/create-file). + /// /// Request parameters: /// /// [count] - The number of IDs to return. /// Value must be between "1" and "1000". /// - /// [space] - The space in which the IDs can be used to create new files. - /// Supported values are 'drive' and 'appDataFolder'. (Default: 'drive') + /// [space] - The space in which the IDs can be used to create files. + /// Supported values are `drive` and `appDataFolder`. (Default: `drive`.) For + /// more information, see + /// [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization). /// /// [type] - The type of items which the IDs can be used for. Supported values - /// are 'files' and 'shortcuts'. Note that 'shortcuts' are only supported in - /// the `drive` 'space'. (Default: 'files') + /// are `files` and `shortcuts`. Note that `shortcuts` are only supported in + /// the `drive` `space`. (Default: `files`.) For more information, see + /// [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization). /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1789,12 +1837,13 @@ class FilesResource { /// Gets a file's metadata or content by ID. /// - /// If you provide the URL parameter `alt=media`, then the response includes - /// the file contents in the response body. Downloading content with - /// `alt=media` only works if the file is stored in Drive. To download Google - /// Docs, Sheets, and Slides use + /// For more information, see \[Search for files and + /// folders\](/workspace/drive/api/guides/search-files). If you provide the + /// URL parameter `alt=media`, then the response includes the file contents in + /// the response body. Downloading content with `alt=media` only works if the + /// file is stored in Drive. To download Google Docs, Sheets, and Slides use /// \[`files.export`\](/workspace/drive/api/reference/rest/v3/files/export) - /// instead. For more information, see \[Download & export + /// instead. For more information, see \[Download and export /// files\](/workspace/drive/api/guides/manage-downloads). /// /// Request parameters: @@ -1810,7 +1859,7 @@ class FilesResource { /// the `labelInfo` part of the response. /// /// [includePermissionsForView] - Specifies which additional view's - /// permissions to include in the response. Only 'published' is supported. + /// permissions to include in the response. Only `published` is supported. /// /// [supportsAllDrives] - Whether the requesting application supports both My /// Drives and shared drives. @@ -1874,22 +1923,23 @@ class FilesResource { /// Lists the user's files. /// - /// This method accepts the `q` parameter, which is a search query combining - /// one or more search terms. For more information, see the \[Search for files - /// & folders\](/workspace/drive/api/guides/search-files) guide. *Note:* This - /// method returns *all* files by default, including trashed files. If you - /// don't want trashed files to appear in the list, use the `trashed=false` - /// query parameter to remove trashed files from the results. + /// For more information, see \[Search for files and + /// folders\](/workspace/drive/api/guides/search-files). This method accepts + /// the `q` parameter, which is a search query combining one or more search + /// terms. This method returns *all* files by default, including trashed + /// files. If you don't want trashed files to appear in the list, use the + /// `trashed=false` query parameter to remove trashed files from the results. /// /// Request parameters: /// - /// [corpora] - Bodies of items (files/documents) to which the query applies. - /// Supported bodies are 'user', 'domain', 'drive', and 'allDrives'. Prefer - /// 'user' or 'drive' to 'allDrives' for efficiency. By default, corpora is - /// set to 'user'. However, this can change depending on the filter set - /// through the 'q' parameter. + /// [corpora] - Bodies of items (files or documents) to which the query + /// applies. Supported bodies are: * `user` * `domain` * `drive` * `allDrives` + /// Prefer `user` or `drive` to `allDrives` for efficiency. By default, + /// corpora is set to `user`. However, this can change depending on the filter + /// set through the `q` parameter. For more information, see + /// [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization). /// - /// [corpus] - Deprecated: The source of files to list. Use 'corpora' instead. + /// [corpus] - Deprecated: The source of files to list. Use `corpora` instead. /// Possible string values are: /// - "domain" : Files shared to the user's domain. /// - "user" : Files owned by or shared to the user. @@ -1903,7 +1953,7 @@ class FilesResource { /// the `labelInfo` part of the response. /// /// [includePermissionsForView] - Specifies which additional view's - /// permissions to include in the response. Only 'published' is supported. + /// permissions to include in the response. Only `published` is supported. /// /// [includeTeamDriveItems] - Deprecated: Use `includeItemsFromAllDrives` /// instead. @@ -1921,7 +1971,7 @@ class FilesResource { /// shared with the user, if applicable. * `starred`: Whether the user has /// starred the file. * `viewedByMeTime`: The last time the file was viewed by /// the user. Each key sorts ascending by default, but can be reversed with - /// the 'desc' modifier. Example usage: `?orderBy=folder,modifiedTime + /// the `desc` modifier. Example usage: `?orderBy=folder,modifiedTime /// desc,name`. /// /// [pageSize] - The maximum number of files to return per page. Partial or @@ -1930,14 +1980,17 @@ class FilesResource { /// Value must be between "1" and "1000". /// /// [pageToken] - The token for continuing a previous list request on the next - /// page. This should be set to the value of 'nextPageToken' from the previous + /// page. This should be set to the value of `nextPageToken` from the previous /// response. /// - /// [q] - A query for filtering the file results. See the "Search for files & - /// folders" guide for supported syntax. + /// [q] - A query for filtering the file results. For supported syntax, see + /// \[Search for files and + /// folders\](/workspace/drive/api/guides/search-files). /// /// [spaces] - A comma-separated list of spaces to query within the corpora. - /// Supported values are 'drive' and 'appDataFolder'. + /// Supported values are `drive` and `appDataFolder`. For more information, + /// see + /// [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization). /// /// [supportsAllDrives] - Whether the requesting application supports both My /// Drives and shared drives. @@ -2010,6 +2063,9 @@ class FilesResource { /// Lists the labels on a file. /// + /// For more information, see + /// [List labels on a file](https://developers.google.com/workspace/drive/api/guides/list-labels). + /// /// Request parameters: /// /// [fileId] - The ID for the file. @@ -2019,7 +2075,7 @@ class FilesResource { /// Value must be between "1" and "100". /// /// [pageToken] - The token for continuing a previous list request on the next - /// page. This should be set to the value of 'nextPageToken' from the previous + /// page. This should be set to the value of `nextPageToken` from the previous /// response. /// /// [$fields] - Selector specifying which fields to include in a partial @@ -2056,6 +2112,8 @@ class FilesResource { /// Modifies the set of labels applied to a file. /// + /// For more information, see + /// [Set a label field on a file](https://developers.google.com/workspace/drive/api/guides/set-label). /// Returns a list of the labels that were added or modified. /// /// [request] - The metadata request object. @@ -2097,17 +2155,19 @@ class FilesResource { ); } - /// Updates a file's metadata and/or content. + /// Updates a file's metadata, content, or both. /// /// When calling this method, only populate fields in the request that you /// want to modify. When updating fields, some fields might be changed /// automatically, such as `modifiedDate`. This method supports patch /// semantics. This method supports an * / upload* URI and accepts uploaded /// media with the following characteristics: - *Maximum file size:* 5,120 GB - /// - *Accepted Media MIME types:*`* / * ` Note: Specify a valid MIME type, - /// rather than the literal `* / * ` value. The literal `* / * ` is only used - /// to indicate that any valid MIME type can be uploaded. For more information - /// on uploading files, see \[Upload file + /// - *Accepted Media MIME types:* `* / * ` (Specify a valid MIME type, rather + /// than the literal `* / * ` value. The literal `* / * ` is only used to + /// indicate that any valid MIME type can be uploaded. For more information, + /// see \[Google Workspace and Google Drive supported MIME + /// types\](/workspace/drive/api/guides/mime-types).) For more information on + /// uploading files, see \[Upload file /// data\](/workspace/drive/api/guides/manage-uploads). /// /// [request] - The metadata request object. @@ -2125,9 +2185,9 @@ class FilesResource { /// the `labelInfo` part of the response. /// /// [includePermissionsForView] - Specifies which additional view's - /// permissions to include in the response. Only 'published' is supported. + /// permissions to include in the response. Only `published` is supported. /// - /// [keepRevisionForever] - Whether to set the 'keepForever' field in the new + /// [keepRevisionForever] - Whether to set the `keepForever` field in the new /// head revision. This is only applicable to files with binary content in /// Google Drive. Only 200 revisions for the file can be kept forever. If the /// limit is reached, try deleting pinned revisions. @@ -2223,6 +2283,9 @@ class FilesResource { /// Subscribes to changes to a file. /// + /// For more information, see + /// [Notifications for resource changes](https://developers.google.com/workspace/drive/api/guides/push). + /// /// [request] - The metadata request object. /// /// Request parameters: @@ -2238,7 +2301,7 @@ class FilesResource { /// the `labelInfo` part of the response. /// /// [includePermissionsForView] - Specifies which additional view's - /// permissions to include in the response. Only 'published' is supported. + /// permissions to include in the response. Only `published` is supported. /// /// [supportsAllDrives] - Whether the requesting application supports both My /// Drives and shared drives. @@ -2361,7 +2424,7 @@ class PermissionsResource { /// `false`, parents are not changed. /// /// [sendNotificationEmail] - Whether to send a notification email when - /// sharing to users or groups. This defaults to true for users and groups, + /// sharing to users or groups. This defaults to `true` for users and groups, /// and is not allowed for other requests. It must not be disabled for /// ownership transfers. /// @@ -2996,7 +3059,9 @@ class RevisionsResource { /// /// You can only delete revisions for files with binary content in Google /// Drive, like images or videos. Revisions for other files, like Google Docs - /// or Sheets, and the last remaining file version can't be deleted. + /// or Sheets, and the last remaining file version can't be deleted. For more + /// information, see + /// [Manage file revisions](https://developers.google.com/drive/api/guides/manage-revisions). /// /// Request parameters: /// @@ -3037,6 +3102,9 @@ class RevisionsResource { /// Gets a revision's metadata or content by ID. /// + /// For more information, see + /// [Manage file revisions](https://developers.google.com/workspace/drive/api/guides/manage-revisions). + /// /// Request parameters: /// /// [fileId] - The ID of the file. @@ -3101,6 +3169,9 @@ class RevisionsResource { /// Lists a file's revisions. /// + /// For more information, see + /// [Manage file revisions](https://developers.google.com/workspace/drive/api/guides/manage-revisions). + /// /// Request parameters: /// /// [fileId] - The ID of the file. @@ -3148,6 +3219,9 @@ class RevisionsResource { /// Updates a revision with patch semantics. /// + /// For more information, see + /// [Manage file revisions](https://developers.google.com/workspace/drive/api/guides/manage-revisions). + /// /// [request] - The metadata request object. /// /// Request parameters: @@ -3679,27 +3753,30 @@ class About { }; } -/// The Access Proposal resource for outstanding access proposals on a file +/// Manage outstanding access proposals on a file. class AccessProposal { - /// The creation time + /// The creation time. core.String? createTime; - /// The file id that the proposal for access is on + /// The file ID that the proposal for access is on. core.String? fileId; - /// The id of the access proposal + /// The ID of the access proposal. core.String? proposalId; - /// The email address of the user that will receive permissions if accepted + /// The email address of the user that will receive permissions, if accepted. core.String? recipientEmailAddress; - /// The message that the requester added to the proposal + /// The message that the requester added to the proposal. core.String? requestMessage; - /// The email address of the requesting user + /// The email address of the requesting user. core.String? requesterEmailAddress; /// A wrapper for the role and view of an access proposal. + /// + /// For more information, see + /// [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles). core.List? rolesAndViews; AccessProposal({ @@ -3744,16 +3821,19 @@ class AccessProposal { } /// A wrapper for the role and view of an access proposal. +/// +/// For more information, see +/// [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles). class AccessProposalRoleAndView { - /// The role that was proposed by the requester New values may be added in the - /// future, but the following are currently possible: * `writer` * `commenter` - /// * `reader` + /// The role that was proposed by the requester. + /// + /// The supported values are: * `writer` * `commenter` * `reader` core.String? role; /// Indicates the view for this access proposal. /// - /// Only populated for proposals that belong to a view. `published` is the - /// only supported value. + /// Only populated for proposals that belong to a view. Only `published` is + /// supported. core.String? view; AccessProposalRoleAndView({this.role, this.view}); @@ -4467,7 +4547,7 @@ class ContentRestriction { /// The user who set the content restriction. /// - /// Only populated if `readOnly` is true. + /// Only populated if `readOnly=true`. /// /// Output only. User? restrictingUser; @@ -4542,7 +4622,7 @@ class DownloadRestriction { /// Whether download and copy is restricted for writers. /// - /// If true, download is also restricted for readers. + /// If `true`, download is also restricted for readers. core.bool? restrictedForWriters; DownloadRestriction({this.restrictedForReaders, this.restrictedForWriters}); @@ -4573,7 +4653,7 @@ class DownloadRestrictionsMetadata { /// The download restriction of the file applied directly by the owner or /// organizer. /// - /// This does not take into account shared drive settings or DLP rules. + /// This doesn't take into account shared drive settings or DLP rules. DownloadRestriction? itemDownloadRestriction; DownloadRestrictionsMetadata({ @@ -5157,6 +5237,8 @@ class DriveList { /// Capabilities the current user has on this file. /// /// Each capability corresponds to a fine-grained action that a user may take. +/// For more information, see +/// [Understand file capabilities](https://developers.google.com/workspace/drive/api/guides/manage-sharing#capabilities). /// /// Output only. class FileCapabilities { @@ -5169,7 +5251,7 @@ class FileCapabilities { /// Whether the current user can add children to this folder. /// - /// This is always false when the item is not a folder. + /// This is always `false` when the item isn't a folder. /// /// Output only. core.bool? canAddChildren; @@ -5177,7 +5259,7 @@ class FileCapabilities { /// Whether the current user can add a folder from another drive (different /// shared drive or My Drive) to this folder. /// - /// This is false when the item is not a folder. Only populated for items in + /// This is `false` when the item isn't a folder. Only populated for items in /// shared drives. /// /// Output only. @@ -5203,7 +5285,7 @@ class FileCapabilities { /// Output only. core.bool? canChangeItemDownloadRestriction; - /// Whether the current user can change the securityUpdateEnabled field on + /// Whether the current user can change the `securityUpdateEnabled` field on /// link share metadata. /// /// Output only. @@ -5223,8 +5305,7 @@ class FileCapabilities { /// Whether the current user can copy this file. /// /// For an item in a shared drive, whether the current user can copy - /// non-folder descendants of this item, or this item itself if it is not a - /// folder. + /// non-folder descendants of this item, or this item if it's not a folder. /// /// Output only. core.bool? canCopy; @@ -5236,7 +5317,7 @@ class FileCapabilities { /// Whether the current user can delete children of this folder. /// - /// This is false when the item is not a folder. Only populated for items in + /// This is `false` when the item isn't a folder. Only populated for items in /// shared drives. /// /// Output only. @@ -5264,7 +5345,7 @@ class FileCapabilities { /// Whether the current user can list the children of this folder. /// - /// This is always false when the item is not a folder. + /// This is always `false` when the item isn't a folder. /// /// Output only. core.bool? canListChildren; @@ -5277,7 +5358,7 @@ class FileCapabilities { /// Deprecated: Output only. /// /// Use one of `canModifyEditorContentRestriction`, - /// `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`. + /// `canModifyOwnerContentRestriction`, or `canRemoveContentRestriction`. @core.Deprecated( 'Not supported. Member documentation may have more information.', ) @@ -5303,7 +5384,7 @@ class FileCapabilities { /// Whether the current user can move children of this folder outside of the /// shared drive. /// - /// This is false when the item is not a folder. Only populated for items in + /// This is `false` when the item isn't a folder. Only populated for items in /// shared drives. /// /// Output only. @@ -5320,7 +5401,7 @@ class FileCapabilities { /// Whether the current user can move children of this folder within this /// drive. /// - /// This is false when the item is not a folder. Note that a request to move + /// This is `false` when the item isn't a folder. Note that a request to move /// the child may still fail depending on the current user's access to the /// child and to the destination folder. /// @@ -5347,7 +5428,7 @@ class FileCapabilities { /// changing its parent. /// /// Note that a request to change the parent of the item may still fail - /// depending on the new parent that is being added. + /// depending on the new parent that's being added. /// /// Output only. core.bool? canMoveItemOutOfDrive; @@ -5363,7 +5444,7 @@ class FileCapabilities { /// Whether the current user can move this item within this drive. /// /// Note that a request to change the parent of the item may still fail - /// depending on the new parent that is being added and the parent that is + /// depending on the new parent that's being added and the parent that is /// being removed. /// /// Output only. @@ -5401,7 +5482,7 @@ class FileCapabilities { /// Whether the current user can read the revisions resource of this file. /// /// For a shared drive item, whether revisions of non-folder descendants of - /// this item, or this item itself if it is not a folder, can be read. + /// this item, or this item if it's not a folder, can be read. /// /// Output only. core.bool? canReadRevisions; @@ -5416,13 +5497,13 @@ class FileCapabilities { /// Whether the current user can remove children from this folder. /// - /// This is always false when the item is not a folder. For a folder in a + /// This is always `false` when the item isn't a folder. For a folder in a /// shared drive, use `canDeleteChildren` or `canTrashChildren` instead. /// /// Output only. core.bool? canRemoveChildren; - /// Whether there is a content restriction on the file that can be removed by + /// Whether there's a content restriction on the file that can be removed by /// the current user. /// /// Output only. @@ -5453,7 +5534,7 @@ class FileCapabilities { /// Whether the current user can trash children of this folder. /// - /// This is false when the item is not a folder. Only populated for items in + /// This is `false` when the item isn't a folder. Only populated for items in /// shared drives. /// /// Output only. @@ -5653,7 +5734,8 @@ class FileCapabilities { /// /// This will only be used if Google Drive cannot generate a standard thumbnail. class FileContentHintsThumbnail { - /// The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5). + /// The thumbnail data encoded with URL-safe Base64 + /// ([RFC 4648 section 5](https://datatracker.ietf.org/doc/html/rfc4648#section-5)). core.String? image; core.List get imageAsBytes => convert.base64.decode(image!); @@ -5687,7 +5769,7 @@ class FileContentHintsThumbnail { class FileContentHints { /// Text to be indexed for the file to improve fullText queries. /// - /// This is limited to 128KB in length and may contain HTML elements. + /// This is limited to 128 KB in length and may contain HTML elements. core.String? indexableText; /// A thumbnail for the file. @@ -6026,7 +6108,7 @@ class FileShortcutDetails { /// Output only. core.String? targetMimeType; - /// The ResourceKey for the target file. + /// The `resourceKey` for the target file. /// /// Output only. core.String? targetResourceKey; @@ -6105,6 +6187,8 @@ class File { /// Capabilities the current user has on this file. /// /// Each capability corresponds to a fine-grained action that a user may take. + /// For more information, see + /// [Understand file capabilities](https://developers.google.com/workspace/drive/api/guides/manage-sharing#capabilities). /// /// Output only. FileCapabilities? capabilities; @@ -6119,7 +6203,7 @@ class File { /// Only populated if such a restriction exists. core.List? contentRestrictions; - /// Whether the options to copy, print, or download this file, should be + /// Whether the options to copy, print, or download this file should be /// disabled for readers and commenters. core.bool? copyRequiresWriterPermission; @@ -6160,16 +6244,17 @@ class File { /// The color for a folder or a shortcut to a folder as an RGB hex string. /// /// The supported colors are published in the `folderColorPalette` field of - /// the About resource. If an unsupported color is specified, the closest - /// color in the palette is used instead. + /// the \[`about`\](/workspace/drive/api/reference/rest/v3/about) resource. If + /// an unsupported color is specified, the closest color in the palette is + /// used instead. core.String? folderColorRgb; /// The full file extension extracted from the `name` field. /// /// May contain multiple concatenated extensions, such as "tar.gz". This is /// only available for files with binary content in Google Drive. This is - /// automatically updated when the `name` field changes, however it is not - /// cleared if the new name does not contain a valid extension. + /// automatically updated when the `name` field changes, however it's not + /// cleared if the new name doesn't contain a valid extension. /// /// Output only. core.String? fullFileExtension; @@ -6183,7 +6268,7 @@ class File { /// Whether this file has a thumbnail. /// - /// This does not indicate whether the requesting app has access to the + /// This doesn't indicate whether the requesting app has access to the /// thumbnail. To check access, look for the presence of the thumbnailLink /// field. /// @@ -6258,7 +6343,8 @@ class File { /// uploaded content, if no value is provided. The value cannot be changed /// unless a new revision is uploaded. If a file is created with a Google Doc /// MIME type, the uploaded content is imported, if possible. The supported - /// import formats are published in the About resource. + /// import formats are published in the + /// \[`about`\](/workspace/drive/api/reference/rest/v3/about) resource. core.String? mimeType; /// Whether the file has been modified by this user. @@ -6277,9 +6363,9 @@ class File { /// The name of the file. /// - /// This is not necessarily unique within a folder. Note that for immutable - /// items such as the top level folders of shared drives, My Drive root - /// folder, and Application Data folder the name is constant. + /// This isn't necessarily unique within a folder. Note that for immutable + /// items such as the top-level folders of shared drives, the My Drive root + /// folder, and the Application Data folder, the name is constant. core.String? name; /// The original filename of the uploaded content if available, or else the @@ -6346,7 +6432,7 @@ class File { /// The SHA1 checksum associated with this file, if available. /// /// This field is only populated for files with content stored in Google - /// Drive; it is not populated for Docs Editors or shortcut files. + /// Drive; it's not populated for Docs Editors or shortcut files. /// /// Output only. core.String? sha1Checksum; @@ -6354,7 +6440,7 @@ class File { /// The SHA256 checksum associated with this file, if available. /// /// This field is only populated for files with content stored in Google - /// Drive; it is not populated for Docs Editors or shortcut files. + /// Drive; it's not populated for Docs Editors or shortcut files. /// /// Output only. core.String? sha256Checksum; @@ -6382,7 +6468,7 @@ class File { /// requests. FileShortcutDetails? shortcutDetails; - /// Size in bytes of blobs and first party editor files. + /// Size in bytes of blobs and Google Workspace editor files. /// /// Won't be populated for files that have no size, like shortcuts and /// folders. @@ -6392,7 +6478,7 @@ class File { /// The list of spaces which contain the file. /// - /// The currently supported values are 'drive', 'appDataFolder' and 'photos'. + /// The currently supported values are `drive`, `appDataFolder`, and `photos`. /// /// Output only. core.List? spaces; @@ -6412,10 +6498,10 @@ class File { /// /// Typically lasts on the order of hours. Not intended for direct usage on /// web applications due to \[Cross-Origin Resource Sharing - /// (CORS)\](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies, - /// consider using a proxy server. Only populated when the requesting app can + /// (CORS)\](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies. + /// Consider using a proxy server. Only populated when the requesting app can /// access the file's content. If the file isn't shared publicly, the URL - /// returned in `Files.thumbnailLink` must be fetched using a credentialed + /// returned in `files.thumbnailLink` must be fetched using a credentialed /// request. /// /// Output only. @@ -6829,7 +6915,7 @@ class File { class FileList { /// The list of files. /// - /// If nextPageToken is populated, then this list may be incomplete and an + /// If `nextPageToken` is populated, then this list may be incomplete and an /// additional page of results should be fetched. core.List? files; @@ -6837,9 +6923,9 @@ class FileList { /// /// If true, then some search results might be missing, since all documents /// were not searched. This can occur when searching multiple drives with the - /// 'allDrives' corpora, but all corpora couldn't be searched. When this + /// `allDrives` corpora, but all corpora couldn't be searched. When this /// happens, it's suggested that clients narrow their query by choosing a - /// different corpus such as 'user' or 'drive'. + /// different corpus such as `user` or `drive`. core.bool? incompleteSearch; /// Identifies what kind of resource this is. @@ -7048,7 +7134,7 @@ class LabelFieldModification { /// The ID of the field to be modified. core.String? fieldId; - /// This is always drive#labelFieldModification. + /// This is always `"drive#labelFieldModification"`. core.String? kind; /// Replaces the value of a dateString Field with these new values. @@ -7067,7 +7153,7 @@ class LabelFieldModification { /// Replaces a `user` field with these new values. /// - /// The values must be valid email addresses. + /// The values must be a valid email addresses. core.List? setUserValues; /// Unsets the values for this field. @@ -7132,7 +7218,7 @@ class LabelFieldModification { /// A list of labels applied to a file. class LabelList { - /// This is always drive#labelList + /// This is always `"drive#labelList"`. core.String? kind; /// The list of labels. @@ -7172,13 +7258,13 @@ class LabelList { /// A modification to a label on a file. /// -/// A LabelModification can be used to apply a label to a file, update an +/// A `LabelModification` can be used to apply a label to a file, update an /// existing label on a file, or remove a label from a file. class LabelModification { /// The list of modifications to this label's fields. core.List? fieldModifications; - /// This is always drive#labelModification. + /// This is always `"drive#labelModification"`. core.String? kind; /// The ID of the label to modify. @@ -7217,11 +7303,11 @@ class LabelModification { }; } -/// The response to an Access Proposal list request. +/// The response to an access proposal list request. class ListAccessProposalsResponse { - /// The list of Access Proposals. + /// The list of access proposals. /// - /// This field is only populated in v3 and v3beta. + /// This field is only populated in Drive API v3. core.List? accessProposals; /// The continuation token for the next page of results. @@ -7257,7 +7343,7 @@ class ListAccessProposalsResponse { /// This request may contain many modifications that will either all succeed or /// all fail atomically. class ModifyLabelsRequest { - /// This is always drive#modifyLabelsRequest. + /// This is always `"drive#modifyLabelsRequest"`. core.String? kind; /// The list of modifications to apply to the labels on the file. @@ -7284,11 +7370,11 @@ class ModifyLabelsRequest { }; } -/// Response to a ModifyLabels request. +/// Response to a `ModifyLabels` request. /// /// This contains only those labels which were added or updated by the request. class ModifyLabelsResponse { - /// This is always drive#modifyLabelsResponse + /// This is always `"drive#modifyLabelsResponse"`. core.String? kind; /// The list of labels which were added or updated by the request. @@ -7897,24 +7983,26 @@ class ReplyList { /// Request message for resolving an AccessProposal on a file. class ResolveAccessProposalRequest { - /// The action to take on the AccessProposal. + /// The action to take on the access proposal. /// /// Required. /// Possible string values are: /// - "ACTION_UNSPECIFIED" : Unspecified action - /// - "ACCEPT" : The user accepts the proposal. Note: If this action is used, - /// the `role` field must have at least one value. - /// - "DENY" : The user denies the proposal + /// - "ACCEPT" : The user accepts the access proposal. Note: If this action is + /// used, the `role` field must have at least one value. + /// - "DENY" : The user denies the access proposal. core.String? action; - /// The roles the approver has allowed, if any. + /// The roles that the approver has allowed, if any. /// + /// For more information, see + /// [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles). /// Note: This field is required for the `ACCEPT` action. /// /// Optional. core.List? role; - /// Whether to send an email to the requester when the AccessProposal is + /// Whether to send an email to the requester when the access proposal is /// denied or accepted. /// /// Optional. @@ -7922,8 +8010,8 @@ class ResolveAccessProposalRequest { /// Indicates the view for this access proposal. /// - /// This should only be set when the proposal belongs to a view. `published` - /// is the only supported value. + /// This should only be set when the proposal belongs to a view. Only + /// `published` is supported. /// /// Optional. core.String? view; diff --git a/generated/googleapis/lib/driveactivity/v2.dart b/generated/googleapis/lib/driveactivity/v2.dart index 25e896d16..5278b91e8 100644 --- a/generated/googleapis/lib/driveactivity/v2.dart +++ b/generated/googleapis/lib/driveactivity/v2.dart @@ -1865,13 +1865,15 @@ class RestrictionChange { /// being shared outside the domain. /// - "DIRECT_SHARING" : When restricted, this prevents direct sharing of /// individual items. - /// - "ITEM_DUPLICATION" : When restricted, this prevents actions like copy, - /// download, and print that might result in uncontrolled duplicates of items. - /// Now deprecated in favor of READERS_CAN_DOWNLOAD. + /// - "ITEM_DUPLICATION" : Deprecated: Use READERS_CAN_DOWNLOAD instead. /// - "DRIVE_FILE_STREAM" : When restricted, this prevents use of Drive File /// Stream. /// - "FILE_ORGANIZER_CAN_SHARE_FOLDERS" : When restricted, this limits /// sharing of folders to managers only. + /// - "READERS_CAN_DOWNLOAD" : When restricted, this prevents actions like + /// copy, download, and print for readers. Replaces ITEM_DUPLICATION. + /// - "WRITERS_CAN_DOWNLOAD" : When restricted, this prevents actions like + /// copy, download, and print for writers. core.String? feature; /// The restriction in place after the change. diff --git a/generated/googleapis/lib/drivelabels/v2.dart b/generated/googleapis/lib/drivelabels/v2.dart index 40dbf2b40..b4f8b91a6 100644 --- a/generated/googleapis/lib/drivelabels/v2.dart +++ b/generated/googleapis/lib/drivelabels/v2.dart @@ -92,14 +92,17 @@ class LabelsResource { LabelsResource(commons.ApiRequester client) : _requester = client; - /// Creates a new Label. + /// Creates a label. + /// + /// For more information, see + /// [Create and publish a label](https://developers.google.com/workspace/drive/labels/guides/create-label). /// /// [request] - The metadata request object. /// /// Request parameters: /// /// [languageCode] - The BCP-47 language code to use for evaluating localized - /// Field labels in response. When not specified, values in the default + /// field labels in response. When not specified, values in the default /// configured language will be used. /// /// [useAdminAccess] - Set to `true` in order to use the user's admin @@ -142,10 +145,12 @@ class LabelsResource { ); } - /// Permanently deletes a Label and related metadata on Drive Items. + /// Permanently deletes a label and related metadata on Drive items. /// - /// Once deleted, the Label and related Drive item metadata will be deleted. - /// Only draft Labels, and disabled Labels may be deleted. + /// For more information, see + /// [Disable, enable, and delete a label](https://developers.google.com/workspace/drive/labels/guides/disable-delete-label). + /// Once deleted, the label and related Drive item metadata will be deleted. + /// Only draft labels and disabled labels may be deleted. /// /// Request parameters: /// @@ -153,13 +158,13 @@ class LabelsResource { /// Value must have pattern `^labels/\[^/\]+$`. /// /// [useAdminAccess] - Set to `true` in order to use the user's admin - /// credentials. The server will verify the user is an admin for the Label + /// credentials. The server will verify the user is an admin for the label /// before allowing access. /// - /// [writeControl_requiredRevisionId] - The revision_id of the label that the - /// write request will be applied to. If this is not the latest revision of - /// the label, the request will not be processed and will return a 400 Bad - /// Request error. + /// [writeControl_requiredRevisionId] - The revision ID of the label that the + /// write request will be applied to. If this isn't the latest revision of the + /// label, the request will not be processed and will return a 400 Bad Request + /// error. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -196,18 +201,20 @@ class LabelsResource { ); } - /// Updates a single Label by applying a set of update requests resulting in a + /// Updates a single label by applying a set of update requests resulting in a /// new draft revision. /// + /// For more information, see + /// [Update a label](https://developers.google.com/workspace/drive/labels/guides/update-label). /// The batch update is all-or-nothing: If any of the update requests are /// invalid, no changes are applied. The resulting draft revision must be - /// published before the changes may be used with Drive Items. + /// published before the changes may be used with Drive items. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - Required. The resource name of the Label to update. + /// [name] - Required. The resource name of the label to update. /// Value must have pattern `^labels/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial @@ -243,10 +250,12 @@ class LabelsResource { ); } - /// Disable a published Label. + /// Disable a published label. /// - /// Disabling a Label will result in a new disabled published revision based - /// on the current published revision. If there is a draft revision, a new + /// For more information, see + /// [Disable, enable, and delete a label](https://developers.google.com/workspace/drive/labels/guides/disable-delete-label). + /// Disabling a label will result in a new disabled published revision based + /// on the current published revision. If there's a draft revision, a new /// disabled draft revision will be created based on the latest draft /// revision. Older draft revisions will be deleted. Once disabled, a label /// may be deleted with `DeleteLabel`. @@ -291,10 +300,12 @@ class LabelsResource { ); } - /// Enable a disabled Label and restore it to its published state. + /// Enable a disabled label and restore it to its published state. /// + /// For more information, see + /// [Disable, enable, and delete a label](https://developers.google.com/workspace/drive/labels/guides/disable-delete-label). /// This will result in a new published revision based on the current disabled - /// published revision. If there is an existing disabled draft revision, a new + /// published revision. If there's an existing disabled draft revision, a new /// revision will be created based on that draft and will be enabled. /// /// [request] - The metadata request object. @@ -339,6 +350,8 @@ class LabelsResource { /// Get a label by its resource name. /// + /// For more information, see + /// [Search for labels](https://developers.google.com/workspace/drive/labels/guides/search-label). /// Resource name may be any of: * `labels/{id}` - See `labels/{id}@latest` * /// `labels/{id}@latest` - Gets the latest revision of the label. * /// `labels/{id}@published` - Gets the current published revision of the @@ -405,10 +418,13 @@ class LabelsResource { /// List labels. /// + /// For more information, see + /// [Search for labels](https://developers.google.com/workspace/drive/labels/guides/search-label). + /// /// Request parameters: /// /// [customer] - The customer to scope this list request to. For example: - /// "customers/abcd1234". If unset, will return all labels within the current + /// `customers/abcd1234`. If unset, will return all labels within the current /// customer. /// /// [languageCode] - The BCP-47 language code to use for evaluating localized @@ -416,7 +432,7 @@ class LabelsResource { /// language are used. /// /// [minimumRole] - Specifies the level of access the user must have on the - /// returned Labels. The minimum role a user must have on a label. Defaults to + /// returned labels. The minimum role a user must have on a label. Defaults to /// `READER`. /// Possible string values are: /// - "LABEL_ROLE_UNSPECIFIED" : Unknown role. @@ -443,7 +459,7 @@ class LabelsResource { /// (`labels/{id}`). /// /// [useAdminAccess] - Set to `true` in order to use the user's admin - /// credentials. This will return all Labels within the customer. + /// credentials. This will return all labels within the customer. /// /// [view] - When specified, only certain fields belonging to the indicated /// view are returned. @@ -497,20 +513,23 @@ class LabelsResource { ); } - /// Publish all draft changes to the Label. - /// - /// Once published, the Label may not return to its draft state. See - /// `google.apps.drive.labels.v2.Lifecycle` for more information. Publishing a - /// Label will result in a new published revision. All previous draft - /// revisions will be deleted. Previous published revisions will be kept but - /// are subject to automated deletion as needed. Once published, some changes - /// are no longer permitted. Generally, any change that would invalidate or - /// cause new restrictions on existing metadata related to the Label will be - /// rejected. For example, the following changes to a Label will be rejected - /// after the Label is published: * The label cannot be directly deleted. It - /// must be disabled first, then deleted. * Field.FieldType cannot be changed. - /// * Changes to Field validation options cannot reject something that was - /// previously accepted. * Reducing the max entries. + /// Publish all draft changes to the label. + /// + /// Once published, the label may not return to its draft state. For more + /// information, see + /// [Create and publish a label](https://developers.google.com/workspace/drive/labels/guides/create-label). + /// Publishing a label will result in a new published revision. All previous + /// draft revisions will be deleted. Previous published revisions will be kept + /// but are subject to automated deletion as needed. For more information, see + /// [Label lifecycle](https://developers.google.com/workspace/drive/labels/guides/label-lifecycle). + /// Once published, some changes are no longer permitted. Generally, any + /// change that would invalidate or cause new restrictions on existing + /// metadata related to the label will be rejected. For example, the following + /// changes to a label will be rejected after the label is published: * The + /// label cannot be directly deleted. It must be disabled first, then deleted. + /// * `Field.FieldType` cannot be changed. * Changes to field validation + /// options cannot reject something that was previously accepted. * Reducing + /// the maximum entries. /// /// [request] - The metadata request object. /// @@ -552,16 +571,16 @@ class LabelsResource { ); } - /// Updates a Label's `CopyMode`. + /// Updates a label's `CopyMode`. /// - /// Changes to this policy are not revisioned, do not require publishing, and + /// Changes to this policy aren't revisioned, don't require publishing, and /// take effect immediately. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - Required. The resource name of the Label to update. + /// [name] - Required. The resource name of the label to update. /// Value must have pattern `^labels/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial @@ -597,18 +616,18 @@ class LabelsResource { ); } - /// Updates a Label's EabledAppSettings. + /// Updates a label's `EnabledAppSettings`. /// - /// Enabling a Label in a Workspace Application allows it to be used in that - /// application. This change is not revisioned, does not require publishing, - /// and takes effect immediately. + /// Enabling a label in a Google Workspace app allows it to be used in that + /// app. This change isn't revisioned, doesn't require publishing, and takes + /// effect immediately. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - Required. The resource name of the Label to update. The resource - /// name of the Label to update. + /// [name] - Required. The resource name of the label to update. The resource + /// name of the label to update. /// Value must have pattern `^labels/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial @@ -645,22 +664,22 @@ class LabelsResource { ); } - /// Updates a Label's permissions. + /// Updates a label's permissions. /// - /// If a permission for the indicated principal doesn't exist, a new Label - /// Permission is created, otherwise the existing permission is updated. - /// Permissions affect the Label resource as a whole, are not revisioned, and - /// do not require publishing. + /// If a permission for the indicated principal doesn't exist, a label + /// permission is created, otherwise the existing permission is updated. + /// Permissions affect the label resource as a whole, aren't revisioned, and + /// don't require publishing. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [parent] - Required. The parent Label resource name. + /// [parent] - Required. The parent label resource name. /// Value must have pattern `^labels/\[^/\]+$`. /// /// [useAdminAccess] - Set to `true` in order to use the user's admin - /// credentials. The server will verify the user is an admin for the Label + /// credentials. The server will verify the user is an admin for the label /// before allowing access. /// /// [$fields] - Selector specifying which fields to include in a partial @@ -704,15 +723,15 @@ class LabelsLocksResource { LabelsLocksResource(commons.ApiRequester client) : _requester = client; - /// Lists the LabelLocks on a Label. + /// Lists the label locks on a label. /// /// Request parameters: /// - /// [parent] - Required. Label on which Locks are applied. Format: - /// labels/{label} + /// [parent] - Required. Label on which locks are applied. Format: + /// `labels/{label}`. /// Value must have pattern `^labels/\[^/\]+$`. /// - /// [pageSize] - Maximum number of Locks to return per page. Default: 100. + /// [pageSize] - Maximum number of locks to return per page. Default: 100. /// Max: 200. /// /// [pageToken] - The token of the page to return. @@ -757,18 +776,18 @@ class LabelsPermissionsResource { LabelsPermissionsResource(commons.ApiRequester client) : _requester = client; - /// Deletes Label permissions. + /// Deletes label permissions. /// - /// Permissions affect the Label resource as a whole, are not revisioned, and - /// do not require publishing. + /// Permissions affect the label resource as a whole, aren't revisioned, and + /// don't require publishing. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [parent] - Required. The parent Label resource name shared by all - /// permissions being deleted. Format: labels/{label} If this is set, the - /// parent field in the UpdateLabelPermissionRequest messages must either be + /// [parent] - Required. The parent label resource name shared by all + /// permissions being deleted. Format: `labels/{label}`. If this is set, the + /// parent field in the `UpdateLabelPermissionRequest` messages must either be /// empty or match this field. /// Value must have pattern `^labels/\[^/\]+$`. /// @@ -806,20 +825,20 @@ class LabelsPermissionsResource { ); } - /// Updates Label permissions. + /// Updates label permissions. /// - /// If a permission for the indicated principal doesn't exist, a new Label - /// Permission is created, otherwise the existing permission is updated. - /// Permissions affect the Label resource as a whole, are not revisioned, and - /// do not require publishing. + /// If a permission for the indicated principal doesn't exist, a label + /// permission is created, otherwise the existing permission is updated. + /// Permissions affect the label resource as a whole, aren't revisioned, and + /// don't require publishing. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [parent] - Required. The parent Label resource name shared by all - /// permissions being updated. Format: labels/{label} If this is set, the - /// parent field in the UpdateLabelPermissionRequest messages must either be + /// [parent] - Required. The parent label resource name shared by all + /// permissions being updated. Format: `labels/{label}`. If this is set, the + /// parent field in the `UpdateLabelPermissionRequest` messages must either be /// empty or match this field. /// Value must have pattern `^labels/\[^/\]+$`. /// @@ -859,23 +878,23 @@ class LabelsPermissionsResource { ); } - /// Updates a Label's permissions. + /// Updates a label's permissions. /// - /// If a permission for the indicated principal doesn't exist, a new Label - /// Permission is created, otherwise the existing permission is updated. - /// Permissions affect the Label resource as a whole, are not revisioned, and - /// do not require publishing. + /// If a permission for the indicated principal doesn't exist, a label + /// permission is created, otherwise the existing permission is updated. + /// Permissions affect the label resource as a whole, aren't revisioned, and + /// don't require publishing. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [parent] - Required. The parent Label resource name on the Label - /// Permission is created. Format: labels/{label} + /// [parent] - Required. The parent label resource name on the label + /// permission is created. Format: `labels/{label}`. /// Value must have pattern `^labels/\[^/\]+$`. /// /// [useAdminAccess] - Set to `true` in order to use the user's admin - /// credentials. The server will verify the user is an admin for the Label + /// credentials. The server will verify the user is an admin for the label /// before allowing access. /// /// [$fields] - Selector specifying which fields to include in a partial @@ -913,18 +932,18 @@ class LabelsPermissionsResource { ); } - /// Deletes a Label's permission. + /// Deletes a label's permission. /// - /// Permissions affect the Label resource as a whole, are not revisioned, and - /// do not require publishing. + /// Permissions affect the label resource as a whole, aren't revisioned, and + /// don't require publishing. /// /// Request parameters: /// - /// [name] - Required. Label Permission resource name. + /// [name] - Required. Label permission resource name. /// Value must have pattern `^labels/\[^/\]+/permissions/\[^/\]+$`. /// /// [useAdminAccess] - Set to `true` in order to use the user's admin - /// credentials. The server will verify the user is an admin for the Label + /// credentials. The server will verify the user is an admin for the label /// before allowing access. /// /// [$fields] - Selector specifying which fields to include in a partial @@ -959,12 +978,12 @@ class LabelsPermissionsResource { ); } - /// Lists a Label's permissions. + /// Lists a label's permissions. /// /// Request parameters: /// - /// [parent] - Required. The parent Label resource name on which Label - /// Permission are listed. Format: labels/{label} + /// [parent] - Required. The parent label resource name on which label + /// permissions are listed. Format: `labels/{label}`. /// Value must have pattern `^labels/\[^/\]+$`. /// /// [pageSize] - Maximum number of permissions to return per page. Default: @@ -973,7 +992,7 @@ class LabelsPermissionsResource { /// [pageToken] - The token of the page to return. /// /// [useAdminAccess] - Set to `true` in order to use the user's admin - /// credentials. The server will verify the user is an admin for the Label + /// credentials. The server will verify the user is an admin for the label /// before allowing access. /// /// [$fields] - Selector specifying which fields to include in a partial @@ -1023,22 +1042,22 @@ class LabelsRevisionsResource { LabelsRevisionsResource(commons.ApiRequester client) : _requester = client; - /// Updates a Label's permissions. + /// Updates a label's permissions. /// - /// If a permission for the indicated principal doesn't exist, a new Label - /// Permission is created, otherwise the existing permission is updated. - /// Permissions affect the Label resource as a whole, are not revisioned, and - /// do not require publishing. + /// If a permission for the indicated principal doesn't exist, a label + /// permission is created, otherwise the existing permission is updated. + /// Permissions affect the label resource as a whole, aren't revisioned, and + /// don't require publishing. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [parent] - Required. The parent Label resource name. + /// [parent] - Required. The parent label resource name. /// Value must have pattern `^labels/\[^/\]+/revisions/\[^/\]+$`. /// /// [useAdminAccess] - Set to `true` in order to use the user's admin - /// credentials. The server will verify the user is an admin for the Label + /// credentials. The server will verify the user is an admin for the label /// before allowing access. /// /// [$fields] - Selector specifying which fields to include in a partial @@ -1083,15 +1102,15 @@ class LabelsRevisionsLocksResource { LabelsRevisionsLocksResource(commons.ApiRequester client) : _requester = client; - /// Lists the LabelLocks on a Label. + /// Lists the label locks on a label. /// /// Request parameters: /// - /// [parent] - Required. Label on which Locks are applied. Format: - /// labels/{label} + /// [parent] - Required. Label on which locks are applied. Format: + /// `labels/{label}`. /// Value must have pattern `^labels/\[^/\]+/revisions/\[^/\]+$`. /// - /// [pageSize] - Maximum number of Locks to return per page. Default: 100. + /// [pageSize] - Maximum number of locks to return per page. Default: 100. /// Max: 200. /// /// [pageToken] - The token of the page to return. @@ -1137,18 +1156,18 @@ class LabelsRevisionsPermissionsResource { LabelsRevisionsPermissionsResource(commons.ApiRequester client) : _requester = client; - /// Deletes Label permissions. + /// Deletes label permissions. /// - /// Permissions affect the Label resource as a whole, are not revisioned, and - /// do not require publishing. + /// Permissions affect the label resource as a whole, aren't revisioned, and + /// don't require publishing. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [parent] - Required. The parent Label resource name shared by all - /// permissions being deleted. Format: labels/{label} If this is set, the - /// parent field in the UpdateLabelPermissionRequest messages must either be + /// [parent] - Required. The parent label resource name shared by all + /// permissions being deleted. Format: `labels/{label}`. If this is set, the + /// parent field in the `UpdateLabelPermissionRequest` messages must either be /// empty or match this field. /// Value must have pattern `^labels/\[^/\]+/revisions/\[^/\]+$`. /// @@ -1186,20 +1205,20 @@ class LabelsRevisionsPermissionsResource { ); } - /// Updates Label permissions. + /// Updates label permissions. /// - /// If a permission for the indicated principal doesn't exist, a new Label - /// Permission is created, otherwise the existing permission is updated. - /// Permissions affect the Label resource as a whole, are not revisioned, and - /// do not require publishing. + /// If a permission for the indicated principal doesn't exist, a label + /// permission is created, otherwise the existing permission is updated. + /// Permissions affect the label resource as a whole, aren't revisioned, and + /// don't require publishing. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [parent] - Required. The parent Label resource name shared by all - /// permissions being updated. Format: labels/{label} If this is set, the - /// parent field in the UpdateLabelPermissionRequest messages must either be + /// [parent] - Required. The parent label resource name shared by all + /// permissions being updated. Format: `labels/{label}`. If this is set, the + /// parent field in the `UpdateLabelPermissionRequest` messages must either be /// empty or match this field. /// Value must have pattern `^labels/\[^/\]+/revisions/\[^/\]+$`. /// @@ -1239,23 +1258,23 @@ class LabelsRevisionsPermissionsResource { ); } - /// Updates a Label's permissions. + /// Updates a label's permissions. /// - /// If a permission for the indicated principal doesn't exist, a new Label - /// Permission is created, otherwise the existing permission is updated. - /// Permissions affect the Label resource as a whole, are not revisioned, and - /// do not require publishing. + /// If a permission for the indicated principal doesn't exist, a label + /// permission is created, otherwise the existing permission is updated. + /// Permissions affect the label resource as a whole, aren't revisioned, and + /// don't require publishing. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [parent] - Required. The parent Label resource name on the Label - /// Permission is created. Format: labels/{label} + /// [parent] - Required. The parent label resource name on the label + /// permission is created. Format: `labels/{label}`. /// Value must have pattern `^labels/\[^/\]+/revisions/\[^/\]+$`. /// /// [useAdminAccess] - Set to `true` in order to use the user's admin - /// credentials. The server will verify the user is an admin for the Label + /// credentials. The server will verify the user is an admin for the label /// before allowing access. /// /// [$fields] - Selector specifying which fields to include in a partial @@ -1293,19 +1312,19 @@ class LabelsRevisionsPermissionsResource { ); } - /// Deletes a Label's permission. + /// Deletes a label's permission. /// - /// Permissions affect the Label resource as a whole, are not revisioned, and - /// do not require publishing. + /// Permissions affect the label resource as a whole, aren't revisioned, and + /// don't require publishing. /// /// Request parameters: /// - /// [name] - Required. Label Permission resource name. + /// [name] - Required. Label permission resource name. /// Value must have pattern /// `^labels/\[^/\]+/revisions/\[^/\]+/permissions/\[^/\]+$`. /// /// [useAdminAccess] - Set to `true` in order to use the user's admin - /// credentials. The server will verify the user is an admin for the Label + /// credentials. The server will verify the user is an admin for the label /// before allowing access. /// /// [$fields] - Selector specifying which fields to include in a partial @@ -1340,12 +1359,12 @@ class LabelsRevisionsPermissionsResource { ); } - /// Lists a Label's permissions. + /// Lists a label's permissions. /// /// Request parameters: /// - /// [parent] - Required. The parent Label resource name on which Label - /// Permission are listed. Format: labels/{label} + /// [parent] - Required. The parent label resource name on which label + /// permissions are listed. Format: `labels/{label}`. /// Value must have pattern `^labels/\[^/\]+/revisions/\[^/\]+$`. /// /// [pageSize] - Maximum number of permissions to return per page. Default: @@ -1354,7 +1373,7 @@ class LabelsRevisionsPermissionsResource { /// [pageToken] - The token of the page to return. /// /// [useAdminAccess] - Set to `true` in order to use the user's admin - /// credentials. The server will verify the user is an admin for the Label + /// credentials. The server will verify the user is an admin for the label /// before allowing access. /// /// [$fields] - Selector specifying which fields to include in a partial @@ -1399,12 +1418,12 @@ class LimitsResource { LimitsResource(commons.ApiRequester client) : _requester = client; - /// Get the constraints on the structure of a Label; such as, the maximum - /// number of Fields allowed and maximum length of the label title. + /// Get the constraints on the structure of a label; such as, the maximum + /// number of fields allowed and maximum length of the label title. /// /// Request parameters: /// - /// [name] - Required. Label revision resource name Must be: "limits/label" + /// [name] - Required. Label revision resource name must be: "limits/label". /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1452,7 +1471,7 @@ class UsersResource { /// Value must have pattern `^users/\[^/\]+/capabilities$`. /// /// [customer] - The customer to scope this request to. For example: - /// "customers/abcd1234". If unset, will return settings within the current + /// `customers/abcd1234`. If unset, it will return settings within the current /// customer. /// /// [$fields] - Selector specifying which fields to include in a partial @@ -1576,7 +1595,7 @@ class GoogleAppsDriveLabelsV2BadgeConfig { }; } -/// Deletes one of more Label Permissions. +/// Deletes one or more label permissions. class GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest { /// The request message specifying the resources to update. /// @@ -1585,9 +1604,9 @@ class GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest { /// Set to `true` in order to use the user's admin credentials. /// - /// The server will verify the user is an admin for the Label before allowing - /// access. If this is set, the use_admin_access field in the - /// DeleteLabelPermissionRequest messages must either be empty or match this + /// The server will verify the user is an admin for the label before allowing + /// access. If this is set, the `use_admin_access` field in the + /// `DeleteLabelPermissionRequest` messages must either be empty or match this /// field. core.bool? useAdminAccess; @@ -1617,7 +1636,7 @@ class GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest { }; } -/// Updates one or more Label Permissions. +/// Updates one or more label permissions. class GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest { /// The request message specifying the resources to update. /// @@ -1626,9 +1645,9 @@ class GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest { /// Set to `true` in order to use the user's admin credentials. /// - /// The server will verify the user is an admin for the Label before allowing - /// access. If this is set, the use_admin_access field in the - /// UpdateLabelPermissionRequest messages must either be empty or match this + /// The server will verify the user is an admin for the label before allowing + /// access. If this is set, the `use_admin_access` field in the + /// `UpdateLabelPermissionRequest` messages must either be empty or match this /// field. core.bool? useAdminAccess; @@ -1658,7 +1677,7 @@ class GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest { }; } -/// Response for updating one or more Label Permissions. +/// Response for updating one or more label permissions. class GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse { /// Permissions updated. /// @@ -1687,12 +1706,12 @@ class GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse { }; } -/// Limits for date Field type. +/// Limits for date field type. class GoogleAppsDriveLabelsV2DateLimits { - /// Maximum value for the date Field type. + /// Maximum value for the date field type. GoogleTypeDate? maxValue; - /// Minimum value for the date Field type. + /// Minimum value for the date field type. GoogleTypeDate? minValue; GoogleAppsDriveLabelsV2DateLimits({this.maxValue, this.minValue}); @@ -1719,19 +1738,19 @@ class GoogleAppsDriveLabelsV2DateLimits { }; } -/// Deletes a Label Permission. +/// Deletes a label permission. /// -/// Permissions affect the Label resource as a whole, are not revisioned, and do -/// not require publishing. +/// Permissions affect the label resource as a whole, aren't revisioned, and +/// don't require publishing. class GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest { - /// Label Permission resource name. + /// Label permission resource name. /// /// Required. core.String? name; /// Set to `true` in order to use the user's admin credentials. /// - /// The server will verify the user is an admin for the Label before allowing + /// The server will verify the user is an admin for the label before allowing /// access. core.bool? useAdminAccess; @@ -1752,22 +1771,22 @@ class GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest { }; } -/// The set of requests for updating aspects of a Label. +/// The set of requests for updating aspects of a label. /// -/// If any request is not valid, no requests will be applied. +/// If any request isn't valid, no requests will be applied. class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest { - /// The BCP-47 language code to use for evaluating localized Field labels when + /// The BCP-47 language code to use for evaluating localized field labels when /// `include_label_in_response` is `true`. core.String? languageCode; - /// A list of updates to apply to the Label. + /// A list of updates to apply to the label. /// /// Requests will be applied in the order they are specified. core.List? requests; /// Set to `true` in order to use the user's admin credentials. /// - /// The server will verify the user is an admin for the Label before allowing + /// The server will verify the user is an admin for the label before allowing /// access. core.bool? useAdminAccess; @@ -1821,7 +1840,7 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest { }; } -/// Request to create a Field within a Label. +/// Request to create a field within a label. class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest { /// Field to create. /// @@ -1848,14 +1867,14 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest { }; } -/// Request to create a Selection Choice. +/// Request to create a selection choice. class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest { - /// The Choice to create. + /// The choice to create. /// /// Required. GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice? choice; - /// The Selection Field in which a Choice will be created. + /// The selection field in which a choice will be created. /// /// Required. core.String? fieldId; @@ -1883,9 +1902,9 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest }; } -/// Request to delete the Field. +/// Request to delete the field. class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest { - /// ID of the Field to delete. + /// ID of the field to delete. /// /// Required. core.String? id; @@ -1899,9 +1918,9 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest { core.Map toJson() => {if (id != null) 'id': id!}; } -/// Request to delete a Choice. +/// Request to delete a choice. class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest { - /// The Selection Field from which a Choice will be deleted. + /// The selection field from which a choice will be deleted. /// /// Required. core.String? fieldId; @@ -1929,14 +1948,14 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest }; } -/// Request to disable the Field. +/// Request to disable the field. class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest { - /// Field Disabled Policy. + /// Field disabled policy. /// /// Required. GoogleAppsDriveLabelsV2LifecycleDisabledPolicy? disabledPolicy; - /// Key of the Field to disable. + /// Key of the field to disable. /// /// Required. core.String? id; @@ -1944,7 +1963,7 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest { /// The fields that should be updated. /// /// At least one field must be specified. The root `disabled_policy` is - /// implied and should not be specified. A single `*` can be used as + /// implied and should not be specified. A single `*` can be used as a /// short-hand for updating every field. core.String? updateMask; @@ -1975,14 +1994,14 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest { }; } -/// Request to disable a Choice. +/// Request to disable a choice. class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest { /// The disabled policy to update. /// /// Required. GoogleAppsDriveLabelsV2LifecycleDisabledPolicy? disabledPolicy; - /// The Selection Field in which a Choice will be disabled. + /// The selection field in which a choice will be disabled. /// /// Required. core.String? fieldId; @@ -1995,7 +2014,7 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceReques /// The fields that should be updated. /// /// At least one field must be specified. The root `disabled_policy` is - /// implied and should not be specified. A single `*` can be used as + /// implied and should not be specified. A single `*` can be used as a /// short-hand for updating every field. core.String? updateMask; @@ -2029,9 +2048,9 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceReques }; } -/// Request to enable the Field. +/// Request to enable the field. class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest { - /// ID of the Field to enable. + /// ID of the field to enable. /// /// Required. core.String? id; @@ -2045,9 +2064,9 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest { core.Map toJson() => {if (id != null) 'id': id!}; } -/// Request to enable a Choice. +/// Request to enable a choice. class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest { - /// The Selection Field in which a Choice will be enabled. + /// The selection field in which a choice will be enabled. /// /// Required. core.String? fieldId; @@ -2075,50 +2094,50 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest }; } -/// A single kind of update to apply to a Label. +/// A single kind of update to apply to a label. class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest { - /// Creates a new Field. + /// Creates a field. GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest? createField; - /// Creates Choice within a Selection field. + /// Create a choice within a selection field. GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest? createSelectionChoice; - /// Deletes a Field from the label. + /// Deletes a field from the label. GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest? deleteField; - /// Delete a Choice within a Selection Field. + /// Delete a choice within a selection field. GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest? deleteSelectionChoice; - /// Disables the Field. + /// Disables the field. GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest? disableField; - /// Disable a Choice within a Selection Field. + /// Disable a choice within a selection field. GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest? disableSelectionChoice; - /// Enables the Field. + /// Enables the field. GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest? enableField; - /// Enable a Choice within a Selection Field. + /// Enable a choice within a selection field. GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest? enableSelectionChoice; - /// Updates basic properties of a Field. + /// Updates basic properties of a field. GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest? updateField; - /// Update Field type and/or type options. + /// Update field type and/or type options. GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest? updateFieldType; - /// Updates the Label properties. + /// Updates the label properties. GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest? updateLabel; - /// Update a Choice properties within a Selection Field. + /// Update a choice property within a selection field. GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest? updateSelectionChoiceProperties; @@ -2240,14 +2259,14 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest { }; } -/// Request to update Field properties. +/// Request to update field properties. class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest { - /// The Field to update. + /// The field to update. /// /// Required. core.String? id; - /// Basic Field properties. + /// Basic field properties. /// /// Required. GoogleAppsDriveLabelsV2FieldProperties? properties; @@ -2255,7 +2274,7 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest /// The fields that should be updated. /// /// At least one field must be specified. The root `properties` is implied and - /// should not be specified. A single `*` can be used as short-hand for + /// should not be specified. A single `*` can be used as a short-hand for /// updating every field. core.String? updateMask; @@ -2285,12 +2304,12 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest }; } -/// Request to change the type of a Field. +/// Request to change the type of a field. class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest { /// Update field to Date. GoogleAppsDriveLabelsV2FieldDateOptions? dateOptions; - /// The Field to update. + /// The field to update. /// /// Required. core.String? id; @@ -2307,7 +2326,7 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest { /// The fields that should be updated. /// /// At least one field must be specified. The root of `type_options` is - /// implied and should not be specified. A single `*` can be used as + /// implied and should not be specified. A single `*` can be used as a /// short-hand for updating every field. core.String? updateMask; @@ -2374,7 +2393,7 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest { }; } -/// Updates basic properties of a Label. +/// Updates basic properties of a label. class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest { /// Label properties to update. /// @@ -2384,7 +2403,7 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest /// The fields that should be updated. /// /// At least one field must be specified. The root `label_properties` is - /// implied and should not be specified. A single `*` can be used as + /// implied and should not be specified. A single `*` can be used as a /// short-hand for updating every field. core.String? updateMask; @@ -2411,19 +2430,19 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest }; } -/// Request to update a Choice properties. +/// Request to update a choice property. class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest { - /// The Selection Field to update. + /// The selection field to update. /// /// Required. core.String? fieldId; - /// The Choice to update. + /// The choice to update. /// /// Required. core.String? id; - /// The Choice properties to update. + /// The choice properties to update. /// /// Required. GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties? properties; @@ -2431,7 +2450,7 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropert /// The fields that should be updated. /// /// At least one field must be specified. The root `properties` is implied and - /// should not be specified. A single `*` can be used as short-hand for + /// should not be specified. A single `*` can be used as a short-hand for /// updating every field. core.String? updateMask; @@ -2464,7 +2483,7 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropert }; } -/// Response for Label update. +/// Response for label update. class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse { /// The reply of the updates. /// @@ -2474,9 +2493,8 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse { /// The label after updates were applied. /// - /// This is only set if - /// \[BatchUpdateLabelResponse2.include_label_in_response\] is `true` and - /// there were no errors. + /// This is only set if `include_label_in_response` is `true` and there were + /// no errors. GoogleAppsDriveLabelsV2Label? updatedLabel; GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse({ @@ -2509,7 +2527,7 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse { }; } -/// Response following Field create. +/// Response following field create. class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse { /// The field of the created field. /// @@ -2541,12 +2559,12 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse { }; } -/// Response following Selection Choice create. +/// Response following selection choice create. class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse { - /// The server-generated id of the field. + /// The server-generated ID of the field. core.String? fieldId; - /// The server-generated ID of the created choice within the Field + /// The server-generated ID of the created choice within the field. core.String? id; GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse({ @@ -2567,77 +2585,77 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceRespon }; } -/// Response following Field delete. +/// Response following field delete. typedef GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse = $Empty; -/// Response following Choice delete. +/// Response following choice delete. typedef GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse = $Empty; -/// Response following Field disable. +/// Response following field disable. typedef GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse = $Empty; -/// Response following Choice disable. +/// Response following choice disable. typedef GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse = $Empty; -/// Response following Field enable. +/// Response following field enable. typedef GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse = $Empty; -/// Response following Choice enable. +/// Response following choice enable. typedef GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse = $Empty; /// A single response from an update. class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse { - /// Creates a new Field. + /// Creates a field. GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse? createField; - /// Creates a new selection list option to add to a Selection Field. + /// Creates a selection list option to add to a selection field. GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse? createSelectionChoice; - /// Deletes a Field from the label. + /// Deletes a field from the label. GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse? deleteField; - /// Deletes a Choice from a Selection Field. + /// Deletes a choice from a selection field. GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse? deleteSelectionChoice; - /// Disables Field. + /// Disables field. GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse? disableField; - /// Disables a Choice within a Selection Field. + /// Disables a choice within a selection field. GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse? disableSelectionChoice; - /// Enables Field. + /// Enables field. GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse? enableField; - /// Enables a Choice within a Selection Field. + /// Enables a choice within a selection field. GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse? enableSelectionChoice; - /// Updates basic properties of a Field. + /// Updates basic properties of a field. GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse? updateField; - /// Update Field type and/or type options. + /// Updates field type and/or type options. GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse? updateFieldType; - /// Updated basic properties of a Label. + /// Updates basic properties of a label. GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse? updateLabel; - /// Updates a Choice within a Selection Field. + /// Updates a choice within a selection field. GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse? updateSelectionChoiceProperties; @@ -2760,7 +2778,7 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse { }; } -/// Response following update to Field properties. +/// Response following update to field properties. class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse { /// The priority of the updated field. /// @@ -2781,15 +2799,15 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesRespon }; } -/// Response following update to Field type. +/// Response following update to field type. typedef GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse = $Empty; -/// Response following update to Label properties. +/// Response following update to label properties. typedef GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse = $Empty; -/// Response following update to Selection Choice properties. +/// Response following update to selection choice properties. class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse { /// The priority of the updated choice. /// @@ -2810,7 +2828,7 @@ class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoiceProper }; } -/// Request to deprecate a published Label. +/// Request to deprecate a published label. class GoogleAppsDriveLabelsV2DisableLabelRequest { /// Disabled policy to use. GoogleAppsDriveLabelsV2LifecycleDisabledPolicy? disabledPolicy; @@ -2824,19 +2842,19 @@ class GoogleAppsDriveLabelsV2DisableLabelRequest { /// The fields that should be updated. /// /// At least one field must be specified. The root `disabled_policy` is - /// implied and should not be specified. A single `*` can be used as + /// implied and should not be specified. A single `*` can be used as a /// short-hand for updating every field. core.String? updateMask; /// Set to `true` in order to use the user's admin credentials. /// - /// The server will verify the user is an admin for the Label before allowing + /// The server will verify the user is an admin for the label before allowing /// access. core.bool? useAdminAccess; /// Provides control over how write requests are executed. /// - /// Defaults to unset, which means last write wins. + /// Defaults to unset, which means the last write wins. GoogleAppsDriveLabelsV2WriteControl? writeControl; GoogleAppsDriveLabelsV2DisableLabelRequest({ @@ -2886,13 +2904,13 @@ class GoogleAppsDriveLabelsV2EnableLabelRequest { /// Set to `true` in order to use the user's admin credentials. /// - /// The server will verify the user is an admin for the Label before allowing + /// The server will verify the user is an admin for the label before allowing /// access. core.bool? useAdminAccess; /// Provides control over how write requests are executed. /// - /// Defaults to unset, which means last write wins. + /// Defaults to unset, which means the last write wins. GoogleAppsDriveLabelsV2WriteControl? writeControl; GoogleAppsDriveLabelsV2EnableLabelRequest({ @@ -2965,7 +2983,7 @@ class GoogleAppsDriveLabelsV2Field { /// The key of a field, unique within a label or library. /// - /// This value is autogenerated. Matches the regex: `([a-zA-Z0-9])+` + /// This value is autogenerated. Matches the regex: `([a-zA-Z0-9])+`. /// /// Output only. core.String? id; @@ -2978,7 +2996,7 @@ class GoogleAppsDriveLabelsV2Field { /// Output only. GoogleAppsDriveLabelsV2Lifecycle? lifecycle; - /// The LockStatus of this field. + /// The `LockStatus` of this field. /// /// Output only. GoogleAppsDriveLabelsV2LockStatus? lockStatus; @@ -3333,36 +3351,36 @@ class GoogleAppsDriveLabelsV2FieldIntegerOptions { }; } -/// Field constants governing the structure of a Field; such as, the maximum +/// Field constants governing the structure of a field; such as, the maximum /// title length, minimum and maximum field values or length, etc. class GoogleAppsDriveLabelsV2FieldLimits { - /// Date Field limits. + /// Date field limits. GoogleAppsDriveLabelsV2DateLimits? dateLimits; - /// Integer Field limits. + /// Integer field limits. GoogleAppsDriveLabelsV2IntegerLimits? integerLimits; - /// Long text Field limits. + /// Long text field limits. GoogleAppsDriveLabelsV2LongTextLimits? longTextLimits; - /// Limits for Field description, also called help text. + /// Limits for field description, also called help text. core.int? maxDescriptionLength; - /// Limits for Field title. + /// Limits for field title. core.int? maxDisplayNameLength; - /// Max length for the id. + /// Maximum length for the id. core.int? maxIdLength; - /// Selection Field limits. + /// Selection field limits. GoogleAppsDriveLabelsV2SelectionLimits? selectionLimits; /// The relevant limits for the specified Field.Type. /// - /// Text Field limits. + /// Text field limits. GoogleAppsDriveLabelsV2TextLimits? textLimits; - /// User Field limits. + /// User field limits. GoogleAppsDriveLabelsV2UserLimits? userLimits; GoogleAppsDriveLabelsV2FieldLimits({ @@ -3620,7 +3638,7 @@ class GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice { /// Output only. GoogleAppsDriveLabelsV2Lifecycle? lifecycle; - /// The LockStatus of this choice. + /// The `LockStatus` of this choice. /// /// Output only. GoogleAppsDriveLabelsV2LockStatus? lockStatus; @@ -4012,12 +4030,12 @@ class GoogleAppsDriveLabelsV2FieldUserOptions { }; } -/// Limits for integer Field type. +/// Limits for integer field type. class GoogleAppsDriveLabelsV2IntegerLimits { - /// Maximum value for an integer Field type. + /// Maximum value for an integer field type. core.String? maxValue; - /// Minimum value for an integer Field type. + /// Minimum value for an integer field type. core.String? minValue; GoogleAppsDriveLabelsV2IntegerLimits({this.maxValue, this.minValue}); @@ -4062,21 +4080,21 @@ class GoogleAppsDriveLabelsV2Label { /// The customer this label belongs to. /// - /// For example: "customers/123abc789." + /// For example: `customers/123abc789`. /// /// Output only. core.String? customer; /// The time this label was disabled. /// - /// This value has no meaning when the label is not disabled. + /// This value has no meaning when the label isn't disabled. /// /// Output only. core.String? disableTime; /// The user who disabled this label. /// - /// This value has no meaning when the label is not disabled. + /// This value has no meaning when the label isn't disabled. /// /// Output only. GoogleAppsDriveLabelsV2UserInfo? disabler; @@ -4086,7 +4104,7 @@ class GoogleAppsDriveLabelsV2Label { /// Output only. GoogleAppsDriveLabelsV2LabelDisplayHints? displayHints; - /// The EnabledAppSettings for this Label. + /// The `EnabledAppSettings` for this Label. /// /// Optional. GoogleAppsDriveLabelsV2LabelEnabledAppSettings? enabledAppSettings; @@ -4097,7 +4115,7 @@ class GoogleAppsDriveLabelsV2Label { /// Globally unique identifier of this label. /// /// ID makes up part of the label `name`, but unlike `name`, ID is consistent - /// between revisions. Matches the regex: `([a-zA-Z0-9])+` + /// between revisions. Matches the regex: `([a-zA-Z0-9])+`. /// /// Output only. core.String? id; @@ -4125,7 +4143,7 @@ class GoogleAppsDriveLabelsV2Label { /// Output only. GoogleAppsDriveLabelsV2Lifecycle? lifecycle; - /// The LockStatus of this label. + /// The `LockStatus` of this label. /// /// Output only. GoogleAppsDriveLabelsV2LockStatus? lockStatus; @@ -4146,14 +4164,14 @@ class GoogleAppsDriveLabelsV2Label { /// The time this label was published. /// - /// This value has no meaning when the label is not published. + /// This value has no meaning when the label isn't published. /// /// Output only. core.String? publishTime; /// The user who published this label. /// - /// This value has no meaning when the label is not published. + /// This value has no meaning when the label isn't published.\>\> /// /// Output only. GoogleAppsDriveLabelsV2UserInfo? publisher; @@ -4172,7 +4190,7 @@ class GoogleAppsDriveLabelsV2Label { /// /// Revision ID might be part of the label `name` depending on the request /// issued. A new revision is created whenever revisioned properties of a - /// label are changed. Matches the regex: `([a-zA-Z0-9])+` + /// label are changed. Matches the regex: `([a-zA-Z0-9])+`. /// /// Output only. core.String? revisionId; @@ -4372,7 +4390,7 @@ class GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy { /// Drive item is copied. /// Possible string values are: /// - "COPY_MODE_UNSPECIFIED" : Copy mode unspecified. - /// - "DO_NOT_COPY" : The applied label and field values are not copied by + /// - "DO_NOT_COPY" : The applied label and field values aren't copied by /// default when the Drive item it's applied to is copied. /// - "ALWAYS_COPY" : The applied label and field values are always copied /// when the Drive item it's applied to is copied. Only admins can use this @@ -4391,7 +4409,7 @@ class GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy { }; } -/// UI display hints for rendering the label. +/// The UI display hints for rendering the label. class GoogleAppsDriveLabelsV2LabelDisplayHints { /// Whether the label should be shown in the UI as disabled. core.bool? disabled; @@ -4400,7 +4418,7 @@ class GoogleAppsDriveLabelsV2LabelDisplayHints { /// items. core.bool? hiddenInSearch; - /// Order to display label in a list. + /// The order to display labels in a list. core.String? priority; /// This label should be shown in the apply menu when applying values to a @@ -4430,9 +4448,9 @@ class GoogleAppsDriveLabelsV2LabelDisplayHints { }; } -/// Describes the Workspace apps in which the Label can be used. +/// Describes the Google Workspace apps in which the label can be used. class GoogleAppsDriveLabelsV2LabelEnabledAppSettings { - /// The list of Apps where the Label can be used. + /// The list of apps where the label can be used. /// /// Optional. core.List? @@ -4458,14 +4476,14 @@ class GoogleAppsDriveLabelsV2LabelEnabledAppSettings { }; } -/// An App where the Label can be used. +/// An app where the label can be used. class GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp { - /// The name of the App. + /// The name of the app. /// /// Optional. /// Possible string values are: /// - "APP_UNSPECIFIED" : Unspecified - /// - "DRIVE" : Drive. + /// - "DRIVE" : Drive /// - "GMAIL" : Gmail core.String? app; @@ -4480,13 +4498,13 @@ class GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp { }; } -/// Label constraints governing the structure of a Label; such as, the maximum -/// number of Fields allowed and maximum length of the label title. +/// Label constraints governing the structure of a label; such as, the maximum +/// number of fields allowed and maximum length of the label title. class GoogleAppsDriveLabelsV2LabelLimits { - /// The limits for Fields. + /// The limits for fields. GoogleAppsDriveLabelsV2FieldLimits? fieldLimits; - /// The maximum number of published Fields that can be deleted. + /// The maximum number of published fields that can be deleted. core.int? maxDeletedFields; /// The maximum number of characters allowed for the description. @@ -4496,7 +4514,7 @@ class GoogleAppsDriveLabelsV2LabelLimits { /// old drafts. core.int? maxDraftRevisions; - /// The maximum number of Fields allowed within the label. + /// The maximum number of fields allowed within the label. core.int? maxFields; /// The maximum number of characters allowed for the title. @@ -4543,56 +4561,55 @@ class GoogleAppsDriveLabelsV2LabelLimits { }; } -/// A Lock that can be applied to a Label, Field, or Choice. +/// A lock that can be applied to a label, field, or choice. class GoogleAppsDriveLabelsV2LabelLock { - /// The user's capabilities on this LabelLock. + /// The user's capabilities on this label lock. /// /// Output only. GoogleAppsDriveLabelsV2LabelLockCapabilities? capabilities; - /// The ID of the Selection Field Choice that should be locked. + /// The ID of the selection field choice that should be locked. /// /// If present, `field_id` must also be present. core.String? choiceId; - /// The time this LabelLock was created. + /// The time this label lock was created. /// /// Output only. core.String? createTime; - /// The user whose credentials were used to create the LabelLock. + /// The user whose credentials were used to create the label lock. /// - /// This will not be present if no user was responsible for creating the - /// LabelLock. + /// Not present if no user was responsible for creating the label lock. /// /// Output only. GoogleAppsDriveLabelsV2UserInfo? creator; - /// A timestamp indicating when this LabelLock was scheduled for deletion. + /// A timestamp indicating when this label lock was scheduled for deletion. /// - /// This will be present only if this LabelLock is in the DELETING state. + /// Present only if this label lock is in the `DELETING` state. /// /// Output only. core.String? deleteTime; - /// The ID of the Field that should be locked. + /// The ID of the field that should be locked. /// - /// Empty if the whole Label should be locked. + /// Empty if the whole label should be locked. core.String? fieldId; - /// Resource name of this LabelLock. + /// Resource name of this label lock. /// /// Output only. core.String? name; - /// This LabelLock's state. + /// This label lock's state. /// /// Output only. /// Possible string values are: /// - "STATE_UNSPECIFIED" : Unknown state. - /// - "ACTIVE" : The LabelLock is active and is being enforced by the server. - /// - "DELETING" : The LabelLock is being deleted. The LabelLock will continue - /// to be enforced by the server until it has been fully removed. + /// - "ACTIVE" : The label lock is active and is being enforced by the server. + /// - "DELETING" : The label lock is being deleted. The label lock will + /// continue to be enforced by the server until it has been fully removed. core.String? state; GoogleAppsDriveLabelsV2LabelLock({ @@ -4640,7 +4657,7 @@ class GoogleAppsDriveLabelsV2LabelLock { }; } -/// A description of a user's capabilities on a LabelLock. +/// A description of a user's capabilities on a label lock. class GoogleAppsDriveLabelsV2LabelLockCapabilities { /// True if the user is authorized to view the policy. core.bool? canViewPolicy; @@ -4662,14 +4679,14 @@ class GoogleAppsDriveLabelsV2LabelPermission { /// /// The magic value of `audiences/default` may be used to apply the role to /// the default audience in the context of the organization that owns the - /// Label. + /// label. core.String? audience; - /// Specifies the email address for a user or group pricinpal. + /// Specifies the email address for a user or group principal. /// - /// Not populated for audience principals. User and Group permissions may only - /// be inserted using email address. On update requests, if email address is - /// specified, no principal should be specified. + /// Not populated for audience principals. User and group permissions may only + /// be inserted using an email address. On update requests, if email address + /// is specified, no principal should be specified. core.String? email; /// Group resource name. @@ -4792,15 +4809,17 @@ class GoogleAppsDriveLabelsV2LabelSchemaCapabilities { /// The lifecycle state of an object, such as label, field, or choice. /// +/// For more information, see +/// [Label lifecycle](https://developers.google.com/workspace/drive/labels/guides/label-lifecycle). /// The lifecycle enforces the following transitions: * `UNPUBLISHED_DRAFT` /// (starting state) * `UNPUBLISHED_DRAFT` -\> `PUBLISHED` * `UNPUBLISHED_DRAFT` /// -\> (Deleted) * `PUBLISHED` -\> `DISABLED` * `DISABLED` -\> `PUBLISHED` * /// `DISABLED` -\> (Deleted) The published and disabled states have some -/// distinct characteristics: * Published—Some kinds of changes might be made to -/// an object in this state, in which case `has_unpublished_changes` will be -/// true. Also, some kinds of changes are not permitted. Generally, any change +/// distinct characteristics: * `Published`: Some kinds of changes might be made +/// to an object in this state, in which case `has_unpublished_changes` will be +/// true. Also, some kinds of changes aren't permitted. Generally, any change /// that would invalidate or cause new restrictions on existing metadata related -/// to the label are rejected. * Disabled—When disabled, the configured +/// to the label are rejected. * `Disabled`: When disabled, the configured /// `DisabledPolicy` takes effect. class GoogleAppsDriveLabelsV2Lifecycle { /// The policy that governs how to show a disabled label, field, or selection @@ -4889,9 +4908,9 @@ class GoogleAppsDriveLabelsV2LifecycleDisabledPolicy { }; } -/// The response to a ListLabelLocksRequest. +/// The response to a `ListLabelLocksRequest`. class GoogleAppsDriveLabelsV2ListLabelLocksResponse { - /// LabelLocks. + /// Label locks. core.List? labelLocks; /// The token of the next page in the response. @@ -4921,7 +4940,7 @@ class GoogleAppsDriveLabelsV2ListLabelLocksResponse { }; } -/// Response for listing the permissions on a Label. +/// Response for listing the permissions on a label. class GoogleAppsDriveLabelsV2ListLabelPermissionsResponse { /// Label permissions. core.List? labelPermissions; @@ -4953,7 +4972,7 @@ class GoogleAppsDriveLabelsV2ListLabelPermissionsResponse { }; } -/// Response for listing Labels. +/// Response for listing labels. class GoogleAppsDriveLabelsV2ListLabelsResponse { /// Labels. core.List? labels; @@ -4982,9 +5001,9 @@ class GoogleAppsDriveLabelsV2ListLabelsResponse { }; } -/// Limits for list-variant of a Field type. +/// Limits for list-variant of a field type. class GoogleAppsDriveLabelsV2ListLimits { - /// Maximum number of values allowed for the Field type. + /// Maximum number of values allowed for the field type. core.int? maxEntries; GoogleAppsDriveLabelsV2ListLimits({this.maxEntries}); @@ -5000,11 +5019,11 @@ class GoogleAppsDriveLabelsV2ListLimits { /// Contains information about whether a label component should be considered /// locked. class GoogleAppsDriveLabelsV2LockStatus { - /// Indicates whether this label component is the (direct) target of a - /// LabelLock. + /// Indicates whether this label component is the (direct) target of a label + /// lock. /// /// A label component can be implicitly locked even if it's not the direct - /// target of a LabelLock, in which case this field is set to false. + /// target of a label lock, in which case this field is set to false. /// /// Output only. core.bool? locked; @@ -5019,12 +5038,12 @@ class GoogleAppsDriveLabelsV2LockStatus { }; } -/// Limits for long text Field type. +/// Limits for long text field type. class GoogleAppsDriveLabelsV2LongTextLimits { - /// Maximum length allowed for a long text Field type. + /// Maximum length allowed for a long text field type. core.int? maxLength; - /// Minimum length allowed for a long text Field type. + /// Minimum length allowed for a long text field type. core.int? minLength; GoogleAppsDriveLabelsV2LongTextLimits({this.maxLength, this.minLength}); @@ -5051,13 +5070,13 @@ class GoogleAppsDriveLabelsV2PublishLabelRequest { /// Set to `true` in order to use the user's admin credentials. /// - /// The server will verify the user is an admin for the Label before allowing + /// The server will verify the user is an admin for the label before allowing /// access. core.bool? useAdminAccess; /// Provides control over how write requests are executed. /// - /// Defaults to unset, which means last write wins. + /// Defaults to unset, which means the last write wins. GoogleAppsDriveLabelsV2WriteControl? writeControl; GoogleAppsDriveLabelsV2PublishLabelRequest({ @@ -5085,12 +5104,12 @@ class GoogleAppsDriveLabelsV2PublishLabelRequest { }; } -/// Limits for selection Field type. +/// Limits for selection field type. class GoogleAppsDriveLabelsV2SelectionLimits { - /// Limits for list-variant of a Field type. + /// Limits for list-variant of a field type. GoogleAppsDriveLabelsV2ListLimits? listLimits; - /// The max number of choices. + /// Maximum number of choices. core.int? maxChoices; /// Maximum number of deleted choices. @@ -5099,7 +5118,7 @@ class GoogleAppsDriveLabelsV2SelectionLimits { /// Maximum length for display name. core.int? maxDisplayNameLength; - /// Maximum ID length for a selection options. + /// Maximum ID length for a selection option. core.int? maxIdLength; GoogleAppsDriveLabelsV2SelectionLimits({ @@ -5134,12 +5153,12 @@ class GoogleAppsDriveLabelsV2SelectionLimits { }; } -/// Limits for text Field type. +/// Limits for text field type. class GoogleAppsDriveLabelsV2TextLimits { - /// Maximum length allowed for a text Field type. + /// Maximum length allowed for a text field type. core.int? maxLength; - /// Minimum length allowed for a text Field type. + /// Minimum length allowed for a text field type. core.int? minLength; GoogleAppsDriveLabelsV2TextLimits({this.maxLength, this.minLength}); @@ -5156,18 +5175,18 @@ class GoogleAppsDriveLabelsV2TextLimits { }; } -/// Request to update the `CopyMode` of the given Label. +/// Request to update the `CopyMode` of the given label. /// -/// Changes to this policy are not revisioned, do not require publishing, and -/// take effect immediately. \ +/// Changes to this policy aren't revisioned, don't require publishing, and take +/// effect immediately. \ class GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest { - /// Indicates how the applied Label, and Field values should be copied when a + /// Indicates how the applied label and field values should be copied when a /// Drive item is copied. /// /// Required. /// Possible string values are: /// - "COPY_MODE_UNSPECIFIED" : Copy mode unspecified. - /// - "DO_NOT_COPY" : The applied label and field values are not copied by + /// - "DO_NOT_COPY" : The applied label and field values aren't copied by /// default when the Drive item it's applied to is copied. /// - "ALWAYS_COPY" : The applied label and field values are always copied /// when the Drive item it's applied to is copied. Only admins can use this @@ -5184,7 +5203,7 @@ class GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest { /// Set to `true` in order to use the user's admin credentials. /// - /// The server will verify the user is an admin for the Label before allowing + /// The server will verify the user is an admin for the label before allowing /// access. core.bool? useAdminAccess; @@ -5219,12 +5238,12 @@ class GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest { }; } -/// Request to update the `EnabledAppSettings` of the given Label. +/// Request to update the `EnabledAppSettings` of the given label. /// -/// This change is not revisioned, does not require publishing, and takes effect +/// This change is not revisioned, doesn't require publishing, and takes effect /// immediately. \ class GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest { - /// The new `EnabledAppSettings` value for the Label. + /// The new `EnabledAppSettings` value for the label. /// /// Required. GoogleAppsDriveLabelsV2LabelEnabledAppSettings? enabledAppSettings; @@ -5239,7 +5258,7 @@ class GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest { /// Set to `true` in order to use the user's admin credentials. /// - /// The server will verify the user is an admin for the Label before allowing + /// The server will verify the user is an admin for the label before allowing /// access. /// /// Optional. @@ -5285,24 +5304,24 @@ class GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest { }; } -/// Updates a Label Permission. +/// Updates a label permission. /// -/// Permissions affect the Label resource as a whole, are not revisioned, and do -/// not require publishing. +/// Permissions affect the label resource as a whole, aren't revisioned, and +/// don't require publishing. class GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest { - /// The permission to create or update on the Label. + /// The permission to create or update on the label. /// /// Required. GoogleAppsDriveLabelsV2LabelPermission? labelPermission; - /// The parent Label resource name. + /// The parent label resource name. /// /// Required. core.String? parent; /// Set to `true` in order to use the user's admin credentials. /// - /// The server will verify the user is an admin for the Label before allowing + /// The server will verify the user is an admin for the label before allowing /// access. core.bool? useAdminAccess; @@ -5344,12 +5363,12 @@ class GoogleAppsDriveLabelsV2UserCapabilities { /// Output only. core.bool? canAdministrateLabels; - /// Whether the user is allowed to create new admin labels. + /// Whether the user is allowed to create admin labels. /// /// Output only. core.bool? canCreateAdminLabels; - /// Whether the user is allowed to create new shared labels. + /// Whether the user is allowed to create shared labels. /// /// Output only. core.bool? canCreateSharedLabels; @@ -5391,10 +5410,11 @@ class GoogleAppsDriveLabelsV2UserCapabilities { /// Information about a user. class GoogleAppsDriveLabelsV2UserInfo { - /// The identifier for this user that can be used with the People API to get - /// more information. + /// The identifier for this user that can be used with the + /// [People API](https://developers.google.com/people) to get more + /// information. /// - /// For example, people/12345678. + /// For example, `people/12345678`. core.String? person; GoogleAppsDriveLabelsV2UserInfo({this.person}); @@ -5409,7 +5429,7 @@ class GoogleAppsDriveLabelsV2UserInfo { /// Limits for Field.Type.USER. class GoogleAppsDriveLabelsV2UserLimits { - /// Limits for list-variant of a Field type. + /// Limits for list-variant of a field type. GoogleAppsDriveLabelsV2ListLimits? listLimits; GoogleAppsDriveLabelsV2UserLimits({this.listLimits}); @@ -5433,9 +5453,9 @@ class GoogleAppsDriveLabelsV2UserLimits { /// /// When not specified, the last write wins. class GoogleAppsDriveLabelsV2WriteControl { - /// The revision_id of the label that the write request will be applied to. + /// The revision ID of the label that the write request will be applied to. /// - /// If this is not the latest revision of the label, the request will not be + /// If this isn't the latest revision of the label, the request will not be /// processed and will return a 400 Bad Request error. core.String? requiredRevisionId; diff --git a/generated/googleapis/lib/eventarc/v1.dart b/generated/googleapis/lib/eventarc/v1.dart index f6a5a5604..e05e976fa 100644 --- a/generated/googleapis/lib/eventarc/v1.dart +++ b/generated/googleapis/lib/eventarc/v1.dart @@ -185,9 +185,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -3850,6 +3850,8 @@ class Channel { /// /// It must match the pattern `projects / * /locations / * /keyRings / * /// /cryptoKeys / * `. + /// + /// Optional. core.String? cryptoKeyName; /// Resource labels. @@ -4598,6 +4600,19 @@ class GoogleApiSource { /// projects/{project}/locations/{location}/googleApiSources/{google_api_source} core.String? name; + /// Config to enable subscribing to events from all projects in the + /// GoogleApiSource's org. + /// + /// Optional. + OrganizationSubscription? organizationSubscription; + + /// Config to enable subscribing to all events from a list of projects. + /// + /// All the projects must be in the same org as the GoogleApiSource. + /// + /// Optional. + ProjectSubscriptions? projectSubscriptions; + /// Server assigned unique identifier for the channel. /// /// The value is a UUID4 string and guaranteed to remain unchanged until the @@ -4621,6 +4636,8 @@ class GoogleApiSource { this.labels, this.loggingConfig, this.name, + this.organizationSubscription, + this.projectSubscriptions, this.uid, this.updateTime, }); @@ -4645,6 +4662,20 @@ class GoogleApiSource { ) : null, name: json_['name'] as core.String?, + organizationSubscription: + json_.containsKey('organizationSubscription') + ? OrganizationSubscription.fromJson( + json_['organizationSubscription'] + as core.Map, + ) + : null, + projectSubscriptions: + json_.containsKey('projectSubscriptions') + ? ProjectSubscriptions.fromJson( + json_['projectSubscriptions'] + as core.Map, + ) + : null, uid: json_['uid'] as core.String?, updateTime: json_['updateTime'] as core.String?, ); @@ -4659,6 +4690,10 @@ class GoogleApiSource { if (labels != null) 'labels': labels!, if (loggingConfig != null) 'loggingConfig': loggingConfig!, if (name != null) 'name': name!, + if (organizationSubscription != null) + 'organizationSubscription': organizationSubscription!, + if (projectSubscriptions != null) + 'projectSubscriptions': projectSubscriptions!, if (uid != null) 'uid': uid!, if (updateTime != null) 'updateTime': updateTime!, }; @@ -4730,9 +4765,9 @@ class GoogleCloudEventarcV1PipelineDestination { /// An authentication config used to authenticate message requests, such that /// destinations can verify the source. /// - /// For example, this can be used with private GCP destinations that require - /// GCP credentials to access like Cloud Run. This field is optional and - /// should be set only by users interested in authenticated push + /// For example, this can be used with private Google Cloud destinations that + /// require Google Cloud credentials for access like Cloud Run. This field is + /// optional and should be set only by users interested in authenticated push. /// /// Optional. GoogleCloudEventarcV1PipelineDestinationAuthenticationConfig? @@ -4848,8 +4883,8 @@ class GoogleCloudEventarcV1PipelineDestination { /// Represents a config used to authenticate message requests. class GoogleCloudEventarcV1PipelineDestinationAuthenticationConfig { - /// This authenticate method will apply Google OIDC tokens signed by a GCP - /// service account to the requests. + /// This authenticate method will apply Google OIDC tokens signed by a Google + /// Cloud service account to the requests. /// /// Optional. GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOidcToken? @@ -4941,7 +4976,7 @@ class GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken { } /// Represents a config used to authenticate with a Google OIDC token using a -/// GCP service account. +/// Google Cloud service account. /// /// Use this authentication method to invoke your Cloud Run and Cloud Functions /// destinations or HTTP endpoints that support Google OIDC. @@ -6074,6 +6109,23 @@ class NetworkConfig { }; } +/// Config to enabled subscribing to events from other projects in the org. +class OrganizationSubscription { + /// Enable org level subscription. + /// + /// Required. + core.bool? enabled; + + OrganizationSubscription({this.enabled}); + + OrganizationSubscription.fromJson(core.Map json_) + : this(enabled: json_['enabled'] as core.bool?); + + core.Map toJson() => { + if (enabled != null) 'enabled': enabled!, + }; +} + /// A representation of the Pipeline resource. class Pipeline { /// User-defined annotations. @@ -6399,6 +6451,33 @@ class Policy { }; } +/// Config to enable subscribing to all events from a list of projects. +class ProjectSubscriptions { + /// A list of projects to receive events from. + /// + /// All the projects must be in the same org. The listed projects should have + /// the format project/{identifier} where identifier can be either the project + /// id for project number. A single list may contain both formats. At most 100 + /// projects can be listed. + /// + /// Required. + core.List? list; + + ProjectSubscriptions({this.list}); + + ProjectSubscriptions.fromJson(core.Map json_) + : this( + list: + (json_['list'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (list != null) 'list': list!, + }; +} + /// A representation of the Provider resource. class Provider { /// Human friendly name for the Provider. diff --git a/generated/googleapis/lib/file/v1.dart b/generated/googleapis/lib/file/v1.dart index bb0036eef..bda0b74e7 100644 --- a/generated/googleapis/lib/file/v1.dart +++ b/generated/googleapis/lib/file/v1.dart @@ -126,9 +126,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -1513,6 +1513,11 @@ class IOPSPerTB { /// A Filestore instance. class Instance { + /// The increase/decrease capacity step size in GB. + /// + /// Output only. + core.String? capacityStepSizeGb; + /// The time when the instance was created. /// /// Output only. @@ -1554,6 +1559,16 @@ class Instance { /// Resource labels to represent user provided metadata. core.Map? labels; + /// The max capacity of the instance in GB. + /// + /// Output only. + core.String? maxCapacityGb; + + /// The min capacity of the instance in GB. + /// + /// Output only. + core.String? minCapacityGb; + /// The resource name of the instance, in the format /// `projects/{project}/locations/{location}/instances/{instance}`. /// @@ -1672,6 +1687,7 @@ class Instance { core.String? tier; Instance({ + this.capacityStepSizeGb, this.createTime, this.customPerformanceSupported, this.deletionProtectionEnabled, @@ -1681,6 +1697,8 @@ class Instance { this.fileShares, this.kmsKeyName, this.labels, + this.maxCapacityGb, + this.minCapacityGb, this.name, this.networks, this.performanceConfig, @@ -1698,6 +1716,7 @@ class Instance { Instance.fromJson(core.Map json_) : this( + capacityStepSizeGb: json_['capacityStepSizeGb'] as core.String?, createTime: json_['createTime'] as core.String?, customPerformanceSupported: json_['customPerformanceSupported'] as core.bool?, @@ -1719,6 +1738,8 @@ class Instance { labels: (json_['labels'] as core.Map?)?.map( (key, value) => core.MapEntry(key, value as core.String), ), + maxCapacityGb: json_['maxCapacityGb'] as core.String?, + minCapacityGb: json_['minCapacityGb'] as core.String?, name: json_['name'] as core.String?, networks: (json_['networks'] as core.List?) @@ -1764,6 +1785,7 @@ class Instance { ); core.Map toJson() => { + if (capacityStepSizeGb != null) 'capacityStepSizeGb': capacityStepSizeGb!, if (createTime != null) 'createTime': createTime!, if (customPerformanceSupported != null) 'customPerformanceSupported': customPerformanceSupported!, @@ -1776,6 +1798,8 @@ class Instance { if (fileShares != null) 'fileShares': fileShares!, if (kmsKeyName != null) 'kmsKeyName': kmsKeyName!, if (labels != null) 'labels': labels!, + if (maxCapacityGb != null) 'maxCapacityGb': maxCapacityGb!, + if (minCapacityGb != null) 'minCapacityGb': minCapacityGb!, if (name != null) 'name': name!, if (networks != null) 'networks': networks!, if (performanceConfig != null) 'performanceConfig': performanceConfig!, @@ -1999,6 +2023,9 @@ class NetworkConfig { /// - "PRIVATE_SERVICE_ACCESS" : Connect to your Filestore instance using /// Private Service Access. Private services access provides an IP address /// range for multiple Google Cloud services, including Filestore. + /// - "PRIVATE_SERVICE_CONNECT" : Connect to your Filestore instance using + /// Private Service Connect. A connection policy must exist in the region for + /// the VPC network and the google-cloud-filestore service class. core.String? connectMode; /// IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 @@ -2019,6 +2046,13 @@ class NetworkConfig { /// is connected. core.String? network; + /// Private Service Connect configuration. + /// + /// Should only be set when connect_mode is PRIVATE_SERVICE_CONNECT. + /// + /// Optional. + PscConfig? pscConfig; + /// Optional, reserved_ip_range can have one of the following two types of /// values. /// @@ -2043,6 +2077,7 @@ class NetworkConfig { this.ipAddresses, this.modes, this.network, + this.pscConfig, this.reservedIpRange, }); @@ -2058,6 +2093,12 @@ class NetworkConfig { ?.map((value) => value as core.String) .toList(), network: json_['network'] as core.String?, + pscConfig: + json_.containsKey('pscConfig') + ? PscConfig.fromJson( + json_['pscConfig'] as core.Map, + ) + : null, reservedIpRange: json_['reservedIpRange'] as core.String?, ); @@ -2066,6 +2107,7 @@ class NetworkConfig { if (ipAddresses != null) 'ipAddresses': ipAddresses!, if (modes != null) 'modes': modes!, if (network != null) 'network': network!, + if (pscConfig != null) 'pscConfig': pscConfig!, if (reservedIpRange != null) 'reservedIpRange': reservedIpRange!, }; } @@ -2106,6 +2148,15 @@ class NfsExportOptions { /// ranges/addresses for each FileShareConfig among all NfsExportOptions. core.List? ipRanges; + /// The source VPC network for ip_ranges. + /// + /// Required for instances using Private Service Connect, optional otherwise. + /// If provided, must be the same network specified in the + /// `NetworkConfig.network` field. + /// + /// Optional. + core.String? network; + /// Either NO_ROOT_SQUASH, for allowing root access on the exported directory, /// or ROOT_SQUASH, for not allowing root access. /// @@ -2123,6 +2174,7 @@ class NfsExportOptions { this.anonGid, this.anonUid, this.ipRanges, + this.network, this.squashMode, }); @@ -2135,6 +2187,7 @@ class NfsExportOptions { (json_['ipRanges'] as core.List?) ?.map((value) => value as core.String) .toList(), + network: json_['network'] as core.String?, squashMode: json_['squashMode'] as core.String?, ); @@ -2143,6 +2196,7 @@ class NfsExportOptions { if (anonGid != null) 'anonGid': anonGid!, if (anonUid != null) 'anonUid': anonUid!, if (ipRanges != null) 'ipRanges': ipRanges!, + if (network != null) 'network': network!, if (squashMode != null) 'squashMode': squashMode!, }; } @@ -2353,6 +2407,28 @@ class PromoteReplicaRequest { }; } +/// Private Service Connect configuration. +class PscConfig { + /// Consumer service project in which the Private Service Connect endpoint + /// would be set up. + /// + /// This is optional, and only relevant in case the network is a shared VPC. + /// If this is not specified, the endpoint would be setup in the VPC host + /// project. + /// + /// Optional. + core.String? endpointProject; + + PscConfig({this.endpointProject}); + + PscConfig.fromJson(core.Map json_) + : this(endpointProject: json_['endpointProject'] as core.String?); + + core.Map toJson() => { + if (endpointProject != null) 'endpointProject': endpointProject!, + }; +} + /// Replica configuration for the instance. class ReplicaConfig { /// The timestamp of the latest replication snapshot taken on the active @@ -2377,6 +2453,10 @@ class ReplicaConfig { /// - "FAILED" : The replica is experiencing an issue and might be unusable. /// You can get further details from the `stateReasons` field of the /// `ReplicaConfig` object. + /// - "PROMOTING" : The replica is being promoted. + /// - "PAUSING" : The replica is being paused. + /// - "PAUSED" : The replica is paused. + /// - "RESUMING" : The replica is being resumed. core.String? state; /// Additional information about the replication state, if available. diff --git a/generated/googleapis/lib/firebaseappcheck/v1.dart b/generated/googleapis/lib/firebaseappcheck/v1.dart index 44e0a74a4..08893828c 100644 --- a/generated/googleapis/lib/firebaseappcheck/v1.dart +++ b/generated/googleapis/lib/firebaseappcheck/v1.dart @@ -3775,6 +3775,45 @@ class GoogleFirebaseAppcheckV1ListServicesResponse { /// Console or programmatically via the /// [Firebase Management Service](https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects.androidApps.sha/create). class GoogleFirebaseAppcheckV1PlayIntegrityConfig { + /// Specifies account requirements for Android devices running your app. + /// + /// These settings correspond to requirements on the \[**account details** + /// field\](https://developer.android.com/google/play/integrity/verdicts#account-details-field) + /// obtained from the Play Integrity API. See the + /// [default responses table](https://developer.android.com/google/play/integrity/setup#default) + /// for a quick summary. The default values for these settings work for most + /// apps, and are recommended. + GoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails? accountDetails; + + /// Specifies application integrity requirements for Android devices running + /// your app. + /// + /// These settings correspond to requirements on the \[**application + /// integrity** + /// field\](https://developer.android.com/google/play/integrity/verdicts#application-integrity-field) + /// obtained from the Play Integrity API. See the + /// [default responses table](https://developer.android.com/google/play/integrity/setup#default) + /// for a quick summary. The default values for these settings work for most + /// apps, and are recommended. + GoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity? appIntegrity; + + /// Specifies device integrity requirements for Android devices running your + /// app. + /// + /// These settings correspond to requirements on the \[**device integrity** + /// field\](https://developer.android.com/google/play/integrity/verdicts#device-integrity-field) + /// obtained from the Play Integrity API. See the + /// [default responses table](https://developer.android.com/google/play/integrity/setup#default) + /// for a quick summary. Warning: There are also + /// [conditional](https://developer.android.com/google/play/integrity/setup#conditional) + /// as well as + /// [optional](https://developer.android.com/google/play/integrity/setup#optional_device_information) + /// responses that you can receive, but requires additional explicit opt-in + /// from you. The App Check API is **not** responsible for any such opt-ins. + /// The default values for these settings work for most apps, and are + /// recommended. + GoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity? deviceIntegrity; + /// The relative resource name of the Play Integrity configuration object, in /// the format: ``` /// projects/{project_number}/apps/{app_id}/playIntegrityConfig ``` @@ -3789,20 +3828,205 @@ class GoogleFirebaseAppcheckV1PlayIntegrityConfig { /// and 7 days, inclusive. core.String? tokenTtl; - GoogleFirebaseAppcheckV1PlayIntegrityConfig({this.name, this.tokenTtl}); + GoogleFirebaseAppcheckV1PlayIntegrityConfig({ + this.accountDetails, + this.appIntegrity, + this.deviceIntegrity, + this.name, + this.tokenTtl, + }); GoogleFirebaseAppcheckV1PlayIntegrityConfig.fromJson(core.Map json_) : this( + accountDetails: + json_.containsKey('accountDetails') + ? GoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails.fromJson( + json_['accountDetails'] + as core.Map, + ) + : null, + appIntegrity: + json_.containsKey('appIntegrity') + ? GoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity.fromJson( + json_['appIntegrity'] as core.Map, + ) + : null, + deviceIntegrity: + json_.containsKey('deviceIntegrity') + ? GoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity.fromJson( + json_['deviceIntegrity'] + as core.Map, + ) + : null, name: json_['name'] as core.String?, tokenTtl: json_['tokenTtl'] as core.String?, ); core.Map toJson() => { + if (accountDetails != null) 'accountDetails': accountDetails!, + if (appIntegrity != null) 'appIntegrity': appIntegrity!, + if (deviceIntegrity != null) 'deviceIntegrity': deviceIntegrity!, if (name != null) 'name': name!, if (tokenTtl != null) 'tokenTtl': tokenTtl!, }; } +/// A settings object specifying account requirements for Android devices +/// running your app. +/// +/// These settings correspond to requirements on the \[**account details** +/// field\](https://developer.android.com/google/play/integrity/verdicts#account-details-field) +/// obtained from the Play Integrity API. See the +/// [default responses table](https://developer.android.com/google/play/integrity/setup#default) +/// for a quick summary. The default values for these settings work for most +/// apps, and are recommended. +class GoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails { + /// Specifies whether the caller must have received the \[`LICENSED` + /// verdict\](https://developer.android.com/google/play/integrity/verdicts#account-details-field). + /// + /// For additional details about scenarios where your users will receive this + /// `LICENSED` label, see + /// [the default responses table](https://developer.android.com/google/play/integrity/setup#default). + /// If set to `true`, apps without the `LICENSED` app licensing verdict will + /// be rejected. If set to `false`, any app licensing verdict is allowed. The + /// default value is `false`. + core.bool? requireLicensed; + + GoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails({ + this.requireLicensed, + }); + + GoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails.fromJson( + core.Map json_, + ) : this(requireLicensed: json_['requireLicensed'] as core.bool?); + + core.Map toJson() => { + if (requireLicensed != null) 'requireLicensed': requireLicensed!, + }; +} + +/// A settings object specifying application integrity requirements for Android +/// devices running your app. +/// +/// These settings correspond to requirements on the \[**application integrity** +/// field\](https://developer.android.com/google/play/integrity/verdicts#application-integrity-field) +/// obtained from the Play Integrity API. See the +/// [default responses table](https://developer.android.com/google/play/integrity/setup#default) +/// for a quick summary. The default values for these settings work for most +/// apps, and are recommended. +class GoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity { + /// Specifies whether your running app is allowed to have the + /// `UNRECOGNIZED_VERSION` + /// [app recognition verdict](https://developer.android.com/google/play/integrity/verdicts#application-integrity-field). + /// + /// Note that the app recognition verdict `PLAY_RECOGNIZED` is a strong, + /// comprehensive integrity signal that takes into account various other + /// signals, including conditional and optional device integrity responses + /// that you have opted into. If your app is published off-Play, this field + /// should be set to `true` to allow instances of your app installed from + /// off-Play sources to function. If set to `false`, only `PLAY_RECOGNIZED` + /// verdicts are allowed, and both `UNRECOGNIZED_VERSION` and `UNEVALUATED` + /// will be rejected. If set to `true`, any app recognition verdict is + /// allowed. The default value is `false`. + core.bool? allowUnrecognizedVersion; + + GoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity({ + this.allowUnrecognizedVersion, + }); + + GoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity.fromJson( + core.Map json_, + ) : this( + allowUnrecognizedVersion: + json_['allowUnrecognizedVersion'] as core.bool?, + ); + + core.Map toJson() => { + if (allowUnrecognizedVersion != null) + 'allowUnrecognizedVersion': allowUnrecognizedVersion!, + }; +} + +/// A settings object specifying device integrity requirements for Android +/// devices running your app. +/// +/// These settings correspond to requirements on the \[**device integrity** +/// field\](https://developer.android.com/google/play/integrity/verdicts#device-integrity-field) +/// obtained from the Play Integrity API. See the +/// [default responses table](https://developer.android.com/google/play/integrity/setup#default) +/// for a quick summary. Warning: There are also +/// [conditional](https://developer.android.com/google/play/integrity/setup#conditional) +/// as well as +/// [optional](https://developer.android.com/google/play/integrity/setup#optional_device_information) +/// responses that you can receive, but requires additional explicit opt-in from +/// you. The App Check API is **not** responsible for any such opt-ins. The +/// default values for these settings work for most apps, and are recommended. +class GoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity { + /// Specifies the minimum device integrity level in order for the device to be + /// considered valid. + /// + /// Any device with a device recognition verdict lower than this level will be + /// rejected. If this is unspecified, the default level is `NO_INTEGRITY`. + /// Possible string values are: + /// - "DEVICE_RECOGNITION_LEVEL_UNSPECIFIED" : Default value. Do not specify + /// this value directly. When this default value is detected in a + /// configuration, the `NO_INTEGRITY` default level takes effect. + /// - "NO_INTEGRITY" : If this level is set, no explicit device integrity + /// label requirements will be checked. However, because Play Integrity's + /// other features may perform (and require) their own intrinsic device + /// integrity checks, your `app_integrity` and `account_details` settings may + /// still cause some device integrity checks to be performed. + /// - "MEETS_BASIC_INTEGRITY" : This level corresponds to the + /// `MEETS_BASIC_INTEGRITY` + /// [optional device recognition label](https://developer.android.com/google/play/integrity/verdicts#optional-device-labels). + /// This value represents the most basic level of device integrity, and is the + /// minimum allowed in App Check's standard implementation of Play Integrity. + /// Warning: Because this is an optional response, you **must** first + /// explicitly + /// [opt in your app in the Play Console](https://developer.android.com/google/play/integrity/setup#optional) + /// in order to receive this label. Without this opt-in, **your app may + /// break** for any user whose device is eligible for `MEETS_BASIC_INTEGRITY` + /// but not `MEETS_DEVICE_INTEGRITY`. This API is **not** responsible for any + /// such opt-ins. + /// - "MEETS_DEVICE_INTEGRITY" : This level corresponds to the + /// `MEETS_DEVICE_INTEGRITY` + /// [device recognition verdict](https://developer.android.com/google/play/integrity/verdicts#device-integrity-field). + /// Any app integrated with Play Integrity will automatically be eligible to + /// receive this label without any additional action from you. At this level, + /// devices that have the `MEETS_BASIC_INTEGRITY` label but **not** the + /// `MEETS_DEVICE_INTEGRITY` label will be rejected. + /// - "MEETS_STRONG_INTEGRITY" : This level corresponds to the + /// `MEETS_STRONG_INTEGRITY` + /// [optional device recognition label](https://developer.android.com/google/play/integrity/verdicts#optional-device-labels). + /// This value represents the highest level of device integrity. At this + /// level, devices that have the `MEETS_BASIC_INTEGRITY` or + /// `MEETS_DEVICE_INTEGRITY` but **not** the `MEETS_STRONG_INTEGRITY` label + /// will be rejected. Warning: Because this is an optional response, you + /// **must** first explicitly + /// [opt in your app in the Play Console](https://developer.android.com/google/play/integrity/setup#optional) + /// in order to receive this label. Without this opt-in, **your app may + /// break** for any user whose device is eligible for + /// `MEETS_STRONG_INTEGRITY`. This API is **not** responsible for any such + /// opt-ins. + core.String? minDeviceRecognitionLevel; + + GoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity({ + this.minDeviceRecognitionLevel, + }); + + GoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity.fromJson( + core.Map json_, + ) : this( + minDeviceRecognitionLevel: + json_['minDeviceRecognitionLevel'] as core.String?, + ); + + core.Map toJson() => { + if (minDeviceRecognitionLevel != null) + 'minDeviceRecognitionLevel': minDeviceRecognitionLevel!, + }; +} + /// A JWK as specified by /// [section 4 of RFC 7517](https://tools.ietf.org/html/rfc7517#section-4) and /// [section 6.3.1 of RFC 7518](https://tools.ietf.org/html/rfc7518#section-6.3.1). @@ -3905,6 +4129,14 @@ class GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig { /// Required. core.String? name; + /// Specifies risk tolerance and requirements for your application. + /// + /// These settings correspond to requirements on the + /// \[**`riskAnalysis`**\](https://cloud.google.com/recaptcha/docs/interpret-assessment-website#interpret_assessment) + /// tuple in the assessment obtained from reCAPTCHA Enterprise. The default + /// values for these settings work for most apps, and are recommended. + GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis? riskAnalysis; + /// The score-based site key /// [created in reCAPTCHA Enterprise](https://cloud.google.com/recaptcha-enterprise/docs/create-key#creating_a_site_key) /// used to @@ -3924,6 +4156,7 @@ class GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig { GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig({ this.name, + this.riskAnalysis, this.siteKey, this.tokenTtl, }); @@ -3931,23 +4164,67 @@ class GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig { GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig.fromJson(core.Map json_) : this( name: json_['name'] as core.String?, + riskAnalysis: + json_.containsKey('riskAnalysis') + ? GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis.fromJson( + json_['riskAnalysis'] as core.Map, + ) + : null, siteKey: json_['siteKey'] as core.String?, tokenTtl: json_['tokenTtl'] as core.String?, ); core.Map toJson() => { if (name != null) 'name': name!, + if (riskAnalysis != null) 'riskAnalysis': riskAnalysis!, if (siteKey != null) 'siteKey': siteKey!, if (tokenTtl != null) 'tokenTtl': tokenTtl!, }; } +/// A settings object specifying risk tolerance and requirements for your +/// application. +/// +/// These settings correspond to requirements on the +/// \[**`riskAnalysis`**\](https://cloud.google.com/recaptcha/docs/interpret-assessment-website#interpret_assessment) +/// tuple in the assessment obtained from reCAPTCHA Enterprise. The default +/// values for these settings work for most apps, and are recommended. +class GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis { + /// Specifies a minimum score required for a reCAPTCHA token to be considered + /// valid. + /// + /// If its score is greater than or equal to this value, it will be accepted; + /// otherwise, it will be rejected. The value must be between 0.0 and 1.0. The + /// default value is 0.5. + core.double? minValidScore; + + GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis({ + this.minValidScore, + }); + + GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis.fromJson( + core.Map json_, + ) : this(minValidScore: (json_['minValidScore'] as core.num?)?.toDouble()); + + core.Map toJson() => { + if (minValidScore != null) 'minValidScore': minValidScore!, + }; +} + /// An app's reCAPTCHA v3 configuration object. /// /// This configuration is used by ExchangeRecaptchaV3Token to validate reCAPTCHA /// tokens issued to apps by reCAPTCHA v3. It also controls certain properties /// of the returned `AppCheckToken`, such as its ttl. class GoogleFirebaseAppcheckV1RecaptchaV3Config { + /// Specifies a minimum score required for a reCAPTCHA token to be considered + /// valid. + /// + /// If its score is greater than or equal to this value, it will be accepted; + /// otherwise, it will be rejected. The value must be between 0.0 and 1.0. The + /// default value is 0.5. + core.double? minValidScore; + /// The relative resource name of the reCAPTCHA v3 configuration object, in /// the format: ``` projects/{project_number}/apps/{app_id}/recaptchaV3Config /// ``` @@ -3980,6 +4257,7 @@ class GoogleFirebaseAppcheckV1RecaptchaV3Config { core.String? tokenTtl; GoogleFirebaseAppcheckV1RecaptchaV3Config({ + this.minValidScore, this.name, this.siteSecret, this.siteSecretSet, @@ -3988,6 +4266,7 @@ class GoogleFirebaseAppcheckV1RecaptchaV3Config { GoogleFirebaseAppcheckV1RecaptchaV3Config.fromJson(core.Map json_) : this( + minValidScore: (json_['minValidScore'] as core.num?)?.toDouble(), name: json_['name'] as core.String?, siteSecret: json_['siteSecret'] as core.String?, siteSecretSet: json_['siteSecretSet'] as core.bool?, @@ -3995,6 +4274,7 @@ class GoogleFirebaseAppcheckV1RecaptchaV3Config { ); core.Map toJson() => { + if (minValidScore != null) 'minValidScore': minValidScore!, if (name != null) 'name': name!, if (siteSecret != null) 'siteSecret': siteSecret!, if (siteSecretSet != null) 'siteSecretSet': siteSecretSet!, diff --git a/generated/googleapis/lib/firebaseappdistribution/v1.dart b/generated/googleapis/lib/firebaseappdistribution/v1.dart index a10e16c39..cdaba9256 100644 --- a/generated/googleapis/lib/firebaseappdistribution/v1.dart +++ b/generated/googleapis/lib/firebaseappdistribution/v1.dart @@ -89,7 +89,7 @@ class MediaResource { /// /// Request parameters: /// - /// [app] - The name of the app resource. Format: + /// [app] - Required. The name of the app resource. Format: /// `projects/{project_number}/apps/{app_id}` /// Value must have pattern `^projects/\[^/\]+/apps/\[^/\]+$`. /// @@ -350,8 +350,8 @@ class ProjectsAppsReleasesResource { /// the release resources. Format: `projects/{project_number}/apps/{app_id}` /// Value must have pattern `^projects/\[^/\]+/apps/\[^/\]+$`. /// - /// [filter] - The expression to filter releases listed in the response. To - /// learn more about filtering, refer to \[Google's AIP-160 + /// [filter] - Optional. The expression to filter releases listed in the + /// response. To learn more about filtering, refer to \[Google's AIP-160 /// standard\](http://aip.dev/160). Supported fields: - `releaseNotes.text` /// supports `=` (can contain a wildcard character (`*`) at the beginning or /// end of the string) - `createTime` supports `<`, `<=`, `>` and `>=`, and @@ -359,20 +359,20 @@ class ProjectsAppsReleasesResource { /// "2021-09-08T00:00:00+04:00"` - `releaseNotes.text="fixes" AND createTime /// >= "2021-09-08T00:00:00.0Z"` - `releaseNotes.text="*v1.0.0-rc*"` /// - /// [orderBy] - The fields used to order releases. Supported fields: - - /// `createTime` To specify descending order for a field, append a "desc" + /// [orderBy] - Optional. The fields used to order releases. Supported fields: + /// - `createTime` To specify descending order for a field, append a "desc" /// suffix, for example, `createTime desc`. If this parameter is not set, /// releases are ordered by `createTime` in descending order. /// - /// [pageSize] - The maximum number of releases to return. The service may - /// return fewer than this value. The valid range is \[1-100\]; If unspecified - /// (0), at most 25 releases are returned. Values above 100 are coerced to - /// 100. + /// [pageSize] - Optional. The maximum number of releases to return. The + /// service may return fewer than this value. The valid range is \[1-100\]; If + /// unspecified (0), at most 25 releases are returned. Values above 100 are + /// coerced to 100. /// - /// [pageToken] - A page token, received from a previous `ListReleases` call. - /// Provide this to retrieve the subsequent page. When paginating, all other - /// parameters provided to `ListReleases` must match the call that provided - /// the page token. + /// [pageToken] - Optional. A page token, received from a previous + /// `ListReleases` call. Provide this to retrieve the subsequent page. When + /// paginating, all other parameters provided to `ListReleases` must match the + /// call that provided the page token. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -423,7 +423,7 @@ class ProjectsAppsReleasesResource { /// Value must have pattern /// `^projects/\[^/\]+/apps/\[^/\]+/releases/\[^/\]+$`. /// - /// [updateMask] - The list of fields to update. + /// [updateMask] - Optional. The list of fields to update. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -557,15 +557,15 @@ class ProjectsAppsReleasesFeedbackReportsResource { /// Value must have pattern /// `^projects/\[^/\]+/apps/\[^/\]+/releases/\[^/\]+$`. /// - /// [pageSize] - The maximum number of feedback reports to return. The service - /// may return fewer than this value. The valid range is \[1-100\]; If - /// unspecified (0), at most 25 feedback reports are returned. Values above - /// 100 are coerced to 100. + /// [pageSize] - Output only. The maximum number of feedback reports to + /// return. The service may return fewer than this value. The valid range is + /// \[1-100\]; If unspecified (0), at most 25 feedback reports are returned. + /// Values above 100 are coerced to 100. /// - /// [pageToken] - A page token, received from a previous `ListFeedbackReports` - /// call. Provide this to retrieve the subsequent page. When paginating, all - /// other parameters provided to `ListFeedbackReports` must match the call - /// that provided the page token. + /// [pageToken] - Output only. A page token, received from a previous + /// `ListFeedbackReports` call. Provide this to retrieve the subsequent page. + /// When paginating, all other parameters provided to `ListFeedbackReports` + /// must match the call that provided the page token. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1135,7 +1135,7 @@ class ProjectsGroupsResource { /// `projects/{project_number}/groups/{group_alias}` /// Value must have pattern `^projects/\[^/\]+/groups/\[^/\]+$`. /// - /// [updateMask] - The list of fields to update. + /// [updateMask] - Optional. The list of fields to update. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1345,7 +1345,7 @@ class ProjectsTestersResource { /// `projects/{project_number}/testers/{email_address}` /// Value must have pattern `^projects/\[^/\]+/testers/\[^/\]+$`. /// - /// [updateMask] - The list of fields to update. + /// [updateMask] - Optional. The list of fields to update. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2393,12 +2393,16 @@ class GoogleFirebaseAppdistroV1DistributeReleaseRequest { /// /// A combined maximum of 999 `testerEmails` and `groupAliases` can be /// specified in a single request. + /// + /// Optional. core.List? groupAliases; /// A list of tester email addresses to be given access to this release. /// /// A combined maximum of 999 `testerEmails` and `groupAliases` can be /// specified in a single request. + /// + /// Optional. core.List? testerEmails; GoogleFirebaseAppdistroV1DistributeReleaseRequest({ @@ -2714,6 +2718,11 @@ class GoogleFirebaseAppdistroV1Release { /// Output only. core.String? displayVersion; + /// The time the release will expire. + /// + /// Output only. + core.String? expireTime; + /// A link to the Firebase console displaying a single release. /// /// Output only. @@ -2734,15 +2743,22 @@ class GoogleFirebaseAppdistroV1Release { /// Output only. core.String? testingUri; + /// The time the release was last updated. + /// + /// Output only. + core.String? updateTime; + GoogleFirebaseAppdistroV1Release({ this.binaryDownloadUri, this.buildVersion, this.createTime, this.displayVersion, + this.expireTime, this.firebaseConsoleUri, this.name, this.releaseNotes, this.testingUri, + this.updateTime, }); GoogleFirebaseAppdistroV1Release.fromJson(core.Map json_) @@ -2751,6 +2767,7 @@ class GoogleFirebaseAppdistroV1Release { buildVersion: json_['buildVersion'] as core.String?, createTime: json_['createTime'] as core.String?, displayVersion: json_['displayVersion'] as core.String?, + expireTime: json_['expireTime'] as core.String?, firebaseConsoleUri: json_['firebaseConsoleUri'] as core.String?, name: json_['name'] as core.String?, releaseNotes: @@ -2760,6 +2777,7 @@ class GoogleFirebaseAppdistroV1Release { ) : null, testingUri: json_['testingUri'] as core.String?, + updateTime: json_['updateTime'] as core.String?, ); core.Map toJson() => { @@ -2767,10 +2785,12 @@ class GoogleFirebaseAppdistroV1Release { if (buildVersion != null) 'buildVersion': buildVersion!, if (createTime != null) 'createTime': createTime!, if (displayVersion != null) 'displayVersion': displayVersion!, + if (expireTime != null) 'expireTime': expireTime!, if (firebaseConsoleUri != null) 'firebaseConsoleUri': firebaseConsoleUri!, if (name != null) 'name': name!, if (releaseNotes != null) 'releaseNotes': releaseNotes!, if (testingUri != null) 'testingUri': testingUri!, + if (updateTime != null) 'updateTime': updateTime!, }; } diff --git a/generated/googleapis/lib/firebaseapphosting/v1.dart b/generated/googleapis/lib/firebaseapphosting/v1.dart index 6460e373a..1dbb99088 100644 --- a/generated/googleapis/lib/firebaseapphosting/v1.dart +++ b/generated/googleapis/lib/firebaseapphosting/v1.dart @@ -137,9 +137,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -1521,6 +1521,64 @@ class ProjectsLocationsOperationsResource { } } +/// The URI of an storage archive or a signed URL to use as the build source. +class ArchiveSource { + /// The author contained in the metadata of a version control change. + /// + /// Optional. + SourceUserMetadata? author; + + /// An optional message that describes the uploaded version of the source + /// code. + /// + /// Optional. + core.String? description; + + /// Signed URL to an archive in a storage bucket. + core.String? externalSignedUri; + + /// Relative path in the archive. + /// + /// Optional. + core.String? rootDirectory; + + /// URI to an archive in Cloud Storage. + /// + /// The object must be a zipped (.zip) or gzipped archive file (.tar.gz) + /// containing source to deploy. + core.String? userStorageUri; + + ArchiveSource({ + this.author, + this.description, + this.externalSignedUri, + this.rootDirectory, + this.userStorageUri, + }); + + ArchiveSource.fromJson(core.Map json_) + : this( + author: + json_.containsKey('author') + ? SourceUserMetadata.fromJson( + json_['author'] as core.Map, + ) + : null, + description: json_['description'] as core.String?, + externalSignedUri: json_['externalSignedUri'] as core.String?, + rootDirectory: json_['rootDirectory'] as core.String?, + userStorageUri: json_['userStorageUri'] as core.String?, + ); + + core.Map toJson() => { + if (author != null) 'author': author!, + if (description != null) 'description': description!, + if (externalSignedUri != null) 'externalSignedUri': externalSignedUri!, + if (rootDirectory != null) 'rootDirectory': rootDirectory!, + if (userStorageUri != null) 'userStorageUri': userStorageUri!, + }; +} + /// A backend is the primary resource of App Hosting. class Backend { /// Unstructured key value map that may be set by external tools to store and @@ -1604,6 +1662,14 @@ class Backend { /// Output only. core.bool? reconciling; + /// A field that, if true, indicates that incoming request logs are disabled + /// for this backend. + /// + /// Incoming request logs are enabled by default. + /// + /// Optional. + core.bool? requestLogsDisabled; + /// The name of the service account used for Cloud Build and Cloud Run. /// /// Should have the role roles/firebaseapphosting.computeRunner or equivalent @@ -1665,6 +1731,7 @@ class Backend { this.mode, this.name, this.reconciling, + this.requestLogsDisabled, this.serviceAccount, this.servingLocality, this.uid, @@ -1703,6 +1770,7 @@ class Backend { mode: json_['mode'] as core.String?, name: json_['name'] as core.String?, reconciling: json_['reconciling'] as core.bool?, + requestLogsDisabled: json_['requestLogsDisabled'] as core.bool?, serviceAccount: json_['serviceAccount'] as core.String?, servingLocality: json_['servingLocality'] as core.String?, uid: json_['uid'] as core.String?, @@ -1724,6 +1792,8 @@ class Backend { if (mode != null) 'mode': mode!, if (name != null) 'name': name!, if (reconciling != null) 'reconciling': reconciling!, + if (requestLogsDisabled != null) + 'requestLogsDisabled': requestLogsDisabled!, if (serviceAccount != null) 'serviceAccount': serviceAccount!, if (servingLocality != null) 'servingLocality': servingLocality!, if (uid != null) 'uid': uid!, @@ -1933,16 +2003,25 @@ class Build { /// The source for the build. class BuildSource { + /// An archive source. + ArchiveSource? archive; + /// A codebase source. CodebaseSource? codebase; /// An Artifact Registry container image source. ContainerSource? container; - BuildSource({this.codebase, this.container}); + BuildSource({this.archive, this.codebase, this.container}); BuildSource.fromJson(core.Map json_) : this( + archive: + json_.containsKey('archive') + ? ArchiveSource.fromJson( + json_['archive'] as core.Map, + ) + : null, codebase: json_.containsKey('codebase') ? CodebaseSource.fromJson( @@ -1958,6 +2037,7 @@ class BuildSource { ); core.Map toJson() => { + if (archive != null) 'archive': archive!, if (codebase != null) 'codebase': codebase!, if (container != null) 'container': container!, }; @@ -3127,7 +3207,7 @@ class Rollout { /// It doesn't have to be built; a rollout will wait for a build to be ready /// before updating traffic. /// - /// Immutable. + /// Required. Immutable. core.String? build; /// Time at which the rollout was created. @@ -3428,6 +3508,43 @@ class ServingBehavior { }; } +/// Metadata for the user who started the build. +class SourceUserMetadata { + /// The user-chosen displayname. + /// + /// May be empty. + /// + /// Output only. + core.String? displayName; + + /// The account email linked to the EUC that created the build. + /// + /// May be a service account or other robot account. + /// + /// Output only. + core.String? email; + + /// The URI of a profile photo associated with the user who created the build. + /// + /// Output only. + core.String? imageUri; + + SourceUserMetadata({this.displayName, this.email, this.imageUri}); + + SourceUserMetadata.fromJson(core.Map json_) + : this( + displayName: json_['displayName'] as core.String?, + email: json_['email'] as core.String?, + imageUri: json_['imageUri'] as core.String?, + ); + + core.Map toJson() => { + if (displayName != null) 'displayName': displayName!, + if (email != null) 'email': email!, + if (imageUri != null) 'imageUri': imageUri!, + }; +} + /// The `Status` type defines a logical error model that is suitable for /// different programming environments, including REST APIs and RPC APIs. /// diff --git a/generated/googleapis/lib/firebasedataconnect/v1.dart b/generated/googleapis/lib/firebasedataconnect/v1.dart index 0e344984e..dc7db24a5 100644 --- a/generated/googleapis/lib/firebasedataconnect/v1.dart +++ b/generated/googleapis/lib/firebasedataconnect/v1.dart @@ -130,9 +130,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -644,6 +644,58 @@ class ProjectsLocationsServicesResource { return Service.fromJson(response_ as core.Map); } + /// Execute introspection query against the Firebase Data Connect's generated + /// GraphQL schema. + /// + /// GraphQL introspection query provides metadata such as what tables the + /// schema have, what queries and mutations can be performed on the schema, + /// and so on. Read more at https://graphql.org/learn/introspection. + /// IntrospectGraphql can read schema metadata but cannot read rows from Cloud + /// SQL instance, which can be done via ExecuteGraphqlRead. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Required. The relative resource name of Firebase Data Connect + /// service, in the format: ``` + /// projects/{project}/locations/{location}/services/{service} ``` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/services/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GraphqlResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future introspectGraphql( + GraphqlRequest request, + core.String name, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':introspectGraphql'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GraphqlResponse.fromJson( + response_ as core.Map, + ); + } + /// Lists Services in a given project and location. /// /// Request parameters: @@ -1056,6 +1108,106 @@ class ProjectsLocationsServicesConnectorsResource { return Connector.fromJson(response_ as core.Map); } + /// Impersonate a mutation defined on a Firebase Data Connect connector. + /// + /// It grants the admin SDK access to mutations defined in the given + /// connector. The caller can choose to impersonate a particular Firebase Auth + /// user, or skip @auth completely. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Required. The resource name of the connector to find the + /// predefined query/mutation, in the format: ``` + /// projects/{project}/locations/{location}/services/{service}/connectors/{connector} + /// ``` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/services/\[^/\]+/connectors/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GraphqlResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future impersonateMutation( + ImpersonateRequest request, + core.String name, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':impersonateMutation'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GraphqlResponse.fromJson( + response_ as core.Map, + ); + } + + /// Impersonate a query defined on a Firebase Data Connect connector. + /// + /// It grants the admin SDK access to queries defined in the given connector. + /// The caller can choose to impersonate a particular Firebase Auth user, or + /// skip @auth completely. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Required. The resource name of the connector to find the + /// predefined query/mutation, in the format: ``` + /// projects/{project}/locations/{location}/services/{service}/connectors/{connector} + /// ``` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/services/\[^/\]+/connectors/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GraphqlResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future impersonateQuery( + ImpersonateRequest request, + core.String name, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':impersonateQuery'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GraphqlResponse.fromJson( + response_ as core.Map, + ); + } + /// Lists Connectors in a given project and location. /// /// Request parameters: @@ -2129,6 +2281,53 @@ class GraphqlResponse { }; } +/// The Impersonate request to Firebase Data Connect. +class ImpersonateRequest { + /// Additional GraphQL request information. + /// + /// Optional. + GraphqlRequestExtensions? extensions; + + /// The name of the GraphQL operation name. + /// + /// Required because all Connector operations must be named. See + /// https://graphql.org/learn/queries/#operation-name. + /// + /// Required. + core.String? operationName; + + /// Values for GraphQL variables provided in this request. + /// + /// Optional. + /// + /// The values for Object must be JSON objects. It can consist of `num`, + /// `String`, `bool` and `null` as well as `Map` and `List` values. + core.Map? variables; + + ImpersonateRequest({this.extensions, this.operationName, this.variables}); + + ImpersonateRequest.fromJson(core.Map json_) + : this( + extensions: + json_.containsKey('extensions') + ? GraphqlRequestExtensions.fromJson( + json_['extensions'] as core.Map, + ) + : null, + operationName: json_['operationName'] as core.String?, + variables: + json_.containsKey('variables') + ? json_['variables'] as core.Map + : null, + ); + + core.Map toJson() => { + if (extensions != null) 'extensions': extensions!, + if (operationName != null) 'operationName': operationName!, + if (variables != null) 'variables': variables!, + }; +} + /// Impersonation configures the Firebase Auth context to impersonate. class Impersonation { /// Evaluate the auth policy with a customized JWT auth token. @@ -2451,6 +2650,22 @@ class PostgreSql { /// Required. core.String? database; + /// Ephemeral is true if this data connect service is served from temporary + /// in-memory emulation of Postgres. + /// + /// While Cloud SQL is being provisioned, the data connect service provides + /// the ephemeral service to help developers get started. Once the Cloud SQL + /// is provisioned, Data Connect service will transfer its data on a + /// best-effort basis to the Cloud SQL instance. WARNING: Ephemeral data + /// sources will expire after 24 hour. The data will be lost if they aren't + /// transferred to the Cloud SQL instance. WARNING: When `ephemeral=true`, + /// mutations to the database are not guaranteed to be durably persisted, even + /// if an OK status code is returned. All or parts of the data may be lost or + /// reverted to earlier versions. + /// + /// Output only. + core.bool? ephemeral; + /// Configure how to perform Postgresql schema migration. /// /// Optional. @@ -2488,11 +2703,15 @@ class PostgreSql { /// No Postgres data source is linked. /// /// If set, don't allow `database` and `schema_validation` to be configured. + @core.Deprecated( + 'Not supported. Member documentation may have more information.', + ) core.bool? unlinked; PostgreSql({ this.cloudSql, this.database, + this.ephemeral, this.schemaMigration, this.schemaValidation, this.unlinked, @@ -2507,6 +2726,7 @@ class PostgreSql { ) : null, database: json_['database'] as core.String?, + ephemeral: json_['ephemeral'] as core.bool?, schemaMigration: json_['schemaMigration'] as core.String?, schemaValidation: json_['schemaValidation'] as core.String?, unlinked: json_['unlinked'] as core.bool?, @@ -2515,6 +2735,7 @@ class PostgreSql { core.Map toJson() => { if (cloudSql != null) 'cloudSql': cloudSql!, if (database != null) 'database': database!, + if (ephemeral != null) 'ephemeral': ephemeral!, if (schemaMigration != null) 'schemaMigration': schemaMigration!, if (schemaValidation != null) 'schemaValidation': schemaValidation!, if (unlinked != null) 'unlinked': unlinked!, diff --git a/generated/googleapis/lib/firestore/v1.dart b/generated/googleapis/lib/firestore/v1.dart index 79d390b60..ae0cc95f7 100644 --- a/generated/googleapis/lib/firestore/v1.dart +++ b/generated/googleapis/lib/firestore/v1.dart @@ -217,7 +217,7 @@ class ProjectsDatabasesResource { /// 4-63 characters. Valid characters are /a-z-/ with first character a letter /// and the last a letter or a number. Must not be UUID-like /// /\[0-9a-f\]{8}(-\[0-9a-f\]{4}){3}-\[0-9a-f\]{12}/. "(default)" database ID - /// is also valid. + /// is also valid if the database is Standard edition. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2623,9 +2623,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -4202,7 +4202,7 @@ class GoogleFirestoreAdminV1CloneDatabaseRequest { /// value should be 4-63 characters. Valid characters are /a-z-/ with first /// character a letter and the last a letter or a number. Must not be /// UUID-like /\[0-9a-f\]{8}(-\[0-9a-f\]{4}){3}-\[0-9a-f\]{12}/. "(default)" - /// database ID is also valid. + /// database ID is also valid if the database is Standard edition. /// /// Required. core.String? databaseId; @@ -4890,16 +4890,31 @@ class GoogleFirestoreAdminV1Index { /// Possible string values are: /// - "DENSITY_UNSPECIFIED" : Unspecified. It will use database default /// setting. This value is input only. - /// - "SPARSE_ALL" : In order for an index entry to be added, the document - /// must contain all fields specified in the index. This is the only allowed - /// value for indexes having ApiScope `ANY_API` and `DATASTORE_MODE_API`. - /// - "SPARSE_ANY" : In order for an index entry to be added, the document - /// must contain at least one of the fields specified in the index. - /// Non-existent fields are treated as having a NULL value when generating - /// index entries. - /// - "DENSE" : An index entry will be added regardless of whether the - /// document contains any of the fields specified in the index. Non-existent - /// fields are treated as having a NULL value when generating index entries. + /// - "SPARSE_ALL" : An index entry will only exist if ALL fields are present + /// in the document. This is both the default and only allowed value for + /// Standard Edition databases (for both Cloud Firestore `ANY_API` and Cloud + /// Datastore `DATASTORE_MODE_API`). Take for example the following document: + /// ``` { "__name__": "...", "a": 1, "b": 2, "c": 3 } ``` an index on `(a ASC, + /// b ASC, c ASC, __name__ ASC)` will generate an index entry for this + /// document since `a`, 'b', `c`, and `__name__` are all present but an index + /// of `(a ASC, d ASC, __name__ ASC)` will not generate an index entry for + /// this document since `d` is missing. This means that such indexes can only + /// be used to serve a query when the query has either implicit or explicit + /// requirements that all fields from the index are present. + /// - "SPARSE_ANY" : An index entry will exist if ANY field are present in the + /// document. This is used as the definition of a sparse index for Enterprise + /// Edition databases. Take for example the following document: ``` { + /// "__name__": "...", "a": 1, "b": 2, "c": 3 } ``` an index on `(a ASC, d + /// ASC)` will generate an index entry for this document since `a` is present, + /// and will fill in an `unset` value for `d`. An index on `(d ASC, e ASC)` + /// will not generate any index entry as neither `d` nor `e` are present. An + /// index that contains `__name__` will generate an index entry for all + /// documents since Firestore guarantees that all documents have a `__name__` + /// field. + /// - "DENSE" : An index entry will exist regardless of if the fields are + /// present or not. This is the default density for an Enterprise Edition + /// database. The index will store `unset` values for fields that are not + /// present in the document. core.String? density; /// The fields supported by this index. @@ -4980,6 +4995,14 @@ class GoogleFirestoreAdminV1Index { /// attempted to create this index failed, then re-create the index. core.String? state; + /// Whether it is an unique index. + /// + /// Unique index ensures all values for the indexed field(s) are unique across + /// documents. + /// + /// Optional. + core.bool? unique; + GoogleFirestoreAdminV1Index({ this.apiScope, this.density, @@ -4989,6 +5012,7 @@ class GoogleFirestoreAdminV1Index { this.queryScope, this.shardCount, this.state, + this.unique, }); GoogleFirestoreAdminV1Index.fromJson(core.Map json_) @@ -5008,6 +5032,7 @@ class GoogleFirestoreAdminV1Index { queryScope: json_['queryScope'] as core.String?, shardCount: json_['shardCount'] as core.int?, state: json_['state'] as core.String?, + unique: json_['unique'] as core.bool?, ); core.Map toJson() => { @@ -5019,6 +5044,7 @@ class GoogleFirestoreAdminV1Index { if (queryScope != null) 'queryScope': queryScope!, if (shardCount != null) 'shardCount': shardCount!, if (state != null) 'state': state!, + if (unique != null) 'unique': unique!, }; } @@ -5422,7 +5448,7 @@ class GoogleFirestoreAdminV1RestoreDatabaseRequest { /// value should be 4-63 characters. Valid characters are /a-z-/ with first /// character a letter and the last a letter or a number. Must not be /// UUID-like /\[0-9a-f\]{8}(-\[0-9a-f\]{4}){3}-\[0-9a-f\]{12}/. "(default)" - /// database ID is also valid. + /// database ID is also valid if the database is Standard edition. /// /// Required. core.String? databaseId; diff --git a/generated/googleapis/lib/fitness/v1.dart b/generated/googleapis/lib/fitness/v1.dart index dc5e9b78d..99713e3cb 100644 --- a/generated/googleapis/lib/fitness/v1.dart +++ b/generated/googleapis/lib/fitness/v1.dart @@ -798,10 +798,10 @@ class UsersSessionsResource { /// [activityType] - If non-empty, only sessions with these activity types /// should be returned. /// - /// [endTime] - An RFC3339 timestamp. Only sessions ending between the start - /// and end times will be included in the response. If this time is omitted - /// but startTime is specified, all sessions from startTime to the end of time - /// will be returned. + /// [endTime] - An RFC3339 timestamp. Only sessions starting before endTime + /// and ending after startTime up to (endTime + 1 day) will be included in the + /// response. If this time is omitted but startTime is specified, all sessions + /// ending after startTime to the end of time will be returned. /// /// [includeDeleted] - If true, and if both startTime and endTime are omitted, /// session deletions will be returned. @@ -813,10 +813,11 @@ class UsersSessionsResource { /// and the page token is specified, sessions modified in the last 30 days are /// returned. /// - /// [startTime] - An RFC3339 timestamp. Only sessions ending between the start - /// and end times will be included in the response. If this time is omitted - /// but endTime is specified, all sessions from the start of time up to - /// endTime will be returned. + /// [startTime] - An RFC3339 timestamp. Only sessions starting before endTime + /// and ending after startTime up to (endTime + 1 day) will be included in the + /// response. If this time is omitted but endTime is specified, all sessions + /// starting before endTime and ending after the start of time up to (endTime + /// + 1 day) will be returned. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1856,8 +1857,8 @@ class ListSessionsResponse { /// the request. core.String? nextPageToken; - /// Sessions with an end time that is between startTime and endTime of the - /// request. + /// Sessions starting before endTime of the request and ending after startTime + /// of the request up to (endTime of the request + 1 day). core.List? session; ListSessionsResponse({ diff --git a/generated/googleapis/lib/gkebackup/v1.dart b/generated/googleapis/lib/gkebackup/v1.dart index 126372b69..687fe3c07 100644 --- a/generated/googleapis/lib/gkebackup/v1.dart +++ b/generated/googleapis/lib/gkebackup/v1.dart @@ -138,9 +138,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/gkehub/v1.dart b/generated/googleapis/lib/gkehub/v1.dart index 5efb95d9b..e3827bf83 100644 --- a/generated/googleapis/lib/gkehub/v1.dart +++ b/generated/googleapis/lib/gkehub/v1.dart @@ -215,9 +215,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -9151,7 +9151,15 @@ class ResourceOptions { /// Optional. core.String? connectVersion; - /// Major version of the Kubernetes cluster. + /// Git version of the Kubernetes cluster. + /// + /// This is only used to gate the Connect Agent migration to svc.id.goog on + /// GDC-SO 1.33.100 patch and above. + /// + /// Optional. + core.String? k8sGitVersion; + + /// Major and minor version of the Kubernetes cluster. /// /// This is only used to determine which version to use for the /// CustomResourceDefinition resources, `apiextensions/v1beta1` @@ -9169,17 +9177,24 @@ class ResourceOptions { /// Optional. core.bool? v1beta1Crd; - ResourceOptions({this.connectVersion, this.k8sVersion, this.v1beta1Crd}); + ResourceOptions({ + this.connectVersion, + this.k8sGitVersion, + this.k8sVersion, + this.v1beta1Crd, + }); ResourceOptions.fromJson(core.Map json_) : this( connectVersion: json_['connectVersion'] as core.String?, + k8sGitVersion: json_['k8sGitVersion'] as core.String?, k8sVersion: json_['k8sVersion'] as core.String?, v1beta1Crd: json_['v1beta1Crd'] as core.bool?, ); core.Map toJson() => { if (connectVersion != null) 'connectVersion': connectVersion!, + if (k8sGitVersion != null) 'k8sGitVersion': k8sGitVersion!, if (k8sVersion != null) 'k8sVersion': k8sVersion!, if (v1beta1Crd != null) 'v1beta1Crd': v1beta1Crd!, }; diff --git a/generated/googleapis/lib/gkehub/v2.dart b/generated/googleapis/lib/gkehub/v2.dart index cca922dea..f091fb5b2 100644 --- a/generated/googleapis/lib/gkehub/v2.dart +++ b/generated/googleapis/lib/gkehub/v2.dart @@ -119,9 +119,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -3919,7 +3919,7 @@ class ServiceMeshSpec { /// /// Optional. /// Possible string values are: - /// - "MANAGEMENT_UNSPECIFIED" : Unspecified + /// - "MANAGEMENT_UNSPECIFIED" : Unspecified. /// - "MANAGEMENT_AUTOMATIC" : Google should manage my Service Mesh for the /// cluster. /// - "MANAGEMENT_MANUAL" : User will manually configure their service mesh diff --git a/generated/googleapis/lib/gkeonprem/v1.dart b/generated/googleapis/lib/gkeonprem/v1.dart index 83b2188b9..18863356c 100644 --- a/generated/googleapis/lib/gkeonprem/v1.dart +++ b/generated/googleapis/lib/gkeonprem/v1.dart @@ -135,9 +135,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -8624,6 +8624,9 @@ class VmwareAdminCluster { /// Configuration for registry. VmwareAdminPrivateRegistryConfig? privateRegistryConfig; + /// Configuration for proxy. + VmwareAdminProxy? proxy; + /// If set, there are currently changes in flight to the VMware admin cluster. /// /// Output only. @@ -8694,6 +8697,7 @@ class VmwareAdminCluster { this.platformConfig, this.preparedSecrets, this.privateRegistryConfig, + this.proxy, this.reconciling, this.state, this.status, @@ -8791,6 +8795,12 @@ class VmwareAdminCluster { as core.Map, ) : null, + proxy: + json_.containsKey('proxy') + ? VmwareAdminProxy.fromJson( + json_['proxy'] as core.Map, + ) + : null, reconciling: json_['reconciling'] as core.bool?, state: json_['state'] as core.String?, status: @@ -8842,6 +8852,7 @@ class VmwareAdminCluster { if (preparedSecrets != null) 'preparedSecrets': preparedSecrets!, if (privateRegistryConfig != null) 'privateRegistryConfig': privateRegistryConfig!, + if (proxy != null) 'proxy': proxy!, if (reconciling != null) 'reconciling': reconciling!, if (state != null) 'state': state!, if (status != null) 'status': status!, @@ -9203,6 +9214,32 @@ class VmwareAdminPrivateRegistryConfig { }; } +/// VmwareAdminProxy represents configuration for admin cluster proxy. +class VmwareAdminProxy { + /// A comma-separated list of IP addresses, IP address ranges, host names, and + /// domain names that should not go through the proxy server. + /// + /// When Google Distributed Cloud sends a request to one of these addresses, + /// hosts, or domains, the request is sent directly. + core.String? noProxy; + + /// The HTTP address of proxy server. + core.String? url; + + VmwareAdminProxy({this.noProxy, this.url}); + + VmwareAdminProxy.fromJson(core.Map json_) + : this( + noProxy: json_['noProxy'] as core.String?, + url: json_['url'] as core.String?, + ); + + core.Map toJson() => { + if (noProxy != null) 'noProxy': noProxy!, + if (url != null) 'url': url!, + }; +} + /// VmwareSeesawConfig represents configuration parameters for an already /// existing Seesaw load balancer. /// diff --git a/generated/googleapis/lib/healthcare/v1.dart b/generated/googleapis/lib/healthcare/v1.dart index a7559a24c..439f41992 100644 --- a/generated/googleapis/lib/healthcare/v1.dart +++ b/generated/googleapis/lib/healthcare/v1.dart @@ -149,9 +149,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -7153,9 +7153,8 @@ class ProjectsLocationsDatasetsFhirStoresFhirResource { /// resources. For a search query that will match a large number of resources, /// you can avoiding using the special synchronous index by including an /// additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if - /// you want to keep the default sorting order. Note: The special synchronous - /// identifier index are currently disabled for DocumentReference and - /// DocumentManifest searches. For samples and detailed information, see + /// you want to keep the default sorting order. For samples and detailed + /// information, see /// [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) /// and /// [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search). @@ -7264,9 +7263,8 @@ class ProjectsLocationsDatasetsFhirStoresFhirResource { /// resources. For a search query that will match a large number of resources, /// you can avoiding using the special synchronous index by including an /// additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if - /// you want to keep the default sorting order. Note: The special synchronous - /// identifier index are currently disabled for DocumentReference and - /// DocumentManifest searches. For samples and detailed information, see + /// you want to keep the default sorting order. For samples and detailed + /// information, see /// [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) /// and /// [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search). @@ -8755,8 +8753,9 @@ class AccessDeterminationLogConfig { /// enforcement leading to the decision * Enforcement version at the time the /// applicable consents were applied * The Consent resource name * The /// timestamp of the Consent resource used for enforcement * Policy type - /// (`PATIENT` or `ADMIN`) Note that this mode adds some overhead to CRUD - /// operations. + /// (`PATIENT` or `ADMIN`) Due to the limited space for logging, this mode is + /// the same as `MINIMUM` for methods that return multiple resources (such as + /// FHIR Search). core.String? logLevel; AccessDeterminationLogConfig({this.logLevel}); diff --git a/generated/googleapis/lib/iam/v1.dart b/generated/googleapis/lib/iam/v1.dart index ea7d1421e..95f9c47b9 100644 --- a/generated/googleapis/lib/iam/v1.dart +++ b/generated/googleapis/lib/iam/v1.dart @@ -410,9 +410,8 @@ class LocationsWorkforcePoolsResource { /// [location] - The location of the pool. Format: `locations/{location}`. /// Value must have pattern `^locations/\[^/\]+$`. /// - /// [pageSize] - The maximum number of pools to return. If unspecified, at - /// most 50 pools will be returned. The maximum value is 1000; values above - /// 1000 are truncated to 1000. + /// [pageSize] - The maximum number of pools to return. The default value is + /// 50. The maximum value is 100. /// /// [pageToken] - A page token, received from a previous `ListWorkforcePools` /// call. Provide this to retrieve the subsequent page. @@ -4088,7 +4087,7 @@ class ProjectsLocationsWorkloadIdentityPoolsNamespacesManagedIdentitiesResource /// /// Request parameters: /// - /// [name] - Output only. The resource name of the managed identity. + /// [name] - Identifier. The resource name of the managed identity. /// Value must have pattern /// `^projects/\[^/\]+/locations/\[^/\]+/workloadIdentityPools/\[^/\]+/namespaces/\[^/\]+/managedIdentities/\[^/\]+$`. /// @@ -4658,7 +4657,7 @@ class ProjectsLocationsWorkloadIdentityPoolsProvidersResource { /// /// Request parameters: /// - /// [name] - Output only. The resource name of the provider. + /// [name] - Identifier. The resource name of the provider. /// Value must have pattern /// `^projects/\[^/\]+/locations/\[^/\]+/workloadIdentityPools/\[^/\]+/providers/\[^/\]+$`. /// @@ -10502,8 +10501,8 @@ class WorkforcePoolProvider { /// Optional. core.String? displayName; - /// Time after which the workload pool provider will be permanently purged and - /// cannot be recovered. + /// Time after which the workforce identity pool provider will be permanently + /// purged and cannot be recovered. /// /// Output only. core.String? expireTime; @@ -10518,8 +10517,7 @@ class WorkforcePoolProvider { /// or attribute condition expressions. To keep extended group memberships up /// to date, extended groups are retrieved when the user signs in and at /// regular intervals during the user's active session. Each user identity in - /// the workforce identity pool must map to a specific, unique Microsoft Entra - /// ID user. + /// the workforce identity pool must map to a unique Microsoft Entra ID user. /// /// Optional. GoogleIamAdminV1WorkforcePoolProviderExtraAttributesOAuth2Client? @@ -11004,12 +11002,16 @@ class WorkloadIdentityPoolManagedIdentity { /// A description of the managed identity. /// /// Cannot exceed 256 characters. + /// + /// Optional. core.String? description; /// Whether the managed identity is disabled. /// /// If disabled, credentials may no longer be issued for the identity, however /// existing credentials will still be accepted until they expire. + /// + /// Optional. core.bool? disabled; /// Time after which the managed identity will be permanently purged and @@ -11018,9 +11020,9 @@ class WorkloadIdentityPoolManagedIdentity { /// Output only. core.String? expireTime; - /// The resource name of the managed identity. + /// Identifier. /// - /// Output only. + /// The resource name of the managed identity. core.String? name; /// The state of the managed identity. @@ -11069,6 +11071,8 @@ class WorkloadIdentityPoolNamespace { /// A description of the namespace. /// /// Cannot exceed 256 characters. + /// + /// Optional. core.String? description; /// Whether the namespace is disabled. @@ -11076,6 +11080,8 @@ class WorkloadIdentityPoolNamespace { /// If disabled, credentials may no longer be issued for identities within /// this namespace, however existing credentials will still be accepted until /// they expire. + /// + /// Optional. core.bool? disabled; /// Time after which the namespace will be permanently purged and cannot be @@ -11238,9 +11244,9 @@ class WorkloadIdentityPoolProvider { /// Output only. core.String? expireTime; - /// The resource name of the provider. + /// Identifier. /// - /// Output only. + /// The resource name of the provider. core.String? name; /// An OpenId Connect 1.0 identity provider. diff --git a/generated/googleapis/lib/kmsinventory/v1.dart b/generated/googleapis/lib/kmsinventory/v1.dart index 452929564..fd1670eb4 100644 --- a/generated/googleapis/lib/kmsinventory/v1.dart +++ b/generated/googleapis/lib/kmsinventory/v1.dart @@ -1010,119 +1010,7 @@ class GoogleCloudKmsV1CryptoKeyVersion { /// A CryptoKeyVersionTemplate specifies the properties to use when creating a /// new CryptoKeyVersion, either manually with CreateCryptoKeyVersion or /// automatically as a result of auto-rotation. -class GoogleCloudKmsV1CryptoKeyVersionTemplate { - /// Algorithm to use when creating a CryptoKeyVersion based on this template. - /// - /// For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if - /// both this field is omitted and CryptoKey.purpose is ENCRYPT_DECRYPT. - /// - /// Required. - /// Possible string values are: - /// - "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED" : Not specified. - /// - "GOOGLE_SYMMETRIC_ENCRYPTION" : Creates symmetric encryption keys. - /// - "AES_128_GCM" : AES-GCM (Galois Counter Mode) using 128-bit keys. - /// - "AES_256_GCM" : AES-GCM (Galois Counter Mode) using 256-bit keys. - /// - "AES_128_CBC" : AES-CBC (Cipher Block Chaining Mode) using 128-bit keys. - /// - "AES_256_CBC" : AES-CBC (Cipher Block Chaining Mode) using 256-bit keys. - /// - "AES_128_CTR" : AES-CTR (Counter Mode) using 128-bit keys. - /// - "AES_256_CTR" : AES-CTR (Counter Mode) using 256-bit keys. - /// - "RSA_SIGN_PSS_2048_SHA256" : RSASSA-PSS 2048 bit key with a SHA256 - /// digest. - /// - "RSA_SIGN_PSS_3072_SHA256" : RSASSA-PSS 3072 bit key with a SHA256 - /// digest. - /// - "RSA_SIGN_PSS_4096_SHA256" : RSASSA-PSS 4096 bit key with a SHA256 - /// digest. - /// - "RSA_SIGN_PSS_4096_SHA512" : RSASSA-PSS 4096 bit key with a SHA512 - /// digest. - /// - "RSA_SIGN_PKCS1_2048_SHA256" : RSASSA-PKCS1-v1_5 with a 2048 bit key and - /// a SHA256 digest. - /// - "RSA_SIGN_PKCS1_3072_SHA256" : RSASSA-PKCS1-v1_5 with a 3072 bit key and - /// a SHA256 digest. - /// - "RSA_SIGN_PKCS1_4096_SHA256" : RSASSA-PKCS1-v1_5 with a 4096 bit key and - /// a SHA256 digest. - /// - "RSA_SIGN_PKCS1_4096_SHA512" : RSASSA-PKCS1-v1_5 with a 4096 bit key and - /// a SHA512 digest. - /// - "RSA_SIGN_RAW_PKCS1_2048" : RSASSA-PKCS1-v1_5 signing without encoding, - /// with a 2048 bit key. - /// - "RSA_SIGN_RAW_PKCS1_3072" : RSASSA-PKCS1-v1_5 signing without encoding, - /// with a 3072 bit key. - /// - "RSA_SIGN_RAW_PKCS1_4096" : RSASSA-PKCS1-v1_5 signing without encoding, - /// with a 4096 bit key. - /// - "RSA_DECRYPT_OAEP_2048_SHA256" : RSAES-OAEP 2048 bit key with a SHA256 - /// digest. - /// - "RSA_DECRYPT_OAEP_3072_SHA256" : RSAES-OAEP 3072 bit key with a SHA256 - /// digest. - /// - "RSA_DECRYPT_OAEP_4096_SHA256" : RSAES-OAEP 4096 bit key with a SHA256 - /// digest. - /// - "RSA_DECRYPT_OAEP_4096_SHA512" : RSAES-OAEP 4096 bit key with a SHA512 - /// digest. - /// - "RSA_DECRYPT_OAEP_2048_SHA1" : RSAES-OAEP 2048 bit key with a SHA1 - /// digest. - /// - "RSA_DECRYPT_OAEP_3072_SHA1" : RSAES-OAEP 3072 bit key with a SHA1 - /// digest. - /// - "RSA_DECRYPT_OAEP_4096_SHA1" : RSAES-OAEP 4096 bit key with a SHA1 - /// digest. - /// - "EC_SIGN_P256_SHA256" : ECDSA on the NIST P-256 curve with a SHA256 - /// digest. Other hash functions can also be used: - /// https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms - /// - "EC_SIGN_P384_SHA384" : ECDSA on the NIST P-384 curve with a SHA384 - /// digest. Other hash functions can also be used: - /// https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms - /// - "EC_SIGN_SECP256K1_SHA256" : ECDSA on the non-NIST secp256k1 curve. This - /// curve is only supported for HSM protection level. Other hash functions can - /// also be used: - /// https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms - /// - "EC_SIGN_ED25519" : EdDSA on the Curve25519 in pure mode (taking data as - /// input). - /// - "HMAC_SHA256" : HMAC-SHA256 signing with a 256 bit key. - /// - "HMAC_SHA1" : HMAC-SHA1 signing with a 160 bit key. - /// - "HMAC_SHA384" : HMAC-SHA384 signing with a 384 bit key. - /// - "HMAC_SHA512" : HMAC-SHA512 signing with a 512 bit key. - /// - "HMAC_SHA224" : HMAC-SHA224 signing with a 224 bit key. - /// - "EXTERNAL_SYMMETRIC_ENCRYPTION" : Algorithm representing symmetric - /// encryption by an external key manager. - /// - "ML_KEM_768" : ML-KEM-768 (FIPS 203) - /// - "ML_KEM_1024" : ML-KEM-1024 (FIPS 203) - /// - "KEM_XWING" : X-Wing hybrid KEM combining ML-KEM-768 with X25519 - /// following datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem/. - /// - "PQ_SIGN_ML_DSA_65" : The post-quantum Module-Lattice-Based Digital - /// Signature Algorithm, at security level 3. Randomized version. - /// - "PQ_SIGN_SLH_DSA_SHA2_128S" : The post-quantum stateless hash-based - /// digital signature algorithm, at security level 1. Randomized version. - /// - "PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256" : The post-quantum stateless - /// hash-based digital signature algorithm, at security level 1. Randomized - /// pre-hash version supporting SHA256 digests. - core.String? algorithm; - - /// ProtectionLevel to use when creating a CryptoKeyVersion based on this - /// template. - /// - /// Immutable. Defaults to SOFTWARE. - /// Possible string values are: - /// - "PROTECTION_LEVEL_UNSPECIFIED" : Not specified. - /// - "SOFTWARE" : Crypto operations are performed in software. - /// - "HSM" : Crypto operations are performed in a Hardware Security Module. - /// - "EXTERNAL" : Crypto operations are performed by an external key manager. - /// - "EXTERNAL_VPC" : Crypto operations are performed in an EKM-over-VPC - /// backend. - core.String? protectionLevel; - - GoogleCloudKmsV1CryptoKeyVersionTemplate({ - this.algorithm, - this.protectionLevel, - }); - - GoogleCloudKmsV1CryptoKeyVersionTemplate.fromJson(core.Map json_) - : this( - algorithm: json_['algorithm'] as core.String?, - protectionLevel: json_['protectionLevel'] as core.String?, - ); - - core.Map toJson() => { - if (algorithm != null) 'algorithm': algorithm!, - if (protectionLevel != null) 'protectionLevel': protectionLevel!, - }; -} +typedef GoogleCloudKmsV1CryptoKeyVersionTemplate = $CryptoKeyVersionTemplate; /// ExternalProtectionLevelOptions stores a group of additional fields for /// configuring a CryptoKeyVersion that are specific to the EXTERNAL protection diff --git a/generated/googleapis/lib/logging/v2.dart b/generated/googleapis/lib/logging/v2.dart index a8068b4db..458ac91a2 100644 --- a/generated/googleapis/lib/logging/v2.dart +++ b/generated/googleapis/lib/logging/v2.dart @@ -560,9 +560,9 @@ class BillingAccountsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^billingAccounts/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like "displayName=tokyo", and is @@ -3392,9 +3392,9 @@ class FoldersLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^folders/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like "displayName=tokyo", and is @@ -4529,8 +4529,10 @@ class FoldersLocationsLogScopesResource { /// /// Request parameters: /// - /// [parent] - Required. The parent project in which to create the log scope - /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]" For + /// [parent] - Required. The parent resource in which to create the log scope: + /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]" + /// "organizations/\[ORGANIZATION_ID\]/locations/\[LOCATION_ID\]" + /// "folders/\[FOLDER_ID\]/locations/\[LOCATION_ID\]" For /// example:"projects/my-project/locations/global" /// Value must have pattern `^folders/\[^/\]+/locations/\[^/\]+$`. /// @@ -4577,8 +4579,10 @@ class FoldersLocationsLogScopesResource { /// Request parameters: /// /// [name] - Required. The resource name of the log scope to delete: - /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]/logScopes/\[LOG_SCOPE_ID\]" - /// For example:"projects/my-project/locations/global/logScopes/my-log-scope" + /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]" + /// "organizations/\[ORGANIZATION_ID\]/locations/\[LOCATION_ID\]" + /// "folders/\[FOLDER_ID\]/locations/\[LOCATION_ID\]" For + /// example:"projects/my-project/locations/global/logScopes/my-log-scope" /// Value must have pattern /// `^folders/\[^/\]+/locations/\[^/\]+/logScopes/\[^/\]+$`. /// @@ -4612,8 +4616,10 @@ class FoldersLocationsLogScopesResource { /// Request parameters: /// /// [name] - Required. The resource name of the log scope: - /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]/logScopes/\[LOG_SCOPE_ID\]" - /// For example:"projects/my-project/locations/global/logScopes/my-log-scope" + /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]" + /// "organizations/\[ORGANIZATION_ID\]/locations/\[LOCATION_ID\]" + /// "folders/\[FOLDER_ID\]/locations/\[LOCATION_ID\]" For + /// example:"projects/my-project/locations/global/logScopes/my-log-scope" /// Value must have pattern /// `^folders/\[^/\]+/locations/\[^/\]+/logScopes/\[^/\]+$`. /// @@ -5802,9 +5808,9 @@ class LocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^\[^/\]+/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like "displayName=tokyo", and is @@ -7706,9 +7712,9 @@ class OrganizationsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^organizations/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like "displayName=tokyo", and is @@ -8843,8 +8849,10 @@ class OrganizationsLocationsLogScopesResource { /// /// Request parameters: /// - /// [parent] - Required. The parent project in which to create the log scope - /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]" For + /// [parent] - Required. The parent resource in which to create the log scope: + /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]" + /// "organizations/\[ORGANIZATION_ID\]/locations/\[LOCATION_ID\]" + /// "folders/\[FOLDER_ID\]/locations/\[LOCATION_ID\]" For /// example:"projects/my-project/locations/global" /// Value must have pattern `^organizations/\[^/\]+/locations/\[^/\]+$`. /// @@ -8891,8 +8899,10 @@ class OrganizationsLocationsLogScopesResource { /// Request parameters: /// /// [name] - Required. The resource name of the log scope to delete: - /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]/logScopes/\[LOG_SCOPE_ID\]" - /// For example:"projects/my-project/locations/global/logScopes/my-log-scope" + /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]" + /// "organizations/\[ORGANIZATION_ID\]/locations/\[LOCATION_ID\]" + /// "folders/\[FOLDER_ID\]/locations/\[LOCATION_ID\]" For + /// example:"projects/my-project/locations/global/logScopes/my-log-scope" /// Value must have pattern /// `^organizations/\[^/\]+/locations/\[^/\]+/logScopes/\[^/\]+$`. /// @@ -8926,8 +8936,10 @@ class OrganizationsLocationsLogScopesResource { /// Request parameters: /// /// [name] - Required. The resource name of the log scope: - /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]/logScopes/\[LOG_SCOPE_ID\]" - /// For example:"projects/my-project/locations/global/logScopes/my-log-scope" + /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]" + /// "organizations/\[ORGANIZATION_ID\]/locations/\[LOCATION_ID\]" + /// "folders/\[FOLDER_ID\]/locations/\[LOCATION_ID\]" For + /// example:"projects/my-project/locations/global/logScopes/my-log-scope" /// Value must have pattern /// `^organizations/\[^/\]+/locations/\[^/\]+/logScopes/\[^/\]+$`. /// @@ -10477,9 +10489,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like "displayName=tokyo", and is @@ -11614,8 +11626,10 @@ class ProjectsLocationsLogScopesResource { /// /// Request parameters: /// - /// [parent] - Required. The parent project in which to create the log scope - /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]" For + /// [parent] - Required. The parent resource in which to create the log scope: + /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]" + /// "organizations/\[ORGANIZATION_ID\]/locations/\[LOCATION_ID\]" + /// "folders/\[FOLDER_ID\]/locations/\[LOCATION_ID\]" For /// example:"projects/my-project/locations/global" /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// @@ -11662,8 +11676,10 @@ class ProjectsLocationsLogScopesResource { /// Request parameters: /// /// [name] - Required. The resource name of the log scope to delete: - /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]/logScopes/\[LOG_SCOPE_ID\]" - /// For example:"projects/my-project/locations/global/logScopes/my-log-scope" + /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]" + /// "organizations/\[ORGANIZATION_ID\]/locations/\[LOCATION_ID\]" + /// "folders/\[FOLDER_ID\]/locations/\[LOCATION_ID\]" For + /// example:"projects/my-project/locations/global/logScopes/my-log-scope" /// Value must have pattern /// `^projects/\[^/\]+/locations/\[^/\]+/logScopes/\[^/\]+$`. /// @@ -11697,8 +11713,10 @@ class ProjectsLocationsLogScopesResource { /// Request parameters: /// /// [name] - Required. The resource name of the log scope: - /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]/logScopes/\[LOG_SCOPE_ID\]" - /// For example:"projects/my-project/locations/global/logScopes/my-log-scope" + /// "projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]" + /// "organizations/\[ORGANIZATION_ID\]/locations/\[LOCATION_ID\]" + /// "folders/\[FOLDER_ID\]/locations/\[LOCATION_ID\]" For + /// example:"projects/my-project/locations/global/logScopes/my-log-scope" /// Value must have pattern /// `^projects/\[^/\]+/locations/\[^/\]+/logScopes/\[^/\]+$`. /// @@ -16093,8 +16111,9 @@ class LogScope { /// Output only. core.String? name; - /// Names of one or more parent resources: projects/\[PROJECT_ID\]May - /// alternatively be one or more views: + /// Names of one or more parent resources (organizations and folders are not + /// supported.): projects/\[PROJECT_ID\]May alternatively be one or more + /// views: /// projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]/buckets/\[BUCKET_ID\]/views/\[VIEW_ID\]A /// log scope can include a maximum of 5 projects and a maximum of 100 /// resources in total. @@ -17136,7 +17155,7 @@ class RecentQuery { /// (https://cloud.google.com/logging/docs/region-support)The QUERY_ID is a /// system generated alphanumeric ID. /// - /// Optional. + /// Output only. core.String? name; /// Analytics query that can be executed in Log Analytics. diff --git a/generated/googleapis/lib/looker/v1.dart b/generated/googleapis/lib/looker/v1.dart index 6c46e72a7..76c9fe0ee 100644 --- a/generated/googleapis/lib/looker/v1.dart +++ b/generated/googleapis/lib/looker/v1.dart @@ -119,9 +119,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -1959,6 +1959,14 @@ class ServiceAttachment { /// terminal state. core.String? connectionStatus; + /// Reason the service attachment creation failed. + /// + /// This value will only be populated if the service attachment encounters an + /// issue during provisioning. + /// + /// Output only. + core.String? failureReason; + /// Fully qualified domain name that will be used in the private DNS record /// created for the service attachment. /// @@ -1981,6 +1989,7 @@ class ServiceAttachment { ServiceAttachment({ this.connectionStatus, + this.failureReason, this.localFqdn, this.localFqdns, this.targetServiceAttachmentUri, @@ -1989,6 +1998,7 @@ class ServiceAttachment { ServiceAttachment.fromJson(core.Map json_) : this( connectionStatus: json_['connectionStatus'] as core.String?, + failureReason: json_['failureReason'] as core.String?, localFqdn: json_['localFqdn'] as core.String?, localFqdns: (json_['localFqdns'] as core.List?) @@ -2000,6 +2010,7 @@ class ServiceAttachment { core.Map toJson() => { if (connectionStatus != null) 'connectionStatus': connectionStatus!, + if (failureReason != null) 'failureReason': failureReason!, if (localFqdn != null) 'localFqdn': localFqdn!, if (localFqdns != null) 'localFqdns': localFqdns!, if (targetServiceAttachmentUri != null) diff --git a/generated/googleapis/lib/managedkafka/v1.dart b/generated/googleapis/lib/managedkafka/v1.dart index 4d51ae7f6..36469de77 100644 --- a/generated/googleapis/lib/managedkafka/v1.dart +++ b/generated/googleapis/lib/managedkafka/v1.dart @@ -153,9 +153,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -2279,6 +2279,18 @@ class ProjectsLocationsSchemaRegistriesResource { /// listed. Structured like: `projects/{project}/locations/{location}` /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// + /// [view] - Optional. Specifies the view to return for the schema registry + /// instances. If not specified, the default view is + /// SCHEMA_REGISTRY_VIEW_BASIC. + /// Possible string values are: + /// - "SCHEMA_REGISTRY_VIEW_UNSPECIFIED" : The unset value. The API will + /// default to SCHEMA_REGISTRY_VIEW_BASIC. + /// - "SCHEMA_REGISTRY_VIEW_BASIC" : If SchemaRegistryView is not specified, + /// this is the default value. Returns only the name of the schema registry. + /// The contexts associated with it are not included. + /// - "SCHEMA_REGISTRY_VIEW_FULL" : Returns the name of the schema registry + /// and all the contexts associated with it. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -2291,9 +2303,11 @@ class ProjectsLocationsSchemaRegistriesResource { /// this method will complete with the same error. async.Future list( core.String parent, { + core.String? view, core.String? $fields, }) async { final queryParams_ = >{ + if (view != null) 'view': [view], if ($fields != null) 'fields': [$fields], }; @@ -4974,6 +4988,12 @@ class Cluster { /// Optional. TlsConfig? tlsConfig; + /// UpdateOptions represents options that control how updates to the cluster + /// are applied. + /// + /// Optional. + UpdateOptions? updateOptions; + /// The time when the cluster was last updated. /// /// Output only. @@ -4990,6 +5010,7 @@ class Cluster { this.satisfiesPzs, this.state, this.tlsConfig, + this.updateOptions, this.updateTime, }); @@ -5029,6 +5050,12 @@ class Cluster { json_['tlsConfig'] as core.Map, ) : null, + updateOptions: + json_.containsKey('updateOptions') + ? UpdateOptions.fromJson( + json_['updateOptions'] as core.Map, + ) + : null, updateTime: json_['updateTime'] as core.String?, ); @@ -5043,6 +5070,7 @@ class Cluster { if (satisfiesPzs != null) 'satisfiesPzs': satisfiesPzs!, if (state != null) 'state': state!, if (tlsConfig != null) 'tlsConfig': tlsConfig!, + if (updateOptions != null) 'updateOptions': updateOptions!, if (updateTime != null) 'updateTime': updateTime!, }; } @@ -6682,6 +6710,39 @@ class TrustConfig { }; } +/// UpdateOptions specifies options that influence how a cluster update is +/// applied. +/// +/// These options control the behavior of the update process, rather than +/// defining the desired end-state of a cluster. +class UpdateOptions { + /// If true, allows an update operation that increases the total vCPU and/or + /// memory allocation of the cluster to significantly decrease the per-broker + /// vCPU and/or memory allocation. + /// + /// This can result in reduced performance and availability. By default, the + /// update operation will fail if an upscale request results in a vCPU or + /// memory allocation for the brokers that is smaller than 90% of the current + /// broker size. + /// + /// Optional. + core.bool? allowBrokerDownscaleOnClusterUpscale; + + UpdateOptions({this.allowBrokerDownscaleOnClusterUpscale}); + + UpdateOptions.fromJson(core.Map json_) + : this( + allowBrokerDownscaleOnClusterUpscale: + json_['allowBrokerDownscaleOnClusterUpscale'] as core.bool?, + ); + + core.Map toJson() => { + if (allowBrokerDownscaleOnClusterUpscale != null) + 'allowBrokerDownscaleOnClusterUpscale': + allowBrokerDownscaleOnClusterUpscale!, + }; +} + /// Request for updating schema config. /// /// On a SchemaSubject-level SchemaConfig, an unset field will be removed from diff --git a/generated/googleapis/lib/manufacturers/v1.dart b/generated/googleapis/lib/manufacturers/v1.dart index 7ad56fe57..4d3daf2a6 100644 --- a/generated/googleapis/lib/manufacturers/v1.dart +++ b/generated/googleapis/lib/manufacturers/v1.dart @@ -1029,73 +1029,7 @@ class Capacity { } /// Description of a certification. -class Certification { - /// Name of the certification body. - /// - /// Required. - core.String? authority; - - /// A unique code to identify the certification. - /// - /// Required. - core.String? code; - - /// A URL link to the certification. - /// - /// Optional. - core.String? link; - - /// A URL link to the certification logo. - /// - /// Optional. - core.String? logo; - - /// Name of the certification. - /// - /// Required. - core.String? name; - - /// The expiration date (UTC). - /// - /// Optional. - core.String? validUntil; - - /// A custom value of the certification. - /// - /// Optional. - core.String? value; - - Certification({ - this.authority, - this.code, - this.link, - this.logo, - this.name, - this.validUntil, - this.value, - }); - - Certification.fromJson(core.Map json_) - : this( - authority: json_['authority'] as core.String?, - code: json_['code'] as core.String?, - link: json_['link'] as core.String?, - logo: json_['logo'] as core.String?, - name: json_['name'] as core.String?, - validUntil: json_['validUntil'] as core.String?, - value: json_['value'] as core.String?, - ); - - core.Map toJson() => { - if (authority != null) 'authority': authority!, - if (code != null) 'code': code!, - if (link != null) 'link': link!, - if (logo != null) 'logo': logo!, - if (name != null) 'name': name!, - if (validUntil != null) 'validUntil': validUntil!, - if (value != null) 'value': value!, - }; -} +typedef Certification = $Certification; /// The number of products in a single package. /// @@ -1253,41 +1187,7 @@ class FloatUnit { } /// Description of a certification. -class GoogleShoppingManufacturersV1ProductCertification { - /// Name of the certification body. - /// - /// Required. - core.String? authority; - - /// A unique code to identify the certification. - /// - /// Required. - core.String? code; - - /// Name of the certification. - /// - /// Required. - core.String? name; - - GoogleShoppingManufacturersV1ProductCertification({ - this.authority, - this.code, - this.name, - }); - - GoogleShoppingManufacturersV1ProductCertification.fromJson(core.Map json_) - : this( - authority: json_['authority'] as core.String?, - code: json_['code'] as core.String?, - name: json_['name'] as core.String?, - ); - - core.Map toJson() => { - if (authority != null) 'authority': authority!, - if (code != null) 'code': code!, - if (name != null) 'name': name!, - }; -} +typedef GoogleShoppingManufacturersV1ProductCertification = $Certification; class Grocery { /// Active ingredients. diff --git a/generated/googleapis/lib/memcache/v1.dart b/generated/googleapis/lib/memcache/v1.dart index 922648e5e..6b0dfb186 100644 --- a/generated/googleapis/lib/memcache/v1.dart +++ b/generated/googleapis/lib/memcache/v1.dart @@ -123,9 +123,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/metastore/v1.dart b/generated/googleapis/lib/metastore/v1.dart index 05e235efe..639f8cf89 100644 --- a/generated/googleapis/lib/metastore/v1.dart +++ b/generated/googleapis/lib/metastore/v1.dart @@ -130,9 +130,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like "displayName=tokyo", and is diff --git a/generated/googleapis/lib/migrationcenter/v1.dart b/generated/googleapis/lib/migrationcenter/v1.dart index 54a237356..eded1a08c 100644 --- a/generated/googleapis/lib/migrationcenter/v1.dart +++ b/generated/googleapis/lib/migrationcenter/v1.dart @@ -181,9 +181,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/ml/v1.dart b/generated/googleapis/lib/ml/v1.dart index 1c4d9cb5a..bc190084e 100644 --- a/generated/googleapis/lib/ml/v1.dart +++ b/generated/googleapis/lib/ml/v1.dart @@ -4882,7 +4882,7 @@ class GoogleCloudMlV1RequestLoggingConfig { /// permission to write to it. /// /// The table must have the following \[schema\](/bigquery/docs/schemas): - /// Field nameType Mode model STRING REQUIRED model_version STRING REQUIRED + /// Field name Type Mode model STRING REQUIRED model_version STRING REQUIRED /// time TIMESTAMP REQUIRED raw_data STRING REQUIRED raw_prediction STRING /// NULLABLE groundtruth STRING NULLABLE /// diff --git a/generated/googleapis/lib/monitoring/v3.dart b/generated/googleapis/lib/monitoring/v3.dart index 90813c23c..9b6ab9a23 100644 --- a/generated/googleapis/lib/monitoring/v3.dart +++ b/generated/googleapis/lib/monitoring/v3.dart @@ -7876,8 +7876,9 @@ class MetricAbsence { /// /// The minimum value of this field is 120 seconds. Larger values that are a /// multiple of a minute--for example, 240 or 300 seconds--are supported. If - /// an invalid value is given, an error will be returned. The Duration.nanos - /// field is ignored. + /// an invalid value is given, an error will be returned. + /// + /// Required. core.String? duration; /// A filter (https://cloud.google.com/monitoring/api/v3/filters) that @@ -8263,6 +8264,8 @@ class MetricThreshold { /// long enough so that a single outlier does not generate spurious alerts, /// but short enough that unhealthy states are detected and alerted on /// quickly. + /// + /// Required. core.String? duration; /// A condition control that determines how metric-threshold conditions are @@ -8602,7 +8605,9 @@ class MonitoringQueryLanguageCondition { /// by any alignments specified in the aggregations field); a good duration is /// long enough so that a single outlier does not generate spurious alerts, /// but short enough that unhealthy states are detected and alerted on - /// quickly. + /// quickly. The default value is zero. + /// + /// Optional. core.String? duration; /// A condition control that determines how metric-threshold conditions are diff --git a/generated/googleapis/lib/mybusinessverifications/v1.dart b/generated/googleapis/lib/mybusinessverifications/v1.dart index 51ec58994..bf0961a86 100644 --- a/generated/googleapis/lib/mybusinessverifications/v1.dart +++ b/generated/googleapis/lib/mybusinessverifications/v1.dart @@ -753,6 +753,7 @@ class Verification { /// - "AUTO" : Verify the location without additional user action. This option /// may not be available for all locations. /// - "VETTED_PARTNER" : This option may not be available for all locations. + /// - "TRUSTED_PARTNER" : Verify the location via a trusted partner. core.String? method; /// Resource name of the verification. @@ -825,6 +826,7 @@ class VerificationOption { /// - "AUTO" : Verify the location without additional user action. This option /// may not be available for all locations. /// - "VETTED_PARTNER" : This option may not be available for all locations. + /// - "TRUSTED_PARTNER" : Verify the location via a trusted partner. core.String? verificationMethod; VerificationOption({ @@ -955,6 +957,7 @@ class VerifyLocationRequest { /// - "AUTO" : Verify the location without additional user action. This option /// may not be available for all locations. /// - "VETTED_PARTNER" : This option may not be available for all locations. + /// - "TRUSTED_PARTNER" : Verify the location via a trusted partner. core.String? method; /// The input for PHONE_CALL/SMS method The phone number that should be called @@ -975,6 +978,10 @@ class VerifyLocationRequest { /// Optional. VerificationToken? token; + /// The input for TRUSTED_PARTNER method The verification token that is + /// associated to the location. + core.String? trustedPartnerToken; + VerifyLocationRequest({ this.context, this.emailAddress, @@ -983,6 +990,7 @@ class VerifyLocationRequest { this.method, this.phoneNumber, this.token, + this.trustedPartnerToken, }); VerifyLocationRequest.fromJson(core.Map json_) @@ -1004,6 +1012,7 @@ class VerifyLocationRequest { json_['token'] as core.Map, ) : null, + trustedPartnerToken: json_['trustedPartnerToken'] as core.String?, ); core.Map toJson() => { @@ -1014,6 +1023,8 @@ class VerifyLocationRequest { if (method != null) 'method': method!, if (phoneNumber != null) 'phoneNumber': phoneNumber!, if (token != null) 'token': token!, + if (trustedPartnerToken != null) + 'trustedPartnerToken': trustedPartnerToken!, }; } diff --git a/generated/googleapis/lib/netapp/v1.dart b/generated/googleapis/lib/netapp/v1.dart index 6f5cb25d0..39b0c9d7d 100644 --- a/generated/googleapis/lib/netapp/v1.dart +++ b/generated/googleapis/lib/netapp/v1.dart @@ -143,9 +143,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -4183,11 +4183,31 @@ class HybridReplicationParameters { /// Optional. core.String? description; + /// Type of the hybrid replication. + /// + /// Optional. + /// Possible string values are: + /// - "VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED" : Unspecified hybrid + /// replication type. + /// - "MIGRATION" : Hybrid replication type for migration. + /// - "CONTINUOUS_REPLICATION" : Hybrid replication type for continuous + /// replication. + /// - "ONPREM_REPLICATION" : New field for reversible OnPrem replication, to + /// be used for data protection. + /// - "REVERSE_ONPREM_REPLICATION" : New field for reversible OnPrem + /// replication, to be used for data protection. + core.String? hybridReplicationType; + /// Labels to be added to the replication as the key value pairs. /// /// Optional. core.Map? labels; + /// Constituent volume count for large volume. + /// + /// Optional. + core.int? largeVolumeConstituentCount; + /// Name of the user's local source cluster to be peered with the destination /// cluster. /// @@ -4216,24 +4236,41 @@ class HybridReplicationParameters { /// Required. core.String? replication; + /// Replication Schedule for the replication created. + /// + /// Optional. + /// Possible string values are: + /// - "HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED" : Unspecified + /// HybridReplicationSchedule + /// - "EVERY_10_MINUTES" : Replication happens once every 10 minutes. + /// - "HOURLY" : Replication happens once every hour. + /// - "DAILY" : Replication happens once every day. + core.String? replicationSchedule; + HybridReplicationParameters({ this.clusterLocation, this.description, + this.hybridReplicationType, this.labels, + this.largeVolumeConstituentCount, this.peerClusterName, this.peerIpAddresses, this.peerSvmName, this.peerVolumeName, this.replication, + this.replicationSchedule, }); HybridReplicationParameters.fromJson(core.Map json_) : this( clusterLocation: json_['clusterLocation'] as core.String?, description: json_['description'] as core.String?, + hybridReplicationType: json_['hybridReplicationType'] as core.String?, labels: (json_['labels'] as core.Map?)?.map( (key, value) => core.MapEntry(key, value as core.String), ), + largeVolumeConstituentCount: + json_['largeVolumeConstituentCount'] as core.int?, peerClusterName: json_['peerClusterName'] as core.String?, peerIpAddresses: (json_['peerIpAddresses'] as core.List?) @@ -4242,17 +4279,24 @@ class HybridReplicationParameters { peerSvmName: json_['peerSvmName'] as core.String?, peerVolumeName: json_['peerVolumeName'] as core.String?, replication: json_['replication'] as core.String?, + replicationSchedule: json_['replicationSchedule'] as core.String?, ); core.Map toJson() => { if (clusterLocation != null) 'clusterLocation': clusterLocation!, if (description != null) 'description': description!, + if (hybridReplicationType != null) + 'hybridReplicationType': hybridReplicationType!, if (labels != null) 'labels': labels!, + if (largeVolumeConstituentCount != null) + 'largeVolumeConstituentCount': largeVolumeConstituentCount!, if (peerClusterName != null) 'peerClusterName': peerClusterName!, if (peerIpAddresses != null) 'peerIpAddresses': peerIpAddresses!, if (peerSvmName != null) 'peerSvmName': peerSvmName!, if (peerVolumeName != null) 'peerVolumeName': peerVolumeName!, if (replication != null) 'replication': replication!, + if (replicationSchedule != null) + 'replicationSchedule': replicationSchedule!, }; } @@ -5150,8 +5194,19 @@ class Replication { /// - "MIGRATION" : Hybrid replication type for migration. /// - "CONTINUOUS_REPLICATION" : Hybrid replication type for continuous /// replication. + /// - "ONPREM_REPLICATION" : New field for reversible OnPrem replication, to + /// be used for data protection. + /// - "REVERSE_ONPREM_REPLICATION" : Hybrid replication type for incremental + /// Transfer in the reverse direction (GCNV is source and Onprem is + /// destination) core.String? hybridReplicationType; + /// Copy pastable snapmirror commands to be executed on onprem cluster by the + /// customer. + /// + /// Output only. + UserCommands? hybridReplicationUserCommands; + /// Resource labels to represent user provided metadata. core.Map? labels; @@ -5167,6 +5222,8 @@ class Replication { /// - "TRANSFERRING" : Incremental replication is in progress. /// - "BASELINE_TRANSFERRING" : Baseline replication is in progress. /// - "ABORTED" : Replication is aborted. + /// - "EXTERNALLY_MANAGED" : Replication is being managed from Onprem ONTAP. + /// - "PENDING_PEERING" : Peering is yet to be established. core.String? mirrorState; /// Identifier. @@ -5215,6 +5272,10 @@ class Replication { /// to be established. /// - "PENDING_SVM_PEERING" : Replication is waiting for SVM peering to be /// established. + /// - "PENDING_REMOTE_RESYNC" : Replication is waiting for Commands to be + /// executed on Onprem ONTAP. + /// - "EXTERNALLY_MANAGED_REPLICATION" : Onprem ONTAP is destination and + /// Replication can only be managed from Onprem. core.String? state; /// State details of the replication. @@ -5236,6 +5297,7 @@ class Replication { this.healthy, this.hybridPeeringDetails, this.hybridReplicationType, + this.hybridReplicationUserCommands, this.labels, this.mirrorState, this.name, @@ -5269,6 +5331,13 @@ class Replication { ) : null, hybridReplicationType: json_['hybridReplicationType'] as core.String?, + hybridReplicationUserCommands: + json_.containsKey('hybridReplicationUserCommands') + ? UserCommands.fromJson( + json_['hybridReplicationUserCommands'] + as core.Map, + ) + : null, labels: (json_['labels'] as core.Map?)?.map( (key, value) => core.MapEntry(key, value as core.String), ), @@ -5299,6 +5368,8 @@ class Replication { 'hybridPeeringDetails': hybridPeeringDetails!, if (hybridReplicationType != null) 'hybridReplicationType': hybridReplicationType!, + if (hybridReplicationUserCommands != null) + 'hybridReplicationUserCommands': hybridReplicationUserCommands!, if (labels != null) 'labels': labels!, if (mirrorState != null) 'mirrorState': mirrorState!, if (name != null) 'name': name!, @@ -5380,6 +5451,14 @@ class SimpleExportPolicyRule { /// Comma separated list of allowed clients IP addresses core.String? allowedClients; + /// An integer representing the anonymous user ID. + /// + /// Range is 0 to 4294967295. Required when squash_mode is ROOT_SQUASH or + /// ALL_SQUASH. + /// + /// Optional. + core.String? anonUid; + /// Whether Unix root access will be granted. core.String? hasRootAccess; @@ -5429,9 +5508,25 @@ class SimpleExportPolicyRule { /// NFS V4 protocol. core.bool? nfsv4; + /// Defines how user identity squashing is applied for this export rule. + /// + /// This field is the preferred way to configure squashing behavior and takes + /// precedence over `has_root_access` if both are provided. + /// + /// Optional. + /// Possible string values are: + /// - "SQUASH_MODE_UNSPECIFIED" : Defaults to NO_ROOT_SQUASH. + /// - "NO_ROOT_SQUASH" : The root user (UID 0) retains full access. Other + /// users are unaffected. + /// - "ROOT_SQUASH" : The root user (UID 0) is squashed to anonymous user ID. + /// Other users are unaffected. + /// - "ALL_SQUASH" : All users are squashed to anonymous user ID. + core.String? squashMode; + SimpleExportPolicyRule({ this.accessType, this.allowedClients, + this.anonUid, this.hasRootAccess, this.kerberos5ReadOnly, this.kerberos5ReadWrite, @@ -5441,12 +5536,14 @@ class SimpleExportPolicyRule { this.kerberos5pReadWrite, this.nfsv3, this.nfsv4, + this.squashMode, }); SimpleExportPolicyRule.fromJson(core.Map json_) : this( accessType: json_['accessType'] as core.String?, allowedClients: json_['allowedClients'] as core.String?, + anonUid: json_['anonUid'] as core.String?, hasRootAccess: json_['hasRootAccess'] as core.String?, kerberos5ReadOnly: json_['kerberos5ReadOnly'] as core.bool?, kerberos5ReadWrite: json_['kerberos5ReadWrite'] as core.bool?, @@ -5456,11 +5553,13 @@ class SimpleExportPolicyRule { kerberos5pReadWrite: json_['kerberos5pReadWrite'] as core.bool?, nfsv3: json_['nfsv3'] as core.bool?, nfsv4: json_['nfsv4'] as core.bool?, + squashMode: json_['squashMode'] as core.String?, ); core.Map toJson() => { if (accessType != null) 'accessType': accessType!, if (allowedClients != null) 'allowedClients': allowedClients!, + if (anonUid != null) 'anonUid': anonUid!, if (hasRootAccess != null) 'hasRootAccess': hasRootAccess!, if (kerberos5ReadOnly != null) 'kerberos5ReadOnly': kerberos5ReadOnly!, if (kerberos5ReadWrite != null) 'kerberos5ReadWrite': kerberos5ReadWrite!, @@ -5472,6 +5571,7 @@ class SimpleExportPolicyRule { 'kerberos5pReadWrite': kerberos5pReadWrite!, if (nfsv3 != null) 'nfsv3': nfsv3!, if (nfsv4 != null) 'nfsv4': nfsv4!, + if (squashMode != null) 'squashMode': squashMode!, }; } @@ -5669,11 +5769,22 @@ class StoragePool { /// Optional. core.bool? allowAutoTiering; + /// Available throughput of the storage pool (in MiB/s). + /// + /// Output only. + core.double? availableThroughputMibps; + /// Capacity in GIB of the pool /// /// Required. core.String? capacityGib; + /// Total cold tier data rounded down to the nearest GiB used by the storage + /// pool. + /// + /// Output only. + core.String? coldTierSizeUsedGib; + /// Create time of the storage pool /// /// Output only. @@ -5726,6 +5837,12 @@ class StoragePool { /// Optional. core.String? hotTierSizeGib; + /// Total hot tier data rounded down to the nearest GiB used by the storage + /// pool. + /// + /// Output only. + core.String? hotTierSizeUsedGib; + /// Specifies the KMS config to be used for volume encryption. /// /// Optional. @@ -5760,6 +5877,15 @@ class StoragePool { /// Optional. core.String? psaRange; + /// QoS (Quality of Service) Type of the storage pool + /// + /// Optional. + /// Possible string values are: + /// - "QOS_TYPE_UNSPECIFIED" : Unspecified QoS Type + /// - "AUTO" : QoS Type is Auto + /// - "MANUAL" : QoS Type is Manual + core.String? qosType; + /// Specifies the replica zone for regional storagePool. /// /// Optional. @@ -5834,7 +5960,9 @@ class StoragePool { StoragePool({ this.activeDirectory, this.allowAutoTiering, + this.availableThroughputMibps, this.capacityGib, + this.coldTierSizeUsedGib, this.createTime, this.customPerformanceEnabled, this.description, @@ -5842,12 +5970,14 @@ class StoragePool { this.encryptionType, this.globalAccessAllowed, this.hotTierSizeGib, + this.hotTierSizeUsedGib, this.kmsConfig, this.labels, this.ldapEnabled, this.name, this.network, this.psaRange, + this.qosType, this.replicaZone, this.satisfiesPzi, this.satisfiesPzs, @@ -5865,7 +5995,10 @@ class StoragePool { : this( activeDirectory: json_['activeDirectory'] as core.String?, allowAutoTiering: json_['allowAutoTiering'] as core.bool?, + availableThroughputMibps: + (json_['availableThroughputMibps'] as core.num?)?.toDouble(), capacityGib: json_['capacityGib'] as core.String?, + coldTierSizeUsedGib: json_['coldTierSizeUsedGib'] as core.String?, createTime: json_['createTime'] as core.String?, customPerformanceEnabled: json_['customPerformanceEnabled'] as core.bool?, @@ -5874,6 +6007,7 @@ class StoragePool { encryptionType: json_['encryptionType'] as core.String?, globalAccessAllowed: json_['globalAccessAllowed'] as core.bool?, hotTierSizeGib: json_['hotTierSizeGib'] as core.String?, + hotTierSizeUsedGib: json_['hotTierSizeUsedGib'] as core.String?, kmsConfig: json_['kmsConfig'] as core.String?, labels: (json_['labels'] as core.Map?)?.map( (key, value) => core.MapEntry(key, value as core.String), @@ -5882,6 +6016,7 @@ class StoragePool { name: json_['name'] as core.String?, network: json_['network'] as core.String?, psaRange: json_['psaRange'] as core.String?, + qosType: json_['qosType'] as core.String?, replicaZone: json_['replicaZone'] as core.String?, satisfiesPzi: json_['satisfiesPzi'] as core.bool?, satisfiesPzs: json_['satisfiesPzs'] as core.bool?, @@ -5898,7 +6033,11 @@ class StoragePool { core.Map toJson() => { if (activeDirectory != null) 'activeDirectory': activeDirectory!, if (allowAutoTiering != null) 'allowAutoTiering': allowAutoTiering!, + if (availableThroughputMibps != null) + 'availableThroughputMibps': availableThroughputMibps!, if (capacityGib != null) 'capacityGib': capacityGib!, + if (coldTierSizeUsedGib != null) + 'coldTierSizeUsedGib': coldTierSizeUsedGib!, if (createTime != null) 'createTime': createTime!, if (customPerformanceEnabled != null) 'customPerformanceEnabled': customPerformanceEnabled!, @@ -5909,12 +6048,14 @@ class StoragePool { if (globalAccessAllowed != null) 'globalAccessAllowed': globalAccessAllowed!, if (hotTierSizeGib != null) 'hotTierSizeGib': hotTierSizeGib!, + if (hotTierSizeUsedGib != null) 'hotTierSizeUsedGib': hotTierSizeUsedGib!, if (kmsConfig != null) 'kmsConfig': kmsConfig!, if (labels != null) 'labels': labels!, if (ldapEnabled != null) 'ldapEnabled': ldapEnabled!, if (name != null) 'name': name!, if (network != null) 'network': network!, if (psaRange != null) 'psaRange': psaRange!, + if (qosType != null) 'qosType': qosType!, if (replicaZone != null) 'replicaZone': replicaZone!, if (satisfiesPzi != null) 'satisfiesPzi': satisfiesPzi!, if (satisfiesPzs != null) 'satisfiesPzs': satisfiesPzs!, @@ -6055,6 +6196,28 @@ class TransferStats { }; } +/// UserCommands contains the commands to be executed by the customer. +class UserCommands { + /// List of commands to be executed by the customer. + /// + /// Output only. + core.List? commands; + + UserCommands({this.commands}); + + UserCommands.fromJson(core.Map json_) + : this( + commands: + (json_['commands'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (commands != null) 'commands': commands!, + }; +} + /// ValidateDirectoryServiceRequest validates the directory service policy /// attached to the storage pool. class ValidateDirectoryServiceRequest { @@ -6130,7 +6293,7 @@ class Volume { /// Required. core.String? capacityGib; - /// Size of the volume cold tier data in GiB. + /// Size of the volume cold tier data rounded down to the nearest GiB. /// /// Output only. core.String? coldTierSizeGib; @@ -6165,6 +6328,13 @@ class Volume { /// Output only. core.bool? hasReplication; + /// Total hot tier data rounded down to the nearest GiB used by the Volume. + /// + /// This field is only used for flex Service Level + /// + /// Output only. + core.String? hotTierSizeUsedGib; + /// The Hybrid Replication parameters for the volume. /// /// Optional. @@ -6329,6 +6499,11 @@ class Volume { /// Required. core.String? storagePool; + /// Throughput of the volume (in MiB/s) + /// + /// Optional. + core.double? throughputMibps; + /// Tiering policy for the volume. TieringPolicy? tieringPolicy; @@ -6363,6 +6538,7 @@ class Volume { this.encryptionType, this.exportPolicy, this.hasReplication, + this.hotTierSizeUsedGib, this.hybridReplicationParameters, this.kerberosEnabled, this.kmsConfig, @@ -6388,6 +6564,7 @@ class Volume { this.state, this.stateDetails, this.storagePool, + this.throughputMibps, this.tieringPolicy, this.unixPermissions, this.usedGib, @@ -6415,6 +6592,7 @@ class Volume { ) : null, hasReplication: json_['hasReplication'] as core.bool?, + hotTierSizeUsedGib: json_['hotTierSizeUsedGib'] as core.String?, hybridReplicationParameters: json_.containsKey('hybridReplicationParameters') ? HybridReplicationParameters.fromJson( @@ -6476,6 +6654,7 @@ class Volume { state: json_['state'] as core.String?, stateDetails: json_['stateDetails'] as core.String?, storagePool: json_['storagePool'] as core.String?, + throughputMibps: (json_['throughputMibps'] as core.num?)?.toDouble(), tieringPolicy: json_.containsKey('tieringPolicy') ? TieringPolicy.fromJson( @@ -6497,6 +6676,7 @@ class Volume { if (encryptionType != null) 'encryptionType': encryptionType!, if (exportPolicy != null) 'exportPolicy': exportPolicy!, if (hasReplication != null) 'hasReplication': hasReplication!, + if (hotTierSizeUsedGib != null) 'hotTierSizeUsedGib': hotTierSizeUsedGib!, if (hybridReplicationParameters != null) 'hybridReplicationParameters': hybridReplicationParameters!, if (kerberosEnabled != null) 'kerberosEnabled': kerberosEnabled!, @@ -6523,6 +6703,7 @@ class Volume { if (state != null) 'state': state!, if (stateDetails != null) 'stateDetails': stateDetails!, if (storagePool != null) 'storagePool': storagePool!, + if (throughputMibps != null) 'throughputMibps': throughputMibps!, if (tieringPolicy != null) 'tieringPolicy': tieringPolicy!, if (unixPermissions != null) 'unixPermissions': unixPermissions!, if (usedGib != null) 'usedGib': usedGib!, diff --git a/generated/googleapis/lib/networkconnectivity/v1.dart b/generated/googleapis/lib/networkconnectivity/v1.dart index 97b130e35..6862a21b0 100644 --- a/generated/googleapis/lib/networkconnectivity/v1.dart +++ b/generated/googleapis/lib/networkconnectivity/v1.dart @@ -30,13 +30,18 @@ /// - [ProjectsLocationsGlobalHubsRouteTablesRoutesResource] /// - [ProjectsLocationsGlobalPolicyBasedRoutesResource] /// - [ProjectsLocationsInternalRangesResource] +/// - [ProjectsLocationsMulticloudDataTransferConfigsResource] +/// - [ProjectsLocationsMulticloudDataTransferConfigsDestinationsResource] +/// - [ProjectsLocationsMulticloudDataTransferSupportedServicesResource] /// - [ProjectsLocationsOperationsResource] /// - [ProjectsLocationsRegionalEndpointsResource] +/// - [ProjectsLocationsRemoteTransportProfilesResource] /// - [ProjectsLocationsServiceClassesResource] /// - [ProjectsLocationsServiceConnectionMapsResource] /// - [ProjectsLocationsServiceConnectionPoliciesResource] /// - [ProjectsLocationsServiceConnectionTokensResource] /// - [ProjectsLocationsSpokesResource] +/// - [ProjectsLocationsTransportsResource] library; import 'dart:async' as async; @@ -91,10 +96,21 @@ class ProjectsLocationsResource { ProjectsLocationsGlobalResource(_requester); ProjectsLocationsInternalRangesResource get internalRanges => ProjectsLocationsInternalRangesResource(_requester); + ProjectsLocationsMulticloudDataTransferConfigsResource + get multicloudDataTransferConfigs => + ProjectsLocationsMulticloudDataTransferConfigsResource(_requester); + ProjectsLocationsMulticloudDataTransferSupportedServicesResource + get multicloudDataTransferSupportedServices => + ProjectsLocationsMulticloudDataTransferSupportedServicesResource( + _requester, + ); ProjectsLocationsOperationsResource get operations => ProjectsLocationsOperationsResource(_requester); ProjectsLocationsRegionalEndpointsResource get regionalEndpoints => ProjectsLocationsRegionalEndpointsResource(_requester); + ProjectsLocationsRemoteTransportProfilesResource + get remoteTransportProfiles => + ProjectsLocationsRemoteTransportProfilesResource(_requester); ProjectsLocationsServiceClassesResource get serviceClasses => ProjectsLocationsServiceClassesResource(_requester); ProjectsLocationsServiceConnectionMapsResource get serviceConnectionMaps => @@ -107,6 +123,8 @@ class ProjectsLocationsResource { ProjectsLocationsServiceConnectionTokensResource(_requester); ProjectsLocationsSpokesResource get spokes => ProjectsLocationsSpokesResource(_requester); + ProjectsLocationsTransportsResource get transports => + ProjectsLocationsTransportsResource(_requester); ProjectsLocationsResource(commons.ApiRequester client) : _requester = client; @@ -149,9 +167,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -2313,52 +2331,74 @@ class ProjectsLocationsInternalRangesResource { } } -class ProjectsLocationsOperationsResource { +class ProjectsLocationsMulticloudDataTransferConfigsResource { final commons.ApiRequester _requester; - ProjectsLocationsOperationsResource(commons.ApiRequester client) - : _requester = client; + ProjectsLocationsMulticloudDataTransferConfigsDestinationsResource + get destinations => + ProjectsLocationsMulticloudDataTransferConfigsDestinationsResource( + _requester, + ); - /// Starts asynchronous cancellation on a long-running operation. - /// - /// The server makes a best effort to cancel the operation, but success is not - /// guaranteed. If the server doesn't support this method, it returns - /// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation - /// or other methods to check whether the cancellation succeeded or whether - /// the operation completed despite cancellation. On successful cancellation, - /// the operation is not deleted; instead, it becomes an operation with an - /// Operation.error value with a google.rpc.Status.code of `1`, corresponding - /// to `Code.CANCELLED`. + ProjectsLocationsMulticloudDataTransferConfigsResource( + commons.ApiRequester client, + ) : _requester = client; + + /// Creates a `MulticloudDataTransferConfig` resource in a specified project + /// and location. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation resource to be cancelled. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/operations/\[^/\]+$`. + /// [parent] - Required. The name of the parent resource. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [multicloudDataTransferConfigId] - Required. The ID to use for the + /// `MulticloudDataTransferConfig` resource, which becomes the final component + /// of the `MulticloudDataTransferConfig` resource name. + /// + /// [requestId] - Optional. A request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server can + /// ignore the request if it has already been completed. The server waits for + /// at least 60 minutes since the first request. For example, consider a + /// situation where you make an initial request and the request times out. If + /// you make the request again with the same request ID, the server can check + /// if original operation with the same request ID was received, and if so, + /// can ignore the second request. This prevents clients from accidentally + /// creating duplicate `MulticloudDataTransferConfig` resources. The request + /// ID must be a valid UUID with the exception that zero UUID + /// (00000000-0000-0000-0000-000000000000) isn't supported. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [Empty]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future cancel( - GoogleLongrunningCancelOperationRequest request, - core.String name, { + async.Future create( + MulticloudDataTransferConfig request, + core.String parent, { + core.String? multicloudDataTransferConfigId, + core.String? requestId, core.String? $fields, }) async { final body_ = convert.json.encode(request); final queryParams_ = >{ + if (multicloudDataTransferConfigId != null) + 'multicloudDataTransferConfigId': [multicloudDataTransferConfigId], + if (requestId != null) 'requestId': [requestId], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':cancel'; + final url_ = + 'v1/' + + core.Uri.encodeFull('$parent') + + '/multicloudDataTransferConfigs'; final response_ = await _requester.request( url_, @@ -2366,33 +2406,55 @@ class ProjectsLocationsOperationsResource { body: body_, queryParams: queryParams_, ); - return Empty.fromJson(response_ as core.Map); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); } - /// Deletes a long-running operation. - /// - /// This method indicates that the client is no longer interested in the - /// operation result. It does not cancel the operation. If the server doesn't - /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + /// Deletes a `MulticloudDataTransferConfig` resource. /// /// Request parameters: /// - /// [name] - The name of the operation resource to be deleted. + /// [name] - Required. The name of the `MulticloudDataTransferConfig` resource + /// to delete. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/multicloudDataTransferConfigs/\[^/\]+$`. + /// + /// [etag] - Optional. The etag is computed by the server, and might be sent + /// with update and delete requests so that the client has an up-to-date value + /// before proceeding. + /// + /// [requestId] - Optional. A request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server can + /// ignore the request if it has already been completed. The server waits for + /// at least 60 minutes since the first request. For example, consider a + /// situation where you make an initial request and the request times out. If + /// you make the request again with the same request ID, the server can check + /// if original operation with the same request ID was received, and if so, + /// can ignore the second request. This prevents clients from accidentally + /// creating duplicate `MulticloudDataTransferConfig` resources. The request + /// ID must be a valid UUID with the exception that zero UUID + /// (00000000-0000-0000-0000-000000000000) isn't supported. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [Empty]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete(core.String name, {core.String? $fields}) async { + async.Future delete( + core.String name, { + core.String? etag, + core.String? requestId, + core.String? $fields, + }) async { final queryParams_ = >{ + if (etag != null) 'etag': [etag], + if (requestId != null) 'requestId': [requestId], if ($fields != null) 'fields': [$fields], }; @@ -2403,31 +2465,31 @@ class ProjectsLocationsOperationsResource { 'DELETE', queryParams: queryParams_, ); - return Empty.fromJson(response_ as core.Map); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); } - /// Gets the latest state of a long-running operation. - /// - /// Clients can use this method to poll the operation result at intervals as - /// recommended by the API service. + /// Gets the details of a `MulticloudDataTransferConfig` resource. /// /// Request parameters: /// - /// [name] - The name of the operation resource. + /// [name] - Required. The name of the `MulticloudDataTransferConfig` resource + /// to get. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/multicloudDataTransferConfigs/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningOperation]. + /// Completes with a [MulticloudDataTransferConfig]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( + async.Future get( core.String name, { core.String? $fields, }) async { @@ -2442,92 +2504,175 @@ class ProjectsLocationsOperationsResource { 'GET', queryParams: queryParams_, ); - return GoogleLongrunningOperation.fromJson( + return MulticloudDataTransferConfig.fromJson( response_ as core.Map, ); } - /// Lists operations that match the specified filter in the request. - /// - /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. + /// Lists the `MulticloudDataTransferConfig` resources in a specified project + /// and location. /// /// Request parameters: /// - /// [name] - The name of the operation's parent resource. + /// [parent] - Required. The name of the parent resource. /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// - /// [filter] - The standard list filter. + /// [filter] - Optional. An expression that filters the results listed in the + /// response. /// - /// [pageSize] - The standard list page size. + /// [orderBy] - Optional. The sort order of the results. /// - /// [pageToken] - The standard list page token. + /// [pageSize] - Optional. The maximum number of results listed per page. + /// + /// [pageToken] - Optional. The page token. + /// + /// [returnPartialSuccess] - Optional. If `true`, allows partial responses for + /// multi-regional aggregated list requests. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleLongrunningListOperationsResponse]. + /// Completes with a [ListMulticloudDataTransferConfigsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( - core.String name, { + async.Future list( + core.String parent, { core.String? filter, + core.String? orderBy, core.int? pageSize, core.String? pageToken, + core.bool? returnPartialSuccess, core.String? $fields, }) async { final queryParams_ = >{ if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], if (pageSize != null) 'pageSize': ['${pageSize}'], if (pageToken != null) 'pageToken': [pageToken], + if (returnPartialSuccess != null) + 'returnPartialSuccess': ['${returnPartialSuccess}'], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + '/operations'; + final url_ = + 'v1/' + + core.Uri.encodeFull('$parent') + + '/multicloudDataTransferConfigs'; final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return GoogleLongrunningListOperationsResponse.fromJson( + return ListMulticloudDataTransferConfigsResponse.fromJson( + response_ as core.Map, + ); + } + + /// Updates a `MulticloudDataTransferConfig` resource in a specified project + /// and location. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Identifier. The name of the `MulticloudDataTransferConfig` + /// resource. Format: + /// `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}`. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/multicloudDataTransferConfigs/\[^/\]+$`. + /// + /// [requestId] - Optional. A request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server can + /// ignore the request if it has already been completed. The server waits for + /// at least 60 minutes since the first request. For example, consider a + /// situation where you make an initial request and the request times out. If + /// you make the request again with the same request ID, the server can check + /// if original operation with the same request ID was received, and if so, + /// can ignore the second request. This prevents clients from accidentally + /// creating duplicate `MulticloudDataTransferConfig` resources. The request + /// ID must be a valid UUID with the exception that zero UUID + /// (00000000-0000-0000-0000-000000000000) isn't supported. + /// + /// [updateMask] - Optional. `FieldMask` is used to specify the fields in the + /// `MulticloudDataTransferConfig` resource to be overwritten by the update. + /// The fields specified in `update_mask` are relative to the resource, not + /// the full request. A field is overwritten if it is in the mask. If you + /// don't specify a mask, all fields are overwritten. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningOperation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future patch( + MulticloudDataTransferConfig request, + core.String name, { + core.String? requestId, + core.String? updateMask, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (requestId != null) 'requestId': [requestId], + if (updateMask != null) 'updateMask': [updateMask], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'PATCH', + body: body_, + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } } -class ProjectsLocationsRegionalEndpointsResource { +class ProjectsLocationsMulticloudDataTransferConfigsDestinationsResource { final commons.ApiRequester _requester; - ProjectsLocationsRegionalEndpointsResource(commons.ApiRequester client) - : _requester = client; + ProjectsLocationsMulticloudDataTransferConfigsDestinationsResource( + commons.ApiRequester client, + ) : _requester = client; - /// Creates a new RegionalEndpoint in a given project and location. + /// Creates a `Destination` resource in a specified project and location. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [parent] - Required. The parent resource's name of the RegionalEndpoint. - /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// [parent] - Required. The name of the parent resource. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/multicloudDataTransferConfigs/\[^/\]+$`. /// - /// [regionalEndpointId] - Required. Unique id of the Regional Endpoint to be - /// created. @pattern: ^\[-a-z0-9\](?:\[-a-z0-9\]{0,44})\[a-z0-9\]$ + /// [destinationId] - Required. The ID to use for the `Destination` resource, + /// which becomes the final component of the `Destination` resource name. /// - /// [requestId] - Optional. An optional request ID to identify requests. - /// Specify a unique request ID so that if you must retry your request, the - /// server knows to ignore the request if it has already been completed. The - /// server guarantees that for at least 60 minutes since the first request. - /// For example, consider a situation where you make an initial request and - /// the request times out. If you make the request again with the same request - /// ID, the server can check if the original operation with the same request - /// ID was received, and if so, ignores the second request. This prevents - /// clients from accidentally creating duplicate commitments. The request ID - /// must be a valid UUID with the exception that zero UUID is not supported - /// (00000000-0000-0000-0000-000000000000). + /// [requestId] - Optional. A request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server can + /// ignore the request if it has already been completed. The server waits for + /// at least 60 minutes since the first request. For example, consider a + /// situation where you make an initial request and the request times out. If + /// you make the request again with the same request ID, the server can check + /// if original operation with the same request ID was received, and if so, + /// can ignore the second request. This prevents clients from accidentally + /// creating duplicate `Destination` resources. The request ID must be a valid + /// UUID with the exception that zero UUID + /// (00000000-0000-0000-0000-000000000000) isn't supported. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2540,21 +2685,20 @@ class ProjectsLocationsRegionalEndpointsResource { /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future create( - RegionalEndpoint request, + Destination request, core.String parent, { - core.String? regionalEndpointId, + core.String? destinationId, core.String? requestId, core.String? $fields, }) async { final body_ = convert.json.encode(request); final queryParams_ = >{ - if (regionalEndpointId != null) - 'regionalEndpointId': [regionalEndpointId], + if (destinationId != null) 'destinationId': [destinationId], if (requestId != null) 'requestId': [requestId], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/regionalEndpoints'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/destinations'; final response_ = await _requester.request( url_, @@ -2567,25 +2711,28 @@ class ProjectsLocationsRegionalEndpointsResource { ); } - /// Deletes a single RegionalEndpoint. + /// Deletes a `Destination` resource. /// /// Request parameters: /// - /// [name] - Required. The name of the RegionalEndpoint to delete. + /// [name] - Required. The name of the `Destination` resource to delete. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/regionalEndpoints/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/multicloudDataTransferConfigs/\[^/\]+/destinations/\[^/\]+$`. /// - /// [requestId] - Optional. An optional request ID to identify requests. - /// Specify a unique request ID so that if you must retry your request, the - /// server knows to ignore the request if it has already been completed. The - /// server guarantees that for at least 60 minutes since the first request. - /// For example, consider a situation where you make an initial request and - /// the request times out. If you make the request again with the same request - /// ID, the server can check if the original operation with the same request - /// ID was received, and if so, ignores the second request. This prevents - /// clients from accidentally creating duplicate commitments. The request ID - /// must be a valid UUID with the exception that zero UUID is not supported - /// (00000000-0000-0000-0000-000000000000). + /// [etag] - Optional. The etag is computed by the server, and might be sent + /// with update and delete requests so that the client has an up-to-date value + /// before proceeding. + /// + /// [requestId] - Optional. A request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server can + /// ignore the request if it has already been completed. The server waits for + /// at least 60 minutes since the first request. For example, consider a + /// situation where you make an initial request and the request times out. If + /// you make the request again with the same request ID, the server can check + /// if original operation with the same request ID was received, and if so, + /// can ignore the second request. The request ID must be a valid UUID with + /// the exception that zero UUID (00000000-0000-0000-0000-000000000000) isn't + /// supported. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2599,10 +2746,12 @@ class ProjectsLocationsRegionalEndpointsResource { /// this method will complete with the same error. async.Future delete( core.String name, { + core.String? etag, core.String? requestId, core.String? $fields, }) async { final queryParams_ = >{ + if (etag != null) 'etag': [etag], if (requestId != null) 'requestId': [requestId], if ($fields != null) 'fields': [$fields], }; @@ -2619,26 +2768,25 @@ class ProjectsLocationsRegionalEndpointsResource { ); } - /// Gets details of a single RegionalEndpoint. + /// Gets the details of a `Destination` resource. /// /// Request parameters: /// - /// [name] - Required. Name of the RegionalEndpoint resource to get. Format: - /// `projects/{project}/locations/{location}/regionalEndpoints/{regional_endpoint}` + /// [name] - Required. The name of the `Destination` resource to get. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/regionalEndpoints/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/multicloudDataTransferConfigs/\[^/\]+/destinations/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [RegionalEndpoint]. + /// Completes with a [Destination]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( + async.Future get( core.String name, { core.String? $fields, }) async { @@ -2653,44 +2801,48 @@ class ProjectsLocationsRegionalEndpointsResource { 'GET', queryParams: queryParams_, ); - return RegionalEndpoint.fromJson( + return Destination.fromJson( response_ as core.Map, ); } - /// Lists RegionalEndpoints in a given project and location. + /// Lists the `Destination` resources in a specified project and location. /// /// Request parameters: /// - /// [parent] - Required. The parent resource's name of the RegionalEndpoint. - /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// [parent] - Required. The name of the parent resource. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/multicloudDataTransferConfigs/\[^/\]+$`. /// - /// [filter] - A filter expression that filters the results listed in the + /// [filter] - Optional. An expression that filters the results listed in the /// response. /// - /// [orderBy] - Sort the results by a certain order. + /// [orderBy] - Optional. The sort order of the results. /// - /// [pageSize] - Requested page size. Server may return fewer items than - /// requested. If unspecified, server will pick an appropriate default. + /// [pageSize] - Optional. The maximum number of results listed per page. /// - /// [pageToken] - A page token. + /// [pageToken] - Optional. The page token. + /// + /// [returnPartialSuccess] - Optional. If `true`, allow partial responses for + /// multi-regional aggregated list requests. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [ListRegionalEndpointsResponse]. + /// Completes with a [ListDestinationsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( + async.Future list( core.String parent, { core.String? filter, core.String? orderBy, core.int? pageSize, core.String? pageToken, + core.bool? returnPartialSuccess, core.String? $fields, }) async { final queryParams_ = >{ @@ -2698,51 +2850,50 @@ class ProjectsLocationsRegionalEndpointsResource { if (orderBy != null) 'orderBy': [orderBy], if (pageSize != null) 'pageSize': ['${pageSize}'], if (pageToken != null) 'pageToken': [pageToken], + if (returnPartialSuccess != null) + 'returnPartialSuccess': ['${returnPartialSuccess}'], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/regionalEndpoints'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/destinations'; final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return ListRegionalEndpointsResponse.fromJson( + return ListDestinationsResponse.fromJson( response_ as core.Map, ); } -} - -class ProjectsLocationsServiceClassesResource { - final commons.ApiRequester _requester; - - ProjectsLocationsServiceClassesResource(commons.ApiRequester client) - : _requester = client; - /// Deletes a single ServiceClass. + /// Updates a `Destination` resource in a specified project and location. + /// + /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - Required. The name of the ServiceClass to delete. + /// [name] - Identifier. The name of the `Destination` resource. Format: + /// `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/serviceClasses/\[^/\]+$`. - /// - /// [etag] - Optional. The etag is computed by the server, and may be sent on - /// update and delete requests to ensure the client has an up-to-date value - /// before proceeding. + /// `^projects/\[^/\]+/locations/\[^/\]+/multicloudDataTransferConfigs/\[^/\]+/destinations/\[^/\]+$`. /// - /// [requestId] - Optional. An optional request ID to identify requests. - /// Specify a unique request ID so that if you must retry your request, the - /// server will know to ignore the request if it has already been completed. - /// The server will guarantee that for at least 60 minutes after the first - /// request. For example, consider a situation where you make an initial - /// request and the request times out. If you make the request again with the - /// same request ID, the server can check if original operation with the same - /// request ID was received, and if so, will ignore the second request. This - /// prevents clients from accidentally creating duplicate commitments. The - /// request ID must be a valid UUID with the exception that zero UUID is not - /// supported (00000000-0000-0000-0000-000000000000). + /// [requestId] - Optional. A request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server can + /// ignore the request if it has already been completed. The server waits for + /// at least 60 minutes since the first request. For example, consider a + /// situation where you make an initial request and the request times out. If + /// you make the request again with the same request ID, the server can check + /// if original operation with the same request ID was received, and if so, + /// can ignore the second request. The request ID must be a valid UUID with + /// the exception that zero UUID (00000000-0000-0000-0000-000000000000) isn't + /// supported. + /// + /// [updateMask] - Optional. \`FieldMask is used to specify the fields to be + /// overwritten in the \`Destination\` resource by the update. The fields + /// specified in \`update_mask\` are relative to the resource, not the full + /// request. A field is overwritten if it is in the mask. If you don't specify + /// a mask, all fields are overwritten. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2754,15 +2905,17 @@ class ProjectsLocationsServiceClassesResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete( + async.Future patch( + Destination request, core.String name, { - core.String? etag, core.String? requestId, + core.String? updateMask, core.String? $fields, }) async { + final body_ = convert.json.encode(request); final queryParams_ = >{ - if (etag != null) 'etag': [etag], if (requestId != null) 'requestId': [requestId], + if (updateMask != null) 'updateMask': [updateMask], if ($fields != null) 'fields': [$fields], }; @@ -2770,21 +2923,685 @@ class ProjectsLocationsServiceClassesResource { final response_ = await _requester.request( url_, - 'DELETE', + 'PATCH', + body: body_, queryParams: queryParams_, ); return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } +} - /// Gets details of a single ServiceClass. +class ProjectsLocationsMulticloudDataTransferSupportedServicesResource { + final commons.ApiRequester _requester; + + ProjectsLocationsMulticloudDataTransferSupportedServicesResource( + commons.ApiRequester client, + ) : _requester = client; + + /// Gets the details of a service that is supported for Data Transfer + /// Essentials. /// /// Request parameters: /// - /// [name] - Required. Name of the ServiceClass to get. + /// [name] - Required. The name of the service. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/serviceClasses/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/multicloudDataTransferSupportedServices/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [MulticloudDataTransferSupportedService]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return MulticloudDataTransferSupportedService.fromJson( + response_ as core.Map, + ); + } + + /// Lists the services in the project for a region that are supported for Data + /// Transfer Essentials. + /// + /// Request parameters: + /// + /// [parent] - Required. The name of the parent resource. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [pageSize] - Optional. The maximum number of results listed per page. + /// + /// [pageToken] - Optional. The page token. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListMulticloudDataTransferSupportedServicesResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String parent, { + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + + core.Uri.encodeFull('$parent') + + '/multicloudDataTransferSupportedServices'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return ListMulticloudDataTransferSupportedServicesResponse.fromJson( + response_ as core.Map, + ); + } +} + +class ProjectsLocationsOperationsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsOperationsResource(commons.ApiRequester client) + : _requester = client; + + /// Starts asynchronous cancellation on a long-running operation. + /// + /// The server makes a best effort to cancel the operation, but success is not + /// guaranteed. If the server doesn't support this method, it returns + /// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation + /// or other methods to check whether the cancellation succeeded or whether + /// the operation completed despite cancellation. On successful cancellation, + /// the operation is not deleted; instead, it becomes an operation with an + /// Operation.error value with a google.rpc.Status.code of `1`, corresponding + /// to `Code.CANCELLED`. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name of the operation resource to be cancelled. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/operations/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Empty]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future cancel( + GoogleLongrunningCancelOperationRequest request, + core.String name, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':cancel'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return Empty.fromJson(response_ as core.Map); + } + + /// Deletes a long-running operation. + /// + /// This method indicates that the client is no longer interested in the + /// operation result. It does not cancel the operation. If the server doesn't + /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + /// + /// Request parameters: + /// + /// [name] - The name of the operation resource to be deleted. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/operations/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Empty]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future delete(core.String name, {core.String? $fields}) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'DELETE', + queryParams: queryParams_, + ); + return Empty.fromJson(response_ as core.Map); + } + + /// Gets the latest state of a long-running operation. + /// + /// Clients can use this method to poll the operation result at intervals as + /// recommended by the API service. + /// + /// Request parameters: + /// + /// [name] - The name of the operation resource. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/operations/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningOperation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } + + /// Lists operations that match the specified filter in the request. + /// + /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. + /// + /// Request parameters: + /// + /// [name] - The name of the operation's parent resource. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [filter] - The standard list filter. + /// + /// [pageSize] - The standard list page size. + /// + /// [pageToken] - The standard list page token. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningListOperationsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String name, { + core.String? filter, + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name') + '/operations'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return GoogleLongrunningListOperationsResponse.fromJson( + response_ as core.Map, + ); + } +} + +class ProjectsLocationsRegionalEndpointsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsRegionalEndpointsResource(commons.ApiRequester client) + : _requester = client; + + /// Creates a new RegionalEndpoint in a given project and location. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent resource's name of the RegionalEndpoint. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [regionalEndpointId] - Required. Unique id of the Regional Endpoint to be + /// created. @pattern: ^\[-a-z0-9\](?:\[-a-z0-9\]{0,44})\[a-z0-9\]$ + /// + /// [requestId] - Optional. An optional request ID to identify requests. + /// Specify a unique request ID so that if you must retry your request, the + /// server knows to ignore the request if it has already been completed. The + /// server guarantees that for at least 60 minutes since the first request. + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if the original operation with the same request + /// ID was received, and if so, ignores the second request. This prevents + /// clients from accidentally creating duplicate commitments. The request ID + /// must be a valid UUID with the exception that zero UUID is not supported + /// (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningOperation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future create( + RegionalEndpoint request, + core.String parent, { + core.String? regionalEndpointId, + core.String? requestId, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (regionalEndpointId != null) + 'regionalEndpointId': [regionalEndpointId], + if (requestId != null) 'requestId': [requestId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/regionalEndpoints'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } + + /// Deletes a single RegionalEndpoint. + /// + /// Request parameters: + /// + /// [name] - Required. The name of the RegionalEndpoint to delete. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/regionalEndpoints/\[^/\]+$`. + /// + /// [requestId] - Optional. An optional request ID to identify requests. + /// Specify a unique request ID so that if you must retry your request, the + /// server knows to ignore the request if it has already been completed. The + /// server guarantees that for at least 60 minutes since the first request. + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if the original operation with the same request + /// ID was received, and if so, ignores the second request. This prevents + /// clients from accidentally creating duplicate commitments. The request ID + /// must be a valid UUID with the exception that zero UUID is not supported + /// (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningOperation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future delete( + core.String name, { + core.String? requestId, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (requestId != null) 'requestId': [requestId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'DELETE', + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } + + /// Gets details of a single RegionalEndpoint. + /// + /// Request parameters: + /// + /// [name] - Required. Name of the RegionalEndpoint resource to get. Format: + /// `projects/{project}/locations/{location}/regionalEndpoints/{regional_endpoint}` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/regionalEndpoints/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [RegionalEndpoint]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return RegionalEndpoint.fromJson( + response_ as core.Map, + ); + } + + /// Lists RegionalEndpoints in a given project and location. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent resource's name of the RegionalEndpoint. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [filter] - A filter expression that filters the results listed in the + /// response. + /// + /// [orderBy] - Sort the results by a certain order. + /// + /// [pageSize] - Requested page size. Server may return fewer items than + /// requested. If unspecified, server will pick an appropriate default. + /// + /// [pageToken] - A page token. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListRegionalEndpointsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String parent, { + core.String? filter, + core.String? orderBy, + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/regionalEndpoints'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return ListRegionalEndpointsResponse.fromJson( + response_ as core.Map, + ); + } +} + +class ProjectsLocationsRemoteTransportProfilesResource { + final commons.ApiRequester _requester; + + ProjectsLocationsRemoteTransportProfilesResource(commons.ApiRequester client) + : _requester = client; + + /// Gets details of a single RemoteTransportProfile. + /// + /// Request parameters: + /// + /// [name] - Required. Name of the resource. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/remoteTransportProfiles/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [RemoteTransportProfile]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return RemoteTransportProfile.fromJson( + response_ as core.Map, + ); + } + + /// Lists RemoteTransportProfiles in a given project and location. + /// + /// Request parameters: + /// + /// [parent] - Required. Parent value for ListRemoteTransportProfilesRequest. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [filter] - Optional. Filtering results. + /// + /// [orderBy] - Optional. Hint for how to order the results. + /// + /// [pageSize] - Optional. Requested page size. Server may return fewer items + /// than requested. If unspecified, server will pick an appropriate default. + /// + /// [pageToken] - Optional. A token identifying a page of results the server + /// should return. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListRemoteTransportProfilesResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String parent, { + core.String? filter, + core.String? orderBy, + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + core.Uri.encodeFull('$parent') + '/remoteTransportProfiles'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return ListRemoteTransportProfilesResponse.fromJson( + response_ as core.Map, + ); + } +} + +class ProjectsLocationsServiceClassesResource { + final commons.ApiRequester _requester; + + ProjectsLocationsServiceClassesResource(commons.ApiRequester client) + : _requester = client; + + /// Deletes a single ServiceClass. + /// + /// Request parameters: + /// + /// [name] - Required. The name of the ServiceClass to delete. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/serviceClasses/\[^/\]+$`. + /// + /// [etag] - Optional. The etag is computed by the server, and may be sent on + /// update and delete requests to ensure the client has an up-to-date value + /// before proceeding. + /// + /// [requestId] - Optional. An optional request ID to identify requests. + /// Specify a unique request ID so that if you must retry your request, the + /// server will know to ignore the request if it has already been completed. + /// The server will guarantee that for at least 60 minutes after the first + /// request. For example, consider a situation where you make an initial + /// request and the request times out. If you make the request again with the + /// same request ID, the server can check if original operation with the same + /// request ID was received, and if so, will ignore the second request. This + /// prevents clients from accidentally creating duplicate commitments. The + /// request ID must be a valid UUID with the exception that zero UUID is not + /// supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningOperation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future delete( + core.String name, { + core.String? etag, + core.String? requestId, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (etag != null) 'etag': [etag], + if (requestId != null) 'requestId': [requestId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'DELETE', + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } + + /// Gets details of a single ServiceClass. + /// + /// Request parameters: + /// + /// [name] - Required. Name of the ServiceClass to get. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/serviceClasses/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -3562,6 +4379,26 @@ class ProjectsLocationsServiceConnectionPoliciesResource { /// ServiceConnectionPolicy. ex. projects/123/locations/us-east1 /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// + /// [autoSubnetworkConfig_allocRangeSpace] - Optional. The space where we + /// search for a free range to create a subnetwork. It can be narrow down or + /// pick a different space. This is in standard CIDR format. If not specified, + /// “10.0.0.0/8” is used. Only eligible for IPV4_ONLY and IPV4_IPV6 + /// subnetwork. + /// + /// [autoSubnetworkConfig_ipStack] - Optional. The requested IP stack for the + /// subnetwork. If not specified, IPv4 is used. + /// Possible string values are: + /// - "SUBNET_IP_STACK_UNSPECIFIED" : Default value. Will create an IPV4_ONLY + /// subnetwork by default. + /// - "IPV4_ONLY" : Will create an IPV4_ONLY subnetwork. + /// - "IPV6_ONLY" : Will create an IPV6_ONLY subnetwork. + /// - "IPV4_IPV6" : Will use IPv4 and IPv6 (dual stack). + /// + /// [autoSubnetworkConfig_prefixLength] - Optional. The desired prefix length + /// for the subnet's IP address range. E.g., 24 for a /24. The actual range is + /// allocated from available space. If not specified, 24 is used. Only + /// eligible for IPV4_ONLY and IPV4_IPV6 subnetwork. + /// /// [requestId] - Optional. An optional request ID to identify requests. /// Specify a unique request ID so that if you must retry your request, the /// server will know to ignore the request if it has already been completed. @@ -3578,6 +4415,15 @@ class ProjectsLocationsServiceConnectionPoliciesResource { /// '\[...\]/projects/p/locations/l/serviceConnectionPolicies/foo') See /// https://google.aip.dev/122#resource-id-segments Unique per location. /// + /// [subnetworkMode] - Optional. If this field is not set, USER_PROVIDED is + /// the inferred value to use. + /// Possible string values are: + /// - "SUBNETWORK_MODE_UNSPECIFIED" : The default value if the enum is unset. + /// Note user is not allowed to set the subnetwork mode to this value. + /// - "USER_PROVIDED" : Subnetworks are provided from the user input. + /// - "AUTO_CREATED" : Subnetwork list is empty from the user input. A + /// subnetwork will be created automatically. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -3591,15 +4437,30 @@ class ProjectsLocationsServiceConnectionPoliciesResource { async.Future create( ServiceConnectionPolicy request, core.String parent, { + core.String? autoSubnetworkConfig_allocRangeSpace, + core.String? autoSubnetworkConfig_ipStack, + core.int? autoSubnetworkConfig_prefixLength, core.String? requestId, core.String? serviceConnectionPolicyId, + core.String? subnetworkMode, core.String? $fields, }) async { final body_ = convert.json.encode(request); final queryParams_ = >{ + if (autoSubnetworkConfig_allocRangeSpace != null) + 'autoSubnetworkConfig.allocRangeSpace': [ + autoSubnetworkConfig_allocRangeSpace, + ], + if (autoSubnetworkConfig_ipStack != null) + 'autoSubnetworkConfig.ipStack': [autoSubnetworkConfig_ipStack], + if (autoSubnetworkConfig_prefixLength != null) + 'autoSubnetworkConfig.prefixLength': [ + '${autoSubnetworkConfig_prefixLength}', + ], if (requestId != null) 'requestId': [requestId], if (serviceConnectionPolicyId != null) 'serviceConnectionPolicyId': [serviceConnectionPolicyId], + if (subnetworkMode != null) 'subnetworkMode': [subnetworkMode], if ($fields != null) 'fields': [$fields], }; @@ -4525,17 +5386,236 @@ class ProjectsLocationsSpokesResource { /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future patch( - Spoke request, + async.Future patch( + Spoke request, + core.String name, { + core.String? requestId, + core.String? updateMask, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (requestId != null) 'requestId': [requestId], + if (updateMask != null) 'updateMask': [updateMask], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'PATCH', + body: body_, + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } + + /// Sets the access control policy on the specified resource. + /// + /// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, + /// and `PERMISSION_DENIED` errors. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [resource] - 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. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/spokes/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Policy]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future setIamPolicy( + SetIamPolicyRequest request, + core.String resource, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':setIamPolicy'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return Policy.fromJson(response_ as core.Map); + } + + /// Returns permissions that a caller has on the specified resource. + /// + /// If the resource does not exist, this will return an empty set of + /// permissions, not a `NOT_FOUND` error. Note: This operation is designed to + /// be used for building permission-aware UIs and command-line tools, not for + /// authorization checking. This operation may "fail open" without warning. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [resource] - 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. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/spokes/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [TestIamPermissionsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future testIamPermissions( + TestIamPermissionsRequest request, + core.String resource, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + core.Uri.encodeFull('$resource') + ':testIamPermissions'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return TestIamPermissionsResponse.fromJson( + response_ as core.Map, + ); + } +} + +class ProjectsLocationsTransportsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsTransportsResource(commons.ApiRequester client) + : _requester = client; + + /// Creates a new Transport in a given project and location. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - Required. Value for parent. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [requestId] - Optional. An optional request ID to identify requests. + /// Specify a unique request ID so that if you must retry your request, the + /// server will know to ignore the request if it has already been completed. + /// The server will guarantee that for at least 60 minutes since the first + /// request. For example, consider a situation where you make an initial + /// request and the request times out. If you make the request again with the + /// same request ID, the server can check if original operation with the same + /// request ID was received, and if so, will ignore the second request. This + /// prevents clients from accidentally creating duplicate commitments. The + /// request ID must be a valid UUID with the exception that zero UUID is not + /// supported (00000000-0000-0000-0000-000000000000). + /// + /// [transportId] - Required. Id of the requesting object + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningOperation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future create( + Transport request, + core.String parent, { + core.String? requestId, + core.String? transportId, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (requestId != null) 'requestId': [requestId], + if (transportId != null) 'transportId': [transportId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/transports'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleLongrunningOperation.fromJson( + response_ as core.Map, + ); + } + + /// Deletes a single Transport. + /// + /// Request parameters: + /// + /// [name] - Required. Name of the resource. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/transports/\[^/\]+$`. + /// + /// [requestId] - Optional. An optional request ID to identify requests. + /// Specify a unique request ID so that if you must retry your request, the + /// server will know to ignore the request if it has already been completed. + /// The server will guarantee that for at least 60 minutes after the first + /// request. For example, consider a situation where you make an initial + /// request and the request times out. If you make the request again with the + /// same request ID, the server can check if original operation with the same + /// request ID was received, and if so, will ignore the second request. This + /// prevents clients from accidentally creating duplicate commitments. The + /// request ID must be a valid UUID with the exception that zero UUID is not + /// supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleLongrunningOperation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future delete( core.String name, { core.String? requestId, - core.String? updateMask, core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ if (requestId != null) 'requestId': [requestId], - if (updateMask != null) 'updateMask': [updateMask], if ($fields != null) 'fields': [$fields], }; @@ -4543,8 +5623,7 @@ class ProjectsLocationsSpokesResource { final response_ = await _requester.request( url_, - 'PATCH', - body: body_, + 'DELETE', queryParams: queryParams_, ); return GoogleLongrunningOperation.fromJson( @@ -4552,101 +5631,156 @@ class ProjectsLocationsSpokesResource { ); } - /// Sets the access control policy on the specified resource. + /// Gets details of a single Transport. /// - /// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, - /// and `PERMISSION_DENIED` errors. + /// Request parameters: /// - /// [request] - The metadata request object. + /// [name] - Required. Name of the resource. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/transports/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Transport]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get(core.String name, {core.String? $fields}) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return Transport.fromJson(response_ as core.Map); + } + + /// Lists Transports in a given project and location. /// /// Request parameters: /// - /// [resource] - 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. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/spokes/\[^/\]+$`. + /// [parent] - Required. Parent value for ListTransportsRequest. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [filter] - Optional. Filtering results. + /// + /// [orderBy] - Optional. Hint for how to order the results. + /// + /// [pageSize] - Optional. Requested page size. Server may return fewer items + /// than requested. If unspecified, server will pick an appropriate default. + /// + /// [pageToken] - Optional. A token identifying a page of results the server + /// should return. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [Policy]. + /// Completes with a [ListTransportsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future setIamPolicy( - SetIamPolicyRequest request, - core.String resource, { + async.Future list( + core.String parent, { + core.String? filter, + core.String? orderBy, + core.int? pageSize, + core.String? pageToken, core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$resource') + ':setIamPolicy'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/transports'; final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'GET', queryParams: queryParams_, ); - return Policy.fromJson(response_ as core.Map); + return ListTransportsResponse.fromJson( + response_ as core.Map, + ); } - /// Returns permissions that a caller has on the specified resource. - /// - /// If the resource does not exist, this will return an empty set of - /// permissions, not a `NOT_FOUND` error. Note: This operation is designed to - /// be used for building permission-aware UIs and command-line tools, not for - /// authorization checking. This operation may "fail open" without warning. + /// Updates the parameters of a single Transport. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [resource] - 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. + /// [name] - Identifier. Name of the resource, see google.aip.dev/122 for + /// resource naming. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/spokes/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/transports/\[^/\]+$`. + /// + /// [requestId] - Optional. An optional request ID to identify requests. + /// Specify a unique request ID so that if you must retry your request, the + /// server will know to ignore the request if it has already been completed. + /// The server will guarantee that for at least 60 minutes since the first + /// request. For example, consider a situation where you make an initial + /// request and the request times out. If you make the request again with the + /// same request ID, the server can check if original operation with the same + /// request ID was received, and if so, will ignore the second request. This + /// prevents clients from accidentally creating duplicate commitments. The + /// request ID must be a valid UUID with the exception that zero UUID is not + /// supported (00000000-0000-0000-0000-000000000000). + /// + /// [updateMask] - Optional. Field mask is used to specify the fields to be + /// overwritten in the Transport resource by the update. The fields specified + /// in the update_mask are relative to the resource, not the full request. A + /// field will be overwritten if it is in the mask. If the user does not + /// provide a mask then all fields present in the request will be overwritten. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [TestIamPermissionsResponse]. + /// Completes with a [GoogleLongrunningOperation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future testIamPermissions( - TestIamPermissionsRequest request, - core.String resource, { + async.Future patch( + Transport request, + core.String name, { + core.String? requestId, + core.String? updateMask, core.String? $fields, }) async { final body_ = convert.json.encode(request); final queryParams_ = >{ + if (requestId != null) 'requestId': [requestId], + if (updateMask != null) 'updateMask': [updateMask], if ($fields != null) 'fields': [$fields], }; - final url_ = - 'v1/' + core.Uri.encodeFull('$resource') + ':testIamPermissions'; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); final response_ = await _requester.request( url_, - 'POST', + 'PATCH', body: body_, queryParams: queryParams_, ); - return TestIamPermissionsResponse.fromJson( + return GoogleLongrunningOperation.fromJson( response_ as core.Map, ); } @@ -4879,6 +6013,59 @@ class AutoAccept { }; } +/// Information for the automatically created subnetwork and its associated IR. +class AutoCreatedSubnetworkInfo { + /// URI of the automatically created Internal Range. + /// + /// Only set if the subnetwork mode is AUTO_CREATED during creation. + /// + /// Output only. + core.String? internalRange; + + /// URI of the automatically created Internal Range reference. + /// + /// Only set if the subnetwork mode is AUTO_CREATED during creation. + /// + /// Output only. + core.String? internalRangeRef; + + /// URI of the automatically created subnetwork. + /// + /// Only set if the subnetwork mode is AUTO_CREATED during creation. + /// + /// Output only. + core.String? subnetwork; + + /// URI of the automatically created subnetwork reference. + /// + /// Only set if the subnetwork mode is AUTO_CREATED during creation. + /// + /// Output only. + core.String? subnetworkRef; + + AutoCreatedSubnetworkInfo({ + this.internalRange, + this.internalRangeRef, + this.subnetwork, + this.subnetworkRef, + }); + + AutoCreatedSubnetworkInfo.fromJson(core.Map json_) + : this( + internalRange: json_['internalRange'] as core.String?, + internalRangeRef: json_['internalRangeRef'] as core.String?, + subnetwork: json_['subnetwork'] as core.String?, + subnetworkRef: json_['subnetworkRef'] as core.String?, + ); + + core.Map toJson() => { + if (internalRange != null) 'internalRange': internalRange!, + if (internalRangeRef != null) 'internalRangeRef': internalRangeRef!, + if (subnetwork != null) 'subnetwork': subnetwork!, + if (subnetworkRef != null) 'subnetworkRef': subnetworkRef!, + }; +} + /// Associates `members`, or principals, with a `role`. class Binding { /// The condition that is associated with this binding. @@ -5258,23 +6445,193 @@ class ConsumerPscConnection { ); core.Map toJson() => { - if (error != null) 'error': error!, - if (errorInfo != null) 'errorInfo': errorInfo!, - if (errorType != null) 'errorType': errorType!, - if (forwardingRule != null) 'forwardingRule': forwardingRule!, - if (gceOperation != null) 'gceOperation': gceOperation!, - if (ip != null) 'ip': ip!, - if (ipVersion != null) 'ipVersion': ipVersion!, - if (network != null) 'network': network!, - if (producerInstanceId != null) 'producerInstanceId': producerInstanceId!, - if (producerInstanceMetadata != null) - 'producerInstanceMetadata': producerInstanceMetadata!, - if (project != null) 'project': project!, - if (pscConnectionId != null) 'pscConnectionId': pscConnectionId!, - if (selectedSubnetwork != null) 'selectedSubnetwork': selectedSubnetwork!, - if (serviceAttachmentUri != null) - 'serviceAttachmentUri': serviceAttachmentUri!, + if (error != null) 'error': error!, + if (errorInfo != null) 'errorInfo': errorInfo!, + if (errorType != null) 'errorType': errorType!, + if (forwardingRule != null) 'forwardingRule': forwardingRule!, + if (gceOperation != null) 'gceOperation': gceOperation!, + if (ip != null) 'ip': ip!, + if (ipVersion != null) 'ipVersion': ipVersion!, + if (network != null) 'network': network!, + if (producerInstanceId != null) 'producerInstanceId': producerInstanceId!, + if (producerInstanceMetadata != null) + 'producerInstanceMetadata': producerInstanceMetadata!, + if (project != null) 'project': project!, + if (pscConnectionId != null) 'pscConnectionId': pscConnectionId!, + if (selectedSubnetwork != null) 'selectedSubnetwork': selectedSubnetwork!, + if (serviceAttachmentUri != null) + 'serviceAttachmentUri': serviceAttachmentUri!, + if (state != null) 'state': state!, + }; +} + +/// The `Destination` resource. +/// +/// It specifies the IP prefix and the associated autonomous system numbers +/// (ASN) that you want to include in a `MulticloudDataTransferConfig` resource. +class Destination { + /// Time when the `Destination` resource was created. + /// + /// Output only. + core.String? createTime; + + /// A description of this resource. + /// + /// Optional. + core.String? description; + + /// Unordered list. + /// + /// The list of `DestinationEndpoint` resources configured for the IP prefix. + /// + /// Required. + core.List? endpoints; + + /// The etag is computed by the server, and might be sent with update and + /// delete requests so that the client has an up-to-date value before + /// proceeding. + core.String? etag; + + /// The IP prefix that represents your workload on another CSP. + /// + /// Required. Immutable. + core.String? ipPrefix; + + /// User-defined labels. + /// + /// Optional. + core.Map? labels; + + /// Identifier. + /// + /// The name of the `Destination` resource. Format: + /// `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`. + core.String? name; + + /// The timeline of the expected `Destination` states or the current rest + /// state. + /// + /// If a state change is expected, the value is `ADDING`, `DELETING` or + /// `SUSPENDING`, depending on the action specified. Example: + /// "state_timeline": { "states": \[ { // The time when the `Destination` + /// resource will be activated. "effectiveTime": "2024-12-01T08:00:00Z", + /// "state": "ADDING" }, { // The time when the `Destination` resource will be + /// suspended. "effectiveTime": "2024-12-01T20:00:00Z", "state": "SUSPENDING" + /// } \] } + /// + /// Output only. + StateTimeline? stateTimeline; + + /// The Google-generated unique ID for the `Destination` resource. + /// + /// This value is unique across all `Destination` resources. If a resource is + /// deleted and another with the same name is created, the new resource is + /// assigned a different and unique ID. + /// + /// Output only. + core.String? uid; + + /// Time when the `Destination` resource was updated. + /// + /// Output only. + core.String? updateTime; + + Destination({ + this.createTime, + this.description, + this.endpoints, + this.etag, + this.ipPrefix, + this.labels, + this.name, + this.stateTimeline, + this.uid, + this.updateTime, + }); + + Destination.fromJson(core.Map json_) + : this( + createTime: json_['createTime'] as core.String?, + description: json_['description'] as core.String?, + endpoints: + (json_['endpoints'] as core.List?) + ?.map( + (value) => DestinationEndpoint.fromJson( + value as core.Map, + ), + ) + .toList(), + etag: json_['etag'] as core.String?, + ipPrefix: json_['ipPrefix'] as core.String?, + labels: (json_['labels'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), + name: json_['name'] as core.String?, + stateTimeline: + json_.containsKey('stateTimeline') + ? StateTimeline.fromJson( + json_['stateTimeline'] as core.Map, + ) + : null, + uid: json_['uid'] as core.String?, + updateTime: json_['updateTime'] as core.String?, + ); + + core.Map toJson() => { + if (createTime != null) 'createTime': createTime!, + if (description != null) 'description': description!, + if (endpoints != null) 'endpoints': endpoints!, + if (etag != null) 'etag': etag!, + if (ipPrefix != null) 'ipPrefix': ipPrefix!, + if (labels != null) 'labels': labels!, + if (name != null) 'name': name!, + if (stateTimeline != null) 'stateTimeline': stateTimeline!, + if (uid != null) 'uid': uid!, + if (updateTime != null) 'updateTime': updateTime!, + }; +} + +/// The metadata for a `DestinationEndpoint` resource. +class DestinationEndpoint { + /// The ASN of the remote IP prefix. + /// + /// Required. + core.String? asn; + + /// The CSP of the remote IP prefix. + /// + /// Required. + core.String? csp; + + /// The state of the `DestinationEndpoint` resource. + /// + /// Output only. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : An invalid state, which is the default case. + /// - "VALID" : The `DestinationEndpoint` resource is valid. + /// - "INVALID" : The `DestinationEndpoint` resource is invalid. + core.String? state; + + /// Time when the `DestinationEndpoint` resource was updated. + /// + /// Output only. + core.String? updateTime; + + DestinationEndpoint({this.asn, this.csp, this.state, this.updateTime}); + + DestinationEndpoint.fromJson(core.Map json_) + : this( + asn: json_['asn'] as core.String?, + csp: json_['csp'] as core.String?, + state: json_['state'] as core.String?, + updateTime: json_['updateTime'] as core.String?, + ); + + core.Map toJson() => { + if (asn != null) 'asn': asn!, + if (csp != null) 'csp': csp!, if (state != null) 'state': state!, + if (updateTime != null) 'updateTime': updateTime!, }; } @@ -6045,8 +7402,10 @@ class InternalRange { /// Can be set to narrow down or pick a different address space while /// searching for a free range. /// - /// If not set, defaults to the "10.0.0.0/8" address space. This can be used - /// to search in other rfc-1918 address spaces like "172.16.0.0/12" and + /// If not set, defaults to the \["10.0.0.0/8", "172.16.0.0/12", + /// "192.168.0.0/16"\] address space (for auto-mode networks, the "10.0.0.0/9" + /// range is used instead of "10.0.0.0/8"). This can be used to target the + /// search in other rfc-1918 address spaces like "172.16.0.0/12" and /// "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC. /// /// Optional. @@ -6543,6 +7902,47 @@ class LinkedVpnTunnels { }; } +/// Response message to list `Destination` resources. +class ListDestinationsResponse { + /// The list of `Destination` resources to be listed. + core.List? destinations; + + /// The next page token. + core.String? nextPageToken; + + /// Locations that could not be reached. + core.List? unreachable; + + ListDestinationsResponse({ + this.destinations, + this.nextPageToken, + this.unreachable, + }); + + ListDestinationsResponse.fromJson(core.Map json_) + : this( + destinations: + (json_['destinations'] as core.List?) + ?.map( + (value) => Destination.fromJson( + value as core.Map, + ), + ) + .toList(), + nextPageToken: json_['nextPageToken'] as core.String?, + unreachable: + (json_['unreachable'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (destinations != null) 'destinations': destinations!, + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + if (unreachable != null) 'unreachable': unreachable!, + }; +} + /// Response for HubService.ListGroups method. class ListGroupsResponse { /// The requested groups. @@ -6739,6 +8139,84 @@ class ListLocationsResponse { }; } +/// Response message to list `MulticloudDataTransferConfig` resources. +class ListMulticloudDataTransferConfigsResponse { + /// The list of `MulticloudDataTransferConfig` resources to be listed. + core.List? multicloudDataTransferConfigs; + + /// The next page token. + core.String? nextPageToken; + + /// Locations that could not be reached. + core.List? unreachable; + + ListMulticloudDataTransferConfigsResponse({ + this.multicloudDataTransferConfigs, + this.nextPageToken, + this.unreachable, + }); + + ListMulticloudDataTransferConfigsResponse.fromJson(core.Map json_) + : this( + multicloudDataTransferConfigs: + (json_['multicloudDataTransferConfigs'] as core.List?) + ?.map( + (value) => MulticloudDataTransferConfig.fromJson( + value as core.Map, + ), + ) + .toList(), + nextPageToken: json_['nextPageToken'] as core.String?, + unreachable: + (json_['unreachable'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (multicloudDataTransferConfigs != null) + 'multicloudDataTransferConfigs': multicloudDataTransferConfigs!, + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + if (unreachable != null) 'unreachable': unreachable!, + }; +} + +/// Response message to list the services in your project in regions that are +/// eligible for Data Transfer Essentials configuration. +class ListMulticloudDataTransferSupportedServicesResponse { + /// The list of supported services. + core.List? + multicloudDataTransferSupportedServices; + + /// The next page token. + core.String? nextPageToken; + + ListMulticloudDataTransferSupportedServicesResponse({ + this.multicloudDataTransferSupportedServices, + this.nextPageToken, + }); + + ListMulticloudDataTransferSupportedServicesResponse.fromJson(core.Map json_) + : this( + multicloudDataTransferSupportedServices: + (json_['multicloudDataTransferSupportedServices'] as core.List?) + ?.map( + (value) => MulticloudDataTransferSupportedService.fromJson( + value as core.Map, + ), + ) + .toList(), + nextPageToken: json_['nextPageToken'] as core.String?, + ); + + core.Map toJson() => { + if (multicloudDataTransferSupportedServices != null) + 'multicloudDataTransferSupportedServices': + multicloudDataTransferSupportedServices!, + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + }; +} + /// Response for PolicyBasedRoutingService.ListPolicyBasedRoutes method. class ListPolicyBasedRoutesResponse { /// The next pagination token in the List response. @@ -6827,6 +8305,50 @@ class ListRegionalEndpointsResponse { }; } +/// Message for response to listing RemoteTransportProfiles +class ListRemoteTransportProfilesResponse { + /// A token identifying a page of results the server should return. + core.String? nextPageToken; + + /// The list of RemoteTransportProfiles. + core.List? remoteTransportProfiles; + + /// Unordered list. + /// + /// Locations that could not be reached. + core.List? unreachable; + + ListRemoteTransportProfilesResponse({ + this.nextPageToken, + this.remoteTransportProfiles, + this.unreachable, + }); + + ListRemoteTransportProfilesResponse.fromJson(core.Map json_) + : this( + nextPageToken: json_['nextPageToken'] as core.String?, + remoteTransportProfiles: + (json_['remoteTransportProfiles'] as core.List?) + ?.map( + (value) => RemoteTransportProfile.fromJson( + value as core.Map, + ), + ) + .toList(), + unreachable: + (json_['unreachable'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + if (remoteTransportProfiles != null) + 'remoteTransportProfiles': remoteTransportProfiles!, + if (unreachable != null) 'unreachable': unreachable!, + }; +} + /// Response for HubService.ListRouteTables method. class ListRouteTablesResponse { /// The token for the next page of the response. @@ -7130,6 +8652,49 @@ class ListSpokesResponse { }; } +/// Message for response to listing Transports. +class ListTransportsResponse { + /// A token identifying a page of results the server should return. + core.String? nextPageToken; + + /// The list of Transport. + core.List? transports; + + /// Unordered list. + /// + /// Locations that could not be reached. + core.List? unreachable; + + ListTransportsResponse({ + this.nextPageToken, + this.transports, + this.unreachable, + }); + + ListTransportsResponse.fromJson(core.Map json_) + : this( + nextPageToken: json_['nextPageToken'] as core.String?, + transports: + (json_['transports'] as core.List?) + ?.map( + (value) => Transport.fromJson( + value as core.Map, + ), + ) + .toList(), + unreachable: + (json_['unreachable'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + if (transports != null) 'transports': transports!, + if (unreachable != null) 'unreachable': unreachable!, + }; +} + /// A resource that represents a Google Cloud location. typedef Location = $Location00; @@ -7144,26 +8709,182 @@ class Migration { /// Immutable. core.String? source; - /// Resource path of the target resource. + /// Resource path of the target resource. + /// + /// The target project can be different, as in the cases when migrating to + /// peer networks. For example: + /// /projects/{project}/regions/{region}/subnetworks/{subnet} + /// + /// Immutable. + core.String? target; + + Migration({this.source, this.target}); + + Migration.fromJson(core.Map json_) + : this( + source: json_['source'] as core.String?, + target: json_['target'] as core.String?, + ); + + core.Map toJson() => { + if (source != null) 'source': source!, + if (target != null) 'target': target!, + }; +} + +/// The `MulticloudDataTransferConfig` resource. +/// +/// It lists the services that you configure for Data Transfer Essentials +/// billing and metering. +class MulticloudDataTransferConfig { + /// Time when the `MulticloudDataTransferConfig` resource was created. + /// + /// Output only. + core.String? createTime; + + /// A description of this resource. + /// + /// Optional. + core.String? description; + + /// The number of `Destination` resources in use with the + /// `MulticloudDataTransferConfig` resource. + /// + /// Output only. + core.int? destinationsActiveCount; + + /// The number of `Destination` resources configured for the + /// `MulticloudDataTransferConfig` resource. + /// + /// Output only. + core.int? destinationsCount; + + /// The etag is computed by the server, and might be sent with update and + /// delete requests so that the client has an up-to-date value before + /// proceeding. + core.String? etag; + + /// User-defined labels. + /// + /// Optional. + core.Map? labels; + + /// Identifier. + /// + /// The name of the `MulticloudDataTransferConfig` resource. Format: + /// `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}`. + core.String? name; + + /// Maps services to their current or planned states. + /// + /// Service names are keys, and the associated values describe the state of + /// the service. If a state change is expected, the value is either `ADDING` + /// or `DELETING`, depending on the actions taken. Sample output: "services": + /// { "big-query": { "states": \[ { "effectiveTime": "2024-12-12T08:00:00Z" + /// "state": "ADDING", }, \] }, "cloud-storage": { "states": \[ { "state": + /// "ACTIVE", } \] } } + /// + /// Optional. + core.Map? services; + + /// The Google-generated unique ID for the `MulticloudDataTransferConfig` + /// resource. + /// + /// This value is unique across all `MulticloudDataTransferConfig` resources. + /// If a resource is deleted and another with the same name is created, the + /// new resource is assigned a different and unique ID. + /// + /// Output only. + core.String? uid; + + /// Time when the `MulticloudDataTransferConfig` resource was updated. + /// + /// Output only. + core.String? updateTime; + + MulticloudDataTransferConfig({ + this.createTime, + this.description, + this.destinationsActiveCount, + this.destinationsCount, + this.etag, + this.labels, + this.name, + this.services, + this.uid, + this.updateTime, + }); + + MulticloudDataTransferConfig.fromJson(core.Map json_) + : this( + createTime: json_['createTime'] as core.String?, + description: json_['description'] as core.String?, + destinationsActiveCount: json_['destinationsActiveCount'] as core.int?, + destinationsCount: json_['destinationsCount'] as core.int?, + etag: json_['etag'] as core.String?, + labels: (json_['labels'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), + name: json_['name'] as core.String?, + services: (json_['services'] as core.Map?) + ?.map( + (key, value) => core.MapEntry( + key, + StateTimeline.fromJson( + value as core.Map, + ), + ), + ), + uid: json_['uid'] as core.String?, + updateTime: json_['updateTime'] as core.String?, + ); + + core.Map toJson() => { + if (createTime != null) 'createTime': createTime!, + if (description != null) 'description': description!, + if (destinationsActiveCount != null) + 'destinationsActiveCount': destinationsActiveCount!, + if (destinationsCount != null) 'destinationsCount': destinationsCount!, + if (etag != null) 'etag': etag!, + if (labels != null) 'labels': labels!, + if (name != null) 'name': name!, + if (services != null) 'services': services!, + if (uid != null) 'uid': uid!, + if (updateTime != null) 'updateTime': updateTime!, + }; +} + +/// A service in your project in a region that is eligible for Data Transfer +/// Essentials configuration. +class MulticloudDataTransferSupportedService { + /// Identifier. /// - /// The target project can be different, as in the cases when migrating to - /// peer networks. For example: - /// /projects/{project}/regions/{region}/subnetworks/{subnet} + /// The name of the service. + core.String? name; + + /// The network service tier or regional endpoint supported for the service. /// - /// Immutable. - core.String? target; + /// Output only. + core.List? serviceConfigs; - Migration({this.source, this.target}); + MulticloudDataTransferSupportedService({this.name, this.serviceConfigs}); - Migration.fromJson(core.Map json_) + MulticloudDataTransferSupportedService.fromJson(core.Map json_) : this( - source: json_['source'] as core.String?, - target: json_['target'] as core.String?, + name: json_['name'] as core.String?, + serviceConfigs: + (json_['serviceConfigs'] as core.List?) + ?.map( + (value) => ServiceConfig.fromJson( + value as core.Map, + ), + ) + .toList(), ); core.Map toJson() => { - if (source != null) 'source': source!, - if (target != null) 'target': target!, + if (name != null) 'name': name!, + if (serviceConfigs != null) 'serviceConfigs': serviceConfigs!, }; } @@ -8241,6 +9962,148 @@ class RejectSpokeUpdateRequest { }; } +/// Message describing RemoteTransportProfile object. +class RemoteTransportProfile { + /// Create time stamp. + /// + /// Output only. + core.String? createTime; + + /// Description of the profile. + /// + /// Output only. + core.String? description; + + /// Type of provisioning flows supported by this profile. + /// + /// Output only. + /// Possible string values are: + /// - "KEY_PROVISIONING_FLOW_UNSPECIFIED" : Unspecified key provisioning flow. + /// - "INPUT_ONLY" : The activationKey field on the Transport must be included + /// in a create or patch request to establish connectivity. + /// - "OUTPUT_ONLY" : The generatedActivationKey field is populated and must + /// be read from the resource and passed into the other provider. + /// - "INPUT_OR_OUTPUT" : Both activation key fields are allowed for + /// establishing connectivity. If a key is input, the generated key is still + /// present after provisioning is finished. + core.String? flow; + + /// Labels as key value pairs. + /// + /// Output only. + core.Map? labels; + + /// Identifier. + /// + /// Name of the resource in the format of $provider-$site. + core.String? name; + + /// Order state for this profile. + /// + /// Output only. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : Unspecified state. + /// - "CLOSED" : Not enough capacity for customers to order. + /// - "OPEN" : Enough capacity to fulfill an order. + core.String? orderState; + + /// Name of the provider on the other end of this profile. + /// + /// E.g. “Amazon Web Services” or “Microsoft Azure”. + /// + /// Output only. + core.String? provider; + + /// If the profile is a Cloud Service Provider with compute resources, this is + /// populated with the region where connectivity is being established. + /// + /// If the profile provides facility-level selection, this is an identity of + /// the facility any connections on this profile are going through. + /// + /// Output only. + core.String? providerSite; + + /// GCP Region where this profile is available. + /// + /// Output only. + core.String? region; + + /// Availability class that will be configured for this particular + /// RemoteTransportProfile. + /// + /// Output only. + /// Possible string values are: + /// - "SERVICE_LEVEL_AVAILABILITY_UNSPECIFIED" : Unspecified service level + /// availability. + /// - "HIGH" : This represents a 99.9% service level on the availability of + /// the configured connectivity. + /// - "MAXIMUM" : This represents a 99.99% service level on the availability + /// of the configured connectivity. + core.String? sla; + + /// List of bandwidth enum values that are supported by this profile. + /// + /// Output only. + core.List? supportedBandwidths; + + /// Update time stamp. + /// + /// Output only. + core.String? updateTime; + + RemoteTransportProfile({ + this.createTime, + this.description, + this.flow, + this.labels, + this.name, + this.orderState, + this.provider, + this.providerSite, + this.region, + this.sla, + this.supportedBandwidths, + this.updateTime, + }); + + RemoteTransportProfile.fromJson(core.Map json_) + : this( + createTime: json_['createTime'] as core.String?, + description: json_['description'] as core.String?, + flow: json_['flow'] as core.String?, + labels: (json_['labels'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), + name: json_['name'] as core.String?, + orderState: json_['orderState'] as core.String?, + provider: json_['provider'] as core.String?, + providerSite: json_['providerSite'] as core.String?, + region: json_['region'] as core.String?, + sla: json_['sla'] as core.String?, + supportedBandwidths: + (json_['supportedBandwidths'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + updateTime: json_['updateTime'] as core.String?, + ); + + core.Map toJson() => { + if (createTime != null) 'createTime': createTime!, + if (description != null) 'description': description!, + if (flow != null) 'flow': flow!, + if (labels != null) 'labels': labels!, + if (name != null) 'name': name!, + if (orderState != null) 'orderState': orderState!, + if (provider != null) 'provider': provider!, + if (providerSite != null) 'providerSite': providerSite!, + if (region != null) 'region': region!, + if (sla != null) 'sla': sla!, + if (supportedBandwidths != null) + 'supportedBandwidths': supportedBandwidths!, + if (updateTime != null) 'updateTime': updateTime!, + }; +} + /// A route defines a path from VM instances within a spoke to a specific /// destination resource. /// @@ -8689,6 +10552,44 @@ class ServiceClass { }; } +/// Specifies eligibility information for the service. +class ServiceConfig { + /// The eligibility criteria for the service. + /// + /// Output only. + /// Possible string values are: + /// - "ELIGIBILITY_CRITERIA_UNSPECIFIED" : The service is not eligible for + /// Data Transfer Essentials configuration. This is the default case. + /// - "NETWORK_SERVICE_TIER_PREMIUM_ONLY" : The service is eligible for Data + /// Transfer Essentials configuration only for Premium Tier. + /// - "NETWORK_SERVICE_TIER_STANDARD_ONLY" : The service is eligible for Data + /// Transfer Essentials configuration only for Standard Tier. + /// - "REQUEST_ENDPOINT_REGIONAL_ENDPOINT_ONLY" : The service is eligible for + /// Data Transfer Essentials configuration only for the regional endpoint. + core.String? eligibilityCriteria; + + /// The end time for eligibility criteria support. + /// + /// If not specified, no planned end time is set. + /// + /// Output only. + core.String? supportEndTime; + + ServiceConfig({this.eligibilityCriteria, this.supportEndTime}); + + ServiceConfig.fromJson(core.Map json_) + : this( + eligibilityCriteria: json_['eligibilityCriteria'] as core.String?, + supportEndTime: json_['supportEndTime'] as core.String?, + ); + + core.Map toJson() => { + if (eligibilityCriteria != null) + 'eligibilityCriteria': eligibilityCriteria!, + if (supportEndTime != null) 'supportEndTime': supportEndTime!, + }; +} + /// The ServiceConnectionMap resource. class ServiceConnectionMap { /// The PSC configurations on consumer side. @@ -8740,7 +10641,7 @@ class ServiceConnectionMap { /// The service class identifier this ServiceConnectionMap is for. /// /// The user of ServiceConnectionMap create API needs to have - /// networkconnecitivty.serviceclasses.use iam permission for the service + /// networkconnectivity.serviceClasses.use IAM permission for the service /// class. core.String? serviceClass; @@ -8836,6 +10737,12 @@ class ServiceConnectionMap { /// The ServiceConnectionPolicy resource. class ServiceConnectionPolicy { + /// Information for the automatically created subnetwork and its associated + /// IR. + /// + /// Output only. + AutoCreatedSubnetworkInfo? autoCreatedSubnetInfo; + /// Time when the ServiceConnectionPolicy was created. /// /// Output only. @@ -8902,6 +10809,7 @@ class ServiceConnectionPolicy { core.String? updateTime; ServiceConnectionPolicy({ + this.autoCreatedSubnetInfo, this.createTime, this.description, this.etag, @@ -8917,6 +10825,13 @@ class ServiceConnectionPolicy { ServiceConnectionPolicy.fromJson(core.Map json_) : this( + autoCreatedSubnetInfo: + json_.containsKey('autoCreatedSubnetInfo') + ? AutoCreatedSubnetworkInfo.fromJson( + json_['autoCreatedSubnetInfo'] + as core.Map, + ) + : null, createTime: json_['createTime'] as core.String?, description: json_['description'] as core.String?, etag: json_['etag'] as core.String?, @@ -8945,6 +10860,8 @@ class ServiceConnectionPolicy { ); core.Map toJson() => { + if (autoCreatedSubnetInfo != null) + 'autoCreatedSubnetInfo': autoCreatedSubnetInfo!, if (createTime != null) 'createTime': createTime!, if (description != null) 'description': description!, if (etag != null) 'etag': etag!, @@ -9507,6 +11424,44 @@ class SpokeTypeCount { }; } +/// The state and activation time details of the resource state. +class StateMetadata { + /// Accompanies only the transient states, which include `ADDING`, `DELETING`, + /// and `SUSPENDING`, to denote the time until which the transient state of + /// the resource will be effective. + /// + /// For instance, if the state is `ADDING`, this field shows the time when the + /// resource state transitions to `ACTIVE`. + /// + /// Output only. + core.String? effectiveTime; + + /// The state of the resource. + /// + /// Output only. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : An invalid state, which is the default case. + /// - "ADDING" : The resource is being added. + /// - "ACTIVE" : The resource is in use. + /// - "DELETING" : The resource is being deleted. + /// - "SUSPENDING" : The resource is being suspended. + /// - "SUSPENDED" : The resource is suspended and not in use. + core.String? state; + + StateMetadata({this.effectiveTime, this.state}); + + StateMetadata.fromJson(core.Map json_) + : this( + effectiveTime: json_['effectiveTime'] as core.String?, + state: json_['state'] as core.String?, + ); + + core.Map toJson() => { + if (effectiveTime != null) 'effectiveTime': effectiveTime!, + if (state != null) 'state': state!, + }; +} + /// The reason a spoke is inactive. class StateReason { /// The code associated with this reason. @@ -9547,12 +11502,241 @@ class StateReason { }; } +/// The timeline of the pending states for a resource. +class StateTimeline { + /// The state and activation time details of the resource state. + /// + /// Output only. + core.List? states; + + StateTimeline({this.states}); + + StateTimeline.fromJson(core.Map json_) + : this( + states: + (json_['states'] as core.List?) + ?.map( + (value) => StateMetadata.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (states != null) 'states': states!, + }; +} + /// Request message for `TestIamPermissions` method. typedef TestIamPermissionsRequest = $TestIamPermissionsRequest00; /// Response message for `TestIamPermissions` method. typedef TestIamPermissionsResponse = $PermissionsResponse; +/// Message describing Transport object. +class Transport { + /// Administrative state of the underlying connectivity. + /// + /// If set to true (default), connectivity should be available between your + /// environments. If set to false, the connectivity over these links is + /// disabled. Disabling your Transport does not affect billing, and retains + /// the underlying network bandwidth associated with the connectivity. + /// + /// Optional. + core.bool? adminEnabled; + + /// \[Preview only\] List of IP Prefixes that will be advertised to the remote + /// provider. + /// + /// Both IPv4 and IPv6 addresses are supported. + /// + /// Optional. + core.String? advertisedRoutes; + + /// Bandwidth of the Transport. + /// + /// This must be one of the supported bandwidths for the remote profile. + /// + /// Required. + /// Possible string values are: + /// - "BANDWIDTH_UNSPECIFIED" : Unspecified bandwidth. + /// - "BPS_50M" : 50 Megabits per second. + /// - "BPS_100M" : 100 Megabits per second. + /// - "BPS_200M" : 200 Megabits per second. + /// - "BPS_300M" : 300 Megabits per second. + /// - "BPS_400M" : 400 Megabits per second. + /// - "BPS_500M" : 500 Megabits per second. + /// - "BPS_1G" : 1 Gigabit per second. + /// - "BPS_2G" : 2 Gigabits per second. + /// - "BPS_5G" : 5 Gigabits per second. + /// - "BPS_10G" : 10 Gigabits per second. + core.String? bandwidth; + + /// Create time stamp. + /// + /// Output only. + core.String? createTime; + + /// Description of the Transport. + /// + /// Optional. + core.String? description; + + /// Google-generated activation key. + /// + /// This is only output if the selected profile supports an OUTPUT key flow. + /// Inputting this to the provider is only valid while the resource is in a + /// PENDING_KEY state. Once the provider has accepted the key, the resource + /// will move to the CONFIGURING state. + /// + /// Output only. + core.String? generatedActivationKey; + + /// Labels as key value pairs. + /// + /// Optional. + core.Map? labels; + + /// The maximum transmission unit (MTU) of a packet that can be sent over this + /// transport. + /// + /// Output only. + core.int? mtuLimit; + + /// Identifier. + /// + /// Name of the resource, see google.aip.dev/122 for resource naming. + core.String? name; + + /// \[Preview only\] Resource URL of the Network that will be peered with this + /// Transport. + /// + /// This field must be provided during resource creation and cannot be + /// changed. + /// + /// Required. + core.String? network; + + /// Key used for establishing a connection with the remote transport. + /// + /// This key can only be provided if the profile supports an INPUT key flow + /// and the resource is in the PENDING_KEY state. + /// + /// Optional. + core.String? providedActivationKey; + + /// GCP Region where this Transport is located. + /// + /// Required. + core.String? region; + + /// Resource URL of the remoteTransportProfile that this Transport is + /// connecting to. + /// + /// Format: + /// projects/{project}/locations/{location}/remoteTransportProfiles/{remote_transport_profile} + /// + /// Required. + core.String? remoteProfile; + + /// IP version stack for the established connectivity. + /// + /// Optional. + /// Possible string values are: + /// - "STACK_TYPE_UNSPECIFIED" : Unspecified stack type. + /// - "IPV4_ONLY" : Only IPv4 is supported. (default) + /// - "IPV4_IPV6" : Both IPv4 and IPv6 are supported. + core.String? stackType; + + /// State of the underlying connectivity. + /// + /// Output only. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : Unspecified state. + /// - "CREATING" : The resource exists locally and is being created / + /// associated with the resource on the remote provider’s end of the + /// underlying connectivity. + /// - "PENDING_CONFIG" : The Transport exists on both sides of the connection, + /// and is waiting for configuration to finalize and be verified as + /// operational. + /// - "PENDING_KEY" : The Transport was created in GCP. Depending on the + /// profile’s key provisioning flow, this is either waiting for an activation + /// key to be input (the key will be validated that it uses remote resources + /// that match the Transport), or for the generated key to be input to the + /// provider for finalizing. The configured bandwidth is not yet guaranteed. + /// - "ACTIVE" : The Transport is configured and the underlying connectivity + /// is considered operational. + core.String? state; + + /// Update time stamp. + /// + /// Output only. + core.String? updateTime; + + Transport({ + this.adminEnabled, + this.advertisedRoutes, + this.bandwidth, + this.createTime, + this.description, + this.generatedActivationKey, + this.labels, + this.mtuLimit, + this.name, + this.network, + this.providedActivationKey, + this.region, + this.remoteProfile, + this.stackType, + this.state, + this.updateTime, + }); + + Transport.fromJson(core.Map json_) + : this( + adminEnabled: json_['adminEnabled'] as core.bool?, + advertisedRoutes: json_['advertisedRoutes'] as core.String?, + bandwidth: json_['bandwidth'] as core.String?, + createTime: json_['createTime'] as core.String?, + description: json_['description'] as core.String?, + generatedActivationKey: json_['generatedActivationKey'] as core.String?, + labels: (json_['labels'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), + mtuLimit: json_['mtuLimit'] as core.int?, + name: json_['name'] as core.String?, + network: json_['network'] as core.String?, + providedActivationKey: json_['providedActivationKey'] as core.String?, + region: json_['region'] as core.String?, + remoteProfile: json_['remoteProfile'] as core.String?, + stackType: json_['stackType'] as core.String?, + state: json_['state'] as core.String?, + updateTime: json_['updateTime'] as core.String?, + ); + + core.Map toJson() => { + if (adminEnabled != null) 'adminEnabled': adminEnabled!, + if (advertisedRoutes != null) 'advertisedRoutes': advertisedRoutes!, + if (bandwidth != null) 'bandwidth': bandwidth!, + if (createTime != null) 'createTime': createTime!, + if (description != null) 'description': description!, + if (generatedActivationKey != null) + 'generatedActivationKey': generatedActivationKey!, + if (labels != null) 'labels': labels!, + if (mtuLimit != null) 'mtuLimit': mtuLimit!, + if (name != null) 'name': name!, + if (network != null) 'network': network!, + if (providedActivationKey != null) + 'providedActivationKey': providedActivationKey!, + if (region != null) 'region': region!, + if (remoteProfile != null) 'remoteProfile': remoteProfile!, + if (stackType != null) 'stackType': stackType!, + if (state != null) 'state': state!, + if (updateTime != null) 'updateTime': updateTime!, + }; +} + /// VM instances that this policy-based route applies to. class VirtualMachine { /// A list of VM instance tags that this policy-based route applies to. diff --git a/generated/googleapis/lib/networkmanagement/v1.dart b/generated/googleapis/lib/networkmanagement/v1.dart index 600b52009..7287b6ef8 100644 --- a/generated/googleapis/lib/networkmanagement/v1.dart +++ b/generated/googleapis/lib/networkmanagement/v1.dart @@ -24,6 +24,7 @@ /// - [OrganizationsResource] /// - [OrganizationsLocationsResource] /// - [OrganizationsLocationsOperationsResource] +/// - [OrganizationsLocationsVpcFlowLogsConfigsResource] /// - [ProjectsResource] /// - [ProjectsLocationsResource] /// - [ProjectsLocationsGlobalResource] @@ -88,6 +89,8 @@ class OrganizationsLocationsResource { OrganizationsLocationsOperationsResource get operations => OrganizationsLocationsOperationsResource(_requester); + OrganizationsLocationsVpcFlowLogsConfigsResource get vpcFlowLogsConfigs => + OrganizationsLocationsVpcFlowLogsConfigsResource(_requester); OrganizationsLocationsResource(commons.ApiRequester client) : _requester = client; @@ -131,9 +134,9 @@ class OrganizationsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^organizations/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -365,6 +368,272 @@ class OrganizationsLocationsOperationsResource { } } +class OrganizationsLocationsVpcFlowLogsConfigsResource { + final commons.ApiRequester _requester; + + OrganizationsLocationsVpcFlowLogsConfigsResource(commons.ApiRequester client) + : _requester = client; + + /// Creates a new `VpcFlowLogsConfig`. + /// + /// If a configuration with the exact same settings already exists (even if + /// the ID is different), the creation fails. Notes: 1. Creating a + /// configuration with `state=DISABLED` will fail 2. The following fields are + /// not considered as settings for the purpose of the check mentioned above, + /// therefore - creating another configuration with the same fields but + /// different values for the following fields will fail as well: * name * + /// create_time * update_time * labels * description + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent resource of the VpcFlowLogsConfig to + /// create, in one of the following formats: - For project-level resources: + /// `projects/{project_id}/locations/global` - For organization-level + /// resources: `organizations/{organization_id}/locations/global` + /// Value must have pattern `^organizations/\[^/\]+/locations/\[^/\]+$`. + /// + /// [vpcFlowLogsConfigId] - Required. ID of the `VpcFlowLogsConfig`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future create( + VpcFlowLogsConfig request, + core.String parent, { + core.String? vpcFlowLogsConfigId, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (vpcFlowLogsConfigId != null) + 'vpcFlowLogsConfigId': [vpcFlowLogsConfigId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/vpcFlowLogsConfigs'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + + /// Deletes a specific `VpcFlowLogsConfig`. + /// + /// Request parameters: + /// + /// [name] - Required. The resource name of the VpcFlowLogsConfig, in one of + /// the following formats: - For a project-level resource: + /// `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + /// - For an organization-level resource: + /// `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + /// Value must have pattern + /// `^organizations/\[^/\]+/locations/\[^/\]+/vpcFlowLogsConfigs/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future delete( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'DELETE', + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + + /// Gets the details of a specific `VpcFlowLogsConfig`. + /// + /// Request parameters: + /// + /// [name] - Required. The resource name of the VpcFlowLogsConfig, in one of + /// the following formats: - For project-level resources: + /// `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + /// - For organization-level resources: + /// `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + /// Value must have pattern + /// `^organizations/\[^/\]+/locations/\[^/\]+/vpcFlowLogsConfigs/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [VpcFlowLogsConfig]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return VpcFlowLogsConfig.fromJson( + response_ as core.Map, + ); + } + + /// Lists all `VpcFlowLogsConfigs` in a given organization. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent resource of the VpcFlowLogsConfig, in one + /// of the following formats: - For project-level resourcs: + /// `projects/{project_id}/locations/global` - For organization-level + /// resources: `organizations/{organization_id}/locations/global` + /// Value must have pattern `^organizations/\[^/\]+/locations/\[^/\]+$`. + /// + /// [filter] - Optional. Lists the `VpcFlowLogsConfigs` that match the filter + /// expression. A filter expression must use the supported + /// [CEL logic operators](https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + /// + /// [orderBy] - Optional. Field to use to sort the list. + /// + /// [pageSize] - Optional. Number of `VpcFlowLogsConfigs` to return. + /// + /// [pageToken] - Optional. Page token from an earlier query, as returned in + /// `next_page_token`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListVpcFlowLogsConfigsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String parent, { + core.String? filter, + core.String? orderBy, + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/vpcFlowLogsConfigs'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return ListVpcFlowLogsConfigsResponse.fromJson( + response_ as core.Map, + ); + } + + /// Updates an existing `VpcFlowLogsConfig`. + /// + /// If a configuration with the exact same settings already exists (even if + /// the ID is different), the creation fails. Notes: 1. Updating a + /// configuration with `state=DISABLED` will fail 2. The following fields are + /// not considered as settings for the purpose of the check mentioned above, + /// therefore - updating another configuration with the same fields but + /// different values for the following fields will fail as well: * name * + /// create_time * update_time * labels * description + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Identifier. Unique name of the configuration. The name can have + /// one of the following forms: - For project-level configurations: + /// `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + /// - For organization-level configurations: + /// `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + /// Value must have pattern + /// `^organizations/\[^/\]+/locations/\[^/\]+/vpcFlowLogsConfigs/\[^/\]+$`. + /// + /// [updateMask] - Required. Mask of fields to update. At least one path must + /// be supplied in this field. For example, to change the state of the + /// configuration to ENABLED, specify `update_mask` = `"state"`, and the + /// `vpc_flow_logs_config` would be: `vpc_flow_logs_config = { name = + /// "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" state + /// = "ENABLED" }` + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future patch( + VpcFlowLogsConfig request, + core.String name, { + core.String? updateMask, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (updateMask != null) 'updateMask': [updateMask], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'PATCH', + body: body_, + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } +} + class ProjectsResource { final commons.ApiRequester _requester; @@ -426,9 +695,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -1256,7 +1525,7 @@ class ProjectsLocationsNetworkMonitoringProvidersResource { /// Request parameters: /// /// [name] - Required. Name of the resource. Format: - /// projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider} + /// `projects/{project}/locations/{location}/networkMonitoringProviders/{network_monitoring_provider}` /// Value must have pattern /// `^projects/\[^/\]+/locations/\[^/\]+/networkMonitoringProviders/\[^/\]+$`. /// @@ -1296,7 +1565,7 @@ class ProjectsLocationsNetworkMonitoringProvidersResource { /// /// [parent] - Required. Parent value for /// ListNetworkMonitoringProvidersRequest. Format: - /// projects/{project}/locations/{location} + /// `projects/{project}/locations/{location}` /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// /// [pageSize] - Optional. The maximum number of monitoring points to return. @@ -1904,6 +2173,131 @@ class ProjectsLocationsVpcFlowLogsConfigsResource { ); return Operation.fromJson(response_ as core.Map); } + + /// QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC + /// Flow Logs configurations applicable to the specified project. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent resource of the VpcFlowLogsConfig, + /// specified in the following format: + /// `projects/{project_id}/locations/global` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [filter] - Optional. Lists the `VpcFlowLogsConfigs` that match the filter + /// expression. A filter expression must use the supported + /// [CEL logic operators](https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + /// + /// [pageSize] - Optional. Number of `VpcFlowLogsConfigs` to return. + /// + /// [pageToken] - Optional. Page token from an earlier query, as returned in + /// `next_page_token`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [QueryOrgVpcFlowLogsConfigsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future queryOrgVpcFlowLogsConfigs( + core.String parent, { + core.String? filter, + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + + core.Uri.encodeFull('$parent') + + '/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return QueryOrgVpcFlowLogsConfigsResponse.fromJson( + response_ as core.Map, + ); + } + + /// ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs + /// configurations applicable to a specified resource. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent resource of the VpcFlowLogsConfig, + /// specified in the following format: + /// `projects/{project_id}/locations/global` + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [filter] - Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match + /// the filter expression. A filter expression must use the supported + /// [CEL logic operators](https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + /// + /// [pageSize] - Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. + /// Default is 30. + /// + /// [pageToken] - Optional. Page token from an earlier query, as returned in + /// `next_page_token`. + /// + /// [resource] - Required. The resource to get the effective VPC Flow Logs + /// configuration for. The resource must belong to the same project as the + /// parent. The resource must be a network, subnetwork, interconnect + /// attachment, VPN tunnel, or a project. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ShowEffectiveFlowLogsConfigsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future + showEffectiveFlowLogsConfigs( + core.String parent, { + core.String? filter, + core.int? pageSize, + core.String? pageToken, + core.String? resource, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if (resource != null) 'resource': [resource], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + + core.Uri.encodeFull('$parent') + + '/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return ShowEffectiveFlowLogsConfigsResponse.fromJson( + response_ as core.Map, + ); + } } /// Details of the final state "abort" and associated resource. @@ -3007,8 +3401,18 @@ class DropInfo { /// network to the destination IP address. /// - "CLOUD_NAT_PROTOCOL_UNSUPPORTED" : Packet is dropped by Cloud NAT due to /// using an unsupported protocol. + /// - "L2_INTERCONNECT_UNSUPPORTED_PROTOCOL" : Packet is dropped due to using + /// an unsupported protocol (any other than UDP) for L2 Interconnect. + /// - "L2_INTERCONNECT_UNSUPPORTED_PORT" : Packet is dropped due to using an + /// unsupported port (any other than 6081) for L2 Interconnect. + /// - "L2_INTERCONNECT_DESTINATION_IP_MISMATCH" : Packet is dropped due to + /// destination IP not matching the appliance mapping IPs configured on the L2 + /// Interconnect attachment. core.String? cause; + /// Geolocation (region code) of the destination IP address (if relevant). + core.String? destinationGeolocationCode; + /// Destination IP address of the dropped packet (if relevant). core.String? destinationIp; @@ -3018,48 +3422,232 @@ class DropInfo { /// URI of the resource that caused the drop. core.String? resourceUri; - /// Source IP address of the dropped packet (if relevant). - core.String? sourceIp; + /// Geolocation (region code) of the source IP address (if relevant). + core.String? sourceGeolocationCode; + + /// Source IP address of the dropped packet (if relevant). + core.String? sourceIp; + + DropInfo({ + this.cause, + this.destinationGeolocationCode, + this.destinationIp, + this.region, + this.resourceUri, + this.sourceGeolocationCode, + this.sourceIp, + }); + + DropInfo.fromJson(core.Map json_) + : this( + cause: json_['cause'] as core.String?, + destinationGeolocationCode: + json_['destinationGeolocationCode'] as core.String?, + destinationIp: json_['destinationIp'] as core.String?, + region: json_['region'] as core.String?, + resourceUri: json_['resourceUri'] as core.String?, + sourceGeolocationCode: json_['sourceGeolocationCode'] as core.String?, + sourceIp: json_['sourceIp'] as core.String?, + ); + + core.Map toJson() => { + if (cause != null) 'cause': cause!, + if (destinationGeolocationCode != null) + 'destinationGeolocationCode': destinationGeolocationCode!, + if (destinationIp != null) 'destinationIp': destinationIp!, + if (region != null) 'region': region!, + if (resourceUri != null) 'resourceUri': resourceUri!, + if (sourceGeolocationCode != null) + 'sourceGeolocationCode': sourceGeolocationCode!, + if (sourceIp != null) 'sourceIp': sourceIp!, + }; +} + +/// Representation of a network edge location as per +/// https://cloud.google.com/vpc/docs/edge-locations. +class EdgeLocation { + /// Name of the metropolitan area. + core.String? metropolitanArea; + + EdgeLocation({this.metropolitanArea}); + + EdgeLocation.fromJson(core.Map json_) + : this(metropolitanArea: json_['metropolitanArea'] as core.String?); + + core.Map toJson() => { + if (metropolitanArea != null) 'metropolitanArea': metropolitanArea!, + }; +} + +/// A configuration to generate a response for GetEffectiveVpcFlowLogsConfig +/// request. +class EffectiveVpcFlowLogsConfig { + /// The aggregation interval for the logs. + /// + /// Default value is INTERVAL_5_SEC. + /// Possible string values are: + /// - "AGGREGATION_INTERVAL_UNSPECIFIED" : If not specified, will default to + /// INTERVAL_5_SEC. + /// - "INTERVAL_5_SEC" : Aggregate logs in 5s intervals. + /// - "INTERVAL_30_SEC" : Aggregate logs in 30s intervals. + /// - "INTERVAL_1_MIN" : Aggregate logs in 1m intervals. + /// - "INTERVAL_5_MIN" : Aggregate logs in 5m intervals. + /// - "INTERVAL_10_MIN" : Aggregate logs in 10m intervals. + /// - "INTERVAL_15_MIN" : Aggregate logs in 15m intervals. + core.String? aggregationInterval; + + /// Determines whether to include cross project annotations in the logs. + /// + /// This field is available only for organization configurations. If not + /// specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. + /// Possible string values are: + /// - "CROSS_PROJECT_METADATA_UNSPECIFIED" : If not specified, the default is + /// CROSS_PROJECT_METADATA_ENABLED. + /// - "CROSS_PROJECT_METADATA_ENABLED" : When CROSS_PROJECT_METADATA_ENABLED, + /// metadata from other projects will be included in the logs. + /// - "CROSS_PROJECT_METADATA_DISABLED" : When + /// CROSS_PROJECT_METADATA_DISABLED, metadata from other projects will not be + /// included in the logs. + core.String? crossProjectMetadata; + + /// Export filter used to define which VPC Flow Logs should be logged. + core.String? filterExpr; + + /// The value of the field must be in (0, 1\]. + /// + /// The sampling rate of VPC Flow Logs where 1.0 means all collected logs are + /// reported. Setting the sampling rate to 0.0 is not allowed. If you want to + /// disable VPC Flow Logs, use the state field instead. Default value is 1.0. + core.double? flowSampling; + + /// Traffic will be logged from the Interconnect Attachment. + /// + /// Format: + /// projects/{project_id}/regions/{region}/interconnectAttachments/{name} + core.String? interconnectAttachment; + + /// Configures whether all, none or a subset of metadata fields should be + /// added to the reported VPC flow logs. + /// + /// Default value is INCLUDE_ALL_METADATA. + /// Possible string values are: + /// - "METADATA_UNSPECIFIED" : If not specified, will default to + /// INCLUDE_ALL_METADATA. + /// - "INCLUDE_ALL_METADATA" : Include all metadata fields. + /// - "EXCLUDE_ALL_METADATA" : Exclude all metadata fields. + /// - "CUSTOM_METADATA" : Include only custom fields (specified in + /// metadata_fields). + core.String? metadata; + + /// Custom metadata fields to include in the reported VPC flow logs. + /// + /// Can only be specified if "metadata" was set to CUSTOM_METADATA. + core.List? metadataFields; + + /// Unique name of the configuration. + /// + /// The name can have one of the following forms: - For project-level + /// configurations: + /// `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + /// - For organization-level configurations: + /// `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + /// - For a Compute config, the name will be the path of the subnet: + /// `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}` + core.String? name; + + /// Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments + /// within the network. + /// + /// Format: projects/{project_id}/global/networks/{name} + core.String? network; + + /// Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..). + /// Possible string values are: + /// - "SCOPE_UNSPECIFIED" : Scope is unspecified. + /// - "SUBNET" : Target resource is a subnet (Network Management API). + /// - "COMPUTE_API_SUBNET" : Target resource is a subnet, and the config + /// originates from the Compute API. + /// - "NETWORK" : Target resource is a network. + /// - "VPN_TUNNEL" : Target resource is a VPN tunnel. + /// - "INTERCONNECT_ATTACHMENT" : Target resource is an interconnect + /// attachment. + /// - "ORGANIZATION" : Configuration applies to an entire organization. + core.String? scope; + + /// The state of the VPC Flow Log configuration. + /// + /// Default value is ENABLED. When creating a new configuration, it must be + /// enabled. Setting state=DISABLED will pause the log generation for this + /// config. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : If not specified, will default to ENABLED. + /// - "ENABLED" : When ENABLED, this configuration will generate logs. + /// - "DISABLED" : When DISABLED, this configuration will not generate logs. + core.String? state; + + /// Traffic will be logged from VMs within the subnetwork. + /// + /// Format: projects/{project_id}/regions/{region}/subnetworks/{name} + core.String? subnet; + + /// Traffic will be logged from the VPN Tunnel. + /// + /// Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} + core.String? vpnTunnel; - DropInfo({ - this.cause, - this.destinationIp, - this.region, - this.resourceUri, - this.sourceIp, + EffectiveVpcFlowLogsConfig({ + this.aggregationInterval, + this.crossProjectMetadata, + this.filterExpr, + this.flowSampling, + this.interconnectAttachment, + this.metadata, + this.metadataFields, + this.name, + this.network, + this.scope, + this.state, + this.subnet, + this.vpnTunnel, }); - DropInfo.fromJson(core.Map json_) + EffectiveVpcFlowLogsConfig.fromJson(core.Map json_) : this( - cause: json_['cause'] as core.String?, - destinationIp: json_['destinationIp'] as core.String?, - region: json_['region'] as core.String?, - resourceUri: json_['resourceUri'] as core.String?, - sourceIp: json_['sourceIp'] as core.String?, + aggregationInterval: json_['aggregationInterval'] as core.String?, + crossProjectMetadata: json_['crossProjectMetadata'] as core.String?, + filterExpr: json_['filterExpr'] as core.String?, + flowSampling: (json_['flowSampling'] as core.num?)?.toDouble(), + interconnectAttachment: json_['interconnectAttachment'] as core.String?, + metadata: json_['metadata'] as core.String?, + metadataFields: + (json_['metadataFields'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + name: json_['name'] as core.String?, + network: json_['network'] as core.String?, + scope: json_['scope'] as core.String?, + state: json_['state'] as core.String?, + subnet: json_['subnet'] as core.String?, + vpnTunnel: json_['vpnTunnel'] as core.String?, ); core.Map toJson() => { - if (cause != null) 'cause': cause!, - if (destinationIp != null) 'destinationIp': destinationIp!, - if (region != null) 'region': region!, - if (resourceUri != null) 'resourceUri': resourceUri!, - if (sourceIp != null) 'sourceIp': sourceIp!, - }; -} - -/// Representation of a network edge location as per -/// https://cloud.google.com/vpc/docs/edge-locations. -class EdgeLocation { - /// Name of the metropolitan area. - core.String? metropolitanArea; - - EdgeLocation({this.metropolitanArea}); - - EdgeLocation.fromJson(core.Map json_) - : this(metropolitanArea: json_['metropolitanArea'] as core.String?); - - core.Map toJson() => { - if (metropolitanArea != null) 'metropolitanArea': metropolitanArea!, + if (aggregationInterval != null) + 'aggregationInterval': aggregationInterval!, + if (crossProjectMetadata != null) + 'crossProjectMetadata': crossProjectMetadata!, + if (filterExpr != null) 'filterExpr': filterExpr!, + if (flowSampling != null) 'flowSampling': flowSampling!, + if (interconnectAttachment != null) + 'interconnectAttachment': interconnectAttachment!, + if (metadata != null) 'metadata': metadata!, + if (metadataFields != null) 'metadataFields': metadataFields!, + if (name != null) 'name': name!, + if (network != null) 'network': network!, + if (scope != null) 'scope': scope!, + if (state != null) 'state': state!, + if (subnet != null) 'subnet': subnet!, + if (vpnTunnel != null) 'vpnTunnel': vpnTunnel!, }; } @@ -3098,8 +3686,8 @@ class Endpoint { /// Forwarding rules are also used for protocol forwarding, Private Service /// Connect and other network services to provide forwarding information in /// the control plane. Applicable only to destination endpoint. Format: - /// projects/{project}/global/forwardingRules/{id} or - /// projects/{project}/regions/{region}/forwardingRules/{id} + /// `projects/{project}/global/forwardingRules/{id}` or + /// `projects/{project}/regions/{region}/forwardingRules/{id}` core.String? forwardingRule; /// Specifies the type of the target of the forwarding rule. @@ -3456,6 +4044,15 @@ class FirewallInfo { /// This field is not applicable to firewall policy rules. core.List? targetTags; + /// Target type of the firewall rule. + /// Possible string values are: + /// - "TARGET_TYPE_UNSPECIFIED" : Target type is not specified. In this case + /// we treat the rule as applying to INSTANCES target type. + /// - "INSTANCES" : Firewall rule applies to instances. + /// - "INTERNAL_MANAGED_LB" : Firewall rule applies to internal managed load + /// balancers. + core.String? targetType; + /// The URI of the firewall rule. /// /// This field is not applicable to implied VPC firewall rules. @@ -3473,6 +4070,7 @@ class FirewallInfo { this.priority, this.targetServiceAccounts, this.targetTags, + this.targetType, this.uri, }); @@ -3495,6 +4093,7 @@ class FirewallInfo { (json_['targetTags'] as core.List?) ?.map((value) => value as core.String) .toList(), + targetType: json_['targetType'] as core.String?, uri: json_['uri'] as core.String?, ); @@ -3511,6 +4110,7 @@ class FirewallInfo { if (targetServiceAccounts != null) 'targetServiceAccounts': targetServiceAccounts!, if (targetTags != null) 'targetTags': targetTags!, + if (targetType != null) 'targetType': targetType!, if (uri != null) 'uri': uri!, }; } @@ -3690,6 +4290,28 @@ class GKEMasterInfo { }; } +/// The geographical location of the MonitoringPoint. +class GeoLocation { + /// Country. + core.String? country; + + /// Formatted address. + core.String? formattedAddress; + + GeoLocation({this.country, this.formattedAddress}); + + GeoLocation.fromJson(core.Map json_) + : this( + country: json_['country'] as core.String?, + formattedAddress: json_['formattedAddress'] as core.String?, + ); + + core.Map toJson() => { + if (country != null) 'country': country!, + if (formattedAddress != null) 'formattedAddress': formattedAddress!, + }; +} + /// For display only. /// /// Details of a Google Service sending packets to a VPC network. Although the @@ -3817,6 +4439,35 @@ class Host { }; } +/// For display only. +/// +/// Metadata associated with a hybrid subnet. +class HybridSubnetInfo { + /// Name of a hybrid subnet. + core.String? displayName; + + /// Name of a Google Cloud region where the hybrid subnet is configured. + core.String? region; + + /// URI of a hybrid subnet. + core.String? uri; + + HybridSubnetInfo({this.displayName, this.region, this.uri}); + + HybridSubnetInfo.fromJson(core.Map json_) + : this( + displayName: json_['displayName'] as core.String?, + region: json_['region'] as core.String?, + uri: json_['uri'] as core.String?, + ); + + core.Map toJson() => { + if (displayName != null) 'displayName': displayName!, + if (region != null) 'region': region!, + if (uri != null) 'uri': uri!, + }; +} + /// For display only. /// /// Metadata associated with a Compute Engine instance. @@ -3915,6 +4566,75 @@ class InstanceInfo { }; } +/// For display only. +/// +/// Metadata associated with an Interconnect attachment. +class InterconnectAttachmentInfo { + /// URI of the Cloud Router to be used for dynamic routing. + core.String? cloudRouterUri; + + /// Name of an Interconnect attachment. + core.String? displayName; + + /// URI of the Interconnect where the Interconnect attachment is configured. + core.String? interconnectUri; + + /// Appliance IP address that was matched for L2_DEDICATED attachments. + core.String? l2AttachmentMatchedIpAddress; + + /// Name of a Google Cloud region where the Interconnect attachment is + /// configured. + core.String? region; + + /// The type of interconnect attachment this is. + /// Possible string values are: + /// - "TYPE_UNSPECIFIED" : Unspecified type. + /// - "DEDICATED" : Attachment to a dedicated interconnect. + /// - "PARTNER" : Attachment to a partner interconnect, created by the + /// customer. + /// - "PARTNER_PROVIDER" : Attachment to a partner interconnect, created by + /// the partner. + /// - "L2_DEDICATED" : Attachment to a L2 interconnect, created by the + /// customer. + core.String? type; + + /// URI of an Interconnect attachment. + core.String? uri; + + InterconnectAttachmentInfo({ + this.cloudRouterUri, + this.displayName, + this.interconnectUri, + this.l2AttachmentMatchedIpAddress, + this.region, + this.type, + this.uri, + }); + + InterconnectAttachmentInfo.fromJson(core.Map json_) + : this( + cloudRouterUri: json_['cloudRouterUri'] as core.String?, + displayName: json_['displayName'] as core.String?, + interconnectUri: json_['interconnectUri'] as core.String?, + l2AttachmentMatchedIpAddress: + json_['l2AttachmentMatchedIpAddress'] as core.String?, + region: json_['region'] as core.String?, + type: json_['type'] as core.String?, + uri: json_['uri'] as core.String?, + ); + + core.Map toJson() => { + if (cloudRouterUri != null) 'cloudRouterUri': cloudRouterUri!, + if (displayName != null) 'displayName': displayName!, + if (interconnectUri != null) 'interconnectUri': interconnectUri!, + if (l2AttachmentMatchedIpAddress != null) + 'l2AttachmentMatchedIpAddress': l2AttachmentMatchedIpAddress!, + if (region != null) 'region': region!, + if (type != null) 'type': type!, + if (uri != null) 'uri': uri!, + }; +} + /// Describes measured latency distribution. class LatencyDistribution { /// Representative latency percentiles. @@ -4510,10 +5230,10 @@ class MonitoringPoint { /// The geographical location of the MonitoringPoint. /// - /// Examples: - "New York, NY, USA" - "Berlin, Germany" + /// ; /// /// Output only. - core.String? geoLocation; + GeoLocation? geoLocation; /// The host information of the MonitoringPoint. /// @@ -4556,6 +5276,11 @@ class MonitoringPoint { /// Output only. core.String? updateTime; + /// Indicates if an upgrade is available for the MonitoringPoint. + /// + /// Output only. + core.bool? upgradeAvailable; + /// The type of upgrade available for the MonitoringPoint. /// /// Output only. @@ -4589,6 +5314,7 @@ class MonitoringPoint { this.providerTags, this.type, this.updateTime, + this.upgradeAvailable, this.upgradeType, this.version, }); @@ -4603,7 +5329,12 @@ class MonitoringPoint { (json_['errors'] as core.List?) ?.map((value) => value as core.String) .toList(), - geoLocation: json_['geoLocation'] as core.String?, + geoLocation: + json_.containsKey('geoLocation') + ? GeoLocation.fromJson( + json_['geoLocation'] as core.Map, + ) + : null, host: json_.containsKey('host') ? Host.fromJson( @@ -4631,6 +5362,7 @@ class MonitoringPoint { .toList(), type: json_['type'] as core.String?, updateTime: json_['updateTime'] as core.String?, + upgradeAvailable: json_['upgradeAvailable'] as core.bool?, upgradeType: json_['upgradeType'] as core.String?, version: json_['version'] as core.String?, ); @@ -4651,6 +5383,7 @@ class MonitoringPoint { if (providerTags != null) 'providerTags': providerTags!, if (type != null) 'type': type!, if (updateTime != null) 'updateTime': updateTime!, + if (upgradeAvailable != null) 'upgradeAvailable': upgradeAvailable!, if (upgradeType != null) 'upgradeType': upgradeType!, if (version != null) 'version': version!, }; @@ -4717,6 +5450,7 @@ class NatInfo { /// to internal address. /// - "CLOUD_NAT" : Cloud NAT Gateway. /// - "PRIVATE_SERVICE_CONNECT" : Private service connect NAT. + /// - "GKE_POD_IP_MASQUERADING" : GKE Pod IP address masquerading. core.String? type; NatInfo({ @@ -4894,6 +5628,11 @@ class NetworkMonitoringProvider { /// Output only. core.String? createTime; + /// The list of error messages detected for the NetworkMonitoringProvider. + /// + /// Output only. + core.List? errors; + /// Identifier. /// /// Name of the resource. Format: @@ -4937,6 +5676,7 @@ class NetworkMonitoringProvider { NetworkMonitoringProvider({ this.createTime, + this.errors, this.name, this.providerType, this.providerUri, @@ -4947,6 +5687,10 @@ class NetworkMonitoringProvider { NetworkMonitoringProvider.fromJson(core.Map json_) : this( createTime: json_['createTime'] as core.String?, + errors: + (json_['errors'] as core.List?) + ?.map((value) => value as core.String) + .toList(), name: json_['name'] as core.String?, providerType: json_['providerType'] as core.String?, providerUri: json_['providerUri'] as core.String?, @@ -4956,6 +5700,7 @@ class NetworkMonitoringProvider { core.Map toJson() => { if (createTime != null) 'createTime': createTime!, + if (errors != null) 'errors': errors!, if (name != null) 'name': name!, if (providerType != null) 'providerType': providerType!, if (providerUri != null) 'providerUri': providerUri!, @@ -4978,8 +5723,10 @@ class NetworkPath { /// Geographical location of the destination MonitoringPoint. /// + /// ; + /// /// Output only. - core.String? destinationGeoLocation; + GeoLocation? destinationGeoLocation; /// The display name of the network path. /// @@ -5084,7 +5831,13 @@ class NetworkPath { : this( createTime: json_['createTime'] as core.String?, destination: json_['destination'] as core.String?, - destinationGeoLocation: json_['destinationGeoLocation'] as core.String?, + destinationGeoLocation: + json_.containsKey('destinationGeoLocation') + ? GeoLocation.fromJson( + json_['destinationGeoLocation'] + as core.Map, + ) + : null, displayName: json_['displayName'] as core.String?, dualEnded: json_['dualEnded'] as core.bool?, monitoringEnabled: json_['monitoringEnabled'] as core.bool?, @@ -5471,7 +6224,6 @@ class ProviderTag { /// - "RESOURCE_TYPE_UNSPECIFIED" : The default value. This value is used if /// the status is omitted. /// - "NETWORK_PATH" : Network path. - /// - "PATH_TEMPLATE" : Path template. /// - "WEB_PATH" : Web path. /// - "MONITORING_POLICY" : Monitoring policy. /// - "MONITORING_POINT" : Monitoring point. @@ -5587,6 +6339,48 @@ class ProxyConnectionInfo { }; } +/// Response for the `QueryVpcFlowLogsConfigs` method. +class QueryOrgVpcFlowLogsConfigsResponse { + /// Page token to fetch the next set of configurations. + core.String? nextPageToken; + + /// Locations that could not be reached (when querying all locations with + /// `-`). + core.List? unreachable; + + /// List of VPC Flow Log configurations. + core.List? vpcFlowLogsConfigs; + + QueryOrgVpcFlowLogsConfigsResponse({ + this.nextPageToken, + this.unreachable, + this.vpcFlowLogsConfigs, + }); + + QueryOrgVpcFlowLogsConfigsResponse.fromJson(core.Map json_) + : this( + nextPageToken: json_['nextPageToken'] as core.String?, + unreachable: + (json_['unreachable'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + vpcFlowLogsConfigs: + (json_['vpcFlowLogsConfigs'] as core.List?) + ?.map( + (value) => VpcFlowLogsConfig.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + if (unreachable != null) 'unreachable': unreachable!, + if (vpcFlowLogsConfigs != null) 'vpcFlowLogsConfigs': vpcFlowLogsConfigs!, + }; +} + /// Results of the configuration analysis from the last run of the test. class ReachabilityDetails { /// The details of a failure or a cancellation of reachability analysis. @@ -6103,6 +6897,49 @@ class SetIamPolicyRequest { }; } +/// Response for the `ShowEffectiveFlowLogsConfigs` method. +class ShowEffectiveFlowLogsConfigsResponse { + /// List of Effective Vpc Flow Logs configurations. + core.List? effectiveFlowLogsConfigs; + + /// Page token to fetch the next set of configurations. + core.String? nextPageToken; + + /// Locations that could not be reached (when querying all locations with + /// `-`). + core.List? unreachable; + + ShowEffectiveFlowLogsConfigsResponse({ + this.effectiveFlowLogsConfigs, + this.nextPageToken, + this.unreachable, + }); + + ShowEffectiveFlowLogsConfigsResponse.fromJson(core.Map json_) + : this( + effectiveFlowLogsConfigs: + (json_['effectiveFlowLogsConfigs'] as core.List?) + ?.map( + (value) => EffectiveVpcFlowLogsConfig.fromJson( + value as core.Map, + ), + ) + .toList(), + nextPageToken: json_['nextPageToken'] as core.String?, + unreachable: + (json_['unreachable'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (effectiveFlowLogsConfigs != null) + 'effectiveFlowLogsConfigs': effectiveFlowLogsConfigs!, + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + if (unreachable != null) 'unreachable': unreachable!, + }; +} + /// Probing results for a single edge device. class SingleEdgeResponse { /// The EdgeLocation from which a packet, destined to the internet, will @@ -6251,9 +7088,15 @@ class Step { /// Display information of a Google service GoogleServiceInfo? googleService; + /// Display information of a hybrid subnet. + HybridSubnetInfo? hybridSubnet; + /// Display information of a Compute Engine instance. InstanceInfo? instance; + /// Display information of an interconnect attachment. + InterconnectAttachmentInfo? interconnectAttachment; + /// Display information of the load balancers. /// /// Deprecated in favor of the `load_balancer_backend_info` field, not used in @@ -6355,10 +7198,14 @@ class Step { /// Compute Engine internal load balancer. /// - "ARRIVE_AT_EXTERNAL_LOAD_BALANCER" : Forwarding state: arriving at a /// Compute Engine external load balancer. + /// - "ARRIVE_AT_HYBRID_SUBNET" : Forwarding state: arriving at a hybrid + /// subnet. Appropriate routing configuration will be determined here. /// - "ARRIVE_AT_VPN_GATEWAY" : Forwarding state: arriving at a Cloud VPN /// gateway. /// - "ARRIVE_AT_VPN_TUNNEL" : Forwarding state: arriving at a Cloud VPN /// tunnel. + /// - "ARRIVE_AT_INTERCONNECT_ATTACHMENT" : Forwarding state: arriving at an + /// interconnect attachment. /// - "ARRIVE_AT_VPC_CONNECTOR" : Forwarding state: arriving at a VPC /// connector. /// - "DIRECT_VPC_EGRESS_CONNECTION" : Forwarding state: for packets @@ -6367,7 +7214,8 @@ class Step { /// - "SERVERLESS_EXTERNAL_CONNECTION" : Forwarding state: for packets /// originating from a serverless endpoint forwarded through public (external) /// connectivity. - /// - "NAT" : Transition state: packet header translated. + /// - "NAT" : Transition state: packet header translated. The `nat` field is + /// populated with the translation information. /// - "PROXY_CONNECTION" : Transition state: original connection is terminated /// and a new proxied connection is initiated. /// - "DELIVER" : Final state: packet could be delivered. @@ -6410,7 +7258,9 @@ class Step { this.forwardingRule, this.gkeMaster, this.googleService, + this.hybridSubnet, this.instance, + this.interconnectAttachment, this.loadBalancer, this.loadBalancerBackendInfo, this.nat, @@ -6522,12 +7372,25 @@ class Step { json_['googleService'] as core.Map, ) : null, + hybridSubnet: + json_.containsKey('hybridSubnet') + ? HybridSubnetInfo.fromJson( + json_['hybridSubnet'] as core.Map, + ) + : null, instance: json_.containsKey('instance') ? InstanceInfo.fromJson( json_['instance'] as core.Map, ) : null, + interconnectAttachment: + json_.containsKey('interconnectAttachment') + ? InterconnectAttachmentInfo.fromJson( + json_['interconnectAttachment'] + as core.Map, + ) + : null, loadBalancer: json_.containsKey('loadBalancer') ? LoadBalancerInfo.fromJson( @@ -6637,7 +7500,10 @@ class Step { if (forwardingRule != null) 'forwardingRule': forwardingRule!, if (gkeMaster != null) 'gkeMaster': gkeMaster!, if (googleService != null) 'googleService': googleService!, + if (hybridSubnet != null) 'hybridSubnet': hybridSubnet!, if (instance != null) 'instance': instance!, + if (interconnectAttachment != null) + 'interconnectAttachment': interconnectAttachment!, if (loadBalancer != null) 'loadBalancer': loadBalancer!, if (loadBalancerBackendInfo != null) 'loadBalancerBackendInfo': loadBalancerBackendInfo!, @@ -6793,6 +7659,22 @@ class VpcFlowLogsConfig { /// Output only. core.String? createTime; + /// Determines whether to include cross project annotations in the logs. + /// + /// This field is available only for organization configurations. If not + /// specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. + /// + /// Optional. + /// Possible string values are: + /// - "CROSS_PROJECT_METADATA_UNSPECIFIED" : If not specified, the default is + /// CROSS_PROJECT_METADATA_ENABLED. + /// - "CROSS_PROJECT_METADATA_ENABLED" : When CROSS_PROJECT_METADATA_ENABLED, + /// metadata from other projects will be included in the logs. + /// - "CROSS_PROJECT_METADATA_DISABLED" : When + /// CROSS_PROJECT_METADATA_DISABLED, metadata from other projects will not be + /// included in the logs. + core.String? crossProjectMetadata; + /// The user-supplied description of the VPC Flow Logs configuration. /// /// Maximum of 512 characters. @@ -6856,6 +7738,12 @@ class VpcFlowLogsConfig { /// `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` core.String? name; + /// Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments + /// within the network. + /// + /// Format: projects/{project_id}/global/networks/{name} + core.String? network; + /// The state of the VPC Flow Log configuration. /// /// Default value is ENABLED. When creating a new configuration, it must be @@ -6869,6 +7757,11 @@ class VpcFlowLogsConfig { /// - "DISABLED" : When DISABLED, this configuration will not generate logs. core.String? state; + /// Traffic will be logged from VMs within the subnetwork. + /// + /// Format: projects/{project_id}/regions/{region}/subnetworks/{name} + core.String? subnet; + /// Describes the state of the configured target resource for diagnostic /// purposes. /// @@ -6893,6 +7786,7 @@ class VpcFlowLogsConfig { VpcFlowLogsConfig({ this.aggregationInterval, this.createTime, + this.crossProjectMetadata, this.description, this.filterExpr, this.flowSampling, @@ -6901,7 +7795,9 @@ class VpcFlowLogsConfig { this.metadata, this.metadataFields, this.name, + this.network, this.state, + this.subnet, this.targetResourceState, this.updateTime, this.vpnTunnel, @@ -6911,6 +7807,7 @@ class VpcFlowLogsConfig { : this( aggregationInterval: json_['aggregationInterval'] as core.String?, createTime: json_['createTime'] as core.String?, + crossProjectMetadata: json_['crossProjectMetadata'] as core.String?, description: json_['description'] as core.String?, filterExpr: json_['filterExpr'] as core.String?, flowSampling: (json_['flowSampling'] as core.num?)?.toDouble(), @@ -6924,7 +7821,9 @@ class VpcFlowLogsConfig { ?.map((value) => value as core.String) .toList(), name: json_['name'] as core.String?, + network: json_['network'] as core.String?, state: json_['state'] as core.String?, + subnet: json_['subnet'] as core.String?, targetResourceState: json_['targetResourceState'] as core.String?, updateTime: json_['updateTime'] as core.String?, vpnTunnel: json_['vpnTunnel'] as core.String?, @@ -6934,6 +7833,8 @@ class VpcFlowLogsConfig { if (aggregationInterval != null) 'aggregationInterval': aggregationInterval!, if (createTime != null) 'createTime': createTime!, + if (crossProjectMetadata != null) + 'crossProjectMetadata': crossProjectMetadata!, if (description != null) 'description': description!, if (filterExpr != null) 'filterExpr': filterExpr!, if (flowSampling != null) 'flowSampling': flowSampling!, @@ -6943,7 +7844,9 @@ class VpcFlowLogsConfig { if (metadata != null) 'metadata': metadata!, if (metadataFields != null) 'metadataFields': metadataFields!, if (name != null) 'name': name!, + if (network != null) 'network': network!, if (state != null) 'state': state!, + if (subnet != null) 'subnet': subnet!, if (targetResourceState != null) 'targetResourceState': targetResourceState!, if (updateTime != null) 'updateTime': updateTime!, diff --git a/generated/googleapis/lib/networksecurity/v1.dart b/generated/googleapis/lib/networksecurity/v1.dart index 45c2be42a..3d99c97a4 100644 --- a/generated/googleapis/lib/networksecurity/v1.dart +++ b/generated/googleapis/lib/networksecurity/v1.dart @@ -789,7 +789,7 @@ class OrganizationsLocationsFirewallEndpointsResource { /// /// Request parameters: /// - /// [name] - Immutable. Identifier. name of resource + /// [name] - Immutable. Identifier. Name of resource. /// Value must have pattern /// `^organizations/\[^/\]+/locations/\[^/\]+/firewallEndpoints/\[^/\]+$`. /// @@ -1610,9 +1610,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -8324,7 +8324,7 @@ class AuthzPolicyAuthzRuleFromRequestSource { /// A list of IP addresses or IP address ranges to match against the source IP /// address of the request. /// - /// Limited to 5 ip_blocks. + /// Limited to 10 ip_blocks per Authorization Policy /// /// Optional. core.List? ipBlocks; @@ -8336,7 +8336,11 @@ class AuthzPolicyAuthzRuleFromRequestSource { /// been successfully validated by mTLS. Each identity is a string whose value /// is matched against a list of URI SANs, DNS Name SANs, or the common name /// in the client's certificate. A match happens when any principal matches - /// with the rule. Limited to 5 principals. + /// with the rule. Limited to 50 principals per Authorization Policy for + /// Regional Internal Application Load Balancer, Regional External Application + /// Load Balancer, Cross-region Internal Application Load Balancer, and Cloud + /// Service Mesh. Limited to 25 principals per Authorization Policy for Global + /// External Application Load Balancer. /// /// Optional. core.List? principals; @@ -8344,7 +8348,7 @@ class AuthzPolicyAuthzRuleFromRequestSource { /// A list of resources to match against the resource of the source VM of a /// request. /// - /// Limited to 5 resources. + /// Limited to 10 resources per Authorization Policy. /// /// Optional. core.List? resources; @@ -8468,13 +8472,16 @@ class AuthzPolicyAuthzRulePrincipal { /// - "PRINCIPAL_SELECTOR_UNSPECIFIED" : Unspecified principal selector. It /// will be treated as CLIENT_CERT_URI_SAN by default. /// - "CLIENT_CERT_URI_SAN" : The principal rule is matched against a list of - /// URI SANs in the validated client’s certificate. A match happens when there + /// URI SANs in the validated client's certificate. A match happens when there /// is any exact URI SAN value match. This is the default principal selector. /// - "CLIENT_CERT_DNS_NAME_SAN" : The principal rule is matched against a - /// list of DNS Name SANs in the validated client’s certificate. A match - /// happens when there is any exact DNS Name SAN value match. + /// list of DNS Name SANs in the validated client's certificate. A match + /// happens when there is any exact DNS Name SAN value match. This is only + /// applicable for Application Load Balancers except for classic Global + /// External Application load balancer. CLIENT_CERT_DNS_NAME_SAN is not + /// supported for INTERNAL_SELF_MANAGED load balancing scheme. /// - "CLIENT_CERT_COMMON_NAME" : The principal rule is matched against the - /// common name in the client’s certificate. Authorization against multiple + /// common name in the client's certificate. Authorization against multiple /// common names in the client certificate is not supported. Requests with /// multiple common names in the client certificate will be rejected if /// CLIENT_CERT_COMMON_NAME is set as the principal selector. A match happens @@ -8553,7 +8560,7 @@ class AuthzPolicyAuthzRuleRequestResourceTagValueIdSet { /// manager tags value associated with the source VM of a request. /// /// The match follows AND semantics which means all the ids must match. - /// Limited to 5 matches. + /// Limited to 5 ids in the Tag value id set. /// /// Required. core.List? ids; @@ -8693,7 +8700,7 @@ class AuthzPolicyAuthzRuleToRequestOperation { /// /// The match can be one of exact, prefix, suffix, or contains (substring /// match). Matches are always case sensitive unless the ignoreCase is set. - /// Limited to 5 matches. + /// Limited to 10 hosts per Authorization Policy. /// /// Optional. core.List? hosts; @@ -8702,6 +8709,7 @@ class AuthzPolicyAuthzRuleToRequestOperation { /// /// Each entry must be a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, /// DELETE, OPTIONS). It only allows exact match and is always case sensitive. + /// Limited to 10 methods per Authorization Policy. /// /// Optional. core.List? methods; @@ -8710,9 +8718,9 @@ class AuthzPolicyAuthzRuleToRequestOperation { /// /// The match can be one of exact, prefix, suffix, or contains (substring /// match). Matches are always case sensitive unless the ignoreCase is set. - /// Limited to 5 matches. Note that this path match includes the query - /// parameters. For gRPC services, this should be a fully-qualified name of - /// the form /package.service/method. + /// Limited to 10 paths per Authorization Policy. Note that this path match + /// includes the query parameters. For gRPC services, this should be a + /// fully-qualified name of the form /package.service/method. /// /// Optional. core.List? paths; @@ -8769,7 +8777,7 @@ class AuthzPolicyAuthzRuleToRequestOperationHeaderSet { /// The match can be one of exact, prefix, suffix, or contains (substring /// match). The match follows AND semantics which means all the headers must /// match. Matches are always case sensitive unless the ignoreCase is set. - /// Limited to 5 matches. + /// Limited to 10 headers per Authorization Policy. /// /// Required. core.List? headers; @@ -8884,8 +8892,8 @@ class AuthzPolicyTarget { /// All gateways and forwarding rules referenced by this policy and extensions /// must share the same load balancing scheme. /// - /// Supported values: `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more - /// information, refer to + /// Supported values: `INTERNAL_MANAGED`, `INTERNAL_SELF_MANAGED`, and + /// `EXTERNAL_MANAGED`. For more information, refer to /// [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service). /// /// Required. @@ -8902,6 +8910,9 @@ class AuthzPolicyTarget { /// A list of references to the Forwarding Rules on which this policy will be /// applied. /// + /// For policies created for Cloudrun, this field will reference the Cloud Run + /// services. + /// /// Required. core.List? resources; @@ -9365,7 +9376,7 @@ typedef Empty = $Empty; /// information. typedef Expr = $Expr; -/// Message describing Endpoint object +/// Message describing Endpoint object. class FirewallEndpoint { /// List of networks that are associated with this endpoint in the local zone. /// @@ -9392,7 +9403,7 @@ class FirewallEndpoint { /// Required. core.String? billingProjectId; - /// Create time stamp + /// Create time stamp. /// /// Output only. core.String? createTime; @@ -9404,6 +9415,11 @@ class FirewallEndpoint { /// Optional. core.String? description; + /// Settings for the endpoint. + /// + /// Optional. + FirewallEndpointEndpointSettings? endpointSettings; + /// Labels as key value pairs /// /// Optional. @@ -9411,7 +9427,7 @@ class FirewallEndpoint { /// Identifier. /// - /// name of resource + /// Name of resource. /// /// Immutable. core.String? name; @@ -9454,6 +9470,7 @@ class FirewallEndpoint { this.billingProjectId, this.createTime, this.description, + this.endpointSettings, this.labels, this.name, this.reconciling, @@ -9480,6 +9497,13 @@ class FirewallEndpoint { billingProjectId: json_['billingProjectId'] as core.String?, createTime: json_['createTime'] as core.String?, description: json_['description'] as core.String?, + endpointSettings: + json_.containsKey('endpointSettings') + ? FirewallEndpointEndpointSettings.fromJson( + json_['endpointSettings'] + as core.Map, + ) + : null, labels: (json_['labels'] as core.Map?)?.map( (key, value) => core.MapEntry(key, value as core.String), ), @@ -9497,6 +9521,7 @@ class FirewallEndpoint { if (billingProjectId != null) 'billingProjectId': billingProjectId!, if (createTime != null) 'createTime': createTime!, if (description != null) 'description': description!, + if (endpointSettings != null) 'endpointSettings': endpointSettings!, if (labels != null) 'labels': labels!, if (name != null) 'name': name!, if (reconciling != null) 'reconciling': reconciling!, @@ -9647,6 +9672,9 @@ class FirewallEndpointAssociationReference { }; } +/// Settings for the endpoint. +typedef FirewallEndpointEndpointSettings = $Empty; + /// The GatewaySecurityPolicy resource contains a collection of /// GatewaySecurityPolicyRules and associated metadata. class GatewaySecurityPolicy { diff --git a/generated/googleapis/lib/observability/v1.dart b/generated/googleapis/lib/observability/v1.dart index e1237c7a1..63569c599 100644 --- a/generated/googleapis/lib/observability/v1.dart +++ b/generated/googleapis/lib/observability/v1.dart @@ -22,6 +22,7 @@ /// - [ProjectsLocationsResource] /// - [ProjectsLocationsOperationsResource] /// - [ProjectsLocationsScopesResource] +/// - [ProjectsLocationsTraceScopesResource] library; import 'dart:async' as async; @@ -75,6 +76,8 @@ class ProjectsLocationsResource { ProjectsLocationsOperationsResource(_requester); ProjectsLocationsScopesResource get scopes => ProjectsLocationsScopesResource(_requester); + ProjectsLocationsTraceScopesResource get traceScopes => + ProjectsLocationsTraceScopesResource(_requester); ProjectsLocationsResource(commons.ApiRequester client) : _requester = client; @@ -117,9 +120,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -446,6 +449,238 @@ class ProjectsLocationsScopesResource { } } +class ProjectsLocationsTraceScopesResource { + final commons.ApiRequester _requester; + + ProjectsLocationsTraceScopesResource(commons.ApiRequester client) + : _requester = client; + + /// Create a new TraceScope. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - Required. The full resource name of the location where the + /// trace scope should be created + /// projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\] For example: + /// projects/my-project/locations/global + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [traceScopeId] - Required. A client-assigned identifier for the trace + /// scope. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [TraceScope]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future create( + TraceScope request, + core.String parent, { + core.String? traceScopeId, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (traceScopeId != null) 'traceScopeId': [traceScopeId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/traceScopes'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return TraceScope.fromJson( + response_ as core.Map, + ); + } + + /// Delete a TraceScope. + /// + /// Request parameters: + /// + /// [name] - Required. The full resource name of the trace scope to delete: + /// projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]/traceScopes/\[TRACE_SCOPE_ID\] + /// For example: + /// projects/my-project/locations/global/traceScopes/my-trace-scope + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/traceScopes/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Empty]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future delete(core.String name, {core.String? $fields}) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'DELETE', + queryParams: queryParams_, + ); + return Empty.fromJson(response_ as core.Map); + } + + /// Get TraceScope resource. + /// + /// Request parameters: + /// + /// [name] - Required. The resource name of the trace scope: + /// projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\]/traceScopes/\[TRACE_SCOPE_ID\] + /// For example: + /// projects/my-project/locations/global/traceScopes/my-trace-scope + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/traceScopes/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [TraceScope]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get(core.String name, {core.String? $fields}) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return TraceScope.fromJson( + response_ as core.Map, + ); + } + + /// List TraceScopes of a project in a particular location. + /// + /// Request parameters: + /// + /// [parent] - Required. The full resource name of the location to look for + /// trace scopes: projects/\[PROJECT_ID\]/locations/\[LOCATION_ID\] For + /// example: projects/my-project/locations/global + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [pageSize] - Optional. The maximum number of results to return from this + /// request. Non-positive values are ignored. The presence of + /// `next_page_token` in the response indicates that more results might be + /// available. + /// + /// [pageToken] - Optional. If present, then retrieve the next batch of + /// results from the preceding call to this method. `page_token` must be the + /// value of `next_page_token` from the previous response. The values of other + /// method parameters should be identical to those in the previous call. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListTraceScopesResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String parent, { + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/traceScopes'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return ListTraceScopesResponse.fromJson( + response_ as core.Map, + ); + } + + /// Update a TraceScope. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Identifier. The resource name of the trace scope. For example: + /// projects/my-project/locations/global/traceScopes/my-trace-scope + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/traceScopes/\[^/\]+$`. + /// + /// [updateMask] - Optional. The list of fields to update. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [TraceScope]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future patch( + TraceScope request, + core.String name, { + core.String? updateMask, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (updateMask != null) 'updateMask': [updateMask], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'PATCH', + body: body_, + queryParams: queryParams_, + ); + return TraceScope.fromJson( + response_ as core.Map, + ); + } +} + /// The request message for Operations.CancelOperation. typedef CancelOperationRequest = $Empty; @@ -515,6 +750,43 @@ class ListOperationsResponse { }; } +/// Response for listing TraceScopes. +class ListTraceScopesResponse { + /// If there might be more results than appear in this response, then + /// `next_page_token` is included. + /// + /// To get the next set of results, call the same method again using the value + /// of `next_page_token` as `page_token`. + /// + /// Optional. + core.String? nextPageToken; + + /// A list of trace scopes. + /// + /// Optional. + core.List? traceScopes; + + ListTraceScopesResponse({this.nextPageToken, this.traceScopes}); + + ListTraceScopesResponse.fromJson(core.Map json_) + : this( + nextPageToken: json_['nextPageToken'] as core.String?, + traceScopes: + (json_['traceScopes'] as core.List?) + ?.map( + (value) => TraceScope.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + if (traceScopes != null) 'traceScopes': traceScopes!, + }; +} + /// A resource that represents a Google Cloud location. typedef Location = $Location00; @@ -610,6 +882,14 @@ class Scope { /// `_Default`. core.String? name; + /// The resource name of the `TraceScope`. + /// + /// For example: + /// projects/myproject/locations/global/traceScopes/my-trace-scope + /// + /// Required. + core.String? traceScope; + /// Update timestamp. /// /// Note: The Update timestamp for the default scope is initially unset. @@ -617,18 +897,20 @@ class Scope { /// Output only. core.String? updateTime; - Scope({this.logScope, this.name, this.updateTime}); + Scope({this.logScope, this.name, this.traceScope, this.updateTime}); Scope.fromJson(core.Map json_) : this( logScope: json_['logScope'] as core.String?, name: json_['name'] as core.String?, + traceScope: json_['traceScope'] as core.String?, updateTime: json_['updateTime'] as core.String?, ); core.Map toJson() => { if (logScope != null) 'logScope': logScope!, if (name != null) 'name': name!, + if (traceScope != null) 'traceScope': traceScope!, if (updateTime != null) 'updateTime': updateTime!, }; } @@ -641,3 +923,66 @@ class Scope { /// You can find out more about this error model and how to work with it in the /// [API Design Guide](https://cloud.google.com/apis/design/errors). typedef Status = $Status00; + +/// A trace scope is a collection of resources whose traces are queried +/// together. +class TraceScope { + /// The creation timestamp of the trace scope. + /// + /// Output only. + core.String? createTime; + + /// Describes this trace scope. + /// + /// The maximum length of the description is 8000 characters. + /// + /// Optional. + core.String? description; + + /// Identifier. + /// + /// The resource name of the trace scope. For example: + /// projects/my-project/locations/global/traceScopes/my-trace-scope + core.String? name; + + /// Names of the projects that are included in this trace scope. + /// + /// * `projects/[PROJECT_ID]` A trace scope can include a maximum of 20 + /// projects. + /// + /// Required. + core.List? resourceNames; + + /// The last update timestamp of the trace scope. + /// + /// Output only. + core.String? updateTime; + + TraceScope({ + this.createTime, + this.description, + this.name, + this.resourceNames, + this.updateTime, + }); + + TraceScope.fromJson(core.Map json_) + : this( + createTime: json_['createTime'] as core.String?, + description: json_['description'] as core.String?, + name: json_['name'] as core.String?, + resourceNames: + (json_['resourceNames'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + updateTime: json_['updateTime'] as core.String?, + ); + + core.Map toJson() => { + if (createTime != null) 'createTime': createTime!, + if (description != null) 'description': description!, + if (name != null) 'name': name!, + if (resourceNames != null) 'resourceNames': resourceNames!, + if (updateTime != null) 'updateTime': updateTime!, + }; +} diff --git a/generated/googleapis/lib/ondemandscanning/v1.dart b/generated/googleapis/lib/ondemandscanning/v1.dart index 9fc7de246..1afc98d57 100644 --- a/generated/googleapis/lib/ondemandscanning/v1.dart +++ b/generated/googleapis/lib/ondemandscanning/v1.dart @@ -863,6 +863,7 @@ class BuildProvenance { } typedef BuilderConfig = $Shared01; +typedef CISAKnownExploitedVulnerabilities = $CISAKnownExploitedVulnerabilities; /// Common Vulnerability Scoring System. /// @@ -1176,6 +1177,7 @@ class Envelope { } typedef EnvelopeSignature = $EnvelopeSignature; +typedef ExploitPredictionScoringSystem = $ExploitPredictionScoringSystem; typedef File = $File; /// Container message for hashes of byte content of files, used in source @@ -2848,6 +2850,39 @@ class RepoId { typedef ResourceDescriptor = $ResourceDescriptor; +class Risk { + /// CISA maintains the authoritative source of vulnerabilities that have been + /// exploited in the wild. + CISAKnownExploitedVulnerabilities? cisaKev; + + /// The Exploit Prediction Scoring System (EPSS) estimates the likelihood + /// (probability) that a software vulnerability will be exploited in the wild. + ExploitPredictionScoringSystem? epss; + + Risk({this.cisaKev, this.epss}); + + Risk.fromJson(core.Map json_) + : this( + cisaKev: + json_.containsKey('cisaKev') + ? CISAKnownExploitedVulnerabilities.fromJson( + json_['cisaKev'] as core.Map, + ) + : null, + epss: + json_.containsKey('epss') + ? ExploitPredictionScoringSystem.fromJson( + json_['epss'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (cisaKev != null) 'cisaKev': cisaKev!, + if (epss != null) 'epss': epss!, + }; +} + class RunDetails { ProvenanceBuilder? builder; core.List? byproducts; @@ -3702,6 +3737,9 @@ class VulnerabilityOccurrence { /// Output only. core.List? relatedUrls; + /// Risk information about the vulnerability, such as CISA, EPSS, etc. + Risk? risk; + /// The note provider assigned severity of this vulnerability. /// /// Output only. @@ -3735,6 +3773,7 @@ class VulnerabilityOccurrence { this.longDescription, this.packageIssue, this.relatedUrls, + this.risk, this.severity, this.shortDescription, this.type, @@ -3777,6 +3816,12 @@ class VulnerabilityOccurrence { ), ) .toList(), + risk: + json_.containsKey('risk') + ? Risk.fromJson( + json_['risk'] as core.Map, + ) + : null, severity: json_['severity'] as core.String?, shortDescription: json_['shortDescription'] as core.String?, type: json_['type'] as core.String?, @@ -3799,6 +3844,7 @@ class VulnerabilityOccurrence { if (longDescription != null) 'longDescription': longDescription!, if (packageIssue != null) 'packageIssue': packageIssue!, if (relatedUrls != null) 'relatedUrls': relatedUrls!, + if (risk != null) 'risk': risk!, if (severity != null) 'severity': severity!, if (shortDescription != null) 'shortDescription': shortDescription!, if (type != null) 'type': type!, diff --git a/generated/googleapis/lib/oracledatabase/v1.dart b/generated/googleapis/lib/oracledatabase/v1.dart index 60e7e818e..f737b3e61 100644 --- a/generated/googleapis/lib/oracledatabase/v1.dart +++ b/generated/googleapis/lib/oracledatabase/v1.dart @@ -31,12 +31,18 @@ /// - [ProjectsLocationsCloudExadataInfrastructuresDbServersResource] /// - [ProjectsLocationsCloudVmClustersResource] /// - [ProjectsLocationsCloudVmClustersDbNodesResource] +/// - [ProjectsLocationsDatabaseCharacterSetsResource] +/// - [ProjectsLocationsDatabasesResource] +/// - [ProjectsLocationsDbSystemInitialStorageSizesResource] /// - [ProjectsLocationsDbSystemShapesResource] +/// - [ProjectsLocationsDbSystemsResource] +/// - [ProjectsLocationsDbVersionsResource] /// - [ProjectsLocationsEntitlementsResource] /// - [ProjectsLocationsGiVersionsResource] /// - [ProjectsLocationsOdbNetworksResource] /// - [ProjectsLocationsOdbNetworksOdbSubnetsResource] /// - [ProjectsLocationsOperationsResource] +/// - [ProjectsLocationsPluggableDatabasesResource] library; import 'dart:async' as async; @@ -103,8 +109,19 @@ class ProjectsLocationsResource { ProjectsLocationsCloudExadataInfrastructuresResource(_requester); ProjectsLocationsCloudVmClustersResource get cloudVmClusters => ProjectsLocationsCloudVmClustersResource(_requester); + ProjectsLocationsDatabaseCharacterSetsResource get databaseCharacterSets => + ProjectsLocationsDatabaseCharacterSetsResource(_requester); + ProjectsLocationsDatabasesResource get databases => + ProjectsLocationsDatabasesResource(_requester); + ProjectsLocationsDbSystemInitialStorageSizesResource + get dbSystemInitialStorageSizes => + ProjectsLocationsDbSystemInitialStorageSizesResource(_requester); ProjectsLocationsDbSystemShapesResource get dbSystemShapes => ProjectsLocationsDbSystemShapesResource(_requester); + ProjectsLocationsDbSystemsResource get dbSystems => + ProjectsLocationsDbSystemsResource(_requester); + ProjectsLocationsDbVersionsResource get dbVersions => + ProjectsLocationsDbVersionsResource(_requester); ProjectsLocationsEntitlementsResource get entitlements => ProjectsLocationsEntitlementsResource(_requester); ProjectsLocationsGiVersionsResource get giVersions => @@ -113,6 +130,8 @@ class ProjectsLocationsResource { ProjectsLocationsOdbNetworksResource(_requester); ProjectsLocationsOperationsResource get operations => ProjectsLocationsOperationsResource(_requester); + ProjectsLocationsPluggableDatabasesResource get pluggableDatabases => + ProjectsLocationsPluggableDatabasesResource(_requester); ProjectsLocationsResource(commons.ApiRequester client) : _requester = client; @@ -155,9 +174,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -1050,6 +1069,12 @@ class ProjectsLocationsCloudExadataInfrastructuresResource { /// the following format: projects/{project}/locations/{location}. /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// + /// [filter] - Optional. An expression for filtering the results of the + /// request. + /// + /// [orderBy] - Optional. An expression for ordering the results of the + /// request. + /// /// [pageSize] - Optional. The maximum number of items to return. If /// unspecified, at most 50 Exadata infrastructures will be returned. The /// maximum value is 1000; values above 1000 will be coerced to 1000. @@ -1069,11 +1094,15 @@ class ProjectsLocationsCloudExadataInfrastructuresResource { /// this method will complete with the same error. async.Future list( core.String parent, { + core.String? filter, + core.String? orderBy, core.int? pageSize, core.String? pageToken, core.String? $fields, }) async { final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], if (pageSize != null) 'pageSize': ['${pageSize}'], if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], @@ -1427,94 +1456,207 @@ class ProjectsLocationsCloudVmClustersDbNodesResource { } } -class ProjectsLocationsDbSystemShapesResource { +class ProjectsLocationsDatabaseCharacterSetsResource { final commons.ApiRequester _requester; - ProjectsLocationsDbSystemShapesResource(commons.ApiRequester client) + ProjectsLocationsDatabaseCharacterSetsResource(commons.ApiRequester client) : _requester = client; - /// Lists the database system shapes available for the project and location. + /// List DatabaseCharacterSets for the given project and location. /// /// Request parameters: /// - /// [parent] - Required. The parent value for Database System Shapes in the + /// [parent] - Required. The parent value for DatabaseCharacterSets in the /// following format: projects/{project}/locations/{location}. /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// - /// [pageSize] - Optional. The maximum number of items to return. If - /// unspecified, at most 50 database system shapes will be returned. The - /// maximum value is 1000; values above 1000 will be coerced to 1000. + /// [filter] - Optional. An expression for filtering the results of the + /// request. Only the **character_set_type** field is supported in the + /// following format: `character_set_type="{characterSetType}"`. Accepted + /// values include `DATABASE` and `NATIONAL`. /// - /// [pageToken] - Optional. A token identifying a page of results the server - /// should return. + /// [pageSize] - Optional. The maximum number of DatabaseCharacterSets to + /// return. The service may return fewer than this value. If unspecified, at + /// most 50 DatabaseCharacterSets will be returned. The maximum value is 1000; + /// values above 1000 will be coerced to 1000. + /// + /// [pageToken] - Optional. A page token, received from a previous + /// `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent + /// page. When paginating, all other parameters provided to + /// `ListDatabaseCharacterSets` must match the call that provided the page + /// token. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [ListDbSystemShapesResponse]. + /// Completes with a [ListDatabaseCharacterSetsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( + async.Future list( core.String parent, { + core.String? filter, core.int? pageSize, core.String? pageToken, core.String? $fields, }) async { final queryParams_ = >{ + if (filter != null) 'filter': [filter], if (pageSize != null) 'pageSize': ['${pageSize}'], if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/dbSystemShapes'; + final url_ = + 'v1/' + core.Uri.encodeFull('$parent') + '/databaseCharacterSets'; final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return ListDbSystemShapesResponse.fromJson( + return ListDatabaseCharacterSetsResponse.fromJson( response_ as core.Map, ); } } -class ProjectsLocationsEntitlementsResource { +class ProjectsLocationsDatabasesResource { final commons.ApiRequester _requester; - ProjectsLocationsEntitlementsResource(commons.ApiRequester client) + ProjectsLocationsDatabasesResource(commons.ApiRequester client) : _requester = client; - /// Lists the entitlements in a given project. + /// Gets details of a single Database. /// /// Request parameters: /// - /// [parent] - Required. The parent value for the entitlement in the following - /// format: projects/{project}/locations/{location}. + /// [name] - Required. The name of the Database resource in the following + /// format: projects/{project}/locations/{region}/databases/{database} + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/databases/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Database]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get(core.String name, {core.String? $fields}) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return Database.fromJson(response_ as core.Map); + } + + /// Lists all the Databases for the given project, location and DbSystem. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent resource name in the following format: + /// projects/{project}/locations/{region} + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [filter] - Optional. An expression for filtering the results of the + /// request. list for container databases is supported only with a valid + /// dbSystem (full resource name) filter in this format: + /// `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"` + /// + /// [pageSize] - Optional. The maximum number of items to return. If + /// unspecified, a maximum of 50 System Versions will be returned. The maximum + /// value is 1000; values above 1000 will be reset to 1000. + /// + /// [pageToken] - Optional. A token identifying the requested page of results + /// to return. All fields except the filter should remain the same as in the + /// request that provided this page token. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListDatabasesResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String parent, { + core.String? filter, + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/databases'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return ListDatabasesResponse.fromJson( + response_ as core.Map, + ); + } +} + +class ProjectsLocationsDbSystemInitialStorageSizesResource { + final commons.ApiRequester _requester; + + ProjectsLocationsDbSystemInitialStorageSizesResource( + commons.ApiRequester client, + ) : _requester = client; + + /// Lists all the DbSystemInitialStorageSizes for the given project and + /// location. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent value for the DbSystemInitialStorageSize + /// resource with the format: projects/{project}/locations/{location} /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// /// [pageSize] - Optional. The maximum number of items to return. If - /// unspecified, a maximum of 50 entitlements will be returned. The maximum - /// value is 1000. + /// unspecified, a maximum of 50 System Versions will be returned. The maximum + /// value is 1000; values above 1000 will be reset to 1000. /// - /// [pageToken] - Optional. A token identifying a page of results the server - /// should return. + /// [pageToken] - Optional. A token identifying the requested page of results + /// to return. All fields except the filter should remain the same as in the + /// request that provided this page token. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [ListEntitlementsResponse]. + /// Completes with a [ListDbSystemInitialStorageSizesResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( + async.Future list( core.String parent, { core.int? pageSize, core.String? pageToken, @@ -1526,42 +1668,41 @@ class ProjectsLocationsEntitlementsResource { if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/entitlements'; + final url_ = + 'v1/' + core.Uri.encodeFull('$parent') + '/dbSystemInitialStorageSizes'; final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return ListEntitlementsResponse.fromJson( + return ListDbSystemInitialStorageSizesResponse.fromJson( response_ as core.Map, ); } } -class ProjectsLocationsGiVersionsResource { +class ProjectsLocationsDbSystemShapesResource { final commons.ApiRequester _requester; - ProjectsLocationsGiVersionsResource(commons.ApiRequester client) + ProjectsLocationsDbSystemShapesResource(commons.ApiRequester client) : _requester = client; - /// Lists all the valid Oracle Grid Infrastructure (GI) versions for the given - /// project and location. + /// Lists the database system shapes available for the project and location. /// /// Request parameters: /// - /// [parent] - Required. The parent value for Grid Infrastructure Version in - /// the following format: Format: projects/{project}/locations/{location}. + /// [parent] - Required. The parent value for Database System Shapes in the + /// following format: projects/{project}/locations/{location}. /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// /// [filter] - Optional. An expression for filtering the results of the - /// request. Only the shape and gi_version fields are supported in this - /// format: `shape="{shape}"`. + /// request. Only the gcp_oracle_zone_id field is supported in this format: + /// `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`. /// /// [pageSize] - Optional. The maximum number of items to return. If - /// unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions will - /// be returned. The maximum value is 1000; values above 1000 will be reset to - /// 1000. + /// unspecified, at most 50 database system shapes will be returned. The + /// maximum value is 1000; values above 1000 will be coerced to 1000. /// /// [pageToken] - Optional. A token identifying a page of results the server /// should return. @@ -1569,14 +1710,14 @@ class ProjectsLocationsGiVersionsResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [ListGiVersionsResponse]. + /// Completes with a [ListDbSystemShapesResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( + async.Future list( core.String parent, { core.String? filter, core.int? pageSize, @@ -1590,50 +1731,51 @@ class ProjectsLocationsGiVersionsResource { if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/giVersions'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/dbSystemShapes'; final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return ListGiVersionsResponse.fromJson( + return ListDbSystemShapesResponse.fromJson( response_ as core.Map, ); } } -class ProjectsLocationsOdbNetworksResource { +class ProjectsLocationsDbSystemsResource { final commons.ApiRequester _requester; - ProjectsLocationsOdbNetworksOdbSubnetsResource get odbSubnets => - ProjectsLocationsOdbNetworksOdbSubnetsResource(_requester); - - ProjectsLocationsOdbNetworksResource(commons.ApiRequester client) + ProjectsLocationsDbSystemsResource(commons.ApiRequester client) : _requester = client; - /// Creates a new ODB Network in a given project and location. + /// Creates a new DbSystem in a given project and location. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [parent] - Required. The parent value for the OdbNetwork in the following + /// [parent] - Required. The value for parent of the DbSystem in the following /// format: projects/{project}/locations/{location}. /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// - /// [odbNetworkId] - Required. The ID of the OdbNetwork to create. This value - /// is restricted to (^\[a-z\](\[a-z0-9-\]{0,61}\[a-z0-9\])?$) and must be a + /// [dbSystemId] - Required. The ID of the DbSystem to create. This value is + /// restricted to (^\[a-z\](\[a-z0-9-\]{0,61}\[a-z0-9\])?$) and must be a /// maximum of 63 characters in length. The value must start with a letter and /// end with a letter or a number. /// - /// [requestId] - Optional. An optional ID to identify the request. This value - /// is used to identify duplicate requests. If you make a request with the - /// same request ID and the original request is still in progress or - /// completed, the server ignores the second request. This prevents clients - /// from accidentally creating duplicate commitments. The request ID must be a - /// valid UUID with the exception that zero UUID is not supported - /// (00000000-0000-0000-0000-000000000000). + /// [requestId] - Optional. An optional request ID to identify requests. + /// Specify a unique request ID so that if you must retry your request, the + /// server will know to ignore the request if it has already been completed. + /// The server will guarantee that for at least 60 minutes since the first + /// request. For example, consider a situation where you make an initial + /// request and the request times out. If you make the request again with the + /// same request ID, the server can check if original operation with the same + /// request ID was received, and if so, will ignore the second request. This + /// prevents clients from accidentally creating duplicate commitments. The + /// request ID must be a valid UUID with the exception that zero UUID is not + /// supported (00000000-0000-0000-0000-000000000000). /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1646,20 +1788,20 @@ class ProjectsLocationsOdbNetworksResource { /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future create( - OdbNetwork request, + DbSystem request, core.String parent, { - core.String? odbNetworkId, + core.String? dbSystemId, core.String? requestId, core.String? $fields, }) async { final body_ = convert.json.encode(request); final queryParams_ = >{ - if (odbNetworkId != null) 'odbNetworkId': [odbNetworkId], + if (dbSystemId != null) 'dbSystemId': [dbSystemId], if (requestId != null) 'requestId': [requestId], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/odbNetworks'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/dbSystems'; final response_ = await _requester.request( url_, @@ -1670,14 +1812,14 @@ class ProjectsLocationsOdbNetworksResource { return Operation.fromJson(response_ as core.Map); } - /// Deletes a single ODB Network. + /// Deletes a single DbSystem. /// /// Request parameters: /// - /// [name] - Required. The name of the resource in the following format: - /// projects/{project}/locations/{location}/odbNetworks/{odb_network}. + /// [name] - Required. The name of the DbSystem in the following format: + /// projects/{project}/locations/{location}/dbSystems/{db_system}. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/odbNetworks/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/dbSystems/\[^/\]+$`. /// /// [requestId] - Optional. An optional ID to identify the request. This value /// is used to identify duplicate requests. If you make a request with the @@ -1717,26 +1859,26 @@ class ProjectsLocationsOdbNetworksResource { return Operation.fromJson(response_ as core.Map); } - /// Gets details of a single ODB Network. + /// Gets details of a single DbSystem. /// /// Request parameters: /// - /// [name] - Required. The name of the OdbNetwork in the following format: - /// projects/{project}/locations/{location}/odbNetworks/{odb_network}. + /// [name] - Required. The name of the DbSystem in the following format: + /// projects/{project}/locations/{location}/dbSystems/{db_system}. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/odbNetworks/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/dbSystems/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [OdbNetwork]. + /// Completes with a [DbSystem]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get(core.String name, {core.String? $fields}) async { + async.Future get(core.String name, {core.String? $fields}) async { final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; @@ -1748,16 +1890,14 @@ class ProjectsLocationsOdbNetworksResource { 'GET', queryParams: queryParams_, ); - return OdbNetwork.fromJson( - response_ as core.Map, - ); + return DbSystem.fromJson(response_ as core.Map); } - /// Lists the ODB Networks in a given project and location. + /// Lists all the DbSystems for the given project and location. /// /// Request parameters: /// - /// [parent] - Required. The parent value for the ODB Network in the following + /// [parent] - Required. The parent value for DbSystems in the following /// format: projects/{project}/locations/{location}. /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// @@ -1768,8 +1908,8 @@ class ProjectsLocationsOdbNetworksResource { /// request. /// /// [pageSize] - Optional. The maximum number of items to return. If - /// unspecified, at most 50 ODB Networks will be returned. The maximum value - /// is 1000; values above 1000 will be coerced to 1000. + /// unspecified, at most 50 DbSystems will be returned. The maximum value is + /// 1000; values above 1000 will be coerced to 1000. /// /// [pageToken] - Optional. A token identifying a page of results the server /// should return. @@ -1777,14 +1917,14 @@ class ProjectsLocationsOdbNetworksResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [ListOdbNetworksResponse]. + /// Completes with a [ListDbSystemsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( + async.Future list( core.String parent, { core.String? filter, core.String? orderBy, @@ -1800,183 +1940,163 @@ class ProjectsLocationsOdbNetworksResource { if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/odbNetworks'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/dbSystems'; final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return ListOdbNetworksResponse.fromJson( + return ListDbSystemsResponse.fromJson( response_ as core.Map, ); } } -class ProjectsLocationsOdbNetworksOdbSubnetsResource { +class ProjectsLocationsDbVersionsResource { final commons.ApiRequester _requester; - ProjectsLocationsOdbNetworksOdbSubnetsResource(commons.ApiRequester client) + ProjectsLocationsDbVersionsResource(commons.ApiRequester client) : _requester = client; - /// Creates a new ODB Subnet in a given ODB Network. - /// - /// [request] - The metadata request object. + /// List DbVersions for the given project and location. /// /// Request parameters: /// - /// [parent] - Required. The parent value for the OdbSubnet in the following - /// format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/odbNetworks/\[^/\]+$`. + /// [parent] - Required. The parent value for the DbVersion resource with the + /// format: projects/{project}/locations/{location} + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// - /// [odbSubnetId] - Required. The ID of the OdbSubnet to create. This value is - /// restricted to (^\[a-z\](\[a-z0-9-\]{0,61}\[a-z0-9\])?$) and must be a - /// maximum of 63 characters in length. The value must start with a letter and - /// end with a letter or a number. + /// [filter] - Optional. Filter expression that matches a subset of the + /// DbVersions to show. The supported filter for dbSystem creation is + /// `db_system_shape = {db_system_shape} AND storage_management = + /// {storage_management}`. If no filter is provided, all DbVersions will be + /// returned. /// - /// [requestId] - Optional. An optional ID to identify the request. This value - /// is used to identify duplicate requests. If you make a request with the - /// same request ID and the original request is still in progress or - /// completed, the server ignores the second request. This prevents clients - /// from accidentally creating duplicate commitments. The request ID must be a - /// valid UUID with the exception that zero UUID is not supported - /// (00000000-0000-0000-0000-000000000000). + /// [pageSize] - Optional. The maximum number of items to return. If + /// unspecified, a maximum of 50 System Versions will be returned. The maximum + /// value is 1000; values above 1000 will be reset to 1000. + /// + /// [pageToken] - Optional. A token identifying the requested page of results + /// to return. All fields except the filter should remain the same as in the + /// request that provided this page token. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [Operation]. + /// Completes with a [ListDbVersionsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future create( - OdbSubnet request, + async.Future list( core.String parent, { - core.String? odbSubnetId, - core.String? requestId, + core.String? filter, + core.int? pageSize, + core.String? pageToken, core.String? $fields, }) async { - final body_ = convert.json.encode(request); final queryParams_ = >{ - if (odbSubnetId != null) 'odbSubnetId': [odbSubnetId], - if (requestId != null) 'requestId': [requestId], + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/odbSubnets'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/dbVersions'; final response_ = await _requester.request( url_, - 'POST', - body: body_, + 'GET', queryParams: queryParams_, ); - return Operation.fromJson(response_ as core.Map); + return ListDbVersionsResponse.fromJson( + response_ as core.Map, + ); } +} - /// Deletes a single ODB Subnet. +class ProjectsLocationsEntitlementsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsEntitlementsResource(commons.ApiRequester client) + : _requester = client; + + /// Lists the entitlements in a given project. /// /// Request parameters: /// - /// [name] - Required. The name of the resource in the following format: - /// projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/odbNetworks/\[^/\]+/odbSubnets/\[^/\]+$`. + /// [parent] - Required. The parent value for the entitlement in the following + /// format: projects/{project}/locations/{location}. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// - /// [requestId] - Optional. An optional ID to identify the request. This value - /// is used to identify duplicate requests. If you make a request with the - /// same request ID and the original request is still in progress or - /// completed, the server ignores the second request. This prevents clients - /// from accidentally creating duplicate commitments. The request ID must be a - /// valid UUID with the exception that zero UUID is not supported - /// (00000000-0000-0000-0000-000000000000). + /// [pageSize] - Optional. The maximum number of items to return. If + /// unspecified, a maximum of 50 entitlements will be returned. The maximum + /// value is 1000. + /// + /// [pageToken] - Optional. A token identifying a page of results the server + /// should return. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [Operation]. + /// Completes with a [ListEntitlementsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete( - core.String name, { - core.String? requestId, + async.Future list( + core.String parent, { + core.int? pageSize, + core.String? pageToken, core.String? $fields, }) async { final queryParams_ = >{ - if (requestId != null) 'requestId': [requestId], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name'); + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/entitlements'; final response_ = await _requester.request( url_, - 'DELETE', + 'GET', queryParams: queryParams_, ); - return Operation.fromJson(response_ as core.Map); + return ListEntitlementsResponse.fromJson( + response_ as core.Map, + ); } +} - /// Gets details of a single ODB Subnet. - /// - /// Request parameters: - /// - /// [name] - Required. The name of the OdbSubnet in the following format: - /// projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/odbNetworks/\[^/\]+/odbSubnets/\[^/\]+$`. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [OdbSubnet]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future get(core.String name, {core.String? $fields}) async { - final queryParams_ = >{ - if ($fields != null) 'fields': [$fields], - }; - - final url_ = 'v1/' + core.Uri.encodeFull('$name'); +class ProjectsLocationsGiVersionsResource { + final commons.ApiRequester _requester; - final response_ = await _requester.request( - url_, - 'GET', - queryParams: queryParams_, - ); - return OdbSubnet.fromJson(response_ as core.Map); - } + ProjectsLocationsGiVersionsResource(commons.ApiRequester client) + : _requester = client; - /// Lists all the ODB Subnets in a given ODB Network. + /// Lists all the valid Oracle Grid Infrastructure (GI) versions for the given + /// project and location. /// /// Request parameters: /// - /// [parent] - Required. The parent value for the OdbSubnet in the following - /// format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/odbNetworks/\[^/\]+$`. + /// [parent] - Required. The parent value for Grid Infrastructure Version in + /// the following format: Format: projects/{project}/locations/{location}. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// /// [filter] - Optional. An expression for filtering the results of the - /// request. - /// - /// [orderBy] - Optional. An expression for ordering the results of the - /// request. + /// request. Only the shape, gcp_oracle_zone and gi_version fields are + /// supported in this format: `shape="{shape}"`. /// /// [pageSize] - Optional. The maximum number of items to return. If - /// unspecified, at most 50 ODB Networks will be returned. The maximum value - /// is 1000; values above 1000 will be coerced to 1000. + /// unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions will + /// be returned. The maximum value is 1000; values above 1000 will be reset to + /// 1000. /// /// [pageToken] - Optional. A token identifying a page of results the server /// should return. @@ -1984,88 +2104,97 @@ class ProjectsLocationsOdbNetworksOdbSubnetsResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [ListOdbSubnetsResponse]. + /// Completes with a [ListGiVersionsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( + async.Future list( core.String parent, { core.String? filter, - core.String? orderBy, core.int? pageSize, core.String? pageToken, core.String? $fields, }) async { final queryParams_ = >{ if (filter != null) 'filter': [filter], - if (orderBy != null) 'orderBy': [orderBy], if (pageSize != null) 'pageSize': ['${pageSize}'], if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/odbSubnets'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/giVersions'; final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return ListOdbSubnetsResponse.fromJson( + return ListGiVersionsResponse.fromJson( response_ as core.Map, ); } } -class ProjectsLocationsOperationsResource { +class ProjectsLocationsOdbNetworksResource { final commons.ApiRequester _requester; - ProjectsLocationsOperationsResource(commons.ApiRequester client) + ProjectsLocationsOdbNetworksOdbSubnetsResource get odbSubnets => + ProjectsLocationsOdbNetworksOdbSubnetsResource(_requester); + + ProjectsLocationsOdbNetworksResource(commons.ApiRequester client) : _requester = client; - /// Starts asynchronous cancellation on a long-running operation. - /// - /// The server makes a best effort to cancel the operation, but success is not - /// guaranteed. If the server doesn't support this method, it returns - /// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation - /// or other methods to check whether the cancellation succeeded or whether - /// the operation completed despite cancellation. On successful cancellation, - /// the operation is not deleted; instead, it becomes an operation with an - /// Operation.error value with a google.rpc.Status.code of `1`, corresponding - /// to `Code.CANCELLED`. + /// Creates a new ODB Network in a given project and location. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [name] - The name of the operation resource to be cancelled. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/operations/\[^/\]+$`. + /// [parent] - Required. The parent value for the OdbNetwork in the following + /// format: projects/{project}/locations/{location}. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [odbNetworkId] - Required. The ID of the OdbNetwork to create. This value + /// is restricted to (^\[a-z\](\[a-z0-9-\]{0,61}\[a-z0-9\])?$) and must be a + /// maximum of 63 characters in length. The value must start with a letter and + /// end with a letter or a number. + /// + /// [requestId] - Optional. An optional ID to identify the request. This value + /// is used to identify duplicate requests. If you make a request with the + /// same request ID and the original request is still in progress or + /// completed, the server ignores the second request. This prevents clients + /// from accidentally creating duplicate commitments. The request ID must be a + /// valid UUID with the exception that zero UUID is not supported + /// (00000000-0000-0000-0000-000000000000). /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [Empty]. + /// Completes with a [Operation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future cancel( - CancelOperationRequest request, - core.String name, { + async.Future create( + OdbNetwork request, + core.String parent, { + core.String? odbNetworkId, + core.String? requestId, core.String? $fields, }) async { final body_ = convert.json.encode(request); final queryParams_ = >{ + if (odbNetworkId != null) 'odbNetworkId': [odbNetworkId], + if (requestId != null) 'requestId': [requestId], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':cancel'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/odbNetworks'; final response_ = await _requester.request( url_, @@ -2073,33 +2202,43 @@ class ProjectsLocationsOperationsResource { body: body_, queryParams: queryParams_, ); - return Empty.fromJson(response_ as core.Map); + return Operation.fromJson(response_ as core.Map); } - /// Deletes a long-running operation. - /// - /// This method indicates that the client is no longer interested in the - /// operation result. It does not cancel the operation. If the server doesn't - /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + /// Deletes a single ODB Network. /// /// Request parameters: /// - /// [name] - The name of the operation resource to be deleted. + /// [name] - Required. The name of the resource in the following format: + /// projects/{project}/locations/{location}/odbNetworks/{odb_network}. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/odbNetworks/\[^/\]+$`. + /// + /// [requestId] - Optional. An optional ID to identify the request. This value + /// is used to identify duplicate requests. If you make a request with the + /// same request ID and the original request is still in progress or + /// completed, the server ignores the second request. This prevents clients + /// from accidentally creating duplicate commitments. The request ID must be a + /// valid UUID with the exception that zero UUID is not supported + /// (00000000-0000-0000-0000-000000000000). /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [Empty]. + /// Completes with a [Operation]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future delete(core.String name, {core.String? $fields}) async { + async.Future delete( + core.String name, { + core.String? requestId, + core.String? $fields, + }) async { final queryParams_ = >{ + if (requestId != null) 'requestId': [requestId], if ($fields != null) 'fields': [$fields], }; @@ -2110,31 +2249,29 @@ class ProjectsLocationsOperationsResource { 'DELETE', queryParams: queryParams_, ); - return Empty.fromJson(response_ as core.Map); + return Operation.fromJson(response_ as core.Map); } - /// Gets the latest state of a long-running operation. - /// - /// Clients can use this method to poll the operation result at intervals as - /// recommended by the API service. + /// Gets details of a single ODB Network. /// /// Request parameters: /// - /// [name] - The name of the operation resource. + /// [name] - Required. The name of the OdbNetwork in the following format: + /// projects/{project}/locations/{location}/odbNetworks/{odb_network}. /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/operations/\[^/\]+$`. + /// `^projects/\[^/\]+/locations/\[^/\]+/odbNetworks/\[^/\]+$`. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [Operation]. + /// Completes with a [OdbNetwork]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get(core.String name, {core.String? $fields}) async { + async.Future get(core.String name, {core.String? $fields}) async { final queryParams_ = >{ if ($fields != null) 'fields': [$fields], }; @@ -2146,1341 +2283,2567 @@ class ProjectsLocationsOperationsResource { 'GET', queryParams: queryParams_, ); - return Operation.fromJson(response_ as core.Map); + return OdbNetwork.fromJson( + response_ as core.Map, + ); } - /// Lists operations that match the specified filter in the request. - /// - /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. + /// Lists the ODB Networks in a given project and location. /// /// Request parameters: /// - /// [name] - The name of the operation's parent resource. + /// [parent] - Required. The parent value for the ODB Network in the following + /// format: projects/{project}/locations/{location}. /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. /// - /// [filter] - The standard list filter. + /// [filter] - Optional. An expression for filtering the results of the + /// request. /// - /// [pageSize] - The standard list page size. + /// [orderBy] - Optional. An expression for ordering the results of the + /// request. /// - /// [pageToken] - The standard list page token. + /// [pageSize] - Optional. The maximum number of items to return. If + /// unspecified, at most 50 ODB Networks will be returned. The maximum value + /// is 1000; values above 1000 will be coerced to 1000. + /// + /// [pageToken] - Optional. A token identifying a page of results the server + /// should return. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [ListOperationsResponse]. + /// Completes with a [ListOdbNetworksResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future list( - core.String name, { + async.Future list( + core.String parent, { core.String? filter, + core.String? orderBy, core.int? pageSize, core.String? pageToken, core.String? $fields, }) async { final queryParams_ = >{ if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], if (pageSize != null) 'pageSize': ['${pageSize}'], if (pageToken != null) 'pageToken': [pageToken], if ($fields != null) 'fields': [$fields], }; - final url_ = 'v1/' + core.Uri.encodeFull('$name') + '/operations'; + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/odbNetworks'; final response_ = await _requester.request( url_, 'GET', queryParams: queryParams_, ); - return ListOperationsResponse.fromJson( + return ListOdbNetworksResponse.fromJson( response_ as core.Map, ); } } -/// A list of all connection strings that can be used to connect to the -/// Autonomous Database. -class AllConnectionStrings { - /// The database service provides the highest level of resources to each SQL - /// statement. - /// - /// Output only. - core.String? high; +class ProjectsLocationsOdbNetworksOdbSubnetsResource { + final commons.ApiRequester _requester; - /// The database service provides the least level of resources to each SQL - /// statement. - /// - /// Output only. - core.String? low; + ProjectsLocationsOdbNetworksOdbSubnetsResource(commons.ApiRequester client) + : _requester = client; - /// The database service provides a lower level of resources to each SQL - /// statement. + /// Creates a new ODB Subnet in a given ODB Network. /// - /// Output only. - core.String? medium; - - AllConnectionStrings({this.high, this.low, this.medium}); - - AllConnectionStrings.fromJson(core.Map json_) - : this( - high: json_['high'] as core.String?, - low: json_['low'] as core.String?, - medium: json_['medium'] as core.String?, - ); + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent value for the OdbSubnet in the following + /// format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/odbNetworks/\[^/\]+$`. + /// + /// [odbSubnetId] - Required. The ID of the OdbSubnet to create. This value is + /// restricted to (^\[a-z\](\[a-z0-9-\]{0,61}\[a-z0-9\])?$) and must be a + /// maximum of 63 characters in length. The value must start with a letter and + /// end with a letter or a number. + /// + /// [requestId] - Optional. An optional ID to identify the request. This value + /// is used to identify duplicate requests. If you make a request with the + /// same request ID and the original request is still in progress or + /// completed, the server ignores the second request. This prevents clients + /// from accidentally creating duplicate commitments. The request ID must be a + /// valid UUID with the exception that zero UUID is not supported + /// (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future create( + OdbSubnet request, + core.String parent, { + core.String? odbSubnetId, + core.String? requestId, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (odbSubnetId != null) 'odbSubnetId': [odbSubnetId], + if (requestId != null) 'requestId': [requestId], + if ($fields != null) 'fields': [$fields], + }; - core.Map toJson() => { - if (high != null) 'high': high!, - if (low != null) 'low': low!, - if (medium != null) 'medium': medium!, - }; -} + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/odbSubnets'; -/// Details of the Autonomous Database resource. -/// -/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ -class AutonomousDatabase { - /// The password for the default ADMIN user. - /// - /// Optional. - core.String? adminPassword; + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } - /// The subnet CIDR range for the Autonomous Database. + /// Deletes a single ODB Subnet. /// - /// Optional. - core.String? cidr; - - /// The date and time that the Autonomous Database was created. + /// Request parameters: /// - /// Output only. - core.String? createTime; - - /// The name of the Autonomous Database. + /// [name] - Required. The name of the resource in the following format: + /// projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/odbNetworks/\[^/\]+/odbSubnets/\[^/\]+$`. /// - /// The database name must be unique in the project. The name must begin with - /// a letter and can contain a maximum of 30 alphanumeric characters. + /// [requestId] - Optional. An optional ID to identify the request. This value + /// is used to identify duplicate requests. If you make a request with the + /// same request ID and the original request is still in progress or + /// completed, the server ignores the second request. This prevents clients + /// from accidentally creating duplicate commitments. The request ID must be a + /// valid UUID with the exception that zero UUID is not supported + /// (00000000-0000-0000-0000-000000000000). /// - /// Optional. - core.String? database; - - /// List of supported GCP region to clone the Autonomous Database for disaster - /// recovery. + /// [$fields] - Selector specifying which fields to include in a partial + /// response. /// - /// Format: `project/{project}/locations/{location}`. + /// Completes with a [Operation]. /// - /// Output only. - core.List? disasterRecoverySupportedLocations; + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future delete( + core.String name, { + core.String? requestId, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (requestId != null) 'requestId': [requestId], + if ($fields != null) 'fields': [$fields], + }; - /// The display name for the Autonomous Database. + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'DELETE', + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + + /// Gets details of a single ODB Subnet. /// - /// The name does not have to be unique within your project. + /// Request parameters: /// - /// Optional. - core.String? displayName; - - /// The ID of the subscription entitlement associated with the Autonomous - /// Database. + /// [name] - Required. The name of the OdbSubnet in the following format: + /// projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/odbNetworks/\[^/\]+/odbSubnets/\[^/\]+$`. /// - /// Output only. - core.String? entitlementId; - - /// The labels or tags associated with the Autonomous Database. + /// [$fields] - Selector specifying which fields to include in a partial + /// response. /// - /// Optional. - core.Map? labels; - - /// Identifier. + /// Completes with a [OdbSubnet]. /// - /// The name of the Autonomous Database resource in the following format: - /// projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database} - core.String? name; - - /// The name of the VPC network used by the Autonomous Database in the - /// following format: projects/{project}/global/networks/{network} + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. /// - /// Optional. - core.String? network; + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get(core.String name, {core.String? $fields}) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; - /// The name of the OdbNetwork associated with the Autonomous Database. + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return OdbSubnet.fromJson(response_ as core.Map); + } + + /// Lists all the ODB Subnets in a given ODB Network. /// - /// Format: projects/{project}/locations/{location}/odbNetworks/{odb_network} - /// It is optional but if specified, this should match the parent ODBNetwork - /// of the OdbSubnet. + /// Request parameters: /// - /// Optional. - core.String? odbNetwork; - - /// The name of the OdbSubnet associated with the Autonomous Database. + /// [parent] - Required. The parent value for the OdbSubnet in the following + /// format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/odbNetworks/\[^/\]+$`. /// - /// Format: - /// projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} + /// [filter] - Optional. An expression for filtering the results of the + /// request. /// - /// Optional. - core.String? odbSubnet; - - /// The peer Autonomous Database names of the given Autonomous Database. + /// [orderBy] - Optional. An expression for ordering the results of the + /// request. /// - /// Output only. - core.List? peerAutonomousDatabases; - - /// The properties of the Autonomous Database. + /// [pageSize] - Optional. The maximum number of items to return. If + /// unspecified, at most 50 ODB Networks will be returned. The maximum value + /// is 1000; values above 1000 will be coerced to 1000. /// - /// Optional. - AutonomousDatabaseProperties? properties; - - /// The source Autonomous Database configuration for the standby Autonomous - /// Database. + /// [pageToken] - Optional. A token identifying a page of results the server + /// should return. /// - /// The source Autonomous Database is configured while creating the Peer - /// Autonomous Database and can't be updated after creation. + /// [$fields] - Selector specifying which fields to include in a partial + /// response. /// - /// Optional. - SourceConfig? sourceConfig; + /// Completes with a [ListOdbSubnetsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String parent, { + core.String? filter, + core.String? orderBy, + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; - AutonomousDatabase({ - this.adminPassword, - this.cidr, - this.createTime, - this.database, - this.disasterRecoverySupportedLocations, - this.displayName, - this.entitlementId, - this.labels, - this.name, - this.network, - this.odbNetwork, - this.odbSubnet, - this.peerAutonomousDatabases, - this.properties, - this.sourceConfig, - }); - - AutonomousDatabase.fromJson(core.Map json_) - : this( - adminPassword: json_['adminPassword'] as core.String?, - cidr: json_['cidr'] as core.String?, - createTime: json_['createTime'] as core.String?, - database: json_['database'] as core.String?, - disasterRecoverySupportedLocations: - (json_['disasterRecoverySupportedLocations'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - displayName: json_['displayName'] as core.String?, - entitlementId: json_['entitlementId'] as core.String?, - labels: (json_['labels'] as core.Map?)?.map( - (key, value) => core.MapEntry(key, value as core.String), - ), - name: json_['name'] as core.String?, - network: json_['network'] as core.String?, - odbNetwork: json_['odbNetwork'] as core.String?, - odbSubnet: json_['odbSubnet'] as core.String?, - peerAutonomousDatabases: - (json_['peerAutonomousDatabases'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - properties: - json_.containsKey('properties') - ? AutonomousDatabaseProperties.fromJson( - json_['properties'] as core.Map, - ) - : null, - sourceConfig: - json_.containsKey('sourceConfig') - ? SourceConfig.fromJson( - json_['sourceConfig'] as core.Map, - ) - : null, - ); + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/odbSubnets'; - core.Map toJson() => { - if (adminPassword != null) 'adminPassword': adminPassword!, - if (cidr != null) 'cidr': cidr!, - if (createTime != null) 'createTime': createTime!, - if (database != null) 'database': database!, - if (disasterRecoverySupportedLocations != null) - 'disasterRecoverySupportedLocations': disasterRecoverySupportedLocations!, - if (displayName != null) 'displayName': displayName!, - if (entitlementId != null) 'entitlementId': entitlementId!, - if (labels != null) 'labels': labels!, - if (name != null) 'name': name!, - if (network != null) 'network': network!, - if (odbNetwork != null) 'odbNetwork': odbNetwork!, - if (odbSubnet != null) 'odbSubnet': odbSubnet!, - if (peerAutonomousDatabases != null) - 'peerAutonomousDatabases': peerAutonomousDatabases!, - if (properties != null) 'properties': properties!, - if (sourceConfig != null) 'sourceConfig': sourceConfig!, - }; + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return ListOdbSubnetsResponse.fromJson( + response_ as core.Map, + ); + } } -/// Oracle APEX Application Development. -/// -/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseApex -class AutonomousDatabaseApex { - /// The Oracle APEX Application Development version. - /// - /// Output only. - core.String? apexVersion; - - /// The Oracle REST Data Services (ORDS) version. - /// - /// Output only. - core.String? ordsVersion; - - AutonomousDatabaseApex({this.apexVersion, this.ordsVersion}); - - AutonomousDatabaseApex.fromJson(core.Map json_) - : this( - apexVersion: json_['apexVersion'] as core.String?, - ordsVersion: json_['ordsVersion'] as core.String?, - ); +class ProjectsLocationsOperationsResource { + final commons.ApiRequester _requester; - core.Map toJson() => { - if (apexVersion != null) 'apexVersion': apexVersion!, - if (ordsVersion != null) 'ordsVersion': ordsVersion!, - }; -} + ProjectsLocationsOperationsResource(commons.ApiRequester client) + : _requester = client; -/// Details of the Autonomous Database Backup resource. -/// -/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/ -class AutonomousDatabaseBackup { - /// The name of the Autonomous Database resource for which the backup is being - /// created. + /// Starts asynchronous cancellation on a long-running operation. /// - /// Format: - /// projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database} + /// The server makes a best effort to cancel the operation, but success is not + /// guaranteed. If the server doesn't support this method, it returns + /// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation + /// or other methods to check whether the cancellation succeeded or whether + /// the operation completed despite cancellation. On successful cancellation, + /// the operation is not deleted; instead, it becomes an operation with an + /// Operation.error value with a google.rpc.Status.code of `1`, corresponding + /// to `Code.CANCELLED`. /// - /// Required. - core.String? autonomousDatabase; - - /// User friendly name for the Backup. + /// [request] - The metadata request object. /// - /// The name does not have to be unique. + /// Request parameters: /// - /// Optional. - core.String? displayName; - - /// labels or tags associated with the resource. + /// [name] - The name of the operation resource to be cancelled. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/operations/\[^/\]+$`. /// - /// Optional. - core.Map? labels; - - /// Identifier. + /// [$fields] - Selector specifying which fields to include in a partial + /// response. /// - /// The name of the Autonomous Database Backup resource with the format: - /// projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup} - core.String? name; - - /// Various properties of the backup. + /// Completes with a [Empty]. /// - /// Optional. - AutonomousDatabaseBackupProperties? properties; - - AutonomousDatabaseBackup({ - this.autonomousDatabase, - this.displayName, - this.labels, - this.name, - this.properties, - }); + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future cancel( + CancelOperationRequest request, + core.String name, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; - AutonomousDatabaseBackup.fromJson(core.Map json_) - : this( - autonomousDatabase: json_['autonomousDatabase'] as core.String?, - displayName: json_['displayName'] as core.String?, - labels: (json_['labels'] as core.Map?)?.map( - (key, value) => core.MapEntry(key, value as core.String), - ), - name: json_['name'] as core.String?, - properties: - json_.containsKey('properties') - ? AutonomousDatabaseBackupProperties.fromJson( - json_['properties'] as core.Map, - ) - : null, - ); + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':cancel'; - core.Map toJson() => { - if (autonomousDatabase != null) 'autonomousDatabase': autonomousDatabase!, - if (displayName != null) 'displayName': displayName!, - if (labels != null) 'labels': labels!, - if (name != null) 'name': name!, - if (properties != null) 'properties': properties!, - }; -} + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return Empty.fromJson(response_ as core.Map); + } -/// Properties of the Autonomous Database Backup resource. -class AutonomousDatabaseBackupProperties { - /// Timestamp until when the backup will be available. + /// Deletes a long-running operation. /// - /// Output only. - core.String? availableTillTime; - - /// The OCID of the compartment. + /// This method indicates that the client is no longer interested in the + /// operation result. It does not cancel the operation. If the server doesn't + /// support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. /// - /// Output only. - core.String? compartmentId; - - /// The quantity of data in the database, in terabytes. + /// Request parameters: /// - /// Output only. - core.double? databaseSizeTb; - - /// A valid Oracle Database version for Autonomous Database. + /// [name] - The name of the operation resource to be deleted. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/operations/\[^/\]+$`. /// - /// Output only. - core.String? dbVersion; - - /// The date and time the backup completed. + /// [$fields] - Selector specifying which fields to include in a partial + /// response. /// - /// Output only. - core.String? endTime; - - /// Indicates if the backup is automatic or user initiated. + /// Completes with a [Empty]. /// - /// Output only. - core.bool? isAutomaticBackup; - - /// Indicates if the backup is long term backup. + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. /// - /// Output only. - core.bool? isLongTermBackup; + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future delete(core.String name, {core.String? $fields}) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; - /// Indicates if the backup can be used to restore the Autonomous Database. - /// - /// Output only. - core.bool? isRestorable; + final url_ = 'v1/' + core.Uri.encodeFull('$name'); - /// The OCID of the key store of Oracle Vault. - /// - /// Optional. - core.String? keyStoreId; + final response_ = await _requester.request( + url_, + 'DELETE', + queryParams: queryParams_, + ); + return Empty.fromJson(response_ as core.Map); + } - /// The wallet name for Oracle Key Vault. + /// Gets the latest state of a long-running operation. /// - /// Optional. - core.String? keyStoreWallet; - - /// The OCID of the key container that is used as the master encryption key in - /// database transparent data encryption (TDE) operations. + /// Clients can use this method to poll the operation result at intervals as + /// recommended by the API service. /// - /// Optional. - core.String? kmsKeyId; - - /// The OCID of the key container version that is used in database transparent - /// data encryption (TDE) operations KMS Key can have multiple key versions. + /// Request parameters: /// - /// If none is specified, the current key version (latest) of the Key Id is - /// used for the operation. Autonomous Database Serverless does not use key - /// versions, hence is not applicable for Autonomous Database Serverless - /// instances. + /// [name] - The name of the operation resource. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/operations/\[^/\]+$`. /// - /// Optional. - core.String? kmsKeyVersionId; - - /// Additional information about the current lifecycle state. + /// [$fields] - Selector specifying which fields to include in a partial + /// response. /// - /// Output only. - core.String? lifecycleDetails; + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get(core.String name, {core.String? $fields}) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; - /// The lifecycle state of the backup. + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + + /// Lists operations that match the specified filter in the request. /// - /// Output only. - /// Possible string values are: - /// - "STATE_UNSPECIFIED" : Default unspecified value. - /// - "CREATING" : Indicates that the resource is in creating state. - /// - "ACTIVE" : Indicates that the resource is in active state. - /// - "DELETING" : Indicates that the resource is in deleting state. - /// - "DELETED" : Indicates that the resource is in deleted state. - /// - "FAILED" : Indicates that the resource is in failed state. - /// - "UPDATING" : Indicates that the resource is in updating state. - core.String? lifecycleState; + /// If the server doesn't support this method, it returns `UNIMPLEMENTED`. + /// + /// Request parameters: + /// + /// [name] - The name of the operation's parent resource. + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [filter] - The standard list filter. + /// + /// [pageSize] - The standard list page size. + /// + /// [pageToken] - The standard list page token. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListOperationsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String name, { + core.String? filter, + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; - /// OCID of the Autonomous Database backup. + final url_ = 'v1/' + core.Uri.encodeFull('$name') + '/operations'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return ListOperationsResponse.fromJson( + response_ as core.Map, + ); + } +} + +class ProjectsLocationsPluggableDatabasesResource { + final commons.ApiRequester _requester; + + ProjectsLocationsPluggableDatabasesResource(commons.ApiRequester client) + : _requester = client; + + /// Gets details of a single PluggableDatabase. /// - /// https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + /// Request parameters: /// - /// Output only. - core.String? ocid; + /// [name] - Required. The name of the PluggableDatabase resource in the + /// following format: + /// projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database} + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/pluggableDatabases/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [PluggableDatabase]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; - /// Retention period in days for the backup. + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return PluggableDatabase.fromJson( + response_ as core.Map, + ); + } + + /// Lists all the PluggableDatabases for the given project, location and + /// Container Database. /// - /// Optional. - core.int? retentionPeriodDays; + /// Request parameters: + /// + /// [parent] - Required. The parent, which owns this collection of + /// PluggableDatabases. Format: projects/{project}/locations/{location} + /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. + /// + /// [filter] - Optional. An expression for filtering the results of the + /// request. List for pluggable databases is supported only with a valid + /// container database (full resource name) filter in this format: + /// `database="projects/{project}/locations/{location}/databases/{database}"` + /// + /// [pageSize] - Optional. The maximum number of PluggableDatabases to return. + /// The service may return fewer than this value. + /// + /// [pageToken] - Optional. A page token, received from a previous + /// `ListPluggableDatabases` call. Provide this to retrieve the subsequent + /// page. When paginating, all other parameters provided to + /// `ListPluggableDatabases` must match the call that provided the page token. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListPluggableDatabasesResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String parent, { + core.String? filter, + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; - /// The backup size in terabytes. + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/pluggableDatabases'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return ListPluggableDatabasesResponse.fromJson( + response_ as core.Map, + ); + } +} + +/// A list of all connection strings that can be used to connect to the +/// Autonomous Database. +class AllConnectionStrings { + /// The database service provides the highest level of resources to each SQL + /// statement. /// /// Output only. - core.double? sizeTb; + core.String? high; - /// The date and time the backup started. + /// The database service provides the least level of resources to each SQL + /// statement. /// /// Output only. - core.String? startTime; + core.String? low; - /// The type of the backup. + /// The database service provides a lower level of resources to each SQL + /// statement. /// /// Output only. - /// Possible string values are: - /// - "TYPE_UNSPECIFIED" : Default unspecified value. - /// - "INCREMENTAL" : Incremental backups. - /// - "FULL" : Full backups. - /// - "LONG_TERM" : Long term backups. - core.String? type; + core.String? medium; - /// The OCID of the vault. + AllConnectionStrings({this.high, this.low, this.medium}); + + AllConnectionStrings.fromJson(core.Map json_) + : this( + high: json_['high'] as core.String?, + low: json_['low'] as core.String?, + medium: json_['medium'] as core.String?, + ); + + core.Map toJson() => { + if (high != null) 'high': high!, + if (low != null) 'low': low!, + if (medium != null) 'medium': medium!, + }; +} + +/// Details of the Autonomous Database resource. +/// +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ +class AutonomousDatabase { + /// The password for the default ADMIN user. /// /// Optional. - core.String? vaultId; + core.String? adminPassword; - AutonomousDatabaseBackupProperties({ - this.availableTillTime, - this.compartmentId, - this.databaseSizeTb, - this.dbVersion, - this.endTime, - this.isAutomaticBackup, - this.isLongTermBackup, - this.isRestorable, - this.keyStoreId, - this.keyStoreWallet, - this.kmsKeyId, - this.kmsKeyVersionId, - this.lifecycleDetails, - this.lifecycleState, - this.ocid, - this.retentionPeriodDays, - this.sizeTb, - this.startTime, - this.type, - this.vaultId, - }); - - AutonomousDatabaseBackupProperties.fromJson(core.Map json_) - : this( - availableTillTime: json_['availableTillTime'] as core.String?, - compartmentId: json_['compartmentId'] as core.String?, - databaseSizeTb: (json_['databaseSizeTb'] as core.num?)?.toDouble(), - dbVersion: json_['dbVersion'] as core.String?, - endTime: json_['endTime'] as core.String?, - isAutomaticBackup: json_['isAutomaticBackup'] as core.bool?, - isLongTermBackup: json_['isLongTermBackup'] as core.bool?, - isRestorable: json_['isRestorable'] as core.bool?, - keyStoreId: json_['keyStoreId'] as core.String?, - keyStoreWallet: json_['keyStoreWallet'] as core.String?, - kmsKeyId: json_['kmsKeyId'] as core.String?, - kmsKeyVersionId: json_['kmsKeyVersionId'] as core.String?, - lifecycleDetails: json_['lifecycleDetails'] as core.String?, - lifecycleState: json_['lifecycleState'] as core.String?, - ocid: json_['ocid'] as core.String?, - retentionPeriodDays: json_['retentionPeriodDays'] as core.int?, - sizeTb: (json_['sizeTb'] as core.num?)?.toDouble(), - startTime: json_['startTime'] as core.String?, - type: json_['type'] as core.String?, - vaultId: json_['vaultId'] as core.String?, - ); - - core.Map toJson() => { - if (availableTillTime != null) 'availableTillTime': availableTillTime!, - if (compartmentId != null) 'compartmentId': compartmentId!, - if (databaseSizeTb != null) 'databaseSizeTb': databaseSizeTb!, - if (dbVersion != null) 'dbVersion': dbVersion!, - if (endTime != null) 'endTime': endTime!, - if (isAutomaticBackup != null) 'isAutomaticBackup': isAutomaticBackup!, - if (isLongTermBackup != null) 'isLongTermBackup': isLongTermBackup!, - if (isRestorable != null) 'isRestorable': isRestorable!, - if (keyStoreId != null) 'keyStoreId': keyStoreId!, - if (keyStoreWallet != null) 'keyStoreWallet': keyStoreWallet!, - if (kmsKeyId != null) 'kmsKeyId': kmsKeyId!, - if (kmsKeyVersionId != null) 'kmsKeyVersionId': kmsKeyVersionId!, - if (lifecycleDetails != null) 'lifecycleDetails': lifecycleDetails!, - if (lifecycleState != null) 'lifecycleState': lifecycleState!, - if (ocid != null) 'ocid': ocid!, - if (retentionPeriodDays != null) - 'retentionPeriodDays': retentionPeriodDays!, - if (sizeTb != null) 'sizeTb': sizeTb!, - if (startTime != null) 'startTime': startTime!, - if (type != null) 'type': type!, - if (vaultId != null) 'vaultId': vaultId!, - }; -} - -/// Details of the Autonomous Database character set resource. -/// -/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseCharacterSets/ -class AutonomousDatabaseCharacterSet { - /// The character set name for the Autonomous Database which is the ID in the - /// resource name. + /// The subnet CIDR range for the Autonomous Database. /// - /// Output only. - core.String? characterSet; + /// Optional. + core.String? cidr; - /// The character set type for the Autonomous Database. + /// The date and time that the Autonomous Database was created. /// /// Output only. - /// Possible string values are: - /// - "CHARACTER_SET_TYPE_UNSPECIFIED" : Character set type is not specified. - /// - "DATABASE" : Character set type is set to database. - /// - "NATIONAL" : Character set type is set to national. - core.String? characterSetType; + core.String? createTime; - /// Identifier. + /// The name of the Autonomous Database. /// - /// The name of the Autonomous Database Character Set resource in the - /// following format: - /// projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set} - core.String? name; - - AutonomousDatabaseCharacterSet({ - this.characterSet, - this.characterSetType, - this.name, - }); - - AutonomousDatabaseCharacterSet.fromJson(core.Map json_) - : this( - characterSet: json_['characterSet'] as core.String?, - characterSetType: json_['characterSetType'] as core.String?, - name: json_['name'] as core.String?, - ); - - core.Map toJson() => { - if (characterSet != null) 'characterSet': characterSet!, - if (characterSetType != null) 'characterSetType': characterSetType!, - if (name != null) 'name': name!, - }; -} - -/// The connection string used to connect to the Autonomous Database. -/// -/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionStrings -class AutonomousDatabaseConnectionStrings { - /// Returns all connection strings that can be used to connect to the - /// Autonomous Database. + /// The database name must be unique in the project. The name must begin with + /// a letter and can contain a maximum of 30 alphanumeric characters. /// - /// Output only. - AllConnectionStrings? allConnectionStrings; + /// Optional. + core.String? database; - /// The database service provides the least level of resources to each SQL - /// statement, but supports the most number of concurrent SQL statements. + /// List of supported GCP region to clone the Autonomous Database for disaster + /// recovery. /// - /// Output only. - core.String? dedicated; - - /// The database service provides the highest level of resources to each SQL - /// statement. + /// Format: `project/{project}/locations/{location}`. /// /// Output only. - core.String? high; + core.List? disasterRecoverySupportedLocations; - /// The database service provides the least level of resources to each SQL - /// statement. + /// The display name for the Autonomous Database. /// - /// Output only. - core.String? low; - - /// The database service provides a lower level of resources to each SQL - /// statement. + /// The name does not have to be unique within your project. /// - /// Output only. - core.String? medium; + /// Optional. + core.String? displayName; - /// A list of connection string profiles to allow clients to group, filter, - /// and select values based on the structured metadata. + /// The ID of the subscription entitlement associated with the Autonomous + /// Database. /// /// Output only. - core.List? profiles; - - AutonomousDatabaseConnectionStrings({ - this.allConnectionStrings, - this.dedicated, - this.high, - this.low, - this.medium, - this.profiles, - }); - - AutonomousDatabaseConnectionStrings.fromJson(core.Map json_) - : this( - allConnectionStrings: - json_.containsKey('allConnectionStrings') - ? AllConnectionStrings.fromJson( - json_['allConnectionStrings'] - as core.Map, - ) - : null, - dedicated: json_['dedicated'] as core.String?, - high: json_['high'] as core.String?, - low: json_['low'] as core.String?, - medium: json_['medium'] as core.String?, - profiles: - (json_['profiles'] as core.List?) - ?.map( - (value) => DatabaseConnectionStringProfile.fromJson( - value as core.Map, - ), - ) - .toList(), - ); - - core.Map toJson() => { - if (allConnectionStrings != null) - 'allConnectionStrings': allConnectionStrings!, - if (dedicated != null) 'dedicated': dedicated!, - if (high != null) 'high': high!, - if (low != null) 'low': low!, - if (medium != null) 'medium': medium!, - if (profiles != null) 'profiles': profiles!, - }; -} + core.String? entitlementId; -/// The URLs for accessing Oracle Application Express (APEX) and SQL Developer -/// Web with a browser from a Compute instance. -/// -/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionUrls -class AutonomousDatabaseConnectionUrls { - /// Oracle Application Express (APEX) URL. + /// The labels or tags associated with the Autonomous Database. /// - /// Output only. - core.String? apexUri; + /// Optional. + core.Map? labels; - /// The URL of the Database Transforms for the Autonomous Database. + /// Identifier. /// - /// Output only. - core.String? databaseTransformsUri; + /// The name of the Autonomous Database resource in the following format: + /// projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database} + core.String? name; - /// The URL of the Graph Studio for the Autonomous Database. + /// The name of the VPC network used by the Autonomous Database in the + /// following format: projects/{project}/global/networks/{network} /// - /// Output only. - core.String? graphStudioUri; + /// Optional. + core.String? network; - /// The URL of the Oracle Machine Learning (OML) Notebook for the Autonomous - /// Database. + /// The name of the OdbNetwork associated with the Autonomous Database. /// - /// Output only. - core.String? machineLearningNotebookUri; - - /// The URL of Machine Learning user management the Autonomous Database. + /// Format: projects/{project}/locations/{location}/odbNetworks/{odb_network} + /// It is optional but if specified, this should match the parent ODBNetwork + /// of the OdbSubnet. /// - /// Output only. - core.String? machineLearningUserManagementUri; + /// Optional. + core.String? odbNetwork; - /// The URL of the MongoDB API for the Autonomous Database. + /// The name of the OdbSubnet associated with the Autonomous Database. /// - /// Output only. - core.String? mongoDbUri; + /// Format: + /// projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} + /// + /// Optional. + core.String? odbSubnet; - /// The Oracle REST Data Services (ORDS) URL of the Web Access for the - /// Autonomous Database. + /// The peer Autonomous Database names of the given Autonomous Database. /// /// Output only. - core.String? ordsUri; + core.List? peerAutonomousDatabases; - /// The URL of the Oracle SQL Developer Web for the Autonomous Database. + /// The properties of the Autonomous Database. /// - /// Output only. - core.String? sqlDevWebUri; + /// Optional. + AutonomousDatabaseProperties? properties; - AutonomousDatabaseConnectionUrls({ - this.apexUri, - this.databaseTransformsUri, - this.graphStudioUri, - this.machineLearningNotebookUri, - this.machineLearningUserManagementUri, - this.mongoDbUri, - this.ordsUri, - this.sqlDevWebUri, + /// The source Autonomous Database configuration for the standby Autonomous + /// Database. + /// + /// The source Autonomous Database is configured while creating the Peer + /// Autonomous Database and can't be updated after creation. + /// + /// Optional. + SourceConfig? sourceConfig; + + AutonomousDatabase({ + this.adminPassword, + this.cidr, + this.createTime, + this.database, + this.disasterRecoverySupportedLocations, + this.displayName, + this.entitlementId, + this.labels, + this.name, + this.network, + this.odbNetwork, + this.odbSubnet, + this.peerAutonomousDatabases, + this.properties, + this.sourceConfig, }); - AutonomousDatabaseConnectionUrls.fromJson(core.Map json_) + AutonomousDatabase.fromJson(core.Map json_) : this( - apexUri: json_['apexUri'] as core.String?, - databaseTransformsUri: json_['databaseTransformsUri'] as core.String?, - graphStudioUri: json_['graphStudioUri'] as core.String?, - machineLearningNotebookUri: - json_['machineLearningNotebookUri'] as core.String?, - machineLearningUserManagementUri: - json_['machineLearningUserManagementUri'] as core.String?, - mongoDbUri: json_['mongoDbUri'] as core.String?, - ordsUri: json_['ordsUri'] as core.String?, - sqlDevWebUri: json_['sqlDevWebUri'] as core.String?, + adminPassword: json_['adminPassword'] as core.String?, + cidr: json_['cidr'] as core.String?, + createTime: json_['createTime'] as core.String?, + database: json_['database'] as core.String?, + disasterRecoverySupportedLocations: + (json_['disasterRecoverySupportedLocations'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + displayName: json_['displayName'] as core.String?, + entitlementId: json_['entitlementId'] as core.String?, + labels: (json_['labels'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), + name: json_['name'] as core.String?, + network: json_['network'] as core.String?, + odbNetwork: json_['odbNetwork'] as core.String?, + odbSubnet: json_['odbSubnet'] as core.String?, + peerAutonomousDatabases: + (json_['peerAutonomousDatabases'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + properties: + json_.containsKey('properties') + ? AutonomousDatabaseProperties.fromJson( + json_['properties'] as core.Map, + ) + : null, + sourceConfig: + json_.containsKey('sourceConfig') + ? SourceConfig.fromJson( + json_['sourceConfig'] as core.Map, + ) + : null, ); core.Map toJson() => { - if (apexUri != null) 'apexUri': apexUri!, - if (databaseTransformsUri != null) - 'databaseTransformsUri': databaseTransformsUri!, - if (graphStudioUri != null) 'graphStudioUri': graphStudioUri!, - if (machineLearningNotebookUri != null) - 'machineLearningNotebookUri': machineLearningNotebookUri!, - if (machineLearningUserManagementUri != null) - 'machineLearningUserManagementUri': machineLearningUserManagementUri!, - if (mongoDbUri != null) 'mongoDbUri': mongoDbUri!, - if (ordsUri != null) 'ordsUri': ordsUri!, - if (sqlDevWebUri != null) 'sqlDevWebUri': sqlDevWebUri!, + if (adminPassword != null) 'adminPassword': adminPassword!, + if (cidr != null) 'cidr': cidr!, + if (createTime != null) 'createTime': createTime!, + if (database != null) 'database': database!, + if (disasterRecoverySupportedLocations != null) + 'disasterRecoverySupportedLocations': disasterRecoverySupportedLocations!, + if (displayName != null) 'displayName': displayName!, + if (entitlementId != null) 'entitlementId': entitlementId!, + if (labels != null) 'labels': labels!, + if (name != null) 'name': name!, + if (network != null) 'network': network!, + if (odbNetwork != null) 'odbNetwork': odbNetwork!, + if (odbSubnet != null) 'odbSubnet': odbSubnet!, + if (peerAutonomousDatabases != null) + 'peerAutonomousDatabases': peerAutonomousDatabases!, + if (properties != null) 'properties': properties!, + if (sourceConfig != null) 'sourceConfig': sourceConfig!, }; } -/// The properties of an Autonomous Database. -class AutonomousDatabaseProperties { - /// The amount of storage currently being used for user and system data, in - /// terabytes. +/// Oracle APEX Application Development. +/// +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseApex +class AutonomousDatabaseApex { + /// The Oracle APEX Application Development version. /// /// Output only. - core.double? actualUsedDataStorageSizeTb; + core.String? apexVersion; - /// The amount of storage currently allocated for the database tables and - /// billed for, rounded up in terabytes. + /// The Oracle REST Data Services (ORDS) version. /// /// Output only. - core.double? allocatedStorageSizeTb; + core.String? ordsVersion; - /// The list of allowlisted IP addresses for the Autonomous Database. - /// - /// Optional. - core.List? allowlistedIps; + AutonomousDatabaseApex({this.apexVersion, this.ordsVersion}); - /// The details for the Oracle APEX Application Development. - /// - /// Output only. - AutonomousDatabaseApex? apexDetails; + AutonomousDatabaseApex.fromJson(core.Map json_) + : this( + apexVersion: json_['apexVersion'] as core.String?, + ordsVersion: json_['ordsVersion'] as core.String?, + ); - /// This field indicates the status of Data Guard and Access control for the - /// Autonomous Database. - /// - /// The field's value is null if Data Guard is disabled or Access Control is - /// disabled. The field's value is TRUE if both Data Guard and Access Control - /// are enabled, and the Autonomous Database is using primary IP access - /// control list (ACL) for standby. The field's value is FALSE if both Data - /// Guard and Access Control are enabled, and the Autonomous Database is using - /// a different IP access control list (ACL) for standby compared to primary. - /// - /// Output only. - core.bool? arePrimaryAllowlistedIpsUsed; + core.Map toJson() => { + if (apexVersion != null) 'apexVersion': apexVersion!, + if (ordsVersion != null) 'ordsVersion': ordsVersion!, + }; +} - /// The Autonomous Container Database OCID. +/// Details of the Autonomous Database Backup resource. +/// +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/ +class AutonomousDatabaseBackup { + /// The name of the Autonomous Database resource for which the backup is being + /// created. /// - /// Output only. - core.String? autonomousContainerDatabaseId; - - /// The list of available Oracle Database upgrade versions for an Autonomous - /// Database. + /// Format: + /// projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database} /// - /// Output only. - core.List? availableUpgradeVersions; + /// Required. + core.String? autonomousDatabase; - /// The retention period for the Autonomous Database. + /// User friendly name for the Backup. /// - /// This field is specified in days, can range from 1 day to 60 days, and has - /// a default value of 60 days. + /// The name does not have to be unique. /// /// Optional. - core.int? backupRetentionPeriodDays; + core.String? displayName; - /// The character set for the Autonomous Database. - /// - /// The default is AL32UTF8. + /// labels or tags associated with the resource. /// /// Optional. - core.String? characterSet; + core.Map? labels; - /// The number of compute servers for the Autonomous Database. + /// Identifier. + /// + /// The name of the Autonomous Database Backup resource with the format: + /// projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup} + core.String? name; + + /// Various properties of the backup. /// /// Optional. - core.double? computeCount; + AutonomousDatabaseBackupProperties? properties; - /// The connection strings used to connect to an Autonomous Database. + AutonomousDatabaseBackup({ + this.autonomousDatabase, + this.displayName, + this.labels, + this.name, + this.properties, + }); + + AutonomousDatabaseBackup.fromJson(core.Map json_) + : this( + autonomousDatabase: json_['autonomousDatabase'] as core.String?, + displayName: json_['displayName'] as core.String?, + labels: (json_['labels'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), + name: json_['name'] as core.String?, + properties: + json_.containsKey('properties') + ? AutonomousDatabaseBackupProperties.fromJson( + json_['properties'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (autonomousDatabase != null) 'autonomousDatabase': autonomousDatabase!, + if (displayName != null) 'displayName': displayName!, + if (labels != null) 'labels': labels!, + if (name != null) 'name': name!, + if (properties != null) 'properties': properties!, + }; +} + +/// Properties of the Autonomous Database Backup resource. +class AutonomousDatabaseBackupProperties { + /// Timestamp until when the backup will be available. /// /// Output only. - AutonomousDatabaseConnectionStrings? connectionStrings; + core.String? availableTillTime; - /// The Oracle Connection URLs for an Autonomous Database. + /// The OCID of the compartment. /// /// Output only. - AutonomousDatabaseConnectionUrls? connectionUrls; + core.String? compartmentId; - /// The number of CPU cores to be made available to the database. + /// The quantity of data in the database, in terabytes. /// - /// Optional. - core.int? cpuCoreCount; + /// Output only. + core.double? databaseSizeTb; - /// The list of customer contacts. + /// A valid Oracle Database version for Autonomous Database. /// - /// Optional. - core.List? customerContacts; + /// Output only. + core.String? dbVersion; - /// The date and time the Autonomous Data Guard role was changed for the - /// standby Autonomous Database. + /// The date and time the backup completed. /// /// Output only. - core.String? dataGuardRoleChangedTime; + core.String? endTime; - /// The current state of the Data Safe registration for the Autonomous - /// Database. + /// Indicates if the backup is automatic or user initiated. /// /// Output only. - /// Possible string values are: - /// - "DATA_SAFE_STATE_UNSPECIFIED" : Default unspecified value. - /// - "REGISTERING" : Registering data safe state. - /// - "REGISTERED" : Registered data safe state. - /// - "DEREGISTERING" : Deregistering data safe state. - /// - "NOT_REGISTERED" : Not registered data safe state. - /// - "FAILED" : Failed data safe state. - core.String? dataSafeState; + core.bool? isAutomaticBackup; - /// The size of the data stored in the database, in gigabytes. + /// Indicates if the backup is long term backup. /// - /// Optional. - core.int? dataStorageSizeGb; + /// Output only. + core.bool? isLongTermBackup; - /// The size of the data stored in the database, in terabytes. + /// Indicates if the backup can be used to restore the Autonomous Database. /// - /// Optional. - core.int? dataStorageSizeTb; + /// Output only. + core.bool? isRestorable; - /// The current state of database management for the Autonomous Database. + /// The OCID of the key store of Oracle Vault. /// - /// Output only. - /// Possible string values are: - /// - "DATABASE_MANAGEMENT_STATE_UNSPECIFIED" : Default unspecified value. - /// - "ENABLING" : Enabling Database Management state - /// - "ENABLED" : Enabled Database Management state - /// - "DISABLING" : Disabling Database Management state - /// - "NOT_ENABLED" : Not Enabled Database Management state - /// - "FAILED_ENABLING" : Failed enabling Database Management state - /// - "FAILED_DISABLING" : Failed disabling Database Management state - core.String? databaseManagementState; + /// Optional. + core.String? keyStoreId; - /// The edition of the Autonomous Databases. + /// The wallet name for Oracle Key Vault. /// /// Optional. - /// Possible string values are: - /// - "DATABASE_EDITION_UNSPECIFIED" : Default unspecified value. - /// - "STANDARD_EDITION" : Standard Database Edition - /// - "ENTERPRISE_EDITION" : Enterprise Database Edition - core.String? dbEdition; + core.String? keyStoreWallet; - /// The Oracle Database version for the Autonomous Database. + /// The OCID of the key container that is used as the master encryption key in + /// database transparent data encryption (TDE) operations. /// /// Optional. - core.String? dbVersion; + core.String? kmsKeyId; - /// The workload type of the Autonomous Database. + /// The OCID of the key container version that is used in database transparent + /// data encryption (TDE) operations KMS Key can have multiple key versions. /// - /// Required. - /// Possible string values are: - /// - "DB_WORKLOAD_UNSPECIFIED" : Default unspecified value. - /// - "OLTP" : Autonomous Transaction Processing database. - /// - "DW" : Autonomous Data Warehouse database. - /// - "AJD" : Autonomous JSON Database. - /// - "APEX" : Autonomous Database with the Oracle APEX Application - /// Development workload type. - core.String? dbWorkload; + /// If none is specified, the current key version (latest) of the Key Id is + /// used for the operation. Autonomous Database Serverless does not use key + /// versions, hence is not applicable for Autonomous Database Serverless + /// instances. + /// + /// Optional. + core.String? kmsKeyVersionId; - /// The date and time the Disaster Recovery role was changed for the standby - /// Autonomous Database. + /// Additional information about the current lifecycle state. /// /// Output only. - core.String? disasterRecoveryRoleChangedTime; + core.String? lifecycleDetails; - /// This field indicates the number of seconds of data loss during a Data - /// Guard failover. + /// The lifecycle state of the backup. /// /// Output only. - core.String? failedDataRecoveryDuration; + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : Default unspecified value. + /// - "CREATING" : Indicates that the resource is in creating state. + /// - "ACTIVE" : Indicates that the resource is in active state. + /// - "DELETING" : Indicates that the resource is in deleting state. + /// - "DELETED" : Indicates that the resource is in deleted state. + /// - "FAILED" : Indicates that the resource is in failed state. + /// - "UPDATING" : Indicates that the resource is in updating state. + core.String? lifecycleState; - /// This field indicates if auto scaling is enabled for the Autonomous - /// Database CPU core count. + /// OCID of the Autonomous Database backup. /// - /// Optional. - core.bool? isAutoScalingEnabled; - - /// This field indicates whether the Autonomous Database has local (in-region) - /// Data Guard enabled. + /// https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle /// /// Output only. - core.bool? isLocalDataGuardEnabled; + core.String? ocid; - /// This field indicates if auto scaling is enabled for the Autonomous - /// Database storage. + /// Retention period in days for the backup. /// /// Optional. - core.bool? isStorageAutoScalingEnabled; - - /// The license type used for the Autonomous Database. - /// - /// Required. - /// Possible string values are: - /// - "LICENSE_TYPE_UNSPECIFIED" : Unspecified - /// - "LICENSE_INCLUDED" : License included part of offer - /// - "BRING_YOUR_OWN_LICENSE" : Bring your own license - core.String? licenseType; + core.int? retentionPeriodDays; - /// The details of the current lifestyle state of the Autonomous Database. + /// The backup size in terabytes. /// /// Output only. - core.String? lifecycleDetails; + core.double? sizeTb; - /// This field indicates the maximum data loss limit for an Autonomous - /// Database, in seconds. + /// The date and time the backup started. /// /// Output only. - core.int? localAdgAutoFailoverMaxDataLossLimit; + core.String? startTime; - /// This field indicates the local disaster recovery (DR) type of an - /// Autonomous Database. + /// The type of the backup. /// /// Output only. /// Possible string values are: - /// - "LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED" : Default unspecified value. - /// - "ADG" : Autonomous Data Guard recovery. - /// - "BACKUP_BASED" : Backup based recovery. - core.String? localDisasterRecoveryType; + /// - "TYPE_UNSPECIFIED" : Default unspecified value. + /// - "INCREMENTAL" : Incremental backups. + /// - "FULL" : Full backups. + /// - "LONG_TERM" : Long term backups. + core.String? type; - /// The details of the Autonomous Data Guard standby database. + /// The OCID of the vault. /// - /// Output only. - AutonomousDatabaseStandbySummary? localStandbyDb; + /// Optional. + core.String? vaultId; - /// The date and time when maintenance will begin. - /// - /// Output only. - core.String? maintenanceBeginTime; + AutonomousDatabaseBackupProperties({ + this.availableTillTime, + this.compartmentId, + this.databaseSizeTb, + this.dbVersion, + this.endTime, + this.isAutomaticBackup, + this.isLongTermBackup, + this.isRestorable, + this.keyStoreId, + this.keyStoreWallet, + this.kmsKeyId, + this.kmsKeyVersionId, + this.lifecycleDetails, + this.lifecycleState, + this.ocid, + this.retentionPeriodDays, + this.sizeTb, + this.startTime, + this.type, + this.vaultId, + }); - /// The date and time when maintenance will end. - /// - /// Output only. - core.String? maintenanceEndTime; + AutonomousDatabaseBackupProperties.fromJson(core.Map json_) + : this( + availableTillTime: json_['availableTillTime'] as core.String?, + compartmentId: json_['compartmentId'] as core.String?, + databaseSizeTb: (json_['databaseSizeTb'] as core.num?)?.toDouble(), + dbVersion: json_['dbVersion'] as core.String?, + endTime: json_['endTime'] as core.String?, + isAutomaticBackup: json_['isAutomaticBackup'] as core.bool?, + isLongTermBackup: json_['isLongTermBackup'] as core.bool?, + isRestorable: json_['isRestorable'] as core.bool?, + keyStoreId: json_['keyStoreId'] as core.String?, + keyStoreWallet: json_['keyStoreWallet'] as core.String?, + kmsKeyId: json_['kmsKeyId'] as core.String?, + kmsKeyVersionId: json_['kmsKeyVersionId'] as core.String?, + lifecycleDetails: json_['lifecycleDetails'] as core.String?, + lifecycleState: json_['lifecycleState'] as core.String?, + ocid: json_['ocid'] as core.String?, + retentionPeriodDays: json_['retentionPeriodDays'] as core.int?, + sizeTb: (json_['sizeTb'] as core.num?)?.toDouble(), + startTime: json_['startTime'] as core.String?, + type: json_['type'] as core.String?, + vaultId: json_['vaultId'] as core.String?, + ); - /// The maintenance schedule of the Autonomous Database. - /// - /// Optional. - /// Possible string values are: - /// - "MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED" : Default unspecified value. - /// - "EARLY" : An EARLY maintenance schedule patches the database before the - /// regular scheduled maintenance. - /// - "REGULAR" : A REGULAR maintenance schedule follows the normal - /// maintenance cycle. - core.String? maintenanceScheduleType; + core.Map toJson() => { + if (availableTillTime != null) 'availableTillTime': availableTillTime!, + if (compartmentId != null) 'compartmentId': compartmentId!, + if (databaseSizeTb != null) 'databaseSizeTb': databaseSizeTb!, + if (dbVersion != null) 'dbVersion': dbVersion!, + if (endTime != null) 'endTime': endTime!, + if (isAutomaticBackup != null) 'isAutomaticBackup': isAutomaticBackup!, + if (isLongTermBackup != null) 'isLongTermBackup': isLongTermBackup!, + if (isRestorable != null) 'isRestorable': isRestorable!, + if (keyStoreId != null) 'keyStoreId': keyStoreId!, + if (keyStoreWallet != null) 'keyStoreWallet': keyStoreWallet!, + if (kmsKeyId != null) 'kmsKeyId': kmsKeyId!, + if (kmsKeyVersionId != null) 'kmsKeyVersionId': kmsKeyVersionId!, + if (lifecycleDetails != null) 'lifecycleDetails': lifecycleDetails!, + if (lifecycleState != null) 'lifecycleState': lifecycleState!, + if (ocid != null) 'ocid': ocid!, + if (retentionPeriodDays != null) + 'retentionPeriodDays': retentionPeriodDays!, + if (sizeTb != null) 'sizeTb': sizeTb!, + if (startTime != null) 'startTime': startTime!, + if (type != null) 'type': type!, + if (vaultId != null) 'vaultId': vaultId!, + }; +} - /// The amount of memory enabled per ECPU, in gigabytes. +/// Details of the Autonomous Database character set resource. +/// +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseCharacterSets/ +class AutonomousDatabaseCharacterSet { + /// The character set name for the Autonomous Database which is the ID in the + /// resource name. /// /// Output only. - core.int? memoryPerOracleComputeUnitGbs; + core.String? characterSet; - /// The memory assigned to in-memory tables in an Autonomous Database. + /// The character set type for the Autonomous Database. /// /// Output only. - core.int? memoryTableGbs; + /// Possible string values are: + /// - "CHARACTER_SET_TYPE_UNSPECIFIED" : Character set type is not specified. + /// - "DATABASE" : Character set type is set to database. + /// - "NATIONAL" : Character set type is set to national. + core.String? characterSetType; - /// This field specifies if the Autonomous Database requires mTLS connections. + /// Identifier. /// - /// Optional. - core.bool? mtlsConnectionRequired; + /// The name of the Autonomous Database Character Set resource in the + /// following format: + /// projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set} + core.String? name; - /// The national character set for the Autonomous Database. - /// - /// The default is AL16UTF16. - /// - /// Optional. - core.String? nCharacterSet; + AutonomousDatabaseCharacterSet({ + this.characterSet, + this.characterSetType, + this.name, + }); - /// The long term backup schedule of the Autonomous Database. - /// - /// Output only. - core.String? nextLongTermBackupTime; + AutonomousDatabaseCharacterSet.fromJson(core.Map json_) + : this( + characterSet: json_['characterSet'] as core.String?, + characterSetType: json_['characterSetType'] as core.String?, + name: json_['name'] as core.String?, + ); - /// The Oracle Cloud Infrastructure link for the Autonomous Database. - /// - /// Output only. - core.String? ociUrl; + core.Map toJson() => { + if (characterSet != null) 'characterSet': characterSet!, + if (characterSetType != null) 'characterSetType': characterSetType!, + if (name != null) 'name': name!, + }; +} - /// OCID of the Autonomous Database. - /// - /// https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle +/// The connection string used to connect to the Autonomous Database. +/// +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionStrings +class AutonomousDatabaseConnectionStrings { + /// Returns all connection strings that can be used to connect to the + /// Autonomous Database. /// /// Output only. - core.String? ocid; + AllConnectionStrings? allConnectionStrings; - /// This field indicates the current mode of the Autonomous Database. + /// The database service provides the least level of resources to each SQL + /// statement, but supports the most number of concurrent SQL statements. /// /// Output only. - /// Possible string values are: - /// - "OPEN_MODE_UNSPECIFIED" : Default unspecified value. - /// - "READ_ONLY" : Read Only Mode - /// - "READ_WRITE" : Read Write Mode - core.String? openMode; + core.String? dedicated; - /// This field indicates the state of Operations Insights for the Autonomous - /// Database. + /// The database service provides the highest level of resources to each SQL + /// statement. /// /// Output only. - /// Possible string values are: - /// - "OPERATIONS_INSIGHTS_STATE_UNSPECIFIED" : Default unspecified value. - /// - "ENABLING" : Enabling status for operation insights. - /// - "ENABLED" : Enabled status for operation insights. - /// - "DISABLING" : Disabling status for operation insights. - /// - "NOT_ENABLED" : Not Enabled status for operation insights. - /// - "FAILED_ENABLING" : Failed enabling status for operation insights. - /// - "FAILED_DISABLING" : Failed disabling status for operation insights. - core.String? operationsInsightsState; + core.String? high; - /// The list of OCIDs of standby databases located in Autonomous Data Guard - /// remote regions that are associated with the source database. + /// The database service provides the least level of resources to each SQL + /// statement. /// /// Output only. - core.List? peerDbIds; + core.String? low; - /// The permission level of the Autonomous Database. + /// The database service provides a lower level of resources to each SQL + /// statement. /// /// Output only. - /// Possible string values are: - /// - "PERMISSION_LEVEL_UNSPECIFIED" : Default unspecified value. - /// - "RESTRICTED" : Restricted mode allows access only by admin users. - /// - "UNRESTRICTED" : Normal access. - core.String? permissionLevel; + core.String? medium; - /// The private endpoint for the Autonomous Database. + /// A list of connection string profiles to allow clients to group, filter, + /// and select values based on the structured metadata. /// /// Output only. - core.String? privateEndpoint; + core.List? profiles; - /// The private endpoint IP address for the Autonomous Database. - /// - /// Optional. - core.String? privateEndpointIp; + AutonomousDatabaseConnectionStrings({ + this.allConnectionStrings, + this.dedicated, + this.high, + this.low, + this.medium, + this.profiles, + }); - /// The private endpoint label for the Autonomous Database. - /// - /// Optional. - core.String? privateEndpointLabel; + AutonomousDatabaseConnectionStrings.fromJson(core.Map json_) + : this( + allConnectionStrings: + json_.containsKey('allConnectionStrings') + ? AllConnectionStrings.fromJson( + json_['allConnectionStrings'] + as core.Map, + ) + : null, + dedicated: json_['dedicated'] as core.String?, + high: json_['high'] as core.String?, + low: json_['low'] as core.String?, + medium: json_['medium'] as core.String?, + profiles: + (json_['profiles'] as core.List?) + ?.map( + (value) => DatabaseConnectionStringProfile.fromJson( + value as core.Map, + ), + ) + .toList(), + ); - /// The refresh mode of the cloned Autonomous Database. + core.Map toJson() => { + if (allConnectionStrings != null) + 'allConnectionStrings': allConnectionStrings!, + if (dedicated != null) 'dedicated': dedicated!, + if (high != null) 'high': high!, + if (low != null) 'low': low!, + if (medium != null) 'medium': medium!, + if (profiles != null) 'profiles': profiles!, + }; +} + +/// The URLs for accessing Oracle Application Express (APEX) and SQL Developer +/// Web with a browser from a Compute instance. +/// +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionUrls +class AutonomousDatabaseConnectionUrls { + /// Oracle Application Express (APEX) URL. /// /// Output only. - /// Possible string values are: - /// - "REFRESHABLE_MODE_UNSPECIFIED" : The default unspecified value. - /// - "AUTOMATIC" : AUTOMATIC indicates that the cloned database is - /// automatically refreshed with data from the source Autonomous Database. - /// - "MANUAL" : MANUAL indicates that the cloned database is manually - /// refreshed with data from the source Autonomous Database. - core.String? refreshableMode; + core.String? apexUri; - /// The refresh State of the clone. + /// The URL of the Database Transforms for the Autonomous Database. /// /// Output only. - /// Possible string values are: - /// - "REFRESHABLE_STATE_UNSPECIFIED" : Default unspecified value. - /// - "REFRESHING" : Refreshing - /// - "NOT_REFRESHING" : Not refreshed - core.String? refreshableState; + core.String? databaseTransformsUri; - /// The Data Guard role of the Autonomous Database. + /// The URL of the Graph Studio for the Autonomous Database. /// /// Output only. - /// Possible string values are: - /// - "ROLE_UNSPECIFIED" : Default unspecified value. - /// - "PRIMARY" : Primary role - /// - "STANDBY" : Standby role - /// - "DISABLED_STANDBY" : Disabled standby role - /// - "BACKUP_COPY" : Backup copy role - /// - "SNAPSHOT_STANDBY" : Snapshot standby role - core.String? role; + core.String? graphStudioUri; - /// The list and details of the scheduled operations of the Autonomous + /// The URL of the Oracle Machine Learning (OML) Notebook for the Autonomous /// Database. /// /// Output only. - core.List? scheduledOperationDetails; - - /// The ID of the Oracle Cloud Infrastructure vault secret. - /// - /// Optional. - core.String? secretId; + core.String? machineLearningNotebookUri; - /// The SQL Web Developer URL for the Autonomous Database. + /// The URL of Machine Learning user management the Autonomous Database. /// /// Output only. - core.String? sqlWebDeveloperUrl; + core.String? machineLearningUserManagementUri; - /// The current lifecycle state of the Autonomous Database. + /// The URL of the MongoDB API for the Autonomous Database. /// /// Output only. - /// Possible string values are: - /// - "STATE_UNSPECIFIED" : Default unspecified value. - /// - "PROVISIONING" : Indicates that the Autonomous Database is in - /// provisioning state. - /// - "AVAILABLE" : Indicates that the Autonomous Database is in available - /// state. - /// - "STOPPING" : Indicates that the Autonomous Database is in stopping - /// state. - /// - "STOPPED" : Indicates that the Autonomous Database is in stopped state. - /// - "STARTING" : Indicates that the Autonomous Database is in starting - /// state. - /// - "TERMINATING" : Indicates that the Autonomous Database is in terminating - /// state. - /// - "TERMINATED" : Indicates that the Autonomous Database is in terminated - /// state. - /// - "UNAVAILABLE" : Indicates that the Autonomous Database is in unavailable - /// state. - /// - "RESTORE_IN_PROGRESS" : Indicates that the Autonomous Database restore - /// is in progress. - /// - "RESTORE_FAILED" : Indicates that the Autonomous Database failed to - /// restore. - /// - "BACKUP_IN_PROGRESS" : Indicates that the Autonomous Database backup is - /// in progress. - /// - "SCALE_IN_PROGRESS" : Indicates that the Autonomous Database scale is in - /// progress. - /// - "AVAILABLE_NEEDS_ATTENTION" : Indicates that the Autonomous Database is - /// available but needs attention state. - /// - "UPDATING" : Indicates that the Autonomous Database is in updating - /// state. - /// - "MAINTENANCE_IN_PROGRESS" : Indicates that the Autonomous Database's - /// maintenance is in progress state. - /// - "RESTARTING" : Indicates that the Autonomous Database is in restarting - /// state. - /// - "RECREATING" : Indicates that the Autonomous Database is in recreating - /// state. - /// - "ROLE_CHANGE_IN_PROGRESS" : Indicates that the Autonomous Database's - /// role change is in progress state. - /// - "UPGRADING" : Indicates that the Autonomous Database is in upgrading - /// state. - /// - "INACCESSIBLE" : Indicates that the Autonomous Database is in - /// inaccessible state. - /// - "STANDBY" : Indicates that the Autonomous Database is in standby state. - core.String? state; + core.String? mongoDbUri; - /// The list of available regions that can be used to create a clone for the + /// The Oracle REST Data Services (ORDS) URL of the Web Access for the /// Autonomous Database. /// /// Output only. - core.List? supportedCloneRegions; - - /// The storage space used by automatic backups of Autonomous Database, in - /// gigabytes. - /// - /// Output only. - core.double? totalAutoBackupStorageSizeGbs; + core.String? ordsUri; - /// The storage space used by Autonomous Database, in gigabytes. + /// The URL of the Oracle SQL Developer Web for the Autonomous Database. /// /// Output only. - core.int? usedDataStorageSizeTbs; + core.String? sqlDevWebUri; - /// The ID of the Oracle Cloud Infrastructure vault. - /// - /// Optional. - core.String? vaultId; + AutonomousDatabaseConnectionUrls({ + this.apexUri, + this.databaseTransformsUri, + this.graphStudioUri, + this.machineLearningNotebookUri, + this.machineLearningUserManagementUri, + this.mongoDbUri, + this.ordsUri, + this.sqlDevWebUri, + }); - AutonomousDatabaseProperties({ - this.actualUsedDataStorageSizeTb, - this.allocatedStorageSizeTb, - this.allowlistedIps, - this.apexDetails, - this.arePrimaryAllowlistedIpsUsed, + AutonomousDatabaseConnectionUrls.fromJson(core.Map json_) + : this( + apexUri: json_['apexUri'] as core.String?, + databaseTransformsUri: json_['databaseTransformsUri'] as core.String?, + graphStudioUri: json_['graphStudioUri'] as core.String?, + machineLearningNotebookUri: + json_['machineLearningNotebookUri'] as core.String?, + machineLearningUserManagementUri: + json_['machineLearningUserManagementUri'] as core.String?, + mongoDbUri: json_['mongoDbUri'] as core.String?, + ordsUri: json_['ordsUri'] as core.String?, + sqlDevWebUri: json_['sqlDevWebUri'] as core.String?, + ); + + core.Map toJson() => { + if (apexUri != null) 'apexUri': apexUri!, + if (databaseTransformsUri != null) + 'databaseTransformsUri': databaseTransformsUri!, + if (graphStudioUri != null) 'graphStudioUri': graphStudioUri!, + if (machineLearningNotebookUri != null) + 'machineLearningNotebookUri': machineLearningNotebookUri!, + if (machineLearningUserManagementUri != null) + 'machineLearningUserManagementUri': machineLearningUserManagementUri!, + if (mongoDbUri != null) 'mongoDbUri': mongoDbUri!, + if (ordsUri != null) 'ordsUri': ordsUri!, + if (sqlDevWebUri != null) 'sqlDevWebUri': sqlDevWebUri!, + }; +} + +/// The properties of an Autonomous Database. +class AutonomousDatabaseProperties { + /// The amount of storage currently being used for user and system data, in + /// terabytes. + /// + /// Output only. + core.double? actualUsedDataStorageSizeTb; + + /// The amount of storage currently allocated for the database tables and + /// billed for, rounded up in terabytes. + /// + /// Output only. + core.double? allocatedStorageSizeTb; + + /// The list of allowlisted IP addresses for the Autonomous Database. + /// + /// Optional. + core.List? allowlistedIps; + + /// The details for the Oracle APEX Application Development. + /// + /// Output only. + AutonomousDatabaseApex? apexDetails; + + /// This field indicates the status of Data Guard and Access control for the + /// Autonomous Database. + /// + /// The field's value is null if Data Guard is disabled or Access Control is + /// disabled. The field's value is TRUE if both Data Guard and Access Control + /// are enabled, and the Autonomous Database is using primary IP access + /// control list (ACL) for standby. The field's value is FALSE if both Data + /// Guard and Access Control are enabled, and the Autonomous Database is using + /// a different IP access control list (ACL) for standby compared to primary. + /// + /// Output only. + core.bool? arePrimaryAllowlistedIpsUsed; + + /// The Autonomous Container Database OCID. + /// + /// Output only. + core.String? autonomousContainerDatabaseId; + + /// The list of available Oracle Database upgrade versions for an Autonomous + /// Database. + /// + /// Output only. + core.List? availableUpgradeVersions; + + /// The retention period for the Autonomous Database. + /// + /// This field is specified in days, can range from 1 day to 60 days, and has + /// a default value of 60 days. + /// + /// Optional. + core.int? backupRetentionPeriodDays; + + /// The character set for the Autonomous Database. + /// + /// The default is AL32UTF8. + /// + /// Optional. + core.String? characterSet; + + /// The number of compute servers for the Autonomous Database. + /// + /// Optional. + core.double? computeCount; + + /// The connection strings used to connect to an Autonomous Database. + /// + /// Output only. + AutonomousDatabaseConnectionStrings? connectionStrings; + + /// The Oracle Connection URLs for an Autonomous Database. + /// + /// Output only. + AutonomousDatabaseConnectionUrls? connectionUrls; + + /// The number of CPU cores to be made available to the database. + /// + /// Optional. + core.int? cpuCoreCount; + + /// The list of customer contacts. + /// + /// Optional. + core.List? customerContacts; + + /// The date and time the Autonomous Data Guard role was changed for the + /// standby Autonomous Database. + /// + /// Output only. + core.String? dataGuardRoleChangedTime; + + /// The current state of the Data Safe registration for the Autonomous + /// Database. + /// + /// Output only. + /// Possible string values are: + /// - "DATA_SAFE_STATE_UNSPECIFIED" : Default unspecified value. + /// - "REGISTERING" : Registering data safe state. + /// - "REGISTERED" : Registered data safe state. + /// - "DEREGISTERING" : Deregistering data safe state. + /// - "NOT_REGISTERED" : Not registered data safe state. + /// - "FAILED" : Failed data safe state. + core.String? dataSafeState; + + /// The size of the data stored in the database, in gigabytes. + /// + /// Optional. + core.int? dataStorageSizeGb; + + /// The size of the data stored in the database, in terabytes. + /// + /// Optional. + core.int? dataStorageSizeTb; + + /// The current state of database management for the Autonomous Database. + /// + /// Output only. + /// Possible string values are: + /// - "DATABASE_MANAGEMENT_STATE_UNSPECIFIED" : Default unspecified value. + /// - "ENABLING" : Enabling Database Management state + /// - "ENABLED" : Enabled Database Management state + /// - "DISABLING" : Disabling Database Management state + /// - "NOT_ENABLED" : Not Enabled Database Management state + /// - "FAILED_ENABLING" : Failed enabling Database Management state + /// - "FAILED_DISABLING" : Failed disabling Database Management state + core.String? databaseManagementState; + + /// The edition of the Autonomous Databases. + /// + /// Optional. + /// Possible string values are: + /// - "DATABASE_EDITION_UNSPECIFIED" : Default unspecified value. + /// - "STANDARD_EDITION" : Standard Database Edition + /// - "ENTERPRISE_EDITION" : Enterprise Database Edition + core.String? dbEdition; + + /// The Oracle Database version for the Autonomous Database. + /// + /// Optional. + core.String? dbVersion; + + /// The workload type of the Autonomous Database. + /// + /// Required. + /// Possible string values are: + /// - "DB_WORKLOAD_UNSPECIFIED" : Default unspecified value. + /// - "OLTP" : Autonomous Transaction Processing database. + /// - "DW" : Autonomous Data Warehouse database. + /// - "AJD" : Autonomous JSON Database. + /// - "APEX" : Autonomous Database with the Oracle APEX Application + /// Development workload type. + core.String? dbWorkload; + + /// The date and time the Disaster Recovery role was changed for the standby + /// Autonomous Database. + /// + /// Output only. + core.String? disasterRecoveryRoleChangedTime; + + /// This field indicates the number of seconds of data loss during a Data + /// Guard failover. + /// + /// Output only. + core.String? failedDataRecoveryDuration; + + /// This field indicates if auto scaling is enabled for the Autonomous + /// Database CPU core count. + /// + /// Optional. + core.bool? isAutoScalingEnabled; + + /// This field indicates whether the Autonomous Database has local (in-region) + /// Data Guard enabled. + /// + /// Output only. + core.bool? isLocalDataGuardEnabled; + + /// This field indicates if auto scaling is enabled for the Autonomous + /// Database storage. + /// + /// Optional. + core.bool? isStorageAutoScalingEnabled; + + /// The license type used for the Autonomous Database. + /// + /// Required. + /// Possible string values are: + /// - "LICENSE_TYPE_UNSPECIFIED" : Unspecified + /// - "LICENSE_INCLUDED" : License included part of offer + /// - "BRING_YOUR_OWN_LICENSE" : Bring your own license + core.String? licenseType; + + /// The details of the current lifestyle state of the Autonomous Database. + /// + /// Output only. + core.String? lifecycleDetails; + + /// This field indicates the maximum data loss limit for an Autonomous + /// Database, in seconds. + /// + /// Output only. + core.int? localAdgAutoFailoverMaxDataLossLimit; + + /// This field indicates the local disaster recovery (DR) type of an + /// Autonomous Database. + /// + /// Output only. + /// Possible string values are: + /// - "LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED" : Default unspecified value. + /// - "ADG" : Autonomous Data Guard recovery. + /// - "BACKUP_BASED" : Backup based recovery. + core.String? localDisasterRecoveryType; + + /// The details of the Autonomous Data Guard standby database. + /// + /// Output only. + AutonomousDatabaseStandbySummary? localStandbyDb; + + /// The date and time when maintenance will begin. + /// + /// Output only. + core.String? maintenanceBeginTime; + + /// The date and time when maintenance will end. + /// + /// Output only. + core.String? maintenanceEndTime; + + /// The maintenance schedule of the Autonomous Database. + /// + /// Optional. + /// Possible string values are: + /// - "MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED" : Default unspecified value. + /// - "EARLY" : An EARLY maintenance schedule patches the database before the + /// regular scheduled maintenance. + /// - "REGULAR" : A REGULAR maintenance schedule follows the normal + /// maintenance cycle. + core.String? maintenanceScheduleType; + + /// The amount of memory enabled per ECPU, in gigabytes. + /// + /// Output only. + core.int? memoryPerOracleComputeUnitGbs; + + /// The memory assigned to in-memory tables in an Autonomous Database. + /// + /// Output only. + core.int? memoryTableGbs; + + /// This field specifies if the Autonomous Database requires mTLS connections. + /// + /// Optional. + core.bool? mtlsConnectionRequired; + + /// The national character set for the Autonomous Database. + /// + /// The default is AL16UTF16. + /// + /// Optional. + core.String? nCharacterSet; + + /// The long term backup schedule of the Autonomous Database. + /// + /// Output only. + core.String? nextLongTermBackupTime; + + /// The Oracle Cloud Infrastructure link for the Autonomous Database. + /// + /// Output only. + core.String? ociUrl; + + /// OCID of the Autonomous Database. + /// + /// https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + /// + /// Output only. + core.String? ocid; + + /// This field indicates the current mode of the Autonomous Database. + /// + /// Output only. + /// Possible string values are: + /// - "OPEN_MODE_UNSPECIFIED" : Default unspecified value. + /// - "READ_ONLY" : Read Only Mode + /// - "READ_WRITE" : Read Write Mode + core.String? openMode; + + /// This field indicates the state of Operations Insights for the Autonomous + /// Database. + /// + /// Output only. + /// Possible string values are: + /// - "OPERATIONS_INSIGHTS_STATE_UNSPECIFIED" : Default unspecified value. + /// - "ENABLING" : Enabling status for operation insights. + /// - "ENABLED" : Enabled status for operation insights. + /// - "DISABLING" : Disabling status for operation insights. + /// - "NOT_ENABLED" : Not Enabled status for operation insights. + /// - "FAILED_ENABLING" : Failed enabling status for operation insights. + /// - "FAILED_DISABLING" : Failed disabling status for operation insights. + core.String? operationsInsightsState; + + /// The list of OCIDs of standby databases located in Autonomous Data Guard + /// remote regions that are associated with the source database. + /// + /// Output only. + core.List? peerDbIds; + + /// The permission level of the Autonomous Database. + /// + /// Output only. + /// Possible string values are: + /// - "PERMISSION_LEVEL_UNSPECIFIED" : Default unspecified value. + /// - "RESTRICTED" : Restricted mode allows access only by admin users. + /// - "UNRESTRICTED" : Normal access. + core.String? permissionLevel; + + /// The private endpoint for the Autonomous Database. + /// + /// Output only. + core.String? privateEndpoint; + + /// The private endpoint IP address for the Autonomous Database. + /// + /// Optional. + core.String? privateEndpointIp; + + /// The private endpoint label for the Autonomous Database. + /// + /// Optional. + core.String? privateEndpointLabel; + + /// The refresh mode of the cloned Autonomous Database. + /// + /// Output only. + /// Possible string values are: + /// - "REFRESHABLE_MODE_UNSPECIFIED" : The default unspecified value. + /// - "AUTOMATIC" : AUTOMATIC indicates that the cloned database is + /// automatically refreshed with data from the source Autonomous Database. + /// - "MANUAL" : MANUAL indicates that the cloned database is manually + /// refreshed with data from the source Autonomous Database. + core.String? refreshableMode; + + /// The refresh State of the clone. + /// + /// Output only. + /// Possible string values are: + /// - "REFRESHABLE_STATE_UNSPECIFIED" : Default unspecified value. + /// - "REFRESHING" : Refreshing + /// - "NOT_REFRESHING" : Not refreshed + core.String? refreshableState; + + /// The Data Guard role of the Autonomous Database. + /// + /// Output only. + /// Possible string values are: + /// - "ROLE_UNSPECIFIED" : Default unspecified value. + /// - "PRIMARY" : Primary role + /// - "STANDBY" : Standby role + /// - "DISABLED_STANDBY" : Disabled standby role + /// - "BACKUP_COPY" : Backup copy role + /// - "SNAPSHOT_STANDBY" : Snapshot standby role + core.String? role; + + /// The list and details of the scheduled operations of the Autonomous + /// Database. + /// + /// Output only. + core.List? scheduledOperationDetails; + + /// The ID of the Oracle Cloud Infrastructure vault secret. + /// + /// Optional. + core.String? secretId; + + /// The SQL Web Developer URL for the Autonomous Database. + /// + /// Output only. + core.String? sqlWebDeveloperUrl; + + /// The current lifecycle state of the Autonomous Database. + /// + /// Output only. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : Default unspecified value. + /// - "PROVISIONING" : Indicates that the Autonomous Database is in + /// provisioning state. + /// - "AVAILABLE" : Indicates that the Autonomous Database is in available + /// state. + /// - "STOPPING" : Indicates that the Autonomous Database is in stopping + /// state. + /// - "STOPPED" : Indicates that the Autonomous Database is in stopped state. + /// - "STARTING" : Indicates that the Autonomous Database is in starting + /// state. + /// - "TERMINATING" : Indicates that the Autonomous Database is in terminating + /// state. + /// - "TERMINATED" : Indicates that the Autonomous Database is in terminated + /// state. + /// - "UNAVAILABLE" : Indicates that the Autonomous Database is in unavailable + /// state. + /// - "RESTORE_IN_PROGRESS" : Indicates that the Autonomous Database restore + /// is in progress. + /// - "RESTORE_FAILED" : Indicates that the Autonomous Database failed to + /// restore. + /// - "BACKUP_IN_PROGRESS" : Indicates that the Autonomous Database backup is + /// in progress. + /// - "SCALE_IN_PROGRESS" : Indicates that the Autonomous Database scale is in + /// progress. + /// - "AVAILABLE_NEEDS_ATTENTION" : Indicates that the Autonomous Database is + /// available but needs attention state. + /// - "UPDATING" : Indicates that the Autonomous Database is in updating + /// state. + /// - "MAINTENANCE_IN_PROGRESS" : Indicates that the Autonomous Database's + /// maintenance is in progress state. + /// - "RESTARTING" : Indicates that the Autonomous Database is in restarting + /// state. + /// - "RECREATING" : Indicates that the Autonomous Database is in recreating + /// state. + /// - "ROLE_CHANGE_IN_PROGRESS" : Indicates that the Autonomous Database's + /// role change is in progress state. + /// - "UPGRADING" : Indicates that the Autonomous Database is in upgrading + /// state. + /// - "INACCESSIBLE" : Indicates that the Autonomous Database is in + /// inaccessible state. + /// - "STANDBY" : Indicates that the Autonomous Database is in standby state. + core.String? state; + + /// The list of available regions that can be used to create a clone for the + /// Autonomous Database. + /// + /// Output only. + core.List? supportedCloneRegions; + + /// The storage space used by automatic backups of Autonomous Database, in + /// gigabytes. + /// + /// Output only. + core.double? totalAutoBackupStorageSizeGbs; + + /// The storage space used by Autonomous Database, in gigabytes. + /// + /// Output only. + core.int? usedDataStorageSizeTbs; + + /// The ID of the Oracle Cloud Infrastructure vault. + /// + /// Optional. + core.String? vaultId; + + AutonomousDatabaseProperties({ + this.actualUsedDataStorageSizeTb, + this.allocatedStorageSizeTb, + this.allowlistedIps, + this.apexDetails, + this.arePrimaryAllowlistedIpsUsed, this.autonomousContainerDatabaseId, this.availableUpgradeVersions, this.backupRetentionPeriodDays, this.characterSet, this.computeCount, - this.connectionStrings, - this.connectionUrls, - this.cpuCoreCount, + this.connectionStrings, + this.connectionUrls, + this.cpuCoreCount, + this.customerContacts, + this.dataGuardRoleChangedTime, + this.dataSafeState, + this.dataStorageSizeGb, + this.dataStorageSizeTb, + this.databaseManagementState, + this.dbEdition, + this.dbVersion, + this.dbWorkload, + this.disasterRecoveryRoleChangedTime, + this.failedDataRecoveryDuration, + this.isAutoScalingEnabled, + this.isLocalDataGuardEnabled, + this.isStorageAutoScalingEnabled, + this.licenseType, + this.lifecycleDetails, + this.localAdgAutoFailoverMaxDataLossLimit, + this.localDisasterRecoveryType, + this.localStandbyDb, + this.maintenanceBeginTime, + this.maintenanceEndTime, + this.maintenanceScheduleType, + this.memoryPerOracleComputeUnitGbs, + this.memoryTableGbs, + this.mtlsConnectionRequired, + this.nCharacterSet, + this.nextLongTermBackupTime, + this.ociUrl, + this.ocid, + this.openMode, + this.operationsInsightsState, + this.peerDbIds, + this.permissionLevel, + this.privateEndpoint, + this.privateEndpointIp, + this.privateEndpointLabel, + this.refreshableMode, + this.refreshableState, + this.role, + this.scheduledOperationDetails, + this.secretId, + this.sqlWebDeveloperUrl, + this.state, + this.supportedCloneRegions, + this.totalAutoBackupStorageSizeGbs, + this.usedDataStorageSizeTbs, + this.vaultId, + }); + + AutonomousDatabaseProperties.fromJson(core.Map json_) + : this( + actualUsedDataStorageSizeTb: + (json_['actualUsedDataStorageSizeTb'] as core.num?)?.toDouble(), + allocatedStorageSizeTb: + (json_['allocatedStorageSizeTb'] as core.num?)?.toDouble(), + allowlistedIps: + (json_['allowlistedIps'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + apexDetails: + json_.containsKey('apexDetails') + ? AutonomousDatabaseApex.fromJson( + json_['apexDetails'] as core.Map, + ) + : null, + arePrimaryAllowlistedIpsUsed: + json_['arePrimaryAllowlistedIpsUsed'] as core.bool?, + autonomousContainerDatabaseId: + json_['autonomousContainerDatabaseId'] as core.String?, + availableUpgradeVersions: + (json_['availableUpgradeVersions'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + backupRetentionPeriodDays: + json_['backupRetentionPeriodDays'] as core.int?, + characterSet: json_['characterSet'] as core.String?, + computeCount: (json_['computeCount'] as core.num?)?.toDouble(), + connectionStrings: + json_.containsKey('connectionStrings') + ? AutonomousDatabaseConnectionStrings.fromJson( + json_['connectionStrings'] + as core.Map, + ) + : null, + connectionUrls: + json_.containsKey('connectionUrls') + ? AutonomousDatabaseConnectionUrls.fromJson( + json_['connectionUrls'] + as core.Map, + ) + : null, + cpuCoreCount: json_['cpuCoreCount'] as core.int?, + customerContacts: + (json_['customerContacts'] as core.List?) + ?.map( + (value) => CustomerContact.fromJson( + value as core.Map, + ), + ) + .toList(), + dataGuardRoleChangedTime: + json_['dataGuardRoleChangedTime'] as core.String?, + dataSafeState: json_['dataSafeState'] as core.String?, + dataStorageSizeGb: json_['dataStorageSizeGb'] as core.int?, + dataStorageSizeTb: json_['dataStorageSizeTb'] as core.int?, + databaseManagementState: + json_['databaseManagementState'] as core.String?, + dbEdition: json_['dbEdition'] as core.String?, + dbVersion: json_['dbVersion'] as core.String?, + dbWorkload: json_['dbWorkload'] as core.String?, + disasterRecoveryRoleChangedTime: + json_['disasterRecoveryRoleChangedTime'] as core.String?, + failedDataRecoveryDuration: + json_['failedDataRecoveryDuration'] as core.String?, + isAutoScalingEnabled: json_['isAutoScalingEnabled'] as core.bool?, + isLocalDataGuardEnabled: json_['isLocalDataGuardEnabled'] as core.bool?, + isStorageAutoScalingEnabled: + json_['isStorageAutoScalingEnabled'] as core.bool?, + licenseType: json_['licenseType'] as core.String?, + lifecycleDetails: json_['lifecycleDetails'] as core.String?, + localAdgAutoFailoverMaxDataLossLimit: + json_['localAdgAutoFailoverMaxDataLossLimit'] as core.int?, + localDisasterRecoveryType: + json_['localDisasterRecoveryType'] as core.String?, + localStandbyDb: + json_.containsKey('localStandbyDb') + ? AutonomousDatabaseStandbySummary.fromJson( + json_['localStandbyDb'] + as core.Map, + ) + : null, + maintenanceBeginTime: json_['maintenanceBeginTime'] as core.String?, + maintenanceEndTime: json_['maintenanceEndTime'] as core.String?, + maintenanceScheduleType: + json_['maintenanceScheduleType'] as core.String?, + memoryPerOracleComputeUnitGbs: + json_['memoryPerOracleComputeUnitGbs'] as core.int?, + memoryTableGbs: json_['memoryTableGbs'] as core.int?, + mtlsConnectionRequired: json_['mtlsConnectionRequired'] as core.bool?, + nCharacterSet: json_['nCharacterSet'] as core.String?, + nextLongTermBackupTime: json_['nextLongTermBackupTime'] as core.String?, + ociUrl: json_['ociUrl'] as core.String?, + ocid: json_['ocid'] as core.String?, + openMode: json_['openMode'] as core.String?, + operationsInsightsState: + json_['operationsInsightsState'] as core.String?, + peerDbIds: + (json_['peerDbIds'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + permissionLevel: json_['permissionLevel'] as core.String?, + privateEndpoint: json_['privateEndpoint'] as core.String?, + privateEndpointIp: json_['privateEndpointIp'] as core.String?, + privateEndpointLabel: json_['privateEndpointLabel'] as core.String?, + refreshableMode: json_['refreshableMode'] as core.String?, + refreshableState: json_['refreshableState'] as core.String?, + role: json_['role'] as core.String?, + scheduledOperationDetails: + (json_['scheduledOperationDetails'] as core.List?) + ?.map( + (value) => ScheduledOperationDetails.fromJson( + value as core.Map, + ), + ) + .toList(), + secretId: json_['secretId'] as core.String?, + sqlWebDeveloperUrl: json_['sqlWebDeveloperUrl'] as core.String?, + state: json_['state'] as core.String?, + supportedCloneRegions: + (json_['supportedCloneRegions'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + totalAutoBackupStorageSizeGbs: + (json_['totalAutoBackupStorageSizeGbs'] as core.num?)?.toDouble(), + usedDataStorageSizeTbs: json_['usedDataStorageSizeTbs'] as core.int?, + vaultId: json_['vaultId'] as core.String?, + ); + + core.Map toJson() => { + if (actualUsedDataStorageSizeTb != null) + 'actualUsedDataStorageSizeTb': actualUsedDataStorageSizeTb!, + if (allocatedStorageSizeTb != null) + 'allocatedStorageSizeTb': allocatedStorageSizeTb!, + if (allowlistedIps != null) 'allowlistedIps': allowlistedIps!, + if (apexDetails != null) 'apexDetails': apexDetails!, + if (arePrimaryAllowlistedIpsUsed != null) + 'arePrimaryAllowlistedIpsUsed': arePrimaryAllowlistedIpsUsed!, + if (autonomousContainerDatabaseId != null) + 'autonomousContainerDatabaseId': autonomousContainerDatabaseId!, + if (availableUpgradeVersions != null) + 'availableUpgradeVersions': availableUpgradeVersions!, + if (backupRetentionPeriodDays != null) + 'backupRetentionPeriodDays': backupRetentionPeriodDays!, + if (characterSet != null) 'characterSet': characterSet!, + if (computeCount != null) 'computeCount': computeCount!, + if (connectionStrings != null) 'connectionStrings': connectionStrings!, + if (connectionUrls != null) 'connectionUrls': connectionUrls!, + if (cpuCoreCount != null) 'cpuCoreCount': cpuCoreCount!, + if (customerContacts != null) 'customerContacts': customerContacts!, + if (dataGuardRoleChangedTime != null) + 'dataGuardRoleChangedTime': dataGuardRoleChangedTime!, + if (dataSafeState != null) 'dataSafeState': dataSafeState!, + if (dataStorageSizeGb != null) 'dataStorageSizeGb': dataStorageSizeGb!, + if (dataStorageSizeTb != null) 'dataStorageSizeTb': dataStorageSizeTb!, + if (databaseManagementState != null) + 'databaseManagementState': databaseManagementState!, + if (dbEdition != null) 'dbEdition': dbEdition!, + if (dbVersion != null) 'dbVersion': dbVersion!, + if (dbWorkload != null) 'dbWorkload': dbWorkload!, + if (disasterRecoveryRoleChangedTime != null) + 'disasterRecoveryRoleChangedTime': disasterRecoveryRoleChangedTime!, + if (failedDataRecoveryDuration != null) + 'failedDataRecoveryDuration': failedDataRecoveryDuration!, + if (isAutoScalingEnabled != null) + 'isAutoScalingEnabled': isAutoScalingEnabled!, + if (isLocalDataGuardEnabled != null) + 'isLocalDataGuardEnabled': isLocalDataGuardEnabled!, + if (isStorageAutoScalingEnabled != null) + 'isStorageAutoScalingEnabled': isStorageAutoScalingEnabled!, + if (licenseType != null) 'licenseType': licenseType!, + if (lifecycleDetails != null) 'lifecycleDetails': lifecycleDetails!, + if (localAdgAutoFailoverMaxDataLossLimit != null) + 'localAdgAutoFailoverMaxDataLossLimit': + localAdgAutoFailoverMaxDataLossLimit!, + if (localDisasterRecoveryType != null) + 'localDisasterRecoveryType': localDisasterRecoveryType!, + if (localStandbyDb != null) 'localStandbyDb': localStandbyDb!, + if (maintenanceBeginTime != null) + 'maintenanceBeginTime': maintenanceBeginTime!, + if (maintenanceEndTime != null) 'maintenanceEndTime': maintenanceEndTime!, + if (maintenanceScheduleType != null) + 'maintenanceScheduleType': maintenanceScheduleType!, + if (memoryPerOracleComputeUnitGbs != null) + 'memoryPerOracleComputeUnitGbs': memoryPerOracleComputeUnitGbs!, + if (memoryTableGbs != null) 'memoryTableGbs': memoryTableGbs!, + if (mtlsConnectionRequired != null) + 'mtlsConnectionRequired': mtlsConnectionRequired!, + if (nCharacterSet != null) 'nCharacterSet': nCharacterSet!, + if (nextLongTermBackupTime != null) + 'nextLongTermBackupTime': nextLongTermBackupTime!, + if (ociUrl != null) 'ociUrl': ociUrl!, + if (ocid != null) 'ocid': ocid!, + if (openMode != null) 'openMode': openMode!, + if (operationsInsightsState != null) + 'operationsInsightsState': operationsInsightsState!, + if (peerDbIds != null) 'peerDbIds': peerDbIds!, + if (permissionLevel != null) 'permissionLevel': permissionLevel!, + if (privateEndpoint != null) 'privateEndpoint': privateEndpoint!, + if (privateEndpointIp != null) 'privateEndpointIp': privateEndpointIp!, + if (privateEndpointLabel != null) + 'privateEndpointLabel': privateEndpointLabel!, + if (refreshableMode != null) 'refreshableMode': refreshableMode!, + if (refreshableState != null) 'refreshableState': refreshableState!, + if (role != null) 'role': role!, + if (scheduledOperationDetails != null) + 'scheduledOperationDetails': scheduledOperationDetails!, + if (secretId != null) 'secretId': secretId!, + if (sqlWebDeveloperUrl != null) 'sqlWebDeveloperUrl': sqlWebDeveloperUrl!, + if (state != null) 'state': state!, + if (supportedCloneRegions != null) + 'supportedCloneRegions': supportedCloneRegions!, + if (totalAutoBackupStorageSizeGbs != null) + 'totalAutoBackupStorageSizeGbs': totalAutoBackupStorageSizeGbs!, + if (usedDataStorageSizeTbs != null) + 'usedDataStorageSizeTbs': usedDataStorageSizeTbs!, + if (vaultId != null) 'vaultId': vaultId!, + }; +} + +/// Autonomous Data Guard standby database details. +/// +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseStandbySummary +class AutonomousDatabaseStandbySummary { + /// The date and time the Autonomous Data Guard role was switched for the + /// standby Autonomous Database. + /// + /// Output only. + core.String? dataGuardRoleChangedTime; + + /// The date and time the Disaster Recovery role was switched for the standby + /// Autonomous Database. + /// + /// Output only. + core.String? disasterRecoveryRoleChangedTime; + + /// The amount of time, in seconds, that the data of the standby database lags + /// in comparison to the data of the primary database. + /// + /// Output only. + core.String? lagTimeDuration; + + /// The additional details about the current lifecycle state of the Autonomous + /// Database. + /// + /// Output only. + core.String? lifecycleDetails; + + /// The current lifecycle state of the Autonomous Database. + /// + /// Output only. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : Default unspecified value. + /// - "PROVISIONING" : Indicates that the Autonomous Database is in + /// provisioning state. + /// - "AVAILABLE" : Indicates that the Autonomous Database is in available + /// state. + /// - "STOPPING" : Indicates that the Autonomous Database is in stopping + /// state. + /// - "STOPPED" : Indicates that the Autonomous Database is in stopped state. + /// - "STARTING" : Indicates that the Autonomous Database is in starting + /// state. + /// - "TERMINATING" : Indicates that the Autonomous Database is in terminating + /// state. + /// - "TERMINATED" : Indicates that the Autonomous Database is in terminated + /// state. + /// - "UNAVAILABLE" : Indicates that the Autonomous Database is in unavailable + /// state. + /// - "RESTORE_IN_PROGRESS" : Indicates that the Autonomous Database restore + /// is in progress. + /// - "RESTORE_FAILED" : Indicates that the Autonomous Database failed to + /// restore. + /// - "BACKUP_IN_PROGRESS" : Indicates that the Autonomous Database backup is + /// in progress. + /// - "SCALE_IN_PROGRESS" : Indicates that the Autonomous Database scale is in + /// progress. + /// - "AVAILABLE_NEEDS_ATTENTION" : Indicates that the Autonomous Database is + /// available but needs attention state. + /// - "UPDATING" : Indicates that the Autonomous Database is in updating + /// state. + /// - "MAINTENANCE_IN_PROGRESS" : Indicates that the Autonomous Database's + /// maintenance is in progress state. + /// - "RESTARTING" : Indicates that the Autonomous Database is in restarting + /// state. + /// - "RECREATING" : Indicates that the Autonomous Database is in recreating + /// state. + /// - "ROLE_CHANGE_IN_PROGRESS" : Indicates that the Autonomous Database's + /// role change is in progress state. + /// - "UPGRADING" : Indicates that the Autonomous Database is in upgrading + /// state. + /// - "INACCESSIBLE" : Indicates that the Autonomous Database is in + /// inaccessible state. + /// - "STANDBY" : Indicates that the Autonomous Database is in standby state. + core.String? state; + + AutonomousDatabaseStandbySummary({ + this.dataGuardRoleChangedTime, + this.disasterRecoveryRoleChangedTime, + this.lagTimeDuration, + this.lifecycleDetails, + this.state, + }); + + AutonomousDatabaseStandbySummary.fromJson(core.Map json_) + : this( + dataGuardRoleChangedTime: + json_['dataGuardRoleChangedTime'] as core.String?, + disasterRecoveryRoleChangedTime: + json_['disasterRecoveryRoleChangedTime'] as core.String?, + lagTimeDuration: json_['lagTimeDuration'] as core.String?, + lifecycleDetails: json_['lifecycleDetails'] as core.String?, + state: json_['state'] as core.String?, + ); + + core.Map toJson() => { + if (dataGuardRoleChangedTime != null) + 'dataGuardRoleChangedTime': dataGuardRoleChangedTime!, + if (disasterRecoveryRoleChangedTime != null) + 'disasterRecoveryRoleChangedTime': disasterRecoveryRoleChangedTime!, + if (lagTimeDuration != null) 'lagTimeDuration': lagTimeDuration!, + if (lifecycleDetails != null) 'lifecycleDetails': lifecycleDetails!, + if (state != null) 'state': state!, + }; +} + +/// Details of the Autonomous Database version. +/// +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDbVersionSummary/ +class AutonomousDbVersion { + /// The Autonomous Database workload type. + /// + /// Output only. + /// Possible string values are: + /// - "DB_WORKLOAD_UNSPECIFIED" : Default unspecified value. + /// - "OLTP" : Autonomous Transaction Processing database. + /// - "DW" : Autonomous Data Warehouse database. + /// - "AJD" : Autonomous JSON Database. + /// - "APEX" : Autonomous Database with the Oracle APEX Application + /// Development workload type. + core.String? dbWorkload; + + /// Identifier. + /// + /// The name of the Autonomous Database Version resource with the format: + /// projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version} + core.String? name; + + /// An Oracle Database version for Autonomous Database. + /// + /// Output only. + core.String? version; + + /// A URL that points to a detailed description of the Autonomous Database + /// version. + /// + /// Output only. + core.String? workloadUri; + + AutonomousDbVersion({ + this.dbWorkload, + this.name, + this.version, + this.workloadUri, + }); + + AutonomousDbVersion.fromJson(core.Map json_) + : this( + dbWorkload: json_['dbWorkload'] as core.String?, + name: json_['name'] as core.String?, + version: json_['version'] as core.String?, + workloadUri: json_['workloadUri'] as core.String?, + ); + + core.Map toJson() => { + if (dbWorkload != null) 'dbWorkload': dbWorkload!, + if (name != null) 'name': name!, + if (version != null) 'version': version!, + if (workloadUri != null) 'workloadUri': workloadUri!, + }; +} + +/// The details of the database backup destination. +class BackupDestinationDetails { + /// The type of the database backup destination. + /// + /// Optional. + /// Possible string values are: + /// - "BACKUP_DESTINATION_TYPE_UNSPECIFIED" : Default unspecified value. + /// - "NFS" : Backup destination type is NFS. + /// - "RECOVERY_APPLIANCE" : Backup destination type is Recovery Appliance. + /// - "OBJECT_STORE" : Backup destination type is Object Store. + /// - "LOCAL" : Backup destination type is Local. + /// - "DBRS" : Backup destination type is DBRS. + core.String? type; + + BackupDestinationDetails({this.type}); + + BackupDestinationDetails.fromJson(core.Map json_) + : this(type: json_['type'] as core.String?); + + core.Map toJson() => { + if (type != null) 'type': type!, + }; +} + +/// The request message for Operations.CancelOperation. +typedef CancelOperationRequest = $Empty; + +/// Details of the OCI Cloud Account. +class CloudAccountDetails { + /// URL to create a new account and link. + /// + /// Output only. + core.String? accountCreationUri; + + /// OCI account name. + /// + /// Output only. + core.String? cloudAccount; + + /// OCI account home region. + /// + /// Output only. + core.String? cloudAccountHomeRegion; + + /// URL to link an existing account. + /// + /// Output only. + core.String? linkExistingAccountUri; + + CloudAccountDetails({ + this.accountCreationUri, + this.cloudAccount, + this.cloudAccountHomeRegion, + this.linkExistingAccountUri, + }); + + CloudAccountDetails.fromJson(core.Map json_) + : this( + accountCreationUri: json_['accountCreationUri'] as core.String?, + cloudAccount: json_['cloudAccount'] as core.String?, + cloudAccountHomeRegion: json_['cloudAccountHomeRegion'] as core.String?, + linkExistingAccountUri: json_['linkExistingAccountUri'] as core.String?, + ); + + core.Map toJson() => { + if (accountCreationUri != null) 'accountCreationUri': accountCreationUri!, + if (cloudAccount != null) 'cloudAccount': cloudAccount!, + if (cloudAccountHomeRegion != null) + 'cloudAccountHomeRegion': cloudAccountHomeRegion!, + if (linkExistingAccountUri != null) + 'linkExistingAccountUri': linkExistingAccountUri!, + }; +} + +/// Represents CloudExadataInfrastructure resource. +/// +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/ +class CloudExadataInfrastructure { + /// The date and time that the Exadata Infrastructure was created. + /// + /// Output only. + core.String? createTime; + + /// User friendly name for this resource. + /// + /// Optional. + core.String? displayName; + + /// Entitlement ID of the private offer against which this infrastructure + /// resource is provisioned. + /// + /// Output only. + core.String? entitlementId; + + /// The GCP Oracle zone where Oracle Exadata Infrastructure is hosted. + /// + /// Example: us-east4-b-r2. If not specified, the system will pick a zone + /// based on availability. + /// + /// Optional. + core.String? gcpOracleZone; + + /// Labels or tags associated with the resource. + /// + /// Optional. + core.Map? labels; + + /// Identifier. + /// + /// The name of the Exadata Infrastructure resource with the format: + /// projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure} + core.String? name; + + /// Various properties of the infra. + /// + /// Optional. + CloudExadataInfrastructureProperties? properties; + + CloudExadataInfrastructure({ + this.createTime, + this.displayName, + this.entitlementId, + this.gcpOracleZone, + this.labels, + this.name, + this.properties, + }); + + CloudExadataInfrastructure.fromJson(core.Map json_) + : this( + createTime: json_['createTime'] as core.String?, + displayName: json_['displayName'] as core.String?, + entitlementId: json_['entitlementId'] as core.String?, + gcpOracleZone: json_['gcpOracleZone'] as core.String?, + labels: (json_['labels'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), + name: json_['name'] as core.String?, + properties: + json_.containsKey('properties') + ? CloudExadataInfrastructureProperties.fromJson( + json_['properties'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (createTime != null) 'createTime': createTime!, + if (displayName != null) 'displayName': displayName!, + if (entitlementId != null) 'entitlementId': entitlementId!, + if (gcpOracleZone != null) 'gcpOracleZone': gcpOracleZone!, + if (labels != null) 'labels': labels!, + if (name != null) 'name': name!, + if (properties != null) 'properties': properties!, + }; +} + +/// Various properties of Exadata Infrastructure. +class CloudExadataInfrastructureProperties { + /// The requested number of additional storage servers activated for the + /// Exadata Infrastructure. + /// + /// Output only. + core.int? activatedStorageCount; + + /// The requested number of additional storage servers for the Exadata + /// Infrastructure. + /// + /// Output only. + core.int? additionalStorageCount; + + /// The available storage can be allocated to the Exadata Infrastructure + /// resource, in gigabytes (GB). + /// + /// Output only. + core.int? availableStorageSizeGb; + + /// The number of compute servers for the Exadata Infrastructure. + /// + /// Optional. + core.int? computeCount; + + /// The compute model of the Exadata Infrastructure. + /// + /// Output only. + /// Possible string values are: + /// - "COMPUTE_MODEL_UNSPECIFIED" : Unspecified compute model. + /// - "COMPUTE_MODEL_ECPU" : Abstract measure of compute resources. ECPUs are + /// based on the number of cores elastically allocated from a pool of compute + /// and storage servers. + /// - "COMPUTE_MODEL_OCPU" : Physical measure of compute resources. OCPUs are + /// based on the physical core of a processor. + core.String? computeModel; + + /// The number of enabled CPU cores. + /// + /// Output only. + core.int? cpuCount; + + /// The list of customer contacts. + /// + /// Optional. + core.List? customerContacts; + + /// Size, in terabytes, of the DATA disk group. + /// + /// Output only. + core.double? dataStorageSizeTb; + + /// The database server type of the Exadata Infrastructure. + /// + /// Output only. + core.String? databaseServerType; + + /// The local node storage allocated in GBs. + /// + /// Output only. + core.int? dbNodeStorageSizeGb; + + /// The software version of the database servers (dom0) in the Exadata + /// Infrastructure. + /// + /// Output only. + core.String? dbServerVersion; + + /// Maintenance window for repair. + /// + /// Optional. + MaintenanceWindow? maintenanceWindow; + + /// The total number of CPU cores available. + /// + /// Output only. + core.int? maxCpuCount; + + /// The total available DATA disk group size. + /// + /// Output only. + core.double? maxDataStorageTb; + + /// The total local node storage available in GBs. + /// + /// Output only. + core.int? maxDbNodeStorageSizeGb; + + /// The total memory available in GBs. + /// + /// Output only. + core.int? maxMemoryGb; + + /// The memory allocated in GBs. + /// + /// Output only. + core.int? memorySizeGb; + + /// The monthly software version of the database servers (dom0) in the Exadata + /// Infrastructure. + /// + /// Example: 20.1.15 + /// + /// Output only. + core.String? monthlyDbServerVersion; + + /// The monthly software version of the storage servers (cells) in the Exadata + /// Infrastructure. + /// + /// Example: 20.1.15 + /// + /// Output only. + core.String? monthlyStorageServerVersion; + + /// The OCID of the next maintenance run. + /// + /// Output only. + core.String? nextMaintenanceRunId; + + /// The time when the next maintenance run will occur. + /// + /// Output only. + core.String? nextMaintenanceRunTime; + + /// The time when the next security maintenance run will occur. + /// + /// Output only. + core.String? nextSecurityMaintenanceRunTime; + + /// Deep link to the OCI console to view this resource. + /// + /// Output only. + core.String? ociUrl; + + /// OCID of created infra. + /// + /// https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + /// + /// Output only. + core.String? ocid; + + /// The shape of the Exadata Infrastructure. + /// + /// The shape determines the amount of CPU, storage, and memory resources + /// allocated to the instance. + /// + /// Required. + core.String? shape; + + /// The current lifecycle state of the Exadata Infrastructure. + /// + /// Output only. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : Default unspecified value. + /// - "PROVISIONING" : The Exadata Infrastructure is being provisioned. + /// - "AVAILABLE" : The Exadata Infrastructure is available for use. + /// - "UPDATING" : The Exadata Infrastructure is being updated. + /// - "TERMINATING" : The Exadata Infrastructure is being terminated. + /// - "TERMINATED" : The Exadata Infrastructure is terminated. + /// - "FAILED" : The Exadata Infrastructure is in failed state. + /// - "MAINTENANCE_IN_PROGRESS" : The Exadata Infrastructure is in + /// maintenance. + core.String? state; + + /// The number of Cloud Exadata storage servers for the Exadata + /// Infrastructure. + /// + /// Optional. + core.int? storageCount; + + /// The storage server type of the Exadata Infrastructure. + /// + /// Output only. + core.String? storageServerType; + + /// The software version of the storage servers (cells) in the Exadata + /// Infrastructure. + /// + /// Output only. + core.String? storageServerVersion; + + /// The total storage allocated to the Exadata Infrastructure resource, in + /// gigabytes (GB). + /// + /// Optional. + core.int? totalStorageSizeGb; + + CloudExadataInfrastructureProperties({ + this.activatedStorageCount, + this.additionalStorageCount, + this.availableStorageSizeGb, + this.computeCount, + this.computeModel, + this.cpuCount, this.customerContacts, - this.dataGuardRoleChangedTime, - this.dataSafeState, - this.dataStorageSizeGb, this.dataStorageSizeTb, - this.databaseManagementState, - this.dbEdition, - this.dbVersion, - this.dbWorkload, - this.disasterRecoveryRoleChangedTime, - this.failedDataRecoveryDuration, - this.isAutoScalingEnabled, - this.isLocalDataGuardEnabled, - this.isStorageAutoScalingEnabled, - this.licenseType, - this.lifecycleDetails, - this.localAdgAutoFailoverMaxDataLossLimit, - this.localDisasterRecoveryType, - this.localStandbyDb, - this.maintenanceBeginTime, - this.maintenanceEndTime, - this.maintenanceScheduleType, - this.memoryPerOracleComputeUnitGbs, - this.memoryTableGbs, - this.mtlsConnectionRequired, - this.nCharacterSet, - this.nextLongTermBackupTime, + this.databaseServerType, + this.dbNodeStorageSizeGb, + this.dbServerVersion, + this.maintenanceWindow, + this.maxCpuCount, + this.maxDataStorageTb, + this.maxDbNodeStorageSizeGb, + this.maxMemoryGb, + this.memorySizeGb, + this.monthlyDbServerVersion, + this.monthlyStorageServerVersion, + this.nextMaintenanceRunId, + this.nextMaintenanceRunTime, + this.nextSecurityMaintenanceRunTime, this.ociUrl, this.ocid, - this.openMode, - this.operationsInsightsState, - this.peerDbIds, - this.permissionLevel, - this.privateEndpoint, - this.privateEndpointIp, - this.privateEndpointLabel, - this.refreshableMode, - this.refreshableState, - this.role, - this.scheduledOperationDetails, - this.secretId, - this.sqlWebDeveloperUrl, + this.shape, this.state, - this.supportedCloneRegions, - this.totalAutoBackupStorageSizeGbs, - this.usedDataStorageSizeTbs, - this.vaultId, + this.storageCount, + this.storageServerType, + this.storageServerVersion, + this.totalStorageSizeGb, }); - AutonomousDatabaseProperties.fromJson(core.Map json_) + CloudExadataInfrastructureProperties.fromJson(core.Map json_) : this( - actualUsedDataStorageSizeTb: - (json_['actualUsedDataStorageSizeTb'] as core.num?)?.toDouble(), - allocatedStorageSizeTb: - (json_['allocatedStorageSizeTb'] as core.num?)?.toDouble(), - allowlistedIps: - (json_['allowlistedIps'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - apexDetails: - json_.containsKey('apexDetails') - ? AutonomousDatabaseApex.fromJson( - json_['apexDetails'] as core.Map, - ) - : null, - arePrimaryAllowlistedIpsUsed: - json_['arePrimaryAllowlistedIpsUsed'] as core.bool?, - autonomousContainerDatabaseId: - json_['autonomousContainerDatabaseId'] as core.String?, - availableUpgradeVersions: - (json_['availableUpgradeVersions'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - backupRetentionPeriodDays: - json_['backupRetentionPeriodDays'] as core.int?, - characterSet: json_['characterSet'] as core.String?, - computeCount: (json_['computeCount'] as core.num?)?.toDouble(), - connectionStrings: - json_.containsKey('connectionStrings') - ? AutonomousDatabaseConnectionStrings.fromJson( - json_['connectionStrings'] - as core.Map, - ) - : null, - connectionUrls: - json_.containsKey('connectionUrls') - ? AutonomousDatabaseConnectionUrls.fromJson( - json_['connectionUrls'] - as core.Map, - ) - : null, - cpuCoreCount: json_['cpuCoreCount'] as core.int?, + activatedStorageCount: json_['activatedStorageCount'] as core.int?, + additionalStorageCount: json_['additionalStorageCount'] as core.int?, + availableStorageSizeGb: json_['availableStorageSizeGb'] as core.int?, + computeCount: json_['computeCount'] as core.int?, + computeModel: json_['computeModel'] as core.String?, + cpuCount: json_['cpuCount'] as core.int?, customerContacts: (json_['customerContacts'] as core.List?) ?.map( @@ -3489,1100 +4852,1362 @@ class AutonomousDatabaseProperties { ), ) .toList(), - dataGuardRoleChangedTime: - json_['dataGuardRoleChangedTime'] as core.String?, - dataSafeState: json_['dataSafeState'] as core.String?, - dataStorageSizeGb: json_['dataStorageSizeGb'] as core.int?, - dataStorageSizeTb: json_['dataStorageSizeTb'] as core.int?, - databaseManagementState: - json_['databaseManagementState'] as core.String?, - dbEdition: json_['dbEdition'] as core.String?, - dbVersion: json_['dbVersion'] as core.String?, - dbWorkload: json_['dbWorkload'] as core.String?, - disasterRecoveryRoleChangedTime: - json_['disasterRecoveryRoleChangedTime'] as core.String?, - failedDataRecoveryDuration: - json_['failedDataRecoveryDuration'] as core.String?, - isAutoScalingEnabled: json_['isAutoScalingEnabled'] as core.bool?, - isLocalDataGuardEnabled: json_['isLocalDataGuardEnabled'] as core.bool?, - isStorageAutoScalingEnabled: - json_['isStorageAutoScalingEnabled'] as core.bool?, - licenseType: json_['licenseType'] as core.String?, - lifecycleDetails: json_['lifecycleDetails'] as core.String?, - localAdgAutoFailoverMaxDataLossLimit: - json_['localAdgAutoFailoverMaxDataLossLimit'] as core.int?, - localDisasterRecoveryType: - json_['localDisasterRecoveryType'] as core.String?, - localStandbyDb: - json_.containsKey('localStandbyDb') - ? AutonomousDatabaseStandbySummary.fromJson( - json_['localStandbyDb'] + dataStorageSizeTb: + (json_['dataStorageSizeTb'] as core.num?)?.toDouble(), + databaseServerType: json_['databaseServerType'] as core.String?, + dbNodeStorageSizeGb: json_['dbNodeStorageSizeGb'] as core.int?, + dbServerVersion: json_['dbServerVersion'] as core.String?, + maintenanceWindow: + json_.containsKey('maintenanceWindow') + ? MaintenanceWindow.fromJson( + json_['maintenanceWindow'] as core.Map, ) : null, - maintenanceBeginTime: json_['maintenanceBeginTime'] as core.String?, - maintenanceEndTime: json_['maintenanceEndTime'] as core.String?, - maintenanceScheduleType: - json_['maintenanceScheduleType'] as core.String?, - memoryPerOracleComputeUnitGbs: - json_['memoryPerOracleComputeUnitGbs'] as core.int?, - memoryTableGbs: json_['memoryTableGbs'] as core.int?, - mtlsConnectionRequired: json_['mtlsConnectionRequired'] as core.bool?, - nCharacterSet: json_['nCharacterSet'] as core.String?, - nextLongTermBackupTime: json_['nextLongTermBackupTime'] as core.String?, - ociUrl: json_['ociUrl'] as core.String?, - ocid: json_['ocid'] as core.String?, - openMode: json_['openMode'] as core.String?, - operationsInsightsState: - json_['operationsInsightsState'] as core.String?, - peerDbIds: - (json_['peerDbIds'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - permissionLevel: json_['permissionLevel'] as core.String?, - privateEndpoint: json_['privateEndpoint'] as core.String?, - privateEndpointIp: json_['privateEndpointIp'] as core.String?, - privateEndpointLabel: json_['privateEndpointLabel'] as core.String?, - refreshableMode: json_['refreshableMode'] as core.String?, - refreshableState: json_['refreshableState'] as core.String?, - role: json_['role'] as core.String?, - scheduledOperationDetails: - (json_['scheduledOperationDetails'] as core.List?) - ?.map( - (value) => ScheduledOperationDetails.fromJson( - value as core.Map, - ), - ) - .toList(), - secretId: json_['secretId'] as core.String?, - sqlWebDeveloperUrl: json_['sqlWebDeveloperUrl'] as core.String?, + maxCpuCount: json_['maxCpuCount'] as core.int?, + maxDataStorageTb: (json_['maxDataStorageTb'] as core.num?)?.toDouble(), + maxDbNodeStorageSizeGb: json_['maxDbNodeStorageSizeGb'] as core.int?, + maxMemoryGb: json_['maxMemoryGb'] as core.int?, + memorySizeGb: json_['memorySizeGb'] as core.int?, + monthlyDbServerVersion: json_['monthlyDbServerVersion'] as core.String?, + monthlyStorageServerVersion: + json_['monthlyStorageServerVersion'] as core.String?, + nextMaintenanceRunId: json_['nextMaintenanceRunId'] as core.String?, + nextMaintenanceRunTime: json_['nextMaintenanceRunTime'] as core.String?, + nextSecurityMaintenanceRunTime: + json_['nextSecurityMaintenanceRunTime'] as core.String?, + ociUrl: json_['ociUrl'] as core.String?, + ocid: json_['ocid'] as core.String?, + shape: json_['shape'] as core.String?, state: json_['state'] as core.String?, - supportedCloneRegions: - (json_['supportedCloneRegions'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - totalAutoBackupStorageSizeGbs: - (json_['totalAutoBackupStorageSizeGbs'] as core.num?)?.toDouble(), - usedDataStorageSizeTbs: json_['usedDataStorageSizeTbs'] as core.int?, - vaultId: json_['vaultId'] as core.String?, + storageCount: json_['storageCount'] as core.int?, + storageServerType: json_['storageServerType'] as core.String?, + storageServerVersion: json_['storageServerVersion'] as core.String?, + totalStorageSizeGb: json_['totalStorageSizeGb'] as core.int?, ); core.Map toJson() => { - if (actualUsedDataStorageSizeTb != null) - 'actualUsedDataStorageSizeTb': actualUsedDataStorageSizeTb!, - if (allocatedStorageSizeTb != null) - 'allocatedStorageSizeTb': allocatedStorageSizeTb!, - if (allowlistedIps != null) 'allowlistedIps': allowlistedIps!, - if (apexDetails != null) 'apexDetails': apexDetails!, - if (arePrimaryAllowlistedIpsUsed != null) - 'arePrimaryAllowlistedIpsUsed': arePrimaryAllowlistedIpsUsed!, - if (autonomousContainerDatabaseId != null) - 'autonomousContainerDatabaseId': autonomousContainerDatabaseId!, - if (availableUpgradeVersions != null) - 'availableUpgradeVersions': availableUpgradeVersions!, - if (backupRetentionPeriodDays != null) - 'backupRetentionPeriodDays': backupRetentionPeriodDays!, - if (characterSet != null) 'characterSet': characterSet!, + if (activatedStorageCount != null) + 'activatedStorageCount': activatedStorageCount!, + if (additionalStorageCount != null) + 'additionalStorageCount': additionalStorageCount!, + if (availableStorageSizeGb != null) + 'availableStorageSizeGb': availableStorageSizeGb!, if (computeCount != null) 'computeCount': computeCount!, - if (connectionStrings != null) 'connectionStrings': connectionStrings!, - if (connectionUrls != null) 'connectionUrls': connectionUrls!, - if (cpuCoreCount != null) 'cpuCoreCount': cpuCoreCount!, + if (computeModel != null) 'computeModel': computeModel!, + if (cpuCount != null) 'cpuCount': cpuCount!, if (customerContacts != null) 'customerContacts': customerContacts!, - if (dataGuardRoleChangedTime != null) - 'dataGuardRoleChangedTime': dataGuardRoleChangedTime!, - if (dataSafeState != null) 'dataSafeState': dataSafeState!, - if (dataStorageSizeGb != null) 'dataStorageSizeGb': dataStorageSizeGb!, if (dataStorageSizeTb != null) 'dataStorageSizeTb': dataStorageSizeTb!, - if (databaseManagementState != null) - 'databaseManagementState': databaseManagementState!, - if (dbEdition != null) 'dbEdition': dbEdition!, - if (dbVersion != null) 'dbVersion': dbVersion!, - if (dbWorkload != null) 'dbWorkload': dbWorkload!, - if (disasterRecoveryRoleChangedTime != null) - 'disasterRecoveryRoleChangedTime': disasterRecoveryRoleChangedTime!, - if (failedDataRecoveryDuration != null) - 'failedDataRecoveryDuration': failedDataRecoveryDuration!, - if (isAutoScalingEnabled != null) - 'isAutoScalingEnabled': isAutoScalingEnabled!, - if (isLocalDataGuardEnabled != null) - 'isLocalDataGuardEnabled': isLocalDataGuardEnabled!, - if (isStorageAutoScalingEnabled != null) - 'isStorageAutoScalingEnabled': isStorageAutoScalingEnabled!, - if (licenseType != null) 'licenseType': licenseType!, - if (lifecycleDetails != null) 'lifecycleDetails': lifecycleDetails!, - if (localAdgAutoFailoverMaxDataLossLimit != null) - 'localAdgAutoFailoverMaxDataLossLimit': - localAdgAutoFailoverMaxDataLossLimit!, - if (localDisasterRecoveryType != null) - 'localDisasterRecoveryType': localDisasterRecoveryType!, - if (localStandbyDb != null) 'localStandbyDb': localStandbyDb!, - if (maintenanceBeginTime != null) - 'maintenanceBeginTime': maintenanceBeginTime!, - if (maintenanceEndTime != null) 'maintenanceEndTime': maintenanceEndTime!, - if (maintenanceScheduleType != null) - 'maintenanceScheduleType': maintenanceScheduleType!, - if (memoryPerOracleComputeUnitGbs != null) - 'memoryPerOracleComputeUnitGbs': memoryPerOracleComputeUnitGbs!, - if (memoryTableGbs != null) 'memoryTableGbs': memoryTableGbs!, - if (mtlsConnectionRequired != null) - 'mtlsConnectionRequired': mtlsConnectionRequired!, - if (nCharacterSet != null) 'nCharacterSet': nCharacterSet!, - if (nextLongTermBackupTime != null) - 'nextLongTermBackupTime': nextLongTermBackupTime!, + if (databaseServerType != null) 'databaseServerType': databaseServerType!, + if (dbNodeStorageSizeGb != null) + 'dbNodeStorageSizeGb': dbNodeStorageSizeGb!, + if (dbServerVersion != null) 'dbServerVersion': dbServerVersion!, + if (maintenanceWindow != null) 'maintenanceWindow': maintenanceWindow!, + if (maxCpuCount != null) 'maxCpuCount': maxCpuCount!, + if (maxDataStorageTb != null) 'maxDataStorageTb': maxDataStorageTb!, + if (maxDbNodeStorageSizeGb != null) + 'maxDbNodeStorageSizeGb': maxDbNodeStorageSizeGb!, + if (maxMemoryGb != null) 'maxMemoryGb': maxMemoryGb!, + if (memorySizeGb != null) 'memorySizeGb': memorySizeGb!, + if (monthlyDbServerVersion != null) + 'monthlyDbServerVersion': monthlyDbServerVersion!, + if (monthlyStorageServerVersion != null) + 'monthlyStorageServerVersion': monthlyStorageServerVersion!, + if (nextMaintenanceRunId != null) + 'nextMaintenanceRunId': nextMaintenanceRunId!, + if (nextMaintenanceRunTime != null) + 'nextMaintenanceRunTime': nextMaintenanceRunTime!, + if (nextSecurityMaintenanceRunTime != null) + 'nextSecurityMaintenanceRunTime': nextSecurityMaintenanceRunTime!, if (ociUrl != null) 'ociUrl': ociUrl!, if (ocid != null) 'ocid': ocid!, - if (openMode != null) 'openMode': openMode!, - if (operationsInsightsState != null) - 'operationsInsightsState': operationsInsightsState!, - if (peerDbIds != null) 'peerDbIds': peerDbIds!, - if (permissionLevel != null) 'permissionLevel': permissionLevel!, - if (privateEndpoint != null) 'privateEndpoint': privateEndpoint!, - if (privateEndpointIp != null) 'privateEndpointIp': privateEndpointIp!, - if (privateEndpointLabel != null) - 'privateEndpointLabel': privateEndpointLabel!, - if (refreshableMode != null) 'refreshableMode': refreshableMode!, - if (refreshableState != null) 'refreshableState': refreshableState!, - if (role != null) 'role': role!, - if (scheduledOperationDetails != null) - 'scheduledOperationDetails': scheduledOperationDetails!, - if (secretId != null) 'secretId': secretId!, - if (sqlWebDeveloperUrl != null) 'sqlWebDeveloperUrl': sqlWebDeveloperUrl!, + if (shape != null) 'shape': shape!, if (state != null) 'state': state!, - if (supportedCloneRegions != null) - 'supportedCloneRegions': supportedCloneRegions!, - if (totalAutoBackupStorageSizeGbs != null) - 'totalAutoBackupStorageSizeGbs': totalAutoBackupStorageSizeGbs!, - if (usedDataStorageSizeTbs != null) - 'usedDataStorageSizeTbs': usedDataStorageSizeTbs!, - if (vaultId != null) 'vaultId': vaultId!, + if (storageCount != null) 'storageCount': storageCount!, + if (storageServerType != null) 'storageServerType': storageServerType!, + if (storageServerVersion != null) + 'storageServerVersion': storageServerVersion!, + if (totalStorageSizeGb != null) 'totalStorageSizeGb': totalStorageSizeGb!, + }; +} + +/// Details of the Cloud VM Cluster resource. +/// +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudVmCluster/ +class CloudVmCluster { + /// The name of the backup OdbSubnet associated with the VM Cluster. + /// + /// Format: + /// projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} + /// + /// Optional. + core.String? backupOdbSubnet; + + /// CIDR range of the backup subnet. + /// + /// Optional. + core.String? backupSubnetCidr; + + /// Network settings. + /// + /// CIDR to use for cluster IP allocation. + /// + /// Optional. + core.String? cidr; + + /// The date and time that the VM cluster was created. + /// + /// Output only. + core.String? createTime; + + /// User friendly name for this resource. + /// + /// Optional. + core.String? displayName; + + /// The name of the Exadata Infrastructure resource on which VM cluster + /// resource is created, in the following format: + /// projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure} + /// + /// Required. + core.String? exadataInfrastructure; + + /// The GCP Oracle zone where Oracle CloudVmCluster is hosted. + /// + /// This will be the same as the gcp_oracle_zone of the + /// CloudExadataInfrastructure. Example: us-east4-b-r2. + /// + /// Output only. + core.String? gcpOracleZone; + + /// The identity connector details which will allow OCI to securely access the + /// resources in the customer project. + /// + /// Output only. + IdentityConnector? identityConnector; + + /// Labels or tags associated with the VM Cluster. + /// + /// Optional. + core.Map? labels; + + /// Identifier. + /// + /// The name of the VM Cluster resource with the format: + /// projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster} + core.String? name; + + /// The name of the VPC network. + /// + /// Format: projects/{project}/global/networks/{network} + /// + /// Optional. + core.String? network; + + /// The name of the OdbNetwork associated with the VM Cluster. + /// + /// Format: projects/{project}/locations/{location}/odbNetworks/{odb_network} + /// It is optional but if specified, this should match the parent ODBNetwork + /// of the odb_subnet and backup_odb_subnet. + /// + /// Optional. + core.String? odbNetwork; + + /// The name of the OdbSubnet associated with the VM Cluster for IP + /// allocation. + /// + /// Format: + /// projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} + /// + /// Optional. + core.String? odbSubnet; + + /// Various properties of the VM Cluster. + /// + /// Optional. + CloudVmClusterProperties? properties; + + CloudVmCluster({ + this.backupOdbSubnet, + this.backupSubnetCidr, + this.cidr, + this.createTime, + this.displayName, + this.exadataInfrastructure, + this.gcpOracleZone, + this.identityConnector, + this.labels, + this.name, + this.network, + this.odbNetwork, + this.odbSubnet, + this.properties, + }); + + CloudVmCluster.fromJson(core.Map json_) + : this( + backupOdbSubnet: json_['backupOdbSubnet'] as core.String?, + backupSubnetCidr: json_['backupSubnetCidr'] as core.String?, + cidr: json_['cidr'] as core.String?, + createTime: json_['createTime'] as core.String?, + displayName: json_['displayName'] as core.String?, + exadataInfrastructure: json_['exadataInfrastructure'] as core.String?, + gcpOracleZone: json_['gcpOracleZone'] as core.String?, + identityConnector: + json_.containsKey('identityConnector') + ? IdentityConnector.fromJson( + json_['identityConnector'] + as core.Map, + ) + : null, + labels: (json_['labels'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), + name: json_['name'] as core.String?, + network: json_['network'] as core.String?, + odbNetwork: json_['odbNetwork'] as core.String?, + odbSubnet: json_['odbSubnet'] as core.String?, + properties: + json_.containsKey('properties') + ? CloudVmClusterProperties.fromJson( + json_['properties'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (backupOdbSubnet != null) 'backupOdbSubnet': backupOdbSubnet!, + if (backupSubnetCidr != null) 'backupSubnetCidr': backupSubnetCidr!, + if (cidr != null) 'cidr': cidr!, + if (createTime != null) 'createTime': createTime!, + if (displayName != null) 'displayName': displayName!, + if (exadataInfrastructure != null) + 'exadataInfrastructure': exadataInfrastructure!, + if (gcpOracleZone != null) 'gcpOracleZone': gcpOracleZone!, + if (identityConnector != null) 'identityConnector': identityConnector!, + if (labels != null) 'labels': labels!, + if (name != null) 'name': name!, + if (network != null) 'network': network!, + if (odbNetwork != null) 'odbNetwork': odbNetwork!, + if (odbSubnet != null) 'odbSubnet': odbSubnet!, + if (properties != null) 'properties': properties!, }; } -/// Autonomous Data Guard standby database details. -/// -/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseStandbySummary -class AutonomousDatabaseStandbySummary { - /// The date and time the Autonomous Data Guard role was switched for the - /// standby Autonomous Database. +/// Various properties and settings associated with Exadata VM cluster. +class CloudVmClusterProperties { + /// OCI Cluster name. + /// + /// Optional. + core.String? clusterName; + + /// Compartment ID of cluster. /// /// Output only. - core.String? dataGuardRoleChangedTime; + core.String? compartmentId; - /// The date and time the Disaster Recovery role was switched for the standby - /// Autonomous Database. + /// The compute model of the VM Cluster. /// /// Output only. - core.String? disasterRecoveryRoleChangedTime; + /// Possible string values are: + /// - "COMPUTE_MODEL_UNSPECIFIED" : Unspecified compute model. + /// - "COMPUTE_MODEL_ECPU" : Abstract measure of compute resources. ECPUs are + /// based on the number of cores elastically allocated from a pool of compute + /// and storage servers. + /// - "COMPUTE_MODEL_OCPU" : Physical measure of compute resources. OCPUs are + /// based on the physical core of a processor. + core.String? computeModel; - /// The amount of time, in seconds, that the data of the standby database lags - /// in comparison to the data of the primary database. + /// Number of enabled CPU cores. + /// + /// Required. + core.int? cpuCoreCount; + + /// The data disk group size to be allocated in TBs. + /// + /// Optional. + core.double? dataStorageSizeTb; + + /// Local storage per VM. + /// + /// Optional. + core.int? dbNodeStorageSizeGb; + + /// OCID of database servers. + /// + /// Optional. + core.List? dbServerOcids; + + /// Data collection options for diagnostics. + /// + /// Optional. + DataCollectionOptions? diagnosticsDataCollectionOptions; + + /// The type of redundancy. + /// + /// Optional. + /// Possible string values are: + /// - "DISK_REDUNDANCY_UNSPECIFIED" : Unspecified. + /// - "HIGH" : High - 3 way mirror. + /// - "NORMAL" : Normal - 2 way mirror. + core.String? diskRedundancy; + + /// DNS listener IP. /// /// Output only. - core.String? lagTimeDuration; + core.String? dnsListenerIp; - /// The additional details about the current lifecycle state of the Autonomous - /// Database. + /// Parent DNS domain where SCAN DNS and hosts names are qualified. + /// + /// ex: ocispdelegated.ocisp10jvnet.oraclevcn.com /// /// Output only. - core.String? lifecycleDetails; + core.String? domain; - /// The current lifecycle state of the Autonomous Database. + /// Grid Infrastructure Version. + /// + /// Optional. + core.String? giVersion; + + /// host name without domain. + /// + /// format: "-" with some suffix. ex: sp2-yi0xq where "sp2" is the + /// hostname_prefix. /// /// Output only. + core.String? hostname; + + /// Prefix for VM cluster host names. + /// + /// Optional. + core.String? hostnamePrefix; + + /// License type of VM Cluster. + /// + /// Required. /// Possible string values are: - /// - "STATE_UNSPECIFIED" : Default unspecified value. - /// - "PROVISIONING" : Indicates that the Autonomous Database is in - /// provisioning state. - /// - "AVAILABLE" : Indicates that the Autonomous Database is in available - /// state. - /// - "STOPPING" : Indicates that the Autonomous Database is in stopping - /// state. - /// - "STOPPED" : Indicates that the Autonomous Database is in stopped state. - /// - "STARTING" : Indicates that the Autonomous Database is in starting - /// state. - /// - "TERMINATING" : Indicates that the Autonomous Database is in terminating - /// state. - /// - "TERMINATED" : Indicates that the Autonomous Database is in terminated - /// state. - /// - "UNAVAILABLE" : Indicates that the Autonomous Database is in unavailable - /// state. - /// - "RESTORE_IN_PROGRESS" : Indicates that the Autonomous Database restore - /// is in progress. - /// - "RESTORE_FAILED" : Indicates that the Autonomous Database failed to - /// restore. - /// - "BACKUP_IN_PROGRESS" : Indicates that the Autonomous Database backup is - /// in progress. - /// - "SCALE_IN_PROGRESS" : Indicates that the Autonomous Database scale is in - /// progress. - /// - "AVAILABLE_NEEDS_ATTENTION" : Indicates that the Autonomous Database is - /// available but needs attention state. - /// - "UPDATING" : Indicates that the Autonomous Database is in updating - /// state. - /// - "MAINTENANCE_IN_PROGRESS" : Indicates that the Autonomous Database's - /// maintenance is in progress state. - /// - "RESTARTING" : Indicates that the Autonomous Database is in restarting - /// state. - /// - "RECREATING" : Indicates that the Autonomous Database is in recreating - /// state. - /// - "ROLE_CHANGE_IN_PROGRESS" : Indicates that the Autonomous Database's - /// role change is in progress state. - /// - "UPGRADING" : Indicates that the Autonomous Database is in upgrading - /// state. - /// - "INACCESSIBLE" : Indicates that the Autonomous Database is in - /// inaccessible state. - /// - "STANDBY" : Indicates that the Autonomous Database is in standby state. - core.String? state; + /// - "LICENSE_TYPE_UNSPECIFIED" : Unspecified + /// - "LICENSE_INCLUDED" : License included part of offer + /// - "BRING_YOUR_OWN_LICENSE" : Bring your own license + core.String? licenseType; - AutonomousDatabaseStandbySummary({ - this.dataGuardRoleChangedTime, - this.disasterRecoveryRoleChangedTime, - this.lagTimeDuration, - this.lifecycleDetails, - this.state, - }); + /// Use local backup. + /// + /// Optional. + core.bool? localBackupEnabled; - AutonomousDatabaseStandbySummary.fromJson(core.Map json_) - : this( - dataGuardRoleChangedTime: - json_['dataGuardRoleChangedTime'] as core.String?, - disasterRecoveryRoleChangedTime: - json_['disasterRecoveryRoleChangedTime'] as core.String?, - lagTimeDuration: json_['lagTimeDuration'] as core.String?, - lifecycleDetails: json_['lifecycleDetails'] as core.String?, - state: json_['state'] as core.String?, - ); + /// Memory allocated in GBs. + /// + /// Optional. + core.int? memorySizeGb; - core.Map toJson() => { - if (dataGuardRoleChangedTime != null) - 'dataGuardRoleChangedTime': dataGuardRoleChangedTime!, - if (disasterRecoveryRoleChangedTime != null) - 'disasterRecoveryRoleChangedTime': disasterRecoveryRoleChangedTime!, - if (lagTimeDuration != null) 'lagTimeDuration': lagTimeDuration!, - if (lifecycleDetails != null) 'lifecycleDetails': lifecycleDetails!, - if (state != null) 'state': state!, - }; -} + /// Number of database servers. + /// + /// Optional. + core.int? nodeCount; -/// Details of the Autonomous Database version. -/// -/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDbVersionSummary/ -class AutonomousDbVersion { - /// The Autonomous Database workload type. + /// Deep link to the OCI console to view this resource. /// /// Output only. - /// Possible string values are: - /// - "DB_WORKLOAD_UNSPECIFIED" : Default unspecified value. - /// - "OLTP" : Autonomous Transaction Processing database. - /// - "DW" : Autonomous Data Warehouse database. - /// - "AJD" : Autonomous JSON Database. - /// - "APEX" : Autonomous Database with the Oracle APEX Application - /// Development workload type. - core.String? dbWorkload; + core.String? ociUrl; - /// Identifier. + /// Oracle Cloud Infrastructure ID of VM Cluster. /// - /// The name of the Autonomous Database Version resource with the format: - /// projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version} - core.String? name; + /// Output only. + core.String? ocid; - /// An Oracle Database version for Autonomous Database. + /// OCPU count per VM. + /// + /// Minimum is 0.1. + /// + /// Optional. + core.double? ocpuCount; + + /// SCAN DNS name. + /// + /// ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com + /// + /// Output only. + core.String? scanDns; + + /// OCID of scan DNS record. + /// + /// Output only. + core.String? scanDnsRecordId; + + /// OCIDs of scan IPs. + /// + /// Output only. + core.List? scanIpIds; + + /// SCAN listener port - TCP /// /// Output only. - core.String? version; + core.int? scanListenerPortTcp; - /// A URL that points to a detailed description of the Autonomous Database - /// version. + /// SCAN listener port - TLS /// /// Output only. - core.String? workloadUri; - - AutonomousDbVersion({ - this.dbWorkload, - this.name, - this.version, - this.workloadUri, - }); + core.int? scanListenerPortTcpSsl; - AutonomousDbVersion.fromJson(core.Map json_) - : this( - dbWorkload: json_['dbWorkload'] as core.String?, - name: json_['name'] as core.String?, - version: json_['version'] as core.String?, - workloadUri: json_['workloadUri'] as core.String?, - ); + /// Shape of VM Cluster. + /// + /// Output only. + core.String? shape; - core.Map toJson() => { - if (dbWorkload != null) 'dbWorkload': dbWorkload!, - if (name != null) 'name': name!, - if (version != null) 'version': version!, - if (workloadUri != null) 'workloadUri': workloadUri!, - }; -} + /// Use exadata sparse snapshots. + /// + /// Optional. + core.bool? sparseDiskgroupEnabled; -/// The request message for Operations.CancelOperation. -typedef CancelOperationRequest = $Empty; + /// SSH public keys to be stored with cluster. + /// + /// Optional. + core.List? sshPublicKeys; -/// Details of the OCI Cloud Account. -class CloudAccountDetails { - /// URL to create a new account and link. + /// State of the cluster. /// /// Output only. - core.String? accountCreationUri; + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : Default unspecified value. + /// - "PROVISIONING" : Indicates that the resource is in provisioning state. + /// - "AVAILABLE" : Indicates that the resource is in available state. + /// - "UPDATING" : Indicates that the resource is in updating state. + /// - "TERMINATING" : Indicates that the resource is in terminating state. + /// - "TERMINATED" : Indicates that the resource is in terminated state. + /// - "FAILED" : Indicates that the resource is in failed state. + /// - "MAINTENANCE_IN_PROGRESS" : Indicates that the resource is in + /// maintenance in progress state. + core.String? state; - /// OCI account name. + /// The storage allocation for the disk group, in gigabytes (GB). /// /// Output only. - core.String? cloudAccount; + core.int? storageSizeGb; - /// OCI account home region. + /// Operating system version of the image. /// - /// Output only. - core.String? cloudAccountHomeRegion; + /// Optional. + core.String? systemVersion; - /// URL to link an existing account. + /// Time zone of VM Cluster to set. /// - /// Output only. - core.String? linkExistingAccountUri; + /// Defaults to UTC if not specified. + /// + /// Optional. + TimeZone? timeZone; - CloudAccountDetails({ - this.accountCreationUri, - this.cloudAccount, - this.cloudAccountHomeRegion, - this.linkExistingAccountUri, + CloudVmClusterProperties({ + this.clusterName, + this.compartmentId, + this.computeModel, + this.cpuCoreCount, + this.dataStorageSizeTb, + this.dbNodeStorageSizeGb, + this.dbServerOcids, + this.diagnosticsDataCollectionOptions, + this.diskRedundancy, + this.dnsListenerIp, + this.domain, + this.giVersion, + this.hostname, + this.hostnamePrefix, + this.licenseType, + this.localBackupEnabled, + this.memorySizeGb, + this.nodeCount, + this.ociUrl, + this.ocid, + this.ocpuCount, + this.scanDns, + this.scanDnsRecordId, + this.scanIpIds, + this.scanListenerPortTcp, + this.scanListenerPortTcpSsl, + this.shape, + this.sparseDiskgroupEnabled, + this.sshPublicKeys, + this.state, + this.storageSizeGb, + this.systemVersion, + this.timeZone, }); - CloudAccountDetails.fromJson(core.Map json_) + CloudVmClusterProperties.fromJson(core.Map json_) : this( - accountCreationUri: json_['accountCreationUri'] as core.String?, - cloudAccount: json_['cloudAccount'] as core.String?, - cloudAccountHomeRegion: json_['cloudAccountHomeRegion'] as core.String?, - linkExistingAccountUri: json_['linkExistingAccountUri'] as core.String?, + clusterName: json_['clusterName'] as core.String?, + compartmentId: json_['compartmentId'] as core.String?, + computeModel: json_['computeModel'] as core.String?, + cpuCoreCount: json_['cpuCoreCount'] as core.int?, + dataStorageSizeTb: + (json_['dataStorageSizeTb'] as core.num?)?.toDouble(), + dbNodeStorageSizeGb: json_['dbNodeStorageSizeGb'] as core.int?, + dbServerOcids: + (json_['dbServerOcids'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + diagnosticsDataCollectionOptions: + json_.containsKey('diagnosticsDataCollectionOptions') + ? DataCollectionOptions.fromJson( + json_['diagnosticsDataCollectionOptions'] + as core.Map, + ) + : null, + diskRedundancy: json_['diskRedundancy'] as core.String?, + dnsListenerIp: json_['dnsListenerIp'] as core.String?, + domain: json_['domain'] as core.String?, + giVersion: json_['giVersion'] as core.String?, + hostname: json_['hostname'] as core.String?, + hostnamePrefix: json_['hostnamePrefix'] as core.String?, + licenseType: json_['licenseType'] as core.String?, + localBackupEnabled: json_['localBackupEnabled'] as core.bool?, + memorySizeGb: json_['memorySizeGb'] as core.int?, + nodeCount: json_['nodeCount'] as core.int?, + ociUrl: json_['ociUrl'] as core.String?, + ocid: json_['ocid'] as core.String?, + ocpuCount: (json_['ocpuCount'] as core.num?)?.toDouble(), + scanDns: json_['scanDns'] as core.String?, + scanDnsRecordId: json_['scanDnsRecordId'] as core.String?, + scanIpIds: + (json_['scanIpIds'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + scanListenerPortTcp: json_['scanListenerPortTcp'] as core.int?, + scanListenerPortTcpSsl: json_['scanListenerPortTcpSsl'] as core.int?, + shape: json_['shape'] as core.String?, + sparseDiskgroupEnabled: json_['sparseDiskgroupEnabled'] as core.bool?, + sshPublicKeys: + (json_['sshPublicKeys'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + state: json_['state'] as core.String?, + storageSizeGb: json_['storageSizeGb'] as core.int?, + systemVersion: json_['systemVersion'] as core.String?, + timeZone: + json_.containsKey('timeZone') + ? TimeZone.fromJson( + json_['timeZone'] as core.Map, + ) + : null, ); core.Map toJson() => { - if (accountCreationUri != null) 'accountCreationUri': accountCreationUri!, - if (cloudAccount != null) 'cloudAccount': cloudAccount!, - if (cloudAccountHomeRegion != null) - 'cloudAccountHomeRegion': cloudAccountHomeRegion!, - if (linkExistingAccountUri != null) - 'linkExistingAccountUri': linkExistingAccountUri!, + if (clusterName != null) 'clusterName': clusterName!, + if (compartmentId != null) 'compartmentId': compartmentId!, + if (computeModel != null) 'computeModel': computeModel!, + if (cpuCoreCount != null) 'cpuCoreCount': cpuCoreCount!, + if (dataStorageSizeTb != null) 'dataStorageSizeTb': dataStorageSizeTb!, + if (dbNodeStorageSizeGb != null) + 'dbNodeStorageSizeGb': dbNodeStorageSizeGb!, + if (dbServerOcids != null) 'dbServerOcids': dbServerOcids!, + if (diagnosticsDataCollectionOptions != null) + 'diagnosticsDataCollectionOptions': diagnosticsDataCollectionOptions!, + if (diskRedundancy != null) 'diskRedundancy': diskRedundancy!, + if (dnsListenerIp != null) 'dnsListenerIp': dnsListenerIp!, + if (domain != null) 'domain': domain!, + if (giVersion != null) 'giVersion': giVersion!, + if (hostname != null) 'hostname': hostname!, + if (hostnamePrefix != null) 'hostnamePrefix': hostnamePrefix!, + if (licenseType != null) 'licenseType': licenseType!, + if (localBackupEnabled != null) 'localBackupEnabled': localBackupEnabled!, + if (memorySizeGb != null) 'memorySizeGb': memorySizeGb!, + if (nodeCount != null) 'nodeCount': nodeCount!, + if (ociUrl != null) 'ociUrl': ociUrl!, + if (ocid != null) 'ocid': ocid!, + if (ocpuCount != null) 'ocpuCount': ocpuCount!, + if (scanDns != null) 'scanDns': scanDns!, + if (scanDnsRecordId != null) 'scanDnsRecordId': scanDnsRecordId!, + if (scanIpIds != null) 'scanIpIds': scanIpIds!, + if (scanListenerPortTcp != null) + 'scanListenerPortTcp': scanListenerPortTcp!, + if (scanListenerPortTcpSsl != null) + 'scanListenerPortTcpSsl': scanListenerPortTcpSsl!, + if (shape != null) 'shape': shape!, + if (sparseDiskgroupEnabled != null) + 'sparseDiskgroupEnabled': sparseDiskgroupEnabled!, + if (sshPublicKeys != null) 'sshPublicKeys': sshPublicKeys!, + if (state != null) 'state': state!, + if (storageSizeGb != null) 'storageSizeGb': storageSizeGb!, + if (systemVersion != null) 'systemVersion': systemVersion!, + if (timeZone != null) 'timeZone': timeZone!, }; } -/// Represents CloudExadataInfrastructure resource. +/// The CustomerContact reference as defined by Oracle. /// -/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/ -class CloudExadataInfrastructure { - /// The date and time that the Exadata Infrastructure was created. +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/CustomerContact +class CustomerContact { + /// The email address used by Oracle to send notifications regarding databases + /// and infrastructure. /// - /// Output only. - core.String? createTime; + /// Required. + core.String? email; - /// User friendly name for this resource. - /// - /// Optional. - core.String? displayName; + CustomerContact({this.email}); - /// Entitlement ID of the private offer against which this infrastructure - /// resource is provisioned. - /// - /// Output only. - core.String? entitlementId; + CustomerContact.fromJson(core.Map json_) + : this(email: json_['email'] as core.String?); - /// Google Cloud Platform location where Oracle Exadata is hosted. - /// - /// Optional. - core.String? gcpOracleZone; + core.Map toJson() => { + if (email != null) 'email': email!, + }; +} - /// Labels or tags associated with the resource. +/// Data collection options for diagnostics. +class DataCollectionOptions { + /// Indicates whether diagnostic collection is enabled for the VM cluster /// /// Optional. - core.Map? labels; + core.bool? diagnosticsEventsEnabled; - /// Identifier. + /// Indicates whether health monitoring is enabled for the VM cluster /// - /// The name of the Exadata Infrastructure resource with the format: - /// projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure} - core.String? name; + /// Optional. + core.bool? healthMonitoringEnabled; - /// Various properties of the infra. + /// Indicates whether incident logs and trace collection are enabled for the + /// VM cluster /// /// Optional. - CloudExadataInfrastructureProperties? properties; + core.bool? incidentLogsEnabled; - CloudExadataInfrastructure({ - this.createTime, - this.displayName, - this.entitlementId, - this.gcpOracleZone, - this.labels, - this.name, - this.properties, + DataCollectionOptions({ + this.diagnosticsEventsEnabled, + this.healthMonitoringEnabled, + this.incidentLogsEnabled, }); - CloudExadataInfrastructure.fromJson(core.Map json_) + DataCollectionOptions.fromJson(core.Map json_) : this( - createTime: json_['createTime'] as core.String?, - displayName: json_['displayName'] as core.String?, - entitlementId: json_['entitlementId'] as core.String?, - gcpOracleZone: json_['gcpOracleZone'] as core.String?, - labels: (json_['labels'] as core.Map?)?.map( - (key, value) => core.MapEntry(key, value as core.String), - ), - name: json_['name'] as core.String?, - properties: - json_.containsKey('properties') - ? CloudExadataInfrastructureProperties.fromJson( - json_['properties'] as core.Map, - ) - : null, + diagnosticsEventsEnabled: + json_['diagnosticsEventsEnabled'] as core.bool?, + healthMonitoringEnabled: json_['healthMonitoringEnabled'] as core.bool?, + incidentLogsEnabled: json_['incidentLogsEnabled'] as core.bool?, ); core.Map toJson() => { - if (createTime != null) 'createTime': createTime!, - if (displayName != null) 'displayName': displayName!, - if (entitlementId != null) 'entitlementId': entitlementId!, - if (gcpOracleZone != null) 'gcpOracleZone': gcpOracleZone!, - if (labels != null) 'labels': labels!, - if (name != null) 'name': name!, - if (properties != null) 'properties': properties!, + if (diagnosticsEventsEnabled != null) + 'diagnosticsEventsEnabled': diagnosticsEventsEnabled!, + if (healthMonitoringEnabled != null) + 'healthMonitoringEnabled': healthMonitoringEnabled!, + if (incidentLogsEnabled != null) + 'incidentLogsEnabled': incidentLogsEnabled!, }; } -/// Various properties of Exadata Infrastructure. -class CloudExadataInfrastructureProperties { - /// The requested number of additional storage servers activated for the - /// Exadata Infrastructure. - /// - /// Output only. - core.int? activatedStorageCount; - - /// The requested number of additional storage servers for the Exadata - /// Infrastructure. - /// - /// Output only. - core.int? additionalStorageCount; - - /// The available storage can be allocated to the Exadata Infrastructure - /// resource, in gigabytes (GB). - /// - /// Output only. - core.int? availableStorageSizeGb; - - /// The number of compute servers for the Exadata Infrastructure. +/// Data collection options for DbSystem. +class DataCollectionOptionsDbSystem { + /// Indicates whether to enable data collection for diagnostics. /// /// Optional. - core.int? computeCount; - - /// The compute model of the Exadata Infrastructure. - /// - /// Output only. - /// Possible string values are: - /// - "COMPUTE_MODEL_UNSPECIFIED" : Unspecified compute model. - /// - "COMPUTE_MODEL_ECPU" : Abstract measure of compute resources. ECPUs are - /// based on the number of cores elastically allocated from a pool of compute - /// and storage servers. - /// - "COMPUTE_MODEL_OCPU" : Physical measure of compute resources. OCPUs are - /// based on the physical core of a processor. - core.String? computeModel; - - /// The number of enabled CPU cores. - /// - /// Output only. - core.int? cpuCount; + core.bool? isDiagnosticsEventsEnabled; - /// The list of customer contacts. + /// Indicates whether to enable incident logs and trace collection. /// /// Optional. - core.List? customerContacts; + core.bool? isIncidentLogsEnabled; - /// Size, in terabytes, of the DATA disk group. - /// - /// Output only. - core.double? dataStorageSizeTb; + DataCollectionOptionsDbSystem({ + this.isDiagnosticsEventsEnabled, + this.isIncidentLogsEnabled, + }); - /// The database server type of the Exadata Infrastructure. - /// - /// Output only. - core.String? databaseServerType; + DataCollectionOptionsDbSystem.fromJson(core.Map json_) + : this( + isDiagnosticsEventsEnabled: + json_['isDiagnosticsEventsEnabled'] as core.bool?, + isIncidentLogsEnabled: json_['isIncidentLogsEnabled'] as core.bool?, + ); - /// The local node storage allocated in GBs. - /// - /// Output only. - core.int? dbNodeStorageSizeGb; + core.Map toJson() => { + if (isDiagnosticsEventsEnabled != null) + 'isDiagnosticsEventsEnabled': isDiagnosticsEventsEnabled!, + if (isIncidentLogsEnabled != null) + 'isIncidentLogsEnabled': isIncidentLogsEnabled!, + }; +} - /// The software version of the database servers (dom0) in the Exadata - /// Infrastructure. +/// Details of the Database resource. +/// +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/Database/ +class Database { + /// The password for the default ADMIN user. /// - /// Output only. - core.String? dbServerVersion; + /// Required. + core.String? adminPassword; - /// Maintenance window for repair. + /// The character set for the database. + /// + /// The default is AL32UTF8. /// /// Optional. - MaintenanceWindow? maintenanceWindow; + core.String? characterSet; - /// The total number of CPU cores available. + /// The date and time that the Database was created. /// /// Output only. - core.int? maxCpuCount; + core.String? createTime; - /// The total available DATA disk group size. + /// The database ID of the Database. /// - /// Output only. - core.double? maxDataStorageTb; + /// Optional. + core.String? databaseId; - /// The total local node storage available in GBs. + /// The name of the DbHome resource associated with the Database. /// - /// Output only. - core.int? maxDbNodeStorageSizeGb; + /// Optional. + core.String? dbHomeName; - /// The total memory available in GBs. + /// The database name. /// - /// Output only. - core.int? maxMemoryGb; - - /// The memory allocated in GBs. + /// The name must begin with an alphabetic character and can contain a maximum + /// of eight alphanumeric characters. Special characters are not permitted. /// - /// Output only. - core.int? memorySizeGb; + /// Optional. + core.String? dbName; - /// The monthly software version of the database servers (dom0) in the Exadata - /// Infrastructure. + /// The DB_UNIQUE_NAME of the Oracle Database being backed up. /// - /// Example: 20.1.15 - /// - /// Output only. - core.String? monthlyDbServerVersion; + /// Optional. + core.String? dbUniqueName; - /// The monthly software version of the storage servers (cells) in the Exadata - /// Infrastructure. - /// - /// Example: 20.1.15 + /// The GCP Oracle zone where the Database is created. /// /// Output only. - core.String? monthlyStorageServerVersion; + core.String? gcpOracleZone; - /// The OCID of the next maintenance run. + /// Identifier. /// - /// Output only. - core.String? nextMaintenanceRunId; + /// The name of the Database resource in the following format: + /// projects/{project}/locations/{region}/databases/{database} + core.String? name; - /// The time when the next maintenance run will occur. + /// The national character set for the database. /// - /// Output only. - core.String? nextMaintenanceRunTime; - - /// The time when the next security maintenance run will occur. + /// The default is AL16UTF16. /// - /// Output only. - core.String? nextSecurityMaintenanceRunTime; + /// Optional. + core.String? ncharacterSet; - /// Deep link to the OCI console to view this resource. + /// HTTPS link to OCI resources exposed to Customer via UI Interface. /// /// Output only. core.String? ociUrl; - /// OCID of created infra. - /// - /// https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle - /// - /// Output only. - core.String? ocid; - - /// The shape of the Exadata Infrastructure. - /// - /// The shape determines the amount of CPU, storage, and memory resources - /// allocated to the instance. - /// - /// Required. - core.String? shape; - - /// The current lifecycle state of the Exadata Infrastructure. + /// The Status of Operations Insights for this Database. /// /// Output only. /// Possible string values are: - /// - "STATE_UNSPECIFIED" : Default unspecified value. - /// - "PROVISIONING" : The Exadata Infrastructure is being provisioned. - /// - "AVAILABLE" : The Exadata Infrastructure is available for use. - /// - "UPDATING" : The Exadata Infrastructure is being updated. - /// - "TERMINATING" : The Exadata Infrastructure is being terminated. - /// - "TERMINATED" : The Exadata Infrastructure is terminated. - /// - "FAILED" : The Exadata Infrastructure is in failed state. - /// - "MAINTENANCE_IN_PROGRESS" : The Exadata Infrastructure is in - /// maintenance. - core.String? state; - - /// The number of Cloud Exadata storage servers for the Exadata - /// Infrastructure. + /// - "OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED" : Default unspecified value. + /// - "ENABLING" : Indicates that the operations insights are being enabled. + /// - "ENABLED" : Indicates that the operations insights are enabled. + /// - "DISABLING" : Indicates that the operations insights are being disabled. + /// - "NOT_ENABLED" : Indicates that the operations insights are not enabled. + /// - "FAILED_ENABLING" : Indicates that the operations insights failed to + /// enable. + /// - "FAILED_DISABLING" : Indicates that the operations insights failed to + /// disable. + core.String? opsInsightsStatus; + + /// The properties of the Database. /// /// Optional. - core.int? storageCount; + DatabaseProperties? properties; - /// The storage server type of the Exadata Infrastructure. - /// - /// Output only. - core.String? storageServerType; - - /// The software version of the storage servers (cells) in the Exadata - /// Infrastructure. - /// - /// Output only. - core.String? storageServerVersion; - - /// The total storage allocated to the Exadata Infrastructure resource, in - /// gigabytes (GB). + /// The TDE wallet password for the database. /// /// Optional. - core.int? totalStorageSizeGb; + core.String? tdeWalletPassword; - CloudExadataInfrastructureProperties({ - this.activatedStorageCount, - this.additionalStorageCount, - this.availableStorageSizeGb, - this.computeCount, - this.computeModel, - this.cpuCount, - this.customerContacts, - this.dataStorageSizeTb, - this.databaseServerType, - this.dbNodeStorageSizeGb, - this.dbServerVersion, - this.maintenanceWindow, - this.maxCpuCount, - this.maxDataStorageTb, - this.maxDbNodeStorageSizeGb, - this.maxMemoryGb, - this.memorySizeGb, - this.monthlyDbServerVersion, - this.monthlyStorageServerVersion, - this.nextMaintenanceRunId, - this.nextMaintenanceRunTime, - this.nextSecurityMaintenanceRunTime, - this.ociUrl, - this.ocid, - this.shape, - this.state, - this.storageCount, - this.storageServerType, - this.storageServerVersion, - this.totalStorageSizeGb, + Database({ + this.adminPassword, + this.characterSet, + this.createTime, + this.databaseId, + this.dbHomeName, + this.dbName, + this.dbUniqueName, + this.gcpOracleZone, + this.name, + this.ncharacterSet, + this.ociUrl, + this.opsInsightsStatus, + this.properties, + this.tdeWalletPassword, }); - CloudExadataInfrastructureProperties.fromJson(core.Map json_) + Database.fromJson(core.Map json_) : this( - activatedStorageCount: json_['activatedStorageCount'] as core.int?, - additionalStorageCount: json_['additionalStorageCount'] as core.int?, - availableStorageSizeGb: json_['availableStorageSizeGb'] as core.int?, - computeCount: json_['computeCount'] as core.int?, - computeModel: json_['computeModel'] as core.String?, - cpuCount: json_['cpuCount'] as core.int?, - customerContacts: - (json_['customerContacts'] as core.List?) - ?.map( - (value) => CustomerContact.fromJson( - value as core.Map, - ), - ) - .toList(), - dataStorageSizeTb: - (json_['dataStorageSizeTb'] as core.num?)?.toDouble(), - databaseServerType: json_['databaseServerType'] as core.String?, - dbNodeStorageSizeGb: json_['dbNodeStorageSizeGb'] as core.int?, - dbServerVersion: json_['dbServerVersion'] as core.String?, - maintenanceWindow: - json_.containsKey('maintenanceWindow') - ? MaintenanceWindow.fromJson( - json_['maintenanceWindow'] - as core.Map, + adminPassword: json_['adminPassword'] as core.String?, + characterSet: json_['characterSet'] as core.String?, + createTime: json_['createTime'] as core.String?, + databaseId: json_['databaseId'] as core.String?, + dbHomeName: json_['dbHomeName'] as core.String?, + dbName: json_['dbName'] as core.String?, + dbUniqueName: json_['dbUniqueName'] as core.String?, + gcpOracleZone: json_['gcpOracleZone'] as core.String?, + name: json_['name'] as core.String?, + ncharacterSet: json_['ncharacterSet'] as core.String?, + ociUrl: json_['ociUrl'] as core.String?, + opsInsightsStatus: json_['opsInsightsStatus'] as core.String?, + properties: + json_.containsKey('properties') + ? DatabaseProperties.fromJson( + json_['properties'] as core.Map, ) : null, - maxCpuCount: json_['maxCpuCount'] as core.int?, - maxDataStorageTb: (json_['maxDataStorageTb'] as core.num?)?.toDouble(), - maxDbNodeStorageSizeGb: json_['maxDbNodeStorageSizeGb'] as core.int?, - maxMemoryGb: json_['maxMemoryGb'] as core.int?, - memorySizeGb: json_['memorySizeGb'] as core.int?, - monthlyDbServerVersion: json_['monthlyDbServerVersion'] as core.String?, - monthlyStorageServerVersion: - json_['monthlyStorageServerVersion'] as core.String?, - nextMaintenanceRunId: json_['nextMaintenanceRunId'] as core.String?, - nextMaintenanceRunTime: json_['nextMaintenanceRunTime'] as core.String?, - nextSecurityMaintenanceRunTime: - json_['nextSecurityMaintenanceRunTime'] as core.String?, - ociUrl: json_['ociUrl'] as core.String?, - ocid: json_['ocid'] as core.String?, - shape: json_['shape'] as core.String?, - state: json_['state'] as core.String?, - storageCount: json_['storageCount'] as core.int?, - storageServerType: json_['storageServerType'] as core.String?, - storageServerVersion: json_['storageServerVersion'] as core.String?, - totalStorageSizeGb: json_['totalStorageSizeGb'] as core.int?, + tdeWalletPassword: json_['tdeWalletPassword'] as core.String?, ); core.Map toJson() => { - if (activatedStorageCount != null) - 'activatedStorageCount': activatedStorageCount!, - if (additionalStorageCount != null) - 'additionalStorageCount': additionalStorageCount!, - if (availableStorageSizeGb != null) - 'availableStorageSizeGb': availableStorageSizeGb!, - if (computeCount != null) 'computeCount': computeCount!, - if (computeModel != null) 'computeModel': computeModel!, - if (cpuCount != null) 'cpuCount': cpuCount!, - if (customerContacts != null) 'customerContacts': customerContacts!, - if (dataStorageSizeTb != null) 'dataStorageSizeTb': dataStorageSizeTb!, - if (databaseServerType != null) 'databaseServerType': databaseServerType!, - if (dbNodeStorageSizeGb != null) - 'dbNodeStorageSizeGb': dbNodeStorageSizeGb!, - if (dbServerVersion != null) 'dbServerVersion': dbServerVersion!, - if (maintenanceWindow != null) 'maintenanceWindow': maintenanceWindow!, - if (maxCpuCount != null) 'maxCpuCount': maxCpuCount!, - if (maxDataStorageTb != null) 'maxDataStorageTb': maxDataStorageTb!, - if (maxDbNodeStorageSizeGb != null) - 'maxDbNodeStorageSizeGb': maxDbNodeStorageSizeGb!, - if (maxMemoryGb != null) 'maxMemoryGb': maxMemoryGb!, - if (memorySizeGb != null) 'memorySizeGb': memorySizeGb!, - if (monthlyDbServerVersion != null) - 'monthlyDbServerVersion': monthlyDbServerVersion!, - if (monthlyStorageServerVersion != null) - 'monthlyStorageServerVersion': monthlyStorageServerVersion!, - if (nextMaintenanceRunId != null) - 'nextMaintenanceRunId': nextMaintenanceRunId!, - if (nextMaintenanceRunTime != null) - 'nextMaintenanceRunTime': nextMaintenanceRunTime!, - if (nextSecurityMaintenanceRunTime != null) - 'nextSecurityMaintenanceRunTime': nextSecurityMaintenanceRunTime!, + if (adminPassword != null) 'adminPassword': adminPassword!, + if (characterSet != null) 'characterSet': characterSet!, + if (createTime != null) 'createTime': createTime!, + if (databaseId != null) 'databaseId': databaseId!, + if (dbHomeName != null) 'dbHomeName': dbHomeName!, + if (dbName != null) 'dbName': dbName!, + if (dbUniqueName != null) 'dbUniqueName': dbUniqueName!, + if (gcpOracleZone != null) 'gcpOracleZone': gcpOracleZone!, + if (name != null) 'name': name!, + if (ncharacterSet != null) 'ncharacterSet': ncharacterSet!, if (ociUrl != null) 'ociUrl': ociUrl!, - if (ocid != null) 'ocid': ocid!, - if (shape != null) 'shape': shape!, - if (state != null) 'state': state!, - if (storageCount != null) 'storageCount': storageCount!, - if (storageServerType != null) 'storageServerType': storageServerType!, - if (storageServerVersion != null) - 'storageServerVersion': storageServerVersion!, - if (totalStorageSizeGb != null) 'totalStorageSizeGb': totalStorageSizeGb!, + if (opsInsightsStatus != null) 'opsInsightsStatus': opsInsightsStatus!, + if (properties != null) 'properties': properties!, + if (tdeWalletPassword != null) 'tdeWalletPassword': tdeWalletPassword!, }; } -/// Details of the Cloud VM Cluster resource. +/// Details of the Database character set resource. +class DatabaseCharacterSet { + /// The character set name for the Database which is the ID in the resource + /// name. + /// + /// Output only. + core.String? characterSet; + + /// The character set type for the Database. + /// + /// Output only. + /// Possible string values are: + /// - "CHARACTER_SET_TYPE_UNSPECIFIED" : Character set type is not specified. + /// - "DATABASE" : Character set type is set to database. + /// - "NATIONAL" : Character set type is set to national. + core.String? characterSetType; + + /// Identifier. + /// + /// The name of the Database Character Set resource in the following format: + /// projects/{project}/locations/{region}/databaseCharacterSets/{database_character_set} + core.String? name; + + DatabaseCharacterSet({this.characterSet, this.characterSetType, this.name}); + + DatabaseCharacterSet.fromJson(core.Map json_) + : this( + characterSet: json_['characterSet'] as core.String?, + characterSetType: json_['characterSetType'] as core.String?, + name: json_['name'] as core.String?, + ); + + core.Map toJson() => { + if (characterSet != null) 'characterSet': characterSet!, + if (characterSetType != null) 'characterSetType': characterSetType!, + if (name != null) 'name': name!, + }; +} + +/// The connection string profile to allow clients to group. /// -/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudVmCluster/ -class CloudVmCluster { - /// The name of the backup OdbSubnet associated with the VM Cluster. +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DatabaseConnectionStringProfile +class DatabaseConnectionStringProfile { + /// The current consumer group being used by the connection. /// - /// Format: - /// projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} + /// Output only. + /// Possible string values are: + /// - "CONSUMER_GROUP_UNSPECIFIED" : Default unspecified value. + /// - "HIGH" : High consumer group. + /// - "MEDIUM" : Medium consumer group. + /// - "LOW" : Low consumer group. + /// - "TP" : TP consumer group. + /// - "TPURGENT" : TPURGENT consumer group. + core.String? consumerGroup; + + /// The display name for the database connection. /// - /// Optional. - core.String? backupOdbSubnet; + /// Output only. + core.String? displayName; - /// CIDR range of the backup subnet. + /// The host name format being currently used in connection string. /// - /// Optional. - core.String? backupSubnetCidr; + /// Output only. + /// Possible string values are: + /// - "HOST_FORMAT_UNSPECIFIED" : Default unspecified value. + /// - "FQDN" : FQDN + /// - "IP" : IP + core.String? hostFormat; - /// Network settings. + /// This field indicates if the connection string is regional and is only + /// applicable for cross-region Data Guard. /// - /// CIDR to use for cluster IP allocation. + /// Output only. + core.bool? isRegional; + + /// The protocol being used by the connection. /// - /// Optional. - core.String? cidr; + /// Output only. + /// Possible string values are: + /// - "PROTOCOL_UNSPECIFIED" : Default unspecified value. + /// - "TCP" : Tcp + /// - "TCPS" : Tcps + core.String? protocol; - /// The date and time that the VM cluster was created. + /// The current session mode of the connection. /// /// Output only. - core.String? createTime; + /// Possible string values are: + /// - "SESSION_MODE_UNSPECIFIED" : Default unspecified value. + /// - "DIRECT" : Direct + /// - "INDIRECT" : Indirect + core.String? sessionMode; - /// User friendly name for this resource. + /// The syntax of the connection string. /// - /// Optional. - core.String? displayName; + /// Output only. + /// Possible string values are: + /// - "SYNTAX_FORMAT_UNSPECIFIED" : Default unspecified value. + /// - "LONG" : Long + /// - "EZCONNECT" : Ezconnect + /// - "EZCONNECTPLUS" : Ezconnectplus + core.String? syntaxFormat; - /// The name of the Exadata Infrastructure resource on which VM cluster - /// resource is created, in the following format: - /// projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure} + /// This field indicates the TLS authentication type of the connection. /// - /// Required. - core.String? exadataInfrastructure; + /// Output only. + /// Possible string values are: + /// - "TLS_AUTHENTICATION_UNSPECIFIED" : Default unspecified value. + /// - "SERVER" : Server + /// - "MUTUAL" : Mutual + core.String? tlsAuthentication; + + /// The value of the connection string. + /// + /// Output only. + core.String? value; + + DatabaseConnectionStringProfile({ + this.consumerGroup, + this.displayName, + this.hostFormat, + this.isRegional, + this.protocol, + this.sessionMode, + this.syntaxFormat, + this.tlsAuthentication, + this.value, + }); + + DatabaseConnectionStringProfile.fromJson(core.Map json_) + : this( + consumerGroup: json_['consumerGroup'] as core.String?, + displayName: json_['displayName'] as core.String?, + hostFormat: json_['hostFormat'] as core.String?, + isRegional: json_['isRegional'] as core.bool?, + protocol: json_['protocol'] as core.String?, + sessionMode: json_['sessionMode'] as core.String?, + syntaxFormat: json_['syntaxFormat'] as core.String?, + tlsAuthentication: json_['tlsAuthentication'] as core.String?, + value: json_['value'] as core.String?, + ); + + core.Map toJson() => { + if (consumerGroup != null) 'consumerGroup': consumerGroup!, + if (displayName != null) 'displayName': displayName!, + if (hostFormat != null) 'hostFormat': hostFormat!, + if (isRegional != null) 'isRegional': isRegional!, + if (protocol != null) 'protocol': protocol!, + if (sessionMode != null) 'sessionMode': sessionMode!, + if (syntaxFormat != null) 'syntaxFormat': syntaxFormat!, + if (tlsAuthentication != null) 'tlsAuthentication': tlsAuthentication!, + if (value != null) 'value': value!, + }; +} - /// Google Cloud Platform location where Oracle Exadata is hosted. - /// - /// It is same as Google Cloud Platform Oracle zone of Exadata infrastructure. +/// The configuration of the Database Management service. +class DatabaseManagementConfig { + /// The status of the Database Management service. /// /// Output only. - core.String? gcpOracleZone; + /// Possible string values are: + /// - "MANAGEMENT_STATE_UNSPECIFIED" : The status is not specified. + /// - "ENABLING" : The Database Management service is enabling. + /// - "ENABLED" : The Database Management service is enabled. + /// - "DISABLING" : The Database Management service is disabling. + /// - "DISABLED" : The Database Management service is disabled. + /// - "UPDATING" : The Database Management service is updating. + /// - "FAILED_ENABLING" : The Database Management service failed to enable. + /// - "FAILED_DISABLING" : The Database Management service failed to disable. + /// - "FAILED_UPDATING" : The Database Management service failed to update. + core.String? managementState; - /// Labels or tags associated with the VM Cluster. + /// The Database Management type. /// - /// Optional. - core.Map? labels; + /// Output only. + /// Possible string values are: + /// - "MANAGEMENT_TYPE_UNSPECIFIED" : The type is not specified. + /// - "BASIC" : Basic Database Management. + /// - "ADVANCED" : Advanced Database Management. + core.String? managementType; - /// Identifier. - /// - /// The name of the VM Cluster resource with the format: - /// projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster} - core.String? name; + DatabaseManagementConfig({this.managementState, this.managementType}); - /// The name of the VPC network. - /// - /// Format: projects/{project}/global/networks/{network} - /// - /// Optional. - core.String? network; + DatabaseManagementConfig.fromJson(core.Map json_) + : this( + managementState: json_['managementState'] as core.String?, + managementType: json_['managementType'] as core.String?, + ); - /// The name of the OdbNetwork associated with the VM Cluster. + core.Map toJson() => { + if (managementState != null) 'managementState': managementState!, + if (managementType != null) 'managementType': managementType!, + }; +} + +/// The properties of a Database. +class DatabaseProperties { + /// The Database Management config. /// - /// Format: projects/{project}/locations/{location}/odbNetworks/{odb_network} - /// It is optional but if specified, this should match the parent ODBNetwork - /// of the odb_subnet and backup_odb_subnet. + /// Output only. + DatabaseManagementConfig? databaseManagementConfig; + + /// Backup options for the Database. /// /// Optional. - core.String? odbNetwork; + DbBackupConfig? dbBackupConfig; - /// The name of the OdbSubnet associated with the VM Cluster for IP - /// allocation. - /// - /// Format: - /// projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} + /// The Oracle Database version. /// - /// Optional. - core.String? odbSubnet; + /// Required. + core.String? dbVersion; - /// Various properties of the VM Cluster. + /// State of the Database. /// - /// Optional. - CloudVmClusterProperties? properties; + /// Output only. + /// Possible string values are: + /// - "DATABASE_LIFECYCLE_STATE_UNSPECIFIED" : Default unspecified value. + /// - "PROVISIONING" : Indicates that the resource is in provisioning state. + /// - "AVAILABLE" : Indicates that the resource is in available state. + /// - "UPDATING" : Indicates that the resource is in updating state. + /// - "BACKUP_IN_PROGRESS" : Indicates that the resource is in backup in + /// progress state. + /// - "UPGRADING" : Indicates that the resource is in upgrading state. + /// - "CONVERTING" : Indicates that the resource is in converting state. + /// - "TERMINATING" : Indicates that the resource is in terminating state. + /// - "TERMINATED" : Indicates that the resource is in terminated state. + /// - "RESTORE_FAILED" : Indicates that the resource is in restore failed + /// state. + /// - "FAILED" : Indicates that the resource is in failed state. + core.String? state; - CloudVmCluster({ - this.backupOdbSubnet, - this.backupSubnetCidr, - this.cidr, - this.createTime, - this.displayName, - this.exadataInfrastructure, - this.gcpOracleZone, - this.labels, - this.name, - this.network, - this.odbNetwork, - this.odbSubnet, - this.properties, + DatabaseProperties({ + this.databaseManagementConfig, + this.dbBackupConfig, + this.dbVersion, + this.state, }); - CloudVmCluster.fromJson(core.Map json_) + DatabaseProperties.fromJson(core.Map json_) : this( - backupOdbSubnet: json_['backupOdbSubnet'] as core.String?, - backupSubnetCidr: json_['backupSubnetCidr'] as core.String?, - cidr: json_['cidr'] as core.String?, - createTime: json_['createTime'] as core.String?, - displayName: json_['displayName'] as core.String?, - exadataInfrastructure: json_['exadataInfrastructure'] as core.String?, - gcpOracleZone: json_['gcpOracleZone'] as core.String?, - labels: (json_['labels'] as core.Map?)?.map( - (key, value) => core.MapEntry(key, value as core.String), - ), - name: json_['name'] as core.String?, - network: json_['network'] as core.String?, - odbNetwork: json_['odbNetwork'] as core.String?, - odbSubnet: json_['odbSubnet'] as core.String?, - properties: - json_.containsKey('properties') - ? CloudVmClusterProperties.fromJson( - json_['properties'] as core.Map, + databaseManagementConfig: + json_.containsKey('databaseManagementConfig') + ? DatabaseManagementConfig.fromJson( + json_['databaseManagementConfig'] + as core.Map, + ) + : null, + dbBackupConfig: + json_.containsKey('dbBackupConfig') + ? DbBackupConfig.fromJson( + json_['dbBackupConfig'] + as core.Map, ) : null, + dbVersion: json_['dbVersion'] as core.String?, + state: json_['state'] as core.String?, ); core.Map toJson() => { - if (backupOdbSubnet != null) 'backupOdbSubnet': backupOdbSubnet!, - if (backupSubnetCidr != null) 'backupSubnetCidr': backupSubnetCidr!, - if (cidr != null) 'cidr': cidr!, - if (createTime != null) 'createTime': createTime!, - if (displayName != null) 'displayName': displayName!, - if (exadataInfrastructure != null) - 'exadataInfrastructure': exadataInfrastructure!, - if (gcpOracleZone != null) 'gcpOracleZone': gcpOracleZone!, - if (labels != null) 'labels': labels!, - if (name != null) 'name': name!, - if (network != null) 'network': network!, - if (odbNetwork != null) 'odbNetwork': odbNetwork!, - if (odbSubnet != null) 'odbSubnet': odbSubnet!, - if (properties != null) 'properties': properties!, + if (databaseManagementConfig != null) + 'databaseManagementConfig': databaseManagementConfig!, + if (dbBackupConfig != null) 'dbBackupConfig': dbBackupConfig!, + if (dbVersion != null) 'dbVersion': dbVersion!, + if (state != null) 'state': state!, }; } -/// Various properties and settings associated with Exadata VM cluster. -class CloudVmClusterProperties { - /// OCI Cluster name. +/// Backup Options for the Database. +class DbBackupConfig { + /// If set to true, enables automatic backups on the database. /// /// Optional. - core.String? clusterName; + core.bool? autoBackupEnabled; - /// Compartment ID of cluster. + /// The day of the week on which the full backup should be performed on the + /// database. /// - /// Output only. - core.String? compartmentId; - - /// The compute model of the VM Cluster. + /// If no value is provided, it will default to Sunday. /// - /// Output only. + /// Optional. /// Possible string values are: - /// - "COMPUTE_MODEL_UNSPECIFIED" : Unspecified compute model. - /// - "COMPUTE_MODEL_ECPU" : Abstract measure of compute resources. ECPUs are - /// based on the number of cores elastically allocated from a pool of compute - /// and storage servers. - /// - "COMPUTE_MODEL_OCPU" : Physical measure of compute resources. OCPUs are - /// based on the physical core of a processor. - core.String? computeModel; + /// - "DAY_OF_WEEK_UNSPECIFIED" : The day of the week is unspecified. + /// - "MONDAY" : Monday + /// - "TUESDAY" : Tuesday + /// - "WEDNESDAY" : Wednesday + /// - "THURSDAY" : Thursday + /// - "FRIDAY" : Friday + /// - "SATURDAY" : Saturday + /// - "SUNDAY" : Sunday + core.String? autoFullBackupDay; - /// Number of enabled CPU cores. + /// The window in which the full backup should be performed on the database. /// - /// Required. - core.int? cpuCoreCount; - - /// The data disk group size to be allocated in TBs. + /// If no value is provided, the default is anytime. /// /// Optional. - core.double? dataStorageSizeTb; - - /// Local storage per VM. + /// Possible string values are: + /// - "BACKUP_WINDOW_UNSPECIFIED" : Default unspecified value. + /// - "SLOT_ONE" : 12:00 AM - 2:00 AM + /// - "SLOT_TWO" : 2:00 AM - 4:00 AM + /// - "SLOT_THREE" : 4:00 AM - 6:00 AM + /// - "SLOT_FOUR" : 6:00 AM - 8:00 AM + /// - "SLOT_FIVE" : 8:00 AM - 10:00 AM + /// - "SLOT_SIX" : 10:00 AM - 12:00 PM + /// - "SLOT_SEVEN" : 12:00 PM - 2:00 PM + /// - "SLOT_EIGHT" : 2:00 PM - 4:00 PM + /// - "SLOT_NINE" : 4:00 PM - 6:00 PM + /// - "SLOT_TEN" : 6:00 PM - 8:00 PM + /// - "SLOT_ELEVEN" : 8:00 PM - 10:00 PM + /// - "SLOT_TWELVE" : 10:00 PM - 12:00 AM + core.String? autoFullBackupWindow; + + /// The window in which the incremental backup should be performed on the + /// database. + /// + /// If no value is provided, the default is anytime except the auto full + /// backup day. /// /// Optional. - core.int? dbNodeStorageSizeGb; - - /// OCID of database servers. + /// Possible string values are: + /// - "BACKUP_WINDOW_UNSPECIFIED" : Default unspecified value. + /// - "SLOT_ONE" : 12:00 AM - 2:00 AM + /// - "SLOT_TWO" : 2:00 AM - 4:00 AM + /// - "SLOT_THREE" : 4:00 AM - 6:00 AM + /// - "SLOT_FOUR" : 6:00 AM - 8:00 AM + /// - "SLOT_FIVE" : 8:00 AM - 10:00 AM + /// - "SLOT_SIX" : 10:00 AM - 12:00 PM + /// - "SLOT_SEVEN" : 12:00 PM - 2:00 PM + /// - "SLOT_EIGHT" : 2:00 PM - 4:00 PM + /// - "SLOT_NINE" : 4:00 PM - 6:00 PM + /// - "SLOT_TEN" : 6:00 PM - 8:00 PM + /// - "SLOT_ELEVEN" : 8:00 PM - 10:00 PM + /// - "SLOT_TWELVE" : 10:00 PM - 12:00 AM + core.String? autoIncrementalBackupWindow; + + /// This defines when the backups will be deleted after Database termination. /// /// Optional. - core.List? dbServerOcids; + /// Possible string values are: + /// - "BACKUP_DELETION_POLICY_UNSPECIFIED" : Default unspecified value. + /// - "DELETE_IMMEDIATELY" : Keeps the backup for predefined time i.e. 72 + /// hours and then delete permanently. + /// - "DELETE_AFTER_RETENTION_PERIOD" : Keeps the backups as per the policy + /// defined for database backups. + core.String? backupDeletionPolicy; - /// Data collection options for diagnostics. + /// Details of the database backup destinations. /// /// Optional. - DataCollectionOptions? diagnosticsDataCollectionOptions; + core.List? backupDestinationDetails; - /// The type of redundancy. + /// The number of days an automatic backup is retained before being + /// automatically deleted. + /// + /// This value determines the earliest point in time to which a database can + /// be restored. Min: 1, Max: 60. /// /// Optional. - /// Possible string values are: - /// - "DISK_REDUNDANCY_UNSPECIFIED" : Unspecified. - /// - "HIGH" : High - 3 way mirror. - /// - "NORMAL" : Normal - 2 way mirror. - core.String? diskRedundancy; + core.int? retentionPeriodDays; - /// DNS listener IP. - /// - /// Output only. - core.String? dnsListenerIp; + DbBackupConfig({ + this.autoBackupEnabled, + this.autoFullBackupDay, + this.autoFullBackupWindow, + this.autoIncrementalBackupWindow, + this.backupDeletionPolicy, + this.backupDestinationDetails, + this.retentionPeriodDays, + }); - /// Parent DNS domain where SCAN DNS and hosts names are qualified. - /// - /// ex: ocispdelegated.ocisp10jvnet.oraclevcn.com - /// - /// Output only. - core.String? domain; + DbBackupConfig.fromJson(core.Map json_) + : this( + autoBackupEnabled: json_['autoBackupEnabled'] as core.bool?, + autoFullBackupDay: json_['autoFullBackupDay'] as core.String?, + autoFullBackupWindow: json_['autoFullBackupWindow'] as core.String?, + autoIncrementalBackupWindow: + json_['autoIncrementalBackupWindow'] as core.String?, + backupDeletionPolicy: json_['backupDeletionPolicy'] as core.String?, + backupDestinationDetails: + (json_['backupDestinationDetails'] as core.List?) + ?.map( + (value) => BackupDestinationDetails.fromJson( + value as core.Map, + ), + ) + .toList(), + retentionPeriodDays: json_['retentionPeriodDays'] as core.int?, + ); - /// Grid Infrastructure Version. - /// - /// Optional. - core.String? giVersion; + core.Map toJson() => { + if (autoBackupEnabled != null) 'autoBackupEnabled': autoBackupEnabled!, + if (autoFullBackupDay != null) 'autoFullBackupDay': autoFullBackupDay!, + if (autoFullBackupWindow != null) + 'autoFullBackupWindow': autoFullBackupWindow!, + if (autoIncrementalBackupWindow != null) + 'autoIncrementalBackupWindow': autoIncrementalBackupWindow!, + if (backupDeletionPolicy != null) + 'backupDeletionPolicy': backupDeletionPolicy!, + if (backupDestinationDetails != null) + 'backupDestinationDetails': backupDestinationDetails!, + if (retentionPeriodDays != null) + 'retentionPeriodDays': retentionPeriodDays!, + }; +} - /// host name without domain. - /// - /// format: "-" with some suffix. ex: sp2-yi0xq where "sp2" is the - /// hostname_prefix. +/// Details of the Database Home resource. +class DbHome { + /// The Database resource. /// - /// Output only. - core.String? hostname; + /// Required. + Database? database; - /// Prefix for VM cluster host names. + /// A valid Oracle Database version. /// - /// Optional. - core.String? hostnamePrefix; - - /// License type of VM Cluster. + /// For a list of supported versions, use the ListDbVersions operation. /// /// Required. - /// Possible string values are: - /// - "LICENSE_TYPE_UNSPECIFIED" : Unspecified - /// - "LICENSE_INCLUDED" : License included part of offer - /// - "BRING_YOUR_OWN_LICENSE" : Bring your own license - core.String? licenseType; + core.String? dbVersion; - /// Use local backup. + /// The display name for the Database Home. /// - /// Optional. - core.bool? localBackupEnabled; - - /// Memory allocated in GBs. + /// The name does not have to be unique within your project. /// /// Optional. - core.int? memorySizeGb; + core.String? displayName; - /// Number of database servers. + /// Whether unified auditing is enabled for the Database Home. /// /// Optional. - core.int? nodeCount; + core.bool? isUnifiedAuditingEnabled; - /// Deep link to the OCI console to view this resource. - /// - /// Output only. - core.String? ociUrl; + DbHome({ + this.database, + this.dbVersion, + this.displayName, + this.isUnifiedAuditingEnabled, + }); - /// Oracle Cloud Infrastructure ID of VM Cluster. - /// - /// Output only. - core.String? ocid; + DbHome.fromJson(core.Map json_) + : this( + database: + json_.containsKey('database') + ? Database.fromJson( + json_['database'] as core.Map, + ) + : null, + dbVersion: json_['dbVersion'] as core.String?, + displayName: json_['displayName'] as core.String?, + isUnifiedAuditingEnabled: + json_['isUnifiedAuditingEnabled'] as core.bool?, + ); - /// OCPU count per VM. + core.Map toJson() => { + if (database != null) 'database': database!, + if (dbVersion != null) 'dbVersion': dbVersion!, + if (displayName != null) 'displayName': displayName!, + if (isUnifiedAuditingEnabled != null) + 'isUnifiedAuditingEnabled': isUnifiedAuditingEnabled!, + }; +} + +/// Details of the database node resource. +/// +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbNode/ +class DbNode { + /// Identifier. /// - /// Minimum is 0.1. + /// The name of the database node resource in the following format: + /// projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node} + core.String? name; + + /// Various properties of the database node. /// /// Optional. - core.double? ocpuCount; + DbNodeProperties? properties; - /// SCAN DNS name. - /// - /// ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com - /// - /// Output only. - core.String? scanDns; + DbNode({this.name, this.properties}); - /// OCID of scan DNS record. - /// - /// Output only. - core.String? scanDnsRecordId; + DbNode.fromJson(core.Map json_) + : this( + name: json_['name'] as core.String?, + properties: + json_.containsKey('properties') + ? DbNodeProperties.fromJson( + json_['properties'] as core.Map, + ) + : null, + ); - /// OCIDs of scan IPs. - /// - /// Output only. - core.List? scanIpIds; + core.Map toJson() => { + if (name != null) 'name': name!, + if (properties != null) 'properties': properties!, + }; +} - /// SCAN listener port - TCP +/// Various properties and settings associated with Db node. +class DbNodeProperties { + /// The date and time that the database node was created. /// /// Output only. - core.int? scanListenerPortTcp; + core.String? createTime; - /// SCAN listener port - TLS + /// Local storage per database node. /// - /// Output only. - core.int? scanListenerPortTcpSsl; + /// Optional. + core.int? dbNodeStorageSizeGb; - /// Shape of VM Cluster. + /// Database server OCID. /// - /// Output only. - core.String? shape; + /// Optional. + core.String? dbServerOcid; - /// Use exadata sparse snapshots. + /// DNS /// /// Optional. - core.bool? sparseDiskgroupEnabled; + core.String? hostname; - /// SSH public keys to be stored with cluster. + /// Memory allocated in GBs. + core.int? memorySizeGb; + + /// OCID of database node. + /// + /// Output only. + core.String? ocid; + + /// OCPU count per database node. /// /// Optional. - core.List? sshPublicKeys; + core.int? ocpuCount; - /// State of the cluster. + /// State of the database node. /// /// Output only. /// Possible string values are: @@ -4590,367 +6215,337 @@ class CloudVmClusterProperties { /// - "PROVISIONING" : Indicates that the resource is in provisioning state. /// - "AVAILABLE" : Indicates that the resource is in available state. /// - "UPDATING" : Indicates that the resource is in updating state. + /// - "STOPPING" : Indicates that the resource is in stopping state. + /// - "STOPPED" : Indicates that the resource is in stopped state. + /// - "STARTING" : Indicates that the resource is in starting state. /// - "TERMINATING" : Indicates that the resource is in terminating state. /// - "TERMINATED" : Indicates that the resource is in terminated state. /// - "FAILED" : Indicates that the resource is in failed state. - /// - "MAINTENANCE_IN_PROGRESS" : Indicates that the resource is in - /// maintenance in progress state. core.String? state; - /// The storage allocation for the disk group, in gigabytes (GB). - /// - /// Output only. - core.int? storageSizeGb; - - /// Operating system version of the image. - /// - /// Optional. - core.String? systemVersion; - - /// Time zone of VM Cluster to set. - /// - /// Defaults to UTC if not specified. - /// - /// Optional. - TimeZone? timeZone; + /// Total CPU core count of the database node. + core.int? totalCpuCoreCount; - CloudVmClusterProperties({ - this.clusterName, - this.compartmentId, - this.computeModel, - this.cpuCoreCount, - this.dataStorageSizeTb, + DbNodeProperties({ + this.createTime, this.dbNodeStorageSizeGb, - this.dbServerOcids, - this.diagnosticsDataCollectionOptions, - this.diskRedundancy, - this.dnsListenerIp, - this.domain, - this.giVersion, + this.dbServerOcid, this.hostname, - this.hostnamePrefix, - this.licenseType, - this.localBackupEnabled, this.memorySizeGb, - this.nodeCount, - this.ociUrl, this.ocid, this.ocpuCount, - this.scanDns, - this.scanDnsRecordId, - this.scanIpIds, - this.scanListenerPortTcp, - this.scanListenerPortTcpSsl, - this.shape, - this.sparseDiskgroupEnabled, - this.sshPublicKeys, this.state, - this.storageSizeGb, - this.systemVersion, - this.timeZone, + this.totalCpuCoreCount, }); - CloudVmClusterProperties.fromJson(core.Map json_) + DbNodeProperties.fromJson(core.Map json_) : this( - clusterName: json_['clusterName'] as core.String?, - compartmentId: json_['compartmentId'] as core.String?, - computeModel: json_['computeModel'] as core.String?, - cpuCoreCount: json_['cpuCoreCount'] as core.int?, - dataStorageSizeTb: - (json_['dataStorageSizeTb'] as core.num?)?.toDouble(), + createTime: json_['createTime'] as core.String?, dbNodeStorageSizeGb: json_['dbNodeStorageSizeGb'] as core.int?, - dbServerOcids: - (json_['dbServerOcids'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - diagnosticsDataCollectionOptions: - json_.containsKey('diagnosticsDataCollectionOptions') - ? DataCollectionOptions.fromJson( - json_['diagnosticsDataCollectionOptions'] - as core.Map, - ) - : null, - diskRedundancy: json_['diskRedundancy'] as core.String?, - dnsListenerIp: json_['dnsListenerIp'] as core.String?, - domain: json_['domain'] as core.String?, - giVersion: json_['giVersion'] as core.String?, + dbServerOcid: json_['dbServerOcid'] as core.String?, hostname: json_['hostname'] as core.String?, - hostnamePrefix: json_['hostnamePrefix'] as core.String?, - licenseType: json_['licenseType'] as core.String?, - localBackupEnabled: json_['localBackupEnabled'] as core.bool?, memorySizeGb: json_['memorySizeGb'] as core.int?, - nodeCount: json_['nodeCount'] as core.int?, - ociUrl: json_['ociUrl'] as core.String?, ocid: json_['ocid'] as core.String?, - ocpuCount: (json_['ocpuCount'] as core.num?)?.toDouble(), - scanDns: json_['scanDns'] as core.String?, - scanDnsRecordId: json_['scanDnsRecordId'] as core.String?, - scanIpIds: - (json_['scanIpIds'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - scanListenerPortTcp: json_['scanListenerPortTcp'] as core.int?, - scanListenerPortTcpSsl: json_['scanListenerPortTcpSsl'] as core.int?, - shape: json_['shape'] as core.String?, - sparseDiskgroupEnabled: json_['sparseDiskgroupEnabled'] as core.bool?, - sshPublicKeys: - (json_['sshPublicKeys'] as core.List?) - ?.map((value) => value as core.String) - .toList(), + ocpuCount: json_['ocpuCount'] as core.int?, state: json_['state'] as core.String?, - storageSizeGb: json_['storageSizeGb'] as core.int?, - systemVersion: json_['systemVersion'] as core.String?, - timeZone: - json_.containsKey('timeZone') - ? TimeZone.fromJson( - json_['timeZone'] as core.Map, - ) - : null, + totalCpuCoreCount: json_['totalCpuCoreCount'] as core.int?, ); core.Map toJson() => { - if (clusterName != null) 'clusterName': clusterName!, - if (compartmentId != null) 'compartmentId': compartmentId!, - if (computeModel != null) 'computeModel': computeModel!, - if (cpuCoreCount != null) 'cpuCoreCount': cpuCoreCount!, - if (dataStorageSizeTb != null) 'dataStorageSizeTb': dataStorageSizeTb!, + if (createTime != null) 'createTime': createTime!, if (dbNodeStorageSizeGb != null) 'dbNodeStorageSizeGb': dbNodeStorageSizeGb!, - if (dbServerOcids != null) 'dbServerOcids': dbServerOcids!, - if (diagnosticsDataCollectionOptions != null) - 'diagnosticsDataCollectionOptions': diagnosticsDataCollectionOptions!, - if (diskRedundancy != null) 'diskRedundancy': diskRedundancy!, - if (dnsListenerIp != null) 'dnsListenerIp': dnsListenerIp!, - if (domain != null) 'domain': domain!, - if (giVersion != null) 'giVersion': giVersion!, + if (dbServerOcid != null) 'dbServerOcid': dbServerOcid!, if (hostname != null) 'hostname': hostname!, - if (hostnamePrefix != null) 'hostnamePrefix': hostnamePrefix!, - if (licenseType != null) 'licenseType': licenseType!, - if (localBackupEnabled != null) 'localBackupEnabled': localBackupEnabled!, if (memorySizeGb != null) 'memorySizeGb': memorySizeGb!, - if (nodeCount != null) 'nodeCount': nodeCount!, - if (ociUrl != null) 'ociUrl': ociUrl!, if (ocid != null) 'ocid': ocid!, if (ocpuCount != null) 'ocpuCount': ocpuCount!, - if (scanDns != null) 'scanDns': scanDns!, - if (scanDnsRecordId != null) 'scanDnsRecordId': scanDnsRecordId!, - if (scanIpIds != null) 'scanIpIds': scanIpIds!, - if (scanListenerPortTcp != null) - 'scanListenerPortTcp': scanListenerPortTcp!, - if (scanListenerPortTcpSsl != null) - 'scanListenerPortTcpSsl': scanListenerPortTcpSsl!, - if (shape != null) 'shape': shape!, - if (sparseDiskgroupEnabled != null) - 'sparseDiskgroupEnabled': sparseDiskgroupEnabled!, - if (sshPublicKeys != null) 'sshPublicKeys': sshPublicKeys!, if (state != null) 'state': state!, - if (storageSizeGb != null) 'storageSizeGb': storageSizeGb!, - if (systemVersion != null) 'systemVersion': systemVersion!, - if (timeZone != null) 'timeZone': timeZone!, + if (totalCpuCoreCount != null) 'totalCpuCoreCount': totalCpuCoreCount!, + }; +} + +/// Details of the database server resource. +/// +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbServer/ +class DbServer { + /// User friendly name for this resource. + /// + /// Optional. + core.String? displayName; + + /// Identifier. + /// + /// The name of the database server resource with the format: + /// projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server} + core.String? name; + + /// Various properties of the database server. + /// + /// Optional. + DbServerProperties? properties; + + DbServer({this.displayName, this.name, this.properties}); + + DbServer.fromJson(core.Map json_) + : this( + displayName: json_['displayName'] as core.String?, + name: json_['name'] as core.String?, + properties: + json_.containsKey('properties') + ? DbServerProperties.fromJson( + json_['properties'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (displayName != null) 'displayName': displayName!, + if (name != null) 'name': name!, + if (properties != null) 'properties': properties!, }; } -/// The CustomerContact reference as defined by Oracle. -/// -/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/CustomerContact -class CustomerContact { - /// The email address used by Oracle to send notifications regarding databases - /// and infrastructure. +/// Various properties and settings associated with Exadata database server. +class DbServerProperties { + /// OCID of database nodes associated with the database server. /// - /// Required. - core.String? email; + /// Output only. + core.List? dbNodeIds; - CustomerContact({this.email}); + /// Local storage per VM. + /// + /// Optional. + core.int? dbNodeStorageSizeGb; - CustomerContact.fromJson(core.Map json_) - : this(email: json_['email'] as core.String?); + /// Maximum local storage per VM. + /// + /// Optional. + core.int? maxDbNodeStorageSizeGb; - core.Map toJson() => { - if (email != null) 'email': email!, - }; -} + /// Maximum memory allocated in GBs. + /// + /// Optional. + core.int? maxMemorySizeGb; -/// Data collection options for diagnostics. -class DataCollectionOptions { - /// Indicates whether diagnostic collection is enabled for the VM cluster + /// Maximum OCPU count per database. /// /// Optional. - core.bool? diagnosticsEventsEnabled; + core.int? maxOcpuCount; - /// Indicates whether health monitoring is enabled for the VM cluster + /// Memory allocated in GBs. /// /// Optional. - core.bool? healthMonitoringEnabled; + core.int? memorySizeGb; - /// Indicates whether incident logs and trace collection are enabled for the - /// VM cluster + /// OCID of database server. + /// + /// Output only. + core.String? ocid; + + /// OCPU count per database. /// /// Optional. - core.bool? incidentLogsEnabled; + core.int? ocpuCount; - DataCollectionOptions({ - this.diagnosticsEventsEnabled, - this.healthMonitoringEnabled, - this.incidentLogsEnabled, + /// State of the database server. + /// + /// Output only. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : Default unspecified value. + /// - "CREATING" : Indicates that the resource is in creating state. + /// - "AVAILABLE" : Indicates that the resource is in available state. + /// - "UNAVAILABLE" : Indicates that the resource is in unavailable state. + /// - "DELETING" : Indicates that the resource is in deleting state. + /// - "DELETED" : Indicates that the resource is in deleted state. + core.String? state; + + /// Vm count per database. + /// + /// Optional. + core.int? vmCount; + + DbServerProperties({ + this.dbNodeIds, + this.dbNodeStorageSizeGb, + this.maxDbNodeStorageSizeGb, + this.maxMemorySizeGb, + this.maxOcpuCount, + this.memorySizeGb, + this.ocid, + this.ocpuCount, + this.state, + this.vmCount, }); - DataCollectionOptions.fromJson(core.Map json_) + DbServerProperties.fromJson(core.Map json_) : this( - diagnosticsEventsEnabled: - json_['diagnosticsEventsEnabled'] as core.bool?, - healthMonitoringEnabled: json_['healthMonitoringEnabled'] as core.bool?, - incidentLogsEnabled: json_['incidentLogsEnabled'] as core.bool?, + dbNodeIds: + (json_['dbNodeIds'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + dbNodeStorageSizeGb: json_['dbNodeStorageSizeGb'] as core.int?, + maxDbNodeStorageSizeGb: json_['maxDbNodeStorageSizeGb'] as core.int?, + maxMemorySizeGb: json_['maxMemorySizeGb'] as core.int?, + maxOcpuCount: json_['maxOcpuCount'] as core.int?, + memorySizeGb: json_['memorySizeGb'] as core.int?, + ocid: json_['ocid'] as core.String?, + ocpuCount: json_['ocpuCount'] as core.int?, + state: json_['state'] as core.String?, + vmCount: json_['vmCount'] as core.int?, ); core.Map toJson() => { - if (diagnosticsEventsEnabled != null) - 'diagnosticsEventsEnabled': diagnosticsEventsEnabled!, - if (healthMonitoringEnabled != null) - 'healthMonitoringEnabled': healthMonitoringEnabled!, - if (incidentLogsEnabled != null) - 'incidentLogsEnabled': incidentLogsEnabled!, + if (dbNodeIds != null) 'dbNodeIds': dbNodeIds!, + if (dbNodeStorageSizeGb != null) + 'dbNodeStorageSizeGb': dbNodeStorageSizeGb!, + if (maxDbNodeStorageSizeGb != null) + 'maxDbNodeStorageSizeGb': maxDbNodeStorageSizeGb!, + if (maxMemorySizeGb != null) 'maxMemorySizeGb': maxMemorySizeGb!, + if (maxOcpuCount != null) 'maxOcpuCount': maxOcpuCount!, + if (memorySizeGb != null) 'memorySizeGb': memorySizeGb!, + if (ocid != null) 'ocid': ocid!, + if (ocpuCount != null) 'ocpuCount': ocpuCount!, + if (state != null) 'state': state!, + if (vmCount != null) 'vmCount': vmCount!, }; } -/// The connection string profile to allow clients to group. +/// Details of the DbSystem (BaseDB) resource. /// -/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DatabaseConnectionStringProfile -class DatabaseConnectionStringProfile { - /// The current consumer group being used by the connection. +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystem/ +class DbSystem { + /// The date and time that the DbSystem was created. /// /// Output only. - /// Possible string values are: - /// - "CONSUMER_GROUP_UNSPECIFIED" : Default unspecified value. - /// - "HIGH" : High consumer group. - /// - "MEDIUM" : Medium consumer group. - /// - "LOW" : Low consumer group. - /// - "TP" : TP consumer group. - /// - "TPURGENT" : TPURGENT consumer group. - core.String? consumerGroup; + core.String? createTime; - /// The display name for the database connection. + /// The display name for the System db. /// - /// Output only. + /// The name does not have to be unique within your project. + /// + /// Required. core.String? displayName; - /// The host name format being currently used in connection string. + /// The ID of the subscription entitlement associated with the DbSystem /// /// Output only. - /// Possible string values are: - /// - "HOST_FORMAT_UNSPECIFIED" : Default unspecified value. - /// - "FQDN" : FQDN - /// - "IP" : IP - core.String? hostFormat; + core.String? entitlementId; - /// This field indicates if the connection string is regional and is only - /// applicable for cross-region Data Guard. + /// The GCP Oracle zone where Oracle DbSystem is hosted. /// - /// Output only. - core.bool? isRegional; + /// Example: us-east4-b-r2. If not specified, the system will pick a zone + /// based on availability. + /// + /// Optional. + core.String? gcpOracleZone; - /// The protocol being used by the connection. + /// The labels or tags associated with the DbSystem. /// - /// Output only. - /// Possible string values are: - /// - "PROTOCOL_UNSPECIFIED" : Default unspecified value. - /// - "TCP" : Tcp - /// - "TCPS" : Tcps - core.String? protocol; + /// Optional. + core.Map? labels; - /// The current session mode of the connection. + /// Identifier. /// - /// Output only. - /// Possible string values are: - /// - "SESSION_MODE_UNSPECIFIED" : Default unspecified value. - /// - "DIRECT" : Direct - /// - "INDIRECT" : Indirect - core.String? sessionMode; + /// The name of the DbSystem resource in the following format: + /// projects/{project}/locations/{region}/dbSystems/{db_system} + core.String? name; - /// The syntax of the connection string. + /// HTTPS link to OCI resources exposed to Customer via UI Interface. /// /// Output only. - /// Possible string values are: - /// - "SYNTAX_FORMAT_UNSPECIFIED" : Default unspecified value. - /// - "LONG" : Long - /// - "EZCONNECT" : Ezconnect - /// - "EZCONNECTPLUS" : Ezconnectplus - core.String? syntaxFormat; + core.String? ociUrl; - /// This field indicates the TLS authentication type of the connection. + /// The name of the OdbNetwork associated with the DbSystem. /// - /// Output only. - /// Possible string values are: - /// - "TLS_AUTHENTICATION_UNSPECIFIED" : Default unspecified value. - /// - "SERVER" : Server - /// - "MUTUAL" : Mutual - core.String? tlsAuthentication; + /// Format: projects/{project}/locations/{location}/odbNetworks/{odb_network} + /// It is optional but if specified, this should match the parent ODBNetwork + /// of the OdbSubnet. + /// + /// Optional. + core.String? odbNetwork; - /// The value of the connection string. + /// The name of the OdbSubnet associated with the DbSystem for IP allocation. /// - /// Output only. - core.String? value; + /// Format: + /// projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet} + /// + /// Required. + core.String? odbSubnet; - DatabaseConnectionStringProfile({ - this.consumerGroup, + /// The properties of the DbSystem. + /// + /// Optional. + DbSystemProperties? properties; + + DbSystem({ + this.createTime, this.displayName, - this.hostFormat, - this.isRegional, - this.protocol, - this.sessionMode, - this.syntaxFormat, - this.tlsAuthentication, - this.value, + this.entitlementId, + this.gcpOracleZone, + this.labels, + this.name, + this.ociUrl, + this.odbNetwork, + this.odbSubnet, + this.properties, }); - DatabaseConnectionStringProfile.fromJson(core.Map json_) + DbSystem.fromJson(core.Map json_) : this( - consumerGroup: json_['consumerGroup'] as core.String?, + createTime: json_['createTime'] as core.String?, displayName: json_['displayName'] as core.String?, - hostFormat: json_['hostFormat'] as core.String?, - isRegional: json_['isRegional'] as core.bool?, - protocol: json_['protocol'] as core.String?, - sessionMode: json_['sessionMode'] as core.String?, - syntaxFormat: json_['syntaxFormat'] as core.String?, - tlsAuthentication: json_['tlsAuthentication'] as core.String?, - value: json_['value'] as core.String?, + entitlementId: json_['entitlementId'] as core.String?, + gcpOracleZone: json_['gcpOracleZone'] as core.String?, + labels: (json_['labels'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), + name: json_['name'] as core.String?, + ociUrl: json_['ociUrl'] as core.String?, + odbNetwork: json_['odbNetwork'] as core.String?, + odbSubnet: json_['odbSubnet'] as core.String?, + properties: + json_.containsKey('properties') + ? DbSystemProperties.fromJson( + json_['properties'] as core.Map, + ) + : null, ); core.Map toJson() => { - if (consumerGroup != null) 'consumerGroup': consumerGroup!, + if (createTime != null) 'createTime': createTime!, if (displayName != null) 'displayName': displayName!, - if (hostFormat != null) 'hostFormat': hostFormat!, - if (isRegional != null) 'isRegional': isRegional!, - if (protocol != null) 'protocol': protocol!, - if (sessionMode != null) 'sessionMode': sessionMode!, - if (syntaxFormat != null) 'syntaxFormat': syntaxFormat!, - if (tlsAuthentication != null) 'tlsAuthentication': tlsAuthentication!, - if (value != null) 'value': value!, + if (entitlementId != null) 'entitlementId': entitlementId!, + if (gcpOracleZone != null) 'gcpOracleZone': gcpOracleZone!, + if (labels != null) 'labels': labels!, + if (name != null) 'name': name!, + if (ociUrl != null) 'ociUrl': ociUrl!, + if (odbNetwork != null) 'odbNetwork': odbNetwork!, + if (odbSubnet != null) 'odbSubnet': odbSubnet!, + if (properties != null) 'properties': properties!, }; } -/// Details of the database node resource. -/// -/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbNode/ -class DbNode { - /// Identifier. +/// Summary of the DbSystem initial storage size. +class DbSystemInitialStorageSize { + /// The name of the resource. /// - /// The name of the database node resource in the following format: - /// projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node} + /// Output only. core.String? name; - /// Various properties of the database node. + /// The properties of the DbSystem initial storage size summary. /// - /// Optional. - DbNodeProperties? properties; + /// Output only. + DbSystemInitialStorageSizeProperties? properties; - DbNode({this.name, this.properties}); + DbSystemInitialStorageSize({this.name, this.properties}); - DbNode.fromJson(core.Map json_) + DbSystemInitialStorageSize.fromJson(core.Map json_) : this( name: json_['name'] as core.String?, properties: json_.containsKey('properties') - ? DbNodeProperties.fromJson( + ? DbSystemInitialStorageSizeProperties.fromJson( json_['properties'] as core.Map, ) : null, @@ -4962,242 +6557,329 @@ class DbNode { }; } -/// Various properties and settings associated with Db node. -class DbNodeProperties { - /// The date and time that the database node was created. +/// The properties of a DbSystem initial storage size summary. +class DbSystemInitialStorageSizeProperties { + /// List of storage disk details available for launches from backup. /// /// Output only. - core.String? createTime; - - /// Local storage per database node. - /// - /// Optional. - core.int? dbNodeStorageSizeGb; - - /// Database server OCID. - /// - /// Optional. - core.String? dbServerOcid; - - /// DNS - /// - /// Optional. - core.String? hostname; + core.List? launchFromBackupStorageSizeDetails; - /// Memory allocated in GBs. - core.int? memorySizeGb; - - /// OCID of database node. + /// VM shape platform type /// /// Output only. - core.String? ocid; - - /// OCPU count per database node. - /// - /// Optional. - core.int? ocpuCount; + /// Possible string values are: + /// - "SHAPE_TYPE_UNSPECIFIED" : Unspecified shape type. + /// - "STANDARD_X86" : Standard X86. + core.String? shapeType; - /// State of the database node. + /// The storage option used in DB system. /// /// Output only. /// Possible string values are: - /// - "STATE_UNSPECIFIED" : Default unspecified value. - /// - "PROVISIONING" : Indicates that the resource is in provisioning state. - /// - "AVAILABLE" : Indicates that the resource is in available state. - /// - "UPDATING" : Indicates that the resource is in updating state. - /// - "STOPPING" : Indicates that the resource is in stopping state. - /// - "STOPPED" : Indicates that the resource is in stopped state. - /// - "STARTING" : Indicates that the resource is in starting state. - /// - "TERMINATING" : Indicates that the resource is in terminating state. - /// - "TERMINATED" : Indicates that the resource is in terminated state. - /// - "FAILED" : Indicates that the resource is in failed state. - core.String? state; + /// - "STORAGE_MANAGEMENT_UNSPECIFIED" : Unspecified storage management. + /// - "ASM" : Automatic Storage Management. + /// - "LVM" : Logical Volume Management. + core.String? storageManagement; - /// Total CPU core count of the database node. - core.int? totalCpuCoreCount; + /// List of storage disk details. + /// + /// Output only. + core.List? storageSizeDetails; - DbNodeProperties({ - this.createTime, - this.dbNodeStorageSizeGb, - this.dbServerOcid, - this.hostname, - this.memorySizeGb, - this.ocid, - this.ocpuCount, - this.state, - this.totalCpuCoreCount, + DbSystemInitialStorageSizeProperties({ + this.launchFromBackupStorageSizeDetails, + this.shapeType, + this.storageManagement, + this.storageSizeDetails, }); - DbNodeProperties.fromJson(core.Map json_) + DbSystemInitialStorageSizeProperties.fromJson(core.Map json_) : this( - createTime: json_['createTime'] as core.String?, - dbNodeStorageSizeGb: json_['dbNodeStorageSizeGb'] as core.int?, - dbServerOcid: json_['dbServerOcid'] as core.String?, - hostname: json_['hostname'] as core.String?, - memorySizeGb: json_['memorySizeGb'] as core.int?, - ocid: json_['ocid'] as core.String?, - ocpuCount: json_['ocpuCount'] as core.int?, - state: json_['state'] as core.String?, - totalCpuCoreCount: json_['totalCpuCoreCount'] as core.int?, + launchFromBackupStorageSizeDetails: + (json_['launchFromBackupStorageSizeDetails'] as core.List?) + ?.map( + (value) => StorageSizeDetails.fromJson( + value as core.Map, + ), + ) + .toList(), + shapeType: json_['shapeType'] as core.String?, + storageManagement: json_['storageManagement'] as core.String?, + storageSizeDetails: + (json_['storageSizeDetails'] as core.List?) + ?.map( + (value) => StorageSizeDetails.fromJson( + value as core.Map, + ), + ) + .toList(), ); core.Map toJson() => { - if (createTime != null) 'createTime': createTime!, - if (dbNodeStorageSizeGb != null) - 'dbNodeStorageSizeGb': dbNodeStorageSizeGb!, - if (dbServerOcid != null) 'dbServerOcid': dbServerOcid!, - if (hostname != null) 'hostname': hostname!, - if (memorySizeGb != null) 'memorySizeGb': memorySizeGb!, - if (ocid != null) 'ocid': ocid!, - if (ocpuCount != null) 'ocpuCount': ocpuCount!, - if (state != null) 'state': state!, - if (totalCpuCoreCount != null) 'totalCpuCoreCount': totalCpuCoreCount!, + if (launchFromBackupStorageSizeDetails != null) + 'launchFromBackupStorageSizeDetails': launchFromBackupStorageSizeDetails!, + if (shapeType != null) 'shapeType': shapeType!, + if (storageManagement != null) 'storageManagement': storageManagement!, + if (storageSizeDetails != null) 'storageSizeDetails': storageSizeDetails!, }; } -/// Details of the database server resource. -/// -/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbServer/ -class DbServer { - /// User friendly name for this resource. - /// - /// Optional. - core.String? displayName; - - /// Identifier. - /// - /// The name of the database server resource with the format: - /// projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server} - core.String? name; - - /// Various properties of the database server. +/// Details of the DbSystem Options. +class DbSystemOptions { + /// The storage option used in DB system. /// /// Optional. - DbServerProperties? properties; + /// Possible string values are: + /// - "STORAGE_MANAGEMENT_UNSPECIFIED" : The storage management is + /// unspecified. + /// - "ASM" : Automatic storage management. + /// - "LVM" : Logical Volume management. + core.String? storageManagement; - DbServer({this.displayName, this.name, this.properties}); + DbSystemOptions({this.storageManagement}); - DbServer.fromJson(core.Map json_) - : this( - displayName: json_['displayName'] as core.String?, - name: json_['name'] as core.String?, - properties: - json_.containsKey('properties') - ? DbServerProperties.fromJson( - json_['properties'] as core.Map, - ) - : null, - ); + DbSystemOptions.fromJson(core.Map json_) + : this(storageManagement: json_['storageManagement'] as core.String?); core.Map toJson() => { - if (displayName != null) 'displayName': displayName!, - if (name != null) 'name': name!, - if (properties != null) 'properties': properties!, + if (storageManagement != null) 'storageManagement': storageManagement!, }; } -/// Various properties and settings associated with Exadata database server. -class DbServerProperties { - /// OCID of database nodes associated with the database server. +/// The properties of a DbSystem. +class DbSystemProperties { + /// The number of CPU cores to enable for the DbSystem. /// - /// Output only. - core.List? dbNodeIds; + /// Required. + core.int? computeCount; - /// Local storage per VM. + /// The compute model of the DbSystem. /// /// Optional. - core.int? dbNodeStorageSizeGb; + /// Possible string values are: + /// - "COMPUTE_MODEL_UNSPECIFIED" : The compute model is unspecified. + /// - "ECPU" : The compute model is virtual. + /// - "OCPU" : The compute model is physical. + core.String? computeModel; - /// Maximum local storage per VM. + /// Data collection options for diagnostics. /// /// Optional. - core.int? maxDbNodeStorageSizeGb; + DataCollectionOptionsDbSystem? dataCollectionOptions; - /// Maximum memory allocated in GBs. + /// The data storage size in GB that is currently available to DbSystems. /// /// Optional. - core.int? maxMemorySizeGb; + core.int? dataStorageSizeGb; - /// Maximum OCPU count per database. + /// The database edition of the DbSystem. + /// + /// Required. + /// Possible string values are: + /// - "DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED" : The database edition is + /// unspecified. + /// - "STANDARD_EDITION" : The database edition is Standard. + /// - "ENTERPRISE_EDITION" : The database edition is Enterprise. + /// - "ENTERPRISE_EDITION_HIGH_PERFORMANCE" : The database edition is + /// Enterprise Edition. + core.String? databaseEdition; + + /// Details for creating a Database Home. /// /// Optional. - core.int? maxOcpuCount; + DbHome? dbHome; - /// Memory allocated in GBs. + /// The options for the DbSystem. /// /// Optional. - core.int? memorySizeGb; + DbSystemOptions? dbSystemOptions; - /// OCID of database server. + /// The host domain name of the DbSystem. + /// + /// Optional. + core.String? domain; + + /// The hostname of the DbSystem. /// /// Output only. - core.String? ocid; + core.String? hostname; - /// OCPU count per database. + /// Prefix for DB System host names. /// /// Optional. - core.int? ocpuCount; + core.String? hostnamePrefix; - /// State of the database server. + /// The initial data storage size in GB. + /// + /// Required. + core.int? initialDataStorageSizeGb; + + /// The license model of the DbSystem. + /// + /// Required. + /// Possible string values are: + /// - "LICENSE_MODEL_UNSPECIFIED" : The license model is unspecified. + /// - "LICENSE_INCLUDED" : The license model is included. + /// - "BRING_YOUR_OWN_LICENSE" : The license model is bring your own license. + core.String? licenseModel; + + /// State of the DbSystem. /// /// Output only. /// Possible string values are: - /// - "STATE_UNSPECIFIED" : Default unspecified value. - /// - "CREATING" : Indicates that the resource is in creating state. + /// - "DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED" : Default unspecified value. + /// - "PROVISIONING" : Indicates that the resource is in provisioning state. /// - "AVAILABLE" : Indicates that the resource is in available state. - /// - "UNAVAILABLE" : Indicates that the resource is in unavailable state. - /// - "DELETING" : Indicates that the resource is in deleting state. - /// - "DELETED" : Indicates that the resource is in deleted state. - core.String? state; + /// - "UPDATING" : Indicates that the resource is in updating state. + /// - "TERMINATING" : Indicates that the resource is in terminating state. + /// - "TERMINATED" : Indicates that the resource is in terminated state. + /// - "FAILED" : Indicates that the resource is in failed state. + /// - "MIGRATED" : Indicates that the resource has been migrated. + /// - "MAINTENANCE_IN_PROGRESS" : Indicates that the resource is in + /// maintenance in progress state. + /// - "NEEDS_ATTENTION" : Indicates that the resource needs attention. + /// - "UPGRADING" : Indicates that the resource is upgrading. + core.String? lifecycleState; - /// Vm count per database. + /// The memory size in GB. /// /// Optional. - core.int? vmCount; + core.int? memorySizeGb; - DbServerProperties({ - this.dbNodeIds, - this.dbNodeStorageSizeGb, - this.maxDbNodeStorageSizeGb, - this.maxMemorySizeGb, - this.maxOcpuCount, - this.memorySizeGb, - this.ocid, - this.ocpuCount, - this.state, - this.vmCount, - }); + /// The number of nodes in the DbSystem. + /// + /// Optional. + core.int? nodeCount; - DbServerProperties.fromJson(core.Map json_) - : this( - dbNodeIds: - (json_['dbNodeIds'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - dbNodeStorageSizeGb: json_['dbNodeStorageSizeGb'] as core.int?, - maxDbNodeStorageSizeGb: json_['maxDbNodeStorageSizeGb'] as core.int?, - maxMemorySizeGb: json_['maxMemorySizeGb'] as core.int?, - maxOcpuCount: json_['maxOcpuCount'] as core.int?, + /// OCID of the DbSystem. + /// + /// Output only. + core.String? ocid; + + /// The private IP address of the DbSystem. + /// + /// Optional. + core.String? privateIp; + + /// The reco/redo storage size in GB. + /// + /// Optional. + core.int? recoStorageSizeGb; + + /// Shape of DB System. + /// + /// Required. + core.String? shape; + + /// SSH public keys to be stored with the DbSystem. + /// + /// Required. + core.List? sshPublicKeys; + + /// Time zone of the DbSystem. + /// + /// Optional. + TimeZone? timeZone; + + DbSystemProperties({ + this.computeCount, + this.computeModel, + this.dataCollectionOptions, + this.dataStorageSizeGb, + this.databaseEdition, + this.dbHome, + this.dbSystemOptions, + this.domain, + this.hostname, + this.hostnamePrefix, + this.initialDataStorageSizeGb, + this.licenseModel, + this.lifecycleState, + this.memorySizeGb, + this.nodeCount, + this.ocid, + this.privateIp, + this.recoStorageSizeGb, + this.shape, + this.sshPublicKeys, + this.timeZone, + }); + + DbSystemProperties.fromJson(core.Map json_) + : this( + computeCount: json_['computeCount'] as core.int?, + computeModel: json_['computeModel'] as core.String?, + dataCollectionOptions: + json_.containsKey('dataCollectionOptions') + ? DataCollectionOptionsDbSystem.fromJson( + json_['dataCollectionOptions'] + as core.Map, + ) + : null, + dataStorageSizeGb: json_['dataStorageSizeGb'] as core.int?, + databaseEdition: json_['databaseEdition'] as core.String?, + dbHome: + json_.containsKey('dbHome') + ? DbHome.fromJson( + json_['dbHome'] as core.Map, + ) + : null, + dbSystemOptions: + json_.containsKey('dbSystemOptions') + ? DbSystemOptions.fromJson( + json_['dbSystemOptions'] + as core.Map, + ) + : null, + domain: json_['domain'] as core.String?, + hostname: json_['hostname'] as core.String?, + hostnamePrefix: json_['hostnamePrefix'] as core.String?, + initialDataStorageSizeGb: + json_['initialDataStorageSizeGb'] as core.int?, + licenseModel: json_['licenseModel'] as core.String?, + lifecycleState: json_['lifecycleState'] as core.String?, memorySizeGb: json_['memorySizeGb'] as core.int?, + nodeCount: json_['nodeCount'] as core.int?, ocid: json_['ocid'] as core.String?, - ocpuCount: json_['ocpuCount'] as core.int?, - state: json_['state'] as core.String?, - vmCount: json_['vmCount'] as core.int?, + privateIp: json_['privateIp'] as core.String?, + recoStorageSizeGb: json_['recoStorageSizeGb'] as core.int?, + shape: json_['shape'] as core.String?, + sshPublicKeys: + (json_['sshPublicKeys'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + timeZone: + json_.containsKey('timeZone') + ? TimeZone.fromJson( + json_['timeZone'] as core.Map, + ) + : null, ); core.Map toJson() => { - if (dbNodeIds != null) 'dbNodeIds': dbNodeIds!, - if (dbNodeStorageSizeGb != null) - 'dbNodeStorageSizeGb': dbNodeStorageSizeGb!, - if (maxDbNodeStorageSizeGb != null) - 'maxDbNodeStorageSizeGb': maxDbNodeStorageSizeGb!, - if (maxMemorySizeGb != null) 'maxMemorySizeGb': maxMemorySizeGb!, - if (maxOcpuCount != null) 'maxOcpuCount': maxOcpuCount!, + if (computeCount != null) 'computeCount': computeCount!, + if (computeModel != null) 'computeModel': computeModel!, + if (dataCollectionOptions != null) + 'dataCollectionOptions': dataCollectionOptions!, + if (dataStorageSizeGb != null) 'dataStorageSizeGb': dataStorageSizeGb!, + if (databaseEdition != null) 'databaseEdition': databaseEdition!, + if (dbHome != null) 'dbHome': dbHome!, + if (dbSystemOptions != null) 'dbSystemOptions': dbSystemOptions!, + if (domain != null) 'domain': domain!, + if (hostname != null) 'hostname': hostname!, + if (hostnamePrefix != null) 'hostnamePrefix': hostnamePrefix!, + if (initialDataStorageSizeGb != null) + 'initialDataStorageSizeGb': initialDataStorageSizeGb!, + if (licenseModel != null) 'licenseModel': licenseModel!, + if (lifecycleState != null) 'lifecycleState': lifecycleState!, if (memorySizeGb != null) 'memorySizeGb': memorySizeGb!, + if (nodeCount != null) 'nodeCount': nodeCount!, if (ocid != null) 'ocid': ocid!, - if (ocpuCount != null) 'ocpuCount': ocpuCount!, - if (state != null) 'state': state!, - if (vmCount != null) 'vmCount': vmCount!, + if (privateIp != null) 'privateIp': privateIp!, + if (recoStorageSizeGb != null) 'recoStorageSizeGb': recoStorageSizeGb!, + if (shape != null) 'shape': shape!, + if (sshPublicKeys != null) 'sshPublicKeys': sshPublicKeys!, + if (timeZone != null) 'timeZone': timeZone!, }; } @@ -5321,6 +7003,115 @@ class DbSystemShape { }; } +/// A valid Oracle Database version. +class DbVersion { + /// The name of the DbVersion resource in the following format: + /// projects/{project}/locations/{region}/dbVersions/{db_version} + /// + /// Output only. + core.String? name; + + /// The properties of the DbVersion. + /// + /// Output only. + DbVersionProperties? properties; + + DbVersion({this.name, this.properties}); + + DbVersion.fromJson(core.Map json_) + : this( + name: json_['name'] as core.String?, + properties: + json_.containsKey('properties') + ? DbVersionProperties.fromJson( + json_['properties'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (name != null) 'name': name!, + if (properties != null) 'properties': properties!, + }; +} + +/// The properties of a DbVersion. +class DbVersionProperties { + /// True if this version of the Oracle Database software is the latest version + /// for a release. + /// + /// Output only. + core.bool? isLatestForMajorVersion; + + /// True if this version of the Oracle Database software is the preview + /// version. + /// + /// Output only. + core.bool? isPreviewDbVersion; + + /// True if this version of the Oracle Database software is supported for + /// Upgrade. + /// + /// Output only. + core.bool? isUpgradeSupported; + + /// True if this version of the Oracle Database software supports pluggable + /// databases. + /// + /// Output only. + core.bool? supportsPdb; + + /// A valid Oracle Database version. + /// + /// Output only. + core.String? version; + + DbVersionProperties({ + this.isLatestForMajorVersion, + this.isPreviewDbVersion, + this.isUpgradeSupported, + this.supportsPdb, + this.version, + }); + + DbVersionProperties.fromJson(core.Map json_) + : this( + isLatestForMajorVersion: json_['isLatestForMajorVersion'] as core.bool?, + isPreviewDbVersion: json_['isPreviewDbVersion'] as core.bool?, + isUpgradeSupported: json_['isUpgradeSupported'] as core.bool?, + supportsPdb: json_['supportsPdb'] as core.bool?, + version: json_['version'] as core.String?, + ); + + core.Map toJson() => { + if (isLatestForMajorVersion != null) + 'isLatestForMajorVersion': isLatestForMajorVersion!, + if (isPreviewDbVersion != null) 'isPreviewDbVersion': isPreviewDbVersion!, + if (isUpgradeSupported != null) 'isUpgradeSupported': isUpgradeSupported!, + if (supportsPdb != null) 'supportsPdb': supportsPdb!, + if (version != null) 'version': version!, + }; +} + +/// Wrapper message for the value of a defined tag. +class DefinedTagValue { + /// The tags within the namespace. + core.Map? tags; + + DefinedTagValue({this.tags}); + + DefinedTagValue.fromJson(core.Map json_) + : this( + tags: (json_['tags'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), + ); + + core.Map toJson() => { + if (tags != null) 'tags': tags!, + }; +} + /// A generic empty message that you can re-use to avoid defining duplicated /// empty messages in your APIs. /// @@ -5489,6 +7280,44 @@ class GiVersion { }; } +/// The identity connector details which will allow OCI to securely access the +/// resources in the customer project. +class IdentityConnector { + /// The connection state of the identity connector. + /// + /// Output only. + /// Possible string values are: + /// - "CONNECTION_STATE_UNSPECIFIED" : Default unspecified value. + /// - "CONNECTED" : The identity pool connection is connected. + /// - "PARTIALLY_CONNECTED" : The identity pool connection is partially + /// connected. + /// - "DISCONNECTED" : The identity pool connection is disconnected. + /// - "UNKNOWN" : The identity pool connection is in an unknown state. + core.String? connectionState; + + /// A google managed service account on which customers can grant roles to + /// access resources in the customer project. + /// + /// Example: + /// `p176944527254-55-75119d87fd8f@gcp-sa-oci.iam.gserviceaccount.com` + /// + /// Output only. + core.String? serviceAgentEmail; + + IdentityConnector({this.connectionState, this.serviceAgentEmail}); + + IdentityConnector.fromJson(core.Map json_) + : this( + connectionState: json_['connectionState'] as core.String?, + serviceAgentEmail: json_['serviceAgentEmail'] as core.String?, + ); + + core.Map toJson() => { + if (connectionState != null) 'connectionState': connectionState!, + if (serviceAgentEmail != null) 'serviceAgentEmail': serviceAgentEmail!, + }; +} + /// The response for `AutonomousDatabaseBackup.List`. class ListAutonomousDatabaseBackupsResponse { /// The list of Autonomous Database Backups. @@ -5683,22 +7512,175 @@ class ListCloudVmClustersResponse { }; } -/// The response for `DbNode.List`. -class ListDbNodesResponse { - /// The list of DB Nodes - core.List? dbNodes; +/// The response for `DatabaseCharacterSet.List`. +class ListDatabaseCharacterSetsResponse { + /// The list of DatabaseCharacterSets. + core.List? databaseCharacterSets; + + /// A token identifying a page of results the server should return. + core.String? nextPageToken; + + ListDatabaseCharacterSetsResponse({ + this.databaseCharacterSets, + this.nextPageToken, + }); + + ListDatabaseCharacterSetsResponse.fromJson(core.Map json_) + : this( + databaseCharacterSets: + (json_['databaseCharacterSets'] as core.List?) + ?.map( + (value) => DatabaseCharacterSet.fromJson( + value as core.Map, + ), + ) + .toList(), + nextPageToken: json_['nextPageToken'] as core.String?, + ); + + core.Map toJson() => { + if (databaseCharacterSets != null) + 'databaseCharacterSets': databaseCharacterSets!, + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + }; +} + +/// The response for `Database.List`. +class ListDatabasesResponse { + /// The list of Databases. + core.List? databases; + + /// A token identifying a page of results the server should return. + core.String? nextPageToken; + + ListDatabasesResponse({this.databases, this.nextPageToken}); + + ListDatabasesResponse.fromJson(core.Map json_) + : this( + databases: + (json_['databases'] as core.List?) + ?.map( + (value) => Database.fromJson( + value as core.Map, + ), + ) + .toList(), + nextPageToken: json_['nextPageToken'] as core.String?, + ); + + core.Map toJson() => { + if (databases != null) 'databases': databases!, + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + }; +} + +/// The response for `DbNode.List`. +class ListDbNodesResponse { + /// The list of DB Nodes + core.List? dbNodes; + + /// A token identifying a page of results the node should return. + core.String? nextPageToken; + + ListDbNodesResponse({this.dbNodes, this.nextPageToken}); + + ListDbNodesResponse.fromJson(core.Map json_) + : this( + dbNodes: + (json_['dbNodes'] as core.List?) + ?.map( + (value) => DbNode.fromJson( + value as core.Map, + ), + ) + .toList(), + nextPageToken: json_['nextPageToken'] as core.String?, + ); + + core.Map toJson() => { + if (dbNodes != null) 'dbNodes': dbNodes!, + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + }; +} + +/// The response for `DbServer.List`. +class ListDbServersResponse { + /// The list of database servers. + core.List? dbServers; + + /// A token identifying a page of results the server should return. + core.String? nextPageToken; + + ListDbServersResponse({this.dbServers, this.nextPageToken}); + + ListDbServersResponse.fromJson(core.Map json_) + : this( + dbServers: + (json_['dbServers'] as core.List?) + ?.map( + (value) => DbServer.fromJson( + value as core.Map, + ), + ) + .toList(), + nextPageToken: json_['nextPageToken'] as core.String?, + ); + + core.Map toJson() => { + if (dbServers != null) 'dbServers': dbServers!, + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + }; +} + +/// The response for `DbSystemInitialStorageSizes.List`. +class ListDbSystemInitialStorageSizesResponse { + /// The list of DbSystemInitialStorageSizes. + core.List? dbSystemInitialStorageSizes; + + /// A token identifying a page of results the server should return. + core.String? nextPageToken; + + ListDbSystemInitialStorageSizesResponse({ + this.dbSystemInitialStorageSizes, + this.nextPageToken, + }); + + ListDbSystemInitialStorageSizesResponse.fromJson(core.Map json_) + : this( + dbSystemInitialStorageSizes: + (json_['dbSystemInitialStorageSizes'] as core.List?) + ?.map( + (value) => DbSystemInitialStorageSize.fromJson( + value as core.Map, + ), + ) + .toList(), + nextPageToken: json_['nextPageToken'] as core.String?, + ); + + core.Map toJson() => { + if (dbSystemInitialStorageSizes != null) + 'dbSystemInitialStorageSizes': dbSystemInitialStorageSizes!, + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + }; +} + +/// The response for `DbSystemShape.List`. +class ListDbSystemShapesResponse { + /// The list of Database System shapes. + core.List? dbSystemShapes; - /// A token identifying a page of results the node should return. + /// A token identifying a page of results the server should return. core.String? nextPageToken; - ListDbNodesResponse({this.dbNodes, this.nextPageToken}); + ListDbSystemShapesResponse({this.dbSystemShapes, this.nextPageToken}); - ListDbNodesResponse.fromJson(core.Map json_) + ListDbSystemShapesResponse.fromJson(core.Map json_) : this( - dbNodes: - (json_['dbNodes'] as core.List?) + dbSystemShapes: + (json_['dbSystemShapes'] as core.List?) ?.map( - (value) => DbNode.fromJson( + (value) => DbSystemShape.fromJson( value as core.Map, ), ) @@ -5707,27 +7689,27 @@ class ListDbNodesResponse { ); core.Map toJson() => { - if (dbNodes != null) 'dbNodes': dbNodes!, + if (dbSystemShapes != null) 'dbSystemShapes': dbSystemShapes!, if (nextPageToken != null) 'nextPageToken': nextPageToken!, }; } -/// The response for `DbServer.List`. -class ListDbServersResponse { - /// The list of database servers. - core.List? dbServers; +/// The response for `DbSystem.List`. +class ListDbSystemsResponse { + /// The list of DbSystems. + core.List? dbSystems; /// A token identifying a page of results the server should return. core.String? nextPageToken; - ListDbServersResponse({this.dbServers, this.nextPageToken}); + ListDbSystemsResponse({this.dbSystems, this.nextPageToken}); - ListDbServersResponse.fromJson(core.Map json_) + ListDbSystemsResponse.fromJson(core.Map json_) : this( - dbServers: - (json_['dbServers'] as core.List?) + dbSystems: + (json_['dbSystems'] as core.List?) ?.map( - (value) => DbServer.fromJson( + (value) => DbSystem.fromJson( value as core.Map, ), ) @@ -5736,27 +7718,27 @@ class ListDbServersResponse { ); core.Map toJson() => { - if (dbServers != null) 'dbServers': dbServers!, + if (dbSystems != null) 'dbSystems': dbSystems!, if (nextPageToken != null) 'nextPageToken': nextPageToken!, }; } -/// The response for `DbSystemShape.List`. -class ListDbSystemShapesResponse { - /// The list of Database System shapes. - core.List? dbSystemShapes; +/// The response for `DbVersions.List`. +class ListDbVersionsResponse { + /// The list of DbVersions. + core.List? dbVersions; /// A token identifying a page of results the server should return. core.String? nextPageToken; - ListDbSystemShapesResponse({this.dbSystemShapes, this.nextPageToken}); + ListDbVersionsResponse({this.dbVersions, this.nextPageToken}); - ListDbSystemShapesResponse.fromJson(core.Map json_) + ListDbVersionsResponse.fromJson(core.Map json_) : this( - dbSystemShapes: - (json_['dbSystemShapes'] as core.List?) + dbVersions: + (json_['dbVersions'] as core.List?) ?.map( - (value) => DbSystemShape.fromJson( + (value) => DbVersion.fromJson( value as core.Map, ), ) @@ -5765,7 +7747,7 @@ class ListDbSystemShapesResponse { ); core.Map toJson() => { - if (dbSystemShapes != null) 'dbSystemShapes': dbSystemShapes!, + if (dbVersions != null) 'dbVersions': dbVersions!, if (nextPageToken != null) 'nextPageToken': nextPageToken!, }; } @@ -5970,6 +7952,35 @@ class ListOperationsResponse { }; } +/// The response for `PluggableDatabase.List`. +class ListPluggableDatabasesResponse { + /// A token identifying a page of results the server should return. + core.String? nextPageToken; + + /// The list of PluggableDatabases. + core.List? pluggableDatabases; + + ListPluggableDatabasesResponse({this.nextPageToken, this.pluggableDatabases}); + + ListPluggableDatabasesResponse.fromJson(core.Map json_) + : this( + nextPageToken: json_['nextPageToken'] as core.String?, + pluggableDatabases: + (json_['pluggableDatabases'] as core.List?) + ?.map( + (value) => PluggableDatabase.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + if (pluggableDatabases != null) 'pluggableDatabases': pluggableDatabases!, + }; +} + /// A resource that represents a Google Cloud location. typedef Location = $Location00; @@ -6119,6 +8130,14 @@ class OdbNetwork { /// Output only. core.String? entitlementId; + /// The GCP Oracle zone where OdbNetwork is hosted. + /// + /// Example: us-east4-b-r2. If not specified, the system will pick a zone + /// based on availability. + /// + /// Optional. + core.String? gcpOracleZone; + /// Labels or tags associated with the resource. /// /// Optional. @@ -6150,6 +8169,7 @@ class OdbNetwork { OdbNetwork({ this.createTime, this.entitlementId, + this.gcpOracleZone, this.labels, this.name, this.network, @@ -6160,6 +8180,7 @@ class OdbNetwork { : this( createTime: json_['createTime'] as core.String?, entitlementId: json_['entitlementId'] as core.String?, + gcpOracleZone: json_['gcpOracleZone'] as core.String?, labels: (json_['labels'] as core.Map?)?.map( (key, value) => core.MapEntry(key, value as core.String), ), @@ -6171,6 +8192,7 @@ class OdbNetwork { core.Map toJson() => { if (createTime != null) 'createTime': createTime!, if (entitlementId != null) 'entitlementId': entitlementId!, + if (gcpOracleZone != null) 'gcpOracleZone': gcpOracleZone!, if (labels != null) 'labels': labels!, if (name != null) 'name': name!, if (network != null) 'network': network!, @@ -6326,6 +8348,323 @@ class Operation { }; } +/// The PluggableDatabase resource. +/// +/// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/PluggableDatabase/ +class PluggableDatabase { + /// The date and time that the PluggableDatabase was created. + /// + /// Output only. + core.String? createTime; + + /// Identifier. + /// + /// The name of the PluggableDatabase resource in the following format: + /// projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database} + core.String? name; + + /// HTTPS link to OCI resources exposed to Customer via UI Interface. + /// + /// Output only. + core.String? ociUrl; + + /// The properties of the PluggableDatabase. + /// + /// Optional. + PluggableDatabaseProperties? properties; + + PluggableDatabase({this.createTime, this.name, this.ociUrl, this.properties}); + + PluggableDatabase.fromJson(core.Map json_) + : this( + createTime: json_['createTime'] as core.String?, + name: json_['name'] as core.String?, + ociUrl: json_['ociUrl'] as core.String?, + properties: + json_.containsKey('properties') + ? PluggableDatabaseProperties.fromJson( + json_['properties'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (createTime != null) 'createTime': createTime!, + if (name != null) 'name': name!, + if (ociUrl != null) 'ociUrl': ociUrl!, + if (properties != null) 'properties': properties!, + }; +} + +/// The connection strings used to connect to the Oracle Database. +class PluggableDatabaseConnectionStrings { + /// All connection strings to use to connect to the pluggable database. + /// + /// Optional. + core.Map? allConnectionStrings; + + /// The default connection string to use to connect to the pluggable database. + /// + /// Optional. + core.String? pdbDefault; + + /// The default connection string to use to connect to the pluggable database + /// using IP. + /// + /// Optional. + core.String? pdbIpDefault; + + PluggableDatabaseConnectionStrings({ + this.allConnectionStrings, + this.pdbDefault, + this.pdbIpDefault, + }); + + PluggableDatabaseConnectionStrings.fromJson(core.Map json_) + : this( + allConnectionStrings: (json_['allConnectionStrings'] + as core.Map?) + ?.map((key, value) => core.MapEntry(key, value as core.String)), + pdbDefault: json_['pdbDefault'] as core.String?, + pdbIpDefault: json_['pdbIpDefault'] as core.String?, + ); + + core.Map toJson() => { + if (allConnectionStrings != null) + 'allConnectionStrings': allConnectionStrings!, + if (pdbDefault != null) 'pdbDefault': pdbDefault!, + if (pdbIpDefault != null) 'pdbIpDefault': pdbIpDefault!, + }; +} + +/// The Pluggable Database Node Level Details. +class PluggableDatabaseNodeLevelDetails { + /// The Node name of the Database home. + /// + /// Required. + core.String? nodeName; + + /// The mode that the pluggable database is in to open it. + /// + /// Required. + /// Possible string values are: + /// - "PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED" : The open mode is + /// unspecified. + /// - "READ_ONLY" : The pluggable database is opened in read-only mode. + /// - "READ_WRITE" : The pluggable database is opened in read-write mode. + /// - "MOUNTED" : The pluggable database is mounted. + /// - "MIGRATE" : The pluggable database is migrated. + core.String? openMode; + + /// The OCID of the Pluggable Database. + /// + /// Required. + core.String? pluggableDatabaseId; + + PluggableDatabaseNodeLevelDetails({ + this.nodeName, + this.openMode, + this.pluggableDatabaseId, + }); + + PluggableDatabaseNodeLevelDetails.fromJson(core.Map json_) + : this( + nodeName: json_['nodeName'] as core.String?, + openMode: json_['openMode'] as core.String?, + pluggableDatabaseId: json_['pluggableDatabaseId'] as core.String?, + ); + + core.Map toJson() => { + if (nodeName != null) 'nodeName': nodeName!, + if (openMode != null) 'openMode': openMode!, + if (pluggableDatabaseId != null) + 'pluggableDatabaseId': pluggableDatabaseId!, + }; +} + +/// The properties of a PluggableDatabase. +class PluggableDatabaseProperties { + /// The OCID of the compartment. + /// + /// Required. + core.String? compartmentId; + + /// The Connection strings used to connect to the Oracle Database. + /// + /// Optional. + PluggableDatabaseConnectionStrings? connectionStrings; + + /// The OCID of the CDB. + /// + /// Required. + core.String? containerDatabaseOcid; + + /// The configuration of the Database Management service. + /// + /// Output only. + DatabaseManagementConfig? databaseManagementConfig; + + /// Defined tags for this resource. + /// + /// Each key is predefined and scoped to a namespace. + /// + /// Optional. + core.Map? definedTags; + + /// Free-form tags for this resource. + /// + /// Each tag is a simple key-value pair with no predefined name, type, or + /// namespace. + /// + /// Optional. + core.Map? freeformTags; + + /// The restricted mode of the pluggable database. + /// + /// If a pluggable database is opened in restricted mode, the user needs both + /// create a session and have restricted session privileges to connect to it. + /// + /// Optional. + core.bool? isRestricted; + + /// Additional information about the current lifecycle state. + /// + /// Output only. + core.String? lifecycleDetails; + + /// The current state of the pluggable database. + /// + /// Output only. + /// Possible string values are: + /// - "PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED" : The lifecycle state + /// is unspecified. + /// - "PROVISIONING" : The pluggable database is provisioning. + /// - "AVAILABLE" : The pluggable database is available. + /// - "TERMINATING" : The pluggable database is terminating. + /// - "TERMINATED" : The pluggable database is terminated. + /// - "UPDATING" : The pluggable database is updating. + /// - "FAILED" : The pluggable database is in a failed state. + /// - "RELOCATING" : The pluggable database is relocating. + /// - "RELOCATED" : The pluggable database is relocated. + /// - "REFRESHING" : The pluggable database is refreshing. + /// - "RESTORE_IN_PROGRESS" : The pluggable database is restoring. + /// - "RESTORE_FAILED" : The pluggable database restore failed. + /// - "BACKUP_IN_PROGRESS" : The pluggable database is backing up. + /// - "DISABLED" : The pluggable database is disabled. + core.String? lifecycleState; + + /// The OCID of the pluggable database. + /// + /// Output only. + core.String? ocid; + + /// The status of Operations Insights for this Database. + /// + /// Output only. + /// Possible string values are: + /// - "OPERATIONS_INSIGHTS_STATE_UNSPECIFIED" : The status is not specified. + /// - "ENABLING" : Operations Insights is enabling. + /// - "ENABLED" : Operations Insights is enabled. + /// - "DISABLING" : Operations Insights is disabling. + /// - "NOT_ENABLED" : Operations Insights is not enabled. + /// - "FAILED_ENABLING" : Operations Insights failed to enable. + /// - "FAILED_DISABLING" : Operations Insights failed to disable. + core.String? operationsInsightsState; + + /// The database name. + /// + /// Required. + core.String? pdbName; + + /// Pluggable Database Node Level Details + /// + /// Optional. + core.List? pdbNodeLevelDetails; + + PluggableDatabaseProperties({ + this.compartmentId, + this.connectionStrings, + this.containerDatabaseOcid, + this.databaseManagementConfig, + this.definedTags, + this.freeformTags, + this.isRestricted, + this.lifecycleDetails, + this.lifecycleState, + this.ocid, + this.operationsInsightsState, + this.pdbName, + this.pdbNodeLevelDetails, + }); + + PluggableDatabaseProperties.fromJson(core.Map json_) + : this( + compartmentId: json_['compartmentId'] as core.String?, + connectionStrings: + json_.containsKey('connectionStrings') + ? PluggableDatabaseConnectionStrings.fromJson( + json_['connectionStrings'] + as core.Map, + ) + : null, + containerDatabaseOcid: json_['containerDatabaseOcid'] as core.String?, + databaseManagementConfig: + json_.containsKey('databaseManagementConfig') + ? DatabaseManagementConfig.fromJson( + json_['databaseManagementConfig'] + as core.Map, + ) + : null, + definedTags: + (json_['definedTags'] as core.Map?)?.map( + (key, value) => core.MapEntry( + key, + DefinedTagValue.fromJson( + value as core.Map, + ), + ), + ), + freeformTags: (json_['freeformTags'] + as core.Map?) + ?.map((key, value) => core.MapEntry(key, value as core.String)), + isRestricted: json_['isRestricted'] as core.bool?, + lifecycleDetails: json_['lifecycleDetails'] as core.String?, + lifecycleState: json_['lifecycleState'] as core.String?, + ocid: json_['ocid'] as core.String?, + operationsInsightsState: + json_['operationsInsightsState'] as core.String?, + pdbName: json_['pdbName'] as core.String?, + pdbNodeLevelDetails: + (json_['pdbNodeLevelDetails'] as core.List?) + ?.map( + (value) => PluggableDatabaseNodeLevelDetails.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (compartmentId != null) 'compartmentId': compartmentId!, + if (connectionStrings != null) 'connectionStrings': connectionStrings!, + if (containerDatabaseOcid != null) + 'containerDatabaseOcid': containerDatabaseOcid!, + if (databaseManagementConfig != null) + 'databaseManagementConfig': databaseManagementConfig!, + if (definedTags != null) 'definedTags': definedTags!, + if (freeformTags != null) 'freeformTags': freeformTags!, + if (isRestricted != null) 'isRestricted': isRestricted!, + if (lifecycleDetails != null) 'lifecycleDetails': lifecycleDetails!, + if (lifecycleState != null) 'lifecycleState': lifecycleState!, + if (ocid != null) 'ocid': ocid!, + if (operationsInsightsState != null) + 'operationsInsightsState': operationsInsightsState!, + if (pdbName != null) 'pdbName': pdbName!, + if (pdbNodeLevelDetails != null) + 'pdbNodeLevelDetails': pdbNodeLevelDetails!, + }; +} + /// The request for `AutonomousDatabase.Restart`. typedef RestartAutonomousDatabaseRequest = $Empty; @@ -6448,6 +8787,37 @@ typedef Status = $Status00; /// The request for `AutonomousDatabase.Stop`. typedef StopAutonomousDatabaseRequest = $Empty; +/// The initial storage size, in gigabytes, that is applicable for virtual +/// machine DBSystem. +class StorageSizeDetails { + /// The data storage size, in gigabytes, that is applicable for virtual + /// machine DBSystem. + /// + /// Output only. + core.int? dataStorageSizeInGbs; + + /// The RECO/REDO storage size, in gigabytes, that is applicable for virtual + /// machine DBSystem. + /// + /// Output only. + core.int? recoStorageSizeInGbs; + + StorageSizeDetails({this.dataStorageSizeInGbs, this.recoStorageSizeInGbs}); + + StorageSizeDetails.fromJson(core.Map json_) + : this( + dataStorageSizeInGbs: json_['dataStorageSizeInGbs'] as core.int?, + recoStorageSizeInGbs: json_['recoStorageSizeInGbs'] as core.int?, + ); + + core.Map toJson() => { + if (dataStorageSizeInGbs != null) + 'dataStorageSizeInGbs': dataStorageSizeInGbs!, + if (recoStorageSizeInGbs != null) + 'recoStorageSizeInGbs': recoStorageSizeInGbs!, + }; +} + /// The request for `OracleDatabase.SwitchoverAutonomousDatabase`. class SwitchoverAutonomousDatabaseRequest { /// The peer database name to switch over to. diff --git a/generated/googleapis/lib/orgpolicy/v2.dart b/generated/googleapis/lib/orgpolicy/v2.dart index a695f0f52..5ab5dcc65 100644 --- a/generated/googleapis/lib/orgpolicy/v2.dart +++ b/generated/googleapis/lib/orgpolicy/v2.dart @@ -2149,8 +2149,8 @@ class GoogleCloudOrgpolicyV2PolicySpecPolicyRule { /// /// Passes parameter values when policy enforcement is enabled. Ensure that /// parameter value types match those defined in the constraint definition. - /// For example: { "allowedLocations" : \["us-east1", "us-west1"\], "allowAll" - /// : true } + /// For example: ``` { "allowedLocations" : ["us-east1", "us-west1"], + /// "allowAll" : true } ``` /// /// Optional. /// diff --git a/generated/googleapis/lib/parallelstore/v1.dart b/generated/googleapis/lib/parallelstore/v1.dart index 55f5fc883..da0e89441 100644 --- a/generated/googleapis/lib/parallelstore/v1.dart +++ b/generated/googleapis/lib/parallelstore/v1.dart @@ -117,9 +117,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/parametermanager/v1.dart b/generated/googleapis/lib/parametermanager/v1.dart index 41c080b5a..4a64811fd 100644 --- a/generated/googleapis/lib/parametermanager/v1.dart +++ b/generated/googleapis/lib/parametermanager/v1.dart @@ -126,9 +126,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/paymentsresellersubscription/v1.dart b/generated/googleapis/lib/paymentsresellersubscription/v1.dart index 3c5c18fb5..274d3ee3b 100644 --- a/generated/googleapis/lib/paymentsresellersubscription/v1.dart +++ b/generated/googleapis/lib/paymentsresellersubscription/v1.dart @@ -115,16 +115,14 @@ class PartnersProductsResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a - /// [GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse]. + /// Completes with a [ListProductsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future - list( + async.Future list( core.String parent, { core.String? filter, core.int? pageSize, @@ -145,7 +143,7 @@ class PartnersProductsResource { 'GET', queryParams: queryParams_, ); - return GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse.fromJson( + return ListProductsResponse.fromJson( response_ as core.Map, ); } @@ -173,20 +171,15 @@ class PartnersPromotionsResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a - /// [GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse]. + /// Completes with a [FindEligiblePromotionsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future< - GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse - > - findEligible( - GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest - request, + async.Future findEligible( + FindEligiblePromotionsRequest request, core.String parent, { core.String? $fields, }) async { @@ -204,7 +197,7 @@ class PartnersPromotionsResource { body: body_, queryParams: queryParams_, ); - return GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse.fromJson( + return FindEligiblePromotionsResponse.fromJson( response_ as core.Map, ); } @@ -245,16 +238,14 @@ class PartnersPromotionsResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a - /// [GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse]. + /// Completes with a [ListPromotionsResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future - list( + async.Future list( core.String parent, { core.String? filter, core.int? pageSize, @@ -275,7 +266,7 @@ class PartnersPromotionsResource { 'GET', queryParams: queryParams_, ); - return GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse.fromJson( + return ListPromotionsResponse.fromJson( response_ as core.Map, ); } @@ -304,19 +295,15 @@ class PartnersSubscriptionsResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a - /// [GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse]. + /// Completes with a [CancelSubscriptionResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future< - GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse - > - cancel( - GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest request, + async.Future cancel( + CancelSubscriptionRequest request, core.String name, { core.String? $fields, }) async { @@ -333,7 +320,7 @@ class PartnersSubscriptionsResource { body: body_, queryParams: queryParams_, ); - return GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse.fromJson( + return CancelSubscriptionResponse.fromJson( response_ as core.Map, ); } @@ -360,15 +347,15 @@ class PartnersSubscriptionsResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudPaymentsResellerSubscriptionV1Subscription]. + /// Completes with a [Subscription]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future create( - GoogleCloudPaymentsResellerSubscriptionV1Subscription request, + async.Future create( + Subscription request, core.String parent, { core.String? subscriptionId, core.String? $fields, @@ -387,7 +374,7 @@ class PartnersSubscriptionsResource { body: body_, queryParams: queryParams_, ); - return GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson( + return Subscription.fromJson( response_ as core.Map, ); } @@ -409,19 +396,15 @@ class PartnersSubscriptionsResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a - /// [GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse]. + /// Completes with a [EntitleSubscriptionResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future< - GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse - > - entitle( - GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest request, + async.Future entitle( + EntitleSubscriptionRequest request, core.String name, { core.String? $fields, }) async { @@ -438,7 +421,7 @@ class PartnersSubscriptionsResource { body: body_, queryParams: queryParams_, ); - return GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse.fromJson( + return EntitleSubscriptionResponse.fromJson( response_ as core.Map, ); } @@ -461,19 +444,15 @@ class PartnersSubscriptionsResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a - /// [GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse]. + /// Completes with a [ExtendSubscriptionResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future< - GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse - > - extend( - GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest request, + async.Future extend( + ExtendSubscriptionRequest request, core.String name, { core.String? $fields, }) async { @@ -490,7 +469,7 @@ class PartnersSubscriptionsResource { body: body_, queryParams: queryParams_, ); - return GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse.fromJson( + return ExtendSubscriptionResponse.fromJson( response_ as core.Map, ); } @@ -509,14 +488,14 @@ class PartnersSubscriptionsResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudPaymentsResellerSubscriptionV1Subscription]. + /// Completes with a [Subscription]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future get( + async.Future get( core.String name, { core.String? $fields, }) async { @@ -531,7 +510,7 @@ class PartnersSubscriptionsResource { 'GET', queryParams: queryParams_, ); - return GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson( + return Subscription.fromJson( response_ as core.Map, ); } @@ -559,15 +538,15 @@ class PartnersSubscriptionsResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a [GoogleCloudPaymentsResellerSubscriptionV1Subscription]. + /// Completes with a [Subscription]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future provision( - GoogleCloudPaymentsResellerSubscriptionV1Subscription request, + async.Future provision( + Subscription request, core.String parent, { core.String? subscriptionId, core.String? $fields, @@ -587,7 +566,7 @@ class PartnersSubscriptionsResource { body: body_, queryParams: queryParams_, ); - return GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson( + return Subscription.fromJson( response_ as core.Map, ); } @@ -609,19 +588,15 @@ class PartnersSubscriptionsResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a - /// [GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse]. + /// Completes with a [ResumeSubscriptionResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future< - GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse - > - resume( - GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest request, + async.Future resume( + ResumeSubscriptionRequest request, core.String name, { core.String? $fields, }) async { @@ -638,7 +613,7 @@ class PartnersSubscriptionsResource { body: body_, queryParams: queryParams_, ); - return GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse.fromJson( + return ResumeSubscriptionResponse.fromJson( response_ as core.Map, ); } @@ -661,19 +636,15 @@ class PartnersSubscriptionsResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a - /// [GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse]. + /// Completes with a [SuspendSubscriptionResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future< - GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse - > - suspend( - GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest request, + async.Future suspend( + SuspendSubscriptionRequest request, core.String name, { core.String? $fields, }) async { @@ -690,7 +661,7 @@ class PartnersSubscriptionsResource { body: body_, queryParams: queryParams_, ); - return GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse.fromJson( + return SuspendSubscriptionResponse.fromJson( response_ as core.Map, ); } @@ -714,20 +685,15 @@ class PartnersSubscriptionsResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a - /// [GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse]. + /// Completes with a [UndoCancelSubscriptionResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future< - GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse - > - undoCancel( - GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest - request, + async.Future undoCancel( + UndoCancelSubscriptionRequest request, core.String name, { core.String? $fields, }) async { @@ -744,7 +710,7 @@ class PartnersSubscriptionsResource { body: body_, queryParams: queryParams_, ); - return GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse.fromJson( + return UndoCancelSubscriptionResponse.fromJson( response_ as core.Map, ); } @@ -776,19 +742,15 @@ class PartnersUserSessionsResource { /// [$fields] - Selector specifying which fields to include in a partial /// response. /// - /// Completes with a - /// [GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse]. + /// Completes with a [GenerateUserSessionResponse]. /// /// Completes with a [commons.ApiRequestError] if the API endpoint returned an /// error. /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future< - GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse - > - generate( - GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest request, + async.Future generate( + GenerateUserSessionRequest request, core.String parent, { core.String? $fields, }) async { @@ -806,14 +768,14 @@ class PartnersUserSessionsResource { body: body_, queryParams: queryParams_, ); - return GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse.fromJson( + return GenerateUserSessionResponse.fromJson( response_ as core.Map, ); } } /// Describes the amount unit including the currency code. -class GoogleCloudPaymentsResellerSubscriptionV1Amount { +class Amount { /// Amount in micros (1_000_000 micros = 1 currency unit) /// /// Required. @@ -827,12 +789,9 @@ class GoogleCloudPaymentsResellerSubscriptionV1Amount { /// Required. core.String? currencyCode; - GoogleCloudPaymentsResellerSubscriptionV1Amount({ - this.amountMicros, - this.currencyCode, - }); + Amount({this.amountMicros, this.currencyCode}); - GoogleCloudPaymentsResellerSubscriptionV1Amount.fromJson(core.Map json_) + Amount.fromJson(core.Map json_) : this( amountMicros: json_['amountMicros'] as core.String?, currencyCode: json_['currencyCode'] as core.String?, @@ -845,7 +804,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Amount { } /// Request to cancel a subscription. -class GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest { +class CancelSubscriptionRequest { /// If true, Google will cancel the subscription immediately, and may or may /// not (based on the contract) issue a prorated refund for the remainder of /// the billing cycle. @@ -880,14 +839,10 @@ class GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest { /// - "CANCELLATION_REASON_OTHER" : Other reason. core.String? cancellationReason; - GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest({ - this.cancelImmediately, - this.cancellationReason, - }); + CancelSubscriptionRequest({this.cancelImmediately, this.cancellationReason}); - GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest.fromJson( - core.Map json_, - ) : this( + CancelSubscriptionRequest.fromJson(core.Map json_) + : this( cancelImmediately: json_['cancelImmediately'] as core.bool?, cancellationReason: json_['cancellationReason'] as core.String?, ); @@ -899,20 +854,17 @@ class GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest { } /// Response that contains the cancelled subscription resource. -class GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse { +class CancelSubscriptionResponse { /// The cancelled subscription resource. - GoogleCloudPaymentsResellerSubscriptionV1Subscription? subscription; + Subscription? subscription; - GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse({ - this.subscription, - }); + CancelSubscriptionResponse({this.subscription}); - GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse.fromJson( - core.Map json_, - ) : this( + CancelSubscriptionResponse.fromJson(core.Map json_) + : this( subscription: json_.containsKey('subscription') - ? GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson( + ? Subscription.fromJson( json_['subscription'] as core.Map, ) : null, @@ -924,7 +876,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse { } /// Intent message for creating a Subscription resource. -class GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent { +class CreateSubscriptionIntent { /// The parent resource name, which is the identifier of the partner. /// /// Required. @@ -933,7 +885,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent { /// The Subscription to be created. /// /// Required. - GoogleCloudPaymentsResellerSubscriptionV1Subscription? subscription; + Subscription? subscription; /// Identifies the subscription resource on the Partner side. /// @@ -944,19 +896,18 @@ class GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent { /// Required. core.String? subscriptionId; - GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent({ + CreateSubscriptionIntent({ this.parent, this.subscription, this.subscriptionId, }); - GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent.fromJson( - core.Map json_, - ) : this( + CreateSubscriptionIntent.fromJson(core.Map json_) + : this( parent: json_['parent'] as core.String?, subscription: json_.containsKey('subscription') - ? GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson( + ? Subscription.fromJson( json_['subscription'] as core.Map, ) : null, @@ -971,7 +922,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent { } /// Describes the length of a period of a time. -class GoogleCloudPaymentsResellerSubscriptionV1Duration { +class Duration { /// number of duration units to be included. core.int? count; @@ -984,9 +935,9 @@ class GoogleCloudPaymentsResellerSubscriptionV1Duration { /// - "HOUR" : Unit of an hour. It is used for testing. core.String? unit; - GoogleCloudPaymentsResellerSubscriptionV1Duration({this.count, this.unit}); + Duration({this.count, this.unit}); - GoogleCloudPaymentsResellerSubscriptionV1Duration.fromJson(core.Map json_) + Duration.fromJson(core.Map json_) : this( count: json_['count'] as core.int?, unit: json_['unit'] as core.String?, @@ -999,7 +950,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Duration { } /// Intent for entitling the previously provisioned subscription to an end user. -class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent { +class EntitleSubscriptionIntent { /// The name of the subscription resource that is entitled to the current end /// user. /// @@ -1009,13 +960,10 @@ class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent { /// Required. core.String? name; - GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent({ - this.name, - }); + EntitleSubscriptionIntent({this.name}); - GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent.fromJson( - core.Map json_, - ) : this(name: json_['name'] as core.String?); + EntitleSubscriptionIntent.fromJson(core.Map json_) + : this(name: json_['name'] as core.String?); core.Map toJson() => { if (name != null) 'name': name!, @@ -1026,29 +974,24 @@ class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent { /// end user. /// /// The end user identity is inferred from the request OAuth context. -class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest { +class EntitleSubscriptionRequest { /// The line items to be entitled. /// /// If unspecified, all line items will be entitled. /// /// Optional. - core.List< - GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails - >? + core.List? lineItemEntitlementDetails; - GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest({ - this.lineItemEntitlementDetails, - }); + EntitleSubscriptionRequest({this.lineItemEntitlementDetails}); - GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest.fromJson( - core.Map json_, - ) : this( + EntitleSubscriptionRequest.fromJson(core.Map json_) + : this( lineItemEntitlementDetails: (json_['lineItemEntitlementDetails'] as core.List?) ?.map( (value) => - GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails.fromJson( + EntitleSubscriptionRequestLineItemEntitlementDetails.fromJson( value as core.Map, ), ) @@ -1062,7 +1005,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest { } /// The details of the line item to be entitled. -class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails { +class EntitleSubscriptionRequestLineItemEntitlementDetails { /// The index of the line item to be entitled. /// /// Required. @@ -1077,14 +1020,13 @@ class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineIte /// Optional. core.List? products; - GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails({ + EntitleSubscriptionRequestLineItemEntitlementDetails({ this.lineItemIndex, this.products, }); - GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails.fromJson( - core.Map json_, - ) : this( + EntitleSubscriptionRequestLineItemEntitlementDetails.fromJson(core.Map json_) + : this( lineItemIndex: json_['lineItemIndex'] as core.int?, products: (json_['products'] as core.List?) @@ -1099,20 +1041,17 @@ class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineIte } /// Response that contains the entitled subscription resource. -class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse { +class EntitleSubscriptionResponse { /// The subscription that has user linked to it. - GoogleCloudPaymentsResellerSubscriptionV1Subscription? subscription; + Subscription? subscription; - GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse({ - this.subscription, - }); + EntitleSubscriptionResponse({this.subscription}); - GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse.fromJson( - core.Map json_, - ) : this( + EntitleSubscriptionResponse.fromJson(core.Map json_) + : this( subscription: json_.containsKey('subscription') - ? GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson( + ? Subscription.fromJson( json_['subscription'] as core.Map, ) : null, @@ -1127,14 +1066,14 @@ class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse { /// /// A new recurrence will be made based on the subscription schedule defined by /// the original product. -class GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest { +class ExtendSubscriptionRequest { /// Specifies details of the extension. /// /// Currently, the duration of the extension must be exactly one billing cycle /// of the original subscription. /// /// Required. - GoogleCloudPaymentsResellerSubscriptionV1Extension? extension; + Extension? extension; /// Restricted to 36 ASCII characters. /// @@ -1146,17 +1085,13 @@ class GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest { /// Required. core.String? requestId; - GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest({ - this.extension, - this.requestId, - }); + ExtendSubscriptionRequest({this.extension, this.requestId}); - GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest.fromJson( - core.Map json_, - ) : this( + ExtendSubscriptionRequest.fromJson(core.Map json_) + : this( extension: json_.containsKey('extension') - ? GoogleCloudPaymentsResellerSubscriptionV1Extension.fromJson( + ? Extension.fromJson( json_['extension'] as core.Map, ) : null, @@ -1170,7 +1105,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest { } /// Response that contains the timestamps after the extension. -class GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse { +class ExtendSubscriptionResponse { /// The time at which the subscription is expected to be extended, in ISO 8061 /// format. /// @@ -1194,15 +1129,14 @@ class GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse { /// Output only. core.String? renewalTime; - GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse({ + ExtendSubscriptionResponse({ this.cycleEndTime, this.freeTrialEndTime, this.renewalTime, }); - GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse.fromJson( - core.Map json_, - ) : this( + ExtendSubscriptionResponse.fromJson(core.Map json_) + : this( cycleEndTime: json_['cycleEndTime'] as core.String?, freeTrialEndTime: json_['freeTrialEndTime'] as core.String?, renewalTime: json_['renewalTime'] as core.String?, @@ -1216,27 +1150,24 @@ class GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse { } /// Describes the details of an extension request. -class GoogleCloudPaymentsResellerSubscriptionV1Extension { +class Extension { /// Specifies the period of access the subscription should grant. /// /// Required. - GoogleCloudPaymentsResellerSubscriptionV1Duration? duration; + Duration? duration; /// Identifier of the end-user in partner’s system. /// /// Required. core.String? partnerUserToken; - GoogleCloudPaymentsResellerSubscriptionV1Extension({ - this.duration, - this.partnerUserToken, - }); + Extension({this.duration, this.partnerUserToken}); - GoogleCloudPaymentsResellerSubscriptionV1Extension.fromJson(core.Map json_) + Extension.fromJson(core.Map json_) : this( duration: json_.containsKey('duration') - ? GoogleCloudPaymentsResellerSubscriptionV1Duration.fromJson( + ? Duration.fromJson( json_['duration'] as core.Map, ) : null, @@ -1250,7 +1181,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Extension { } /// Request to find eligible promotions for the current user. -class GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest { +class FindEligiblePromotionsRequest { /// Specifies the filters for the promotion results. /// /// The syntax is defined in https://google.aip.dev/160 with the following @@ -1285,15 +1216,10 @@ class GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest { /// Optional. core.String? pageToken; - GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest({ - this.filter, - this.pageSize, - this.pageToken, - }); + FindEligiblePromotionsRequest({this.filter, this.pageSize, this.pageToken}); - GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest.fromJson( - core.Map json_, - ) : this( + FindEligiblePromotionsRequest.fromJson(core.Map json_) + : this( filter: json_['filter'] as core.String?, pageSize: json_['pageSize'] as core.int?, pageToken: json_['pageToken'] as core.String?, @@ -1307,31 +1233,26 @@ class GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest { } /// Response containing the found promotions for the current user. -class GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse { +class FindEligiblePromotionsResponse { /// A token, which can be sent as `page_token` to retrieve the next page. /// /// If this field is empty, there are no subsequent pages. core.String? nextPageToken; /// The promotions for the current user. - core.List? promotions; + core.List? promotions; - GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse({ - this.nextPageToken, - this.promotions, - }); + FindEligiblePromotionsResponse({this.nextPageToken, this.promotions}); - GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse.fromJson( - core.Map json_, - ) : this( + FindEligiblePromotionsResponse.fromJson(core.Map json_) + : this( nextPageToken: json_['nextPageToken'] as core.String?, promotions: (json_['promotions'] as core.List?) ?.map( - (value) => - GoogleCloudPaymentsResellerSubscriptionV1Promotion.fromJson( - value as core.Map, - ), + (value) => Promotion.fromJson( + value as core.Map, + ), ) .toList(), ); @@ -1343,20 +1264,17 @@ class GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse { } /// Details for a subscriptiin line item with finite billing cycles. -class GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails { +class FiniteBillingCycleDetails { /// The number of a subscription line item billing cycles after which billing /// will stop automatically. /// /// Required. core.String? billingCycleCountLimit; - GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails({ - this.billingCycleCountLimit, - }); + FiniteBillingCycleDetails({this.billingCycleCountLimit}); - GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails.fromJson( - core.Map json_, - ) : this( + FiniteBillingCycleDetails.fromJson(core.Map json_) + : this( billingCycleCountLimit: json_['billingCycleCountLimit'] as core.String?, ); @@ -1367,20 +1285,17 @@ class GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails { } /// Request to generate a user session. -class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest { +class GenerateUserSessionRequest { /// The user intent to generate the user session. - GoogleCloudPaymentsResellerSubscriptionV1IntentPayload? intentPayload; + IntentPayload? intentPayload; - GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest({ - this.intentPayload, - }); + GenerateUserSessionRequest({this.intentPayload}); - GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest.fromJson( - core.Map json_, - ) : this( + GenerateUserSessionRequest.fromJson(core.Map json_) + : this( intentPayload: json_.containsKey('intentPayload') - ? GoogleCloudPaymentsResellerSubscriptionV1IntentPayload.fromJson( + ? IntentPayload.fromJson( json_['intentPayload'] as core.Map, ) : null, @@ -1392,22 +1307,19 @@ class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest { } /// Response that contains the details for generated user session. -class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse { +class GenerateUserSessionResponse { /// The generated user session. /// /// The token size is proportional to the size of the intent payload. - GoogleCloudPaymentsResellerSubscriptionV1UserSession? userSession; + UserSession? userSession; - GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse({ - this.userSession, - }); + GenerateUserSessionResponse({this.userSession}); - GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse.fromJson( - core.Map json_, - ) : this( + GenerateUserSessionResponse.fromJson(core.Map json_) + : this( userSession: json_.containsKey('userSession') - ? GoogleCloudPaymentsResellerSubscriptionV1UserSession.fromJson( + ? UserSession.fromJson( json_['userSession'] as core.Map, ) : null, @@ -1419,13 +1331,18 @@ class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse { } /// Payload specific for Google Home products. -class GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload { +class GoogleHomePayload { /// This identifies whether the subscription is attached to a Google Home /// structure. /// /// Output only. core.bool? attachedToGoogleStructure; + /// Structure identifier on Google side. + /// + /// Optional. + core.String? googleStructureId; + /// This identifies the structure ID on partner side that the subscription /// should be applied to. /// @@ -1434,28 +1351,30 @@ class GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload { /// Optional. core.String? partnerStructureId; - GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload({ + GoogleHomePayload({ this.attachedToGoogleStructure, + this.googleStructureId, this.partnerStructureId, }); - GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload.fromJson( - core.Map json_, - ) : this( + GoogleHomePayload.fromJson(core.Map json_) + : this( attachedToGoogleStructure: json_['attachedToGoogleStructure'] as core.bool?, + googleStructureId: json_['googleStructureId'] as core.String?, partnerStructureId: json_['partnerStructureId'] as core.String?, ); core.Map toJson() => { if (attachedToGoogleStructure != null) 'attachedToGoogleStructure': attachedToGoogleStructure!, + if (googleStructureId != null) 'googleStructureId': googleStructureId!, if (partnerStructureId != null) 'partnerStructureId': partnerStructureId!, }; } /// Payload specific to Google One products. -class GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload { +class GoogleOnePayload { /// Campaign attributed to sales of this subscription. core.List? campaigns; @@ -1489,16 +1408,15 @@ class GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload { /// The identifier for the partner store where the subscription was sold. core.String? storeId; - GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload({ + GoogleOnePayload({ this.campaigns, this.offering, this.salesChannel, this.storeId, }); - GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload.fromJson( - core.Map json_, - ) : this( + GoogleOnePayload.fromJson(core.Map json_) + : this( campaigns: (json_['campaigns'] as core.List?) ?.map((value) => value as core.String) @@ -1516,33 +1434,30 @@ class GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload { }; } +/// Localized variant of a text in a particular language. +typedef GoogleTypeLocalizedText = $GoogleTypeLocalizedText; + /// The payload that describes the user intent. -class GoogleCloudPaymentsResellerSubscriptionV1IntentPayload { +class IntentPayload { /// The request to create a subscription. - GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent? - createIntent; + CreateSubscriptionIntent? createIntent; /// The request to entitle a subscription. - GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent? - entitleIntent; + EntitleSubscriptionIntent? entitleIntent; - GoogleCloudPaymentsResellerSubscriptionV1IntentPayload({ - this.createIntent, - this.entitleIntent, - }); + IntentPayload({this.createIntent, this.entitleIntent}); - GoogleCloudPaymentsResellerSubscriptionV1IntentPayload.fromJson( - core.Map json_, - ) : this( + IntentPayload.fromJson(core.Map json_) + : this( createIntent: json_.containsKey('createIntent') - ? GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent.fromJson( + ? CreateSubscriptionIntent.fromJson( json_['createIntent'] as core.Map, ) : null, entitleIntent: json_.containsKey('entitleIntent') - ? GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent.fromJson( + ? EntitleSubscriptionIntent.fromJson( json_['entitleIntent'] as core.Map, ) : null, @@ -1555,31 +1470,26 @@ class GoogleCloudPaymentsResellerSubscriptionV1IntentPayload { } /// Response that contains the products. -class GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse { +class ListProductsResponse { /// A token, which can be sent as `page_token` to retrieve the next page. /// /// If this field is empty, there are no subsequent pages. core.String? nextPageToken; /// The products for the specified partner. - core.List? products; + core.List? products; - GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse({ - this.nextPageToken, - this.products, - }); + ListProductsResponse({this.nextPageToken, this.products}); - GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse.fromJson( - core.Map json_, - ) : this( + ListProductsResponse.fromJson(core.Map json_) + : this( nextPageToken: json_['nextPageToken'] as core.String?, products: (json_['products'] as core.List?) ?.map( - (value) => - GoogleCloudPaymentsResellerSubscriptionV1Product.fromJson( - value as core.Map, - ), + (value) => Product.fromJson( + value as core.Map, + ), ) .toList(), ); @@ -1591,31 +1501,26 @@ class GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse { } /// Response that contains the promotions. -class GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse { +class ListPromotionsResponse { /// A token, which can be sent as `page_token` to retrieve the next page. /// /// If this field is empty, there are no subsequent pages. core.String? nextPageToken; /// The promotions for the specified partner. - core.List? promotions; + core.List? promotions; - GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse({ - this.nextPageToken, - this.promotions, - }); + ListPromotionsResponse({this.nextPageToken, this.promotions}); - GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse.fromJson( - core.Map json_, - ) : this( + ListPromotionsResponse.fromJson(core.Map json_) + : this( nextPageToken: json_['nextPageToken'] as core.String?, promotions: (json_['promotions'] as core.List?) ?.map( - (value) => - GoogleCloudPaymentsResellerSubscriptionV1Promotion.fromJson( - value as core.Map, - ), + (value) => Promotion.fromJson( + value as core.Map, + ), ) .toList(), ); @@ -1627,7 +1532,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse { } /// Describes a location of an end user. -class GoogleCloudPaymentsResellerSubscriptionV1Location { +class Location { /// The postal code this location refers to. /// /// Ex. "94043" @@ -1638,12 +1543,9 @@ class GoogleCloudPaymentsResellerSubscriptionV1Location { /// Ex. “US” Please refers to: https://en.wikipedia.org/wiki/ISO_3166-1 core.String? regionCode; - GoogleCloudPaymentsResellerSubscriptionV1Location({ - this.postalCode, - this.regionCode, - }); + Location({this.postalCode, this.regionCode}); - GoogleCloudPaymentsResellerSubscriptionV1Location.fromJson(core.Map json_) + Location.fromJson(core.Map json_) : this( postalCode: json_['postalCode'] as core.String?, regionCode: json_['regionCode'] as core.String?, @@ -1656,7 +1558,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Location { } /// A Product resource that defines a subscription service that can be resold. -class GoogleCloudPaymentsResellerSubscriptionV1Product { +class Product { /// Specifies the details for a bundle product. /// /// Output only. @@ -1667,8 +1569,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Product { /// If unset, the line item will be charged indefinitely. /// /// Optional. - GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails? - finiteBillingCycleDetails; + FiniteBillingCycleDetails? finiteBillingCycleDetails; /// Identifier. /// @@ -1679,8 +1580,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Product { /// Price configs for the product in the available regions. /// /// Output only. - core.List? - priceConfigs; + core.List? priceConfigs; /// Specifies the type of the product. /// @@ -1703,15 +1603,14 @@ class GoogleCloudPaymentsResellerSubscriptionV1Product { /// Specifies the length of the billing cycle of the subscription. /// /// Output only. - GoogleCloudPaymentsResellerSubscriptionV1Duration? - subscriptionBillingCycleDuration; + Duration? subscriptionBillingCycleDuration; /// Localized human readable name of the product. /// /// Output only. core.List? titles; - GoogleCloudPaymentsResellerSubscriptionV1Product({ + Product({ this.bundleDetails, this.finiteBillingCycleDetails, this.name, @@ -1722,7 +1621,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Product { this.titles, }); - GoogleCloudPaymentsResellerSubscriptionV1Product.fromJson(core.Map json_) + Product.fromJson(core.Map json_) : this( bundleDetails: json_.containsKey('bundleDetails') @@ -1732,7 +1631,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Product { : null, finiteBillingCycleDetails: json_.containsKey('finiteBillingCycleDetails') - ? GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails.fromJson( + ? FiniteBillingCycleDetails.fromJson( json_['finiteBillingCycleDetails'] as core.Map, ) @@ -1741,10 +1640,9 @@ class GoogleCloudPaymentsResellerSubscriptionV1Product { priceConfigs: (json_['priceConfigs'] as core.List?) ?.map( - (value) => - GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig.fromJson( - value as core.Map, - ), + (value) => ProductPriceConfig.fromJson( + value as core.Map, + ), ) .toList(), productType: json_['productType'] as core.String?, @@ -1754,7 +1652,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Product { .toList(), subscriptionBillingCycleDuration: json_.containsKey('subscriptionBillingCycleDuration') - ? GoogleCloudPaymentsResellerSubscriptionV1Duration.fromJson( + ? Duration.fromJson( json_['subscriptionBillingCycleDuration'] as core.Map, ) @@ -1783,8 +1681,44 @@ class GoogleCloudPaymentsResellerSubscriptionV1Product { }; } +/// Details for a bundle product. +class ProductBundleDetails { + /// The individual products that are included in the bundle. + core.List? bundleElements; + + /// The entitlement mode of the bundle product. + /// Possible string values are: + /// - "ENTITLEMENT_MODE_UNSPECIFIED" : Unspecified. It's reserved as an + /// unexpected value, should not be used. + /// - "ENTITLEMENT_MODE_FULL" : All the bundle elements must be fully + /// activated in a single request. + /// - "ENTITLEMENT_MODE_INCREMENTAL" : The bundle elements could be + /// incrementally activated. + core.String? entitlementMode; + + ProductBundleDetails({this.bundleElements, this.entitlementMode}); + + ProductBundleDetails.fromJson(core.Map json_) + : this( + bundleElements: + (json_['bundleElements'] as core.List?) + ?.map( + (value) => ProductBundleDetailsBundleElement.fromJson( + value as core.Map, + ), + ) + .toList(), + entitlementMode: json_['entitlementMode'] as core.String?, + ); + + core.Map toJson() => { + if (bundleElements != null) 'bundleElements': bundleElements!, + if (entitlementMode != null) 'entitlementMode': entitlementMode!, + }; +} + /// The individual product that is included in the bundle. -class GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement { +class ProductBundleDetailsBundleElement { /// Product resource name that identifies the bundle element. /// /// The format is 'partners/{partner_id}/products/{product_id}'. @@ -1792,13 +1726,10 @@ class GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement /// Required. Output only. core.String? product; - GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement({ - this.product, - }); + ProductBundleDetailsBundleElement({this.product}); - GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement.fromJson( - core.Map json_, - ) : this(product: json_['product'] as core.String?); + ProductBundleDetailsBundleElement.fromJson(core.Map json_) + : this(product: json_['product'] as core.String?); core.Map toJson() => { if (product != null) 'product': product!, @@ -1806,44 +1737,43 @@ class GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement } /// Specifies product specific payload. -class GoogleCloudPaymentsResellerSubscriptionV1ProductPayload { +class ProductPayload { /// Payload specific to Google Home products. - GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload? googleHomePayload; + GoogleHomePayload? googleHomePayload; /// Product-specific payloads. /// /// Payload specific to Google One products. - GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload? googleOnePayload; + GoogleOnePayload? googleOnePayload; /// Payload specific to Youtube products. - GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload? youtubePayload; + YoutubePayload? youtubePayload; - GoogleCloudPaymentsResellerSubscriptionV1ProductPayload({ + ProductPayload({ this.googleHomePayload, this.googleOnePayload, this.youtubePayload, }); - GoogleCloudPaymentsResellerSubscriptionV1ProductPayload.fromJson( - core.Map json_, - ) : this( + ProductPayload.fromJson(core.Map json_) + : this( googleHomePayload: json_.containsKey('googleHomePayload') - ? GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload.fromJson( + ? GoogleHomePayload.fromJson( json_['googleHomePayload'] as core.Map, ) : null, googleOnePayload: json_.containsKey('googleOnePayload') - ? GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload.fromJson( + ? GoogleOnePayload.fromJson( json_['googleOnePayload'] as core.Map, ) : null, youtubePayload: json_.containsKey('youtubePayload') - ? GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload.fromJson( + ? YoutubePayload.fromJson( json_['youtubePayload'] as core.Map, ) @@ -1858,11 +1788,11 @@ class GoogleCloudPaymentsResellerSubscriptionV1ProductPayload { } /// Configs the prices in an available region. -class GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig { +class ProductPriceConfig { /// The price in the region. /// /// Output only. - GoogleCloudPaymentsResellerSubscriptionV1Amount? amount; + Amount? amount; /// 2-letter ISO region code where the product is available in. /// @@ -1871,17 +1801,13 @@ class GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig { /// Output only. core.String? regionCode; - GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig({ - this.amount, - this.regionCode, - }); + ProductPriceConfig({this.amount, this.regionCode}); - GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig.fromJson( - core.Map json_, - ) : this( + ProductPriceConfig.fromJson(core.Map json_) + : this( amount: json_.containsKey('amount') - ? GoogleCloudPaymentsResellerSubscriptionV1Amount.fromJson( + ? Amount.fromJson( json_['amount'] as core.Map, ) : null, @@ -1896,7 +1822,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig { /// A Promotion resource that defines a promotion for a subscription that can be /// resold. -class GoogleCloudPaymentsResellerSubscriptionV1Promotion { +class Promotion { /// The product ids this promotion can be applied to. /// /// Output only. @@ -1914,14 +1840,13 @@ class GoogleCloudPaymentsResellerSubscriptionV1Promotion { /// promotion_type is PROMOTION_TYPE_FREE_TRIAL /// /// Optional. - GoogleCloudPaymentsResellerSubscriptionV1Duration? freeTrialDuration; + Duration? freeTrialDuration; /// Specifies the introductory pricing details when the promotion_type is /// PROMOTION_TYPE_INTRODUCTORY_PRICING. /// /// Optional. - GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails? - introductoryPricingDetails; + PromotionIntroductoryPricingDetails? introductoryPricingDetails; /// Identifier. /// @@ -1957,7 +1882,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Promotion { /// Output only. core.List? titles; - GoogleCloudPaymentsResellerSubscriptionV1Promotion({ + Promotion({ this.applicableProducts, this.endTime, this.freeTrialDuration, @@ -1969,7 +1894,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Promotion { this.titles, }); - GoogleCloudPaymentsResellerSubscriptionV1Promotion.fromJson(core.Map json_) + Promotion.fromJson(core.Map json_) : this( applicableProducts: (json_['applicableProducts'] as core.List?) @@ -1978,14 +1903,14 @@ class GoogleCloudPaymentsResellerSubscriptionV1Promotion { endTime: json_['endTime'] as core.String?, freeTrialDuration: json_.containsKey('freeTrialDuration') - ? GoogleCloudPaymentsResellerSubscriptionV1Duration.fromJson( + ? Duration.fromJson( json_['freeTrialDuration'] as core.Map, ) : null, introductoryPricingDetails: json_.containsKey('introductoryPricingDetails') - ? GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails.fromJson( + ? PromotionIntroductoryPricingDetails.fromJson( json_['introductoryPricingDetails'] as core.Map, ) @@ -2022,27 +1947,22 @@ class GoogleCloudPaymentsResellerSubscriptionV1Promotion { } /// The details of a introductory pricing promotion. -class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails { +class PromotionIntroductoryPricingDetails { /// Specifies the introductory pricing periods. /// /// Output only. - core.List< - GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec - >? + core.List? introductoryPricingSpecs; - GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails({ - this.introductoryPricingSpecs, - }); + PromotionIntroductoryPricingDetails({this.introductoryPricingSpecs}); - GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails.fromJson( - core.Map json_, - ) : this( + PromotionIntroductoryPricingDetails.fromJson(core.Map json_) + : this( introductoryPricingSpecs: (json_['introductoryPricingSpecs'] as core.List?) ?.map( (value) => - GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec.fromJson( + PromotionIntroductoryPricingDetailsIntroductoryPricingSpec.fromJson( value as core.Map, ), ) @@ -2056,13 +1976,13 @@ class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetai } /// The duration of an introductory pricing promotion. -class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec { +class PromotionIntroductoryPricingDetailsIntroductoryPricingSpec { /// The discount amount. /// /// The value is positive. /// /// Output only. - GoogleCloudPaymentsResellerSubscriptionV1Amount? discountAmount; + Amount? discountAmount; /// The discount percentage in micros. /// @@ -2083,19 +2003,19 @@ class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetai /// Output only. core.String? regionCode; - GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec({ + PromotionIntroductoryPricingDetailsIntroductoryPricingSpec({ this.discountAmount, this.discountRatioMicros, this.recurrenceCount, this.regionCode, }); - GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec.fromJson( + PromotionIntroductoryPricingDetailsIntroductoryPricingSpec.fromJson( core.Map json_, ) : this( discountAmount: json_.containsKey('discountAmount') - ? GoogleCloudPaymentsResellerSubscriptionV1Amount.fromJson( + ? Amount.fromJson( json_['discountAmount'] as core.Map, ) @@ -2115,24 +2035,20 @@ class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetai } /// Request to resume a suspended subscription. -typedef GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest = - $Empty; +typedef ResumeSubscriptionRequest = $Empty; /// Response that contains the resumed subscription. -class GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse { +class ResumeSubscriptionResponse { /// The resumed subscription resource. - GoogleCloudPaymentsResellerSubscriptionV1Subscription? subscription; + Subscription? subscription; - GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse({ - this.subscription, - }); + ResumeSubscriptionResponse({this.subscription}); - GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse.fromJson( - core.Map json_, - ) : this( + ResumeSubscriptionResponse.fromJson(core.Map json_) + : this( subscription: json_.containsKey('subscription') - ? GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson( + ? Subscription.fromJson( json_['subscription'] as core.Map, ) : null, @@ -2145,7 +2061,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse { /// A description of what time period or moment in time the product or service /// is being delivered over. -class GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod { +class ServicePeriod { /// The end time of the service period. /// /// Time is exclusive. @@ -2160,14 +2076,10 @@ class GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod { /// Required. core.String? startTime; - GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod({ - this.endTime, - this.startTime, - }); + ServicePeriod({this.endTime, this.startTime}); - GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod.fromJson( - core.Map json_, - ) : this( + ServicePeriod.fromJson(core.Map json_) + : this( endTime: json_['endTime'] as core.String?, startTime: json_['startTime'] as core.String?, ); @@ -2189,14 +2101,13 @@ class GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod { /// has been immediately canceled. However, other services may not do the same. /// To fully understand the specific details, please consult the relevant /// contract or product policy. -class GoogleCloudPaymentsResellerSubscriptionV1Subscription { +class Subscription { /// Describes the details of a cancelled subscription. /// /// Only applicable to subscription of state `STATE_CANCELLED`. /// /// Output only. - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails? - cancellationDetails; + SubscriptionCancellationDetails? cancellationDetails; /// System generated timestamp when the subscription is created. /// @@ -2229,16 +2140,14 @@ class GoogleCloudPaymentsResellerSubscriptionV1Subscription { /// The line items of the subscription. /// /// Required. - core.List? - lineItems; + core.List? lineItems; /// Describes the details of the migrated subscription. /// /// Only populated if this subscription is migrated from another system. /// /// Output only. - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails? - migrationDetails; + SubscriptionMigrationDetails? migrationDetails; /// Identifier. /// @@ -2281,8 +2190,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Subscription { /// Specify the promotion resource name only when used as input. /// /// Optional. - core.List? - promotionSpecs; + core.List? promotionSpecs; /// Deprecated: consider using the top-level `promotion_specs` as the input. /// @@ -2324,7 +2232,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Subscription { /// The location that the service is provided as indicated by the partner. /// /// Required. - GoogleCloudPaymentsResellerSubscriptionV1Location? serviceLocation; + Location? serviceLocation; /// Describes the state of the subscription. /// @@ -2362,10 +2270,9 @@ class GoogleCloudPaymentsResellerSubscriptionV1Subscription { /// subscription. /// /// Optional. - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails? - upgradeDowngradeDetails; + SubscriptionUpgradeDowngradeDetails? upgradeDowngradeDetails; - GoogleCloudPaymentsResellerSubscriptionV1Subscription({ + Subscription({ this.cancellationDetails, this.createTime, this.cycleEndTime, @@ -2388,11 +2295,11 @@ class GoogleCloudPaymentsResellerSubscriptionV1Subscription { this.upgradeDowngradeDetails, }); - GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson(core.Map json_) + Subscription.fromJson(core.Map json_) : this( cancellationDetails: json_.containsKey('cancellationDetails') - ? GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails.fromJson( + ? SubscriptionCancellationDetails.fromJson( json_['cancellationDetails'] as core.Map, ) @@ -2404,15 +2311,14 @@ class GoogleCloudPaymentsResellerSubscriptionV1Subscription { lineItems: (json_['lineItems'] as core.List?) ?.map( - (value) => - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem.fromJson( - value as core.Map, - ), + (value) => SubscriptionLineItem.fromJson( + value as core.Map, + ), ) .toList(), migrationDetails: json_.containsKey('migrationDetails') - ? GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails.fromJson( + ? SubscriptionMigrationDetails.fromJson( json_['migrationDetails'] as core.Map, ) @@ -2427,10 +2333,9 @@ class GoogleCloudPaymentsResellerSubscriptionV1Subscription { promotionSpecs: (json_['promotionSpecs'] as core.List?) ?.map( - (value) => - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec.fromJson( - value as core.Map, - ), + (value) => SubscriptionPromotionSpec.fromJson( + value as core.Map, + ), ) .toList(), promotions: @@ -2442,7 +2347,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Subscription { renewalTime: json_['renewalTime'] as core.String?, serviceLocation: json_.containsKey('serviceLocation') - ? GoogleCloudPaymentsResellerSubscriptionV1Location.fromJson( + ? Location.fromJson( json_['serviceLocation'] as core.Map, ) @@ -2451,7 +2356,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Subscription { updateTime: json_['updateTime'] as core.String?, upgradeDowngradeDetails: json_.containsKey('upgradeDowngradeDetails') - ? GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails.fromJson( + ? SubscriptionUpgradeDowngradeDetails.fromJson( json_['upgradeDowngradeDetails'] as core.Map, ) @@ -2485,7 +2390,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1Subscription { } /// Describes the details of a cancelled or cancelling subscription. -class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails { +class SubscriptionCancellationDetails { /// The reason of the cancellation. /// /// Output only. @@ -2510,13 +2415,10 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails { /// - "CANCELLATION_REASON_OTHER" : Other reason. core.String? reason; - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails({ - this.reason, - }); + SubscriptionCancellationDetails({this.reason}); - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails.fromJson( - core.Map json_, - ) : this(reason: json_['reason'] as core.String?); + SubscriptionCancellationDetails.fromJson(core.Map json_) + : this(reason: json_['reason'] as core.String?); core.Map toJson() => { if (reason != null) 'reason': reason!, @@ -2524,14 +2426,14 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails { } /// Individual line item definition of a subscription. -class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem { +class SubscriptionLineItem { /// The price of the product/service in this line item. /// /// The amount could be the wholesale price, or it can include a cost of sale /// based on the contract. /// /// Output only. - GoogleCloudPaymentsResellerSubscriptionV1Amount? amount; + Amount? amount; /// The bundle details for the line item. /// @@ -2551,8 +2453,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem { /// LINE_ITEM_RECURRENCE_TYPE_PERIODIC. /// /// Optional. - GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails? - finiteBillingCycleDetails; + FiniteBillingCycleDetails? finiteBillingCycleDetails; /// The free trial end time will be populated after the line item is /// successfully processed. @@ -2576,14 +2477,12 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem { /// used as input in Create or Provision API, specify its resource name only. /// /// Optional. - core.List? - lineItemPromotionSpecs; + core.List? lineItemPromotionSpecs; /// Details only set for a ONE_TIME recurrence line item. /// /// Output only. - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails? - oneTimeRecurrenceDetails; + SubscriptionLineItemOneTimeRecurrenceDetails? oneTimeRecurrenceDetails; /// Product resource name that identifies one the line item The format is /// 'partners/{partner_id}/products/{product_id}'. @@ -2594,7 +2493,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem { /// Product specific payload for this line item. /// /// Optional. - GoogleCloudPaymentsResellerSubscriptionV1ProductPayload? productPayload; + ProductPayload? productPayload; /// The recurrence type of the line item. /// @@ -2631,7 +2530,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem { /// off-cycle. core.String? state; - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem({ + SubscriptionLineItem({ this.amount, this.bundleDetails, this.description, @@ -2646,12 +2545,11 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem { this.state, }); - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem.fromJson( - core.Map json_, - ) : this( + SubscriptionLineItem.fromJson(core.Map json_) + : this( amount: json_.containsKey('amount') - ? GoogleCloudPaymentsResellerSubscriptionV1Amount.fromJson( + ? Amount.fromJson( json_['amount'] as core.Map, ) : null, @@ -2664,7 +2562,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem { description: json_['description'] as core.String?, finiteBillingCycleDetails: json_.containsKey('finiteBillingCycleDetails') - ? GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails.fromJson( + ? FiniteBillingCycleDetails.fromJson( json_['finiteBillingCycleDetails'] as core.Map, ) @@ -2675,15 +2573,14 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem { lineItemPromotionSpecs: (json_['lineItemPromotionSpecs'] as core.List?) ?.map( - (value) => - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec.fromJson( - value as core.Map, - ), + (value) => SubscriptionPromotionSpec.fromJson( + value as core.Map, + ), ) .toList(), oneTimeRecurrenceDetails: json_.containsKey('oneTimeRecurrenceDetails') - ? GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails.fromJson( + ? SubscriptionLineItemOneTimeRecurrenceDetails.fromJson( json_['oneTimeRecurrenceDetails'] as core.Map, ) @@ -2691,7 +2588,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem { product: json_['product'] as core.String?, productPayload: json_.containsKey('productPayload') - ? GoogleCloudPaymentsResellerSubscriptionV1ProductPayload.fromJson( + ? ProductPayload.fromJson( json_['productPayload'] as core.Map, ) @@ -2720,8 +2617,37 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem { }; } +/// The bundle details for a line item corresponding to a hard bundle. +class SubscriptionLineItemBundleDetails { + /// The details for each element in the hard bundle. + /// + /// Output only. + core.List? + bundleElementDetails; + + SubscriptionLineItemBundleDetails({this.bundleElementDetails}); + + SubscriptionLineItemBundleDetails.fromJson(core.Map json_) + : this( + bundleElementDetails: + (json_['bundleElementDetails'] as core.List?) + ?.map( + (value) => + SubscriptionLineItemBundleDetailsBundleElementDetails.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (bundleElementDetails != null) + 'bundleElementDetails': bundleElementDetails!, + }; +} + /// The details for an element in the hard bundle. -class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails { +class SubscriptionLineItemBundleDetailsBundleElementDetails { /// Product resource name that identifies the bundle element. /// /// The format is 'partners/{partner_id}/products/{product_id}'. @@ -2734,14 +2660,13 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetails /// Output only. core.String? userAccountLinkedTime; - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails({ + SubscriptionLineItemBundleDetailsBundleElementDetails({ this.product, this.userAccountLinkedTime, }); - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails.fromJson( - core.Map json_, - ) : this( + SubscriptionLineItemBundleDetailsBundleElementDetails.fromJson(core.Map json_) + : this( product: json_['product'] as core.String?, userAccountLinkedTime: json_['userAccountLinkedTime'] as core.String?, ); @@ -2754,22 +2679,19 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetails } /// Details for a ONE_TIME recurrence line item. -class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails { +class SubscriptionLineItemOneTimeRecurrenceDetails { /// The service period of the ONE_TIME line item. /// /// Output only. - GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod? servicePeriod; + ServicePeriod? servicePeriod; - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails({ - this.servicePeriod, - }); + SubscriptionLineItemOneTimeRecurrenceDetails({this.servicePeriod}); - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails.fromJson( - core.Map json_, - ) : this( + SubscriptionLineItemOneTimeRecurrenceDetails.fromJson(core.Map json_) + : this( servicePeriod: json_.containsKey('servicePeriod') - ? GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod.fromJson( + ? ServicePeriod.fromJson( json_['servicePeriod'] as core.Map, ) : null, @@ -2781,19 +2703,16 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurr } /// Describes the details of the migrated subscription. -class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails { +class SubscriptionMigrationDetails { /// The migrated subscription id in the legacy system. /// /// Output only. core.String? migratedSubscriptionId; - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails({ - this.migratedSubscriptionId, - }); + SubscriptionMigrationDetails({this.migratedSubscriptionId}); - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails.fromJson( - core.Map json_, - ) : this( + SubscriptionMigrationDetails.fromJson(core.Map json_) + : this( migratedSubscriptionId: json_['migratedSubscriptionId'] as core.String?, ); @@ -2804,18 +2723,17 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails { } /// Describes the spec for one promotion. -class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec { +class SubscriptionPromotionSpec { /// The duration of the free trial if the promotion is of type FREE_TRIAL. /// /// Output only. - GoogleCloudPaymentsResellerSubscriptionV1Duration? freeTrialDuration; + Duration? freeTrialDuration; /// The details of the introductory pricing spec if the promotion is of type /// INTRODUCTORY_PRICING. /// /// Output only. - GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails? - introductoryPricingDetails; + PromotionIntroductoryPricingDetails? introductoryPricingDetails; /// Promotion resource name that identifies a promotion. /// @@ -2834,26 +2752,25 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec { /// introductory pricing. core.String? type; - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec({ + SubscriptionPromotionSpec({ this.freeTrialDuration, this.introductoryPricingDetails, this.promotion, this.type, }); - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec.fromJson( - core.Map json_, - ) : this( + SubscriptionPromotionSpec.fromJson(core.Map json_) + : this( freeTrialDuration: json_.containsKey('freeTrialDuration') - ? GoogleCloudPaymentsResellerSubscriptionV1Duration.fromJson( + ? Duration.fromJson( json_['freeTrialDuration'] as core.Map, ) : null, introductoryPricingDetails: json_.containsKey('introductoryPricingDetails') - ? GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails.fromJson( + ? PromotionIntroductoryPricingDetails.fromJson( json_['introductoryPricingDetails'] as core.Map, ) @@ -2873,7 +2790,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec { /// Details about the previous subscription that this new subscription /// upgrades/downgrades from. -class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails { +class SubscriptionUpgradeDowngradeDetails { /// Specifies the billing cycle spec for the new upgraded/downgraded /// subscription. /// @@ -2893,19 +2810,21 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetai /// The previous subscription id to be replaced. /// - /// This is not the full resource name, use the subscription_id segment only. + /// The format can be one of the following: 1. `subscription_id`: the old + /// subscription id under the same partner_id. 2. + /// `partners/{partner_id}/subscriptions/{subscription_id}`. A different + /// partner_id is allowed. But they must be under the same partner group. /// /// Required. core.String? previousSubscriptionId; - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails({ + SubscriptionUpgradeDowngradeDetails({ this.billingCycleSpec, this.previousSubscriptionId, }); - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails.fromJson( - core.Map json_, - ) : this( + SubscriptionUpgradeDowngradeDetails.fromJson(core.Map json_) + : this( billingCycleSpec: json_['billingCycleSpec'] as core.String?, previousSubscriptionId: json_['previousSubscriptionId'] as core.String?, ); @@ -2918,24 +2837,20 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetai } /// Request to suspend a subscription. -typedef GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest = - $Empty; +typedef SuspendSubscriptionRequest = $Empty; /// Response that contains the suspended subscription. -class GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse { +class SuspendSubscriptionResponse { /// The suspended subscription resource. - GoogleCloudPaymentsResellerSubscriptionV1Subscription? subscription; + Subscription? subscription; - GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse({ - this.subscription, - }); + SuspendSubscriptionResponse({this.subscription}); - GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse.fromJson( - core.Map json_, - ) : this( + SuspendSubscriptionResponse.fromJson(core.Map json_) + : this( subscription: json_.containsKey('subscription') - ? GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson( + ? Subscription.fromJson( json_['subscription'] as core.Map, ) : null, @@ -2947,24 +2862,20 @@ class GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse { } /// Request to revoke a cancellation request. -typedef GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest = - $Empty; +typedef UndoCancelSubscriptionRequest = $Empty; /// Response that contains the updated subscription resource. -class GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse { +class UndoCancelSubscriptionResponse { /// The updated subscription resource. - GoogleCloudPaymentsResellerSubscriptionV1Subscription? subscription; + Subscription? subscription; - GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse({ - this.subscription, - }); + UndoCancelSubscriptionResponse({this.subscription}); - GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse.fromJson( - core.Map json_, - ) : this( + UndoCancelSubscriptionResponse.fromJson(core.Map json_) + : this( subscription: json_.containsKey('subscription') - ? GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson( + ? Subscription.fromJson( json_['subscription'] as core.Map, ) : null, @@ -2988,7 +2899,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse { /// guaranteed by the same subscription id. Please refer to the \[Google Managed /// Signup\](/payments/reseller/subscription/reference/index/User.Signup.Integration/Google.Managed.Signup) /// documentation for additional integration details. -class GoogleCloudPaymentsResellerSubscriptionV1UserSession { +class UserSession { /// The time at which the user session expires. /// /// Output only. @@ -3002,12 +2913,9 @@ class GoogleCloudPaymentsResellerSubscriptionV1UserSession { /// Output only. core.String? token; - GoogleCloudPaymentsResellerSubscriptionV1UserSession({ - this.expireTime, - this.token, - }); + UserSession({this.expireTime, this.token}); - GoogleCloudPaymentsResellerSubscriptionV1UserSession.fromJson(core.Map json_) + UserSession.fromJson(core.Map json_) : this( expireTime: json_['expireTime'] as core.String?, token: json_['token'] as core.String?, @@ -3020,7 +2928,7 @@ class GoogleCloudPaymentsResellerSubscriptionV1UserSession { } /// Payload specific to Youtube products. -class GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload { +class YoutubePayload { /// The access expiration time for this line item. /// /// Output only. @@ -3044,15 +2952,14 @@ class GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload { /// opts in this Google service. core.String? partnerPlanType; - GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload({ + YoutubePayload({ this.accessEndTime, this.partnerEligibilityIds, this.partnerPlanType, }); - GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload.fromJson( - core.Map json_, - ) : this( + YoutubePayload.fromJson(core.Map json_) + : this( accessEndTime: json_['accessEndTime'] as core.String?, partnerEligibilityIds: (json_['partnerEligibilityIds'] as core.List?) @@ -3068,77 +2975,3 @@ class GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload { if (partnerPlanType != null) 'partnerPlanType': partnerPlanType!, }; } - -/// Localized variant of a text in a particular language. -typedef GoogleTypeLocalizedText = $GoogleTypeLocalizedText; - -/// Details for a bundle product. -class ProductBundleDetails { - /// The individual products that are included in the bundle. - core.List< - GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement - >? - bundleElements; - - /// The entitlement mode of the bundle product. - /// Possible string values are: - /// - "ENTITLEMENT_MODE_UNSPECIFIED" : Unspecified. It's reserved as an - /// unexpected value, should not be used. - /// - "ENTITLEMENT_MODE_FULL" : All the bundle elements must be fully - /// activated in a single request. - /// - "ENTITLEMENT_MODE_INCREMENTAL" : The bundle elements could be - /// incrementally activated. - core.String? entitlementMode; - - ProductBundleDetails({this.bundleElements, this.entitlementMode}); - - ProductBundleDetails.fromJson(core.Map json_) - : this( - bundleElements: - (json_['bundleElements'] as core.List?) - ?.map( - (value) => - GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement.fromJson( - value as core.Map, - ), - ) - .toList(), - entitlementMode: json_['entitlementMode'] as core.String?, - ); - - core.Map toJson() => { - if (bundleElements != null) 'bundleElements': bundleElements!, - if (entitlementMode != null) 'entitlementMode': entitlementMode!, - }; -} - -/// The bundle details for a line item corresponding to a hard bundle. -class SubscriptionLineItemBundleDetails { - /// The details for each element in the hard bundle. - /// - /// Output only. - core.List< - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails - >? - bundleElementDetails; - - SubscriptionLineItemBundleDetails({this.bundleElementDetails}); - - SubscriptionLineItemBundleDetails.fromJson(core.Map json_) - : this( - bundleElementDetails: - (json_['bundleElementDetails'] as core.List?) - ?.map( - (value) => - GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails.fromJson( - value as core.Map, - ), - ) - .toList(), - ); - - core.Map toJson() => { - if (bundleElementDetails != null) - 'bundleElementDetails': bundleElementDetails!, - }; -} diff --git a/generated/googleapis/lib/places/v1.dart b/generated/googleapis/lib/places/v1.dart index ef51206df..d43436b22 100644 --- a/generated/googleapis/lib/places/v1.dart +++ b/generated/googleapis/lib/places/v1.dart @@ -618,7 +618,35 @@ class GoogleMapsPlacesV1AddressDescriptorLandmark { /// Information about the author of the UGC data. /// /// Used in Photo, and Review. -typedef GoogleMapsPlacesV1AuthorAttribution = $AuthorAttribution; +class GoogleMapsPlacesV1AuthorAttribution { + /// Name of the author of the Photo or Review. + core.String? displayName; + + /// Profile photo URI of the author of the Photo or Review. + core.String? photoUri; + + /// URI of the author of the Photo or Review. + core.String? uri; + + GoogleMapsPlacesV1AuthorAttribution({ + this.displayName, + this.photoUri, + this.uri, + }); + + GoogleMapsPlacesV1AuthorAttribution.fromJson(core.Map json_) + : this( + displayName: json_['displayName'] as core.String?, + photoUri: json_['photoUri'] as core.String?, + uri: json_['uri'] as core.String?, + ); + + core.Map toJson() => { + if (displayName != null) 'displayName': displayName!, + if (photoUri != null) 'photoUri': photoUri!, + if (uri != null) 'uri': uri!, + }; +} /// Request proto for AutocompletePlaces. class GoogleMapsPlacesV1AutocompletePlacesRequest { @@ -2774,7 +2802,7 @@ class GoogleMapsPlacesV1PlaceEvChargeAmenitySummary { /// A summary of the nearby restaurants. GoogleMapsPlacesV1ContentBlock? restaurant; - /// A summary of the nearby gas stations. + /// A summary of the nearby stores. GoogleMapsPlacesV1ContentBlock? store; GoogleMapsPlacesV1PlaceEvChargeAmenitySummary({ diff --git a/generated/googleapis/lib/playintegrity/v1.dart b/generated/googleapis/lib/playintegrity/v1.dart index 606d15c36..e8a4004df 100644 --- a/generated/googleapis/lib/playintegrity/v1.dart +++ b/generated/googleapis/lib/playintegrity/v1.dart @@ -261,10 +261,8 @@ class AccountDetails { /// Possible string values are: /// - "UNKNOWN" : Play does not have sufficient information to evaluate /// licensing details - /// - "LICENSED" : The app and certificate match the versions distributed by - /// Play. - /// - "UNLICENSED" : The certificate or package name does not match Google - /// Play records. + /// - "LICENSED" : The user has a valid license to use the app. + /// - "UNLICENSED" : The user does not have a valid license to use the app. /// - "UNEVALUATED" : Licensing details were not evaluated since a necessary /// requirement was missed. For example DeviceIntegrity did not meet the /// minimum bar or the application was not a known Play version. @@ -599,6 +597,32 @@ class EnvironmentDetails { }; } +/// Contains the account information such as the licensing status for the user +/// in the scope. +class PcAccountDetails { + /// Details about the licensing status of the user for the app in the scope. + /// + /// Required. + /// Possible string values are: + /// - "UNKNOWN" : Play does not have sufficient information to evaluate + /// licensing details + /// - "LICENSED" : The user has a valid license to use the app. + /// - "UNLICENSED" : The user does not have a valid license to use the app. + /// - "UNEVALUATED" : Licensing details were not evaluated since a necessary + /// requirement was missed. + core.String? appLicensingVerdict; + + PcAccountDetails({this.appLicensingVerdict}); + + PcAccountDetails.fromJson(core.Map json_) + : this(appLicensingVerdict: json_['appLicensingVerdict'] as core.String?); + + core.Map toJson() => { + if (appLicensingVerdict != null) + 'appLicensingVerdict': appLicensingVerdict!, + }; +} + /// Contains the device attestation information. class PcDeviceIntegrity { /// Details about the integrity of the device the app is running on. @@ -657,8 +681,27 @@ class PcRequestDetails { }; } +/// Contains additional information generated for testing responses. +class PcTestingDetails { + /// Indicates that the information contained in this payload is a testing + /// response that is statically overridden for a tester. + core.bool? isTestingResponse; + + PcTestingDetails({this.isTestingResponse}); + + PcTestingDetails.fromJson(core.Map json_) + : this(isTestingResponse: json_['isTestingResponse'] as core.bool?); + + core.Map toJson() => { + if (isTestingResponse != null) 'isTestingResponse': isTestingResponse!, + }; +} + /// Contains PC device attestation details. class PcTokenPayloadExternal { + /// Details about the account information such as the licensing status. + PcAccountDetails? accountDetails; + /// Details about the device integrity. /// /// Required. @@ -669,10 +712,26 @@ class PcTokenPayloadExternal { /// Required. PcRequestDetails? requestDetails; - PcTokenPayloadExternal({this.deviceIntegrity, this.requestDetails}); + /// Indicates that this payload is generated for testing purposes and contains + /// any additional data that is linked with testing status. + PcTestingDetails? testingDetails; + + PcTokenPayloadExternal({ + this.accountDetails, + this.deviceIntegrity, + this.requestDetails, + this.testingDetails, + }); PcTokenPayloadExternal.fromJson(core.Map json_) : this( + accountDetails: + json_.containsKey('accountDetails') + ? PcAccountDetails.fromJson( + json_['accountDetails'] + as core.Map, + ) + : null, deviceIntegrity: json_.containsKey('deviceIntegrity') ? PcDeviceIntegrity.fromJson( @@ -687,11 +746,20 @@ class PcTokenPayloadExternal { as core.Map, ) : null, + testingDetails: + json_.containsKey('testingDetails') + ? PcTestingDetails.fromJson( + json_['testingDetails'] + as core.Map, + ) + : null, ); core.Map toJson() => { + if (accountDetails != null) 'accountDetails': accountDetails!, if (deviceIntegrity != null) 'deviceIntegrity': deviceIntegrity!, if (requestDetails != null) 'requestDetails': requestDetails!, + if (testingDetails != null) 'testingDetails': testingDetails!, }; } diff --git a/generated/googleapis/lib/policysimulator/v1.dart b/generated/googleapis/lib/policysimulator/v1.dart index 1b4bc3699..b2a264e5c 100644 --- a/generated/googleapis/lib/policysimulator/v1.dart +++ b/generated/googleapis/lib/policysimulator/v1.dart @@ -1905,8 +1905,8 @@ class GoogleCloudOrgpolicyV2PolicySpecPolicyRule { /// /// Passes parameter values when policy enforcement is enabled. Ensure that /// parameter value types match those defined in the constraint definition. - /// For example: { "allowedLocations" : \["us-east1", "us-west1"\], "allowAll" - /// : true } + /// For example: ``` { "allowedLocations" : ["us-east1", "us-west1"], + /// "allowAll" : true } ``` /// /// Optional. /// diff --git a/generated/googleapis/lib/privateca/v1.dart b/generated/googleapis/lib/privateca/v1.dart index 1afa5665b..09817386e 100644 --- a/generated/googleapis/lib/privateca/v1.dart +++ b/generated/googleapis/lib/privateca/v1.dart @@ -132,9 +132,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -2825,6 +2825,12 @@ class CaOptions { /// CertificateAuthority resources and to rotate CA certificates in and out of /// the trust anchor. class CaPool { + /// When EncryptionSpec is provided, the Subject, SubjectAltNames, and the + /// PEM-encoded certificate fields will be encrypted at rest. + /// + /// Optional. + EncryptionSpec? encryptionSpec; + /// The IssuancePolicy to control how Certificates will be issued from this /// CaPool. /// @@ -2858,6 +2864,7 @@ class CaPool { core.String? tier; CaPool({ + this.encryptionSpec, this.issuancePolicy, this.labels, this.name, @@ -2867,6 +2874,13 @@ class CaPool { CaPool.fromJson(core.Map json_) : this( + encryptionSpec: + json_.containsKey('encryptionSpec') + ? EncryptionSpec.fromJson( + json_['encryptionSpec'] + as core.Map, + ) + : null, issuancePolicy: json_.containsKey('issuancePolicy') ? IssuancePolicy.fromJson( @@ -2889,6 +2903,7 @@ class CaPool { ); core.Map toJson() => { + if (encryptionSpec != null) 'encryptionSpec': encryptionSpec!, if (issuancePolicy != null) 'issuancePolicy': issuancePolicy!, if (labels != null) 'labels': labels!, if (name != null) 'name': name!, @@ -4038,6 +4053,22 @@ typedef Empty = $Empty; /// Request message for CertificateAuthorityService.EnableCertificateAuthority. typedef EnableCertificateAuthorityRequest = $Request03; +/// The configuration used for encrypting data at rest. +class EncryptionSpec { + /// The resource name for a Cloud KMS key in the format `projects / * + /// /locations / * /keyRings / * /cryptoKeys / * `. + core.String? cloudKmsKey; + + EncryptionSpec({this.cloudKmsKey}); + + EncryptionSpec.fromJson(core.Map json_) + : this(cloudKmsKey: json_['cloudKmsKey'] as core.String?); + + core.Map toJson() => { + if (cloudKmsKey != null) 'cloudKmsKey': cloudKmsKey!, + }; +} + /// Represents a textual expression in the Common Expression Language (CEL) /// syntax. /// diff --git a/generated/googleapis/lib/redis/v1.dart b/generated/googleapis/lib/redis/v1.dart index fb2d0f5c6..db23e2604 100644 --- a/generated/googleapis/lib/redis/v1.dart +++ b/generated/googleapis/lib/redis/v1.dart @@ -127,9 +127,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -1869,11 +1869,26 @@ class BackupCollection { /// Output only. core.String? kmsKey; + /// The last time a backup was created in the backup collection. + /// + /// Output only. + core.String? lastBackupTime; + /// Identifier. /// /// Full resource path of the backup collection. core.String? name; + /// Total number of backups in the backup collection. + /// + /// Output only. + core.String? totalBackupCount; + + /// Total size of all backups in the backup collection. + /// + /// Output only. + core.String? totalBackupSizeBytes; + /// System assigned unique identifier of the backup collection. /// /// Output only. @@ -1884,7 +1899,10 @@ class BackupCollection { this.clusterUid, this.createTime, this.kmsKey, + this.lastBackupTime, this.name, + this.totalBackupCount, + this.totalBackupSizeBytes, this.uid, }); @@ -1894,7 +1912,10 @@ class BackupCollection { clusterUid: json_['clusterUid'] as core.String?, createTime: json_['createTime'] as core.String?, kmsKey: json_['kmsKey'] as core.String?, + lastBackupTime: json_['lastBackupTime'] as core.String?, name: json_['name'] as core.String?, + totalBackupCount: json_['totalBackupCount'] as core.String?, + totalBackupSizeBytes: json_['totalBackupSizeBytes'] as core.String?, uid: json_['uid'] as core.String?, ); @@ -1903,7 +1924,11 @@ class BackupCollection { if (clusterUid != null) 'clusterUid': clusterUid!, if (createTime != null) 'createTime': createTime!, if (kmsKey != null) 'kmsKey': kmsKey!, + if (lastBackupTime != null) 'lastBackupTime': lastBackupTime!, if (name != null) 'name': name!, + if (totalBackupCount != null) 'totalBackupCount': totalBackupCount!, + if (totalBackupSizeBytes != null) + 'totalBackupSizeBytes': totalBackupSizeBytes!, if (uid != null) 'uid': uid!, }; } @@ -1976,14 +2001,12 @@ class CertificateAuthority { /// A cluster instance. class Cluster { - /// Allows customers to specify if they are okay with deploying a multi-zone - /// cluster in less than 3 zones. - /// - /// Once set, if there is a zonal outage during the cluster creation, the - /// cluster will only be deployed in 2 zones, and stay within the 2 zones for - /// its lifecycle. + /// Deprecated, do not use. /// /// Optional. Immutable. + @core.Deprecated( + 'Not supported. Member documentation may have more information.', + ) core.bool? allowFewerZonesDeployment; /// If true, cluster endpoints that are created and registered by customers @@ -2065,6 +2088,11 @@ class Cluster { /// Optional. core.String? kmsKey; + /// Labels to represent user-provided metadata. + /// + /// Optional. + core.Map? labels; + /// ClusterMaintenancePolicy determines when to allow or deny updates. /// /// Optional. @@ -2236,6 +2264,7 @@ class Cluster { this.encryptionInfo, this.gcsSource, this.kmsKey, + this.labels, this.maintenancePolicy, this.maintenanceSchedule, this.managedBackupSource, @@ -2316,6 +2345,9 @@ class Cluster { ) : null, kmsKey: json_['kmsKey'] as core.String?, + labels: (json_['labels'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), maintenancePolicy: json_.containsKey('maintenancePolicy') ? ClusterMaintenancePolicy.fromJson( @@ -2420,6 +2452,7 @@ class Cluster { if (encryptionInfo != null) 'encryptionInfo': encryptionInfo!, if (gcsSource != null) 'gcsSource': gcsSource!, if (kmsKey != null) 'kmsKey': kmsKey!, + if (labels != null) 'labels': labels!, if (maintenancePolicy != null) 'maintenancePolicy': maintenancePolicy!, if (maintenanceSchedule != null) 'maintenanceSchedule': maintenanceSchedule!, diff --git a/generated/googleapis/lib/retail/v2.dart b/generated/googleapis/lib/retail/v2.dart index bd6cf2943..f4d7e5563 100644 --- a/generated/googleapis/lib/retail/v2.dart +++ b/generated/googleapis/lib/retail/v2.dart @@ -2763,6 +2763,60 @@ class ProjectsLocationsCatalogsPlacementsResource { ProjectsLocationsCatalogsPlacementsResource(commons.ApiRequester client) : _requester = client; + /// Performs a conversational search. + /// + /// This feature is only available for users who have Conversational Search + /// enabled. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [placement] - Required. The resource name of the search engine placement, + /// such as `projects / * + /// /locations/global/catalogs/default_catalog/placements/default_search` or + /// `projects / * + /// /locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` + /// This field is used to identify the serving config name and the set of + /// models that will be used to make the search. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/catalogs/\[^/\]+/placements/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudRetailV2ConversationalSearchResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future + conversationalSearch( + GoogleCloudRetailV2ConversationalSearchRequest request, + core.String placement, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v2/' + core.Uri.encodeFull('$placement') + ':conversationalSearch'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleCloudRetailV2ConversationalSearchResponse.fromJson( + response_ as core.Map, + ); + } + /// Makes a recommendation prediction. /// /// [request] - The metadata request object. @@ -2928,6 +2982,60 @@ class ProjectsLocationsCatalogsServingConfigsResource { ); } + /// Performs a conversational search. + /// + /// This feature is only available for users who have Conversational Search + /// enabled. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [placement] - Required. The resource name of the search engine placement, + /// such as `projects / * + /// /locations/global/catalogs/default_catalog/placements/default_search` or + /// `projects / * + /// /locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` + /// This field is used to identify the serving config name and the set of + /// models that will be used to make the search. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/catalogs/\[^/\]+/servingConfigs/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GoogleCloudRetailV2ConversationalSearchResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future + conversationalSearch( + GoogleCloudRetailV2ConversationalSearchRequest request, + core.String placement, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v2/' + core.Uri.encodeFull('$placement') + ':conversationalSearch'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return GoogleCloudRetailV2ConversationalSearchResponse.fromJson( + response_ as core.Map, + ); + } + /// Creates a ServingConfig. /// /// A maximum of 100 ServingConfigs are allowed in a Catalog, otherwise a @@ -5258,190 +5366,825 @@ class GoogleCloudRetailV2ConditionQueryTerm { GoogleCloudRetailV2ConditionQueryTerm({this.fullMatch, this.value}); - GoogleCloudRetailV2ConditionQueryTerm.fromJson(core.Map json_) + GoogleCloudRetailV2ConditionQueryTerm.fromJson(core.Map json_) + : this( + fullMatch: json_['fullMatch'] as core.bool?, + value: json_['value'] as core.String?, + ); + + core.Map toJson() => { + if (fullMatch != null) 'fullMatch': fullMatch!, + if (value != null) 'value': value!, + }; +} + +/// Used for time-dependent conditions. +/// +/// Example: Want to have rule applied for week long sale. +class GoogleCloudRetailV2ConditionTimeRange { + /// End of time range. + /// + /// Range is inclusive. + core.String? endTime; + + /// Start of time range. + /// + /// Range is inclusive. + core.String? startTime; + + GoogleCloudRetailV2ConditionTimeRange({this.endTime, this.startTime}); + + GoogleCloudRetailV2ConditionTimeRange.fromJson(core.Map json_) + : this( + endTime: json_['endTime'] as core.String?, + startTime: json_['startTime'] as core.String?, + ); + + core.Map toJson() => { + if (endTime != null) 'endTime': endTime!, + if (startTime != null) 'startTime': startTime!, + }; +} + +/// Configures dynamic metadata that can be linked to a ServingConfig and affect +/// search or recommendation results at serving time. +class GoogleCloudRetailV2Control { + /// List of serving config ids that are associated with this control in the + /// same Catalog. + /// + /// Note the association is managed via the ServingConfig, this is an output + /// only denormalized view. + /// + /// Output only. + core.List? associatedServingConfigIds; + + /// The human readable control display name. + /// + /// Used in Retail UI. This field must be a UTF-8 encoded string with a length + /// limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is thrown. + /// + /// Required. + core.String? displayName; + + /// Fully qualified name `projects / * /locations/global/catalogs / * + /// /controls / * ` + /// + /// Immutable. + core.String? name; + + /// A rule control - a condition-action pair. + /// + /// Enacts a set action when the condition is triggered. For example: Boost + /// "gShoe" when query full matches "Running Shoes". + GoogleCloudRetailV2Rule? rule; + + /// Specifies the use case for the control. + /// + /// Affects what condition fields can be set. Only settable by search + /// controls. Will default to SEARCH_SOLUTION_USE_CASE_SEARCH if not + /// specified. Currently only allow one search_solution_use_case per control. + core.List? searchSolutionUseCase; + + /// The solution types that the control is used for. + /// + /// Currently we support setting only one type of solution at creation time. + /// Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no + /// solution type is provided at creation time, will default to + /// SOLUTION_TYPE_SEARCH. + /// + /// Required. Immutable. + core.List? solutionTypes; + + GoogleCloudRetailV2Control({ + this.associatedServingConfigIds, + this.displayName, + this.name, + this.rule, + this.searchSolutionUseCase, + this.solutionTypes, + }); + + GoogleCloudRetailV2Control.fromJson(core.Map json_) + : this( + associatedServingConfigIds: + (json_['associatedServingConfigIds'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + displayName: json_['displayName'] as core.String?, + name: json_['name'] as core.String?, + rule: + json_.containsKey('rule') + ? GoogleCloudRetailV2Rule.fromJson( + json_['rule'] as core.Map, + ) + : null, + searchSolutionUseCase: + (json_['searchSolutionUseCase'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + solutionTypes: + (json_['solutionTypes'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (associatedServingConfigIds != null) + 'associatedServingConfigIds': associatedServingConfigIds!, + if (displayName != null) 'displayName': displayName!, + if (name != null) 'name': name!, + if (rule != null) 'rule': rule!, + if (searchSolutionUseCase != null) + 'searchSolutionUseCase': searchSolutionUseCase!, + if (solutionTypes != null) 'solutionTypes': solutionTypes!, + }; +} + +/// The public proto to represent the conversational search customization +/// config. +/// +/// It will be converted to the internal proto in the backend. +class GoogleCloudRetailV2ConversationalSearchCustomizationConfig { + /// Resource name of the catalog. + /// + /// Format: projects/{project}/locations/{location}/catalogs/{catalog} + /// + /// Required. + core.String? catalog; + + /// The configs for intent classification. + /// + /// Optional. + GoogleCloudRetailV2IntentClassificationConfig? intentClassificationConfig; + + /// The retailer's display name that could be used in our LLM answers. + /// + /// Example - "Google" + /// + /// Optional. + core.String? retailerDisplayName; + + GoogleCloudRetailV2ConversationalSearchCustomizationConfig({ + this.catalog, + this.intentClassificationConfig, + this.retailerDisplayName, + }); + + GoogleCloudRetailV2ConversationalSearchCustomizationConfig.fromJson( + core.Map json_, + ) : this( + catalog: json_['catalog'] as core.String?, + intentClassificationConfig: + json_.containsKey('intentClassificationConfig') + ? GoogleCloudRetailV2IntentClassificationConfig.fromJson( + json_['intentClassificationConfig'] + as core.Map, + ) + : null, + retailerDisplayName: json_['retailerDisplayName'] as core.String?, + ); + + core.Map toJson() => { + if (catalog != null) 'catalog': catalog!, + if (intentClassificationConfig != null) + 'intentClassificationConfig': intentClassificationConfig!, + if (retailerDisplayName != null) + 'retailerDisplayName': retailerDisplayName!, + }; +} + +/// Request message for ConversationalSearchService.ConversationalSearch method. +class GoogleCloudRetailV2ConversationalSearchRequest { + /// The branch resource name, such as `projects / * + /// /locations/global/catalogs/default_catalog/branches/0`. + /// + /// Use "default_branch" as the branch ID or leave this field empty, to search + /// products under the default branch. + /// + /// Required. + core.String? branch; + + /// This field specifies the conversation id, which maintains the state of the + /// conversation between client side and server side. + /// + /// Use the value from the previous + /// ConversationalSearchResponse.conversation_id. For the initial request, + /// this should be empty. + /// + /// Optional. + core.String? conversationId; + + /// This field specifies all conversational filtering related parameters. + /// + /// Optional. + GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec? + conversationalFilteringSpec; + + /// The categories associated with a category page. + /// + /// Must be set for category navigation queries to achieve good search + /// quality. The format should be the same as UserEvent.page_categories; To + /// represent full path of category, use '\>' sign to separate different + /// hierarchies. If '\>' is part of the category name, replace it with other + /// character(s). Category pages include special pages such as sales or + /// promotions. For instance, a special sale page may have the category + /// hierarchy: "pageCategories" : \["Sales \> 2017 Black Friday Deals"\]. + /// + /// Optional. + core.List? pageCategories; + + /// Raw search query to be searched for. + /// + /// If this field is empty, the request is considered a category browsing + /// request. + /// + /// Optional. + core.String? query; + + /// The safety settings to be applied to the generated content. + /// + /// Optional. + core.List? safetySettings; + + /// Search parameters. + /// + /// Optional. + GoogleCloudRetailV2ConversationalSearchRequestSearchParams? searchParams; + + /// User information. + /// + /// Optional. + GoogleCloudRetailV2UserInfo? userInfo; + + /// The user labels applied to a resource must meet the following + /// requirements: * Each resource can have multiple labels, up to a maximum of + /// 64. + /// + /// * Each label must be a key-value pair. * Keys have a minimum length of 1 + /// character and a maximum length of 63 characters and cannot be empty. + /// Values can be empty and have a maximum length of 63 characters. * Keys and + /// values can contain only lowercase letters, numeric characters, + /// underscores, and dashes. All characters must use UTF-8 encoding, and + /// international characters are allowed. * The key portion of a label must be + /// unique. However, you can use the same key with multiple resources. * Keys + /// must start with a lowercase letter or international character. See + /// [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + /// for more details. + /// + /// Optional. + core.Map? userLabels; + + /// A unique identifier for tracking visitors. + /// + /// For example, this could be implemented with an HTTP cookie, which should + /// be able to uniquely identify a visitor on a single device. This unique + /// identifier should not change if the visitor logs in or out of the website. + /// This should be the same identifier as UserEvent.visitor_id. The field must + /// be a UTF-8 encoded string with a length limit of 128 characters. + /// Otherwise, an INVALID_ARGUMENT error is returned. + /// + /// Required. + core.String? visitorId; + + GoogleCloudRetailV2ConversationalSearchRequest({ + this.branch, + this.conversationId, + this.conversationalFilteringSpec, + this.pageCategories, + this.query, + this.safetySettings, + this.searchParams, + this.userInfo, + this.userLabels, + this.visitorId, + }); + + GoogleCloudRetailV2ConversationalSearchRequest.fromJson(core.Map json_) + : this( + branch: json_['branch'] as core.String?, + conversationId: json_['conversationId'] as core.String?, + conversationalFilteringSpec: + json_.containsKey('conversationalFilteringSpec') + ? GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec.fromJson( + json_['conversationalFilteringSpec'] + as core.Map, + ) + : null, + pageCategories: + (json_['pageCategories'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + query: json_['query'] as core.String?, + safetySettings: + (json_['safetySettings'] as core.List?) + ?.map( + (value) => GoogleCloudRetailV2SafetySetting.fromJson( + value as core.Map, + ), + ) + .toList(), + searchParams: + json_.containsKey('searchParams') + ? GoogleCloudRetailV2ConversationalSearchRequestSearchParams.fromJson( + json_['searchParams'] as core.Map, + ) + : null, + userInfo: + json_.containsKey('userInfo') + ? GoogleCloudRetailV2UserInfo.fromJson( + json_['userInfo'] as core.Map, + ) + : null, + userLabels: (json_['userLabels'] + as core.Map?) + ?.map((key, value) => core.MapEntry(key, value as core.String)), + visitorId: json_['visitorId'] as core.String?, + ); + + core.Map toJson() => { + if (branch != null) 'branch': branch!, + if (conversationId != null) 'conversationId': conversationId!, + if (conversationalFilteringSpec != null) + 'conversationalFilteringSpec': conversationalFilteringSpec!, + if (pageCategories != null) 'pageCategories': pageCategories!, + if (query != null) 'query': query!, + if (safetySettings != null) 'safetySettings': safetySettings!, + if (searchParams != null) 'searchParams': searchParams!, + if (userInfo != null) 'userInfo': userInfo!, + if (userLabels != null) 'userLabels': userLabels!, + if (visitorId != null) 'visitorId': visitorId!, + }; +} + +/// This field specifies all conversational filtering related parameters +/// addition to conversational retail search. +class GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec { + /// Mode to control Conversational Filtering. + /// + /// Defaults to Mode.DISABLED if it's unset. + /// + /// Optional. + /// Possible string values are: + /// - "MODE_UNSPECIFIED" : Default value. + /// - "DISABLED" : Disables Conversational Filtering when using Conversational + /// Search. + /// - "ENABLED" : Enables Conversational Filtering when using Conversational + /// Search. + /// - "CONVERSATIONAL_FILTER_ONLY" : Enables Conversational Filtering without + /// Conversational Search. + core.String? conversationalFilteringMode; + + /// This field is deprecated. + /// + /// Please use ConversationalFilteringSpec.conversational_filtering_mode + /// instead. + /// + /// Optional. + @core.Deprecated( + 'Not supported. Member documentation may have more information.', + ) + core.bool? enableConversationalFiltering; + + /// This field specifies the current user answer during the conversational + /// filtering search. + /// + /// It can be either user selected from suggested answers or user input plain + /// text. + /// + /// Optional. + GoogleCloudRetailV2ConversationalSearchRequestUserAnswer? userAnswer; + + GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec({ + this.conversationalFilteringMode, + this.enableConversationalFiltering, + this.userAnswer, + }); + + GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec.fromJson( + core.Map json_, + ) : this( + conversationalFilteringMode: + json_['conversationalFilteringMode'] as core.String?, + enableConversationalFiltering: + json_['enableConversationalFiltering'] as core.bool?, + userAnswer: + json_.containsKey('userAnswer') + ? GoogleCloudRetailV2ConversationalSearchRequestUserAnswer.fromJson( + json_['userAnswer'] as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (conversationalFilteringMode != null) + 'conversationalFilteringMode': conversationalFilteringMode!, + if (enableConversationalFiltering != null) + 'enableConversationalFiltering': enableConversationalFiltering!, + if (userAnswer != null) 'userAnswer': userAnswer!, + }; +} + +/// Search parameters. +class GoogleCloudRetailV2ConversationalSearchRequestSearchParams { + /// The boost spec to specify the boosting of search results. + /// + /// The syntax of the boost spec is the same as SearchRequest.boost_spec. + /// + /// Optional. + GoogleCloudRetailV2SearchRequestBoostSpec? boostSpec; + + /// The canonical filter string to restrict search results. + /// + /// The syntax of the canonical filter string is the same as + /// SearchRequest.canonical_filter. + /// + /// Optional. + core.String? canonicalFilter; + + /// The filter string to restrict search results. + /// + /// The syntax of the filter string is the same as SearchRequest.filter. + /// + /// Optional. + core.String? filter; + + /// The sort string to specify the sorting of search results. + /// + /// The syntax of the sort string is the same as SearchRequest.sort. + /// + /// Optional. + core.String? sortBy; + + GoogleCloudRetailV2ConversationalSearchRequestSearchParams({ + this.boostSpec, + this.canonicalFilter, + this.filter, + this.sortBy, + }); + + GoogleCloudRetailV2ConversationalSearchRequestSearchParams.fromJson( + core.Map json_, + ) : this( + boostSpec: + json_.containsKey('boostSpec') + ? GoogleCloudRetailV2SearchRequestBoostSpec.fromJson( + json_['boostSpec'] as core.Map, + ) + : null, + canonicalFilter: json_['canonicalFilter'] as core.String?, + filter: json_['filter'] as core.String?, + sortBy: json_['sortBy'] as core.String?, + ); + + core.Map toJson() => { + if (boostSpec != null) 'boostSpec': boostSpec!, + if (canonicalFilter != null) 'canonicalFilter': canonicalFilter!, + if (filter != null) 'filter': filter!, + if (sortBy != null) 'sortBy': sortBy!, + }; +} + +/// This field specifies the current user answer during the conversational +/// filtering search. +/// +/// This can be either user selected from suggested answers or user input plain +/// text. +class GoogleCloudRetailV2ConversationalSearchRequestUserAnswer { + /// This field specifies the selected answer during the conversational search. + /// + /// This should be a subset of + /// ConversationalSearchResponse.followup_question.suggested_answers. + /// + /// Optional. + GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer? + selectedAnswer; + + /// This field specifies the incremental input text from the user during the + /// conversational search. + core.String? textAnswer; + + GoogleCloudRetailV2ConversationalSearchRequestUserAnswer({ + this.selectedAnswer, + this.textAnswer, + }); + + GoogleCloudRetailV2ConversationalSearchRequestUserAnswer.fromJson( + core.Map json_, + ) : this( + selectedAnswer: + json_.containsKey('selectedAnswer') + ? GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer.fromJson( + json_['selectedAnswer'] + as core.Map, + ) + : null, + textAnswer: json_['textAnswer'] as core.String?, + ); + + core.Map toJson() => { + if (selectedAnswer != null) 'selectedAnswer': selectedAnswer!, + if (textAnswer != null) 'textAnswer': textAnswer!, + }; +} + +/// This field specifies the selected answers during the conversational search. +class GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer { + /// This field specifies the selected answer which is a attribute key-value. + /// + /// Optional. + GoogleCloudRetailV2ProductAttributeValue? productAttributeValue; + + GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer({ + this.productAttributeValue, + }); + + GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer.fromJson( + core.Map json_, + ) : this( + productAttributeValue: + json_.containsKey('productAttributeValue') + ? GoogleCloudRetailV2ProductAttributeValue.fromJson( + json_['productAttributeValue'] + as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (productAttributeValue != null) + 'productAttributeValue': productAttributeValue!, + }; +} + +/// Response message for ConversationalSearchService.ConversationalSearch +/// method. +class GoogleCloudRetailV2ConversationalSearchResponse { + /// Conversation UUID. + /// + /// This field will be stored in client side storage to maintain the + /// conversation session with server and will be used for next search + /// request's ConversationalSearchRequest.conversation_id to restore + /// conversation state in server. + core.String? conversationId; + + /// This field specifies all related information that is needed on client side + /// for UI rendering of conversational filtering search. + GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult? + conversationalFilteringResult; + + /// The conversational answer-based text response generated by the Server. + core.String? conversationalTextResponse; + + /// The conversational followup question generated for Intent refinement. + GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion? + followupQuestion; + + /// The proposed refined search queries. + /// + /// They can be used to fetch the relevant search results. When using + /// CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response + /// will be populated here. + core.List? + refinedSearch; + + /// The state of the response generation. + /// + /// Output only. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : Unknown. + /// - "STREAMING" : Response generation is being streamed. + /// - "SUCCEEDED" : Response generation has succeeded. + core.String? state; + + /// The types Retail classifies the search query as. + /// + /// Supported values are: - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - + /// "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - + /// "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - + /// "RETAIL_SUPPORT" - "DISABLED" + core.List? userQueryTypes; + + GoogleCloudRetailV2ConversationalSearchResponse({ + this.conversationId, + this.conversationalFilteringResult, + this.conversationalTextResponse, + this.followupQuestion, + this.refinedSearch, + this.state, + this.userQueryTypes, + }); + + GoogleCloudRetailV2ConversationalSearchResponse.fromJson(core.Map json_) : this( - fullMatch: json_['fullMatch'] as core.bool?, - value: json_['value'] as core.String?, + conversationId: json_['conversationId'] as core.String?, + conversationalFilteringResult: + json_.containsKey('conversationalFilteringResult') + ? GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult.fromJson( + json_['conversationalFilteringResult'] + as core.Map, + ) + : null, + conversationalTextResponse: + json_['conversationalTextResponse'] as core.String?, + followupQuestion: + json_.containsKey('followupQuestion') + ? GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion.fromJson( + json_['followupQuestion'] + as core.Map, + ) + : null, + refinedSearch: + (json_['refinedSearch'] as core.List?) + ?.map( + (value) => + GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch.fromJson( + value as core.Map, + ), + ) + .toList(), + state: json_['state'] as core.String?, + userQueryTypes: + (json_['userQueryTypes'] as core.List?) + ?.map((value) => value as core.String) + .toList(), ); core.Map toJson() => { - if (fullMatch != null) 'fullMatch': fullMatch!, - if (value != null) 'value': value!, + if (conversationId != null) 'conversationId': conversationId!, + if (conversationalFilteringResult != null) + 'conversationalFilteringResult': conversationalFilteringResult!, + if (conversationalTextResponse != null) + 'conversationalTextResponse': conversationalTextResponse!, + if (followupQuestion != null) 'followupQuestion': followupQuestion!, + if (refinedSearch != null) 'refinedSearch': refinedSearch!, + if (state != null) 'state': state!, + if (userQueryTypes != null) 'userQueryTypes': userQueryTypes!, }; } -/// Used for time-dependent conditions. -/// -/// Example: Want to have rule applied for week long sale. -class GoogleCloudRetailV2ConditionTimeRange { - /// End of time range. +/// This field specifies all related information that is needed on client side +/// for UI rendering of conversational filtering search. +class GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult { + /// This is the incremental additional filters implied from the current user + /// answer. /// - /// Range is inclusive. - core.String? endTime; + /// User should add the suggested addition filters to the previous + /// ConversationalSearchRequest.search_params.filter and SearchRequest.filter, + /// and use the merged filter in the follow up requests. + GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter? + additionalFilter; - /// Start of time range. - /// - /// Range is inclusive. - core.String? startTime; + /// The conversational filtering question. + GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion? + followupQuestion; - GoogleCloudRetailV2ConditionTimeRange({this.endTime, this.startTime}); + GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult({ + this.additionalFilter, + this.followupQuestion, + }); - GoogleCloudRetailV2ConditionTimeRange.fromJson(core.Map json_) - : this( - endTime: json_['endTime'] as core.String?, - startTime: json_['startTime'] as core.String?, + GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult.fromJson( + core.Map json_, + ) : this( + additionalFilter: + json_.containsKey('additionalFilter') + ? GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter.fromJson( + json_['additionalFilter'] + as core.Map, + ) + : null, + followupQuestion: + json_.containsKey('followupQuestion') + ? GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion.fromJson( + json_['followupQuestion'] + as core.Map, + ) + : null, ); core.Map toJson() => { - if (endTime != null) 'endTime': endTime!, - if (startTime != null) 'startTime': startTime!, + if (additionalFilter != null) 'additionalFilter': additionalFilter!, + if (followupQuestion != null) 'followupQuestion': followupQuestion!, }; } -/// Configures dynamic metadata that can be linked to a ServingConfig and affect -/// search or recommendation results at serving time. -class GoogleCloudRetailV2Control { - /// List of serving config ids that are associated with this control in the - /// same Catalog. - /// - /// Note the association is managed via the ServingConfig, this is an output - /// only denormalized view. +/// Additional filter that client side need to apply. +class GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter { + /// Product attribute value, including an attribute key and an attribute + /// value. /// - /// Output only. - core.List? associatedServingConfigIds; + /// Other types can be added here in the future. + GoogleCloudRetailV2ProductAttributeValue? productAttributeValue; - /// The human readable control display name. - /// - /// Used in Retail UI. This field must be a UTF-8 encoded string with a length - /// limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is thrown. - /// - /// Required. - core.String? displayName; + GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter({ + this.productAttributeValue, + }); - /// Fully qualified name `projects / * /locations/global/catalogs / * - /// /controls / * ` - /// - /// Immutable. - core.String? name; + GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter.fromJson( + core.Map json_, + ) : this( + productAttributeValue: + json_.containsKey('productAttributeValue') + ? GoogleCloudRetailV2ProductAttributeValue.fromJson( + json_['productAttributeValue'] + as core.Map, + ) + : null, + ); - /// A rule control - a condition-action pair. - /// - /// Enacts a set action when the condition is triggered. For example: Boost - /// "gShoe" when query full matches "Running Shoes". - GoogleCloudRetailV2Rule? rule; + core.Map toJson() => { + if (productAttributeValue != null) + 'productAttributeValue': productAttributeValue!, + }; +} - /// Specifies the use case for the control. - /// - /// Affects what condition fields can be set. Only settable by search - /// controls. Will default to SEARCH_SOLUTION_USE_CASE_SEARCH if not - /// specified. Currently only allow one search_solution_use_case per control. - core.List? searchSolutionUseCase; +/// The conversational followup question generated for Intent refinement. +class GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion { + /// The conversational followup question generated for Intent refinement. + core.String? followupQuestion; - /// The solution types that the control is used for. - /// - /// Currently we support setting only one type of solution at creation time. - /// Only `SOLUTION_TYPE_SEARCH` value is supported at the moment. If no - /// solution type is provided at creation time, will default to - /// SOLUTION_TYPE_SEARCH. - /// - /// Required. Immutable. - core.List? solutionTypes; + /// The answer options provided to client for the follow-up question. + core.List< + GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer + >? + suggestedAnswers; - GoogleCloudRetailV2Control({ - this.associatedServingConfigIds, - this.displayName, - this.name, - this.rule, - this.searchSolutionUseCase, - this.solutionTypes, + GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion({ + this.followupQuestion, + this.suggestedAnswers, }); - GoogleCloudRetailV2Control.fromJson(core.Map json_) - : this( - associatedServingConfigIds: - (json_['associatedServingConfigIds'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - displayName: json_['displayName'] as core.String?, - name: json_['name'] as core.String?, - rule: - json_.containsKey('rule') - ? GoogleCloudRetailV2Rule.fromJson( - json_['rule'] as core.Map, + GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion.fromJson( + core.Map json_, + ) : this( + followupQuestion: json_['followupQuestion'] as core.String?, + suggestedAnswers: + (json_['suggestedAnswers'] as core.List?) + ?.map( + (value) => + GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer.fromJson( + value as core.Map, + ), ) - : null, - searchSolutionUseCase: - (json_['searchSolutionUseCase'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - solutionTypes: - (json_['solutionTypes'] as core.List?) - ?.map((value) => value as core.String) .toList(), ); core.Map toJson() => { - if (associatedServingConfigIds != null) - 'associatedServingConfigIds': associatedServingConfigIds!, - if (displayName != null) 'displayName': displayName!, - if (name != null) 'name': name!, - if (rule != null) 'rule': rule!, - if (searchSolutionUseCase != null) - 'searchSolutionUseCase': searchSolutionUseCase!, - if (solutionTypes != null) 'solutionTypes': solutionTypes!, + if (followupQuestion != null) 'followupQuestion': followupQuestion!, + if (suggestedAnswers != null) 'suggestedAnswers': suggestedAnswers!, }; } -/// The public proto to represent the conversational search customization -/// config. +/// Suggested answers to the follow-up question. /// -/// It will be converted to the internal proto in the backend. -class GoogleCloudRetailV2ConversationalSearchCustomizationConfig { - /// Resource name of the catalog. - /// - /// Format: projects/{project}/locations/{location}/catalogs/{catalog} - /// - /// Required. - core.String? catalog; - - /// The configs for intent classification. - /// - /// Optional. - GoogleCloudRetailV2IntentClassificationConfig? intentClassificationConfig; - - /// The retailer's display name that could be used in our LLM answers. - /// - /// Example - "Google" +/// If it's numerical attribute, only ProductAttributeInterval will be set. If +/// it's textual attribute, only productAttributeValue will be set. +class GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer { + /// Product attribute value, including an attribute key and an attribute + /// value. /// - /// Optional. - core.String? retailerDisplayName; + /// Other types can be added here in the future. + GoogleCloudRetailV2ProductAttributeValue? productAttributeValue; - GoogleCloudRetailV2ConversationalSearchCustomizationConfig({ - this.catalog, - this.intentClassificationConfig, - this.retailerDisplayName, + GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer({ + this.productAttributeValue, }); - GoogleCloudRetailV2ConversationalSearchCustomizationConfig.fromJson( + GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer.fromJson( core.Map json_, ) : this( - catalog: json_['catalog'] as core.String?, - intentClassificationConfig: - json_.containsKey('intentClassificationConfig') - ? GoogleCloudRetailV2IntentClassificationConfig.fromJson( - json_['intentClassificationConfig'] + productAttributeValue: + json_.containsKey('productAttributeValue') + ? GoogleCloudRetailV2ProductAttributeValue.fromJson( + json_['productAttributeValue'] as core.Map, ) : null, - retailerDisplayName: json_['retailerDisplayName'] as core.String?, ); core.Map toJson() => { - if (catalog != null) 'catalog': catalog!, - if (intentClassificationConfig != null) - 'intentClassificationConfig': intentClassificationConfig!, - if (retailerDisplayName != null) - 'retailerDisplayName': retailerDisplayName!, + if (productAttributeValue != null) + 'productAttributeValue': productAttributeValue!, + }; +} + +/// The proposed refined search for intent-refinement/bundled shopping +/// conversation. +/// +/// When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search +/// response will be populated here. +class GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch { + /// The query to be used for search. + core.String? query; + + GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch({this.query}); + + GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch.fromJson( + core.Map json_, + ) : this(query: json_['query'] as core.String?); + + core.Map toJson() => { + if (query != null) 'query': query!, }; } @@ -9399,6 +10142,62 @@ class GoogleCloudRetailV2RuleTwowaySynonymsAction { }; } +/// Safety settings. +class GoogleCloudRetailV2SafetySetting { + /// Harm category. + /// Possible string values are: + /// - "HARM_CATEGORY_UNSPECIFIED" : The harm category is unspecified. + /// - "HARM_CATEGORY_HATE_SPEECH" : The harm category is hate speech. + /// - "HARM_CATEGORY_DANGEROUS_CONTENT" : The harm category is dangerous + /// content. + /// - "HARM_CATEGORY_HARASSMENT" : The harm category is harassment. + /// - "HARM_CATEGORY_SEXUALLY_EXPLICIT" : The harm category is sexually + /// explicit content. + /// - "HARM_CATEGORY_CIVIC_INTEGRITY" : The harm category is civic integrity. + core.String? category; + + /// Specify if the threshold is used for probability or severity score. + /// + /// If not specified, the threshold is used for probability score. + /// + /// Optional. + /// Possible string values are: + /// - "HARM_BLOCK_METHOD_UNSPECIFIED" : The harm block method is unspecified. + /// - "SEVERITY" : The harm block method uses both probability and severity + /// scores. + /// - "PROBABILITY" : The harm block method uses the probability score. + core.String? method; + + /// The harm block threshold. + /// Possible string values are: + /// - "HARM_BLOCK_THRESHOLD_UNSPECIFIED" : Unspecified harm block threshold. + /// - "BLOCK_LOW_AND_ABOVE" : Block low threshold and above (i.e. block more). + /// - "BLOCK_MEDIUM_AND_ABOVE" : Block medium threshold and above. + /// - "BLOCK_ONLY_HIGH" : Block only high threshold (i.e. block less). + /// - "BLOCK_NONE" : Block none. + /// - "OFF" : Turn off the safety filter. + core.String? threshold; + + GoogleCloudRetailV2SafetySetting({ + this.category, + this.method, + this.threshold, + }); + + GoogleCloudRetailV2SafetySetting.fromJson(core.Map json_) + : this( + category: json_['category'] as core.String?, + method: json_['method'] as core.String?, + threshold: json_['threshold'] as core.String?, + ); + + core.Map toJson() => { + if (category != null) 'category': category!, + if (method != null) 'method': method!, + if (threshold != null) 'threshold': threshold!, + }; +} + /// Request message for SearchService.Search method. class GoogleCloudRetailV2SearchRequest { /// Boost specification to boost certain products. diff --git a/generated/googleapis/lib/run/v1.dart b/generated/googleapis/lib/run/v1.dart index afd4bef99..d95f756da 100644 --- a/generated/googleapis/lib/run/v1.dart +++ b/generated/googleapis/lib/run/v1.dart @@ -2120,9 +2120,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -4049,7 +4049,8 @@ class CSIVolumeSource { /// /// For Google Cloud Storage volumes, the following attributes are supported: /// * bucketName: the name of the Cloud Storage bucket to mount. The Cloud Run - /// Service identity must have access to this bucket. + /// Service identity must have access to this bucket. * mountOptions: + /// comma-separated list of mount options to pass to the gcsfuse. core.Map? volumeAttributes; CSIVolumeSource({this.driver, this.readOnly, this.volumeAttributes}); @@ -5716,15 +5717,18 @@ class HTTPHeader { /// Allocations can be done to a specific Revision name, or pointing to the /// latest Ready Revision. class InstanceSplit { - /// Uses the "status.latestReadyRevisionName" to determine the traffic target. + /// Uses the "status.latestReadyRevisionName" to determine the instance split + /// target. /// - /// When it changes, traffic will automatically migrate from the prior "latest - /// ready" revision to the new one. + /// When it changes, workloads will automatically migrate from the prior + /// "latest ready" revision to the new one. core.bool? latestRevision; /// Specifies percent of the instance split to this Revision. /// /// This defaults to zero if unspecified. + /// + /// Optional. core.int? percent; /// Revision to which to assign this portion of instances. @@ -7310,6 +7314,8 @@ class RevisionSpec { /// Runtime. /// /// Leave unset for default. + /// + /// Optional. core.String? runtimeClassName; /// Email address of the IAM service account associated with the revision of @@ -9051,7 +9057,7 @@ class WorkerPoolStatus { /// * `Ready`: `True` when all underlying resources are ready. core.List? conditions; - /// Holds the configured traffic distribution. + /// Holds the configured workload distribution. /// /// These entries will always contain RevisionName references. When /// ConfigurationName appears in the spec, this will hold the diff --git a/generated/googleapis/lib/run/v2.dart b/generated/googleapis/lib/run/v2.dart index 275128b1f..b9789ec1e 100644 --- a/generated/googleapis/lib/run/v2.dart +++ b/generated/googleapis/lib/run/v2.dart @@ -5920,7 +5920,7 @@ class GoogleCloudRunV2SecretVolumeSource { core.int? defaultMode; /// If unspecified, the volume will expose a file whose name is the secret, - /// relative to VolumeMount.mount_path. + /// relative to VolumeMount.mount_path + VolumeMount.sub_path. /// /// If specified, the key will be used as the version to fetch from Cloud /// Secret Manager and the path will be the name of the file exposed in the @@ -6621,6 +6621,52 @@ class GoogleCloudRunV2SubmitBuildRequest { /// Required. core.String? imageUri; + /// The machine type from default pool to use for the build. + /// + /// If left blank, cloudbuild will use a sensible default. Currently only + /// E2_HIGHCPU_8 is supported. If worker_pool is set, this field will be + /// ignored. + /// + /// Optional. + core.String? machineType; + + /// The release track of the client that initiated the build request. + /// + /// Optional. + /// Possible string values are: + /// - "LAUNCH_STAGE_UNSPECIFIED" : Do not use this default value. + /// - "UNIMPLEMENTED" : The feature is not yet implemented. Users can not use + /// it. + /// - "PRELAUNCH" : Prelaunch features are hidden from users and are only + /// visible internally. + /// - "EARLY_ACCESS" : Early Access features are limited to a closed group of + /// testers. To use these features, you must sign up in advance and sign a + /// Trusted Tester agreement (which includes confidentiality provisions). + /// These features may be unstable, changed in backward-incompatible ways, and + /// are not guaranteed to be released. + /// - "ALPHA" : Alpha is a limited availability test for releases before they + /// are cleared for widespread use. By Alpha, all significant design issues + /// are resolved and we are in the process of verifying functionality. Alpha + /// customers need to apply for access, agree to applicable terms, and have + /// their projects allowlisted. Alpha releases don't have to be feature + /// complete, no SLAs are provided, and there are no technical support + /// obligations, but they will be far enough along that customers can actually + /// use them in test environments or for limited-use tests -- just like they + /// would in normal production cases. + /// - "BETA" : Beta is the point at which we are ready to open a release for + /// any customer to use. There are no SLA or technical support obligations in + /// a Beta release. Products will be complete from a feature perspective, but + /// may have some open outstanding issues. Beta releases are suitable for + /// limited production use cases. + /// - "GA" : GA features are open to all developers and are considered stable + /// and fully qualified for production use. + /// - "DEPRECATED" : Deprecated features are scheduled to be shut down and + /// removed. For more information, see the "Deprecation Policy" section of our + /// [Terms of Service](https://cloud.google.com/terms/) and the + /// [Google Cloud Platform Subject to the Deprecation Policy](https://cloud.google.com/terms/deprecation) + /// documentation. + core.String? releaseTrack; + /// The service account to use for the build. /// /// If not set, the default Cloud Build service account for the project will @@ -6655,6 +6701,8 @@ class GoogleCloudRunV2SubmitBuildRequest { this.buildpackBuild, this.dockerBuild, this.imageUri, + this.machineType, + this.releaseTrack, this.serviceAccount, this.storageSource, this.tags, @@ -6677,6 +6725,8 @@ class GoogleCloudRunV2SubmitBuildRequest { ) : null, imageUri: json_['imageUri'] as core.String?, + machineType: json_['machineType'] as core.String?, + releaseTrack: json_['releaseTrack'] as core.String?, serviceAccount: json_['serviceAccount'] as core.String?, storageSource: json_.containsKey('storageSource') @@ -6695,6 +6745,8 @@ class GoogleCloudRunV2SubmitBuildRequest { if (buildpackBuild != null) 'buildpackBuild': buildpackBuild!, if (dockerBuild != null) 'dockerBuild': dockerBuild!, if (imageUri != null) 'imageUri': imageUri!, + if (machineType != null) 'machineType': machineType!, + if (releaseTrack != null) 'releaseTrack': releaseTrack!, if (serviceAccount != null) 'serviceAccount': serviceAccount!, if (storageSource != null) 'storageSource': storageSource!, if (tags != null) 'tags': tags!, @@ -7566,17 +7618,27 @@ class GoogleCloudRunV2VolumeMount { /// Required. core.String? name; - GoogleCloudRunV2VolumeMount({this.mountPath, this.name}); + /// Path within the volume from which the container's volume should be + /// mounted. + /// + /// Defaults to "" (volume's root). + /// + /// Optional. + core.String? subPath; + + GoogleCloudRunV2VolumeMount({this.mountPath, this.name, this.subPath}); GoogleCloudRunV2VolumeMount.fromJson(core.Map json_) : this( mountPath: json_['mountPath'] as core.String?, name: json_['name'] as core.String?, + subPath: json_['subPath'] as core.String?, ); core.Map toJson() => { if (mountPath != null) 'mountPath': mountPath!, if (name != null) 'name': name!, + if (subPath != null) 'subPath': subPath!, }; } @@ -7779,7 +7841,7 @@ class GoogleCloudRunV2WorkerPool { /// Output only. core.String? latestCreatedRevision; - /// Name of the latest revision that is serving traffic. + /// Name of the latest revision that is serving workloads. /// /// See comments in `reconciling` for additional information on reconciliation /// process in Cloud Run. @@ -7839,7 +7901,7 @@ class GoogleCloudRunV2WorkerPool { /// Format: `projects/{project}/locations/{location}/workerPools/{worker_id}` core.String? name; - /// The generation of this WorkerPool currently serving traffic. + /// The generation of this WorkerPool currently serving workloads. /// /// See comments in `reconciling` for additional information on reconciliation /// process in Cloud Run. Please note that unlike v1, this is an int64 value. @@ -7856,15 +7918,16 @@ class GoogleCloudRunV2WorkerPool { /// will asynchronously perform all necessary steps to bring the WorkerPool to /// the desired serving state. This process is called reconciliation. While /// reconciliation is in process, `observed_generation`, - /// `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient - /// values that might mismatch the intended state: Once reconciliation is over - /// (and this field is false), there are two possible outcomes: reconciliation - /// succeeded and the serving state matches the WorkerPool, or there was an - /// error, and reconciliation failed. This state can be found in - /// `terminal_condition.state`. If reconciliation succeeded, the following - /// fields will match: `traffic` and `traffic_statuses`, `observed_generation` - /// and `generation`, `latest_ready_revision` and `latest_created_revision`. - /// If reconciliation failed, `traffic_statuses`, `observed_generation`, and + /// `latest_ready_revison`, `instance_split_statuses`, and `uri` will have + /// transient values that might mismatch the intended state: Once + /// reconciliation is over (and this field is false), there are two possible + /// outcomes: reconciliation succeeded and the serving state matches the + /// WorkerPool, or there was an error, and reconciliation failed. This state + /// can be found in `terminal_condition.state`. If reconciliation succeeded, + /// the following fields will match: `instance_splits` and + /// `instance_split_statuses`, `observed_generation` and `generation`, + /// `latest_ready_revision` and `latest_created_revision`. If reconciliation + /// failed, `instance_split_statuses`, `observed_generation`, and /// `latest_ready_revision` will have the state of the last serving revision, /// or empty for newly created WorkerPools. Additional information on the /// failure can be found in `terminal_condition` and `conditions`. diff --git a/generated/googleapis/lib/script/v1.dart b/generated/googleapis/lib/script/v1.dart index 6b471ff53..342e9ca05 100644 --- a/generated/googleapis/lib/script/v1.dart +++ b/generated/googleapis/lib/script/v1.dart @@ -1247,9 +1247,6 @@ class ExecutionRequest { /// project can contain multiple files. class File { /// Creation date timestamp. - /// - /// This read-only field is only visible to users who have WRITER permission - /// for the script project. core.String? createTime; /// The defined set of functions in the script file, if any. @@ -1257,8 +1254,8 @@ class File { /// The user who modified the file most recently. /// - /// This read-only field is only visible to users who have WRITER permission - /// for the script project. + /// The details visible in this object are controlled by the profile + /// visibility settings of the last modifying user. GoogleAppsScriptTypeUser? lastModifyUser; /// The name of the file. @@ -1281,9 +1278,6 @@ class File { core.String? type; /// Last modified date timestamp. - /// - /// This read-only field is only visible to users who have WRITER permission - /// for the script project. core.String? updateTime; File({ diff --git a/generated/googleapis/lib/secretmanager/v1.dart b/generated/googleapis/lib/secretmanager/v1.dart index b93dc790b..f7e616fb6 100644 --- a/generated/googleapis/lib/secretmanager/v1.dart +++ b/generated/googleapis/lib/secretmanager/v1.dart @@ -124,9 +124,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/securityposture/v1.dart b/generated/googleapis/lib/securityposture/v1.dart index 266daebff..fb03516b0 100644 --- a/generated/googleapis/lib/securityposture/v1.dart +++ b/generated/googleapis/lib/securityposture/v1.dart @@ -1195,9 +1195,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -1733,8 +1733,8 @@ class GoogleCloudSecuritypostureV1PolicyRule { /// /// Passes parameter values when policy enforcement is enabled. Ensure that /// parameter value types match those defined in the constraint definition. - /// For example: { "allowedLocations" : \["us-east1", "us-west1"\], "allowAll" - /// : true } + /// For example: ``` { "allowedLocations": ["us-east1", "us-west1"], + /// "allowAll": true } ``` /// /// Optional. /// @@ -3014,18 +3014,15 @@ class ResourceSelector { }; } -/// Set multiple resource types for one policy, for example: resourceTypes: +/// Set multiple resource types for one policy, for example: ``` resourceTypes: /// included: - compute.googleapis.com/Instance - compute.googleapis.com/Disk -/// Constraint definition contains an empty resource type in order to support -/// multiple resource types in the policy. +/// ``` Constraint definition contains an empty resource type in order to +/// support multiple resource types in the policy. /// -/// Only supports managed constraints. Method type is `GOVERN_TAGS`. Refer -/// go/multi-resource-support-force-tags-gmc to get more details. +/// Only supports managed constraints. Method type is `GOVERN_TAGS`. class ResourceTypes { /// The resource types we currently support. /// - /// cloud/orgpolicy/customconstraintconfig/prod/resource_types.prototext - /// /// Optional. core.List? included; diff --git a/generated/googleapis/lib/servicecontrol/v1.dart b/generated/googleapis/lib/servicecontrol/v1.dart index 7d302e601..029c39c61 100644 --- a/generated/googleapis/lib/servicecontrol/v1.dart +++ b/generated/googleapis/lib/servicecontrol/v1.dart @@ -445,7 +445,8 @@ class Attributes { class CheckError { /// The error code. /// Possible string values are: - /// - "ERROR_CODE_UNSPECIFIED" : This is never used in `CheckResponse`. + /// - "ERROR_CODE_UNSPECIFIED" : This is the default value if error code is + /// not explicitly set. It should not be used directly. /// - "NOT_FOUND" : The consumer's project id, network container, or resource /// container was not found. Same as google.rpc.Code.NOT_FOUND. /// - "PERMISSION_DENIED" : The consumer doesn't have access to the specified @@ -570,13 +571,22 @@ class CheckInfo { /// Consumer info of this check. ConsumerInfo? consumerInfo; + /// Whether or not the api key should be ignored in the credential_id during + /// reporting. + core.bool? ignoreApiKeyUidAsCredentialId; + /// A list of fields and label keys that are ignored by the server. /// /// The client doesn't need to send them for following requests to improve /// performance and allow better aggregation. core.List? unusedArguments; - CheckInfo({this.apiKeyUid, this.consumerInfo, this.unusedArguments}); + CheckInfo({ + this.apiKeyUid, + this.consumerInfo, + this.ignoreApiKeyUidAsCredentialId, + this.unusedArguments, + }); CheckInfo.fromJson(core.Map json_) : this( @@ -587,6 +597,8 @@ class CheckInfo { json_['consumerInfo'] as core.Map, ) : null, + ignoreApiKeyUidAsCredentialId: + json_['ignoreApiKeyUidAsCredentialId'] as core.bool?, unusedArguments: (json_['unusedArguments'] as core.List?) ?.map((value) => value as core.String) @@ -596,6 +608,8 @@ class CheckInfo { core.Map toJson() => { if (apiKeyUid != null) 'apiKeyUid': apiKeyUid!, if (consumerInfo != null) 'consumerInfo': consumerInfo!, + if (ignoreApiKeyUidAsCredentialId != null) + 'ignoreApiKeyUidAsCredentialId': ignoreApiKeyUidAsCredentialId!, if (unusedArguments != null) 'unusedArguments': unusedArguments!, }; } diff --git a/generated/googleapis/lib/servicecontrol/v2.dart b/generated/googleapis/lib/servicecontrol/v2.dart index 9d5ac58d3..200807f81 100644 --- a/generated/googleapis/lib/servicecontrol/v2.dart +++ b/generated/googleapis/lib/servicecontrol/v2.dart @@ -138,10 +138,10 @@ class ServicesResource { /// be called after the operations have been executed. For more information, /// see /// [Telemetry Reporting](https://cloud.google.com/service-infrastructure/docs/telemetry-reporting). - /// NOTE: The telemetry reporting has a hard limit of 1000 operations and 1MB - /// per Report call. It is recommended to have no more than 100 operations per - /// call. This method requires the `servicemanagement.services.report` - /// permission on the specified service. For more information, see + /// NOTE: The telemetry reporting has a hard limit of 100 operations and 1MB + /// per Report call. This method requires the + /// `servicemanagement.services.report` permission on the specified service. + /// For more information, see /// [Service Control API Access Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control). /// /// [request] - The metadata request object. @@ -404,6 +404,9 @@ class Auth { /// `String`, `bool` and `null` as well as `Map` and `List` values. core.Map? claims; + /// Attributes of the OAuth token associated with the request. + Oauth? oauth; + /// The authorized presenter of the credential. /// /// Reflects the optional Authorized Presenter (`azp`) claim within a JWT or @@ -423,6 +426,7 @@ class Auth { this.accessLevels, this.audiences, this.claims, + this.oauth, this.presenter, this.principal, }); @@ -441,6 +445,12 @@ class Auth { json_.containsKey('claims') ? json_['claims'] as core.Map : null, + oauth: + json_.containsKey('oauth') + ? Oauth.fromJson( + json_['oauth'] as core.Map, + ) + : null, presenter: json_['presenter'] as core.String?, principal: json_['principal'] as core.String?, ); @@ -449,6 +459,7 @@ class Auth { if (accessLevels != null) 'accessLevels': accessLevels!, if (audiences != null) 'audiences': audiences!, if (claims != null) 'claims': claims!, + if (oauth != null) 'oauth': oauth!, if (presenter != null) 'presenter': presenter!, if (principal != null) 'principal': principal!, }; @@ -555,6 +566,26 @@ class CheckResponse { }; } +/// This message defines attributes associated with OAuth credentials. +class Oauth { + /// The optional OAuth client ID. + /// + /// This is the unique public identifier issued by an authorization server to + /// a registered client application. Empty string is equivalent to no oauth + /// client id. WARNING: This is for MCP tools/call and tools/list + /// authorization and not for general use. + core.String? clientId; + + Oauth({this.clientId}); + + Oauth.fromJson(core.Map json_) + : this(clientId: json_['clientId'] as core.String?); + + core.Map toJson() => { + if (clientId != null) 'clientId': clientId!, + }; +} + /// This message defines attributes for a node that handles a network request. /// /// The node can be either a service or an application that sends, forwards, or diff --git a/generated/googleapis/lib/servicedirectory/v1.dart b/generated/googleapis/lib/servicedirectory/v1.dart index 5156632b9..7da899874 100644 --- a/generated/googleapis/lib/servicedirectory/v1.dart +++ b/generated/googleapis/lib/servicedirectory/v1.dart @@ -121,9 +121,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/shared.dart b/generated/googleapis/lib/shared.dart index 7707c01db..12204bad4 100644 --- a/generated/googleapis/lib/shared.dart +++ b/generated/googleapis/lib/shared.dart @@ -1048,6 +1048,7 @@ class $AppAssignedTargetingOptionDetails { /// not explicitly listed elsewhere. /// - "APP_PLATFORM_LG_TV" : The app platform is LG TV. /// - "APP_PLATFORM_VIZIO_TV" : The app platform is VIZIO TV. + /// - "APP_PLATFORM_VIDAA" : The app platform is Vidaa. core.String? appPlatform; /// The display name of the app. @@ -1661,6 +1662,7 @@ class $AuditAdvertiserResponse { /// - cloudresourcemanager:v3 : AuditLogConfig /// - config:v1 : AuditLogConfig /// - connectors:v1 : AuditLogConfig +/// - contactcenterinsights:v1 : GoogleIamV1AuditLogConfig /// - contentwarehouse:v1 : GoogleIamV1AuditLogConfig /// - datafusion:v1 : AuditLogConfig /// - datamigration:v1 : AuditLogConfig @@ -1762,36 +1764,6 @@ class $AuthRequirement { }; } -/// Used by: -/// -/// - aiplatform:v1 : GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution -/// - places:v1 : GoogleMapsPlacesV1AuthorAttribution -class $AuthorAttribution { - /// Name of the author of the Photo or Review. - core.String? displayName; - - /// Profile photo URI of the author of the Photo or Review. - core.String? photoUri; - - /// URI of the author of the Photo or Review. - core.String? uri; - - $AuthorAttribution({this.displayName, this.photoUri, this.uri}); - - $AuthorAttribution.fromJson(core.Map json_) - : this( - displayName: json_['displayName'] as core.String?, - photoUri: json_['photoUri'] as core.String?, - uri: json_['uri'] as core.String?, - ); - - core.Map toJson() => { - if (displayName != null) 'displayName': displayName!, - if (photoUri != null) 'photoUri': photoUri!, - if (uri != null) 'uri': uri!, - }; -} - /// Used by: /// /// - displayvideo:v2 : AuthorizedSellerStatusAssignedTargetingOptionDetails @@ -2426,6 +2398,29 @@ class $BusinessChainTargetingOptionDetails { }; } +/// Used by: +/// +/// - containeranalysis:v1 : CISAKnownExploitedVulnerabilities +/// - ondemandscanning:v1 : CISAKnownExploitedVulnerabilities +class $CISAKnownExploitedVulnerabilities { + /// Whether the vulnerability is known to have been leveraged as part of a + /// ransomware campaign. + core.String? knownRansomwareCampaignUse; + + $CISAKnownExploitedVulnerabilities({this.knownRansomwareCampaignUse}); + + $CISAKnownExploitedVulnerabilities.fromJson(core.Map json_) + : this( + knownRansomwareCampaignUse: + json_['knownRansomwareCampaignUse'] as core.String?, + ); + + core.Map toJson() => { + if (knownRansomwareCampaignUse != null) + 'knownRansomwareCampaignUse': knownRansomwareCampaignUse!, + }; +} + /// Used by: /// /// - containeranalysis:v1 : CVSS @@ -2847,6 +2842,78 @@ class $CertificateChains { }; } +/// Used by: +/// +/// - manufacturers:v1 : Certification +/// - manufacturers:v1 : GoogleShoppingManufacturersV1ProductCertification +class $Certification { + /// Name of the certification body. + /// + /// Required. + core.String? authority; + + /// A unique code to identify the certification. + /// + /// Optional. + core.String? code; + + /// A URL link to the certification. + /// + /// Optional. + core.String? link; + + /// A URL link to the certification logo. + /// + /// Optional. + core.String? logo; + + /// Name of the certification. + /// + /// Required. + core.String? name; + + /// The expiration date (UTC). + /// + /// Optional. + core.String? validUntil; + + /// A custom value of the certification. + /// + /// Optional. + core.String? value; + + $Certification({ + this.authority, + this.code, + this.link, + this.logo, + this.name, + this.validUntil, + this.value, + }); + + $Certification.fromJson(core.Map json_) + : this( + authority: json_['authority'] as core.String?, + code: json_['code'] as core.String?, + link: json_['link'] as core.String?, + logo: json_['logo'] as core.String?, + name: json_['name'] as core.String?, + validUntil: json_['validUntil'] as core.String?, + value: json_['value'] as core.String?, + ); + + core.Map toJson() => { + if (authority != null) 'authority': authority!, + if (code != null) 'code': code!, + if (link != null) 'link': link!, + if (logo != null) 'logo': logo!, + if (name != null) 'name': name!, + if (validUntil != null) 'validUntil': validUntil!, + if (value != null) 'value': value!, + }; +} + /// Used by: /// /// - displayvideo:v2 : Channel @@ -3196,9 +3263,6 @@ class $ClusterUpgradeUpgradeStatus { /// upgrade doesn't finish within a certain limit, despite it's actual status. /// - "COMPLETE" : The upgrade has passed all post conditions (soaking). At /// the scope level, this means all eligible clusters are in COMPLETE status. - /// - "FORCED_COMPLETE" : The upgrade was forced into soaking and the soaking - /// time has passed. This is the equivalent of COMPLETE status for upgrades - /// that were forced into soaking. core.String? code; /// Reason for this status. @@ -4919,6 +4983,121 @@ class $CreativeClickThroughUrl { }; } +/// Used by: +/// +/// - cloudkms:v1 : CryptoKeyVersionTemplate +/// - kmsinventory:v1 : GoogleCloudKmsV1CryptoKeyVersionTemplate +class $CryptoKeyVersionTemplate { + /// Algorithm to use when creating a CryptoKeyVersion based on this template. + /// + /// For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if + /// both this field is omitted and CryptoKey.purpose is ENCRYPT_DECRYPT. + /// + /// Required. + /// Possible string values are: + /// - "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED" : Not specified. + /// - "GOOGLE_SYMMETRIC_ENCRYPTION" : Creates symmetric encryption keys. + /// - "AES_128_GCM" : AES-GCM (Galois Counter Mode) using 128-bit keys. + /// - "AES_256_GCM" : AES-GCM (Galois Counter Mode) using 256-bit keys. + /// - "AES_128_CBC" : AES-CBC (Cipher Block Chaining Mode) using 128-bit keys. + /// - "AES_256_CBC" : AES-CBC (Cipher Block Chaining Mode) using 256-bit keys. + /// - "AES_128_CTR" : AES-CTR (Counter Mode) using 128-bit keys. + /// - "AES_256_CTR" : AES-CTR (Counter Mode) using 256-bit keys. + /// - "RSA_SIGN_PSS_2048_SHA256" : RSASSA-PSS 2048 bit key with a SHA256 + /// digest. + /// - "RSA_SIGN_PSS_3072_SHA256" : RSASSA-PSS 3072 bit key with a SHA256 + /// digest. + /// - "RSA_SIGN_PSS_4096_SHA256" : RSASSA-PSS 4096 bit key with a SHA256 + /// digest. + /// - "RSA_SIGN_PSS_4096_SHA512" : RSASSA-PSS 4096 bit key with a SHA512 + /// digest. + /// - "RSA_SIGN_PKCS1_2048_SHA256" : RSASSA-PKCS1-v1_5 with a 2048 bit key and + /// a SHA256 digest. + /// - "RSA_SIGN_PKCS1_3072_SHA256" : RSASSA-PKCS1-v1_5 with a 3072 bit key and + /// a SHA256 digest. + /// - "RSA_SIGN_PKCS1_4096_SHA256" : RSASSA-PKCS1-v1_5 with a 4096 bit key and + /// a SHA256 digest. + /// - "RSA_SIGN_PKCS1_4096_SHA512" : RSASSA-PKCS1-v1_5 with a 4096 bit key and + /// a SHA512 digest. + /// - "RSA_SIGN_RAW_PKCS1_2048" : RSASSA-PKCS1-v1_5 signing without encoding, + /// with a 2048 bit key. + /// - "RSA_SIGN_RAW_PKCS1_3072" : RSASSA-PKCS1-v1_5 signing without encoding, + /// with a 3072 bit key. + /// - "RSA_SIGN_RAW_PKCS1_4096" : RSASSA-PKCS1-v1_5 signing without encoding, + /// with a 4096 bit key. + /// - "RSA_DECRYPT_OAEP_2048_SHA256" : RSAES-OAEP 2048 bit key with a SHA256 + /// digest. + /// - "RSA_DECRYPT_OAEP_3072_SHA256" : RSAES-OAEP 3072 bit key with a SHA256 + /// digest. + /// - "RSA_DECRYPT_OAEP_4096_SHA256" : RSAES-OAEP 4096 bit key with a SHA256 + /// digest. + /// - "RSA_DECRYPT_OAEP_4096_SHA512" : RSAES-OAEP 4096 bit key with a SHA512 + /// digest. + /// - "RSA_DECRYPT_OAEP_2048_SHA1" : RSAES-OAEP 2048 bit key with a SHA1 + /// digest. + /// - "RSA_DECRYPT_OAEP_3072_SHA1" : RSAES-OAEP 3072 bit key with a SHA1 + /// digest. + /// - "RSA_DECRYPT_OAEP_4096_SHA1" : RSAES-OAEP 4096 bit key with a SHA1 + /// digest. + /// - "EC_SIGN_P256_SHA256" : ECDSA on the NIST P-256 curve with a SHA256 + /// digest. Other hash functions can also be used: + /// https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms + /// - "EC_SIGN_P384_SHA384" : ECDSA on the NIST P-384 curve with a SHA384 + /// digest. Other hash functions can also be used: + /// https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms + /// - "EC_SIGN_SECP256K1_SHA256" : ECDSA on the non-NIST secp256k1 curve. This + /// curve is only supported for HSM protection level. Other hash functions can + /// also be used: + /// https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms + /// - "EC_SIGN_ED25519" : EdDSA on the Curve25519 in pure mode (taking data as + /// input). + /// - "HMAC_SHA256" : HMAC-SHA256 signing with a 256 bit key. + /// - "HMAC_SHA1" : HMAC-SHA1 signing with a 160 bit key. + /// - "HMAC_SHA384" : HMAC-SHA384 signing with a 384 bit key. + /// - "HMAC_SHA512" : HMAC-SHA512 signing with a 512 bit key. + /// - "HMAC_SHA224" : HMAC-SHA224 signing with a 224 bit key. + /// - "EXTERNAL_SYMMETRIC_ENCRYPTION" : Algorithm representing symmetric + /// encryption by an external key manager. + /// - "ML_KEM_768" : ML-KEM-768 (FIPS 203) + /// - "ML_KEM_1024" : ML-KEM-1024 (FIPS 203) + /// - "KEM_XWING" : X-Wing hybrid KEM combining ML-KEM-768 with X25519 + /// following datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem/. + /// - "PQ_SIGN_ML_DSA_65" : The post-quantum Module-Lattice-Based Digital + /// Signature Algorithm, at security level 3. Randomized version. + /// - "PQ_SIGN_SLH_DSA_SHA2_128S" : The post-quantum stateless hash-based + /// digital signature algorithm, at security level 1. Randomized version. + /// - "PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256" : The post-quantum stateless + /// hash-based digital signature algorithm, at security level 1. Randomized + /// pre-hash version supporting SHA256 digests. + core.String? algorithm; + + /// ProtectionLevel to use when creating a CryptoKeyVersion based on this + /// template. + /// + /// Immutable. Defaults to SOFTWARE. + /// Possible string values are: + /// - "PROTECTION_LEVEL_UNSPECIFIED" : Not specified. + /// - "SOFTWARE" : Crypto operations are performed in software. + /// - "HSM" : Crypto operations are performed in a Hardware Security Module. + /// - "EXTERNAL" : Crypto operations are performed by an external key manager. + /// - "EXTERNAL_VPC" : Crypto operations are performed in an EKM-over-VPC + /// backend. + core.String? protectionLevel; + + $CryptoKeyVersionTemplate({this.algorithm, this.protectionLevel}); + + $CryptoKeyVersionTemplate.fromJson(core.Map json_) + : this( + algorithm: json_['algorithm'] as core.String?, + protectionLevel: json_['protectionLevel'] as core.String?, + ); + + core.Map toJson() => { + if (algorithm != null) 'algorithm': algorithm!, + if (protectionLevel != null) 'protectionLevel': protectionLevel!, + }; +} + /// Used by: /// /// - displayvideo:v3 : CustomBiddingAlgorithmRulesError @@ -6518,17 +6697,43 @@ class $DrainingMachine { /// - displayvideo:v3 : DuplicateLineItemRequest /// - displayvideo:v4 : DuplicateLineItemRequest class $DuplicateLineItemRequest { + /// Whether this line item will serve European Union political ads. + /// + /// If contains_eu_political_ads has been set to + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then + /// this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if + /// not otherwise specified. This field can then be updated using the UI, API, + /// or Structured Data Files. *Warning*: Starting **September 8, 2025**, this + /// field must be set. If not, either the value + /// `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned to the line + /// item if the parent advertiser has declared that it does not serve EU + /// political ads, or **the request will fail**. + /// Possible string values are: + /// - "EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN" : Unknown. + /// - "CONTAINS_EU_POLITICAL_ADVERTISING" : Contains EU political advertising. + /// - "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING" : Does not contain EU + /// political advertising. + core.String? containsEuPoliticalAds; + /// The display name of the new line item. /// /// Must be UTF-8 encoded with a maximum size of 240 bytes. core.String? targetDisplayName; - $DuplicateLineItemRequest({this.targetDisplayName}); + $DuplicateLineItemRequest({ + this.containsEuPoliticalAds, + this.targetDisplayName, + }); $DuplicateLineItemRequest.fromJson(core.Map json_) - : this(targetDisplayName: json_['targetDisplayName'] as core.String?); + : this( + containsEuPoliticalAds: json_['containsEuPoliticalAds'] as core.String?, + targetDisplayName: json_['targetDisplayName'] as core.String?, + ); core.Map toJson() => { + if (containsEuPoliticalAds != null) + 'containsEuPoliticalAds': containsEuPoliticalAds!, if (targetDisplayName != null) 'targetDisplayName': targetDisplayName!, }; } @@ -6776,6 +6981,7 @@ class $EgressSource { /// - aiplatform:v1 : GoogleCloudAiplatformV1CancelBatchPredictionJobRequest /// - aiplatform:v1 : GoogleCloudAiplatformV1CancelCustomJobRequest /// - aiplatform:v1 : GoogleCloudAiplatformV1CancelDataLabelingJobRequest +/// - aiplatform:v1 : GoogleCloudAiplatformV1CancelEvaluationRunRequest /// - aiplatform:v1 : GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest /// - aiplatform:v1 : GoogleCloudAiplatformV1CancelNasJobRequest /// - aiplatform:v1 : GoogleCloudAiplatformV1CancelPipelineJobRequest @@ -6823,11 +7029,13 @@ class $EgressSource { /// - alloydb:v1 : CancelOperationRequest /// - alloydb:v1 : Empty /// - alloydb:v1 : SqlImportOptions +/// - analyticshub:v1 : ApproveQueryTemplateRequest /// - analyticshub:v1 : DefaultExchangeConfig /// - analyticshub:v1 : Empty /// - analyticshub:v1 : PubsubWrapper /// - analyticshub:v1 : RefreshSubscriptionRequest /// - analyticshub:v1 : RevokeSubscriptionResponse +/// - analyticshub:v1 : SubmitQueryTemplateRequest /// - analyticshub:v1 : TextConfig /// - androiddeviceprovisioning:v1 : Empty /// - androidmanagement:v1 : Empty @@ -6835,6 +7043,8 @@ class $EgressSource { /// - androidpublisher:v3 : AddTargetingResponse /// - androidpublisher:v3 : CancelAppRecoveryRequest /// - androidpublisher:v3 : CancelAppRecoveryResponse +/// - androidpublisher:v3 : CancelSubscriptionPurchaseResponse +/// - androidpublisher:v3 : DeferredItemRemoval /// - androidpublisher:v3 : DeployAppRecoveryRequest /// - androidpublisher:v3 : DeployAppRecoveryResponse /// - androidpublisher:v3 : DeveloperInitiatedCancellation @@ -6884,6 +7094,7 @@ class $EgressSource { /// - apihub:v1 : GoogleCloudApihubV1DisablePluginRequest /// - apihub:v1 : GoogleCloudApihubV1EnablePluginRequest /// - apihub:v1 : GoogleCloudApihubV1LintSpecRequest +/// - apihub:v1 : GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse /// - apihub:v1 : GoogleLongrunningCancelOperationRequest /// - apikeys:v2 : V2UndeleteKeyRequest /// - appengine:v1 : Empty @@ -6915,6 +7126,7 @@ class $EgressSource { /// - authorizedbuyersmarketplace:v1 : UnsubscribeAuctionPackageRequest /// - backupdr:v1 : CancelOperationRequest /// - backupdr:v1 : Empty +/// - backupdr:v1 : SubscribeTrialRequest /// - baremetalsolution:v2 : DisableHyperthreadingRequest /// - baremetalsolution:v2 : DisableInteractiveSerialConsoleRequest /// - baremetalsolution:v2 : Empty @@ -7045,6 +7257,7 @@ class $EgressSource { /// - composer:v1 : DatabaseFailoverRequest /// - composer:v1 : Empty /// - composer:v1 : RestartWebServerRequest +/// - compute:v1 : InterconnectApplicationAwareInterconnectStrictPriorityPolicy /// - compute:v1 : ResourcePolicyDiskConsistencyGroupPolicy /// - config:v1 : CancelOperationRequest /// - config:v1 : Empty @@ -7421,6 +7634,7 @@ class $EgressSource { /// - networksecurity:v1 : AuthzPolicyCustomProviderCloudIap /// - networksecurity:v1 : CancelOperationRequest /// - networksecurity:v1 : Empty +/// - networksecurity:v1 : FirewallEndpointEndpointSettings /// - networkservices:v1 : CancelOperationRequest /// - networkservices:v1 : Empty /// - notebooks:v1 : BootImage @@ -7457,9 +7671,9 @@ class $EgressSource { /// - parallelstore:v1 : CancelOperationRequest /// - parallelstore:v1 : GoogleProtobufEmpty /// - parametermanager:v1 : Empty -/// - paymentsresellersubscription:v1 : GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest -/// - paymentsresellersubscription:v1 : GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest -/// - paymentsresellersubscription:v1 : GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest +/// - paymentsresellersubscription:v1 : ResumeSubscriptionRequest +/// - paymentsresellersubscription:v1 : SuspendSubscriptionRequest +/// - paymentsresellersubscription:v1 : UndoCancelSubscriptionRequest /// - people:v1 : Empty /// - playintegrity:v1 : WriteDeviceRecallResponse /// - privateca:v1 : CancelOperationRequest @@ -7600,9 +7814,12 @@ class $EgressSource { /// - vmmigration:v1 : AdaptingOSStep /// - vmmigration:v1 : CancelCloneJobRequest /// - vmmigration:v1 : CancelCutoverJobRequest +/// - vmmigration:v1 : CancelDiskMigrationJobRequest /// - vmmigration:v1 : CancelImageImportJobRequest /// - vmmigration:v1 : CancelOperationRequest +/// - vmmigration:v1 : CopyingSourceDiskSnapshotStep /// - vmmigration:v1 : CreatingImageStep +/// - vmmigration:v1 : CreatingSourceDiskSnapshotStep /// - vmmigration:v1 : DataDiskImageImport /// - vmmigration:v1 : DisksMigrationDisksTargetDefaults /// - vmmigration:v1 : DisksMigrationDisksTargetDetails @@ -7616,7 +7833,9 @@ class $EgressSource { /// - vmmigration:v1 : PauseMigrationRequest /// - vmmigration:v1 : PostProcessingStep /// - vmmigration:v1 : PreparingVMDisksStep +/// - vmmigration:v1 : ProvisioningTargetDiskStep /// - vmmigration:v1 : ResumeMigrationRequest +/// - vmmigration:v1 : RunDiskMigrationJobRequest /// - vmmigration:v1 : ShuttingDownSourceVMStep /// - vmmigration:v1 : SkipOsAdaptation /// - vmmigration:v1 : StartMigrationRequest @@ -8889,6 +9108,33 @@ class $Explicit { }; } +/// Used by: +/// +/// - containeranalysis:v1 : ExploitPredictionScoringSystem +/// - ondemandscanning:v1 : ExploitPredictionScoringSystem +class $ExploitPredictionScoringSystem { + /// The percentile of the current score, the proportion of all scored + /// vulnerabilities with the same or a lower EPSS score + core.double? percentile; + + /// The EPSS score representing the probability \[0-1\] of exploitation in the + /// wild in the next 30 days + core.double? score; + + $ExploitPredictionScoringSystem({this.percentile, this.score}); + + $ExploitPredictionScoringSystem.fromJson(core.Map json_) + : this( + percentile: (json_['percentile'] as core.num?)?.toDouble(), + score: (json_['score'] as core.num?)?.toDouble(), + ); + + core.Map toJson() => { + if (percentile != null) 'percentile': percentile!, + if (score != null) 'score': score!, + }; +} + /// Used by: /// /// - logging:v2 : Exponential @@ -9004,6 +9250,7 @@ class $ExportOptions01 { /// - compute:v1 : Expr /// - config:v1 : Expr /// - connectors:v1 : Expr +/// - contactcenterinsights:v1 : GoogleTypeExpr /// - containeranalysis:v1 : Expr /// - contentwarehouse:v1 : GoogleTypeExpr /// - datacatalog:v1 : Expr @@ -16594,6 +16841,8 @@ class $Parallelstore { /// Used by: /// +/// - compute:v1 : BackendBucketParams +/// - compute:v1 : BackendServiceParams /// - compute:v1 : FirewallParams /// - compute:v1 : NetworkParams /// - compute:v1 : RouteParams @@ -17309,6 +17558,7 @@ class $Permissions { /// - compute:v1 : TestPermissionsResponse /// - config:v1 : TestIamPermissionsResponse /// - connectors:v1 : TestIamPermissionsResponse +/// - contactcenterinsights:v1 : GoogleIamV1TestIamPermissionsResponse /// - containeranalysis:v1 : TestIamPermissionsResponse /// - datacatalog:v1 : TestIamPermissionsResponse /// - datafusion:v1 : TestIamPermissionsResponse @@ -18817,6 +19067,24 @@ class $RemarketingConfig { }; } +/// Used by: +/// +/// - compute:v1 : NetworksRemovePeeringRequest +/// - compute:v1 : NetworksRequestRemovePeeringRequest +class $RemovePeeringRequest { + /// Name of the peering, which should conform to RFC1035. + core.String? name; + + $RemovePeeringRequest({this.name}); + + $RemovePeeringRequest.fromJson(core.Map json_) + : this(name: json_['name'] as core.String?); + + core.Map toJson() => { + if (name != null) 'name': name!, + }; +} + /// Used by: /// /// - docs:v1 : ReplaceAllTextResponse @@ -19808,6 +20076,9 @@ class $SdfConfig { /// guide\](/display-video/api/structured-data-file/v8-migration-guide) before /// migrating to this version. /// - "SDF_VERSION_8_1" : SDF version 8.1. + /// - "SDF_VERSION_9" : SDF version 9. Read the \[v9 migration + /// guide\](/display-video/api/structured-data-file/v9-migration-guide) before + /// migrating to this version. core.String? version; $SdfConfig({this.adminEmail, this.version}); @@ -20223,8 +20494,28 @@ class $ServiceMeshCondition { /// cluster. /// - "MODERNIZATION_COMPLETED" : Modernization is completed for a cluster. /// - "MODERNIZATION_ABORTED" : Modernization is aborted for a cluster. + /// - "MODERNIZATION_PREPARING" : Preparing cluster so that its workloads can + /// be migrated. + /// - "MODERNIZATION_STALLED" : Modernization is stalled for a cluster. + /// - "MODERNIZATION_PREPARED" : Cluster has been prepared for its workloads + /// to be migrated. + /// - "MODERNIZATION_MIGRATING_WORKLOADS" : Migrating the cluster's workloads + /// to the new implementation. + /// - "MODERNIZATION_ROLLING_BACK_CLUSTER" : Rollback is in progress for + /// modernization of a cluster. /// - "MODERNIZATION_WILL_BE_SCHEDULED" : Modernization will be scheduled for /// a fleet. + /// - "MODERNIZATION_MANUAL" : Fleet is opted out from automated + /// modernization. + /// - "MODERNIZATION_ELIGIBLE" : Fleet is eligible for modernization. + /// - "MODERNIZATION_MODERNIZING" : Modernization of one or more clusters in a + /// fleet is in progress. + /// - "MODERNIZATION_MODERNIZED_SOAKING" : Modernization of all the fleet's + /// clusters is complete. Soaking before finalizing the modernization. + /// - "MODERNIZATION_FINALIZED" : Modernization is finalized for all clusters + /// in a fleet. Rollback is no longer allowed. + /// - "MODERNIZATION_ROLLING_BACK_FLEET" : Rollback is in progress for + /// modernization of all clusters in a fleet. core.String? code; /// A short summary about the issue. @@ -21924,6 +22215,7 @@ class $TenantProjectRequest { /// - cloudtasks:v2 : TestIamPermissionsRequest /// - config:v1 : TestIamPermissionsRequest /// - connectors:v1 : TestIamPermissionsRequest +/// - contactcenterinsights:v1 : GoogleIamV1TestIamPermissionsRequest /// - containeranalysis:v1 : TestIamPermissionsRequest /// - datacatalog:v1 : TestIamPermissionsRequest /// - datafusion:v1 : TestIamPermissionsRequest @@ -23706,9 +23998,10 @@ class $YoutubeAndPartnersBiddingStrategy { /// When the bidding strategy is assigned at the line item level, this field /// is only applicable for the following strategy types: * /// `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * - /// `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` When the bidding - /// strategy is assigned at the ad group level, this field is only applicable - /// for the following strategy types: * + /// `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` * + /// `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_SHARE_OF_VOICE` When + /// the bidding strategy is assigned at the ad group level, this field is only + /// applicable for the following strategy types: * /// `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * /// `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * /// `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * diff --git a/generated/googleapis/lib/solar/v1.dart b/generated/googleapis/lib/solar/v1.dart index 98c5ce5fa..8d93751d1 100644 --- a/generated/googleapis/lib/solar/v1.dart +++ b/generated/googleapis/lib/solar/v1.dart @@ -96,10 +96,7 @@ class BuildingInsightsResource { /// - "LOW" : Solar data is derived from enhanced satellite imagery processed /// at 0.25 m/pixel. /// - "BASE" : Solar data is derived from enhanced satellite imagery processed - /// at 0.25 m/pixel. **Note:** This enum is only available if - /// `experiments=EXPANDED_COVERAGE` is set in the request. For more - /// information, see - /// [Expanded Coverage](https://developers.google.com/maps/documentation/solar/expanded-coverage). + /// at 0.25 m/pixel. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -197,10 +194,7 @@ class DataLayersResource { /// - "LOW" : Solar data is derived from enhanced satellite imagery processed /// at 0.25 m/pixel. /// - "BASE" : Solar data is derived from enhanced satellite imagery processed - /// at 0.25 m/pixel. **Note:** This enum is only available if - /// `experiments=EXPANDED_COVERAGE` is set in the request. For more - /// information, see - /// [Expanded Coverage](https://developers.google.com/maps/documentation/solar/expanded-coverage). + /// at 0.25 m/pixel. /// /// [view] - Optional. The desired subset of the data to return. /// Possible string values are: @@ -335,10 +329,7 @@ class BuildingInsights { /// - "LOW" : Solar data is derived from enhanced satellite imagery processed /// at 0.25 m/pixel. /// - "BASE" : Solar data is derived from enhanced satellite imagery processed - /// at 0.25 m/pixel. **Note:** This enum is only available if - /// `experiments=EXPANDED_COVERAGE` is set in the request. For more - /// information, see - /// [Expanded Coverage](https://developers.google.com/maps/documentation/solar/expanded-coverage). + /// at 0.25 m/pixel. core.String? imageryQuality; /// The resource name for the building, of the format `buildings/{place_id}`. @@ -573,10 +564,7 @@ class DataLayers { /// - "LOW" : Solar data is derived from enhanced satellite imagery processed /// at 0.25 m/pixel. /// - "BASE" : Solar data is derived from enhanced satellite imagery processed - /// at 0.25 m/pixel. **Note:** This enum is only available if - /// `experiments=EXPANDED_COVERAGE` is set in the request. For more - /// information, see - /// [Expanded Coverage](https://developers.google.com/maps/documentation/solar/expanded-coverage). + /// at 0.25 m/pixel. core.String? imageryQuality; /// The URL for the building mask image: one bit per pixel saying whether that diff --git a/generated/googleapis/lib/src/user_agent.dart b/generated/googleapis/lib/src/user_agent.dart index f943b085e..c450f444b 100644 --- a/generated/googleapis/lib/src/user_agent.dart +++ b/generated/googleapis/lib/src/user_agent.dart @@ -2,6 +2,6 @@ import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; /// Request headers used by all libraries in this package final requestHeaders = { - 'user-agent': 'google-api-dart-client/14.1.0-wip', - 'x-goog-api-client': 'gl-dart/${commons.dartVersion} gdcl/14.1.0-wip', + 'user-agent': 'google-api-dart-client/15.0.0', + 'x-goog-api-client': 'gl-dart/${commons.dartVersion} gdcl/15.0.0', }; diff --git a/generated/googleapis/lib/storage/v1.dart b/generated/googleapis/lib/storage/v1.dart index bfeeebd45..7665f1bb7 100644 --- a/generated/googleapis/lib/storage/v1.dart +++ b/generated/googleapis/lib/storage/v1.dart @@ -7270,6 +7270,12 @@ class BulkRestoreObjectsRequest { /// The default is false. core.bool? copySourceAcl; + /// Restores only the objects that were created after this time. + core.DateTime? createdAfterTime; + + /// Restores only the objects that were created before this time. + core.DateTime? createdBeforeTime; + /// Restores only the objects matching any of the specified glob(s). /// /// If this parameter is not specified, all objects will be restored within @@ -7285,6 +7291,8 @@ class BulkRestoreObjectsRequest { BulkRestoreObjectsRequest({ this.allowOverwrite, this.copySourceAcl, + this.createdAfterTime, + this.createdBeforeTime, this.matchGlobs, this.softDeletedAfterTime, this.softDeletedBeforeTime, @@ -7294,6 +7302,14 @@ class BulkRestoreObjectsRequest { : this( allowOverwrite: json_['allowOverwrite'] as core.bool?, copySourceAcl: json_['copySourceAcl'] as core.bool?, + createdAfterTime: + json_.containsKey('createdAfterTime') + ? core.DateTime.parse(json_['createdAfterTime'] as core.String) + : null, + createdBeforeTime: + json_.containsKey('createdBeforeTime') + ? core.DateTime.parse(json_['createdBeforeTime'] as core.String) + : null, matchGlobs: (json_['matchGlobs'] as core.List?) ?.map((value) => value as core.String) @@ -7315,6 +7331,10 @@ class BulkRestoreObjectsRequest { core.Map toJson() => { if (allowOverwrite != null) 'allowOverwrite': allowOverwrite!, if (copySourceAcl != null) 'copySourceAcl': copySourceAcl!, + if (createdAfterTime != null) + 'createdAfterTime': createdAfterTime!.toUtc().toIso8601String(), + if (createdBeforeTime != null) + 'createdBeforeTime': createdBeforeTime!.toUtc().toIso8601String(), if (matchGlobs != null) 'matchGlobs': matchGlobs!, if (softDeletedAfterTime != null) 'softDeletedAfterTime': softDeletedAfterTime!.toUtc().toIso8601String(), diff --git a/generated/googleapis/lib/storagebatchoperations/v1.dart b/generated/googleapis/lib/storagebatchoperations/v1.dart index 60824504a..ca9b4387d 100644 --- a/generated/googleapis/lib/storagebatchoperations/v1.dart +++ b/generated/googleapis/lib/storagebatchoperations/v1.dart @@ -118,9 +118,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/storagetransfer/v1.dart b/generated/googleapis/lib/storagetransfer/v1.dart index 2b61fdba1..3b4f1d449 100644 --- a/generated/googleapis/lib/storagetransfer/v1.dart +++ b/generated/googleapis/lib/storagetransfer/v1.dart @@ -2669,18 +2669,28 @@ class TransferOptions { /// Configuration for running a transfer. class TransferSpec { /// An AWS S3 compatible data source. + /// + /// Optional. AwsS3CompatibleData? awsS3CompatibleDataSource; /// An AWS S3 data source. + /// + /// Optional. AwsS3Data? awsS3DataSource; /// An Azure Blob Storage data source. + /// + /// Optional. AzureBlobStorageData? azureBlobStorageDataSource; /// A Cloud Storage data sink. + /// + /// Optional. GcsData? gcsDataSink; /// A Cloud Storage data source. + /// + /// Optional. GcsData? gcsDataSource; /// For transfers between file systems, specifies a Cloud Storage bucket to be @@ -2692,9 +2702,13 @@ class TransferSpec { GcsData? gcsIntermediateDataLocation; /// An HDFS cluster data source. + /// + /// Optional. HdfsData? hdfsDataSource; /// An HTTP URL data source. + /// + /// Optional. HttpData? httpDataSource; /// Only objects that satisfy these object conditions are included in the set @@ -2705,9 +2719,13 @@ class TransferSpec { ObjectConditions? objectConditions; /// A POSIX Filesystem data sink. + /// + /// Optional. PosixFilesystem? posixDataSink; /// A POSIX Filesystem data source. + /// + /// Optional. PosixFilesystem? posixDataSource; /// Specifies the agent pool name associated with the posix data sink. diff --git a/generated/googleapis/lib/sts/v1.dart b/generated/googleapis/lib/sts/v1.dart index 13c65c8bd..9461f7c27 100644 --- a/generated/googleapis/lib/sts/v1.dart +++ b/generated/googleapis/lib/sts/v1.dart @@ -130,7 +130,8 @@ class GoogleIdentityStsV1ExchangeTokenRequest { /// standard OAuth 2.0 token exchange, formatted as a serialized JSON object /// of Options. /// - /// The size of the parameter value must not exceed 4096 characters. + /// The size of the parameter value must not exceed 4 * 1024 * 1024 characters + /// (4 MB). core.String? options; /// An identifier for the type of requested security token. @@ -233,7 +234,13 @@ class GoogleIdentityStsV1ExchangeTokenRequest { /// such as a Credential Access Boundary. In this case, set /// `subject_token_type` to `urn:ietf:params:oauth:token-type:access_token`. /// If an access token already contains security attributes, you cannot apply - /// additional security attributes. + /// additional security attributes. If the request is for X.509 + /// certificate-based authentication, the `subject_token` must be a + /// JSON-formatted list of X.509 certificates in DER format, as defined in + /// [RFC 7515](https://www.rfc-editor.org/rfc/rfc7515#section-4.1.6). + /// `subject_token_type` must be `urn:ietf:params:oauth:token-type:mtls`. The + /// following example shows a JSON-formatted list of X.509 certificate in DER + /// format: ``` [\"MIIEYDCCA0i...\", \"MCIFFGAGTT0...\"] ``` /// /// Required. core.String? subjectToken; @@ -244,7 +251,8 @@ class GoogleIdentityStsV1ExchangeTokenRequest { /// Supported values are `urn:ietf:params:oauth:token-type:jwt`, /// `urn:ietf:params:oauth:token-type:id_token`, /// `urn:ietf:params:aws:token-type:aws4_request`, - /// `urn:ietf:params:oauth:token-type:access_token`, and + /// `urn:ietf:params:oauth:token-type:access_token`, + /// `urn:ietf:params:oauth:token-type:mtls`, and /// `urn:ietf:params:oauth:token-type:saml2`. /// /// Required. diff --git a/generated/googleapis/lib/tagmanager/v2.dart b/generated/googleapis/lib/tagmanager/v2.dart index 44092034a..8764b67c9 100644 --- a/generated/googleapis/lib/tagmanager/v2.dart +++ b/generated/googleapis/lib/tagmanager/v2.dart @@ -2106,6 +2106,9 @@ class AccountsContainersWorkspacesBuiltInVariablesResource { /// - "serverPageLocationPath" /// - "serverPageLocationHostname" /// - "visitorRegion" + /// - "analyticsClientId" + /// - "analyticsSessionId" + /// - "analyticsSessionNumber" /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -4935,6 +4938,9 @@ class BuiltInVariable { /// - "serverPageLocationPath" /// - "serverPageLocationHostname" /// - "visitorRegion" + /// - "analyticsClientId" + /// - "analyticsSessionId" + /// - "analyticsSessionNumber" core.String? type; /// GTM Workspace ID. diff --git a/generated/googleapis/lib/testing/v1.dart b/generated/googleapis/lib/testing/v1.dart index f711f1c0c..bc21aafe2 100644 --- a/generated/googleapis/lib/testing/v1.dart +++ b/generated/googleapis/lib/testing/v1.dart @@ -3461,7 +3461,7 @@ class RegularFile { /// /// Must be an absolute, allowlisted path. If the file exists, it will be /// replaced. The following device-side directories and any of their - /// subdirectories are allowlisted: ${EXTERNAL_STORAGE}, /sdcard, or /storage + /// subdirectories are allowlisted: ${EXTERNAL_STORAGE}, /sdcard /// ${ANDROID_DATA}/local/tmp, or /data/local/tmp Specifying a path outside of /// these directory trees is invalid. The paths /sdcard and /data will be made /// available and treated as implicit path substitutions. E.g. if /sdcard on a diff --git a/generated/googleapis/lib/texttospeech/v1.dart b/generated/googleapis/lib/texttospeech/v1.dart index 76ef40f91..97867bb3a 100644 --- a/generated/googleapis/lib/texttospeech/v1.dart +++ b/generated/googleapis/lib/texttospeech/v1.dart @@ -860,6 +860,12 @@ class SynthesisInput { /// Only applicable for multi-speaker synthesis. MultiSpeakerMarkup? multiSpeakerMarkup; + /// This is system instruction supported only for controllable voice models. + /// + /// If used, we will pass text to Flash TTS as is. Can only used with Flash + /// TTS. What AI Studio calls Style Instructions. + core.String? prompt; + /// The SSML document to be synthesized. /// /// The SSML document must be valid and well-formed. Otherwise the RPC will @@ -874,6 +880,7 @@ class SynthesisInput { this.customPronunciations, this.markup, this.multiSpeakerMarkup, + this.prompt, this.ssml, this.text, }); @@ -895,6 +902,7 @@ class SynthesisInput { as core.Map, ) : null, + prompt: json_['prompt'] as core.String?, ssml: json_['ssml'] as core.String?, text: json_['text'] as core.String?, ); @@ -904,6 +912,7 @@ class SynthesisInput { 'customPronunciations': customPronunciations!, if (markup != null) 'markup': markup!, if (multiSpeakerMarkup != null) 'multiSpeakerMarkup': multiSpeakerMarkup!, + if (prompt != null) 'prompt': prompt!, if (ssml != null) 'ssml': ssml!, if (text != null) 'text': text!, }; @@ -1190,6 +1199,14 @@ class VoiceSelectionParams { /// Required. core.String? languageCode; + /// The name of the model. + /// + /// If set, the service will choose the model matching the specified + /// configuration. + /// + /// Optional. + core.String? modelName; + /// The name of the voice. /// /// If both the name and the gender are not set, the service will choose a @@ -1225,6 +1242,7 @@ class VoiceSelectionParams { VoiceSelectionParams({ this.customVoice, this.languageCode, + this.modelName, this.name, this.ssmlGender, this.voiceClone, @@ -1239,6 +1257,7 @@ class VoiceSelectionParams { ) : null, languageCode: json_['languageCode'] as core.String?, + modelName: json_['modelName'] as core.String?, name: json_['name'] as core.String?, ssmlGender: json_['ssmlGender'] as core.String?, voiceClone: @@ -1252,6 +1271,7 @@ class VoiceSelectionParams { core.Map toJson() => { if (customVoice != null) 'customVoice': customVoice!, if (languageCode != null) 'languageCode': languageCode!, + if (modelName != null) 'modelName': modelName!, if (name != null) 'name': name!, if (ssmlGender != null) 'ssmlGender': ssmlGender!, if (voiceClone != null) 'voiceClone': voiceClone!, diff --git a/generated/googleapis/lib/tpu/v1.dart b/generated/googleapis/lib/tpu/v1.dart index 4fd80ed49..377fc565b 100644 --- a/generated/googleapis/lib/tpu/v1.dart +++ b/generated/googleapis/lib/tpu/v1.dart @@ -126,9 +126,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/tpu/v2.dart b/generated/googleapis/lib/tpu/v2.dart index b86c7de16..db403db1a 100644 --- a/generated/googleapis/lib/tpu/v2.dart +++ b/generated/googleapis/lib/tpu/v2.dart @@ -172,9 +172,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -1291,9 +1291,56 @@ class AttachedDisk { }; } +/// Sets the boot disk configuration for the TPU node. +class BootDiskConfig { + /// Customer encryption key for boot disk. + /// + /// Optional. + CustomerEncryptionKey? customerEncryptionKey; + + BootDiskConfig({this.customerEncryptionKey}); + + BootDiskConfig.fromJson(core.Map json_) + : this( + customerEncryptionKey: + json_.containsKey('customerEncryptionKey') + ? CustomerEncryptionKey.fromJson( + json_['customerEncryptionKey'] + as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (customerEncryptionKey != null) + 'customerEncryptionKey': customerEncryptionKey!, + }; +} + /// Further data for the creating state. typedef CreatingData = $Empty; +/// Defines the customer encryption key for disk encryption. +class CustomerEncryptionKey { + /// The name of the encryption key that is stored in Google Cloud KMS. + /// + /// For example: "kmsKeyName": + /// "projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY + /// The fully-qualifed key name may be returned for resource GET requests. For + /// example: "kmsKeyName": + /// "projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY/cryptoKeyVersions/1 + core.String? kmsKeyName; + + CustomerEncryptionKey({this.kmsKeyName}); + + CustomerEncryptionKey.fromJson(core.Map json_) + : this(kmsKeyName: json_['kmsKeyName'] as core.String?); + + core.Map toJson() => { + if (kmsKeyName != null) 'kmsKeyName': kmsKeyName!, + }; +} + /// Further data for the deleting state. typedef DeletingData = $Empty; @@ -1859,6 +1906,11 @@ class Node { /// - "V2" : TPU API V2 version. core.String? apiVersion; + /// Boot disk configuration. + /// + /// Optional. + BootDiskConfig? bootDiskConfig; + /// The CIDR block that the TPU node will use when selecting an IP address. /// /// This CIDR block must be a /29 block; the Compute Engine networks API @@ -2011,6 +2063,7 @@ class Node { this.acceleratorConfig, this.acceleratorType, this.apiVersion, + this.bootDiskConfig, this.cidrBlock, this.createTime, this.dataDisks, @@ -2047,6 +2100,13 @@ class Node { : null, acceleratorType: json_['acceleratorType'] as core.String?, apiVersion: json_['apiVersion'] as core.String?, + bootDiskConfig: + json_.containsKey('bootDiskConfig') + ? BootDiskConfig.fromJson( + json_['bootDiskConfig'] + as core.Map, + ) + : null, cidrBlock: json_['cidrBlock'] as core.String?, createTime: json_['createTime'] as core.String?, dataDisks: @@ -2139,6 +2199,7 @@ class Node { if (acceleratorConfig != null) 'acceleratorConfig': acceleratorConfig!, if (acceleratorType != null) 'acceleratorType': acceleratorType!, if (apiVersion != null) 'apiVersion': apiVersion!, + if (bootDiskConfig != null) 'bootDiskConfig': bootDiskConfig!, if (cidrBlock != null) 'cidrBlock': cidrBlock!, if (createTime != null) 'createTime': createTime!, if (dataDisks != null) 'dataDisks': dataDisks!, diff --git a/generated/googleapis/lib/trafficdirector/v2.dart b/generated/googleapis/lib/trafficdirector/v2.dart index 42235ee76..5d262d461 100644 --- a/generated/googleapis/lib/trafficdirector/v2.dart +++ b/generated/googleapis/lib/trafficdirector/v2.dart @@ -1371,7 +1371,7 @@ class UpdateFailureState { }; } -/// Specifies the way to match a ProtobufWkt::Value. +/// Specifies the way to match a Protobuf::Value. /// /// Primitive values and ListValue are supported. StructValue is not supported /// and is always not matched. \[#next-free-field: 7\] diff --git a/generated/googleapis/lib/trafficdirector/v3.dart b/generated/googleapis/lib/trafficdirector/v3.dart index bb345a36f..9078d0e9b 100644 --- a/generated/googleapis/lib/trafficdirector/v3.dart +++ b/generated/googleapis/lib/trafficdirector/v3.dart @@ -1792,9 +1792,8 @@ class SocketAddress { /// /// If this field is set, Envoy will create the socket in the specified /// network namespace. .. note:: Setting this parameter requires Envoy to run - /// with the ``CAP_NET_ADMIN`` capability. .. note:: Currently only used for - /// Listener sockets. .. attention:: Network namespaces are only configurable - /// on Linux. Otherwise, this field has no effect. + /// with the ``CAP_NET_ADMIN`` capability. .. attention:: Network namespaces + /// are only configurable on Linux. Otherwise, this field has no effect. core.String? networkNamespaceFilepath; core.int? portValue; @@ -2102,7 +2101,7 @@ class UpdateFailureState { }; } -/// Specifies the way to match a ProtobufWkt::Value. +/// Specifies the way to match a Protobuf::Value. /// /// Primitive values and ListValue are supported. StructValue is not supported /// and is always not matched. \[#next-free-field: 8\] diff --git a/generated/googleapis/lib/versionhistory/v1.dart b/generated/googleapis/lib/versionhistory/v1.dart index 5ce8dd0a8..45b10b446 100644 --- a/generated/googleapis/lib/versionhistory/v1.dart +++ b/generated/googleapis/lib/versionhistory/v1.dart @@ -594,6 +594,12 @@ class Release { /// Whether or not the release was available for version pinning. core.bool? pinnable; + /// Rollout-related metadata. + /// + /// Some releases are part of one or more A/B rollouts. This field contains + /// the names and data describing this release's role in any rollouts. + core.List? rolloutData; + /// Timestamp interval of when the release was live. /// /// If end_time is unspecified, the release is currently live. @@ -609,6 +615,7 @@ class Release { this.fractionGroup, this.name, this.pinnable, + this.rolloutData, this.serving, this.version, }); @@ -619,6 +626,14 @@ class Release { fractionGroup: json_['fractionGroup'] as core.String?, name: json_['name'] as core.String?, pinnable: json_['pinnable'] as core.bool?, + rolloutData: + (json_['rolloutData'] as core.List?) + ?.map( + (value) => RolloutData.fromJson( + value as core.Map, + ), + ) + .toList(), serving: json_.containsKey('serving') ? Interval.fromJson( @@ -633,11 +648,41 @@ class Release { if (fractionGroup != null) 'fractionGroup': fractionGroup!, if (name != null) 'name': name!, if (pinnable != null) 'pinnable': pinnable!, + if (rolloutData != null) 'rolloutData': rolloutData!, if (serving != null) 'serving': serving!, if (version != null) 'version': version!, }; } +/// Rollout-related metadata for a release. +class RolloutData { + /// The name of the rollout. + core.String? rolloutName; + + /// Tags associated with a release's role in a rollout. + /// + /// Most rollouts will have at least one release with a "rollout" tag and + /// another release with a "control" tag. Some rollouts may have additional + /// named arms. + core.List? tag; + + RolloutData({this.rolloutName, this.tag}); + + RolloutData.fromJson(core.Map json_) + : this( + rolloutName: json_['rolloutName'] as core.String?, + tag: + (json_['tag'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (rolloutName != null) 'rolloutName': rolloutName!, + if (tag != null) 'tag': tag!, + }; +} + /// Each Version is owned by a Channel. /// /// A Version only displays the Version number (e.g. 84.0.4147.38). A Version diff --git a/generated/googleapis/lib/vision/v1.dart b/generated/googleapis/lib/vision/v1.dart index 2f15fc7cd..abc9ed0a4 100644 --- a/generated/googleapis/lib/vision/v1.dart +++ b/generated/googleapis/lib/vision/v1.dart @@ -3446,7 +3446,7 @@ class Feature { /// /// Supported values: "builtin/stable" (the default if unset) and /// "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also - /// support "builtin/weekly" for the bleeding edge release updated weekly. + /// support "builtin/rc" for the latest release candidate. core.String? model; /// The feature type. diff --git a/generated/googleapis/lib/vmmigration/v1.dart b/generated/googleapis/lib/vmmigration/v1.dart index 202b43cb0..5e903bddb 100644 --- a/generated/googleapis/lib/vmmigration/v1.dart +++ b/generated/googleapis/lib/vmmigration/v1.dart @@ -30,6 +30,7 @@ /// - [ProjectsLocationsOperationsResource] /// - [ProjectsLocationsSourcesResource] /// - [ProjectsLocationsSourcesDatacenterConnectorsResource] +/// - [ProjectsLocationsSourcesDiskMigrationJobsResource] /// - [ProjectsLocationsSourcesMigratingVmsResource] /// - [ProjectsLocationsSourcesMigratingVmsCloneJobsResource] /// - [ProjectsLocationsSourcesMigratingVmsCutoverJobsResource] @@ -139,9 +140,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -770,7 +771,7 @@ class ProjectsLocationsImageImportsImageImportJobsResource { commons.ApiRequester client, ) : _requester = client; - /// Initiates the cancellation of a running clone job. + /// Initiates the cancellation of a running ImageImportJob. /// /// [request] - The metadata request object. /// @@ -1098,6 +1099,8 @@ class ProjectsLocationsSourcesResource { ProjectsLocationsSourcesDatacenterConnectorsResource get datacenterConnectors => ProjectsLocationsSourcesDatacenterConnectorsResource(_requester); + ProjectsLocationsSourcesDiskMigrationJobsResource get diskMigrationJobs => + ProjectsLocationsSourcesDiskMigrationJobsResource(_requester); ProjectsLocationsSourcesMigratingVmsResource get migratingVms => ProjectsLocationsSourcesMigratingVmsResource(_requester); ProjectsLocationsSourcesUtilizationReportsResource get utilizationReports => @@ -1278,6 +1281,76 @@ class ProjectsLocationsSourcesResource { ); } + /// List remote source's inventory of storage resources. + /// + /// The remote source is another cloud vendor (e.g. AWS, Azure). The inventory + /// describes the list of existing storage resources in that source. Note that + /// this operation lists the resources on the remote source, as opposed to + /// listing the MigratingVms resources in the vmmigration service. + /// + /// Request parameters: + /// + /// [source] - Required. The name of the Source. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/sources/\[^/\]+$`. + /// + /// [forceRefresh] - Optional. If this flag is set to true, the source will be + /// queried instead of using cached results. Using this flag will make the + /// call slower. + /// + /// [pageSize] - Optional. The maximum number of VMs to return. The service + /// may return fewer than this value. + /// + /// [pageToken] - Optional. A page token, received from a previous + /// `FetchStorageInventory` call. Provide this to retrieve the subsequent + /// page. When paginating, all other parameters provided to + /// `FetchStorageInventory` must match the call that provided the page token. + /// + /// [type] - Required. The type of the storage inventory to fetch. + /// Possible string values are: + /// - "STORAGE_TYPE_UNSPECIFIED" : The type is unspecified. + /// - "DISKS" : The type is disks. + /// - "SNAPSHOTS" : The type is snapshots. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [FetchStorageInventoryResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future fetchStorageInventory( + core.String source, { + core.bool? forceRefresh, + core.int? pageSize, + core.String? pageToken, + core.String? type, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (forceRefresh != null) 'forceRefresh': ['${forceRefresh}'], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if (type != null) 'type': [type], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + core.Uri.encodeFull('$source') + ':fetchStorageInventory'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return FetchStorageInventoryResponse.fromJson( + response_ as core.Map, + ); + } + /// Gets details of a single Source. /// /// Request parameters: @@ -1700,6 +1773,357 @@ class ProjectsLocationsSourcesDatacenterConnectorsResource { } } +class ProjectsLocationsSourcesDiskMigrationJobsResource { + final commons.ApiRequester _requester; + + ProjectsLocationsSourcesDiskMigrationJobsResource(commons.ApiRequester client) + : _requester = client; + + /// Cancels the disk migration job. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Required. The name of the DiskMigrationJob. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/sources/\[^/\]+/diskMigrationJobs/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future cancel( + CancelDiskMigrationJobRequest request, + core.String name, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':cancel'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + + /// Creates a new disk migration job in a given Source. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - Required. The DiskMigrationJob's parent. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/sources/\[^/\]+$`. + /// + /// [diskMigrationJobId] - Required. The DiskMigrationJob identifier. The + /// maximum length of this value is 63 characters. Valid characters are lower + /// case Latin letters, digits and hyphen. It must start with a Latin letter + /// and must not end with a hyphen. + /// + /// [requestId] - Optional. A request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. The server + /// will guarantee that for at least 60 minutes since the first request. For + /// example, consider a situation where you make an initial request and the + /// request timed out. If you make the request again with the same request ID, + /// the server can check if original operation with the same request ID was + /// received, and if so, will ignore the second request. This prevents clients + /// from accidentally creating duplicate commitments. The request ID must be a + /// valid UUID with the exception that zero UUID is not supported + /// (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future create( + DiskMigrationJob request, + core.String parent, { + core.String? diskMigrationJobId, + core.String? requestId, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (diskMigrationJobId != null) + 'diskMigrationJobId': [diskMigrationJobId], + if (requestId != null) 'requestId': [requestId], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/diskMigrationJobs'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + + /// Deletes a single DiskMigrationJob. + /// + /// Request parameters: + /// + /// [name] - Required. The name of the DiskMigrationJob. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/sources/\[^/\]+/diskMigrationJobs/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future delete( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'DELETE', + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + + /// Gets details of a single DiskMigrationJob. + /// + /// Request parameters: + /// + /// [name] - Required. The name of the DiskMigrationJob. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/sources/\[^/\]+/diskMigrationJobs/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [DiskMigrationJob]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get( + core.String name, { + core.String? $fields, + }) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return DiskMigrationJob.fromJson( + response_ as core.Map, + ); + } + + /// Lists DiskMigrationJobs in a given Source. + /// + /// Request parameters: + /// + /// [parent] - Required. The parent, which owns this collection of + /// DiskMigrationJobs. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/sources/\[^/\]+$`. + /// + /// [filter] - Optional. The filter request (according to AIP-160). + /// + /// [orderBy] - Optional. Ordering of the result list. + /// + /// [pageSize] - Optional. The maximum number of disk migration jobs to + /// return. The service may return fewer than this value. If unspecified, at + /// most 500 disk migration jobs will be returned. The maximum value is 1000; + /// values above 1000 will be coerced to 1000. + /// + /// [pageToken] - Optional. A page token, received from a previous + /// `ListDiskMigrationJobs` call. Provide this to retrieve the subsequent + /// page. When paginating, all parameters provided to `ListDiskMigrationJobs` + /// except `page_size` must match the call that provided the page token. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListDiskMigrationJobsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future list( + core.String parent, { + core.String? filter, + core.String? orderBy, + core.int? pageSize, + core.String? pageToken, + core.String? $fields, + }) async { + final queryParams_ = >{ + if (filter != null) 'filter': [filter], + if (orderBy != null) 'orderBy': [orderBy], + if (pageSize != null) 'pageSize': ['${pageSize}'], + if (pageToken != null) 'pageToken': [pageToken], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/diskMigrationJobs'; + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return ListDiskMigrationJobsResponse.fromJson( + response_ as core.Map, + ); + } + + /// Updates the parameters of a single DiskMigrationJob. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Output only. Identifier. The identifier of the DiskMigrationJob. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/sources/\[^/\]+/diskMigrationJobs/\[^/\]+$`. + /// + /// [requestId] - Optional. A request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. The server + /// will guarantee that for at least 60 minutes since the first request. For + /// example, consider a situation where you make an initial request and the + /// request timed out. If you make the request again with the same request ID, + /// the server can check if original operation with the same request ID was + /// received, and if so, will ignore the second request. This prevents clients + /// from accidentally creating duplicate commitments. The request ID must be a + /// valid UUID with the exception that zero UUID is not supported + /// (00000000-0000-0000-0000-000000000000). + /// + /// [updateMask] - Optional. Field mask is used to specify the fields to be + /// overwritten in the DiskMigrationJob resource by the update. The fields + /// specified in the update_mask are relative to the resource, not the full + /// request. A field will be overwritten if it is in the mask. If the user + /// does not provide a mask, then a mask equivalent to all fields that are + /// populated (have a non-empty value), will be implied. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future patch( + DiskMigrationJob request, + core.String name, { + core.String? requestId, + core.String? updateMask, + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if (requestId != null) 'requestId': [requestId], + if (updateMask != null) 'updateMask': [updateMask], + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'PATCH', + body: body_, + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + + /// Runs the disk migration job. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Required. The name of the DiskMigrationJob. + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/sources/\[^/\]+/diskMigrationJobs/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future run( + RunDiskMigrationJobRequest request, + core.String name, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v1/' + core.Uri.encodeFull('$name') + ':run'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } +} + class ProjectsLocationsSourcesMigratingVmsResource { final commons.ApiRequester _requester; @@ -3305,6 +3729,35 @@ class AccessKeyCredentials { }; } +/// AdaptationModifier a modifier to be used for configuration of the OS +/// adaptation process. +class AdaptationModifier { + /// The modifier name. + /// + /// Optional. + core.String? modifier; + + /// The value of the modifier. + /// + /// The actual value depends on the modifier and can also be empty. + /// + /// Optional. + core.String? value; + + AdaptationModifier({this.modifier, this.value}); + + AdaptationModifier.fromJson(core.Map json_) + : this( + modifier: json_['modifier'] as core.String?, + value: json_['value'] as core.String?, + ); + + core.Map toJson() => { + if (modifier != null) 'modifier': modifier!, + if (value != null) 'value': value!, + }; +} + /// AdaptingOSStep contains specific step details. typedef AdaptingOSStep = $Empty; @@ -3591,6 +4044,57 @@ class AwsSourceDetails { }; } +/// Represents the source AWS Disk details. +class AwsSourceDiskDetails { + /// Disk type. + /// + /// Optional. Output only. + /// Possible string values are: + /// - "TYPE_UNSPECIFIED" : Unspecified AWS disk type. Should not be used. + /// - "GP2" : GP2 disk type. + /// - "GP3" : GP3 disk type. + /// - "IO1" : IO1 disk type. + /// - "IO2" : IO2 disk type. + /// - "ST1" : ST1 disk type. + /// - "SC1" : SC1 disk type. + /// - "STANDARD" : Standard disk type. + core.String? diskType; + + /// Size in GiB. + /// + /// Output only. + core.String? sizeGib; + + /// A map of AWS volume tags. + /// + /// Optional. Output only. + core.Map? tags; + + /// AWS volume ID. + /// + /// Required. + core.String? volumeId; + + AwsSourceDiskDetails({this.diskType, this.sizeGib, this.tags, this.volumeId}); + + AwsSourceDiskDetails.fromJson(core.Map json_) + : this( + diskType: json_['diskType'] as core.String?, + sizeGib: json_['sizeGib'] as core.String?, + tags: (json_['tags'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), + volumeId: json_['volumeId'] as core.String?, + ); + + core.Map toJson() => { + if (diskType != null) 'diskType': diskType!, + if (sizeGib != null) 'sizeGib': sizeGib!, + if (tags != null) 'tags': tags!, + if (volumeId != null) 'volumeId': volumeId!, + }; +} + /// Represent the source AWS VM details. class AwsSourceVmDetails { /// The VM architecture. @@ -4299,6 +4803,9 @@ typedef CancelCloneJobRequest = $Empty; /// Request message for 'CancelCutoverJob' request. typedef CancelCutoverJobRequest = $Empty; +/// Request message for 'CancelDiskMigrationJob' request. +typedef CancelDiskMigrationJobRequest = $Empty; + /// Request message for 'CancelImageImportJob' request. typedef CancelImageImportJobRequest = $Empty; @@ -4527,6 +5034,67 @@ class CloneStep { }; } +/// Compute Engine disk target details. +class ComputeEngineDisk { + /// Target Compute Engine Disk ID. + /// + /// This is the resource ID segment of the Compute Engine Disk to create. In + /// the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 + /// "disk1" is the resource ID for the disk. + /// + /// Optional. + core.String? diskId; + + /// The disk type to use. + /// + /// Required. + /// Possible string values are: + /// - "COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED" : An unspecified disk type. Will + /// be used as STANDARD. + /// - "COMPUTE_ENGINE_DISK_TYPE_STANDARD" : A Standard disk type. + /// - "COMPUTE_ENGINE_DISK_TYPE_SSD" : SSD hard disk type. + /// - "COMPUTE_ENGINE_DISK_TYPE_BALANCED" : An alternative to SSD persistent + /// disks that balance performance and cost. + /// - "COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED" : Hyperdisk balanced disk + /// type. + core.String? diskType; + + /// Replication zones of the regional disk. + /// + /// Should be of the form: projects/{target-project}/locations/{replica-zone} + /// Currently only one replica zone is supported. + /// + /// Optional. + core.List? replicaZones; + + /// The Compute Engine zone in which to create the disk. + /// + /// Should be of the form: projects/{target-project}/locations/{zone} + /// + /// Required. + core.String? zone; + + ComputeEngineDisk({this.diskId, this.diskType, this.replicaZones, this.zone}); + + ComputeEngineDisk.fromJson(core.Map json_) + : this( + diskId: json_['diskId'] as core.String?, + diskType: json_['diskType'] as core.String?, + replicaZones: + (json_['replicaZones'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + zone: json_['zone'] as core.String?, + ); + + core.Map toJson() => { + if (diskId != null) 'diskId': diskId!, + if (diskType != null) 'diskType': diskType!, + if (replicaZones != null) 'replicaZones': replicaZones!, + if (zone != null) 'zone': zone!, + }; +} + /// ComputeEngineDisksTargetDefaults is a collection of details for creating /// Persistent Disks in a target Compute Engine project. class ComputeEngineDisksTargetDefaults { @@ -4646,6 +5214,11 @@ class ComputeEngineDisksTargetDetails { /// ComputeEngineTargetDefaults is a collection of details for creating a VM in /// a target Compute Engine project. class ComputeEngineTargetDefaults { + /// AdaptationModifiers are the set of modifiers used during OS adaptation. + /// + /// Optional. + core.List? adaptationModifiers; + /// Additional licenses to assign to the VM. core.List? additionalLicenses; @@ -4774,6 +5347,7 @@ class ComputeEngineTargetDefaults { core.String? zone; ComputeEngineTargetDefaults({ + this.adaptationModifiers, this.additionalLicenses, this.appliedLicense, this.bootConversion, @@ -4801,6 +5375,14 @@ class ComputeEngineTargetDefaults { ComputeEngineTargetDefaults.fromJson(core.Map json_) : this( + adaptationModifiers: + (json_['adaptationModifiers'] as core.List?) + ?.map( + (value) => AdaptationModifier.fromJson( + value as core.Map, + ), + ) + .toList(), additionalLicenses: (json_['additionalLicenses'] as core.List?) ?.map((value) => value as core.String) @@ -4864,6 +5446,8 @@ class ComputeEngineTargetDefaults { ); core.Map toJson() => { + if (adaptationModifiers != null) + 'adaptationModifiers': adaptationModifiers!, if (additionalLicenses != null) 'additionalLicenses': additionalLicenses!, if (appliedLicense != null) 'appliedLicense': appliedLicense!, if (bootConversion != null) 'bootConversion': bootConversion!, @@ -4894,6 +5478,11 @@ class ComputeEngineTargetDefaults { /// ComputeEngineTargetDetails is a collection of details for creating a VM in a /// target Compute Engine project. class ComputeEngineTargetDetails { + /// Modifiers to be used as configuration of the OS adaptation process. + /// + /// Optional. + core.List? adaptationModifiers; + /// Additional licenses to assign to the VM. core.List? additionalLicenses; @@ -5010,6 +5599,7 @@ class ComputeEngineTargetDetails { core.String? zone; ComputeEngineTargetDetails({ + this.adaptationModifiers, this.additionalLicenses, this.appliedLicense, this.bootConversion, @@ -5037,6 +5627,14 @@ class ComputeEngineTargetDetails { ComputeEngineTargetDetails.fromJson(core.Map json_) : this( + adaptationModifiers: + (json_['adaptationModifiers'] as core.List?) + ?.map( + (value) => AdaptationModifier.fromJson( + value as core.Map, + ), + ) + .toList(), additionalLicenses: (json_['additionalLicenses'] as core.List?) ?.map((value) => value as core.String) @@ -5100,6 +5698,8 @@ class ComputeEngineTargetDetails { ); core.Map toJson() => { + if (adaptationModifiers != null) + 'adaptationModifiers': adaptationModifiers!, if (additionalLicenses != null) 'additionalLicenses': additionalLicenses!, if (appliedLicense != null) 'appliedLicense': appliedLicense!, if (bootConversion != null) 'bootConversion': bootConversion!, @@ -5199,9 +5799,15 @@ class ComputeScheduling { }; } +/// CopyingSourceDiskSnapshotStep contains specific step details. +typedef CopyingSourceDiskSnapshotStep = $Empty; + /// CreatingImageStep contains specific step details. typedef CreatingImageStep = $Empty; +/// CreatingSourceDiskSnapshotStep contains specific step details. +typedef CreatingSourceDiskSnapshotStep = $Empty; + /// CutoverForecast holds information about future CutoverJobs of a MigratingVm. class CutoverForecast { /// Estimation of the CutoverJob duration. @@ -5859,6 +6465,255 @@ class DiskImageTargetDetails { }; } +/// Describes the disk which will be migrated from the source environment. +/// +/// The source disk has to be unattached. +class DiskMigrationJob { + /// Details of the unattached AWS source disk. + AwsSourceDiskDetails? awsSourceDiskDetails; + + /// The time the DiskMigrationJob resource was created. + /// + /// Output only. + core.String? createTime; + + /// Provides details on the errors that led to the disk migration job's state + /// in case of an error. + /// + /// Output only. + core.List? errors; + + /// Identifier. + /// + /// The identifier of the DiskMigrationJob. + /// + /// Output only. + core.String? name; + + /// State of the DiskMigrationJob. + /// + /// Output only. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : The state is unspecified. This is not in use. + /// - "READY" : The initial state of the disk migration. In this state the + /// customers can update the target details. + /// - "RUNNING" : The migration is active, and it's running or scheduled to + /// run. + /// - "SUCCEEDED" : The migration completed successfully. + /// - "CANCELLING" : Migration cancellation was initiated. + /// - "CANCELLED" : The migration was cancelled. + /// - "FAILED" : The migration process encountered an unrecoverable error and + /// was aborted. + core.String? state; + + /// The disk migration steps list representing its progress. + /// + /// Output only. + core.List? steps; + + /// Details of the target Disk in Compute Engine. + /// + /// Required. + DiskMigrationJobTargetDetails? targetDetails; + + /// The last time the DiskMigrationJob resource was updated. + /// + /// Output only. + core.String? updateTime; + + DiskMigrationJob({ + this.awsSourceDiskDetails, + this.createTime, + this.errors, + this.name, + this.state, + this.steps, + this.targetDetails, + this.updateTime, + }); + + DiskMigrationJob.fromJson(core.Map json_) + : this( + awsSourceDiskDetails: + json_.containsKey('awsSourceDiskDetails') + ? AwsSourceDiskDetails.fromJson( + json_['awsSourceDiskDetails'] + as core.Map, + ) + : null, + createTime: json_['createTime'] as core.String?, + errors: + (json_['errors'] as core.List?) + ?.map( + (value) => Status.fromJson( + value as core.Map, + ), + ) + .toList(), + name: json_['name'] as core.String?, + state: json_['state'] as core.String?, + steps: + (json_['steps'] as core.List?) + ?.map( + (value) => DiskMigrationStep.fromJson( + value as core.Map, + ), + ) + .toList(), + targetDetails: + json_.containsKey('targetDetails') + ? DiskMigrationJobTargetDetails.fromJson( + json_['targetDetails'] as core.Map, + ) + : null, + updateTime: json_['updateTime'] as core.String?, + ); + + core.Map toJson() => { + if (awsSourceDiskDetails != null) + 'awsSourceDiskDetails': awsSourceDiskDetails!, + if (createTime != null) 'createTime': createTime!, + if (errors != null) 'errors': errors!, + if (name != null) 'name': name!, + if (state != null) 'state': state!, + if (steps != null) 'steps': steps!, + if (targetDetails != null) 'targetDetails': targetDetails!, + if (updateTime != null) 'updateTime': updateTime!, + }; +} + +/// Details of the target disk in Compute Engine. +class DiskMigrationJobTargetDetails { + /// The encryption to apply to the disk. + /// + /// If the DiskMigrationJob parent Source resource has an encryption, this + /// field must be set to the same encryption key. + /// + /// Optional. + Encryption? encryption; + + /// A map of labels to associate with the disk. + /// + /// Optional. + core.Map? labels; + + /// The target disk. + /// + /// Required. + ComputeEngineDisk? targetDisk; + + /// The name of the resource of type TargetProject which represents the + /// Compute Engine project in which to create the disk. + /// + /// Should be of the form: + /// projects/{project}/locations/global/targetProjects/{target-project} + /// + /// Required. + core.String? targetProject; + + DiskMigrationJobTargetDetails({ + this.encryption, + this.labels, + this.targetDisk, + this.targetProject, + }); + + DiskMigrationJobTargetDetails.fromJson(core.Map json_) + : this( + encryption: + json_.containsKey('encryption') + ? Encryption.fromJson( + json_['encryption'] as core.Map, + ) + : null, + labels: (json_['labels'] as core.Map?)?.map( + (key, value) => core.MapEntry(key, value as core.String), + ), + targetDisk: + json_.containsKey('targetDisk') + ? ComputeEngineDisk.fromJson( + json_['targetDisk'] as core.Map, + ) + : null, + targetProject: json_['targetProject'] as core.String?, + ); + + core.Map toJson() => { + if (encryption != null) 'encryption': encryption!, + if (labels != null) 'labels': labels!, + if (targetDisk != null) 'targetDisk': targetDisk!, + if (targetProject != null) 'targetProject': targetProject!, + }; +} + +/// DiskMigrationStep holds information about the disk migration step progress. +class DiskMigrationStep { + /// Copying source disk snapshot step. + CopyingSourceDiskSnapshotStep? copyingSourceDiskSnapshot; + + /// Creating source disk snapshot step. + CreatingSourceDiskSnapshotStep? creatingSourceDiskSnapshot; + + /// The time the step has ended. + /// + /// Output only. + core.String? endTime; + + /// Creating target disk step. + ProvisioningTargetDiskStep? provisioningTargetDisk; + + /// The time the step has started. + /// + /// Output only. + core.String? startTime; + + DiskMigrationStep({ + this.copyingSourceDiskSnapshot, + this.creatingSourceDiskSnapshot, + this.endTime, + this.provisioningTargetDisk, + this.startTime, + }); + + DiskMigrationStep.fromJson(core.Map json_) + : this( + copyingSourceDiskSnapshot: + json_.containsKey('copyingSourceDiskSnapshot') + ? CopyingSourceDiskSnapshotStep.fromJson( + json_['copyingSourceDiskSnapshot'] + as core.Map, + ) + : null, + creatingSourceDiskSnapshot: + json_.containsKey('creatingSourceDiskSnapshot') + ? CreatingSourceDiskSnapshotStep.fromJson( + json_['creatingSourceDiskSnapshot'] + as core.Map, + ) + : null, + endTime: json_['endTime'] as core.String?, + provisioningTargetDisk: + json_.containsKey('provisioningTargetDisk') + ? ProvisioningTargetDiskStep.fromJson( + json_['provisioningTargetDisk'] + as core.Map, + ) + : null, + startTime: json_['startTime'] as core.String?, + ); + + core.Map toJson() => { + if (copyingSourceDiskSnapshot != null) + 'copyingSourceDiskSnapshot': copyingSourceDiskSnapshot!, + if (creatingSourceDiskSnapshot != null) + 'creatingSourceDiskSnapshot': creatingSourceDiskSnapshot!, + if (endTime != null) 'endTime': endTime!, + if (provisioningTargetDisk != null) + 'provisioningTargetDisk': provisioningTargetDisk!, + if (startTime != null) 'startTime': startTime!, + }; +} + /// Details for a disk only migration. typedef DisksMigrationDisksTargetDefaults = $Empty; @@ -6188,6 +7043,51 @@ class FetchInventoryResponse { }; } +/// Response message for fetchStorageInventory. +class FetchStorageInventoryResponse { + /// A token, which can be sent as `page_token` to retrieve the next page. + /// + /// If this field is omitted, there are no subsequent pages. + /// + /// Output only. + core.String? nextPageToken; + + /// The list of storage resources in the source. + core.List? resources; + + /// The timestamp when the source was last queried (if the result is from the + /// cache). + /// + /// Output only. + core.String? updateTime; + + FetchStorageInventoryResponse({ + this.nextPageToken, + this.resources, + this.updateTime, + }); + + FetchStorageInventoryResponse.fromJson(core.Map json_) + : this( + nextPageToken: json_['nextPageToken'] as core.String?, + resources: + (json_['resources'] as core.List?) + ?.map( + (value) => SourceStorageResource.fromJson( + value as core.Map, + ), + ) + .toList(), + updateTime: json_['updateTime'] as core.String?, + ); + + core.Map toJson() => { + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + if (resources != null) 'resources': resources!, + if (updateTime != null) 'updateTime': updateTime!, + }; +} + /// Request message for 'FinalizeMigration' request. typedef FinalizeMigrationRequest = $Empty; @@ -6511,6 +7411,11 @@ class ImageImportJob { /// Parameters affecting the OS adaptation process. class ImageImportOsAdaptationParameters { + /// Modifiers to be used as configuration of the OS adaptation process. + /// + /// Optional. + core.List? adaptationModifiers; + /// By default the image will keep its existing boot option. /// /// Setting this property will trigger an internal process which will convert @@ -6547,6 +7452,7 @@ class ImageImportOsAdaptationParameters { core.String? licenseType; ImageImportOsAdaptationParameters({ + this.adaptationModifiers, this.bootConversion, this.generalize, this.licenseType, @@ -6554,12 +7460,22 @@ class ImageImportOsAdaptationParameters { ImageImportOsAdaptationParameters.fromJson(core.Map json_) : this( + adaptationModifiers: + (json_['adaptationModifiers'] as core.List?) + ?.map( + (value) => AdaptationModifier.fromJson( + value as core.Map, + ), + ) + .toList(), bootConversion: json_['bootConversion'] as core.String?, generalize: json_['generalize'] as core.bool?, licenseType: json_['licenseType'] as core.String?, ); core.Map toJson() => { + if (adaptationModifiers != null) + 'adaptationModifiers': adaptationModifiers!, if (bootConversion != null) 'bootConversion': bootConversion!, if (generalize != null) 'generalize': generalize!, if (licenseType != null) 'licenseType': licenseType!, @@ -6796,6 +7712,55 @@ class ListDatacenterConnectorsResponse { }; } +/// Response message for 'ListDiskMigrationJobs' request. +class ListDiskMigrationJobsResponse { + /// The list of the disk migration jobs. + /// + /// Output only. + core.List? diskMigrationJobs; + + /// A token, which can be sent as `page_token` to retrieve the next page. + /// + /// If this field is omitted, there are no subsequent pages. + /// + /// Optional. Output only. + core.String? nextPageToken; + + /// Locations that could not be reached. + /// + /// Output only. + core.List? unreachable; + + ListDiskMigrationJobsResponse({ + this.diskMigrationJobs, + this.nextPageToken, + this.unreachable, + }); + + ListDiskMigrationJobsResponse.fromJson(core.Map json_) + : this( + diskMigrationJobs: + (json_['diskMigrationJobs'] as core.List?) + ?.map( + (value) => DiskMigrationJob.fromJson( + value as core.Map, + ), + ) + .toList(), + nextPageToken: json_['nextPageToken'] as core.String?, + unreachable: + (json_['unreachable'] as core.List?) + ?.map((value) => value as core.String) + .toList(), + ); + + core.Map toJson() => { + if (diskMigrationJobs != null) 'diskMigrationJobs': diskMigrationJobs!, + if (nextPageToken != null) 'nextPageToken': nextPageToken!, + if (unreachable != null) 'unreachable': unreachable!, + }; +} + /// Response message for 'ListGroups' request. class ListGroupsResponse { /// The list of groups response. @@ -8189,6 +9154,9 @@ typedef PostProcessingStep = $Empty; /// PreparingVMDisksStep contains specific step details. typedef PreparingVMDisksStep = $Empty; +/// ProvisioningTargetDiskStep contains specific step details. +typedef ProvisioningTargetDiskStep = $Empty; + /// Request message for 'RemoveMigration' request. class RemoveGroupMigrationRequest { /// The MigratingVm to remove. @@ -8379,6 +9347,9 @@ class ReplicationSync { /// Request message for 'ResumeMigration' request. typedef ResumeMigrationRequest = $Empty; +/// Request message for 'RunDiskMigrationJobRequest' request. +typedef RunDiskMigrationJobRequest = $Empty; + /// A policy for scheduling replications. class SchedulePolicy { /// The idle duration between replication stages. @@ -8635,6 +9606,29 @@ class Source { }; } +/// SourceStorageResource describes a storage resource in the source. +class SourceStorageResource { + /// Source AWS volume details. + AwsSourceDiskDetails? awsDiskDetails; + + SourceStorageResource({this.awsDiskDetails}); + + SourceStorageResource.fromJson(core.Map json_) + : this( + awsDiskDetails: + json_.containsKey('awsDiskDetails') + ? AwsSourceDiskDetails.fromJson( + json_['awsDiskDetails'] + as core.Map, + ) + : null, + ); + + core.Map toJson() => { + if (awsDiskDetails != null) 'awsDiskDetails': awsDiskDetails!, + }; +} + /// Request message for 'StartMigrationRequest' request. typedef StartMigrationRequest = $Empty; diff --git a/generated/googleapis/lib/vmwareengine/v1.dart b/generated/googleapis/lib/vmwareengine/v1.dart index 896c9d095..1d5215062 100644 --- a/generated/googleapis/lib/vmwareengine/v1.dart +++ b/generated/googleapis/lib/vmwareengine/v1.dart @@ -2316,6 +2316,54 @@ class ProjectsLocationsPrivateCloudsResource { return Operation.fromJson(response_ as core.Map); } + /// Accelerates the deletion of a private cloud that is currently in soft + /// deletion A `PrivateCloud` resource in soft deletion has + /// `PrivateCloud.state` set to `SOFT_DELETED` and `PrivateCloud.expireTime` + /// set to the time when deletion can no longer be reversed. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Required. The resource name of the private cloud in softdeletion. + /// Resource names are schemeless URIs that follow the conventions in + /// https://cloud.google.com/apis/design/resource_names. For example: + /// `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + /// Value must have pattern + /// `^projects/\[^/\]+/locations/\[^/\]+/privateClouds/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future privateCloudDeletionNow( + AcceleratePrivateCloudDeletionRequest request, + core.String name, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'v1/' + core.Uri.encodeFull('$name') + ':privateCloudDeletionNow'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return Operation.fromJson(response_ as core.Map); + } + /// Resets credentials of the NSX appliance. /// /// [request] - The metadata request object. @@ -5729,6 +5777,38 @@ class ProjectsLocationsVmwareEngineNetworksResource { } } +/// Request message for VmwareEngine.AcceleratePrivateCloudDeletion +class AcceleratePrivateCloudDeletionRequest { + /// Checksum used to ensure that the user-provided value is up to date before + /// the server processes the request. + /// + /// The server compares provided checksum with the current checksum of the + /// resource. If the user-provided value is out of date, this request returns + /// an `ABORTED` error. + /// + /// Optional. + core.String? etag; + + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// Optional. + core.String? requestId; + + AcceleratePrivateCloudDeletionRequest({this.etag, this.requestId}); + + AcceleratePrivateCloudDeletionRequest.fromJson(core.Map json_) + : this( + etag: json_['etag'] as core.String?, + requestId: json_['requestId'] as core.String?, + ); + + core.Map toJson() => { + if (etag != null) 'etag': etag!, + if (requestId != null) 'requestId': requestId!, + }; +} + /// Announcement for the resources of Vmware Engine. class Announcement { /// Activity type of the announcement There can be only one active diff --git a/generated/googleapis/lib/vpcaccess/v1.dart b/generated/googleapis/lib/vpcaccess/v1.dart index bec6c461a..a5e2cfb79 100644 --- a/generated/googleapis/lib/vpcaccess/v1.dart +++ b/generated/googleapis/lib/vpcaccess/v1.dart @@ -89,9 +89,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/walletobjects/v1.dart b/generated/googleapis/lib/walletobjects/v1.dart index 3927ef4ac..28cde7b6f 100644 --- a/generated/googleapis/lib/walletobjects/v1.dart +++ b/generated/googleapis/lib/walletobjects/v1.dart @@ -11476,10 +11476,24 @@ class Image { ) core.String? kind; - /// The URI for the image. + /// An ID for an already uploaded private image. + /// + /// Either this or source_uri should be set. Requests setting both or neither + /// will be rejected. Please contact support to use private images. + core.String? privateImageId; + + /// A URI for the image. + /// + /// Either this or private_image_id should be set. Requests setting both or + /// neither will be rejected. ImageUri? sourceUri; - Image({this.contentDescription, this.kind, this.sourceUri}); + Image({ + this.contentDescription, + this.kind, + this.privateImageId, + this.sourceUri, + }); Image.fromJson(core.Map json_) : this( @@ -11491,6 +11505,7 @@ class Image { ) : null, kind: json_['kind'] as core.String?, + privateImageId: json_['privateImageId'] as core.String?, sourceUri: json_.containsKey('sourceUri') ? ImageUri.fromJson( @@ -11502,6 +11517,7 @@ class Image { core.Map toJson() => { if (contentDescription != null) 'contentDescription': contentDescription!, if (kind != null) 'kind': kind!, + if (privateImageId != null) 'privateImageId': privateImageId!, if (sourceUri != null) 'sourceUri': sourceUri!, }; } @@ -13878,6 +13894,21 @@ class MediaRequestInfo { /// need to contain anything. core.String? notificationType; + /// The physical headers provided by RequestReceivedParameters in Scotty + /// request. + /// + /// type is uploader_service.KeyValuePairs. + core.String? physicalHeaders; + core.List get physicalHeadersAsBytes => + convert.base64.decode(physicalHeaders!); + + set physicalHeadersAsBytes(core.List bytes_) { + physicalHeaders = convert.base64 + .encode(bytes_) + .replaceAll('/', '_') + .replaceAll('+', '-'); + } + /// The Scotty request ID. core.String? requestId; @@ -13909,6 +13940,7 @@ class MediaRequestInfo { this.diffObjectVersion, this.finalStatus, this.notificationType, + this.physicalHeaders, this.requestId, this.requestReceivedParamsServingInfo, this.totalBytes, @@ -13922,6 +13954,7 @@ class MediaRequestInfo { diffObjectVersion: json_['diffObjectVersion'] as core.String?, finalStatus: json_['finalStatus'] as core.int?, notificationType: json_['notificationType'] as core.String?, + physicalHeaders: json_['physicalHeaders'] as core.String?, requestId: json_['requestId'] as core.String?, requestReceivedParamsServingInfo: json_['requestReceivedParamsServingInfo'] as core.String?, @@ -13935,6 +13968,7 @@ class MediaRequestInfo { if (diffObjectVersion != null) 'diffObjectVersion': diffObjectVersion!, if (finalStatus != null) 'finalStatus': finalStatus!, if (notificationType != null) 'notificationType': notificationType!, + if (physicalHeaders != null) 'physicalHeaders': physicalHeaders!, if (requestId != null) 'requestId': requestId!, if (requestReceivedParamsServingInfo != null) 'requestReceivedParamsServingInfo': requestReceivedParamsServingInfo!, diff --git a/generated/googleapis/lib/workflows/v1.dart b/generated/googleapis/lib/workflows/v1.dart index 60dd83333..c66b1988c 100644 --- a/generated/googleapis/lib/workflows/v1.dart +++ b/generated/googleapis/lib/workflows/v1.dart @@ -124,9 +124,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/lib/workloadmanager/v1.dart b/generated/googleapis/lib/workloadmanager/v1.dart index 81028c517..ab677036c 100644 --- a/generated/googleapis/lib/workloadmanager/v1.dart +++ b/generated/googleapis/lib/workloadmanager/v1.dart @@ -136,9 +136,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -1181,22 +1181,77 @@ class AgentStates { /// Optional. core.String? availableVersion; + /// HANA monitoring metrics of the agent. + /// + /// Optional. + ServiceStates? hanaMonitoring; + /// The installed version of the agent on the host. /// /// Optional. core.String? installedVersion; - AgentStates({this.availableVersion, this.installedVersion}); + /// Whether the agent is fully enabled. + /// + /// If false, the agent is has some issues. + /// + /// Optional. + core.bool? isFullyEnabled; + + /// The Process metrics of the agent. + /// + /// Optional. + ServiceStates? processMetrics; + + /// The System discovery metrics of the agent. + /// + /// Optional. + ServiceStates? systemDiscovery; + + AgentStates({ + this.availableVersion, + this.hanaMonitoring, + this.installedVersion, + this.isFullyEnabled, + this.processMetrics, + this.systemDiscovery, + }); AgentStates.fromJson(core.Map json_) : this( availableVersion: json_['availableVersion'] as core.String?, + hanaMonitoring: + json_.containsKey('hanaMonitoring') + ? ServiceStates.fromJson( + json_['hanaMonitoring'] + as core.Map, + ) + : null, installedVersion: json_['installedVersion'] as core.String?, + isFullyEnabled: json_['isFullyEnabled'] as core.bool?, + processMetrics: + json_.containsKey('processMetrics') + ? ServiceStates.fromJson( + json_['processMetrics'] + as core.Map, + ) + : null, + systemDiscovery: + json_.containsKey('systemDiscovery') + ? ServiceStates.fromJson( + json_['systemDiscovery'] + as core.Map, + ) + : null, ); core.Map toJson() => { if (availableVersion != null) 'availableVersion': availableVersion!, + if (hanaMonitoring != null) 'hanaMonitoring': hanaMonitoring!, if (installedVersion != null) 'installedVersion': installedVersion!, + if (isFullyEnabled != null) 'isFullyEnabled': isFullyEnabled!, + if (processMetrics != null) 'processMetrics': processMetrics!, + if (systemDiscovery != null) 'systemDiscovery': systemDiscovery!, }; } @@ -1643,7 +1698,7 @@ class CloudResource { /// Output only. InstanceProperties? instanceProperties; - /// ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc. + /// /// /// Output only. /// Possible string values are: @@ -1661,7 +1716,8 @@ class CloudResource { /// - "RESOURCE_KIND_INSTANCE_GROUP" : This is a compute instance group. core.String? kind; - /// resource name + /// resource name Example: + /// compute.googleapis.com/projects/wlm-obs-dev/zones/us-central1-a/instances/sap-pri /// /// Output only. core.String? name; @@ -1923,6 +1979,15 @@ class Execution { /// Output only. core.String? endTime; + /// Engine + /// + /// Optional. + /// Possible string values are: + /// - "ENGINE_UNSPECIFIED" : The original CG + /// - "ENGINE_SCANNER" : SlimCG / Scanner + /// - "V2" : Evaluation Engine V2 + core.String? engine; + /// Evaluation ID /// /// Output only. @@ -1987,6 +2052,7 @@ class Execution { Execution({ this.endTime, + this.engine, this.evaluationId, this.externalDataSources, this.inventoryTime, @@ -2003,6 +2069,7 @@ class Execution { Execution.fromJson(core.Map json_) : this( endTime: json_['endTime'] as core.String?, + engine: json_['engine'] as core.String?, evaluationId: json_['evaluationId'] as core.String?, externalDataSources: (json_['externalDataSources'] as core.List?) @@ -2046,6 +2113,7 @@ class Execution { core.Map toJson() => { if (endTime != null) 'endTime': endTime!, + if (engine != null) 'engine': engine!, if (evaluationId != null) 'evaluationId': evaluationId!, if (externalDataSources != null) 'externalDataSources': externalDataSources!, @@ -2214,6 +2282,32 @@ class GceInstanceFilter { }; } +/// The IAM permission status. +class IAMPermission { + /// Whether the permission is granted. + /// + /// Output only. + core.bool? granted; + + /// The name of the permission. + /// + /// Output only. + core.String? name; + + IAMPermission({this.granted, this.name}); + + IAMPermission.fromJson(core.Map json_) + : this( + granted: json_['granted'] as core.bool?, + name: json_['name'] as core.String?, + ); + + core.Map toJson() => { + if (granted != null) 'granted': granted!, + if (name != null) 'name': name!, + }; +} + /// A presentation of host resource usage where the workload runs. class Insight { /// The insights data for the agent status. @@ -2221,7 +2315,7 @@ class Insight { /// The instance id where the insight is generated from /// - /// Required. + /// Optional. core.String? instanceId; /// The insights data for SAP system discovery. @@ -2892,6 +2986,13 @@ class Rule { /// Output only. core.String? revisionId; + /// The type of the rule. + /// Possible string values are: + /// - "RULE_TYPE_UNSPECIFIED" : Not specified. + /// - "BASELINE" : Baseline rules + /// - "CUSTOM" : Custom rules + core.String? ruleType; + /// the secondary category core.String? secondaryCategory; @@ -2912,6 +3013,7 @@ class Rule { this.primaryCategory, this.remediation, this.revisionId, + this.ruleType, this.secondaryCategory, this.severity, this.tags, @@ -2927,6 +3029,7 @@ class Rule { primaryCategory: json_['primaryCategory'] as core.String?, remediation: json_['remediation'] as core.String?, revisionId: json_['revisionId'] as core.String?, + ruleType: json_['ruleType'] as core.String?, secondaryCategory: json_['secondaryCategory'] as core.String?, severity: json_['severity'] as core.String?, tags: @@ -2944,6 +3047,7 @@ class Rule { if (primaryCategory != null) 'primaryCategory': primaryCategory!, if (remediation != null) 'remediation': remediation!, if (revisionId != null) 'revisionId': revisionId!, + if (ruleType != null) 'ruleType': ruleType!, if (secondaryCategory != null) 'secondaryCategory': secondaryCategory!, if (severity != null) 'severity': severity!, if (tags != null) 'tags': tags!, @@ -4319,6 +4423,47 @@ class ScannedResource { }; } +/// The state of the service. +class ServiceStates { + /// The IAM permissions for the service. + /// + /// Optional. Output only. + core.List? iamPermissions; + + /// The overall state of the service. + /// + /// Output only. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : The state is unspecified. + /// - "CONFIG_FAILURE" : The state means the service has config errors. + /// - "IAM_FAILURE" : The state means the service has IAM permission errors. + /// - "FUNCTIONALITY_FAILURE" : The state means the service has functionality + /// errors. + /// - "ENABLED" : The state means the service has no error. + /// - "DISABLED" : The state means the service disabled. + core.String? state; + + ServiceStates({this.iamPermissions, this.state}); + + ServiceStates.fromJson(core.Map json_) + : this( + iamPermissions: + (json_['iamPermissions'] as core.List?) + ?.map( + (value) => IAMPermission.fromJson( + value as core.Map, + ), + ) + .toList(), + state: json_['state'] as core.String?, + ); + + core.Map toJson() => { + if (iamPermissions != null) 'iamPermissions': iamPermissions!, + if (state != null) 'state': state!, + }; +} + /// * A ShellCommand is invoked via the agent's command line executor class ShellCommand { /// args is a string of arguments to be passed to the command. @@ -4525,7 +4670,7 @@ class TorsoValidation { /// instance_name lists the human readable name of the instance that the data /// comes from. /// - /// Required. + /// Optional. core.String? instanceName; /// project_id lists the human readable cloud project that the data comes diff --git a/generated/googleapis/lib/workstations/v1.dart b/generated/googleapis/lib/workstations/v1.dart index 408641911..94a3fa156 100644 --- a/generated/googleapis/lib/workstations/v1.dart +++ b/generated/googleapis/lib/workstations/v1.dart @@ -123,9 +123,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis/pubspec.yaml b/generated/googleapis/pubspec.yaml index b915facad..eee08bc51 100644 --- a/generated/googleapis/pubspec.yaml +++ b/generated/googleapis/pubspec.yaml @@ -1,5 +1,5 @@ name: googleapis -version: 14.1.0-wip +version: 15.0.0 description: Auto-generated client libraries for accessing Google APIs described through the API discovery service. repository: https://github.com/google/googleapis.dart/tree/master/generated/googleapis resolution: workspace diff --git a/generated/googleapis/test/admin/directory_v1_test.dart b/generated/googleapis/test/admin/directory_v1_test.dart index 14b10fef2..41c01aaa1 100644 --- a/generated/googleapis/test/admin/directory_v1_test.dart +++ b/generated/googleapis/test/admin/directory_v1_test.dart @@ -1477,6 +1477,7 @@ api.ChromeOsDevice buildChromeOsDevice() { o.orgUnitPath = 'foo'; o.osUpdateStatus = buildOsUpdateStatus(); o.osVersion = 'foo'; + o.osVersionCompliance = 'foo'; o.platformVersion = 'foo'; o.recentUsers = buildUnnamed34(); o.screenshotFiles = buildUnnamed35(); @@ -1543,6 +1544,7 @@ void checkChromeOsDevice(api.ChromeOsDevice o) { unittest.expect(o.orgUnitPath!, unittest.equals('foo')); checkOsUpdateStatus(o.osUpdateStatus!); unittest.expect(o.osVersion!, unittest.equals('foo')); + unittest.expect(o.osVersionCompliance!, unittest.equals('foo')); unittest.expect(o.platformVersion!, unittest.equals('foo')); checkUnnamed34(o.recentUsers!); checkUnnamed35(o.screenshotFiles!); diff --git a/generated/googleapis/test/aiplatform/v1_test.dart b/generated/googleapis/test/aiplatform/v1_test.dart index 23cf88179..a162d78ca 100644 --- a/generated/googleapis/test/aiplatform/v1_test.dart +++ b/generated/googleapis/test/aiplatform/v1_test.dart @@ -1763,6 +1763,74 @@ void checkGoogleCloudAiplatformV1BigQueryDestination( buildCounterGoogleCloudAiplatformV1BigQueryDestination--; } +core.Map buildUnnamed30() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed30(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1BigQueryRequestSet = 0; +api.GoogleCloudAiplatformV1BigQueryRequestSet +buildGoogleCloudAiplatformV1BigQueryRequestSet() { + final o = api.GoogleCloudAiplatformV1BigQueryRequestSet(); + buildCounterGoogleCloudAiplatformV1BigQueryRequestSet++; + if (buildCounterGoogleCloudAiplatformV1BigQueryRequestSet < 3) { + o.candidateResponseColumns = buildUnnamed30(); + o.promptColumn = 'foo'; + o.rubricsColumn = 'foo'; + o.samplingConfig = + buildGoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig(); + o.uri = 'foo'; + } + buildCounterGoogleCloudAiplatformV1BigQueryRequestSet--; + return o; +} + +void checkGoogleCloudAiplatformV1BigQueryRequestSet( + api.GoogleCloudAiplatformV1BigQueryRequestSet o, +) { + buildCounterGoogleCloudAiplatformV1BigQueryRequestSet++; + if (buildCounterGoogleCloudAiplatformV1BigQueryRequestSet < 3) { + checkUnnamed30(o.candidateResponseColumns!); + unittest.expect(o.promptColumn!, unittest.equals('foo')); + unittest.expect(o.rubricsColumn!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig( + o.samplingConfig!, + ); + unittest.expect(o.uri!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1BigQueryRequestSet--; +} + +core.int buildCounterGoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig = + 0; +api.GoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig +buildGoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig() { + final o = api.GoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig(); + buildCounterGoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig++; + if (buildCounterGoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig < 3) { + o.samplingCount = 42; + o.samplingDuration = 'foo'; + o.samplingMethod = 'foo'; + } + buildCounterGoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig--; + return o; +} + +void checkGoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig( + api.GoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig o, +) { + buildCounterGoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig++; + if (buildCounterGoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig < 3) { + unittest.expect(o.samplingCount!, unittest.equals(42)); + unittest.expect(o.samplingDuration!, unittest.equals('foo')); + unittest.expect(o.samplingMethod!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig--; +} + core.int buildCounterGoogleCloudAiplatformV1BigQuerySource = 0; api.GoogleCloudAiplatformV1BigQuerySource buildGoogleCloudAiplatformV1BigQuerySource() { @@ -1785,12 +1853,12 @@ void checkGoogleCloudAiplatformV1BigQuerySource( buildCounterGoogleCloudAiplatformV1BigQuerySource--; } -core.List buildUnnamed30() => [ +core.List buildUnnamed31() => [ buildGoogleCloudAiplatformV1BleuInstance(), buildGoogleCloudAiplatformV1BleuInstance(), ]; -void checkUnnamed30(core.List o) { +void checkUnnamed31(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1BleuInstance(o[0]); checkGoogleCloudAiplatformV1BleuInstance(o[1]); @@ -1801,7 +1869,7 @@ api.GoogleCloudAiplatformV1BleuInput buildGoogleCloudAiplatformV1BleuInput() { final o = api.GoogleCloudAiplatformV1BleuInput(); buildCounterGoogleCloudAiplatformV1BleuInput++; if (buildCounterGoogleCloudAiplatformV1BleuInput < 3) { - o.instances = buildUnnamed30(); + o.instances = buildUnnamed31(); o.metricSpec = buildGoogleCloudAiplatformV1BleuSpec(); } buildCounterGoogleCloudAiplatformV1BleuInput--; @@ -1813,7 +1881,7 @@ void checkGoogleCloudAiplatformV1BleuInput( ) { buildCounterGoogleCloudAiplatformV1BleuInput++; if (buildCounterGoogleCloudAiplatformV1BleuInput < 3) { - checkUnnamed30(o.instances!); + checkUnnamed31(o.instances!); checkGoogleCloudAiplatformV1BleuSpec(o.metricSpec!); } buildCounterGoogleCloudAiplatformV1BleuInput--; @@ -1865,12 +1933,12 @@ void checkGoogleCloudAiplatformV1BleuMetricValue( buildCounterGoogleCloudAiplatformV1BleuMetricValue--; } -core.List buildUnnamed31() => [ +core.List buildUnnamed32() => [ buildGoogleCloudAiplatformV1BleuMetricValue(), buildGoogleCloudAiplatformV1BleuMetricValue(), ]; -void checkUnnamed31(core.List o) { +void checkUnnamed32(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1BleuMetricValue(o[0]); checkGoogleCloudAiplatformV1BleuMetricValue(o[1]); @@ -1882,7 +1950,7 @@ buildGoogleCloudAiplatformV1BleuResults() { final o = api.GoogleCloudAiplatformV1BleuResults(); buildCounterGoogleCloudAiplatformV1BleuResults++; if (buildCounterGoogleCloudAiplatformV1BleuResults < 3) { - o.bleuMetricValues = buildUnnamed31(); + o.bleuMetricValues = buildUnnamed32(); } buildCounterGoogleCloudAiplatformV1BleuResults--; return o; @@ -1893,7 +1961,7 @@ void checkGoogleCloudAiplatformV1BleuResults( ) { buildCounterGoogleCloudAiplatformV1BleuResults++; if (buildCounterGoogleCloudAiplatformV1BleuResults < 3) { - checkUnnamed31(o.bleuMetricValues!); + checkUnnamed32(o.bleuMetricValues!); } buildCounterGoogleCloudAiplatformV1BleuResults--; } @@ -1964,9 +2032,9 @@ void checkGoogleCloudAiplatformV1BlurBaselineConfig( buildCounterGoogleCloudAiplatformV1BlurBaselineConfig--; } -core.List buildUnnamed32() => [true, true]; +core.List buildUnnamed33() => [true, true]; -void checkUnnamed32(core.List o) { +void checkUnnamed33(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.isTrue); unittest.expect(o[1], unittest.isTrue); @@ -1977,7 +2045,7 @@ api.GoogleCloudAiplatformV1BoolArray buildGoogleCloudAiplatformV1BoolArray() { final o = api.GoogleCloudAiplatformV1BoolArray(); buildCounterGoogleCloudAiplatformV1BoolArray++; if (buildCounterGoogleCloudAiplatformV1BoolArray < 3) { - o.values = buildUnnamed32(); + o.values = buildUnnamed33(); } buildCounterGoogleCloudAiplatformV1BoolArray--; return o; @@ -1988,7 +2056,7 @@ void checkGoogleCloudAiplatformV1BoolArray( ) { buildCounterGoogleCloudAiplatformV1BoolArray++; if (buildCounterGoogleCloudAiplatformV1BoolArray < 3) { - checkUnnamed32(o.values!); + checkUnnamed33(o.values!); } buildCounterGoogleCloudAiplatformV1BoolArray--; } @@ -2017,23 +2085,23 @@ void checkGoogleCloudAiplatformV1CacheConfig( buildCounterGoogleCloudAiplatformV1CacheConfig--; } -core.List buildUnnamed33() => [ +core.List buildUnnamed34() => [ buildGoogleCloudAiplatformV1Content(), buildGoogleCloudAiplatformV1Content(), ]; -void checkUnnamed33(core.List o) { +void checkUnnamed34(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1Content(o[0]); checkGoogleCloudAiplatformV1Content(o[1]); } -core.List buildUnnamed34() => [ +core.List buildUnnamed35() => [ buildGoogleCloudAiplatformV1Tool(), buildGoogleCloudAiplatformV1Tool(), ]; -void checkUnnamed34(core.List o) { +void checkUnnamed35(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1Tool(o[0]); checkGoogleCloudAiplatformV1Tool(o[1]); @@ -2045,7 +2113,7 @@ buildGoogleCloudAiplatformV1CachedContent() { final o = api.GoogleCloudAiplatformV1CachedContent(); buildCounterGoogleCloudAiplatformV1CachedContent++; if (buildCounterGoogleCloudAiplatformV1CachedContent < 3) { - o.contents = buildUnnamed33(); + o.contents = buildUnnamed34(); o.createTime = 'foo'; o.displayName = 'foo'; o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); @@ -2054,7 +2122,7 @@ buildGoogleCloudAiplatformV1CachedContent() { o.name = 'foo'; o.systemInstruction = buildGoogleCloudAiplatformV1Content(); o.toolConfig = buildGoogleCloudAiplatformV1ToolConfig(); - o.tools = buildUnnamed34(); + o.tools = buildUnnamed35(); o.ttl = 'foo'; o.updateTime = 'foo'; o.usageMetadata = buildGoogleCloudAiplatformV1CachedContentUsageMetadata(); @@ -2068,7 +2136,7 @@ void checkGoogleCloudAiplatformV1CachedContent( ) { buildCounterGoogleCloudAiplatformV1CachedContent++; if (buildCounterGoogleCloudAiplatformV1CachedContent < 3) { - checkUnnamed33(o.contents!); + checkUnnamed34(o.contents!); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); @@ -2077,7 +2145,7 @@ void checkGoogleCloudAiplatformV1CachedContent( unittest.expect(o.name!, unittest.equals('foo')); checkGoogleCloudAiplatformV1Content(o.systemInstruction!); checkGoogleCloudAiplatformV1ToolConfig(o.toolConfig!); - checkUnnamed34(o.tools!); + checkUnnamed35(o.tools!); unittest.expect(o.ttl!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); checkGoogleCloudAiplatformV1CachedContentUsageMetadata(o.usageMetadata!); @@ -2169,6 +2237,24 @@ void checkGoogleCloudAiplatformV1CancelDataLabelingJobRequest( buildCounterGoogleCloudAiplatformV1CancelDataLabelingJobRequest--; } +core.int buildCounterGoogleCloudAiplatformV1CancelEvaluationRunRequest = 0; +api.GoogleCloudAiplatformV1CancelEvaluationRunRequest +buildGoogleCloudAiplatformV1CancelEvaluationRunRequest() { + final o = api.GoogleCloudAiplatformV1CancelEvaluationRunRequest(); + buildCounterGoogleCloudAiplatformV1CancelEvaluationRunRequest++; + if (buildCounterGoogleCloudAiplatformV1CancelEvaluationRunRequest < 3) {} + buildCounterGoogleCloudAiplatformV1CancelEvaluationRunRequest--; + return o; +} + +void checkGoogleCloudAiplatformV1CancelEvaluationRunRequest( + api.GoogleCloudAiplatformV1CancelEvaluationRunRequest o, +) { + buildCounterGoogleCloudAiplatformV1CancelEvaluationRunRequest++; + if (buildCounterGoogleCloudAiplatformV1CancelEvaluationRunRequest < 3) {} + buildCounterGoogleCloudAiplatformV1CancelEvaluationRunRequest--; +} + core.int buildCounterGoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest = 0; api.GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest @@ -2262,12 +2348,12 @@ void checkGoogleCloudAiplatformV1CancelTuningJobRequest( buildCounterGoogleCloudAiplatformV1CancelTuningJobRequest--; } -core.List buildUnnamed35() => [ +core.List buildUnnamed36() => [ buildGoogleCloudAiplatformV1SafetyRating(), buildGoogleCloudAiplatformV1SafetyRating(), ]; -void checkUnnamed35(core.List o) { +void checkUnnamed36(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1SafetyRating(o[0]); checkGoogleCloudAiplatformV1SafetyRating(o[1]); @@ -2286,7 +2372,7 @@ api.GoogleCloudAiplatformV1Candidate buildGoogleCloudAiplatformV1Candidate() { o.groundingMetadata = buildGoogleCloudAiplatformV1GroundingMetadata(); o.index = 42; o.logprobsResult = buildGoogleCloudAiplatformV1LogprobsResult(); - o.safetyRatings = buildUnnamed35(); + o.safetyRatings = buildUnnamed36(); o.urlContextMetadata = buildGoogleCloudAiplatformV1UrlContextMetadata(); } buildCounterGoogleCloudAiplatformV1Candidate--; @@ -2306,12 +2392,97 @@ void checkGoogleCloudAiplatformV1Candidate( checkGoogleCloudAiplatformV1GroundingMetadata(o.groundingMetadata!); unittest.expect(o.index!, unittest.equals(42)); checkGoogleCloudAiplatformV1LogprobsResult(o.logprobsResult!); - checkUnnamed35(o.safetyRatings!); + checkUnnamed36(o.safetyRatings!); checkGoogleCloudAiplatformV1UrlContextMetadata(o.urlContextMetadata!); } buildCounterGoogleCloudAiplatformV1Candidate--; } +core.int buildCounterGoogleCloudAiplatformV1CandidateResponse = 0; +api.GoogleCloudAiplatformV1CandidateResponse +buildGoogleCloudAiplatformV1CandidateResponse() { + final o = api.GoogleCloudAiplatformV1CandidateResponse(); + buildCounterGoogleCloudAiplatformV1CandidateResponse++; + if (buildCounterGoogleCloudAiplatformV1CandidateResponse < 3) { + o.candidate = 'foo'; + o.text = 'foo'; + o.value = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + } + buildCounterGoogleCloudAiplatformV1CandidateResponse--; + return o; +} + +void checkGoogleCloudAiplatformV1CandidateResponse( + api.GoogleCloudAiplatformV1CandidateResponse o, +) { + buildCounterGoogleCloudAiplatformV1CandidateResponse++; + if (buildCounterGoogleCloudAiplatformV1CandidateResponse < 3) { + unittest.expect(o.candidate!, unittest.equals('foo')); + unittest.expect(o.text!, unittest.equals('foo')); + var casted8 = (o.value!) as core.Map; + unittest.expect(casted8, unittest.hasLength(3)); + unittest.expect(casted8['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted8['bool'], unittest.equals(true)); + unittest.expect(casted8['string'], unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1CandidateResponse--; +} + +core.List buildUnnamed37() => [ + buildGoogleCloudAiplatformV1RubricVerdict(), + buildGoogleCloudAiplatformV1RubricVerdict(), +]; + +void checkUnnamed37(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1RubricVerdict(o[0]); + checkGoogleCloudAiplatformV1RubricVerdict(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1CandidateResult = 0; +api.GoogleCloudAiplatformV1CandidateResult +buildGoogleCloudAiplatformV1CandidateResult() { + final o = api.GoogleCloudAiplatformV1CandidateResult(); + buildCounterGoogleCloudAiplatformV1CandidateResult++; + if (buildCounterGoogleCloudAiplatformV1CandidateResult < 3) { + o.additionalResults = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.candidate = 'foo'; + o.explanation = 'foo'; + o.metric = 'foo'; + o.rubricVerdicts = buildUnnamed37(); + o.score = 42.0; + } + buildCounterGoogleCloudAiplatformV1CandidateResult--; + return o; +} + +void checkGoogleCloudAiplatformV1CandidateResult( + api.GoogleCloudAiplatformV1CandidateResult o, +) { + buildCounterGoogleCloudAiplatformV1CandidateResult++; + if (buildCounterGoogleCloudAiplatformV1CandidateResult < 3) { + var casted9 = (o.additionalResults!) as core.Map; + unittest.expect(casted9, unittest.hasLength(3)); + unittest.expect(casted9['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted9['bool'], unittest.equals(true)); + unittest.expect(casted9['string'], unittest.equals('foo')); + unittest.expect(o.candidate!, unittest.equals('foo')); + unittest.expect(o.explanation!, unittest.equals('foo')); + unittest.expect(o.metric!, unittest.equals('foo')); + checkUnnamed37(o.rubricVerdicts!); + unittest.expect(o.score!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1CandidateResult--; +} + core.int buildCounterGoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest = 0; api.GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest @@ -2389,12 +2560,12 @@ void checkGoogleCloudAiplatformV1Citation( buildCounterGoogleCloudAiplatformV1Citation--; } -core.List buildUnnamed36() => [ +core.List buildUnnamed38() => [ buildGoogleCloudAiplatformV1Citation(), buildGoogleCloudAiplatformV1Citation(), ]; -void checkUnnamed36(core.List o) { +void checkUnnamed38(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1Citation(o[0]); checkGoogleCloudAiplatformV1Citation(o[1]); @@ -2406,7 +2577,7 @@ buildGoogleCloudAiplatformV1CitationMetadata() { final o = api.GoogleCloudAiplatformV1CitationMetadata(); buildCounterGoogleCloudAiplatformV1CitationMetadata++; if (buildCounterGoogleCloudAiplatformV1CitationMetadata < 3) { - o.citations = buildUnnamed36(); + o.citations = buildUnnamed38(); } buildCounterGoogleCloudAiplatformV1CitationMetadata--; return o; @@ -2417,14 +2588,14 @@ void checkGoogleCloudAiplatformV1CitationMetadata( ) { buildCounterGoogleCloudAiplatformV1CitationMetadata++; if (buildCounterGoogleCloudAiplatformV1CitationMetadata < 3) { - checkUnnamed36(o.citations!); + checkUnnamed38(o.citations!); } buildCounterGoogleCloudAiplatformV1CitationMetadata--; } -core.List buildUnnamed37() => [42, 42]; +core.List buildUnnamed39() => [42, 42]; -void checkUnnamed37(core.List o) { +void checkUnnamed39(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -2436,7 +2607,7 @@ api.GoogleCloudAiplatformV1Claim buildGoogleCloudAiplatformV1Claim() { buildCounterGoogleCloudAiplatformV1Claim++; if (buildCounterGoogleCloudAiplatformV1Claim < 3) { o.endIndex = 42; - o.factIndexes = buildUnnamed37(); + o.factIndexes = buildUnnamed39(); o.score = 42.0; o.startIndex = 42; } @@ -2448,7 +2619,7 @@ void checkGoogleCloudAiplatformV1Claim(api.GoogleCloudAiplatformV1Claim o) { buildCounterGoogleCloudAiplatformV1Claim++; if (buildCounterGoogleCloudAiplatformV1Claim < 3) { unittest.expect(o.endIndex!, unittest.equals(42)); - checkUnnamed37(o.factIndexes!); + checkUnnamed39(o.factIndexes!); unittest.expect(o.score!, unittest.equals(42.0)); unittest.expect(o.startIndex!, unittest.equals(42)); } @@ -2768,18 +2939,18 @@ void checkGoogleCloudAiplatformV1CompletionStats( buildCounterGoogleCloudAiplatformV1CompletionStats--; } -core.List buildUnnamed38() => [ +core.List buildUnnamed40() => [ buildGoogleCloudAiplatformV1Content(), buildGoogleCloudAiplatformV1Content(), ]; -void checkUnnamed38(core.List o) { +void checkUnnamed40(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1Content(o[0]); checkGoogleCloudAiplatformV1Content(o[1]); } -core.List buildUnnamed39() => [ +core.List buildUnnamed41() => [ { 'list': [1, 2, 3], 'bool': true, @@ -2792,18 +2963,18 @@ core.List buildUnnamed39() => [ }, ]; -void checkUnnamed39(core.List o) { +void checkUnnamed41(core.List o) { unittest.expect(o, unittest.hasLength(2)); - var casted8 = (o[0]) as core.Map; - unittest.expect(casted8, unittest.hasLength(3)); - unittest.expect(casted8['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted8['bool'], unittest.equals(true)); - unittest.expect(casted8['string'], unittest.equals('foo')); - var casted9 = (o[1]) as core.Map; - unittest.expect(casted9, unittest.hasLength(3)); - unittest.expect(casted9['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted9['bool'], unittest.equals(true)); - unittest.expect(casted9['string'], unittest.equals('foo')); + var casted10 = (o[0]) as core.Map; + unittest.expect(casted10, unittest.hasLength(3)); + unittest.expect(casted10['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted10['bool'], unittest.equals(true)); + unittest.expect(casted10['string'], unittest.equals('foo')); + var casted11 = (o[1]) as core.Map; + unittest.expect(casted11, unittest.hasLength(3)); + unittest.expect(casted11['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted11['bool'], unittest.equals(true)); + unittest.expect(casted11['string'], unittest.equals('foo')); } core.int buildCounterGoogleCloudAiplatformV1ComputeTokensRequest = 0; @@ -2812,8 +2983,8 @@ buildGoogleCloudAiplatformV1ComputeTokensRequest() { final o = api.GoogleCloudAiplatformV1ComputeTokensRequest(); buildCounterGoogleCloudAiplatformV1ComputeTokensRequest++; if (buildCounterGoogleCloudAiplatformV1ComputeTokensRequest < 3) { - o.contents = buildUnnamed38(); - o.instances = buildUnnamed39(); + o.contents = buildUnnamed40(); + o.instances = buildUnnamed41(); o.model = 'foo'; } buildCounterGoogleCloudAiplatformV1ComputeTokensRequest--; @@ -2825,19 +2996,19 @@ void checkGoogleCloudAiplatformV1ComputeTokensRequest( ) { buildCounterGoogleCloudAiplatformV1ComputeTokensRequest++; if (buildCounterGoogleCloudAiplatformV1ComputeTokensRequest < 3) { - checkUnnamed38(o.contents!); - checkUnnamed39(o.instances!); + checkUnnamed40(o.contents!); + checkUnnamed41(o.instances!); unittest.expect(o.model!, unittest.equals('foo')); } buildCounterGoogleCloudAiplatformV1ComputeTokensRequest--; } -core.List buildUnnamed40() => [ +core.List buildUnnamed42() => [ buildGoogleCloudAiplatformV1TokensInfo(), buildGoogleCloudAiplatformV1TokensInfo(), ]; -void checkUnnamed40(core.List o) { +void checkUnnamed42(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1TokensInfo(o[0]); checkGoogleCloudAiplatformV1TokensInfo(o[1]); @@ -2849,7 +3020,7 @@ buildGoogleCloudAiplatformV1ComputeTokensResponse() { final o = api.GoogleCloudAiplatformV1ComputeTokensResponse(); buildCounterGoogleCloudAiplatformV1ComputeTokensResponse++; if (buildCounterGoogleCloudAiplatformV1ComputeTokensResponse < 3) { - o.tokensInfo = buildUnnamed40(); + o.tokensInfo = buildUnnamed42(); } buildCounterGoogleCloudAiplatformV1ComputeTokensResponse--; return o; @@ -2860,7 +3031,7 @@ void checkGoogleCloudAiplatformV1ComputeTokensResponse( ) { buildCounterGoogleCloudAiplatformV1ComputeTokensResponse++; if (buildCounterGoogleCloudAiplatformV1ComputeTokensResponse < 3) { - checkUnnamed40(o.tokensInfo!); + checkUnnamed42(o.tokensInfo!); } buildCounterGoogleCloudAiplatformV1ComputeTokensResponse--; } @@ -2887,28 +3058,28 @@ void checkGoogleCloudAiplatformV1ContainerRegistryDestination( buildCounterGoogleCloudAiplatformV1ContainerRegistryDestination--; } -core.List buildUnnamed41() => ['foo', 'foo']; +core.List buildUnnamed43() => ['foo', 'foo']; -void checkUnnamed41(core.List o) { +void checkUnnamed43(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed42() => ['foo', 'foo']; +core.List buildUnnamed44() => ['foo', 'foo']; -void checkUnnamed42(core.List o) { +void checkUnnamed44(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed43() => [ +core.List buildUnnamed45() => [ buildGoogleCloudAiplatformV1EnvVar(), buildGoogleCloudAiplatformV1EnvVar(), ]; -void checkUnnamed43(core.List o) { +void checkUnnamed45(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1EnvVar(o[0]); checkGoogleCloudAiplatformV1EnvVar(o[1]); @@ -2920,9 +3091,9 @@ buildGoogleCloudAiplatformV1ContainerSpec() { final o = api.GoogleCloudAiplatformV1ContainerSpec(); buildCounterGoogleCloudAiplatformV1ContainerSpec++; if (buildCounterGoogleCloudAiplatformV1ContainerSpec < 3) { - o.args = buildUnnamed41(); - o.command = buildUnnamed42(); - o.env = buildUnnamed43(); + o.args = buildUnnamed43(); + o.command = buildUnnamed44(); + o.env = buildUnnamed45(); o.imageUri = 'foo'; } buildCounterGoogleCloudAiplatformV1ContainerSpec--; @@ -2934,20 +3105,20 @@ void checkGoogleCloudAiplatformV1ContainerSpec( ) { buildCounterGoogleCloudAiplatformV1ContainerSpec++; if (buildCounterGoogleCloudAiplatformV1ContainerSpec < 3) { - checkUnnamed41(o.args!); - checkUnnamed42(o.command!); - checkUnnamed43(o.env!); + checkUnnamed43(o.args!); + checkUnnamed44(o.command!); + checkUnnamed45(o.env!); unittest.expect(o.imageUri!, unittest.equals('foo')); } buildCounterGoogleCloudAiplatformV1ContainerSpec--; } -core.List buildUnnamed44() => [ +core.List buildUnnamed46() => [ buildGoogleCloudAiplatformV1Part(), buildGoogleCloudAiplatformV1Part(), ]; -void checkUnnamed44(core.List o) { +void checkUnnamed46(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1Part(o[0]); checkGoogleCloudAiplatformV1Part(o[1]); @@ -2958,7 +3129,7 @@ api.GoogleCloudAiplatformV1Content buildGoogleCloudAiplatformV1Content() { final o = api.GoogleCloudAiplatformV1Content(); buildCounterGoogleCloudAiplatformV1Content++; if (buildCounterGoogleCloudAiplatformV1Content < 3) { - o.parts = buildUnnamed44(); + o.parts = buildUnnamed46(); o.role = 'foo'; } buildCounterGoogleCloudAiplatformV1Content--; @@ -2968,19 +3139,19 @@ api.GoogleCloudAiplatformV1Content buildGoogleCloudAiplatformV1Content() { void checkGoogleCloudAiplatformV1Content(api.GoogleCloudAiplatformV1Content o) { buildCounterGoogleCloudAiplatformV1Content++; if (buildCounterGoogleCloudAiplatformV1Content < 3) { - checkUnnamed44(o.parts!); + checkUnnamed46(o.parts!); unittest.expect(o.role!, unittest.equals('foo')); } buildCounterGoogleCloudAiplatformV1Content--; } core.Map -buildUnnamed45() => { +buildUnnamed47() => { 'x': buildGoogleCloudAiplatformV1ContentMapContents(), 'y': buildGoogleCloudAiplatformV1ContentMapContents(), }; -void checkUnnamed45( +void checkUnnamed47( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -2993,7 +3164,7 @@ api.GoogleCloudAiplatformV1ContentMap buildGoogleCloudAiplatformV1ContentMap() { final o = api.GoogleCloudAiplatformV1ContentMap(); buildCounterGoogleCloudAiplatformV1ContentMap++; if (buildCounterGoogleCloudAiplatformV1ContentMap < 3) { - o.values = buildUnnamed45(); + o.values = buildUnnamed47(); } buildCounterGoogleCloudAiplatformV1ContentMap--; return o; @@ -3004,17 +3175,17 @@ void checkGoogleCloudAiplatformV1ContentMap( ) { buildCounterGoogleCloudAiplatformV1ContentMap++; if (buildCounterGoogleCloudAiplatformV1ContentMap < 3) { - checkUnnamed45(o.values!); + checkUnnamed47(o.values!); } buildCounterGoogleCloudAiplatformV1ContentMap--; } -core.List buildUnnamed46() => [ +core.List buildUnnamed48() => [ buildGoogleCloudAiplatformV1Content(), buildGoogleCloudAiplatformV1Content(), ]; -void checkUnnamed46(core.List o) { +void checkUnnamed48(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1Content(o[0]); checkGoogleCloudAiplatformV1Content(o[1]); @@ -3026,7 +3197,7 @@ buildGoogleCloudAiplatformV1ContentMapContents() { final o = api.GoogleCloudAiplatformV1ContentMapContents(); buildCounterGoogleCloudAiplatformV1ContentMapContents++; if (buildCounterGoogleCloudAiplatformV1ContentMapContents < 3) { - o.contents = buildUnnamed46(); + o.contents = buildUnnamed48(); } buildCounterGoogleCloudAiplatformV1ContentMapContents--; return o; @@ -3037,20 +3208,20 @@ void checkGoogleCloudAiplatformV1ContentMapContents( ) { buildCounterGoogleCloudAiplatformV1ContentMapContents++; if (buildCounterGoogleCloudAiplatformV1ContentMapContents < 3) { - checkUnnamed46(o.contents!); + checkUnnamed48(o.contents!); } buildCounterGoogleCloudAiplatformV1ContentMapContents--; } -core.Map buildUnnamed47() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed49() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed47(core.Map o) { +void checkUnnamed49(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed48() => { +core.Map buildUnnamed50() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -3063,23 +3234,23 @@ core.Map buildUnnamed48() => { }, }; -void checkUnnamed48(core.Map o) { +void checkUnnamed50(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted10 = (o['x']!) as core.Map; - unittest.expect(casted10, unittest.hasLength(3)); - unittest.expect(casted10['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted10['bool'], unittest.equals(true)); - unittest.expect(casted10['string'], unittest.equals('foo')); - var casted11 = (o['y']!) as core.Map; - unittest.expect(casted11, unittest.hasLength(3)); - unittest.expect(casted11['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted11['bool'], unittest.equals(true)); - unittest.expect(casted11['string'], unittest.equals('foo')); + var casted12 = (o['x']!) as core.Map; + unittest.expect(casted12, unittest.hasLength(3)); + unittest.expect(casted12['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted12['bool'], unittest.equals(true)); + unittest.expect(casted12['string'], unittest.equals('foo')); + var casted13 = (o['y']!) as core.Map; + unittest.expect(casted13, unittest.hasLength(3)); + unittest.expect(casted13['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted13['bool'], unittest.equals(true)); + unittest.expect(casted13['string'], unittest.equals('foo')); } -core.List buildUnnamed49() => ['foo', 'foo']; +core.List buildUnnamed51() => ['foo', 'foo']; -void checkUnnamed49(core.List o) { +void checkUnnamed51(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3094,10 +3265,10 @@ api.GoogleCloudAiplatformV1Context buildGoogleCloudAiplatformV1Context() { o.description = 'foo'; o.displayName = 'foo'; o.etag = 'foo'; - o.labels = buildUnnamed47(); - o.metadata = buildUnnamed48(); + o.labels = buildUnnamed49(); + o.metadata = buildUnnamed50(); o.name = 'foo'; - o.parentContexts = buildUnnamed49(); + o.parentContexts = buildUnnamed51(); o.schemaTitle = 'foo'; o.schemaVersion = 'foo'; o.updateTime = 'foo'; @@ -3113,10 +3284,10 @@ void checkGoogleCloudAiplatformV1Context(api.GoogleCloudAiplatformV1Context o) { unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed47(o.labels!); - checkUnnamed48(o.metadata!); + checkUnnamed49(o.labels!); + checkUnnamed50(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed49(o.parentContexts!); + checkUnnamed51(o.parentContexts!); unittest.expect(o.schemaTitle!, unittest.equals('foo')); unittest.expect(o.schemaVersion!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); @@ -3176,12 +3347,12 @@ void checkGoogleCloudAiplatformV1CorpusStatus( buildCounterGoogleCloudAiplatformV1CorpusStatus--; } -core.List buildUnnamed50() => [ +core.List buildUnnamed52() => [ buildGoogleCloudAiplatformV1Fact(), buildGoogleCloudAiplatformV1Fact(), ]; -void checkUnnamed50(core.List o) { +void checkUnnamed52(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1Fact(o[0]); checkGoogleCloudAiplatformV1Fact(o[1]); @@ -3194,7 +3365,7 @@ buildGoogleCloudAiplatformV1CorroborateContentRequest() { buildCounterGoogleCloudAiplatformV1CorroborateContentRequest++; if (buildCounterGoogleCloudAiplatformV1CorroborateContentRequest < 3) { o.content = buildGoogleCloudAiplatformV1Content(); - o.facts = buildUnnamed50(); + o.facts = buildUnnamed52(); o.parameters = buildGoogleCloudAiplatformV1CorroborateContentRequestParameters(); } @@ -3208,7 +3379,7 @@ void checkGoogleCloudAiplatformV1CorroborateContentRequest( buildCounterGoogleCloudAiplatformV1CorroborateContentRequest++; if (buildCounterGoogleCloudAiplatformV1CorroborateContentRequest < 3) { checkGoogleCloudAiplatformV1Content(o.content!); - checkUnnamed50(o.facts!); + checkUnnamed52(o.facts!); checkGoogleCloudAiplatformV1CorroborateContentRequestParameters( o.parameters!, ); @@ -3241,12 +3412,12 @@ void checkGoogleCloudAiplatformV1CorroborateContentRequestParameters( buildCounterGoogleCloudAiplatformV1CorroborateContentRequestParameters--; } -core.List buildUnnamed51() => [ +core.List buildUnnamed53() => [ buildGoogleCloudAiplatformV1Claim(), buildGoogleCloudAiplatformV1Claim(), ]; -void checkUnnamed51(core.List o) { +void checkUnnamed53(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1Claim(o[0]); checkGoogleCloudAiplatformV1Claim(o[1]); @@ -3258,7 +3429,7 @@ buildGoogleCloudAiplatformV1CorroborateContentResponse() { final o = api.GoogleCloudAiplatformV1CorroborateContentResponse(); buildCounterGoogleCloudAiplatformV1CorroborateContentResponse++; if (buildCounterGoogleCloudAiplatformV1CorroborateContentResponse < 3) { - o.claims = buildUnnamed51(); + o.claims = buildUnnamed53(); o.corroborationScore = 42.0; } buildCounterGoogleCloudAiplatformV1CorroborateContentResponse--; @@ -3270,24 +3441,24 @@ void checkGoogleCloudAiplatformV1CorroborateContentResponse( ) { buildCounterGoogleCloudAiplatformV1CorroborateContentResponse++; if (buildCounterGoogleCloudAiplatformV1CorroborateContentResponse < 3) { - checkUnnamed51(o.claims!); + checkUnnamed53(o.claims!); unittest.expect(o.corroborationScore!, unittest.equals(42.0)); } buildCounterGoogleCloudAiplatformV1CorroborateContentResponse--; } -core.List buildUnnamed52() => [ +core.List buildUnnamed54() => [ buildGoogleCloudAiplatformV1Content(), buildGoogleCloudAiplatformV1Content(), ]; -void checkUnnamed52(core.List o) { +void checkUnnamed54(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1Content(o[0]); checkGoogleCloudAiplatformV1Content(o[1]); } -core.List buildUnnamed53() => [ +core.List buildUnnamed55() => [ { 'list': [1, 2, 3], 'bool': true, @@ -3300,26 +3471,26 @@ core.List buildUnnamed53() => [ }, ]; -void checkUnnamed53(core.List o) { +void checkUnnamed55(core.List o) { unittest.expect(o, unittest.hasLength(2)); - var casted12 = (o[0]) as core.Map; - unittest.expect(casted12, unittest.hasLength(3)); - unittest.expect(casted12['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted12['bool'], unittest.equals(true)); - unittest.expect(casted12['string'], unittest.equals('foo')); - var casted13 = (o[1]) as core.Map; - unittest.expect(casted13, unittest.hasLength(3)); - unittest.expect(casted13['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted13['bool'], unittest.equals(true)); - unittest.expect(casted13['string'], unittest.equals('foo')); -} - -core.List buildUnnamed54() => [ + var casted14 = (o[0]) as core.Map; + unittest.expect(casted14, unittest.hasLength(3)); + unittest.expect(casted14['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted14['bool'], unittest.equals(true)); + unittest.expect(casted14['string'], unittest.equals('foo')); + var casted15 = (o[1]) as core.Map; + unittest.expect(casted15, unittest.hasLength(3)); + unittest.expect(casted15['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted15['bool'], unittest.equals(true)); + unittest.expect(casted15['string'], unittest.equals('foo')); +} + +core.List buildUnnamed56() => [ buildGoogleCloudAiplatformV1Tool(), buildGoogleCloudAiplatformV1Tool(), ]; -void checkUnnamed54(core.List o) { +void checkUnnamed56(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1Tool(o[0]); checkGoogleCloudAiplatformV1Tool(o[1]); @@ -3331,12 +3502,12 @@ buildGoogleCloudAiplatformV1CountTokensRequest() { final o = api.GoogleCloudAiplatformV1CountTokensRequest(); buildCounterGoogleCloudAiplatformV1CountTokensRequest++; if (buildCounterGoogleCloudAiplatformV1CountTokensRequest < 3) { - o.contents = buildUnnamed52(); + o.contents = buildUnnamed54(); o.generationConfig = buildGoogleCloudAiplatformV1GenerationConfig(); - o.instances = buildUnnamed53(); + o.instances = buildUnnamed55(); o.model = 'foo'; o.systemInstruction = buildGoogleCloudAiplatformV1Content(); - o.tools = buildUnnamed54(); + o.tools = buildUnnamed56(); } buildCounterGoogleCloudAiplatformV1CountTokensRequest--; return o; @@ -3347,22 +3518,22 @@ void checkGoogleCloudAiplatformV1CountTokensRequest( ) { buildCounterGoogleCloudAiplatformV1CountTokensRequest++; if (buildCounterGoogleCloudAiplatformV1CountTokensRequest < 3) { - checkUnnamed52(o.contents!); + checkUnnamed54(o.contents!); checkGoogleCloudAiplatformV1GenerationConfig(o.generationConfig!); - checkUnnamed53(o.instances!); + checkUnnamed55(o.instances!); unittest.expect(o.model!, unittest.equals('foo')); checkGoogleCloudAiplatformV1Content(o.systemInstruction!); - checkUnnamed54(o.tools!); + checkUnnamed56(o.tools!); } buildCounterGoogleCloudAiplatformV1CountTokensRequest--; } -core.List buildUnnamed55() => [ +core.List buildUnnamed57() => [ buildGoogleCloudAiplatformV1ModalityTokenCount(), buildGoogleCloudAiplatformV1ModalityTokenCount(), ]; -void checkUnnamed55( +void checkUnnamed57( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3376,7 +3547,7 @@ buildGoogleCloudAiplatformV1CountTokensResponse() { final o = api.GoogleCloudAiplatformV1CountTokensResponse(); buildCounterGoogleCloudAiplatformV1CountTokensResponse++; if (buildCounterGoogleCloudAiplatformV1CountTokensResponse < 3) { - o.promptTokensDetails = buildUnnamed55(); + o.promptTokensDetails = buildUnnamed57(); o.totalBillableCharacters = 42; o.totalTokens = 42; } @@ -3389,7 +3560,7 @@ void checkGoogleCloudAiplatformV1CountTokensResponse( ) { buildCounterGoogleCloudAiplatformV1CountTokensResponse++; if (buildCounterGoogleCloudAiplatformV1CountTokensResponse < 3) { - checkUnnamed55(o.promptTokensDetails!); + checkUnnamed57(o.promptTokensDetails!); unittest.expect(o.totalBillableCharacters!, unittest.equals(42)); unittest.expect(o.totalTokens!, unittest.equals(42)); } @@ -3606,17 +3777,17 @@ void checkGoogleCloudAiplatformV1CsvSource( buildCounterGoogleCloudAiplatformV1CsvSource--; } -core.Map buildUnnamed56() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed58() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed56(core.Map o) { +void checkUnnamed58(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed57() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed59() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed57(core.Map o) { +void checkUnnamed59(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -3633,14 +3804,14 @@ api.GoogleCloudAiplatformV1CustomJob buildGoogleCloudAiplatformV1CustomJob() { o.endTime = 'foo'; o.error = buildGoogleRpcStatus(); o.jobSpec = buildGoogleCloudAiplatformV1CustomJobSpec(); - o.labels = buildUnnamed56(); + o.labels = buildUnnamed58(); o.name = 'foo'; o.satisfiesPzi = true; o.satisfiesPzs = true; o.startTime = 'foo'; o.state = 'foo'; o.updateTime = 'foo'; - o.webAccessUris = buildUnnamed57(); + o.webAccessUris = buildUnnamed59(); } buildCounterGoogleCloudAiplatformV1CustomJob--; return o; @@ -3657,40 +3828,40 @@ void checkGoogleCloudAiplatformV1CustomJob( unittest.expect(o.endTime!, unittest.equals('foo')); checkGoogleRpcStatus(o.error!); checkGoogleCloudAiplatformV1CustomJobSpec(o.jobSpec!); - checkUnnamed56(o.labels!); + checkUnnamed58(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.satisfiesPzi!, unittest.isTrue); unittest.expect(o.satisfiesPzs!, unittest.isTrue); unittest.expect(o.startTime!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); - checkUnnamed57(o.webAccessUris!); + checkUnnamed59(o.webAccessUris!); } buildCounterGoogleCloudAiplatformV1CustomJob--; } -core.List buildUnnamed58() => ['foo', 'foo']; +core.List buildUnnamed60() => ['foo', 'foo']; -void checkUnnamed58(core.List o) { +void checkUnnamed60(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed59() => ['foo', 'foo']; +core.List buildUnnamed61() => ['foo', 'foo']; -void checkUnnamed59(core.List o) { +void checkUnnamed61(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed60() => [ +core.List buildUnnamed62() => [ buildGoogleCloudAiplatformV1WorkerPoolSpec(), buildGoogleCloudAiplatformV1WorkerPoolSpec(), ]; -void checkUnnamed60(core.List o) { +void checkUnnamed62(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1WorkerPoolSpec(o[0]); checkGoogleCloudAiplatformV1WorkerPoolSpec(o[1]); @@ -3707,16 +3878,16 @@ buildGoogleCloudAiplatformV1CustomJobSpec() { o.enableWebAccess = true; o.experiment = 'foo'; o.experimentRun = 'foo'; - o.models = buildUnnamed58(); + o.models = buildUnnamed60(); o.network = 'foo'; o.persistentResourceId = 'foo'; o.protectedArtifactLocationId = 'foo'; o.pscInterfaceConfig = buildGoogleCloudAiplatformV1PscInterfaceConfig(); - o.reservedIpRanges = buildUnnamed59(); + o.reservedIpRanges = buildUnnamed61(); o.scheduling = buildGoogleCloudAiplatformV1Scheduling(); o.serviceAccount = 'foo'; o.tensorboard = 'foo'; - o.workerPoolSpecs = buildUnnamed60(); + o.workerPoolSpecs = buildUnnamed62(); } buildCounterGoogleCloudAiplatformV1CustomJobSpec--; return o; @@ -3732,16 +3903,16 @@ void checkGoogleCloudAiplatformV1CustomJobSpec( unittest.expect(o.enableWebAccess!, unittest.isTrue); unittest.expect(o.experiment!, unittest.equals('foo')); unittest.expect(o.experimentRun!, unittest.equals('foo')); - checkUnnamed58(o.models!); + checkUnnamed60(o.models!); unittest.expect(o.network!, unittest.equals('foo')); unittest.expect(o.persistentResourceId!, unittest.equals('foo')); unittest.expect(o.protectedArtifactLocationId!, unittest.equals('foo')); checkGoogleCloudAiplatformV1PscInterfaceConfig(o.pscInterfaceConfig!); - checkUnnamed59(o.reservedIpRanges!); + checkUnnamed61(o.reservedIpRanges!); checkGoogleCloudAiplatformV1Scheduling(o.scheduling!); unittest.expect(o.serviceAccount!, unittest.equals('foo')); unittest.expect(o.tensorboard!, unittest.equals('foo')); - checkUnnamed60(o.workerPoolSpecs!); + checkUnnamed62(o.workerPoolSpecs!); } buildCounterGoogleCloudAiplatformV1CustomJobSpec--; } @@ -3790,9 +3961,9 @@ void checkGoogleCloudAiplatformV1CustomOutputFormatConfig( buildCounterGoogleCloudAiplatformV1CustomOutputFormatConfig--; } -core.Map buildUnnamed61() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed63() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed61(core.Map o) { +void checkUnnamed63(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -3805,7 +3976,7 @@ api.GoogleCloudAiplatformV1DataItem buildGoogleCloudAiplatformV1DataItem() { if (buildCounterGoogleCloudAiplatformV1DataItem < 3) { o.createTime = 'foo'; o.etag = 'foo'; - o.labels = buildUnnamed61(); + o.labels = buildUnnamed63(); o.name = 'foo'; o.payload = { 'list': [1, 2, 3], @@ -3827,13 +3998,13 @@ void checkGoogleCloudAiplatformV1DataItem( if (buildCounterGoogleCloudAiplatformV1DataItem < 3) { unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed61(o.labels!); + checkUnnamed63(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); - var casted14 = (o.payload!) as core.Map; - unittest.expect(casted14, unittest.hasLength(3)); - unittest.expect(casted14['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted14['bool'], unittest.equals(true)); - unittest.expect(casted14['string'], unittest.equals('foo')); + var casted16 = (o.payload!) as core.Map; + unittest.expect(casted16, unittest.hasLength(3)); + unittest.expect(casted16['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted16['bool'], unittest.equals(true)); + unittest.expect(casted16['string'], unittest.equals('foo')); unittest.expect(o.satisfiesPzi!, unittest.isTrue); unittest.expect(o.satisfiesPzs!, unittest.isTrue); unittest.expect(o.updateTime!, unittest.equals('foo')); @@ -3841,12 +4012,12 @@ void checkGoogleCloudAiplatformV1DataItem( buildCounterGoogleCloudAiplatformV1DataItem--; } -core.List buildUnnamed62() => [ +core.List buildUnnamed64() => [ buildGoogleCloudAiplatformV1Annotation(), buildGoogleCloudAiplatformV1Annotation(), ]; -void checkUnnamed62(core.List o) { +void checkUnnamed64(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1Annotation(o[0]); checkGoogleCloudAiplatformV1Annotation(o[1]); @@ -3858,7 +4029,7 @@ buildGoogleCloudAiplatformV1DataItemView() { final o = api.GoogleCloudAiplatformV1DataItemView(); buildCounterGoogleCloudAiplatformV1DataItemView++; if (buildCounterGoogleCloudAiplatformV1DataItemView < 3) { - o.annotations = buildUnnamed62(); + o.annotations = buildUnnamed64(); o.dataItem = buildGoogleCloudAiplatformV1DataItem(); o.hasTruncatedAnnotations = true; } @@ -3871,40 +4042,40 @@ void checkGoogleCloudAiplatformV1DataItemView( ) { buildCounterGoogleCloudAiplatformV1DataItemView++; if (buildCounterGoogleCloudAiplatformV1DataItemView < 3) { - checkUnnamed62(o.annotations!); + checkUnnamed64(o.annotations!); checkGoogleCloudAiplatformV1DataItem(o.dataItem!); unittest.expect(o.hasTruncatedAnnotations!, unittest.isTrue); } buildCounterGoogleCloudAiplatformV1DataItemView--; } -core.Map buildUnnamed63() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed65() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed63(core.Map o) { +void checkUnnamed65(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed64() => ['foo', 'foo']; +core.List buildUnnamed66() => ['foo', 'foo']; -void checkUnnamed64(core.List o) { +void checkUnnamed66(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed65() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed67() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed65(core.Map o) { +void checkUnnamed67(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed66() => ['foo', 'foo']; +core.List buildUnnamed68() => ['foo', 'foo']; -void checkUnnamed66(core.List o) { +void checkUnnamed68(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3917,10 +4088,10 @@ buildGoogleCloudAiplatformV1DataLabelingJob() { buildCounterGoogleCloudAiplatformV1DataLabelingJob++; if (buildCounterGoogleCloudAiplatformV1DataLabelingJob < 3) { o.activeLearningConfig = buildGoogleCloudAiplatformV1ActiveLearningConfig(); - o.annotationLabels = buildUnnamed63(); + o.annotationLabels = buildUnnamed65(); o.createTime = 'foo'; o.currentSpend = buildGoogleTypeMoney(); - o.datasets = buildUnnamed64(); + o.datasets = buildUnnamed66(); o.displayName = 'foo'; o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); o.error = buildGoogleRpcStatus(); @@ -3933,9 +4104,9 @@ buildGoogleCloudAiplatformV1DataLabelingJob() { o.instructionUri = 'foo'; o.labelerCount = 42; o.labelingProgress = 42; - o.labels = buildUnnamed65(); + o.labels = buildUnnamed67(); o.name = 'foo'; - o.specialistPools = buildUnnamed66(); + o.specialistPools = buildUnnamed68(); o.state = 'foo'; o.updateTime = 'foo'; } @@ -3949,45 +4120,45 @@ void checkGoogleCloudAiplatformV1DataLabelingJob( buildCounterGoogleCloudAiplatformV1DataLabelingJob++; if (buildCounterGoogleCloudAiplatformV1DataLabelingJob < 3) { checkGoogleCloudAiplatformV1ActiveLearningConfig(o.activeLearningConfig!); - checkUnnamed63(o.annotationLabels!); + checkUnnamed65(o.annotationLabels!); unittest.expect(o.createTime!, unittest.equals('foo')); checkGoogleTypeMoney(o.currentSpend!); - checkUnnamed64(o.datasets!); + checkUnnamed66(o.datasets!); unittest.expect(o.displayName!, unittest.equals('foo')); checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); checkGoogleRpcStatus(o.error!); - var casted15 = (o.inputs!) as core.Map; - unittest.expect(casted15, unittest.hasLength(3)); - unittest.expect(casted15['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted15['bool'], unittest.equals(true)); - unittest.expect(casted15['string'], unittest.equals('foo')); + var casted17 = (o.inputs!) as core.Map; + unittest.expect(casted17, unittest.hasLength(3)); + unittest.expect(casted17['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted17['bool'], unittest.equals(true)); + unittest.expect(casted17['string'], unittest.equals('foo')); unittest.expect(o.inputsSchemaUri!, unittest.equals('foo')); unittest.expect(o.instructionUri!, unittest.equals('foo')); unittest.expect(o.labelerCount!, unittest.equals(42)); unittest.expect(o.labelingProgress!, unittest.equals(42)); - checkUnnamed65(o.labels!); + checkUnnamed67(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed66(o.specialistPools!); + checkUnnamed68(o.specialistPools!); unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); } buildCounterGoogleCloudAiplatformV1DataLabelingJob--; } -core.Map buildUnnamed67() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed69() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed67(core.Map o) { +void checkUnnamed69(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed68() => [ +core.List buildUnnamed70() => [ buildGoogleCloudAiplatformV1SavedQuery(), buildGoogleCloudAiplatformV1SavedQuery(), ]; -void checkUnnamed68(core.List o) { +void checkUnnamed70(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1SavedQuery(o[0]); checkGoogleCloudAiplatformV1SavedQuery(o[1]); @@ -4004,7 +4175,7 @@ api.GoogleCloudAiplatformV1Dataset buildGoogleCloudAiplatformV1Dataset() { o.displayName = 'foo'; o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); o.etag = 'foo'; - o.labels = buildUnnamed67(); + o.labels = buildUnnamed69(); o.metadata = { 'list': [1, 2, 3], 'bool': true, @@ -4016,7 +4187,7 @@ api.GoogleCloudAiplatformV1Dataset buildGoogleCloudAiplatformV1Dataset() { o.name = 'foo'; o.satisfiesPzi = true; o.satisfiesPzs = true; - o.savedQueries = buildUnnamed68(); + o.savedQueries = buildUnnamed70(); o.updateTime = 'foo'; } buildCounterGoogleCloudAiplatformV1Dataset--; @@ -4032,19 +4203,19 @@ void checkGoogleCloudAiplatformV1Dataset(api.GoogleCloudAiplatformV1Dataset o) { unittest.expect(o.displayName!, unittest.equals('foo')); checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed67(o.labels!); - var casted16 = (o.metadata!) as core.Map; - unittest.expect(casted16, unittest.hasLength(3)); - unittest.expect(casted16['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted16['bool'], unittest.equals(true)); - unittest.expect(casted16['string'], unittest.equals('foo')); + checkUnnamed69(o.labels!); + var casted18 = (o.metadata!) as core.Map; + unittest.expect(casted18, unittest.hasLength(3)); + unittest.expect(casted18['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted18['bool'], unittest.equals(true)); + unittest.expect(casted18['string'], unittest.equals('foo')); unittest.expect(o.metadataArtifact!, unittest.equals('foo')); unittest.expect(o.metadataSchemaUri!, unittest.equals('foo')); unittest.expect(o.modelReference!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.satisfiesPzi!, unittest.isTrue); unittest.expect(o.satisfiesPzs!, unittest.isTrue); - checkUnnamed68(o.savedQueries!); + checkUnnamed70(o.savedQueries!); unittest.expect(o.updateTime!, unittest.equals('foo')); } buildCounterGoogleCloudAiplatformV1Dataset--; @@ -4084,11 +4255,11 @@ void checkGoogleCloudAiplatformV1DatasetVersion( unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.etag!, unittest.equals('foo')); - var casted17 = (o.metadata!) as core.Map; - unittest.expect(casted17, unittest.hasLength(3)); - unittest.expect(casted17['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted17['bool'], unittest.equals(true)); - unittest.expect(casted17['string'], unittest.equals('foo')); + var casted19 = (o.metadata!) as core.Map; + unittest.expect(casted19, unittest.hasLength(3)); + unittest.expect(casted19['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted19['bool'], unittest.equals(true)); + unittest.expect(casted19['string'], unittest.equals('foo')); unittest.expect(o.modelReference!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.satisfiesPzi!, unittest.isTrue); @@ -4098,13 +4269,13 @@ void checkGoogleCloudAiplatformV1DatasetVersion( buildCounterGoogleCloudAiplatformV1DatasetVersion--; } -core.List buildUnnamed69() => +core.List buildUnnamed71() => [ buildGoogleCloudAiplatformV1AutoscalingMetricSpec(), buildGoogleCloudAiplatformV1AutoscalingMetricSpec(), ]; -void checkUnnamed69( +void checkUnnamed71( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4118,7 +4289,7 @@ buildGoogleCloudAiplatformV1DedicatedResources() { final o = api.GoogleCloudAiplatformV1DedicatedResources(); buildCounterGoogleCloudAiplatformV1DedicatedResources++; if (buildCounterGoogleCloudAiplatformV1DedicatedResources < 3) { - o.autoscalingMetricSpecs = buildUnnamed69(); + o.autoscalingMetricSpecs = buildUnnamed71(); o.machineSpec = buildGoogleCloudAiplatformV1MachineSpec(); o.maxReplicaCount = 42; o.minReplicaCount = 42; @@ -4134,7 +4305,7 @@ void checkGoogleCloudAiplatformV1DedicatedResources( ) { buildCounterGoogleCloudAiplatformV1DedicatedResources++; if (buildCounterGoogleCloudAiplatformV1DedicatedResources < 3) { - checkUnnamed69(o.autoscalingMetricSpecs!); + checkUnnamed71(o.autoscalingMetricSpecs!); checkGoogleCloudAiplatformV1MachineSpec(o.machineSpec!); unittest.expect(o.maxReplicaCount!, unittest.equals(42)); unittest.expect(o.minReplicaCount!, unittest.equals(42)); @@ -4254,9 +4425,9 @@ void checkGoogleCloudAiplatformV1DeployIndexRequest( buildCounterGoogleCloudAiplatformV1DeployIndexRequest--; } -core.Map buildUnnamed70() => {'x': 42, 'y': 42}; +core.Map buildUnnamed72() => {'x': 42, 'y': 42}; -void checkUnnamed70(core.Map o) { +void checkUnnamed72(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals(42)); unittest.expect(o['y']!, unittest.equals(42)); @@ -4269,7 +4440,7 @@ buildGoogleCloudAiplatformV1DeployModelRequest() { buildCounterGoogleCloudAiplatformV1DeployModelRequest++; if (buildCounterGoogleCloudAiplatformV1DeployModelRequest < 3) { o.deployedModel = buildGoogleCloudAiplatformV1DeployedModel(); - o.trafficSplit = buildUnnamed70(); + o.trafficSplit = buildUnnamed72(); } buildCounterGoogleCloudAiplatformV1DeployModelRequest--; return o; @@ -4281,7 +4452,7 @@ void checkGoogleCloudAiplatformV1DeployModelRequest( buildCounterGoogleCloudAiplatformV1DeployModelRequest++; if (buildCounterGoogleCloudAiplatformV1DeployModelRequest < 3) { checkGoogleCloudAiplatformV1DeployedModel(o.deployedModel!); - checkUnnamed70(o.trafficSplit!); + checkUnnamed72(o.trafficSplit!); } buildCounterGoogleCloudAiplatformV1DeployModelRequest--; } @@ -4317,9 +4488,9 @@ void checkGoogleCloudAiplatformV1DeployRequest( buildCounterGoogleCloudAiplatformV1DeployRequest--; } -core.Map buildUnnamed71() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed73() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed71(core.Map o) { +void checkUnnamed73(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -4333,7 +4504,7 @@ buildGoogleCloudAiplatformV1DeployRequestDeployConfig() { if (buildCounterGoogleCloudAiplatformV1DeployRequestDeployConfig < 3) { o.dedicatedResources = buildGoogleCloudAiplatformV1DedicatedResources(); o.fastTryoutEnabled = true; - o.systemLabels = buildUnnamed71(); + o.systemLabels = buildUnnamed73(); } buildCounterGoogleCloudAiplatformV1DeployRequestDeployConfig--; return o; @@ -4346,7 +4517,7 @@ void checkGoogleCloudAiplatformV1DeployRequestDeployConfig( if (buildCounterGoogleCloudAiplatformV1DeployRequestDeployConfig < 3) { checkGoogleCloudAiplatformV1DedicatedResources(o.dedicatedResources!); unittest.expect(o.fastTryoutEnabled!, unittest.isTrue); - checkUnnamed71(o.systemLabels!); + checkUnnamed73(o.systemLabels!); } buildCounterGoogleCloudAiplatformV1DeployRequestDeployConfig--; } @@ -4357,8 +4528,12 @@ buildGoogleCloudAiplatformV1DeployRequestEndpointConfig() { final o = api.GoogleCloudAiplatformV1DeployRequestEndpointConfig(); buildCounterGoogleCloudAiplatformV1DeployRequestEndpointConfig++; if (buildCounterGoogleCloudAiplatformV1DeployRequestEndpointConfig < 3) { + o.dedicatedEndpointDisabled = true; o.dedicatedEndpointEnabled = true; o.endpointDisplayName = 'foo'; + o.endpointUserId = 'foo'; + o.privateServiceConnectConfig = + buildGoogleCloudAiplatformV1PrivateServiceConnectConfig(); } buildCounterGoogleCloudAiplatformV1DeployRequestEndpointConfig--; return o; @@ -4369,8 +4544,13 @@ void checkGoogleCloudAiplatformV1DeployRequestEndpointConfig( ) { buildCounterGoogleCloudAiplatformV1DeployRequestEndpointConfig++; if (buildCounterGoogleCloudAiplatformV1DeployRequestEndpointConfig < 3) { + unittest.expect(o.dedicatedEndpointDisabled!, unittest.isTrue); unittest.expect(o.dedicatedEndpointEnabled!, unittest.isTrue); unittest.expect(o.endpointDisplayName!, unittest.equals('foo')); + unittest.expect(o.endpointUserId!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1PrivateServiceConnectConfig( + o.privateServiceConnectConfig!, + ); } buildCounterGoogleCloudAiplatformV1DeployRequestEndpointConfig--; } @@ -4407,12 +4587,12 @@ void checkGoogleCloudAiplatformV1DeployRequestModelConfig( buildCounterGoogleCloudAiplatformV1DeployRequestModelConfig--; } -core.List buildUnnamed72() => [ +core.List buildUnnamed74() => [ buildGoogleCloudAiplatformV1PSCAutomationConfig(), buildGoogleCloudAiplatformV1PSCAutomationConfig(), ]; -void checkUnnamed72( +void checkUnnamed74( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4420,9 +4600,9 @@ void checkUnnamed72( checkGoogleCloudAiplatformV1PSCAutomationConfig(o[1]); } -core.List buildUnnamed73() => ['foo', 'foo']; +core.List buildUnnamed75() => ['foo', 'foo']; -void checkUnnamed73(core.List o) { +void checkUnnamed75(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4448,8 +4628,8 @@ buildGoogleCloudAiplatformV1DeployedIndex() { o.index = 'foo'; o.indexSyncTime = 'foo'; o.privateEndpoints = buildGoogleCloudAiplatformV1IndexPrivateEndpoints(); - o.pscAutomationConfigs = buildUnnamed72(); - o.reservedIpRanges = buildUnnamed73(); + o.pscAutomationConfigs = buildUnnamed74(); + o.reservedIpRanges = buildUnnamed75(); } buildCounterGoogleCloudAiplatformV1DeployedIndex--; return o; @@ -4475,8 +4655,8 @@ void checkGoogleCloudAiplatformV1DeployedIndex( unittest.expect(o.index!, unittest.equals('foo')); unittest.expect(o.indexSyncTime!, unittest.equals('foo')); checkGoogleCloudAiplatformV1IndexPrivateEndpoints(o.privateEndpoints!); - checkUnnamed72(o.pscAutomationConfigs!); - checkUnnamed73(o.reservedIpRanges!); + checkUnnamed74(o.pscAutomationConfigs!); + checkUnnamed75(o.reservedIpRanges!); } buildCounterGoogleCloudAiplatformV1DeployedIndex--; } @@ -4506,17 +4686,17 @@ void checkGoogleCloudAiplatformV1DeployedIndexAuthConfig( buildCounterGoogleCloudAiplatformV1DeployedIndexAuthConfig--; } -core.List buildUnnamed74() => ['foo', 'foo']; +core.List buildUnnamed76() => ['foo', 'foo']; -void checkUnnamed74(core.List o) { +void checkUnnamed76(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed75() => ['foo', 'foo']; +core.List buildUnnamed77() => ['foo', 'foo']; -void checkUnnamed75(core.List o) { +void checkUnnamed77(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4530,8 +4710,8 @@ buildGoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider() { buildCounterGoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider++; if (buildCounterGoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider < 3) { - o.allowedIssuers = buildUnnamed74(); - o.audiences = buildUnnamed75(); + o.allowedIssuers = buildUnnamed76(); + o.audiences = buildUnnamed77(); } buildCounterGoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider--; return o; @@ -4543,8 +4723,8 @@ void checkGoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider( buildCounterGoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider++; if (buildCounterGoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider < 3) { - checkUnnamed74(o.allowedIssuers!); - checkUnnamed75(o.audiences!); + checkUnnamed76(o.allowedIssuers!); + checkUnnamed77(o.audiences!); } buildCounterGoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider--; } @@ -4575,9 +4755,9 @@ void checkGoogleCloudAiplatformV1DeployedIndexRef( buildCounterGoogleCloudAiplatformV1DeployedIndexRef--; } -core.Map buildUnnamed76() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed78() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed76(core.Map o) { +void checkUnnamed78(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -4610,7 +4790,7 @@ buildGoogleCloudAiplatformV1DeployedModel() { o.speculativeDecodingSpec = buildGoogleCloudAiplatformV1SpeculativeDecodingSpec(); o.status = buildGoogleCloudAiplatformV1DeployedModelStatus(); - o.systemLabels = buildUnnamed76(); + o.systemLabels = buildUnnamed78(); } buildCounterGoogleCloudAiplatformV1DeployedModel--; return o; @@ -4644,7 +4824,7 @@ void checkGoogleCloudAiplatformV1DeployedModel( o.speculativeDecodingSpec!, ); checkGoogleCloudAiplatformV1DeployedModelStatus(o.status!); - checkUnnamed76(o.systemLabels!); + checkUnnamed78(o.systemLabels!); } buildCounterGoogleCloudAiplatformV1DeployedModel--; } @@ -4761,12 +4941,12 @@ void checkGoogleCloudAiplatformV1DestinationFeatureSetting( buildCounterGoogleCloudAiplatformV1DestinationFeatureSetting--; } -core.List buildUnnamed77() => [ +core.List buildUnnamed79() => [ buildGoogleCloudAiplatformV1Tensor(), buildGoogleCloudAiplatformV1Tensor(), ]; -void checkUnnamed77(core.List o) { +void checkUnnamed79(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1Tensor(o[0]); checkGoogleCloudAiplatformV1Tensor(o[1]); @@ -4778,7 +4958,7 @@ buildGoogleCloudAiplatformV1DirectPredictRequest() { final o = api.GoogleCloudAiplatformV1DirectPredictRequest(); buildCounterGoogleCloudAiplatformV1DirectPredictRequest++; if (buildCounterGoogleCloudAiplatformV1DirectPredictRequest < 3) { - o.inputs = buildUnnamed77(); + o.inputs = buildUnnamed79(); o.parameters = buildGoogleCloudAiplatformV1Tensor(); } buildCounterGoogleCloudAiplatformV1DirectPredictRequest--; @@ -4790,18 +4970,18 @@ void checkGoogleCloudAiplatformV1DirectPredictRequest( ) { buildCounterGoogleCloudAiplatformV1DirectPredictRequest++; if (buildCounterGoogleCloudAiplatformV1DirectPredictRequest < 3) { - checkUnnamed77(o.inputs!); + checkUnnamed79(o.inputs!); checkGoogleCloudAiplatformV1Tensor(o.parameters!); } buildCounterGoogleCloudAiplatformV1DirectPredictRequest--; } -core.List buildUnnamed78() => [ +core.List buildUnnamed80() => [ buildGoogleCloudAiplatformV1Tensor(), buildGoogleCloudAiplatformV1Tensor(), ]; -void checkUnnamed78(core.List o) { +void checkUnnamed80(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1Tensor(o[0]); checkGoogleCloudAiplatformV1Tensor(o[1]); @@ -4813,7 +4993,7 @@ buildGoogleCloudAiplatformV1DirectPredictResponse() { final o = api.GoogleCloudAiplatformV1DirectPredictResponse(); buildCounterGoogleCloudAiplatformV1DirectPredictResponse++; if (buildCounterGoogleCloudAiplatformV1DirectPredictResponse < 3) { - o.outputs = buildUnnamed78(); + o.outputs = buildUnnamed80(); o.parameters = buildGoogleCloudAiplatformV1Tensor(); } buildCounterGoogleCloudAiplatformV1DirectPredictResponse--; @@ -4825,7 +5005,7 @@ void checkGoogleCloudAiplatformV1DirectPredictResponse( ) { buildCounterGoogleCloudAiplatformV1DirectPredictResponse++; if (buildCounterGoogleCloudAiplatformV1DirectPredictResponse < 3) { - checkUnnamed78(o.outputs!); + checkUnnamed80(o.outputs!); checkGoogleCloudAiplatformV1Tensor(o.parameters!); } buildCounterGoogleCloudAiplatformV1DirectPredictResponse--; @@ -4944,9 +5124,9 @@ void checkGoogleCloudAiplatformV1DnsPeeringConfig( buildCounterGoogleCloudAiplatformV1DnsPeeringConfig--; } -core.List buildUnnamed79() => [42.0, 42.0]; +core.List buildUnnamed81() => [42.0, 42.0]; -void checkUnnamed79(core.List o) { +void checkUnnamed81(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -4958,7 +5138,7 @@ buildGoogleCloudAiplatformV1DoubleArray() { final o = api.GoogleCloudAiplatformV1DoubleArray(); buildCounterGoogleCloudAiplatformV1DoubleArray++; if (buildCounterGoogleCloudAiplatformV1DoubleArray < 3) { - o.values = buildUnnamed79(); + o.values = buildUnnamed81(); } buildCounterGoogleCloudAiplatformV1DoubleArray--; return o; @@ -4969,7 +5149,7 @@ void checkGoogleCloudAiplatformV1DoubleArray( ) { buildCounterGoogleCloudAiplatformV1DoubleArray++; if (buildCounterGoogleCloudAiplatformV1DoubleArray < 3) { - checkUnnamed79(o.values!); + checkUnnamed81(o.values!); } buildCounterGoogleCloudAiplatformV1DoubleArray--; } @@ -5020,28 +5200,28 @@ void checkGoogleCloudAiplatformV1EncryptionSpec( buildCounterGoogleCloudAiplatformV1EncryptionSpec--; } -core.List buildUnnamed80() => [ +core.List buildUnnamed82() => [ buildGoogleCloudAiplatformV1DeployedModel(), buildGoogleCloudAiplatformV1DeployedModel(), ]; -void checkUnnamed80(core.List o) { +void checkUnnamed82(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1DeployedModel(o[0]); checkGoogleCloudAiplatformV1DeployedModel(o[1]); } -core.Map buildUnnamed81() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed83() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed81(core.Map o) { +void checkUnnamed83(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed82() => {'x': 42, 'y': 42}; +core.Map buildUnnamed84() => {'x': 42, 'y': 42}; -void checkUnnamed82(core.Map o) { +void checkUnnamed84(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals(42)); unittest.expect(o['y']!, unittest.equals(42)); @@ -5057,7 +5237,7 @@ api.GoogleCloudAiplatformV1Endpoint buildGoogleCloudAiplatformV1Endpoint() { o.createTime = 'foo'; o.dedicatedEndpointDns = 'foo'; o.dedicatedEndpointEnabled = true; - o.deployedModels = buildUnnamed80(); + o.deployedModels = buildUnnamed82(); o.description = 'foo'; o.displayName = 'foo'; o.enablePrivateServiceConnect = true; @@ -5066,7 +5246,7 @@ api.GoogleCloudAiplatformV1Endpoint buildGoogleCloudAiplatformV1Endpoint() { o.gdcConfig = buildGoogleCloudAiplatformV1GdcConfig(); o.genAiAdvancedFeaturesConfig = buildGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig(); - o.labels = buildUnnamed81(); + o.labels = buildUnnamed83(); o.modelDeploymentMonitoringJob = 'foo'; o.name = 'foo'; o.network = 'foo'; @@ -5076,7 +5256,7 @@ api.GoogleCloudAiplatformV1Endpoint buildGoogleCloudAiplatformV1Endpoint() { buildGoogleCloudAiplatformV1PrivateServiceConnectConfig(); o.satisfiesPzi = true; o.satisfiesPzs = true; - o.trafficSplit = buildUnnamed82(); + o.trafficSplit = buildUnnamed84(); o.updateTime = 'foo'; } buildCounterGoogleCloudAiplatformV1Endpoint--; @@ -5094,7 +5274,7 @@ void checkGoogleCloudAiplatformV1Endpoint( unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.dedicatedEndpointDns!, unittest.equals('foo')); unittest.expect(o.dedicatedEndpointEnabled!, unittest.isTrue); - checkUnnamed80(o.deployedModels!); + checkUnnamed82(o.deployedModels!); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.enablePrivateServiceConnect!, unittest.isTrue); @@ -5104,7 +5284,7 @@ void checkGoogleCloudAiplatformV1Endpoint( checkGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig( o.genAiAdvancedFeaturesConfig!, ); - checkUnnamed81(o.labels!); + checkUnnamed83(o.labels!); unittest.expect(o.modelDeploymentMonitoringJob!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); @@ -5116,15 +5296,15 @@ void checkGoogleCloudAiplatformV1Endpoint( ); unittest.expect(o.satisfiesPzi!, unittest.isTrue); unittest.expect(o.satisfiesPzs!, unittest.isTrue); - checkUnnamed82(o.trafficSplit!); + checkUnnamed84(o.trafficSplit!); unittest.expect(o.updateTime!, unittest.equals('foo')); } buildCounterGoogleCloudAiplatformV1Endpoint--; } -core.List buildUnnamed83() => ['foo', 'foo']; +core.List buildUnnamed85() => ['foo', 'foo']; -void checkUnnamed83(core.List o) { +void checkUnnamed85(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5136,7 +5316,7 @@ buildGoogleCloudAiplatformV1EnterpriseWebSearch() { final o = api.GoogleCloudAiplatformV1EnterpriseWebSearch(); buildCounterGoogleCloudAiplatformV1EnterpriseWebSearch++; if (buildCounterGoogleCloudAiplatformV1EnterpriseWebSearch < 3) { - o.excludeDomains = buildUnnamed83(); + o.excludeDomains = buildUnnamed85(); } buildCounterGoogleCloudAiplatformV1EnterpriseWebSearch--; return o; @@ -5147,7 +5327,7 @@ void checkGoogleCloudAiplatformV1EnterpriseWebSearch( ) { buildCounterGoogleCloudAiplatformV1EnterpriseWebSearch++; if (buildCounterGoogleCloudAiplatformV1EnterpriseWebSearch < 3) { - checkUnnamed83(o.excludeDomains!); + checkUnnamed85(o.excludeDomains!); } buildCounterGoogleCloudAiplatformV1EnterpriseWebSearch--; } @@ -5176,9 +5356,9 @@ void checkGoogleCloudAiplatformV1EntityIdSelector( buildCounterGoogleCloudAiplatformV1EntityIdSelector--; } -core.Map buildUnnamed84() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed86() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed84(core.Map o) { +void checkUnnamed86(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -5192,7 +5372,7 @@ api.GoogleCloudAiplatformV1EntityType buildGoogleCloudAiplatformV1EntityType() { o.createTime = 'foo'; o.description = 'foo'; o.etag = 'foo'; - o.labels = buildUnnamed84(); + o.labels = buildUnnamed86(); o.monitoringConfig = buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfig(); o.name = 'foo'; @@ -5213,7 +5393,7 @@ void checkGoogleCloudAiplatformV1EntityType( unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed84(o.labels!); + checkUnnamed86(o.labels!); checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfig( o.monitoringConfig!, ); @@ -5248,12 +5428,12 @@ void checkGoogleCloudAiplatformV1EnvVar(api.GoogleCloudAiplatformV1EnvVar o) { } core.List -buildUnnamed85() => [ +buildUnnamed87() => [ buildGoogleCloudAiplatformV1ErrorAnalysisAnnotationAttributedItem(), buildGoogleCloudAiplatformV1ErrorAnalysisAnnotationAttributedItem(), ]; -void checkUnnamed85( +void checkUnnamed87( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -5267,7 +5447,7 @@ buildGoogleCloudAiplatformV1ErrorAnalysisAnnotation() { final o = api.GoogleCloudAiplatformV1ErrorAnalysisAnnotation(); buildCounterGoogleCloudAiplatformV1ErrorAnalysisAnnotation++; if (buildCounterGoogleCloudAiplatformV1ErrorAnalysisAnnotation < 3) { - o.attributedItems = buildUnnamed85(); + o.attributedItems = buildUnnamed87(); o.outlierScore = 42.0; o.outlierThreshold = 42.0; o.queryType = 'foo'; @@ -5281,7 +5461,7 @@ void checkGoogleCloudAiplatformV1ErrorAnalysisAnnotation( ) { buildCounterGoogleCloudAiplatformV1ErrorAnalysisAnnotation++; if (buildCounterGoogleCloudAiplatformV1ErrorAnalysisAnnotation < 3) { - checkUnnamed85(o.attributedItems!); + checkUnnamed87(o.attributedItems!); unittest.expect(o.outlierScore!, unittest.equals(42.0)); unittest.expect(o.outlierThreshold!, unittest.equals(42.0)); unittest.expect(o.queryType!, unittest.equals('foo')); @@ -5316,12 +5496,12 @@ void checkGoogleCloudAiplatformV1ErrorAnalysisAnnotationAttributedItem( buildCounterGoogleCloudAiplatformV1ErrorAnalysisAnnotationAttributedItem--; } -core.List buildUnnamed86() => [ +core.List buildUnnamed88() => [ buildGoogleCloudAiplatformV1Metric(), buildGoogleCloudAiplatformV1Metric(), ]; -void checkUnnamed86(core.List o) { +void checkUnnamed88(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudAiplatformV1Metric(o[0]); checkGoogleCloudAiplatformV1Metric(o[1]); @@ -5335,7 +5515,7 @@ buildGoogleCloudAiplatformV1EvaluateDatasetRequest() { if (buildCounterGoogleCloudAiplatformV1EvaluateDatasetRequest < 3) { o.autoraterConfig = buildGoogleCloudAiplatformV1AutoraterConfig(); o.dataset = buildGoogleCloudAiplatformV1EvaluationDataset(); - o.metrics = buildUnnamed86(); + o.metrics = buildUnnamed88(); o.outputConfig = buildGoogleCloudAiplatformV1OutputConfig(); } buildCounterGoogleCloudAiplatformV1EvaluateDatasetRequest--; @@ -5349,12 +5529,23 @@ void checkGoogleCloudAiplatformV1EvaluateDatasetRequest( if (buildCounterGoogleCloudAiplatformV1EvaluateDatasetRequest < 3) { checkGoogleCloudAiplatformV1AutoraterConfig(o.autoraterConfig!); checkGoogleCloudAiplatformV1EvaluationDataset(o.dataset!); - checkUnnamed86(o.metrics!); + checkUnnamed88(o.metrics!); checkGoogleCloudAiplatformV1OutputConfig(o.outputConfig!); } buildCounterGoogleCloudAiplatformV1EvaluateDatasetRequest--; } +core.List buildUnnamed89() => [ + buildGoogleCloudAiplatformV1Metric(), + buildGoogleCloudAiplatformV1Metric(), +]; + +void checkUnnamed89(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Metric(o[0]); + checkGoogleCloudAiplatformV1Metric(o[1]); +} + core.int buildCounterGoogleCloudAiplatformV1EvaluateInstancesRequest = 0; api.GoogleCloudAiplatformV1EvaluateInstancesRequest buildGoogleCloudAiplatformV1EvaluateInstancesRequest() { @@ -5369,6 +5560,8 @@ buildGoogleCloudAiplatformV1EvaluateInstancesRequest() { o.fluencyInput = buildGoogleCloudAiplatformV1FluencyInput(); o.fulfillmentInput = buildGoogleCloudAiplatformV1FulfillmentInput(); o.groundednessInput = buildGoogleCloudAiplatformV1GroundednessInput(); + o.instance = buildGoogleCloudAiplatformV1EvaluationInstance(); + o.metrics = buildUnnamed89(); o.metricxInput = buildGoogleCloudAiplatformV1MetricxInput(); o.pairwiseMetricInput = buildGoogleCloudAiplatformV1PairwiseMetricInput(); o.pairwiseQuestionAnsweringQualityInput = @@ -5430,6 +5623,8 @@ void checkGoogleCloudAiplatformV1EvaluateInstancesRequest( checkGoogleCloudAiplatformV1FluencyInput(o.fluencyInput!); checkGoogleCloudAiplatformV1FulfillmentInput(o.fulfillmentInput!); checkGoogleCloudAiplatformV1GroundednessInput(o.groundednessInput!); + checkGoogleCloudAiplatformV1EvaluationInstance(o.instance!); + checkUnnamed89(o.metrics!); checkGoogleCloudAiplatformV1MetricxInput(o.metricxInput!); checkGoogleCloudAiplatformV1PairwiseMetricInput(o.pairwiseMetricInput!); checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput( @@ -5493,6 +5688,17 @@ void checkGoogleCloudAiplatformV1EvaluateInstancesRequest( buildCounterGoogleCloudAiplatformV1EvaluateInstancesRequest--; } +core.List buildUnnamed90() => [ + buildGoogleCloudAiplatformV1MetricResult(), + buildGoogleCloudAiplatformV1MetricResult(), +]; + +void checkUnnamed90(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1MetricResult(o[0]); + checkGoogleCloudAiplatformV1MetricResult(o[1]); +} + core.int buildCounterGoogleCloudAiplatformV1EvaluateInstancesResponse = 0; api.GoogleCloudAiplatformV1EvaluateInstancesResponse buildGoogleCloudAiplatformV1EvaluateInstancesResponse() { @@ -5506,6 +5712,7 @@ buildGoogleCloudAiplatformV1EvaluateInstancesResponse() { o.fluencyResult = buildGoogleCloudAiplatformV1FluencyResult(); o.fulfillmentResult = buildGoogleCloudAiplatformV1FulfillmentResult(); o.groundednessResult = buildGoogleCloudAiplatformV1GroundednessResult(); + o.metricResults = buildUnnamed90(); o.metricxResult = buildGoogleCloudAiplatformV1MetricxResult(); o.pairwiseMetricResult = buildGoogleCloudAiplatformV1PairwiseMetricResult(); o.pairwiseQuestionAnsweringQualityResult = @@ -5567,6 +5774,7 @@ void checkGoogleCloudAiplatformV1EvaluateInstancesResponse( checkGoogleCloudAiplatformV1FluencyResult(o.fluencyResult!); checkGoogleCloudAiplatformV1FulfillmentResult(o.fulfillmentResult!); checkGoogleCloudAiplatformV1GroundednessResult(o.groundednessResult!); + checkUnnamed90(o.metricResults!); checkGoogleCloudAiplatformV1MetricxResult(o.metricxResult!); checkGoogleCloudAiplatformV1PairwiseMetricResult(o.pairwiseMetricResult!); checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult( @@ -5633,12 +5841,12 @@ void checkGoogleCloudAiplatformV1EvaluateInstancesResponse( } core.List -buildUnnamed87() => [ +buildUnnamed91() => [ buildGoogleCloudAiplatformV1ErrorAnalysisAnnotation(), buildGoogleCloudAiplatformV1ErrorAnalysisAnnotation(), ]; -void checkUnnamed87( +void checkUnnamed91( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -5647,12 +5855,12 @@ void checkUnnamed87( } core.List -buildUnnamed88() => [ +buildUnnamed92() => [ buildGoogleCloudAiplatformV1EvaluatedAnnotationExplanation(), buildGoogleCloudAiplatformV1EvaluatedAnnotationExplanation(), ]; -void checkUnnamed88( +void checkUnnamed92( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -5660,7 +5868,7 @@ void checkUnnamed88( checkGoogleCloudAiplatformV1EvaluatedAnnotationExplanation(o[1]); } -core.List buildUnnamed89() => [ +core.List buildUnnamed93() => [ { 'list': [1, 2, 3], 'bool': true, @@ -5673,21 +5881,21 @@ core.List buildUnnamed89() => [ }, ]; -void checkUnnamed89(core.List o) { +void checkUnnamed93(core.List o) { unittest.expect(o, unittest.hasLength(2)); - var casted18 = (o[0]) as core.Map; - unittest.expect(casted18, unittest.hasLength(3)); - unittest.expect(casted18['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted18['bool'], unittest.equals(true)); - unittest.expect(casted18['string'], unittest.equals('foo')); - var casted19 = (o[1]) as core.Map; - unittest.expect(casted19, unittest.hasLength(3)); - unittest.expect(casted19['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted19['bool'], unittest.equals(true)); - unittest.expect(casted19['string'], unittest.equals('foo')); -} - -core.List buildUnnamed90() => [ + var casted20 = (o[0]) as core.Map; + unittest.expect(casted20, unittest.hasLength(3)); + unittest.expect(casted20['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted20['bool'], unittest.equals(true)); + unittest.expect(casted20['string'], unittest.equals('foo')); + var casted21 = (o[1]) as core.Map; + unittest.expect(casted21, unittest.hasLength(3)); + unittest.expect(casted21['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted21['bool'], unittest.equals(true)); + unittest.expect(casted21['string'], unittest.equals('foo')); +} + +core.List buildUnnamed94() => [ { 'list': [1, 2, 3], 'bool': true, @@ -5700,18 +5908,18 @@ core.List buildUnnamed90() => [ }, ]; -void checkUnnamed90(core.List o) { +void checkUnnamed94(core.List o) { unittest.expect(o, unittest.hasLength(2)); - var casted20 = (o[0]) as core.Map; - unittest.expect(casted20, unittest.hasLength(3)); - unittest.expect(casted20['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted20['bool'], unittest.equals(true)); - unittest.expect(casted20['string'], unittest.equals('foo')); - var casted21 = (o[1]) as core.Map; - unittest.expect(casted21, unittest.hasLength(3)); - unittest.expect(casted21['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted21['bool'], unittest.equals(true)); - unittest.expect(casted21['string'], unittest.equals('foo')); + var casted22 = (o[0]) as core.Map; + unittest.expect(casted22, unittest.hasLength(3)); + unittest.expect(casted22['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted22['bool'], unittest.equals(true)); + unittest.expect(casted22['string'], unittest.equals('foo')); + var casted23 = (o[1]) as core.Map; + unittest.expect(casted23, unittest.hasLength(3)); + unittest.expect(casted23['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted23['bool'], unittest.equals(true)); + unittest.expect(casted23['string'], unittest.equals('foo')); } core.int buildCounterGoogleCloudAiplatformV1EvaluatedAnnotation = 0; @@ -5725,11 +5933,11 @@ buildGoogleCloudAiplatformV1EvaluatedAnnotation() { 'bool': true, 'string': 'foo', }; - o.errorAnalysisAnnotations = buildUnnamed87(); + o.errorAnalysisAnnotations = buildUnnamed91(); o.evaluatedDataItemViewId = 'foo'; - o.explanations = buildUnnamed88(); - o.groundTruths = buildUnnamed89(); - o.predictions = buildUnnamed90(); + o.explanations = buildUnnamed92(); + o.groundTruths = buildUnnamed93(); + o.predictions = buildUnnamed94(); o.type = 'foo'; } buildCounterGoogleCloudAiplatformV1EvaluatedAnnotation--; @@ -5741,16 +5949,16 @@ void checkGoogleCloudAiplatformV1EvaluatedAnnotation( ) { buildCounterGoogleCloudAiplatformV1EvaluatedAnnotation++; if (buildCounterGoogleCloudAiplatformV1EvaluatedAnnotation < 3) { - var casted22 = (o.dataItemPayload!) as core.Map; - unittest.expect(casted22, unittest.hasLength(3)); - unittest.expect(casted22['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted22['bool'], unittest.equals(true)); - unittest.expect(casted22['string'], unittest.equals('foo')); - checkUnnamed87(o.errorAnalysisAnnotations!); + var casted24 = (o.dataItemPayload!) as core.Map; + unittest.expect(casted24, unittest.hasLength(3)); + unittest.expect(casted24['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted24['bool'], unittest.equals(true)); + unittest.expect(casted24['string'], unittest.equals('foo')); + checkUnnamed91(o.errorAnalysisAnnotations!); unittest.expect(o.evaluatedDataItemViewId!, unittest.equals('foo')); - checkUnnamed88(o.explanations!); - checkUnnamed89(o.groundTruths!); - checkUnnamed90(o.predictions!); + checkUnnamed92(o.explanations!); + checkUnnamed93(o.groundTruths!); + checkUnnamed94(o.predictions!); unittest.expect(o.type!, unittest.equals('foo')); } buildCounterGoogleCloudAiplatformV1EvaluatedAnnotation--; @@ -5804,14390 +6012,13883 @@ void checkGoogleCloudAiplatformV1EvaluationDataset( buildCounterGoogleCloudAiplatformV1EvaluationDataset--; } -core.Map buildUnnamed91() => {'x': 'foo', 'y': 'foo'}; +core.Map +buildUnnamed95() => { + 'x': buildGoogleCloudAiplatformV1RubricGroup(), + 'y': buildGoogleCloudAiplatformV1RubricGroup(), +}; -void checkUnnamed91(core.Map o) { +void checkUnnamed95( + core.Map o, +) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1RubricGroup(o['x']!); + checkGoogleCloudAiplatformV1RubricGroup(o['y']!); } -core.int buildCounterGoogleCloudAiplatformV1Event = 0; -api.GoogleCloudAiplatformV1Event buildGoogleCloudAiplatformV1Event() { - final o = api.GoogleCloudAiplatformV1Event(); - buildCounterGoogleCloudAiplatformV1Event++; - if (buildCounterGoogleCloudAiplatformV1Event < 3) { - o.artifact = 'foo'; - o.eventTime = 'foo'; - o.execution = 'foo'; - o.labels = buildUnnamed91(); - o.type = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1EvaluationInstance = 0; +api.GoogleCloudAiplatformV1EvaluationInstance +buildGoogleCloudAiplatformV1EvaluationInstance() { + final o = api.GoogleCloudAiplatformV1EvaluationInstance(); + buildCounterGoogleCloudAiplatformV1EvaluationInstance++; + if (buildCounterGoogleCloudAiplatformV1EvaluationInstance < 3) { + o.otherData = buildGoogleCloudAiplatformV1EvaluationInstanceMapInstance(); + o.prompt = buildGoogleCloudAiplatformV1EvaluationInstanceInstanceData(); + o.reference = buildGoogleCloudAiplatformV1EvaluationInstanceInstanceData(); + o.response = buildGoogleCloudAiplatformV1EvaluationInstanceInstanceData(); + o.rubricGroups = buildUnnamed95(); } - buildCounterGoogleCloudAiplatformV1Event--; + buildCounterGoogleCloudAiplatformV1EvaluationInstance--; return o; } -void checkGoogleCloudAiplatformV1Event(api.GoogleCloudAiplatformV1Event o) { - buildCounterGoogleCloudAiplatformV1Event++; - if (buildCounterGoogleCloudAiplatformV1Event < 3) { - unittest.expect(o.artifact!, unittest.equals('foo')); - unittest.expect(o.eventTime!, unittest.equals('foo')); - unittest.expect(o.execution!, unittest.equals('foo')); - checkUnnamed91(o.labels!); - unittest.expect(o.type!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1Event--; -} - -core.List buildUnnamed92() => [ - buildGoogleCloudAiplatformV1ExactMatchInstance(), - buildGoogleCloudAiplatformV1ExactMatchInstance(), -]; - -void checkUnnamed92( - core.List o, +void checkGoogleCloudAiplatformV1EvaluationInstance( + api.GoogleCloudAiplatformV1EvaluationInstance o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ExactMatchInstance(o[0]); - checkGoogleCloudAiplatformV1ExactMatchInstance(o[1]); + buildCounterGoogleCloudAiplatformV1EvaluationInstance++; + if (buildCounterGoogleCloudAiplatformV1EvaluationInstance < 3) { + checkGoogleCloudAiplatformV1EvaluationInstanceMapInstance(o.otherData!); + checkGoogleCloudAiplatformV1EvaluationInstanceInstanceData(o.prompt!); + checkGoogleCloudAiplatformV1EvaluationInstanceInstanceData(o.reference!); + checkGoogleCloudAiplatformV1EvaluationInstanceInstanceData(o.response!); + checkUnnamed95(o.rubricGroups!); + } + buildCounterGoogleCloudAiplatformV1EvaluationInstance--; } -core.int buildCounterGoogleCloudAiplatformV1ExactMatchInput = 0; -api.GoogleCloudAiplatformV1ExactMatchInput -buildGoogleCloudAiplatformV1ExactMatchInput() { - final o = api.GoogleCloudAiplatformV1ExactMatchInput(); - buildCounterGoogleCloudAiplatformV1ExactMatchInput++; - if (buildCounterGoogleCloudAiplatformV1ExactMatchInput < 3) { - o.instances = buildUnnamed92(); - o.metricSpec = buildGoogleCloudAiplatformV1ExactMatchSpec(); +core.int buildCounterGoogleCloudAiplatformV1EvaluationInstanceInstanceData = 0; +api.GoogleCloudAiplatformV1EvaluationInstanceInstanceData +buildGoogleCloudAiplatformV1EvaluationInstanceInstanceData() { + final o = api.GoogleCloudAiplatformV1EvaluationInstanceInstanceData(); + buildCounterGoogleCloudAiplatformV1EvaluationInstanceInstanceData++; + if (buildCounterGoogleCloudAiplatformV1EvaluationInstanceInstanceData < 3) { + o.contents = + buildGoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents(); + o.text = 'foo'; } - buildCounterGoogleCloudAiplatformV1ExactMatchInput--; + buildCounterGoogleCloudAiplatformV1EvaluationInstanceInstanceData--; return o; } -void checkGoogleCloudAiplatformV1ExactMatchInput( - api.GoogleCloudAiplatformV1ExactMatchInput o, +void checkGoogleCloudAiplatformV1EvaluationInstanceInstanceData( + api.GoogleCloudAiplatformV1EvaluationInstanceInstanceData o, ) { - buildCounterGoogleCloudAiplatformV1ExactMatchInput++; - if (buildCounterGoogleCloudAiplatformV1ExactMatchInput < 3) { - checkUnnamed92(o.instances!); - checkGoogleCloudAiplatformV1ExactMatchSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1EvaluationInstanceInstanceData++; + if (buildCounterGoogleCloudAiplatformV1EvaluationInstanceInstanceData < 3) { + checkGoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents( + o.contents!, + ); + unittest.expect(o.text!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ExactMatchInput--; + buildCounterGoogleCloudAiplatformV1EvaluationInstanceInstanceData--; } -core.int buildCounterGoogleCloudAiplatformV1ExactMatchInstance = 0; -api.GoogleCloudAiplatformV1ExactMatchInstance -buildGoogleCloudAiplatformV1ExactMatchInstance() { - final o = api.GoogleCloudAiplatformV1ExactMatchInstance(); - buildCounterGoogleCloudAiplatformV1ExactMatchInstance++; - if (buildCounterGoogleCloudAiplatformV1ExactMatchInstance < 3) { - o.prediction = 'foo'; - o.reference = 'foo'; - } - buildCounterGoogleCloudAiplatformV1ExactMatchInstance--; - return o; -} +core.List buildUnnamed96() => [ + buildGoogleCloudAiplatformV1Content(), + buildGoogleCloudAiplatformV1Content(), +]; -void checkGoogleCloudAiplatformV1ExactMatchInstance( - api.GoogleCloudAiplatformV1ExactMatchInstance o, -) { - buildCounterGoogleCloudAiplatformV1ExactMatchInstance++; - if (buildCounterGoogleCloudAiplatformV1ExactMatchInstance < 3) { - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1ExactMatchInstance--; +void checkUnnamed96(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Content(o[0]); + checkGoogleCloudAiplatformV1Content(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ExactMatchMetricValue = 0; -api.GoogleCloudAiplatformV1ExactMatchMetricValue -buildGoogleCloudAiplatformV1ExactMatchMetricValue() { - final o = api.GoogleCloudAiplatformV1ExactMatchMetricValue(); - buildCounterGoogleCloudAiplatformV1ExactMatchMetricValue++; - if (buildCounterGoogleCloudAiplatformV1ExactMatchMetricValue < 3) { - o.score = 42.0; +core.int +buildCounterGoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents = 0; +api.GoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents +buildGoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents() { + final o = api.GoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents(); + buildCounterGoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents++; + if (buildCounterGoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents < + 3) { + o.contents = buildUnnamed96(); } - buildCounterGoogleCloudAiplatformV1ExactMatchMetricValue--; + buildCounterGoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents--; return o; } -void checkGoogleCloudAiplatformV1ExactMatchMetricValue( - api.GoogleCloudAiplatformV1ExactMatchMetricValue o, +void checkGoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents( + api.GoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents o, ) { - buildCounterGoogleCloudAiplatformV1ExactMatchMetricValue++; - if (buildCounterGoogleCloudAiplatformV1ExactMatchMetricValue < 3) { - unittest.expect(o.score!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents++; + if (buildCounterGoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents < + 3) { + checkUnnamed96(o.contents!); } - buildCounterGoogleCloudAiplatformV1ExactMatchMetricValue--; + buildCounterGoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents--; } -core.List buildUnnamed93() => - [ - buildGoogleCloudAiplatformV1ExactMatchMetricValue(), - buildGoogleCloudAiplatformV1ExactMatchMetricValue(), - ]; +core.Map +buildUnnamed97() => { + 'x': buildGoogleCloudAiplatformV1EvaluationInstanceInstanceData(), + 'y': buildGoogleCloudAiplatformV1EvaluationInstanceInstanceData(), +}; -void checkUnnamed93( - core.List o, +void checkUnnamed97( + core.Map< + core.String, + api.GoogleCloudAiplatformV1EvaluationInstanceInstanceData + > + o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ExactMatchMetricValue(o[0]); - checkGoogleCloudAiplatformV1ExactMatchMetricValue(o[1]); + checkGoogleCloudAiplatformV1EvaluationInstanceInstanceData(o['x']!); + checkGoogleCloudAiplatformV1EvaluationInstanceInstanceData(o['y']!); } -core.int buildCounterGoogleCloudAiplatformV1ExactMatchResults = 0; -api.GoogleCloudAiplatformV1ExactMatchResults -buildGoogleCloudAiplatformV1ExactMatchResults() { - final o = api.GoogleCloudAiplatformV1ExactMatchResults(); - buildCounterGoogleCloudAiplatformV1ExactMatchResults++; - if (buildCounterGoogleCloudAiplatformV1ExactMatchResults < 3) { - o.exactMatchMetricValues = buildUnnamed93(); +core.int buildCounterGoogleCloudAiplatformV1EvaluationInstanceMapInstance = 0; +api.GoogleCloudAiplatformV1EvaluationInstanceMapInstance +buildGoogleCloudAiplatformV1EvaluationInstanceMapInstance() { + final o = api.GoogleCloudAiplatformV1EvaluationInstanceMapInstance(); + buildCounterGoogleCloudAiplatformV1EvaluationInstanceMapInstance++; + if (buildCounterGoogleCloudAiplatformV1EvaluationInstanceMapInstance < 3) { + o.mapInstance = buildUnnamed97(); } - buildCounterGoogleCloudAiplatformV1ExactMatchResults--; + buildCounterGoogleCloudAiplatformV1EvaluationInstanceMapInstance--; return o; } -void checkGoogleCloudAiplatformV1ExactMatchResults( - api.GoogleCloudAiplatformV1ExactMatchResults o, +void checkGoogleCloudAiplatformV1EvaluationInstanceMapInstance( + api.GoogleCloudAiplatformV1EvaluationInstanceMapInstance o, ) { - buildCounterGoogleCloudAiplatformV1ExactMatchResults++; - if (buildCounterGoogleCloudAiplatformV1ExactMatchResults < 3) { - checkUnnamed93(o.exactMatchMetricValues!); + buildCounterGoogleCloudAiplatformV1EvaluationInstanceMapInstance++; + if (buildCounterGoogleCloudAiplatformV1EvaluationInstanceMapInstance < 3) { + checkUnnamed97(o.mapInstance!); } - buildCounterGoogleCloudAiplatformV1ExactMatchResults--; + buildCounterGoogleCloudAiplatformV1EvaluationInstanceMapInstance--; } -core.int buildCounterGoogleCloudAiplatformV1ExactMatchSpec = 0; -api.GoogleCloudAiplatformV1ExactMatchSpec -buildGoogleCloudAiplatformV1ExactMatchSpec() { - final o = api.GoogleCloudAiplatformV1ExactMatchSpec(); - buildCounterGoogleCloudAiplatformV1ExactMatchSpec++; - if (buildCounterGoogleCloudAiplatformV1ExactMatchSpec < 3) {} - buildCounterGoogleCloudAiplatformV1ExactMatchSpec--; +core.Map buildUnnamed98() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed98(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1EvaluationItem = 0; +api.GoogleCloudAiplatformV1EvaluationItem +buildGoogleCloudAiplatformV1EvaluationItem() { + final o = api.GoogleCloudAiplatformV1EvaluationItem(); + buildCounterGoogleCloudAiplatformV1EvaluationItem++; + if (buildCounterGoogleCloudAiplatformV1EvaluationItem < 3) { + o.createTime = 'foo'; + o.displayName = 'foo'; + o.error = buildGoogleRpcStatus(); + o.evaluationItemType = 'foo'; + o.evaluationRequest = buildGoogleCloudAiplatformV1EvaluationRequest(); + o.evaluationResponse = buildGoogleCloudAiplatformV1EvaluationResult(); + o.gcsUri = 'foo'; + o.labels = buildUnnamed98(); + o.metadata = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.name = 'foo'; + } + buildCounterGoogleCloudAiplatformV1EvaluationItem--; return o; } -void checkGoogleCloudAiplatformV1ExactMatchSpec( - api.GoogleCloudAiplatformV1ExactMatchSpec o, +void checkGoogleCloudAiplatformV1EvaluationItem( + api.GoogleCloudAiplatformV1EvaluationItem o, ) { - buildCounterGoogleCloudAiplatformV1ExactMatchSpec++; - if (buildCounterGoogleCloudAiplatformV1ExactMatchSpec < 3) {} - buildCounterGoogleCloudAiplatformV1ExactMatchSpec--; + buildCounterGoogleCloudAiplatformV1EvaluationItem++; + if (buildCounterGoogleCloudAiplatformV1EvaluationItem < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkGoogleRpcStatus(o.error!); + unittest.expect(o.evaluationItemType!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EvaluationRequest(o.evaluationRequest!); + checkGoogleCloudAiplatformV1EvaluationResult(o.evaluationResponse!); + unittest.expect(o.gcsUri!, unittest.equals('foo')); + checkUnnamed98(o.labels!); + var casted25 = (o.metadata!) as core.Map; + unittest.expect(casted25, unittest.hasLength(3)); + unittest.expect(casted25['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted25['bool'], unittest.equals(true)); + unittest.expect(casted25['string'], unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1EvaluationItem--; } -core.int buildCounterGoogleCloudAiplatformV1Examples = 0; -api.GoogleCloudAiplatformV1Examples buildGoogleCloudAiplatformV1Examples() { - final o = api.GoogleCloudAiplatformV1Examples(); - buildCounterGoogleCloudAiplatformV1Examples++; - if (buildCounterGoogleCloudAiplatformV1Examples < 3) { - o.exampleGcsSource = buildGoogleCloudAiplatformV1ExamplesExampleGcsSource(); - o.nearestNeighborSearchConfig = { +core.int buildCounterGoogleCloudAiplatformV1EvaluationPrompt = 0; +api.GoogleCloudAiplatformV1EvaluationPrompt +buildGoogleCloudAiplatformV1EvaluationPrompt() { + final o = api.GoogleCloudAiplatformV1EvaluationPrompt(); + buildCounterGoogleCloudAiplatformV1EvaluationPrompt++; + if (buildCounterGoogleCloudAiplatformV1EvaluationPrompt < 3) { + o.promptTemplateData = + buildGoogleCloudAiplatformV1EvaluationPromptPromptTemplateData(); + o.text = 'foo'; + o.value = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo', }; - o.neighborCount = 42; - o.presets = buildGoogleCloudAiplatformV1Presets(); } - buildCounterGoogleCloudAiplatformV1Examples--; + buildCounterGoogleCloudAiplatformV1EvaluationPrompt--; return o; } -void checkGoogleCloudAiplatformV1Examples( - api.GoogleCloudAiplatformV1Examples o, +void checkGoogleCloudAiplatformV1EvaluationPrompt( + api.GoogleCloudAiplatformV1EvaluationPrompt o, ) { - buildCounterGoogleCloudAiplatformV1Examples++; - if (buildCounterGoogleCloudAiplatformV1Examples < 3) { - checkGoogleCloudAiplatformV1ExamplesExampleGcsSource(o.exampleGcsSource!); - var casted23 = (o.nearestNeighborSearchConfig!) as core.Map; - unittest.expect(casted23, unittest.hasLength(3)); - unittest.expect(casted23['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted23['bool'], unittest.equals(true)); - unittest.expect(casted23['string'], unittest.equals('foo')); - unittest.expect(o.neighborCount!, unittest.equals(42)); - checkGoogleCloudAiplatformV1Presets(o.presets!); + buildCounterGoogleCloudAiplatformV1EvaluationPrompt++; + if (buildCounterGoogleCloudAiplatformV1EvaluationPrompt < 3) { + checkGoogleCloudAiplatformV1EvaluationPromptPromptTemplateData( + o.promptTemplateData!, + ); + unittest.expect(o.text!, unittest.equals('foo')); + var casted26 = (o.value!) as core.Map; + unittest.expect(casted26, unittest.hasLength(3)); + unittest.expect(casted26['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted26['bool'], unittest.equals(true)); + unittest.expect(casted26['string'], unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1Examples--; + buildCounterGoogleCloudAiplatformV1EvaluationPrompt--; } -core.int buildCounterGoogleCloudAiplatformV1ExamplesExampleGcsSource = 0; -api.GoogleCloudAiplatformV1ExamplesExampleGcsSource -buildGoogleCloudAiplatformV1ExamplesExampleGcsSource() { - final o = api.GoogleCloudAiplatformV1ExamplesExampleGcsSource(); - buildCounterGoogleCloudAiplatformV1ExamplesExampleGcsSource++; - if (buildCounterGoogleCloudAiplatformV1ExamplesExampleGcsSource < 3) { - o.dataFormat = 'foo'; - o.gcsSource = buildGoogleCloudAiplatformV1GcsSource(); +core.Map buildUnnamed99() => { + 'x': buildGoogleCloudAiplatformV1Content(), + 'y': buildGoogleCloudAiplatformV1Content(), +}; + +void checkUnnamed99( + core.Map o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Content(o['x']!); + checkGoogleCloudAiplatformV1Content(o['y']!); +} + +core.int buildCounterGoogleCloudAiplatformV1EvaluationPromptPromptTemplateData = + 0; +api.GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData +buildGoogleCloudAiplatformV1EvaluationPromptPromptTemplateData() { + final o = api.GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData(); + buildCounterGoogleCloudAiplatformV1EvaluationPromptPromptTemplateData++; + if (buildCounterGoogleCloudAiplatformV1EvaluationPromptPromptTemplateData < + 3) { + o.values = buildUnnamed99(); } - buildCounterGoogleCloudAiplatformV1ExamplesExampleGcsSource--; + buildCounterGoogleCloudAiplatformV1EvaluationPromptPromptTemplateData--; return o; } -void checkGoogleCloudAiplatformV1ExamplesExampleGcsSource( - api.GoogleCloudAiplatformV1ExamplesExampleGcsSource o, +void checkGoogleCloudAiplatformV1EvaluationPromptPromptTemplateData( + api.GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData o, ) { - buildCounterGoogleCloudAiplatformV1ExamplesExampleGcsSource++; - if (buildCounterGoogleCloudAiplatformV1ExamplesExampleGcsSource < 3) { - unittest.expect(o.dataFormat!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1GcsSource(o.gcsSource!); + buildCounterGoogleCloudAiplatformV1EvaluationPromptPromptTemplateData++; + if (buildCounterGoogleCloudAiplatformV1EvaluationPromptPromptTemplateData < + 3) { + checkUnnamed99(o.values!); } - buildCounterGoogleCloudAiplatformV1ExamplesExampleGcsSource--; + buildCounterGoogleCloudAiplatformV1EvaluationPromptPromptTemplateData--; } -core.List -buildUnnamed94() => [ - buildGoogleCloudAiplatformV1ExamplesRestrictionsNamespace(), - buildGoogleCloudAiplatformV1ExamplesRestrictionsNamespace(), +core.List buildUnnamed100() => [ + buildGoogleCloudAiplatformV1CandidateResponse(), + buildGoogleCloudAiplatformV1CandidateResponse(), ]; -void checkUnnamed94( - core.List o, +void checkUnnamed100( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ExamplesRestrictionsNamespace(o[0]); - checkGoogleCloudAiplatformV1ExamplesRestrictionsNamespace(o[1]); + checkGoogleCloudAiplatformV1CandidateResponse(o[0]); + checkGoogleCloudAiplatformV1CandidateResponse(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ExamplesOverride = 0; -api.GoogleCloudAiplatformV1ExamplesOverride -buildGoogleCloudAiplatformV1ExamplesOverride() { - final o = api.GoogleCloudAiplatformV1ExamplesOverride(); - buildCounterGoogleCloudAiplatformV1ExamplesOverride++; - if (buildCounterGoogleCloudAiplatformV1ExamplesOverride < 3) { - o.crowdingCount = 42; - o.dataFormat = 'foo'; - o.neighborCount = 42; - o.restrictions = buildUnnamed94(); - o.returnEmbeddings = true; +core.Map +buildUnnamed101() => { + 'x': buildGoogleCloudAiplatformV1RubricGroup(), + 'y': buildGoogleCloudAiplatformV1RubricGroup(), +}; + +void checkUnnamed101( + core.Map o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1RubricGroup(o['x']!); + checkGoogleCloudAiplatformV1RubricGroup(o['y']!); +} + +core.int buildCounterGoogleCloudAiplatformV1EvaluationRequest = 0; +api.GoogleCloudAiplatformV1EvaluationRequest +buildGoogleCloudAiplatformV1EvaluationRequest() { + final o = api.GoogleCloudAiplatformV1EvaluationRequest(); + buildCounterGoogleCloudAiplatformV1EvaluationRequest++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRequest < 3) { + o.candidateResponses = buildUnnamed100(); + o.goldenResponse = buildGoogleCloudAiplatformV1CandidateResponse(); + o.prompt = buildGoogleCloudAiplatformV1EvaluationPrompt(); + o.rubrics = buildUnnamed101(); } - buildCounterGoogleCloudAiplatformV1ExamplesOverride--; + buildCounterGoogleCloudAiplatformV1EvaluationRequest--; return o; } -void checkGoogleCloudAiplatformV1ExamplesOverride( - api.GoogleCloudAiplatformV1ExamplesOverride o, +void checkGoogleCloudAiplatformV1EvaluationRequest( + api.GoogleCloudAiplatformV1EvaluationRequest o, ) { - buildCounterGoogleCloudAiplatformV1ExamplesOverride++; - if (buildCounterGoogleCloudAiplatformV1ExamplesOverride < 3) { - unittest.expect(o.crowdingCount!, unittest.equals(42)); - unittest.expect(o.dataFormat!, unittest.equals('foo')); - unittest.expect(o.neighborCount!, unittest.equals(42)); - checkUnnamed94(o.restrictions!); - unittest.expect(o.returnEmbeddings!, unittest.isTrue); + buildCounterGoogleCloudAiplatformV1EvaluationRequest++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRequest < 3) { + checkUnnamed100(o.candidateResponses!); + checkGoogleCloudAiplatformV1CandidateResponse(o.goldenResponse!); + checkGoogleCloudAiplatformV1EvaluationPrompt(o.prompt!); + checkUnnamed101(o.rubrics!); } - buildCounterGoogleCloudAiplatformV1ExamplesOverride--; + buildCounterGoogleCloudAiplatformV1EvaluationRequest--; } -core.List buildUnnamed95() => ['foo', 'foo']; +core.List buildUnnamed102() => [ + buildGoogleCloudAiplatformV1CandidateResult(), + buildGoogleCloudAiplatformV1CandidateResult(), +]; -void checkUnnamed95(core.List o) { +void checkUnnamed102(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1CandidateResult(o[0]); + checkGoogleCloudAiplatformV1CandidateResult(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1EvaluationResult = 0; +api.GoogleCloudAiplatformV1EvaluationResult +buildGoogleCloudAiplatformV1EvaluationResult() { + final o = api.GoogleCloudAiplatformV1EvaluationResult(); + buildCounterGoogleCloudAiplatformV1EvaluationResult++; + if (buildCounterGoogleCloudAiplatformV1EvaluationResult < 3) { + o.candidateResults = buildUnnamed102(); + o.evaluationRequest = 'foo'; + o.evaluationRun = 'foo'; + o.metadata = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.metric = 'foo'; + o.request = buildGoogleCloudAiplatformV1EvaluationRequest(); + } + buildCounterGoogleCloudAiplatformV1EvaluationResult--; + return o; } -core.List buildUnnamed96() => ['foo', 'foo']; - -void checkUnnamed96(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1EvaluationResult( + api.GoogleCloudAiplatformV1EvaluationResult o, +) { + buildCounterGoogleCloudAiplatformV1EvaluationResult++; + if (buildCounterGoogleCloudAiplatformV1EvaluationResult < 3) { + checkUnnamed102(o.candidateResults!); + unittest.expect(o.evaluationRequest!, unittest.equals('foo')); + unittest.expect(o.evaluationRun!, unittest.equals('foo')); + var casted27 = (o.metadata!) as core.Map; + unittest.expect(casted27, unittest.hasLength(3)); + unittest.expect(casted27['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted27['bool'], unittest.equals(true)); + unittest.expect(casted27['string'], unittest.equals('foo')); + unittest.expect(o.metric!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EvaluationRequest(o.request!); + } + buildCounterGoogleCloudAiplatformV1EvaluationResult--; } -core.int buildCounterGoogleCloudAiplatformV1ExamplesRestrictionsNamespace = 0; -api.GoogleCloudAiplatformV1ExamplesRestrictionsNamespace -buildGoogleCloudAiplatformV1ExamplesRestrictionsNamespace() { - final o = api.GoogleCloudAiplatformV1ExamplesRestrictionsNamespace(); - buildCounterGoogleCloudAiplatformV1ExamplesRestrictionsNamespace++; - if (buildCounterGoogleCloudAiplatformV1ExamplesRestrictionsNamespace < 3) { - o.allow = buildUnnamed95(); - o.deny = buildUnnamed96(); - o.namespaceName = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1EvaluationResults = 0; +api.GoogleCloudAiplatformV1EvaluationResults +buildGoogleCloudAiplatformV1EvaluationResults() { + final o = api.GoogleCloudAiplatformV1EvaluationResults(); + buildCounterGoogleCloudAiplatformV1EvaluationResults++; + if (buildCounterGoogleCloudAiplatformV1EvaluationResults < 3) { + o.evaluationSet = 'foo'; + o.summaryMetrics = buildGoogleCloudAiplatformV1SummaryMetrics(); } - buildCounterGoogleCloudAiplatformV1ExamplesRestrictionsNamespace--; + buildCounterGoogleCloudAiplatformV1EvaluationResults--; return o; } -void checkGoogleCloudAiplatformV1ExamplesRestrictionsNamespace( - api.GoogleCloudAiplatformV1ExamplesRestrictionsNamespace o, +void checkGoogleCloudAiplatformV1EvaluationResults( + api.GoogleCloudAiplatformV1EvaluationResults o, ) { - buildCounterGoogleCloudAiplatformV1ExamplesRestrictionsNamespace++; - if (buildCounterGoogleCloudAiplatformV1ExamplesRestrictionsNamespace < 3) { - checkUnnamed95(o.allow!); - checkUnnamed96(o.deny!); - unittest.expect(o.namespaceName!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1EvaluationResults++; + if (buildCounterGoogleCloudAiplatformV1EvaluationResults < 3) { + unittest.expect(o.evaluationSet!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1SummaryMetrics(o.summaryMetrics!); } - buildCounterGoogleCloudAiplatformV1ExamplesRestrictionsNamespace--; + buildCounterGoogleCloudAiplatformV1EvaluationResults--; } -core.int buildCounterGoogleCloudAiplatformV1ExecutableCode = 0; -api.GoogleCloudAiplatformV1ExecutableCode -buildGoogleCloudAiplatformV1ExecutableCode() { - final o = api.GoogleCloudAiplatformV1ExecutableCode(); - buildCounterGoogleCloudAiplatformV1ExecutableCode++; - if (buildCounterGoogleCloudAiplatformV1ExecutableCode < 3) { - o.code = 'foo'; - o.language = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1EvaluationRubricConfig = 0; +api.GoogleCloudAiplatformV1EvaluationRubricConfig +buildGoogleCloudAiplatformV1EvaluationRubricConfig() { + final o = api.GoogleCloudAiplatformV1EvaluationRubricConfig(); + buildCounterGoogleCloudAiplatformV1EvaluationRubricConfig++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRubricConfig < 3) { + o.predefinedRubricGenerationSpec = + buildGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec(); + o.rubricGenerationSpec = + buildGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec(); + o.rubricGroupKey = 'foo'; } - buildCounterGoogleCloudAiplatformV1ExecutableCode--; + buildCounterGoogleCloudAiplatformV1EvaluationRubricConfig--; return o; } -void checkGoogleCloudAiplatformV1ExecutableCode( - api.GoogleCloudAiplatformV1ExecutableCode o, +void checkGoogleCloudAiplatformV1EvaluationRubricConfig( + api.GoogleCloudAiplatformV1EvaluationRubricConfig o, ) { - buildCounterGoogleCloudAiplatformV1ExecutableCode++; - if (buildCounterGoogleCloudAiplatformV1ExecutableCode < 3) { - unittest.expect(o.code!, unittest.equals('foo')); - unittest.expect(o.language!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1EvaluationRubricConfig++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRubricConfig < 3) { + checkGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec( + o.predefinedRubricGenerationSpec!, + ); + checkGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec( + o.rubricGenerationSpec!, + ); + unittest.expect(o.rubricGroupKey!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ExecutableCode--; + buildCounterGoogleCloudAiplatformV1EvaluationRubricConfig--; } -core.Map buildUnnamed97() => {'x': 'foo', 'y': 'foo'}; +core.Map +buildUnnamed103() => { + 'x': buildGoogleCloudAiplatformV1EvaluationRunInferenceConfig(), + 'y': buildGoogleCloudAiplatformV1EvaluationRunInferenceConfig(), +}; -void checkUnnamed97(core.Map o) { +void checkUnnamed103( + core.Map + o, +) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EvaluationRunInferenceConfig(o['x']!); + checkGoogleCloudAiplatformV1EvaluationRunInferenceConfig(o['y']!); } -core.Map buildUnnamed98() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, +core.Map buildUnnamed104() => { + 'x': 'foo', + 'y': 'foo', }; -void checkUnnamed98(core.Map o) { +void checkUnnamed104(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted24 = (o['x']!) as core.Map; - unittest.expect(casted24, unittest.hasLength(3)); - unittest.expect(casted24['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted24['bool'], unittest.equals(true)); - unittest.expect(casted24['string'], unittest.equals('foo')); - var casted25 = (o['y']!) as core.Map; - unittest.expect(casted25, unittest.hasLength(3)); - unittest.expect(casted25['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted25['bool'], unittest.equals(true)); - unittest.expect(casted25['string'], unittest.equals('foo')); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1Execution = 0; -api.GoogleCloudAiplatformV1Execution buildGoogleCloudAiplatformV1Execution() { - final o = api.GoogleCloudAiplatformV1Execution(); - buildCounterGoogleCloudAiplatformV1Execution++; - if (buildCounterGoogleCloudAiplatformV1Execution < 3) { +core.int buildCounterGoogleCloudAiplatformV1EvaluationRun = 0; +api.GoogleCloudAiplatformV1EvaluationRun +buildGoogleCloudAiplatformV1EvaluationRun() { + final o = api.GoogleCloudAiplatformV1EvaluationRun(); + buildCounterGoogleCloudAiplatformV1EvaluationRun++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRun < 3) { + o.completionTime = 'foo'; o.createTime = 'foo'; - o.description = 'foo'; + o.dataSource = buildGoogleCloudAiplatformV1EvaluationRunDataSource(); o.displayName = 'foo'; - o.etag = 'foo'; - o.labels = buildUnnamed97(); - o.metadata = buildUnnamed98(); + o.error = buildGoogleRpcStatus(); + o.evaluationConfig = + buildGoogleCloudAiplatformV1EvaluationRunEvaluationConfig(); + o.evaluationResults = buildGoogleCloudAiplatformV1EvaluationResults(); + o.evaluationSetSnapshot = 'foo'; + o.inferenceConfigs = buildUnnamed103(); + o.labels = buildUnnamed104(); + o.metadata = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; o.name = 'foo'; - o.schemaTitle = 'foo'; - o.schemaVersion = 'foo'; o.state = 'foo'; - o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1Execution--; + buildCounterGoogleCloudAiplatformV1EvaluationRun--; return o; } -void checkGoogleCloudAiplatformV1Execution( - api.GoogleCloudAiplatformV1Execution o, +void checkGoogleCloudAiplatformV1EvaluationRun( + api.GoogleCloudAiplatformV1EvaluationRun o, ) { - buildCounterGoogleCloudAiplatformV1Execution++; - if (buildCounterGoogleCloudAiplatformV1Execution < 3) { + buildCounterGoogleCloudAiplatformV1EvaluationRun++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRun < 3) { + unittest.expect(o.completionTime!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.description!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EvaluationRunDataSource(o.dataSource!); unittest.expect(o.displayName!, unittest.equals('foo')); - unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed97(o.labels!); - checkUnnamed98(o.metadata!); + checkGoogleRpcStatus(o.error!); + checkGoogleCloudAiplatformV1EvaluationRunEvaluationConfig( + o.evaluationConfig!, + ); + checkGoogleCloudAiplatformV1EvaluationResults(o.evaluationResults!); + unittest.expect(o.evaluationSetSnapshot!, unittest.equals('foo')); + checkUnnamed103(o.inferenceConfigs!); + checkUnnamed104(o.labels!); + var casted28 = (o.metadata!) as core.Map; + unittest.expect(casted28, unittest.hasLength(3)); + unittest.expect(casted28['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted28['bool'], unittest.equals(true)); + unittest.expect(casted28['string'], unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.schemaTitle!, unittest.equals('foo')); - unittest.expect(o.schemaVersion!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); - unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1Execution--; -} - -core.List buildUnnamed99() => [ - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -]; - -void checkUnnamed99(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - var casted26 = (o[0]) as core.Map; - unittest.expect(casted26, unittest.hasLength(3)); - unittest.expect(casted26['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted26['bool'], unittest.equals(true)); - unittest.expect(casted26['string'], unittest.equals('foo')); - var casted27 = (o[1]) as core.Map; - unittest.expect(casted27, unittest.hasLength(3)); - unittest.expect(casted27['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted27['bool'], unittest.equals(true)); - unittest.expect(casted27['string'], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1EvaluationRun--; } -core.int buildCounterGoogleCloudAiplatformV1ExplainRequest = 0; -api.GoogleCloudAiplatformV1ExplainRequest -buildGoogleCloudAiplatformV1ExplainRequest() { - final o = api.GoogleCloudAiplatformV1ExplainRequest(); - buildCounterGoogleCloudAiplatformV1ExplainRequest++; - if (buildCounterGoogleCloudAiplatformV1ExplainRequest < 3) { - o.deployedModelId = 'foo'; - o.explanationSpecOverride = - buildGoogleCloudAiplatformV1ExplanationSpecOverride(); - o.instances = buildUnnamed99(); - o.parameters = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; +core.int buildCounterGoogleCloudAiplatformV1EvaluationRunDataSource = 0; +api.GoogleCloudAiplatformV1EvaluationRunDataSource +buildGoogleCloudAiplatformV1EvaluationRunDataSource() { + final o = api.GoogleCloudAiplatformV1EvaluationRunDataSource(); + buildCounterGoogleCloudAiplatformV1EvaluationRunDataSource++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunDataSource < 3) { + o.bigqueryRequestSet = buildGoogleCloudAiplatformV1BigQueryRequestSet(); + o.evaluationSet = 'foo'; } - buildCounterGoogleCloudAiplatformV1ExplainRequest--; + buildCounterGoogleCloudAiplatformV1EvaluationRunDataSource--; return o; } -void checkGoogleCloudAiplatformV1ExplainRequest( - api.GoogleCloudAiplatformV1ExplainRequest o, +void checkGoogleCloudAiplatformV1EvaluationRunDataSource( + api.GoogleCloudAiplatformV1EvaluationRunDataSource o, ) { - buildCounterGoogleCloudAiplatformV1ExplainRequest++; - if (buildCounterGoogleCloudAiplatformV1ExplainRequest < 3) { - unittest.expect(o.deployedModelId!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ExplanationSpecOverride( - o.explanationSpecOverride!, - ); - checkUnnamed99(o.instances!); - var casted28 = (o.parameters!) as core.Map; - unittest.expect(casted28, unittest.hasLength(3)); - unittest.expect(casted28['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted28['bool'], unittest.equals(true)); - unittest.expect(casted28['string'], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1EvaluationRunDataSource++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunDataSource < 3) { + checkGoogleCloudAiplatformV1BigQueryRequestSet(o.bigqueryRequestSet!); + unittest.expect(o.evaluationSet!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ExplainRequest--; + buildCounterGoogleCloudAiplatformV1EvaluationRunDataSource--; } -core.List buildUnnamed100() => [ - buildGoogleCloudAiplatformV1Explanation(), - buildGoogleCloudAiplatformV1Explanation(), +core.List buildUnnamed105() => [ + buildGoogleCloudAiplatformV1EvaluationRunMetric(), + buildGoogleCloudAiplatformV1EvaluationRunMetric(), ]; -void checkUnnamed100(core.List o) { +void checkUnnamed105( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Explanation(o[0]); - checkGoogleCloudAiplatformV1Explanation(o[1]); + checkGoogleCloudAiplatformV1EvaluationRunMetric(o[0]); + checkGoogleCloudAiplatformV1EvaluationRunMetric(o[1]); } -core.List buildUnnamed101() => [ - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, +core.List +buildUnnamed106() => [ + buildGoogleCloudAiplatformV1EvaluationRubricConfig(), + buildGoogleCloudAiplatformV1EvaluationRubricConfig(), ]; -void checkUnnamed101(core.List o) { +void checkUnnamed106( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - var casted29 = (o[0]) as core.Map; - unittest.expect(casted29, unittest.hasLength(3)); - unittest.expect(casted29['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted29['bool'], unittest.equals(true)); - unittest.expect(casted29['string'], unittest.equals('foo')); - var casted30 = (o[1]) as core.Map; - unittest.expect(casted30, unittest.hasLength(3)); - unittest.expect(casted30['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted30['bool'], unittest.equals(true)); - unittest.expect(casted30['string'], unittest.equals('foo')); + checkGoogleCloudAiplatformV1EvaluationRubricConfig(o[0]); + checkGoogleCloudAiplatformV1EvaluationRubricConfig(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfig = 0; +api.GoogleCloudAiplatformV1EvaluationRunEvaluationConfig +buildGoogleCloudAiplatformV1EvaluationRunEvaluationConfig() { + final o = api.GoogleCloudAiplatformV1EvaluationRunEvaluationConfig(); + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfig++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfig < 3) { + o.autoraterConfig = + buildGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig(); + o.metrics = buildUnnamed105(); + o.outputConfig = + buildGoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig(); + o.promptTemplate = + buildGoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate(); + o.rubricConfigs = buildUnnamed106(); + } + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfig--; + return o; } -core.int buildCounterGoogleCloudAiplatformV1ExplainResponse = 0; -api.GoogleCloudAiplatformV1ExplainResponse -buildGoogleCloudAiplatformV1ExplainResponse() { - final o = api.GoogleCloudAiplatformV1ExplainResponse(); - buildCounterGoogleCloudAiplatformV1ExplainResponse++; - if (buildCounterGoogleCloudAiplatformV1ExplainResponse < 3) { - o.deployedModelId = 'foo'; - o.explanations = buildUnnamed100(); - o.predictions = buildUnnamed101(); +void checkGoogleCloudAiplatformV1EvaluationRunEvaluationConfig( + api.GoogleCloudAiplatformV1EvaluationRunEvaluationConfig o, +) { + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfig++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfig < 3) { + checkGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig( + o.autoraterConfig!, + ); + checkUnnamed105(o.metrics!); + checkGoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig( + o.outputConfig!, + ); + checkGoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate( + o.promptTemplate!, + ); + checkUnnamed106(o.rubricConfigs!); } - buildCounterGoogleCloudAiplatformV1ExplainResponse--; + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfig--; +} + +core.int +buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig = + 0; +api.GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig +buildGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig() { + final o = + api.GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig(); + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig < + 3) { + o.autoraterModel = 'foo'; + o.generationConfig = buildGoogleCloudAiplatformV1GenerationConfig(); + o.sampleCount = 42; + } + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig--; return o; } -void checkGoogleCloudAiplatformV1ExplainResponse( - api.GoogleCloudAiplatformV1ExplainResponse o, +void checkGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig( + api.GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig o, ) { - buildCounterGoogleCloudAiplatformV1ExplainResponse++; - if (buildCounterGoogleCloudAiplatformV1ExplainResponse < 3) { - unittest.expect(o.deployedModelId!, unittest.equals('foo')); - checkUnnamed100(o.explanations!); - checkUnnamed101(o.predictions!); + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig < + 3) { + unittest.expect(o.autoraterModel!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1GenerationConfig(o.generationConfig!); + unittest.expect(o.sampleCount!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1ExplainResponse--; + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig--; } -core.List buildUnnamed102() => [ - buildGoogleCloudAiplatformV1Attribution(), - buildGoogleCloudAiplatformV1Attribution(), -]; +core.int +buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig = + 0; +api.GoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig +buildGoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig() { + final o = + api.GoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig(); + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig < + 3) { + o.bigqueryDestination = buildGoogleCloudAiplatformV1BigQueryDestination(); + o.gcsDestination = buildGoogleCloudAiplatformV1GcsDestination(); + } + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig--; + return o; +} -void checkUnnamed102(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Attribution(o[0]); - checkGoogleCloudAiplatformV1Attribution(o[1]); +void checkGoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig( + api.GoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig o, +) { + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig < + 3) { + checkGoogleCloudAiplatformV1BigQueryDestination(o.bigqueryDestination!); + checkGoogleCloudAiplatformV1GcsDestination(o.gcsDestination!); + } + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig--; } -core.List buildUnnamed103() => [ - buildGoogleCloudAiplatformV1Neighbor(), - buildGoogleCloudAiplatformV1Neighbor(), -]; +core.int +buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate = + 0; +api.GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate +buildGoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate() { + final o = + api.GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate(); + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate < + 3) { + o.gcsUri = 'foo'; + o.promptTemplate = 'foo'; + } + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate--; + return o; +} -void checkUnnamed103(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Neighbor(o[0]); - checkGoogleCloudAiplatformV1Neighbor(o[1]); +void checkGoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate( + api.GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate o, +) { + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate < + 3) { + unittest.expect(o.gcsUri!, unittest.equals('foo')); + unittest.expect(o.promptTemplate!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate--; } -core.int buildCounterGoogleCloudAiplatformV1Explanation = 0; -api.GoogleCloudAiplatformV1Explanation -buildGoogleCloudAiplatformV1Explanation() { - final o = api.GoogleCloudAiplatformV1Explanation(); - buildCounterGoogleCloudAiplatformV1Explanation++; - if (buildCounterGoogleCloudAiplatformV1Explanation < 3) { - o.attributions = buildUnnamed102(); - o.neighbors = buildUnnamed103(); +core.int buildCounterGoogleCloudAiplatformV1EvaluationRunInferenceConfig = 0; +api.GoogleCloudAiplatformV1EvaluationRunInferenceConfig +buildGoogleCloudAiplatformV1EvaluationRunInferenceConfig() { + final o = api.GoogleCloudAiplatformV1EvaluationRunInferenceConfig(); + buildCounterGoogleCloudAiplatformV1EvaluationRunInferenceConfig++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunInferenceConfig < 3) { + o.generationConfig = buildGoogleCloudAiplatformV1GenerationConfig(); + o.model = 'foo'; } - buildCounterGoogleCloudAiplatformV1Explanation--; + buildCounterGoogleCloudAiplatformV1EvaluationRunInferenceConfig--; return o; } -void checkGoogleCloudAiplatformV1Explanation( - api.GoogleCloudAiplatformV1Explanation o, +void checkGoogleCloudAiplatformV1EvaluationRunInferenceConfig( + api.GoogleCloudAiplatformV1EvaluationRunInferenceConfig o, ) { - buildCounterGoogleCloudAiplatformV1Explanation++; - if (buildCounterGoogleCloudAiplatformV1Explanation < 3) { - checkUnnamed102(o.attributions!); - checkUnnamed103(o.neighbors!); + buildCounterGoogleCloudAiplatformV1EvaluationRunInferenceConfig++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunInferenceConfig < 3) { + checkGoogleCloudAiplatformV1GenerationConfig(o.generationConfig!); + unittest.expect(o.model!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1Explanation--; + buildCounterGoogleCloudAiplatformV1EvaluationRunInferenceConfig--; } -core.Map< - core.String, - api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadata -> -buildUnnamed104() => { - 'x': buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadata(), - 'y': buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadata(), -}; +core.int buildCounterGoogleCloudAiplatformV1EvaluationRunMetric = 0; +api.GoogleCloudAiplatformV1EvaluationRunMetric +buildGoogleCloudAiplatformV1EvaluationRunMetric() { + final o = api.GoogleCloudAiplatformV1EvaluationRunMetric(); + buildCounterGoogleCloudAiplatformV1EvaluationRunMetric++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunMetric < 3) { + o.llmBasedMetricSpec = + buildGoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec(); + o.metric = 'foo'; + o.predefinedMetricSpec = + buildGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec(); + o.rubricBasedMetricSpec = + buildGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec(); + } + buildCounterGoogleCloudAiplatformV1EvaluationRunMetric--; + return o; +} -void checkUnnamed104( - core.Map< - core.String, - api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadata - > - o, +void checkGoogleCloudAiplatformV1EvaluationRunMetric( + api.GoogleCloudAiplatformV1EvaluationRunMetric o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadata(o['x']!); - checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadata(o['y']!); + buildCounterGoogleCloudAiplatformV1EvaluationRunMetric++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunMetric < 3) { + checkGoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec( + o.llmBasedMetricSpec!, + ); + unittest.expect(o.metric!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec( + o.predefinedMetricSpec!, + ); + checkGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec( + o.rubricBasedMetricSpec!, + ); + } + buildCounterGoogleCloudAiplatformV1EvaluationRunMetric--; } -core.Map< - core.String, - api.GoogleCloudAiplatformV1ExplanationMetadataOutputMetadata -> -buildUnnamed105() => { - 'x': buildGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata(), - 'y': buildGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata(), +core.Map buildUnnamed107() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, }; -void checkUnnamed105( - core.Map< - core.String, - api.GoogleCloudAiplatformV1ExplanationMetadataOutputMetadata - > - o, -) { +void checkUnnamed107(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata(o['x']!); - checkGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata(o['y']!); + var casted29 = (o['x']!) as core.Map; + unittest.expect(casted29, unittest.hasLength(3)); + unittest.expect(casted29['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted29['bool'], unittest.equals(true)); + unittest.expect(casted29['string'], unittest.equals('foo')); + var casted30 = (o['y']!) as core.Map; + unittest.expect(casted30, unittest.hasLength(3)); + unittest.expect(casted30['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted30['bool'], unittest.equals(true)); + unittest.expect(casted30['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ExplanationMetadata = 0; -api.GoogleCloudAiplatformV1ExplanationMetadata -buildGoogleCloudAiplatformV1ExplanationMetadata() { - final o = api.GoogleCloudAiplatformV1ExplanationMetadata(); - buildCounterGoogleCloudAiplatformV1ExplanationMetadata++; - if (buildCounterGoogleCloudAiplatformV1ExplanationMetadata < 3) { - o.featureAttributionsSchemaUri = 'foo'; - o.inputs = buildUnnamed104(); - o.latentSpaceSource = 'foo'; - o.outputs = buildUnnamed105(); +core.int +buildCounterGoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec = 0; +api.GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec +buildGoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec() { + final o = api.GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec(); + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec < + 3) { + o.additionalConfig = buildUnnamed107(); + o.judgeAutoraterConfig = + buildGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig(); + o.metricPromptTemplate = 'foo'; + o.predefinedRubricGenerationSpec = + buildGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec(); + o.rubricGenerationSpec = + buildGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec(); + o.rubricGroupKey = 'foo'; + o.systemInstruction = 'foo'; } - buildCounterGoogleCloudAiplatformV1ExplanationMetadata--; + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec--; return o; } -void checkGoogleCloudAiplatformV1ExplanationMetadata( - api.GoogleCloudAiplatformV1ExplanationMetadata o, +void checkGoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec( + api.GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec o, ) { - buildCounterGoogleCloudAiplatformV1ExplanationMetadata++; - if (buildCounterGoogleCloudAiplatformV1ExplanationMetadata < 3) { - unittest.expect(o.featureAttributionsSchemaUri!, unittest.equals('foo')); - checkUnnamed104(o.inputs!); - unittest.expect(o.latentSpaceSource!, unittest.equals('foo')); - checkUnnamed105(o.outputs!); + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec < + 3) { + checkUnnamed107(o.additionalConfig!); + checkGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig( + o.judgeAutoraterConfig!, + ); + unittest.expect(o.metricPromptTemplate!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec( + o.predefinedRubricGenerationSpec!, + ); + checkGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec( + o.rubricGenerationSpec!, + ); + unittest.expect(o.rubricGroupKey!, unittest.equals('foo')); + unittest.expect(o.systemInstruction!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ExplanationMetadata--; + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec--; } -core.List buildUnnamed106() => [ - { +core.Map buildUnnamed108() => { + 'x': { 'list': [1, 2, 3], 'bool': true, 'string': 'foo', }, - { + 'y': { 'list': [1, 2, 3], 'bool': true, 'string': 'foo', }, -]; +}; -void checkUnnamed106(core.List o) { +void checkUnnamed108(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted31 = (o[0]) as core.Map; + var casted31 = (o['x']!) as core.Map; unittest.expect(casted31, unittest.hasLength(3)); unittest.expect(casted31['list'], unittest.equals([1, 2, 3])); unittest.expect(casted31['bool'], unittest.equals(true)); unittest.expect(casted31['string'], unittest.equals('foo')); - var casted32 = (o[1]) as core.Map; + var casted32 = (o['y']!) as core.Map; unittest.expect(casted32, unittest.hasLength(3)); unittest.expect(casted32['list'], unittest.equals([1, 2, 3])); unittest.expect(casted32['bool'], unittest.equals(true)); unittest.expect(casted32['string'], unittest.equals('foo')); } -core.List buildUnnamed107() => ['foo', 'foo']; - -void checkUnnamed107(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +core.int +buildCounterGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec = 0; +api.GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec +buildGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec() { + final o = + api.GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec(); + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec < + 3) { + o.metricSpecName = 'foo'; + o.parameters = buildUnnamed108(); + } + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec--; + return o; } -core.List buildUnnamed108() => [ - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -]; - -void checkUnnamed108(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - var casted33 = (o[0]) as core.Map; - unittest.expect(casted33, unittest.hasLength(3)); - unittest.expect(casted33['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted33['bool'], unittest.equals(true)); - unittest.expect(casted33['string'], unittest.equals('foo')); - var casted34 = (o[1]) as core.Map; - unittest.expect(casted34, unittest.hasLength(3)); - unittest.expect(casted34['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted34['bool'], unittest.equals(true)); - unittest.expect(casted34['string'], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec( + api.GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec o, +) { + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec < + 3) { + unittest.expect(o.metricSpecName!, unittest.equals('foo')); + checkUnnamed108(o.parameters!); + } + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec--; } -core.int buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadata = - 0; -api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadata -buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadata() { - final o = api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadata(); - buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadata++; - if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadata < 3) { - o.denseShapeTensorName = 'foo'; - o.encodedBaselines = buildUnnamed106(); - o.encodedTensorName = 'foo'; - o.encoding = 'foo'; - o.featureValueDomain = - buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain(); - o.groupName = 'foo'; - o.indexFeatureMapping = buildUnnamed107(); - o.indicesTensorName = 'foo'; - o.inputBaselines = buildUnnamed108(); - o.inputTensorName = 'foo'; - o.modality = 'foo'; - o.visualization = - buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization(); +core.int +buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec = 0; +api.GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec +buildGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec() { + final o = + api.GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec(); + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec < + 3) { + o.inlineRubrics = + buildGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics(); + o.judgeAutoraterConfig = + buildGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig(); + o.metricPromptTemplate = 'foo'; + o.rubricGenerationSpec = + buildGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec(); + o.rubricGroupKey = 'foo'; } - buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadata--; + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec--; return o; } -void checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadata( - api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadata o, +void checkGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec( + api.GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec o, ) { - buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadata++; - if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadata < 3) { - unittest.expect(o.denseShapeTensorName!, unittest.equals('foo')); - checkUnnamed106(o.encodedBaselines!); - unittest.expect(o.encodedTensorName!, unittest.equals('foo')); - unittest.expect(o.encoding!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain( - o.featureValueDomain!, + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec < + 3) { + checkGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics( + o.inlineRubrics!, ); - unittest.expect(o.groupName!, unittest.equals('foo')); - checkUnnamed107(o.indexFeatureMapping!); - unittest.expect(o.indicesTensorName!, unittest.equals('foo')); - checkUnnamed108(o.inputBaselines!); - unittest.expect(o.inputTensorName!, unittest.equals('foo')); - unittest.expect(o.modality!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization( - o.visualization!, + checkGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig( + o.judgeAutoraterConfig!, + ); + unittest.expect(o.metricPromptTemplate!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec( + o.rubricGenerationSpec!, ); + unittest.expect(o.rubricGroupKey!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadata--; + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec--; +} + +core.List buildUnnamed109() => [ + buildGoogleCloudAiplatformV1Rubric(), + buildGoogleCloudAiplatformV1Rubric(), +]; + +void checkUnnamed109(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Rubric(o[0]); + checkGoogleCloudAiplatformV1Rubric(o[1]); } core.int -buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain = +buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics = 0; -api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain -buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain() { +api.GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics +buildGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics() { final o = - api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain(); - buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain++; - if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain < + api.GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics(); + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics < 3) { - o.maxValue = 42.0; - o.minValue = 42.0; - o.originalMean = 42.0; - o.originalStddev = 42.0; + o.rubrics = buildUnnamed109(); } - buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain--; + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics--; return o; } void -checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain( - api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain +checkGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics( + api.GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics o, ) { - buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain++; - if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain < + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics < 3) { - unittest.expect(o.maxValue!, unittest.equals(42.0)); - unittest.expect(o.minValue!, unittest.equals(42.0)); - unittest.expect(o.originalMean!, unittest.equals(42.0)); - unittest.expect(o.originalStddev!, unittest.equals(42.0)); + checkUnnamed109(o.rubrics!); } - buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain--; + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics--; +} + +core.List buildUnnamed110() => ['foo', 'foo']; + +void checkUnnamed110(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } core.int -buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization = - 0; -api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization -buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization() { +buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec = 0; +api.GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec +buildGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec() { final o = - api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization(); - buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization++; - if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization < + api.GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec(); + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec < 3) { - o.clipPercentLowerbound = 42.0; - o.clipPercentUpperbound = 42.0; - o.colorMap = 'foo'; - o.overlayType = 'foo'; - o.polarity = 'foo'; - o.type = 'foo'; + o.modelConfig = + buildGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig(); + o.promptTemplate = 'foo'; + o.rubricContentType = 'foo'; + o.rubricTypeOntology = buildUnnamed110(); } - buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization--; + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec--; return o; } -void checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization( - api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization o, +void checkGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec( + api.GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec o, ) { - buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization++; - if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization < + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec++; + if (buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec < 3) { - unittest.expect(o.clipPercentLowerbound!, unittest.equals(42.0)); - unittest.expect(o.clipPercentUpperbound!, unittest.equals(42.0)); - unittest.expect(o.colorMap!, unittest.equals('foo')); - unittest.expect(o.overlayType!, unittest.equals('foo')); - unittest.expect(o.polarity!, unittest.equals('foo')); - unittest.expect(o.type!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig( + o.modelConfig!, + ); + unittest.expect(o.promptTemplate!, unittest.equals('foo')); + unittest.expect(o.rubricContentType!, unittest.equals('foo')); + checkUnnamed110(o.rubricTypeOntology!); } - buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization--; + buildCounterGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec--; } -core.int buildCounterGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata = - 0; -api.GoogleCloudAiplatformV1ExplanationMetadataOutputMetadata -buildGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata() { - final o = api.GoogleCloudAiplatformV1ExplanationMetadataOutputMetadata(); - buildCounterGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata++; - if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata < - 3) { - o.displayNameMappingKey = 'foo'; - o.indexDisplayNameMapping = { +core.List buildUnnamed111() => ['foo', 'foo']; + +void checkUnnamed111(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1EvaluationSet = 0; +api.GoogleCloudAiplatformV1EvaluationSet +buildGoogleCloudAiplatformV1EvaluationSet() { + final o = api.GoogleCloudAiplatformV1EvaluationSet(); + buildCounterGoogleCloudAiplatformV1EvaluationSet++; + if (buildCounterGoogleCloudAiplatformV1EvaluationSet < 3) { + o.createTime = 'foo'; + o.displayName = 'foo'; + o.evaluationItems = buildUnnamed111(); + o.metadata = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo', }; - o.outputTensorName = 'foo'; + o.name = 'foo'; + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata--; + buildCounterGoogleCloudAiplatformV1EvaluationSet--; return o; } -void checkGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata( - api.GoogleCloudAiplatformV1ExplanationMetadataOutputMetadata o, +void checkGoogleCloudAiplatformV1EvaluationSet( + api.GoogleCloudAiplatformV1EvaluationSet o, ) { - buildCounterGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata++; - if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata < - 3) { - unittest.expect(o.displayNameMappingKey!, unittest.equals('foo')); - var casted35 = (o.indexDisplayNameMapping!) as core.Map; - unittest.expect(casted35, unittest.hasLength(3)); - unittest.expect(casted35['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted35['bool'], unittest.equals(true)); - unittest.expect(casted35['string'], unittest.equals('foo')); - unittest.expect(o.outputTensorName!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1EvaluationSet++; + if (buildCounterGoogleCloudAiplatformV1EvaluationSet < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkUnnamed111(o.evaluationItems!); + var casted33 = (o.metadata!) as core.Map; + unittest.expect(casted33, unittest.hasLength(3)); + unittest.expect(casted33['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted33['bool'], unittest.equals(true)); + unittest.expect(casted33['string'], unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata--; + buildCounterGoogleCloudAiplatformV1EvaluationSet--; } -core.Map< - core.String, - api.GoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride -> -buildUnnamed109() => { - 'x': - buildGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride(), - 'y': - buildGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride(), +core.Map buildUnnamed112() => { + 'x': 'foo', + 'y': 'foo', }; -void checkUnnamed109( - core.Map< - core.String, - api.GoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride - > - o, -) { +void checkUnnamed112(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride( - o['x']!, - ); - checkGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride( - o['y']!, - ); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverride = 0; -api.GoogleCloudAiplatformV1ExplanationMetadataOverride -buildGoogleCloudAiplatformV1ExplanationMetadataOverride() { - final o = api.GoogleCloudAiplatformV1ExplanationMetadataOverride(); - buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverride++; - if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverride < 3) { - o.inputs = buildUnnamed109(); +core.int buildCounterGoogleCloudAiplatformV1Event = 0; +api.GoogleCloudAiplatformV1Event buildGoogleCloudAiplatformV1Event() { + final o = api.GoogleCloudAiplatformV1Event(); + buildCounterGoogleCloudAiplatformV1Event++; + if (buildCounterGoogleCloudAiplatformV1Event < 3) { + o.artifact = 'foo'; + o.eventTime = 'foo'; + o.execution = 'foo'; + o.labels = buildUnnamed112(); + o.type = 'foo'; } - buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverride--; + buildCounterGoogleCloudAiplatformV1Event--; return o; } -void checkGoogleCloudAiplatformV1ExplanationMetadataOverride( - api.GoogleCloudAiplatformV1ExplanationMetadataOverride o, -) { - buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverride++; - if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverride < 3) { - checkUnnamed109(o.inputs!); +void checkGoogleCloudAiplatformV1Event(api.GoogleCloudAiplatformV1Event o) { + buildCounterGoogleCloudAiplatformV1Event++; + if (buildCounterGoogleCloudAiplatformV1Event < 3) { + unittest.expect(o.artifact!, unittest.equals('foo')); + unittest.expect(o.eventTime!, unittest.equals('foo')); + unittest.expect(o.execution!, unittest.equals('foo')); + checkUnnamed112(o.labels!); + unittest.expect(o.type!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverride--; + buildCounterGoogleCloudAiplatformV1Event--; } -core.List buildUnnamed110() => [ - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, +core.List buildUnnamed113() => [ + buildGoogleCloudAiplatformV1ExactMatchInstance(), + buildGoogleCloudAiplatformV1ExactMatchInstance(), ]; -void checkUnnamed110(core.List o) { +void checkUnnamed113( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - var casted36 = (o[0]) as core.Map; - unittest.expect(casted36, unittest.hasLength(3)); - unittest.expect(casted36['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted36['bool'], unittest.equals(true)); - unittest.expect(casted36['string'], unittest.equals('foo')); - var casted37 = (o[1]) as core.Map; - unittest.expect(casted37, unittest.hasLength(3)); - unittest.expect(casted37['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted37['bool'], unittest.equals(true)); - unittest.expect(casted37['string'], unittest.equals('foo')); + checkGoogleCloudAiplatformV1ExactMatchInstance(o[0]); + checkGoogleCloudAiplatformV1ExactMatchInstance(o[1]); } -core.int -buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride = - 0; -api.GoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride -buildGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride() { - final o = - api.GoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride(); - buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride++; - if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride < - 3) { - o.inputBaselines = buildUnnamed110(); +core.int buildCounterGoogleCloudAiplatformV1ExactMatchInput = 0; +api.GoogleCloudAiplatformV1ExactMatchInput +buildGoogleCloudAiplatformV1ExactMatchInput() { + final o = api.GoogleCloudAiplatformV1ExactMatchInput(); + buildCounterGoogleCloudAiplatformV1ExactMatchInput++; + if (buildCounterGoogleCloudAiplatformV1ExactMatchInput < 3) { + o.instances = buildUnnamed113(); + o.metricSpec = buildGoogleCloudAiplatformV1ExactMatchSpec(); } - buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride--; + buildCounterGoogleCloudAiplatformV1ExactMatchInput--; return o; } -void -checkGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride( - api.GoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride o, -) { - buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride++; - if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride < - 3) { - checkUnnamed110(o.inputBaselines!); +void checkGoogleCloudAiplatformV1ExactMatchInput( + api.GoogleCloudAiplatformV1ExactMatchInput o, +) { + buildCounterGoogleCloudAiplatformV1ExactMatchInput++; + if (buildCounterGoogleCloudAiplatformV1ExactMatchInput < 3) { + checkUnnamed113(o.instances!); + checkGoogleCloudAiplatformV1ExactMatchSpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride--; -} - -core.List buildUnnamed111() => [ - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -]; - -void checkUnnamed111(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - var casted38 = (o[0]) as core.Map; - unittest.expect(casted38, unittest.hasLength(3)); - unittest.expect(casted38['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted38['bool'], unittest.equals(true)); - unittest.expect(casted38['string'], unittest.equals('foo')); - var casted39 = (o[1]) as core.Map; - unittest.expect(casted39, unittest.hasLength(3)); - unittest.expect(casted39['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted39['bool'], unittest.equals(true)); - unittest.expect(casted39['string'], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ExactMatchInput--; } -core.int buildCounterGoogleCloudAiplatformV1ExplanationParameters = 0; -api.GoogleCloudAiplatformV1ExplanationParameters -buildGoogleCloudAiplatformV1ExplanationParameters() { - final o = api.GoogleCloudAiplatformV1ExplanationParameters(); - buildCounterGoogleCloudAiplatformV1ExplanationParameters++; - if (buildCounterGoogleCloudAiplatformV1ExplanationParameters < 3) { - o.examples = buildGoogleCloudAiplatformV1Examples(); - o.integratedGradientsAttribution = - buildGoogleCloudAiplatformV1IntegratedGradientsAttribution(); - o.outputIndices = buildUnnamed111(); - o.sampledShapleyAttribution = - buildGoogleCloudAiplatformV1SampledShapleyAttribution(); - o.topK = 42; - o.xraiAttribution = buildGoogleCloudAiplatformV1XraiAttribution(); +core.int buildCounterGoogleCloudAiplatformV1ExactMatchInstance = 0; +api.GoogleCloudAiplatformV1ExactMatchInstance +buildGoogleCloudAiplatformV1ExactMatchInstance() { + final o = api.GoogleCloudAiplatformV1ExactMatchInstance(); + buildCounterGoogleCloudAiplatformV1ExactMatchInstance++; + if (buildCounterGoogleCloudAiplatformV1ExactMatchInstance < 3) { + o.prediction = 'foo'; + o.reference = 'foo'; } - buildCounterGoogleCloudAiplatformV1ExplanationParameters--; + buildCounterGoogleCloudAiplatformV1ExactMatchInstance--; return o; } -void checkGoogleCloudAiplatformV1ExplanationParameters( - api.GoogleCloudAiplatformV1ExplanationParameters o, +void checkGoogleCloudAiplatformV1ExactMatchInstance( + api.GoogleCloudAiplatformV1ExactMatchInstance o, ) { - buildCounterGoogleCloudAiplatformV1ExplanationParameters++; - if (buildCounterGoogleCloudAiplatformV1ExplanationParameters < 3) { - checkGoogleCloudAiplatformV1Examples(o.examples!); - checkGoogleCloudAiplatformV1IntegratedGradientsAttribution( - o.integratedGradientsAttribution!, - ); - checkUnnamed111(o.outputIndices!); - checkGoogleCloudAiplatformV1SampledShapleyAttribution( - o.sampledShapleyAttribution!, - ); - unittest.expect(o.topK!, unittest.equals(42)); - checkGoogleCloudAiplatformV1XraiAttribution(o.xraiAttribution!); + buildCounterGoogleCloudAiplatformV1ExactMatchInstance++; + if (buildCounterGoogleCloudAiplatformV1ExactMatchInstance < 3) { + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ExplanationParameters--; + buildCounterGoogleCloudAiplatformV1ExactMatchInstance--; } -core.int buildCounterGoogleCloudAiplatformV1ExplanationSpec = 0; -api.GoogleCloudAiplatformV1ExplanationSpec -buildGoogleCloudAiplatformV1ExplanationSpec() { - final o = api.GoogleCloudAiplatformV1ExplanationSpec(); - buildCounterGoogleCloudAiplatformV1ExplanationSpec++; - if (buildCounterGoogleCloudAiplatformV1ExplanationSpec < 3) { - o.metadata = buildGoogleCloudAiplatformV1ExplanationMetadata(); - o.parameters = buildGoogleCloudAiplatformV1ExplanationParameters(); +core.int buildCounterGoogleCloudAiplatformV1ExactMatchMetricValue = 0; +api.GoogleCloudAiplatformV1ExactMatchMetricValue +buildGoogleCloudAiplatformV1ExactMatchMetricValue() { + final o = api.GoogleCloudAiplatformV1ExactMatchMetricValue(); + buildCounterGoogleCloudAiplatformV1ExactMatchMetricValue++; + if (buildCounterGoogleCloudAiplatformV1ExactMatchMetricValue < 3) { + o.score = 42.0; } - buildCounterGoogleCloudAiplatformV1ExplanationSpec--; + buildCounterGoogleCloudAiplatformV1ExactMatchMetricValue--; return o; } -void checkGoogleCloudAiplatformV1ExplanationSpec( - api.GoogleCloudAiplatformV1ExplanationSpec o, +void checkGoogleCloudAiplatformV1ExactMatchMetricValue( + api.GoogleCloudAiplatformV1ExactMatchMetricValue o, ) { - buildCounterGoogleCloudAiplatformV1ExplanationSpec++; - if (buildCounterGoogleCloudAiplatformV1ExplanationSpec < 3) { - checkGoogleCloudAiplatformV1ExplanationMetadata(o.metadata!); - checkGoogleCloudAiplatformV1ExplanationParameters(o.parameters!); + buildCounterGoogleCloudAiplatformV1ExactMatchMetricValue++; + if (buildCounterGoogleCloudAiplatformV1ExactMatchMetricValue < 3) { + unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1ExplanationSpec--; + buildCounterGoogleCloudAiplatformV1ExactMatchMetricValue--; } -core.int buildCounterGoogleCloudAiplatformV1ExplanationSpecOverride = 0; -api.GoogleCloudAiplatformV1ExplanationSpecOverride -buildGoogleCloudAiplatformV1ExplanationSpecOverride() { - final o = api.GoogleCloudAiplatformV1ExplanationSpecOverride(); - buildCounterGoogleCloudAiplatformV1ExplanationSpecOverride++; - if (buildCounterGoogleCloudAiplatformV1ExplanationSpecOverride < 3) { - o.examplesOverride = buildGoogleCloudAiplatformV1ExamplesOverride(); - o.metadata = buildGoogleCloudAiplatformV1ExplanationMetadataOverride(); - o.parameters = buildGoogleCloudAiplatformV1ExplanationParameters(); - } - buildCounterGoogleCloudAiplatformV1ExplanationSpecOverride--; - return o; -} +core.List buildUnnamed114() => + [ + buildGoogleCloudAiplatformV1ExactMatchMetricValue(), + buildGoogleCloudAiplatformV1ExactMatchMetricValue(), + ]; -void checkGoogleCloudAiplatformV1ExplanationSpecOverride( - api.GoogleCloudAiplatformV1ExplanationSpecOverride o, +void checkUnnamed114( + core.List o, ) { - buildCounterGoogleCloudAiplatformV1ExplanationSpecOverride++; - if (buildCounterGoogleCloudAiplatformV1ExplanationSpecOverride < 3) { - checkGoogleCloudAiplatformV1ExamplesOverride(o.examplesOverride!); - checkGoogleCloudAiplatformV1ExplanationMetadataOverride(o.metadata!); - checkGoogleCloudAiplatformV1ExplanationParameters(o.parameters!); - } - buildCounterGoogleCloudAiplatformV1ExplanationSpecOverride--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ExactMatchMetricValue(o[0]); + checkGoogleCloudAiplatformV1ExactMatchMetricValue(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ExportDataConfig = 0; -api.GoogleCloudAiplatformV1ExportDataConfig -buildGoogleCloudAiplatformV1ExportDataConfig() { - final o = api.GoogleCloudAiplatformV1ExportDataConfig(); - buildCounterGoogleCloudAiplatformV1ExportDataConfig++; - if (buildCounterGoogleCloudAiplatformV1ExportDataConfig < 3) { - o.annotationSchemaUri = 'foo'; - o.annotationsFilter = 'foo'; - o.exportUse = 'foo'; - o.filterSplit = buildGoogleCloudAiplatformV1ExportFilterSplit(); - o.fractionSplit = buildGoogleCloudAiplatformV1ExportFractionSplit(); - o.gcsDestination = buildGoogleCloudAiplatformV1GcsDestination(); - o.savedQueryId = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ExactMatchResults = 0; +api.GoogleCloudAiplatformV1ExactMatchResults +buildGoogleCloudAiplatformV1ExactMatchResults() { + final o = api.GoogleCloudAiplatformV1ExactMatchResults(); + buildCounterGoogleCloudAiplatformV1ExactMatchResults++; + if (buildCounterGoogleCloudAiplatformV1ExactMatchResults < 3) { + o.exactMatchMetricValues = buildUnnamed114(); } - buildCounterGoogleCloudAiplatformV1ExportDataConfig--; + buildCounterGoogleCloudAiplatformV1ExactMatchResults--; return o; } -void checkGoogleCloudAiplatformV1ExportDataConfig( - api.GoogleCloudAiplatformV1ExportDataConfig o, +void checkGoogleCloudAiplatformV1ExactMatchResults( + api.GoogleCloudAiplatformV1ExactMatchResults o, ) { - buildCounterGoogleCloudAiplatformV1ExportDataConfig++; - if (buildCounterGoogleCloudAiplatformV1ExportDataConfig < 3) { - unittest.expect(o.annotationSchemaUri!, unittest.equals('foo')); - unittest.expect(o.annotationsFilter!, unittest.equals('foo')); - unittest.expect(o.exportUse!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ExportFilterSplit(o.filterSplit!); - checkGoogleCloudAiplatformV1ExportFractionSplit(o.fractionSplit!); - checkGoogleCloudAiplatformV1GcsDestination(o.gcsDestination!); - unittest.expect(o.savedQueryId!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ExactMatchResults++; + if (buildCounterGoogleCloudAiplatformV1ExactMatchResults < 3) { + checkUnnamed114(o.exactMatchMetricValues!); } - buildCounterGoogleCloudAiplatformV1ExportDataConfig--; + buildCounterGoogleCloudAiplatformV1ExactMatchResults--; } -core.int buildCounterGoogleCloudAiplatformV1ExportDataRequest = 0; -api.GoogleCloudAiplatformV1ExportDataRequest -buildGoogleCloudAiplatformV1ExportDataRequest() { - final o = api.GoogleCloudAiplatformV1ExportDataRequest(); - buildCounterGoogleCloudAiplatformV1ExportDataRequest++; - if (buildCounterGoogleCloudAiplatformV1ExportDataRequest < 3) { - o.exportConfig = buildGoogleCloudAiplatformV1ExportDataConfig(); - } - buildCounterGoogleCloudAiplatformV1ExportDataRequest--; +core.int buildCounterGoogleCloudAiplatformV1ExactMatchSpec = 0; +api.GoogleCloudAiplatformV1ExactMatchSpec +buildGoogleCloudAiplatformV1ExactMatchSpec() { + final o = api.GoogleCloudAiplatformV1ExactMatchSpec(); + buildCounterGoogleCloudAiplatformV1ExactMatchSpec++; + if (buildCounterGoogleCloudAiplatformV1ExactMatchSpec < 3) {} + buildCounterGoogleCloudAiplatformV1ExactMatchSpec--; return o; } -void checkGoogleCloudAiplatformV1ExportDataRequest( - api.GoogleCloudAiplatformV1ExportDataRequest o, -) { - buildCounterGoogleCloudAiplatformV1ExportDataRequest++; - if (buildCounterGoogleCloudAiplatformV1ExportDataRequest < 3) { - checkGoogleCloudAiplatformV1ExportDataConfig(o.exportConfig!); - } - buildCounterGoogleCloudAiplatformV1ExportDataRequest--; -} - -core.List -buildUnnamed112() => [ - buildGoogleCloudAiplatformV1DestinationFeatureSetting(), - buildGoogleCloudAiplatformV1DestinationFeatureSetting(), -]; - -void checkUnnamed112( - core.List o, +void checkGoogleCloudAiplatformV1ExactMatchSpec( + api.GoogleCloudAiplatformV1ExactMatchSpec o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1DestinationFeatureSetting(o[0]); - checkGoogleCloudAiplatformV1DestinationFeatureSetting(o[1]); + buildCounterGoogleCloudAiplatformV1ExactMatchSpec++; + if (buildCounterGoogleCloudAiplatformV1ExactMatchSpec < 3) {} + buildCounterGoogleCloudAiplatformV1ExactMatchSpec--; } -core.int buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequest = 0; -api.GoogleCloudAiplatformV1ExportFeatureValuesRequest -buildGoogleCloudAiplatformV1ExportFeatureValuesRequest() { - final o = api.GoogleCloudAiplatformV1ExportFeatureValuesRequest(); - buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequest++; - if (buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequest < 3) { - o.destination = buildGoogleCloudAiplatformV1FeatureValueDestination(); - o.featureSelector = buildGoogleCloudAiplatformV1FeatureSelector(); - o.fullExport = - buildGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport(); - o.settings = buildUnnamed112(); - o.snapshotExport = - buildGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport(); +core.int buildCounterGoogleCloudAiplatformV1Examples = 0; +api.GoogleCloudAiplatformV1Examples buildGoogleCloudAiplatformV1Examples() { + final o = api.GoogleCloudAiplatformV1Examples(); + buildCounterGoogleCloudAiplatformV1Examples++; + if (buildCounterGoogleCloudAiplatformV1Examples < 3) { + o.exampleGcsSource = buildGoogleCloudAiplatformV1ExamplesExampleGcsSource(); + o.nearestNeighborSearchConfig = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.neighborCount = 42; + o.presets = buildGoogleCloudAiplatformV1Presets(); } - buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequest--; + buildCounterGoogleCloudAiplatformV1Examples--; return o; } -void checkGoogleCloudAiplatformV1ExportFeatureValuesRequest( - api.GoogleCloudAiplatformV1ExportFeatureValuesRequest o, +void checkGoogleCloudAiplatformV1Examples( + api.GoogleCloudAiplatformV1Examples o, ) { - buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequest++; - if (buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequest < 3) { - checkGoogleCloudAiplatformV1FeatureValueDestination(o.destination!); - checkGoogleCloudAiplatformV1FeatureSelector(o.featureSelector!); - checkGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport( - o.fullExport!, - ); - checkUnnamed112(o.settings!); - checkGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport( - o.snapshotExport!, - ); + buildCounterGoogleCloudAiplatformV1Examples++; + if (buildCounterGoogleCloudAiplatformV1Examples < 3) { + checkGoogleCloudAiplatformV1ExamplesExampleGcsSource(o.exampleGcsSource!); + var casted34 = (o.nearestNeighborSearchConfig!) as core.Map; + unittest.expect(casted34, unittest.hasLength(3)); + unittest.expect(casted34['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted34['bool'], unittest.equals(true)); + unittest.expect(casted34['string'], unittest.equals('foo')); + unittest.expect(o.neighborCount!, unittest.equals(42)); + checkGoogleCloudAiplatformV1Presets(o.presets!); } - buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequest--; + buildCounterGoogleCloudAiplatformV1Examples--; } -core.int -buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport = 0; -api.GoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport -buildGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport() { - final o = api.GoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport(); - buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport++; - if (buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport < - 3) { - o.endTime = 'foo'; - o.startTime = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ExamplesExampleGcsSource = 0; +api.GoogleCloudAiplatformV1ExamplesExampleGcsSource +buildGoogleCloudAiplatformV1ExamplesExampleGcsSource() { + final o = api.GoogleCloudAiplatformV1ExamplesExampleGcsSource(); + buildCounterGoogleCloudAiplatformV1ExamplesExampleGcsSource++; + if (buildCounterGoogleCloudAiplatformV1ExamplesExampleGcsSource < 3) { + o.dataFormat = 'foo'; + o.gcsSource = buildGoogleCloudAiplatformV1GcsSource(); } - buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport--; + buildCounterGoogleCloudAiplatformV1ExamplesExampleGcsSource--; return o; } -void checkGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport( - api.GoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport o, +void checkGoogleCloudAiplatformV1ExamplesExampleGcsSource( + api.GoogleCloudAiplatformV1ExamplesExampleGcsSource o, ) { - buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport++; - if (buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport < - 3) { - unittest.expect(o.endTime!, unittest.equals('foo')); - unittest.expect(o.startTime!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ExamplesExampleGcsSource++; + if (buildCounterGoogleCloudAiplatformV1ExamplesExampleGcsSource < 3) { + unittest.expect(o.dataFormat!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1GcsSource(o.gcsSource!); } - buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport--; + buildCounterGoogleCloudAiplatformV1ExamplesExampleGcsSource--; } -core.int -buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport = 0; -api.GoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport -buildGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport() { - final o = - api.GoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport(); - buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport++; - if (buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport < - 3) { - o.snapshotTime = 'foo'; - o.startTime = 'foo'; - } - buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport--; - return o; -} +core.List +buildUnnamed115() => [ + buildGoogleCloudAiplatformV1ExamplesRestrictionsNamespace(), + buildGoogleCloudAiplatformV1ExamplesRestrictionsNamespace(), +]; -void checkGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport( - api.GoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport o, +void checkUnnamed115( + core.List o, ) { - buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport++; - if (buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport < - 3) { - unittest.expect(o.snapshotTime!, unittest.equals('foo')); - unittest.expect(o.startTime!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ExamplesRestrictionsNamespace(o[0]); + checkGoogleCloudAiplatformV1ExamplesRestrictionsNamespace(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ExportFilterSplit = 0; -api.GoogleCloudAiplatformV1ExportFilterSplit -buildGoogleCloudAiplatformV1ExportFilterSplit() { - final o = api.GoogleCloudAiplatformV1ExportFilterSplit(); - buildCounterGoogleCloudAiplatformV1ExportFilterSplit++; - if (buildCounterGoogleCloudAiplatformV1ExportFilterSplit < 3) { - o.testFilter = 'foo'; - o.trainingFilter = 'foo'; - o.validationFilter = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ExamplesOverride = 0; +api.GoogleCloudAiplatformV1ExamplesOverride +buildGoogleCloudAiplatformV1ExamplesOverride() { + final o = api.GoogleCloudAiplatformV1ExamplesOverride(); + buildCounterGoogleCloudAiplatformV1ExamplesOverride++; + if (buildCounterGoogleCloudAiplatformV1ExamplesOverride < 3) { + o.crowdingCount = 42; + o.dataFormat = 'foo'; + o.neighborCount = 42; + o.restrictions = buildUnnamed115(); + o.returnEmbeddings = true; } - buildCounterGoogleCloudAiplatformV1ExportFilterSplit--; + buildCounterGoogleCloudAiplatformV1ExamplesOverride--; return o; } -void checkGoogleCloudAiplatformV1ExportFilterSplit( - api.GoogleCloudAiplatformV1ExportFilterSplit o, +void checkGoogleCloudAiplatformV1ExamplesOverride( + api.GoogleCloudAiplatformV1ExamplesOverride o, ) { - buildCounterGoogleCloudAiplatformV1ExportFilterSplit++; - if (buildCounterGoogleCloudAiplatformV1ExportFilterSplit < 3) { - unittest.expect(o.testFilter!, unittest.equals('foo')); - unittest.expect(o.trainingFilter!, unittest.equals('foo')); - unittest.expect(o.validationFilter!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ExamplesOverride++; + if (buildCounterGoogleCloudAiplatformV1ExamplesOverride < 3) { + unittest.expect(o.crowdingCount!, unittest.equals(42)); + unittest.expect(o.dataFormat!, unittest.equals('foo')); + unittest.expect(o.neighborCount!, unittest.equals(42)); + checkUnnamed115(o.restrictions!); + unittest.expect(o.returnEmbeddings!, unittest.isTrue); } - buildCounterGoogleCloudAiplatformV1ExportFilterSplit--; + buildCounterGoogleCloudAiplatformV1ExamplesOverride--; } -core.int buildCounterGoogleCloudAiplatformV1ExportFractionSplit = 0; -api.GoogleCloudAiplatformV1ExportFractionSplit -buildGoogleCloudAiplatformV1ExportFractionSplit() { - final o = api.GoogleCloudAiplatformV1ExportFractionSplit(); - buildCounterGoogleCloudAiplatformV1ExportFractionSplit++; - if (buildCounterGoogleCloudAiplatformV1ExportFractionSplit < 3) { - o.testFraction = 42.0; - o.trainingFraction = 42.0; - o.validationFraction = 42.0; - } - buildCounterGoogleCloudAiplatformV1ExportFractionSplit--; - return o; -} +core.List buildUnnamed116() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1ExportFractionSplit( - api.GoogleCloudAiplatformV1ExportFractionSplit o, -) { - buildCounterGoogleCloudAiplatformV1ExportFractionSplit++; - if (buildCounterGoogleCloudAiplatformV1ExportFractionSplit < 3) { - unittest.expect(o.testFraction!, unittest.equals(42.0)); - unittest.expect(o.trainingFraction!, unittest.equals(42.0)); - unittest.expect(o.validationFraction!, unittest.equals(42.0)); - } - buildCounterGoogleCloudAiplatformV1ExportFractionSplit--; +void checkUnnamed116(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ExportModelRequest = 0; -api.GoogleCloudAiplatformV1ExportModelRequest -buildGoogleCloudAiplatformV1ExportModelRequest() { - final o = api.GoogleCloudAiplatformV1ExportModelRequest(); - buildCounterGoogleCloudAiplatformV1ExportModelRequest++; - if (buildCounterGoogleCloudAiplatformV1ExportModelRequest < 3) { - o.outputConfig = - buildGoogleCloudAiplatformV1ExportModelRequestOutputConfig(); - } - buildCounterGoogleCloudAiplatformV1ExportModelRequest--; - return o; -} +core.List buildUnnamed117() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1ExportModelRequest( - api.GoogleCloudAiplatformV1ExportModelRequest o, -) { - buildCounterGoogleCloudAiplatformV1ExportModelRequest++; - if (buildCounterGoogleCloudAiplatformV1ExportModelRequest < 3) { - checkGoogleCloudAiplatformV1ExportModelRequestOutputConfig(o.outputConfig!); - } - buildCounterGoogleCloudAiplatformV1ExportModelRequest--; +void checkUnnamed117(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ExportModelRequestOutputConfig = 0; -api.GoogleCloudAiplatformV1ExportModelRequestOutputConfig -buildGoogleCloudAiplatformV1ExportModelRequestOutputConfig() { - final o = api.GoogleCloudAiplatformV1ExportModelRequestOutputConfig(); - buildCounterGoogleCloudAiplatformV1ExportModelRequestOutputConfig++; - if (buildCounterGoogleCloudAiplatformV1ExportModelRequestOutputConfig < 3) { - o.artifactDestination = buildGoogleCloudAiplatformV1GcsDestination(); - o.exportFormatId = 'foo'; - o.imageDestination = - buildGoogleCloudAiplatformV1ContainerRegistryDestination(); +core.int buildCounterGoogleCloudAiplatformV1ExamplesRestrictionsNamespace = 0; +api.GoogleCloudAiplatformV1ExamplesRestrictionsNamespace +buildGoogleCloudAiplatformV1ExamplesRestrictionsNamespace() { + final o = api.GoogleCloudAiplatformV1ExamplesRestrictionsNamespace(); + buildCounterGoogleCloudAiplatformV1ExamplesRestrictionsNamespace++; + if (buildCounterGoogleCloudAiplatformV1ExamplesRestrictionsNamespace < 3) { + o.allow = buildUnnamed116(); + o.deny = buildUnnamed117(); + o.namespaceName = 'foo'; } - buildCounterGoogleCloudAiplatformV1ExportModelRequestOutputConfig--; + buildCounterGoogleCloudAiplatformV1ExamplesRestrictionsNamespace--; return o; } -void checkGoogleCloudAiplatformV1ExportModelRequestOutputConfig( - api.GoogleCloudAiplatformV1ExportModelRequestOutputConfig o, +void checkGoogleCloudAiplatformV1ExamplesRestrictionsNamespace( + api.GoogleCloudAiplatformV1ExamplesRestrictionsNamespace o, ) { - buildCounterGoogleCloudAiplatformV1ExportModelRequestOutputConfig++; - if (buildCounterGoogleCloudAiplatformV1ExportModelRequestOutputConfig < 3) { - checkGoogleCloudAiplatformV1GcsDestination(o.artifactDestination!); - unittest.expect(o.exportFormatId!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ContainerRegistryDestination( - o.imageDestination!, - ); + buildCounterGoogleCloudAiplatformV1ExamplesRestrictionsNamespace++; + if (buildCounterGoogleCloudAiplatformV1ExamplesRestrictionsNamespace < 3) { + checkUnnamed116(o.allow!); + checkUnnamed117(o.deny!); + unittest.expect(o.namespaceName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ExportModelRequestOutputConfig--; + buildCounterGoogleCloudAiplatformV1ExamplesRestrictionsNamespace--; } -core.int -buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest = 0; -api.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest -buildGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest() { - final o = api.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest(); - buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest++; - if (buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest < - 3) { - o.filter = 'foo'; - o.orderBy = 'foo'; - o.pageSize = 42; - o.pageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ExecutableCode = 0; +api.GoogleCloudAiplatformV1ExecutableCode +buildGoogleCloudAiplatformV1ExecutableCode() { + final o = api.GoogleCloudAiplatformV1ExecutableCode(); + buildCounterGoogleCloudAiplatformV1ExecutableCode++; + if (buildCounterGoogleCloudAiplatformV1ExecutableCode < 3) { + o.code = 'foo'; + o.language = 'foo'; } - buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest--; + buildCounterGoogleCloudAiplatformV1ExecutableCode--; return o; } -void checkGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest( - api.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest o, +void checkGoogleCloudAiplatformV1ExecutableCode( + api.GoogleCloudAiplatformV1ExecutableCode o, ) { - buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest++; - if (buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest < - 3) { - unittest.expect(o.filter!, unittest.equals('foo')); - unittest.expect(o.orderBy!, unittest.equals('foo')); - unittest.expect(o.pageSize!, unittest.equals(42)); - unittest.expect(o.pageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ExecutableCode++; + if (buildCounterGoogleCloudAiplatformV1ExecutableCode < 3) { + unittest.expect(o.code!, unittest.equals('foo')); + unittest.expect(o.language!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest--; + buildCounterGoogleCloudAiplatformV1ExecutableCode--; } -core.List buildUnnamed113() => [ - buildGoogleCloudAiplatformV1TimeSeriesDataPoint(), - buildGoogleCloudAiplatformV1TimeSeriesDataPoint(), -]; +core.Map buildUnnamed118() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkUnnamed113( - core.List o, -) { +void checkUnnamed118(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TimeSeriesDataPoint(o[0]); - checkGoogleCloudAiplatformV1TimeSeriesDataPoint(o[1]); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.int -buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse = 0; -api.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse -buildGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse() { - final o = - api.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse(); - buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse++; - if (buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse < - 3) { - o.nextPageToken = 'foo'; - o.timeSeriesDataPoints = buildUnnamed113(); - } - buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse--; - return o; -} +core.Map buildUnnamed119() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; -void checkGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse( - api.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse o, -) { - buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse++; - if (buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse < - 3) { - unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed113(o.timeSeriesDataPoints!); - } - buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse--; +void checkUnnamed119(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted35 = (o['x']!) as core.Map; + unittest.expect(casted35, unittest.hasLength(3)); + unittest.expect(casted35['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted35['bool'], unittest.equals(true)); + unittest.expect(casted35['string'], unittest.equals('foo')); + var casted36 = (o['y']!) as core.Map; + unittest.expect(casted36, unittest.hasLength(3)); + unittest.expect(casted36['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted36['bool'], unittest.equals(true)); + unittest.expect(casted36['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ExternalApi = 0; -api.GoogleCloudAiplatformV1ExternalApi -buildGoogleCloudAiplatformV1ExternalApi() { - final o = api.GoogleCloudAiplatformV1ExternalApi(); - buildCounterGoogleCloudAiplatformV1ExternalApi++; - if (buildCounterGoogleCloudAiplatformV1ExternalApi < 3) { - o.apiAuth = buildGoogleCloudAiplatformV1ApiAuth(); - o.apiSpec = 'foo'; - o.authConfig = buildGoogleCloudAiplatformV1AuthConfig(); - o.elasticSearchParams = - buildGoogleCloudAiplatformV1ExternalApiElasticSearchParams(); - o.endpoint = 'foo'; - o.simpleSearchParams = - buildGoogleCloudAiplatformV1ExternalApiSimpleSearchParams(); +core.int buildCounterGoogleCloudAiplatformV1Execution = 0; +api.GoogleCloudAiplatformV1Execution buildGoogleCloudAiplatformV1Execution() { + final o = api.GoogleCloudAiplatformV1Execution(); + buildCounterGoogleCloudAiplatformV1Execution++; + if (buildCounterGoogleCloudAiplatformV1Execution < 3) { + o.createTime = 'foo'; + o.description = 'foo'; + o.displayName = 'foo'; + o.etag = 'foo'; + o.labels = buildUnnamed118(); + o.metadata = buildUnnamed119(); + o.name = 'foo'; + o.schemaTitle = 'foo'; + o.schemaVersion = 'foo'; + o.state = 'foo'; + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1ExternalApi--; + buildCounterGoogleCloudAiplatformV1Execution--; return o; } -void checkGoogleCloudAiplatformV1ExternalApi( - api.GoogleCloudAiplatformV1ExternalApi o, +void checkGoogleCloudAiplatformV1Execution( + api.GoogleCloudAiplatformV1Execution o, ) { - buildCounterGoogleCloudAiplatformV1ExternalApi++; - if (buildCounterGoogleCloudAiplatformV1ExternalApi < 3) { - checkGoogleCloudAiplatformV1ApiAuth(o.apiAuth!); - unittest.expect(o.apiSpec!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1AuthConfig(o.authConfig!); - checkGoogleCloudAiplatformV1ExternalApiElasticSearchParams( - o.elasticSearchParams!, - ); - unittest.expect(o.endpoint!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ExternalApiSimpleSearchParams( - o.simpleSearchParams!, - ); + buildCounterGoogleCloudAiplatformV1Execution++; + if (buildCounterGoogleCloudAiplatformV1Execution < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.etag!, unittest.equals('foo')); + checkUnnamed118(o.labels!); + checkUnnamed119(o.metadata!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.schemaTitle!, unittest.equals('foo')); + unittest.expect(o.schemaVersion!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ExternalApi--; + buildCounterGoogleCloudAiplatformV1Execution--; } -core.int buildCounterGoogleCloudAiplatformV1ExternalApiElasticSearchParams = 0; -api.GoogleCloudAiplatformV1ExternalApiElasticSearchParams -buildGoogleCloudAiplatformV1ExternalApiElasticSearchParams() { - final o = api.GoogleCloudAiplatformV1ExternalApiElasticSearchParams(); - buildCounterGoogleCloudAiplatformV1ExternalApiElasticSearchParams++; - if (buildCounterGoogleCloudAiplatformV1ExternalApiElasticSearchParams < 3) { - o.index = 'foo'; - o.numHits = 42; - o.searchTemplate = 'foo'; +core.List buildUnnamed120() => [ + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +]; + +void checkUnnamed120(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + var casted37 = (o[0]) as core.Map; + unittest.expect(casted37, unittest.hasLength(3)); + unittest.expect(casted37['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted37['bool'], unittest.equals(true)); + unittest.expect(casted37['string'], unittest.equals('foo')); + var casted38 = (o[1]) as core.Map; + unittest.expect(casted38, unittest.hasLength(3)); + unittest.expect(casted38['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted38['bool'], unittest.equals(true)); + unittest.expect(casted38['string'], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1ExplainRequest = 0; +api.GoogleCloudAiplatformV1ExplainRequest +buildGoogleCloudAiplatformV1ExplainRequest() { + final o = api.GoogleCloudAiplatformV1ExplainRequest(); + buildCounterGoogleCloudAiplatformV1ExplainRequest++; + if (buildCounterGoogleCloudAiplatformV1ExplainRequest < 3) { + o.deployedModelId = 'foo'; + o.explanationSpecOverride = + buildGoogleCloudAiplatformV1ExplanationSpecOverride(); + o.instances = buildUnnamed120(); + o.parameters = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; } - buildCounterGoogleCloudAiplatformV1ExternalApiElasticSearchParams--; + buildCounterGoogleCloudAiplatformV1ExplainRequest--; return o; } -void checkGoogleCloudAiplatformV1ExternalApiElasticSearchParams( - api.GoogleCloudAiplatformV1ExternalApiElasticSearchParams o, +void checkGoogleCloudAiplatformV1ExplainRequest( + api.GoogleCloudAiplatformV1ExplainRequest o, ) { - buildCounterGoogleCloudAiplatformV1ExternalApiElasticSearchParams++; - if (buildCounterGoogleCloudAiplatformV1ExternalApiElasticSearchParams < 3) { - unittest.expect(o.index!, unittest.equals('foo')); - unittest.expect(o.numHits!, unittest.equals(42)); - unittest.expect(o.searchTemplate!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ExplainRequest++; + if (buildCounterGoogleCloudAiplatformV1ExplainRequest < 3) { + unittest.expect(o.deployedModelId!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ExplanationSpecOverride( + o.explanationSpecOverride!, + ); + checkUnnamed120(o.instances!); + var casted39 = (o.parameters!) as core.Map; + unittest.expect(casted39, unittest.hasLength(3)); + unittest.expect(casted39['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted39['bool'], unittest.equals(true)); + unittest.expect(casted39['string'], unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ExternalApiElasticSearchParams--; + buildCounterGoogleCloudAiplatformV1ExplainRequest--; } -core.int buildCounterGoogleCloudAiplatformV1ExternalApiSimpleSearchParams = 0; -api.GoogleCloudAiplatformV1ExternalApiSimpleSearchParams -buildGoogleCloudAiplatformV1ExternalApiSimpleSearchParams() { - final o = api.GoogleCloudAiplatformV1ExternalApiSimpleSearchParams(); - buildCounterGoogleCloudAiplatformV1ExternalApiSimpleSearchParams++; - if (buildCounterGoogleCloudAiplatformV1ExternalApiSimpleSearchParams < 3) {} - buildCounterGoogleCloudAiplatformV1ExternalApiSimpleSearchParams--; - return o; -} +core.List buildUnnamed121() => [ + buildGoogleCloudAiplatformV1Explanation(), + buildGoogleCloudAiplatformV1Explanation(), +]; -void checkGoogleCloudAiplatformV1ExternalApiSimpleSearchParams( - api.GoogleCloudAiplatformV1ExternalApiSimpleSearchParams o, -) { - buildCounterGoogleCloudAiplatformV1ExternalApiSimpleSearchParams++; - if (buildCounterGoogleCloudAiplatformV1ExternalApiSimpleSearchParams < 3) {} - buildCounterGoogleCloudAiplatformV1ExternalApiSimpleSearchParams--; +void checkUnnamed121(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Explanation(o[0]); + checkGoogleCloudAiplatformV1Explanation(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1Fact = 0; -api.GoogleCloudAiplatformV1Fact buildGoogleCloudAiplatformV1Fact() { - final o = api.GoogleCloudAiplatformV1Fact(); - buildCounterGoogleCloudAiplatformV1Fact++; - if (buildCounterGoogleCloudAiplatformV1Fact < 3) { - o.chunk = buildGoogleCloudAiplatformV1RagChunk(); - o.query = 'foo'; - o.score = 42.0; - o.summary = 'foo'; - o.title = 'foo'; - o.uri = 'foo'; - o.vectorDistance = 42.0; - } - buildCounterGoogleCloudAiplatformV1Fact--; - return o; -} +core.List buildUnnamed122() => [ + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +]; -void checkGoogleCloudAiplatformV1Fact(api.GoogleCloudAiplatformV1Fact o) { - buildCounterGoogleCloudAiplatformV1Fact++; - if (buildCounterGoogleCloudAiplatformV1Fact < 3) { - checkGoogleCloudAiplatformV1RagChunk(o.chunk!); - unittest.expect(o.query!, unittest.equals('foo')); - unittest.expect(o.score!, unittest.equals(42.0)); - unittest.expect(o.summary!, unittest.equals('foo')); - unittest.expect(o.title!, unittest.equals('foo')); - unittest.expect(o.uri!, unittest.equals('foo')); - unittest.expect(o.vectorDistance!, unittest.equals(42.0)); - } - buildCounterGoogleCloudAiplatformV1Fact--; +void checkUnnamed122(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + var casted40 = (o[0]) as core.Map; + unittest.expect(casted40, unittest.hasLength(3)); + unittest.expect(casted40['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted40['bool'], unittest.equals(true)); + unittest.expect(casted40['string'], unittest.equals('foo')); + var casted41 = (o[1]) as core.Map; + unittest.expect(casted41, unittest.hasLength(3)); + unittest.expect(casted41['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted41['bool'], unittest.equals(true)); + unittest.expect(casted41['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1FasterDeploymentConfig = 0; -api.GoogleCloudAiplatformV1FasterDeploymentConfig -buildGoogleCloudAiplatformV1FasterDeploymentConfig() { - final o = api.GoogleCloudAiplatformV1FasterDeploymentConfig(); - buildCounterGoogleCloudAiplatformV1FasterDeploymentConfig++; - if (buildCounterGoogleCloudAiplatformV1FasterDeploymentConfig < 3) { - o.fastTryoutEnabled = true; +core.int buildCounterGoogleCloudAiplatformV1ExplainResponse = 0; +api.GoogleCloudAiplatformV1ExplainResponse +buildGoogleCloudAiplatformV1ExplainResponse() { + final o = api.GoogleCloudAiplatformV1ExplainResponse(); + buildCounterGoogleCloudAiplatformV1ExplainResponse++; + if (buildCounterGoogleCloudAiplatformV1ExplainResponse < 3) { + o.deployedModelId = 'foo'; + o.explanations = buildUnnamed121(); + o.predictions = buildUnnamed122(); } - buildCounterGoogleCloudAiplatformV1FasterDeploymentConfig--; + buildCounterGoogleCloudAiplatformV1ExplainResponse--; return o; } -void checkGoogleCloudAiplatformV1FasterDeploymentConfig( - api.GoogleCloudAiplatformV1FasterDeploymentConfig o, +void checkGoogleCloudAiplatformV1ExplainResponse( + api.GoogleCloudAiplatformV1ExplainResponse o, ) { - buildCounterGoogleCloudAiplatformV1FasterDeploymentConfig++; - if (buildCounterGoogleCloudAiplatformV1FasterDeploymentConfig < 3) { - unittest.expect(o.fastTryoutEnabled!, unittest.isTrue); + buildCounterGoogleCloudAiplatformV1ExplainResponse++; + if (buildCounterGoogleCloudAiplatformV1ExplainResponse < 3) { + unittest.expect(o.deployedModelId!, unittest.equals('foo')); + checkUnnamed121(o.explanations!); + checkUnnamed122(o.predictions!); } - buildCounterGoogleCloudAiplatformV1FasterDeploymentConfig--; + buildCounterGoogleCloudAiplatformV1ExplainResponse--; } -core.Map buildUnnamed114() => { - 'x': 'foo', - 'y': 'foo', -}; +core.List buildUnnamed123() => [ + buildGoogleCloudAiplatformV1Attribution(), + buildGoogleCloudAiplatformV1Attribution(), +]; -void checkUnnamed114(core.Map o) { +void checkUnnamed123(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1Attribution(o[0]); + checkGoogleCloudAiplatformV1Attribution(o[1]); } -core.List -buildUnnamed115() => [ - buildGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly(), - buildGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly(), +core.List buildUnnamed124() => [ + buildGoogleCloudAiplatformV1Neighbor(), + buildGoogleCloudAiplatformV1Neighbor(), ]; -void checkUnnamed115( - core.List o, -) { +void checkUnnamed124(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly(o[0]); - checkGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly(o[1]); + checkGoogleCloudAiplatformV1Neighbor(o[0]); + checkGoogleCloudAiplatformV1Neighbor(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1Feature = 0; -api.GoogleCloudAiplatformV1Feature buildGoogleCloudAiplatformV1Feature() { - final o = api.GoogleCloudAiplatformV1Feature(); - buildCounterGoogleCloudAiplatformV1Feature++; - if (buildCounterGoogleCloudAiplatformV1Feature < 3) { - o.createTime = 'foo'; - o.description = 'foo'; - o.disableMonitoring = true; - o.etag = 'foo'; - o.labels = buildUnnamed114(); - o.monitoringStatsAnomalies = buildUnnamed115(); - o.name = 'foo'; - o.pointOfContact = 'foo'; - o.updateTime = 'foo'; - o.valueType = 'foo'; - o.versionColumnName = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1Explanation = 0; +api.GoogleCloudAiplatformV1Explanation +buildGoogleCloudAiplatformV1Explanation() { + final o = api.GoogleCloudAiplatformV1Explanation(); + buildCounterGoogleCloudAiplatformV1Explanation++; + if (buildCounterGoogleCloudAiplatformV1Explanation < 3) { + o.attributions = buildUnnamed123(); + o.neighbors = buildUnnamed124(); } - buildCounterGoogleCloudAiplatformV1Feature--; + buildCounterGoogleCloudAiplatformV1Explanation--; return o; } -void checkGoogleCloudAiplatformV1Feature(api.GoogleCloudAiplatformV1Feature o) { - buildCounterGoogleCloudAiplatformV1Feature++; - if (buildCounterGoogleCloudAiplatformV1Feature < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.disableMonitoring!, unittest.isTrue); - unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed114(o.labels!); - checkUnnamed115(o.monitoringStatsAnomalies!); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.pointOfContact!, unittest.equals('foo')); - unittest.expect(o.updateTime!, unittest.equals('foo')); - unittest.expect(o.valueType!, unittest.equals('foo')); - unittest.expect(o.versionColumnName!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1Explanation( + api.GoogleCloudAiplatformV1Explanation o, +) { + buildCounterGoogleCloudAiplatformV1Explanation++; + if (buildCounterGoogleCloudAiplatformV1Explanation < 3) { + checkUnnamed123(o.attributions!); + checkUnnamed124(o.neighbors!); } - buildCounterGoogleCloudAiplatformV1Feature--; + buildCounterGoogleCloudAiplatformV1Explanation--; } -core.Map buildUnnamed116() => { - 'x': 'foo', - 'y': 'foo', +core.Map< + core.String, + api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadata +> +buildUnnamed125() => { + 'x': buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadata(), + 'y': buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadata(), }; -void checkUnnamed116(core.Map o) { +void checkUnnamed125( + core.Map< + core.String, + api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadata + > + o, +) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadata(o['x']!); + checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadata(o['y']!); } -core.int buildCounterGoogleCloudAiplatformV1FeatureGroup = 0; -api.GoogleCloudAiplatformV1FeatureGroup -buildGoogleCloudAiplatformV1FeatureGroup() { - final o = api.GoogleCloudAiplatformV1FeatureGroup(); - buildCounterGoogleCloudAiplatformV1FeatureGroup++; - if (buildCounterGoogleCloudAiplatformV1FeatureGroup < 3) { - o.bigQuery = buildGoogleCloudAiplatformV1FeatureGroupBigQuery(); - o.createTime = 'foo'; - o.description = 'foo'; - o.etag = 'foo'; - o.labels = buildUnnamed116(); - o.name = 'foo'; - o.serviceAccountEmail = 'foo'; - o.serviceAgentType = 'foo'; - o.updateTime = 'foo'; - } - buildCounterGoogleCloudAiplatformV1FeatureGroup--; - return o; -} +core.Map< + core.String, + api.GoogleCloudAiplatformV1ExplanationMetadataOutputMetadata +> +buildUnnamed126() => { + 'x': buildGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata(), + 'y': buildGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata(), +}; -void checkGoogleCloudAiplatformV1FeatureGroup( - api.GoogleCloudAiplatformV1FeatureGroup o, +void checkUnnamed126( + core.Map< + core.String, + api.GoogleCloudAiplatformV1ExplanationMetadataOutputMetadata + > + o, ) { - buildCounterGoogleCloudAiplatformV1FeatureGroup++; - if (buildCounterGoogleCloudAiplatformV1FeatureGroup < 3) { - checkGoogleCloudAiplatformV1FeatureGroupBigQuery(o.bigQuery!); - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed116(o.labels!); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.serviceAccountEmail!, unittest.equals('foo')); - unittest.expect(o.serviceAgentType!, unittest.equals('foo')); - unittest.expect(o.updateTime!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1FeatureGroup--; -} - -core.List buildUnnamed117() => ['foo', 'foo']; - -void checkUnnamed117(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata(o['x']!); + checkGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata(o['y']!); } -core.int buildCounterGoogleCloudAiplatformV1FeatureGroupBigQuery = 0; -api.GoogleCloudAiplatformV1FeatureGroupBigQuery -buildGoogleCloudAiplatformV1FeatureGroupBigQuery() { - final o = api.GoogleCloudAiplatformV1FeatureGroupBigQuery(); - buildCounterGoogleCloudAiplatformV1FeatureGroupBigQuery++; - if (buildCounterGoogleCloudAiplatformV1FeatureGroupBigQuery < 3) { - o.bigQuerySource = buildGoogleCloudAiplatformV1BigQuerySource(); - o.dense = true; - o.entityIdColumns = buildUnnamed117(); - o.staticDataSource = true; - o.timeSeries = buildGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries(); +core.int buildCounterGoogleCloudAiplatformV1ExplanationMetadata = 0; +api.GoogleCloudAiplatformV1ExplanationMetadata +buildGoogleCloudAiplatformV1ExplanationMetadata() { + final o = api.GoogleCloudAiplatformV1ExplanationMetadata(); + buildCounterGoogleCloudAiplatformV1ExplanationMetadata++; + if (buildCounterGoogleCloudAiplatformV1ExplanationMetadata < 3) { + o.featureAttributionsSchemaUri = 'foo'; + o.inputs = buildUnnamed125(); + o.latentSpaceSource = 'foo'; + o.outputs = buildUnnamed126(); } - buildCounterGoogleCloudAiplatformV1FeatureGroupBigQuery--; + buildCounterGoogleCloudAiplatformV1ExplanationMetadata--; return o; } -void checkGoogleCloudAiplatformV1FeatureGroupBigQuery( - api.GoogleCloudAiplatformV1FeatureGroupBigQuery o, +void checkGoogleCloudAiplatformV1ExplanationMetadata( + api.GoogleCloudAiplatformV1ExplanationMetadata o, ) { - buildCounterGoogleCloudAiplatformV1FeatureGroupBigQuery++; - if (buildCounterGoogleCloudAiplatformV1FeatureGroupBigQuery < 3) { - checkGoogleCloudAiplatformV1BigQuerySource(o.bigQuerySource!); - unittest.expect(o.dense!, unittest.isTrue); - checkUnnamed117(o.entityIdColumns!); - unittest.expect(o.staticDataSource!, unittest.isTrue); - checkGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries(o.timeSeries!); + buildCounterGoogleCloudAiplatformV1ExplanationMetadata++; + if (buildCounterGoogleCloudAiplatformV1ExplanationMetadata < 3) { + unittest.expect(o.featureAttributionsSchemaUri!, unittest.equals('foo')); + checkUnnamed125(o.inputs!); + unittest.expect(o.latentSpaceSource!, unittest.equals('foo')); + checkUnnamed126(o.outputs!); } - buildCounterGoogleCloudAiplatformV1FeatureGroupBigQuery--; + buildCounterGoogleCloudAiplatformV1ExplanationMetadata--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries = 0; -api.GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries -buildGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries() { - final o = api.GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries(); - buildCounterGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries++; - if (buildCounterGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries < 3) { - o.timestampColumn = 'foo'; - } - buildCounterGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries--; - return o; -} +core.List buildUnnamed127() => [ + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +]; -void checkGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries( - api.GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries o, -) { - buildCounterGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries++; - if (buildCounterGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries < 3) { - unittest.expect(o.timestampColumn!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries--; +void checkUnnamed127(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + var casted42 = (o[0]) as core.Map; + unittest.expect(casted42, unittest.hasLength(3)); + unittest.expect(casted42['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted42['bool'], unittest.equals(true)); + unittest.expect(casted42['string'], unittest.equals('foo')); + var casted43 = (o[1]) as core.Map; + unittest.expect(casted43, unittest.hasLength(3)); + unittest.expect(casted43['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted43['bool'], unittest.equals(true)); + unittest.expect(casted43['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly = 0; -api.GoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly -buildGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly() { - final o = api.GoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly(); - buildCounterGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly++; - if (buildCounterGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly < 3) { - o.featureStatsAnomaly = buildGoogleCloudAiplatformV1FeatureStatsAnomaly(); - o.objective = 'foo'; - } - buildCounterGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly--; - return o; -} +core.List buildUnnamed128() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly( - api.GoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly o, -) { - buildCounterGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly++; - if (buildCounterGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly < 3) { - checkGoogleCloudAiplatformV1FeatureStatsAnomaly(o.featureStatsAnomaly!); - unittest.expect(o.objective!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly--; +void checkUnnamed128(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.List -buildUnnamed118() => [ - buildGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature(), - buildGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature(), +core.List buildUnnamed129() => [ + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, ]; -void checkUnnamed118( - core.List o, -) { +void checkUnnamed129(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature(o[0]); - checkGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature(o[1]); + var casted44 = (o[0]) as core.Map; + unittest.expect(casted44, unittest.hasLength(3)); + unittest.expect(casted44['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted44['bool'], unittest.equals(true)); + unittest.expect(casted44['string'], unittest.equals('foo')); + var casted45 = (o[1]) as core.Map; + unittest.expect(casted45, unittest.hasLength(3)); + unittest.expect(casted45['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted45['bool'], unittest.equals(true)); + unittest.expect(casted45['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1FeatureNoiseSigma = 0; -api.GoogleCloudAiplatformV1FeatureNoiseSigma -buildGoogleCloudAiplatformV1FeatureNoiseSigma() { - final o = api.GoogleCloudAiplatformV1FeatureNoiseSigma(); - buildCounterGoogleCloudAiplatformV1FeatureNoiseSigma++; - if (buildCounterGoogleCloudAiplatformV1FeatureNoiseSigma < 3) { - o.noiseSigma = buildUnnamed118(); +core.int buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadata = + 0; +api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadata +buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadata() { + final o = api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadata(); + buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadata++; + if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadata < 3) { + o.denseShapeTensorName = 'foo'; + o.encodedBaselines = buildUnnamed127(); + o.encodedTensorName = 'foo'; + o.encoding = 'foo'; + o.featureValueDomain = + buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain(); + o.groupName = 'foo'; + o.indexFeatureMapping = buildUnnamed128(); + o.indicesTensorName = 'foo'; + o.inputBaselines = buildUnnamed129(); + o.inputTensorName = 'foo'; + o.modality = 'foo'; + o.visualization = + buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization(); } - buildCounterGoogleCloudAiplatformV1FeatureNoiseSigma--; + buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadata--; return o; } -void checkGoogleCloudAiplatformV1FeatureNoiseSigma( - api.GoogleCloudAiplatformV1FeatureNoiseSigma o, +void checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadata( + api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadata o, ) { - buildCounterGoogleCloudAiplatformV1FeatureNoiseSigma++; - if (buildCounterGoogleCloudAiplatformV1FeatureNoiseSigma < 3) { - checkUnnamed118(o.noiseSigma!); + buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadata++; + if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadata < 3) { + unittest.expect(o.denseShapeTensorName!, unittest.equals('foo')); + checkUnnamed127(o.encodedBaselines!); + unittest.expect(o.encodedTensorName!, unittest.equals('foo')); + unittest.expect(o.encoding!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain( + o.featureValueDomain!, + ); + unittest.expect(o.groupName!, unittest.equals('foo')); + checkUnnamed128(o.indexFeatureMapping!); + unittest.expect(o.indicesTensorName!, unittest.equals('foo')); + checkUnnamed129(o.inputBaselines!); + unittest.expect(o.inputTensorName!, unittest.equals('foo')); + unittest.expect(o.modality!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization( + o.visualization!, + ); } - buildCounterGoogleCloudAiplatformV1FeatureNoiseSigma--; + buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadata--; } core.int -buildCounterGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature = 0; -api.GoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature -buildGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature() { - final o = api.GoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature(); - buildCounterGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature++; - if (buildCounterGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature < +buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain = + 0; +api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain +buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain() { + final o = + api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain(); + buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain++; + if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain < 3) { - o.name = 'foo'; - o.sigma = 42.0; + o.maxValue = 42.0; + o.minValue = 42.0; + o.originalMean = 42.0; + o.originalStddev = 42.0; } - buildCounterGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature--; + buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain--; return o; } -void checkGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature( - api.GoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature o, +void +checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain( + api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain + o, ) { - buildCounterGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature++; - if (buildCounterGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature < + buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain++; + if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain < 3) { - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.sigma!, unittest.equals(42.0)); + unittest.expect(o.maxValue!, unittest.equals(42.0)); + unittest.expect(o.minValue!, unittest.equals(42.0)); + unittest.expect(o.originalMean!, unittest.equals(42.0)); + unittest.expect(o.originalStddev!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature--; -} - -core.Map buildUnnamed119() => { - 'x': 'foo', - 'y': 'foo', -}; - -void checkUnnamed119(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureOnlineStore = 0; -api.GoogleCloudAiplatformV1FeatureOnlineStore -buildGoogleCloudAiplatformV1FeatureOnlineStore() { - final o = api.GoogleCloudAiplatformV1FeatureOnlineStore(); - buildCounterGoogleCloudAiplatformV1FeatureOnlineStore++; - if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStore < 3) { - o.bigtable = buildGoogleCloudAiplatformV1FeatureOnlineStoreBigtable(); - o.createTime = 'foo'; - o.dedicatedServingEndpoint = - buildGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint(); - o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.etag = 'foo'; - o.labels = buildUnnamed119(); - o.name = 'foo'; - o.optimized = buildGoogleCloudAiplatformV1FeatureOnlineStoreOptimized(); - o.satisfiesPzi = true; - o.satisfiesPzs = true; - o.state = 'foo'; - o.updateTime = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization = + 0; +api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization +buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization() { + final o = + api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization(); + buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization++; + if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization < + 3) { + o.clipPercentLowerbound = 42.0; + o.clipPercentUpperbound = 42.0; + o.colorMap = 'foo'; + o.overlayType = 'foo'; + o.polarity = 'foo'; + o.type = 'foo'; } - buildCounterGoogleCloudAiplatformV1FeatureOnlineStore--; + buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization--; return o; } -void checkGoogleCloudAiplatformV1FeatureOnlineStore( - api.GoogleCloudAiplatformV1FeatureOnlineStore o, +void checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization( + api.GoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization o, ) { - buildCounterGoogleCloudAiplatformV1FeatureOnlineStore++; - if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStore < 3) { - checkGoogleCloudAiplatformV1FeatureOnlineStoreBigtable(o.bigtable!); - unittest.expect(o.createTime!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint( - o.dedicatedServingEndpoint!, - ); - checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed119(o.labels!); - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FeatureOnlineStoreOptimized(o.optimized!); - unittest.expect(o.satisfiesPzi!, unittest.isTrue); - unittest.expect(o.satisfiesPzs!, unittest.isTrue); - unittest.expect(o.state!, unittest.equals('foo')); - unittest.expect(o.updateTime!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization++; + if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization < + 3) { + unittest.expect(o.clipPercentLowerbound!, unittest.equals(42.0)); + unittest.expect(o.clipPercentUpperbound!, unittest.equals(42.0)); + unittest.expect(o.colorMap!, unittest.equals('foo')); + unittest.expect(o.overlayType!, unittest.equals('foo')); + unittest.expect(o.polarity!, unittest.equals('foo')); + unittest.expect(o.type!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FeatureOnlineStore--; + buildCounterGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtable = 0; -api.GoogleCloudAiplatformV1FeatureOnlineStoreBigtable -buildGoogleCloudAiplatformV1FeatureOnlineStoreBigtable() { - final o = api.GoogleCloudAiplatformV1FeatureOnlineStoreBigtable(); - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtable++; - if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtable < 3) { - o.autoScaling = - buildGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling(); +core.int buildCounterGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata = + 0; +api.GoogleCloudAiplatformV1ExplanationMetadataOutputMetadata +buildGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata() { + final o = api.GoogleCloudAiplatformV1ExplanationMetadataOutputMetadata(); + buildCounterGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata++; + if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata < + 3) { + o.displayNameMappingKey = 'foo'; + o.indexDisplayNameMapping = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.outputTensorName = 'foo'; } - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtable--; + buildCounterGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata--; return o; } -void checkGoogleCloudAiplatformV1FeatureOnlineStoreBigtable( - api.GoogleCloudAiplatformV1FeatureOnlineStoreBigtable o, +void checkGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata( + api.GoogleCloudAiplatformV1ExplanationMetadataOutputMetadata o, ) { - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtable++; - if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtable < 3) { - checkGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling( - o.autoScaling!, - ); + buildCounterGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata++; + if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata < + 3) { + unittest.expect(o.displayNameMappingKey!, unittest.equals('foo')); + var casted46 = (o.indexDisplayNameMapping!) as core.Map; + unittest.expect(casted46, unittest.hasLength(3)); + unittest.expect(casted46['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted46['bool'], unittest.equals(true)); + unittest.expect(casted46['string'], unittest.equals('foo')); + unittest.expect(o.outputTensorName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtable--; + buildCounterGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata--; } -core.int -buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling = 0; -api.GoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling -buildGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling() { - final o = api.GoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling(); - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling++; - if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling < - 3) { - o.cpuUtilizationTarget = 42; - o.maxNodeCount = 42; - o.minNodeCount = 42; +core.Map< + core.String, + api.GoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride +> +buildUnnamed130() => { + 'x': + buildGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride(), + 'y': + buildGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride(), +}; + +void checkUnnamed130( + core.Map< + core.String, + api.GoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride + > + o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride( + o['x']!, + ); + checkGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride( + o['y']!, + ); +} + +core.int buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverride = 0; +api.GoogleCloudAiplatformV1ExplanationMetadataOverride +buildGoogleCloudAiplatformV1ExplanationMetadataOverride() { + final o = api.GoogleCloudAiplatformV1ExplanationMetadataOverride(); + buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverride++; + if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverride < 3) { + o.inputs = buildUnnamed130(); } - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling--; + buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverride--; return o; } -void checkGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling( - api.GoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling o, +void checkGoogleCloudAiplatformV1ExplanationMetadataOverride( + api.GoogleCloudAiplatformV1ExplanationMetadataOverride o, ) { - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling++; - if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling < - 3) { - unittest.expect(o.cpuUtilizationTarget!, unittest.equals(42)); - unittest.expect(o.maxNodeCount!, unittest.equals(42)); - unittest.expect(o.minNodeCount!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverride++; + if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverride < 3) { + checkUnnamed130(o.inputs!); } - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling--; + buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverride--; +} + +core.List buildUnnamed131() => [ + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +]; + +void checkUnnamed131(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + var casted47 = (o[0]) as core.Map; + unittest.expect(casted47, unittest.hasLength(3)); + unittest.expect(casted47['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted47['bool'], unittest.equals(true)); + unittest.expect(casted47['string'], unittest.equals('foo')); + var casted48 = (o[1]) as core.Map; + unittest.expect(casted48, unittest.hasLength(3)); + unittest.expect(casted48['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted48['bool'], unittest.equals(true)); + unittest.expect(casted48['string'], unittest.equals('foo')); } core.int -buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint = +buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride = 0; -api.GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint -buildGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint() { +api.GoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride +buildGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride() { final o = - api.GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint(); - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint++; - if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint < + api.GoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride(); + buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride++; + if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride < 3) { - o.privateServiceConnectConfig = - buildGoogleCloudAiplatformV1PrivateServiceConnectConfig(); - o.publicEndpointDomainName = 'foo'; - o.serviceAttachment = 'foo'; + o.inputBaselines = buildUnnamed131(); } - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint--; + buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride--; return o; } -void checkGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint( - api.GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint o, +void +checkGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride( + api.GoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride o, ) { - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint++; - if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint < + buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride++; + if (buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride < 3) { - checkGoogleCloudAiplatformV1PrivateServiceConnectConfig( - o.privateServiceConnectConfig!, - ); - unittest.expect(o.publicEndpointDomainName!, unittest.equals('foo')); - unittest.expect(o.serviceAttachment!, unittest.equals('foo')); + checkUnnamed131(o.inputBaselines!); } - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint--; + buildCounterGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreOptimized = 0; -api.GoogleCloudAiplatformV1FeatureOnlineStoreOptimized -buildGoogleCloudAiplatformV1FeatureOnlineStoreOptimized() { - final o = api.GoogleCloudAiplatformV1FeatureOnlineStoreOptimized(); - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreOptimized++; - if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreOptimized < 3) {} - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreOptimized--; - return o; -} +core.List buildUnnamed132() => [ + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +]; -void checkGoogleCloudAiplatformV1FeatureOnlineStoreOptimized( - api.GoogleCloudAiplatformV1FeatureOnlineStoreOptimized o, -) { - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreOptimized++; - if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreOptimized < 3) {} - buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreOptimized--; +void checkUnnamed132(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + var casted49 = (o[0]) as core.Map; + unittest.expect(casted49, unittest.hasLength(3)); + unittest.expect(casted49['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted49['bool'], unittest.equals(true)); + unittest.expect(casted49['string'], unittest.equals('foo')); + var casted50 = (o[1]) as core.Map; + unittest.expect(casted50, unittest.hasLength(3)); + unittest.expect(casted50['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted50['bool'], unittest.equals(true)); + unittest.expect(casted50['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1FeatureSelector = 0; -api.GoogleCloudAiplatformV1FeatureSelector -buildGoogleCloudAiplatformV1FeatureSelector() { - final o = api.GoogleCloudAiplatformV1FeatureSelector(); - buildCounterGoogleCloudAiplatformV1FeatureSelector++; - if (buildCounterGoogleCloudAiplatformV1FeatureSelector < 3) { - o.idMatcher = buildGoogleCloudAiplatformV1IdMatcher(); +core.int buildCounterGoogleCloudAiplatformV1ExplanationParameters = 0; +api.GoogleCloudAiplatformV1ExplanationParameters +buildGoogleCloudAiplatformV1ExplanationParameters() { + final o = api.GoogleCloudAiplatformV1ExplanationParameters(); + buildCounterGoogleCloudAiplatformV1ExplanationParameters++; + if (buildCounterGoogleCloudAiplatformV1ExplanationParameters < 3) { + o.examples = buildGoogleCloudAiplatformV1Examples(); + o.integratedGradientsAttribution = + buildGoogleCloudAiplatformV1IntegratedGradientsAttribution(); + o.outputIndices = buildUnnamed132(); + o.sampledShapleyAttribution = + buildGoogleCloudAiplatformV1SampledShapleyAttribution(); + o.topK = 42; + o.xraiAttribution = buildGoogleCloudAiplatformV1XraiAttribution(); } - buildCounterGoogleCloudAiplatformV1FeatureSelector--; + buildCounterGoogleCloudAiplatformV1ExplanationParameters--; return o; } -void checkGoogleCloudAiplatformV1FeatureSelector( - api.GoogleCloudAiplatformV1FeatureSelector o, +void checkGoogleCloudAiplatformV1ExplanationParameters( + api.GoogleCloudAiplatformV1ExplanationParameters o, ) { - buildCounterGoogleCloudAiplatformV1FeatureSelector++; - if (buildCounterGoogleCloudAiplatformV1FeatureSelector < 3) { - checkGoogleCloudAiplatformV1IdMatcher(o.idMatcher!); + buildCounterGoogleCloudAiplatformV1ExplanationParameters++; + if (buildCounterGoogleCloudAiplatformV1ExplanationParameters < 3) { + checkGoogleCloudAiplatformV1Examples(o.examples!); + checkGoogleCloudAiplatformV1IntegratedGradientsAttribution( + o.integratedGradientsAttribution!, + ); + checkUnnamed132(o.outputIndices!); + checkGoogleCloudAiplatformV1SampledShapleyAttribution( + o.sampledShapleyAttribution!, + ); + unittest.expect(o.topK!, unittest.equals(42)); + checkGoogleCloudAiplatformV1XraiAttribution(o.xraiAttribution!); } - buildCounterGoogleCloudAiplatformV1FeatureSelector--; + buildCounterGoogleCloudAiplatformV1ExplanationParameters--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureStatsAnomaly = 0; -api.GoogleCloudAiplatformV1FeatureStatsAnomaly -buildGoogleCloudAiplatformV1FeatureStatsAnomaly() { - final o = api.GoogleCloudAiplatformV1FeatureStatsAnomaly(); - buildCounterGoogleCloudAiplatformV1FeatureStatsAnomaly++; - if (buildCounterGoogleCloudAiplatformV1FeatureStatsAnomaly < 3) { - o.anomalyDetectionThreshold = 42.0; - o.anomalyUri = 'foo'; - o.distributionDeviation = 42.0; - o.endTime = 'foo'; - o.score = 42.0; - o.startTime = 'foo'; - o.statsUri = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ExplanationSpec = 0; +api.GoogleCloudAiplatformV1ExplanationSpec +buildGoogleCloudAiplatformV1ExplanationSpec() { + final o = api.GoogleCloudAiplatformV1ExplanationSpec(); + buildCounterGoogleCloudAiplatformV1ExplanationSpec++; + if (buildCounterGoogleCloudAiplatformV1ExplanationSpec < 3) { + o.metadata = buildGoogleCloudAiplatformV1ExplanationMetadata(); + o.parameters = buildGoogleCloudAiplatformV1ExplanationParameters(); } - buildCounterGoogleCloudAiplatformV1FeatureStatsAnomaly--; + buildCounterGoogleCloudAiplatformV1ExplanationSpec--; return o; } -void checkGoogleCloudAiplatformV1FeatureStatsAnomaly( - api.GoogleCloudAiplatformV1FeatureStatsAnomaly o, +void checkGoogleCloudAiplatformV1ExplanationSpec( + api.GoogleCloudAiplatformV1ExplanationSpec o, ) { - buildCounterGoogleCloudAiplatformV1FeatureStatsAnomaly++; - if (buildCounterGoogleCloudAiplatformV1FeatureStatsAnomaly < 3) { - unittest.expect(o.anomalyDetectionThreshold!, unittest.equals(42.0)); - unittest.expect(o.anomalyUri!, unittest.equals('foo')); - unittest.expect(o.distributionDeviation!, unittest.equals(42.0)); - unittest.expect(o.endTime!, unittest.equals('foo')); - unittest.expect(o.score!, unittest.equals(42.0)); - unittest.expect(o.startTime!, unittest.equals('foo')); - unittest.expect(o.statsUri!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ExplanationSpec++; + if (buildCounterGoogleCloudAiplatformV1ExplanationSpec < 3) { + checkGoogleCloudAiplatformV1ExplanationMetadata(o.metadata!); + checkGoogleCloudAiplatformV1ExplanationParameters(o.parameters!); } - buildCounterGoogleCloudAiplatformV1FeatureStatsAnomaly--; + buildCounterGoogleCloudAiplatformV1ExplanationSpec--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureValue = 0; -api.GoogleCloudAiplatformV1FeatureValue -buildGoogleCloudAiplatformV1FeatureValue() { - final o = api.GoogleCloudAiplatformV1FeatureValue(); - buildCounterGoogleCloudAiplatformV1FeatureValue++; - if (buildCounterGoogleCloudAiplatformV1FeatureValue < 3) { - o.boolArrayValue = buildGoogleCloudAiplatformV1BoolArray(); - o.boolValue = true; - o.bytesValue = 'foo'; - o.doubleArrayValue = buildGoogleCloudAiplatformV1DoubleArray(); - o.doubleValue = 42.0; - o.int64ArrayValue = buildGoogleCloudAiplatformV1Int64Array(); - o.int64Value = 'foo'; - o.metadata = buildGoogleCloudAiplatformV1FeatureValueMetadata(); - o.stringArrayValue = buildGoogleCloudAiplatformV1StringArray(); - o.stringValue = 'foo'; - o.structValue = buildGoogleCloudAiplatformV1StructValue(); +core.int buildCounterGoogleCloudAiplatformV1ExplanationSpecOverride = 0; +api.GoogleCloudAiplatformV1ExplanationSpecOverride +buildGoogleCloudAiplatformV1ExplanationSpecOverride() { + final o = api.GoogleCloudAiplatformV1ExplanationSpecOverride(); + buildCounterGoogleCloudAiplatformV1ExplanationSpecOverride++; + if (buildCounterGoogleCloudAiplatformV1ExplanationSpecOverride < 3) { + o.examplesOverride = buildGoogleCloudAiplatformV1ExamplesOverride(); + o.metadata = buildGoogleCloudAiplatformV1ExplanationMetadataOverride(); + o.parameters = buildGoogleCloudAiplatformV1ExplanationParameters(); } - buildCounterGoogleCloudAiplatformV1FeatureValue--; + buildCounterGoogleCloudAiplatformV1ExplanationSpecOverride--; return o; } -void checkGoogleCloudAiplatformV1FeatureValue( - api.GoogleCloudAiplatformV1FeatureValue o, +void checkGoogleCloudAiplatformV1ExplanationSpecOverride( + api.GoogleCloudAiplatformV1ExplanationSpecOverride o, ) { - buildCounterGoogleCloudAiplatformV1FeatureValue++; - if (buildCounterGoogleCloudAiplatformV1FeatureValue < 3) { - checkGoogleCloudAiplatformV1BoolArray(o.boolArrayValue!); - unittest.expect(o.boolValue!, unittest.isTrue); - unittest.expect(o.bytesValue!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1DoubleArray(o.doubleArrayValue!); - unittest.expect(o.doubleValue!, unittest.equals(42.0)); - checkGoogleCloudAiplatformV1Int64Array(o.int64ArrayValue!); - unittest.expect(o.int64Value!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FeatureValueMetadata(o.metadata!); - checkGoogleCloudAiplatformV1StringArray(o.stringArrayValue!); - unittest.expect(o.stringValue!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1StructValue(o.structValue!); + buildCounterGoogleCloudAiplatformV1ExplanationSpecOverride++; + if (buildCounterGoogleCloudAiplatformV1ExplanationSpecOverride < 3) { + checkGoogleCloudAiplatformV1ExamplesOverride(o.examplesOverride!); + checkGoogleCloudAiplatformV1ExplanationMetadataOverride(o.metadata!); + checkGoogleCloudAiplatformV1ExplanationParameters(o.parameters!); } - buildCounterGoogleCloudAiplatformV1FeatureValue--; + buildCounterGoogleCloudAiplatformV1ExplanationSpecOverride--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureValueDestination = 0; -api.GoogleCloudAiplatformV1FeatureValueDestination -buildGoogleCloudAiplatformV1FeatureValueDestination() { - final o = api.GoogleCloudAiplatformV1FeatureValueDestination(); - buildCounterGoogleCloudAiplatformV1FeatureValueDestination++; - if (buildCounterGoogleCloudAiplatformV1FeatureValueDestination < 3) { - o.bigqueryDestination = buildGoogleCloudAiplatformV1BigQueryDestination(); - o.csvDestination = buildGoogleCloudAiplatformV1CsvDestination(); - o.tfrecordDestination = buildGoogleCloudAiplatformV1TFRecordDestination(); +core.int buildCounterGoogleCloudAiplatformV1ExportDataConfig = 0; +api.GoogleCloudAiplatformV1ExportDataConfig +buildGoogleCloudAiplatformV1ExportDataConfig() { + final o = api.GoogleCloudAiplatformV1ExportDataConfig(); + buildCounterGoogleCloudAiplatformV1ExportDataConfig++; + if (buildCounterGoogleCloudAiplatformV1ExportDataConfig < 3) { + o.annotationSchemaUri = 'foo'; + o.annotationsFilter = 'foo'; + o.exportUse = 'foo'; + o.filterSplit = buildGoogleCloudAiplatformV1ExportFilterSplit(); + o.fractionSplit = buildGoogleCloudAiplatformV1ExportFractionSplit(); + o.gcsDestination = buildGoogleCloudAiplatformV1GcsDestination(); + o.savedQueryId = 'foo'; } - buildCounterGoogleCloudAiplatformV1FeatureValueDestination--; + buildCounterGoogleCloudAiplatformV1ExportDataConfig--; return o; } -void checkGoogleCloudAiplatformV1FeatureValueDestination( - api.GoogleCloudAiplatformV1FeatureValueDestination o, +void checkGoogleCloudAiplatformV1ExportDataConfig( + api.GoogleCloudAiplatformV1ExportDataConfig o, ) { - buildCounterGoogleCloudAiplatformV1FeatureValueDestination++; - if (buildCounterGoogleCloudAiplatformV1FeatureValueDestination < 3) { - checkGoogleCloudAiplatformV1BigQueryDestination(o.bigqueryDestination!); - checkGoogleCloudAiplatformV1CsvDestination(o.csvDestination!); - checkGoogleCloudAiplatformV1TFRecordDestination(o.tfrecordDestination!); + buildCounterGoogleCloudAiplatformV1ExportDataConfig++; + if (buildCounterGoogleCloudAiplatformV1ExportDataConfig < 3) { + unittest.expect(o.annotationSchemaUri!, unittest.equals('foo')); + unittest.expect(o.annotationsFilter!, unittest.equals('foo')); + unittest.expect(o.exportUse!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ExportFilterSplit(o.filterSplit!); + checkGoogleCloudAiplatformV1ExportFractionSplit(o.fractionSplit!); + checkGoogleCloudAiplatformV1GcsDestination(o.gcsDestination!); + unittest.expect(o.savedQueryId!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FeatureValueDestination--; -} - -core.List buildUnnamed120() => [ - buildGoogleCloudAiplatformV1FeatureValue(), - buildGoogleCloudAiplatformV1FeatureValue(), -]; - -void checkUnnamed120(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FeatureValue(o[0]); - checkGoogleCloudAiplatformV1FeatureValue(o[1]); + buildCounterGoogleCloudAiplatformV1ExportDataConfig--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureValueList = 0; -api.GoogleCloudAiplatformV1FeatureValueList -buildGoogleCloudAiplatformV1FeatureValueList() { - final o = api.GoogleCloudAiplatformV1FeatureValueList(); - buildCounterGoogleCloudAiplatformV1FeatureValueList++; - if (buildCounterGoogleCloudAiplatformV1FeatureValueList < 3) { - o.values = buildUnnamed120(); +core.int buildCounterGoogleCloudAiplatformV1ExportDataRequest = 0; +api.GoogleCloudAiplatformV1ExportDataRequest +buildGoogleCloudAiplatformV1ExportDataRequest() { + final o = api.GoogleCloudAiplatformV1ExportDataRequest(); + buildCounterGoogleCloudAiplatformV1ExportDataRequest++; + if (buildCounterGoogleCloudAiplatformV1ExportDataRequest < 3) { + o.exportConfig = buildGoogleCloudAiplatformV1ExportDataConfig(); } - buildCounterGoogleCloudAiplatformV1FeatureValueList--; + buildCounterGoogleCloudAiplatformV1ExportDataRequest--; return o; } -void checkGoogleCloudAiplatformV1FeatureValueList( - api.GoogleCloudAiplatformV1FeatureValueList o, +void checkGoogleCloudAiplatformV1ExportDataRequest( + api.GoogleCloudAiplatformV1ExportDataRequest o, ) { - buildCounterGoogleCloudAiplatformV1FeatureValueList++; - if (buildCounterGoogleCloudAiplatformV1FeatureValueList < 3) { - checkUnnamed120(o.values!); + buildCounterGoogleCloudAiplatformV1ExportDataRequest++; + if (buildCounterGoogleCloudAiplatformV1ExportDataRequest < 3) { + checkGoogleCloudAiplatformV1ExportDataConfig(o.exportConfig!); } - buildCounterGoogleCloudAiplatformV1FeatureValueList--; + buildCounterGoogleCloudAiplatformV1ExportDataRequest--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureValueMetadata = 0; -api.GoogleCloudAiplatformV1FeatureValueMetadata -buildGoogleCloudAiplatformV1FeatureValueMetadata() { - final o = api.GoogleCloudAiplatformV1FeatureValueMetadata(); - buildCounterGoogleCloudAiplatformV1FeatureValueMetadata++; - if (buildCounterGoogleCloudAiplatformV1FeatureValueMetadata < 3) { - o.generateTime = 'foo'; - } - buildCounterGoogleCloudAiplatformV1FeatureValueMetadata--; - return o; -} +core.List +buildUnnamed133() => [ + buildGoogleCloudAiplatformV1DestinationFeatureSetting(), + buildGoogleCloudAiplatformV1DestinationFeatureSetting(), +]; -void checkGoogleCloudAiplatformV1FeatureValueMetadata( - api.GoogleCloudAiplatformV1FeatureValueMetadata o, +void checkUnnamed133( + core.List o, ) { - buildCounterGoogleCloudAiplatformV1FeatureValueMetadata++; - if (buildCounterGoogleCloudAiplatformV1FeatureValueMetadata < 3) { - unittest.expect(o.generateTime!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1FeatureValueMetadata--; -} - -core.Map buildUnnamed121() => { - 'x': 'foo', - 'y': 'foo', -}; - -void checkUnnamed121(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1DestinationFeatureSetting(o[0]); + checkGoogleCloudAiplatformV1DestinationFeatureSetting(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1FeatureView = 0; -api.GoogleCloudAiplatformV1FeatureView -buildGoogleCloudAiplatformV1FeatureView() { - final o = api.GoogleCloudAiplatformV1FeatureView(); - buildCounterGoogleCloudAiplatformV1FeatureView++; - if (buildCounterGoogleCloudAiplatformV1FeatureView < 3) { - o.bigQuerySource = buildGoogleCloudAiplatformV1FeatureViewBigQuerySource(); - o.createTime = 'foo'; - o.etag = 'foo'; - o.featureRegistrySource = - buildGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource(); - o.indexConfig = buildGoogleCloudAiplatformV1FeatureViewIndexConfig(); - o.labels = buildUnnamed121(); - o.name = 'foo'; - o.optimizedConfig = - buildGoogleCloudAiplatformV1FeatureViewOptimizedConfig(); - o.satisfiesPzi = true; - o.satisfiesPzs = true; - o.serviceAccountEmail = 'foo'; - o.serviceAgentType = 'foo'; - o.syncConfig = buildGoogleCloudAiplatformV1FeatureViewSyncConfig(); - o.updateTime = 'foo'; - o.vertexRagSource = - buildGoogleCloudAiplatformV1FeatureViewVertexRagSource(); +core.int buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequest = 0; +api.GoogleCloudAiplatformV1ExportFeatureValuesRequest +buildGoogleCloudAiplatformV1ExportFeatureValuesRequest() { + final o = api.GoogleCloudAiplatformV1ExportFeatureValuesRequest(); + buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequest++; + if (buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequest < 3) { + o.destination = buildGoogleCloudAiplatformV1FeatureValueDestination(); + o.featureSelector = buildGoogleCloudAiplatformV1FeatureSelector(); + o.fullExport = + buildGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport(); + o.settings = buildUnnamed133(); + o.snapshotExport = + buildGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport(); } - buildCounterGoogleCloudAiplatformV1FeatureView--; + buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequest--; return o; } -void checkGoogleCloudAiplatformV1FeatureView( - api.GoogleCloudAiplatformV1FeatureView o, +void checkGoogleCloudAiplatformV1ExportFeatureValuesRequest( + api.GoogleCloudAiplatformV1ExportFeatureValuesRequest o, ) { - buildCounterGoogleCloudAiplatformV1FeatureView++; - if (buildCounterGoogleCloudAiplatformV1FeatureView < 3) { - checkGoogleCloudAiplatformV1FeatureViewBigQuerySource(o.bigQuerySource!); - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.etag!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource( - o.featureRegistrySource!, + buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequest++; + if (buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequest < 3) { + checkGoogleCloudAiplatformV1FeatureValueDestination(o.destination!); + checkGoogleCloudAiplatformV1FeatureSelector(o.featureSelector!); + checkGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport( + o.fullExport!, + ); + checkUnnamed133(o.settings!); + checkGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport( + o.snapshotExport!, ); - checkGoogleCloudAiplatformV1FeatureViewIndexConfig(o.indexConfig!); - checkUnnamed121(o.labels!); - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FeatureViewOptimizedConfig(o.optimizedConfig!); - unittest.expect(o.satisfiesPzi!, unittest.isTrue); - unittest.expect(o.satisfiesPzs!, unittest.isTrue); - unittest.expect(o.serviceAccountEmail!, unittest.equals('foo')); - unittest.expect(o.serviceAgentType!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FeatureViewSyncConfig(o.syncConfig!); - unittest.expect(o.updateTime!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FeatureViewVertexRagSource(o.vertexRagSource!); } - buildCounterGoogleCloudAiplatformV1FeatureView--; -} - -core.List buildUnnamed122() => ['foo', 'foo']; - -void checkUnnamed122(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequest--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureViewBigQuerySource = 0; -api.GoogleCloudAiplatformV1FeatureViewBigQuerySource -buildGoogleCloudAiplatformV1FeatureViewBigQuerySource() { - final o = api.GoogleCloudAiplatformV1FeatureViewBigQuerySource(); - buildCounterGoogleCloudAiplatformV1FeatureViewBigQuerySource++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewBigQuerySource < 3) { - o.entityIdColumns = buildUnnamed122(); - o.uri = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport = 0; +api.GoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport +buildGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport() { + final o = api.GoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport(); + buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport++; + if (buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport < + 3) { + o.endTime = 'foo'; + o.startTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1FeatureViewBigQuerySource--; + buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport--; return o; } -void checkGoogleCloudAiplatformV1FeatureViewBigQuerySource( - api.GoogleCloudAiplatformV1FeatureViewBigQuerySource o, +void checkGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport( + api.GoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport o, ) { - buildCounterGoogleCloudAiplatformV1FeatureViewBigQuerySource++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewBigQuerySource < 3) { - checkUnnamed122(o.entityIdColumns!); - unittest.expect(o.uri!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport++; + if (buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport < + 3) { + unittest.expect(o.endTime!, unittest.equals('foo')); + unittest.expect(o.startTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FeatureViewBigQuerySource--; + buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureViewDataKey = 0; -api.GoogleCloudAiplatformV1FeatureViewDataKey -buildGoogleCloudAiplatformV1FeatureViewDataKey() { - final o = api.GoogleCloudAiplatformV1FeatureViewDataKey(); - buildCounterGoogleCloudAiplatformV1FeatureViewDataKey++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewDataKey < 3) { - o.compositeKey = - buildGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey(); - o.key = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport = 0; +api.GoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport +buildGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport() { + final o = + api.GoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport(); + buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport++; + if (buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport < + 3) { + o.snapshotTime = 'foo'; + o.startTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1FeatureViewDataKey--; + buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport--; return o; } -void checkGoogleCloudAiplatformV1FeatureViewDataKey( - api.GoogleCloudAiplatformV1FeatureViewDataKey o, +void checkGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport( + api.GoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport o, ) { - buildCounterGoogleCloudAiplatformV1FeatureViewDataKey++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewDataKey < 3) { - checkGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey(o.compositeKey!); - unittest.expect(o.key!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport++; + if (buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport < + 3) { + unittest.expect(o.snapshotTime!, unittest.equals('foo')); + unittest.expect(o.startTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FeatureViewDataKey--; -} - -core.List buildUnnamed123() => ['foo', 'foo']; - -void checkUnnamed123(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey = 0; -api.GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey -buildGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey() { - final o = api.GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey(); - buildCounterGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey < 3) { - o.parts = buildUnnamed123(); +core.int buildCounterGoogleCloudAiplatformV1ExportFilterSplit = 0; +api.GoogleCloudAiplatformV1ExportFilterSplit +buildGoogleCloudAiplatformV1ExportFilterSplit() { + final o = api.GoogleCloudAiplatformV1ExportFilterSplit(); + buildCounterGoogleCloudAiplatformV1ExportFilterSplit++; + if (buildCounterGoogleCloudAiplatformV1ExportFilterSplit < 3) { + o.testFilter = 'foo'; + o.trainingFilter = 'foo'; + o.validationFilter = 'foo'; } - buildCounterGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey--; + buildCounterGoogleCloudAiplatformV1ExportFilterSplit--; return o; } -void checkGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey( - api.GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey o, +void checkGoogleCloudAiplatformV1ExportFilterSplit( + api.GoogleCloudAiplatformV1ExportFilterSplit o, ) { - buildCounterGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey < 3) { - checkUnnamed123(o.parts!); + buildCounterGoogleCloudAiplatformV1ExportFilterSplit++; + if (buildCounterGoogleCloudAiplatformV1ExportFilterSplit < 3) { + unittest.expect(o.testFilter!, unittest.equals('foo')); + unittest.expect(o.trainingFilter!, unittest.equals('foo')); + unittest.expect(o.validationFilter!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey--; -} - -core.List< - api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues -> -buildUnnamed124() => [ - buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues(), - buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues(), -]; - -void checkUnnamed124( - core.List< - api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues - > - o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues( - o[0], - ); - checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues( - o[1], - ); + buildCounterGoogleCloudAiplatformV1ExportFilterSplit--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequest = 0; -api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequest -buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequest() { - final o = api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequest(); - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequest++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequest < 3) { - o.dataKeyAndFeatureValues = buildUnnamed124(); +core.int buildCounterGoogleCloudAiplatformV1ExportFractionSplit = 0; +api.GoogleCloudAiplatformV1ExportFractionSplit +buildGoogleCloudAiplatformV1ExportFractionSplit() { + final o = api.GoogleCloudAiplatformV1ExportFractionSplit(); + buildCounterGoogleCloudAiplatformV1ExportFractionSplit++; + if (buildCounterGoogleCloudAiplatformV1ExportFractionSplit < 3) { + o.testFraction = 42.0; + o.trainingFraction = 42.0; + o.validationFraction = 42.0; } - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequest--; + buildCounterGoogleCloudAiplatformV1ExportFractionSplit--; return o; } -void checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequest( - api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequest o, +void checkGoogleCloudAiplatformV1ExportFractionSplit( + api.GoogleCloudAiplatformV1ExportFractionSplit o, ) { - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequest++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequest < 3) { - checkUnnamed124(o.dataKeyAndFeatureValues!); + buildCounterGoogleCloudAiplatformV1ExportFractionSplit++; + if (buildCounterGoogleCloudAiplatformV1ExportFractionSplit < 3) { + unittest.expect(o.testFraction!, unittest.equals(42.0)); + unittest.expect(o.trainingFraction!, unittest.equals(42.0)); + unittest.expect(o.validationFraction!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequest--; + buildCounterGoogleCloudAiplatformV1ExportFractionSplit--; } -core.List< - api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature -> -buildUnnamed125() => [ - buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature(), - buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature(), -]; +core.int buildCounterGoogleCloudAiplatformV1ExportModelRequest = 0; +api.GoogleCloudAiplatformV1ExportModelRequest +buildGoogleCloudAiplatformV1ExportModelRequest() { + final o = api.GoogleCloudAiplatformV1ExportModelRequest(); + buildCounterGoogleCloudAiplatformV1ExportModelRequest++; + if (buildCounterGoogleCloudAiplatformV1ExportModelRequest < 3) { + o.outputConfig = + buildGoogleCloudAiplatformV1ExportModelRequestOutputConfig(); + } + buildCounterGoogleCloudAiplatformV1ExportModelRequest--; + return o; +} -void checkUnnamed125( - core.List< - api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature - > - o, +void checkGoogleCloudAiplatformV1ExportModelRequest( + api.GoogleCloudAiplatformV1ExportModelRequest o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature( - o[0], - ); - checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature( - o[1], - ); + buildCounterGoogleCloudAiplatformV1ExportModelRequest++; + if (buildCounterGoogleCloudAiplatformV1ExportModelRequest < 3) { + checkGoogleCloudAiplatformV1ExportModelRequestOutputConfig(o.outputConfig!); + } + buildCounterGoogleCloudAiplatformV1ExportModelRequest--; } -core.int -buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues = - 0; -api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues -buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues() { - final o = - api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues(); - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues < - 3) { - o.dataKey = buildGoogleCloudAiplatformV1FeatureViewDataKey(); - o.features = buildUnnamed125(); +core.int buildCounterGoogleCloudAiplatformV1ExportModelRequestOutputConfig = 0; +api.GoogleCloudAiplatformV1ExportModelRequestOutputConfig +buildGoogleCloudAiplatformV1ExportModelRequestOutputConfig() { + final o = api.GoogleCloudAiplatformV1ExportModelRequestOutputConfig(); + buildCounterGoogleCloudAiplatformV1ExportModelRequestOutputConfig++; + if (buildCounterGoogleCloudAiplatformV1ExportModelRequestOutputConfig < 3) { + o.artifactDestination = buildGoogleCloudAiplatformV1GcsDestination(); + o.exportFormatId = 'foo'; + o.imageDestination = + buildGoogleCloudAiplatformV1ContainerRegistryDestination(); } - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues--; + buildCounterGoogleCloudAiplatformV1ExportModelRequestOutputConfig--; return o; } -void -checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues( - api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues - o, +void checkGoogleCloudAiplatformV1ExportModelRequestOutputConfig( + api.GoogleCloudAiplatformV1ExportModelRequestOutputConfig o, ) { - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues < - 3) { - checkGoogleCloudAiplatformV1FeatureViewDataKey(o.dataKey!); - checkUnnamed125(o.features!); + buildCounterGoogleCloudAiplatformV1ExportModelRequestOutputConfig++; + if (buildCounterGoogleCloudAiplatformV1ExportModelRequestOutputConfig < 3) { + checkGoogleCloudAiplatformV1GcsDestination(o.artifactDestination!); + unittest.expect(o.exportFormatId!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ContainerRegistryDestination( + o.imageDestination!, + ); } - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues--; + buildCounterGoogleCloudAiplatformV1ExportModelRequestOutputConfig--; } core.int -buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature = - 0; -api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature -buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature() { - final o = - api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature(); - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature < +buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest = 0; +api.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest +buildGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest() { + final o = api.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest(); + buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest++; + if (buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest < 3) { - o.name = 'foo'; - o.value = buildGoogleCloudAiplatformV1FeatureValue(); + o.filter = 'foo'; + o.orderBy = 'foo'; + o.pageSize = 42; + o.pageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature--; + buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest--; return o; } -void -checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature( - api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature - o, +void checkGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest( + api.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest o, ) { - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature < + buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest++; + if (buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest < 3) { - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FeatureValue(o.value!); + unittest.expect(o.filter!, unittest.equals('foo')); + unittest.expect(o.orderBy!, unittest.equals('foo')); + unittest.expect(o.pageSize!, unittest.equals(42)); + unittest.expect(o.pageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature--; + buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest--; } -core.List< - api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse -> -buildUnnamed126() => [ - buildGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse(), - buildGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse(), +core.List buildUnnamed134() => [ + buildGoogleCloudAiplatformV1TimeSeriesDataPoint(), + buildGoogleCloudAiplatformV1TimeSeriesDataPoint(), ]; -void checkUnnamed126( - core.List< - api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse - > - o, +void checkUnnamed134( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse(o[0]); - checkGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse(o[1]); -} - -core.int buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponse = 0; -api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponse -buildGoogleCloudAiplatformV1FeatureViewDirectWriteResponse() { - final o = api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponse(); - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponse++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponse < 3) { - o.status = buildGoogleRpcStatus(); - o.writeResponses = buildUnnamed126(); - } - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponse--; - return o; -} - -void checkGoogleCloudAiplatformV1FeatureViewDirectWriteResponse( - api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponse o, -) { - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponse++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponse < 3) { - checkGoogleRpcStatus(o.status!); - checkUnnamed126(o.writeResponses!); - } - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponse--; + checkGoogleCloudAiplatformV1TimeSeriesDataPoint(o[0]); + checkGoogleCloudAiplatformV1TimeSeriesDataPoint(o[1]); } core.int -buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse = - 0; -api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse -buildGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse() { +buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse = 0; +api.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse +buildGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse() { final o = - api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse(); - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse < + api.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse(); + buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse++; + if (buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse < 3) { - o.dataKey = buildGoogleCloudAiplatformV1FeatureViewDataKey(); - o.onlineStoreWriteTime = 'foo'; + o.nextPageToken = 'foo'; + o.timeSeriesDataPoints = buildUnnamed134(); } - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse--; + buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse--; return o; } -void checkGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse( - api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse o, +void checkGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse( + api.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse o, ) { - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse < + buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse++; + if (buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse < 3) { - checkGoogleCloudAiplatformV1FeatureViewDataKey(o.dataKey!); - unittest.expect(o.onlineStoreWriteTime!, unittest.equals('foo')); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed134(o.timeSeriesDataPoints!); } - buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse--; + buildCounterGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse--; } -core.List< - api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup -> -buildUnnamed127() => [ - buildGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup(), - buildGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup(), -]; - -void checkUnnamed127( - core.List< - api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup - > - o, +core.int buildCounterGoogleCloudAiplatformV1ExternalApi = 0; +api.GoogleCloudAiplatformV1ExternalApi +buildGoogleCloudAiplatformV1ExternalApi() { + final o = api.GoogleCloudAiplatformV1ExternalApi(); + buildCounterGoogleCloudAiplatformV1ExternalApi++; + if (buildCounterGoogleCloudAiplatformV1ExternalApi < 3) { + o.apiAuth = buildGoogleCloudAiplatformV1ApiAuth(); + o.apiSpec = 'foo'; + o.authConfig = buildGoogleCloudAiplatformV1AuthConfig(); + o.elasticSearchParams = + buildGoogleCloudAiplatformV1ExternalApiElasticSearchParams(); + o.endpoint = 'foo'; + o.simpleSearchParams = + buildGoogleCloudAiplatformV1ExternalApiSimpleSearchParams(); + } + buildCounterGoogleCloudAiplatformV1ExternalApi--; + return o; +} + +void checkGoogleCloudAiplatformV1ExternalApi( + api.GoogleCloudAiplatformV1ExternalApi o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup( - o[0], - ); - checkGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup( - o[1], - ); + buildCounterGoogleCloudAiplatformV1ExternalApi++; + if (buildCounterGoogleCloudAiplatformV1ExternalApi < 3) { + checkGoogleCloudAiplatformV1ApiAuth(o.apiAuth!); + unittest.expect(o.apiSpec!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1AuthConfig(o.authConfig!); + checkGoogleCloudAiplatformV1ExternalApiElasticSearchParams( + o.elasticSearchParams!, + ); + unittest.expect(o.endpoint!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ExternalApiSimpleSearchParams( + o.simpleSearchParams!, + ); + } + buildCounterGoogleCloudAiplatformV1ExternalApi--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource = - 0; -api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource -buildGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource() { - final o = api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource(); - buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource < 3) { - o.featureGroups = buildUnnamed127(); - o.projectNumber = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ExternalApiElasticSearchParams = 0; +api.GoogleCloudAiplatformV1ExternalApiElasticSearchParams +buildGoogleCloudAiplatformV1ExternalApiElasticSearchParams() { + final o = api.GoogleCloudAiplatformV1ExternalApiElasticSearchParams(); + buildCounterGoogleCloudAiplatformV1ExternalApiElasticSearchParams++; + if (buildCounterGoogleCloudAiplatformV1ExternalApiElasticSearchParams < 3) { + o.index = 'foo'; + o.numHits = 42; + o.searchTemplate = 'foo'; } - buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource--; + buildCounterGoogleCloudAiplatformV1ExternalApiElasticSearchParams--; return o; } -void checkGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource( - api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource o, +void checkGoogleCloudAiplatformV1ExternalApiElasticSearchParams( + api.GoogleCloudAiplatformV1ExternalApiElasticSearchParams o, ) { - buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource < 3) { - checkUnnamed127(o.featureGroups!); - unittest.expect(o.projectNumber!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ExternalApiElasticSearchParams++; + if (buildCounterGoogleCloudAiplatformV1ExternalApiElasticSearchParams < 3) { + unittest.expect(o.index!, unittest.equals('foo')); + unittest.expect(o.numHits!, unittest.equals(42)); + unittest.expect(o.searchTemplate!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource--; + buildCounterGoogleCloudAiplatformV1ExternalApiElasticSearchParams--; } -core.List buildUnnamed128() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1ExternalApiSimpleSearchParams = 0; +api.GoogleCloudAiplatformV1ExternalApiSimpleSearchParams +buildGoogleCloudAiplatformV1ExternalApiSimpleSearchParams() { + final o = api.GoogleCloudAiplatformV1ExternalApiSimpleSearchParams(); + buildCounterGoogleCloudAiplatformV1ExternalApiSimpleSearchParams++; + if (buildCounterGoogleCloudAiplatformV1ExternalApiSimpleSearchParams < 3) {} + buildCounterGoogleCloudAiplatformV1ExternalApiSimpleSearchParams--; + return o; +} -void checkUnnamed128(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1ExternalApiSimpleSearchParams( + api.GoogleCloudAiplatformV1ExternalApiSimpleSearchParams o, +) { + buildCounterGoogleCloudAiplatformV1ExternalApiSimpleSearchParams++; + if (buildCounterGoogleCloudAiplatformV1ExternalApiSimpleSearchParams < 3) {} + buildCounterGoogleCloudAiplatformV1ExternalApiSimpleSearchParams--; } -core.int -buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup = - 0; -api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup -buildGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup() { - final o = - api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup(); - buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup < - 3) { - o.featureGroupId = 'foo'; - o.featureIds = buildUnnamed128(); +core.int buildCounterGoogleCloudAiplatformV1Fact = 0; +api.GoogleCloudAiplatformV1Fact buildGoogleCloudAiplatformV1Fact() { + final o = api.GoogleCloudAiplatformV1Fact(); + buildCounterGoogleCloudAiplatformV1Fact++; + if (buildCounterGoogleCloudAiplatformV1Fact < 3) { + o.chunk = buildGoogleCloudAiplatformV1RagChunk(); + o.query = 'foo'; + o.score = 42.0; + o.summary = 'foo'; + o.title = 'foo'; + o.uri = 'foo'; + o.vectorDistance = 42.0; } - buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup--; + buildCounterGoogleCloudAiplatformV1Fact--; return o; } -void checkGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup( - api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup o, +void checkGoogleCloudAiplatformV1Fact(api.GoogleCloudAiplatformV1Fact o) { + buildCounterGoogleCloudAiplatformV1Fact++; + if (buildCounterGoogleCloudAiplatformV1Fact < 3) { + checkGoogleCloudAiplatformV1RagChunk(o.chunk!); + unittest.expect(o.query!, unittest.equals('foo')); + unittest.expect(o.score!, unittest.equals(42.0)); + unittest.expect(o.summary!, unittest.equals('foo')); + unittest.expect(o.title!, unittest.equals('foo')); + unittest.expect(o.uri!, unittest.equals('foo')); + unittest.expect(o.vectorDistance!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1Fact--; +} + +core.int buildCounterGoogleCloudAiplatformV1FasterDeploymentConfig = 0; +api.GoogleCloudAiplatformV1FasterDeploymentConfig +buildGoogleCloudAiplatformV1FasterDeploymentConfig() { + final o = api.GoogleCloudAiplatformV1FasterDeploymentConfig(); + buildCounterGoogleCloudAiplatformV1FasterDeploymentConfig++; + if (buildCounterGoogleCloudAiplatformV1FasterDeploymentConfig < 3) { + o.fastTryoutEnabled = true; + } + buildCounterGoogleCloudAiplatformV1FasterDeploymentConfig--; + return o; +} + +void checkGoogleCloudAiplatformV1FasterDeploymentConfig( + api.GoogleCloudAiplatformV1FasterDeploymentConfig o, ) { - buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup < - 3) { - unittest.expect(o.featureGroupId!, unittest.equals('foo')); - checkUnnamed128(o.featureIds!); + buildCounterGoogleCloudAiplatformV1FasterDeploymentConfig++; + if (buildCounterGoogleCloudAiplatformV1FasterDeploymentConfig < 3) { + unittest.expect(o.fastTryoutEnabled!, unittest.isTrue); } - buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup--; + buildCounterGoogleCloudAiplatformV1FasterDeploymentConfig--; } -core.List buildUnnamed129() => ['foo', 'foo']; +core.Map buildUnnamed135() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkUnnamed129(core.List o) { +void checkUnnamed135(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfig = 0; -api.GoogleCloudAiplatformV1FeatureViewIndexConfig -buildGoogleCloudAiplatformV1FeatureViewIndexConfig() { - final o = api.GoogleCloudAiplatformV1FeatureViewIndexConfig(); - buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfig++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfig < 3) { - o.bruteForceConfig = - buildGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig(); - o.crowdingColumn = 'foo'; - o.distanceMeasureType = 'foo'; - o.embeddingColumn = 'foo'; - o.embeddingDimension = 42; - o.filterColumns = buildUnnamed129(); - o.treeAhConfig = - buildGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig(); +core.List +buildUnnamed136() => [ + buildGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly(), + buildGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly(), +]; + +void checkUnnamed136( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly(o[0]); + checkGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1Feature = 0; +api.GoogleCloudAiplatformV1Feature buildGoogleCloudAiplatformV1Feature() { + final o = api.GoogleCloudAiplatformV1Feature(); + buildCounterGoogleCloudAiplatformV1Feature++; + if (buildCounterGoogleCloudAiplatformV1Feature < 3) { + o.createTime = 'foo'; + o.description = 'foo'; + o.disableMonitoring = true; + o.etag = 'foo'; + o.labels = buildUnnamed135(); + o.monitoringStatsAnomalies = buildUnnamed136(); + o.name = 'foo'; + o.pointOfContact = 'foo'; + o.updateTime = 'foo'; + o.valueType = 'foo'; + o.versionColumnName = 'foo'; } - buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfig--; + buildCounterGoogleCloudAiplatformV1Feature--; return o; } -void checkGoogleCloudAiplatformV1FeatureViewIndexConfig( - api.GoogleCloudAiplatformV1FeatureViewIndexConfig o, -) { - buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfig++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfig < 3) { - checkGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig( - o.bruteForceConfig!, - ); - unittest.expect(o.crowdingColumn!, unittest.equals('foo')); - unittest.expect(o.distanceMeasureType!, unittest.equals('foo')); - unittest.expect(o.embeddingColumn!, unittest.equals('foo')); - unittest.expect(o.embeddingDimension!, unittest.equals(42)); - checkUnnamed129(o.filterColumns!); - checkGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig( - o.treeAhConfig!, - ); +void checkGoogleCloudAiplatformV1Feature(api.GoogleCloudAiplatformV1Feature o) { + buildCounterGoogleCloudAiplatformV1Feature++; + if (buildCounterGoogleCloudAiplatformV1Feature < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.disableMonitoring!, unittest.isTrue); + unittest.expect(o.etag!, unittest.equals('foo')); + checkUnnamed135(o.labels!); + checkUnnamed136(o.monitoringStatsAnomalies!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.pointOfContact!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); + unittest.expect(o.valueType!, unittest.equals('foo')); + unittest.expect(o.versionColumnName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfig--; + buildCounterGoogleCloudAiplatformV1Feature--; } -core.int -buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig = 0; -api.GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig -buildGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig() { - final o = api.GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig(); - buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig < - 3) {} - buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig--; - return o; -} +core.Map buildUnnamed137() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig( - api.GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig o, -) { - buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig < - 3) {} - buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig--; +void checkUnnamed137(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig = - 0; -api.GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig -buildGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig() { - final o = api.GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig(); - buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig < - 3) { - o.leafNodeEmbeddingCount = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1FeatureGroup = 0; +api.GoogleCloudAiplatformV1FeatureGroup +buildGoogleCloudAiplatformV1FeatureGroup() { + final o = api.GoogleCloudAiplatformV1FeatureGroup(); + buildCounterGoogleCloudAiplatformV1FeatureGroup++; + if (buildCounterGoogleCloudAiplatformV1FeatureGroup < 3) { + o.bigQuery = buildGoogleCloudAiplatformV1FeatureGroupBigQuery(); + o.createTime = 'foo'; + o.description = 'foo'; + o.etag = 'foo'; + o.labels = buildUnnamed137(); + o.name = 'foo'; + o.serviceAccountEmail = 'foo'; + o.serviceAgentType = 'foo'; + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig--; + buildCounterGoogleCloudAiplatformV1FeatureGroup--; return o; } -void checkGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig( - api.GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig o, +void checkGoogleCloudAiplatformV1FeatureGroup( + api.GoogleCloudAiplatformV1FeatureGroup o, ) { - buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig < - 3) { - unittest.expect(o.leafNodeEmbeddingCount!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FeatureGroup++; + if (buildCounterGoogleCloudAiplatformV1FeatureGroup < 3) { + checkGoogleCloudAiplatformV1FeatureGroupBigQuery(o.bigQuery!); + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.etag!, unittest.equals('foo')); + checkUnnamed137(o.labels!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.serviceAccountEmail!, unittest.equals('foo')); + unittest.expect(o.serviceAgentType!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig--; + buildCounterGoogleCloudAiplatformV1FeatureGroup--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureViewOptimizedConfig = 0; -api.GoogleCloudAiplatformV1FeatureViewOptimizedConfig -buildGoogleCloudAiplatformV1FeatureViewOptimizedConfig() { - final o = api.GoogleCloudAiplatformV1FeatureViewOptimizedConfig(); - buildCounterGoogleCloudAiplatformV1FeatureViewOptimizedConfig++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewOptimizedConfig < 3) { - o.automaticResources = buildGoogleCloudAiplatformV1AutomaticResources(); +core.List buildUnnamed138() => ['foo', 'foo']; + +void checkUnnamed138(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1FeatureGroupBigQuery = 0; +api.GoogleCloudAiplatformV1FeatureGroupBigQuery +buildGoogleCloudAiplatformV1FeatureGroupBigQuery() { + final o = api.GoogleCloudAiplatformV1FeatureGroupBigQuery(); + buildCounterGoogleCloudAiplatformV1FeatureGroupBigQuery++; + if (buildCounterGoogleCloudAiplatformV1FeatureGroupBigQuery < 3) { + o.bigQuerySource = buildGoogleCloudAiplatformV1BigQuerySource(); + o.dense = true; + o.entityIdColumns = buildUnnamed138(); + o.staticDataSource = true; + o.timeSeries = buildGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries(); } - buildCounterGoogleCloudAiplatformV1FeatureViewOptimizedConfig--; + buildCounterGoogleCloudAiplatformV1FeatureGroupBigQuery--; return o; } -void checkGoogleCloudAiplatformV1FeatureViewOptimizedConfig( - api.GoogleCloudAiplatformV1FeatureViewOptimizedConfig o, +void checkGoogleCloudAiplatformV1FeatureGroupBigQuery( + api.GoogleCloudAiplatformV1FeatureGroupBigQuery o, ) { - buildCounterGoogleCloudAiplatformV1FeatureViewOptimizedConfig++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewOptimizedConfig < 3) { - checkGoogleCloudAiplatformV1AutomaticResources(o.automaticResources!); + buildCounterGoogleCloudAiplatformV1FeatureGroupBigQuery++; + if (buildCounterGoogleCloudAiplatformV1FeatureGroupBigQuery < 3) { + checkGoogleCloudAiplatformV1BigQuerySource(o.bigQuerySource!); + unittest.expect(o.dense!, unittest.isTrue); + checkUnnamed138(o.entityIdColumns!); + unittest.expect(o.staticDataSource!, unittest.isTrue); + checkGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries(o.timeSeries!); } - buildCounterGoogleCloudAiplatformV1FeatureViewOptimizedConfig--; + buildCounterGoogleCloudAiplatformV1FeatureGroupBigQuery--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureViewSync = 0; -api.GoogleCloudAiplatformV1FeatureViewSync -buildGoogleCloudAiplatformV1FeatureViewSync() { - final o = api.GoogleCloudAiplatformV1FeatureViewSync(); - buildCounterGoogleCloudAiplatformV1FeatureViewSync++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewSync < 3) { - o.createTime = 'foo'; - o.finalStatus = buildGoogleRpcStatus(); - o.name = 'foo'; - o.runTime = buildGoogleTypeInterval(); - o.satisfiesPzi = true; - o.satisfiesPzs = true; - o.syncSummary = buildGoogleCloudAiplatformV1FeatureViewSyncSyncSummary(); +core.int buildCounterGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries = 0; +api.GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries +buildGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries() { + final o = api.GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries(); + buildCounterGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries++; + if (buildCounterGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries < 3) { + o.timestampColumn = 'foo'; } - buildCounterGoogleCloudAiplatformV1FeatureViewSync--; + buildCounterGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries--; return o; } -void checkGoogleCloudAiplatformV1FeatureViewSync( - api.GoogleCloudAiplatformV1FeatureViewSync o, +void checkGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries( + api.GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries o, ) { - buildCounterGoogleCloudAiplatformV1FeatureViewSync++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewSync < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - checkGoogleRpcStatus(o.finalStatus!); - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleTypeInterval(o.runTime!); - unittest.expect(o.satisfiesPzi!, unittest.isTrue); - unittest.expect(o.satisfiesPzs!, unittest.isTrue); - checkGoogleCloudAiplatformV1FeatureViewSyncSyncSummary(o.syncSummary!); + buildCounterGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries++; + if (buildCounterGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries < 3) { + unittest.expect(o.timestampColumn!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FeatureViewSync--; + buildCounterGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureViewSyncConfig = 0; -api.GoogleCloudAiplatformV1FeatureViewSyncConfig -buildGoogleCloudAiplatformV1FeatureViewSyncConfig() { - final o = api.GoogleCloudAiplatformV1FeatureViewSyncConfig(); - buildCounterGoogleCloudAiplatformV1FeatureViewSyncConfig++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewSyncConfig < 3) { - o.continuous = true; - o.cron = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly = 0; +api.GoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly +buildGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly() { + final o = api.GoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly(); + buildCounterGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly++; + if (buildCounterGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly < 3) { + o.featureStatsAnomaly = buildGoogleCloudAiplatformV1FeatureStatsAnomaly(); + o.objective = 'foo'; } - buildCounterGoogleCloudAiplatformV1FeatureViewSyncConfig--; + buildCounterGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly--; return o; } -void checkGoogleCloudAiplatformV1FeatureViewSyncConfig( - api.GoogleCloudAiplatformV1FeatureViewSyncConfig o, +void checkGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly( + api.GoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly o, ) { - buildCounterGoogleCloudAiplatformV1FeatureViewSyncConfig++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewSyncConfig < 3) { - unittest.expect(o.continuous!, unittest.isTrue); - unittest.expect(o.cron!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly++; + if (buildCounterGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly < 3) { + checkGoogleCloudAiplatformV1FeatureStatsAnomaly(o.featureStatsAnomaly!); + unittest.expect(o.objective!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FeatureViewSyncConfig--; + buildCounterGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureViewSyncSyncSummary = 0; -api.GoogleCloudAiplatformV1FeatureViewSyncSyncSummary -buildGoogleCloudAiplatformV1FeatureViewSyncSyncSummary() { - final o = api.GoogleCloudAiplatformV1FeatureViewSyncSyncSummary(); - buildCounterGoogleCloudAiplatformV1FeatureViewSyncSyncSummary++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewSyncSyncSummary < 3) { - o.rowSynced = 'foo'; - o.systemWatermarkTime = 'foo'; - o.totalSlot = 'foo'; +core.List +buildUnnamed139() => [ + buildGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature(), + buildGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature(), +]; + +void checkUnnamed139( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature(o[0]); + checkGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1FeatureNoiseSigma = 0; +api.GoogleCloudAiplatformV1FeatureNoiseSigma +buildGoogleCloudAiplatformV1FeatureNoiseSigma() { + final o = api.GoogleCloudAiplatformV1FeatureNoiseSigma(); + buildCounterGoogleCloudAiplatformV1FeatureNoiseSigma++; + if (buildCounterGoogleCloudAiplatformV1FeatureNoiseSigma < 3) { + o.noiseSigma = buildUnnamed139(); } - buildCounterGoogleCloudAiplatformV1FeatureViewSyncSyncSummary--; + buildCounterGoogleCloudAiplatformV1FeatureNoiseSigma--; return o; } -void checkGoogleCloudAiplatformV1FeatureViewSyncSyncSummary( - api.GoogleCloudAiplatformV1FeatureViewSyncSyncSummary o, +void checkGoogleCloudAiplatformV1FeatureNoiseSigma( + api.GoogleCloudAiplatformV1FeatureNoiseSigma o, ) { - buildCounterGoogleCloudAiplatformV1FeatureViewSyncSyncSummary++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewSyncSyncSummary < 3) { - unittest.expect(o.rowSynced!, unittest.equals('foo')); - unittest.expect(o.systemWatermarkTime!, unittest.equals('foo')); - unittest.expect(o.totalSlot!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FeatureNoiseSigma++; + if (buildCounterGoogleCloudAiplatformV1FeatureNoiseSigma < 3) { + checkUnnamed139(o.noiseSigma!); } - buildCounterGoogleCloudAiplatformV1FeatureViewSyncSyncSummary--; + buildCounterGoogleCloudAiplatformV1FeatureNoiseSigma--; } -core.int buildCounterGoogleCloudAiplatformV1FeatureViewVertexRagSource = 0; -api.GoogleCloudAiplatformV1FeatureViewVertexRagSource -buildGoogleCloudAiplatformV1FeatureViewVertexRagSource() { - final o = api.GoogleCloudAiplatformV1FeatureViewVertexRagSource(); - buildCounterGoogleCloudAiplatformV1FeatureViewVertexRagSource++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewVertexRagSource < 3) { - o.ragCorpusId = 'foo'; - o.uri = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature = 0; +api.GoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature +buildGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature() { + final o = api.GoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature(); + buildCounterGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature++; + if (buildCounterGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature < + 3) { + o.name = 'foo'; + o.sigma = 42.0; } - buildCounterGoogleCloudAiplatformV1FeatureViewVertexRagSource--; + buildCounterGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature--; return o; } -void checkGoogleCloudAiplatformV1FeatureViewVertexRagSource( - api.GoogleCloudAiplatformV1FeatureViewVertexRagSource o, +void checkGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature( + api.GoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature o, ) { - buildCounterGoogleCloudAiplatformV1FeatureViewVertexRagSource++; - if (buildCounterGoogleCloudAiplatformV1FeatureViewVertexRagSource < 3) { - unittest.expect(o.ragCorpusId!, unittest.equals('foo')); - unittest.expect(o.uri!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature++; + if (buildCounterGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature < + 3) { + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.sigma!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1FeatureViewVertexRagSource--; + buildCounterGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature--; } -core.Map buildUnnamed130() => { +core.Map buildUnnamed140() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed130(core.Map o) { +void checkUnnamed140(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1Featurestore = 0; -api.GoogleCloudAiplatformV1Featurestore -buildGoogleCloudAiplatformV1Featurestore() { - final o = api.GoogleCloudAiplatformV1Featurestore(); - buildCounterGoogleCloudAiplatformV1Featurestore++; - if (buildCounterGoogleCloudAiplatformV1Featurestore < 3) { +core.int buildCounterGoogleCloudAiplatformV1FeatureOnlineStore = 0; +api.GoogleCloudAiplatformV1FeatureOnlineStore +buildGoogleCloudAiplatformV1FeatureOnlineStore() { + final o = api.GoogleCloudAiplatformV1FeatureOnlineStore(); + buildCounterGoogleCloudAiplatformV1FeatureOnlineStore++; + if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStore < 3) { + o.bigtable = buildGoogleCloudAiplatformV1FeatureOnlineStoreBigtable(); o.createTime = 'foo'; + o.dedicatedServingEndpoint = + buildGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint(); o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); o.etag = 'foo'; - o.labels = buildUnnamed130(); + o.labels = buildUnnamed140(); o.name = 'foo'; - o.onlineServingConfig = - buildGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig(); - o.onlineStorageTtlDays = 42; + o.optimized = buildGoogleCloudAiplatformV1FeatureOnlineStoreOptimized(); o.satisfiesPzi = true; o.satisfiesPzs = true; o.state = 'foo'; o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1Featurestore--; + buildCounterGoogleCloudAiplatformV1FeatureOnlineStore--; return o; } -void checkGoogleCloudAiplatformV1Featurestore( - api.GoogleCloudAiplatformV1Featurestore o, +void checkGoogleCloudAiplatformV1FeatureOnlineStore( + api.GoogleCloudAiplatformV1FeatureOnlineStore o, ) { - buildCounterGoogleCloudAiplatformV1Featurestore++; - if (buildCounterGoogleCloudAiplatformV1Featurestore < 3) { + buildCounterGoogleCloudAiplatformV1FeatureOnlineStore++; + if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStore < 3) { + checkGoogleCloudAiplatformV1FeatureOnlineStoreBigtable(o.bigtable!); unittest.expect(o.createTime!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint( + o.dedicatedServingEndpoint!, + ); checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed130(o.labels!); + checkUnnamed140(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig( - o.onlineServingConfig!, - ); - unittest.expect(o.onlineStorageTtlDays!, unittest.equals(42)); + checkGoogleCloudAiplatformV1FeatureOnlineStoreOptimized(o.optimized!); unittest.expect(o.satisfiesPzi!, unittest.isTrue); unittest.expect(o.satisfiesPzs!, unittest.isTrue); unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1Featurestore--; + buildCounterGoogleCloudAiplatformV1FeatureOnlineStore--; } -core.int buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfig = 0; -api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfig -buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfig() { - final o = api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfig(); - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfig++; - if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfig < 3) { - o.categoricalThresholdConfig = - buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig(); - o.importFeaturesAnalysis = - buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis(); - o.numericalThresholdConfig = - buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig(); - o.snapshotAnalysis = - buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis(); +core.int buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtable = 0; +api.GoogleCloudAiplatformV1FeatureOnlineStoreBigtable +buildGoogleCloudAiplatformV1FeatureOnlineStoreBigtable() { + final o = api.GoogleCloudAiplatformV1FeatureOnlineStoreBigtable(); + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtable++; + if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtable < 3) { + o.autoScaling = + buildGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling(); } - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfig--; + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtable--; return o; } -void checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfig( - api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfig o, +void checkGoogleCloudAiplatformV1FeatureOnlineStoreBigtable( + api.GoogleCloudAiplatformV1FeatureOnlineStoreBigtable o, ) { - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfig++; - if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfig < 3) { - checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig( - o.categoricalThresholdConfig!, - ); - checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis( - o.importFeaturesAnalysis!, - ); - checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig( - o.numericalThresholdConfig!, - ); - checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis( - o.snapshotAnalysis!, + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtable++; + if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtable < 3) { + checkGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling( + o.autoScaling!, ); } - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfig--; + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtable--; } core.int -buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis = - 0; -api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis -buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis() { - final o = - api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis(); - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis++; - if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis < +buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling = 0; +api.GoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling +buildGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling() { + final o = api.GoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling(); + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling++; + if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling < 3) { - o.anomalyDetectionBaseline = 'foo'; - o.state = 'foo'; + o.cpuUtilizationTarget = 42; + o.maxNodeCount = 42; + o.minNodeCount = 42; } - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis--; + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling--; return o; } -void -checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis( - api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis - o, +void checkGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling( + api.GoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling o, ) { - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis++; - if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis < + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling++; + if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling < 3) { - unittest.expect(o.anomalyDetectionBaseline!, unittest.equals('foo')); - unittest.expect(o.state!, unittest.equals('foo')); + unittest.expect(o.cpuUtilizationTarget!, unittest.equals(42)); + unittest.expect(o.maxNodeCount!, unittest.equals(42)); + unittest.expect(o.minNodeCount!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis--; + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling--; } core.int -buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis = +buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint = 0; -api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis -buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis() { +api.GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint +buildGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint() { final o = - api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis(); - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis++; - if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis < + api.GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint(); + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint++; + if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint < 3) { - o.disabled = true; - o.monitoringIntervalDays = 42; - o.stalenessDays = 42; + o.privateServiceConnectConfig = + buildGoogleCloudAiplatformV1PrivateServiceConnectConfig(); + o.publicEndpointDomainName = 'foo'; + o.serviceAttachment = 'foo'; } - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis--; + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint--; return o; } -void checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis( - api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis o, +void checkGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint( + api.GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint o, ) { - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis++; - if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis < + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint++; + if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint < 3) { - unittest.expect(o.disabled!, unittest.isTrue); - unittest.expect(o.monitoringIntervalDays!, unittest.equals(42)); - unittest.expect(o.stalenessDays!, unittest.equals(42)); + checkGoogleCloudAiplatformV1PrivateServiceConnectConfig( + o.privateServiceConnectConfig!, + ); + unittest.expect(o.publicEndpointDomainName!, unittest.equals('foo')); + unittest.expect(o.serviceAttachment!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis--; + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint--; } -core.int -buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig = - 0; -api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig -buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig() { - final o = - api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig(); - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig++; - if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig < - 3) { - o.value = 42.0; - } - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig--; +core.int buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreOptimized = 0; +api.GoogleCloudAiplatformV1FeatureOnlineStoreOptimized +buildGoogleCloudAiplatformV1FeatureOnlineStoreOptimized() { + final o = api.GoogleCloudAiplatformV1FeatureOnlineStoreOptimized(); + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreOptimized++; + if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreOptimized < 3) {} + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreOptimized--; return o; } -void checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig( - api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig o, +void checkGoogleCloudAiplatformV1FeatureOnlineStoreOptimized( + api.GoogleCloudAiplatformV1FeatureOnlineStoreOptimized o, ) { - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig++; - if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig < - 3) { - unittest.expect(o.value!, unittest.equals(42.0)); - } - buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig--; + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreOptimized++; + if (buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreOptimized < 3) {} + buildCounterGoogleCloudAiplatformV1FeatureOnlineStoreOptimized--; } -core.int buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig = 0; -api.GoogleCloudAiplatformV1FeaturestoreOnlineServingConfig -buildGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig() { - final o = api.GoogleCloudAiplatformV1FeaturestoreOnlineServingConfig(); - buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig++; - if (buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig < 3) { - o.fixedNodeCount = 42; - o.scaling = - buildGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling(); +core.int buildCounterGoogleCloudAiplatformV1FeatureSelector = 0; +api.GoogleCloudAiplatformV1FeatureSelector +buildGoogleCloudAiplatformV1FeatureSelector() { + final o = api.GoogleCloudAiplatformV1FeatureSelector(); + buildCounterGoogleCloudAiplatformV1FeatureSelector++; + if (buildCounterGoogleCloudAiplatformV1FeatureSelector < 3) { + o.idMatcher = buildGoogleCloudAiplatformV1IdMatcher(); } - buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig--; + buildCounterGoogleCloudAiplatformV1FeatureSelector--; return o; } -void checkGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig( - api.GoogleCloudAiplatformV1FeaturestoreOnlineServingConfig o, +void checkGoogleCloudAiplatformV1FeatureSelector( + api.GoogleCloudAiplatformV1FeatureSelector o, ) { - buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig++; - if (buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig < 3) { - unittest.expect(o.fixedNodeCount!, unittest.equals(42)); - checkGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling( - o.scaling!, - ); + buildCounterGoogleCloudAiplatformV1FeatureSelector++; + if (buildCounterGoogleCloudAiplatformV1FeatureSelector < 3) { + checkGoogleCloudAiplatformV1IdMatcher(o.idMatcher!); } - buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig--; + buildCounterGoogleCloudAiplatformV1FeatureSelector--; } -core.int -buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling = 0; -api.GoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling -buildGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling() { - final o = api.GoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling(); - buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling++; - if (buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling < - 3) { - o.cpuUtilizationTarget = 42; - o.maxNodeCount = 42; - o.minNodeCount = 42; +core.int buildCounterGoogleCloudAiplatformV1FeatureStatsAnomaly = 0; +api.GoogleCloudAiplatformV1FeatureStatsAnomaly +buildGoogleCloudAiplatformV1FeatureStatsAnomaly() { + final o = api.GoogleCloudAiplatformV1FeatureStatsAnomaly(); + buildCounterGoogleCloudAiplatformV1FeatureStatsAnomaly++; + if (buildCounterGoogleCloudAiplatformV1FeatureStatsAnomaly < 3) { + o.anomalyDetectionThreshold = 42.0; + o.anomalyUri = 'foo'; + o.distributionDeviation = 42.0; + o.endTime = 'foo'; + o.score = 42.0; + o.startTime = 'foo'; + o.statsUri = 'foo'; } - buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling--; + buildCounterGoogleCloudAiplatformV1FeatureStatsAnomaly--; return o; } -void checkGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling( - api.GoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling o, +void checkGoogleCloudAiplatformV1FeatureStatsAnomaly( + api.GoogleCloudAiplatformV1FeatureStatsAnomaly o, ) { - buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling++; - if (buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling < - 3) { - unittest.expect(o.cpuUtilizationTarget!, unittest.equals(42)); - unittest.expect(o.maxNodeCount!, unittest.equals(42)); - unittest.expect(o.minNodeCount!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1FeatureStatsAnomaly++; + if (buildCounterGoogleCloudAiplatformV1FeatureStatsAnomaly < 3) { + unittest.expect(o.anomalyDetectionThreshold!, unittest.equals(42.0)); + unittest.expect(o.anomalyUri!, unittest.equals('foo')); + unittest.expect(o.distributionDeviation!, unittest.equals(42.0)); + unittest.expect(o.endTime!, unittest.equals('foo')); + unittest.expect(o.score!, unittest.equals(42.0)); + unittest.expect(o.startTime!, unittest.equals('foo')); + unittest.expect(o.statsUri!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling--; + buildCounterGoogleCloudAiplatformV1FeatureStatsAnomaly--; } -core.int buildCounterGoogleCloudAiplatformV1FetchFeatureValuesRequest = 0; -api.GoogleCloudAiplatformV1FetchFeatureValuesRequest -buildGoogleCloudAiplatformV1FetchFeatureValuesRequest() { - final o = api.GoogleCloudAiplatformV1FetchFeatureValuesRequest(); - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesRequest++; - if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesRequest < 3) { - o.dataFormat = 'foo'; - o.dataKey = buildGoogleCloudAiplatformV1FeatureViewDataKey(); +core.int buildCounterGoogleCloudAiplatformV1FeatureValue = 0; +api.GoogleCloudAiplatformV1FeatureValue +buildGoogleCloudAiplatformV1FeatureValue() { + final o = api.GoogleCloudAiplatformV1FeatureValue(); + buildCounterGoogleCloudAiplatformV1FeatureValue++; + if (buildCounterGoogleCloudAiplatformV1FeatureValue < 3) { + o.boolArrayValue = buildGoogleCloudAiplatformV1BoolArray(); + o.boolValue = true; + o.bytesValue = 'foo'; + o.doubleArrayValue = buildGoogleCloudAiplatformV1DoubleArray(); + o.doubleValue = 42.0; + o.int64ArrayValue = buildGoogleCloudAiplatformV1Int64Array(); + o.int64Value = 'foo'; + o.metadata = buildGoogleCloudAiplatformV1FeatureValueMetadata(); + o.stringArrayValue = buildGoogleCloudAiplatformV1StringArray(); + o.stringValue = 'foo'; + o.structValue = buildGoogleCloudAiplatformV1StructValue(); } - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesRequest--; + buildCounterGoogleCloudAiplatformV1FeatureValue--; return o; } -void checkGoogleCloudAiplatformV1FetchFeatureValuesRequest( - api.GoogleCloudAiplatformV1FetchFeatureValuesRequest o, +void checkGoogleCloudAiplatformV1FeatureValue( + api.GoogleCloudAiplatformV1FeatureValue o, ) { - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesRequest++; - if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesRequest < 3) { - unittest.expect(o.dataFormat!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FeatureViewDataKey(o.dataKey!); + buildCounterGoogleCloudAiplatformV1FeatureValue++; + if (buildCounterGoogleCloudAiplatformV1FeatureValue < 3) { + checkGoogleCloudAiplatformV1BoolArray(o.boolArrayValue!); + unittest.expect(o.boolValue!, unittest.isTrue); + unittest.expect(o.bytesValue!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1DoubleArray(o.doubleArrayValue!); + unittest.expect(o.doubleValue!, unittest.equals(42.0)); + checkGoogleCloudAiplatformV1Int64Array(o.int64ArrayValue!); + unittest.expect(o.int64Value!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1FeatureValueMetadata(o.metadata!); + checkGoogleCloudAiplatformV1StringArray(o.stringArrayValue!); + unittest.expect(o.stringValue!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1StructValue(o.structValue!); } - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesRequest--; -} - -core.Map buildUnnamed131() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; - -void checkUnnamed131(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - var casted40 = (o['x']!) as core.Map; - unittest.expect(casted40, unittest.hasLength(3)); - unittest.expect(casted40['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted40['bool'], unittest.equals(true)); - unittest.expect(casted40['string'], unittest.equals('foo')); - var casted41 = (o['y']!) as core.Map; - unittest.expect(casted41, unittest.hasLength(3)); - unittest.expect(casted41['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted41['bool'], unittest.equals(true)); - unittest.expect(casted41['string'], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FeatureValue--; } -core.int buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponse = 0; -api.GoogleCloudAiplatformV1FetchFeatureValuesResponse -buildGoogleCloudAiplatformV1FetchFeatureValuesResponse() { - final o = api.GoogleCloudAiplatformV1FetchFeatureValuesResponse(); - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponse++; - if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponse < 3) { - o.dataKey = buildGoogleCloudAiplatformV1FeatureViewDataKey(); - o.keyValues = - buildGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList(); - o.protoStruct = buildUnnamed131(); +core.int buildCounterGoogleCloudAiplatformV1FeatureValueDestination = 0; +api.GoogleCloudAiplatformV1FeatureValueDestination +buildGoogleCloudAiplatformV1FeatureValueDestination() { + final o = api.GoogleCloudAiplatformV1FeatureValueDestination(); + buildCounterGoogleCloudAiplatformV1FeatureValueDestination++; + if (buildCounterGoogleCloudAiplatformV1FeatureValueDestination < 3) { + o.bigqueryDestination = buildGoogleCloudAiplatformV1BigQueryDestination(); + o.csvDestination = buildGoogleCloudAiplatformV1CsvDestination(); + o.tfrecordDestination = buildGoogleCloudAiplatformV1TFRecordDestination(); } - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponse--; + buildCounterGoogleCloudAiplatformV1FeatureValueDestination--; return o; } -void checkGoogleCloudAiplatformV1FetchFeatureValuesResponse( - api.GoogleCloudAiplatformV1FetchFeatureValuesResponse o, +void checkGoogleCloudAiplatformV1FeatureValueDestination( + api.GoogleCloudAiplatformV1FeatureValueDestination o, ) { - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponse++; - if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponse < 3) { - checkGoogleCloudAiplatformV1FeatureViewDataKey(o.dataKey!); - checkGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList( - o.keyValues!, - ); - checkUnnamed131(o.protoStruct!); + buildCounterGoogleCloudAiplatformV1FeatureValueDestination++; + if (buildCounterGoogleCloudAiplatformV1FeatureValueDestination < 3) { + checkGoogleCloudAiplatformV1BigQueryDestination(o.bigqueryDestination!); + checkGoogleCloudAiplatformV1CsvDestination(o.csvDestination!); + checkGoogleCloudAiplatformV1TFRecordDestination(o.tfrecordDestination!); } - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponse--; + buildCounterGoogleCloudAiplatformV1FeatureValueDestination--; } -core.List< - api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair -> -buildUnnamed132() => [ - buildGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair(), - buildGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair(), +core.List buildUnnamed141() => [ + buildGoogleCloudAiplatformV1FeatureValue(), + buildGoogleCloudAiplatformV1FeatureValue(), ]; -void checkUnnamed132( - core.List< - api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair - > - o, -) { +void checkUnnamed141(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair( - o[0], - ); - checkGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair( - o[1], - ); + checkGoogleCloudAiplatformV1FeatureValue(o[0]); + checkGoogleCloudAiplatformV1FeatureValue(o[1]); } -core.int -buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList = - 0; -api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList -buildGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList() { - final o = - api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList(); - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList++; - if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList < - 3) { - o.features = buildUnnamed132(); +core.int buildCounterGoogleCloudAiplatformV1FeatureValueList = 0; +api.GoogleCloudAiplatformV1FeatureValueList +buildGoogleCloudAiplatformV1FeatureValueList() { + final o = api.GoogleCloudAiplatformV1FeatureValueList(); + buildCounterGoogleCloudAiplatformV1FeatureValueList++; + if (buildCounterGoogleCloudAiplatformV1FeatureValueList < 3) { + o.values = buildUnnamed141(); } - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList--; + buildCounterGoogleCloudAiplatformV1FeatureValueList--; return o; } -void -checkGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList( - api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList - o, +void checkGoogleCloudAiplatformV1FeatureValueList( + api.GoogleCloudAiplatformV1FeatureValueList o, ) { - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList++; - if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList < - 3) { - checkUnnamed132(o.features!); + buildCounterGoogleCloudAiplatformV1FeatureValueList++; + if (buildCounterGoogleCloudAiplatformV1FeatureValueList < 3) { + checkUnnamed141(o.values!); } - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList--; + buildCounterGoogleCloudAiplatformV1FeatureValueList--; } -core.int -buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair = - 0; -api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair -buildGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair() { - final o = - api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair(); - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair++; - if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair < - 3) { - o.name = 'foo'; - o.value = buildGoogleCloudAiplatformV1FeatureValue(); +core.int buildCounterGoogleCloudAiplatformV1FeatureValueMetadata = 0; +api.GoogleCloudAiplatformV1FeatureValueMetadata +buildGoogleCloudAiplatformV1FeatureValueMetadata() { + final o = api.GoogleCloudAiplatformV1FeatureValueMetadata(); + buildCounterGoogleCloudAiplatformV1FeatureValueMetadata++; + if (buildCounterGoogleCloudAiplatformV1FeatureValueMetadata < 3) { + o.generateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair--; + buildCounterGoogleCloudAiplatformV1FeatureValueMetadata--; return o; } -void -checkGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair( - api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair - o, +void checkGoogleCloudAiplatformV1FeatureValueMetadata( + api.GoogleCloudAiplatformV1FeatureValueMetadata o, ) { - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair++; - if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair < - 3) { - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FeatureValue(o.value!); + buildCounterGoogleCloudAiplatformV1FeatureValueMetadata++; + if (buildCounterGoogleCloudAiplatformV1FeatureValueMetadata < 3) { + unittest.expect(o.generateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair--; + buildCounterGoogleCloudAiplatformV1FeatureValueMetadata--; } -core.int buildCounterGoogleCloudAiplatformV1FetchPredictOperationRequest = 0; -api.GoogleCloudAiplatformV1FetchPredictOperationRequest -buildGoogleCloudAiplatformV1FetchPredictOperationRequest() { - final o = api.GoogleCloudAiplatformV1FetchPredictOperationRequest(); - buildCounterGoogleCloudAiplatformV1FetchPredictOperationRequest++; - if (buildCounterGoogleCloudAiplatformV1FetchPredictOperationRequest < 3) { - o.operationName = 'foo'; - } - buildCounterGoogleCloudAiplatformV1FetchPredictOperationRequest--; - return o; +core.Map buildUnnamed142() => { + 'x': 'foo', + 'y': 'foo', +}; + +void checkUnnamed142(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -void checkGoogleCloudAiplatformV1FetchPredictOperationRequest( - api.GoogleCloudAiplatformV1FetchPredictOperationRequest o, -) { - buildCounterGoogleCloudAiplatformV1FetchPredictOperationRequest++; - if (buildCounterGoogleCloudAiplatformV1FetchPredictOperationRequest < 3) { - unittest.expect(o.operationName!, unittest.equals('foo')); +core.int buildCounterGoogleCloudAiplatformV1FeatureView = 0; +api.GoogleCloudAiplatformV1FeatureView +buildGoogleCloudAiplatformV1FeatureView() { + final o = api.GoogleCloudAiplatformV1FeatureView(); + buildCounterGoogleCloudAiplatformV1FeatureView++; + if (buildCounterGoogleCloudAiplatformV1FeatureView < 3) { + o.bigQuerySource = buildGoogleCloudAiplatformV1FeatureViewBigQuerySource(); + o.createTime = 'foo'; + o.etag = 'foo'; + o.featureRegistrySource = + buildGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource(); + o.indexConfig = buildGoogleCloudAiplatformV1FeatureViewIndexConfig(); + o.labels = buildUnnamed142(); + o.name = 'foo'; + o.optimizedConfig = + buildGoogleCloudAiplatformV1FeatureViewOptimizedConfig(); + o.satisfiesPzi = true; + o.satisfiesPzs = true; + o.serviceAccountEmail = 'foo'; + o.serviceAgentType = 'foo'; + o.syncConfig = buildGoogleCloudAiplatformV1FeatureViewSyncConfig(); + o.updateTime = 'foo'; + o.vertexRagSource = + buildGoogleCloudAiplatformV1FeatureViewVertexRagSource(); } - buildCounterGoogleCloudAiplatformV1FetchPredictOperationRequest--; + buildCounterGoogleCloudAiplatformV1FeatureView--; + return o; } -core.int buildCounterGoogleCloudAiplatformV1FileData = 0; -api.GoogleCloudAiplatformV1FileData buildGoogleCloudAiplatformV1FileData() { - final o = api.GoogleCloudAiplatformV1FileData(); - buildCounterGoogleCloudAiplatformV1FileData++; - if (buildCounterGoogleCloudAiplatformV1FileData < 3) { - o.displayName = 'foo'; - o.fileUri = 'foo'; - o.mimeType = 'foo'; +void checkGoogleCloudAiplatformV1FeatureView( + api.GoogleCloudAiplatformV1FeatureView o, +) { + buildCounterGoogleCloudAiplatformV1FeatureView++; + if (buildCounterGoogleCloudAiplatformV1FeatureView < 3) { + checkGoogleCloudAiplatformV1FeatureViewBigQuerySource(o.bigQuerySource!); + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.etag!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource( + o.featureRegistrySource!, + ); + checkGoogleCloudAiplatformV1FeatureViewIndexConfig(o.indexConfig!); + checkUnnamed142(o.labels!); + unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1FeatureViewOptimizedConfig(o.optimizedConfig!); + unittest.expect(o.satisfiesPzi!, unittest.isTrue); + unittest.expect(o.satisfiesPzs!, unittest.isTrue); + unittest.expect(o.serviceAccountEmail!, unittest.equals('foo')); + unittest.expect(o.serviceAgentType!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1FeatureViewSyncConfig(o.syncConfig!); + unittest.expect(o.updateTime!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1FeatureViewVertexRagSource(o.vertexRagSource!); } - buildCounterGoogleCloudAiplatformV1FileData--; - return o; + buildCounterGoogleCloudAiplatformV1FeatureView--; } -void checkGoogleCloudAiplatformV1FileData( - api.GoogleCloudAiplatformV1FileData o, -) { - buildCounterGoogleCloudAiplatformV1FileData++; - if (buildCounterGoogleCloudAiplatformV1FileData < 3) { - unittest.expect(o.displayName!, unittest.equals('foo')); - unittest.expect(o.fileUri!, unittest.equals('foo')); - unittest.expect(o.mimeType!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1FileData--; +core.List buildUnnamed143() => ['foo', 'foo']; + +void checkUnnamed143(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1FileStatus = 0; -api.GoogleCloudAiplatformV1FileStatus buildGoogleCloudAiplatformV1FileStatus() { - final o = api.GoogleCloudAiplatformV1FileStatus(); - buildCounterGoogleCloudAiplatformV1FileStatus++; - if (buildCounterGoogleCloudAiplatformV1FileStatus < 3) { - o.errorStatus = 'foo'; - o.state = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1FeatureViewBigQuerySource = 0; +api.GoogleCloudAiplatformV1FeatureViewBigQuerySource +buildGoogleCloudAiplatformV1FeatureViewBigQuerySource() { + final o = api.GoogleCloudAiplatformV1FeatureViewBigQuerySource(); + buildCounterGoogleCloudAiplatformV1FeatureViewBigQuerySource++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewBigQuerySource < 3) { + o.entityIdColumns = buildUnnamed143(); + o.uri = 'foo'; } - buildCounterGoogleCloudAiplatformV1FileStatus--; + buildCounterGoogleCloudAiplatformV1FeatureViewBigQuerySource--; return o; } -void checkGoogleCloudAiplatformV1FileStatus( - api.GoogleCloudAiplatformV1FileStatus o, +void checkGoogleCloudAiplatformV1FeatureViewBigQuerySource( + api.GoogleCloudAiplatformV1FeatureViewBigQuerySource o, ) { - buildCounterGoogleCloudAiplatformV1FileStatus++; - if (buildCounterGoogleCloudAiplatformV1FileStatus < 3) { - unittest.expect(o.errorStatus!, unittest.equals('foo')); - unittest.expect(o.state!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FeatureViewBigQuerySource++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewBigQuerySource < 3) { + checkUnnamed143(o.entityIdColumns!); + unittest.expect(o.uri!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FileStatus--; + buildCounterGoogleCloudAiplatformV1FeatureViewBigQuerySource--; } -core.int buildCounterGoogleCloudAiplatformV1FilterSplit = 0; -api.GoogleCloudAiplatformV1FilterSplit -buildGoogleCloudAiplatformV1FilterSplit() { - final o = api.GoogleCloudAiplatformV1FilterSplit(); - buildCounterGoogleCloudAiplatformV1FilterSplit++; - if (buildCounterGoogleCloudAiplatformV1FilterSplit < 3) { - o.testFilter = 'foo'; - o.trainingFilter = 'foo'; - o.validationFilter = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1FeatureViewDataKey = 0; +api.GoogleCloudAiplatformV1FeatureViewDataKey +buildGoogleCloudAiplatformV1FeatureViewDataKey() { + final o = api.GoogleCloudAiplatformV1FeatureViewDataKey(); + buildCounterGoogleCloudAiplatformV1FeatureViewDataKey++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewDataKey < 3) { + o.compositeKey = + buildGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey(); + o.key = 'foo'; } - buildCounterGoogleCloudAiplatformV1FilterSplit--; + buildCounterGoogleCloudAiplatformV1FeatureViewDataKey--; return o; } -void checkGoogleCloudAiplatformV1FilterSplit( - api.GoogleCloudAiplatformV1FilterSplit o, +void checkGoogleCloudAiplatformV1FeatureViewDataKey( + api.GoogleCloudAiplatformV1FeatureViewDataKey o, ) { - buildCounterGoogleCloudAiplatformV1FilterSplit++; - if (buildCounterGoogleCloudAiplatformV1FilterSplit < 3) { - unittest.expect(o.testFilter!, unittest.equals('foo')); - unittest.expect(o.trainingFilter!, unittest.equals('foo')); - unittest.expect(o.validationFilter!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FeatureViewDataKey++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewDataKey < 3) { + checkGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey(o.compositeKey!); + unittest.expect(o.key!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FilterSplit--; + buildCounterGoogleCloudAiplatformV1FeatureViewDataKey--; } -core.List -buildUnnamed133() => [ - buildGoogleCloudAiplatformV1FindNeighborsRequestQuery(), - buildGoogleCloudAiplatformV1FindNeighborsRequestQuery(), -]; +core.List buildUnnamed144() => ['foo', 'foo']; -void checkUnnamed133( - core.List o, -) { +void checkUnnamed144(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FindNeighborsRequestQuery(o[0]); - checkGoogleCloudAiplatformV1FindNeighborsRequestQuery(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1FindNeighborsRequest = 0; -api.GoogleCloudAiplatformV1FindNeighborsRequest -buildGoogleCloudAiplatformV1FindNeighborsRequest() { - final o = api.GoogleCloudAiplatformV1FindNeighborsRequest(); - buildCounterGoogleCloudAiplatformV1FindNeighborsRequest++; - if (buildCounterGoogleCloudAiplatformV1FindNeighborsRequest < 3) { - o.deployedIndexId = 'foo'; - o.queries = buildUnnamed133(); - o.returnFullDatapoint = true; +core.int buildCounterGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey = 0; +api.GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey +buildGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey() { + final o = api.GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey(); + buildCounterGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey < 3) { + o.parts = buildUnnamed144(); } - buildCounterGoogleCloudAiplatformV1FindNeighborsRequest--; + buildCounterGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey--; return o; } -void checkGoogleCloudAiplatformV1FindNeighborsRequest( - api.GoogleCloudAiplatformV1FindNeighborsRequest o, +void checkGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey( + api.GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey o, ) { - buildCounterGoogleCloudAiplatformV1FindNeighborsRequest++; - if (buildCounterGoogleCloudAiplatformV1FindNeighborsRequest < 3) { - unittest.expect(o.deployedIndexId!, unittest.equals('foo')); - checkUnnamed133(o.queries!); - unittest.expect(o.returnFullDatapoint!, unittest.isTrue); + buildCounterGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey < 3) { + checkUnnamed144(o.parts!); } - buildCounterGoogleCloudAiplatformV1FindNeighborsRequest--; + buildCounterGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey--; } -core.int buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQuery = 0; -api.GoogleCloudAiplatformV1FindNeighborsRequestQuery -buildGoogleCloudAiplatformV1FindNeighborsRequestQuery() { - final o = api.GoogleCloudAiplatformV1FindNeighborsRequestQuery(); - buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQuery++; - if (buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQuery < 3) { - o.approximateNeighborCount = 42; - o.datapoint = buildGoogleCloudAiplatformV1IndexDatapoint(); - o.fractionLeafNodesToSearchOverride = 42.0; - o.neighborCount = 42; - o.perCrowdingAttributeNeighborCount = 42; - o.rrf = buildGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF(); - } - buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQuery--; - return o; -} +core.List< + api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues +> +buildUnnamed145() => [ + buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues(), + buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues(), +]; -void checkGoogleCloudAiplatformV1FindNeighborsRequestQuery( - api.GoogleCloudAiplatformV1FindNeighborsRequestQuery o, +void checkUnnamed145( + core.List< + api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues + > + o, ) { - buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQuery++; - if (buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQuery < 3) { - unittest.expect(o.approximateNeighborCount!, unittest.equals(42)); - checkGoogleCloudAiplatformV1IndexDatapoint(o.datapoint!); - unittest.expect( - o.fractionLeafNodesToSearchOverride!, - unittest.equals(42.0), - ); - unittest.expect(o.neighborCount!, unittest.equals(42)); - unittest.expect(o.perCrowdingAttributeNeighborCount!, unittest.equals(42)); - checkGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF(o.rrf!); - } - buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQuery--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues( + o[0], + ); + checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues( + o[1], + ); } -core.int buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF = 0; -api.GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF -buildGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF() { - final o = api.GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF(); - buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF++; - if (buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF < 3) { - o.alpha = 42.0; +core.int buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequest = 0; +api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequest +buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequest() { + final o = api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequest(); + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequest++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequest < 3) { + o.dataKeyAndFeatureValues = buildUnnamed145(); } - buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF--; + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequest--; return o; } -void checkGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF( - api.GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF o, +void checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequest( + api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequest o, ) { - buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF++; - if (buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF < 3) { - unittest.expect(o.alpha!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequest++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequest < 3) { + checkUnnamed145(o.dataKeyAndFeatureValues!); } - buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF--; + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequest--; } -core.List -buildUnnamed134() => [ - buildGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors(), - buildGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors(), +core.List< + api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature +> +buildUnnamed146() => [ + buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature(), + buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature(), ]; -void checkUnnamed134( - core.List o, +void checkUnnamed146( + core.List< + api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature + > + o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors(o[0]); - checkGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors(o[1]); + checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature( + o[0], + ); + checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature( + o[1], + ); } -core.int buildCounterGoogleCloudAiplatformV1FindNeighborsResponse = 0; -api.GoogleCloudAiplatformV1FindNeighborsResponse -buildGoogleCloudAiplatformV1FindNeighborsResponse() { - final o = api.GoogleCloudAiplatformV1FindNeighborsResponse(); - buildCounterGoogleCloudAiplatformV1FindNeighborsResponse++; - if (buildCounterGoogleCloudAiplatformV1FindNeighborsResponse < 3) { - o.nearestNeighbors = buildUnnamed134(); +core.int +buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues = + 0; +api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues +buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues() { + final o = + api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues(); + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues < + 3) { + o.dataKey = buildGoogleCloudAiplatformV1FeatureViewDataKey(); + o.features = buildUnnamed146(); } - buildCounterGoogleCloudAiplatformV1FindNeighborsResponse--; + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues--; return o; } -void checkGoogleCloudAiplatformV1FindNeighborsResponse( - api.GoogleCloudAiplatformV1FindNeighborsResponse o, +void +checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues( + api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues + o, ) { - buildCounterGoogleCloudAiplatformV1FindNeighborsResponse++; - if (buildCounterGoogleCloudAiplatformV1FindNeighborsResponse < 3) { - checkUnnamed134(o.nearestNeighbors!); + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues < + 3) { + checkGoogleCloudAiplatformV1FeatureViewDataKey(o.dataKey!); + checkUnnamed146(o.features!); } - buildCounterGoogleCloudAiplatformV1FindNeighborsResponse--; -} - -core.List -buildUnnamed135() => [ - buildGoogleCloudAiplatformV1FindNeighborsResponseNeighbor(), - buildGoogleCloudAiplatformV1FindNeighborsResponseNeighbor(), -]; - -void checkUnnamed135( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FindNeighborsResponseNeighbor(o[0]); - checkGoogleCloudAiplatformV1FindNeighborsResponseNeighbor(o[1]); + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues--; } core.int -buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors = 0; -api.GoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors -buildGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors() { - final o = api.GoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors(); - buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors++; - if (buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors < +buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature = + 0; +api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature +buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature() { + final o = + api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature(); + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature < 3) { - o.id = 'foo'; - o.neighbors = buildUnnamed135(); + o.name = 'foo'; + o.value = buildGoogleCloudAiplatformV1FeatureValue(); } - buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors--; + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature--; return o; } -void checkGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors( - api.GoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors o, +void +checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature( + api.GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature + o, ) { - buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors++; - if (buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors < + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature < 3) { - unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed135(o.neighbors!); + unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1FeatureValue(o.value!); } - buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors--; + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature--; } -core.int buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNeighbor = 0; -api.GoogleCloudAiplatformV1FindNeighborsResponseNeighbor -buildGoogleCloudAiplatformV1FindNeighborsResponseNeighbor() { - final o = api.GoogleCloudAiplatformV1FindNeighborsResponseNeighbor(); - buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNeighbor++; - if (buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNeighbor < 3) { - o.datapoint = buildGoogleCloudAiplatformV1IndexDatapoint(); - o.distance = 42.0; - o.sparseDistance = 42.0; - } - buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNeighbor--; - return o; -} +core.List< + api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse +> +buildUnnamed147() => [ + buildGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse(), + buildGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse(), +]; -void checkGoogleCloudAiplatformV1FindNeighborsResponseNeighbor( - api.GoogleCloudAiplatformV1FindNeighborsResponseNeighbor o, +void checkUnnamed147( + core.List< + api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse + > + o, ) { - buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNeighbor++; - if (buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNeighbor < 3) { - checkGoogleCloudAiplatformV1IndexDatapoint(o.datapoint!); - unittest.expect(o.distance!, unittest.equals(42.0)); - unittest.expect(o.sparseDistance!, unittest.equals(42.0)); - } - buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNeighbor--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse(o[0]); + checkGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1FluencyInput = 0; -api.GoogleCloudAiplatformV1FluencyInput -buildGoogleCloudAiplatformV1FluencyInput() { - final o = api.GoogleCloudAiplatformV1FluencyInput(); - buildCounterGoogleCloudAiplatformV1FluencyInput++; - if (buildCounterGoogleCloudAiplatformV1FluencyInput < 3) { - o.instance = buildGoogleCloudAiplatformV1FluencyInstance(); - o.metricSpec = buildGoogleCloudAiplatformV1FluencySpec(); +core.int buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponse = 0; +api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponse +buildGoogleCloudAiplatformV1FeatureViewDirectWriteResponse() { + final o = api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponse(); + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponse++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponse < 3) { + o.status = buildGoogleRpcStatus(); + o.writeResponses = buildUnnamed147(); } - buildCounterGoogleCloudAiplatformV1FluencyInput--; + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponse--; return o; } -void checkGoogleCloudAiplatformV1FluencyInput( - api.GoogleCloudAiplatformV1FluencyInput o, +void checkGoogleCloudAiplatformV1FeatureViewDirectWriteResponse( + api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponse o, ) { - buildCounterGoogleCloudAiplatformV1FluencyInput++; - if (buildCounterGoogleCloudAiplatformV1FluencyInput < 3) { - checkGoogleCloudAiplatformV1FluencyInstance(o.instance!); - checkGoogleCloudAiplatformV1FluencySpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponse++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponse < 3) { + checkGoogleRpcStatus(o.status!); + checkUnnamed147(o.writeResponses!); } - buildCounterGoogleCloudAiplatformV1FluencyInput--; + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponse--; } -core.int buildCounterGoogleCloudAiplatformV1FluencyInstance = 0; -api.GoogleCloudAiplatformV1FluencyInstance -buildGoogleCloudAiplatformV1FluencyInstance() { - final o = api.GoogleCloudAiplatformV1FluencyInstance(); - buildCounterGoogleCloudAiplatformV1FluencyInstance++; - if (buildCounterGoogleCloudAiplatformV1FluencyInstance < 3) { - o.prediction = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse = + 0; +api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse +buildGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse() { + final o = + api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse(); + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse < + 3) { + o.dataKey = buildGoogleCloudAiplatformV1FeatureViewDataKey(); + o.onlineStoreWriteTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1FluencyInstance--; + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse--; return o; } -void checkGoogleCloudAiplatformV1FluencyInstance( - api.GoogleCloudAiplatformV1FluencyInstance o, +void checkGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse( + api.GoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse o, ) { - buildCounterGoogleCloudAiplatformV1FluencyInstance++; - if (buildCounterGoogleCloudAiplatformV1FluencyInstance < 3) { - unittest.expect(o.prediction!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse < + 3) { + checkGoogleCloudAiplatformV1FeatureViewDataKey(o.dataKey!); + unittest.expect(o.onlineStoreWriteTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FluencyInstance--; + buildCounterGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse--; } -core.int buildCounterGoogleCloudAiplatformV1FluencyResult = 0; -api.GoogleCloudAiplatformV1FluencyResult -buildGoogleCloudAiplatformV1FluencyResult() { - final o = api.GoogleCloudAiplatformV1FluencyResult(); - buildCounterGoogleCloudAiplatformV1FluencyResult++; - if (buildCounterGoogleCloudAiplatformV1FluencyResult < 3) { - o.confidence = 42.0; - o.explanation = 'foo'; - o.score = 42.0; - } - buildCounterGoogleCloudAiplatformV1FluencyResult--; - return o; -} +core.List< + api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup +> +buildUnnamed148() => [ + buildGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup(), + buildGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup(), +]; -void checkGoogleCloudAiplatformV1FluencyResult( - api.GoogleCloudAiplatformV1FluencyResult o, +void checkUnnamed148( + core.List< + api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup + > + o, ) { - buildCounterGoogleCloudAiplatformV1FluencyResult++; - if (buildCounterGoogleCloudAiplatformV1FluencyResult < 3) { - unittest.expect(o.confidence!, unittest.equals(42.0)); - unittest.expect(o.explanation!, unittest.equals('foo')); - unittest.expect(o.score!, unittest.equals(42.0)); - } - buildCounterGoogleCloudAiplatformV1FluencyResult--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup( + o[0], + ); + checkGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup( + o[1], + ); } -core.int buildCounterGoogleCloudAiplatformV1FluencySpec = 0; -api.GoogleCloudAiplatformV1FluencySpec -buildGoogleCloudAiplatformV1FluencySpec() { - final o = api.GoogleCloudAiplatformV1FluencySpec(); - buildCounterGoogleCloudAiplatformV1FluencySpec++; - if (buildCounterGoogleCloudAiplatformV1FluencySpec < 3) { - o.version = 42; +core.int buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource = + 0; +api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource +buildGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource() { + final o = api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource(); + buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource < 3) { + o.featureGroups = buildUnnamed148(); + o.projectNumber = 'foo'; } - buildCounterGoogleCloudAiplatformV1FluencySpec--; + buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource--; return o; } -void checkGoogleCloudAiplatformV1FluencySpec( - api.GoogleCloudAiplatformV1FluencySpec o, +void checkGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource( + api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource o, ) { - buildCounterGoogleCloudAiplatformV1FluencySpec++; - if (buildCounterGoogleCloudAiplatformV1FluencySpec < 3) { - unittest.expect(o.version!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource < 3) { + checkUnnamed148(o.featureGroups!); + unittest.expect(o.projectNumber!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FluencySpec--; + buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource--; } -core.int buildCounterGoogleCloudAiplatformV1FractionSplit = 0; -api.GoogleCloudAiplatformV1FractionSplit -buildGoogleCloudAiplatformV1FractionSplit() { - final o = api.GoogleCloudAiplatformV1FractionSplit(); - buildCounterGoogleCloudAiplatformV1FractionSplit++; - if (buildCounterGoogleCloudAiplatformV1FractionSplit < 3) { - o.testFraction = 42.0; - o.trainingFraction = 42.0; - o.validationFraction = 42.0; - } - buildCounterGoogleCloudAiplatformV1FractionSplit--; - return o; +core.List buildUnnamed149() => ['foo', 'foo']; + +void checkUnnamed149(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -void checkGoogleCloudAiplatformV1FractionSplit( - api.GoogleCloudAiplatformV1FractionSplit o, -) { - buildCounterGoogleCloudAiplatformV1FractionSplit++; - if (buildCounterGoogleCloudAiplatformV1FractionSplit < 3) { - unittest.expect(o.testFraction!, unittest.equals(42.0)); - unittest.expect(o.trainingFraction!, unittest.equals(42.0)); - unittest.expect(o.validationFraction!, unittest.equals(42.0)); - } - buildCounterGoogleCloudAiplatformV1FractionSplit--; -} - -core.int buildCounterGoogleCloudAiplatformV1FulfillmentInput = 0; -api.GoogleCloudAiplatformV1FulfillmentInput -buildGoogleCloudAiplatformV1FulfillmentInput() { - final o = api.GoogleCloudAiplatformV1FulfillmentInput(); - buildCounterGoogleCloudAiplatformV1FulfillmentInput++; - if (buildCounterGoogleCloudAiplatformV1FulfillmentInput < 3) { - o.instance = buildGoogleCloudAiplatformV1FulfillmentInstance(); - o.metricSpec = buildGoogleCloudAiplatformV1FulfillmentSpec(); +core.int +buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup = + 0; +api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup +buildGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup() { + final o = + api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup(); + buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup < + 3) { + o.featureGroupId = 'foo'; + o.featureIds = buildUnnamed149(); } - buildCounterGoogleCloudAiplatformV1FulfillmentInput--; + buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup--; return o; } -void checkGoogleCloudAiplatformV1FulfillmentInput( - api.GoogleCloudAiplatformV1FulfillmentInput o, +void checkGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup( + api.GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup o, ) { - buildCounterGoogleCloudAiplatformV1FulfillmentInput++; - if (buildCounterGoogleCloudAiplatformV1FulfillmentInput < 3) { - checkGoogleCloudAiplatformV1FulfillmentInstance(o.instance!); - checkGoogleCloudAiplatformV1FulfillmentSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup < + 3) { + unittest.expect(o.featureGroupId!, unittest.equals('foo')); + checkUnnamed149(o.featureIds!); } - buildCounterGoogleCloudAiplatformV1FulfillmentInput--; + buildCounterGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup--; } -core.int buildCounterGoogleCloudAiplatformV1FulfillmentInstance = 0; -api.GoogleCloudAiplatformV1FulfillmentInstance -buildGoogleCloudAiplatformV1FulfillmentInstance() { - final o = api.GoogleCloudAiplatformV1FulfillmentInstance(); - buildCounterGoogleCloudAiplatformV1FulfillmentInstance++; - if (buildCounterGoogleCloudAiplatformV1FulfillmentInstance < 3) { - o.instruction = 'foo'; - o.prediction = 'foo'; +core.List buildUnnamed150() => ['foo', 'foo']; + +void checkUnnamed150(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfig = 0; +api.GoogleCloudAiplatformV1FeatureViewIndexConfig +buildGoogleCloudAiplatformV1FeatureViewIndexConfig() { + final o = api.GoogleCloudAiplatformV1FeatureViewIndexConfig(); + buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfig++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfig < 3) { + o.bruteForceConfig = + buildGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig(); + o.crowdingColumn = 'foo'; + o.distanceMeasureType = 'foo'; + o.embeddingColumn = 'foo'; + o.embeddingDimension = 42; + o.filterColumns = buildUnnamed150(); + o.treeAhConfig = + buildGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig(); } - buildCounterGoogleCloudAiplatformV1FulfillmentInstance--; + buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfig--; return o; } -void checkGoogleCloudAiplatformV1FulfillmentInstance( - api.GoogleCloudAiplatformV1FulfillmentInstance o, +void checkGoogleCloudAiplatformV1FeatureViewIndexConfig( + api.GoogleCloudAiplatformV1FeatureViewIndexConfig o, ) { - buildCounterGoogleCloudAiplatformV1FulfillmentInstance++; - if (buildCounterGoogleCloudAiplatformV1FulfillmentInstance < 3) { - unittest.expect(o.instruction!, unittest.equals('foo')); - unittest.expect(o.prediction!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfig++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfig < 3) { + checkGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig( + o.bruteForceConfig!, + ); + unittest.expect(o.crowdingColumn!, unittest.equals('foo')); + unittest.expect(o.distanceMeasureType!, unittest.equals('foo')); + unittest.expect(o.embeddingColumn!, unittest.equals('foo')); + unittest.expect(o.embeddingDimension!, unittest.equals(42)); + checkUnnamed150(o.filterColumns!); + checkGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig( + o.treeAhConfig!, + ); } - buildCounterGoogleCloudAiplatformV1FulfillmentInstance--; + buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfig--; } -core.int buildCounterGoogleCloudAiplatformV1FulfillmentResult = 0; -api.GoogleCloudAiplatformV1FulfillmentResult -buildGoogleCloudAiplatformV1FulfillmentResult() { - final o = api.GoogleCloudAiplatformV1FulfillmentResult(); - buildCounterGoogleCloudAiplatformV1FulfillmentResult++; - if (buildCounterGoogleCloudAiplatformV1FulfillmentResult < 3) { - o.confidence = 42.0; - o.explanation = 'foo'; - o.score = 42.0; - } - buildCounterGoogleCloudAiplatformV1FulfillmentResult--; +core.int +buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig = 0; +api.GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig +buildGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig() { + final o = api.GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig(); + buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig < + 3) {} + buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig--; return o; } -void checkGoogleCloudAiplatformV1FulfillmentResult( - api.GoogleCloudAiplatformV1FulfillmentResult o, +void checkGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig( + api.GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig o, ) { - buildCounterGoogleCloudAiplatformV1FulfillmentResult++; - if (buildCounterGoogleCloudAiplatformV1FulfillmentResult < 3) { - unittest.expect(o.confidence!, unittest.equals(42.0)); - unittest.expect(o.explanation!, unittest.equals('foo')); - unittest.expect(o.score!, unittest.equals(42.0)); - } - buildCounterGoogleCloudAiplatformV1FulfillmentResult--; + buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig < + 3) {} + buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig--; } -core.int buildCounterGoogleCloudAiplatformV1FulfillmentSpec = 0; -api.GoogleCloudAiplatformV1FulfillmentSpec -buildGoogleCloudAiplatformV1FulfillmentSpec() { - final o = api.GoogleCloudAiplatformV1FulfillmentSpec(); - buildCounterGoogleCloudAiplatformV1FulfillmentSpec++; - if (buildCounterGoogleCloudAiplatformV1FulfillmentSpec < 3) { - o.version = 42; +core.int buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig = + 0; +api.GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig +buildGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig() { + final o = api.GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig(); + buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig < + 3) { + o.leafNodeEmbeddingCount = 'foo'; } - buildCounterGoogleCloudAiplatformV1FulfillmentSpec--; + buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig--; return o; } -void checkGoogleCloudAiplatformV1FulfillmentSpec( - api.GoogleCloudAiplatformV1FulfillmentSpec o, +void checkGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig( + api.GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig o, ) { - buildCounterGoogleCloudAiplatformV1FulfillmentSpec++; - if (buildCounterGoogleCloudAiplatformV1FulfillmentSpec < 3) { - unittest.expect(o.version!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig < + 3) { + unittest.expect(o.leafNodeEmbeddingCount!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FulfillmentSpec--; + buildCounterGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig--; } -core.Map buildUnnamed136() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; +core.int buildCounterGoogleCloudAiplatformV1FeatureViewOptimizedConfig = 0; +api.GoogleCloudAiplatformV1FeatureViewOptimizedConfig +buildGoogleCloudAiplatformV1FeatureViewOptimizedConfig() { + final o = api.GoogleCloudAiplatformV1FeatureViewOptimizedConfig(); + buildCounterGoogleCloudAiplatformV1FeatureViewOptimizedConfig++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewOptimizedConfig < 3) { + o.automaticResources = buildGoogleCloudAiplatformV1AutomaticResources(); + } + buildCounterGoogleCloudAiplatformV1FeatureViewOptimizedConfig--; + return o; +} -void checkUnnamed136(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - var casted42 = (o['x']!) as core.Map; - unittest.expect(casted42, unittest.hasLength(3)); - unittest.expect(casted42['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted42['bool'], unittest.equals(true)); - unittest.expect(casted42['string'], unittest.equals('foo')); - var casted43 = (o['y']!) as core.Map; - unittest.expect(casted43, unittest.hasLength(3)); - unittest.expect(casted43['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted43['bool'], unittest.equals(true)); - unittest.expect(casted43['string'], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1FeatureViewOptimizedConfig( + api.GoogleCloudAiplatformV1FeatureViewOptimizedConfig o, +) { + buildCounterGoogleCloudAiplatformV1FeatureViewOptimizedConfig++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewOptimizedConfig < 3) { + checkGoogleCloudAiplatformV1AutomaticResources(o.automaticResources!); + } + buildCounterGoogleCloudAiplatformV1FeatureViewOptimizedConfig--; } -core.int buildCounterGoogleCloudAiplatformV1FunctionCall = 0; -api.GoogleCloudAiplatformV1FunctionCall -buildGoogleCloudAiplatformV1FunctionCall() { - final o = api.GoogleCloudAiplatformV1FunctionCall(); - buildCounterGoogleCloudAiplatformV1FunctionCall++; - if (buildCounterGoogleCloudAiplatformV1FunctionCall < 3) { - o.args = buildUnnamed136(); +core.int buildCounterGoogleCloudAiplatformV1FeatureViewSync = 0; +api.GoogleCloudAiplatformV1FeatureViewSync +buildGoogleCloudAiplatformV1FeatureViewSync() { + final o = api.GoogleCloudAiplatformV1FeatureViewSync(); + buildCounterGoogleCloudAiplatformV1FeatureViewSync++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewSync < 3) { + o.createTime = 'foo'; + o.finalStatus = buildGoogleRpcStatus(); o.name = 'foo'; + o.runTime = buildGoogleTypeInterval(); + o.satisfiesPzi = true; + o.satisfiesPzs = true; + o.syncSummary = buildGoogleCloudAiplatformV1FeatureViewSyncSyncSummary(); } - buildCounterGoogleCloudAiplatformV1FunctionCall--; + buildCounterGoogleCloudAiplatformV1FeatureViewSync--; return o; } -void checkGoogleCloudAiplatformV1FunctionCall( - api.GoogleCloudAiplatformV1FunctionCall o, +void checkGoogleCloudAiplatformV1FeatureViewSync( + api.GoogleCloudAiplatformV1FeatureViewSync o, ) { - buildCounterGoogleCloudAiplatformV1FunctionCall++; - if (buildCounterGoogleCloudAiplatformV1FunctionCall < 3) { - checkUnnamed136(o.args!); + buildCounterGoogleCloudAiplatformV1FeatureViewSync++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewSync < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + checkGoogleRpcStatus(o.finalStatus!); unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleTypeInterval(o.runTime!); + unittest.expect(o.satisfiesPzi!, unittest.isTrue); + unittest.expect(o.satisfiesPzs!, unittest.isTrue); + checkGoogleCloudAiplatformV1FeatureViewSyncSyncSummary(o.syncSummary!); } - buildCounterGoogleCloudAiplatformV1FunctionCall--; + buildCounterGoogleCloudAiplatformV1FeatureViewSync--; } -core.List buildUnnamed137() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1FeatureViewSyncConfig = 0; +api.GoogleCloudAiplatformV1FeatureViewSyncConfig +buildGoogleCloudAiplatformV1FeatureViewSyncConfig() { + final o = api.GoogleCloudAiplatformV1FeatureViewSyncConfig(); + buildCounterGoogleCloudAiplatformV1FeatureViewSyncConfig++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewSyncConfig < 3) { + o.continuous = true; + o.cron = 'foo'; + } + buildCounterGoogleCloudAiplatformV1FeatureViewSyncConfig--; + return o; +} -void checkUnnamed137(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1FeatureViewSyncConfig( + api.GoogleCloudAiplatformV1FeatureViewSyncConfig o, +) { + buildCounterGoogleCloudAiplatformV1FeatureViewSyncConfig++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewSyncConfig < 3) { + unittest.expect(o.continuous!, unittest.isTrue); + unittest.expect(o.cron!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1FeatureViewSyncConfig--; } -core.int buildCounterGoogleCloudAiplatformV1FunctionCallingConfig = 0; -api.GoogleCloudAiplatformV1FunctionCallingConfig -buildGoogleCloudAiplatformV1FunctionCallingConfig() { - final o = api.GoogleCloudAiplatformV1FunctionCallingConfig(); - buildCounterGoogleCloudAiplatformV1FunctionCallingConfig++; - if (buildCounterGoogleCloudAiplatformV1FunctionCallingConfig < 3) { - o.allowedFunctionNames = buildUnnamed137(); - o.mode = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1FeatureViewSyncSyncSummary = 0; +api.GoogleCloudAiplatformV1FeatureViewSyncSyncSummary +buildGoogleCloudAiplatformV1FeatureViewSyncSyncSummary() { + final o = api.GoogleCloudAiplatformV1FeatureViewSyncSyncSummary(); + buildCounterGoogleCloudAiplatformV1FeatureViewSyncSyncSummary++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewSyncSyncSummary < 3) { + o.rowSynced = 'foo'; + o.systemWatermarkTime = 'foo'; + o.totalSlot = 'foo'; } - buildCounterGoogleCloudAiplatformV1FunctionCallingConfig--; + buildCounterGoogleCloudAiplatformV1FeatureViewSyncSyncSummary--; return o; } -void checkGoogleCloudAiplatformV1FunctionCallingConfig( - api.GoogleCloudAiplatformV1FunctionCallingConfig o, +void checkGoogleCloudAiplatformV1FeatureViewSyncSyncSummary( + api.GoogleCloudAiplatformV1FeatureViewSyncSyncSummary o, ) { - buildCounterGoogleCloudAiplatformV1FunctionCallingConfig++; - if (buildCounterGoogleCloudAiplatformV1FunctionCallingConfig < 3) { - checkUnnamed137(o.allowedFunctionNames!); - unittest.expect(o.mode!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FeatureViewSyncSyncSummary++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewSyncSyncSummary < 3) { + unittest.expect(o.rowSynced!, unittest.equals('foo')); + unittest.expect(o.systemWatermarkTime!, unittest.equals('foo')); + unittest.expect(o.totalSlot!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FunctionCallingConfig--; + buildCounterGoogleCloudAiplatformV1FeatureViewSyncSyncSummary--; } -core.int buildCounterGoogleCloudAiplatformV1FunctionDeclaration = 0; -api.GoogleCloudAiplatformV1FunctionDeclaration -buildGoogleCloudAiplatformV1FunctionDeclaration() { - final o = api.GoogleCloudAiplatformV1FunctionDeclaration(); - buildCounterGoogleCloudAiplatformV1FunctionDeclaration++; - if (buildCounterGoogleCloudAiplatformV1FunctionDeclaration < 3) { - o.description = 'foo'; - o.name = 'foo'; - o.parameters = buildGoogleCloudAiplatformV1Schema(); - o.parametersJsonSchema = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - o.response = buildGoogleCloudAiplatformV1Schema(); - o.responseJsonSchema = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; +core.int buildCounterGoogleCloudAiplatformV1FeatureViewVertexRagSource = 0; +api.GoogleCloudAiplatformV1FeatureViewVertexRagSource +buildGoogleCloudAiplatformV1FeatureViewVertexRagSource() { + final o = api.GoogleCloudAiplatformV1FeatureViewVertexRagSource(); + buildCounterGoogleCloudAiplatformV1FeatureViewVertexRagSource++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewVertexRagSource < 3) { + o.ragCorpusId = 'foo'; + o.uri = 'foo'; } - buildCounterGoogleCloudAiplatformV1FunctionDeclaration--; + buildCounterGoogleCloudAiplatformV1FeatureViewVertexRagSource--; return o; } -void checkGoogleCloudAiplatformV1FunctionDeclaration( - api.GoogleCloudAiplatformV1FunctionDeclaration o, +void checkGoogleCloudAiplatformV1FeatureViewVertexRagSource( + api.GoogleCloudAiplatformV1FeatureViewVertexRagSource o, ) { - buildCounterGoogleCloudAiplatformV1FunctionDeclaration++; - if (buildCounterGoogleCloudAiplatformV1FunctionDeclaration < 3) { - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1Schema(o.parameters!); - var casted44 = (o.parametersJsonSchema!) as core.Map; - unittest.expect(casted44, unittest.hasLength(3)); - unittest.expect(casted44['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted44['bool'], unittest.equals(true)); - unittest.expect(casted44['string'], unittest.equals('foo')); - checkGoogleCloudAiplatformV1Schema(o.response!); - var casted45 = (o.responseJsonSchema!) as core.Map; - unittest.expect(casted45, unittest.hasLength(3)); - unittest.expect(casted45['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted45['bool'], unittest.equals(true)); - unittest.expect(casted45['string'], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FeatureViewVertexRagSource++; + if (buildCounterGoogleCloudAiplatformV1FeatureViewVertexRagSource < 3) { + unittest.expect(o.ragCorpusId!, unittest.equals('foo')); + unittest.expect(o.uri!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FunctionDeclaration--; + buildCounterGoogleCloudAiplatformV1FeatureViewVertexRagSource--; } -core.Map buildUnnamed138() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, +core.Map buildUnnamed151() => { + 'x': 'foo', + 'y': 'foo', }; -void checkUnnamed138(core.Map o) { +void checkUnnamed151(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted46 = (o['x']!) as core.Map; - unittest.expect(casted46, unittest.hasLength(3)); - unittest.expect(casted46['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted46['bool'], unittest.equals(true)); - unittest.expect(casted46['string'], unittest.equals('foo')); - var casted47 = (o['y']!) as core.Map; - unittest.expect(casted47, unittest.hasLength(3)); - unittest.expect(casted47['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted47['bool'], unittest.equals(true)); - unittest.expect(casted47['string'], unittest.equals('foo')); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1FunctionResponse = 0; -api.GoogleCloudAiplatformV1FunctionResponse -buildGoogleCloudAiplatformV1FunctionResponse() { - final o = api.GoogleCloudAiplatformV1FunctionResponse(); - buildCounterGoogleCloudAiplatformV1FunctionResponse++; - if (buildCounterGoogleCloudAiplatformV1FunctionResponse < 3) { +core.int buildCounterGoogleCloudAiplatformV1Featurestore = 0; +api.GoogleCloudAiplatformV1Featurestore +buildGoogleCloudAiplatformV1Featurestore() { + final o = api.GoogleCloudAiplatformV1Featurestore(); + buildCounterGoogleCloudAiplatformV1Featurestore++; + if (buildCounterGoogleCloudAiplatformV1Featurestore < 3) { + o.createTime = 'foo'; + o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.etag = 'foo'; + o.labels = buildUnnamed151(); o.name = 'foo'; - o.response = buildUnnamed138(); + o.onlineServingConfig = + buildGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig(); + o.onlineStorageTtlDays = 42; + o.satisfiesPzi = true; + o.satisfiesPzs = true; + o.state = 'foo'; + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1FunctionResponse--; + buildCounterGoogleCloudAiplatformV1Featurestore--; return o; } -void checkGoogleCloudAiplatformV1FunctionResponse( - api.GoogleCloudAiplatformV1FunctionResponse o, +void checkGoogleCloudAiplatformV1Featurestore( + api.GoogleCloudAiplatformV1Featurestore o, ) { - buildCounterGoogleCloudAiplatformV1FunctionResponse++; - if (buildCounterGoogleCloudAiplatformV1FunctionResponse < 3) { + buildCounterGoogleCloudAiplatformV1Featurestore++; + if (buildCounterGoogleCloudAiplatformV1Featurestore < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + unittest.expect(o.etag!, unittest.equals('foo')); + checkUnnamed151(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed138(o.response!); + checkGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig( + o.onlineServingConfig!, + ); + unittest.expect(o.onlineStorageTtlDays!, unittest.equals(42)); + unittest.expect(o.satisfiesPzi!, unittest.isTrue); + unittest.expect(o.satisfiesPzs!, unittest.isTrue); + unittest.expect(o.state!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1FunctionResponse--; + buildCounterGoogleCloudAiplatformV1Featurestore--; } -core.int buildCounterGoogleCloudAiplatformV1GcsDestination = 0; -api.GoogleCloudAiplatformV1GcsDestination -buildGoogleCloudAiplatformV1GcsDestination() { - final o = api.GoogleCloudAiplatformV1GcsDestination(); - buildCounterGoogleCloudAiplatformV1GcsDestination++; - if (buildCounterGoogleCloudAiplatformV1GcsDestination < 3) { - o.outputUriPrefix = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfig = 0; +api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfig +buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfig() { + final o = api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfig(); + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfig++; + if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfig < 3) { + o.categoricalThresholdConfig = + buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig(); + o.importFeaturesAnalysis = + buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis(); + o.numericalThresholdConfig = + buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig(); + o.snapshotAnalysis = + buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis(); } - buildCounterGoogleCloudAiplatformV1GcsDestination--; + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfig--; return o; } -void checkGoogleCloudAiplatformV1GcsDestination( - api.GoogleCloudAiplatformV1GcsDestination o, +void checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfig( + api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfig o, ) { - buildCounterGoogleCloudAiplatformV1GcsDestination++; - if (buildCounterGoogleCloudAiplatformV1GcsDestination < 3) { - unittest.expect(o.outputUriPrefix!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfig++; + if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfig < 3) { + checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig( + o.categoricalThresholdConfig!, + ); + checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis( + o.importFeaturesAnalysis!, + ); + checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig( + o.numericalThresholdConfig!, + ); + checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis( + o.snapshotAnalysis!, + ); } - buildCounterGoogleCloudAiplatformV1GcsDestination--; -} - -core.List buildUnnamed139() => ['foo', 'foo']; - -void checkUnnamed139(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfig--; } -core.int buildCounterGoogleCloudAiplatformV1GcsSource = 0; -api.GoogleCloudAiplatformV1GcsSource buildGoogleCloudAiplatformV1GcsSource() { - final o = api.GoogleCloudAiplatformV1GcsSource(); - buildCounterGoogleCloudAiplatformV1GcsSource++; - if (buildCounterGoogleCloudAiplatformV1GcsSource < 3) { - o.uris = buildUnnamed139(); +core.int +buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis = + 0; +api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis +buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis() { + final o = + api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis(); + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis++; + if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis < + 3) { + o.anomalyDetectionBaseline = 'foo'; + o.state = 'foo'; } - buildCounterGoogleCloudAiplatformV1GcsSource--; + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis--; return o; } -void checkGoogleCloudAiplatformV1GcsSource( - api.GoogleCloudAiplatformV1GcsSource o, +void +checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis( + api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis + o, ) { - buildCounterGoogleCloudAiplatformV1GcsSource++; - if (buildCounterGoogleCloudAiplatformV1GcsSource < 3) { - checkUnnamed139(o.uris!); + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis++; + if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis < + 3) { + unittest.expect(o.anomalyDetectionBaseline!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1GcsSource--; + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis--; } -core.int buildCounterGoogleCloudAiplatformV1GdcConfig = 0; -api.GoogleCloudAiplatformV1GdcConfig buildGoogleCloudAiplatformV1GdcConfig() { - final o = api.GoogleCloudAiplatformV1GdcConfig(); - buildCounterGoogleCloudAiplatformV1GdcConfig++; - if (buildCounterGoogleCloudAiplatformV1GdcConfig < 3) { - o.zone = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis = + 0; +api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis +buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis() { + final o = + api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis(); + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis++; + if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis < + 3) { + o.disabled = true; + o.monitoringIntervalDays = 42; + o.stalenessDays = 42; } - buildCounterGoogleCloudAiplatformV1GdcConfig--; + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis--; return o; } -void checkGoogleCloudAiplatformV1GdcConfig( - api.GoogleCloudAiplatformV1GdcConfig o, +void checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis( + api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis o, ) { - buildCounterGoogleCloudAiplatformV1GdcConfig++; - if (buildCounterGoogleCloudAiplatformV1GdcConfig < 3) { - unittest.expect(o.zone!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis++; + if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis < + 3) { + unittest.expect(o.disabled!, unittest.isTrue); + unittest.expect(o.monitoringIntervalDays!, unittest.equals(42)); + unittest.expect(o.stalenessDays!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1GdcConfig--; + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis--; } -core.int buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig = 0; -api.GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig -buildGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig() { - final o = api.GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig(); - buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig++; - if (buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig < 3) { - o.ragConfig = - buildGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig(); +core.int +buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig = + 0; +api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig +buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig() { + final o = + api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig(); + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig++; + if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig < + 3) { + o.value = 42.0; } - buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig--; + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig--; return o; } -void checkGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig( - api.GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig o, +void checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig( + api.GoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig o, ) { - buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig++; - if (buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig < 3) { - checkGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig( - o.ragConfig!, - ); + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig++; + if (buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig < + 3) { + unittest.expect(o.value!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig--; + buildCounterGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig--; } -core.int -buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig = 0; -api.GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig -buildGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig() { - final o = api.GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig(); - buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig++; - if (buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig < - 3) { - o.enableRag = true; +core.int buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig = 0; +api.GoogleCloudAiplatformV1FeaturestoreOnlineServingConfig +buildGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig() { + final o = api.GoogleCloudAiplatformV1FeaturestoreOnlineServingConfig(); + buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig++; + if (buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig < 3) { + o.fixedNodeCount = 42; + o.scaling = + buildGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling(); } - buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig--; + buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig--; return o; } -void checkGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig( - api.GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig o, +void checkGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig( + api.GoogleCloudAiplatformV1FeaturestoreOnlineServingConfig o, ) { - buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig++; - if (buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig < - 3) { - unittest.expect(o.enableRag!, unittest.isTrue); + buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig++; + if (buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig < 3) { + unittest.expect(o.fixedNodeCount!, unittest.equals(42)); + checkGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling( + o.scaling!, + ); } - buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig--; -} - -core.List buildUnnamed140() => [ - buildGoogleCloudAiplatformV1Content(), - buildGoogleCloudAiplatformV1Content(), -]; - -void checkUnnamed140(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Content(o[0]); - checkGoogleCloudAiplatformV1Content(o[1]); -} - -core.Map buildUnnamed141() => { - 'x': 'foo', - 'y': 'foo', -}; - -void checkUnnamed141(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig--; } -core.List buildUnnamed142() => [ - buildGoogleCloudAiplatformV1SafetySetting(), - buildGoogleCloudAiplatformV1SafetySetting(), -]; - -void checkUnnamed142(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1SafetySetting(o[0]); - checkGoogleCloudAiplatformV1SafetySetting(o[1]); +core.int +buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling = 0; +api.GoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling +buildGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling() { + final o = api.GoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling(); + buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling++; + if (buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling < + 3) { + o.cpuUtilizationTarget = 42; + o.maxNodeCount = 42; + o.minNodeCount = 42; + } + buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling--; + return o; } -core.List buildUnnamed143() => [ - buildGoogleCloudAiplatformV1Tool(), - buildGoogleCloudAiplatformV1Tool(), -]; - -void checkUnnamed143(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Tool(o[0]); - checkGoogleCloudAiplatformV1Tool(o[1]); +void checkGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling( + api.GoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling o, +) { + buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling++; + if (buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling < + 3) { + unittest.expect(o.cpuUtilizationTarget!, unittest.equals(42)); + unittest.expect(o.maxNodeCount!, unittest.equals(42)); + unittest.expect(o.minNodeCount!, unittest.equals(42)); + } + buildCounterGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling--; } -core.int buildCounterGoogleCloudAiplatformV1GenerateContentRequest = 0; -api.GoogleCloudAiplatformV1GenerateContentRequest -buildGoogleCloudAiplatformV1GenerateContentRequest() { - final o = api.GoogleCloudAiplatformV1GenerateContentRequest(); - buildCounterGoogleCloudAiplatformV1GenerateContentRequest++; - if (buildCounterGoogleCloudAiplatformV1GenerateContentRequest < 3) { - o.cachedContent = 'foo'; - o.contents = buildUnnamed140(); - o.generationConfig = buildGoogleCloudAiplatformV1GenerationConfig(); - o.labels = buildUnnamed141(); - o.safetySettings = buildUnnamed142(); - o.systemInstruction = buildGoogleCloudAiplatformV1Content(); - o.toolConfig = buildGoogleCloudAiplatformV1ToolConfig(); - o.tools = buildUnnamed143(); +core.int buildCounterGoogleCloudAiplatformV1FetchFeatureValuesRequest = 0; +api.GoogleCloudAiplatformV1FetchFeatureValuesRequest +buildGoogleCloudAiplatformV1FetchFeatureValuesRequest() { + final o = api.GoogleCloudAiplatformV1FetchFeatureValuesRequest(); + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesRequest++; + if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesRequest < 3) { + o.dataFormat = 'foo'; + o.dataKey = buildGoogleCloudAiplatformV1FeatureViewDataKey(); } - buildCounterGoogleCloudAiplatformV1GenerateContentRequest--; + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesRequest--; return o; } -void checkGoogleCloudAiplatformV1GenerateContentRequest( - api.GoogleCloudAiplatformV1GenerateContentRequest o, +void checkGoogleCloudAiplatformV1FetchFeatureValuesRequest( + api.GoogleCloudAiplatformV1FetchFeatureValuesRequest o, ) { - buildCounterGoogleCloudAiplatformV1GenerateContentRequest++; - if (buildCounterGoogleCloudAiplatformV1GenerateContentRequest < 3) { - unittest.expect(o.cachedContent!, unittest.equals('foo')); - checkUnnamed140(o.contents!); - checkGoogleCloudAiplatformV1GenerationConfig(o.generationConfig!); - checkUnnamed141(o.labels!); - checkUnnamed142(o.safetySettings!); - checkGoogleCloudAiplatformV1Content(o.systemInstruction!); - checkGoogleCloudAiplatformV1ToolConfig(o.toolConfig!); - checkUnnamed143(o.tools!); + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesRequest++; + if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesRequest < 3) { + unittest.expect(o.dataFormat!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1FeatureViewDataKey(o.dataKey!); } - buildCounterGoogleCloudAiplatformV1GenerateContentRequest--; + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesRequest--; } -core.List buildUnnamed144() => [ - buildGoogleCloudAiplatformV1Candidate(), - buildGoogleCloudAiplatformV1Candidate(), -]; +core.Map buildUnnamed152() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; -void checkUnnamed144(core.List o) { +void checkUnnamed152(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Candidate(o[0]); - checkGoogleCloudAiplatformV1Candidate(o[1]); + var casted51 = (o['x']!) as core.Map; + unittest.expect(casted51, unittest.hasLength(3)); + unittest.expect(casted51['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted51['bool'], unittest.equals(true)); + unittest.expect(casted51['string'], unittest.equals('foo')); + var casted52 = (o['y']!) as core.Map; + unittest.expect(casted52, unittest.hasLength(3)); + unittest.expect(casted52['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted52['bool'], unittest.equals(true)); + unittest.expect(casted52['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1GenerateContentResponse = 0; -api.GoogleCloudAiplatformV1GenerateContentResponse -buildGoogleCloudAiplatformV1GenerateContentResponse() { - final o = api.GoogleCloudAiplatformV1GenerateContentResponse(); - buildCounterGoogleCloudAiplatformV1GenerateContentResponse++; - if (buildCounterGoogleCloudAiplatformV1GenerateContentResponse < 3) { - o.candidates = buildUnnamed144(); - o.createTime = 'foo'; - o.modelVersion = 'foo'; - o.promptFeedback = - buildGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback(); - o.responseId = 'foo'; - o.usageMetadata = - buildGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata(); +core.int buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponse = 0; +api.GoogleCloudAiplatformV1FetchFeatureValuesResponse +buildGoogleCloudAiplatformV1FetchFeatureValuesResponse() { + final o = api.GoogleCloudAiplatformV1FetchFeatureValuesResponse(); + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponse++; + if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponse < 3) { + o.dataKey = buildGoogleCloudAiplatformV1FeatureViewDataKey(); + o.keyValues = + buildGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList(); + o.protoStruct = buildUnnamed152(); } - buildCounterGoogleCloudAiplatformV1GenerateContentResponse--; + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponse--; return o; } -void checkGoogleCloudAiplatformV1GenerateContentResponse( - api.GoogleCloudAiplatformV1GenerateContentResponse o, +void checkGoogleCloudAiplatformV1FetchFeatureValuesResponse( + api.GoogleCloudAiplatformV1FetchFeatureValuesResponse o, ) { - buildCounterGoogleCloudAiplatformV1GenerateContentResponse++; - if (buildCounterGoogleCloudAiplatformV1GenerateContentResponse < 3) { - checkUnnamed144(o.candidates!); - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.modelVersion!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback( - o.promptFeedback!, - ); - unittest.expect(o.responseId!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata( - o.usageMetadata!, + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponse++; + if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponse < 3) { + checkGoogleCloudAiplatformV1FeatureViewDataKey(o.dataKey!); + checkGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList( + o.keyValues!, ); + checkUnnamed152(o.protoStruct!); } - buildCounterGoogleCloudAiplatformV1GenerateContentResponse--; + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponse--; } -core.List buildUnnamed145() => [ - buildGoogleCloudAiplatformV1SafetyRating(), - buildGoogleCloudAiplatformV1SafetyRating(), +core.List< + api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair +> +buildUnnamed153() => [ + buildGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair(), + buildGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair(), ]; -void checkUnnamed145(core.List o) { +void checkUnnamed153( + core.List< + api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair + > + o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1SafetyRating(o[0]); - checkGoogleCloudAiplatformV1SafetyRating(o[1]); + checkGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair( + o[0], + ); + checkGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair( + o[1], + ); } core.int -buildCounterGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback = 0; -api.GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback -buildGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback() { - final o = api.GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback(); - buildCounterGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback++; - if (buildCounterGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback < +buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList = + 0; +api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList +buildGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList() { + final o = + api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList(); + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList++; + if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList < 3) { - o.blockReason = 'foo'; - o.blockReasonMessage = 'foo'; - o.safetyRatings = buildUnnamed145(); + o.features = buildUnnamed153(); } - buildCounterGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback--; + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList--; return o; } -void checkGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback( - api.GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback o, +void +checkGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList( + api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList + o, ) { - buildCounterGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback++; - if (buildCounterGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback < + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList++; + if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList < 3) { - unittest.expect(o.blockReason!, unittest.equals('foo')); - unittest.expect(o.blockReasonMessage!, unittest.equals('foo')); - checkUnnamed145(o.safetyRatings!); + checkUnnamed153(o.features!); } - buildCounterGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback--; + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList--; } -core.List buildUnnamed146() => [ - buildGoogleCloudAiplatformV1ModalityTokenCount(), - buildGoogleCloudAiplatformV1ModalityTokenCount(), -]; +core.int +buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair = + 0; +api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair +buildGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair() { + final o = + api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair(); + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair++; + if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair < + 3) { + o.name = 'foo'; + o.value = buildGoogleCloudAiplatformV1FeatureValue(); + } + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair--; + return o; +} -void checkUnnamed146( - core.List o, +void +checkGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair( + api.GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair + o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ModalityTokenCount(o[0]); - checkGoogleCloudAiplatformV1ModalityTokenCount(o[1]); + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair++; + if (buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair < + 3) { + unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1FeatureValue(o.value!); + } + buildCounterGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair--; } -core.List buildUnnamed147() => [ - buildGoogleCloudAiplatformV1ModalityTokenCount(), - buildGoogleCloudAiplatformV1ModalityTokenCount(), -]; +core.int buildCounterGoogleCloudAiplatformV1FetchPredictOperationRequest = 0; +api.GoogleCloudAiplatformV1FetchPredictOperationRequest +buildGoogleCloudAiplatformV1FetchPredictOperationRequest() { + final o = api.GoogleCloudAiplatformV1FetchPredictOperationRequest(); + buildCounterGoogleCloudAiplatformV1FetchPredictOperationRequest++; + if (buildCounterGoogleCloudAiplatformV1FetchPredictOperationRequest < 3) { + o.operationName = 'foo'; + } + buildCounterGoogleCloudAiplatformV1FetchPredictOperationRequest--; + return o; +} -void checkUnnamed147( - core.List o, +void checkGoogleCloudAiplatformV1FetchPredictOperationRequest( + api.GoogleCloudAiplatformV1FetchPredictOperationRequest o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ModalityTokenCount(o[0]); - checkGoogleCloudAiplatformV1ModalityTokenCount(o[1]); + buildCounterGoogleCloudAiplatformV1FetchPredictOperationRequest++; + if (buildCounterGoogleCloudAiplatformV1FetchPredictOperationRequest < 3) { + unittest.expect(o.operationName!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1FetchPredictOperationRequest--; } -core.List buildUnnamed148() => [ - buildGoogleCloudAiplatformV1ModalityTokenCount(), - buildGoogleCloudAiplatformV1ModalityTokenCount(), -]; +core.int buildCounterGoogleCloudAiplatformV1FileData = 0; +api.GoogleCloudAiplatformV1FileData buildGoogleCloudAiplatformV1FileData() { + final o = api.GoogleCloudAiplatformV1FileData(); + buildCounterGoogleCloudAiplatformV1FileData++; + if (buildCounterGoogleCloudAiplatformV1FileData < 3) { + o.displayName = 'foo'; + o.fileUri = 'foo'; + o.mimeType = 'foo'; + } + buildCounterGoogleCloudAiplatformV1FileData--; + return o; +} -void checkUnnamed148( - core.List o, +void checkGoogleCloudAiplatformV1FileData( + api.GoogleCloudAiplatformV1FileData o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ModalityTokenCount(o[0]); - checkGoogleCloudAiplatformV1ModalityTokenCount(o[1]); + buildCounterGoogleCloudAiplatformV1FileData++; + if (buildCounterGoogleCloudAiplatformV1FileData < 3) { + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.fileUri!, unittest.equals('foo')); + unittest.expect(o.mimeType!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1FileData--; } -core.List buildUnnamed149() => [ - buildGoogleCloudAiplatformV1ModalityTokenCount(), - buildGoogleCloudAiplatformV1ModalityTokenCount(), -]; +core.int buildCounterGoogleCloudAiplatformV1FileStatus = 0; +api.GoogleCloudAiplatformV1FileStatus buildGoogleCloudAiplatformV1FileStatus() { + final o = api.GoogleCloudAiplatformV1FileStatus(); + buildCounterGoogleCloudAiplatformV1FileStatus++; + if (buildCounterGoogleCloudAiplatformV1FileStatus < 3) { + o.errorStatus = 'foo'; + o.state = 'foo'; + } + buildCounterGoogleCloudAiplatformV1FileStatus--; + return o; +} -void checkUnnamed149( - core.List o, +void checkGoogleCloudAiplatformV1FileStatus( + api.GoogleCloudAiplatformV1FileStatus o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ModalityTokenCount(o[0]); - checkGoogleCloudAiplatformV1ModalityTokenCount(o[1]); + buildCounterGoogleCloudAiplatformV1FileStatus++; + if (buildCounterGoogleCloudAiplatformV1FileStatus < 3) { + unittest.expect(o.errorStatus!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1FileStatus--; } -core.int -buildCounterGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata = 0; -api.GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata -buildGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata() { - final o = api.GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata(); - buildCounterGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata++; - if (buildCounterGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata < - 3) { - o.cacheTokensDetails = buildUnnamed146(); - o.cachedContentTokenCount = 42; - o.candidatesTokenCount = 42; - o.candidatesTokensDetails = buildUnnamed147(); - o.promptTokenCount = 42; - o.promptTokensDetails = buildUnnamed148(); - o.thoughtsTokenCount = 42; - o.toolUsePromptTokenCount = 42; - o.toolUsePromptTokensDetails = buildUnnamed149(); - o.totalTokenCount = 42; - o.trafficType = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1FilterSplit = 0; +api.GoogleCloudAiplatformV1FilterSplit +buildGoogleCloudAiplatformV1FilterSplit() { + final o = api.GoogleCloudAiplatformV1FilterSplit(); + buildCounterGoogleCloudAiplatformV1FilterSplit++; + if (buildCounterGoogleCloudAiplatformV1FilterSplit < 3) { + o.testFilter = 'foo'; + o.trainingFilter = 'foo'; + o.validationFilter = 'foo'; } - buildCounterGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata--; + buildCounterGoogleCloudAiplatformV1FilterSplit--; return o; } -void checkGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata( - api.GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata o, +void checkGoogleCloudAiplatformV1FilterSplit( + api.GoogleCloudAiplatformV1FilterSplit o, ) { - buildCounterGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata++; - if (buildCounterGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata < - 3) { - checkUnnamed146(o.cacheTokensDetails!); - unittest.expect(o.cachedContentTokenCount!, unittest.equals(42)); - unittest.expect(o.candidatesTokenCount!, unittest.equals(42)); - checkUnnamed147(o.candidatesTokensDetails!); - unittest.expect(o.promptTokenCount!, unittest.equals(42)); - checkUnnamed148(o.promptTokensDetails!); - unittest.expect(o.thoughtsTokenCount!, unittest.equals(42)); - unittest.expect(o.toolUsePromptTokenCount!, unittest.equals(42)); - checkUnnamed149(o.toolUsePromptTokensDetails!); - unittest.expect(o.totalTokenCount!, unittest.equals(42)); - unittest.expect(o.trafficType!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FilterSplit++; + if (buildCounterGoogleCloudAiplatformV1FilterSplit < 3) { + unittest.expect(o.testFilter!, unittest.equals('foo')); + unittest.expect(o.trainingFilter!, unittest.equals('foo')); + unittest.expect(o.validationFilter!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata--; + buildCounterGoogleCloudAiplatformV1FilterSplit--; } -core.List buildUnnamed150() => ['foo', 'foo']; +core.List +buildUnnamed154() => [ + buildGoogleCloudAiplatformV1FindNeighborsRequestQuery(), + buildGoogleCloudAiplatformV1FindNeighborsRequestQuery(), +]; -void checkUnnamed150(core.List o) { +void checkUnnamed154( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1FindNeighborsRequestQuery(o[0]); + checkGoogleCloudAiplatformV1FindNeighborsRequestQuery(o[1]); } -core.List buildUnnamed151() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1FindNeighborsRequest = 0; +api.GoogleCloudAiplatformV1FindNeighborsRequest +buildGoogleCloudAiplatformV1FindNeighborsRequest() { + final o = api.GoogleCloudAiplatformV1FindNeighborsRequest(); + buildCounterGoogleCloudAiplatformV1FindNeighborsRequest++; + if (buildCounterGoogleCloudAiplatformV1FindNeighborsRequest < 3) { + o.deployedIndexId = 'foo'; + o.queries = buildUnnamed154(); + o.returnFullDatapoint = true; + } + buildCounterGoogleCloudAiplatformV1FindNeighborsRequest--; + return o; +} -void checkUnnamed151(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1FindNeighborsRequest( + api.GoogleCloudAiplatformV1FindNeighborsRequest o, +) { + buildCounterGoogleCloudAiplatformV1FindNeighborsRequest++; + if (buildCounterGoogleCloudAiplatformV1FindNeighborsRequest < 3) { + unittest.expect(o.deployedIndexId!, unittest.equals('foo')); + checkUnnamed154(o.queries!); + unittest.expect(o.returnFullDatapoint!, unittest.isTrue); + } + buildCounterGoogleCloudAiplatformV1FindNeighborsRequest--; } -core.int buildCounterGoogleCloudAiplatformV1GenerationConfig = 0; -api.GoogleCloudAiplatformV1GenerationConfig -buildGoogleCloudAiplatformV1GenerationConfig() { - final o = api.GoogleCloudAiplatformV1GenerationConfig(); - buildCounterGoogleCloudAiplatformV1GenerationConfig++; - if (buildCounterGoogleCloudAiplatformV1GenerationConfig < 3) { - o.audioTimestamp = true; - o.candidateCount = 42; - o.enableAffectiveDialog = true; - o.frequencyPenalty = 42.0; - o.logprobs = 42; - o.maxOutputTokens = 42; - o.mediaResolution = 'foo'; - o.presencePenalty = 42.0; - o.responseJsonSchema = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - o.responseLogprobs = true; - o.responseMimeType = 'foo'; - o.responseModalities = buildUnnamed150(); - o.responseSchema = buildGoogleCloudAiplatformV1Schema(); - o.routingConfig = - buildGoogleCloudAiplatformV1GenerationConfigRoutingConfig(); - o.seed = 42; - o.speechConfig = buildGoogleCloudAiplatformV1SpeechConfig(); - o.stopSequences = buildUnnamed151(); - o.temperature = 42.0; - o.thinkingConfig = - buildGoogleCloudAiplatformV1GenerationConfigThinkingConfig(); - o.topK = 42.0; - o.topP = 42.0; +core.int buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQuery = 0; +api.GoogleCloudAiplatformV1FindNeighborsRequestQuery +buildGoogleCloudAiplatformV1FindNeighborsRequestQuery() { + final o = api.GoogleCloudAiplatformV1FindNeighborsRequestQuery(); + buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQuery++; + if (buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQuery < 3) { + o.approximateNeighborCount = 42; + o.datapoint = buildGoogleCloudAiplatformV1IndexDatapoint(); + o.fractionLeafNodesToSearchOverride = 42.0; + o.neighborCount = 42; + o.perCrowdingAttributeNeighborCount = 42; + o.rrf = buildGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF(); } - buildCounterGoogleCloudAiplatformV1GenerationConfig--; + buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQuery--; return o; } -void checkGoogleCloudAiplatformV1GenerationConfig( - api.GoogleCloudAiplatformV1GenerationConfig o, +void checkGoogleCloudAiplatformV1FindNeighborsRequestQuery( + api.GoogleCloudAiplatformV1FindNeighborsRequestQuery o, ) { - buildCounterGoogleCloudAiplatformV1GenerationConfig++; - if (buildCounterGoogleCloudAiplatformV1GenerationConfig < 3) { - unittest.expect(o.audioTimestamp!, unittest.isTrue); - unittest.expect(o.candidateCount!, unittest.equals(42)); - unittest.expect(o.enableAffectiveDialog!, unittest.isTrue); - unittest.expect(o.frequencyPenalty!, unittest.equals(42.0)); - unittest.expect(o.logprobs!, unittest.equals(42)); - unittest.expect(o.maxOutputTokens!, unittest.equals(42)); - unittest.expect(o.mediaResolution!, unittest.equals('foo')); - unittest.expect(o.presencePenalty!, unittest.equals(42.0)); - var casted48 = (o.responseJsonSchema!) as core.Map; - unittest.expect(casted48, unittest.hasLength(3)); - unittest.expect(casted48['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted48['bool'], unittest.equals(true)); - unittest.expect(casted48['string'], unittest.equals('foo')); - unittest.expect(o.responseLogprobs!, unittest.isTrue); - unittest.expect(o.responseMimeType!, unittest.equals('foo')); - checkUnnamed150(o.responseModalities!); - checkGoogleCloudAiplatformV1Schema(o.responseSchema!); - checkGoogleCloudAiplatformV1GenerationConfigRoutingConfig(o.routingConfig!); - unittest.expect(o.seed!, unittest.equals(42)); - checkGoogleCloudAiplatformV1SpeechConfig(o.speechConfig!); - checkUnnamed151(o.stopSequences!); - unittest.expect(o.temperature!, unittest.equals(42.0)); - checkGoogleCloudAiplatformV1GenerationConfigThinkingConfig( - o.thinkingConfig!, + buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQuery++; + if (buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQuery < 3) { + unittest.expect(o.approximateNeighborCount!, unittest.equals(42)); + checkGoogleCloudAiplatformV1IndexDatapoint(o.datapoint!); + unittest.expect( + o.fractionLeafNodesToSearchOverride!, + unittest.equals(42.0), ); - unittest.expect(o.topK!, unittest.equals(42.0)); - unittest.expect(o.topP!, unittest.equals(42.0)); + unittest.expect(o.neighborCount!, unittest.equals(42)); + unittest.expect(o.perCrowdingAttributeNeighborCount!, unittest.equals(42)); + checkGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF(o.rrf!); } - buildCounterGoogleCloudAiplatformV1GenerationConfig--; + buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQuery--; } -core.int buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfig = 0; -api.GoogleCloudAiplatformV1GenerationConfigRoutingConfig -buildGoogleCloudAiplatformV1GenerationConfigRoutingConfig() { - final o = api.GoogleCloudAiplatformV1GenerationConfigRoutingConfig(); - buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfig++; - if (buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfig < 3) { - o.autoMode = - buildGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode(); - o.manualMode = - buildGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode(); +core.int buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF = 0; +api.GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF +buildGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF() { + final o = api.GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF(); + buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF++; + if (buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF < 3) { + o.alpha = 42.0; } - buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfig--; + buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF--; return o; } -void checkGoogleCloudAiplatformV1GenerationConfigRoutingConfig( - api.GoogleCloudAiplatformV1GenerationConfigRoutingConfig o, +void checkGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF( + api.GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF o, ) { - buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfig++; - if (buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfig < 3) { - checkGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode( - o.autoMode!, - ); - checkGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode( - o.manualMode!, - ); + buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF++; + if (buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF < 3) { + unittest.expect(o.alpha!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfig--; + buildCounterGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF--; } -core.int -buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode = - 0; -api.GoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode -buildGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode() { - final o = - api.GoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode(); - buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode++; - if (buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode < - 3) { - o.modelRoutingPreference = 'foo'; +core.List +buildUnnamed155() => [ + buildGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors(), + buildGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors(), +]; + +void checkUnnamed155( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors(o[0]); + checkGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1FindNeighborsResponse = 0; +api.GoogleCloudAiplatformV1FindNeighborsResponse +buildGoogleCloudAiplatformV1FindNeighborsResponse() { + final o = api.GoogleCloudAiplatformV1FindNeighborsResponse(); + buildCounterGoogleCloudAiplatformV1FindNeighborsResponse++; + if (buildCounterGoogleCloudAiplatformV1FindNeighborsResponse < 3) { + o.nearestNeighbors = buildUnnamed155(); } - buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode--; + buildCounterGoogleCloudAiplatformV1FindNeighborsResponse--; return o; } -void checkGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode( - api.GoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode o, +void checkGoogleCloudAiplatformV1FindNeighborsResponse( + api.GoogleCloudAiplatformV1FindNeighborsResponse o, ) { - buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode++; - if (buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode < - 3) { - unittest.expect(o.modelRoutingPreference!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FindNeighborsResponse++; + if (buildCounterGoogleCloudAiplatformV1FindNeighborsResponse < 3) { + checkUnnamed155(o.nearestNeighbors!); } - buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode--; + buildCounterGoogleCloudAiplatformV1FindNeighborsResponse--; +} + +core.List +buildUnnamed156() => [ + buildGoogleCloudAiplatformV1FindNeighborsResponseNeighbor(), + buildGoogleCloudAiplatformV1FindNeighborsResponseNeighbor(), +]; + +void checkUnnamed156( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1FindNeighborsResponseNeighbor(o[0]); + checkGoogleCloudAiplatformV1FindNeighborsResponseNeighbor(o[1]); } core.int -buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode = - 0; -api.GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode -buildGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode() { - final o = - api.GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode(); - buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode++; - if (buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode < +buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors = 0; +api.GoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors +buildGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors() { + final o = api.GoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors(); + buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors++; + if (buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors < 3) { - o.modelName = 'foo'; + o.id = 'foo'; + o.neighbors = buildUnnamed156(); } - buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode--; + buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors--; return o; } -void checkGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode( - api.GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode o, +void checkGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors( + api.GoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors o, ) { - buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode++; - if (buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode < + buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors++; + if (buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors < 3) { - unittest.expect(o.modelName!, unittest.equals('foo')); + unittest.expect(o.id!, unittest.equals('foo')); + checkUnnamed156(o.neighbors!); } - buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode--; + buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors--; } -core.int buildCounterGoogleCloudAiplatformV1GenerationConfigThinkingConfig = 0; -api.GoogleCloudAiplatformV1GenerationConfigThinkingConfig -buildGoogleCloudAiplatformV1GenerationConfigThinkingConfig() { - final o = api.GoogleCloudAiplatformV1GenerationConfigThinkingConfig(); - buildCounterGoogleCloudAiplatformV1GenerationConfigThinkingConfig++; - if (buildCounterGoogleCloudAiplatformV1GenerationConfigThinkingConfig < 3) { - o.includeThoughts = true; - o.thinkingBudget = 42; +core.int buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNeighbor = 0; +api.GoogleCloudAiplatformV1FindNeighborsResponseNeighbor +buildGoogleCloudAiplatformV1FindNeighborsResponseNeighbor() { + final o = api.GoogleCloudAiplatformV1FindNeighborsResponseNeighbor(); + buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNeighbor++; + if (buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNeighbor < 3) { + o.datapoint = buildGoogleCloudAiplatformV1IndexDatapoint(); + o.distance = 42.0; + o.sparseDistance = 42.0; } - buildCounterGoogleCloudAiplatformV1GenerationConfigThinkingConfig--; + buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNeighbor--; return o; } -void checkGoogleCloudAiplatformV1GenerationConfigThinkingConfig( - api.GoogleCloudAiplatformV1GenerationConfigThinkingConfig o, +void checkGoogleCloudAiplatformV1FindNeighborsResponseNeighbor( + api.GoogleCloudAiplatformV1FindNeighborsResponseNeighbor o, ) { - buildCounterGoogleCloudAiplatformV1GenerationConfigThinkingConfig++; - if (buildCounterGoogleCloudAiplatformV1GenerationConfigThinkingConfig < 3) { - unittest.expect(o.includeThoughts!, unittest.isTrue); - unittest.expect(o.thinkingBudget!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNeighbor++; + if (buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNeighbor < 3) { + checkGoogleCloudAiplatformV1IndexDatapoint(o.datapoint!); + unittest.expect(o.distance!, unittest.equals(42.0)); + unittest.expect(o.sparseDistance!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1GenerationConfigThinkingConfig--; + buildCounterGoogleCloudAiplatformV1FindNeighborsResponseNeighbor--; } -core.int buildCounterGoogleCloudAiplatformV1GenieSource = 0; -api.GoogleCloudAiplatformV1GenieSource -buildGoogleCloudAiplatformV1GenieSource() { - final o = api.GoogleCloudAiplatformV1GenieSource(); - buildCounterGoogleCloudAiplatformV1GenieSource++; - if (buildCounterGoogleCloudAiplatformV1GenieSource < 3) { - o.baseModelUri = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1FluencyInput = 0; +api.GoogleCloudAiplatformV1FluencyInput +buildGoogleCloudAiplatformV1FluencyInput() { + final o = api.GoogleCloudAiplatformV1FluencyInput(); + buildCounterGoogleCloudAiplatformV1FluencyInput++; + if (buildCounterGoogleCloudAiplatformV1FluencyInput < 3) { + o.instance = buildGoogleCloudAiplatformV1FluencyInstance(); + o.metricSpec = buildGoogleCloudAiplatformV1FluencySpec(); } - buildCounterGoogleCloudAiplatformV1GenieSource--; + buildCounterGoogleCloudAiplatformV1FluencyInput--; return o; } -void checkGoogleCloudAiplatformV1GenieSource( - api.GoogleCloudAiplatformV1GenieSource o, +void checkGoogleCloudAiplatformV1FluencyInput( + api.GoogleCloudAiplatformV1FluencyInput o, ) { - buildCounterGoogleCloudAiplatformV1GenieSource++; - if (buildCounterGoogleCloudAiplatformV1GenieSource < 3) { - unittest.expect(o.baseModelUri!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FluencyInput++; + if (buildCounterGoogleCloudAiplatformV1FluencyInput < 3) { + checkGoogleCloudAiplatformV1FluencyInstance(o.instance!); + checkGoogleCloudAiplatformV1FluencySpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1GenieSource--; -} - -core.List -buildUnnamed152() => [ - buildGoogleCloudAiplatformV1GoogleDriveSourceResourceId(), - buildGoogleCloudAiplatformV1GoogleDriveSourceResourceId(), -]; - -void checkUnnamed152( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1GoogleDriveSourceResourceId(o[0]); - checkGoogleCloudAiplatformV1GoogleDriveSourceResourceId(o[1]); + buildCounterGoogleCloudAiplatformV1FluencyInput--; } -core.int buildCounterGoogleCloudAiplatformV1GoogleDriveSource = 0; -api.GoogleCloudAiplatformV1GoogleDriveSource -buildGoogleCloudAiplatformV1GoogleDriveSource() { - final o = api.GoogleCloudAiplatformV1GoogleDriveSource(); - buildCounterGoogleCloudAiplatformV1GoogleDriveSource++; - if (buildCounterGoogleCloudAiplatformV1GoogleDriveSource < 3) { - o.resourceIds = buildUnnamed152(); +core.int buildCounterGoogleCloudAiplatformV1FluencyInstance = 0; +api.GoogleCloudAiplatformV1FluencyInstance +buildGoogleCloudAiplatformV1FluencyInstance() { + final o = api.GoogleCloudAiplatformV1FluencyInstance(); + buildCounterGoogleCloudAiplatformV1FluencyInstance++; + if (buildCounterGoogleCloudAiplatformV1FluencyInstance < 3) { + o.prediction = 'foo'; } - buildCounterGoogleCloudAiplatformV1GoogleDriveSource--; + buildCounterGoogleCloudAiplatformV1FluencyInstance--; return o; } -void checkGoogleCloudAiplatformV1GoogleDriveSource( - api.GoogleCloudAiplatformV1GoogleDriveSource o, +void checkGoogleCloudAiplatformV1FluencyInstance( + api.GoogleCloudAiplatformV1FluencyInstance o, ) { - buildCounterGoogleCloudAiplatformV1GoogleDriveSource++; - if (buildCounterGoogleCloudAiplatformV1GoogleDriveSource < 3) { - checkUnnamed152(o.resourceIds!); + buildCounterGoogleCloudAiplatformV1FluencyInstance++; + if (buildCounterGoogleCloudAiplatformV1FluencyInstance < 3) { + unittest.expect(o.prediction!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1GoogleDriveSource--; + buildCounterGoogleCloudAiplatformV1FluencyInstance--; } -core.int buildCounterGoogleCloudAiplatformV1GoogleDriveSourceResourceId = 0; -api.GoogleCloudAiplatformV1GoogleDriveSourceResourceId -buildGoogleCloudAiplatformV1GoogleDriveSourceResourceId() { - final o = api.GoogleCloudAiplatformV1GoogleDriveSourceResourceId(); - buildCounterGoogleCloudAiplatformV1GoogleDriveSourceResourceId++; - if (buildCounterGoogleCloudAiplatformV1GoogleDriveSourceResourceId < 3) { - o.resourceId = 'foo'; - o.resourceType = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1FluencyResult = 0; +api.GoogleCloudAiplatformV1FluencyResult +buildGoogleCloudAiplatformV1FluencyResult() { + final o = api.GoogleCloudAiplatformV1FluencyResult(); + buildCounterGoogleCloudAiplatformV1FluencyResult++; + if (buildCounterGoogleCloudAiplatformV1FluencyResult < 3) { + o.confidence = 42.0; + o.explanation = 'foo'; + o.score = 42.0; } - buildCounterGoogleCloudAiplatformV1GoogleDriveSourceResourceId--; + buildCounterGoogleCloudAiplatformV1FluencyResult--; return o; } -void checkGoogleCloudAiplatformV1GoogleDriveSourceResourceId( - api.GoogleCloudAiplatformV1GoogleDriveSourceResourceId o, +void checkGoogleCloudAiplatformV1FluencyResult( + api.GoogleCloudAiplatformV1FluencyResult o, ) { - buildCounterGoogleCloudAiplatformV1GoogleDriveSourceResourceId++; - if (buildCounterGoogleCloudAiplatformV1GoogleDriveSourceResourceId < 3) { - unittest.expect(o.resourceId!, unittest.equals('foo')); - unittest.expect(o.resourceType!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FluencyResult++; + if (buildCounterGoogleCloudAiplatformV1FluencyResult < 3) { + unittest.expect(o.confidence!, unittest.equals(42.0)); + unittest.expect(o.explanation!, unittest.equals('foo')); + unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1GoogleDriveSourceResourceId--; + buildCounterGoogleCloudAiplatformV1FluencyResult--; } -core.int buildCounterGoogleCloudAiplatformV1GoogleMaps = 0; -api.GoogleCloudAiplatformV1GoogleMaps buildGoogleCloudAiplatformV1GoogleMaps() { - final o = api.GoogleCloudAiplatformV1GoogleMaps(); - buildCounterGoogleCloudAiplatformV1GoogleMaps++; - if (buildCounterGoogleCloudAiplatformV1GoogleMaps < 3) { - o.apiAuth = buildGoogleCloudAiplatformV1ApiAuth(); - o.authConfig = buildGoogleCloudAiplatformV1AuthConfig(); +core.int buildCounterGoogleCloudAiplatformV1FluencySpec = 0; +api.GoogleCloudAiplatformV1FluencySpec +buildGoogleCloudAiplatformV1FluencySpec() { + final o = api.GoogleCloudAiplatformV1FluencySpec(); + buildCounterGoogleCloudAiplatformV1FluencySpec++; + if (buildCounterGoogleCloudAiplatformV1FluencySpec < 3) { + o.version = 42; } - buildCounterGoogleCloudAiplatformV1GoogleMaps--; + buildCounterGoogleCloudAiplatformV1FluencySpec--; return o; } -void checkGoogleCloudAiplatformV1GoogleMaps( - api.GoogleCloudAiplatformV1GoogleMaps o, +void checkGoogleCloudAiplatformV1FluencySpec( + api.GoogleCloudAiplatformV1FluencySpec o, ) { - buildCounterGoogleCloudAiplatformV1GoogleMaps++; - if (buildCounterGoogleCloudAiplatformV1GoogleMaps < 3) { - checkGoogleCloudAiplatformV1ApiAuth(o.apiAuth!); - checkGoogleCloudAiplatformV1AuthConfig(o.authConfig!); + buildCounterGoogleCloudAiplatformV1FluencySpec++; + if (buildCounterGoogleCloudAiplatformV1FluencySpec < 3) { + unittest.expect(o.version!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1GoogleMaps--; + buildCounterGoogleCloudAiplatformV1FluencySpec--; } -core.int buildCounterGoogleCloudAiplatformV1GoogleSearchRetrieval = 0; -api.GoogleCloudAiplatformV1GoogleSearchRetrieval -buildGoogleCloudAiplatformV1GoogleSearchRetrieval() { - final o = api.GoogleCloudAiplatformV1GoogleSearchRetrieval(); - buildCounterGoogleCloudAiplatformV1GoogleSearchRetrieval++; - if (buildCounterGoogleCloudAiplatformV1GoogleSearchRetrieval < 3) { - o.dynamicRetrievalConfig = - buildGoogleCloudAiplatformV1DynamicRetrievalConfig(); +core.int buildCounterGoogleCloudAiplatformV1FractionSplit = 0; +api.GoogleCloudAiplatformV1FractionSplit +buildGoogleCloudAiplatformV1FractionSplit() { + final o = api.GoogleCloudAiplatformV1FractionSplit(); + buildCounterGoogleCloudAiplatformV1FractionSplit++; + if (buildCounterGoogleCloudAiplatformV1FractionSplit < 3) { + o.testFraction = 42.0; + o.trainingFraction = 42.0; + o.validationFraction = 42.0; } - buildCounterGoogleCloudAiplatformV1GoogleSearchRetrieval--; + buildCounterGoogleCloudAiplatformV1FractionSplit--; return o; } -void checkGoogleCloudAiplatformV1GoogleSearchRetrieval( - api.GoogleCloudAiplatformV1GoogleSearchRetrieval o, +void checkGoogleCloudAiplatformV1FractionSplit( + api.GoogleCloudAiplatformV1FractionSplit o, ) { - buildCounterGoogleCloudAiplatformV1GoogleSearchRetrieval++; - if (buildCounterGoogleCloudAiplatformV1GoogleSearchRetrieval < 3) { - checkGoogleCloudAiplatformV1DynamicRetrievalConfig( - o.dynamicRetrievalConfig!, - ); + buildCounterGoogleCloudAiplatformV1FractionSplit++; + if (buildCounterGoogleCloudAiplatformV1FractionSplit < 3) { + unittest.expect(o.testFraction!, unittest.equals(42.0)); + unittest.expect(o.trainingFraction!, unittest.equals(42.0)); + unittest.expect(o.validationFraction!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1GoogleSearchRetrieval--; + buildCounterGoogleCloudAiplatformV1FractionSplit--; } -core.int buildCounterGoogleCloudAiplatformV1GroundednessInput = 0; -api.GoogleCloudAiplatformV1GroundednessInput -buildGoogleCloudAiplatformV1GroundednessInput() { - final o = api.GoogleCloudAiplatformV1GroundednessInput(); - buildCounterGoogleCloudAiplatformV1GroundednessInput++; - if (buildCounterGoogleCloudAiplatformV1GroundednessInput < 3) { - o.instance = buildGoogleCloudAiplatformV1GroundednessInstance(); - o.metricSpec = buildGoogleCloudAiplatformV1GroundednessSpec(); +core.int buildCounterGoogleCloudAiplatformV1FulfillmentInput = 0; +api.GoogleCloudAiplatformV1FulfillmentInput +buildGoogleCloudAiplatformV1FulfillmentInput() { + final o = api.GoogleCloudAiplatformV1FulfillmentInput(); + buildCounterGoogleCloudAiplatformV1FulfillmentInput++; + if (buildCounterGoogleCloudAiplatformV1FulfillmentInput < 3) { + o.instance = buildGoogleCloudAiplatformV1FulfillmentInstance(); + o.metricSpec = buildGoogleCloudAiplatformV1FulfillmentSpec(); } - buildCounterGoogleCloudAiplatformV1GroundednessInput--; + buildCounterGoogleCloudAiplatformV1FulfillmentInput--; return o; } -void checkGoogleCloudAiplatformV1GroundednessInput( - api.GoogleCloudAiplatformV1GroundednessInput o, +void checkGoogleCloudAiplatformV1FulfillmentInput( + api.GoogleCloudAiplatformV1FulfillmentInput o, ) { - buildCounterGoogleCloudAiplatformV1GroundednessInput++; - if (buildCounterGoogleCloudAiplatformV1GroundednessInput < 3) { - checkGoogleCloudAiplatformV1GroundednessInstance(o.instance!); - checkGoogleCloudAiplatformV1GroundednessSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1FulfillmentInput++; + if (buildCounterGoogleCloudAiplatformV1FulfillmentInput < 3) { + checkGoogleCloudAiplatformV1FulfillmentInstance(o.instance!); + checkGoogleCloudAiplatformV1FulfillmentSpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1GroundednessInput--; + buildCounterGoogleCloudAiplatformV1FulfillmentInput--; } -core.int buildCounterGoogleCloudAiplatformV1GroundednessInstance = 0; -api.GoogleCloudAiplatformV1GroundednessInstance -buildGoogleCloudAiplatformV1GroundednessInstance() { - final o = api.GoogleCloudAiplatformV1GroundednessInstance(); - buildCounterGoogleCloudAiplatformV1GroundednessInstance++; - if (buildCounterGoogleCloudAiplatformV1GroundednessInstance < 3) { - o.context = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1FulfillmentInstance = 0; +api.GoogleCloudAiplatformV1FulfillmentInstance +buildGoogleCloudAiplatformV1FulfillmentInstance() { + final o = api.GoogleCloudAiplatformV1FulfillmentInstance(); + buildCounterGoogleCloudAiplatformV1FulfillmentInstance++; + if (buildCounterGoogleCloudAiplatformV1FulfillmentInstance < 3) { + o.instruction = 'foo'; o.prediction = 'foo'; } - buildCounterGoogleCloudAiplatformV1GroundednessInstance--; + buildCounterGoogleCloudAiplatformV1FulfillmentInstance--; return o; } -void checkGoogleCloudAiplatformV1GroundednessInstance( - api.GoogleCloudAiplatformV1GroundednessInstance o, +void checkGoogleCloudAiplatformV1FulfillmentInstance( + api.GoogleCloudAiplatformV1FulfillmentInstance o, ) { - buildCounterGoogleCloudAiplatformV1GroundednessInstance++; - if (buildCounterGoogleCloudAiplatformV1GroundednessInstance < 3) { - unittest.expect(o.context!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FulfillmentInstance++; + if (buildCounterGoogleCloudAiplatformV1FulfillmentInstance < 3) { + unittest.expect(o.instruction!, unittest.equals('foo')); unittest.expect(o.prediction!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1GroundednessInstance--; + buildCounterGoogleCloudAiplatformV1FulfillmentInstance--; } -core.int buildCounterGoogleCloudAiplatformV1GroundednessResult = 0; -api.GoogleCloudAiplatformV1GroundednessResult -buildGoogleCloudAiplatformV1GroundednessResult() { - final o = api.GoogleCloudAiplatformV1GroundednessResult(); - buildCounterGoogleCloudAiplatformV1GroundednessResult++; - if (buildCounterGoogleCloudAiplatformV1GroundednessResult < 3) { +core.int buildCounterGoogleCloudAiplatformV1FulfillmentResult = 0; +api.GoogleCloudAiplatformV1FulfillmentResult +buildGoogleCloudAiplatformV1FulfillmentResult() { + final o = api.GoogleCloudAiplatformV1FulfillmentResult(); + buildCounterGoogleCloudAiplatformV1FulfillmentResult++; + if (buildCounterGoogleCloudAiplatformV1FulfillmentResult < 3) { o.confidence = 42.0; o.explanation = 'foo'; o.score = 42.0; } - buildCounterGoogleCloudAiplatformV1GroundednessResult--; + buildCounterGoogleCloudAiplatformV1FulfillmentResult--; return o; } -void checkGoogleCloudAiplatformV1GroundednessResult( - api.GoogleCloudAiplatformV1GroundednessResult o, +void checkGoogleCloudAiplatformV1FulfillmentResult( + api.GoogleCloudAiplatformV1FulfillmentResult o, ) { - buildCounterGoogleCloudAiplatformV1GroundednessResult++; - if (buildCounterGoogleCloudAiplatformV1GroundednessResult < 3) { + buildCounterGoogleCloudAiplatformV1FulfillmentResult++; + if (buildCounterGoogleCloudAiplatformV1FulfillmentResult < 3) { unittest.expect(o.confidence!, unittest.equals(42.0)); unittest.expect(o.explanation!, unittest.equals('foo')); unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1GroundednessResult--; + buildCounterGoogleCloudAiplatformV1FulfillmentResult--; } -core.int buildCounterGoogleCloudAiplatformV1GroundednessSpec = 0; -api.GoogleCloudAiplatformV1GroundednessSpec -buildGoogleCloudAiplatformV1GroundednessSpec() { - final o = api.GoogleCloudAiplatformV1GroundednessSpec(); - buildCounterGoogleCloudAiplatformV1GroundednessSpec++; - if (buildCounterGoogleCloudAiplatformV1GroundednessSpec < 3) { +core.int buildCounterGoogleCloudAiplatformV1FulfillmentSpec = 0; +api.GoogleCloudAiplatformV1FulfillmentSpec +buildGoogleCloudAiplatformV1FulfillmentSpec() { + final o = api.GoogleCloudAiplatformV1FulfillmentSpec(); + buildCounterGoogleCloudAiplatformV1FulfillmentSpec++; + if (buildCounterGoogleCloudAiplatformV1FulfillmentSpec < 3) { o.version = 42; } - buildCounterGoogleCloudAiplatformV1GroundednessSpec--; + buildCounterGoogleCloudAiplatformV1FulfillmentSpec--; return o; } -void checkGoogleCloudAiplatformV1GroundednessSpec( - api.GoogleCloudAiplatformV1GroundednessSpec o, +void checkGoogleCloudAiplatformV1FulfillmentSpec( + api.GoogleCloudAiplatformV1FulfillmentSpec o, ) { - buildCounterGoogleCloudAiplatformV1GroundednessSpec++; - if (buildCounterGoogleCloudAiplatformV1GroundednessSpec < 3) { + buildCounterGoogleCloudAiplatformV1FulfillmentSpec++; + if (buildCounterGoogleCloudAiplatformV1FulfillmentSpec < 3) { unittest.expect(o.version!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1GroundednessSpec--; -} - -core.int buildCounterGoogleCloudAiplatformV1GroundingChunk = 0; -api.GoogleCloudAiplatformV1GroundingChunk -buildGoogleCloudAiplatformV1GroundingChunk() { - final o = api.GoogleCloudAiplatformV1GroundingChunk(); - buildCounterGoogleCloudAiplatformV1GroundingChunk++; - if (buildCounterGoogleCloudAiplatformV1GroundingChunk < 3) { - o.maps = buildGoogleCloudAiplatformV1GroundingChunkMaps(); - o.retrievedContext = - buildGoogleCloudAiplatformV1GroundingChunkRetrievedContext(); - o.web = buildGoogleCloudAiplatformV1GroundingChunkWeb(); - } - buildCounterGoogleCloudAiplatformV1GroundingChunk--; - return o; + buildCounterGoogleCloudAiplatformV1FulfillmentSpec--; } -void checkGoogleCloudAiplatformV1GroundingChunk( - api.GoogleCloudAiplatformV1GroundingChunk o, -) { - buildCounterGoogleCloudAiplatformV1GroundingChunk++; - if (buildCounterGoogleCloudAiplatformV1GroundingChunk < 3) { - checkGoogleCloudAiplatformV1GroundingChunkMaps(o.maps!); - checkGoogleCloudAiplatformV1GroundingChunkRetrievedContext( - o.retrievedContext!, - ); - checkGoogleCloudAiplatformV1GroundingChunkWeb(o.web!); - } - buildCounterGoogleCloudAiplatformV1GroundingChunk--; +core.Map buildUnnamed157() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed157(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted53 = (o['x']!) as core.Map; + unittest.expect(casted53, unittest.hasLength(3)); + unittest.expect(casted53['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted53['bool'], unittest.equals(true)); + unittest.expect(casted53['string'], unittest.equals('foo')); + var casted54 = (o['y']!) as core.Map; + unittest.expect(casted54, unittest.hasLength(3)); + unittest.expect(casted54['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted54['bool'], unittest.equals(true)); + unittest.expect(casted54['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1GroundingChunkMaps = 0; -api.GoogleCloudAiplatformV1GroundingChunkMaps -buildGoogleCloudAiplatformV1GroundingChunkMaps() { - final o = api.GoogleCloudAiplatformV1GroundingChunkMaps(); - buildCounterGoogleCloudAiplatformV1GroundingChunkMaps++; - if (buildCounterGoogleCloudAiplatformV1GroundingChunkMaps < 3) { - o.placeAnswerSources = - buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources(); - o.placeId = 'foo'; - o.text = 'foo'; - o.title = 'foo'; - o.uri = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1FunctionCall = 0; +api.GoogleCloudAiplatformV1FunctionCall +buildGoogleCloudAiplatformV1FunctionCall() { + final o = api.GoogleCloudAiplatformV1FunctionCall(); + buildCounterGoogleCloudAiplatformV1FunctionCall++; + if (buildCounterGoogleCloudAiplatformV1FunctionCall < 3) { + o.args = buildUnnamed157(); + o.name = 'foo'; } - buildCounterGoogleCloudAiplatformV1GroundingChunkMaps--; + buildCounterGoogleCloudAiplatformV1FunctionCall--; return o; } -void checkGoogleCloudAiplatformV1GroundingChunkMaps( - api.GoogleCloudAiplatformV1GroundingChunkMaps o, +void checkGoogleCloudAiplatformV1FunctionCall( + api.GoogleCloudAiplatformV1FunctionCall o, ) { - buildCounterGoogleCloudAiplatformV1GroundingChunkMaps++; - if (buildCounterGoogleCloudAiplatformV1GroundingChunkMaps < 3) { - checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources( - o.placeAnswerSources!, - ); - unittest.expect(o.placeId!, unittest.equals('foo')); - unittest.expect(o.text!, unittest.equals('foo')); - unittest.expect(o.title!, unittest.equals('foo')); - unittest.expect(o.uri!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FunctionCall++; + if (buildCounterGoogleCloudAiplatformV1FunctionCall < 3) { + checkUnnamed157(o.args!); + unittest.expect(o.name!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1GroundingChunkMaps--; + buildCounterGoogleCloudAiplatformV1FunctionCall--; } -core.List< - api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet -> -buildUnnamed153() => [ - buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet(), - buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet(), -]; +core.List buildUnnamed158() => ['foo', 'foo']; -void checkUnnamed153( - core.List< - api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet - > - o, -) { +void checkUnnamed158(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet( - o[0], - ); - checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet( - o[1], - ); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int -buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources = 0; -api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources -buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources() { - final o = api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources(); - buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources++; - if (buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources < - 3) { - o.flagContentUri = 'foo'; - o.reviewSnippets = buildUnnamed153(); +core.int buildCounterGoogleCloudAiplatformV1FunctionCallingConfig = 0; +api.GoogleCloudAiplatformV1FunctionCallingConfig +buildGoogleCloudAiplatformV1FunctionCallingConfig() { + final o = api.GoogleCloudAiplatformV1FunctionCallingConfig(); + buildCounterGoogleCloudAiplatformV1FunctionCallingConfig++; + if (buildCounterGoogleCloudAiplatformV1FunctionCallingConfig < 3) { + o.allowedFunctionNames = buildUnnamed158(); + o.mode = 'foo'; } - buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources--; + buildCounterGoogleCloudAiplatformV1FunctionCallingConfig--; return o; } -void checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources( - api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources o, +void checkGoogleCloudAiplatformV1FunctionCallingConfig( + api.GoogleCloudAiplatformV1FunctionCallingConfig o, ) { - buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources++; - if (buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources < - 3) { - unittest.expect(o.flagContentUri!, unittest.equals('foo')); - checkUnnamed153(o.reviewSnippets!); + buildCounterGoogleCloudAiplatformV1FunctionCallingConfig++; + if (buildCounterGoogleCloudAiplatformV1FunctionCallingConfig < 3) { + checkUnnamed158(o.allowedFunctionNames!); + unittest.expect(o.mode!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources--; + buildCounterGoogleCloudAiplatformV1FunctionCallingConfig--; } -core.int -buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution = - 0; -api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution -buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution() { - final o = - api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution(); - buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution++; - if (buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution < - 3) { - o.displayName = 'foo'; - o.photoUri = 'foo'; - o.uri = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1FunctionDeclaration = 0; +api.GoogleCloudAiplatformV1FunctionDeclaration +buildGoogleCloudAiplatformV1FunctionDeclaration() { + final o = api.GoogleCloudAiplatformV1FunctionDeclaration(); + buildCounterGoogleCloudAiplatformV1FunctionDeclaration++; + if (buildCounterGoogleCloudAiplatformV1FunctionDeclaration < 3) { + o.description = 'foo'; + o.name = 'foo'; + o.parameters = buildGoogleCloudAiplatformV1Schema(); + o.parametersJsonSchema = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.response = buildGoogleCloudAiplatformV1Schema(); + o.responseJsonSchema = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; } - buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution--; + buildCounterGoogleCloudAiplatformV1FunctionDeclaration--; return o; } -void -checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution( - api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution - o, +void checkGoogleCloudAiplatformV1FunctionDeclaration( + api.GoogleCloudAiplatformV1FunctionDeclaration o, ) { - buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution++; - if (buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution < - 3) { - unittest.expect(o.displayName!, unittest.equals('foo')); - unittest.expect(o.photoUri!, unittest.equals('foo')); - unittest.expect(o.uri!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FunctionDeclaration++; + if (buildCounterGoogleCloudAiplatformV1FunctionDeclaration < 3) { + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1Schema(o.parameters!); + var casted55 = (o.parametersJsonSchema!) as core.Map; + unittest.expect(casted55, unittest.hasLength(3)); + unittest.expect(casted55['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted55['bool'], unittest.equals(true)); + unittest.expect(casted55['string'], unittest.equals('foo')); + checkGoogleCloudAiplatformV1Schema(o.response!); + var casted56 = (o.responseJsonSchema!) as core.Map; + unittest.expect(casted56, unittest.hasLength(3)); + unittest.expect(casted56['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted56['bool'], unittest.equals(true)); + unittest.expect(casted56['string'], unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution--; + buildCounterGoogleCloudAiplatformV1FunctionDeclaration--; } -core.int -buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet = - 0; -api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet -buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet() { - final o = - api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet(); - buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet++; - if (buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet < - 3) { - o.authorAttribution = - buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution(); - o.flagContentUri = 'foo'; - o.googleMapsUri = 'foo'; - o.relativePublishTimeDescription = 'foo'; - o.review = 'foo'; - } - buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet--; - return o; -} +core.Map buildUnnamed159() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; -void -checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet( - api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet - o, -) { - buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet++; - if (buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet < - 3) { - checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution( - o.authorAttribution!, - ); - unittest.expect(o.flagContentUri!, unittest.equals('foo')); - unittest.expect(o.googleMapsUri!, unittest.equals('foo')); - unittest.expect(o.relativePublishTimeDescription!, unittest.equals('foo')); - unittest.expect(o.review!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet--; +void checkUnnamed159(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted57 = (o['x']!) as core.Map; + unittest.expect(casted57, unittest.hasLength(3)); + unittest.expect(casted57['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted57['bool'], unittest.equals(true)); + unittest.expect(casted57['string'], unittest.equals('foo')); + var casted58 = (o['y']!) as core.Map; + unittest.expect(casted58, unittest.hasLength(3)); + unittest.expect(casted58['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted58['bool'], unittest.equals(true)); + unittest.expect(casted58['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1GroundingChunkRetrievedContext = 0; -api.GoogleCloudAiplatformV1GroundingChunkRetrievedContext -buildGoogleCloudAiplatformV1GroundingChunkRetrievedContext() { - final o = api.GoogleCloudAiplatformV1GroundingChunkRetrievedContext(); - buildCounterGoogleCloudAiplatformV1GroundingChunkRetrievedContext++; - if (buildCounterGoogleCloudAiplatformV1GroundingChunkRetrievedContext < 3) { - o.ragChunk = buildGoogleCloudAiplatformV1RagChunk(); - o.text = 'foo'; - o.title = 'foo'; - o.uri = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1FunctionResponse = 0; +api.GoogleCloudAiplatformV1FunctionResponse +buildGoogleCloudAiplatformV1FunctionResponse() { + final o = api.GoogleCloudAiplatformV1FunctionResponse(); + buildCounterGoogleCloudAiplatformV1FunctionResponse++; + if (buildCounterGoogleCloudAiplatformV1FunctionResponse < 3) { + o.name = 'foo'; + o.response = buildUnnamed159(); } - buildCounterGoogleCloudAiplatformV1GroundingChunkRetrievedContext--; + buildCounterGoogleCloudAiplatformV1FunctionResponse--; return o; } -void checkGoogleCloudAiplatformV1GroundingChunkRetrievedContext( - api.GoogleCloudAiplatformV1GroundingChunkRetrievedContext o, +void checkGoogleCloudAiplatformV1FunctionResponse( + api.GoogleCloudAiplatformV1FunctionResponse o, ) { - buildCounterGoogleCloudAiplatformV1GroundingChunkRetrievedContext++; - if (buildCounterGoogleCloudAiplatformV1GroundingChunkRetrievedContext < 3) { - checkGoogleCloudAiplatformV1RagChunk(o.ragChunk!); - unittest.expect(o.text!, unittest.equals('foo')); - unittest.expect(o.title!, unittest.equals('foo')); - unittest.expect(o.uri!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1FunctionResponse++; + if (buildCounterGoogleCloudAiplatformV1FunctionResponse < 3) { + unittest.expect(o.name!, unittest.equals('foo')); + checkUnnamed159(o.response!); } - buildCounterGoogleCloudAiplatformV1GroundingChunkRetrievedContext--; + buildCounterGoogleCloudAiplatformV1FunctionResponse--; } -core.int buildCounterGoogleCloudAiplatformV1GroundingChunkWeb = 0; -api.GoogleCloudAiplatformV1GroundingChunkWeb -buildGoogleCloudAiplatformV1GroundingChunkWeb() { - final o = api.GoogleCloudAiplatformV1GroundingChunkWeb(); - buildCounterGoogleCloudAiplatformV1GroundingChunkWeb++; - if (buildCounterGoogleCloudAiplatformV1GroundingChunkWeb < 3) { - o.domain = 'foo'; - o.title = 'foo'; - o.uri = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1GcsDestination = 0; +api.GoogleCloudAiplatformV1GcsDestination +buildGoogleCloudAiplatformV1GcsDestination() { + final o = api.GoogleCloudAiplatformV1GcsDestination(); + buildCounterGoogleCloudAiplatformV1GcsDestination++; + if (buildCounterGoogleCloudAiplatformV1GcsDestination < 3) { + o.outputUriPrefix = 'foo'; } - buildCounterGoogleCloudAiplatformV1GroundingChunkWeb--; + buildCounterGoogleCloudAiplatformV1GcsDestination--; return o; } -void checkGoogleCloudAiplatformV1GroundingChunkWeb( - api.GoogleCloudAiplatformV1GroundingChunkWeb o, +void checkGoogleCloudAiplatformV1GcsDestination( + api.GoogleCloudAiplatformV1GcsDestination o, ) { - buildCounterGoogleCloudAiplatformV1GroundingChunkWeb++; - if (buildCounterGoogleCloudAiplatformV1GroundingChunkWeb < 3) { - unittest.expect(o.domain!, unittest.equals('foo')); - unittest.expect(o.title!, unittest.equals('foo')); - unittest.expect(o.uri!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GcsDestination++; + if (buildCounterGoogleCloudAiplatformV1GcsDestination < 3) { + unittest.expect(o.outputUriPrefix!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1GroundingChunkWeb--; -} - -core.List buildUnnamed154() => [ - buildGoogleCloudAiplatformV1GroundingChunk(), - buildGoogleCloudAiplatformV1GroundingChunk(), -]; - -void checkUnnamed154(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1GroundingChunk(o[0]); - checkGoogleCloudAiplatformV1GroundingChunk(o[1]); -} - -core.List buildUnnamed155() => [ - buildGoogleCloudAiplatformV1GroundingSupport(), - buildGoogleCloudAiplatformV1GroundingSupport(), -]; - -void checkUnnamed155(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1GroundingSupport(o[0]); - checkGoogleCloudAiplatformV1GroundingSupport(o[1]); + buildCounterGoogleCloudAiplatformV1GcsDestination--; } -core.List buildUnnamed156() => ['foo', 'foo']; +core.List buildUnnamed160() => ['foo', 'foo']; -void checkUnnamed156(core.List o) { +void checkUnnamed160(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1GroundingMetadata = 0; -api.GoogleCloudAiplatformV1GroundingMetadata -buildGoogleCloudAiplatformV1GroundingMetadata() { - final o = api.GoogleCloudAiplatformV1GroundingMetadata(); - buildCounterGoogleCloudAiplatformV1GroundingMetadata++; - if (buildCounterGoogleCloudAiplatformV1GroundingMetadata < 3) { - o.googleMapsWidgetContextToken = 'foo'; - o.groundingChunks = buildUnnamed154(); - o.groundingSupports = buildUnnamed155(); - o.retrievalMetadata = buildGoogleCloudAiplatformV1RetrievalMetadata(); - o.searchEntryPoint = buildGoogleCloudAiplatformV1SearchEntryPoint(); - o.webSearchQueries = buildUnnamed156(); +core.int buildCounterGoogleCloudAiplatformV1GcsSource = 0; +api.GoogleCloudAiplatformV1GcsSource buildGoogleCloudAiplatformV1GcsSource() { + final o = api.GoogleCloudAiplatformV1GcsSource(); + buildCounterGoogleCloudAiplatformV1GcsSource++; + if (buildCounterGoogleCloudAiplatformV1GcsSource < 3) { + o.uris = buildUnnamed160(); } - buildCounterGoogleCloudAiplatformV1GroundingMetadata--; + buildCounterGoogleCloudAiplatformV1GcsSource--; return o; } -void checkGoogleCloudAiplatformV1GroundingMetadata( - api.GoogleCloudAiplatformV1GroundingMetadata o, +void checkGoogleCloudAiplatformV1GcsSource( + api.GoogleCloudAiplatformV1GcsSource o, ) { - buildCounterGoogleCloudAiplatformV1GroundingMetadata++; - if (buildCounterGoogleCloudAiplatformV1GroundingMetadata < 3) { - unittest.expect(o.googleMapsWidgetContextToken!, unittest.equals('foo')); - checkUnnamed154(o.groundingChunks!); - checkUnnamed155(o.groundingSupports!); - checkGoogleCloudAiplatformV1RetrievalMetadata(o.retrievalMetadata!); - checkGoogleCloudAiplatformV1SearchEntryPoint(o.searchEntryPoint!); - checkUnnamed156(o.webSearchQueries!); + buildCounterGoogleCloudAiplatformV1GcsSource++; + if (buildCounterGoogleCloudAiplatformV1GcsSource < 3) { + checkUnnamed160(o.uris!); } - buildCounterGoogleCloudAiplatformV1GroundingMetadata--; + buildCounterGoogleCloudAiplatformV1GcsSource--; } -core.List buildUnnamed157() => [42.0, 42.0]; +core.int buildCounterGoogleCloudAiplatformV1GdcConfig = 0; +api.GoogleCloudAiplatformV1GdcConfig buildGoogleCloudAiplatformV1GdcConfig() { + final o = api.GoogleCloudAiplatformV1GdcConfig(); + buildCounterGoogleCloudAiplatformV1GdcConfig++; + if (buildCounterGoogleCloudAiplatformV1GdcConfig < 3) { + o.zone = 'foo'; + } + buildCounterGoogleCloudAiplatformV1GdcConfig--; + return o; +} -void checkUnnamed157(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals(42.0)); - unittest.expect(o[1], unittest.equals(42.0)); +void checkGoogleCloudAiplatformV1GdcConfig( + api.GoogleCloudAiplatformV1GdcConfig o, +) { + buildCounterGoogleCloudAiplatformV1GdcConfig++; + if (buildCounterGoogleCloudAiplatformV1GdcConfig < 3) { + unittest.expect(o.zone!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1GdcConfig--; } -core.List buildUnnamed158() => [42, 42]; +core.int buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig = 0; +api.GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig +buildGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig() { + final o = api.GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig(); + buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig++; + if (buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig < 3) { + o.ragConfig = + buildGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig(); + } + buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig--; + return o; +} -void checkUnnamed158(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals(42)); - unittest.expect(o[1], unittest.equals(42)); +void checkGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig( + api.GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig o, +) { + buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig++; + if (buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig < 3) { + checkGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig( + o.ragConfig!, + ); + } + buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig--; } -core.int buildCounterGoogleCloudAiplatformV1GroundingSupport = 0; -api.GoogleCloudAiplatformV1GroundingSupport -buildGoogleCloudAiplatformV1GroundingSupport() { - final o = api.GoogleCloudAiplatformV1GroundingSupport(); - buildCounterGoogleCloudAiplatformV1GroundingSupport++; - if (buildCounterGoogleCloudAiplatformV1GroundingSupport < 3) { - o.confidenceScores = buildUnnamed157(); - o.groundingChunkIndices = buildUnnamed158(); - o.segment = buildGoogleCloudAiplatformV1Segment(); +core.int +buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig = 0; +api.GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig +buildGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig() { + final o = api.GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig(); + buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig++; + if (buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig < + 3) { + o.enableRag = true; } - buildCounterGoogleCloudAiplatformV1GroundingSupport--; + buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig--; return o; } -void checkGoogleCloudAiplatformV1GroundingSupport( - api.GoogleCloudAiplatformV1GroundingSupport o, +void checkGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig( + api.GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig o, ) { - buildCounterGoogleCloudAiplatformV1GroundingSupport++; - if (buildCounterGoogleCloudAiplatformV1GroundingSupport < 3) { - checkUnnamed157(o.confidenceScores!); - checkUnnamed158(o.groundingChunkIndices!); - checkGoogleCloudAiplatformV1Segment(o.segment!); + buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig++; + if (buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig < + 3) { + unittest.expect(o.enableRag!, unittest.isTrue); } - buildCounterGoogleCloudAiplatformV1GroundingSupport--; + buildCounterGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig--; +} + +core.List buildUnnamed161() => [ + buildGoogleCloudAiplatformV1Content(), + buildGoogleCloudAiplatformV1Content(), +]; + +void checkUnnamed161(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Content(o[0]); + checkGoogleCloudAiplatformV1Content(o[1]); } -core.Map buildUnnamed159() => { +core.Map buildUnnamed162() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed159(core.Map o) { +void checkUnnamed162(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed160() => [ - buildGoogleCloudAiplatformV1Trial(), - buildGoogleCloudAiplatformV1Trial(), +core.List buildUnnamed163() => [ + buildGoogleCloudAiplatformV1SafetySetting(), + buildGoogleCloudAiplatformV1SafetySetting(), ]; -void checkUnnamed160(core.List o) { +void checkUnnamed163(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Trial(o[0]); - checkGoogleCloudAiplatformV1Trial(o[1]); + checkGoogleCloudAiplatformV1SafetySetting(o[0]); + checkGoogleCloudAiplatformV1SafetySetting(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1HyperparameterTuningJob = 0; -api.GoogleCloudAiplatformV1HyperparameterTuningJob -buildGoogleCloudAiplatformV1HyperparameterTuningJob() { - final o = api.GoogleCloudAiplatformV1HyperparameterTuningJob(); - buildCounterGoogleCloudAiplatformV1HyperparameterTuningJob++; - if (buildCounterGoogleCloudAiplatformV1HyperparameterTuningJob < 3) { - o.createTime = 'foo'; - o.displayName = 'foo'; - o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.endTime = 'foo'; - o.error = buildGoogleRpcStatus(); - o.labels = buildUnnamed159(); - o.maxFailedTrialCount = 42; - o.maxTrialCount = 42; - o.name = 'foo'; - o.parallelTrialCount = 42; - o.satisfiesPzi = true; - o.satisfiesPzs = true; - o.startTime = 'foo'; - o.state = 'foo'; - o.studySpec = buildGoogleCloudAiplatformV1StudySpec(); - o.trialJobSpec = buildGoogleCloudAiplatformV1CustomJobSpec(); - o.trials = buildUnnamed160(); - o.updateTime = 'foo'; +core.List buildUnnamed164() => [ + buildGoogleCloudAiplatformV1Tool(), + buildGoogleCloudAiplatformV1Tool(), +]; + +void checkUnnamed164(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Tool(o[0]); + checkGoogleCloudAiplatformV1Tool(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1GenerateContentRequest = 0; +api.GoogleCloudAiplatformV1GenerateContentRequest +buildGoogleCloudAiplatformV1GenerateContentRequest() { + final o = api.GoogleCloudAiplatformV1GenerateContentRequest(); + buildCounterGoogleCloudAiplatformV1GenerateContentRequest++; + if (buildCounterGoogleCloudAiplatformV1GenerateContentRequest < 3) { + o.cachedContent = 'foo'; + o.contents = buildUnnamed161(); + o.generationConfig = buildGoogleCloudAiplatformV1GenerationConfig(); + o.labels = buildUnnamed162(); + o.modelArmorConfig = buildGoogleCloudAiplatformV1ModelArmorConfig(); + o.safetySettings = buildUnnamed163(); + o.systemInstruction = buildGoogleCloudAiplatformV1Content(); + o.toolConfig = buildGoogleCloudAiplatformV1ToolConfig(); + o.tools = buildUnnamed164(); } - buildCounterGoogleCloudAiplatformV1HyperparameterTuningJob--; + buildCounterGoogleCloudAiplatformV1GenerateContentRequest--; return o; } -void checkGoogleCloudAiplatformV1HyperparameterTuningJob( - api.GoogleCloudAiplatformV1HyperparameterTuningJob o, +void checkGoogleCloudAiplatformV1GenerateContentRequest( + api.GoogleCloudAiplatformV1GenerateContentRequest o, ) { - buildCounterGoogleCloudAiplatformV1HyperparameterTuningJob++; - if (buildCounterGoogleCloudAiplatformV1HyperparameterTuningJob < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.endTime!, unittest.equals('foo')); - checkGoogleRpcStatus(o.error!); - checkUnnamed159(o.labels!); - unittest.expect(o.maxFailedTrialCount!, unittest.equals(42)); - unittest.expect(o.maxTrialCount!, unittest.equals(42)); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.parallelTrialCount!, unittest.equals(42)); - unittest.expect(o.satisfiesPzi!, unittest.isTrue); - unittest.expect(o.satisfiesPzs!, unittest.isTrue); - unittest.expect(o.startTime!, unittest.equals('foo')); - unittest.expect(o.state!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1StudySpec(o.studySpec!); - checkGoogleCloudAiplatformV1CustomJobSpec(o.trialJobSpec!); - checkUnnamed160(o.trials!); - unittest.expect(o.updateTime!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GenerateContentRequest++; + if (buildCounterGoogleCloudAiplatformV1GenerateContentRequest < 3) { + unittest.expect(o.cachedContent!, unittest.equals('foo')); + checkUnnamed161(o.contents!); + checkGoogleCloudAiplatformV1GenerationConfig(o.generationConfig!); + checkUnnamed162(o.labels!); + checkGoogleCloudAiplatformV1ModelArmorConfig(o.modelArmorConfig!); + checkUnnamed163(o.safetySettings!); + checkGoogleCloudAiplatformV1Content(o.systemInstruction!); + checkGoogleCloudAiplatformV1ToolConfig(o.toolConfig!); + checkUnnamed164(o.tools!); } - buildCounterGoogleCloudAiplatformV1HyperparameterTuningJob--; + buildCounterGoogleCloudAiplatformV1GenerateContentRequest--; } -core.List buildUnnamed161() => ['foo', 'foo']; +core.List buildUnnamed165() => [ + buildGoogleCloudAiplatformV1Candidate(), + buildGoogleCloudAiplatformV1Candidate(), +]; -void checkUnnamed161(core.List o) { +void checkUnnamed165(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1Candidate(o[0]); + checkGoogleCloudAiplatformV1Candidate(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1IdMatcher = 0; -api.GoogleCloudAiplatformV1IdMatcher buildGoogleCloudAiplatformV1IdMatcher() { - final o = api.GoogleCloudAiplatformV1IdMatcher(); - buildCounterGoogleCloudAiplatformV1IdMatcher++; - if (buildCounterGoogleCloudAiplatformV1IdMatcher < 3) { - o.ids = buildUnnamed161(); - } - buildCounterGoogleCloudAiplatformV1IdMatcher--; - return o; +core.int buildCounterGoogleCloudAiplatformV1GenerateContentResponse = 0; +api.GoogleCloudAiplatformV1GenerateContentResponse +buildGoogleCloudAiplatformV1GenerateContentResponse() { + final o = api.GoogleCloudAiplatformV1GenerateContentResponse(); + buildCounterGoogleCloudAiplatformV1GenerateContentResponse++; + if (buildCounterGoogleCloudAiplatformV1GenerateContentResponse < 3) { + o.candidates = buildUnnamed165(); + o.createTime = 'foo'; + o.modelVersion = 'foo'; + o.promptFeedback = + buildGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback(); + o.responseId = 'foo'; + o.usageMetadata = + buildGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata(); + } + buildCounterGoogleCloudAiplatformV1GenerateContentResponse--; + return o; } -void checkGoogleCloudAiplatformV1IdMatcher( - api.GoogleCloudAiplatformV1IdMatcher o, +void checkGoogleCloudAiplatformV1GenerateContentResponse( + api.GoogleCloudAiplatformV1GenerateContentResponse o, ) { - buildCounterGoogleCloudAiplatformV1IdMatcher++; - if (buildCounterGoogleCloudAiplatformV1IdMatcher < 3) { - checkUnnamed161(o.ids!); + buildCounterGoogleCloudAiplatformV1GenerateContentResponse++; + if (buildCounterGoogleCloudAiplatformV1GenerateContentResponse < 3) { + checkUnnamed165(o.candidates!); + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.modelVersion!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback( + o.promptFeedback!, + ); + unittest.expect(o.responseId!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata( + o.usageMetadata!, + ); } - buildCounterGoogleCloudAiplatformV1IdMatcher--; -} - -core.Map buildUnnamed162() => { - 'x': 'foo', - 'y': 'foo', -}; - -void checkUnnamed162(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GenerateContentResponse--; } -core.Map buildUnnamed163() => { - 'x': 'foo', - 'y': 'foo', -}; +core.List buildUnnamed166() => [ + buildGoogleCloudAiplatformV1SafetyRating(), + buildGoogleCloudAiplatformV1SafetyRating(), +]; -void checkUnnamed163(core.Map o) { +void checkUnnamed166(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1SafetyRating(o[0]); + checkGoogleCloudAiplatformV1SafetyRating(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ImportDataConfig = 0; -api.GoogleCloudAiplatformV1ImportDataConfig -buildGoogleCloudAiplatformV1ImportDataConfig() { - final o = api.GoogleCloudAiplatformV1ImportDataConfig(); - buildCounterGoogleCloudAiplatformV1ImportDataConfig++; - if (buildCounterGoogleCloudAiplatformV1ImportDataConfig < 3) { - o.annotationLabels = buildUnnamed162(); - o.dataItemLabels = buildUnnamed163(); - o.gcsSource = buildGoogleCloudAiplatformV1GcsSource(); - o.importSchemaUri = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback = 0; +api.GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback +buildGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback() { + final o = api.GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback(); + buildCounterGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback++; + if (buildCounterGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback < + 3) { + o.blockReason = 'foo'; + o.blockReasonMessage = 'foo'; + o.safetyRatings = buildUnnamed166(); } - buildCounterGoogleCloudAiplatformV1ImportDataConfig--; + buildCounterGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback--; return o; } -void checkGoogleCloudAiplatformV1ImportDataConfig( - api.GoogleCloudAiplatformV1ImportDataConfig o, +void checkGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback( + api.GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback o, ) { - buildCounterGoogleCloudAiplatformV1ImportDataConfig++; - if (buildCounterGoogleCloudAiplatformV1ImportDataConfig < 3) { - checkUnnamed162(o.annotationLabels!); - checkUnnamed163(o.dataItemLabels!); - checkGoogleCloudAiplatformV1GcsSource(o.gcsSource!); - unittest.expect(o.importSchemaUri!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback++; + if (buildCounterGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback < + 3) { + unittest.expect(o.blockReason!, unittest.equals('foo')); + unittest.expect(o.blockReasonMessage!, unittest.equals('foo')); + checkUnnamed166(o.safetyRatings!); } - buildCounterGoogleCloudAiplatformV1ImportDataConfig--; + buildCounterGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback--; } -core.List buildUnnamed164() => [ - buildGoogleCloudAiplatformV1ImportDataConfig(), - buildGoogleCloudAiplatformV1ImportDataConfig(), +core.List buildUnnamed167() => [ + buildGoogleCloudAiplatformV1ModalityTokenCount(), + buildGoogleCloudAiplatformV1ModalityTokenCount(), ]; -void checkUnnamed164(core.List o) { +void checkUnnamed167( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ImportDataConfig(o[0]); - checkGoogleCloudAiplatformV1ImportDataConfig(o[1]); + checkGoogleCloudAiplatformV1ModalityTokenCount(o[0]); + checkGoogleCloudAiplatformV1ModalityTokenCount(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ImportDataRequest = 0; -api.GoogleCloudAiplatformV1ImportDataRequest -buildGoogleCloudAiplatformV1ImportDataRequest() { - final o = api.GoogleCloudAiplatformV1ImportDataRequest(); - buildCounterGoogleCloudAiplatformV1ImportDataRequest++; - if (buildCounterGoogleCloudAiplatformV1ImportDataRequest < 3) { - o.importConfigs = buildUnnamed164(); - } - buildCounterGoogleCloudAiplatformV1ImportDataRequest--; - return o; -} +core.List buildUnnamed168() => [ + buildGoogleCloudAiplatformV1ModalityTokenCount(), + buildGoogleCloudAiplatformV1ModalityTokenCount(), +]; -void checkGoogleCloudAiplatformV1ImportDataRequest( - api.GoogleCloudAiplatformV1ImportDataRequest o, +void checkUnnamed168( + core.List o, ) { - buildCounterGoogleCloudAiplatformV1ImportDataRequest++; - if (buildCounterGoogleCloudAiplatformV1ImportDataRequest < 3) { - checkUnnamed164(o.importConfigs!); - } - buildCounterGoogleCloudAiplatformV1ImportDataRequest--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ModalityTokenCount(o[0]); + checkGoogleCloudAiplatformV1ModalityTokenCount(o[1]); } -core.List -buildUnnamed165() => [ - buildGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec(), - buildGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec(), +core.List buildUnnamed169() => [ + buildGoogleCloudAiplatformV1ModalityTokenCount(), + buildGoogleCloudAiplatformV1ModalityTokenCount(), ]; -void checkUnnamed165( - core.List o, +void checkUnnamed169( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec(o[0]); - checkGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec(o[1]); + checkGoogleCloudAiplatformV1ModalityTokenCount(o[0]); + checkGoogleCloudAiplatformV1ModalityTokenCount(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequest = 0; -api.GoogleCloudAiplatformV1ImportFeatureValuesRequest -buildGoogleCloudAiplatformV1ImportFeatureValuesRequest() { - final o = api.GoogleCloudAiplatformV1ImportFeatureValuesRequest(); - buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequest++; - if (buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequest < 3) { - o.avroSource = buildGoogleCloudAiplatformV1AvroSource(); - o.bigquerySource = buildGoogleCloudAiplatformV1BigQuerySource(); - o.csvSource = buildGoogleCloudAiplatformV1CsvSource(); - o.disableIngestionAnalysis = true; - o.disableOnlineServing = true; - o.entityIdField = 'foo'; - o.featureSpecs = buildUnnamed165(); - o.featureTime = 'foo'; - o.featureTimeField = 'foo'; - o.workerCount = 42; - } - buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequest--; - return o; -} +core.List buildUnnamed170() => [ + buildGoogleCloudAiplatformV1ModalityTokenCount(), + buildGoogleCloudAiplatformV1ModalityTokenCount(), +]; -void checkGoogleCloudAiplatformV1ImportFeatureValuesRequest( - api.GoogleCloudAiplatformV1ImportFeatureValuesRequest o, +void checkUnnamed170( + core.List o, ) { - buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequest++; - if (buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequest < 3) { - checkGoogleCloudAiplatformV1AvroSource(o.avroSource!); - checkGoogleCloudAiplatformV1BigQuerySource(o.bigquerySource!); - checkGoogleCloudAiplatformV1CsvSource(o.csvSource!); - unittest.expect(o.disableIngestionAnalysis!, unittest.isTrue); - unittest.expect(o.disableOnlineServing!, unittest.isTrue); - unittest.expect(o.entityIdField!, unittest.equals('foo')); - checkUnnamed165(o.featureSpecs!); - unittest.expect(o.featureTime!, unittest.equals('foo')); - unittest.expect(o.featureTimeField!, unittest.equals('foo')); - unittest.expect(o.workerCount!, unittest.equals(42)); - } - buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequest--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ModalityTokenCount(o[0]); + checkGoogleCloudAiplatformV1ModalityTokenCount(o[1]); } core.int -buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec = 0; -api.GoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec -buildGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec() { - final o = api.GoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec(); - buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec++; - if (buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec < +buildCounterGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata = 0; +api.GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata +buildGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata() { + final o = api.GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata(); + buildCounterGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata++; + if (buildCounterGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata < 3) { - o.id = 'foo'; - o.sourceField = 'foo'; + o.cacheTokensDetails = buildUnnamed167(); + o.cachedContentTokenCount = 42; + o.candidatesTokenCount = 42; + o.candidatesTokensDetails = buildUnnamed168(); + o.promptTokenCount = 42; + o.promptTokensDetails = buildUnnamed169(); + o.thoughtsTokenCount = 42; + o.toolUsePromptTokenCount = 42; + o.toolUsePromptTokensDetails = buildUnnamed170(); + o.totalTokenCount = 42; + o.trafficType = 'foo'; } - buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec--; + buildCounterGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata--; return o; } -void checkGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec( - api.GoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec o, +void checkGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata( + api.GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata o, ) { - buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec++; - if (buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec < + buildCounterGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata++; + if (buildCounterGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata < 3) { - unittest.expect(o.id!, unittest.equals('foo')); - unittest.expect(o.sourceField!, unittest.equals('foo')); + checkUnnamed167(o.cacheTokensDetails!); + unittest.expect(o.cachedContentTokenCount!, unittest.equals(42)); + unittest.expect(o.candidatesTokenCount!, unittest.equals(42)); + checkUnnamed168(o.candidatesTokensDetails!); + unittest.expect(o.promptTokenCount!, unittest.equals(42)); + checkUnnamed169(o.promptTokensDetails!); + unittest.expect(o.thoughtsTokenCount!, unittest.equals(42)); + unittest.expect(o.toolUsePromptTokenCount!, unittest.equals(42)); + checkUnnamed170(o.toolUsePromptTokensDetails!); + unittest.expect(o.totalTokenCount!, unittest.equals(42)); + unittest.expect(o.trafficType!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec--; + buildCounterGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata--; } -core.int buildCounterGoogleCloudAiplatformV1ImportModelEvaluationRequest = 0; -api.GoogleCloudAiplatformV1ImportModelEvaluationRequest -buildGoogleCloudAiplatformV1ImportModelEvaluationRequest() { - final o = api.GoogleCloudAiplatformV1ImportModelEvaluationRequest(); - buildCounterGoogleCloudAiplatformV1ImportModelEvaluationRequest++; - if (buildCounterGoogleCloudAiplatformV1ImportModelEvaluationRequest < 3) { - o.modelEvaluation = buildGoogleCloudAiplatformV1ModelEvaluation(); - } - buildCounterGoogleCloudAiplatformV1ImportModelEvaluationRequest--; - return o; -} +core.List buildUnnamed171() => [ + buildGoogleCloudAiplatformV1Content(), + buildGoogleCloudAiplatformV1Content(), +]; -void checkGoogleCloudAiplatformV1ImportModelEvaluationRequest( - api.GoogleCloudAiplatformV1ImportModelEvaluationRequest o, -) { - buildCounterGoogleCloudAiplatformV1ImportModelEvaluationRequest++; - if (buildCounterGoogleCloudAiplatformV1ImportModelEvaluationRequest < 3) { - checkGoogleCloudAiplatformV1ModelEvaluation(o.modelEvaluation!); - } - buildCounterGoogleCloudAiplatformV1ImportModelEvaluationRequest--; +void checkUnnamed171(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Content(o[0]); + checkGoogleCloudAiplatformV1Content(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ImportRagFilesConfig = 0; -api.GoogleCloudAiplatformV1ImportRagFilesConfig -buildGoogleCloudAiplatformV1ImportRagFilesConfig() { - final o = api.GoogleCloudAiplatformV1ImportRagFilesConfig(); - buildCounterGoogleCloudAiplatformV1ImportRagFilesConfig++; - if (buildCounterGoogleCloudAiplatformV1ImportRagFilesConfig < 3) { - o.gcsSource = buildGoogleCloudAiplatformV1GcsSource(); - o.googleDriveSource = buildGoogleCloudAiplatformV1GoogleDriveSource(); - o.importResultBigquerySink = - buildGoogleCloudAiplatformV1BigQueryDestination(); - o.importResultGcsSink = buildGoogleCloudAiplatformV1GcsDestination(); - o.jiraSource = buildGoogleCloudAiplatformV1JiraSource(); - o.maxEmbeddingRequestsPerMin = 42; - o.partialFailureBigquerySink = - buildGoogleCloudAiplatformV1BigQueryDestination(); - o.partialFailureGcsSink = buildGoogleCloudAiplatformV1GcsDestination(); - o.ragFileParsingConfig = buildGoogleCloudAiplatformV1RagFileParsingConfig(); - o.ragFileTransformationConfig = - buildGoogleCloudAiplatformV1RagFileTransformationConfig(); - o.rebuildAnnIndex = true; - o.sharePointSources = buildGoogleCloudAiplatformV1SharePointSources(); - o.slackSource = buildGoogleCloudAiplatformV1SlackSource(); +core.int buildCounterGoogleCloudAiplatformV1GenerateInstanceRubricsRequest = 0; +api.GoogleCloudAiplatformV1GenerateInstanceRubricsRequest +buildGoogleCloudAiplatformV1GenerateInstanceRubricsRequest() { + final o = api.GoogleCloudAiplatformV1GenerateInstanceRubricsRequest(); + buildCounterGoogleCloudAiplatformV1GenerateInstanceRubricsRequest++; + if (buildCounterGoogleCloudAiplatformV1GenerateInstanceRubricsRequest < 3) { + o.contents = buildUnnamed171(); + o.predefinedRubricGenerationSpec = + buildGoogleCloudAiplatformV1PredefinedMetricSpec(); + o.rubricGenerationSpec = buildGoogleCloudAiplatformV1RubricGenerationSpec(); } - buildCounterGoogleCloudAiplatformV1ImportRagFilesConfig--; + buildCounterGoogleCloudAiplatformV1GenerateInstanceRubricsRequest--; return o; } -void checkGoogleCloudAiplatformV1ImportRagFilesConfig( - api.GoogleCloudAiplatformV1ImportRagFilesConfig o, +void checkGoogleCloudAiplatformV1GenerateInstanceRubricsRequest( + api.GoogleCloudAiplatformV1GenerateInstanceRubricsRequest o, ) { - buildCounterGoogleCloudAiplatformV1ImportRagFilesConfig++; - if (buildCounterGoogleCloudAiplatformV1ImportRagFilesConfig < 3) { - checkGoogleCloudAiplatformV1GcsSource(o.gcsSource!); - checkGoogleCloudAiplatformV1GoogleDriveSource(o.googleDriveSource!); - checkGoogleCloudAiplatformV1BigQueryDestination( - o.importResultBigquerySink!, - ); - checkGoogleCloudAiplatformV1GcsDestination(o.importResultGcsSink!); - checkGoogleCloudAiplatformV1JiraSource(o.jiraSource!); - unittest.expect(o.maxEmbeddingRequestsPerMin!, unittest.equals(42)); - checkGoogleCloudAiplatformV1BigQueryDestination( - o.partialFailureBigquerySink!, - ); - checkGoogleCloudAiplatformV1GcsDestination(o.partialFailureGcsSink!); - checkGoogleCloudAiplatformV1RagFileParsingConfig(o.ragFileParsingConfig!); - checkGoogleCloudAiplatformV1RagFileTransformationConfig( - o.ragFileTransformationConfig!, + buildCounterGoogleCloudAiplatformV1GenerateInstanceRubricsRequest++; + if (buildCounterGoogleCloudAiplatformV1GenerateInstanceRubricsRequest < 3) { + checkUnnamed171(o.contents!); + checkGoogleCloudAiplatformV1PredefinedMetricSpec( + o.predefinedRubricGenerationSpec!, ); - unittest.expect(o.rebuildAnnIndex!, unittest.isTrue); - checkGoogleCloudAiplatformV1SharePointSources(o.sharePointSources!); - checkGoogleCloudAiplatformV1SlackSource(o.slackSource!); - } - buildCounterGoogleCloudAiplatformV1ImportRagFilesConfig--; -} - -core.int buildCounterGoogleCloudAiplatformV1ImportRagFilesRequest = 0; -api.GoogleCloudAiplatformV1ImportRagFilesRequest -buildGoogleCloudAiplatformV1ImportRagFilesRequest() { - final o = api.GoogleCloudAiplatformV1ImportRagFilesRequest(); - buildCounterGoogleCloudAiplatformV1ImportRagFilesRequest++; - if (buildCounterGoogleCloudAiplatformV1ImportRagFilesRequest < 3) { - o.importRagFilesConfig = buildGoogleCloudAiplatformV1ImportRagFilesConfig(); - } - buildCounterGoogleCloudAiplatformV1ImportRagFilesRequest--; - return o; -} - -void checkGoogleCloudAiplatformV1ImportRagFilesRequest( - api.GoogleCloudAiplatformV1ImportRagFilesRequest o, -) { - buildCounterGoogleCloudAiplatformV1ImportRagFilesRequest++; - if (buildCounterGoogleCloudAiplatformV1ImportRagFilesRequest < 3) { - checkGoogleCloudAiplatformV1ImportRagFilesConfig(o.importRagFilesConfig!); + checkGoogleCloudAiplatformV1RubricGenerationSpec(o.rubricGenerationSpec!); } - buildCounterGoogleCloudAiplatformV1ImportRagFilesRequest--; + buildCounterGoogleCloudAiplatformV1GenerateInstanceRubricsRequest--; } -core.List buildUnnamed166() => [ - buildGoogleCloudAiplatformV1DeployedIndexRef(), - buildGoogleCloudAiplatformV1DeployedIndexRef(), +core.List buildUnnamed172() => [ + buildGoogleCloudAiplatformV1Rubric(), + buildGoogleCloudAiplatformV1Rubric(), ]; -void checkUnnamed166(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1DeployedIndexRef(o[0]); - checkGoogleCloudAiplatformV1DeployedIndexRef(o[1]); -} - -core.Map buildUnnamed167() => { - 'x': 'foo', - 'y': 'foo', -}; - -void checkUnnamed167(core.Map o) { +void checkUnnamed172(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1Rubric(o[0]); + checkGoogleCloudAiplatformV1Rubric(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1Index = 0; -api.GoogleCloudAiplatformV1Index buildGoogleCloudAiplatformV1Index() { - final o = api.GoogleCloudAiplatformV1Index(); - buildCounterGoogleCloudAiplatformV1Index++; - if (buildCounterGoogleCloudAiplatformV1Index < 3) { - o.createTime = 'foo'; - o.deployedIndexes = buildUnnamed166(); - o.description = 'foo'; - o.displayName = 'foo'; - o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.etag = 'foo'; - o.indexStats = buildGoogleCloudAiplatformV1IndexStats(); - o.indexUpdateMethod = 'foo'; - o.labels = buildUnnamed167(); - o.metadata = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - o.metadataSchemaUri = 'foo'; - o.name = 'foo'; - o.satisfiesPzi = true; - o.satisfiesPzs = true; - o.updateTime = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1GenerateInstanceRubricsResponse = 0; +api.GoogleCloudAiplatformV1GenerateInstanceRubricsResponse +buildGoogleCloudAiplatformV1GenerateInstanceRubricsResponse() { + final o = api.GoogleCloudAiplatformV1GenerateInstanceRubricsResponse(); + buildCounterGoogleCloudAiplatformV1GenerateInstanceRubricsResponse++; + if (buildCounterGoogleCloudAiplatformV1GenerateInstanceRubricsResponse < 3) { + o.generatedRubrics = buildUnnamed172(); } - buildCounterGoogleCloudAiplatformV1Index--; + buildCounterGoogleCloudAiplatformV1GenerateInstanceRubricsResponse--; return o; } -void checkGoogleCloudAiplatformV1Index(api.GoogleCloudAiplatformV1Index o) { - buildCounterGoogleCloudAiplatformV1Index++; - if (buildCounterGoogleCloudAiplatformV1Index < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - checkUnnamed166(o.deployedIndexes!); - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.etag!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1IndexStats(o.indexStats!); - unittest.expect(o.indexUpdateMethod!, unittest.equals('foo')); - checkUnnamed167(o.labels!); - var casted49 = (o.metadata!) as core.Map; - unittest.expect(casted49, unittest.hasLength(3)); - unittest.expect(casted49['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted49['bool'], unittest.equals(true)); - unittest.expect(casted49['string'], unittest.equals('foo')); - unittest.expect(o.metadataSchemaUri!, unittest.equals('foo')); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.satisfiesPzi!, unittest.isTrue); - unittest.expect(o.satisfiesPzs!, unittest.isTrue); - unittest.expect(o.updateTime!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1GenerateInstanceRubricsResponse( + api.GoogleCloudAiplatformV1GenerateInstanceRubricsResponse o, +) { + buildCounterGoogleCloudAiplatformV1GenerateInstanceRubricsResponse++; + if (buildCounterGoogleCloudAiplatformV1GenerateInstanceRubricsResponse < 3) { + checkUnnamed172(o.generatedRubrics!); } - buildCounterGoogleCloudAiplatformV1Index--; -} - -core.Map buildUnnamed168() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; - -void checkUnnamed168(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - var casted50 = (o['x']!) as core.Map; - unittest.expect(casted50, unittest.hasLength(3)); - unittest.expect(casted50['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted50['bool'], unittest.equals(true)); - unittest.expect(casted50['string'], unittest.equals('foo')); - var casted51 = (o['y']!) as core.Map; - unittest.expect(casted51, unittest.hasLength(3)); - unittest.expect(casted51['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted51['bool'], unittest.equals(true)); - unittest.expect(casted51['string'], unittest.equals('foo')); -} - -core.List buildUnnamed169() => [42.0, 42.0]; - -void checkUnnamed169(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals(42.0)); - unittest.expect(o[1], unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1GenerateInstanceRubricsResponse--; } -core.List -buildUnnamed170() => [ - buildGoogleCloudAiplatformV1IndexDatapointNumericRestriction(), - buildGoogleCloudAiplatformV1IndexDatapointNumericRestriction(), +core.List buildUnnamed173() => [ + buildGoogleCloudAiplatformV1SyntheticExample(), + buildGoogleCloudAiplatformV1SyntheticExample(), ]; -void checkUnnamed170( - core.List o, -) { +void checkUnnamed173(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1IndexDatapointNumericRestriction(o[0]); - checkGoogleCloudAiplatformV1IndexDatapointNumericRestriction(o[1]); + checkGoogleCloudAiplatformV1SyntheticExample(o[0]); + checkGoogleCloudAiplatformV1SyntheticExample(o[1]); } -core.List -buildUnnamed171() => [ - buildGoogleCloudAiplatformV1IndexDatapointRestriction(), - buildGoogleCloudAiplatformV1IndexDatapointRestriction(), +core.List buildUnnamed174() => [ + buildGoogleCloudAiplatformV1OutputFieldSpec(), + buildGoogleCloudAiplatformV1OutputFieldSpec(), ]; -void checkUnnamed171( - core.List o, -) { +void checkUnnamed174(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1IndexDatapointRestriction(o[0]); - checkGoogleCloudAiplatformV1IndexDatapointRestriction(o[1]); + checkGoogleCloudAiplatformV1OutputFieldSpec(o[0]); + checkGoogleCloudAiplatformV1OutputFieldSpec(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1IndexDatapoint = 0; -api.GoogleCloudAiplatformV1IndexDatapoint -buildGoogleCloudAiplatformV1IndexDatapoint() { - final o = api.GoogleCloudAiplatformV1IndexDatapoint(); - buildCounterGoogleCloudAiplatformV1IndexDatapoint++; - if (buildCounterGoogleCloudAiplatformV1IndexDatapoint < 3) { - o.crowdingTag = buildGoogleCloudAiplatformV1IndexDatapointCrowdingTag(); - o.datapointId = 'foo'; - o.embeddingMetadata = buildUnnamed168(); - o.featureVector = buildUnnamed169(); - o.numericRestricts = buildUnnamed170(); - o.restricts = buildUnnamed171(); - o.sparseEmbedding = - buildGoogleCloudAiplatformV1IndexDatapointSparseEmbedding(); +core.int buildCounterGoogleCloudAiplatformV1GenerateSyntheticDataRequest = 0; +api.GoogleCloudAiplatformV1GenerateSyntheticDataRequest +buildGoogleCloudAiplatformV1GenerateSyntheticDataRequest() { + final o = api.GoogleCloudAiplatformV1GenerateSyntheticDataRequest(); + buildCounterGoogleCloudAiplatformV1GenerateSyntheticDataRequest++; + if (buildCounterGoogleCloudAiplatformV1GenerateSyntheticDataRequest < 3) { + o.count = 42; + o.examples = buildUnnamed173(); + o.outputFieldSpecs = buildUnnamed174(); + o.taskDescription = buildGoogleCloudAiplatformV1TaskDescriptionStrategy(); } - buildCounterGoogleCloudAiplatformV1IndexDatapoint--; + buildCounterGoogleCloudAiplatformV1GenerateSyntheticDataRequest--; return o; } -void checkGoogleCloudAiplatformV1IndexDatapoint( - api.GoogleCloudAiplatformV1IndexDatapoint o, +void checkGoogleCloudAiplatformV1GenerateSyntheticDataRequest( + api.GoogleCloudAiplatformV1GenerateSyntheticDataRequest o, ) { - buildCounterGoogleCloudAiplatformV1IndexDatapoint++; - if (buildCounterGoogleCloudAiplatformV1IndexDatapoint < 3) { - checkGoogleCloudAiplatformV1IndexDatapointCrowdingTag(o.crowdingTag!); - unittest.expect(o.datapointId!, unittest.equals('foo')); - checkUnnamed168(o.embeddingMetadata!); - checkUnnamed169(o.featureVector!); - checkUnnamed170(o.numericRestricts!); - checkUnnamed171(o.restricts!); - checkGoogleCloudAiplatformV1IndexDatapointSparseEmbedding( - o.sparseEmbedding!, - ); + buildCounterGoogleCloudAiplatformV1GenerateSyntheticDataRequest++; + if (buildCounterGoogleCloudAiplatformV1GenerateSyntheticDataRequest < 3) { + unittest.expect(o.count!, unittest.equals(42)); + checkUnnamed173(o.examples!); + checkUnnamed174(o.outputFieldSpecs!); + checkGoogleCloudAiplatformV1TaskDescriptionStrategy(o.taskDescription!); } - buildCounterGoogleCloudAiplatformV1IndexDatapoint--; + buildCounterGoogleCloudAiplatformV1GenerateSyntheticDataRequest--; } -core.int buildCounterGoogleCloudAiplatformV1IndexDatapointCrowdingTag = 0; -api.GoogleCloudAiplatformV1IndexDatapointCrowdingTag -buildGoogleCloudAiplatformV1IndexDatapointCrowdingTag() { - final o = api.GoogleCloudAiplatformV1IndexDatapointCrowdingTag(); - buildCounterGoogleCloudAiplatformV1IndexDatapointCrowdingTag++; - if (buildCounterGoogleCloudAiplatformV1IndexDatapointCrowdingTag < 3) { - o.crowdingAttribute = 'foo'; - } - buildCounterGoogleCloudAiplatformV1IndexDatapointCrowdingTag--; - return o; -} +core.List buildUnnamed175() => [ + buildGoogleCloudAiplatformV1SyntheticExample(), + buildGoogleCloudAiplatformV1SyntheticExample(), +]; -void checkGoogleCloudAiplatformV1IndexDatapointCrowdingTag( - api.GoogleCloudAiplatformV1IndexDatapointCrowdingTag o, -) { - buildCounterGoogleCloudAiplatformV1IndexDatapointCrowdingTag++; - if (buildCounterGoogleCloudAiplatformV1IndexDatapointCrowdingTag < 3) { - unittest.expect(o.crowdingAttribute!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1IndexDatapointCrowdingTag--; +void checkUnnamed175(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1SyntheticExample(o[0]); + checkGoogleCloudAiplatformV1SyntheticExample(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1IndexDatapointNumericRestriction = - 0; -api.GoogleCloudAiplatformV1IndexDatapointNumericRestriction -buildGoogleCloudAiplatformV1IndexDatapointNumericRestriction() { - final o = api.GoogleCloudAiplatformV1IndexDatapointNumericRestriction(); - buildCounterGoogleCloudAiplatformV1IndexDatapointNumericRestriction++; - if (buildCounterGoogleCloudAiplatformV1IndexDatapointNumericRestriction < 3) { - o.namespace = 'foo'; - o.op = 'foo'; - o.valueDouble = 42.0; - o.valueFloat = 42.0; - o.valueInt = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1GenerateSyntheticDataResponse = 0; +api.GoogleCloudAiplatformV1GenerateSyntheticDataResponse +buildGoogleCloudAiplatformV1GenerateSyntheticDataResponse() { + final o = api.GoogleCloudAiplatformV1GenerateSyntheticDataResponse(); + buildCounterGoogleCloudAiplatformV1GenerateSyntheticDataResponse++; + if (buildCounterGoogleCloudAiplatformV1GenerateSyntheticDataResponse < 3) { + o.syntheticExamples = buildUnnamed175(); } - buildCounterGoogleCloudAiplatformV1IndexDatapointNumericRestriction--; + buildCounterGoogleCloudAiplatformV1GenerateSyntheticDataResponse--; return o; } -void checkGoogleCloudAiplatformV1IndexDatapointNumericRestriction( - api.GoogleCloudAiplatformV1IndexDatapointNumericRestriction o, +void checkGoogleCloudAiplatformV1GenerateSyntheticDataResponse( + api.GoogleCloudAiplatformV1GenerateSyntheticDataResponse o, ) { - buildCounterGoogleCloudAiplatformV1IndexDatapointNumericRestriction++; - if (buildCounterGoogleCloudAiplatformV1IndexDatapointNumericRestriction < 3) { - unittest.expect(o.namespace!, unittest.equals('foo')); - unittest.expect(o.op!, unittest.equals('foo')); - unittest.expect(o.valueDouble!, unittest.equals(42.0)); - unittest.expect(o.valueFloat!, unittest.equals(42.0)); - unittest.expect(o.valueInt!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GenerateSyntheticDataResponse++; + if (buildCounterGoogleCloudAiplatformV1GenerateSyntheticDataResponse < 3) { + checkUnnamed175(o.syntheticExamples!); } - buildCounterGoogleCloudAiplatformV1IndexDatapointNumericRestriction--; + buildCounterGoogleCloudAiplatformV1GenerateSyntheticDataResponse--; } -core.List buildUnnamed172() => ['foo', 'foo']; +core.List buildUnnamed176() => ['foo', 'foo']; -void checkUnnamed172(core.List o) { +void checkUnnamed176(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed173() => ['foo', 'foo']; +core.List buildUnnamed177() => ['foo', 'foo']; -void checkUnnamed173(core.List o) { +void checkUnnamed177(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1IndexDatapointRestriction = 0; -api.GoogleCloudAiplatformV1IndexDatapointRestriction -buildGoogleCloudAiplatformV1IndexDatapointRestriction() { - final o = api.GoogleCloudAiplatformV1IndexDatapointRestriction(); - buildCounterGoogleCloudAiplatformV1IndexDatapointRestriction++; - if (buildCounterGoogleCloudAiplatformV1IndexDatapointRestriction < 3) { - o.allowList = buildUnnamed172(); - o.denyList = buildUnnamed173(); - o.namespace = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1GenerationConfig = 0; +api.GoogleCloudAiplatformV1GenerationConfig +buildGoogleCloudAiplatformV1GenerationConfig() { + final o = api.GoogleCloudAiplatformV1GenerationConfig(); + buildCounterGoogleCloudAiplatformV1GenerationConfig++; + if (buildCounterGoogleCloudAiplatformV1GenerationConfig < 3) { + o.audioTimestamp = true; + o.candidateCount = 42; + o.enableAffectiveDialog = true; + o.frequencyPenalty = 42.0; + o.logprobs = 42; + o.maxOutputTokens = 42; + o.mediaResolution = 'foo'; + o.presencePenalty = 42.0; + o.responseJsonSchema = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.responseLogprobs = true; + o.responseMimeType = 'foo'; + o.responseModalities = buildUnnamed176(); + o.responseSchema = buildGoogleCloudAiplatformV1Schema(); + o.routingConfig = + buildGoogleCloudAiplatformV1GenerationConfigRoutingConfig(); + o.seed = 42; + o.speechConfig = buildGoogleCloudAiplatformV1SpeechConfig(); + o.stopSequences = buildUnnamed177(); + o.temperature = 42.0; + o.thinkingConfig = + buildGoogleCloudAiplatformV1GenerationConfigThinkingConfig(); + o.topK = 42.0; + o.topP = 42.0; } - buildCounterGoogleCloudAiplatformV1IndexDatapointRestriction--; + buildCounterGoogleCloudAiplatformV1GenerationConfig--; return o; } -void checkGoogleCloudAiplatformV1IndexDatapointRestriction( - api.GoogleCloudAiplatformV1IndexDatapointRestriction o, +void checkGoogleCloudAiplatformV1GenerationConfig( + api.GoogleCloudAiplatformV1GenerationConfig o, ) { - buildCounterGoogleCloudAiplatformV1IndexDatapointRestriction++; - if (buildCounterGoogleCloudAiplatformV1IndexDatapointRestriction < 3) { - checkUnnamed172(o.allowList!); - checkUnnamed173(o.denyList!); - unittest.expect(o.namespace!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GenerationConfig++; + if (buildCounterGoogleCloudAiplatformV1GenerationConfig < 3) { + unittest.expect(o.audioTimestamp!, unittest.isTrue); + unittest.expect(o.candidateCount!, unittest.equals(42)); + unittest.expect(o.enableAffectiveDialog!, unittest.isTrue); + unittest.expect(o.frequencyPenalty!, unittest.equals(42.0)); + unittest.expect(o.logprobs!, unittest.equals(42)); + unittest.expect(o.maxOutputTokens!, unittest.equals(42)); + unittest.expect(o.mediaResolution!, unittest.equals('foo')); + unittest.expect(o.presencePenalty!, unittest.equals(42.0)); + var casted59 = (o.responseJsonSchema!) as core.Map; + unittest.expect(casted59, unittest.hasLength(3)); + unittest.expect(casted59['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted59['bool'], unittest.equals(true)); + unittest.expect(casted59['string'], unittest.equals('foo')); + unittest.expect(o.responseLogprobs!, unittest.isTrue); + unittest.expect(o.responseMimeType!, unittest.equals('foo')); + checkUnnamed176(o.responseModalities!); + checkGoogleCloudAiplatformV1Schema(o.responseSchema!); + checkGoogleCloudAiplatformV1GenerationConfigRoutingConfig(o.routingConfig!); + unittest.expect(o.seed!, unittest.equals(42)); + checkGoogleCloudAiplatformV1SpeechConfig(o.speechConfig!); + checkUnnamed177(o.stopSequences!); + unittest.expect(o.temperature!, unittest.equals(42.0)); + checkGoogleCloudAiplatformV1GenerationConfigThinkingConfig( + o.thinkingConfig!, + ); + unittest.expect(o.topK!, unittest.equals(42.0)); + unittest.expect(o.topP!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1IndexDatapointRestriction--; + buildCounterGoogleCloudAiplatformV1GenerationConfig--; } -core.List buildUnnamed174() => ['foo', 'foo']; - -void checkUnnamed174(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +core.int buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfig = 0; +api.GoogleCloudAiplatformV1GenerationConfigRoutingConfig +buildGoogleCloudAiplatformV1GenerationConfigRoutingConfig() { + final o = api.GoogleCloudAiplatformV1GenerationConfigRoutingConfig(); + buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfig++; + if (buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfig < 3) { + o.autoMode = + buildGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode(); + o.manualMode = + buildGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode(); + } + buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfig--; + return o; } -core.List buildUnnamed175() => [42.0, 42.0]; - -void checkUnnamed175(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals(42.0)); - unittest.expect(o[1], unittest.equals(42.0)); +void checkGoogleCloudAiplatformV1GenerationConfigRoutingConfig( + api.GoogleCloudAiplatformV1GenerationConfigRoutingConfig o, +) { + buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfig++; + if (buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfig < 3) { + checkGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode( + o.autoMode!, + ); + checkGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode( + o.manualMode!, + ); + } + buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfig--; } -core.int buildCounterGoogleCloudAiplatformV1IndexDatapointSparseEmbedding = 0; -api.GoogleCloudAiplatformV1IndexDatapointSparseEmbedding -buildGoogleCloudAiplatformV1IndexDatapointSparseEmbedding() { - final o = api.GoogleCloudAiplatformV1IndexDatapointSparseEmbedding(); - buildCounterGoogleCloudAiplatformV1IndexDatapointSparseEmbedding++; - if (buildCounterGoogleCloudAiplatformV1IndexDatapointSparseEmbedding < 3) { - o.dimensions = buildUnnamed174(); - o.values = buildUnnamed175(); +core.int +buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode = + 0; +api.GoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode +buildGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode() { + final o = + api.GoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode(); + buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode++; + if (buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode < + 3) { + o.modelRoutingPreference = 'foo'; } - buildCounterGoogleCloudAiplatformV1IndexDatapointSparseEmbedding--; + buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode--; return o; } -void checkGoogleCloudAiplatformV1IndexDatapointSparseEmbedding( - api.GoogleCloudAiplatformV1IndexDatapointSparseEmbedding o, +void checkGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode( + api.GoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode o, ) { - buildCounterGoogleCloudAiplatformV1IndexDatapointSparseEmbedding++; - if (buildCounterGoogleCloudAiplatformV1IndexDatapointSparseEmbedding < 3) { - checkUnnamed174(o.dimensions!); - checkUnnamed175(o.values!); + buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode++; + if (buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode < + 3) { + unittest.expect(o.modelRoutingPreference!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1IndexDatapointSparseEmbedding--; + buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode--; } -core.List buildUnnamed176() => [ - buildGoogleCloudAiplatformV1DeployedIndex(), - buildGoogleCloudAiplatformV1DeployedIndex(), -]; +core.int +buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode = + 0; +api.GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode +buildGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode() { + final o = + api.GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode(); + buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode++; + if (buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode < + 3) { + o.modelName = 'foo'; + } + buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode--; + return o; +} -void checkUnnamed176(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1DeployedIndex(o[0]); - checkGoogleCloudAiplatformV1DeployedIndex(o[1]); +void checkGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode( + api.GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode o, +) { + buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode++; + if (buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode < + 3) { + unittest.expect(o.modelName!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode--; } -core.Map buildUnnamed177() => { - 'x': 'foo', - 'y': 'foo', -}; +core.int buildCounterGoogleCloudAiplatformV1GenerationConfigThinkingConfig = 0; +api.GoogleCloudAiplatformV1GenerationConfigThinkingConfig +buildGoogleCloudAiplatformV1GenerationConfigThinkingConfig() { + final o = api.GoogleCloudAiplatformV1GenerationConfigThinkingConfig(); + buildCounterGoogleCloudAiplatformV1GenerationConfigThinkingConfig++; + if (buildCounterGoogleCloudAiplatformV1GenerationConfigThinkingConfig < 3) { + o.includeThoughts = true; + o.thinkingBudget = 42; + } + buildCounterGoogleCloudAiplatformV1GenerationConfigThinkingConfig--; + return o; +} -void checkUnnamed177(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1GenerationConfigThinkingConfig( + api.GoogleCloudAiplatformV1GenerationConfigThinkingConfig o, +) { + buildCounterGoogleCloudAiplatformV1GenerationConfigThinkingConfig++; + if (buildCounterGoogleCloudAiplatformV1GenerationConfigThinkingConfig < 3) { + unittest.expect(o.includeThoughts!, unittest.isTrue); + unittest.expect(o.thinkingBudget!, unittest.equals(42)); + } + buildCounterGoogleCloudAiplatformV1GenerationConfigThinkingConfig--; } -core.int buildCounterGoogleCloudAiplatformV1IndexEndpoint = 0; -api.GoogleCloudAiplatformV1IndexEndpoint -buildGoogleCloudAiplatformV1IndexEndpoint() { - final o = api.GoogleCloudAiplatformV1IndexEndpoint(); - buildCounterGoogleCloudAiplatformV1IndexEndpoint++; - if (buildCounterGoogleCloudAiplatformV1IndexEndpoint < 3) { - o.createTime = 'foo'; - o.deployedIndexes = buildUnnamed176(); - o.description = 'foo'; - o.displayName = 'foo'; - o.enablePrivateServiceConnect = true; - o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.etag = 'foo'; - o.labels = buildUnnamed177(); - o.name = 'foo'; - o.network = 'foo'; - o.privateServiceConnectConfig = - buildGoogleCloudAiplatformV1PrivateServiceConnectConfig(); - o.publicEndpointDomainName = 'foo'; - o.publicEndpointEnabled = true; - o.satisfiesPzi = true; - o.satisfiesPzs = true; - o.updateTime = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1GenieSource = 0; +api.GoogleCloudAiplatformV1GenieSource +buildGoogleCloudAiplatformV1GenieSource() { + final o = api.GoogleCloudAiplatformV1GenieSource(); + buildCounterGoogleCloudAiplatformV1GenieSource++; + if (buildCounterGoogleCloudAiplatformV1GenieSource < 3) { + o.baseModelUri = 'foo'; } - buildCounterGoogleCloudAiplatformV1IndexEndpoint--; + buildCounterGoogleCloudAiplatformV1GenieSource--; return o; } -void checkGoogleCloudAiplatformV1IndexEndpoint( - api.GoogleCloudAiplatformV1IndexEndpoint o, +void checkGoogleCloudAiplatformV1GenieSource( + api.GoogleCloudAiplatformV1GenieSource o, ) { - buildCounterGoogleCloudAiplatformV1IndexEndpoint++; - if (buildCounterGoogleCloudAiplatformV1IndexEndpoint < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - checkUnnamed176(o.deployedIndexes!); - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - unittest.expect(o.enablePrivateServiceConnect!, unittest.isTrue); - checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed177(o.labels!); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.network!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1PrivateServiceConnectConfig( - o.privateServiceConnectConfig!, - ); - unittest.expect(o.publicEndpointDomainName!, unittest.equals('foo')); - unittest.expect(o.publicEndpointEnabled!, unittest.isTrue); - unittest.expect(o.satisfiesPzi!, unittest.isTrue); - unittest.expect(o.satisfiesPzs!, unittest.isTrue); - unittest.expect(o.updateTime!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GenieSource++; + if (buildCounterGoogleCloudAiplatformV1GenieSource < 3) { + unittest.expect(o.baseModelUri!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1IndexEndpoint--; + buildCounterGoogleCloudAiplatformV1GenieSource--; } -core.List buildUnnamed178() => - [ - buildGoogleCloudAiplatformV1PscAutomatedEndpoints(), - buildGoogleCloudAiplatformV1PscAutomatedEndpoints(), - ]; +core.List +buildUnnamed178() => [ + buildGoogleCloudAiplatformV1GoogleDriveSourceResourceId(), + buildGoogleCloudAiplatformV1GoogleDriveSourceResourceId(), +]; void checkUnnamed178( - core.List o, + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1PscAutomatedEndpoints(o[0]); - checkGoogleCloudAiplatformV1PscAutomatedEndpoints(o[1]); + checkGoogleCloudAiplatformV1GoogleDriveSourceResourceId(o[0]); + checkGoogleCloudAiplatformV1GoogleDriveSourceResourceId(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1IndexPrivateEndpoints = 0; -api.GoogleCloudAiplatformV1IndexPrivateEndpoints -buildGoogleCloudAiplatformV1IndexPrivateEndpoints() { - final o = api.GoogleCloudAiplatformV1IndexPrivateEndpoints(); - buildCounterGoogleCloudAiplatformV1IndexPrivateEndpoints++; - if (buildCounterGoogleCloudAiplatformV1IndexPrivateEndpoints < 3) { - o.matchGrpcAddress = 'foo'; - o.pscAutomatedEndpoints = buildUnnamed178(); - o.serviceAttachment = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1GoogleDriveSource = 0; +api.GoogleCloudAiplatformV1GoogleDriveSource +buildGoogleCloudAiplatformV1GoogleDriveSource() { + final o = api.GoogleCloudAiplatformV1GoogleDriveSource(); + buildCounterGoogleCloudAiplatformV1GoogleDriveSource++; + if (buildCounterGoogleCloudAiplatformV1GoogleDriveSource < 3) { + o.resourceIds = buildUnnamed178(); } - buildCounterGoogleCloudAiplatformV1IndexPrivateEndpoints--; + buildCounterGoogleCloudAiplatformV1GoogleDriveSource--; return o; } -void checkGoogleCloudAiplatformV1IndexPrivateEndpoints( - api.GoogleCloudAiplatformV1IndexPrivateEndpoints o, +void checkGoogleCloudAiplatformV1GoogleDriveSource( + api.GoogleCloudAiplatformV1GoogleDriveSource o, ) { - buildCounterGoogleCloudAiplatformV1IndexPrivateEndpoints++; - if (buildCounterGoogleCloudAiplatformV1IndexPrivateEndpoints < 3) { - unittest.expect(o.matchGrpcAddress!, unittest.equals('foo')); - checkUnnamed178(o.pscAutomatedEndpoints!); - unittest.expect(o.serviceAttachment!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GoogleDriveSource++; + if (buildCounterGoogleCloudAiplatformV1GoogleDriveSource < 3) { + checkUnnamed178(o.resourceIds!); } - buildCounterGoogleCloudAiplatformV1IndexPrivateEndpoints--; + buildCounterGoogleCloudAiplatformV1GoogleDriveSource--; } -core.int buildCounterGoogleCloudAiplatformV1IndexStats = 0; -api.GoogleCloudAiplatformV1IndexStats buildGoogleCloudAiplatformV1IndexStats() { - final o = api.GoogleCloudAiplatformV1IndexStats(); - buildCounterGoogleCloudAiplatformV1IndexStats++; - if (buildCounterGoogleCloudAiplatformV1IndexStats < 3) { - o.shardsCount = 42; - o.sparseVectorsCount = 'foo'; - o.vectorsCount = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1GoogleDriveSourceResourceId = 0; +api.GoogleCloudAiplatformV1GoogleDriveSourceResourceId +buildGoogleCloudAiplatformV1GoogleDriveSourceResourceId() { + final o = api.GoogleCloudAiplatformV1GoogleDriveSourceResourceId(); + buildCounterGoogleCloudAiplatformV1GoogleDriveSourceResourceId++; + if (buildCounterGoogleCloudAiplatformV1GoogleDriveSourceResourceId < 3) { + o.resourceId = 'foo'; + o.resourceType = 'foo'; } - buildCounterGoogleCloudAiplatformV1IndexStats--; + buildCounterGoogleCloudAiplatformV1GoogleDriveSourceResourceId--; return o; } -void checkGoogleCloudAiplatformV1IndexStats( - api.GoogleCloudAiplatformV1IndexStats o, +void checkGoogleCloudAiplatformV1GoogleDriveSourceResourceId( + api.GoogleCloudAiplatformV1GoogleDriveSourceResourceId o, ) { - buildCounterGoogleCloudAiplatformV1IndexStats++; - if (buildCounterGoogleCloudAiplatformV1IndexStats < 3) { - unittest.expect(o.shardsCount!, unittest.equals(42)); - unittest.expect(o.sparseVectorsCount!, unittest.equals('foo')); - unittest.expect(o.vectorsCount!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GoogleDriveSourceResourceId++; + if (buildCounterGoogleCloudAiplatformV1GoogleDriveSourceResourceId < 3) { + unittest.expect(o.resourceId!, unittest.equals('foo')); + unittest.expect(o.resourceType!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1IndexStats--; + buildCounterGoogleCloudAiplatformV1GoogleDriveSourceResourceId--; } -core.int buildCounterGoogleCloudAiplatformV1InputDataConfig = 0; -api.GoogleCloudAiplatformV1InputDataConfig -buildGoogleCloudAiplatformV1InputDataConfig() { - final o = api.GoogleCloudAiplatformV1InputDataConfig(); - buildCounterGoogleCloudAiplatformV1InputDataConfig++; - if (buildCounterGoogleCloudAiplatformV1InputDataConfig < 3) { - o.annotationSchemaUri = 'foo'; - o.annotationsFilter = 'foo'; - o.bigqueryDestination = buildGoogleCloudAiplatformV1BigQueryDestination(); - o.datasetId = 'foo'; - o.filterSplit = buildGoogleCloudAiplatformV1FilterSplit(); - o.fractionSplit = buildGoogleCloudAiplatformV1FractionSplit(); - o.gcsDestination = buildGoogleCloudAiplatformV1GcsDestination(); - o.persistMlUseAssignment = true; - o.predefinedSplit = buildGoogleCloudAiplatformV1PredefinedSplit(); - o.savedQueryId = 'foo'; - o.stratifiedSplit = buildGoogleCloudAiplatformV1StratifiedSplit(); - o.timestampSplit = buildGoogleCloudAiplatformV1TimestampSplit(); +core.int buildCounterGoogleCloudAiplatformV1GoogleMaps = 0; +api.GoogleCloudAiplatformV1GoogleMaps buildGoogleCloudAiplatformV1GoogleMaps() { + final o = api.GoogleCloudAiplatformV1GoogleMaps(); + buildCounterGoogleCloudAiplatformV1GoogleMaps++; + if (buildCounterGoogleCloudAiplatformV1GoogleMaps < 3) { + o.enableWidget = true; } - buildCounterGoogleCloudAiplatformV1InputDataConfig--; + buildCounterGoogleCloudAiplatformV1GoogleMaps--; return o; } -void checkGoogleCloudAiplatformV1InputDataConfig( - api.GoogleCloudAiplatformV1InputDataConfig o, +void checkGoogleCloudAiplatformV1GoogleMaps( + api.GoogleCloudAiplatformV1GoogleMaps o, ) { - buildCounterGoogleCloudAiplatformV1InputDataConfig++; - if (buildCounterGoogleCloudAiplatformV1InputDataConfig < 3) { - unittest.expect(o.annotationSchemaUri!, unittest.equals('foo')); - unittest.expect(o.annotationsFilter!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1BigQueryDestination(o.bigqueryDestination!); - unittest.expect(o.datasetId!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FilterSplit(o.filterSplit!); - checkGoogleCloudAiplatformV1FractionSplit(o.fractionSplit!); - checkGoogleCloudAiplatformV1GcsDestination(o.gcsDestination!); - unittest.expect(o.persistMlUseAssignment!, unittest.isTrue); - checkGoogleCloudAiplatformV1PredefinedSplit(o.predefinedSplit!); - unittest.expect(o.savedQueryId!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1StratifiedSplit(o.stratifiedSplit!); - checkGoogleCloudAiplatformV1TimestampSplit(o.timestampSplit!); + buildCounterGoogleCloudAiplatformV1GoogleMaps++; + if (buildCounterGoogleCloudAiplatformV1GoogleMaps < 3) { + unittest.expect(o.enableWidget!, unittest.isTrue); } - buildCounterGoogleCloudAiplatformV1InputDataConfig--; -} - -core.List buildUnnamed179() => ['foo', 'foo']; - -void checkUnnamed179(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GoogleMaps--; } -core.int buildCounterGoogleCloudAiplatformV1Int64Array = 0; -api.GoogleCloudAiplatformV1Int64Array buildGoogleCloudAiplatformV1Int64Array() { - final o = api.GoogleCloudAiplatformV1Int64Array(); - buildCounterGoogleCloudAiplatformV1Int64Array++; - if (buildCounterGoogleCloudAiplatformV1Int64Array < 3) { - o.values = buildUnnamed179(); +core.int buildCounterGoogleCloudAiplatformV1GoogleSearchRetrieval = 0; +api.GoogleCloudAiplatformV1GoogleSearchRetrieval +buildGoogleCloudAiplatformV1GoogleSearchRetrieval() { + final o = api.GoogleCloudAiplatformV1GoogleSearchRetrieval(); + buildCounterGoogleCloudAiplatformV1GoogleSearchRetrieval++; + if (buildCounterGoogleCloudAiplatformV1GoogleSearchRetrieval < 3) { + o.dynamicRetrievalConfig = + buildGoogleCloudAiplatformV1DynamicRetrievalConfig(); } - buildCounterGoogleCloudAiplatformV1Int64Array--; + buildCounterGoogleCloudAiplatformV1GoogleSearchRetrieval--; return o; } -void checkGoogleCloudAiplatformV1Int64Array( - api.GoogleCloudAiplatformV1Int64Array o, +void checkGoogleCloudAiplatformV1GoogleSearchRetrieval( + api.GoogleCloudAiplatformV1GoogleSearchRetrieval o, ) { - buildCounterGoogleCloudAiplatformV1Int64Array++; - if (buildCounterGoogleCloudAiplatformV1Int64Array < 3) { - checkUnnamed179(o.values!); + buildCounterGoogleCloudAiplatformV1GoogleSearchRetrieval++; + if (buildCounterGoogleCloudAiplatformV1GoogleSearchRetrieval < 3) { + checkGoogleCloudAiplatformV1DynamicRetrievalConfig( + o.dynamicRetrievalConfig!, + ); } - buildCounterGoogleCloudAiplatformV1Int64Array--; + buildCounterGoogleCloudAiplatformV1GoogleSearchRetrieval--; } -core.int buildCounterGoogleCloudAiplatformV1IntegratedGradientsAttribution = 0; -api.GoogleCloudAiplatformV1IntegratedGradientsAttribution -buildGoogleCloudAiplatformV1IntegratedGradientsAttribution() { - final o = api.GoogleCloudAiplatformV1IntegratedGradientsAttribution(); - buildCounterGoogleCloudAiplatformV1IntegratedGradientsAttribution++; - if (buildCounterGoogleCloudAiplatformV1IntegratedGradientsAttribution < 3) { - o.blurBaselineConfig = buildGoogleCloudAiplatformV1BlurBaselineConfig(); - o.smoothGradConfig = buildGoogleCloudAiplatformV1SmoothGradConfig(); - o.stepCount = 42; +core.int buildCounterGoogleCloudAiplatformV1GroundednessInput = 0; +api.GoogleCloudAiplatformV1GroundednessInput +buildGoogleCloudAiplatformV1GroundednessInput() { + final o = api.GoogleCloudAiplatformV1GroundednessInput(); + buildCounterGoogleCloudAiplatformV1GroundednessInput++; + if (buildCounterGoogleCloudAiplatformV1GroundednessInput < 3) { + o.instance = buildGoogleCloudAiplatformV1GroundednessInstance(); + o.metricSpec = buildGoogleCloudAiplatformV1GroundednessSpec(); } - buildCounterGoogleCloudAiplatformV1IntegratedGradientsAttribution--; + buildCounterGoogleCloudAiplatformV1GroundednessInput--; return o; } -void checkGoogleCloudAiplatformV1IntegratedGradientsAttribution( - api.GoogleCloudAiplatformV1IntegratedGradientsAttribution o, +void checkGoogleCloudAiplatformV1GroundednessInput( + api.GoogleCloudAiplatformV1GroundednessInput o, ) { - buildCounterGoogleCloudAiplatformV1IntegratedGradientsAttribution++; - if (buildCounterGoogleCloudAiplatformV1IntegratedGradientsAttribution < 3) { - checkGoogleCloudAiplatformV1BlurBaselineConfig(o.blurBaselineConfig!); - checkGoogleCloudAiplatformV1SmoothGradConfig(o.smoothGradConfig!); - unittest.expect(o.stepCount!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1GroundednessInput++; + if (buildCounterGoogleCloudAiplatformV1GroundednessInput < 3) { + checkGoogleCloudAiplatformV1GroundednessInstance(o.instance!); + checkGoogleCloudAiplatformV1GroundednessSpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1IntegratedGradientsAttribution--; -} - -core.List buildUnnamed180() => - [ - buildGoogleCloudAiplatformV1JiraSourceJiraQueries(), - buildGoogleCloudAiplatformV1JiraSourceJiraQueries(), - ]; - -void checkUnnamed180( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1JiraSourceJiraQueries(o[0]); - checkGoogleCloudAiplatformV1JiraSourceJiraQueries(o[1]); + buildCounterGoogleCloudAiplatformV1GroundednessInput--; } -core.int buildCounterGoogleCloudAiplatformV1JiraSource = 0; -api.GoogleCloudAiplatformV1JiraSource buildGoogleCloudAiplatformV1JiraSource() { - final o = api.GoogleCloudAiplatformV1JiraSource(); - buildCounterGoogleCloudAiplatformV1JiraSource++; - if (buildCounterGoogleCloudAiplatformV1JiraSource < 3) { - o.jiraQueries = buildUnnamed180(); +core.int buildCounterGoogleCloudAiplatformV1GroundednessInstance = 0; +api.GoogleCloudAiplatformV1GroundednessInstance +buildGoogleCloudAiplatformV1GroundednessInstance() { + final o = api.GoogleCloudAiplatformV1GroundednessInstance(); + buildCounterGoogleCloudAiplatformV1GroundednessInstance++; + if (buildCounterGoogleCloudAiplatformV1GroundednessInstance < 3) { + o.context = 'foo'; + o.prediction = 'foo'; } - buildCounterGoogleCloudAiplatformV1JiraSource--; + buildCounterGoogleCloudAiplatformV1GroundednessInstance--; return o; } -void checkGoogleCloudAiplatformV1JiraSource( - api.GoogleCloudAiplatformV1JiraSource o, +void checkGoogleCloudAiplatformV1GroundednessInstance( + api.GoogleCloudAiplatformV1GroundednessInstance o, ) { - buildCounterGoogleCloudAiplatformV1JiraSource++; - if (buildCounterGoogleCloudAiplatformV1JiraSource < 3) { - checkUnnamed180(o.jiraQueries!); + buildCounterGoogleCloudAiplatformV1GroundednessInstance++; + if (buildCounterGoogleCloudAiplatformV1GroundednessInstance < 3) { + unittest.expect(o.context!, unittest.equals('foo')); + unittest.expect(o.prediction!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1JiraSource--; -} - -core.List buildUnnamed181() => ['foo', 'foo']; - -void checkUnnamed181(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.List buildUnnamed182() => ['foo', 'foo']; - -void checkUnnamed182(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GroundednessInstance--; } -core.int buildCounterGoogleCloudAiplatformV1JiraSourceJiraQueries = 0; -api.GoogleCloudAiplatformV1JiraSourceJiraQueries -buildGoogleCloudAiplatformV1JiraSourceJiraQueries() { - final o = api.GoogleCloudAiplatformV1JiraSourceJiraQueries(); - buildCounterGoogleCloudAiplatformV1JiraSourceJiraQueries++; - if (buildCounterGoogleCloudAiplatformV1JiraSourceJiraQueries < 3) { - o.apiKeyConfig = buildGoogleCloudAiplatformV1ApiAuthApiKeyConfig(); - o.customQueries = buildUnnamed181(); - o.email = 'foo'; - o.projects = buildUnnamed182(); - o.serverUri = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1GroundednessResult = 0; +api.GoogleCloudAiplatformV1GroundednessResult +buildGoogleCloudAiplatformV1GroundednessResult() { + final o = api.GoogleCloudAiplatformV1GroundednessResult(); + buildCounterGoogleCloudAiplatformV1GroundednessResult++; + if (buildCounterGoogleCloudAiplatformV1GroundednessResult < 3) { + o.confidence = 42.0; + o.explanation = 'foo'; + o.score = 42.0; } - buildCounterGoogleCloudAiplatformV1JiraSourceJiraQueries--; + buildCounterGoogleCloudAiplatformV1GroundednessResult--; return o; } -void checkGoogleCloudAiplatformV1JiraSourceJiraQueries( - api.GoogleCloudAiplatformV1JiraSourceJiraQueries o, +void checkGoogleCloudAiplatformV1GroundednessResult( + api.GoogleCloudAiplatformV1GroundednessResult o, ) { - buildCounterGoogleCloudAiplatformV1JiraSourceJiraQueries++; - if (buildCounterGoogleCloudAiplatformV1JiraSourceJiraQueries < 3) { - checkGoogleCloudAiplatformV1ApiAuthApiKeyConfig(o.apiKeyConfig!); - checkUnnamed181(o.customQueries!); - unittest.expect(o.email!, unittest.equals('foo')); - checkUnnamed182(o.projects!); - unittest.expect(o.serverUri!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GroundednessResult++; + if (buildCounterGoogleCloudAiplatformV1GroundednessResult < 3) { + unittest.expect(o.confidence!, unittest.equals(42.0)); + unittest.expect(o.explanation!, unittest.equals('foo')); + unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1JiraSourceJiraQueries--; + buildCounterGoogleCloudAiplatformV1GroundednessResult--; } -core.int buildCounterGoogleCloudAiplatformV1LargeModelReference = 0; -api.GoogleCloudAiplatformV1LargeModelReference -buildGoogleCloudAiplatformV1LargeModelReference() { - final o = api.GoogleCloudAiplatformV1LargeModelReference(); - buildCounterGoogleCloudAiplatformV1LargeModelReference++; - if (buildCounterGoogleCloudAiplatformV1LargeModelReference < 3) { - o.name = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1GroundednessSpec = 0; +api.GoogleCloudAiplatformV1GroundednessSpec +buildGoogleCloudAiplatformV1GroundednessSpec() { + final o = api.GoogleCloudAiplatformV1GroundednessSpec(); + buildCounterGoogleCloudAiplatformV1GroundednessSpec++; + if (buildCounterGoogleCloudAiplatformV1GroundednessSpec < 3) { + o.version = 42; } - buildCounterGoogleCloudAiplatformV1LargeModelReference--; + buildCounterGoogleCloudAiplatformV1GroundednessSpec--; return o; } -void checkGoogleCloudAiplatformV1LargeModelReference( - api.GoogleCloudAiplatformV1LargeModelReference o, +void checkGoogleCloudAiplatformV1GroundednessSpec( + api.GoogleCloudAiplatformV1GroundednessSpec o, ) { - buildCounterGoogleCloudAiplatformV1LargeModelReference++; - if (buildCounterGoogleCloudAiplatformV1LargeModelReference < 3) { - unittest.expect(o.name!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GroundednessSpec++; + if (buildCounterGoogleCloudAiplatformV1GroundednessSpec < 3) { + unittest.expect(o.version!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1LargeModelReference--; -} - -core.List buildUnnamed183() => [ - buildGoogleCloudAiplatformV1Artifact(), - buildGoogleCloudAiplatformV1Artifact(), -]; - -void checkUnnamed183(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Artifact(o[0]); - checkGoogleCloudAiplatformV1Artifact(o[1]); + buildCounterGoogleCloudAiplatformV1GroundednessSpec--; } -core.List buildUnnamed184() => [ - buildGoogleCloudAiplatformV1Event(), - buildGoogleCloudAiplatformV1Event(), -]; - -void checkUnnamed184(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Event(o[0]); - checkGoogleCloudAiplatformV1Event(o[1]); +core.int buildCounterGoogleCloudAiplatformV1GroundingChunk = 0; +api.GoogleCloudAiplatformV1GroundingChunk +buildGoogleCloudAiplatformV1GroundingChunk() { + final o = api.GoogleCloudAiplatformV1GroundingChunk(); + buildCounterGoogleCloudAiplatformV1GroundingChunk++; + if (buildCounterGoogleCloudAiplatformV1GroundingChunk < 3) { + o.maps = buildGoogleCloudAiplatformV1GroundingChunkMaps(); + o.retrievedContext = + buildGoogleCloudAiplatformV1GroundingChunkRetrievedContext(); + o.web = buildGoogleCloudAiplatformV1GroundingChunkWeb(); + } + buildCounterGoogleCloudAiplatformV1GroundingChunk--; + return o; } -core.List buildUnnamed185() => [ - buildGoogleCloudAiplatformV1Execution(), - buildGoogleCloudAiplatformV1Execution(), -]; - -void checkUnnamed185(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Execution(o[0]); - checkGoogleCloudAiplatformV1Execution(o[1]); +void checkGoogleCloudAiplatformV1GroundingChunk( + api.GoogleCloudAiplatformV1GroundingChunk o, +) { + buildCounterGoogleCloudAiplatformV1GroundingChunk++; + if (buildCounterGoogleCloudAiplatformV1GroundingChunk < 3) { + checkGoogleCloudAiplatformV1GroundingChunkMaps(o.maps!); + checkGoogleCloudAiplatformV1GroundingChunkRetrievedContext( + o.retrievedContext!, + ); + checkGoogleCloudAiplatformV1GroundingChunkWeb(o.web!); + } + buildCounterGoogleCloudAiplatformV1GroundingChunk--; } -core.int buildCounterGoogleCloudAiplatformV1LineageSubgraph = 0; -api.GoogleCloudAiplatformV1LineageSubgraph -buildGoogleCloudAiplatformV1LineageSubgraph() { - final o = api.GoogleCloudAiplatformV1LineageSubgraph(); - buildCounterGoogleCloudAiplatformV1LineageSubgraph++; - if (buildCounterGoogleCloudAiplatformV1LineageSubgraph < 3) { - o.artifacts = buildUnnamed183(); - o.events = buildUnnamed184(); - o.executions = buildUnnamed185(); +core.int buildCounterGoogleCloudAiplatformV1GroundingChunkMaps = 0; +api.GoogleCloudAiplatformV1GroundingChunkMaps +buildGoogleCloudAiplatformV1GroundingChunkMaps() { + final o = api.GoogleCloudAiplatformV1GroundingChunkMaps(); + buildCounterGoogleCloudAiplatformV1GroundingChunkMaps++; + if (buildCounterGoogleCloudAiplatformV1GroundingChunkMaps < 3) { + o.placeAnswerSources = + buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources(); + o.placeId = 'foo'; + o.text = 'foo'; + o.title = 'foo'; + o.uri = 'foo'; } - buildCounterGoogleCloudAiplatformV1LineageSubgraph--; + buildCounterGoogleCloudAiplatformV1GroundingChunkMaps--; return o; } -void checkGoogleCloudAiplatformV1LineageSubgraph( - api.GoogleCloudAiplatformV1LineageSubgraph o, +void checkGoogleCloudAiplatformV1GroundingChunkMaps( + api.GoogleCloudAiplatformV1GroundingChunkMaps o, ) { - buildCounterGoogleCloudAiplatformV1LineageSubgraph++; - if (buildCounterGoogleCloudAiplatformV1LineageSubgraph < 3) { - checkUnnamed183(o.artifacts!); - checkUnnamed184(o.events!); - checkUnnamed185(o.executions!); + buildCounterGoogleCloudAiplatformV1GroundingChunkMaps++; + if (buildCounterGoogleCloudAiplatformV1GroundingChunkMaps < 3) { + checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources( + o.placeAnswerSources!, + ); + unittest.expect(o.placeId!, unittest.equals('foo')); + unittest.expect(o.text!, unittest.equals('foo')); + unittest.expect(o.title!, unittest.equals('foo')); + unittest.expect(o.uri!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1LineageSubgraph--; + buildCounterGoogleCloudAiplatformV1GroundingChunkMaps--; } -core.List buildUnnamed186() => [ - buildGoogleCloudAiplatformV1Annotation(), - buildGoogleCloudAiplatformV1Annotation(), +core.List< + api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet +> +buildUnnamed179() => [ + buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet(), + buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet(), ]; -void checkUnnamed186(core.List o) { +void checkUnnamed179( + core.List< + api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet + > + o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Annotation(o[0]); - checkGoogleCloudAiplatformV1Annotation(o[1]); + checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet( + o[0], + ); + checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet( + o[1], + ); } -core.int buildCounterGoogleCloudAiplatformV1ListAnnotationsResponse = 0; -api.GoogleCloudAiplatformV1ListAnnotationsResponse -buildGoogleCloudAiplatformV1ListAnnotationsResponse() { - final o = api.GoogleCloudAiplatformV1ListAnnotationsResponse(); - buildCounterGoogleCloudAiplatformV1ListAnnotationsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListAnnotationsResponse < 3) { - o.annotations = buildUnnamed186(); - o.nextPageToken = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources = 0; +api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources +buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources() { + final o = api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources(); + buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources++; + if (buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources < + 3) { + o.reviewSnippets = buildUnnamed179(); } - buildCounterGoogleCloudAiplatformV1ListAnnotationsResponse--; + buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources--; return o; } -void checkGoogleCloudAiplatformV1ListAnnotationsResponse( - api.GoogleCloudAiplatformV1ListAnnotationsResponse o, +void checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources( + api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources o, ) { - buildCounterGoogleCloudAiplatformV1ListAnnotationsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListAnnotationsResponse < 3) { - checkUnnamed186(o.annotations!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources++; + if (buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources < + 3) { + checkUnnamed179(o.reviewSnippets!); } - buildCounterGoogleCloudAiplatformV1ListAnnotationsResponse--; -} - -core.List buildUnnamed187() => [ - buildGoogleCloudAiplatformV1Artifact(), - buildGoogleCloudAiplatformV1Artifact(), -]; - -void checkUnnamed187(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Artifact(o[0]); - checkGoogleCloudAiplatformV1Artifact(o[1]); + buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources--; } -core.int buildCounterGoogleCloudAiplatformV1ListArtifactsResponse = 0; -api.GoogleCloudAiplatformV1ListArtifactsResponse -buildGoogleCloudAiplatformV1ListArtifactsResponse() { - final o = api.GoogleCloudAiplatformV1ListArtifactsResponse(); - buildCounterGoogleCloudAiplatformV1ListArtifactsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListArtifactsResponse < 3) { - o.artifacts = buildUnnamed187(); - o.nextPageToken = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet = + 0; +api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet +buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet() { + final o = + api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet(); + buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet++; + if (buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet < + 3) { + o.googleMapsUri = 'foo'; + o.reviewId = 'foo'; + o.title = 'foo'; } - buildCounterGoogleCloudAiplatformV1ListArtifactsResponse--; + buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet--; return o; } -void checkGoogleCloudAiplatformV1ListArtifactsResponse( - api.GoogleCloudAiplatformV1ListArtifactsResponse o, +void +checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet( + api.GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet + o, ) { - buildCounterGoogleCloudAiplatformV1ListArtifactsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListArtifactsResponse < 3) { - checkUnnamed187(o.artifacts!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet++; + if (buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet < + 3) { + unittest.expect(o.googleMapsUri!, unittest.equals('foo')); + unittest.expect(o.reviewId!, unittest.equals('foo')); + unittest.expect(o.title!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListArtifactsResponse--; + buildCounterGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet--; } -core.List buildUnnamed188() => [ - buildGoogleCloudAiplatformV1BatchPredictionJob(), - buildGoogleCloudAiplatformV1BatchPredictionJob(), -]; +core.int buildCounterGoogleCloudAiplatformV1GroundingChunkRetrievedContext = 0; +api.GoogleCloudAiplatformV1GroundingChunkRetrievedContext +buildGoogleCloudAiplatformV1GroundingChunkRetrievedContext() { + final o = api.GoogleCloudAiplatformV1GroundingChunkRetrievedContext(); + buildCounterGoogleCloudAiplatformV1GroundingChunkRetrievedContext++; + if (buildCounterGoogleCloudAiplatformV1GroundingChunkRetrievedContext < 3) { + o.documentName = 'foo'; + o.ragChunk = buildGoogleCloudAiplatformV1RagChunk(); + o.text = 'foo'; + o.title = 'foo'; + o.uri = 'foo'; + } + buildCounterGoogleCloudAiplatformV1GroundingChunkRetrievedContext--; + return o; +} -void checkUnnamed188( - core.List o, +void checkGoogleCloudAiplatformV1GroundingChunkRetrievedContext( + api.GoogleCloudAiplatformV1GroundingChunkRetrievedContext o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1BatchPredictionJob(o[0]); - checkGoogleCloudAiplatformV1BatchPredictionJob(o[1]); + buildCounterGoogleCloudAiplatformV1GroundingChunkRetrievedContext++; + if (buildCounterGoogleCloudAiplatformV1GroundingChunkRetrievedContext < 3) { + unittest.expect(o.documentName!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1RagChunk(o.ragChunk!); + unittest.expect(o.text!, unittest.equals('foo')); + unittest.expect(o.title!, unittest.equals('foo')); + unittest.expect(o.uri!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1GroundingChunkRetrievedContext--; } -core.int buildCounterGoogleCloudAiplatformV1ListBatchPredictionJobsResponse = 0; -api.GoogleCloudAiplatformV1ListBatchPredictionJobsResponse -buildGoogleCloudAiplatformV1ListBatchPredictionJobsResponse() { - final o = api.GoogleCloudAiplatformV1ListBatchPredictionJobsResponse(); - buildCounterGoogleCloudAiplatformV1ListBatchPredictionJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListBatchPredictionJobsResponse < 3) { - o.batchPredictionJobs = buildUnnamed188(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1GroundingChunkWeb = 0; +api.GoogleCloudAiplatformV1GroundingChunkWeb +buildGoogleCloudAiplatformV1GroundingChunkWeb() { + final o = api.GoogleCloudAiplatformV1GroundingChunkWeb(); + buildCounterGoogleCloudAiplatformV1GroundingChunkWeb++; + if (buildCounterGoogleCloudAiplatformV1GroundingChunkWeb < 3) { + o.domain = 'foo'; + o.title = 'foo'; + o.uri = 'foo'; } - buildCounterGoogleCloudAiplatformV1ListBatchPredictionJobsResponse--; + buildCounterGoogleCloudAiplatformV1GroundingChunkWeb--; return o; } -void checkGoogleCloudAiplatformV1ListBatchPredictionJobsResponse( - api.GoogleCloudAiplatformV1ListBatchPredictionJobsResponse o, +void checkGoogleCloudAiplatformV1GroundingChunkWeb( + api.GoogleCloudAiplatformV1GroundingChunkWeb o, ) { - buildCounterGoogleCloudAiplatformV1ListBatchPredictionJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListBatchPredictionJobsResponse < 3) { - checkUnnamed188(o.batchPredictionJobs!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GroundingChunkWeb++; + if (buildCounterGoogleCloudAiplatformV1GroundingChunkWeb < 3) { + unittest.expect(o.domain!, unittest.equals('foo')); + unittest.expect(o.title!, unittest.equals('foo')); + unittest.expect(o.uri!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListBatchPredictionJobsResponse--; + buildCounterGoogleCloudAiplatformV1GroundingChunkWeb--; } -core.List buildUnnamed189() => [ - buildGoogleCloudAiplatformV1CachedContent(), - buildGoogleCloudAiplatformV1CachedContent(), +core.List buildUnnamed180() => [ + buildGoogleCloudAiplatformV1GroundingChunk(), + buildGoogleCloudAiplatformV1GroundingChunk(), ]; -void checkUnnamed189(core.List o) { +void checkUnnamed180(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1CachedContent(o[0]); - checkGoogleCloudAiplatformV1CachedContent(o[1]); + checkGoogleCloudAiplatformV1GroundingChunk(o[0]); + checkGoogleCloudAiplatformV1GroundingChunk(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListCachedContentsResponse = 0; -api.GoogleCloudAiplatformV1ListCachedContentsResponse -buildGoogleCloudAiplatformV1ListCachedContentsResponse() { - final o = api.GoogleCloudAiplatformV1ListCachedContentsResponse(); - buildCounterGoogleCloudAiplatformV1ListCachedContentsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListCachedContentsResponse < 3) { - o.cachedContents = buildUnnamed189(); - o.nextPageToken = 'foo'; - } - buildCounterGoogleCloudAiplatformV1ListCachedContentsResponse--; - return o; +core.List buildUnnamed181() => [ + buildGoogleCloudAiplatformV1GroundingSupport(), + buildGoogleCloudAiplatformV1GroundingSupport(), +]; + +void checkUnnamed181(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1GroundingSupport(o[0]); + checkGoogleCloudAiplatformV1GroundingSupport(o[1]); } -void checkGoogleCloudAiplatformV1ListCachedContentsResponse( - api.GoogleCloudAiplatformV1ListCachedContentsResponse o, +core.List +buildUnnamed182() => [ + buildGoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri(), + buildGoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri(), +]; + +void checkUnnamed182( + core.List o, ) { - buildCounterGoogleCloudAiplatformV1ListCachedContentsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListCachedContentsResponse < 3) { - checkUnnamed189(o.cachedContents!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1ListCachedContentsResponse--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri(o[0]); + checkGoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri(o[1]); } -core.List buildUnnamed190() => [ - buildGoogleCloudAiplatformV1Context(), - buildGoogleCloudAiplatformV1Context(), -]; +core.List buildUnnamed183() => ['foo', 'foo']; -void checkUnnamed190(core.List o) { +void checkUnnamed183(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Context(o[0]); - checkGoogleCloudAiplatformV1Context(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ListContextsResponse = 0; -api.GoogleCloudAiplatformV1ListContextsResponse -buildGoogleCloudAiplatformV1ListContextsResponse() { - final o = api.GoogleCloudAiplatformV1ListContextsResponse(); - buildCounterGoogleCloudAiplatformV1ListContextsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListContextsResponse < 3) { - o.contexts = buildUnnamed190(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1GroundingMetadata = 0; +api.GoogleCloudAiplatformV1GroundingMetadata +buildGoogleCloudAiplatformV1GroundingMetadata() { + final o = api.GoogleCloudAiplatformV1GroundingMetadata(); + buildCounterGoogleCloudAiplatformV1GroundingMetadata++; + if (buildCounterGoogleCloudAiplatformV1GroundingMetadata < 3) { + o.googleMapsWidgetContextToken = 'foo'; + o.groundingChunks = buildUnnamed180(); + o.groundingSupports = buildUnnamed181(); + o.retrievalMetadata = buildGoogleCloudAiplatformV1RetrievalMetadata(); + o.searchEntryPoint = buildGoogleCloudAiplatformV1SearchEntryPoint(); + o.sourceFlaggingUris = buildUnnamed182(); + o.webSearchQueries = buildUnnamed183(); } - buildCounterGoogleCloudAiplatformV1ListContextsResponse--; + buildCounterGoogleCloudAiplatformV1GroundingMetadata--; return o; } -void checkGoogleCloudAiplatformV1ListContextsResponse( - api.GoogleCloudAiplatformV1ListContextsResponse o, +void checkGoogleCloudAiplatformV1GroundingMetadata( + api.GoogleCloudAiplatformV1GroundingMetadata o, ) { - buildCounterGoogleCloudAiplatformV1ListContextsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListContextsResponse < 3) { - checkUnnamed190(o.contexts!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GroundingMetadata++; + if (buildCounterGoogleCloudAiplatformV1GroundingMetadata < 3) { + unittest.expect(o.googleMapsWidgetContextToken!, unittest.equals('foo')); + checkUnnamed180(o.groundingChunks!); + checkUnnamed181(o.groundingSupports!); + checkGoogleCloudAiplatformV1RetrievalMetadata(o.retrievalMetadata!); + checkGoogleCloudAiplatformV1SearchEntryPoint(o.searchEntryPoint!); + checkUnnamed182(o.sourceFlaggingUris!); + checkUnnamed183(o.webSearchQueries!); } - buildCounterGoogleCloudAiplatformV1ListContextsResponse--; -} - -core.List buildUnnamed191() => [ - buildGoogleCloudAiplatformV1CustomJob(), - buildGoogleCloudAiplatformV1CustomJob(), -]; - -void checkUnnamed191(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1CustomJob(o[0]); - checkGoogleCloudAiplatformV1CustomJob(o[1]); + buildCounterGoogleCloudAiplatformV1GroundingMetadata--; } -core.int buildCounterGoogleCloudAiplatformV1ListCustomJobsResponse = 0; -api.GoogleCloudAiplatformV1ListCustomJobsResponse -buildGoogleCloudAiplatformV1ListCustomJobsResponse() { - final o = api.GoogleCloudAiplatformV1ListCustomJobsResponse(); - buildCounterGoogleCloudAiplatformV1ListCustomJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListCustomJobsResponse < 3) { - o.customJobs = buildUnnamed191(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri = + 0; +api.GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri +buildGoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri() { + final o = api.GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri(); + buildCounterGoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri++; + if (buildCounterGoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri < + 3) { + o.flagContentUri = 'foo'; + o.sourceId = 'foo'; } - buildCounterGoogleCloudAiplatformV1ListCustomJobsResponse--; + buildCounterGoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri--; return o; } -void checkGoogleCloudAiplatformV1ListCustomJobsResponse( - api.GoogleCloudAiplatformV1ListCustomJobsResponse o, +void checkGoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri( + api.GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri o, ) { - buildCounterGoogleCloudAiplatformV1ListCustomJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListCustomJobsResponse < 3) { - checkUnnamed191(o.customJobs!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri++; + if (buildCounterGoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri < + 3) { + unittest.expect(o.flagContentUri!, unittest.equals('foo')); + unittest.expect(o.sourceId!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListCustomJobsResponse--; + buildCounterGoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri--; } -core.List buildUnnamed192() => [ - buildGoogleCloudAiplatformV1DataItem(), - buildGoogleCloudAiplatformV1DataItem(), -]; +core.List buildUnnamed184() => [42.0, 42.0]; -void checkUnnamed192(core.List o) { +void checkUnnamed184(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1DataItem(o[0]); - checkGoogleCloudAiplatformV1DataItem(o[1]); + unittest.expect(o[0], unittest.equals(42.0)); + unittest.expect(o[1], unittest.equals(42.0)); } -core.int buildCounterGoogleCloudAiplatformV1ListDataItemsResponse = 0; -api.GoogleCloudAiplatformV1ListDataItemsResponse -buildGoogleCloudAiplatformV1ListDataItemsResponse() { - final o = api.GoogleCloudAiplatformV1ListDataItemsResponse(); - buildCounterGoogleCloudAiplatformV1ListDataItemsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListDataItemsResponse < 3) { - o.dataItems = buildUnnamed192(); - o.nextPageToken = 'foo'; +core.List buildUnnamed185() => [42, 42]; + +void checkUnnamed185(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals(42)); + unittest.expect(o[1], unittest.equals(42)); +} + +core.int buildCounterGoogleCloudAiplatformV1GroundingSupport = 0; +api.GoogleCloudAiplatformV1GroundingSupport +buildGoogleCloudAiplatformV1GroundingSupport() { + final o = api.GoogleCloudAiplatformV1GroundingSupport(); + buildCounterGoogleCloudAiplatformV1GroundingSupport++; + if (buildCounterGoogleCloudAiplatformV1GroundingSupport < 3) { + o.confidenceScores = buildUnnamed184(); + o.groundingChunkIndices = buildUnnamed185(); + o.segment = buildGoogleCloudAiplatformV1Segment(); } - buildCounterGoogleCloudAiplatformV1ListDataItemsResponse--; + buildCounterGoogleCloudAiplatformV1GroundingSupport--; return o; } -void checkGoogleCloudAiplatformV1ListDataItemsResponse( - api.GoogleCloudAiplatformV1ListDataItemsResponse o, +void checkGoogleCloudAiplatformV1GroundingSupport( + api.GoogleCloudAiplatformV1GroundingSupport o, ) { - buildCounterGoogleCloudAiplatformV1ListDataItemsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListDataItemsResponse < 3) { - checkUnnamed192(o.dataItems!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1GroundingSupport++; + if (buildCounterGoogleCloudAiplatformV1GroundingSupport < 3) { + checkUnnamed184(o.confidenceScores!); + checkUnnamed185(o.groundingChunkIndices!); + checkGoogleCloudAiplatformV1Segment(o.segment!); } - buildCounterGoogleCloudAiplatformV1ListDataItemsResponse--; + buildCounterGoogleCloudAiplatformV1GroundingSupport--; } -core.List buildUnnamed193() => [ - buildGoogleCloudAiplatformV1DataLabelingJob(), - buildGoogleCloudAiplatformV1DataLabelingJob(), +core.Map buildUnnamed186() => { + 'x': 'foo', + 'y': 'foo', +}; + +void checkUnnamed186(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.List buildUnnamed187() => [ + buildGoogleCloudAiplatformV1Trial(), + buildGoogleCloudAiplatformV1Trial(), ]; -void checkUnnamed193(core.List o) { +void checkUnnamed187(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1DataLabelingJob(o[0]); - checkGoogleCloudAiplatformV1DataLabelingJob(o[1]); + checkGoogleCloudAiplatformV1Trial(o[0]); + checkGoogleCloudAiplatformV1Trial(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListDataLabelingJobsResponse = 0; -api.GoogleCloudAiplatformV1ListDataLabelingJobsResponse -buildGoogleCloudAiplatformV1ListDataLabelingJobsResponse() { - final o = api.GoogleCloudAiplatformV1ListDataLabelingJobsResponse(); - buildCounterGoogleCloudAiplatformV1ListDataLabelingJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListDataLabelingJobsResponse < 3) { - o.dataLabelingJobs = buildUnnamed193(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1HyperparameterTuningJob = 0; +api.GoogleCloudAiplatformV1HyperparameterTuningJob +buildGoogleCloudAiplatformV1HyperparameterTuningJob() { + final o = api.GoogleCloudAiplatformV1HyperparameterTuningJob(); + buildCounterGoogleCloudAiplatformV1HyperparameterTuningJob++; + if (buildCounterGoogleCloudAiplatformV1HyperparameterTuningJob < 3) { + o.createTime = 'foo'; + o.displayName = 'foo'; + o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.endTime = 'foo'; + o.error = buildGoogleRpcStatus(); + o.labels = buildUnnamed186(); + o.maxFailedTrialCount = 42; + o.maxTrialCount = 42; + o.name = 'foo'; + o.parallelTrialCount = 42; + o.satisfiesPzi = true; + o.satisfiesPzs = true; + o.startTime = 'foo'; + o.state = 'foo'; + o.studySpec = buildGoogleCloudAiplatformV1StudySpec(); + o.trialJobSpec = buildGoogleCloudAiplatformV1CustomJobSpec(); + o.trials = buildUnnamed187(); + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1ListDataLabelingJobsResponse--; + buildCounterGoogleCloudAiplatformV1HyperparameterTuningJob--; return o; } -void checkGoogleCloudAiplatformV1ListDataLabelingJobsResponse( - api.GoogleCloudAiplatformV1ListDataLabelingJobsResponse o, +void checkGoogleCloudAiplatformV1HyperparameterTuningJob( + api.GoogleCloudAiplatformV1HyperparameterTuningJob o, ) { - buildCounterGoogleCloudAiplatformV1ListDataLabelingJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListDataLabelingJobsResponse < 3) { - checkUnnamed193(o.dataLabelingJobs!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1HyperparameterTuningJob++; + if (buildCounterGoogleCloudAiplatformV1HyperparameterTuningJob < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + unittest.expect(o.endTime!, unittest.equals('foo')); + checkGoogleRpcStatus(o.error!); + checkUnnamed186(o.labels!); + unittest.expect(o.maxFailedTrialCount!, unittest.equals(42)); + unittest.expect(o.maxTrialCount!, unittest.equals(42)); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.parallelTrialCount!, unittest.equals(42)); + unittest.expect(o.satisfiesPzi!, unittest.isTrue); + unittest.expect(o.satisfiesPzs!, unittest.isTrue); + unittest.expect(o.startTime!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1StudySpec(o.studySpec!); + checkGoogleCloudAiplatformV1CustomJobSpec(o.trialJobSpec!); + checkUnnamed187(o.trials!); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListDataLabelingJobsResponse--; + buildCounterGoogleCloudAiplatformV1HyperparameterTuningJob--; } -core.List buildUnnamed194() => [ - buildGoogleCloudAiplatformV1DatasetVersion(), - buildGoogleCloudAiplatformV1DatasetVersion(), -]; +core.List buildUnnamed188() => ['foo', 'foo']; -void checkUnnamed194(core.List o) { +void checkUnnamed188(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1DatasetVersion(o[0]); - checkGoogleCloudAiplatformV1DatasetVersion(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ListDatasetVersionsResponse = 0; -api.GoogleCloudAiplatformV1ListDatasetVersionsResponse -buildGoogleCloudAiplatformV1ListDatasetVersionsResponse() { - final o = api.GoogleCloudAiplatformV1ListDatasetVersionsResponse(); - buildCounterGoogleCloudAiplatformV1ListDatasetVersionsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListDatasetVersionsResponse < 3) { - o.datasetVersions = buildUnnamed194(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1IdMatcher = 0; +api.GoogleCloudAiplatformV1IdMatcher buildGoogleCloudAiplatformV1IdMatcher() { + final o = api.GoogleCloudAiplatformV1IdMatcher(); + buildCounterGoogleCloudAiplatformV1IdMatcher++; + if (buildCounterGoogleCloudAiplatformV1IdMatcher < 3) { + o.ids = buildUnnamed188(); } - buildCounterGoogleCloudAiplatformV1ListDatasetVersionsResponse--; + buildCounterGoogleCloudAiplatformV1IdMatcher--; return o; } -void checkGoogleCloudAiplatformV1ListDatasetVersionsResponse( - api.GoogleCloudAiplatformV1ListDatasetVersionsResponse o, +void checkGoogleCloudAiplatformV1IdMatcher( + api.GoogleCloudAiplatformV1IdMatcher o, ) { - buildCounterGoogleCloudAiplatformV1ListDatasetVersionsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListDatasetVersionsResponse < 3) { - checkUnnamed194(o.datasetVersions!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1IdMatcher++; + if (buildCounterGoogleCloudAiplatformV1IdMatcher < 3) { + checkUnnamed188(o.ids!); } - buildCounterGoogleCloudAiplatformV1ListDatasetVersionsResponse--; + buildCounterGoogleCloudAiplatformV1IdMatcher--; } -core.List buildUnnamed195() => [ - buildGoogleCloudAiplatformV1Dataset(), - buildGoogleCloudAiplatformV1Dataset(), -]; +core.Map buildUnnamed189() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkUnnamed195(core.List o) { +void checkUnnamed189(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Dataset(o[0]); - checkGoogleCloudAiplatformV1Dataset(o[1]); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ListDatasetsResponse = 0; -api.GoogleCloudAiplatformV1ListDatasetsResponse -buildGoogleCloudAiplatformV1ListDatasetsResponse() { - final o = api.GoogleCloudAiplatformV1ListDatasetsResponse(); - buildCounterGoogleCloudAiplatformV1ListDatasetsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListDatasetsResponse < 3) { - o.datasets = buildUnnamed195(); - o.nextPageToken = 'foo'; - } - buildCounterGoogleCloudAiplatformV1ListDatasetsResponse--; - return o; -} - -void checkGoogleCloudAiplatformV1ListDatasetsResponse( - api.GoogleCloudAiplatformV1ListDatasetsResponse o, -) { - buildCounterGoogleCloudAiplatformV1ListDatasetsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListDatasetsResponse < 3) { - checkUnnamed195(o.datasets!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1ListDatasetsResponse--; -} - -core.List -buildUnnamed196() => [ - buildGoogleCloudAiplatformV1DeploymentResourcePool(), - buildGoogleCloudAiplatformV1DeploymentResourcePool(), -]; +core.Map buildUnnamed190() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkUnnamed196( - core.List o, -) { +void checkUnnamed190(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1DeploymentResourcePool(o[0]); - checkGoogleCloudAiplatformV1DeploymentResourcePool(o[1]); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.int -buildCounterGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse = 0; -api.GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse -buildGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse() { - final o = api.GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse(); - buildCounterGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse < - 3) { - o.deploymentResourcePools = buildUnnamed196(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ImportDataConfig = 0; +api.GoogleCloudAiplatformV1ImportDataConfig +buildGoogleCloudAiplatformV1ImportDataConfig() { + final o = api.GoogleCloudAiplatformV1ImportDataConfig(); + buildCounterGoogleCloudAiplatformV1ImportDataConfig++; + if (buildCounterGoogleCloudAiplatformV1ImportDataConfig < 3) { + o.annotationLabels = buildUnnamed189(); + o.dataItemLabels = buildUnnamed190(); + o.gcsSource = buildGoogleCloudAiplatformV1GcsSource(); + o.importSchemaUri = 'foo'; } - buildCounterGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse--; + buildCounterGoogleCloudAiplatformV1ImportDataConfig--; return o; } -void checkGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse( - api.GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse o, +void checkGoogleCloudAiplatformV1ImportDataConfig( + api.GoogleCloudAiplatformV1ImportDataConfig o, ) { - buildCounterGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse < - 3) { - checkUnnamed196(o.deploymentResourcePools!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ImportDataConfig++; + if (buildCounterGoogleCloudAiplatformV1ImportDataConfig < 3) { + checkUnnamed189(o.annotationLabels!); + checkUnnamed190(o.dataItemLabels!); + checkGoogleCloudAiplatformV1GcsSource(o.gcsSource!); + unittest.expect(o.importSchemaUri!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse--; + buildCounterGoogleCloudAiplatformV1ImportDataConfig--; } -core.List buildUnnamed197() => [ - buildGoogleCloudAiplatformV1Endpoint(), - buildGoogleCloudAiplatformV1Endpoint(), +core.List buildUnnamed191() => [ + buildGoogleCloudAiplatformV1ImportDataConfig(), + buildGoogleCloudAiplatformV1ImportDataConfig(), ]; -void checkUnnamed197(core.List o) { +void checkUnnamed191(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Endpoint(o[0]); - checkGoogleCloudAiplatformV1Endpoint(o[1]); + checkGoogleCloudAiplatformV1ImportDataConfig(o[0]); + checkGoogleCloudAiplatformV1ImportDataConfig(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListEndpointsResponse = 0; -api.GoogleCloudAiplatformV1ListEndpointsResponse -buildGoogleCloudAiplatformV1ListEndpointsResponse() { - final o = api.GoogleCloudAiplatformV1ListEndpointsResponse(); - buildCounterGoogleCloudAiplatformV1ListEndpointsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListEndpointsResponse < 3) { - o.endpoints = buildUnnamed197(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ImportDataRequest = 0; +api.GoogleCloudAiplatformV1ImportDataRequest +buildGoogleCloudAiplatformV1ImportDataRequest() { + final o = api.GoogleCloudAiplatformV1ImportDataRequest(); + buildCounterGoogleCloudAiplatformV1ImportDataRequest++; + if (buildCounterGoogleCloudAiplatformV1ImportDataRequest < 3) { + o.importConfigs = buildUnnamed191(); } - buildCounterGoogleCloudAiplatformV1ListEndpointsResponse--; + buildCounterGoogleCloudAiplatformV1ImportDataRequest--; return o; } -void checkGoogleCloudAiplatformV1ListEndpointsResponse( - api.GoogleCloudAiplatformV1ListEndpointsResponse o, +void checkGoogleCloudAiplatformV1ImportDataRequest( + api.GoogleCloudAiplatformV1ImportDataRequest o, ) { - buildCounterGoogleCloudAiplatformV1ListEndpointsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListEndpointsResponse < 3) { - checkUnnamed197(o.endpoints!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ImportDataRequest++; + if (buildCounterGoogleCloudAiplatformV1ImportDataRequest < 3) { + checkUnnamed191(o.importConfigs!); } - buildCounterGoogleCloudAiplatformV1ListEndpointsResponse--; + buildCounterGoogleCloudAiplatformV1ImportDataRequest--; } -core.List buildUnnamed198() => [ - buildGoogleCloudAiplatformV1EntityType(), - buildGoogleCloudAiplatformV1EntityType(), +core.List +buildUnnamed192() => [ + buildGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec(), + buildGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec(), ]; -void checkUnnamed198(core.List o) { +void checkUnnamed192( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1EntityType(o[0]); - checkGoogleCloudAiplatformV1EntityType(o[1]); + checkGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec(o[0]); + checkGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListEntityTypesResponse = 0; -api.GoogleCloudAiplatformV1ListEntityTypesResponse -buildGoogleCloudAiplatformV1ListEntityTypesResponse() { - final o = api.GoogleCloudAiplatformV1ListEntityTypesResponse(); - buildCounterGoogleCloudAiplatformV1ListEntityTypesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListEntityTypesResponse < 3) { - o.entityTypes = buildUnnamed198(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequest = 0; +api.GoogleCloudAiplatformV1ImportFeatureValuesRequest +buildGoogleCloudAiplatformV1ImportFeatureValuesRequest() { + final o = api.GoogleCloudAiplatformV1ImportFeatureValuesRequest(); + buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequest++; + if (buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequest < 3) { + o.avroSource = buildGoogleCloudAiplatformV1AvroSource(); + o.bigquerySource = buildGoogleCloudAiplatformV1BigQuerySource(); + o.csvSource = buildGoogleCloudAiplatformV1CsvSource(); + o.disableIngestionAnalysis = true; + o.disableOnlineServing = true; + o.entityIdField = 'foo'; + o.featureSpecs = buildUnnamed192(); + o.featureTime = 'foo'; + o.featureTimeField = 'foo'; + o.workerCount = 42; } - buildCounterGoogleCloudAiplatformV1ListEntityTypesResponse--; + buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequest--; return o; } -void checkGoogleCloudAiplatformV1ListEntityTypesResponse( - api.GoogleCloudAiplatformV1ListEntityTypesResponse o, +void checkGoogleCloudAiplatformV1ImportFeatureValuesRequest( + api.GoogleCloudAiplatformV1ImportFeatureValuesRequest o, ) { - buildCounterGoogleCloudAiplatformV1ListEntityTypesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListEntityTypesResponse < 3) { - checkUnnamed198(o.entityTypes!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequest++; + if (buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequest < 3) { + checkGoogleCloudAiplatformV1AvroSource(o.avroSource!); + checkGoogleCloudAiplatformV1BigQuerySource(o.bigquerySource!); + checkGoogleCloudAiplatformV1CsvSource(o.csvSource!); + unittest.expect(o.disableIngestionAnalysis!, unittest.isTrue); + unittest.expect(o.disableOnlineServing!, unittest.isTrue); + unittest.expect(o.entityIdField!, unittest.equals('foo')); + checkUnnamed192(o.featureSpecs!); + unittest.expect(o.featureTime!, unittest.equals('foo')); + unittest.expect(o.featureTimeField!, unittest.equals('foo')); + unittest.expect(o.workerCount!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1ListEntityTypesResponse--; -} - -core.List buildUnnamed199() => [ - buildGoogleCloudAiplatformV1Execution(), - buildGoogleCloudAiplatformV1Execution(), -]; - -void checkUnnamed199(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Execution(o[0]); - checkGoogleCloudAiplatformV1Execution(o[1]); + buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequest--; } -core.int buildCounterGoogleCloudAiplatformV1ListExecutionsResponse = 0; -api.GoogleCloudAiplatformV1ListExecutionsResponse -buildGoogleCloudAiplatformV1ListExecutionsResponse() { - final o = api.GoogleCloudAiplatformV1ListExecutionsResponse(); - buildCounterGoogleCloudAiplatformV1ListExecutionsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListExecutionsResponse < 3) { - o.executions = buildUnnamed199(); - o.nextPageToken = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec = 0; +api.GoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec +buildGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec() { + final o = api.GoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec(); + buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec++; + if (buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec < + 3) { + o.id = 'foo'; + o.sourceField = 'foo'; } - buildCounterGoogleCloudAiplatformV1ListExecutionsResponse--; + buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec--; return o; } -void checkGoogleCloudAiplatformV1ListExecutionsResponse( - api.GoogleCloudAiplatformV1ListExecutionsResponse o, +void checkGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec( + api.GoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec o, ) { - buildCounterGoogleCloudAiplatformV1ListExecutionsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListExecutionsResponse < 3) { - checkUnnamed199(o.executions!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec++; + if (buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec < + 3) { + unittest.expect(o.id!, unittest.equals('foo')); + unittest.expect(o.sourceField!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListExecutionsResponse--; -} - -core.List buildUnnamed200() => [ - buildGoogleCloudAiplatformV1FeatureGroup(), - buildGoogleCloudAiplatformV1FeatureGroup(), -]; - -void checkUnnamed200(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FeatureGroup(o[0]); - checkGoogleCloudAiplatformV1FeatureGroup(o[1]); + buildCounterGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec--; } -core.int buildCounterGoogleCloudAiplatformV1ListFeatureGroupsResponse = 0; -api.GoogleCloudAiplatformV1ListFeatureGroupsResponse -buildGoogleCloudAiplatformV1ListFeatureGroupsResponse() { - final o = api.GoogleCloudAiplatformV1ListFeatureGroupsResponse(); - buildCounterGoogleCloudAiplatformV1ListFeatureGroupsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListFeatureGroupsResponse < 3) { - o.featureGroups = buildUnnamed200(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ImportModelEvaluationRequest = 0; +api.GoogleCloudAiplatformV1ImportModelEvaluationRequest +buildGoogleCloudAiplatformV1ImportModelEvaluationRequest() { + final o = api.GoogleCloudAiplatformV1ImportModelEvaluationRequest(); + buildCounterGoogleCloudAiplatformV1ImportModelEvaluationRequest++; + if (buildCounterGoogleCloudAiplatformV1ImportModelEvaluationRequest < 3) { + o.modelEvaluation = buildGoogleCloudAiplatformV1ModelEvaluation(); } - buildCounterGoogleCloudAiplatformV1ListFeatureGroupsResponse--; + buildCounterGoogleCloudAiplatformV1ImportModelEvaluationRequest--; return o; } -void checkGoogleCloudAiplatformV1ListFeatureGroupsResponse( - api.GoogleCloudAiplatformV1ListFeatureGroupsResponse o, +void checkGoogleCloudAiplatformV1ImportModelEvaluationRequest( + api.GoogleCloudAiplatformV1ImportModelEvaluationRequest o, ) { - buildCounterGoogleCloudAiplatformV1ListFeatureGroupsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListFeatureGroupsResponse < 3) { - checkUnnamed200(o.featureGroups!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ImportModelEvaluationRequest++; + if (buildCounterGoogleCloudAiplatformV1ImportModelEvaluationRequest < 3) { + checkGoogleCloudAiplatformV1ModelEvaluation(o.modelEvaluation!); } - buildCounterGoogleCloudAiplatformV1ListFeatureGroupsResponse--; -} - -core.List buildUnnamed201() => [ - buildGoogleCloudAiplatformV1FeatureOnlineStore(), - buildGoogleCloudAiplatformV1FeatureOnlineStore(), -]; - -void checkUnnamed201( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FeatureOnlineStore(o[0]); - checkGoogleCloudAiplatformV1FeatureOnlineStore(o[1]); + buildCounterGoogleCloudAiplatformV1ImportModelEvaluationRequest--; } -core.int buildCounterGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse = 0; -api.GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse -buildGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse() { - final o = api.GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse(); - buildCounterGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse++; - if (buildCounterGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse < 3) { - o.featureOnlineStores = buildUnnamed201(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ImportRagFilesConfig = 0; +api.GoogleCloudAiplatformV1ImportRagFilesConfig +buildGoogleCloudAiplatformV1ImportRagFilesConfig() { + final o = api.GoogleCloudAiplatformV1ImportRagFilesConfig(); + buildCounterGoogleCloudAiplatformV1ImportRagFilesConfig++; + if (buildCounterGoogleCloudAiplatformV1ImportRagFilesConfig < 3) { + o.gcsSource = buildGoogleCloudAiplatformV1GcsSource(); + o.googleDriveSource = buildGoogleCloudAiplatformV1GoogleDriveSource(); + o.importResultBigquerySink = + buildGoogleCloudAiplatformV1BigQueryDestination(); + o.importResultGcsSink = buildGoogleCloudAiplatformV1GcsDestination(); + o.jiraSource = buildGoogleCloudAiplatformV1JiraSource(); + o.maxEmbeddingRequestsPerMin = 42; + o.partialFailureBigquerySink = + buildGoogleCloudAiplatformV1BigQueryDestination(); + o.partialFailureGcsSink = buildGoogleCloudAiplatformV1GcsDestination(); + o.ragFileParsingConfig = buildGoogleCloudAiplatformV1RagFileParsingConfig(); + o.ragFileTransformationConfig = + buildGoogleCloudAiplatformV1RagFileTransformationConfig(); + o.rebuildAnnIndex = true; + o.sharePointSources = buildGoogleCloudAiplatformV1SharePointSources(); + o.slackSource = buildGoogleCloudAiplatformV1SlackSource(); } - buildCounterGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse--; + buildCounterGoogleCloudAiplatformV1ImportRagFilesConfig--; return o; } -void checkGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse( - api.GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse o, +void checkGoogleCloudAiplatformV1ImportRagFilesConfig( + api.GoogleCloudAiplatformV1ImportRagFilesConfig o, ) { - buildCounterGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse++; - if (buildCounterGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse < 3) { - checkUnnamed201(o.featureOnlineStores!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ImportRagFilesConfig++; + if (buildCounterGoogleCloudAiplatformV1ImportRagFilesConfig < 3) { + checkGoogleCloudAiplatformV1GcsSource(o.gcsSource!); + checkGoogleCloudAiplatformV1GoogleDriveSource(o.googleDriveSource!); + checkGoogleCloudAiplatformV1BigQueryDestination( + o.importResultBigquerySink!, + ); + checkGoogleCloudAiplatformV1GcsDestination(o.importResultGcsSink!); + checkGoogleCloudAiplatformV1JiraSource(o.jiraSource!); + unittest.expect(o.maxEmbeddingRequestsPerMin!, unittest.equals(42)); + checkGoogleCloudAiplatformV1BigQueryDestination( + o.partialFailureBigquerySink!, + ); + checkGoogleCloudAiplatformV1GcsDestination(o.partialFailureGcsSink!); + checkGoogleCloudAiplatformV1RagFileParsingConfig(o.ragFileParsingConfig!); + checkGoogleCloudAiplatformV1RagFileTransformationConfig( + o.ragFileTransformationConfig!, + ); + unittest.expect(o.rebuildAnnIndex!, unittest.isTrue); + checkGoogleCloudAiplatformV1SharePointSources(o.sharePointSources!); + checkGoogleCloudAiplatformV1SlackSource(o.slackSource!); } - buildCounterGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse--; -} - -core.List buildUnnamed202() => [ - buildGoogleCloudAiplatformV1FeatureViewSync(), - buildGoogleCloudAiplatformV1FeatureViewSync(), -]; - -void checkUnnamed202(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FeatureViewSync(o[0]); - checkGoogleCloudAiplatformV1FeatureViewSync(o[1]); + buildCounterGoogleCloudAiplatformV1ImportRagFilesConfig--; } -core.int buildCounterGoogleCloudAiplatformV1ListFeatureViewSyncsResponse = 0; -api.GoogleCloudAiplatformV1ListFeatureViewSyncsResponse -buildGoogleCloudAiplatformV1ListFeatureViewSyncsResponse() { - final o = api.GoogleCloudAiplatformV1ListFeatureViewSyncsResponse(); - buildCounterGoogleCloudAiplatformV1ListFeatureViewSyncsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListFeatureViewSyncsResponse < 3) { - o.featureViewSyncs = buildUnnamed202(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ImportRagFilesRequest = 0; +api.GoogleCloudAiplatformV1ImportRagFilesRequest +buildGoogleCloudAiplatformV1ImportRagFilesRequest() { + final o = api.GoogleCloudAiplatformV1ImportRagFilesRequest(); + buildCounterGoogleCloudAiplatformV1ImportRagFilesRequest++; + if (buildCounterGoogleCloudAiplatformV1ImportRagFilesRequest < 3) { + o.importRagFilesConfig = buildGoogleCloudAiplatformV1ImportRagFilesConfig(); } - buildCounterGoogleCloudAiplatformV1ListFeatureViewSyncsResponse--; + buildCounterGoogleCloudAiplatformV1ImportRagFilesRequest--; return o; } -void checkGoogleCloudAiplatformV1ListFeatureViewSyncsResponse( - api.GoogleCloudAiplatformV1ListFeatureViewSyncsResponse o, +void checkGoogleCloudAiplatformV1ImportRagFilesRequest( + api.GoogleCloudAiplatformV1ImportRagFilesRequest o, ) { - buildCounterGoogleCloudAiplatformV1ListFeatureViewSyncsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListFeatureViewSyncsResponse < 3) { - checkUnnamed202(o.featureViewSyncs!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ImportRagFilesRequest++; + if (buildCounterGoogleCloudAiplatformV1ImportRagFilesRequest < 3) { + checkGoogleCloudAiplatformV1ImportRagFilesConfig(o.importRagFilesConfig!); } - buildCounterGoogleCloudAiplatformV1ListFeatureViewSyncsResponse--; + buildCounterGoogleCloudAiplatformV1ImportRagFilesRequest--; } -core.List buildUnnamed203() => [ - buildGoogleCloudAiplatformV1FeatureView(), - buildGoogleCloudAiplatformV1FeatureView(), +core.List buildUnnamed193() => [ + buildGoogleCloudAiplatformV1DeployedIndexRef(), + buildGoogleCloudAiplatformV1DeployedIndexRef(), ]; -void checkUnnamed203(core.List o) { +void checkUnnamed193(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FeatureView(o[0]); - checkGoogleCloudAiplatformV1FeatureView(o[1]); + checkGoogleCloudAiplatformV1DeployedIndexRef(o[0]); + checkGoogleCloudAiplatformV1DeployedIndexRef(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListFeatureViewsResponse = 0; -api.GoogleCloudAiplatformV1ListFeatureViewsResponse -buildGoogleCloudAiplatformV1ListFeatureViewsResponse() { - final o = api.GoogleCloudAiplatformV1ListFeatureViewsResponse(); - buildCounterGoogleCloudAiplatformV1ListFeatureViewsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListFeatureViewsResponse < 3) { - o.featureViews = buildUnnamed203(); - o.nextPageToken = 'foo'; +core.Map buildUnnamed194() => { + 'x': 'foo', + 'y': 'foo', +}; + +void checkUnnamed194(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1Index = 0; +api.GoogleCloudAiplatformV1Index buildGoogleCloudAiplatformV1Index() { + final o = api.GoogleCloudAiplatformV1Index(); + buildCounterGoogleCloudAiplatformV1Index++; + if (buildCounterGoogleCloudAiplatformV1Index < 3) { + o.createTime = 'foo'; + o.deployedIndexes = buildUnnamed193(); + o.description = 'foo'; + o.displayName = 'foo'; + o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.etag = 'foo'; + o.indexStats = buildGoogleCloudAiplatformV1IndexStats(); + o.indexUpdateMethod = 'foo'; + o.labels = buildUnnamed194(); + o.metadata = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.metadataSchemaUri = 'foo'; + o.name = 'foo'; + o.satisfiesPzi = true; + o.satisfiesPzs = true; + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1ListFeatureViewsResponse--; + buildCounterGoogleCloudAiplatformV1Index--; return o; } -void checkGoogleCloudAiplatformV1ListFeatureViewsResponse( - api.GoogleCloudAiplatformV1ListFeatureViewsResponse o, -) { - buildCounterGoogleCloudAiplatformV1ListFeatureViewsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListFeatureViewsResponse < 3) { - checkUnnamed203(o.featureViews!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1Index(api.GoogleCloudAiplatformV1Index o) { + buildCounterGoogleCloudAiplatformV1Index++; + if (buildCounterGoogleCloudAiplatformV1Index < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + checkUnnamed193(o.deployedIndexes!); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + unittest.expect(o.etag!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1IndexStats(o.indexStats!); + unittest.expect(o.indexUpdateMethod!, unittest.equals('foo')); + checkUnnamed194(o.labels!); + var casted60 = (o.metadata!) as core.Map; + unittest.expect(casted60, unittest.hasLength(3)); + unittest.expect(casted60['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted60['bool'], unittest.equals(true)); + unittest.expect(casted60['string'], unittest.equals('foo')); + unittest.expect(o.metadataSchemaUri!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.satisfiesPzi!, unittest.isTrue); + unittest.expect(o.satisfiesPzs!, unittest.isTrue); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListFeatureViewsResponse--; + buildCounterGoogleCloudAiplatformV1Index--; } -core.List buildUnnamed204() => [ - buildGoogleCloudAiplatformV1Feature(), - buildGoogleCloudAiplatformV1Feature(), -]; +core.Map buildUnnamed195() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; -void checkUnnamed204(core.List o) { +void checkUnnamed195(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Feature(o[0]); - checkGoogleCloudAiplatformV1Feature(o[1]); + var casted61 = (o['x']!) as core.Map; + unittest.expect(casted61, unittest.hasLength(3)); + unittest.expect(casted61['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted61['bool'], unittest.equals(true)); + unittest.expect(casted61['string'], unittest.equals('foo')); + var casted62 = (o['y']!) as core.Map; + unittest.expect(casted62, unittest.hasLength(3)); + unittest.expect(casted62['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted62['bool'], unittest.equals(true)); + unittest.expect(casted62['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ListFeaturesResponse = 0; -api.GoogleCloudAiplatformV1ListFeaturesResponse -buildGoogleCloudAiplatformV1ListFeaturesResponse() { - final o = api.GoogleCloudAiplatformV1ListFeaturesResponse(); - buildCounterGoogleCloudAiplatformV1ListFeaturesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListFeaturesResponse < 3) { - o.features = buildUnnamed204(); - o.nextPageToken = 'foo'; - } - buildCounterGoogleCloudAiplatformV1ListFeaturesResponse--; - return o; +core.List buildUnnamed196() => [42.0, 42.0]; + +void checkUnnamed196(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals(42.0)); + unittest.expect(o[1], unittest.equals(42.0)); } -void checkGoogleCloudAiplatformV1ListFeaturesResponse( - api.GoogleCloudAiplatformV1ListFeaturesResponse o, +core.List +buildUnnamed197() => [ + buildGoogleCloudAiplatformV1IndexDatapointNumericRestriction(), + buildGoogleCloudAiplatformV1IndexDatapointNumericRestriction(), +]; + +void checkUnnamed197( + core.List o, ) { - buildCounterGoogleCloudAiplatformV1ListFeaturesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListFeaturesResponse < 3) { - checkUnnamed204(o.features!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1ListFeaturesResponse--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1IndexDatapointNumericRestriction(o[0]); + checkGoogleCloudAiplatformV1IndexDatapointNumericRestriction(o[1]); } -core.List buildUnnamed205() => [ - buildGoogleCloudAiplatformV1Featurestore(), - buildGoogleCloudAiplatformV1Featurestore(), +core.List +buildUnnamed198() => [ + buildGoogleCloudAiplatformV1IndexDatapointRestriction(), + buildGoogleCloudAiplatformV1IndexDatapointRestriction(), ]; -void checkUnnamed205(core.List o) { +void checkUnnamed198( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Featurestore(o[0]); - checkGoogleCloudAiplatformV1Featurestore(o[1]); + checkGoogleCloudAiplatformV1IndexDatapointRestriction(o[0]); + checkGoogleCloudAiplatformV1IndexDatapointRestriction(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListFeaturestoresResponse = 0; -api.GoogleCloudAiplatformV1ListFeaturestoresResponse -buildGoogleCloudAiplatformV1ListFeaturestoresResponse() { - final o = api.GoogleCloudAiplatformV1ListFeaturestoresResponse(); - buildCounterGoogleCloudAiplatformV1ListFeaturestoresResponse++; - if (buildCounterGoogleCloudAiplatformV1ListFeaturestoresResponse < 3) { - o.featurestores = buildUnnamed205(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1IndexDatapoint = 0; +api.GoogleCloudAiplatformV1IndexDatapoint +buildGoogleCloudAiplatformV1IndexDatapoint() { + final o = api.GoogleCloudAiplatformV1IndexDatapoint(); + buildCounterGoogleCloudAiplatformV1IndexDatapoint++; + if (buildCounterGoogleCloudAiplatformV1IndexDatapoint < 3) { + o.crowdingTag = buildGoogleCloudAiplatformV1IndexDatapointCrowdingTag(); + o.datapointId = 'foo'; + o.embeddingMetadata = buildUnnamed195(); + o.featureVector = buildUnnamed196(); + o.numericRestricts = buildUnnamed197(); + o.restricts = buildUnnamed198(); + o.sparseEmbedding = + buildGoogleCloudAiplatformV1IndexDatapointSparseEmbedding(); } - buildCounterGoogleCloudAiplatformV1ListFeaturestoresResponse--; + buildCounterGoogleCloudAiplatformV1IndexDatapoint--; return o; } -void checkGoogleCloudAiplatformV1ListFeaturestoresResponse( - api.GoogleCloudAiplatformV1ListFeaturestoresResponse o, +void checkGoogleCloudAiplatformV1IndexDatapoint( + api.GoogleCloudAiplatformV1IndexDatapoint o, ) { - buildCounterGoogleCloudAiplatformV1ListFeaturestoresResponse++; - if (buildCounterGoogleCloudAiplatformV1ListFeaturestoresResponse < 3) { - checkUnnamed205(o.featurestores!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1IndexDatapoint++; + if (buildCounterGoogleCloudAiplatformV1IndexDatapoint < 3) { + checkGoogleCloudAiplatformV1IndexDatapointCrowdingTag(o.crowdingTag!); + unittest.expect(o.datapointId!, unittest.equals('foo')); + checkUnnamed195(o.embeddingMetadata!); + checkUnnamed196(o.featureVector!); + checkUnnamed197(o.numericRestricts!); + checkUnnamed198(o.restricts!); + checkGoogleCloudAiplatformV1IndexDatapointSparseEmbedding( + o.sparseEmbedding!, + ); } - buildCounterGoogleCloudAiplatformV1ListFeaturestoresResponse--; + buildCounterGoogleCloudAiplatformV1IndexDatapoint--; } -core.List -buildUnnamed206() => [ - buildGoogleCloudAiplatformV1HyperparameterTuningJob(), - buildGoogleCloudAiplatformV1HyperparameterTuningJob(), -]; - -void checkUnnamed206( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1HyperparameterTuningJob(o[0]); - checkGoogleCloudAiplatformV1HyperparameterTuningJob(o[1]); -} - -core.int -buildCounterGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse = 0; -api.GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse -buildGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse() { - final o = api.GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse(); - buildCounterGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse < - 3) { - o.hyperparameterTuningJobs = buildUnnamed206(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1IndexDatapointCrowdingTag = 0; +api.GoogleCloudAiplatformV1IndexDatapointCrowdingTag +buildGoogleCloudAiplatformV1IndexDatapointCrowdingTag() { + final o = api.GoogleCloudAiplatformV1IndexDatapointCrowdingTag(); + buildCounterGoogleCloudAiplatformV1IndexDatapointCrowdingTag++; + if (buildCounterGoogleCloudAiplatformV1IndexDatapointCrowdingTag < 3) { + o.crowdingAttribute = 'foo'; } - buildCounterGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse--; + buildCounterGoogleCloudAiplatformV1IndexDatapointCrowdingTag--; return o; } -void checkGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse( - api.GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse o, +void checkGoogleCloudAiplatformV1IndexDatapointCrowdingTag( + api.GoogleCloudAiplatformV1IndexDatapointCrowdingTag o, ) { - buildCounterGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse < - 3) { - checkUnnamed206(o.hyperparameterTuningJobs!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1IndexDatapointCrowdingTag++; + if (buildCounterGoogleCloudAiplatformV1IndexDatapointCrowdingTag < 3) { + unittest.expect(o.crowdingAttribute!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse--; -} - -core.List buildUnnamed207() => [ - buildGoogleCloudAiplatformV1IndexEndpoint(), - buildGoogleCloudAiplatformV1IndexEndpoint(), -]; - -void checkUnnamed207(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1IndexEndpoint(o[0]); - checkGoogleCloudAiplatformV1IndexEndpoint(o[1]); + buildCounterGoogleCloudAiplatformV1IndexDatapointCrowdingTag--; } -core.int buildCounterGoogleCloudAiplatformV1ListIndexEndpointsResponse = 0; -api.GoogleCloudAiplatformV1ListIndexEndpointsResponse -buildGoogleCloudAiplatformV1ListIndexEndpointsResponse() { - final o = api.GoogleCloudAiplatformV1ListIndexEndpointsResponse(); - buildCounterGoogleCloudAiplatformV1ListIndexEndpointsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListIndexEndpointsResponse < 3) { - o.indexEndpoints = buildUnnamed207(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1IndexDatapointNumericRestriction = + 0; +api.GoogleCloudAiplatformV1IndexDatapointNumericRestriction +buildGoogleCloudAiplatformV1IndexDatapointNumericRestriction() { + final o = api.GoogleCloudAiplatformV1IndexDatapointNumericRestriction(); + buildCounterGoogleCloudAiplatformV1IndexDatapointNumericRestriction++; + if (buildCounterGoogleCloudAiplatformV1IndexDatapointNumericRestriction < 3) { + o.namespace = 'foo'; + o.op = 'foo'; + o.valueDouble = 42.0; + o.valueFloat = 42.0; + o.valueInt = 'foo'; } - buildCounterGoogleCloudAiplatformV1ListIndexEndpointsResponse--; + buildCounterGoogleCloudAiplatformV1IndexDatapointNumericRestriction--; return o; } -void checkGoogleCloudAiplatformV1ListIndexEndpointsResponse( - api.GoogleCloudAiplatformV1ListIndexEndpointsResponse o, +void checkGoogleCloudAiplatformV1IndexDatapointNumericRestriction( + api.GoogleCloudAiplatformV1IndexDatapointNumericRestriction o, ) { - buildCounterGoogleCloudAiplatformV1ListIndexEndpointsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListIndexEndpointsResponse < 3) { - checkUnnamed207(o.indexEndpoints!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1IndexDatapointNumericRestriction++; + if (buildCounterGoogleCloudAiplatformV1IndexDatapointNumericRestriction < 3) { + unittest.expect(o.namespace!, unittest.equals('foo')); + unittest.expect(o.op!, unittest.equals('foo')); + unittest.expect(o.valueDouble!, unittest.equals(42.0)); + unittest.expect(o.valueFloat!, unittest.equals(42.0)); + unittest.expect(o.valueInt!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListIndexEndpointsResponse--; + buildCounterGoogleCloudAiplatformV1IndexDatapointNumericRestriction--; } -core.List buildUnnamed208() => [ - buildGoogleCloudAiplatformV1Index(), - buildGoogleCloudAiplatformV1Index(), -]; +core.List buildUnnamed199() => ['foo', 'foo']; -void checkUnnamed208(core.List o) { +void checkUnnamed199(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Index(o[0]); - checkGoogleCloudAiplatformV1Index(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ListIndexesResponse = 0; -api.GoogleCloudAiplatformV1ListIndexesResponse -buildGoogleCloudAiplatformV1ListIndexesResponse() { - final o = api.GoogleCloudAiplatformV1ListIndexesResponse(); - buildCounterGoogleCloudAiplatformV1ListIndexesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListIndexesResponse < 3) { - o.indexes = buildUnnamed208(); - o.nextPageToken = 'foo'; +core.List buildUnnamed200() => ['foo', 'foo']; + +void checkUnnamed200(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1IndexDatapointRestriction = 0; +api.GoogleCloudAiplatformV1IndexDatapointRestriction +buildGoogleCloudAiplatformV1IndexDatapointRestriction() { + final o = api.GoogleCloudAiplatformV1IndexDatapointRestriction(); + buildCounterGoogleCloudAiplatformV1IndexDatapointRestriction++; + if (buildCounterGoogleCloudAiplatformV1IndexDatapointRestriction < 3) { + o.allowList = buildUnnamed199(); + o.denyList = buildUnnamed200(); + o.namespace = 'foo'; } - buildCounterGoogleCloudAiplatformV1ListIndexesResponse--; + buildCounterGoogleCloudAiplatformV1IndexDatapointRestriction--; return o; } -void checkGoogleCloudAiplatformV1ListIndexesResponse( - api.GoogleCloudAiplatformV1ListIndexesResponse o, +void checkGoogleCloudAiplatformV1IndexDatapointRestriction( + api.GoogleCloudAiplatformV1IndexDatapointRestriction o, ) { - buildCounterGoogleCloudAiplatformV1ListIndexesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListIndexesResponse < 3) { - checkUnnamed208(o.indexes!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1IndexDatapointRestriction++; + if (buildCounterGoogleCloudAiplatformV1IndexDatapointRestriction < 3) { + checkUnnamed199(o.allowList!); + checkUnnamed200(o.denyList!); + unittest.expect(o.namespace!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListIndexesResponse--; + buildCounterGoogleCloudAiplatformV1IndexDatapointRestriction--; } -core.List buildUnnamed209() => [ - buildGoogleCloudAiplatformV1MetadataSchema(), - buildGoogleCloudAiplatformV1MetadataSchema(), -]; +core.List buildUnnamed201() => ['foo', 'foo']; -void checkUnnamed209(core.List o) { +void checkUnnamed201(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1MetadataSchema(o[0]); - checkGoogleCloudAiplatformV1MetadataSchema(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ListMetadataSchemasResponse = 0; -api.GoogleCloudAiplatformV1ListMetadataSchemasResponse -buildGoogleCloudAiplatformV1ListMetadataSchemasResponse() { - final o = api.GoogleCloudAiplatformV1ListMetadataSchemasResponse(); - buildCounterGoogleCloudAiplatformV1ListMetadataSchemasResponse++; - if (buildCounterGoogleCloudAiplatformV1ListMetadataSchemasResponse < 3) { - o.metadataSchemas = buildUnnamed209(); - o.nextPageToken = 'foo'; +core.List buildUnnamed202() => [42.0, 42.0]; + +void checkUnnamed202(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals(42.0)); + unittest.expect(o[1], unittest.equals(42.0)); +} + +core.int buildCounterGoogleCloudAiplatformV1IndexDatapointSparseEmbedding = 0; +api.GoogleCloudAiplatformV1IndexDatapointSparseEmbedding +buildGoogleCloudAiplatformV1IndexDatapointSparseEmbedding() { + final o = api.GoogleCloudAiplatformV1IndexDatapointSparseEmbedding(); + buildCounterGoogleCloudAiplatformV1IndexDatapointSparseEmbedding++; + if (buildCounterGoogleCloudAiplatformV1IndexDatapointSparseEmbedding < 3) { + o.dimensions = buildUnnamed201(); + o.values = buildUnnamed202(); } - buildCounterGoogleCloudAiplatformV1ListMetadataSchemasResponse--; + buildCounterGoogleCloudAiplatformV1IndexDatapointSparseEmbedding--; return o; } -void checkGoogleCloudAiplatformV1ListMetadataSchemasResponse( - api.GoogleCloudAiplatformV1ListMetadataSchemasResponse o, +void checkGoogleCloudAiplatformV1IndexDatapointSparseEmbedding( + api.GoogleCloudAiplatformV1IndexDatapointSparseEmbedding o, ) { - buildCounterGoogleCloudAiplatformV1ListMetadataSchemasResponse++; - if (buildCounterGoogleCloudAiplatformV1ListMetadataSchemasResponse < 3) { - checkUnnamed209(o.metadataSchemas!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1IndexDatapointSparseEmbedding++; + if (buildCounterGoogleCloudAiplatformV1IndexDatapointSparseEmbedding < 3) { + checkUnnamed201(o.dimensions!); + checkUnnamed202(o.values!); } - buildCounterGoogleCloudAiplatformV1ListMetadataSchemasResponse--; + buildCounterGoogleCloudAiplatformV1IndexDatapointSparseEmbedding--; } -core.List buildUnnamed210() => [ - buildGoogleCloudAiplatformV1MetadataStore(), - buildGoogleCloudAiplatformV1MetadataStore(), +core.List buildUnnamed203() => [ + buildGoogleCloudAiplatformV1DeployedIndex(), + buildGoogleCloudAiplatformV1DeployedIndex(), ]; -void checkUnnamed210(core.List o) { +void checkUnnamed203(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1MetadataStore(o[0]); - checkGoogleCloudAiplatformV1MetadataStore(o[1]); + checkGoogleCloudAiplatformV1DeployedIndex(o[0]); + checkGoogleCloudAiplatformV1DeployedIndex(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListMetadataStoresResponse = 0; -api.GoogleCloudAiplatformV1ListMetadataStoresResponse -buildGoogleCloudAiplatformV1ListMetadataStoresResponse() { - final o = api.GoogleCloudAiplatformV1ListMetadataStoresResponse(); - buildCounterGoogleCloudAiplatformV1ListMetadataStoresResponse++; - if (buildCounterGoogleCloudAiplatformV1ListMetadataStoresResponse < 3) { - o.metadataStores = buildUnnamed210(); - o.nextPageToken = 'foo'; +core.Map buildUnnamed204() => { + 'x': 'foo', + 'y': 'foo', +}; + +void checkUnnamed204(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1IndexEndpoint = 0; +api.GoogleCloudAiplatformV1IndexEndpoint +buildGoogleCloudAiplatformV1IndexEndpoint() { + final o = api.GoogleCloudAiplatformV1IndexEndpoint(); + buildCounterGoogleCloudAiplatformV1IndexEndpoint++; + if (buildCounterGoogleCloudAiplatformV1IndexEndpoint < 3) { + o.createTime = 'foo'; + o.deployedIndexes = buildUnnamed203(); + o.description = 'foo'; + o.displayName = 'foo'; + o.enablePrivateServiceConnect = true; + o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.etag = 'foo'; + o.labels = buildUnnamed204(); + o.name = 'foo'; + o.network = 'foo'; + o.privateServiceConnectConfig = + buildGoogleCloudAiplatformV1PrivateServiceConnectConfig(); + o.publicEndpointDomainName = 'foo'; + o.publicEndpointEnabled = true; + o.satisfiesPzi = true; + o.satisfiesPzs = true; + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1ListMetadataStoresResponse--; + buildCounterGoogleCloudAiplatformV1IndexEndpoint--; return o; } -void checkGoogleCloudAiplatformV1ListMetadataStoresResponse( - api.GoogleCloudAiplatformV1ListMetadataStoresResponse o, +void checkGoogleCloudAiplatformV1IndexEndpoint( + api.GoogleCloudAiplatformV1IndexEndpoint o, ) { - buildCounterGoogleCloudAiplatformV1ListMetadataStoresResponse++; - if (buildCounterGoogleCloudAiplatformV1ListMetadataStoresResponse < 3) { - checkUnnamed210(o.metadataStores!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1IndexEndpoint++; + if (buildCounterGoogleCloudAiplatformV1IndexEndpoint < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + checkUnnamed203(o.deployedIndexes!); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.enablePrivateServiceConnect!, unittest.isTrue); + checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + unittest.expect(o.etag!, unittest.equals('foo')); + checkUnnamed204(o.labels!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.network!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1PrivateServiceConnectConfig( + o.privateServiceConnectConfig!, + ); + unittest.expect(o.publicEndpointDomainName!, unittest.equals('foo')); + unittest.expect(o.publicEndpointEnabled!, unittest.isTrue); + unittest.expect(o.satisfiesPzi!, unittest.isTrue); + unittest.expect(o.satisfiesPzs!, unittest.isTrue); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListMetadataStoresResponse--; + buildCounterGoogleCloudAiplatformV1IndexEndpoint--; } -core.List -buildUnnamed211() => [ - buildGoogleCloudAiplatformV1ModelDeploymentMonitoringJob(), - buildGoogleCloudAiplatformV1ModelDeploymentMonitoringJob(), -]; +core.List buildUnnamed205() => + [ + buildGoogleCloudAiplatformV1PscAutomatedEndpoints(), + buildGoogleCloudAiplatformV1PscAutomatedEndpoints(), + ]; -void checkUnnamed211( - core.List o, +void checkUnnamed205( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ModelDeploymentMonitoringJob(o[0]); - checkGoogleCloudAiplatformV1ModelDeploymentMonitoringJob(o[1]); + checkGoogleCloudAiplatformV1PscAutomatedEndpoints(o[0]); + checkGoogleCloudAiplatformV1PscAutomatedEndpoints(o[1]); } -core.int -buildCounterGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse = - 0; -api.GoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse -buildGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse() { - final o = - api.GoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse(); - buildCounterGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse < - 3) { - o.modelDeploymentMonitoringJobs = buildUnnamed211(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1IndexPrivateEndpoints = 0; +api.GoogleCloudAiplatformV1IndexPrivateEndpoints +buildGoogleCloudAiplatformV1IndexPrivateEndpoints() { + final o = api.GoogleCloudAiplatformV1IndexPrivateEndpoints(); + buildCounterGoogleCloudAiplatformV1IndexPrivateEndpoints++; + if (buildCounterGoogleCloudAiplatformV1IndexPrivateEndpoints < 3) { + o.matchGrpcAddress = 'foo'; + o.pscAutomatedEndpoints = buildUnnamed205(); + o.serviceAttachment = 'foo'; } - buildCounterGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse--; + buildCounterGoogleCloudAiplatformV1IndexPrivateEndpoints--; return o; } -void checkGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse( - api.GoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse o, +void checkGoogleCloudAiplatformV1IndexPrivateEndpoints( + api.GoogleCloudAiplatformV1IndexPrivateEndpoints o, ) { - buildCounterGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse < - 3) { - checkUnnamed211(o.modelDeploymentMonitoringJobs!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1IndexPrivateEndpoints++; + if (buildCounterGoogleCloudAiplatformV1IndexPrivateEndpoints < 3) { + unittest.expect(o.matchGrpcAddress!, unittest.equals('foo')); + checkUnnamed205(o.pscAutomatedEndpoints!); + unittest.expect(o.serviceAttachment!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse--; + buildCounterGoogleCloudAiplatformV1IndexPrivateEndpoints--; } -core.List buildUnnamed212() => - [ - buildGoogleCloudAiplatformV1ModelEvaluationSlice(), - buildGoogleCloudAiplatformV1ModelEvaluationSlice(), - ]; +core.int buildCounterGoogleCloudAiplatformV1IndexStats = 0; +api.GoogleCloudAiplatformV1IndexStats buildGoogleCloudAiplatformV1IndexStats() { + final o = api.GoogleCloudAiplatformV1IndexStats(); + buildCounterGoogleCloudAiplatformV1IndexStats++; + if (buildCounterGoogleCloudAiplatformV1IndexStats < 3) { + o.shardsCount = 42; + o.sparseVectorsCount = 'foo'; + o.vectorsCount = 'foo'; + } + buildCounterGoogleCloudAiplatformV1IndexStats--; + return o; +} -void checkUnnamed212( - core.List o, +void checkGoogleCloudAiplatformV1IndexStats( + api.GoogleCloudAiplatformV1IndexStats o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ModelEvaluationSlice(o[0]); - checkGoogleCloudAiplatformV1ModelEvaluationSlice(o[1]); + buildCounterGoogleCloudAiplatformV1IndexStats++; + if (buildCounterGoogleCloudAiplatformV1IndexStats < 3) { + unittest.expect(o.shardsCount!, unittest.equals(42)); + unittest.expect(o.sparseVectorsCount!, unittest.equals('foo')); + unittest.expect(o.vectorsCount!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1IndexStats--; } -core.int buildCounterGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse = - 0; -api.GoogleCloudAiplatformV1ListModelEvaluationSlicesResponse -buildGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse() { - final o = api.GoogleCloudAiplatformV1ListModelEvaluationSlicesResponse(); - buildCounterGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse < - 3) { - o.modelEvaluationSlices = buildUnnamed212(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1InputDataConfig = 0; +api.GoogleCloudAiplatformV1InputDataConfig +buildGoogleCloudAiplatformV1InputDataConfig() { + final o = api.GoogleCloudAiplatformV1InputDataConfig(); + buildCounterGoogleCloudAiplatformV1InputDataConfig++; + if (buildCounterGoogleCloudAiplatformV1InputDataConfig < 3) { + o.annotationSchemaUri = 'foo'; + o.annotationsFilter = 'foo'; + o.bigqueryDestination = buildGoogleCloudAiplatformV1BigQueryDestination(); + o.datasetId = 'foo'; + o.filterSplit = buildGoogleCloudAiplatformV1FilterSplit(); + o.fractionSplit = buildGoogleCloudAiplatformV1FractionSplit(); + o.gcsDestination = buildGoogleCloudAiplatformV1GcsDestination(); + o.persistMlUseAssignment = true; + o.predefinedSplit = buildGoogleCloudAiplatformV1PredefinedSplit(); + o.savedQueryId = 'foo'; + o.stratifiedSplit = buildGoogleCloudAiplatformV1StratifiedSplit(); + o.timestampSplit = buildGoogleCloudAiplatformV1TimestampSplit(); } - buildCounterGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse--; + buildCounterGoogleCloudAiplatformV1InputDataConfig--; return o; } -void checkGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse( - api.GoogleCloudAiplatformV1ListModelEvaluationSlicesResponse o, +void checkGoogleCloudAiplatformV1InputDataConfig( + api.GoogleCloudAiplatformV1InputDataConfig o, ) { - buildCounterGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse < - 3) { - checkUnnamed212(o.modelEvaluationSlices!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1InputDataConfig++; + if (buildCounterGoogleCloudAiplatformV1InputDataConfig < 3) { + unittest.expect(o.annotationSchemaUri!, unittest.equals('foo')); + unittest.expect(o.annotationsFilter!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1BigQueryDestination(o.bigqueryDestination!); + unittest.expect(o.datasetId!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1FilterSplit(o.filterSplit!); + checkGoogleCloudAiplatformV1FractionSplit(o.fractionSplit!); + checkGoogleCloudAiplatformV1GcsDestination(o.gcsDestination!); + unittest.expect(o.persistMlUseAssignment!, unittest.isTrue); + checkGoogleCloudAiplatformV1PredefinedSplit(o.predefinedSplit!); + unittest.expect(o.savedQueryId!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1StratifiedSplit(o.stratifiedSplit!); + checkGoogleCloudAiplatformV1TimestampSplit(o.timestampSplit!); } - buildCounterGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse--; + buildCounterGoogleCloudAiplatformV1InputDataConfig--; } -core.List buildUnnamed213() => [ - buildGoogleCloudAiplatformV1ModelEvaluation(), - buildGoogleCloudAiplatformV1ModelEvaluation(), -]; +core.List buildUnnamed206() => ['foo', 'foo']; -void checkUnnamed213(core.List o) { +void checkUnnamed206(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ModelEvaluation(o[0]); - checkGoogleCloudAiplatformV1ModelEvaluation(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ListModelEvaluationsResponse = 0; -api.GoogleCloudAiplatformV1ListModelEvaluationsResponse -buildGoogleCloudAiplatformV1ListModelEvaluationsResponse() { - final o = api.GoogleCloudAiplatformV1ListModelEvaluationsResponse(); - buildCounterGoogleCloudAiplatformV1ListModelEvaluationsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListModelEvaluationsResponse < 3) { - o.modelEvaluations = buildUnnamed213(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1Int64Array = 0; +api.GoogleCloudAiplatformV1Int64Array buildGoogleCloudAiplatformV1Int64Array() { + final o = api.GoogleCloudAiplatformV1Int64Array(); + buildCounterGoogleCloudAiplatformV1Int64Array++; + if (buildCounterGoogleCloudAiplatformV1Int64Array < 3) { + o.values = buildUnnamed206(); } - buildCounterGoogleCloudAiplatformV1ListModelEvaluationsResponse--; + buildCounterGoogleCloudAiplatformV1Int64Array--; return o; } -void checkGoogleCloudAiplatformV1ListModelEvaluationsResponse( - api.GoogleCloudAiplatformV1ListModelEvaluationsResponse o, +void checkGoogleCloudAiplatformV1Int64Array( + api.GoogleCloudAiplatformV1Int64Array o, ) { - buildCounterGoogleCloudAiplatformV1ListModelEvaluationsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListModelEvaluationsResponse < 3) { - checkUnnamed213(o.modelEvaluations!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1Int64Array++; + if (buildCounterGoogleCloudAiplatformV1Int64Array < 3) { + checkUnnamed206(o.values!); } - buildCounterGoogleCloudAiplatformV1ListModelEvaluationsResponse--; + buildCounterGoogleCloudAiplatformV1Int64Array--; } -core.List -buildUnnamed214() => [ - buildGoogleCloudAiplatformV1ModelVersionCheckpoint(), - buildGoogleCloudAiplatformV1ModelVersionCheckpoint(), -]; +core.int buildCounterGoogleCloudAiplatformV1IntegratedGradientsAttribution = 0; +api.GoogleCloudAiplatformV1IntegratedGradientsAttribution +buildGoogleCloudAiplatformV1IntegratedGradientsAttribution() { + final o = api.GoogleCloudAiplatformV1IntegratedGradientsAttribution(); + buildCounterGoogleCloudAiplatformV1IntegratedGradientsAttribution++; + if (buildCounterGoogleCloudAiplatformV1IntegratedGradientsAttribution < 3) { + o.blurBaselineConfig = buildGoogleCloudAiplatformV1BlurBaselineConfig(); + o.smoothGradConfig = buildGoogleCloudAiplatformV1SmoothGradConfig(); + o.stepCount = 42; + } + buildCounterGoogleCloudAiplatformV1IntegratedGradientsAttribution--; + return o; +} -void checkUnnamed214( - core.List o, +void checkGoogleCloudAiplatformV1IntegratedGradientsAttribution( + api.GoogleCloudAiplatformV1IntegratedGradientsAttribution o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ModelVersionCheckpoint(o[0]); - checkGoogleCloudAiplatformV1ModelVersionCheckpoint(o[1]); + buildCounterGoogleCloudAiplatformV1IntegratedGradientsAttribution++; + if (buildCounterGoogleCloudAiplatformV1IntegratedGradientsAttribution < 3) { + checkGoogleCloudAiplatformV1BlurBaselineConfig(o.blurBaselineConfig!); + checkGoogleCloudAiplatformV1SmoothGradConfig(o.smoothGradConfig!); + unittest.expect(o.stepCount!, unittest.equals(42)); + } + buildCounterGoogleCloudAiplatformV1IntegratedGradientsAttribution--; } -core.int -buildCounterGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse = 0; -api.GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse -buildGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse() { - final o = api.GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse(); - buildCounterGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse < - 3) { - o.checkpoints = buildUnnamed214(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1InvokeRequest = 0; +api.GoogleCloudAiplatformV1InvokeRequest +buildGoogleCloudAiplatformV1InvokeRequest() { + final o = api.GoogleCloudAiplatformV1InvokeRequest(); + buildCounterGoogleCloudAiplatformV1InvokeRequest++; + if (buildCounterGoogleCloudAiplatformV1InvokeRequest < 3) { + o.deployedModelId = 'foo'; + o.httpBody = buildGoogleApiHttpBody(); } - buildCounterGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse--; + buildCounterGoogleCloudAiplatformV1InvokeRequest--; return o; } -void checkGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse( - api.GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse o, +void checkGoogleCloudAiplatformV1InvokeRequest( + api.GoogleCloudAiplatformV1InvokeRequest o, ) { - buildCounterGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse < - 3) { - checkUnnamed214(o.checkpoints!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1InvokeRequest++; + if (buildCounterGoogleCloudAiplatformV1InvokeRequest < 3) { + unittest.expect(o.deployedModelId!, unittest.equals('foo')); + checkGoogleApiHttpBody(o.httpBody!); } - buildCounterGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse--; + buildCounterGoogleCloudAiplatformV1InvokeRequest--; } -core.List buildUnnamed215() => [ - buildGoogleCloudAiplatformV1Model(), - buildGoogleCloudAiplatformV1Model(), -]; +core.List buildUnnamed207() => + [ + buildGoogleCloudAiplatformV1JiraSourceJiraQueries(), + buildGoogleCloudAiplatformV1JiraSourceJiraQueries(), + ]; -void checkUnnamed215(core.List o) { +void checkUnnamed207( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Model(o[0]); - checkGoogleCloudAiplatformV1Model(o[1]); + checkGoogleCloudAiplatformV1JiraSourceJiraQueries(o[0]); + checkGoogleCloudAiplatformV1JiraSourceJiraQueries(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListModelVersionsResponse = 0; -api.GoogleCloudAiplatformV1ListModelVersionsResponse -buildGoogleCloudAiplatformV1ListModelVersionsResponse() { - final o = api.GoogleCloudAiplatformV1ListModelVersionsResponse(); - buildCounterGoogleCloudAiplatformV1ListModelVersionsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListModelVersionsResponse < 3) { - o.models = buildUnnamed215(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1JiraSource = 0; +api.GoogleCloudAiplatformV1JiraSource buildGoogleCloudAiplatformV1JiraSource() { + final o = api.GoogleCloudAiplatformV1JiraSource(); + buildCounterGoogleCloudAiplatformV1JiraSource++; + if (buildCounterGoogleCloudAiplatformV1JiraSource < 3) { + o.jiraQueries = buildUnnamed207(); } - buildCounterGoogleCloudAiplatformV1ListModelVersionsResponse--; + buildCounterGoogleCloudAiplatformV1JiraSource--; return o; } -void checkGoogleCloudAiplatformV1ListModelVersionsResponse( - api.GoogleCloudAiplatformV1ListModelVersionsResponse o, +void checkGoogleCloudAiplatformV1JiraSource( + api.GoogleCloudAiplatformV1JiraSource o, ) { - buildCounterGoogleCloudAiplatformV1ListModelVersionsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListModelVersionsResponse < 3) { - checkUnnamed215(o.models!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1JiraSource++; + if (buildCounterGoogleCloudAiplatformV1JiraSource < 3) { + checkUnnamed207(o.jiraQueries!); } - buildCounterGoogleCloudAiplatformV1ListModelVersionsResponse--; + buildCounterGoogleCloudAiplatformV1JiraSource--; } -core.List buildUnnamed216() => [ - buildGoogleCloudAiplatformV1Model(), - buildGoogleCloudAiplatformV1Model(), -]; +core.List buildUnnamed208() => ['foo', 'foo']; -void checkUnnamed216(core.List o) { +void checkUnnamed208(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Model(o[0]); - checkGoogleCloudAiplatformV1Model(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ListModelsResponse = 0; -api.GoogleCloudAiplatformV1ListModelsResponse -buildGoogleCloudAiplatformV1ListModelsResponse() { - final o = api.GoogleCloudAiplatformV1ListModelsResponse(); - buildCounterGoogleCloudAiplatformV1ListModelsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListModelsResponse < 3) { - o.models = buildUnnamed216(); - o.nextPageToken = 'foo'; - } - buildCounterGoogleCloudAiplatformV1ListModelsResponse--; - return o; +core.List buildUnnamed209() => ['foo', 'foo']; + +void checkUnnamed209(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -void checkGoogleCloudAiplatformV1ListModelsResponse( - api.GoogleCloudAiplatformV1ListModelsResponse o, +core.int buildCounterGoogleCloudAiplatformV1JiraSourceJiraQueries = 0; +api.GoogleCloudAiplatformV1JiraSourceJiraQueries +buildGoogleCloudAiplatformV1JiraSourceJiraQueries() { + final o = api.GoogleCloudAiplatformV1JiraSourceJiraQueries(); + buildCounterGoogleCloudAiplatformV1JiraSourceJiraQueries++; + if (buildCounterGoogleCloudAiplatformV1JiraSourceJiraQueries < 3) { + o.apiKeyConfig = buildGoogleCloudAiplatformV1ApiAuthApiKeyConfig(); + o.customQueries = buildUnnamed208(); + o.email = 'foo'; + o.projects = buildUnnamed209(); + o.serverUri = 'foo'; + } + buildCounterGoogleCloudAiplatformV1JiraSourceJiraQueries--; + return o; +} + +void checkGoogleCloudAiplatformV1JiraSourceJiraQueries( + api.GoogleCloudAiplatformV1JiraSourceJiraQueries o, ) { - buildCounterGoogleCloudAiplatformV1ListModelsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListModelsResponse < 3) { - checkUnnamed216(o.models!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1JiraSourceJiraQueries++; + if (buildCounterGoogleCloudAiplatformV1JiraSourceJiraQueries < 3) { + checkGoogleCloudAiplatformV1ApiAuthApiKeyConfig(o.apiKeyConfig!); + checkUnnamed208(o.customQueries!); + unittest.expect(o.email!, unittest.equals('foo')); + checkUnnamed209(o.projects!); + unittest.expect(o.serverUri!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListModelsResponse--; + buildCounterGoogleCloudAiplatformV1JiraSourceJiraQueries--; } -core.List buildUnnamed217() => [ - buildGoogleCloudAiplatformV1NasJob(), - buildGoogleCloudAiplatformV1NasJob(), -]; +core.Map buildUnnamed210() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; -void checkUnnamed217(core.List o) { +void checkUnnamed210(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1NasJob(o[0]); - checkGoogleCloudAiplatformV1NasJob(o[1]); + var casted63 = (o['x']!) as core.Map; + unittest.expect(casted63, unittest.hasLength(3)); + unittest.expect(casted63['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted63['bool'], unittest.equals(true)); + unittest.expect(casted63['string'], unittest.equals('foo')); + var casted64 = (o['y']!) as core.Map; + unittest.expect(casted64, unittest.hasLength(3)); + unittest.expect(casted64['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted64['bool'], unittest.equals(true)); + unittest.expect(casted64['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ListNasJobsResponse = 0; -api.GoogleCloudAiplatformV1ListNasJobsResponse -buildGoogleCloudAiplatformV1ListNasJobsResponse() { - final o = api.GoogleCloudAiplatformV1ListNasJobsResponse(); - buildCounterGoogleCloudAiplatformV1ListNasJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListNasJobsResponse < 3) { - o.nasJobs = buildUnnamed217(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1LLMBasedMetricSpec = 0; +api.GoogleCloudAiplatformV1LLMBasedMetricSpec +buildGoogleCloudAiplatformV1LLMBasedMetricSpec() { + final o = api.GoogleCloudAiplatformV1LLMBasedMetricSpec(); + buildCounterGoogleCloudAiplatformV1LLMBasedMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1LLMBasedMetricSpec < 3) { + o.additionalConfig = buildUnnamed210(); + o.judgeAutoraterConfig = buildGoogleCloudAiplatformV1AutoraterConfig(); + o.metricPromptTemplate = 'foo'; + o.predefinedRubricGenerationSpec = + buildGoogleCloudAiplatformV1PredefinedMetricSpec(); + o.rubricGenerationSpec = buildGoogleCloudAiplatformV1RubricGenerationSpec(); + o.rubricGroupKey = 'foo'; + o.systemInstruction = 'foo'; } - buildCounterGoogleCloudAiplatformV1ListNasJobsResponse--; + buildCounterGoogleCloudAiplatformV1LLMBasedMetricSpec--; return o; } -void checkGoogleCloudAiplatformV1ListNasJobsResponse( - api.GoogleCloudAiplatformV1ListNasJobsResponse o, +void checkGoogleCloudAiplatformV1LLMBasedMetricSpec( + api.GoogleCloudAiplatformV1LLMBasedMetricSpec o, ) { - buildCounterGoogleCloudAiplatformV1ListNasJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListNasJobsResponse < 3) { - checkUnnamed217(o.nasJobs!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1LLMBasedMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1LLMBasedMetricSpec < 3) { + checkUnnamed210(o.additionalConfig!); + checkGoogleCloudAiplatformV1AutoraterConfig(o.judgeAutoraterConfig!); + unittest.expect(o.metricPromptTemplate!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1PredefinedMetricSpec( + o.predefinedRubricGenerationSpec!, + ); + checkGoogleCloudAiplatformV1RubricGenerationSpec(o.rubricGenerationSpec!); + unittest.expect(o.rubricGroupKey!, unittest.equals('foo')); + unittest.expect(o.systemInstruction!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListNasJobsResponse--; -} - -core.List buildUnnamed218() => [ - buildGoogleCloudAiplatformV1NasTrialDetail(), - buildGoogleCloudAiplatformV1NasTrialDetail(), -]; - -void checkUnnamed218(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1NasTrialDetail(o[0]); - checkGoogleCloudAiplatformV1NasTrialDetail(o[1]); + buildCounterGoogleCloudAiplatformV1LLMBasedMetricSpec--; } -core.int buildCounterGoogleCloudAiplatformV1ListNasTrialDetailsResponse = 0; -api.GoogleCloudAiplatformV1ListNasTrialDetailsResponse -buildGoogleCloudAiplatformV1ListNasTrialDetailsResponse() { - final o = api.GoogleCloudAiplatformV1ListNasTrialDetailsResponse(); - buildCounterGoogleCloudAiplatformV1ListNasTrialDetailsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListNasTrialDetailsResponse < 3) { - o.nasTrialDetails = buildUnnamed218(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1LargeModelReference = 0; +api.GoogleCloudAiplatformV1LargeModelReference +buildGoogleCloudAiplatformV1LargeModelReference() { + final o = api.GoogleCloudAiplatformV1LargeModelReference(); + buildCounterGoogleCloudAiplatformV1LargeModelReference++; + if (buildCounterGoogleCloudAiplatformV1LargeModelReference < 3) { + o.name = 'foo'; } - buildCounterGoogleCloudAiplatformV1ListNasTrialDetailsResponse--; + buildCounterGoogleCloudAiplatformV1LargeModelReference--; return o; } -void checkGoogleCloudAiplatformV1ListNasTrialDetailsResponse( - api.GoogleCloudAiplatformV1ListNasTrialDetailsResponse o, +void checkGoogleCloudAiplatformV1LargeModelReference( + api.GoogleCloudAiplatformV1LargeModelReference o, ) { - buildCounterGoogleCloudAiplatformV1ListNasTrialDetailsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListNasTrialDetailsResponse < 3) { - checkUnnamed218(o.nasTrialDetails!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1LargeModelReference++; + if (buildCounterGoogleCloudAiplatformV1LargeModelReference < 3) { + unittest.expect(o.name!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListNasTrialDetailsResponse--; + buildCounterGoogleCloudAiplatformV1LargeModelReference--; } -core.List buildUnnamed219() => - [ - buildGoogleCloudAiplatformV1NotebookExecutionJob(), - buildGoogleCloudAiplatformV1NotebookExecutionJob(), - ]; +core.List buildUnnamed211() => [ + buildGoogleCloudAiplatformV1Artifact(), + buildGoogleCloudAiplatformV1Artifact(), +]; -void checkUnnamed219( - core.List o, -) { +void checkUnnamed211(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1NotebookExecutionJob(o[0]); - checkGoogleCloudAiplatformV1NotebookExecutionJob(o[1]); + checkGoogleCloudAiplatformV1Artifact(o[0]); + checkGoogleCloudAiplatformV1Artifact(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse = - 0; -api.GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse -buildGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse() { - final o = api.GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse(); - buildCounterGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse < - 3) { - o.nextPageToken = 'foo'; - o.notebookExecutionJobs = buildUnnamed219(); - } - buildCounterGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse--; - return o; -} +core.List buildUnnamed212() => [ + buildGoogleCloudAiplatformV1Event(), + buildGoogleCloudAiplatformV1Event(), +]; -void checkGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse( - api.GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse o, -) { - buildCounterGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse < - 3) { - unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed219(o.notebookExecutionJobs!); - } - buildCounterGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse--; +void checkUnnamed212(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Event(o[0]); + checkGoogleCloudAiplatformV1Event(o[1]); } -core.List -buildUnnamed220() => [ - buildGoogleCloudAiplatformV1NotebookRuntimeTemplate(), - buildGoogleCloudAiplatformV1NotebookRuntimeTemplate(), +core.List buildUnnamed213() => [ + buildGoogleCloudAiplatformV1Execution(), + buildGoogleCloudAiplatformV1Execution(), ]; -void checkUnnamed220( - core.List o, -) { +void checkUnnamed213(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1NotebookRuntimeTemplate(o[0]); - checkGoogleCloudAiplatformV1NotebookRuntimeTemplate(o[1]); + checkGoogleCloudAiplatformV1Execution(o[0]); + checkGoogleCloudAiplatformV1Execution(o[1]); } -core.int -buildCounterGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse = 0; -api.GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse -buildGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse() { - final o = api.GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse(); - buildCounterGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse < - 3) { - o.nextPageToken = 'foo'; - o.notebookRuntimeTemplates = buildUnnamed220(); +core.int buildCounterGoogleCloudAiplatformV1LineageSubgraph = 0; +api.GoogleCloudAiplatformV1LineageSubgraph +buildGoogleCloudAiplatformV1LineageSubgraph() { + final o = api.GoogleCloudAiplatformV1LineageSubgraph(); + buildCounterGoogleCloudAiplatformV1LineageSubgraph++; + if (buildCounterGoogleCloudAiplatformV1LineageSubgraph < 3) { + o.artifacts = buildUnnamed211(); + o.events = buildUnnamed212(); + o.executions = buildUnnamed213(); } - buildCounterGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse--; + buildCounterGoogleCloudAiplatformV1LineageSubgraph--; return o; } -void checkGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse( - api.GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse o, +void checkGoogleCloudAiplatformV1LineageSubgraph( + api.GoogleCloudAiplatformV1LineageSubgraph o, ) { - buildCounterGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse < - 3) { - unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed220(o.notebookRuntimeTemplates!); + buildCounterGoogleCloudAiplatformV1LineageSubgraph++; + if (buildCounterGoogleCloudAiplatformV1LineageSubgraph < 3) { + checkUnnamed211(o.artifacts!); + checkUnnamed212(o.events!); + checkUnnamed213(o.executions!); } - buildCounterGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse--; + buildCounterGoogleCloudAiplatformV1LineageSubgraph--; } -core.List buildUnnamed221() => [ - buildGoogleCloudAiplatformV1NotebookRuntime(), - buildGoogleCloudAiplatformV1NotebookRuntime(), +core.List buildUnnamed214() => [ + buildGoogleCloudAiplatformV1Annotation(), + buildGoogleCloudAiplatformV1Annotation(), ]; -void checkUnnamed221(core.List o) { +void checkUnnamed214(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1NotebookRuntime(o[0]); - checkGoogleCloudAiplatformV1NotebookRuntime(o[1]); + checkGoogleCloudAiplatformV1Annotation(o[0]); + checkGoogleCloudAiplatformV1Annotation(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListNotebookRuntimesResponse = 0; -api.GoogleCloudAiplatformV1ListNotebookRuntimesResponse -buildGoogleCloudAiplatformV1ListNotebookRuntimesResponse() { - final o = api.GoogleCloudAiplatformV1ListNotebookRuntimesResponse(); - buildCounterGoogleCloudAiplatformV1ListNotebookRuntimesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListNotebookRuntimesResponse < 3) { +core.int buildCounterGoogleCloudAiplatformV1ListAnnotationsResponse = 0; +api.GoogleCloudAiplatformV1ListAnnotationsResponse +buildGoogleCloudAiplatformV1ListAnnotationsResponse() { + final o = api.GoogleCloudAiplatformV1ListAnnotationsResponse(); + buildCounterGoogleCloudAiplatformV1ListAnnotationsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListAnnotationsResponse < 3) { + o.annotations = buildUnnamed214(); o.nextPageToken = 'foo'; - o.notebookRuntimes = buildUnnamed221(); } - buildCounterGoogleCloudAiplatformV1ListNotebookRuntimesResponse--; + buildCounterGoogleCloudAiplatformV1ListAnnotationsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListNotebookRuntimesResponse( - api.GoogleCloudAiplatformV1ListNotebookRuntimesResponse o, +void checkGoogleCloudAiplatformV1ListAnnotationsResponse( + api.GoogleCloudAiplatformV1ListAnnotationsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListNotebookRuntimesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListNotebookRuntimesResponse < 3) { + buildCounterGoogleCloudAiplatformV1ListAnnotationsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListAnnotationsResponse < 3) { + checkUnnamed214(o.annotations!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed221(o.notebookRuntimes!); } - buildCounterGoogleCloudAiplatformV1ListNotebookRuntimesResponse--; -} - -core.int buildCounterGoogleCloudAiplatformV1ListOptimalTrialsRequest = 0; -api.GoogleCloudAiplatformV1ListOptimalTrialsRequest -buildGoogleCloudAiplatformV1ListOptimalTrialsRequest() { - final o = api.GoogleCloudAiplatformV1ListOptimalTrialsRequest(); - buildCounterGoogleCloudAiplatformV1ListOptimalTrialsRequest++; - if (buildCounterGoogleCloudAiplatformV1ListOptimalTrialsRequest < 3) {} - buildCounterGoogleCloudAiplatformV1ListOptimalTrialsRequest--; - return o; -} - -void checkGoogleCloudAiplatformV1ListOptimalTrialsRequest( - api.GoogleCloudAiplatformV1ListOptimalTrialsRequest o, -) { - buildCounterGoogleCloudAiplatformV1ListOptimalTrialsRequest++; - if (buildCounterGoogleCloudAiplatformV1ListOptimalTrialsRequest < 3) {} - buildCounterGoogleCloudAiplatformV1ListOptimalTrialsRequest--; + buildCounterGoogleCloudAiplatformV1ListAnnotationsResponse--; } -core.List buildUnnamed222() => [ - buildGoogleCloudAiplatformV1Trial(), - buildGoogleCloudAiplatformV1Trial(), +core.List buildUnnamed215() => [ + buildGoogleCloudAiplatformV1Artifact(), + buildGoogleCloudAiplatformV1Artifact(), ]; -void checkUnnamed222(core.List o) { +void checkUnnamed215(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Trial(o[0]); - checkGoogleCloudAiplatformV1Trial(o[1]); + checkGoogleCloudAiplatformV1Artifact(o[0]); + checkGoogleCloudAiplatformV1Artifact(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListOptimalTrialsResponse = 0; -api.GoogleCloudAiplatformV1ListOptimalTrialsResponse -buildGoogleCloudAiplatformV1ListOptimalTrialsResponse() { - final o = api.GoogleCloudAiplatformV1ListOptimalTrialsResponse(); - buildCounterGoogleCloudAiplatformV1ListOptimalTrialsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListOptimalTrialsResponse < 3) { - o.optimalTrials = buildUnnamed222(); +core.int buildCounterGoogleCloudAiplatformV1ListArtifactsResponse = 0; +api.GoogleCloudAiplatformV1ListArtifactsResponse +buildGoogleCloudAiplatformV1ListArtifactsResponse() { + final o = api.GoogleCloudAiplatformV1ListArtifactsResponse(); + buildCounterGoogleCloudAiplatformV1ListArtifactsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListArtifactsResponse < 3) { + o.artifacts = buildUnnamed215(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1ListOptimalTrialsResponse--; + buildCounterGoogleCloudAiplatformV1ListArtifactsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListOptimalTrialsResponse( - api.GoogleCloudAiplatformV1ListOptimalTrialsResponse o, +void checkGoogleCloudAiplatformV1ListArtifactsResponse( + api.GoogleCloudAiplatformV1ListArtifactsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListOptimalTrialsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListOptimalTrialsResponse < 3) { - checkUnnamed222(o.optimalTrials!); + buildCounterGoogleCloudAiplatformV1ListArtifactsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListArtifactsResponse < 3) { + checkUnnamed215(o.artifacts!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ListOptimalTrialsResponse--; + buildCounterGoogleCloudAiplatformV1ListArtifactsResponse--; } -core.List buildUnnamed223() => [ - buildGoogleCloudAiplatformV1PersistentResource(), - buildGoogleCloudAiplatformV1PersistentResource(), +core.List buildUnnamed216() => [ + buildGoogleCloudAiplatformV1BatchPredictionJob(), + buildGoogleCloudAiplatformV1BatchPredictionJob(), ]; -void checkUnnamed223( - core.List o, +void checkUnnamed216( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1PersistentResource(o[0]); - checkGoogleCloudAiplatformV1PersistentResource(o[1]); + checkGoogleCloudAiplatformV1BatchPredictionJob(o[0]); + checkGoogleCloudAiplatformV1BatchPredictionJob(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListPersistentResourcesResponse = 0; -api.GoogleCloudAiplatformV1ListPersistentResourcesResponse -buildGoogleCloudAiplatformV1ListPersistentResourcesResponse() { - final o = api.GoogleCloudAiplatformV1ListPersistentResourcesResponse(); - buildCounterGoogleCloudAiplatformV1ListPersistentResourcesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListPersistentResourcesResponse < 3) { +core.int buildCounterGoogleCloudAiplatformV1ListBatchPredictionJobsResponse = 0; +api.GoogleCloudAiplatformV1ListBatchPredictionJobsResponse +buildGoogleCloudAiplatformV1ListBatchPredictionJobsResponse() { + final o = api.GoogleCloudAiplatformV1ListBatchPredictionJobsResponse(); + buildCounterGoogleCloudAiplatformV1ListBatchPredictionJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListBatchPredictionJobsResponse < 3) { + o.batchPredictionJobs = buildUnnamed216(); o.nextPageToken = 'foo'; - o.persistentResources = buildUnnamed223(); } - buildCounterGoogleCloudAiplatformV1ListPersistentResourcesResponse--; + buildCounterGoogleCloudAiplatformV1ListBatchPredictionJobsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListPersistentResourcesResponse( - api.GoogleCloudAiplatformV1ListPersistentResourcesResponse o, +void checkGoogleCloudAiplatformV1ListBatchPredictionJobsResponse( + api.GoogleCloudAiplatformV1ListBatchPredictionJobsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListPersistentResourcesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListPersistentResourcesResponse < 3) { + buildCounterGoogleCloudAiplatformV1ListBatchPredictionJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListBatchPredictionJobsResponse < 3) { + checkUnnamed216(o.batchPredictionJobs!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed223(o.persistentResources!); } - buildCounterGoogleCloudAiplatformV1ListPersistentResourcesResponse--; + buildCounterGoogleCloudAiplatformV1ListBatchPredictionJobsResponse--; } -core.List buildUnnamed224() => [ - buildGoogleCloudAiplatformV1PipelineJob(), - buildGoogleCloudAiplatformV1PipelineJob(), +core.List buildUnnamed217() => [ + buildGoogleCloudAiplatformV1CachedContent(), + buildGoogleCloudAiplatformV1CachedContent(), ]; -void checkUnnamed224(core.List o) { +void checkUnnamed217(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1PipelineJob(o[0]); - checkGoogleCloudAiplatformV1PipelineJob(o[1]); + checkGoogleCloudAiplatformV1CachedContent(o[0]); + checkGoogleCloudAiplatformV1CachedContent(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListPipelineJobsResponse = 0; -api.GoogleCloudAiplatformV1ListPipelineJobsResponse -buildGoogleCloudAiplatformV1ListPipelineJobsResponse() { - final o = api.GoogleCloudAiplatformV1ListPipelineJobsResponse(); - buildCounterGoogleCloudAiplatformV1ListPipelineJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListPipelineJobsResponse < 3) { +core.int buildCounterGoogleCloudAiplatformV1ListCachedContentsResponse = 0; +api.GoogleCloudAiplatformV1ListCachedContentsResponse +buildGoogleCloudAiplatformV1ListCachedContentsResponse() { + final o = api.GoogleCloudAiplatformV1ListCachedContentsResponse(); + buildCounterGoogleCloudAiplatformV1ListCachedContentsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListCachedContentsResponse < 3) { + o.cachedContents = buildUnnamed217(); o.nextPageToken = 'foo'; - o.pipelineJobs = buildUnnamed224(); } - buildCounterGoogleCloudAiplatformV1ListPipelineJobsResponse--; + buildCounterGoogleCloudAiplatformV1ListCachedContentsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListPipelineJobsResponse( - api.GoogleCloudAiplatformV1ListPipelineJobsResponse o, +void checkGoogleCloudAiplatformV1ListCachedContentsResponse( + api.GoogleCloudAiplatformV1ListCachedContentsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListPipelineJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListPipelineJobsResponse < 3) { + buildCounterGoogleCloudAiplatformV1ListCachedContentsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListCachedContentsResponse < 3) { + checkUnnamed217(o.cachedContents!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed224(o.pipelineJobs!); } - buildCounterGoogleCloudAiplatformV1ListPipelineJobsResponse--; + buildCounterGoogleCloudAiplatformV1ListCachedContentsResponse--; } -core.List buildUnnamed225() => [ - buildGoogleCloudAiplatformV1RagCorpus(), - buildGoogleCloudAiplatformV1RagCorpus(), +core.List buildUnnamed218() => [ + buildGoogleCloudAiplatformV1Context(), + buildGoogleCloudAiplatformV1Context(), ]; -void checkUnnamed225(core.List o) { +void checkUnnamed218(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1RagCorpus(o[0]); - checkGoogleCloudAiplatformV1RagCorpus(o[1]); + checkGoogleCloudAiplatformV1Context(o[0]); + checkGoogleCloudAiplatformV1Context(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListRagCorporaResponse = 0; -api.GoogleCloudAiplatformV1ListRagCorporaResponse -buildGoogleCloudAiplatformV1ListRagCorporaResponse() { - final o = api.GoogleCloudAiplatformV1ListRagCorporaResponse(); - buildCounterGoogleCloudAiplatformV1ListRagCorporaResponse++; - if (buildCounterGoogleCloudAiplatformV1ListRagCorporaResponse < 3) { +core.int buildCounterGoogleCloudAiplatformV1ListContextsResponse = 0; +api.GoogleCloudAiplatformV1ListContextsResponse +buildGoogleCloudAiplatformV1ListContextsResponse() { + final o = api.GoogleCloudAiplatformV1ListContextsResponse(); + buildCounterGoogleCloudAiplatformV1ListContextsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListContextsResponse < 3) { + o.contexts = buildUnnamed218(); o.nextPageToken = 'foo'; - o.ragCorpora = buildUnnamed225(); } - buildCounterGoogleCloudAiplatformV1ListRagCorporaResponse--; + buildCounterGoogleCloudAiplatformV1ListContextsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListRagCorporaResponse( - api.GoogleCloudAiplatformV1ListRagCorporaResponse o, +void checkGoogleCloudAiplatformV1ListContextsResponse( + api.GoogleCloudAiplatformV1ListContextsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListRagCorporaResponse++; - if (buildCounterGoogleCloudAiplatformV1ListRagCorporaResponse < 3) { + buildCounterGoogleCloudAiplatformV1ListContextsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListContextsResponse < 3) { + checkUnnamed218(o.contexts!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed225(o.ragCorpora!); } - buildCounterGoogleCloudAiplatformV1ListRagCorporaResponse--; + buildCounterGoogleCloudAiplatformV1ListContextsResponse--; } -core.List buildUnnamed226() => [ - buildGoogleCloudAiplatformV1RagFile(), - buildGoogleCloudAiplatformV1RagFile(), +core.List buildUnnamed219() => [ + buildGoogleCloudAiplatformV1CustomJob(), + buildGoogleCloudAiplatformV1CustomJob(), ]; -void checkUnnamed226(core.List o) { +void checkUnnamed219(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1RagFile(o[0]); - checkGoogleCloudAiplatformV1RagFile(o[1]); + checkGoogleCloudAiplatformV1CustomJob(o[0]); + checkGoogleCloudAiplatformV1CustomJob(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListRagFilesResponse = 0; -api.GoogleCloudAiplatformV1ListRagFilesResponse -buildGoogleCloudAiplatformV1ListRagFilesResponse() { - final o = api.GoogleCloudAiplatformV1ListRagFilesResponse(); - buildCounterGoogleCloudAiplatformV1ListRagFilesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListRagFilesResponse < 3) { +core.int buildCounterGoogleCloudAiplatformV1ListCustomJobsResponse = 0; +api.GoogleCloudAiplatformV1ListCustomJobsResponse +buildGoogleCloudAiplatformV1ListCustomJobsResponse() { + final o = api.GoogleCloudAiplatformV1ListCustomJobsResponse(); + buildCounterGoogleCloudAiplatformV1ListCustomJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListCustomJobsResponse < 3) { + o.customJobs = buildUnnamed219(); o.nextPageToken = 'foo'; - o.ragFiles = buildUnnamed226(); } - buildCounterGoogleCloudAiplatformV1ListRagFilesResponse--; + buildCounterGoogleCloudAiplatformV1ListCustomJobsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListRagFilesResponse( - api.GoogleCloudAiplatformV1ListRagFilesResponse o, +void checkGoogleCloudAiplatformV1ListCustomJobsResponse( + api.GoogleCloudAiplatformV1ListCustomJobsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListRagFilesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListRagFilesResponse < 3) { + buildCounterGoogleCloudAiplatformV1ListCustomJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListCustomJobsResponse < 3) { + checkUnnamed219(o.customJobs!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed226(o.ragFiles!); } - buildCounterGoogleCloudAiplatformV1ListRagFilesResponse--; + buildCounterGoogleCloudAiplatformV1ListCustomJobsResponse--; } -core.List buildUnnamed227() => [ - buildGoogleCloudAiplatformV1ReasoningEngine(), - buildGoogleCloudAiplatformV1ReasoningEngine(), +core.List buildUnnamed220() => [ + buildGoogleCloudAiplatformV1DataItem(), + buildGoogleCloudAiplatformV1DataItem(), ]; -void checkUnnamed227(core.List o) { +void checkUnnamed220(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ReasoningEngine(o[0]); - checkGoogleCloudAiplatformV1ReasoningEngine(o[1]); + checkGoogleCloudAiplatformV1DataItem(o[0]); + checkGoogleCloudAiplatformV1DataItem(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListReasoningEnginesResponse = 0; -api.GoogleCloudAiplatformV1ListReasoningEnginesResponse -buildGoogleCloudAiplatformV1ListReasoningEnginesResponse() { - final o = api.GoogleCloudAiplatformV1ListReasoningEnginesResponse(); - buildCounterGoogleCloudAiplatformV1ListReasoningEnginesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListReasoningEnginesResponse < 3) { +core.int buildCounterGoogleCloudAiplatformV1ListDataItemsResponse = 0; +api.GoogleCloudAiplatformV1ListDataItemsResponse +buildGoogleCloudAiplatformV1ListDataItemsResponse() { + final o = api.GoogleCloudAiplatformV1ListDataItemsResponse(); + buildCounterGoogleCloudAiplatformV1ListDataItemsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListDataItemsResponse < 3) { + o.dataItems = buildUnnamed220(); o.nextPageToken = 'foo'; - o.reasoningEngines = buildUnnamed227(); } - buildCounterGoogleCloudAiplatformV1ListReasoningEnginesResponse--; + buildCounterGoogleCloudAiplatformV1ListDataItemsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListReasoningEnginesResponse( - api.GoogleCloudAiplatformV1ListReasoningEnginesResponse o, +void checkGoogleCloudAiplatformV1ListDataItemsResponse( + api.GoogleCloudAiplatformV1ListDataItemsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListReasoningEnginesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListReasoningEnginesResponse < 3) { + buildCounterGoogleCloudAiplatformV1ListDataItemsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListDataItemsResponse < 3) { + checkUnnamed220(o.dataItems!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed227(o.reasoningEngines!); } - buildCounterGoogleCloudAiplatformV1ListReasoningEnginesResponse--; + buildCounterGoogleCloudAiplatformV1ListDataItemsResponse--; } -core.List buildUnnamed228() => [ - buildGoogleCloudAiplatformV1SavedQuery(), - buildGoogleCloudAiplatformV1SavedQuery(), +core.List buildUnnamed221() => [ + buildGoogleCloudAiplatformV1DataLabelingJob(), + buildGoogleCloudAiplatformV1DataLabelingJob(), ]; -void checkUnnamed228(core.List o) { +void checkUnnamed221(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1SavedQuery(o[0]); - checkGoogleCloudAiplatformV1SavedQuery(o[1]); + checkGoogleCloudAiplatformV1DataLabelingJob(o[0]); + checkGoogleCloudAiplatformV1DataLabelingJob(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListSavedQueriesResponse = 0; -api.GoogleCloudAiplatformV1ListSavedQueriesResponse -buildGoogleCloudAiplatformV1ListSavedQueriesResponse() { - final o = api.GoogleCloudAiplatformV1ListSavedQueriesResponse(); - buildCounterGoogleCloudAiplatformV1ListSavedQueriesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListSavedQueriesResponse < 3) { +core.int buildCounterGoogleCloudAiplatformV1ListDataLabelingJobsResponse = 0; +api.GoogleCloudAiplatformV1ListDataLabelingJobsResponse +buildGoogleCloudAiplatformV1ListDataLabelingJobsResponse() { + final o = api.GoogleCloudAiplatformV1ListDataLabelingJobsResponse(); + buildCounterGoogleCloudAiplatformV1ListDataLabelingJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListDataLabelingJobsResponse < 3) { + o.dataLabelingJobs = buildUnnamed221(); o.nextPageToken = 'foo'; - o.savedQueries = buildUnnamed228(); } - buildCounterGoogleCloudAiplatformV1ListSavedQueriesResponse--; + buildCounterGoogleCloudAiplatformV1ListDataLabelingJobsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListSavedQueriesResponse( - api.GoogleCloudAiplatformV1ListSavedQueriesResponse o, +void checkGoogleCloudAiplatformV1ListDataLabelingJobsResponse( + api.GoogleCloudAiplatformV1ListDataLabelingJobsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListSavedQueriesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListSavedQueriesResponse < 3) { + buildCounterGoogleCloudAiplatformV1ListDataLabelingJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListDataLabelingJobsResponse < 3) { + checkUnnamed221(o.dataLabelingJobs!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed228(o.savedQueries!); } - buildCounterGoogleCloudAiplatformV1ListSavedQueriesResponse--; + buildCounterGoogleCloudAiplatformV1ListDataLabelingJobsResponse--; } -core.List buildUnnamed229() => [ - buildGoogleCloudAiplatformV1Schedule(), - buildGoogleCloudAiplatformV1Schedule(), +core.List buildUnnamed222() => [ + buildGoogleCloudAiplatformV1DatasetVersion(), + buildGoogleCloudAiplatformV1DatasetVersion(), ]; -void checkUnnamed229(core.List o) { +void checkUnnamed222(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Schedule(o[0]); - checkGoogleCloudAiplatformV1Schedule(o[1]); + checkGoogleCloudAiplatformV1DatasetVersion(o[0]); + checkGoogleCloudAiplatformV1DatasetVersion(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListSchedulesResponse = 0; -api.GoogleCloudAiplatformV1ListSchedulesResponse -buildGoogleCloudAiplatformV1ListSchedulesResponse() { - final o = api.GoogleCloudAiplatformV1ListSchedulesResponse(); - buildCounterGoogleCloudAiplatformV1ListSchedulesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListSchedulesResponse < 3) { +core.int buildCounterGoogleCloudAiplatformV1ListDatasetVersionsResponse = 0; +api.GoogleCloudAiplatformV1ListDatasetVersionsResponse +buildGoogleCloudAiplatformV1ListDatasetVersionsResponse() { + final o = api.GoogleCloudAiplatformV1ListDatasetVersionsResponse(); + buildCounterGoogleCloudAiplatformV1ListDatasetVersionsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListDatasetVersionsResponse < 3) { + o.datasetVersions = buildUnnamed222(); o.nextPageToken = 'foo'; - o.schedules = buildUnnamed229(); } - buildCounterGoogleCloudAiplatformV1ListSchedulesResponse--; + buildCounterGoogleCloudAiplatformV1ListDatasetVersionsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListSchedulesResponse( - api.GoogleCloudAiplatformV1ListSchedulesResponse o, +void checkGoogleCloudAiplatformV1ListDatasetVersionsResponse( + api.GoogleCloudAiplatformV1ListDatasetVersionsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListSchedulesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListSchedulesResponse < 3) { + buildCounterGoogleCloudAiplatformV1ListDatasetVersionsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListDatasetVersionsResponse < 3) { + checkUnnamed222(o.datasetVersions!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed229(o.schedules!); } - buildCounterGoogleCloudAiplatformV1ListSchedulesResponse--; + buildCounterGoogleCloudAiplatformV1ListDatasetVersionsResponse--; } -core.List buildUnnamed230() => [ - buildGoogleCloudAiplatformV1SpecialistPool(), - buildGoogleCloudAiplatformV1SpecialistPool(), +core.List buildUnnamed223() => [ + buildGoogleCloudAiplatformV1Dataset(), + buildGoogleCloudAiplatformV1Dataset(), ]; -void checkUnnamed230(core.List o) { +void checkUnnamed223(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1SpecialistPool(o[0]); - checkGoogleCloudAiplatformV1SpecialistPool(o[1]); + checkGoogleCloudAiplatformV1Dataset(o[0]); + checkGoogleCloudAiplatformV1Dataset(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListSpecialistPoolsResponse = 0; -api.GoogleCloudAiplatformV1ListSpecialistPoolsResponse -buildGoogleCloudAiplatformV1ListSpecialistPoolsResponse() { - final o = api.GoogleCloudAiplatformV1ListSpecialistPoolsResponse(); - buildCounterGoogleCloudAiplatformV1ListSpecialistPoolsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListSpecialistPoolsResponse < 3) { +core.int buildCounterGoogleCloudAiplatformV1ListDatasetsResponse = 0; +api.GoogleCloudAiplatformV1ListDatasetsResponse +buildGoogleCloudAiplatformV1ListDatasetsResponse() { + final o = api.GoogleCloudAiplatformV1ListDatasetsResponse(); + buildCounterGoogleCloudAiplatformV1ListDatasetsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListDatasetsResponse < 3) { + o.datasets = buildUnnamed223(); o.nextPageToken = 'foo'; - o.specialistPools = buildUnnamed230(); } - buildCounterGoogleCloudAiplatformV1ListSpecialistPoolsResponse--; + buildCounterGoogleCloudAiplatformV1ListDatasetsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListSpecialistPoolsResponse( - api.GoogleCloudAiplatformV1ListSpecialistPoolsResponse o, +void checkGoogleCloudAiplatformV1ListDatasetsResponse( + api.GoogleCloudAiplatformV1ListDatasetsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListSpecialistPoolsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListSpecialistPoolsResponse < 3) { + buildCounterGoogleCloudAiplatformV1ListDatasetsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListDatasetsResponse < 3) { + checkUnnamed223(o.datasets!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed230(o.specialistPools!); } - buildCounterGoogleCloudAiplatformV1ListSpecialistPoolsResponse--; + buildCounterGoogleCloudAiplatformV1ListDatasetsResponse--; } -core.List buildUnnamed231() => [ - buildGoogleCloudAiplatformV1Study(), - buildGoogleCloudAiplatformV1Study(), +core.List +buildUnnamed224() => [ + buildGoogleCloudAiplatformV1DeploymentResourcePool(), + buildGoogleCloudAiplatformV1DeploymentResourcePool(), ]; -void checkUnnamed231(core.List o) { +void checkUnnamed224( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Study(o[0]); - checkGoogleCloudAiplatformV1Study(o[1]); + checkGoogleCloudAiplatformV1DeploymentResourcePool(o[0]); + checkGoogleCloudAiplatformV1DeploymentResourcePool(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListStudiesResponse = 0; -api.GoogleCloudAiplatformV1ListStudiesResponse -buildGoogleCloudAiplatformV1ListStudiesResponse() { - final o = api.GoogleCloudAiplatformV1ListStudiesResponse(); - buildCounterGoogleCloudAiplatformV1ListStudiesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListStudiesResponse < 3) { +core.int +buildCounterGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse = 0; +api.GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse +buildGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse() { + final o = api.GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse(); + buildCounterGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse < + 3) { + o.deploymentResourcePools = buildUnnamed224(); o.nextPageToken = 'foo'; - o.studies = buildUnnamed231(); } - buildCounterGoogleCloudAiplatformV1ListStudiesResponse--; + buildCounterGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListStudiesResponse( - api.GoogleCloudAiplatformV1ListStudiesResponse o, +void checkGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse( + api.GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListStudiesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListStudiesResponse < 3) { + buildCounterGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse < + 3) { + checkUnnamed224(o.deploymentResourcePools!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed231(o.studies!); } - buildCounterGoogleCloudAiplatformV1ListStudiesResponse--; + buildCounterGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse--; } -core.List buildUnnamed232() => - [ - buildGoogleCloudAiplatformV1TensorboardExperiment(), - buildGoogleCloudAiplatformV1TensorboardExperiment(), - ]; +core.List buildUnnamed225() => [ + buildGoogleCloudAiplatformV1Endpoint(), + buildGoogleCloudAiplatformV1Endpoint(), +]; -void checkUnnamed232( - core.List o, -) { +void checkUnnamed225(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TensorboardExperiment(o[0]); - checkGoogleCloudAiplatformV1TensorboardExperiment(o[1]); + checkGoogleCloudAiplatformV1Endpoint(o[0]); + checkGoogleCloudAiplatformV1Endpoint(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListTensorboardExperimentsResponse = - 0; -api.GoogleCloudAiplatformV1ListTensorboardExperimentsResponse -buildGoogleCloudAiplatformV1ListTensorboardExperimentsResponse() { - final o = api.GoogleCloudAiplatformV1ListTensorboardExperimentsResponse(); - buildCounterGoogleCloudAiplatformV1ListTensorboardExperimentsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListTensorboardExperimentsResponse < - 3) { +core.int buildCounterGoogleCloudAiplatformV1ListEndpointsResponse = 0; +api.GoogleCloudAiplatformV1ListEndpointsResponse +buildGoogleCloudAiplatformV1ListEndpointsResponse() { + final o = api.GoogleCloudAiplatformV1ListEndpointsResponse(); + buildCounterGoogleCloudAiplatformV1ListEndpointsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListEndpointsResponse < 3) { + o.endpoints = buildUnnamed225(); o.nextPageToken = 'foo'; - o.tensorboardExperiments = buildUnnamed232(); } - buildCounterGoogleCloudAiplatformV1ListTensorboardExperimentsResponse--; + buildCounterGoogleCloudAiplatformV1ListEndpointsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListTensorboardExperimentsResponse( - api.GoogleCloudAiplatformV1ListTensorboardExperimentsResponse o, +void checkGoogleCloudAiplatformV1ListEndpointsResponse( + api.GoogleCloudAiplatformV1ListEndpointsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListTensorboardExperimentsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListTensorboardExperimentsResponse < - 3) { + buildCounterGoogleCloudAiplatformV1ListEndpointsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListEndpointsResponse < 3) { + checkUnnamed225(o.endpoints!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed232(o.tensorboardExperiments!); } - buildCounterGoogleCloudAiplatformV1ListTensorboardExperimentsResponse--; + buildCounterGoogleCloudAiplatformV1ListEndpointsResponse--; } -core.List buildUnnamed233() => [ - buildGoogleCloudAiplatformV1TensorboardRun(), - buildGoogleCloudAiplatformV1TensorboardRun(), +core.List buildUnnamed226() => [ + buildGoogleCloudAiplatformV1EntityType(), + buildGoogleCloudAiplatformV1EntityType(), ]; -void checkUnnamed233(core.List o) { +void checkUnnamed226(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TensorboardRun(o[0]); - checkGoogleCloudAiplatformV1TensorboardRun(o[1]); + checkGoogleCloudAiplatformV1EntityType(o[0]); + checkGoogleCloudAiplatformV1EntityType(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListTensorboardRunsResponse = 0; -api.GoogleCloudAiplatformV1ListTensorboardRunsResponse -buildGoogleCloudAiplatformV1ListTensorboardRunsResponse() { - final o = api.GoogleCloudAiplatformV1ListTensorboardRunsResponse(); - buildCounterGoogleCloudAiplatformV1ListTensorboardRunsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListTensorboardRunsResponse < 3) { +core.int buildCounterGoogleCloudAiplatformV1ListEntityTypesResponse = 0; +api.GoogleCloudAiplatformV1ListEntityTypesResponse +buildGoogleCloudAiplatformV1ListEntityTypesResponse() { + final o = api.GoogleCloudAiplatformV1ListEntityTypesResponse(); + buildCounterGoogleCloudAiplatformV1ListEntityTypesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListEntityTypesResponse < 3) { + o.entityTypes = buildUnnamed226(); o.nextPageToken = 'foo'; - o.tensorboardRuns = buildUnnamed233(); } - buildCounterGoogleCloudAiplatformV1ListTensorboardRunsResponse--; + buildCounterGoogleCloudAiplatformV1ListEntityTypesResponse--; return o; } -void checkGoogleCloudAiplatformV1ListTensorboardRunsResponse( - api.GoogleCloudAiplatformV1ListTensorboardRunsResponse o, +void checkGoogleCloudAiplatformV1ListEntityTypesResponse( + api.GoogleCloudAiplatformV1ListEntityTypesResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListTensorboardRunsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListTensorboardRunsResponse < 3) { + buildCounterGoogleCloudAiplatformV1ListEntityTypesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListEntityTypesResponse < 3) { + checkUnnamed226(o.entityTypes!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed233(o.tensorboardRuns!); } - buildCounterGoogleCloudAiplatformV1ListTensorboardRunsResponse--; + buildCounterGoogleCloudAiplatformV1ListEntityTypesResponse--; } -core.List buildUnnamed234() => - [ - buildGoogleCloudAiplatformV1TensorboardTimeSeries(), - buildGoogleCloudAiplatformV1TensorboardTimeSeries(), - ]; +core.List buildUnnamed227() => [ + buildGoogleCloudAiplatformV1EvaluationItem(), + buildGoogleCloudAiplatformV1EvaluationItem(), +]; -void checkUnnamed234( - core.List o, -) { +void checkUnnamed227(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TensorboardTimeSeries(o[0]); - checkGoogleCloudAiplatformV1TensorboardTimeSeries(o[1]); + checkGoogleCloudAiplatformV1EvaluationItem(o[0]); + checkGoogleCloudAiplatformV1EvaluationItem(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse = - 0; -api.GoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse -buildGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse() { - final o = api.GoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse(); - buildCounterGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse < - 3) { +core.int buildCounterGoogleCloudAiplatformV1ListEvaluationItemsResponse = 0; +api.GoogleCloudAiplatformV1ListEvaluationItemsResponse +buildGoogleCloudAiplatformV1ListEvaluationItemsResponse() { + final o = api.GoogleCloudAiplatformV1ListEvaluationItemsResponse(); + buildCounterGoogleCloudAiplatformV1ListEvaluationItemsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListEvaluationItemsResponse < 3) { + o.evaluationItems = buildUnnamed227(); o.nextPageToken = 'foo'; - o.tensorboardTimeSeries = buildUnnamed234(); } - buildCounterGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse--; + buildCounterGoogleCloudAiplatformV1ListEvaluationItemsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse( - api.GoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse o, +void checkGoogleCloudAiplatformV1ListEvaluationItemsResponse( + api.GoogleCloudAiplatformV1ListEvaluationItemsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse < - 3) { + buildCounterGoogleCloudAiplatformV1ListEvaluationItemsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListEvaluationItemsResponse < 3) { + checkUnnamed227(o.evaluationItems!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed234(o.tensorboardTimeSeries!); } - buildCounterGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse--; + buildCounterGoogleCloudAiplatformV1ListEvaluationItemsResponse--; } -core.List buildUnnamed235() => [ - buildGoogleCloudAiplatformV1Tensorboard(), - buildGoogleCloudAiplatformV1Tensorboard(), +core.List buildUnnamed228() => [ + buildGoogleCloudAiplatformV1EvaluationRun(), + buildGoogleCloudAiplatformV1EvaluationRun(), ]; -void checkUnnamed235(core.List o) { +void checkUnnamed228(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Tensorboard(o[0]); - checkGoogleCloudAiplatformV1Tensorboard(o[1]); + checkGoogleCloudAiplatformV1EvaluationRun(o[0]); + checkGoogleCloudAiplatformV1EvaluationRun(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListTensorboardsResponse = 0; -api.GoogleCloudAiplatformV1ListTensorboardsResponse -buildGoogleCloudAiplatformV1ListTensorboardsResponse() { - final o = api.GoogleCloudAiplatformV1ListTensorboardsResponse(); - buildCounterGoogleCloudAiplatformV1ListTensorboardsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListTensorboardsResponse < 3) { +core.int buildCounterGoogleCloudAiplatformV1ListEvaluationRunsResponse = 0; +api.GoogleCloudAiplatformV1ListEvaluationRunsResponse +buildGoogleCloudAiplatformV1ListEvaluationRunsResponse() { + final o = api.GoogleCloudAiplatformV1ListEvaluationRunsResponse(); + buildCounterGoogleCloudAiplatformV1ListEvaluationRunsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListEvaluationRunsResponse < 3) { + o.evaluationRuns = buildUnnamed228(); o.nextPageToken = 'foo'; - o.tensorboards = buildUnnamed235(); } - buildCounterGoogleCloudAiplatformV1ListTensorboardsResponse--; + buildCounterGoogleCloudAiplatformV1ListEvaluationRunsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListTensorboardsResponse( - api.GoogleCloudAiplatformV1ListTensorboardsResponse o, +void checkGoogleCloudAiplatformV1ListEvaluationRunsResponse( + api.GoogleCloudAiplatformV1ListEvaluationRunsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListTensorboardsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListTensorboardsResponse < 3) { + buildCounterGoogleCloudAiplatformV1ListEvaluationRunsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListEvaluationRunsResponse < 3) { + checkUnnamed228(o.evaluationRuns!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed235(o.tensorboards!); } - buildCounterGoogleCloudAiplatformV1ListTensorboardsResponse--; + buildCounterGoogleCloudAiplatformV1ListEvaluationRunsResponse--; } -core.List buildUnnamed236() => [ - buildGoogleCloudAiplatformV1TrainingPipeline(), - buildGoogleCloudAiplatformV1TrainingPipeline(), +core.List buildUnnamed229() => [ + buildGoogleCloudAiplatformV1EvaluationSet(), + buildGoogleCloudAiplatformV1EvaluationSet(), ]; -void checkUnnamed236(core.List o) { +void checkUnnamed229(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrainingPipeline(o[0]); - checkGoogleCloudAiplatformV1TrainingPipeline(o[1]); + checkGoogleCloudAiplatformV1EvaluationSet(o[0]); + checkGoogleCloudAiplatformV1EvaluationSet(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListTrainingPipelinesResponse = 0; -api.GoogleCloudAiplatformV1ListTrainingPipelinesResponse -buildGoogleCloudAiplatformV1ListTrainingPipelinesResponse() { - final o = api.GoogleCloudAiplatformV1ListTrainingPipelinesResponse(); - buildCounterGoogleCloudAiplatformV1ListTrainingPipelinesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListTrainingPipelinesResponse < 3) { +core.int buildCounterGoogleCloudAiplatformV1ListEvaluationSetsResponse = 0; +api.GoogleCloudAiplatformV1ListEvaluationSetsResponse +buildGoogleCloudAiplatformV1ListEvaluationSetsResponse() { + final o = api.GoogleCloudAiplatformV1ListEvaluationSetsResponse(); + buildCounterGoogleCloudAiplatformV1ListEvaluationSetsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListEvaluationSetsResponse < 3) { + o.evaluationSets = buildUnnamed229(); o.nextPageToken = 'foo'; - o.trainingPipelines = buildUnnamed236(); } - buildCounterGoogleCloudAiplatformV1ListTrainingPipelinesResponse--; + buildCounterGoogleCloudAiplatformV1ListEvaluationSetsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListTrainingPipelinesResponse( - api.GoogleCloudAiplatformV1ListTrainingPipelinesResponse o, +void checkGoogleCloudAiplatformV1ListEvaluationSetsResponse( + api.GoogleCloudAiplatformV1ListEvaluationSetsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListTrainingPipelinesResponse++; - if (buildCounterGoogleCloudAiplatformV1ListTrainingPipelinesResponse < 3) { + buildCounterGoogleCloudAiplatformV1ListEvaluationSetsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListEvaluationSetsResponse < 3) { + checkUnnamed229(o.evaluationSets!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed236(o.trainingPipelines!); } - buildCounterGoogleCloudAiplatformV1ListTrainingPipelinesResponse--; + buildCounterGoogleCloudAiplatformV1ListEvaluationSetsResponse--; } -core.List buildUnnamed237() => [ - buildGoogleCloudAiplatformV1Trial(), - buildGoogleCloudAiplatformV1Trial(), +core.List buildUnnamed230() => [ + buildGoogleCloudAiplatformV1Execution(), + buildGoogleCloudAiplatformV1Execution(), ]; -void checkUnnamed237(core.List o) { +void checkUnnamed230(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Trial(o[0]); - checkGoogleCloudAiplatformV1Trial(o[1]); + checkGoogleCloudAiplatformV1Execution(o[0]); + checkGoogleCloudAiplatformV1Execution(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListTrialsResponse = 0; -api.GoogleCloudAiplatformV1ListTrialsResponse -buildGoogleCloudAiplatformV1ListTrialsResponse() { - final o = api.GoogleCloudAiplatformV1ListTrialsResponse(); - buildCounterGoogleCloudAiplatformV1ListTrialsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListTrialsResponse < 3) { +core.int buildCounterGoogleCloudAiplatformV1ListExecutionsResponse = 0; +api.GoogleCloudAiplatformV1ListExecutionsResponse +buildGoogleCloudAiplatformV1ListExecutionsResponse() { + final o = api.GoogleCloudAiplatformV1ListExecutionsResponse(); + buildCounterGoogleCloudAiplatformV1ListExecutionsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListExecutionsResponse < 3) { + o.executions = buildUnnamed230(); o.nextPageToken = 'foo'; - o.trials = buildUnnamed237(); } - buildCounterGoogleCloudAiplatformV1ListTrialsResponse--; + buildCounterGoogleCloudAiplatformV1ListExecutionsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListTrialsResponse( - api.GoogleCloudAiplatformV1ListTrialsResponse o, +void checkGoogleCloudAiplatformV1ListExecutionsResponse( + api.GoogleCloudAiplatformV1ListExecutionsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListTrialsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListTrialsResponse < 3) { + buildCounterGoogleCloudAiplatformV1ListExecutionsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListExecutionsResponse < 3) { + checkUnnamed230(o.executions!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed237(o.trials!); } - buildCounterGoogleCloudAiplatformV1ListTrialsResponse--; + buildCounterGoogleCloudAiplatformV1ListExecutionsResponse--; } -core.List buildUnnamed238() => [ - buildGoogleCloudAiplatformV1TuningJob(), - buildGoogleCloudAiplatformV1TuningJob(), +core.List buildUnnamed231() => [ + buildGoogleCloudAiplatformV1FeatureGroup(), + buildGoogleCloudAiplatformV1FeatureGroup(), ]; -void checkUnnamed238(core.List o) { +void checkUnnamed231(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TuningJob(o[0]); - checkGoogleCloudAiplatformV1TuningJob(o[1]); + checkGoogleCloudAiplatformV1FeatureGroup(o[0]); + checkGoogleCloudAiplatformV1FeatureGroup(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ListTuningJobsResponse = 0; -api.GoogleCloudAiplatformV1ListTuningJobsResponse -buildGoogleCloudAiplatformV1ListTuningJobsResponse() { - final o = api.GoogleCloudAiplatformV1ListTuningJobsResponse(); - buildCounterGoogleCloudAiplatformV1ListTuningJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListTuningJobsResponse < 3) { +core.int buildCounterGoogleCloudAiplatformV1ListFeatureGroupsResponse = 0; +api.GoogleCloudAiplatformV1ListFeatureGroupsResponse +buildGoogleCloudAiplatformV1ListFeatureGroupsResponse() { + final o = api.GoogleCloudAiplatformV1ListFeatureGroupsResponse(); + buildCounterGoogleCloudAiplatformV1ListFeatureGroupsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListFeatureGroupsResponse < 3) { + o.featureGroups = buildUnnamed231(); o.nextPageToken = 'foo'; - o.tuningJobs = buildUnnamed238(); } - buildCounterGoogleCloudAiplatformV1ListTuningJobsResponse--; + buildCounterGoogleCloudAiplatformV1ListFeatureGroupsResponse--; return o; } -void checkGoogleCloudAiplatformV1ListTuningJobsResponse( - api.GoogleCloudAiplatformV1ListTuningJobsResponse o, +void checkGoogleCloudAiplatformV1ListFeatureGroupsResponse( + api.GoogleCloudAiplatformV1ListFeatureGroupsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ListTuningJobsResponse++; - if (buildCounterGoogleCloudAiplatformV1ListTuningJobsResponse < 3) { + buildCounterGoogleCloudAiplatformV1ListFeatureGroupsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListFeatureGroupsResponse < 3) { + checkUnnamed231(o.featureGroups!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed238(o.tuningJobs!); } - buildCounterGoogleCloudAiplatformV1ListTuningJobsResponse--; -} - -core.List -buildUnnamed239() => [ - buildGoogleCloudAiplatformV1LogprobsResultCandidate(), - buildGoogleCloudAiplatformV1LogprobsResultCandidate(), -]; - -void checkUnnamed239( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1LogprobsResultCandidate(o[0]); - checkGoogleCloudAiplatformV1LogprobsResultCandidate(o[1]); + buildCounterGoogleCloudAiplatformV1ListFeatureGroupsResponse--; } -core.List -buildUnnamed240() => [ - buildGoogleCloudAiplatformV1LogprobsResultTopCandidates(), - buildGoogleCloudAiplatformV1LogprobsResultTopCandidates(), +core.List buildUnnamed232() => [ + buildGoogleCloudAiplatformV1FeatureOnlineStore(), + buildGoogleCloudAiplatformV1FeatureOnlineStore(), ]; -void checkUnnamed240( - core.List o, +void checkUnnamed232( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1LogprobsResultTopCandidates(o[0]); - checkGoogleCloudAiplatformV1LogprobsResultTopCandidates(o[1]); + checkGoogleCloudAiplatformV1FeatureOnlineStore(o[0]); + checkGoogleCloudAiplatformV1FeatureOnlineStore(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1LogprobsResult = 0; -api.GoogleCloudAiplatformV1LogprobsResult -buildGoogleCloudAiplatformV1LogprobsResult() { - final o = api.GoogleCloudAiplatformV1LogprobsResult(); - buildCounterGoogleCloudAiplatformV1LogprobsResult++; - if (buildCounterGoogleCloudAiplatformV1LogprobsResult < 3) { - o.chosenCandidates = buildUnnamed239(); - o.topCandidates = buildUnnamed240(); +core.int buildCounterGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse = 0; +api.GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse +buildGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse() { + final o = api.GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse(); + buildCounterGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse++; + if (buildCounterGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse < 3) { + o.featureOnlineStores = buildUnnamed232(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1LogprobsResult--; + buildCounterGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse--; return o; } -void checkGoogleCloudAiplatformV1LogprobsResult( - api.GoogleCloudAiplatformV1LogprobsResult o, +void checkGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse( + api.GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse o, ) { - buildCounterGoogleCloudAiplatformV1LogprobsResult++; - if (buildCounterGoogleCloudAiplatformV1LogprobsResult < 3) { - checkUnnamed239(o.chosenCandidates!); - checkUnnamed240(o.topCandidates!); + buildCounterGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse++; + if (buildCounterGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse < 3) { + checkUnnamed232(o.featureOnlineStores!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1LogprobsResult--; + buildCounterGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse--; } -core.int buildCounterGoogleCloudAiplatformV1LogprobsResultCandidate = 0; -api.GoogleCloudAiplatformV1LogprobsResultCandidate -buildGoogleCloudAiplatformV1LogprobsResultCandidate() { - final o = api.GoogleCloudAiplatformV1LogprobsResultCandidate(); - buildCounterGoogleCloudAiplatformV1LogprobsResultCandidate++; - if (buildCounterGoogleCloudAiplatformV1LogprobsResultCandidate < 3) { - o.logProbability = 42.0; - o.token = 'foo'; - o.tokenId = 42; +core.List buildUnnamed233() => [ + buildGoogleCloudAiplatformV1FeatureViewSync(), + buildGoogleCloudAiplatformV1FeatureViewSync(), +]; + +void checkUnnamed233(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1FeatureViewSync(o[0]); + checkGoogleCloudAiplatformV1FeatureViewSync(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ListFeatureViewSyncsResponse = 0; +api.GoogleCloudAiplatformV1ListFeatureViewSyncsResponse +buildGoogleCloudAiplatformV1ListFeatureViewSyncsResponse() { + final o = api.GoogleCloudAiplatformV1ListFeatureViewSyncsResponse(); + buildCounterGoogleCloudAiplatformV1ListFeatureViewSyncsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListFeatureViewSyncsResponse < 3) { + o.featureViewSyncs = buildUnnamed233(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1LogprobsResultCandidate--; + buildCounterGoogleCloudAiplatformV1ListFeatureViewSyncsResponse--; return o; } -void checkGoogleCloudAiplatformV1LogprobsResultCandidate( - api.GoogleCloudAiplatformV1LogprobsResultCandidate o, +void checkGoogleCloudAiplatformV1ListFeatureViewSyncsResponse( + api.GoogleCloudAiplatformV1ListFeatureViewSyncsResponse o, ) { - buildCounterGoogleCloudAiplatformV1LogprobsResultCandidate++; - if (buildCounterGoogleCloudAiplatformV1LogprobsResultCandidate < 3) { - unittest.expect(o.logProbability!, unittest.equals(42.0)); - unittest.expect(o.token!, unittest.equals('foo')); - unittest.expect(o.tokenId!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1ListFeatureViewSyncsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListFeatureViewSyncsResponse < 3) { + checkUnnamed233(o.featureViewSyncs!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1LogprobsResultCandidate--; + buildCounterGoogleCloudAiplatformV1ListFeatureViewSyncsResponse--; } -core.List -buildUnnamed241() => [ - buildGoogleCloudAiplatformV1LogprobsResultCandidate(), - buildGoogleCloudAiplatformV1LogprobsResultCandidate(), +core.List buildUnnamed234() => [ + buildGoogleCloudAiplatformV1FeatureView(), + buildGoogleCloudAiplatformV1FeatureView(), ]; -void checkUnnamed241( - core.List o, -) { +void checkUnnamed234(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1LogprobsResultCandidate(o[0]); - checkGoogleCloudAiplatformV1LogprobsResultCandidate(o[1]); + checkGoogleCloudAiplatformV1FeatureView(o[0]); + checkGoogleCloudAiplatformV1FeatureView(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1LogprobsResultTopCandidates = 0; -api.GoogleCloudAiplatformV1LogprobsResultTopCandidates -buildGoogleCloudAiplatformV1LogprobsResultTopCandidates() { - final o = api.GoogleCloudAiplatformV1LogprobsResultTopCandidates(); - buildCounterGoogleCloudAiplatformV1LogprobsResultTopCandidates++; - if (buildCounterGoogleCloudAiplatformV1LogprobsResultTopCandidates < 3) { - o.candidates = buildUnnamed241(); +core.int buildCounterGoogleCloudAiplatformV1ListFeatureViewsResponse = 0; +api.GoogleCloudAiplatformV1ListFeatureViewsResponse +buildGoogleCloudAiplatformV1ListFeatureViewsResponse() { + final o = api.GoogleCloudAiplatformV1ListFeatureViewsResponse(); + buildCounterGoogleCloudAiplatformV1ListFeatureViewsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListFeatureViewsResponse < 3) { + o.featureViews = buildUnnamed234(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1LogprobsResultTopCandidates--; + buildCounterGoogleCloudAiplatformV1ListFeatureViewsResponse--; return o; } -void checkGoogleCloudAiplatformV1LogprobsResultTopCandidates( - api.GoogleCloudAiplatformV1LogprobsResultTopCandidates o, +void checkGoogleCloudAiplatformV1ListFeatureViewsResponse( + api.GoogleCloudAiplatformV1ListFeatureViewsResponse o, ) { - buildCounterGoogleCloudAiplatformV1LogprobsResultTopCandidates++; - if (buildCounterGoogleCloudAiplatformV1LogprobsResultTopCandidates < 3) { - checkUnnamed241(o.candidates!); + buildCounterGoogleCloudAiplatformV1ListFeatureViewsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListFeatureViewsResponse < 3) { + checkUnnamed234(o.featureViews!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1LogprobsResultTopCandidates--; + buildCounterGoogleCloudAiplatformV1ListFeatureViewsResponse--; } -core.int buildCounterGoogleCloudAiplatformV1LookupStudyRequest = 0; -api.GoogleCloudAiplatformV1LookupStudyRequest -buildGoogleCloudAiplatformV1LookupStudyRequest() { - final o = api.GoogleCloudAiplatformV1LookupStudyRequest(); - buildCounterGoogleCloudAiplatformV1LookupStudyRequest++; - if (buildCounterGoogleCloudAiplatformV1LookupStudyRequest < 3) { - o.displayName = 'foo'; - } - buildCounterGoogleCloudAiplatformV1LookupStudyRequest--; - return o; -} +core.List buildUnnamed235() => [ + buildGoogleCloudAiplatformV1Feature(), + buildGoogleCloudAiplatformV1Feature(), +]; -void checkGoogleCloudAiplatformV1LookupStudyRequest( - api.GoogleCloudAiplatformV1LookupStudyRequest o, -) { - buildCounterGoogleCloudAiplatformV1LookupStudyRequest++; - if (buildCounterGoogleCloudAiplatformV1LookupStudyRequest < 3) { - unittest.expect(o.displayName!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1LookupStudyRequest--; +void checkUnnamed235(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Feature(o[0]); + checkGoogleCloudAiplatformV1Feature(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1MachineSpec = 0; -api.GoogleCloudAiplatformV1MachineSpec -buildGoogleCloudAiplatformV1MachineSpec() { - final o = api.GoogleCloudAiplatformV1MachineSpec(); - buildCounterGoogleCloudAiplatformV1MachineSpec++; - if (buildCounterGoogleCloudAiplatformV1MachineSpec < 3) { - o.acceleratorCount = 42; - o.acceleratorType = 'foo'; - o.machineType = 'foo'; - o.reservationAffinity = buildGoogleCloudAiplatformV1ReservationAffinity(); - o.tpuTopology = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ListFeaturesResponse = 0; +api.GoogleCloudAiplatformV1ListFeaturesResponse +buildGoogleCloudAiplatformV1ListFeaturesResponse() { + final o = api.GoogleCloudAiplatformV1ListFeaturesResponse(); + buildCounterGoogleCloudAiplatformV1ListFeaturesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListFeaturesResponse < 3) { + o.features = buildUnnamed235(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1MachineSpec--; + buildCounterGoogleCloudAiplatformV1ListFeaturesResponse--; return o; } -void checkGoogleCloudAiplatformV1MachineSpec( - api.GoogleCloudAiplatformV1MachineSpec o, +void checkGoogleCloudAiplatformV1ListFeaturesResponse( + api.GoogleCloudAiplatformV1ListFeaturesResponse o, ) { - buildCounterGoogleCloudAiplatformV1MachineSpec++; - if (buildCounterGoogleCloudAiplatformV1MachineSpec < 3) { - unittest.expect(o.acceleratorCount!, unittest.equals(42)); - unittest.expect(o.acceleratorType!, unittest.equals('foo')); - unittest.expect(o.machineType!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ReservationAffinity(o.reservationAffinity!); - unittest.expect(o.tpuTopology!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ListFeaturesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListFeaturesResponse < 3) { + checkUnnamed235(o.features!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1MachineSpec--; + buildCounterGoogleCloudAiplatformV1ListFeaturesResponse--; } -core.int buildCounterGoogleCloudAiplatformV1ManualBatchTuningParameters = 0; -api.GoogleCloudAiplatformV1ManualBatchTuningParameters -buildGoogleCloudAiplatformV1ManualBatchTuningParameters() { - final o = api.GoogleCloudAiplatformV1ManualBatchTuningParameters(); - buildCounterGoogleCloudAiplatformV1ManualBatchTuningParameters++; - if (buildCounterGoogleCloudAiplatformV1ManualBatchTuningParameters < 3) { - o.batchSize = 42; +core.List buildUnnamed236() => [ + buildGoogleCloudAiplatformV1Featurestore(), + buildGoogleCloudAiplatformV1Featurestore(), +]; + +void checkUnnamed236(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Featurestore(o[0]); + checkGoogleCloudAiplatformV1Featurestore(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ListFeaturestoresResponse = 0; +api.GoogleCloudAiplatformV1ListFeaturestoresResponse +buildGoogleCloudAiplatformV1ListFeaturestoresResponse() { + final o = api.GoogleCloudAiplatformV1ListFeaturestoresResponse(); + buildCounterGoogleCloudAiplatformV1ListFeaturestoresResponse++; + if (buildCounterGoogleCloudAiplatformV1ListFeaturestoresResponse < 3) { + o.featurestores = buildUnnamed236(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1ManualBatchTuningParameters--; + buildCounterGoogleCloudAiplatformV1ListFeaturestoresResponse--; return o; } -void checkGoogleCloudAiplatformV1ManualBatchTuningParameters( - api.GoogleCloudAiplatformV1ManualBatchTuningParameters o, +void checkGoogleCloudAiplatformV1ListFeaturestoresResponse( + api.GoogleCloudAiplatformV1ListFeaturestoresResponse o, ) { - buildCounterGoogleCloudAiplatformV1ManualBatchTuningParameters++; - if (buildCounterGoogleCloudAiplatformV1ManualBatchTuningParameters < 3) { - unittest.expect(o.batchSize!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1ListFeaturestoresResponse++; + if (buildCounterGoogleCloudAiplatformV1ListFeaturestoresResponse < 3) { + checkUnnamed236(o.featurestores!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ManualBatchTuningParameters--; + buildCounterGoogleCloudAiplatformV1ListFeaturestoresResponse--; } -core.List buildUnnamed242() => [ - buildGoogleCloudAiplatformV1MeasurementMetric(), - buildGoogleCloudAiplatformV1MeasurementMetric(), +core.List +buildUnnamed237() => [ + buildGoogleCloudAiplatformV1HyperparameterTuningJob(), + buildGoogleCloudAiplatformV1HyperparameterTuningJob(), ]; -void checkUnnamed242( - core.List o, +void checkUnnamed237( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1MeasurementMetric(o[0]); - checkGoogleCloudAiplatformV1MeasurementMetric(o[1]); + checkGoogleCloudAiplatformV1HyperparameterTuningJob(o[0]); + checkGoogleCloudAiplatformV1HyperparameterTuningJob(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1Measurement = 0; -api.GoogleCloudAiplatformV1Measurement -buildGoogleCloudAiplatformV1Measurement() { - final o = api.GoogleCloudAiplatformV1Measurement(); - buildCounterGoogleCloudAiplatformV1Measurement++; - if (buildCounterGoogleCloudAiplatformV1Measurement < 3) { - o.elapsedDuration = 'foo'; - o.metrics = buildUnnamed242(); - o.stepCount = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse = 0; +api.GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse +buildGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse() { + final o = api.GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse(); + buildCounterGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse < + 3) { + o.hyperparameterTuningJobs = buildUnnamed237(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1Measurement--; + buildCounterGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse--; return o; } -void checkGoogleCloudAiplatformV1Measurement( - api.GoogleCloudAiplatformV1Measurement o, +void checkGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse( + api.GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse o, ) { - buildCounterGoogleCloudAiplatformV1Measurement++; - if (buildCounterGoogleCloudAiplatformV1Measurement < 3) { - unittest.expect(o.elapsedDuration!, unittest.equals('foo')); - checkUnnamed242(o.metrics!); - unittest.expect(o.stepCount!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1Measurement--; -} - -core.int buildCounterGoogleCloudAiplatformV1MeasurementMetric = 0; -api.GoogleCloudAiplatformV1MeasurementMetric -buildGoogleCloudAiplatformV1MeasurementMetric() { - final o = api.GoogleCloudAiplatformV1MeasurementMetric(); - buildCounterGoogleCloudAiplatformV1MeasurementMetric++; - if (buildCounterGoogleCloudAiplatformV1MeasurementMetric < 3) { - o.metricId = 'foo'; - o.value = 42.0; - } - buildCounterGoogleCloudAiplatformV1MeasurementMetric--; - return o; -} - -void checkGoogleCloudAiplatformV1MeasurementMetric( - api.GoogleCloudAiplatformV1MeasurementMetric o, -) { - buildCounterGoogleCloudAiplatformV1MeasurementMetric++; - if (buildCounterGoogleCloudAiplatformV1MeasurementMetric < 3) { - unittest.expect(o.metricId!, unittest.equals('foo')); - unittest.expect(o.value!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse < + 3) { + checkUnnamed237(o.hyperparameterTuningJobs!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1MeasurementMetric--; + buildCounterGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse--; } -core.List buildUnnamed243() => ['foo', 'foo']; +core.List buildUnnamed238() => [ + buildGoogleCloudAiplatformV1IndexEndpoint(), + buildGoogleCloudAiplatformV1IndexEndpoint(), +]; -void checkUnnamed243(core.List o) { +void checkUnnamed238(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1IndexEndpoint(o[0]); + checkGoogleCloudAiplatformV1IndexEndpoint(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1MergeVersionAliasesRequest = 0; -api.GoogleCloudAiplatformV1MergeVersionAliasesRequest -buildGoogleCloudAiplatformV1MergeVersionAliasesRequest() { - final o = api.GoogleCloudAiplatformV1MergeVersionAliasesRequest(); - buildCounterGoogleCloudAiplatformV1MergeVersionAliasesRequest++; - if (buildCounterGoogleCloudAiplatformV1MergeVersionAliasesRequest < 3) { - o.versionAliases = buildUnnamed243(); +core.int buildCounterGoogleCloudAiplatformV1ListIndexEndpointsResponse = 0; +api.GoogleCloudAiplatformV1ListIndexEndpointsResponse +buildGoogleCloudAiplatformV1ListIndexEndpointsResponse() { + final o = api.GoogleCloudAiplatformV1ListIndexEndpointsResponse(); + buildCounterGoogleCloudAiplatformV1ListIndexEndpointsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListIndexEndpointsResponse < 3) { + o.indexEndpoints = buildUnnamed238(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1MergeVersionAliasesRequest--; + buildCounterGoogleCloudAiplatformV1ListIndexEndpointsResponse--; return o; } -void checkGoogleCloudAiplatformV1MergeVersionAliasesRequest( - api.GoogleCloudAiplatformV1MergeVersionAliasesRequest o, +void checkGoogleCloudAiplatformV1ListIndexEndpointsResponse( + api.GoogleCloudAiplatformV1ListIndexEndpointsResponse o, ) { - buildCounterGoogleCloudAiplatformV1MergeVersionAliasesRequest++; - if (buildCounterGoogleCloudAiplatformV1MergeVersionAliasesRequest < 3) { - checkUnnamed243(o.versionAliases!); + buildCounterGoogleCloudAiplatformV1ListIndexEndpointsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListIndexEndpointsResponse < 3) { + checkUnnamed238(o.indexEndpoints!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1MergeVersionAliasesRequest--; + buildCounterGoogleCloudAiplatformV1ListIndexEndpointsResponse--; } -core.int buildCounterGoogleCloudAiplatformV1MetadataSchema = 0; -api.GoogleCloudAiplatformV1MetadataSchema -buildGoogleCloudAiplatformV1MetadataSchema() { - final o = api.GoogleCloudAiplatformV1MetadataSchema(); - buildCounterGoogleCloudAiplatformV1MetadataSchema++; - if (buildCounterGoogleCloudAiplatformV1MetadataSchema < 3) { - o.createTime = 'foo'; - o.description = 'foo'; - o.name = 'foo'; - o.schema = 'foo'; - o.schemaType = 'foo'; - o.schemaVersion = 'foo'; - } - buildCounterGoogleCloudAiplatformV1MetadataSchema--; - return o; -} +core.List buildUnnamed239() => [ + buildGoogleCloudAiplatformV1Index(), + buildGoogleCloudAiplatformV1Index(), +]; -void checkGoogleCloudAiplatformV1MetadataSchema( - api.GoogleCloudAiplatformV1MetadataSchema o, -) { - buildCounterGoogleCloudAiplatformV1MetadataSchema++; - if (buildCounterGoogleCloudAiplatformV1MetadataSchema < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.schema!, unittest.equals('foo')); - unittest.expect(o.schemaType!, unittest.equals('foo')); - unittest.expect(o.schemaVersion!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1MetadataSchema--; +void checkUnnamed239(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Index(o[0]); + checkGoogleCloudAiplatformV1Index(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1MetadataStore = 0; -api.GoogleCloudAiplatformV1MetadataStore -buildGoogleCloudAiplatformV1MetadataStore() { - final o = api.GoogleCloudAiplatformV1MetadataStore(); - buildCounterGoogleCloudAiplatformV1MetadataStore++; - if (buildCounterGoogleCloudAiplatformV1MetadataStore < 3) { - o.createTime = 'foo'; - o.dataplexConfig = - buildGoogleCloudAiplatformV1MetadataStoreDataplexConfig(); - o.description = 'foo'; - o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.name = 'foo'; - o.state = buildGoogleCloudAiplatformV1MetadataStoreMetadataStoreState(); - o.updateTime = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ListIndexesResponse = 0; +api.GoogleCloudAiplatformV1ListIndexesResponse +buildGoogleCloudAiplatformV1ListIndexesResponse() { + final o = api.GoogleCloudAiplatformV1ListIndexesResponse(); + buildCounterGoogleCloudAiplatformV1ListIndexesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListIndexesResponse < 3) { + o.indexes = buildUnnamed239(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1MetadataStore--; + buildCounterGoogleCloudAiplatformV1ListIndexesResponse--; return o; } -void checkGoogleCloudAiplatformV1MetadataStore( - api.GoogleCloudAiplatformV1MetadataStore o, +void checkGoogleCloudAiplatformV1ListIndexesResponse( + api.GoogleCloudAiplatformV1ListIndexesResponse o, ) { - buildCounterGoogleCloudAiplatformV1MetadataStore++; - if (buildCounterGoogleCloudAiplatformV1MetadataStore < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1MetadataStoreDataplexConfig(o.dataplexConfig!); - unittest.expect(o.description!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1MetadataStoreMetadataStoreState(o.state!); - unittest.expect(o.updateTime!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ListIndexesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListIndexesResponse < 3) { + checkUnnamed239(o.indexes!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1MetadataStore--; + buildCounterGoogleCloudAiplatformV1ListIndexesResponse--; } -core.int buildCounterGoogleCloudAiplatformV1MetadataStoreDataplexConfig = 0; -api.GoogleCloudAiplatformV1MetadataStoreDataplexConfig -buildGoogleCloudAiplatformV1MetadataStoreDataplexConfig() { - final o = api.GoogleCloudAiplatformV1MetadataStoreDataplexConfig(); - buildCounterGoogleCloudAiplatformV1MetadataStoreDataplexConfig++; - if (buildCounterGoogleCloudAiplatformV1MetadataStoreDataplexConfig < 3) { - o.enabledPipelinesLineage = true; - } - buildCounterGoogleCloudAiplatformV1MetadataStoreDataplexConfig--; - return o; -} +core.List buildUnnamed240() => [ + buildGoogleCloudAiplatformV1MetadataSchema(), + buildGoogleCloudAiplatformV1MetadataSchema(), +]; -void checkGoogleCloudAiplatformV1MetadataStoreDataplexConfig( - api.GoogleCloudAiplatformV1MetadataStoreDataplexConfig o, -) { - buildCounterGoogleCloudAiplatformV1MetadataStoreDataplexConfig++; - if (buildCounterGoogleCloudAiplatformV1MetadataStoreDataplexConfig < 3) { - unittest.expect(o.enabledPipelinesLineage!, unittest.isTrue); - } - buildCounterGoogleCloudAiplatformV1MetadataStoreDataplexConfig--; +void checkUnnamed240(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1MetadataSchema(o[0]); + checkGoogleCloudAiplatformV1MetadataSchema(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1MetadataStoreMetadataStoreState = 0; -api.GoogleCloudAiplatformV1MetadataStoreMetadataStoreState -buildGoogleCloudAiplatformV1MetadataStoreMetadataStoreState() { - final o = api.GoogleCloudAiplatformV1MetadataStoreMetadataStoreState(); - buildCounterGoogleCloudAiplatformV1MetadataStoreMetadataStoreState++; - if (buildCounterGoogleCloudAiplatformV1MetadataStoreMetadataStoreState < 3) { - o.diskUtilizationBytes = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ListMetadataSchemasResponse = 0; +api.GoogleCloudAiplatformV1ListMetadataSchemasResponse +buildGoogleCloudAiplatformV1ListMetadataSchemasResponse() { + final o = api.GoogleCloudAiplatformV1ListMetadataSchemasResponse(); + buildCounterGoogleCloudAiplatformV1ListMetadataSchemasResponse++; + if (buildCounterGoogleCloudAiplatformV1ListMetadataSchemasResponse < 3) { + o.metadataSchemas = buildUnnamed240(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1MetadataStoreMetadataStoreState--; + buildCounterGoogleCloudAiplatformV1ListMetadataSchemasResponse--; return o; } -void checkGoogleCloudAiplatformV1MetadataStoreMetadataStoreState( - api.GoogleCloudAiplatformV1MetadataStoreMetadataStoreState o, +void checkGoogleCloudAiplatformV1ListMetadataSchemasResponse( + api.GoogleCloudAiplatformV1ListMetadataSchemasResponse o, ) { - buildCounterGoogleCloudAiplatformV1MetadataStoreMetadataStoreState++; - if (buildCounterGoogleCloudAiplatformV1MetadataStoreMetadataStoreState < 3) { - unittest.expect(o.diskUtilizationBytes!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ListMetadataSchemasResponse++; + if (buildCounterGoogleCloudAiplatformV1ListMetadataSchemasResponse < 3) { + checkUnnamed240(o.metadataSchemas!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1MetadataStoreMetadataStoreState--; + buildCounterGoogleCloudAiplatformV1ListMetadataSchemasResponse--; } -core.List buildUnnamed244() => ['foo', 'foo']; +core.List buildUnnamed241() => [ + buildGoogleCloudAiplatformV1MetadataStore(), + buildGoogleCloudAiplatformV1MetadataStore(), +]; -void checkUnnamed244(core.List o) { +void checkUnnamed241(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterGoogleCloudAiplatformV1Metric = 0; -api.GoogleCloudAiplatformV1Metric buildGoogleCloudAiplatformV1Metric() { - final o = api.GoogleCloudAiplatformV1Metric(); - buildCounterGoogleCloudAiplatformV1Metric++; - if (buildCounterGoogleCloudAiplatformV1Metric < 3) { - o.aggregationMetrics = buildUnnamed244(); - o.bleuSpec = buildGoogleCloudAiplatformV1BleuSpec(); - o.exactMatchSpec = buildGoogleCloudAiplatformV1ExactMatchSpec(); - o.pairwiseMetricSpec = buildGoogleCloudAiplatformV1PairwiseMetricSpec(); - o.pointwiseMetricSpec = buildGoogleCloudAiplatformV1PointwiseMetricSpec(); - o.rougeSpec = buildGoogleCloudAiplatformV1RougeSpec(); - } - buildCounterGoogleCloudAiplatformV1Metric--; - return o; -} - -void checkGoogleCloudAiplatformV1Metric(api.GoogleCloudAiplatformV1Metric o) { - buildCounterGoogleCloudAiplatformV1Metric++; - if (buildCounterGoogleCloudAiplatformV1Metric < 3) { - checkUnnamed244(o.aggregationMetrics!); - checkGoogleCloudAiplatformV1BleuSpec(o.bleuSpec!); - checkGoogleCloudAiplatformV1ExactMatchSpec(o.exactMatchSpec!); - checkGoogleCloudAiplatformV1PairwiseMetricSpec(o.pairwiseMetricSpec!); - checkGoogleCloudAiplatformV1PointwiseMetricSpec(o.pointwiseMetricSpec!); - checkGoogleCloudAiplatformV1RougeSpec(o.rougeSpec!); - } - buildCounterGoogleCloudAiplatformV1Metric--; + checkGoogleCloudAiplatformV1MetadataStore(o[0]); + checkGoogleCloudAiplatformV1MetadataStore(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1MetricxInput = 0; -api.GoogleCloudAiplatformV1MetricxInput -buildGoogleCloudAiplatformV1MetricxInput() { - final o = api.GoogleCloudAiplatformV1MetricxInput(); - buildCounterGoogleCloudAiplatformV1MetricxInput++; - if (buildCounterGoogleCloudAiplatformV1MetricxInput < 3) { - o.instance = buildGoogleCloudAiplatformV1MetricxInstance(); - o.metricSpec = buildGoogleCloudAiplatformV1MetricxSpec(); +core.int buildCounterGoogleCloudAiplatformV1ListMetadataStoresResponse = 0; +api.GoogleCloudAiplatformV1ListMetadataStoresResponse +buildGoogleCloudAiplatformV1ListMetadataStoresResponse() { + final o = api.GoogleCloudAiplatformV1ListMetadataStoresResponse(); + buildCounterGoogleCloudAiplatformV1ListMetadataStoresResponse++; + if (buildCounterGoogleCloudAiplatformV1ListMetadataStoresResponse < 3) { + o.metadataStores = buildUnnamed241(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1MetricxInput--; + buildCounterGoogleCloudAiplatformV1ListMetadataStoresResponse--; return o; } -void checkGoogleCloudAiplatformV1MetricxInput( - api.GoogleCloudAiplatformV1MetricxInput o, +void checkGoogleCloudAiplatformV1ListMetadataStoresResponse( + api.GoogleCloudAiplatformV1ListMetadataStoresResponse o, ) { - buildCounterGoogleCloudAiplatformV1MetricxInput++; - if (buildCounterGoogleCloudAiplatformV1MetricxInput < 3) { - checkGoogleCloudAiplatformV1MetricxInstance(o.instance!); - checkGoogleCloudAiplatformV1MetricxSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1ListMetadataStoresResponse++; + if (buildCounterGoogleCloudAiplatformV1ListMetadataStoresResponse < 3) { + checkUnnamed241(o.metadataStores!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1MetricxInput--; + buildCounterGoogleCloudAiplatformV1ListMetadataStoresResponse--; } -core.int buildCounterGoogleCloudAiplatformV1MetricxInstance = 0; -api.GoogleCloudAiplatformV1MetricxInstance -buildGoogleCloudAiplatformV1MetricxInstance() { - final o = api.GoogleCloudAiplatformV1MetricxInstance(); - buildCounterGoogleCloudAiplatformV1MetricxInstance++; - if (buildCounterGoogleCloudAiplatformV1MetricxInstance < 3) { - o.prediction = 'foo'; - o.reference = 'foo'; - o.source = 'foo'; - } - buildCounterGoogleCloudAiplatformV1MetricxInstance--; - return o; -} +core.List +buildUnnamed242() => [ + buildGoogleCloudAiplatformV1ModelDeploymentMonitoringJob(), + buildGoogleCloudAiplatformV1ModelDeploymentMonitoringJob(), +]; -void checkGoogleCloudAiplatformV1MetricxInstance( - api.GoogleCloudAiplatformV1MetricxInstance o, +void checkUnnamed242( + core.List o, ) { - buildCounterGoogleCloudAiplatformV1MetricxInstance++; - if (buildCounterGoogleCloudAiplatformV1MetricxInstance < 3) { - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); - unittest.expect(o.source!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1MetricxInstance--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ModelDeploymentMonitoringJob(o[0]); + checkGoogleCloudAiplatformV1ModelDeploymentMonitoringJob(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1MetricxResult = 0; -api.GoogleCloudAiplatformV1MetricxResult -buildGoogleCloudAiplatformV1MetricxResult() { - final o = api.GoogleCloudAiplatformV1MetricxResult(); - buildCounterGoogleCloudAiplatformV1MetricxResult++; - if (buildCounterGoogleCloudAiplatformV1MetricxResult < 3) { - o.score = 42.0; +core.int +buildCounterGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse = + 0; +api.GoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse +buildGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse() { + final o = + api.GoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse(); + buildCounterGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse < + 3) { + o.modelDeploymentMonitoringJobs = buildUnnamed242(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1MetricxResult--; + buildCounterGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse--; return o; } -void checkGoogleCloudAiplatformV1MetricxResult( - api.GoogleCloudAiplatformV1MetricxResult o, +void checkGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse( + api.GoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse o, ) { - buildCounterGoogleCloudAiplatformV1MetricxResult++; - if (buildCounterGoogleCloudAiplatformV1MetricxResult < 3) { - unittest.expect(o.score!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse < + 3) { + checkUnnamed242(o.modelDeploymentMonitoringJobs!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1MetricxResult--; + buildCounterGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse--; } -core.int buildCounterGoogleCloudAiplatformV1MetricxSpec = 0; -api.GoogleCloudAiplatformV1MetricxSpec -buildGoogleCloudAiplatformV1MetricxSpec() { - final o = api.GoogleCloudAiplatformV1MetricxSpec(); - buildCounterGoogleCloudAiplatformV1MetricxSpec++; - if (buildCounterGoogleCloudAiplatformV1MetricxSpec < 3) { - o.sourceLanguage = 'foo'; - o.targetLanguage = 'foo'; - o.version = 'foo'; - } - buildCounterGoogleCloudAiplatformV1MetricxSpec--; - return o; -} +core.List buildUnnamed243() => + [ + buildGoogleCloudAiplatformV1ModelEvaluationSlice(), + buildGoogleCloudAiplatformV1ModelEvaluationSlice(), + ]; -void checkGoogleCloudAiplatformV1MetricxSpec( - api.GoogleCloudAiplatformV1MetricxSpec o, +void checkUnnamed243( + core.List o, ) { - buildCounterGoogleCloudAiplatformV1MetricxSpec++; - if (buildCounterGoogleCloudAiplatformV1MetricxSpec < 3) { - unittest.expect(o.sourceLanguage!, unittest.equals('foo')); - unittest.expect(o.targetLanguage!, unittest.equals('foo')); - unittest.expect(o.version!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1MetricxSpec--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ModelEvaluationSlice(o[0]); + checkGoogleCloudAiplatformV1ModelEvaluationSlice(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1MigratableResource = 0; -api.GoogleCloudAiplatformV1MigratableResource -buildGoogleCloudAiplatformV1MigratableResource() { - final o = api.GoogleCloudAiplatformV1MigratableResource(); - buildCounterGoogleCloudAiplatformV1MigratableResource++; - if (buildCounterGoogleCloudAiplatformV1MigratableResource < 3) { - o.automlDataset = - buildGoogleCloudAiplatformV1MigratableResourceAutomlDataset(); - o.automlModel = buildGoogleCloudAiplatformV1MigratableResourceAutomlModel(); - o.dataLabelingDataset = - buildGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset(); - o.lastMigrateTime = 'foo'; - o.lastUpdateTime = 'foo'; - o.mlEngineModelVersion = - buildGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion(); +core.int buildCounterGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse = + 0; +api.GoogleCloudAiplatformV1ListModelEvaluationSlicesResponse +buildGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse() { + final o = api.GoogleCloudAiplatformV1ListModelEvaluationSlicesResponse(); + buildCounterGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse < + 3) { + o.modelEvaluationSlices = buildUnnamed243(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1MigratableResource--; + buildCounterGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse--; return o; } -void checkGoogleCloudAiplatformV1MigratableResource( - api.GoogleCloudAiplatformV1MigratableResource o, +void checkGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse( + api.GoogleCloudAiplatformV1ListModelEvaluationSlicesResponse o, ) { - buildCounterGoogleCloudAiplatformV1MigratableResource++; - if (buildCounterGoogleCloudAiplatformV1MigratableResource < 3) { - checkGoogleCloudAiplatformV1MigratableResourceAutomlDataset( - o.automlDataset!, - ); - checkGoogleCloudAiplatformV1MigratableResourceAutomlModel(o.automlModel!); - checkGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset( - o.dataLabelingDataset!, - ); - unittest.expect(o.lastMigrateTime!, unittest.equals('foo')); - unittest.expect(o.lastUpdateTime!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion( - o.mlEngineModelVersion!, - ); + buildCounterGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse < + 3) { + checkUnnamed243(o.modelEvaluationSlices!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1MigratableResource--; + buildCounterGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse--; } -core.int buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlDataset = 0; -api.GoogleCloudAiplatformV1MigratableResourceAutomlDataset -buildGoogleCloudAiplatformV1MigratableResourceAutomlDataset() { - final o = api.GoogleCloudAiplatformV1MigratableResourceAutomlDataset(); - buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlDataset++; - if (buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlDataset < 3) { - o.dataset = 'foo'; - o.datasetDisplayName = 'foo'; - } - buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlDataset--; - return o; -} +core.List buildUnnamed244() => [ + buildGoogleCloudAiplatformV1ModelEvaluation(), + buildGoogleCloudAiplatformV1ModelEvaluation(), +]; -void checkGoogleCloudAiplatformV1MigratableResourceAutomlDataset( - api.GoogleCloudAiplatformV1MigratableResourceAutomlDataset o, -) { - buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlDataset++; - if (buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlDataset < 3) { - unittest.expect(o.dataset!, unittest.equals('foo')); - unittest.expect(o.datasetDisplayName!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlDataset--; +void checkUnnamed244(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ModelEvaluation(o[0]); + checkGoogleCloudAiplatformV1ModelEvaluation(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlModel = 0; -api.GoogleCloudAiplatformV1MigratableResourceAutomlModel -buildGoogleCloudAiplatformV1MigratableResourceAutomlModel() { - final o = api.GoogleCloudAiplatformV1MigratableResourceAutomlModel(); - buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlModel++; - if (buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlModel < 3) { - o.model = 'foo'; - o.modelDisplayName = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ListModelEvaluationsResponse = 0; +api.GoogleCloudAiplatformV1ListModelEvaluationsResponse +buildGoogleCloudAiplatformV1ListModelEvaluationsResponse() { + final o = api.GoogleCloudAiplatformV1ListModelEvaluationsResponse(); + buildCounterGoogleCloudAiplatformV1ListModelEvaluationsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListModelEvaluationsResponse < 3) { + o.modelEvaluations = buildUnnamed244(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlModel--; + buildCounterGoogleCloudAiplatformV1ListModelEvaluationsResponse--; return o; } -void checkGoogleCloudAiplatformV1MigratableResourceAutomlModel( - api.GoogleCloudAiplatformV1MigratableResourceAutomlModel o, +void checkGoogleCloudAiplatformV1ListModelEvaluationsResponse( + api.GoogleCloudAiplatformV1ListModelEvaluationsResponse o, ) { - buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlModel++; - if (buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlModel < 3) { - unittest.expect(o.model!, unittest.equals('foo')); - unittest.expect(o.modelDisplayName!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ListModelEvaluationsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListModelEvaluationsResponse < 3) { + checkUnnamed244(o.modelEvaluations!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlModel--; + buildCounterGoogleCloudAiplatformV1ListModelEvaluationsResponse--; } -core.List< - api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset -> +core.List buildUnnamed245() => [ - buildGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset(), - buildGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset(), + buildGoogleCloudAiplatformV1ModelVersionCheckpoint(), + buildGoogleCloudAiplatformV1ModelVersionCheckpoint(), ]; void checkUnnamed245( - core.List< - api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset - > - o, + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset( - o[0], - ); - checkGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset( - o[1], - ); + checkGoogleCloudAiplatformV1ModelVersionCheckpoint(o[0]); + checkGoogleCloudAiplatformV1ModelVersionCheckpoint(o[1]); } core.int -buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset = 0; -api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDataset -buildGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset() { - final o = api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDataset(); - buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset++; - if (buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset < +buildCounterGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse = 0; +api.GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse +buildGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse() { + final o = api.GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse(); + buildCounterGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse < 3) { - o.dataLabelingAnnotatedDatasets = buildUnnamed245(); - o.dataset = 'foo'; - o.datasetDisplayName = 'foo'; + o.checkpoints = buildUnnamed245(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset--; + buildCounterGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse--; return o; } -void checkGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset( - api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDataset o, +void checkGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse( + api.GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse o, ) { - buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset++; - if (buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset < + buildCounterGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse < 3) { - checkUnnamed245(o.dataLabelingAnnotatedDatasets!); - unittest.expect(o.dataset!, unittest.equals('foo')); - unittest.expect(o.datasetDisplayName!, unittest.equals('foo')); + checkUnnamed245(o.checkpoints!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset--; + buildCounterGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse--; } -core.int -buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset = - 0; -api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset -buildGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset() { - final o = - api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset(); - buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset++; - if (buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset < - 3) { - o.annotatedDataset = 'foo'; - o.annotatedDatasetDisplayName = 'foo'; +core.List buildUnnamed246() => [ + buildGoogleCloudAiplatformV1Model(), + buildGoogleCloudAiplatformV1Model(), +]; + +void checkUnnamed246(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Model(o[0]); + checkGoogleCloudAiplatformV1Model(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ListModelVersionsResponse = 0; +api.GoogleCloudAiplatformV1ListModelVersionsResponse +buildGoogleCloudAiplatformV1ListModelVersionsResponse() { + final o = api.GoogleCloudAiplatformV1ListModelVersionsResponse(); + buildCounterGoogleCloudAiplatformV1ListModelVersionsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListModelVersionsResponse < 3) { + o.models = buildUnnamed246(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset--; + buildCounterGoogleCloudAiplatformV1ListModelVersionsResponse--; return o; } -void -checkGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset( - api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset - o, +void checkGoogleCloudAiplatformV1ListModelVersionsResponse( + api.GoogleCloudAiplatformV1ListModelVersionsResponse o, ) { - buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset++; - if (buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset < - 3) { - unittest.expect(o.annotatedDataset!, unittest.equals('foo')); - unittest.expect(o.annotatedDatasetDisplayName!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ListModelVersionsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListModelVersionsResponse < 3) { + checkUnnamed246(o.models!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset--; + buildCounterGoogleCloudAiplatformV1ListModelVersionsResponse--; } -core.int -buildCounterGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion = 0; -api.GoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion -buildGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion() { - final o = api.GoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion(); - buildCounterGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion++; - if (buildCounterGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion < - 3) { - o.endpoint = 'foo'; - o.version = 'foo'; +core.List buildUnnamed247() => [ + buildGoogleCloudAiplatformV1Model(), + buildGoogleCloudAiplatformV1Model(), +]; + +void checkUnnamed247(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Model(o[0]); + checkGoogleCloudAiplatformV1Model(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ListModelsResponse = 0; +api.GoogleCloudAiplatformV1ListModelsResponse +buildGoogleCloudAiplatformV1ListModelsResponse() { + final o = api.GoogleCloudAiplatformV1ListModelsResponse(); + buildCounterGoogleCloudAiplatformV1ListModelsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListModelsResponse < 3) { + o.models = buildUnnamed247(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion--; + buildCounterGoogleCloudAiplatformV1ListModelsResponse--; return o; } -void checkGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion( - api.GoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion o, +void checkGoogleCloudAiplatformV1ListModelsResponse( + api.GoogleCloudAiplatformV1ListModelsResponse o, ) { - buildCounterGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion++; - if (buildCounterGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion < - 3) { - unittest.expect(o.endpoint!, unittest.equals('foo')); - unittest.expect(o.version!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ListModelsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListModelsResponse < 3) { + checkUnnamed247(o.models!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion--; + buildCounterGoogleCloudAiplatformV1ListModelsResponse--; } -core.int buildCounterGoogleCloudAiplatformV1MigrateResourceRequest = 0; -api.GoogleCloudAiplatformV1MigrateResourceRequest -buildGoogleCloudAiplatformV1MigrateResourceRequest() { - final o = api.GoogleCloudAiplatformV1MigrateResourceRequest(); - buildCounterGoogleCloudAiplatformV1MigrateResourceRequest++; - if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequest < 3) { - o.migrateAutomlDatasetConfig = - buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig(); - o.migrateAutomlModelConfig = - buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig(); - o.migrateDataLabelingDatasetConfig = - buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig(); - o.migrateMlEngineModelVersionConfig = - buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig(); +core.List buildUnnamed248() => [ + buildGoogleCloudAiplatformV1NasJob(), + buildGoogleCloudAiplatformV1NasJob(), +]; + +void checkUnnamed248(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1NasJob(o[0]); + checkGoogleCloudAiplatformV1NasJob(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ListNasJobsResponse = 0; +api.GoogleCloudAiplatformV1ListNasJobsResponse +buildGoogleCloudAiplatformV1ListNasJobsResponse() { + final o = api.GoogleCloudAiplatformV1ListNasJobsResponse(); + buildCounterGoogleCloudAiplatformV1ListNasJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListNasJobsResponse < 3) { + o.nasJobs = buildUnnamed248(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1MigrateResourceRequest--; + buildCounterGoogleCloudAiplatformV1ListNasJobsResponse--; return o; } -void checkGoogleCloudAiplatformV1MigrateResourceRequest( - api.GoogleCloudAiplatformV1MigrateResourceRequest o, +void checkGoogleCloudAiplatformV1ListNasJobsResponse( + api.GoogleCloudAiplatformV1ListNasJobsResponse o, ) { - buildCounterGoogleCloudAiplatformV1MigrateResourceRequest++; - if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequest < 3) { - checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig( - o.migrateAutomlDatasetConfig!, - ); - checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig( - o.migrateAutomlModelConfig!, - ); - checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig( - o.migrateDataLabelingDatasetConfig!, - ); - checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig( - o.migrateMlEngineModelVersionConfig!, - ); + buildCounterGoogleCloudAiplatformV1ListNasJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListNasJobsResponse < 3) { + checkUnnamed248(o.nasJobs!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1MigrateResourceRequest--; + buildCounterGoogleCloudAiplatformV1ListNasJobsResponse--; } -core.int -buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig = - 0; -api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig -buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig() { - final o = - api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig(); - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig++; - if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig < - 3) { - o.dataset = 'foo'; - o.datasetDisplayName = 'foo'; +core.List buildUnnamed249() => [ + buildGoogleCloudAiplatformV1NasTrialDetail(), + buildGoogleCloudAiplatformV1NasTrialDetail(), +]; + +void checkUnnamed249(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1NasTrialDetail(o[0]); + checkGoogleCloudAiplatformV1NasTrialDetail(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ListNasTrialDetailsResponse = 0; +api.GoogleCloudAiplatformV1ListNasTrialDetailsResponse +buildGoogleCloudAiplatformV1ListNasTrialDetailsResponse() { + final o = api.GoogleCloudAiplatformV1ListNasTrialDetailsResponse(); + buildCounterGoogleCloudAiplatformV1ListNasTrialDetailsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListNasTrialDetailsResponse < 3) { + o.nasTrialDetails = buildUnnamed249(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig--; + buildCounterGoogleCloudAiplatformV1ListNasTrialDetailsResponse--; return o; } -void -checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig( - api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig o, +void checkGoogleCloudAiplatformV1ListNasTrialDetailsResponse( + api.GoogleCloudAiplatformV1ListNasTrialDetailsResponse o, ) { - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig++; - if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig < - 3) { - unittest.expect(o.dataset!, unittest.equals('foo')); - unittest.expect(o.datasetDisplayName!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ListNasTrialDetailsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListNasTrialDetailsResponse < 3) { + checkUnnamed249(o.nasTrialDetails!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig--; + buildCounterGoogleCloudAiplatformV1ListNasTrialDetailsResponse--; } -core.int -buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig = +core.List buildUnnamed250() => + [ + buildGoogleCloudAiplatformV1NotebookExecutionJob(), + buildGoogleCloudAiplatformV1NotebookExecutionJob(), + ]; + +void checkUnnamed250( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1NotebookExecutionJob(o[0]); + checkGoogleCloudAiplatformV1NotebookExecutionJob(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse = 0; -api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig -buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig() { - final o = - api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig(); - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig++; - if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig < +api.GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse +buildGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse() { + final o = api.GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse(); + buildCounterGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse < 3) { - o.model = 'foo'; - o.modelDisplayName = 'foo'; + o.nextPageToken = 'foo'; + o.notebookExecutionJobs = buildUnnamed250(); } - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig--; + buildCounterGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse--; return o; } -void checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig( - api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig o, +void checkGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse( + api.GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse o, ) { - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig++; - if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig < + buildCounterGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse < 3) { - unittest.expect(o.model!, unittest.equals('foo')); - unittest.expect(o.modelDisplayName!, unittest.equals('foo')); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed250(o.notebookExecutionJobs!); } - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig--; + buildCounterGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse--; } -core.List< - api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig -> -buildUnnamed246() => [ - buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig(), - buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig(), +core.List +buildUnnamed251() => [ + buildGoogleCloudAiplatformV1NotebookRuntimeTemplate(), + buildGoogleCloudAiplatformV1NotebookRuntimeTemplate(), ]; -void checkUnnamed246( - core.List< - api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig - > - o, +void checkUnnamed251( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig( - o[0], - ); - checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig( - o[1], - ); + checkGoogleCloudAiplatformV1NotebookRuntimeTemplate(o[0]); + checkGoogleCloudAiplatformV1NotebookRuntimeTemplate(o[1]); } core.int -buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig = - 0; -api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig -buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig() { - final o = - api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig(); - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig++; - if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig < +buildCounterGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse = 0; +api.GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse +buildGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse() { + final o = api.GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse(); + buildCounterGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse < 3) { - o.dataset = 'foo'; - o.datasetDisplayName = 'foo'; - o.migrateDataLabelingAnnotatedDatasetConfigs = buildUnnamed246(); + o.nextPageToken = 'foo'; + o.notebookRuntimeTemplates = buildUnnamed251(); } - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig--; + buildCounterGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse--; return o; } -void -checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig( - api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig - o, +void checkGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse( + api.GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse o, ) { - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig++; - if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig < + buildCounterGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse < 3) { - unittest.expect(o.dataset!, unittest.equals('foo')); - unittest.expect(o.datasetDisplayName!, unittest.equals('foo')); - checkUnnamed246(o.migrateDataLabelingAnnotatedDatasetConfigs!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed251(o.notebookRuntimeTemplates!); } - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig--; + buildCounterGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse--; } -core.int -buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig = - 0; -api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig -buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig() { - final o = - api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig(); - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig++; - if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig < - 3) { - o.annotatedDataset = 'foo'; +core.List buildUnnamed252() => [ + buildGoogleCloudAiplatformV1NotebookRuntime(), + buildGoogleCloudAiplatformV1NotebookRuntime(), +]; + +void checkUnnamed252(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1NotebookRuntime(o[0]); + checkGoogleCloudAiplatformV1NotebookRuntime(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ListNotebookRuntimesResponse = 0; +api.GoogleCloudAiplatformV1ListNotebookRuntimesResponse +buildGoogleCloudAiplatformV1ListNotebookRuntimesResponse() { + final o = api.GoogleCloudAiplatformV1ListNotebookRuntimesResponse(); + buildCounterGoogleCloudAiplatformV1ListNotebookRuntimesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListNotebookRuntimesResponse < 3) { + o.nextPageToken = 'foo'; + o.notebookRuntimes = buildUnnamed252(); } - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig--; + buildCounterGoogleCloudAiplatformV1ListNotebookRuntimesResponse--; return o; } -void -checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig( - api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig - o, +void checkGoogleCloudAiplatformV1ListNotebookRuntimesResponse( + api.GoogleCloudAiplatformV1ListNotebookRuntimesResponse o, ) { - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig++; - if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig < - 3) { - unittest.expect(o.annotatedDataset!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ListNotebookRuntimesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListNotebookRuntimesResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed252(o.notebookRuntimes!); } - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig--; + buildCounterGoogleCloudAiplatformV1ListNotebookRuntimesResponse--; } -core.int -buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig = - 0; -api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig -buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig() { - final o = - api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig(); - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig++; - if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig < - 3) { - o.endpoint = 'foo'; - o.modelDisplayName = 'foo'; - o.modelVersion = 'foo'; - } - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig--; +core.int buildCounterGoogleCloudAiplatformV1ListOptimalTrialsRequest = 0; +api.GoogleCloudAiplatformV1ListOptimalTrialsRequest +buildGoogleCloudAiplatformV1ListOptimalTrialsRequest() { + final o = api.GoogleCloudAiplatformV1ListOptimalTrialsRequest(); + buildCounterGoogleCloudAiplatformV1ListOptimalTrialsRequest++; + if (buildCounterGoogleCloudAiplatformV1ListOptimalTrialsRequest < 3) {} + buildCounterGoogleCloudAiplatformV1ListOptimalTrialsRequest--; return o; } -void -checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig( - api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig - o, +void checkGoogleCloudAiplatformV1ListOptimalTrialsRequest( + api.GoogleCloudAiplatformV1ListOptimalTrialsRequest o, ) { - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig++; - if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig < - 3) { - unittest.expect(o.endpoint!, unittest.equals('foo')); - unittest.expect(o.modelDisplayName!, unittest.equals('foo')); - unittest.expect(o.modelVersion!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig--; + buildCounterGoogleCloudAiplatformV1ListOptimalTrialsRequest++; + if (buildCounterGoogleCloudAiplatformV1ListOptimalTrialsRequest < 3) {} + buildCounterGoogleCloudAiplatformV1ListOptimalTrialsRequest--; } -core.int buildCounterGoogleCloudAiplatformV1ModalityTokenCount = 0; -api.GoogleCloudAiplatformV1ModalityTokenCount -buildGoogleCloudAiplatformV1ModalityTokenCount() { - final o = api.GoogleCloudAiplatformV1ModalityTokenCount(); - buildCounterGoogleCloudAiplatformV1ModalityTokenCount++; - if (buildCounterGoogleCloudAiplatformV1ModalityTokenCount < 3) { - o.modality = 'foo'; - o.tokenCount = 42; +core.List buildUnnamed253() => [ + buildGoogleCloudAiplatformV1Trial(), + buildGoogleCloudAiplatformV1Trial(), +]; + +void checkUnnamed253(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Trial(o[0]); + checkGoogleCloudAiplatformV1Trial(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ListOptimalTrialsResponse = 0; +api.GoogleCloudAiplatformV1ListOptimalTrialsResponse +buildGoogleCloudAiplatformV1ListOptimalTrialsResponse() { + final o = api.GoogleCloudAiplatformV1ListOptimalTrialsResponse(); + buildCounterGoogleCloudAiplatformV1ListOptimalTrialsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListOptimalTrialsResponse < 3) { + o.optimalTrials = buildUnnamed253(); } - buildCounterGoogleCloudAiplatformV1ModalityTokenCount--; + buildCounterGoogleCloudAiplatformV1ListOptimalTrialsResponse--; return o; } -void checkGoogleCloudAiplatformV1ModalityTokenCount( - api.GoogleCloudAiplatformV1ModalityTokenCount o, +void checkGoogleCloudAiplatformV1ListOptimalTrialsResponse( + api.GoogleCloudAiplatformV1ListOptimalTrialsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ModalityTokenCount++; - if (buildCounterGoogleCloudAiplatformV1ModalityTokenCount < 3) { - unittest.expect(o.modality!, unittest.equals('foo')); - unittest.expect(o.tokenCount!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1ListOptimalTrialsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListOptimalTrialsResponse < 3) { + checkUnnamed253(o.optimalTrials!); } - buildCounterGoogleCloudAiplatformV1ModalityTokenCount--; + buildCounterGoogleCloudAiplatformV1ListOptimalTrialsResponse--; } -core.List buildUnnamed247() => [ - buildGoogleCloudAiplatformV1Checkpoint(), - buildGoogleCloudAiplatformV1Checkpoint(), +core.List buildUnnamed254() => [ + buildGoogleCloudAiplatformV1PersistentResource(), + buildGoogleCloudAiplatformV1PersistentResource(), ]; -void checkUnnamed247(core.List o) { +void checkUnnamed254( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Checkpoint(o[0]); - checkGoogleCloudAiplatformV1Checkpoint(o[1]); + checkGoogleCloudAiplatformV1PersistentResource(o[0]); + checkGoogleCloudAiplatformV1PersistentResource(o[1]); } -core.List buildUnnamed248() => [ - buildGoogleCloudAiplatformV1DeployedModelRef(), - buildGoogleCloudAiplatformV1DeployedModelRef(), -]; +core.int buildCounterGoogleCloudAiplatformV1ListPersistentResourcesResponse = 0; +api.GoogleCloudAiplatformV1ListPersistentResourcesResponse +buildGoogleCloudAiplatformV1ListPersistentResourcesResponse() { + final o = api.GoogleCloudAiplatformV1ListPersistentResourcesResponse(); + buildCounterGoogleCloudAiplatformV1ListPersistentResourcesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListPersistentResourcesResponse < 3) { + o.nextPageToken = 'foo'; + o.persistentResources = buildUnnamed254(); + } + buildCounterGoogleCloudAiplatformV1ListPersistentResourcesResponse--; + return o; +} -void checkUnnamed248(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1DeployedModelRef(o[0]); - checkGoogleCloudAiplatformV1DeployedModelRef(o[1]); +void checkGoogleCloudAiplatformV1ListPersistentResourcesResponse( + api.GoogleCloudAiplatformV1ListPersistentResourcesResponse o, +) { + buildCounterGoogleCloudAiplatformV1ListPersistentResourcesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListPersistentResourcesResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed254(o.persistentResources!); + } + buildCounterGoogleCloudAiplatformV1ListPersistentResourcesResponse--; } -core.Map buildUnnamed249() => { - 'x': 'foo', - 'y': 'foo', -}; +core.List buildUnnamed255() => [ + buildGoogleCloudAiplatformV1PipelineJob(), + buildGoogleCloudAiplatformV1PipelineJob(), +]; -void checkUnnamed249(core.Map o) { +void checkUnnamed255(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1PipelineJob(o[0]); + checkGoogleCloudAiplatformV1PipelineJob(o[1]); } -core.List buildUnnamed250() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1ListPipelineJobsResponse = 0; +api.GoogleCloudAiplatformV1ListPipelineJobsResponse +buildGoogleCloudAiplatformV1ListPipelineJobsResponse() { + final o = api.GoogleCloudAiplatformV1ListPipelineJobsResponse(); + buildCounterGoogleCloudAiplatformV1ListPipelineJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListPipelineJobsResponse < 3) { + o.nextPageToken = 'foo'; + o.pipelineJobs = buildUnnamed255(); + } + buildCounterGoogleCloudAiplatformV1ListPipelineJobsResponse--; + return o; +} -void checkUnnamed250(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1ListPipelineJobsResponse( + api.GoogleCloudAiplatformV1ListPipelineJobsResponse o, +) { + buildCounterGoogleCloudAiplatformV1ListPipelineJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListPipelineJobsResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed255(o.pipelineJobs!); + } + buildCounterGoogleCloudAiplatformV1ListPipelineJobsResponse--; } -core.List buildUnnamed251() => [ - buildGoogleCloudAiplatformV1ModelExportFormat(), - buildGoogleCloudAiplatformV1ModelExportFormat(), +core.List buildUnnamed256() => [ + buildGoogleCloudAiplatformV1RagCorpus(), + buildGoogleCloudAiplatformV1RagCorpus(), ]; -void checkUnnamed251( - core.List o, -) { +void checkUnnamed256(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ModelExportFormat(o[0]); - checkGoogleCloudAiplatformV1ModelExportFormat(o[1]); + checkGoogleCloudAiplatformV1RagCorpus(o[0]); + checkGoogleCloudAiplatformV1RagCorpus(o[1]); } -core.List buildUnnamed252() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1ListRagCorporaResponse = 0; +api.GoogleCloudAiplatformV1ListRagCorporaResponse +buildGoogleCloudAiplatformV1ListRagCorporaResponse() { + final o = api.GoogleCloudAiplatformV1ListRagCorporaResponse(); + buildCounterGoogleCloudAiplatformV1ListRagCorporaResponse++; + if (buildCounterGoogleCloudAiplatformV1ListRagCorporaResponse < 3) { + o.nextPageToken = 'foo'; + o.ragCorpora = buildUnnamed256(); + } + buildCounterGoogleCloudAiplatformV1ListRagCorporaResponse--; + return o; +} -void checkUnnamed252(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1ListRagCorporaResponse( + api.GoogleCloudAiplatformV1ListRagCorporaResponse o, +) { + buildCounterGoogleCloudAiplatformV1ListRagCorporaResponse++; + if (buildCounterGoogleCloudAiplatformV1ListRagCorporaResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed256(o.ragCorpora!); + } + buildCounterGoogleCloudAiplatformV1ListRagCorporaResponse--; } -core.List buildUnnamed253() => ['foo', 'foo']; +core.List buildUnnamed257() => [ + buildGoogleCloudAiplatformV1RagFile(), + buildGoogleCloudAiplatformV1RagFile(), +]; -void checkUnnamed253(core.List o) { +void checkUnnamed257(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.List buildUnnamed254() => ['foo', 'foo']; - -void checkUnnamed254(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1RagFile(o[0]); + checkGoogleCloudAiplatformV1RagFile(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1Model = 0; -api.GoogleCloudAiplatformV1Model buildGoogleCloudAiplatformV1Model() { - final o = api.GoogleCloudAiplatformV1Model(); - buildCounterGoogleCloudAiplatformV1Model++; - if (buildCounterGoogleCloudAiplatformV1Model < 3) { - o.artifactUri = 'foo'; - o.baseModelSource = buildGoogleCloudAiplatformV1ModelBaseModelSource(); - o.checkpoints = buildUnnamed247(); - o.containerSpec = buildGoogleCloudAiplatformV1ModelContainerSpec(); - o.createTime = 'foo'; - o.dataStats = buildGoogleCloudAiplatformV1ModelDataStats(); - o.defaultCheckpointId = 'foo'; - o.deployedModels = buildUnnamed248(); - o.description = 'foo'; - o.displayName = 'foo'; - o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.etag = 'foo'; - o.explanationSpec = buildGoogleCloudAiplatformV1ExplanationSpec(); - o.labels = buildUnnamed249(); - o.metadata = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - o.metadataArtifact = 'foo'; - o.metadataSchemaUri = 'foo'; - o.modelSourceInfo = buildGoogleCloudAiplatformV1ModelSourceInfo(); - o.name = 'foo'; - o.originalModelInfo = buildGoogleCloudAiplatformV1ModelOriginalModelInfo(); - o.pipelineJob = 'foo'; - o.predictSchemata = buildGoogleCloudAiplatformV1PredictSchemata(); - o.satisfiesPzi = true; - o.satisfiesPzs = true; - o.supportedDeploymentResourcesTypes = buildUnnamed250(); - o.supportedExportFormats = buildUnnamed251(); - o.supportedInputStorageFormats = buildUnnamed252(); - o.supportedOutputStorageFormats = buildUnnamed253(); - o.trainingPipeline = 'foo'; - o.updateTime = 'foo'; - o.versionAliases = buildUnnamed254(); - o.versionCreateTime = 'foo'; - o.versionDescription = 'foo'; - o.versionId = 'foo'; - o.versionUpdateTime = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ListRagFilesResponse = 0; +api.GoogleCloudAiplatformV1ListRagFilesResponse +buildGoogleCloudAiplatformV1ListRagFilesResponse() { + final o = api.GoogleCloudAiplatformV1ListRagFilesResponse(); + buildCounterGoogleCloudAiplatformV1ListRagFilesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListRagFilesResponse < 3) { + o.nextPageToken = 'foo'; + o.ragFiles = buildUnnamed257(); } - buildCounterGoogleCloudAiplatformV1Model--; + buildCounterGoogleCloudAiplatformV1ListRagFilesResponse--; return o; } -void checkGoogleCloudAiplatformV1Model(api.GoogleCloudAiplatformV1Model o) { - buildCounterGoogleCloudAiplatformV1Model++; - if (buildCounterGoogleCloudAiplatformV1Model < 3) { - unittest.expect(o.artifactUri!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ModelBaseModelSource(o.baseModelSource!); - checkUnnamed247(o.checkpoints!); - checkGoogleCloudAiplatformV1ModelContainerSpec(o.containerSpec!); - unittest.expect(o.createTime!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ModelDataStats(o.dataStats!); - unittest.expect(o.defaultCheckpointId!, unittest.equals('foo')); - checkUnnamed248(o.deployedModels!); - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.etag!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ExplanationSpec(o.explanationSpec!); - checkUnnamed249(o.labels!); - var casted52 = (o.metadata!) as core.Map; - unittest.expect(casted52, unittest.hasLength(3)); - unittest.expect(casted52['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted52['bool'], unittest.equals(true)); - unittest.expect(casted52['string'], unittest.equals('foo')); - unittest.expect(o.metadataArtifact!, unittest.equals('foo')); - unittest.expect(o.metadataSchemaUri!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ModelSourceInfo(o.modelSourceInfo!); - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ModelOriginalModelInfo(o.originalModelInfo!); - unittest.expect(o.pipelineJob!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1PredictSchemata(o.predictSchemata!); - unittest.expect(o.satisfiesPzi!, unittest.isTrue); - unittest.expect(o.satisfiesPzs!, unittest.isTrue); - checkUnnamed250(o.supportedDeploymentResourcesTypes!); - checkUnnamed251(o.supportedExportFormats!); - checkUnnamed252(o.supportedInputStorageFormats!); - checkUnnamed253(o.supportedOutputStorageFormats!); - unittest.expect(o.trainingPipeline!, unittest.equals('foo')); - unittest.expect(o.updateTime!, unittest.equals('foo')); - checkUnnamed254(o.versionAliases!); - unittest.expect(o.versionCreateTime!, unittest.equals('foo')); - unittest.expect(o.versionDescription!, unittest.equals('foo')); - unittest.expect(o.versionId!, unittest.equals('foo')); - unittest.expect(o.versionUpdateTime!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1ListRagFilesResponse( + api.GoogleCloudAiplatformV1ListRagFilesResponse o, +) { + buildCounterGoogleCloudAiplatformV1ListRagFilesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListRagFilesResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed257(o.ragFiles!); } - buildCounterGoogleCloudAiplatformV1Model--; + buildCounterGoogleCloudAiplatformV1ListRagFilesResponse--; } -core.int buildCounterGoogleCloudAiplatformV1ModelBaseModelSource = 0; -api.GoogleCloudAiplatformV1ModelBaseModelSource -buildGoogleCloudAiplatformV1ModelBaseModelSource() { - final o = api.GoogleCloudAiplatformV1ModelBaseModelSource(); - buildCounterGoogleCloudAiplatformV1ModelBaseModelSource++; - if (buildCounterGoogleCloudAiplatformV1ModelBaseModelSource < 3) { - o.genieSource = buildGoogleCloudAiplatformV1GenieSource(); - o.modelGardenSource = buildGoogleCloudAiplatformV1ModelGardenSource(); +core.List buildUnnamed258() => [ + buildGoogleCloudAiplatformV1ReasoningEngine(), + buildGoogleCloudAiplatformV1ReasoningEngine(), +]; + +void checkUnnamed258(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ReasoningEngine(o[0]); + checkGoogleCloudAiplatformV1ReasoningEngine(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ListReasoningEnginesResponse = 0; +api.GoogleCloudAiplatformV1ListReasoningEnginesResponse +buildGoogleCloudAiplatformV1ListReasoningEnginesResponse() { + final o = api.GoogleCloudAiplatformV1ListReasoningEnginesResponse(); + buildCounterGoogleCloudAiplatformV1ListReasoningEnginesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListReasoningEnginesResponse < 3) { + o.nextPageToken = 'foo'; + o.reasoningEngines = buildUnnamed258(); } - buildCounterGoogleCloudAiplatformV1ModelBaseModelSource--; + buildCounterGoogleCloudAiplatformV1ListReasoningEnginesResponse--; return o; } -void checkGoogleCloudAiplatformV1ModelBaseModelSource( - api.GoogleCloudAiplatformV1ModelBaseModelSource o, +void checkGoogleCloudAiplatformV1ListReasoningEnginesResponse( + api.GoogleCloudAiplatformV1ListReasoningEnginesResponse o, ) { - buildCounterGoogleCloudAiplatformV1ModelBaseModelSource++; - if (buildCounterGoogleCloudAiplatformV1ModelBaseModelSource < 3) { - checkGoogleCloudAiplatformV1GenieSource(o.genieSource!); - checkGoogleCloudAiplatformV1ModelGardenSource(o.modelGardenSource!); + buildCounterGoogleCloudAiplatformV1ListReasoningEnginesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListReasoningEnginesResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed258(o.reasoningEngines!); } - buildCounterGoogleCloudAiplatformV1ModelBaseModelSource--; + buildCounterGoogleCloudAiplatformV1ListReasoningEnginesResponse--; } -core.List buildUnnamed255() => ['foo', 'foo']; +core.List buildUnnamed259() => [ + buildGoogleCloudAiplatformV1SavedQuery(), + buildGoogleCloudAiplatformV1SavedQuery(), +]; -void checkUnnamed255(core.List o) { +void checkUnnamed259(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1SavedQuery(o[0]); + checkGoogleCloudAiplatformV1SavedQuery(o[1]); } -core.List buildUnnamed256() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1ListSavedQueriesResponse = 0; +api.GoogleCloudAiplatformV1ListSavedQueriesResponse +buildGoogleCloudAiplatformV1ListSavedQueriesResponse() { + final o = api.GoogleCloudAiplatformV1ListSavedQueriesResponse(); + buildCounterGoogleCloudAiplatformV1ListSavedQueriesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListSavedQueriesResponse < 3) { + o.nextPageToken = 'foo'; + o.savedQueries = buildUnnamed259(); + } + buildCounterGoogleCloudAiplatformV1ListSavedQueriesResponse--; + return o; +} -void checkUnnamed256(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1ListSavedQueriesResponse( + api.GoogleCloudAiplatformV1ListSavedQueriesResponse o, +) { + buildCounterGoogleCloudAiplatformV1ListSavedQueriesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListSavedQueriesResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed259(o.savedQueries!); + } + buildCounterGoogleCloudAiplatformV1ListSavedQueriesResponse--; } -core.List buildUnnamed257() => [ - buildGoogleCloudAiplatformV1EnvVar(), - buildGoogleCloudAiplatformV1EnvVar(), +core.List buildUnnamed260() => [ + buildGoogleCloudAiplatformV1Schedule(), + buildGoogleCloudAiplatformV1Schedule(), ]; -void checkUnnamed257(core.List o) { +void checkUnnamed260(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1EnvVar(o[0]); - checkGoogleCloudAiplatformV1EnvVar(o[1]); + checkGoogleCloudAiplatformV1Schedule(o[0]); + checkGoogleCloudAiplatformV1Schedule(o[1]); } -core.List buildUnnamed258() => [ - buildGoogleCloudAiplatformV1Port(), - buildGoogleCloudAiplatformV1Port(), -]; +core.int buildCounterGoogleCloudAiplatformV1ListSchedulesResponse = 0; +api.GoogleCloudAiplatformV1ListSchedulesResponse +buildGoogleCloudAiplatformV1ListSchedulesResponse() { + final o = api.GoogleCloudAiplatformV1ListSchedulesResponse(); + buildCounterGoogleCloudAiplatformV1ListSchedulesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListSchedulesResponse < 3) { + o.nextPageToken = 'foo'; + o.schedules = buildUnnamed260(); + } + buildCounterGoogleCloudAiplatformV1ListSchedulesResponse--; + return o; +} -void checkUnnamed258(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Port(o[0]); - checkGoogleCloudAiplatformV1Port(o[1]); +void checkGoogleCloudAiplatformV1ListSchedulesResponse( + api.GoogleCloudAiplatformV1ListSchedulesResponse o, +) { + buildCounterGoogleCloudAiplatformV1ListSchedulesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListSchedulesResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed260(o.schedules!); + } + buildCounterGoogleCloudAiplatformV1ListSchedulesResponse--; } -core.List buildUnnamed259() => [ - buildGoogleCloudAiplatformV1Port(), - buildGoogleCloudAiplatformV1Port(), +core.List buildUnnamed261() => [ + buildGoogleCloudAiplatformV1SpecialistPool(), + buildGoogleCloudAiplatformV1SpecialistPool(), ]; -void checkUnnamed259(core.List o) { +void checkUnnamed261(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Port(o[0]); - checkGoogleCloudAiplatformV1Port(o[1]); + checkGoogleCloudAiplatformV1SpecialistPool(o[0]); + checkGoogleCloudAiplatformV1SpecialistPool(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ModelContainerSpec = 0; -api.GoogleCloudAiplatformV1ModelContainerSpec -buildGoogleCloudAiplatformV1ModelContainerSpec() { - final o = api.GoogleCloudAiplatformV1ModelContainerSpec(); - buildCounterGoogleCloudAiplatformV1ModelContainerSpec++; - if (buildCounterGoogleCloudAiplatformV1ModelContainerSpec < 3) { - o.args = buildUnnamed255(); - o.command = buildUnnamed256(); - o.deploymentTimeout = 'foo'; - o.env = buildUnnamed257(); - o.grpcPorts = buildUnnamed258(); - o.healthProbe = buildGoogleCloudAiplatformV1Probe(); - o.healthRoute = 'foo'; - o.imageUri = 'foo'; - o.invokeRoutePrefix = 'foo'; - o.livenessProbe = buildGoogleCloudAiplatformV1Probe(); - o.ports = buildUnnamed259(); - o.predictRoute = 'foo'; - o.sharedMemorySizeMb = 'foo'; - o.startupProbe = buildGoogleCloudAiplatformV1Probe(); +core.int buildCounterGoogleCloudAiplatformV1ListSpecialistPoolsResponse = 0; +api.GoogleCloudAiplatformV1ListSpecialistPoolsResponse +buildGoogleCloudAiplatformV1ListSpecialistPoolsResponse() { + final o = api.GoogleCloudAiplatformV1ListSpecialistPoolsResponse(); + buildCounterGoogleCloudAiplatformV1ListSpecialistPoolsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListSpecialistPoolsResponse < 3) { + o.nextPageToken = 'foo'; + o.specialistPools = buildUnnamed261(); } - buildCounterGoogleCloudAiplatformV1ModelContainerSpec--; + buildCounterGoogleCloudAiplatformV1ListSpecialistPoolsResponse--; return o; } -void checkGoogleCloudAiplatformV1ModelContainerSpec( - api.GoogleCloudAiplatformV1ModelContainerSpec o, +void checkGoogleCloudAiplatformV1ListSpecialistPoolsResponse( + api.GoogleCloudAiplatformV1ListSpecialistPoolsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ModelContainerSpec++; - if (buildCounterGoogleCloudAiplatformV1ModelContainerSpec < 3) { - checkUnnamed255(o.args!); - checkUnnamed256(o.command!); - unittest.expect(o.deploymentTimeout!, unittest.equals('foo')); - checkUnnamed257(o.env!); - checkUnnamed258(o.grpcPorts!); - checkGoogleCloudAiplatformV1Probe(o.healthProbe!); - unittest.expect(o.healthRoute!, unittest.equals('foo')); - unittest.expect(o.imageUri!, unittest.equals('foo')); - unittest.expect(o.invokeRoutePrefix!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1Probe(o.livenessProbe!); - checkUnnamed259(o.ports!); - unittest.expect(o.predictRoute!, unittest.equals('foo')); - unittest.expect(o.sharedMemorySizeMb!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1Probe(o.startupProbe!); + buildCounterGoogleCloudAiplatformV1ListSpecialistPoolsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListSpecialistPoolsResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed261(o.specialistPools!); } - buildCounterGoogleCloudAiplatformV1ModelContainerSpec--; + buildCounterGoogleCloudAiplatformV1ListSpecialistPoolsResponse--; } -core.int buildCounterGoogleCloudAiplatformV1ModelDataStats = 0; -api.GoogleCloudAiplatformV1ModelDataStats -buildGoogleCloudAiplatformV1ModelDataStats() { - final o = api.GoogleCloudAiplatformV1ModelDataStats(); - buildCounterGoogleCloudAiplatformV1ModelDataStats++; - if (buildCounterGoogleCloudAiplatformV1ModelDataStats < 3) { - o.testAnnotationsCount = 'foo'; - o.testDataItemsCount = 'foo'; - o.trainingAnnotationsCount = 'foo'; - o.trainingDataItemsCount = 'foo'; - o.validationAnnotationsCount = 'foo'; - o.validationDataItemsCount = 'foo'; - } - buildCounterGoogleCloudAiplatformV1ModelDataStats--; - return o; -} +core.List buildUnnamed262() => [ + buildGoogleCloudAiplatformV1Study(), + buildGoogleCloudAiplatformV1Study(), +]; -void checkGoogleCloudAiplatformV1ModelDataStats( - api.GoogleCloudAiplatformV1ModelDataStats o, -) { - buildCounterGoogleCloudAiplatformV1ModelDataStats++; - if (buildCounterGoogleCloudAiplatformV1ModelDataStats < 3) { - unittest.expect(o.testAnnotationsCount!, unittest.equals('foo')); - unittest.expect(o.testDataItemsCount!, unittest.equals('foo')); - unittest.expect(o.trainingAnnotationsCount!, unittest.equals('foo')); - unittest.expect(o.trainingDataItemsCount!, unittest.equals('foo')); - unittest.expect(o.validationAnnotationsCount!, unittest.equals('foo')); - unittest.expect(o.validationDataItemsCount!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1ModelDataStats--; +void checkUnnamed262(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Study(o[0]); + checkGoogleCloudAiplatformV1Study(o[1]); } -core.int -buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable = 0; -api.GoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable -buildGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable() { - final o = api.GoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable(); - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable++; - if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable < - 3) { - o.bigqueryTablePath = 'foo'; - o.logSource = 'foo'; - o.logType = 'foo'; - o.requestResponseLoggingSchemaVersion = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ListStudiesResponse = 0; +api.GoogleCloudAiplatformV1ListStudiesResponse +buildGoogleCloudAiplatformV1ListStudiesResponse() { + final o = api.GoogleCloudAiplatformV1ListStudiesResponse(); + buildCounterGoogleCloudAiplatformV1ListStudiesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListStudiesResponse < 3) { + o.nextPageToken = 'foo'; + o.studies = buildUnnamed262(); } - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable--; + buildCounterGoogleCloudAiplatformV1ListStudiesResponse--; return o; } -void checkGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable( - api.GoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable o, +void checkGoogleCloudAiplatformV1ListStudiesResponse( + api.GoogleCloudAiplatformV1ListStudiesResponse o, ) { - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable++; - if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable < - 3) { - unittest.expect(o.bigqueryTablePath!, unittest.equals('foo')); - unittest.expect(o.logSource!, unittest.equals('foo')); - unittest.expect(o.logType!, unittest.equals('foo')); - unittest.expect( - o.requestResponseLoggingSchemaVersion!, - unittest.equals('foo'), - ); + buildCounterGoogleCloudAiplatformV1ListStudiesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListStudiesResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed262(o.studies!); } - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable--; + buildCounterGoogleCloudAiplatformV1ListStudiesResponse--; } -core.List -buildUnnamed260() => [ - buildGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable(), - buildGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable(), -]; +core.List buildUnnamed263() => + [ + buildGoogleCloudAiplatformV1TensorboardExperiment(), + buildGoogleCloudAiplatformV1TensorboardExperiment(), + ]; -void checkUnnamed260( - core.List - o, +void checkUnnamed263( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable(o[0]); - checkGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable(o[1]); + checkGoogleCloudAiplatformV1TensorboardExperiment(o[0]); + checkGoogleCloudAiplatformV1TensorboardExperiment(o[1]); } -core.Map buildUnnamed261() => { - 'x': 'foo', - 'y': 'foo', -}; +core.int buildCounterGoogleCloudAiplatformV1ListTensorboardExperimentsResponse = + 0; +api.GoogleCloudAiplatformV1ListTensorboardExperimentsResponse +buildGoogleCloudAiplatformV1ListTensorboardExperimentsResponse() { + final o = api.GoogleCloudAiplatformV1ListTensorboardExperimentsResponse(); + buildCounterGoogleCloudAiplatformV1ListTensorboardExperimentsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListTensorboardExperimentsResponse < + 3) { + o.nextPageToken = 'foo'; + o.tensorboardExperiments = buildUnnamed263(); + } + buildCounterGoogleCloudAiplatformV1ListTensorboardExperimentsResponse--; + return o; +} -void checkUnnamed261(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1ListTensorboardExperimentsResponse( + api.GoogleCloudAiplatformV1ListTensorboardExperimentsResponse o, +) { + buildCounterGoogleCloudAiplatformV1ListTensorboardExperimentsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListTensorboardExperimentsResponse < + 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed263(o.tensorboardExperiments!); + } + buildCounterGoogleCloudAiplatformV1ListTensorboardExperimentsResponse--; } -core.List -buildUnnamed262() => [ - buildGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig(), - buildGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig(), +core.List buildUnnamed264() => [ + buildGoogleCloudAiplatformV1TensorboardRun(), + buildGoogleCloudAiplatformV1TensorboardRun(), ]; -void checkUnnamed262( - core.List - o, -) { +void checkUnnamed264(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig(o[0]); - checkGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig(o[1]); + checkGoogleCloudAiplatformV1TensorboardRun(o[0]); + checkGoogleCloudAiplatformV1TensorboardRun(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJob = 0; -api.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob -buildGoogleCloudAiplatformV1ModelDeploymentMonitoringJob() { - final o = api.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob(); - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJob++; - if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJob < 3) { - o.analysisInstanceSchemaUri = 'foo'; - o.bigqueryTables = buildUnnamed260(); - o.createTime = 'foo'; - o.displayName = 'foo'; - o.enableMonitoringPipelineLogs = true; - o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.endpoint = 'foo'; - o.error = buildGoogleRpcStatus(); - o.labels = buildUnnamed261(); - o.latestMonitoringPipelineMetadata = - buildGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata(); - o.logTtl = 'foo'; - o.loggingSamplingStrategy = buildGoogleCloudAiplatformV1SamplingStrategy(); - o.modelDeploymentMonitoringObjectiveConfigs = buildUnnamed262(); - o.modelDeploymentMonitoringScheduleConfig = - buildGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig(); - o.modelMonitoringAlertConfig = - buildGoogleCloudAiplatformV1ModelMonitoringAlertConfig(); - o.name = 'foo'; - o.nextScheduleTime = 'foo'; - o.predictInstanceSchemaUri = 'foo'; - o.samplePredictInstance = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - o.satisfiesPzi = true; - o.satisfiesPzs = true; - o.scheduleState = 'foo'; - o.state = 'foo'; - o.statsAnomaliesBaseDirectory = - buildGoogleCloudAiplatformV1GcsDestination(); - o.updateTime = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ListTensorboardRunsResponse = 0; +api.GoogleCloudAiplatformV1ListTensorboardRunsResponse +buildGoogleCloudAiplatformV1ListTensorboardRunsResponse() { + final o = api.GoogleCloudAiplatformV1ListTensorboardRunsResponse(); + buildCounterGoogleCloudAiplatformV1ListTensorboardRunsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListTensorboardRunsResponse < 3) { + o.nextPageToken = 'foo'; + o.tensorboardRuns = buildUnnamed264(); } - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJob--; + buildCounterGoogleCloudAiplatformV1ListTensorboardRunsResponse--; return o; } -void checkGoogleCloudAiplatformV1ModelDeploymentMonitoringJob( - api.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob o, +void checkGoogleCloudAiplatformV1ListTensorboardRunsResponse( + api.GoogleCloudAiplatformV1ListTensorboardRunsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJob++; - if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJob < 3) { - unittest.expect(o.analysisInstanceSchemaUri!, unittest.equals('foo')); - checkUnnamed260(o.bigqueryTables!); - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - unittest.expect(o.enableMonitoringPipelineLogs!, unittest.isTrue); - checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.endpoint!, unittest.equals('foo')); - checkGoogleRpcStatus(o.error!); - checkUnnamed261(o.labels!); - checkGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata( - o.latestMonitoringPipelineMetadata!, - ); - unittest.expect(o.logTtl!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1SamplingStrategy(o.loggingSamplingStrategy!); - checkUnnamed262(o.modelDeploymentMonitoringObjectiveConfigs!); - checkGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig( - o.modelDeploymentMonitoringScheduleConfig!, - ); - checkGoogleCloudAiplatformV1ModelMonitoringAlertConfig( - o.modelMonitoringAlertConfig!, - ); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.nextScheduleTime!, unittest.equals('foo')); - unittest.expect(o.predictInstanceSchemaUri!, unittest.equals('foo')); - var casted53 = (o.samplePredictInstance!) as core.Map; - unittest.expect(casted53, unittest.hasLength(3)); - unittest.expect(casted53['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted53['bool'], unittest.equals(true)); - unittest.expect(casted53['string'], unittest.equals('foo')); - unittest.expect(o.satisfiesPzi!, unittest.isTrue); - unittest.expect(o.satisfiesPzs!, unittest.isTrue); - unittest.expect(o.scheduleState!, unittest.equals('foo')); - unittest.expect(o.state!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1GcsDestination(o.statsAnomaliesBaseDirectory!); - unittest.expect(o.updateTime!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ListTensorboardRunsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListTensorboardRunsResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed264(o.tensorboardRuns!); } - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJob--; + buildCounterGoogleCloudAiplatformV1ListTensorboardRunsResponse--; } -core.int -buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata = +core.List buildUnnamed265() => + [ + buildGoogleCloudAiplatformV1TensorboardTimeSeries(), + buildGoogleCloudAiplatformV1TensorboardTimeSeries(), + ]; + +void checkUnnamed265( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1TensorboardTimeSeries(o[0]); + checkGoogleCloudAiplatformV1TensorboardTimeSeries(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse = 0; -api.GoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata -buildGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata() { - final o = - api.GoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata(); - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata++; - if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata < +api.GoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse +buildGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse() { + final o = api.GoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse(); + buildCounterGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse < 3) { - o.runTime = 'foo'; - o.status = buildGoogleRpcStatus(); + o.nextPageToken = 'foo'; + o.tensorboardTimeSeries = buildUnnamed265(); } - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata--; + buildCounterGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse--; return o; } -void -checkGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata( - api.GoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata - o, +void checkGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse( + api.GoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse o, ) { - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata++; - if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata < + buildCounterGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse < 3) { - unittest.expect(o.runTime!, unittest.equals('foo')); - checkGoogleRpcStatus(o.status!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed265(o.tensorboardTimeSeries!); } - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata--; + buildCounterGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse--; } -core.int -buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig = 0; -api.GoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig -buildGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig() { - final o = - api.GoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig(); - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig < - 3) { - o.deployedModelId = 'foo'; - o.objectiveConfig = - buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig(); +core.List buildUnnamed266() => [ + buildGoogleCloudAiplatformV1Tensorboard(), + buildGoogleCloudAiplatformV1Tensorboard(), +]; + +void checkUnnamed266(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Tensorboard(o[0]); + checkGoogleCloudAiplatformV1Tensorboard(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ListTensorboardsResponse = 0; +api.GoogleCloudAiplatformV1ListTensorboardsResponse +buildGoogleCloudAiplatformV1ListTensorboardsResponse() { + final o = api.GoogleCloudAiplatformV1ListTensorboardsResponse(); + buildCounterGoogleCloudAiplatformV1ListTensorboardsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListTensorboardsResponse < 3) { + o.nextPageToken = 'foo'; + o.tensorboards = buildUnnamed266(); } - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig--; + buildCounterGoogleCloudAiplatformV1ListTensorboardsResponse--; return o; } -void checkGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig( - api.GoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig o, +void checkGoogleCloudAiplatformV1ListTensorboardsResponse( + api.GoogleCloudAiplatformV1ListTensorboardsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig < - 3) { - unittest.expect(o.deployedModelId!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig( - o.objectiveConfig!, - ); + buildCounterGoogleCloudAiplatformV1ListTensorboardsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListTensorboardsResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed266(o.tensorboards!); } - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig--; + buildCounterGoogleCloudAiplatformV1ListTensorboardsResponse--; } -core.int -buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig = 0; -api.GoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig -buildGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig() { - final o = - api.GoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig(); - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig < - 3) { - o.monitorInterval = 'foo'; - o.monitorWindow = 'foo'; +core.List buildUnnamed267() => [ + buildGoogleCloudAiplatformV1TrainingPipeline(), + buildGoogleCloudAiplatformV1TrainingPipeline(), +]; + +void checkUnnamed267(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1TrainingPipeline(o[0]); + checkGoogleCloudAiplatformV1TrainingPipeline(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ListTrainingPipelinesResponse = 0; +api.GoogleCloudAiplatformV1ListTrainingPipelinesResponse +buildGoogleCloudAiplatformV1ListTrainingPipelinesResponse() { + final o = api.GoogleCloudAiplatformV1ListTrainingPipelinesResponse(); + buildCounterGoogleCloudAiplatformV1ListTrainingPipelinesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListTrainingPipelinesResponse < 3) { + o.nextPageToken = 'foo'; + o.trainingPipelines = buildUnnamed267(); } - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig--; + buildCounterGoogleCloudAiplatformV1ListTrainingPipelinesResponse--; return o; } -void checkGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig( - api.GoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig o, +void checkGoogleCloudAiplatformV1ListTrainingPipelinesResponse( + api.GoogleCloudAiplatformV1ListTrainingPipelinesResponse o, ) { - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig < - 3) { - unittest.expect(o.monitorInterval!, unittest.equals('foo')); - unittest.expect(o.monitorWindow!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ListTrainingPipelinesResponse++; + if (buildCounterGoogleCloudAiplatformV1ListTrainingPipelinesResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed267(o.trainingPipelines!); } - buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig--; + buildCounterGoogleCloudAiplatformV1ListTrainingPipelinesResponse--; } -core.List< - api.GoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec -> -buildUnnamed263() => [ - buildGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec(), - buildGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec(), +core.List buildUnnamed268() => [ + buildGoogleCloudAiplatformV1Trial(), + buildGoogleCloudAiplatformV1Trial(), ]; -void checkUnnamed263( - core.List< - api.GoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec - > - o, -) { +void checkUnnamed268(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec( - o[0], - ); - checkGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec( - o[1], - ); + checkGoogleCloudAiplatformV1Trial(o[0]); + checkGoogleCloudAiplatformV1Trial(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ListTrialsResponse = 0; +api.GoogleCloudAiplatformV1ListTrialsResponse +buildGoogleCloudAiplatformV1ListTrialsResponse() { + final o = api.GoogleCloudAiplatformV1ListTrialsResponse(); + buildCounterGoogleCloudAiplatformV1ListTrialsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListTrialsResponse < 3) { + o.nextPageToken = 'foo'; + o.trials = buildUnnamed268(); + } + buildCounterGoogleCloudAiplatformV1ListTrialsResponse--; + return o; +} + +void checkGoogleCloudAiplatformV1ListTrialsResponse( + api.GoogleCloudAiplatformV1ListTrialsResponse o, +) { + buildCounterGoogleCloudAiplatformV1ListTrialsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListTrialsResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed268(o.trials!); + } + buildCounterGoogleCloudAiplatformV1ListTrialsResponse--; } -core.List buildUnnamed264() => ['foo', 'foo']; +core.List buildUnnamed269() => [ + buildGoogleCloudAiplatformV1TuningJob(), + buildGoogleCloudAiplatformV1TuningJob(), +]; -void checkUnnamed264(core.List o) { +void checkUnnamed269(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1TuningJob(o[0]); + checkGoogleCloudAiplatformV1TuningJob(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ModelEvaluation = 0; -api.GoogleCloudAiplatformV1ModelEvaluation -buildGoogleCloudAiplatformV1ModelEvaluation() { - final o = api.GoogleCloudAiplatformV1ModelEvaluation(); - buildCounterGoogleCloudAiplatformV1ModelEvaluation++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluation < 3) { - o.annotationSchemaUri = 'foo'; - o.createTime = 'foo'; - o.dataItemSchemaUri = 'foo'; - o.displayName = 'foo'; - o.explanationSpecs = buildUnnamed263(); - o.metadata = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - o.metrics = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - o.metricsSchemaUri = 'foo'; - o.modelExplanation = buildGoogleCloudAiplatformV1ModelExplanation(); - o.name = 'foo'; - o.sliceDimensions = buildUnnamed264(); +core.int buildCounterGoogleCloudAiplatformV1ListTuningJobsResponse = 0; +api.GoogleCloudAiplatformV1ListTuningJobsResponse +buildGoogleCloudAiplatformV1ListTuningJobsResponse() { + final o = api.GoogleCloudAiplatformV1ListTuningJobsResponse(); + buildCounterGoogleCloudAiplatformV1ListTuningJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListTuningJobsResponse < 3) { + o.nextPageToken = 'foo'; + o.tuningJobs = buildUnnamed269(); } - buildCounterGoogleCloudAiplatformV1ModelEvaluation--; + buildCounterGoogleCloudAiplatformV1ListTuningJobsResponse--; return o; } -void checkGoogleCloudAiplatformV1ModelEvaluation( - api.GoogleCloudAiplatformV1ModelEvaluation o, +void checkGoogleCloudAiplatformV1ListTuningJobsResponse( + api.GoogleCloudAiplatformV1ListTuningJobsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ModelEvaluation++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluation < 3) { - unittest.expect(o.annotationSchemaUri!, unittest.equals('foo')); - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.dataItemSchemaUri!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed263(o.explanationSpecs!); - var casted54 = (o.metadata!) as core.Map; - unittest.expect(casted54, unittest.hasLength(3)); - unittest.expect(casted54['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted54['bool'], unittest.equals(true)); - unittest.expect(casted54['string'], unittest.equals('foo')); - var casted55 = (o.metrics!) as core.Map; - unittest.expect(casted55, unittest.hasLength(3)); - unittest.expect(casted55['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted55['bool'], unittest.equals(true)); - unittest.expect(casted55['string'], unittest.equals('foo')); - unittest.expect(o.metricsSchemaUri!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ModelExplanation(o.modelExplanation!); - unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed264(o.sliceDimensions!); + buildCounterGoogleCloudAiplatformV1ListTuningJobsResponse++; + if (buildCounterGoogleCloudAiplatformV1ListTuningJobsResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed269(o.tuningJobs!); } - buildCounterGoogleCloudAiplatformV1ModelEvaluation--; + buildCounterGoogleCloudAiplatformV1ListTuningJobsResponse--; } -core.int -buildCounterGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec = - 0; -api.GoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec -buildGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec() { - final o = - api.GoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec(); - buildCounterGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec < - 3) { - o.explanationSpec = buildGoogleCloudAiplatformV1ExplanationSpec(); - o.explanationType = 'foo'; - } - buildCounterGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec--; - return o; +core.List +buildUnnamed270() => [ + buildGoogleCloudAiplatformV1LogprobsResultCandidate(), + buildGoogleCloudAiplatformV1LogprobsResultCandidate(), +]; + +void checkUnnamed270( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1LogprobsResultCandidate(o[0]); + checkGoogleCloudAiplatformV1LogprobsResultCandidate(o[1]); } -void checkGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec( - api.GoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec o, +core.List +buildUnnamed271() => [ + buildGoogleCloudAiplatformV1LogprobsResultTopCandidates(), + buildGoogleCloudAiplatformV1LogprobsResultTopCandidates(), +]; + +void checkUnnamed271( + core.List o, ) { - buildCounterGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec < - 3) { - checkGoogleCloudAiplatformV1ExplanationSpec(o.explanationSpec!); - unittest.expect(o.explanationType!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1LogprobsResultTopCandidates(o[0]); + checkGoogleCloudAiplatformV1LogprobsResultTopCandidates(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ModelEvaluationSlice = 0; -api.GoogleCloudAiplatformV1ModelEvaluationSlice -buildGoogleCloudAiplatformV1ModelEvaluationSlice() { - final o = api.GoogleCloudAiplatformV1ModelEvaluationSlice(); - buildCounterGoogleCloudAiplatformV1ModelEvaluationSlice++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSlice < 3) { - o.createTime = 'foo'; - o.metrics = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - o.metricsSchemaUri = 'foo'; - o.modelExplanation = buildGoogleCloudAiplatformV1ModelExplanation(); - o.name = 'foo'; - o.slice = buildGoogleCloudAiplatformV1ModelEvaluationSliceSlice(); +core.int buildCounterGoogleCloudAiplatformV1LogprobsResult = 0; +api.GoogleCloudAiplatformV1LogprobsResult +buildGoogleCloudAiplatformV1LogprobsResult() { + final o = api.GoogleCloudAiplatformV1LogprobsResult(); + buildCounterGoogleCloudAiplatformV1LogprobsResult++; + if (buildCounterGoogleCloudAiplatformV1LogprobsResult < 3) { + o.chosenCandidates = buildUnnamed270(); + o.topCandidates = buildUnnamed271(); } - buildCounterGoogleCloudAiplatformV1ModelEvaluationSlice--; + buildCounterGoogleCloudAiplatformV1LogprobsResult--; return o; } -void checkGoogleCloudAiplatformV1ModelEvaluationSlice( - api.GoogleCloudAiplatformV1ModelEvaluationSlice o, +void checkGoogleCloudAiplatformV1LogprobsResult( + api.GoogleCloudAiplatformV1LogprobsResult o, ) { - buildCounterGoogleCloudAiplatformV1ModelEvaluationSlice++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSlice < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - var casted56 = (o.metrics!) as core.Map; - unittest.expect(casted56, unittest.hasLength(3)); - unittest.expect(casted56['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted56['bool'], unittest.equals(true)); - unittest.expect(casted56['string'], unittest.equals('foo')); - unittest.expect(o.metricsSchemaUri!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ModelExplanation(o.modelExplanation!); - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ModelEvaluationSliceSlice(o.slice!); + buildCounterGoogleCloudAiplatformV1LogprobsResult++; + if (buildCounterGoogleCloudAiplatformV1LogprobsResult < 3) { + checkUnnamed270(o.chosenCandidates!); + checkUnnamed271(o.topCandidates!); } - buildCounterGoogleCloudAiplatformV1ModelEvaluationSlice--; + buildCounterGoogleCloudAiplatformV1LogprobsResult--; } -core.int buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSlice = 0; -api.GoogleCloudAiplatformV1ModelEvaluationSliceSlice -buildGoogleCloudAiplatformV1ModelEvaluationSliceSlice() { - final o = api.GoogleCloudAiplatformV1ModelEvaluationSliceSlice(); - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSlice++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSlice < 3) { - o.dimension = 'foo'; - o.sliceSpec = - buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec(); - o.value = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1LogprobsResultCandidate = 0; +api.GoogleCloudAiplatformV1LogprobsResultCandidate +buildGoogleCloudAiplatformV1LogprobsResultCandidate() { + final o = api.GoogleCloudAiplatformV1LogprobsResultCandidate(); + buildCounterGoogleCloudAiplatformV1LogprobsResultCandidate++; + if (buildCounterGoogleCloudAiplatformV1LogprobsResultCandidate < 3) { + o.logProbability = 42.0; + o.token = 'foo'; + o.tokenId = 42; } - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSlice--; + buildCounterGoogleCloudAiplatformV1LogprobsResultCandidate--; return o; } -void checkGoogleCloudAiplatformV1ModelEvaluationSliceSlice( - api.GoogleCloudAiplatformV1ModelEvaluationSliceSlice o, +void checkGoogleCloudAiplatformV1LogprobsResultCandidate( + api.GoogleCloudAiplatformV1LogprobsResultCandidate o, ) { - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSlice++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSlice < 3) { - unittest.expect(o.dimension!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec( - o.sliceSpec!, - ); - unittest.expect(o.value!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1LogprobsResultCandidate++; + if (buildCounterGoogleCloudAiplatformV1LogprobsResultCandidate < 3) { + unittest.expect(o.logProbability!, unittest.equals(42.0)); + unittest.expect(o.token!, unittest.equals('foo')); + unittest.expect(o.tokenId!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSlice--; + buildCounterGoogleCloudAiplatformV1LogprobsResultCandidate--; } -core.Map< - core.String, - api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig -> -buildUnnamed265() => { - 'x': - buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig(), - 'y': - buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig(), -}; +core.List +buildUnnamed272() => [ + buildGoogleCloudAiplatformV1LogprobsResultCandidate(), + buildGoogleCloudAiplatformV1LogprobsResultCandidate(), +]; -void checkUnnamed265( - core.Map< - core.String, - api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig - > - o, +void checkUnnamed272( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig( - o['x']!, - ); - checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig( - o['y']!, - ); + checkGoogleCloudAiplatformV1LogprobsResultCandidate(o[0]); + checkGoogleCloudAiplatformV1LogprobsResultCandidate(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec = - 0; -api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec -buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec() { - final o = api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec(); - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec < - 3) { - o.configs = buildUnnamed265(); +core.int buildCounterGoogleCloudAiplatformV1LogprobsResultTopCandidates = 0; +api.GoogleCloudAiplatformV1LogprobsResultTopCandidates +buildGoogleCloudAiplatformV1LogprobsResultTopCandidates() { + final o = api.GoogleCloudAiplatformV1LogprobsResultTopCandidates(); + buildCounterGoogleCloudAiplatformV1LogprobsResultTopCandidates++; + if (buildCounterGoogleCloudAiplatformV1LogprobsResultTopCandidates < 3) { + o.candidates = buildUnnamed272(); } - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec--; + buildCounterGoogleCloudAiplatformV1LogprobsResultTopCandidates--; return o; } -void checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec( - api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec o, +void checkGoogleCloudAiplatformV1LogprobsResultTopCandidates( + api.GoogleCloudAiplatformV1LogprobsResultTopCandidates o, ) { - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec < - 3) { - checkUnnamed265(o.configs!); + buildCounterGoogleCloudAiplatformV1LogprobsResultTopCandidates++; + if (buildCounterGoogleCloudAiplatformV1LogprobsResultTopCandidates < 3) { + checkUnnamed272(o.candidates!); } - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec--; + buildCounterGoogleCloudAiplatformV1LogprobsResultTopCandidates--; } -core.int -buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange = 0; -api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange -buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange() { - final o = - api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange(); - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange < - 3) { - o.high = 42.0; - o.low = 42.0; +core.int buildCounterGoogleCloudAiplatformV1LookupStudyRequest = 0; +api.GoogleCloudAiplatformV1LookupStudyRequest +buildGoogleCloudAiplatformV1LookupStudyRequest() { + final o = api.GoogleCloudAiplatformV1LookupStudyRequest(); + buildCounterGoogleCloudAiplatformV1LookupStudyRequest++; + if (buildCounterGoogleCloudAiplatformV1LookupStudyRequest < 3) { + o.displayName = 'foo'; } - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange--; + buildCounterGoogleCloudAiplatformV1LookupStudyRequest--; return o; } -void checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange( - api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange o, +void checkGoogleCloudAiplatformV1LookupStudyRequest( + api.GoogleCloudAiplatformV1LookupStudyRequest o, ) { - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange < - 3) { - unittest.expect(o.high!, unittest.equals(42.0)); - unittest.expect(o.low!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1LookupStudyRequest++; + if (buildCounterGoogleCloudAiplatformV1LookupStudyRequest < 3) { + unittest.expect(o.displayName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange--; + buildCounterGoogleCloudAiplatformV1LookupStudyRequest--; } -core.int -buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig = - 0; -api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig -buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig() { - final o = - api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig(); - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig < - 3) { - o.allValues = true; - o.range = - buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange(); - o.value = - buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue(); +core.int buildCounterGoogleCloudAiplatformV1MachineSpec = 0; +api.GoogleCloudAiplatformV1MachineSpec +buildGoogleCloudAiplatformV1MachineSpec() { + final o = api.GoogleCloudAiplatformV1MachineSpec(); + buildCounterGoogleCloudAiplatformV1MachineSpec++; + if (buildCounterGoogleCloudAiplatformV1MachineSpec < 3) { + o.acceleratorCount = 42; + o.acceleratorType = 'foo'; + o.machineType = 'foo'; + o.reservationAffinity = buildGoogleCloudAiplatformV1ReservationAffinity(); + o.tpuTopology = 'foo'; } - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig--; + buildCounterGoogleCloudAiplatformV1MachineSpec--; return o; } -void checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig( - api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig o, +void checkGoogleCloudAiplatformV1MachineSpec( + api.GoogleCloudAiplatformV1MachineSpec o, ) { - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig < - 3) { - unittest.expect(o.allValues!, unittest.isTrue); - checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange( - o.range!, - ); - checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue( - o.value!, - ); + buildCounterGoogleCloudAiplatformV1MachineSpec++; + if (buildCounterGoogleCloudAiplatformV1MachineSpec < 3) { + unittest.expect(o.acceleratorCount!, unittest.equals(42)); + unittest.expect(o.acceleratorType!, unittest.equals('foo')); + unittest.expect(o.machineType!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ReservationAffinity(o.reservationAffinity!); + unittest.expect(o.tpuTopology!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig--; + buildCounterGoogleCloudAiplatformV1MachineSpec--; } -core.int -buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue = 0; -api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue -buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue() { - final o = - api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue(); - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue < - 3) { - o.floatValue = 42.0; - o.stringValue = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ManualBatchTuningParameters = 0; +api.GoogleCloudAiplatformV1ManualBatchTuningParameters +buildGoogleCloudAiplatformV1ManualBatchTuningParameters() { + final o = api.GoogleCloudAiplatformV1ManualBatchTuningParameters(); + buildCounterGoogleCloudAiplatformV1ManualBatchTuningParameters++; + if (buildCounterGoogleCloudAiplatformV1ManualBatchTuningParameters < 3) { + o.batchSize = 42; } - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue--; + buildCounterGoogleCloudAiplatformV1ManualBatchTuningParameters--; return o; } -void checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue( - api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue o, +void checkGoogleCloudAiplatformV1ManualBatchTuningParameters( + api.GoogleCloudAiplatformV1ManualBatchTuningParameters o, ) { - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue++; - if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue < - 3) { - unittest.expect(o.floatValue!, unittest.equals(42.0)); - unittest.expect(o.stringValue!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ManualBatchTuningParameters++; + if (buildCounterGoogleCloudAiplatformV1ManualBatchTuningParameters < 3) { + unittest.expect(o.batchSize!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue--; + buildCounterGoogleCloudAiplatformV1ManualBatchTuningParameters--; } -core.List buildUnnamed266() => [ - buildGoogleCloudAiplatformV1Attribution(), - buildGoogleCloudAiplatformV1Attribution(), +core.List buildUnnamed273() => [ + buildGoogleCloudAiplatformV1MeasurementMetric(), + buildGoogleCloudAiplatformV1MeasurementMetric(), ]; -void checkUnnamed266(core.List o) { +void checkUnnamed273( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Attribution(o[0]); - checkGoogleCloudAiplatformV1Attribution(o[1]); + checkGoogleCloudAiplatformV1MeasurementMetric(o[0]); + checkGoogleCloudAiplatformV1MeasurementMetric(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ModelExplanation = 0; -api.GoogleCloudAiplatformV1ModelExplanation -buildGoogleCloudAiplatformV1ModelExplanation() { - final o = api.GoogleCloudAiplatformV1ModelExplanation(); - buildCounterGoogleCloudAiplatformV1ModelExplanation++; - if (buildCounterGoogleCloudAiplatformV1ModelExplanation < 3) { - o.meanAttributions = buildUnnamed266(); +core.int buildCounterGoogleCloudAiplatformV1Measurement = 0; +api.GoogleCloudAiplatformV1Measurement +buildGoogleCloudAiplatformV1Measurement() { + final o = api.GoogleCloudAiplatformV1Measurement(); + buildCounterGoogleCloudAiplatformV1Measurement++; + if (buildCounterGoogleCloudAiplatformV1Measurement < 3) { + o.elapsedDuration = 'foo'; + o.metrics = buildUnnamed273(); + o.stepCount = 'foo'; } - buildCounterGoogleCloudAiplatformV1ModelExplanation--; - return o; -} - -void checkGoogleCloudAiplatformV1ModelExplanation( - api.GoogleCloudAiplatformV1ModelExplanation o, -) { - buildCounterGoogleCloudAiplatformV1ModelExplanation++; - if (buildCounterGoogleCloudAiplatformV1ModelExplanation < 3) { - checkUnnamed266(o.meanAttributions!); - } - buildCounterGoogleCloudAiplatformV1ModelExplanation--; -} - -core.List buildUnnamed267() => ['foo', 'foo']; - -void checkUnnamed267(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterGoogleCloudAiplatformV1ModelExportFormat = 0; -api.GoogleCloudAiplatformV1ModelExportFormat -buildGoogleCloudAiplatformV1ModelExportFormat() { - final o = api.GoogleCloudAiplatformV1ModelExportFormat(); - buildCounterGoogleCloudAiplatformV1ModelExportFormat++; - if (buildCounterGoogleCloudAiplatformV1ModelExportFormat < 3) { - o.exportableContents = buildUnnamed267(); - o.id = 'foo'; - } - buildCounterGoogleCloudAiplatformV1ModelExportFormat--; + buildCounterGoogleCloudAiplatformV1Measurement--; return o; } -void checkGoogleCloudAiplatformV1ModelExportFormat( - api.GoogleCloudAiplatformV1ModelExportFormat o, +void checkGoogleCloudAiplatformV1Measurement( + api.GoogleCloudAiplatformV1Measurement o, ) { - buildCounterGoogleCloudAiplatformV1ModelExportFormat++; - if (buildCounterGoogleCloudAiplatformV1ModelExportFormat < 3) { - checkUnnamed267(o.exportableContents!); - unittest.expect(o.id!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1Measurement++; + if (buildCounterGoogleCloudAiplatformV1Measurement < 3) { + unittest.expect(o.elapsedDuration!, unittest.equals('foo')); + checkUnnamed273(o.metrics!); + unittest.expect(o.stepCount!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ModelExportFormat--; + buildCounterGoogleCloudAiplatformV1Measurement--; } -core.int buildCounterGoogleCloudAiplatformV1ModelGardenSource = 0; -api.GoogleCloudAiplatformV1ModelGardenSource -buildGoogleCloudAiplatformV1ModelGardenSource() { - final o = api.GoogleCloudAiplatformV1ModelGardenSource(); - buildCounterGoogleCloudAiplatformV1ModelGardenSource++; - if (buildCounterGoogleCloudAiplatformV1ModelGardenSource < 3) { - o.publicModelName = 'foo'; - o.skipHfModelCache = true; - o.versionId = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1MeasurementMetric = 0; +api.GoogleCloudAiplatformV1MeasurementMetric +buildGoogleCloudAiplatformV1MeasurementMetric() { + final o = api.GoogleCloudAiplatformV1MeasurementMetric(); + buildCounterGoogleCloudAiplatformV1MeasurementMetric++; + if (buildCounterGoogleCloudAiplatformV1MeasurementMetric < 3) { + o.metricId = 'foo'; + o.value = 42.0; } - buildCounterGoogleCloudAiplatformV1ModelGardenSource--; + buildCounterGoogleCloudAiplatformV1MeasurementMetric--; return o; } -void checkGoogleCloudAiplatformV1ModelGardenSource( - api.GoogleCloudAiplatformV1ModelGardenSource o, +void checkGoogleCloudAiplatformV1MeasurementMetric( + api.GoogleCloudAiplatformV1MeasurementMetric o, ) { - buildCounterGoogleCloudAiplatformV1ModelGardenSource++; - if (buildCounterGoogleCloudAiplatformV1ModelGardenSource < 3) { - unittest.expect(o.publicModelName!, unittest.equals('foo')); - unittest.expect(o.skipHfModelCache!, unittest.isTrue); - unittest.expect(o.versionId!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1MeasurementMetric++; + if (buildCounterGoogleCloudAiplatformV1MeasurementMetric < 3) { + unittest.expect(o.metricId!, unittest.equals('foo')); + unittest.expect(o.value!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1ModelGardenSource--; + buildCounterGoogleCloudAiplatformV1MeasurementMetric--; } -core.List buildUnnamed268() => ['foo', 'foo']; +core.List buildUnnamed274() => ['foo', 'foo']; -void checkUnnamed268(core.List o) { +void checkUnnamed274(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfig = 0; -api.GoogleCloudAiplatformV1ModelMonitoringAlertConfig -buildGoogleCloudAiplatformV1ModelMonitoringAlertConfig() { - final o = api.GoogleCloudAiplatformV1ModelMonitoringAlertConfig(); - buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfig < 3) { - o.emailAlertConfig = - buildGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig(); - o.enableLogging = true; - o.notificationChannels = buildUnnamed268(); +core.int buildCounterGoogleCloudAiplatformV1MergeVersionAliasesRequest = 0; +api.GoogleCloudAiplatformV1MergeVersionAliasesRequest +buildGoogleCloudAiplatformV1MergeVersionAliasesRequest() { + final o = api.GoogleCloudAiplatformV1MergeVersionAliasesRequest(); + buildCounterGoogleCloudAiplatformV1MergeVersionAliasesRequest++; + if (buildCounterGoogleCloudAiplatformV1MergeVersionAliasesRequest < 3) { + o.versionAliases = buildUnnamed274(); } - buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfig--; + buildCounterGoogleCloudAiplatformV1MergeVersionAliasesRequest--; return o; } -void checkGoogleCloudAiplatformV1ModelMonitoringAlertConfig( - api.GoogleCloudAiplatformV1ModelMonitoringAlertConfig o, +void checkGoogleCloudAiplatformV1MergeVersionAliasesRequest( + api.GoogleCloudAiplatformV1MergeVersionAliasesRequest o, ) { - buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfig < 3) { - checkGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig( - o.emailAlertConfig!, - ); - unittest.expect(o.enableLogging!, unittest.isTrue); - checkUnnamed268(o.notificationChannels!); + buildCounterGoogleCloudAiplatformV1MergeVersionAliasesRequest++; + if (buildCounterGoogleCloudAiplatformV1MergeVersionAliasesRequest < 3) { + checkUnnamed274(o.versionAliases!); } - buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfig--; -} - -core.List buildUnnamed269() => ['foo', 'foo']; - -void checkUnnamed269(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1MergeVersionAliasesRequest--; } -core.int -buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig = - 0; -api.GoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig -buildGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig() { - final o = - api.GoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig(); - buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig < - 3) { - o.userEmails = buildUnnamed269(); +core.int buildCounterGoogleCloudAiplatformV1MetadataSchema = 0; +api.GoogleCloudAiplatformV1MetadataSchema +buildGoogleCloudAiplatformV1MetadataSchema() { + final o = api.GoogleCloudAiplatformV1MetadataSchema(); + buildCounterGoogleCloudAiplatformV1MetadataSchema++; + if (buildCounterGoogleCloudAiplatformV1MetadataSchema < 3) { + o.createTime = 'foo'; + o.description = 'foo'; + o.name = 'foo'; + o.schema = 'foo'; + o.schemaType = 'foo'; + o.schemaVersion = 'foo'; } - buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig--; + buildCounterGoogleCloudAiplatformV1MetadataSchema--; return o; } -void checkGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig( - api.GoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig o, +void checkGoogleCloudAiplatformV1MetadataSchema( + api.GoogleCloudAiplatformV1MetadataSchema o, ) { - buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig < - 3) { - checkUnnamed269(o.userEmails!); + buildCounterGoogleCloudAiplatformV1MetadataSchema++; + if (buildCounterGoogleCloudAiplatformV1MetadataSchema < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.schema!, unittest.equals('foo')); + unittest.expect(o.schemaType!, unittest.equals('foo')); + unittest.expect(o.schemaVersion!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig--; + buildCounterGoogleCloudAiplatformV1MetadataSchema--; } -core.int buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig = 0; -api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfig -buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig() { - final o = api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfig(); - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig < 3) { - o.explanationConfig = - buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig(); - o.predictionDriftDetectionConfig = - buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig(); - o.trainingDataset = - buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset(); - o.trainingPredictionSkewDetectionConfig = - buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig(); +core.int buildCounterGoogleCloudAiplatformV1MetadataStore = 0; +api.GoogleCloudAiplatformV1MetadataStore +buildGoogleCloudAiplatformV1MetadataStore() { + final o = api.GoogleCloudAiplatformV1MetadataStore(); + buildCounterGoogleCloudAiplatformV1MetadataStore++; + if (buildCounterGoogleCloudAiplatformV1MetadataStore < 3) { + o.createTime = 'foo'; + o.dataplexConfig = + buildGoogleCloudAiplatformV1MetadataStoreDataplexConfig(); + o.description = 'foo'; + o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.name = 'foo'; + o.state = buildGoogleCloudAiplatformV1MetadataStoreMetadataStoreState(); + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig--; + buildCounterGoogleCloudAiplatformV1MetadataStore--; return o; } -void checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig( - api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfig o, +void checkGoogleCloudAiplatformV1MetadataStore( + api.GoogleCloudAiplatformV1MetadataStore o, ) { - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig < 3) { - checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig( - o.explanationConfig!, - ); - checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig( - o.predictionDriftDetectionConfig!, - ); - checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset( - o.trainingDataset!, - ); - checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig( - o.trainingPredictionSkewDetectionConfig!, - ); + buildCounterGoogleCloudAiplatformV1MetadataStore++; + if (buildCounterGoogleCloudAiplatformV1MetadataStore < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1MetadataStoreDataplexConfig(o.dataplexConfig!); + unittest.expect(o.description!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1MetadataStoreMetadataStoreState(o.state!); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig--; + buildCounterGoogleCloudAiplatformV1MetadataStore--; } -core.int -buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig = - 0; -api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig -buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig() { - final o = - api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig(); - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig < - 3) { - o.enableFeatureAttributes = true; - o.explanationBaseline = - buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline(); +core.int buildCounterGoogleCloudAiplatformV1MetadataStoreDataplexConfig = 0; +api.GoogleCloudAiplatformV1MetadataStoreDataplexConfig +buildGoogleCloudAiplatformV1MetadataStoreDataplexConfig() { + final o = api.GoogleCloudAiplatformV1MetadataStoreDataplexConfig(); + buildCounterGoogleCloudAiplatformV1MetadataStoreDataplexConfig++; + if (buildCounterGoogleCloudAiplatformV1MetadataStoreDataplexConfig < 3) { + o.enabledPipelinesLineage = true; } - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig--; + buildCounterGoogleCloudAiplatformV1MetadataStoreDataplexConfig--; return o; } -void -checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig( - api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig o, +void checkGoogleCloudAiplatformV1MetadataStoreDataplexConfig( + api.GoogleCloudAiplatformV1MetadataStoreDataplexConfig o, ) { - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig < - 3) { - unittest.expect(o.enableFeatureAttributes!, unittest.isTrue); - checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline( - o.explanationBaseline!, - ); + buildCounterGoogleCloudAiplatformV1MetadataStoreDataplexConfig++; + if (buildCounterGoogleCloudAiplatformV1MetadataStoreDataplexConfig < 3) { + unittest.expect(o.enabledPipelinesLineage!, unittest.isTrue); } - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig--; + buildCounterGoogleCloudAiplatformV1MetadataStoreDataplexConfig--; } -core.int -buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline = - 0; -api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline -buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline() { - final o = - api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline(); - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline < - 3) { - o.bigquery = buildGoogleCloudAiplatformV1BigQueryDestination(); - o.gcs = buildGoogleCloudAiplatformV1GcsDestination(); - o.predictionFormat = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1MetadataStoreMetadataStoreState = 0; +api.GoogleCloudAiplatformV1MetadataStoreMetadataStoreState +buildGoogleCloudAiplatformV1MetadataStoreMetadataStoreState() { + final o = api.GoogleCloudAiplatformV1MetadataStoreMetadataStoreState(); + buildCounterGoogleCloudAiplatformV1MetadataStoreMetadataStoreState++; + if (buildCounterGoogleCloudAiplatformV1MetadataStoreMetadataStoreState < 3) { + o.diskUtilizationBytes = 'foo'; } - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline--; + buildCounterGoogleCloudAiplatformV1MetadataStoreMetadataStoreState--; return o; } -void -checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline( - api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline - o, +void checkGoogleCloudAiplatformV1MetadataStoreMetadataStoreState( + api.GoogleCloudAiplatformV1MetadataStoreMetadataStoreState o, ) { - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline < - 3) { - checkGoogleCloudAiplatformV1BigQueryDestination(o.bigquery!); - checkGoogleCloudAiplatformV1GcsDestination(o.gcs!); - unittest.expect(o.predictionFormat!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1MetadataStoreMetadataStoreState++; + if (buildCounterGoogleCloudAiplatformV1MetadataStoreMetadataStoreState < 3) { + unittest.expect(o.diskUtilizationBytes!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline--; + buildCounterGoogleCloudAiplatformV1MetadataStoreMetadataStoreState--; } -core.Map -buildUnnamed270() => { - 'x': buildGoogleCloudAiplatformV1ThresholdConfig(), - 'y': buildGoogleCloudAiplatformV1ThresholdConfig(), -}; +core.List buildUnnamed275() => ['foo', 'foo']; -void checkUnnamed270( - core.Map o, -) { +void checkUnnamed275(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ThresholdConfig(o['x']!); - checkGoogleCloudAiplatformV1ThresholdConfig(o['y']!); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.Map -buildUnnamed271() => { - 'x': buildGoogleCloudAiplatformV1ThresholdConfig(), - 'y': buildGoogleCloudAiplatformV1ThresholdConfig(), -}; +core.int buildCounterGoogleCloudAiplatformV1Metric = 0; +api.GoogleCloudAiplatformV1Metric buildGoogleCloudAiplatformV1Metric() { + final o = api.GoogleCloudAiplatformV1Metric(); + buildCounterGoogleCloudAiplatformV1Metric++; + if (buildCounterGoogleCloudAiplatformV1Metric < 3) { + o.aggregationMetrics = buildUnnamed275(); + o.bleuSpec = buildGoogleCloudAiplatformV1BleuSpec(); + o.exactMatchSpec = buildGoogleCloudAiplatformV1ExactMatchSpec(); + o.llmBasedMetricSpec = buildGoogleCloudAiplatformV1LLMBasedMetricSpec(); + o.pairwiseMetricSpec = buildGoogleCloudAiplatformV1PairwiseMetricSpec(); + o.pointwiseMetricSpec = buildGoogleCloudAiplatformV1PointwiseMetricSpec(); + o.predefinedMetricSpec = buildGoogleCloudAiplatformV1PredefinedMetricSpec(); + o.rougeSpec = buildGoogleCloudAiplatformV1RougeSpec(); + } + buildCounterGoogleCloudAiplatformV1Metric--; + return o; +} -void checkUnnamed271( - core.Map o, -) { +void checkGoogleCloudAiplatformV1Metric(api.GoogleCloudAiplatformV1Metric o) { + buildCounterGoogleCloudAiplatformV1Metric++; + if (buildCounterGoogleCloudAiplatformV1Metric < 3) { + checkUnnamed275(o.aggregationMetrics!); + checkGoogleCloudAiplatformV1BleuSpec(o.bleuSpec!); + checkGoogleCloudAiplatformV1ExactMatchSpec(o.exactMatchSpec!); + checkGoogleCloudAiplatformV1LLMBasedMetricSpec(o.llmBasedMetricSpec!); + checkGoogleCloudAiplatformV1PairwiseMetricSpec(o.pairwiseMetricSpec!); + checkGoogleCloudAiplatformV1PointwiseMetricSpec(o.pointwiseMetricSpec!); + checkGoogleCloudAiplatformV1PredefinedMetricSpec(o.predefinedMetricSpec!); + checkGoogleCloudAiplatformV1RougeSpec(o.rougeSpec!); + } + buildCounterGoogleCloudAiplatformV1Metric--; +} + +core.List buildUnnamed276() => [ + buildGoogleCloudAiplatformV1RubricVerdict(), + buildGoogleCloudAiplatformV1RubricVerdict(), +]; + +void checkUnnamed276(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ThresholdConfig(o['x']!); - checkGoogleCloudAiplatformV1ThresholdConfig(o['y']!); + checkGoogleCloudAiplatformV1RubricVerdict(o[0]); + checkGoogleCloudAiplatformV1RubricVerdict(o[1]); } -core.int -buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig = - 0; -api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig -buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig() { - final o = - api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig(); - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig < - 3) { - o.attributionScoreDriftThresholds = buildUnnamed270(); - o.defaultDriftThreshold = buildGoogleCloudAiplatformV1ThresholdConfig(); - o.driftThresholds = buildUnnamed271(); +core.int buildCounterGoogleCloudAiplatformV1MetricResult = 0; +api.GoogleCloudAiplatformV1MetricResult +buildGoogleCloudAiplatformV1MetricResult() { + final o = api.GoogleCloudAiplatformV1MetricResult(); + buildCounterGoogleCloudAiplatformV1MetricResult++; + if (buildCounterGoogleCloudAiplatformV1MetricResult < 3) { + o.error = buildGoogleRpcStatus(); + o.explanation = 'foo'; + o.rubricVerdicts = buildUnnamed276(); + o.score = 42.0; } - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig--; + buildCounterGoogleCloudAiplatformV1MetricResult--; return o; } -void -checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig( - api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig - o, +void checkGoogleCloudAiplatformV1MetricResult( + api.GoogleCloudAiplatformV1MetricResult o, ) { - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig < - 3) { - checkUnnamed270(o.attributionScoreDriftThresholds!); - checkGoogleCloudAiplatformV1ThresholdConfig(o.defaultDriftThreshold!); - checkUnnamed271(o.driftThresholds!); + buildCounterGoogleCloudAiplatformV1MetricResult++; + if (buildCounterGoogleCloudAiplatformV1MetricResult < 3) { + checkGoogleRpcStatus(o.error!); + unittest.expect(o.explanation!, unittest.equals('foo')); + checkUnnamed276(o.rubricVerdicts!); + unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig--; + buildCounterGoogleCloudAiplatformV1MetricResult--; } -core.int -buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset = - 0; -api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset -buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset() { - final o = - api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset(); - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset < - 3) { - o.bigquerySource = buildGoogleCloudAiplatformV1BigQuerySource(); - o.dataFormat = 'foo'; - o.dataset = 'foo'; - o.gcsSource = buildGoogleCloudAiplatformV1GcsSource(); - o.loggingSamplingStrategy = buildGoogleCloudAiplatformV1SamplingStrategy(); - o.targetField = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1MetricxInput = 0; +api.GoogleCloudAiplatformV1MetricxInput +buildGoogleCloudAiplatformV1MetricxInput() { + final o = api.GoogleCloudAiplatformV1MetricxInput(); + buildCounterGoogleCloudAiplatformV1MetricxInput++; + if (buildCounterGoogleCloudAiplatformV1MetricxInput < 3) { + o.instance = buildGoogleCloudAiplatformV1MetricxInstance(); + o.metricSpec = buildGoogleCloudAiplatformV1MetricxSpec(); } - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset--; + buildCounterGoogleCloudAiplatformV1MetricxInput--; return o; } -void checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset( - api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset o, +void checkGoogleCloudAiplatformV1MetricxInput( + api.GoogleCloudAiplatformV1MetricxInput o, ) { - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset < - 3) { - checkGoogleCloudAiplatformV1BigQuerySource(o.bigquerySource!); - unittest.expect(o.dataFormat!, unittest.equals('foo')); - unittest.expect(o.dataset!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1GcsSource(o.gcsSource!); - checkGoogleCloudAiplatformV1SamplingStrategy(o.loggingSamplingStrategy!); - unittest.expect(o.targetField!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1MetricxInput++; + if (buildCounterGoogleCloudAiplatformV1MetricxInput < 3) { + checkGoogleCloudAiplatformV1MetricxInstance(o.instance!); + checkGoogleCloudAiplatformV1MetricxSpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset--; + buildCounterGoogleCloudAiplatformV1MetricxInput--; } -core.Map -buildUnnamed272() => { - 'x': buildGoogleCloudAiplatformV1ThresholdConfig(), - 'y': buildGoogleCloudAiplatformV1ThresholdConfig(), -}; +core.int buildCounterGoogleCloudAiplatformV1MetricxInstance = 0; +api.GoogleCloudAiplatformV1MetricxInstance +buildGoogleCloudAiplatformV1MetricxInstance() { + final o = api.GoogleCloudAiplatformV1MetricxInstance(); + buildCounterGoogleCloudAiplatformV1MetricxInstance++; + if (buildCounterGoogleCloudAiplatformV1MetricxInstance < 3) { + o.prediction = 'foo'; + o.reference = 'foo'; + o.source = 'foo'; + } + buildCounterGoogleCloudAiplatformV1MetricxInstance--; + return o; +} -void checkUnnamed272( - core.Map o, +void checkGoogleCloudAiplatformV1MetricxInstance( + api.GoogleCloudAiplatformV1MetricxInstance o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ThresholdConfig(o['x']!); - checkGoogleCloudAiplatformV1ThresholdConfig(o['y']!); + buildCounterGoogleCloudAiplatformV1MetricxInstance++; + if (buildCounterGoogleCloudAiplatformV1MetricxInstance < 3) { + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); + unittest.expect(o.source!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1MetricxInstance--; } -core.Map -buildUnnamed273() => { - 'x': buildGoogleCloudAiplatformV1ThresholdConfig(), - 'y': buildGoogleCloudAiplatformV1ThresholdConfig(), -}; +core.int buildCounterGoogleCloudAiplatformV1MetricxResult = 0; +api.GoogleCloudAiplatformV1MetricxResult +buildGoogleCloudAiplatformV1MetricxResult() { + final o = api.GoogleCloudAiplatformV1MetricxResult(); + buildCounterGoogleCloudAiplatformV1MetricxResult++; + if (buildCounterGoogleCloudAiplatformV1MetricxResult < 3) { + o.score = 42.0; + } + buildCounterGoogleCloudAiplatformV1MetricxResult--; + return o; +} -void checkUnnamed273( - core.Map o, +void checkGoogleCloudAiplatformV1MetricxResult( + api.GoogleCloudAiplatformV1MetricxResult o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ThresholdConfig(o['x']!); - checkGoogleCloudAiplatformV1ThresholdConfig(o['y']!); + buildCounterGoogleCloudAiplatformV1MetricxResult++; + if (buildCounterGoogleCloudAiplatformV1MetricxResult < 3) { + unittest.expect(o.score!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1MetricxResult--; } -core.int -buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig = - 0; -api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig -buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig() { - final o = - api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig(); - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig < - 3) { - o.attributionScoreSkewThresholds = buildUnnamed272(); - o.defaultSkewThreshold = buildGoogleCloudAiplatformV1ThresholdConfig(); - o.skewThresholds = buildUnnamed273(); +core.int buildCounterGoogleCloudAiplatformV1MetricxSpec = 0; +api.GoogleCloudAiplatformV1MetricxSpec +buildGoogleCloudAiplatformV1MetricxSpec() { + final o = api.GoogleCloudAiplatformV1MetricxSpec(); + buildCounterGoogleCloudAiplatformV1MetricxSpec++; + if (buildCounterGoogleCloudAiplatformV1MetricxSpec < 3) { + o.sourceLanguage = 'foo'; + o.targetLanguage = 'foo'; + o.version = 'foo'; } - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig--; + buildCounterGoogleCloudAiplatformV1MetricxSpec--; return o; } -void -checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig( - api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig - o, +void checkGoogleCloudAiplatformV1MetricxSpec( + api.GoogleCloudAiplatformV1MetricxSpec o, ) { - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig < - 3) { - checkUnnamed272(o.attributionScoreSkewThresholds!); - checkGoogleCloudAiplatformV1ThresholdConfig(o.defaultSkewThreshold!); - checkUnnamed273(o.skewThresholds!); + buildCounterGoogleCloudAiplatformV1MetricxSpec++; + if (buildCounterGoogleCloudAiplatformV1MetricxSpec < 3) { + unittest.expect(o.sourceLanguage!, unittest.equals('foo')); + unittest.expect(o.targetLanguage!, unittest.equals('foo')); + unittest.expect(o.version!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig--; + buildCounterGoogleCloudAiplatformV1MetricxSpec--; } -core.List< - api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies -> -buildUnnamed274() => [ - buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies(), - buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies(), +core.int buildCounterGoogleCloudAiplatformV1MigratableResource = 0; +api.GoogleCloudAiplatformV1MigratableResource +buildGoogleCloudAiplatformV1MigratableResource() { + final o = api.GoogleCloudAiplatformV1MigratableResource(); + buildCounterGoogleCloudAiplatformV1MigratableResource++; + if (buildCounterGoogleCloudAiplatformV1MigratableResource < 3) { + o.automlDataset = + buildGoogleCloudAiplatformV1MigratableResourceAutomlDataset(); + o.automlModel = buildGoogleCloudAiplatformV1MigratableResourceAutomlModel(); + o.dataLabelingDataset = + buildGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset(); + o.lastMigrateTime = 'foo'; + o.lastUpdateTime = 'foo'; + o.mlEngineModelVersion = + buildGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion(); + } + buildCounterGoogleCloudAiplatformV1MigratableResource--; + return o; +} + +void checkGoogleCloudAiplatformV1MigratableResource( + api.GoogleCloudAiplatformV1MigratableResource o, +) { + buildCounterGoogleCloudAiplatformV1MigratableResource++; + if (buildCounterGoogleCloudAiplatformV1MigratableResource < 3) { + checkGoogleCloudAiplatformV1MigratableResourceAutomlDataset( + o.automlDataset!, + ); + checkGoogleCloudAiplatformV1MigratableResourceAutomlModel(o.automlModel!); + checkGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset( + o.dataLabelingDataset!, + ); + unittest.expect(o.lastMigrateTime!, unittest.equals('foo')); + unittest.expect(o.lastUpdateTime!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion( + o.mlEngineModelVersion!, + ); + } + buildCounterGoogleCloudAiplatformV1MigratableResource--; +} + +core.int buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlDataset = 0; +api.GoogleCloudAiplatformV1MigratableResourceAutomlDataset +buildGoogleCloudAiplatformV1MigratableResourceAutomlDataset() { + final o = api.GoogleCloudAiplatformV1MigratableResourceAutomlDataset(); + buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlDataset++; + if (buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlDataset < 3) { + o.dataset = 'foo'; + o.datasetDisplayName = 'foo'; + } + buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlDataset--; + return o; +} + +void checkGoogleCloudAiplatformV1MigratableResourceAutomlDataset( + api.GoogleCloudAiplatformV1MigratableResourceAutomlDataset o, +) { + buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlDataset++; + if (buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlDataset < 3) { + unittest.expect(o.dataset!, unittest.equals('foo')); + unittest.expect(o.datasetDisplayName!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlDataset--; +} + +core.int buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlModel = 0; +api.GoogleCloudAiplatformV1MigratableResourceAutomlModel +buildGoogleCloudAiplatformV1MigratableResourceAutomlModel() { + final o = api.GoogleCloudAiplatformV1MigratableResourceAutomlModel(); + buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlModel++; + if (buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlModel < 3) { + o.model = 'foo'; + o.modelDisplayName = 'foo'; + } + buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlModel--; + return o; +} + +void checkGoogleCloudAiplatformV1MigratableResourceAutomlModel( + api.GoogleCloudAiplatformV1MigratableResourceAutomlModel o, +) { + buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlModel++; + if (buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlModel < 3) { + unittest.expect(o.model!, unittest.equals('foo')); + unittest.expect(o.modelDisplayName!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1MigratableResourceAutomlModel--; +} + +core.List< + api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset +> +buildUnnamed277() => [ + buildGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset(), + buildGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset(), ]; -void checkUnnamed274( +void checkUnnamed277( core.List< - api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies + api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset > o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies( + checkGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset( o[0], ); - checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies( + checkGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset( o[1], ); } -core.int buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies = 0; -api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomalies -buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies() { - final o = api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomalies(); - buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies < 3) { - o.anomalyCount = 42; - o.deployedModelId = 'foo'; - o.featureStats = buildUnnamed274(); - o.objective = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset = 0; +api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDataset +buildGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset() { + final o = api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDataset(); + buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset++; + if (buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset < + 3) { + o.dataLabelingAnnotatedDatasets = buildUnnamed277(); + o.dataset = 'foo'; + o.datasetDisplayName = 'foo'; } - buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies--; + buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset--; return o; } -void checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies( - api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomalies o, +void checkGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset( + api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDataset o, ) { - buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies < 3) { - unittest.expect(o.anomalyCount!, unittest.equals(42)); - unittest.expect(o.deployedModelId!, unittest.equals('foo')); - checkUnnamed274(o.featureStats!); - unittest.expect(o.objective!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset++; + if (buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset < + 3) { + checkUnnamed277(o.dataLabelingAnnotatedDatasets!); + unittest.expect(o.dataset!, unittest.equals('foo')); + unittest.expect(o.datasetDisplayName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies--; -} - -core.List buildUnnamed275() => [ - buildGoogleCloudAiplatformV1FeatureStatsAnomaly(), - buildGoogleCloudAiplatformV1FeatureStatsAnomaly(), -]; - -void checkUnnamed275( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FeatureStatsAnomaly(o[0]); - checkGoogleCloudAiplatformV1FeatureStatsAnomaly(o[1]); + buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset--; } core.int -buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies = +buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset = 0; -api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies -buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies() { +api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset +buildGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset() { final o = - api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies(); - buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies < + api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset(); + buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset++; + if (buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset < 3) { - o.featureDisplayName = 'foo'; - o.predictionStats = buildUnnamed275(); - o.threshold = buildGoogleCloudAiplatformV1ThresholdConfig(); - o.trainingStats = buildGoogleCloudAiplatformV1FeatureStatsAnomaly(); + o.annotatedDataset = 'foo'; + o.annotatedDatasetDisplayName = 'foo'; } - buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies--; + buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset--; return o; } void -checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies( - api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies +checkGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset( + api.GoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset o, ) { - buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies++; - if (buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies < + buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset++; + if (buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset < 3) { - unittest.expect(o.featureDisplayName!, unittest.equals('foo')); - checkUnnamed275(o.predictionStats!); - checkGoogleCloudAiplatformV1ThresholdConfig(o.threshold!); - checkGoogleCloudAiplatformV1FeatureStatsAnomaly(o.trainingStats!); + unittest.expect(o.annotatedDataset!, unittest.equals('foo')); + unittest.expect(o.annotatedDatasetDisplayName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies--; + buildCounterGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset--; } -core.int buildCounterGoogleCloudAiplatformV1ModelOriginalModelInfo = 0; -api.GoogleCloudAiplatformV1ModelOriginalModelInfo -buildGoogleCloudAiplatformV1ModelOriginalModelInfo() { - final o = api.GoogleCloudAiplatformV1ModelOriginalModelInfo(); - buildCounterGoogleCloudAiplatformV1ModelOriginalModelInfo++; - if (buildCounterGoogleCloudAiplatformV1ModelOriginalModelInfo < 3) { - o.model = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion = 0; +api.GoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion +buildGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion() { + final o = api.GoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion(); + buildCounterGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion++; + if (buildCounterGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion < + 3) { + o.endpoint = 'foo'; + o.version = 'foo'; } - buildCounterGoogleCloudAiplatformV1ModelOriginalModelInfo--; + buildCounterGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion--; return o; } -void checkGoogleCloudAiplatformV1ModelOriginalModelInfo( - api.GoogleCloudAiplatformV1ModelOriginalModelInfo o, +void checkGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion( + api.GoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion o, ) { - buildCounterGoogleCloudAiplatformV1ModelOriginalModelInfo++; - if (buildCounterGoogleCloudAiplatformV1ModelOriginalModelInfo < 3) { - unittest.expect(o.model!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion++; + if (buildCounterGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion < + 3) { + unittest.expect(o.endpoint!, unittest.equals('foo')); + unittest.expect(o.version!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ModelOriginalModelInfo--; + buildCounterGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion--; } -core.int buildCounterGoogleCloudAiplatformV1ModelSourceInfo = 0; -api.GoogleCloudAiplatformV1ModelSourceInfo -buildGoogleCloudAiplatformV1ModelSourceInfo() { - final o = api.GoogleCloudAiplatformV1ModelSourceInfo(); - buildCounterGoogleCloudAiplatformV1ModelSourceInfo++; - if (buildCounterGoogleCloudAiplatformV1ModelSourceInfo < 3) { - o.copy = true; - o.sourceType = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1MigrateResourceRequest = 0; +api.GoogleCloudAiplatformV1MigrateResourceRequest +buildGoogleCloudAiplatformV1MigrateResourceRequest() { + final o = api.GoogleCloudAiplatformV1MigrateResourceRequest(); + buildCounterGoogleCloudAiplatformV1MigrateResourceRequest++; + if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequest < 3) { + o.migrateAutomlDatasetConfig = + buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig(); + o.migrateAutomlModelConfig = + buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig(); + o.migrateDataLabelingDatasetConfig = + buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig(); + o.migrateMlEngineModelVersionConfig = + buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig(); } - buildCounterGoogleCloudAiplatformV1ModelSourceInfo--; + buildCounterGoogleCloudAiplatformV1MigrateResourceRequest--; return o; } -void checkGoogleCloudAiplatformV1ModelSourceInfo( - api.GoogleCloudAiplatformV1ModelSourceInfo o, +void checkGoogleCloudAiplatformV1MigrateResourceRequest( + api.GoogleCloudAiplatformV1MigrateResourceRequest o, ) { - buildCounterGoogleCloudAiplatformV1ModelSourceInfo++; - if (buildCounterGoogleCloudAiplatformV1ModelSourceInfo < 3) { - unittest.expect(o.copy!, unittest.isTrue); - unittest.expect(o.sourceType!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1MigrateResourceRequest++; + if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequest < 3) { + checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig( + o.migrateAutomlDatasetConfig!, + ); + checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig( + o.migrateAutomlModelConfig!, + ); + checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig( + o.migrateDataLabelingDatasetConfig!, + ); + checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig( + o.migrateMlEngineModelVersionConfig!, + ); } - buildCounterGoogleCloudAiplatformV1ModelSourceInfo--; + buildCounterGoogleCloudAiplatformV1MigrateResourceRequest--; } -core.int buildCounterGoogleCloudAiplatformV1ModelVersionCheckpoint = 0; -api.GoogleCloudAiplatformV1ModelVersionCheckpoint -buildGoogleCloudAiplatformV1ModelVersionCheckpoint() { - final o = api.GoogleCloudAiplatformV1ModelVersionCheckpoint(); - buildCounterGoogleCloudAiplatformV1ModelVersionCheckpoint++; - if (buildCounterGoogleCloudAiplatformV1ModelVersionCheckpoint < 3) { - o.checkpointId = 'foo'; - o.epoch = 'foo'; - o.step = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig = + 0; +api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig +buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig() { + final o = + api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig(); + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig++; + if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig < + 3) { + o.dataset = 'foo'; + o.datasetDisplayName = 'foo'; } - buildCounterGoogleCloudAiplatformV1ModelVersionCheckpoint--; + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig--; return o; } -void checkGoogleCloudAiplatformV1ModelVersionCheckpoint( - api.GoogleCloudAiplatformV1ModelVersionCheckpoint o, +void +checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig( + api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig o, ) { - buildCounterGoogleCloudAiplatformV1ModelVersionCheckpoint++; - if (buildCounterGoogleCloudAiplatformV1ModelVersionCheckpoint < 3) { - unittest.expect(o.checkpointId!, unittest.equals('foo')); - unittest.expect(o.epoch!, unittest.equals('foo')); - unittest.expect(o.step!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig++; + if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig < + 3) { + unittest.expect(o.dataset!, unittest.equals('foo')); + unittest.expect(o.datasetDisplayName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ModelVersionCheckpoint--; + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig--; } -core.int buildCounterGoogleCloudAiplatformV1MutateDeployedModelRequest = 0; -api.GoogleCloudAiplatformV1MutateDeployedModelRequest -buildGoogleCloudAiplatformV1MutateDeployedModelRequest() { - final o = api.GoogleCloudAiplatformV1MutateDeployedModelRequest(); - buildCounterGoogleCloudAiplatformV1MutateDeployedModelRequest++; - if (buildCounterGoogleCloudAiplatformV1MutateDeployedModelRequest < 3) { - o.deployedModel = buildGoogleCloudAiplatformV1DeployedModel(); - o.updateMask = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig = + 0; +api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig +buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig() { + final o = + api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig(); + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig++; + if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig < + 3) { + o.model = 'foo'; + o.modelDisplayName = 'foo'; } - buildCounterGoogleCloudAiplatformV1MutateDeployedModelRequest--; + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig--; return o; } -void checkGoogleCloudAiplatformV1MutateDeployedModelRequest( - api.GoogleCloudAiplatformV1MutateDeployedModelRequest o, +void checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig( + api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig o, ) { - buildCounterGoogleCloudAiplatformV1MutateDeployedModelRequest++; - if (buildCounterGoogleCloudAiplatformV1MutateDeployedModelRequest < 3) { - checkGoogleCloudAiplatformV1DeployedModel(o.deployedModel!); - unittest.expect(o.updateMask!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig++; + if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig < + 3) { + unittest.expect(o.model!, unittest.equals('foo')); + unittest.expect(o.modelDisplayName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1MutateDeployedModelRequest--; + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig--; } -core.Map buildUnnamed276() => { - 'x': 'foo', - 'y': 'foo', -}; +core.List< + api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig +> +buildUnnamed278() => [ + buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig(), + buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig(), +]; -void checkUnnamed276(core.Map o) { +void checkUnnamed278( + core.List< + api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig + > + o, +) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig( + o[0], + ); + checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig( + o[1], + ); } -core.int buildCounterGoogleCloudAiplatformV1NasJob = 0; -api.GoogleCloudAiplatformV1NasJob buildGoogleCloudAiplatformV1NasJob() { - final o = api.GoogleCloudAiplatformV1NasJob(); - buildCounterGoogleCloudAiplatformV1NasJob++; - if (buildCounterGoogleCloudAiplatformV1NasJob < 3) { - o.createTime = 'foo'; - o.displayName = 'foo'; - o.enableRestrictedImageTraining = true; - o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.endTime = 'foo'; - o.error = buildGoogleRpcStatus(); - o.labels = buildUnnamed276(); - o.name = 'foo'; - o.nasJobOutput = buildGoogleCloudAiplatformV1NasJobOutput(); - o.nasJobSpec = buildGoogleCloudAiplatformV1NasJobSpec(); - o.satisfiesPzi = true; - o.satisfiesPzs = true; - o.startTime = 'foo'; - o.state = 'foo'; - o.updateTime = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig = + 0; +api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig +buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig() { + final o = + api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig(); + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig++; + if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig < + 3) { + o.dataset = 'foo'; + o.datasetDisplayName = 'foo'; + o.migrateDataLabelingAnnotatedDatasetConfigs = buildUnnamed278(); } - buildCounterGoogleCloudAiplatformV1NasJob--; + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig--; return o; } -void checkGoogleCloudAiplatformV1NasJob(api.GoogleCloudAiplatformV1NasJob o) { - buildCounterGoogleCloudAiplatformV1NasJob++; - if (buildCounterGoogleCloudAiplatformV1NasJob < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - unittest.expect(o.enableRestrictedImageTraining!, unittest.isTrue); - checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.endTime!, unittest.equals('foo')); - checkGoogleRpcStatus(o.error!); - checkUnnamed276(o.labels!); - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1NasJobOutput(o.nasJobOutput!); - checkGoogleCloudAiplatformV1NasJobSpec(o.nasJobSpec!); - unittest.expect(o.satisfiesPzi!, unittest.isTrue); - unittest.expect(o.satisfiesPzs!, unittest.isTrue); - unittest.expect(o.startTime!, unittest.equals('foo')); - unittest.expect(o.state!, unittest.equals('foo')); - unittest.expect(o.updateTime!, unittest.equals('foo')); +void +checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig( + api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig + o, +) { + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig++; + if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig < + 3) { + unittest.expect(o.dataset!, unittest.equals('foo')); + unittest.expect(o.datasetDisplayName!, unittest.equals('foo')); + checkUnnamed278(o.migrateDataLabelingAnnotatedDatasetConfigs!); } - buildCounterGoogleCloudAiplatformV1NasJob--; + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig--; } -core.int buildCounterGoogleCloudAiplatformV1NasJobOutput = 0; -api.GoogleCloudAiplatformV1NasJobOutput -buildGoogleCloudAiplatformV1NasJobOutput() { - final o = api.GoogleCloudAiplatformV1NasJobOutput(); - buildCounterGoogleCloudAiplatformV1NasJobOutput++; - if (buildCounterGoogleCloudAiplatformV1NasJobOutput < 3) { - o.multiTrialJobOutput = - buildGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput(); +core.int +buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig = + 0; +api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig +buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig() { + final o = + api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig(); + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig++; + if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig < + 3) { + o.annotatedDataset = 'foo'; } - buildCounterGoogleCloudAiplatformV1NasJobOutput--; + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig--; return o; } -void checkGoogleCloudAiplatformV1NasJobOutput( - api.GoogleCloudAiplatformV1NasJobOutput o, +void +checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig( + api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig + o, ) { - buildCounterGoogleCloudAiplatformV1NasJobOutput++; - if (buildCounterGoogleCloudAiplatformV1NasJobOutput < 3) { - checkGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput( - o.multiTrialJobOutput!, - ); + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig++; + if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig < + 3) { + unittest.expect(o.annotatedDataset!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1NasJobOutput--; -} - -core.List buildUnnamed277() => [ - buildGoogleCloudAiplatformV1NasTrial(), - buildGoogleCloudAiplatformV1NasTrial(), -]; - -void checkUnnamed277(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1NasTrial(o[0]); - checkGoogleCloudAiplatformV1NasTrial(o[1]); -} - -core.List buildUnnamed278() => [ - buildGoogleCloudAiplatformV1NasTrial(), - buildGoogleCloudAiplatformV1NasTrial(), -]; - -void checkUnnamed278(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1NasTrial(o[0]); - checkGoogleCloudAiplatformV1NasTrial(o[1]); + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig--; } -core.int buildCounterGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput = 0; -api.GoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput -buildGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput() { - final o = api.GoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput(); - buildCounterGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput++; - if (buildCounterGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput < 3) { - o.searchTrials = buildUnnamed277(); - o.trainTrials = buildUnnamed278(); +core.int +buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig = + 0; +api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig +buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig() { + final o = + api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig(); + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig++; + if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig < + 3) { + o.endpoint = 'foo'; + o.modelDisplayName = 'foo'; + o.modelVersion = 'foo'; } - buildCounterGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput--; + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig--; return o; } -void checkGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput( - api.GoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput o, +void +checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig( + api.GoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig + o, ) { - buildCounterGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput++; - if (buildCounterGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput < 3) { - checkUnnamed277(o.searchTrials!); - checkUnnamed278(o.trainTrials!); - } - buildCounterGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput--; -} - -core.int buildCounterGoogleCloudAiplatformV1NasJobSpec = 0; -api.GoogleCloudAiplatformV1NasJobSpec buildGoogleCloudAiplatformV1NasJobSpec() { - final o = api.GoogleCloudAiplatformV1NasJobSpec(); - buildCounterGoogleCloudAiplatformV1NasJobSpec++; - if (buildCounterGoogleCloudAiplatformV1NasJobSpec < 3) { - o.multiTrialAlgorithmSpec = - buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec(); - o.resumeNasJobId = 'foo'; - o.searchSpaceSpec = 'foo'; - } - buildCounterGoogleCloudAiplatformV1NasJobSpec--; - return o; -} - -void checkGoogleCloudAiplatformV1NasJobSpec( - api.GoogleCloudAiplatformV1NasJobSpec o, -) { - buildCounterGoogleCloudAiplatformV1NasJobSpec++; - if (buildCounterGoogleCloudAiplatformV1NasJobSpec < 3) { - checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec( - o.multiTrialAlgorithmSpec!, - ); - unittest.expect(o.resumeNasJobId!, unittest.equals('foo')); - unittest.expect(o.searchSpaceSpec!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1NasJobSpec--; -} - -core.int buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec = - 0; -api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec -buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec() { - final o = api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec(); - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec++; - if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec < - 3) { - o.metric = - buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec(); - o.multiTrialAlgorithm = 'foo'; - o.searchTrialSpec = - buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec(); - o.trainTrialSpec = - buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec(); - } - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec--; - return o; -} - -void checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec( - api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec o, -) { - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec++; - if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec < + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig++; + if (buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig < 3) { - checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec( - o.metric!, - ); - unittest.expect(o.multiTrialAlgorithm!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec( - o.searchTrialSpec!, - ); - checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec( - o.trainTrialSpec!, - ); + unittest.expect(o.endpoint!, unittest.equals('foo')); + unittest.expect(o.modelDisplayName!, unittest.equals('foo')); + unittest.expect(o.modelVersion!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec--; + buildCounterGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig--; } -core.int -buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec = - 0; -api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec -buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec() { - final o = - api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec(); - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec++; - if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec < - 3) { - o.goal = 'foo'; - o.metricId = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ModalityTokenCount = 0; +api.GoogleCloudAiplatformV1ModalityTokenCount +buildGoogleCloudAiplatformV1ModalityTokenCount() { + final o = api.GoogleCloudAiplatformV1ModalityTokenCount(); + buildCounterGoogleCloudAiplatformV1ModalityTokenCount++; + if (buildCounterGoogleCloudAiplatformV1ModalityTokenCount < 3) { + o.modality = 'foo'; + o.tokenCount = 42; } - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec--; + buildCounterGoogleCloudAiplatformV1ModalityTokenCount--; return o; } -void checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec( - api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec o, +void checkGoogleCloudAiplatformV1ModalityTokenCount( + api.GoogleCloudAiplatformV1ModalityTokenCount o, ) { - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec++; - if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec < - 3) { - unittest.expect(o.goal!, unittest.equals('foo')); - unittest.expect(o.metricId!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ModalityTokenCount++; + if (buildCounterGoogleCloudAiplatformV1ModalityTokenCount < 3) { + unittest.expect(o.modality!, unittest.equals('foo')); + unittest.expect(o.tokenCount!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec--; + buildCounterGoogleCloudAiplatformV1ModalityTokenCount--; } -core.int -buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec = - 0; -api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec -buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec() { - final o = - api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec(); - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec++; - if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec < - 3) { - o.maxFailedTrialCount = 42; - o.maxParallelTrialCount = 42; - o.maxTrialCount = 42; - o.searchTrialJobSpec = buildGoogleCloudAiplatformV1CustomJobSpec(); - } - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec--; - return o; -} +core.List buildUnnamed279() => [ + buildGoogleCloudAiplatformV1Checkpoint(), + buildGoogleCloudAiplatformV1Checkpoint(), +]; -void -checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec( - api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec o, -) { - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec++; - if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec < - 3) { - unittest.expect(o.maxFailedTrialCount!, unittest.equals(42)); - unittest.expect(o.maxParallelTrialCount!, unittest.equals(42)); - unittest.expect(o.maxTrialCount!, unittest.equals(42)); - checkGoogleCloudAiplatformV1CustomJobSpec(o.searchTrialJobSpec!); - } - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec--; +void checkUnnamed279(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Checkpoint(o[0]); + checkGoogleCloudAiplatformV1Checkpoint(o[1]); } -core.int -buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec = - 0; -api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec -buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec() { - final o = - api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec(); - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec++; - if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec < - 3) { - o.frequency = 42; - o.maxParallelTrialCount = 42; - o.trainTrialJobSpec = buildGoogleCloudAiplatformV1CustomJobSpec(); - } - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec--; - return o; -} +core.List buildUnnamed280() => [ + buildGoogleCloudAiplatformV1DeployedModelRef(), + buildGoogleCloudAiplatformV1DeployedModelRef(), +]; -void -checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec( - api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec o, -) { - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec++; - if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec < - 3) { - unittest.expect(o.frequency!, unittest.equals(42)); - unittest.expect(o.maxParallelTrialCount!, unittest.equals(42)); - checkGoogleCloudAiplatformV1CustomJobSpec(o.trainTrialJobSpec!); - } - buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec--; +void checkUnnamed280(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1DeployedModelRef(o[0]); + checkGoogleCloudAiplatformV1DeployedModelRef(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1NasTrial = 0; -api.GoogleCloudAiplatformV1NasTrial buildGoogleCloudAiplatformV1NasTrial() { - final o = api.GoogleCloudAiplatformV1NasTrial(); - buildCounterGoogleCloudAiplatformV1NasTrial++; - if (buildCounterGoogleCloudAiplatformV1NasTrial < 3) { - o.endTime = 'foo'; - o.finalMeasurement = buildGoogleCloudAiplatformV1Measurement(); - o.id = 'foo'; - o.startTime = 'foo'; - o.state = 'foo'; - } - buildCounterGoogleCloudAiplatformV1NasTrial--; - return o; -} +core.Map buildUnnamed281() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkGoogleCloudAiplatformV1NasTrial( - api.GoogleCloudAiplatformV1NasTrial o, -) { - buildCounterGoogleCloudAiplatformV1NasTrial++; - if (buildCounterGoogleCloudAiplatformV1NasTrial < 3) { - unittest.expect(o.endTime!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1Measurement(o.finalMeasurement!); - unittest.expect(o.id!, unittest.equals('foo')); - unittest.expect(o.startTime!, unittest.equals('foo')); - unittest.expect(o.state!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1NasTrial--; +void checkUnnamed281(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1NasTrialDetail = 0; -api.GoogleCloudAiplatformV1NasTrialDetail -buildGoogleCloudAiplatformV1NasTrialDetail() { - final o = api.GoogleCloudAiplatformV1NasTrialDetail(); - buildCounterGoogleCloudAiplatformV1NasTrialDetail++; - if (buildCounterGoogleCloudAiplatformV1NasTrialDetail < 3) { - o.name = 'foo'; - o.parameters = 'foo'; - o.searchTrial = buildGoogleCloudAiplatformV1NasTrial(); - o.trainTrial = buildGoogleCloudAiplatformV1NasTrial(); - } - buildCounterGoogleCloudAiplatformV1NasTrialDetail--; - return o; -} +core.List buildUnnamed282() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1NasTrialDetail( - api.GoogleCloudAiplatformV1NasTrialDetail o, -) { - buildCounterGoogleCloudAiplatformV1NasTrialDetail++; - if (buildCounterGoogleCloudAiplatformV1NasTrialDetail < 3) { - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.parameters!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1NasTrial(o.searchTrial!); - checkGoogleCloudAiplatformV1NasTrial(o.trainTrial!); - } - buildCounterGoogleCloudAiplatformV1NasTrialDetail--; +void checkUnnamed282(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.List -buildUnnamed279() => [ - buildGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter(), - buildGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter(), +core.List buildUnnamed283() => [ + buildGoogleCloudAiplatformV1ModelExportFormat(), + buildGoogleCloudAiplatformV1ModelExportFormat(), ]; -void checkUnnamed279( - core.List o, +void checkUnnamed283( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter(o[0]); - checkGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter(o[1]); + checkGoogleCloudAiplatformV1ModelExportFormat(o[0]); + checkGoogleCloudAiplatformV1ModelExportFormat(o[1]); } -core.List -buildUnnamed280() => [ - buildGoogleCloudAiplatformV1NearestNeighborQueryStringFilter(), - buildGoogleCloudAiplatformV1NearestNeighborQueryStringFilter(), -]; +core.List buildUnnamed284() => ['foo', 'foo']; -void checkUnnamed280( - core.List o, -) { +void checkUnnamed284(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1NearestNeighborQueryStringFilter(o[0]); - checkGoogleCloudAiplatformV1NearestNeighborQueryStringFilter(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1NearestNeighborQuery = 0; -api.GoogleCloudAiplatformV1NearestNeighborQuery -buildGoogleCloudAiplatformV1NearestNeighborQuery() { - final o = api.GoogleCloudAiplatformV1NearestNeighborQuery(); - buildCounterGoogleCloudAiplatformV1NearestNeighborQuery++; - if (buildCounterGoogleCloudAiplatformV1NearestNeighborQuery < 3) { - o.embedding = buildGoogleCloudAiplatformV1NearestNeighborQueryEmbedding(); - o.entityId = 'foo'; - o.neighborCount = 42; - o.numericFilters = buildUnnamed279(); - o.parameters = buildGoogleCloudAiplatformV1NearestNeighborQueryParameters(); - o.perCrowdingAttributeNeighborCount = 42; - o.stringFilters = buildUnnamed280(); - } - buildCounterGoogleCloudAiplatformV1NearestNeighborQuery--; - return o; -} +core.List buildUnnamed285() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1NearestNeighborQuery( - api.GoogleCloudAiplatformV1NearestNeighborQuery o, -) { - buildCounterGoogleCloudAiplatformV1NearestNeighborQuery++; - if (buildCounterGoogleCloudAiplatformV1NearestNeighborQuery < 3) { - checkGoogleCloudAiplatformV1NearestNeighborQueryEmbedding(o.embedding!); - unittest.expect(o.entityId!, unittest.equals('foo')); - unittest.expect(o.neighborCount!, unittest.equals(42)); - checkUnnamed279(o.numericFilters!); - checkGoogleCloudAiplatformV1NearestNeighborQueryParameters(o.parameters!); - unittest.expect(o.perCrowdingAttributeNeighborCount!, unittest.equals(42)); - checkUnnamed280(o.stringFilters!); - } - buildCounterGoogleCloudAiplatformV1NearestNeighborQuery--; +void checkUnnamed285(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed281() => [42.0, 42.0]; +core.List buildUnnamed286() => ['foo', 'foo']; -void checkUnnamed281(core.List o) { +void checkUnnamed286(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals(42.0)); - unittest.expect(o[1], unittest.equals(42.0)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1NearestNeighborQueryEmbedding = 0; -api.GoogleCloudAiplatformV1NearestNeighborQueryEmbedding -buildGoogleCloudAiplatformV1NearestNeighborQueryEmbedding() { - final o = api.GoogleCloudAiplatformV1NearestNeighborQueryEmbedding(); - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryEmbedding++; - if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryEmbedding < 3) { - o.value = buildUnnamed281(); +core.int buildCounterGoogleCloudAiplatformV1Model = 0; +api.GoogleCloudAiplatformV1Model buildGoogleCloudAiplatformV1Model() { + final o = api.GoogleCloudAiplatformV1Model(); + buildCounterGoogleCloudAiplatformV1Model++; + if (buildCounterGoogleCloudAiplatformV1Model < 3) { + o.artifactUri = 'foo'; + o.baseModelSource = buildGoogleCloudAiplatformV1ModelBaseModelSource(); + o.checkpoints = buildUnnamed279(); + o.containerSpec = buildGoogleCloudAiplatformV1ModelContainerSpec(); + o.createTime = 'foo'; + o.dataStats = buildGoogleCloudAiplatformV1ModelDataStats(); + o.defaultCheckpointId = 'foo'; + o.deployedModels = buildUnnamed280(); + o.description = 'foo'; + o.displayName = 'foo'; + o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.etag = 'foo'; + o.explanationSpec = buildGoogleCloudAiplatformV1ExplanationSpec(); + o.labels = buildUnnamed281(); + o.metadata = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.metadataArtifact = 'foo'; + o.metadataSchemaUri = 'foo'; + o.modelSourceInfo = buildGoogleCloudAiplatformV1ModelSourceInfo(); + o.name = 'foo'; + o.originalModelInfo = buildGoogleCloudAiplatformV1ModelOriginalModelInfo(); + o.pipelineJob = 'foo'; + o.predictSchemata = buildGoogleCloudAiplatformV1PredictSchemata(); + o.satisfiesPzi = true; + o.satisfiesPzs = true; + o.supportedDeploymentResourcesTypes = buildUnnamed282(); + o.supportedExportFormats = buildUnnamed283(); + o.supportedInputStorageFormats = buildUnnamed284(); + o.supportedOutputStorageFormats = buildUnnamed285(); + o.trainingPipeline = 'foo'; + o.updateTime = 'foo'; + o.versionAliases = buildUnnamed286(); + o.versionCreateTime = 'foo'; + o.versionDescription = 'foo'; + o.versionId = 'foo'; + o.versionUpdateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryEmbedding--; + buildCounterGoogleCloudAiplatformV1Model--; return o; } -void checkGoogleCloudAiplatformV1NearestNeighborQueryEmbedding( - api.GoogleCloudAiplatformV1NearestNeighborQueryEmbedding o, -) { - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryEmbedding++; - if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryEmbedding < 3) { - checkUnnamed281(o.value!); +void checkGoogleCloudAiplatformV1Model(api.GoogleCloudAiplatformV1Model o) { + buildCounterGoogleCloudAiplatformV1Model++; + if (buildCounterGoogleCloudAiplatformV1Model < 3) { + unittest.expect(o.artifactUri!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ModelBaseModelSource(o.baseModelSource!); + checkUnnamed279(o.checkpoints!); + checkGoogleCloudAiplatformV1ModelContainerSpec(o.containerSpec!); + unittest.expect(o.createTime!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ModelDataStats(o.dataStats!); + unittest.expect(o.defaultCheckpointId!, unittest.equals('foo')); + checkUnnamed280(o.deployedModels!); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + unittest.expect(o.etag!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ExplanationSpec(o.explanationSpec!); + checkUnnamed281(o.labels!); + var casted65 = (o.metadata!) as core.Map; + unittest.expect(casted65, unittest.hasLength(3)); + unittest.expect(casted65['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted65['bool'], unittest.equals(true)); + unittest.expect(casted65['string'], unittest.equals('foo')); + unittest.expect(o.metadataArtifact!, unittest.equals('foo')); + unittest.expect(o.metadataSchemaUri!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ModelSourceInfo(o.modelSourceInfo!); + unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ModelOriginalModelInfo(o.originalModelInfo!); + unittest.expect(o.pipelineJob!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1PredictSchemata(o.predictSchemata!); + unittest.expect(o.satisfiesPzi!, unittest.isTrue); + unittest.expect(o.satisfiesPzs!, unittest.isTrue); + checkUnnamed282(o.supportedDeploymentResourcesTypes!); + checkUnnamed283(o.supportedExportFormats!); + checkUnnamed284(o.supportedInputStorageFormats!); + checkUnnamed285(o.supportedOutputStorageFormats!); + unittest.expect(o.trainingPipeline!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); + checkUnnamed286(o.versionAliases!); + unittest.expect(o.versionCreateTime!, unittest.equals('foo')); + unittest.expect(o.versionDescription!, unittest.equals('foo')); + unittest.expect(o.versionId!, unittest.equals('foo')); + unittest.expect(o.versionUpdateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryEmbedding--; + buildCounterGoogleCloudAiplatformV1Model--; } -core.int buildCounterGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter = - 0; -api.GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter -buildGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter() { - final o = api.GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter(); - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter++; - if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter < - 3) { - o.name = 'foo'; - o.op = 'foo'; - o.valueDouble = 42.0; - o.valueFloat = 42.0; - o.valueInt = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ModelArmorConfig = 0; +api.GoogleCloudAiplatformV1ModelArmorConfig +buildGoogleCloudAiplatformV1ModelArmorConfig() { + final o = api.GoogleCloudAiplatformV1ModelArmorConfig(); + buildCounterGoogleCloudAiplatformV1ModelArmorConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelArmorConfig < 3) { + o.promptTemplateName = 'foo'; + o.responseTemplateName = 'foo'; } - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter--; + buildCounterGoogleCloudAiplatformV1ModelArmorConfig--; return o; } -void checkGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter( - api.GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter o, +void checkGoogleCloudAiplatformV1ModelArmorConfig( + api.GoogleCloudAiplatformV1ModelArmorConfig o, ) { - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter++; - if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter < - 3) { - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.op!, unittest.equals('foo')); - unittest.expect(o.valueDouble!, unittest.equals(42.0)); - unittest.expect(o.valueFloat!, unittest.equals(42.0)); - unittest.expect(o.valueInt!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ModelArmorConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelArmorConfig < 3) { + unittest.expect(o.promptTemplateName!, unittest.equals('foo')); + unittest.expect(o.responseTemplateName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter--; + buildCounterGoogleCloudAiplatformV1ModelArmorConfig--; } -core.int buildCounterGoogleCloudAiplatformV1NearestNeighborQueryParameters = 0; -api.GoogleCloudAiplatformV1NearestNeighborQueryParameters -buildGoogleCloudAiplatformV1NearestNeighborQueryParameters() { - final o = api.GoogleCloudAiplatformV1NearestNeighborQueryParameters(); - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryParameters++; - if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryParameters < 3) { - o.approximateNeighborCandidates = 42; - o.leafNodesSearchFraction = 42.0; +core.int buildCounterGoogleCloudAiplatformV1ModelBaseModelSource = 0; +api.GoogleCloudAiplatformV1ModelBaseModelSource +buildGoogleCloudAiplatformV1ModelBaseModelSource() { + final o = api.GoogleCloudAiplatformV1ModelBaseModelSource(); + buildCounterGoogleCloudAiplatformV1ModelBaseModelSource++; + if (buildCounterGoogleCloudAiplatformV1ModelBaseModelSource < 3) { + o.genieSource = buildGoogleCloudAiplatformV1GenieSource(); + o.modelGardenSource = buildGoogleCloudAiplatformV1ModelGardenSource(); } - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryParameters--; + buildCounterGoogleCloudAiplatformV1ModelBaseModelSource--; return o; } -void checkGoogleCloudAiplatformV1NearestNeighborQueryParameters( - api.GoogleCloudAiplatformV1NearestNeighborQueryParameters o, +void checkGoogleCloudAiplatformV1ModelBaseModelSource( + api.GoogleCloudAiplatformV1ModelBaseModelSource o, ) { - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryParameters++; - if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryParameters < 3) { - unittest.expect(o.approximateNeighborCandidates!, unittest.equals(42)); - unittest.expect(o.leafNodesSearchFraction!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1ModelBaseModelSource++; + if (buildCounterGoogleCloudAiplatformV1ModelBaseModelSource < 3) { + checkGoogleCloudAiplatformV1GenieSource(o.genieSource!); + checkGoogleCloudAiplatformV1ModelGardenSource(o.modelGardenSource!); } - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryParameters--; + buildCounterGoogleCloudAiplatformV1ModelBaseModelSource--; } -core.List buildUnnamed282() => ['foo', 'foo']; +core.List buildUnnamed287() => ['foo', 'foo']; -void checkUnnamed282(core.List o) { +void checkUnnamed287(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed283() => ['foo', 'foo']; +core.List buildUnnamed288() => ['foo', 'foo']; -void checkUnnamed283(core.List o) { +void checkUnnamed288(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1NearestNeighborQueryStringFilter = - 0; -api.GoogleCloudAiplatformV1NearestNeighborQueryStringFilter -buildGoogleCloudAiplatformV1NearestNeighborQueryStringFilter() { - final o = api.GoogleCloudAiplatformV1NearestNeighborQueryStringFilter(); - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryStringFilter++; - if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryStringFilter < 3) { - o.allowTokens = buildUnnamed282(); - o.denyTokens = buildUnnamed283(); - o.name = 'foo'; - } - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryStringFilter--; - return o; +core.List buildUnnamed289() => [ + buildGoogleCloudAiplatformV1EnvVar(), + buildGoogleCloudAiplatformV1EnvVar(), +]; + +void checkUnnamed289(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1EnvVar(o[0]); + checkGoogleCloudAiplatformV1EnvVar(o[1]); } -void checkGoogleCloudAiplatformV1NearestNeighborQueryStringFilter( - api.GoogleCloudAiplatformV1NearestNeighborQueryStringFilter o, -) { - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryStringFilter++; - if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryStringFilter < 3) { - checkUnnamed282(o.allowTokens!); - checkUnnamed283(o.denyTokens!); - unittest.expect(o.name!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1NearestNeighborQueryStringFilter--; +core.List buildUnnamed290() => [ + buildGoogleCloudAiplatformV1Port(), + buildGoogleCloudAiplatformV1Port(), +]; + +void checkUnnamed290(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Port(o[0]); + checkGoogleCloudAiplatformV1Port(o[1]); } -core.List -buildUnnamed284() => [ - buildGoogleCloudAiplatformV1NearestNeighborsNeighbor(), - buildGoogleCloudAiplatformV1NearestNeighborsNeighbor(), +core.List buildUnnamed291() => [ + buildGoogleCloudAiplatformV1Port(), + buildGoogleCloudAiplatformV1Port(), ]; -void checkUnnamed284( - core.List o, -) { +void checkUnnamed291(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1NearestNeighborsNeighbor(o[0]); - checkGoogleCloudAiplatformV1NearestNeighborsNeighbor(o[1]); + checkGoogleCloudAiplatformV1Port(o[0]); + checkGoogleCloudAiplatformV1Port(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1NearestNeighbors = 0; -api.GoogleCloudAiplatformV1NearestNeighbors -buildGoogleCloudAiplatformV1NearestNeighbors() { - final o = api.GoogleCloudAiplatformV1NearestNeighbors(); - buildCounterGoogleCloudAiplatformV1NearestNeighbors++; - if (buildCounterGoogleCloudAiplatformV1NearestNeighbors < 3) { - o.neighbors = buildUnnamed284(); +core.int buildCounterGoogleCloudAiplatformV1ModelContainerSpec = 0; +api.GoogleCloudAiplatformV1ModelContainerSpec +buildGoogleCloudAiplatformV1ModelContainerSpec() { + final o = api.GoogleCloudAiplatformV1ModelContainerSpec(); + buildCounterGoogleCloudAiplatformV1ModelContainerSpec++; + if (buildCounterGoogleCloudAiplatformV1ModelContainerSpec < 3) { + o.args = buildUnnamed287(); + o.command = buildUnnamed288(); + o.deploymentTimeout = 'foo'; + o.env = buildUnnamed289(); + o.grpcPorts = buildUnnamed290(); + o.healthProbe = buildGoogleCloudAiplatformV1Probe(); + o.healthRoute = 'foo'; + o.imageUri = 'foo'; + o.invokeRoutePrefix = 'foo'; + o.livenessProbe = buildGoogleCloudAiplatformV1Probe(); + o.ports = buildUnnamed291(); + o.predictRoute = 'foo'; + o.sharedMemorySizeMb = 'foo'; + o.startupProbe = buildGoogleCloudAiplatformV1Probe(); } - buildCounterGoogleCloudAiplatformV1NearestNeighbors--; + buildCounterGoogleCloudAiplatformV1ModelContainerSpec--; return o; } -void checkGoogleCloudAiplatformV1NearestNeighbors( - api.GoogleCloudAiplatformV1NearestNeighbors o, +void checkGoogleCloudAiplatformV1ModelContainerSpec( + api.GoogleCloudAiplatformV1ModelContainerSpec o, ) { - buildCounterGoogleCloudAiplatformV1NearestNeighbors++; - if (buildCounterGoogleCloudAiplatformV1NearestNeighbors < 3) { - checkUnnamed284(o.neighbors!); - } - buildCounterGoogleCloudAiplatformV1NearestNeighbors--; -} - -core.int buildCounterGoogleCloudAiplatformV1NearestNeighborsNeighbor = 0; -api.GoogleCloudAiplatformV1NearestNeighborsNeighbor -buildGoogleCloudAiplatformV1NearestNeighborsNeighbor() { - final o = api.GoogleCloudAiplatformV1NearestNeighborsNeighbor(); - buildCounterGoogleCloudAiplatformV1NearestNeighborsNeighbor++; - if (buildCounterGoogleCloudAiplatformV1NearestNeighborsNeighbor < 3) { - o.distance = 42.0; - o.entityId = 'foo'; - o.entityKeyValues = - buildGoogleCloudAiplatformV1FetchFeatureValuesResponse(); - } - buildCounterGoogleCloudAiplatformV1NearestNeighborsNeighbor--; - return o; -} - -void checkGoogleCloudAiplatformV1NearestNeighborsNeighbor( - api.GoogleCloudAiplatformV1NearestNeighborsNeighbor o, -) { - buildCounterGoogleCloudAiplatformV1NearestNeighborsNeighbor++; - if (buildCounterGoogleCloudAiplatformV1NearestNeighborsNeighbor < 3) { - unittest.expect(o.distance!, unittest.equals(42.0)); - unittest.expect(o.entityId!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FetchFeatureValuesResponse(o.entityKeyValues!); - } - buildCounterGoogleCloudAiplatformV1NearestNeighborsNeighbor--; -} - -core.int buildCounterGoogleCloudAiplatformV1Neighbor = 0; -api.GoogleCloudAiplatformV1Neighbor buildGoogleCloudAiplatformV1Neighbor() { - final o = api.GoogleCloudAiplatformV1Neighbor(); - buildCounterGoogleCloudAiplatformV1Neighbor++; - if (buildCounterGoogleCloudAiplatformV1Neighbor < 3) { - o.neighborDistance = 42.0; - o.neighborId = 'foo'; - } - buildCounterGoogleCloudAiplatformV1Neighbor--; - return o; -} - -void checkGoogleCloudAiplatformV1Neighbor( - api.GoogleCloudAiplatformV1Neighbor o, -) { - buildCounterGoogleCloudAiplatformV1Neighbor++; - if (buildCounterGoogleCloudAiplatformV1Neighbor < 3) { - unittest.expect(o.neighborDistance!, unittest.equals(42.0)); - unittest.expect(o.neighborId!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ModelContainerSpec++; + if (buildCounterGoogleCloudAiplatformV1ModelContainerSpec < 3) { + checkUnnamed287(o.args!); + checkUnnamed288(o.command!); + unittest.expect(o.deploymentTimeout!, unittest.equals('foo')); + checkUnnamed289(o.env!); + checkUnnamed290(o.grpcPorts!); + checkGoogleCloudAiplatformV1Probe(o.healthProbe!); + unittest.expect(o.healthRoute!, unittest.equals('foo')); + unittest.expect(o.imageUri!, unittest.equals('foo')); + unittest.expect(o.invokeRoutePrefix!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1Probe(o.livenessProbe!); + checkUnnamed291(o.ports!); + unittest.expect(o.predictRoute!, unittest.equals('foo')); + unittest.expect(o.sharedMemorySizeMb!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1Probe(o.startupProbe!); } - buildCounterGoogleCloudAiplatformV1Neighbor--; + buildCounterGoogleCloudAiplatformV1ModelContainerSpec--; } -core.int buildCounterGoogleCloudAiplatformV1NetworkSpec = 0; -api.GoogleCloudAiplatformV1NetworkSpec -buildGoogleCloudAiplatformV1NetworkSpec() { - final o = api.GoogleCloudAiplatformV1NetworkSpec(); - buildCounterGoogleCloudAiplatformV1NetworkSpec++; - if (buildCounterGoogleCloudAiplatformV1NetworkSpec < 3) { - o.enableInternetAccess = true; - o.network = 'foo'; - o.subnetwork = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ModelDataStats = 0; +api.GoogleCloudAiplatformV1ModelDataStats +buildGoogleCloudAiplatformV1ModelDataStats() { + final o = api.GoogleCloudAiplatformV1ModelDataStats(); + buildCounterGoogleCloudAiplatformV1ModelDataStats++; + if (buildCounterGoogleCloudAiplatformV1ModelDataStats < 3) { + o.testAnnotationsCount = 'foo'; + o.testDataItemsCount = 'foo'; + o.trainingAnnotationsCount = 'foo'; + o.trainingDataItemsCount = 'foo'; + o.validationAnnotationsCount = 'foo'; + o.validationDataItemsCount = 'foo'; } - buildCounterGoogleCloudAiplatformV1NetworkSpec--; + buildCounterGoogleCloudAiplatformV1ModelDataStats--; return o; } -void checkGoogleCloudAiplatformV1NetworkSpec( - api.GoogleCloudAiplatformV1NetworkSpec o, +void checkGoogleCloudAiplatformV1ModelDataStats( + api.GoogleCloudAiplatformV1ModelDataStats o, ) { - buildCounterGoogleCloudAiplatformV1NetworkSpec++; - if (buildCounterGoogleCloudAiplatformV1NetworkSpec < 3) { - unittest.expect(o.enableInternetAccess!, unittest.isTrue); - unittest.expect(o.network!, unittest.equals('foo')); - unittest.expect(o.subnetwork!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ModelDataStats++; + if (buildCounterGoogleCloudAiplatformV1ModelDataStats < 3) { + unittest.expect(o.testAnnotationsCount!, unittest.equals('foo')); + unittest.expect(o.testDataItemsCount!, unittest.equals('foo')); + unittest.expect(o.trainingAnnotationsCount!, unittest.equals('foo')); + unittest.expect(o.trainingDataItemsCount!, unittest.equals('foo')); + unittest.expect(o.validationAnnotationsCount!, unittest.equals('foo')); + unittest.expect(o.validationDataItemsCount!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1NetworkSpec--; + buildCounterGoogleCloudAiplatformV1ModelDataStats--; } -core.int buildCounterGoogleCloudAiplatformV1NfsMount = 0; -api.GoogleCloudAiplatformV1NfsMount buildGoogleCloudAiplatformV1NfsMount() { - final o = api.GoogleCloudAiplatformV1NfsMount(); - buildCounterGoogleCloudAiplatformV1NfsMount++; - if (buildCounterGoogleCloudAiplatformV1NfsMount < 3) { - o.mountPoint = 'foo'; - o.path = 'foo'; - o.server = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable = 0; +api.GoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable +buildGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable() { + final o = api.GoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable(); + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable++; + if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable < + 3) { + o.bigqueryTablePath = 'foo'; + o.logSource = 'foo'; + o.logType = 'foo'; + o.requestResponseLoggingSchemaVersion = 'foo'; } - buildCounterGoogleCloudAiplatformV1NfsMount--; + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable--; return o; } -void checkGoogleCloudAiplatformV1NfsMount( - api.GoogleCloudAiplatformV1NfsMount o, +void checkGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable( + api.GoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable o, ) { - buildCounterGoogleCloudAiplatformV1NfsMount++; - if (buildCounterGoogleCloudAiplatformV1NfsMount < 3) { - unittest.expect(o.mountPoint!, unittest.equals('foo')); - unittest.expect(o.path!, unittest.equals('foo')); - unittest.expect(o.server!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable++; + if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable < + 3) { + unittest.expect(o.bigqueryTablePath!, unittest.equals('foo')); + unittest.expect(o.logSource!, unittest.equals('foo')); + unittest.expect(o.logType!, unittest.equals('foo')); + unittest.expect( + o.requestResponseLoggingSchemaVersion!, + unittest.equals('foo'), + ); } - buildCounterGoogleCloudAiplatformV1NfsMount--; + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable--; } -core.int buildCounterGoogleCloudAiplatformV1NotebookEucConfig = 0; -api.GoogleCloudAiplatformV1NotebookEucConfig -buildGoogleCloudAiplatformV1NotebookEucConfig() { - final o = api.GoogleCloudAiplatformV1NotebookEucConfig(); - buildCounterGoogleCloudAiplatformV1NotebookEucConfig++; - if (buildCounterGoogleCloudAiplatformV1NotebookEucConfig < 3) { - o.bypassActasCheck = true; - o.eucDisabled = true; - } - buildCounterGoogleCloudAiplatformV1NotebookEucConfig--; - return o; -} +core.List +buildUnnamed292() => [ + buildGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable(), + buildGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable(), +]; -void checkGoogleCloudAiplatformV1NotebookEucConfig( - api.GoogleCloudAiplatformV1NotebookEucConfig o, +void checkUnnamed292( + core.List + o, ) { - buildCounterGoogleCloudAiplatformV1NotebookEucConfig++; - if (buildCounterGoogleCloudAiplatformV1NotebookEucConfig < 3) { - unittest.expect(o.bypassActasCheck!, unittest.isTrue); - unittest.expect(o.eucDisabled!, unittest.isTrue); - } - buildCounterGoogleCloudAiplatformV1NotebookEucConfig--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable(o[0]); + checkGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable(o[1]); } -core.Map buildUnnamed285() => { +core.Map buildUnnamed293() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed285(core.Map o) { +void checkUnnamed293(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1NotebookExecutionJob = 0; -api.GoogleCloudAiplatformV1NotebookExecutionJob -buildGoogleCloudAiplatformV1NotebookExecutionJob() { - final o = api.GoogleCloudAiplatformV1NotebookExecutionJob(); - buildCounterGoogleCloudAiplatformV1NotebookExecutionJob++; - if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJob < 3) { +core.List +buildUnnamed294() => [ + buildGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig(), + buildGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig(), +]; + +void checkUnnamed294( + core.List + o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig(o[0]); + checkGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJob = 0; +api.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob +buildGoogleCloudAiplatformV1ModelDeploymentMonitoringJob() { + final o = api.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob(); + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJob++; + if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJob < 3) { + o.analysisInstanceSchemaUri = 'foo'; + o.bigqueryTables = buildUnnamed292(); o.createTime = 'foo'; - o.customEnvironmentSpec = - buildGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec(); - o.dataformRepositorySource = - buildGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource(); - o.directNotebookSource = - buildGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource(); o.displayName = 'foo'; + o.enableMonitoringPipelineLogs = true; o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.executionTimeout = 'foo'; - o.executionUser = 'foo'; - o.gcsNotebookSource = - buildGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource(); - o.gcsOutputUri = 'foo'; - o.jobState = 'foo'; - o.kernelName = 'foo'; - o.labels = buildUnnamed285(); + o.endpoint = 'foo'; + o.error = buildGoogleRpcStatus(); + o.labels = buildUnnamed293(); + o.latestMonitoringPipelineMetadata = + buildGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata(); + o.logTtl = 'foo'; + o.loggingSamplingStrategy = buildGoogleCloudAiplatformV1SamplingStrategy(); + o.modelDeploymentMonitoringObjectiveConfigs = buildUnnamed294(); + o.modelDeploymentMonitoringScheduleConfig = + buildGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig(); + o.modelMonitoringAlertConfig = + buildGoogleCloudAiplatformV1ModelMonitoringAlertConfig(); o.name = 'foo'; - o.notebookRuntimeTemplateResourceName = 'foo'; - o.scheduleResourceName = 'foo'; - o.serviceAccount = 'foo'; - o.status = buildGoogleRpcStatus(); + o.nextScheduleTime = 'foo'; + o.predictInstanceSchemaUri = 'foo'; + o.samplePredictInstance = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.satisfiesPzi = true; + o.satisfiesPzs = true; + o.scheduleState = 'foo'; + o.state = 'foo'; + o.statsAnomaliesBaseDirectory = + buildGoogleCloudAiplatformV1GcsDestination(); o.updateTime = 'foo'; - o.workbenchRuntime = - buildGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime(); } - buildCounterGoogleCloudAiplatformV1NotebookExecutionJob--; + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJob--; return o; } -void checkGoogleCloudAiplatformV1NotebookExecutionJob( - api.GoogleCloudAiplatformV1NotebookExecutionJob o, +void checkGoogleCloudAiplatformV1ModelDeploymentMonitoringJob( + api.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob o, ) { - buildCounterGoogleCloudAiplatformV1NotebookExecutionJob++; - if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJob < 3) { + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJob++; + if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJob < 3) { + unittest.expect(o.analysisInstanceSchemaUri!, unittest.equals('foo')); + checkUnnamed292(o.bigqueryTables!); unittest.expect(o.createTime!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec( - o.customEnvironmentSpec!, - ); - checkGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource( - o.dataformRepositorySource!, - ); - checkGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource( - o.directNotebookSource!, - ); unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.enableMonitoringPipelineLogs!, unittest.isTrue); checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.executionTimeout!, unittest.equals('foo')); - unittest.expect(o.executionUser!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource( - o.gcsNotebookSource!, + unittest.expect(o.endpoint!, unittest.equals('foo')); + checkGoogleRpcStatus(o.error!); + checkUnnamed293(o.labels!); + checkGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata( + o.latestMonitoringPipelineMetadata!, ); - unittest.expect(o.gcsOutputUri!, unittest.equals('foo')); - unittest.expect(o.jobState!, unittest.equals('foo')); - unittest.expect(o.kernelName!, unittest.equals('foo')); - checkUnnamed285(o.labels!); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect( - o.notebookRuntimeTemplateResourceName!, - unittest.equals('foo'), + unittest.expect(o.logTtl!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1SamplingStrategy(o.loggingSamplingStrategy!); + checkUnnamed294(o.modelDeploymentMonitoringObjectiveConfigs!); + checkGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig( + o.modelDeploymentMonitoringScheduleConfig!, ); - unittest.expect(o.scheduleResourceName!, unittest.equals('foo')); - unittest.expect(o.serviceAccount!, unittest.equals('foo')); - checkGoogleRpcStatus(o.status!); - unittest.expect(o.updateTime!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime( - o.workbenchRuntime!, + checkGoogleCloudAiplatformV1ModelMonitoringAlertConfig( + o.modelMonitoringAlertConfig!, ); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.nextScheduleTime!, unittest.equals('foo')); + unittest.expect(o.predictInstanceSchemaUri!, unittest.equals('foo')); + var casted66 = (o.samplePredictInstance!) as core.Map; + unittest.expect(casted66, unittest.hasLength(3)); + unittest.expect(casted66['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted66['bool'], unittest.equals(true)); + unittest.expect(casted66['string'], unittest.equals('foo')); + unittest.expect(o.satisfiesPzi!, unittest.isTrue); + unittest.expect(o.satisfiesPzs!, unittest.isTrue); + unittest.expect(o.scheduleState!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1GcsDestination(o.statsAnomaliesBaseDirectory!); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1NotebookExecutionJob--; + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJob--; } core.int -buildCounterGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec = +buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata = 0; -api.GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec -buildGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec() { +api.GoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata +buildGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata() { final o = - api.GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec(); - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec++; - if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec < + api.GoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata(); + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata++; + if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata < 3) { - o.machineSpec = buildGoogleCloudAiplatformV1MachineSpec(); - o.networkSpec = buildGoogleCloudAiplatformV1NetworkSpec(); - o.persistentDiskSpec = buildGoogleCloudAiplatformV1PersistentDiskSpec(); + o.runTime = 'foo'; + o.status = buildGoogleRpcStatus(); } - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec--; + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata--; return o; } -void checkGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec( - api.GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec o, +void +checkGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata( + api.GoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata + o, ) { - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec++; - if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec < + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata++; + if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata < 3) { - checkGoogleCloudAiplatformV1MachineSpec(o.machineSpec!); - checkGoogleCloudAiplatformV1NetworkSpec(o.networkSpec!); - checkGoogleCloudAiplatformV1PersistentDiskSpec(o.persistentDiskSpec!); + unittest.expect(o.runTime!, unittest.equals('foo')); + checkGoogleRpcStatus(o.status!); } - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec--; + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata--; } core.int -buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource = - 0; -api.GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource -buildGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource() { +buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig = 0; +api.GoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig +buildGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig() { final o = - api.GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource(); - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource++; - if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource < + api.GoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig(); + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig < 3) { - o.commitSha = 'foo'; - o.dataformRepositoryResourceName = 'foo'; + o.deployedModelId = 'foo'; + o.objectiveConfig = + buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig(); } - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource--; + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig--; return o; } -void checkGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource( - api.GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource o, +void checkGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig( + api.GoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig o, ) { - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource++; - if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource < + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig < 3) { - unittest.expect(o.commitSha!, unittest.equals('foo')); - unittest.expect(o.dataformRepositoryResourceName!, unittest.equals('foo')); + unittest.expect(o.deployedModelId!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig( + o.objectiveConfig!, + ); } - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource--; + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig--; } core.int -buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource = 0; -api.GoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource -buildGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource() { +buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig = 0; +api.GoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig +buildGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig() { final o = - api.GoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource(); - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource++; - if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource < + api.GoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig(); + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig < 3) { - o.content = 'foo'; + o.monitorInterval = 'foo'; + o.monitorWindow = 'foo'; } - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource--; + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig--; return o; } -void checkGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource( - api.GoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource o, +void checkGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig( + api.GoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig o, ) { - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource++; - if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource < + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig < 3) { - unittest.expect(o.content!, unittest.equals('foo')); + unittest.expect(o.monitorInterval!, unittest.equals('foo')); + unittest.expect(o.monitorWindow!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource--; + buildCounterGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig--; } -core.int -buildCounterGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource = 0; -api.GoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource -buildGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource() { - final o = api.GoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource(); - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource++; - if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource < - 3) { - o.generation = 'foo'; - o.uri = 'foo'; - } - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource--; - return o; -} +core.List< + api.GoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec +> +buildUnnamed295() => [ + buildGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec(), + buildGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec(), +]; -void checkGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource( - api.GoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource o, +void checkUnnamed295( + core.List< + api.GoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec + > + o, ) { - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource++; - if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource < - 3) { - unittest.expect(o.generation!, unittest.equals('foo')); - unittest.expect(o.uri!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec( + o[0], + ); + checkGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec( + o[1], + ); } -core.int -buildCounterGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime = 0; -api.GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime -buildGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime() { - final o = api.GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime(); - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime++; - if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime < - 3) {} - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime--; - return o; -} +core.List buildUnnamed296() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime( - api.GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime o, -) { - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime++; - if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime < - 3) {} - buildCounterGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime--; +void checkUnnamed296(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1NotebookIdleShutdownConfig = 0; -api.GoogleCloudAiplatformV1NotebookIdleShutdownConfig -buildGoogleCloudAiplatformV1NotebookIdleShutdownConfig() { - final o = api.GoogleCloudAiplatformV1NotebookIdleShutdownConfig(); - buildCounterGoogleCloudAiplatformV1NotebookIdleShutdownConfig++; - if (buildCounterGoogleCloudAiplatformV1NotebookIdleShutdownConfig < 3) { - o.idleShutdownDisabled = true; - o.idleTimeout = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ModelEvaluation = 0; +api.GoogleCloudAiplatformV1ModelEvaluation +buildGoogleCloudAiplatformV1ModelEvaluation() { + final o = api.GoogleCloudAiplatformV1ModelEvaluation(); + buildCounterGoogleCloudAiplatformV1ModelEvaluation++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluation < 3) { + o.annotationSchemaUri = 'foo'; + o.createTime = 'foo'; + o.dataItemSchemaUri = 'foo'; + o.displayName = 'foo'; + o.explanationSpecs = buildUnnamed295(); + o.metadata = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.metrics = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.metricsSchemaUri = 'foo'; + o.modelExplanation = buildGoogleCloudAiplatformV1ModelExplanation(); + o.name = 'foo'; + o.sliceDimensions = buildUnnamed296(); } - buildCounterGoogleCloudAiplatformV1NotebookIdleShutdownConfig--; + buildCounterGoogleCloudAiplatformV1ModelEvaluation--; return o; } -void checkGoogleCloudAiplatformV1NotebookIdleShutdownConfig( - api.GoogleCloudAiplatformV1NotebookIdleShutdownConfig o, +void checkGoogleCloudAiplatformV1ModelEvaluation( + api.GoogleCloudAiplatformV1ModelEvaluation o, ) { - buildCounterGoogleCloudAiplatformV1NotebookIdleShutdownConfig++; - if (buildCounterGoogleCloudAiplatformV1NotebookIdleShutdownConfig < 3) { - unittest.expect(o.idleShutdownDisabled!, unittest.isTrue); - unittest.expect(o.idleTimeout!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ModelEvaluation++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluation < 3) { + unittest.expect(o.annotationSchemaUri!, unittest.equals('foo')); + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.dataItemSchemaUri!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkUnnamed295(o.explanationSpecs!); + var casted67 = (o.metadata!) as core.Map; + unittest.expect(casted67, unittest.hasLength(3)); + unittest.expect(casted67['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted67['bool'], unittest.equals(true)); + unittest.expect(casted67['string'], unittest.equals('foo')); + var casted68 = (o.metrics!) as core.Map; + unittest.expect(casted68, unittest.hasLength(3)); + unittest.expect(casted68['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted68['bool'], unittest.equals(true)); + unittest.expect(casted68['string'], unittest.equals('foo')); + unittest.expect(o.metricsSchemaUri!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ModelExplanation(o.modelExplanation!); + unittest.expect(o.name!, unittest.equals('foo')); + checkUnnamed296(o.sliceDimensions!); } - buildCounterGoogleCloudAiplatformV1NotebookIdleShutdownConfig--; + buildCounterGoogleCloudAiplatformV1ModelEvaluation--; } -core.List buildUnnamed286() => ['foo', 'foo']; +core.int +buildCounterGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec = + 0; +api.GoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec +buildGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec() { + final o = + api.GoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec(); + buildCounterGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec < + 3) { + o.explanationSpec = buildGoogleCloudAiplatformV1ExplanationSpec(); + o.explanationType = 'foo'; + } + buildCounterGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec--; + return o; +} -void checkUnnamed286(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec( + api.GoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec o, +) { + buildCounterGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec < + 3) { + checkGoogleCloudAiplatformV1ExplanationSpec(o.explanationSpec!); + unittest.expect(o.explanationType!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec--; } -core.int buildCounterGoogleCloudAiplatformV1NotebookReservationAffinity = 0; -api.GoogleCloudAiplatformV1NotebookReservationAffinity -buildGoogleCloudAiplatformV1NotebookReservationAffinity() { - final o = api.GoogleCloudAiplatformV1NotebookReservationAffinity(); - buildCounterGoogleCloudAiplatformV1NotebookReservationAffinity++; - if (buildCounterGoogleCloudAiplatformV1NotebookReservationAffinity < 3) { - o.consumeReservationType = 'foo'; - o.key = 'foo'; - o.values = buildUnnamed286(); +core.int buildCounterGoogleCloudAiplatformV1ModelEvaluationSlice = 0; +api.GoogleCloudAiplatformV1ModelEvaluationSlice +buildGoogleCloudAiplatformV1ModelEvaluationSlice() { + final o = api.GoogleCloudAiplatformV1ModelEvaluationSlice(); + buildCounterGoogleCloudAiplatformV1ModelEvaluationSlice++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSlice < 3) { + o.createTime = 'foo'; + o.metrics = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.metricsSchemaUri = 'foo'; + o.modelExplanation = buildGoogleCloudAiplatformV1ModelExplanation(); + o.name = 'foo'; + o.slice = buildGoogleCloudAiplatformV1ModelEvaluationSliceSlice(); } - buildCounterGoogleCloudAiplatformV1NotebookReservationAffinity--; + buildCounterGoogleCloudAiplatformV1ModelEvaluationSlice--; return o; } -void checkGoogleCloudAiplatformV1NotebookReservationAffinity( - api.GoogleCloudAiplatformV1NotebookReservationAffinity o, +void checkGoogleCloudAiplatformV1ModelEvaluationSlice( + api.GoogleCloudAiplatformV1ModelEvaluationSlice o, ) { - buildCounterGoogleCloudAiplatformV1NotebookReservationAffinity++; - if (buildCounterGoogleCloudAiplatformV1NotebookReservationAffinity < 3) { - unittest.expect(o.consumeReservationType!, unittest.equals('foo')); - unittest.expect(o.key!, unittest.equals('foo')); - checkUnnamed286(o.values!); + buildCounterGoogleCloudAiplatformV1ModelEvaluationSlice++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSlice < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + var casted69 = (o.metrics!) as core.Map; + unittest.expect(casted69, unittest.hasLength(3)); + unittest.expect(casted69['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted69['bool'], unittest.equals(true)); + unittest.expect(casted69['string'], unittest.equals('foo')); + unittest.expect(o.metricsSchemaUri!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ModelExplanation(o.modelExplanation!); + unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ModelEvaluationSliceSlice(o.slice!); } - buildCounterGoogleCloudAiplatformV1NotebookReservationAffinity--; + buildCounterGoogleCloudAiplatformV1ModelEvaluationSlice--; } -core.Map buildUnnamed287() => { - 'x': 'foo', - 'y': 'foo', -}; +core.int buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSlice = 0; +api.GoogleCloudAiplatformV1ModelEvaluationSliceSlice +buildGoogleCloudAiplatformV1ModelEvaluationSliceSlice() { + final o = api.GoogleCloudAiplatformV1ModelEvaluationSliceSlice(); + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSlice++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSlice < 3) { + o.dimension = 'foo'; + o.sliceSpec = + buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec(); + o.value = 'foo'; + } + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSlice--; + return o; +} -void checkUnnamed287(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1ModelEvaluationSliceSlice( + api.GoogleCloudAiplatformV1ModelEvaluationSliceSlice o, +) { + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSlice++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSlice < 3) { + unittest.expect(o.dimension!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec( + o.sliceSpec!, + ); + unittest.expect(o.value!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSlice--; } -core.List buildUnnamed288() => ['foo', 'foo']; +core.Map< + core.String, + api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig +> +buildUnnamed297() => { + 'x': + buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig(), + 'y': + buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig(), +}; -void checkUnnamed288(core.List o) { +void checkUnnamed297( + core.Map< + core.String, + api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig + > + o, +) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig( + o['x']!, + ); + checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig( + o['y']!, + ); } -core.int buildCounterGoogleCloudAiplatformV1NotebookRuntime = 0; -api.GoogleCloudAiplatformV1NotebookRuntime -buildGoogleCloudAiplatformV1NotebookRuntime() { - final o = api.GoogleCloudAiplatformV1NotebookRuntime(); - buildCounterGoogleCloudAiplatformV1NotebookRuntime++; - if (buildCounterGoogleCloudAiplatformV1NotebookRuntime < 3) { - o.createTime = 'foo'; - o.dataPersistentDiskSpec = buildGoogleCloudAiplatformV1PersistentDiskSpec(); - o.description = 'foo'; - o.displayName = 'foo'; - o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.eucConfig = buildGoogleCloudAiplatformV1NotebookEucConfig(); - o.expirationTime = 'foo'; - o.healthState = 'foo'; - o.idleShutdownConfig = - buildGoogleCloudAiplatformV1NotebookIdleShutdownConfig(); - o.isUpgradable = true; - o.labels = buildUnnamed287(); - o.machineSpec = buildGoogleCloudAiplatformV1MachineSpec(); - o.name = 'foo'; - o.networkSpec = buildGoogleCloudAiplatformV1NetworkSpec(); - o.networkTags = buildUnnamed288(); - o.notebookRuntimeTemplateRef = - buildGoogleCloudAiplatformV1NotebookRuntimeTemplateRef(); - o.notebookRuntimeType = 'foo'; - o.proxyUri = 'foo'; - o.reservationAffinity = - buildGoogleCloudAiplatformV1NotebookReservationAffinity(); - o.runtimeState = 'foo'; - o.runtimeUser = 'foo'; - o.satisfiesPzi = true; - o.satisfiesPzs = true; - o.serviceAccount = 'foo'; - o.shieldedVmConfig = buildGoogleCloudAiplatformV1ShieldedVmConfig(); - o.softwareConfig = buildGoogleCloudAiplatformV1NotebookSoftwareConfig(); - o.updateTime = 'foo'; - o.version = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec = + 0; +api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec +buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec() { + final o = api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec(); + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec < + 3) { + o.configs = buildUnnamed297(); } - buildCounterGoogleCloudAiplatformV1NotebookRuntime--; + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec--; return o; } -void checkGoogleCloudAiplatformV1NotebookRuntime( - api.GoogleCloudAiplatformV1NotebookRuntime o, +void checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec( + api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec o, ) { - buildCounterGoogleCloudAiplatformV1NotebookRuntime++; - if (buildCounterGoogleCloudAiplatformV1NotebookRuntime < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1PersistentDiskSpec(o.dataPersistentDiskSpec!); - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - checkGoogleCloudAiplatformV1NotebookEucConfig(o.eucConfig!); - unittest.expect(o.expirationTime!, unittest.equals('foo')); - unittest.expect(o.healthState!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1NotebookIdleShutdownConfig( - o.idleShutdownConfig!, - ); - unittest.expect(o.isUpgradable!, unittest.isTrue); - checkUnnamed287(o.labels!); - checkGoogleCloudAiplatformV1MachineSpec(o.machineSpec!); - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1NetworkSpec(o.networkSpec!); - checkUnnamed288(o.networkTags!); - checkGoogleCloudAiplatformV1NotebookRuntimeTemplateRef( - o.notebookRuntimeTemplateRef!, - ); - unittest.expect(o.notebookRuntimeType!, unittest.equals('foo')); - unittest.expect(o.proxyUri!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1NotebookReservationAffinity( - o.reservationAffinity!, - ); - unittest.expect(o.runtimeState!, unittest.equals('foo')); - unittest.expect(o.runtimeUser!, unittest.equals('foo')); - unittest.expect(o.satisfiesPzi!, unittest.isTrue); - unittest.expect(o.satisfiesPzs!, unittest.isTrue); - unittest.expect(o.serviceAccount!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ShieldedVmConfig(o.shieldedVmConfig!); - checkGoogleCloudAiplatformV1NotebookSoftwareConfig(o.softwareConfig!); - unittest.expect(o.updateTime!, unittest.equals('foo')); - unittest.expect(o.version!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec < + 3) { + checkUnnamed297(o.configs!); } - buildCounterGoogleCloudAiplatformV1NotebookRuntime--; + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec--; } -core.Map buildUnnamed289() => { - 'x': 'foo', - 'y': 'foo', -}; - -void checkUnnamed289(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); +core.int +buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange = 0; +api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange +buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange() { + final o = + api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange(); + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange < + 3) { + o.high = 42.0; + o.low = 42.0; + } + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange--; + return o; } -core.List buildUnnamed290() => ['foo', 'foo']; - -void checkUnnamed290(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange( + api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange o, +) { + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange < + 3) { + unittest.expect(o.high!, unittest.equals(42.0)); + unittest.expect(o.low!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange--; } -core.int buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplate = 0; -api.GoogleCloudAiplatformV1NotebookRuntimeTemplate -buildGoogleCloudAiplatformV1NotebookRuntimeTemplate() { - final o = api.GoogleCloudAiplatformV1NotebookRuntimeTemplate(); - buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplate++; - if (buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplate < 3) { - o.createTime = 'foo'; - o.dataPersistentDiskSpec = buildGoogleCloudAiplatformV1PersistentDiskSpec(); - o.description = 'foo'; - o.displayName = 'foo'; - o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.etag = 'foo'; - o.eucConfig = buildGoogleCloudAiplatformV1NotebookEucConfig(); - o.idleShutdownConfig = - buildGoogleCloudAiplatformV1NotebookIdleShutdownConfig(); - o.isDefault = true; - o.labels = buildUnnamed289(); - o.machineSpec = buildGoogleCloudAiplatformV1MachineSpec(); - o.name = 'foo'; - o.networkSpec = buildGoogleCloudAiplatformV1NetworkSpec(); - o.networkTags = buildUnnamed290(); - o.notebookRuntimeType = 'foo'; - o.reservationAffinity = - buildGoogleCloudAiplatformV1NotebookReservationAffinity(); - o.serviceAccount = 'foo'; - o.shieldedVmConfig = buildGoogleCloudAiplatformV1ShieldedVmConfig(); - o.softwareConfig = buildGoogleCloudAiplatformV1NotebookSoftwareConfig(); - o.updateTime = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig = + 0; +api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig +buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig() { + final o = + api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig(); + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig < + 3) { + o.allValues = true; + o.range = + buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange(); + o.value = + buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue(); } - buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplate--; + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig--; return o; } -void checkGoogleCloudAiplatformV1NotebookRuntimeTemplate( - api.GoogleCloudAiplatformV1NotebookRuntimeTemplate o, +void checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig( + api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig o, ) { - buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplate++; - if (buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplate < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1PersistentDiskSpec(o.dataPersistentDiskSpec!); - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.etag!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1NotebookEucConfig(o.eucConfig!); - checkGoogleCloudAiplatformV1NotebookIdleShutdownConfig( - o.idleShutdownConfig!, + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig < + 3) { + unittest.expect(o.allValues!, unittest.isTrue); + checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange( + o.range!, ); - unittest.expect(o.isDefault!, unittest.isTrue); - checkUnnamed289(o.labels!); - checkGoogleCloudAiplatformV1MachineSpec(o.machineSpec!); - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1NetworkSpec(o.networkSpec!); - checkUnnamed290(o.networkTags!); - unittest.expect(o.notebookRuntimeType!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1NotebookReservationAffinity( - o.reservationAffinity!, + checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue( + o.value!, ); - unittest.expect(o.serviceAccount!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ShieldedVmConfig(o.shieldedVmConfig!); - checkGoogleCloudAiplatformV1NotebookSoftwareConfig(o.softwareConfig!); - unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplate--; + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig--; } -core.int buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplateRef = 0; -api.GoogleCloudAiplatformV1NotebookRuntimeTemplateRef -buildGoogleCloudAiplatformV1NotebookRuntimeTemplateRef() { - final o = api.GoogleCloudAiplatformV1NotebookRuntimeTemplateRef(); - buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplateRef++; - if (buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplateRef < 3) { - o.notebookRuntimeTemplate = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue = 0; +api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue +buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue() { + final o = + api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue(); + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue < + 3) { + o.floatValue = 42.0; + o.stringValue = 'foo'; } - buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplateRef--; + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue--; return o; } -void checkGoogleCloudAiplatformV1NotebookRuntimeTemplateRef( - api.GoogleCloudAiplatformV1NotebookRuntimeTemplateRef o, +void checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue( + api.GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue o, ) { - buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplateRef++; - if (buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplateRef < 3) { - unittest.expect(o.notebookRuntimeTemplate!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue++; + if (buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue < + 3) { + unittest.expect(o.floatValue!, unittest.equals(42.0)); + unittest.expect(o.stringValue!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplateRef--; + buildCounterGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue--; } -core.List buildUnnamed291() => [ - buildGoogleCloudAiplatformV1EnvVar(), - buildGoogleCloudAiplatformV1EnvVar(), +core.List buildUnnamed298() => [ + buildGoogleCloudAiplatformV1Attribution(), + buildGoogleCloudAiplatformV1Attribution(), ]; -void checkUnnamed291(core.List o) { +void checkUnnamed298(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1EnvVar(o[0]); - checkGoogleCloudAiplatformV1EnvVar(o[1]); + checkGoogleCloudAiplatformV1Attribution(o[0]); + checkGoogleCloudAiplatformV1Attribution(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1NotebookSoftwareConfig = 0; -api.GoogleCloudAiplatformV1NotebookSoftwareConfig -buildGoogleCloudAiplatformV1NotebookSoftwareConfig() { - final o = api.GoogleCloudAiplatformV1NotebookSoftwareConfig(); - buildCounterGoogleCloudAiplatformV1NotebookSoftwareConfig++; - if (buildCounterGoogleCloudAiplatformV1NotebookSoftwareConfig < 3) { - o.colabImage = buildGoogleCloudAiplatformV1ColabImage(); - o.env = buildUnnamed291(); - o.postStartupScriptConfig = - buildGoogleCloudAiplatformV1PostStartupScriptConfig(); +core.int buildCounterGoogleCloudAiplatformV1ModelExplanation = 0; +api.GoogleCloudAiplatformV1ModelExplanation +buildGoogleCloudAiplatformV1ModelExplanation() { + final o = api.GoogleCloudAiplatformV1ModelExplanation(); + buildCounterGoogleCloudAiplatformV1ModelExplanation++; + if (buildCounterGoogleCloudAiplatformV1ModelExplanation < 3) { + o.meanAttributions = buildUnnamed298(); } - buildCounterGoogleCloudAiplatformV1NotebookSoftwareConfig--; + buildCounterGoogleCloudAiplatformV1ModelExplanation--; return o; } -void checkGoogleCloudAiplatformV1NotebookSoftwareConfig( - api.GoogleCloudAiplatformV1NotebookSoftwareConfig o, +void checkGoogleCloudAiplatformV1ModelExplanation( + api.GoogleCloudAiplatformV1ModelExplanation o, ) { - buildCounterGoogleCloudAiplatformV1NotebookSoftwareConfig++; - if (buildCounterGoogleCloudAiplatformV1NotebookSoftwareConfig < 3) { - checkGoogleCloudAiplatformV1ColabImage(o.colabImage!); - checkUnnamed291(o.env!); - checkGoogleCloudAiplatformV1PostStartupScriptConfig( - o.postStartupScriptConfig!, - ); + buildCounterGoogleCloudAiplatformV1ModelExplanation++; + if (buildCounterGoogleCloudAiplatformV1ModelExplanation < 3) { + checkUnnamed298(o.meanAttributions!); } - buildCounterGoogleCloudAiplatformV1NotebookSoftwareConfig--; + buildCounterGoogleCloudAiplatformV1ModelExplanation--; } -core.int buildCounterGoogleCloudAiplatformV1OutputConfig = 0; -api.GoogleCloudAiplatformV1OutputConfig -buildGoogleCloudAiplatformV1OutputConfig() { - final o = api.GoogleCloudAiplatformV1OutputConfig(); - buildCounterGoogleCloudAiplatformV1OutputConfig++; - if (buildCounterGoogleCloudAiplatformV1OutputConfig < 3) { - o.gcsDestination = buildGoogleCloudAiplatformV1GcsDestination(); +core.List buildUnnamed299() => ['foo', 'foo']; + +void checkUnnamed299(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1ModelExportFormat = 0; +api.GoogleCloudAiplatformV1ModelExportFormat +buildGoogleCloudAiplatformV1ModelExportFormat() { + final o = api.GoogleCloudAiplatformV1ModelExportFormat(); + buildCounterGoogleCloudAiplatformV1ModelExportFormat++; + if (buildCounterGoogleCloudAiplatformV1ModelExportFormat < 3) { + o.exportableContents = buildUnnamed299(); + o.id = 'foo'; } - buildCounterGoogleCloudAiplatformV1OutputConfig--; + buildCounterGoogleCloudAiplatformV1ModelExportFormat--; return o; } -void checkGoogleCloudAiplatformV1OutputConfig( - api.GoogleCloudAiplatformV1OutputConfig o, +void checkGoogleCloudAiplatformV1ModelExportFormat( + api.GoogleCloudAiplatformV1ModelExportFormat o, ) { - buildCounterGoogleCloudAiplatformV1OutputConfig++; - if (buildCounterGoogleCloudAiplatformV1OutputConfig < 3) { - checkGoogleCloudAiplatformV1GcsDestination(o.gcsDestination!); + buildCounterGoogleCloudAiplatformV1ModelExportFormat++; + if (buildCounterGoogleCloudAiplatformV1ModelExportFormat < 3) { + checkUnnamed299(o.exportableContents!); + unittest.expect(o.id!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1OutputConfig--; + buildCounterGoogleCloudAiplatformV1ModelExportFormat--; } -core.int buildCounterGoogleCloudAiplatformV1PSCAutomationConfig = 0; -api.GoogleCloudAiplatformV1PSCAutomationConfig -buildGoogleCloudAiplatformV1PSCAutomationConfig() { - final o = api.GoogleCloudAiplatformV1PSCAutomationConfig(); - buildCounterGoogleCloudAiplatformV1PSCAutomationConfig++; - if (buildCounterGoogleCloudAiplatformV1PSCAutomationConfig < 3) { - o.errorMessage = 'foo'; - o.forwardingRule = 'foo'; - o.ipAddress = 'foo'; - o.network = 'foo'; - o.projectId = 'foo'; - o.state = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ModelGardenSource = 0; +api.GoogleCloudAiplatformV1ModelGardenSource +buildGoogleCloudAiplatformV1ModelGardenSource() { + final o = api.GoogleCloudAiplatformV1ModelGardenSource(); + buildCounterGoogleCloudAiplatformV1ModelGardenSource++; + if (buildCounterGoogleCloudAiplatformV1ModelGardenSource < 3) { + o.publicModelName = 'foo'; + o.skipHfModelCache = true; + o.versionId = 'foo'; } - buildCounterGoogleCloudAiplatformV1PSCAutomationConfig--; + buildCounterGoogleCloudAiplatformV1ModelGardenSource--; return o; } -void checkGoogleCloudAiplatformV1PSCAutomationConfig( - api.GoogleCloudAiplatformV1PSCAutomationConfig o, +void checkGoogleCloudAiplatformV1ModelGardenSource( + api.GoogleCloudAiplatformV1ModelGardenSource o, ) { - buildCounterGoogleCloudAiplatformV1PSCAutomationConfig++; - if (buildCounterGoogleCloudAiplatformV1PSCAutomationConfig < 3) { - unittest.expect(o.errorMessage!, unittest.equals('foo')); - unittest.expect(o.forwardingRule!, unittest.equals('foo')); - unittest.expect(o.ipAddress!, unittest.equals('foo')); - unittest.expect(o.network!, unittest.equals('foo')); - unittest.expect(o.projectId!, unittest.equals('foo')); - unittest.expect(o.state!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ModelGardenSource++; + if (buildCounterGoogleCloudAiplatformV1ModelGardenSource < 3) { + unittest.expect(o.publicModelName!, unittest.equals('foo')); + unittest.expect(o.skipHfModelCache!, unittest.isTrue); + unittest.expect(o.versionId!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PSCAutomationConfig--; + buildCounterGoogleCloudAiplatformV1ModelGardenSource--; } -core.int buildCounterGoogleCloudAiplatformV1PairwiseMetricInput = 0; -api.GoogleCloudAiplatformV1PairwiseMetricInput -buildGoogleCloudAiplatformV1PairwiseMetricInput() { - final o = api.GoogleCloudAiplatformV1PairwiseMetricInput(); - buildCounterGoogleCloudAiplatformV1PairwiseMetricInput++; - if (buildCounterGoogleCloudAiplatformV1PairwiseMetricInput < 3) { - o.instance = buildGoogleCloudAiplatformV1PairwiseMetricInstance(); - o.metricSpec = buildGoogleCloudAiplatformV1PairwiseMetricSpec(); - } - buildCounterGoogleCloudAiplatformV1PairwiseMetricInput--; - return o; -} +core.List buildUnnamed300() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1PairwiseMetricInput( - api.GoogleCloudAiplatformV1PairwiseMetricInput o, -) { - buildCounterGoogleCloudAiplatformV1PairwiseMetricInput++; - if (buildCounterGoogleCloudAiplatformV1PairwiseMetricInput < 3) { - checkGoogleCloudAiplatformV1PairwiseMetricInstance(o.instance!); - checkGoogleCloudAiplatformV1PairwiseMetricSpec(o.metricSpec!); - } - buildCounterGoogleCloudAiplatformV1PairwiseMetricInput--; +void checkUnnamed300(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1PairwiseMetricInstance = 0; -api.GoogleCloudAiplatformV1PairwiseMetricInstance -buildGoogleCloudAiplatformV1PairwiseMetricInstance() { - final o = api.GoogleCloudAiplatformV1PairwiseMetricInstance(); - buildCounterGoogleCloudAiplatformV1PairwiseMetricInstance++; - if (buildCounterGoogleCloudAiplatformV1PairwiseMetricInstance < 3) { - o.contentMapInstance = buildGoogleCloudAiplatformV1ContentMap(); - o.jsonInstance = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfig = 0; +api.GoogleCloudAiplatformV1ModelMonitoringAlertConfig +buildGoogleCloudAiplatformV1ModelMonitoringAlertConfig() { + final o = api.GoogleCloudAiplatformV1ModelMonitoringAlertConfig(); + buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfig < 3) { + o.emailAlertConfig = + buildGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig(); + o.enableLogging = true; + o.notificationChannels = buildUnnamed300(); } - buildCounterGoogleCloudAiplatformV1PairwiseMetricInstance--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfig--; return o; } -void checkGoogleCloudAiplatformV1PairwiseMetricInstance( - api.GoogleCloudAiplatformV1PairwiseMetricInstance o, +void checkGoogleCloudAiplatformV1ModelMonitoringAlertConfig( + api.GoogleCloudAiplatformV1ModelMonitoringAlertConfig o, ) { - buildCounterGoogleCloudAiplatformV1PairwiseMetricInstance++; - if (buildCounterGoogleCloudAiplatformV1PairwiseMetricInstance < 3) { - checkGoogleCloudAiplatformV1ContentMap(o.contentMapInstance!); - unittest.expect(o.jsonInstance!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfig < 3) { + checkGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig( + o.emailAlertConfig!, + ); + unittest.expect(o.enableLogging!, unittest.isTrue); + checkUnnamed300(o.notificationChannels!); } - buildCounterGoogleCloudAiplatformV1PairwiseMetricInstance--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfig--; } -core.int buildCounterGoogleCloudAiplatformV1PairwiseMetricResult = 0; -api.GoogleCloudAiplatformV1PairwiseMetricResult -buildGoogleCloudAiplatformV1PairwiseMetricResult() { - final o = api.GoogleCloudAiplatformV1PairwiseMetricResult(); - buildCounterGoogleCloudAiplatformV1PairwiseMetricResult++; - if (buildCounterGoogleCloudAiplatformV1PairwiseMetricResult < 3) { - o.customOutput = buildGoogleCloudAiplatformV1CustomOutput(); - o.explanation = 'foo'; - o.pairwiseChoice = 'foo'; +core.List buildUnnamed301() => ['foo', 'foo']; + +void checkUnnamed301(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int +buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig = + 0; +api.GoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig +buildGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig() { + final o = + api.GoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig(); + buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig < + 3) { + o.userEmails = buildUnnamed301(); } - buildCounterGoogleCloudAiplatformV1PairwiseMetricResult--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig--; return o; } -void checkGoogleCloudAiplatformV1PairwiseMetricResult( - api.GoogleCloudAiplatformV1PairwiseMetricResult o, +void checkGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig( + api.GoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig o, ) { - buildCounterGoogleCloudAiplatformV1PairwiseMetricResult++; - if (buildCounterGoogleCloudAiplatformV1PairwiseMetricResult < 3) { - checkGoogleCloudAiplatformV1CustomOutput(o.customOutput!); - unittest.expect(o.explanation!, unittest.equals('foo')); - unittest.expect(o.pairwiseChoice!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig < + 3) { + checkUnnamed301(o.userEmails!); } - buildCounterGoogleCloudAiplatformV1PairwiseMetricResult--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig--; } -core.int buildCounterGoogleCloudAiplatformV1PairwiseMetricSpec = 0; -api.GoogleCloudAiplatformV1PairwiseMetricSpec -buildGoogleCloudAiplatformV1PairwiseMetricSpec() { - final o = api.GoogleCloudAiplatformV1PairwiseMetricSpec(); - buildCounterGoogleCloudAiplatformV1PairwiseMetricSpec++; - if (buildCounterGoogleCloudAiplatformV1PairwiseMetricSpec < 3) { - o.baselineResponseFieldName = 'foo'; - o.candidateResponseFieldName = 'foo'; - o.customOutputFormatConfig = - buildGoogleCloudAiplatformV1CustomOutputFormatConfig(); - o.metricPromptTemplate = 'foo'; - o.systemInstruction = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig = 0; +api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfig +buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig() { + final o = api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfig(); + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig < 3) { + o.explanationConfig = + buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig(); + o.predictionDriftDetectionConfig = + buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig(); + o.trainingDataset = + buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset(); + o.trainingPredictionSkewDetectionConfig = + buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig(); } - buildCounterGoogleCloudAiplatformV1PairwiseMetricSpec--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig--; return o; } -void checkGoogleCloudAiplatformV1PairwiseMetricSpec( - api.GoogleCloudAiplatformV1PairwiseMetricSpec o, +void checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig( + api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfig o, ) { - buildCounterGoogleCloudAiplatformV1PairwiseMetricSpec++; - if (buildCounterGoogleCloudAiplatformV1PairwiseMetricSpec < 3) { - unittest.expect(o.baselineResponseFieldName!, unittest.equals('foo')); - unittest.expect(o.candidateResponseFieldName!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1CustomOutputFormatConfig( - o.customOutputFormatConfig!, + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig < 3) { + checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig( + o.explanationConfig!, + ); + checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig( + o.predictionDriftDetectionConfig!, + ); + checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset( + o.trainingDataset!, + ); + checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig( + o.trainingPredictionSkewDetectionConfig!, ); - unittest.expect(o.metricPromptTemplate!, unittest.equals('foo')); - unittest.expect(o.systemInstruction!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PairwiseMetricSpec--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig--; } core.int -buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput = 0; -api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput -buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput() { - final o = api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput(); - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput++; - if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput < +buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig = + 0; +api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig +buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig() { + final o = + api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig(); + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig < 3) { - o.instance = - buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance(); - o.metricSpec = - buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec(); + o.enableFeatureAttributes = true; + o.explanationBaseline = + buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline(); } - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig--; return o; } -void checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput( - api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput o, +void +checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig( + api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig o, ) { - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput++; - if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput < + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig < 3) { - checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance( - o.instance!, - ); - checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec( - o.metricSpec!, + unittest.expect(o.enableFeatureAttributes!, unittest.isTrue); + checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline( + o.explanationBaseline!, ); } - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig--; } core.int -buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance = 0; -api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance -buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance() { +buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline = + 0; +api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline +buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline() { final o = - api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance(); - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance++; - if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance < + api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline(); + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline < 3) { - o.baselinePrediction = 'foo'; - o.context = 'foo'; - o.instruction = 'foo'; - o.prediction = 'foo'; - o.reference = 'foo'; + o.bigquery = buildGoogleCloudAiplatformV1BigQueryDestination(); + o.gcs = buildGoogleCloudAiplatformV1GcsDestination(); + o.predictionFormat = 'foo'; } - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline--; return o; } -void checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance( - api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance o, +void +checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline( + api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline + o, ) { - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance++; - if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance < + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline < 3) { - unittest.expect(o.baselinePrediction!, unittest.equals('foo')); - unittest.expect(o.context!, unittest.equals('foo')); - unittest.expect(o.instruction!, unittest.equals('foo')); - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1BigQueryDestination(o.bigquery!); + checkGoogleCloudAiplatformV1GcsDestination(o.gcs!); + unittest.expect(o.predictionFormat!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline--; +} + +core.Map +buildUnnamed302() => { + 'x': buildGoogleCloudAiplatformV1ThresholdConfig(), + 'y': buildGoogleCloudAiplatformV1ThresholdConfig(), +}; + +void checkUnnamed302( + core.Map o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ThresholdConfig(o['x']!); + checkGoogleCloudAiplatformV1ThresholdConfig(o['y']!); +} + +core.Map +buildUnnamed303() => { + 'x': buildGoogleCloudAiplatformV1ThresholdConfig(), + 'y': buildGoogleCloudAiplatformV1ThresholdConfig(), +}; + +void checkUnnamed303( + core.Map o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ThresholdConfig(o['x']!); + checkGoogleCloudAiplatformV1ThresholdConfig(o['y']!); } core.int -buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult = 0; -api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult -buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult() { - final o = api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult(); - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult++; - if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult < +buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig = + 0; +api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig +buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig() { + final o = + api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig(); + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig < 3) { - o.confidence = 42.0; - o.explanation = 'foo'; - o.pairwiseChoice = 'foo'; + o.attributionScoreDriftThresholds = buildUnnamed302(); + o.defaultDriftThreshold = buildGoogleCloudAiplatformV1ThresholdConfig(); + o.driftThresholds = buildUnnamed303(); } - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig--; return o; } -void checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult( - api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult o, +void +checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig( + api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig + o, ) { - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult++; - if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult < + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig < 3) { - unittest.expect(o.confidence!, unittest.equals(42.0)); - unittest.expect(o.explanation!, unittest.equals('foo')); - unittest.expect(o.pairwiseChoice!, unittest.equals('foo')); + checkUnnamed302(o.attributionScoreDriftThresholds!); + checkGoogleCloudAiplatformV1ThresholdConfig(o.defaultDriftThreshold!); + checkUnnamed303(o.driftThresholds!); } - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig--; } core.int -buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec = 0; -api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec -buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec() { - final o = api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec(); - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec++; - if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec < +buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset = + 0; +api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset +buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset() { + final o = + api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset(); + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset < 3) { - o.useReference = true; - o.version = 42; + o.bigquerySource = buildGoogleCloudAiplatformV1BigQuerySource(); + o.dataFormat = 'foo'; + o.dataset = 'foo'; + o.gcsSource = buildGoogleCloudAiplatformV1GcsSource(); + o.loggingSamplingStrategy = buildGoogleCloudAiplatformV1SamplingStrategy(); + o.targetField = 'foo'; } - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset--; return o; } -void checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec( - api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec o, +void checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset( + api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset o, ) { - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec++; - if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec < + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset < 3) { - unittest.expect(o.useReference!, unittest.isTrue); - unittest.expect(o.version!, unittest.equals(42)); + checkGoogleCloudAiplatformV1BigQuerySource(o.bigquerySource!); + unittest.expect(o.dataFormat!, unittest.equals('foo')); + unittest.expect(o.dataset!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1GcsSource(o.gcsSource!); + checkGoogleCloudAiplatformV1SamplingStrategy(o.loggingSamplingStrategy!); + unittest.expect(o.targetField!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset--; } -core.int buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInput = +core.Map +buildUnnamed304() => { + 'x': buildGoogleCloudAiplatformV1ThresholdConfig(), + 'y': buildGoogleCloudAiplatformV1ThresholdConfig(), +}; + +void checkUnnamed304( + core.Map o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ThresholdConfig(o['x']!); + checkGoogleCloudAiplatformV1ThresholdConfig(o['y']!); +} + +core.Map +buildUnnamed305() => { + 'x': buildGoogleCloudAiplatformV1ThresholdConfig(), + 'y': buildGoogleCloudAiplatformV1ThresholdConfig(), +}; + +void checkUnnamed305( + core.Map o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ThresholdConfig(o['x']!); + checkGoogleCloudAiplatformV1ThresholdConfig(o['y']!); +} + +core.int +buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig = 0; -api.GoogleCloudAiplatformV1PairwiseSummarizationQualityInput -buildGoogleCloudAiplatformV1PairwiseSummarizationQualityInput() { - final o = api.GoogleCloudAiplatformV1PairwiseSummarizationQualityInput(); - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInput++; - if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInput < +api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig +buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig() { + final o = + api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig(); + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig < 3) { - o.instance = - buildGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance(); - o.metricSpec = - buildGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec(); + o.attributionScoreSkewThresholds = buildUnnamed304(); + o.defaultSkewThreshold = buildGoogleCloudAiplatformV1ThresholdConfig(); + o.skewThresholds = buildUnnamed305(); } - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInput--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig--; return o; } -void checkGoogleCloudAiplatformV1PairwiseSummarizationQualityInput( - api.GoogleCloudAiplatformV1PairwiseSummarizationQualityInput o, +void +checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig( + api.GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig + o, ) { - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInput++; - if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInput < + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig < 3) { - checkGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance( - o.instance!, - ); - checkGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec(o.metricSpec!); + checkUnnamed304(o.attributionScoreSkewThresholds!); + checkGoogleCloudAiplatformV1ThresholdConfig(o.defaultSkewThreshold!); + checkUnnamed305(o.skewThresholds!); } - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInput--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig--; } -core.int -buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance = 0; -api.GoogleCloudAiplatformV1PairwiseSummarizationQualityInstance -buildGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance() { - final o = api.GoogleCloudAiplatformV1PairwiseSummarizationQualityInstance(); - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance++; - if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance < - 3) { - o.baselinePrediction = 'foo'; - o.context = 'foo'; - o.instruction = 'foo'; - o.prediction = 'foo'; - o.reference = 'foo'; +core.List< + api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies +> +buildUnnamed306() => [ + buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies(), + buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies(), +]; + +void checkUnnamed306( + core.List< + api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies + > + o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies( + o[0], + ); + checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies( + o[1], + ); +} + +core.int buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies = 0; +api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomalies +buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies() { + final o = api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomalies(); + buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies < 3) { + o.anomalyCount = 42; + o.deployedModelId = 'foo'; + o.featureStats = buildUnnamed306(); + o.objective = 'foo'; } - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies--; return o; } -void checkGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance( - api.GoogleCloudAiplatformV1PairwiseSummarizationQualityInstance o, +void checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies( + api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomalies o, ) { - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance++; - if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance < - 3) { - unittest.expect(o.baselinePrediction!, unittest.equals('foo')); - unittest.expect(o.context!, unittest.equals('foo')); - unittest.expect(o.instruction!, unittest.equals('foo')); - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies < 3) { + unittest.expect(o.anomalyCount!, unittest.equals(42)); + unittest.expect(o.deployedModelId!, unittest.equals('foo')); + checkUnnamed306(o.featureStats!); + unittest.expect(o.objective!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies--; } -core.int buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityResult = +core.List buildUnnamed307() => [ + buildGoogleCloudAiplatformV1FeatureStatsAnomaly(), + buildGoogleCloudAiplatformV1FeatureStatsAnomaly(), +]; + +void checkUnnamed307( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1FeatureStatsAnomaly(o[0]); + checkGoogleCloudAiplatformV1FeatureStatsAnomaly(o[1]); +} + +core.int +buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies = 0; -api.GoogleCloudAiplatformV1PairwiseSummarizationQualityResult -buildGoogleCloudAiplatformV1PairwiseSummarizationQualityResult() { - final o = api.GoogleCloudAiplatformV1PairwiseSummarizationQualityResult(); - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityResult++; - if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityResult < +api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies +buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies() { + final o = + api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies(); + buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies < 3) { - o.confidence = 42.0; - o.explanation = 'foo'; - o.pairwiseChoice = 'foo'; + o.featureDisplayName = 'foo'; + o.predictionStats = buildUnnamed307(); + o.threshold = buildGoogleCloudAiplatformV1ThresholdConfig(); + o.trainingStats = buildGoogleCloudAiplatformV1FeatureStatsAnomaly(); } - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityResult--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies--; return o; } -void checkGoogleCloudAiplatformV1PairwiseSummarizationQualityResult( - api.GoogleCloudAiplatformV1PairwiseSummarizationQualityResult o, +void +checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies( + api.GoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies + o, ) { - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityResult++; - if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityResult < + buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies++; + if (buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies < 3) { - unittest.expect(o.confidence!, unittest.equals(42.0)); - unittest.expect(o.explanation!, unittest.equals('foo')); - unittest.expect(o.pairwiseChoice!, unittest.equals('foo')); + unittest.expect(o.featureDisplayName!, unittest.equals('foo')); + checkUnnamed307(o.predictionStats!); + checkGoogleCloudAiplatformV1ThresholdConfig(o.threshold!); + checkGoogleCloudAiplatformV1FeatureStatsAnomaly(o.trainingStats!); } - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityResult--; + buildCounterGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies--; } -core.int buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec = - 0; -api.GoogleCloudAiplatformV1PairwiseSummarizationQualitySpec -buildGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec() { - final o = api.GoogleCloudAiplatformV1PairwiseSummarizationQualitySpec(); - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec++; - if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec < 3) { - o.useReference = true; - o.version = 42; +core.int buildCounterGoogleCloudAiplatformV1ModelOriginalModelInfo = 0; +api.GoogleCloudAiplatformV1ModelOriginalModelInfo +buildGoogleCloudAiplatformV1ModelOriginalModelInfo() { + final o = api.GoogleCloudAiplatformV1ModelOriginalModelInfo(); + buildCounterGoogleCloudAiplatformV1ModelOriginalModelInfo++; + if (buildCounterGoogleCloudAiplatformV1ModelOriginalModelInfo < 3) { + o.model = 'foo'; } - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec--; + buildCounterGoogleCloudAiplatformV1ModelOriginalModelInfo--; return o; } -void checkGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec( - api.GoogleCloudAiplatformV1PairwiseSummarizationQualitySpec o, +void checkGoogleCloudAiplatformV1ModelOriginalModelInfo( + api.GoogleCloudAiplatformV1ModelOriginalModelInfo o, ) { - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec++; - if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec < 3) { - unittest.expect(o.useReference!, unittest.isTrue); - unittest.expect(o.version!, unittest.equals(42)); - } - buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec--; -} - -core.int buildCounterGoogleCloudAiplatformV1Part = 0; -api.GoogleCloudAiplatformV1Part buildGoogleCloudAiplatformV1Part() { - final o = api.GoogleCloudAiplatformV1Part(); - buildCounterGoogleCloudAiplatformV1Part++; - if (buildCounterGoogleCloudAiplatformV1Part < 3) { - o.codeExecutionResult = buildGoogleCloudAiplatformV1CodeExecutionResult(); - o.executableCode = buildGoogleCloudAiplatformV1ExecutableCode(); - o.fileData = buildGoogleCloudAiplatformV1FileData(); - o.functionCall = buildGoogleCloudAiplatformV1FunctionCall(); - o.functionResponse = buildGoogleCloudAiplatformV1FunctionResponse(); - o.inlineData = buildGoogleCloudAiplatformV1Blob(); - o.text = 'foo'; - o.thought = true; - o.thoughtSignature = 'foo'; - o.videoMetadata = buildGoogleCloudAiplatformV1VideoMetadata(); + buildCounterGoogleCloudAiplatformV1ModelOriginalModelInfo++; + if (buildCounterGoogleCloudAiplatformV1ModelOriginalModelInfo < 3) { + unittest.expect(o.model!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1Part--; - return o; + buildCounterGoogleCloudAiplatformV1ModelOriginalModelInfo--; } -void checkGoogleCloudAiplatformV1Part(api.GoogleCloudAiplatformV1Part o) { - buildCounterGoogleCloudAiplatformV1Part++; - if (buildCounterGoogleCloudAiplatformV1Part < 3) { - checkGoogleCloudAiplatformV1CodeExecutionResult(o.codeExecutionResult!); - checkGoogleCloudAiplatformV1ExecutableCode(o.executableCode!); - checkGoogleCloudAiplatformV1FileData(o.fileData!); - checkGoogleCloudAiplatformV1FunctionCall(o.functionCall!); - checkGoogleCloudAiplatformV1FunctionResponse(o.functionResponse!); - checkGoogleCloudAiplatformV1Blob(o.inlineData!); - unittest.expect(o.text!, unittest.equals('foo')); - unittest.expect(o.thought!, unittest.isTrue); - unittest.expect(o.thoughtSignature!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1VideoMetadata(o.videoMetadata!); +core.int buildCounterGoogleCloudAiplatformV1ModelSourceInfo = 0; +api.GoogleCloudAiplatformV1ModelSourceInfo +buildGoogleCloudAiplatformV1ModelSourceInfo() { + final o = api.GoogleCloudAiplatformV1ModelSourceInfo(); + buildCounterGoogleCloudAiplatformV1ModelSourceInfo++; + if (buildCounterGoogleCloudAiplatformV1ModelSourceInfo < 3) { + o.copy = true; + o.sourceType = 'foo'; } - buildCounterGoogleCloudAiplatformV1Part--; -} - -core.int -buildCounterGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest = 0; -api.GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest -buildGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest() { - final o = - api.GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest(); - buildCounterGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest++; - if (buildCounterGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest < - 3) {} - buildCounterGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest--; + buildCounterGoogleCloudAiplatformV1ModelSourceInfo--; return o; } -void checkGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest( - api.GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest o, +void checkGoogleCloudAiplatformV1ModelSourceInfo( + api.GoogleCloudAiplatformV1ModelSourceInfo o, ) { - buildCounterGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest++; - if (buildCounterGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest < - 3) {} - buildCounterGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest--; + buildCounterGoogleCloudAiplatformV1ModelSourceInfo++; + if (buildCounterGoogleCloudAiplatformV1ModelSourceInfo < 3) { + unittest.expect(o.copy!, unittest.isTrue); + unittest.expect(o.sourceType!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1ModelSourceInfo--; } -core.int buildCounterGoogleCloudAiplatformV1PauseScheduleRequest = 0; -api.GoogleCloudAiplatformV1PauseScheduleRequest -buildGoogleCloudAiplatformV1PauseScheduleRequest() { - final o = api.GoogleCloudAiplatformV1PauseScheduleRequest(); - buildCounterGoogleCloudAiplatformV1PauseScheduleRequest++; - if (buildCounterGoogleCloudAiplatformV1PauseScheduleRequest < 3) {} - buildCounterGoogleCloudAiplatformV1PauseScheduleRequest--; +core.int buildCounterGoogleCloudAiplatformV1ModelVersionCheckpoint = 0; +api.GoogleCloudAiplatformV1ModelVersionCheckpoint +buildGoogleCloudAiplatformV1ModelVersionCheckpoint() { + final o = api.GoogleCloudAiplatformV1ModelVersionCheckpoint(); + buildCounterGoogleCloudAiplatformV1ModelVersionCheckpoint++; + if (buildCounterGoogleCloudAiplatformV1ModelVersionCheckpoint < 3) { + o.checkpointId = 'foo'; + o.epoch = 'foo'; + o.step = 'foo'; + } + buildCounterGoogleCloudAiplatformV1ModelVersionCheckpoint--; return o; } -void checkGoogleCloudAiplatformV1PauseScheduleRequest( - api.GoogleCloudAiplatformV1PauseScheduleRequest o, +void checkGoogleCloudAiplatformV1ModelVersionCheckpoint( + api.GoogleCloudAiplatformV1ModelVersionCheckpoint o, ) { - buildCounterGoogleCloudAiplatformV1PauseScheduleRequest++; - if (buildCounterGoogleCloudAiplatformV1PauseScheduleRequest < 3) {} - buildCounterGoogleCloudAiplatformV1PauseScheduleRequest--; + buildCounterGoogleCloudAiplatformV1ModelVersionCheckpoint++; + if (buildCounterGoogleCloudAiplatformV1ModelVersionCheckpoint < 3) { + unittest.expect(o.checkpointId!, unittest.equals('foo')); + unittest.expect(o.epoch!, unittest.equals('foo')); + unittest.expect(o.step!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1ModelVersionCheckpoint--; } -core.int buildCounterGoogleCloudAiplatformV1PersistentDiskSpec = 0; -api.GoogleCloudAiplatformV1PersistentDiskSpec -buildGoogleCloudAiplatformV1PersistentDiskSpec() { - final o = api.GoogleCloudAiplatformV1PersistentDiskSpec(); - buildCounterGoogleCloudAiplatformV1PersistentDiskSpec++; - if (buildCounterGoogleCloudAiplatformV1PersistentDiskSpec < 3) { - o.diskSizeGb = 'foo'; - o.diskType = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1MutateDeployedModelRequest = 0; +api.GoogleCloudAiplatformV1MutateDeployedModelRequest +buildGoogleCloudAiplatformV1MutateDeployedModelRequest() { + final o = api.GoogleCloudAiplatformV1MutateDeployedModelRequest(); + buildCounterGoogleCloudAiplatformV1MutateDeployedModelRequest++; + if (buildCounterGoogleCloudAiplatformV1MutateDeployedModelRequest < 3) { + o.deployedModel = buildGoogleCloudAiplatformV1DeployedModel(); + o.updateMask = 'foo'; } - buildCounterGoogleCloudAiplatformV1PersistentDiskSpec--; + buildCounterGoogleCloudAiplatformV1MutateDeployedModelRequest--; return o; } -void checkGoogleCloudAiplatformV1PersistentDiskSpec( - api.GoogleCloudAiplatformV1PersistentDiskSpec o, +void checkGoogleCloudAiplatformV1MutateDeployedModelRequest( + api.GoogleCloudAiplatformV1MutateDeployedModelRequest o, ) { - buildCounterGoogleCloudAiplatformV1PersistentDiskSpec++; - if (buildCounterGoogleCloudAiplatformV1PersistentDiskSpec < 3) { - unittest.expect(o.diskSizeGb!, unittest.equals('foo')); - unittest.expect(o.diskType!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1MutateDeployedModelRequest++; + if (buildCounterGoogleCloudAiplatformV1MutateDeployedModelRequest < 3) { + checkGoogleCloudAiplatformV1DeployedModel(o.deployedModel!); + unittest.expect(o.updateMask!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PersistentDiskSpec--; + buildCounterGoogleCloudAiplatformV1MutateDeployedModelRequest--; } -core.Map buildUnnamed292() => { +core.Map buildUnnamed308() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed292(core.Map o) { +void checkUnnamed308(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed293() => ['foo', 'foo']; - -void checkUnnamed293(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.List buildUnnamed294() => [ - buildGoogleCloudAiplatformV1ResourcePool(), - buildGoogleCloudAiplatformV1ResourcePool(), -]; - -void checkUnnamed294(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ResourcePool(o[0]); - checkGoogleCloudAiplatformV1ResourcePool(o[1]); -} - -core.int buildCounterGoogleCloudAiplatformV1PersistentResource = 0; -api.GoogleCloudAiplatformV1PersistentResource -buildGoogleCloudAiplatformV1PersistentResource() { - final o = api.GoogleCloudAiplatformV1PersistentResource(); - buildCounterGoogleCloudAiplatformV1PersistentResource++; - if (buildCounterGoogleCloudAiplatformV1PersistentResource < 3) { +core.int buildCounterGoogleCloudAiplatformV1NasJob = 0; +api.GoogleCloudAiplatformV1NasJob buildGoogleCloudAiplatformV1NasJob() { + final o = api.GoogleCloudAiplatformV1NasJob(); + buildCounterGoogleCloudAiplatformV1NasJob++; + if (buildCounterGoogleCloudAiplatformV1NasJob < 3) { o.createTime = 'foo'; o.displayName = 'foo'; + o.enableRestrictedImageTraining = true; o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.endTime = 'foo'; o.error = buildGoogleRpcStatus(); - o.labels = buildUnnamed292(); + o.labels = buildUnnamed308(); o.name = 'foo'; - o.network = 'foo'; - o.pscInterfaceConfig = buildGoogleCloudAiplatformV1PscInterfaceConfig(); - o.reservedIpRanges = buildUnnamed293(); - o.resourcePools = buildUnnamed294(); - o.resourceRuntime = buildGoogleCloudAiplatformV1ResourceRuntime(); - o.resourceRuntimeSpec = buildGoogleCloudAiplatformV1ResourceRuntimeSpec(); + o.nasJobOutput = buildGoogleCloudAiplatformV1NasJobOutput(); + o.nasJobSpec = buildGoogleCloudAiplatformV1NasJobSpec(); o.satisfiesPzi = true; o.satisfiesPzs = true; o.startTime = 'foo'; o.state = 'foo'; o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1PersistentResource--; + buildCounterGoogleCloudAiplatformV1NasJob--; return o; } -void checkGoogleCloudAiplatformV1PersistentResource( - api.GoogleCloudAiplatformV1PersistentResource o, -) { - buildCounterGoogleCloudAiplatformV1PersistentResource++; - if (buildCounterGoogleCloudAiplatformV1PersistentResource < 3) { +void checkGoogleCloudAiplatformV1NasJob(api.GoogleCloudAiplatformV1NasJob o) { + buildCounterGoogleCloudAiplatformV1NasJob++; + if (buildCounterGoogleCloudAiplatformV1NasJob < 3) { unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.enableRestrictedImageTraining!, unittest.isTrue); checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + unittest.expect(o.endTime!, unittest.equals('foo')); checkGoogleRpcStatus(o.error!); - checkUnnamed292(o.labels!); + checkUnnamed308(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.network!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1PscInterfaceConfig(o.pscInterfaceConfig!); - checkUnnamed293(o.reservedIpRanges!); - checkUnnamed294(o.resourcePools!); - checkGoogleCloudAiplatformV1ResourceRuntime(o.resourceRuntime!); - checkGoogleCloudAiplatformV1ResourceRuntimeSpec(o.resourceRuntimeSpec!); + checkGoogleCloudAiplatformV1NasJobOutput(o.nasJobOutput!); + checkGoogleCloudAiplatformV1NasJobSpec(o.nasJobSpec!); unittest.expect(o.satisfiesPzi!, unittest.isTrue); unittest.expect(o.satisfiesPzs!, unittest.isTrue); unittest.expect(o.startTime!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PersistentResource--; + buildCounterGoogleCloudAiplatformV1NasJob--; } -core.Map buildUnnamed295() => { - 'x': 'foo', - 'y': 'foo', -}; +core.int buildCounterGoogleCloudAiplatformV1NasJobOutput = 0; +api.GoogleCloudAiplatformV1NasJobOutput +buildGoogleCloudAiplatformV1NasJobOutput() { + final o = api.GoogleCloudAiplatformV1NasJobOutput(); + buildCounterGoogleCloudAiplatformV1NasJobOutput++; + if (buildCounterGoogleCloudAiplatformV1NasJobOutput < 3) { + o.multiTrialJobOutput = + buildGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput(); + } + buildCounterGoogleCloudAiplatformV1NasJobOutput--; + return o; +} -void checkUnnamed295(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1NasJobOutput( + api.GoogleCloudAiplatformV1NasJobOutput o, +) { + buildCounterGoogleCloudAiplatformV1NasJobOutput++; + if (buildCounterGoogleCloudAiplatformV1NasJobOutput < 3) { + checkGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput( + o.multiTrialJobOutput!, + ); + } + buildCounterGoogleCloudAiplatformV1NasJobOutput--; } -core.Map buildUnnamed296() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; +core.List buildUnnamed309() => [ + buildGoogleCloudAiplatformV1NasTrial(), + buildGoogleCloudAiplatformV1NasTrial(), +]; -void checkUnnamed296(core.Map o) { +void checkUnnamed309(core.List o) { unittest.expect(o, unittest.hasLength(2)); - var casted57 = (o['x']!) as core.Map; - unittest.expect(casted57, unittest.hasLength(3)); - unittest.expect(casted57['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted57['bool'], unittest.equals(true)); - unittest.expect(casted57['string'], unittest.equals('foo')); - var casted58 = (o['y']!) as core.Map; - unittest.expect(casted58, unittest.hasLength(3)); - unittest.expect(casted58['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted58['bool'], unittest.equals(true)); - unittest.expect(casted58['string'], unittest.equals('foo')); + checkGoogleCloudAiplatformV1NasTrial(o[0]); + checkGoogleCloudAiplatformV1NasTrial(o[1]); } -core.List buildUnnamed297() => ['foo', 'foo']; +core.List buildUnnamed310() => [ + buildGoogleCloudAiplatformV1NasTrial(), + buildGoogleCloudAiplatformV1NasTrial(), +]; -void checkUnnamed297(core.List o) { +void checkUnnamed310(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1NasTrial(o[0]); + checkGoogleCloudAiplatformV1NasTrial(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1PipelineJob = 0; -api.GoogleCloudAiplatformV1PipelineJob -buildGoogleCloudAiplatformV1PipelineJob() { - final o = api.GoogleCloudAiplatformV1PipelineJob(); - buildCounterGoogleCloudAiplatformV1PipelineJob++; - if (buildCounterGoogleCloudAiplatformV1PipelineJob < 3) { - o.createTime = 'foo'; - o.displayName = 'foo'; - o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.endTime = 'foo'; - o.error = buildGoogleRpcStatus(); - o.jobDetail = buildGoogleCloudAiplatformV1PipelineJobDetail(); - o.labels = buildUnnamed295(); - o.name = 'foo'; - o.network = 'foo'; - o.pipelineSpec = buildUnnamed296(); - o.preflightValidations = true; - o.pscInterfaceConfig = buildGoogleCloudAiplatformV1PscInterfaceConfig(); - o.reservedIpRanges = buildUnnamed297(); - o.runtimeConfig = buildGoogleCloudAiplatformV1PipelineJobRuntimeConfig(); - o.scheduleName = 'foo'; - o.serviceAccount = 'foo'; - o.startTime = 'foo'; - o.state = 'foo'; - o.templateMetadata = buildGoogleCloudAiplatformV1PipelineTemplateMetadata(); - o.templateUri = 'foo'; - o.updateTime = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput = 0; +api.GoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput +buildGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput() { + final o = api.GoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput(); + buildCounterGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput++; + if (buildCounterGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput < 3) { + o.searchTrials = buildUnnamed309(); + o.trainTrials = buildUnnamed310(); } - buildCounterGoogleCloudAiplatformV1PipelineJob--; + buildCounterGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput--; return o; } -void checkGoogleCloudAiplatformV1PipelineJob( - api.GoogleCloudAiplatformV1PipelineJob o, +void checkGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput( + api.GoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput o, ) { - buildCounterGoogleCloudAiplatformV1PipelineJob++; - if (buildCounterGoogleCloudAiplatformV1PipelineJob < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.endTime!, unittest.equals('foo')); - checkGoogleRpcStatus(o.error!); - checkGoogleCloudAiplatformV1PipelineJobDetail(o.jobDetail!); - checkUnnamed295(o.labels!); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.network!, unittest.equals('foo')); - checkUnnamed296(o.pipelineSpec!); - unittest.expect(o.preflightValidations!, unittest.isTrue); - checkGoogleCloudAiplatformV1PscInterfaceConfig(o.pscInterfaceConfig!); - checkUnnamed297(o.reservedIpRanges!); - checkGoogleCloudAiplatformV1PipelineJobRuntimeConfig(o.runtimeConfig!); - unittest.expect(o.scheduleName!, unittest.equals('foo')); - unittest.expect(o.serviceAccount!, unittest.equals('foo')); - unittest.expect(o.startTime!, unittest.equals('foo')); - unittest.expect(o.state!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1PipelineTemplateMetadata(o.templateMetadata!); - unittest.expect(o.templateUri!, unittest.equals('foo')); - unittest.expect(o.updateTime!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput++; + if (buildCounterGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput < 3) { + checkUnnamed309(o.searchTrials!); + checkUnnamed310(o.trainTrials!); } - buildCounterGoogleCloudAiplatformV1PipelineJob--; -} - -core.List buildUnnamed298() => [ - buildGoogleCloudAiplatformV1PipelineTaskDetail(), - buildGoogleCloudAiplatformV1PipelineTaskDetail(), -]; - -void checkUnnamed298( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1PipelineTaskDetail(o[0]); - checkGoogleCloudAiplatformV1PipelineTaskDetail(o[1]); + buildCounterGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput--; } -core.int buildCounterGoogleCloudAiplatformV1PipelineJobDetail = 0; -api.GoogleCloudAiplatformV1PipelineJobDetail -buildGoogleCloudAiplatformV1PipelineJobDetail() { - final o = api.GoogleCloudAiplatformV1PipelineJobDetail(); - buildCounterGoogleCloudAiplatformV1PipelineJobDetail++; - if (buildCounterGoogleCloudAiplatformV1PipelineJobDetail < 3) { - o.pipelineContext = buildGoogleCloudAiplatformV1Context(); - o.pipelineRunContext = buildGoogleCloudAiplatformV1Context(); - o.taskDetails = buildUnnamed298(); +core.int buildCounterGoogleCloudAiplatformV1NasJobSpec = 0; +api.GoogleCloudAiplatformV1NasJobSpec buildGoogleCloudAiplatformV1NasJobSpec() { + final o = api.GoogleCloudAiplatformV1NasJobSpec(); + buildCounterGoogleCloudAiplatformV1NasJobSpec++; + if (buildCounterGoogleCloudAiplatformV1NasJobSpec < 3) { + o.multiTrialAlgorithmSpec = + buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec(); + o.resumeNasJobId = 'foo'; + o.searchSpaceSpec = 'foo'; } - buildCounterGoogleCloudAiplatformV1PipelineJobDetail--; + buildCounterGoogleCloudAiplatformV1NasJobSpec--; return o; } -void checkGoogleCloudAiplatformV1PipelineJobDetail( - api.GoogleCloudAiplatformV1PipelineJobDetail o, +void checkGoogleCloudAiplatformV1NasJobSpec( + api.GoogleCloudAiplatformV1NasJobSpec o, ) { - buildCounterGoogleCloudAiplatformV1PipelineJobDetail++; - if (buildCounterGoogleCloudAiplatformV1PipelineJobDetail < 3) { - checkGoogleCloudAiplatformV1Context(o.pipelineContext!); - checkGoogleCloudAiplatformV1Context(o.pipelineRunContext!); - checkUnnamed298(o.taskDetails!); + buildCounterGoogleCloudAiplatformV1NasJobSpec++; + if (buildCounterGoogleCloudAiplatformV1NasJobSpec < 3) { + checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec( + o.multiTrialAlgorithmSpec!, + ); + unittest.expect(o.resumeNasJobId!, unittest.equals('foo')); + unittest.expect(o.searchSpaceSpec!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PipelineJobDetail--; -} - -core.Map< - core.String, - api.GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact -> -buildUnnamed299() => { - 'x': buildGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact(), - 'y': buildGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact(), -}; - -void checkUnnamed299( - core.Map< - core.String, - api.GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact - > - o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact(o['x']!); - checkGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact(o['y']!); -} - -core.Map buildUnnamed300() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; - -void checkUnnamed300(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - var casted59 = (o['x']!) as core.Map; - unittest.expect(casted59, unittest.hasLength(3)); - unittest.expect(casted59['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted59['bool'], unittest.equals(true)); - unittest.expect(casted59['string'], unittest.equals('foo')); - var casted60 = (o['y']!) as core.Map; - unittest.expect(casted60, unittest.hasLength(3)); - unittest.expect(casted60['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted60['bool'], unittest.equals(true)); - unittest.expect(casted60['string'], unittest.equals('foo')); -} - -core.Map buildUnnamed301() => { - 'x': buildGoogleCloudAiplatformV1Value(), - 'y': buildGoogleCloudAiplatformV1Value(), -}; - -void checkUnnamed301( - core.Map o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Value(o['x']!); - checkGoogleCloudAiplatformV1Value(o['y']!); + buildCounterGoogleCloudAiplatformV1NasJobSpec--; } -core.int buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfig = 0; -api.GoogleCloudAiplatformV1PipelineJobRuntimeConfig -buildGoogleCloudAiplatformV1PipelineJobRuntimeConfig() { - final o = api.GoogleCloudAiplatformV1PipelineJobRuntimeConfig(); - buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfig++; - if (buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfig < 3) { - o.failurePolicy = 'foo'; - o.gcsOutputDirectory = 'foo'; - o.inputArtifacts = buildUnnamed299(); - o.parameterValues = buildUnnamed300(); - o.parameters = buildUnnamed301(); +core.int buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec = + 0; +api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec +buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec() { + final o = api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec(); + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec++; + if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec < + 3) { + o.metric = + buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec(); + o.multiTrialAlgorithm = 'foo'; + o.searchTrialSpec = + buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec(); + o.trainTrialSpec = + buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec(); } - buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfig--; + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec--; return o; } -void checkGoogleCloudAiplatformV1PipelineJobRuntimeConfig( - api.GoogleCloudAiplatformV1PipelineJobRuntimeConfig o, +void checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec( + api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec o, ) { - buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfig++; - if (buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfig < 3) { - unittest.expect(o.failurePolicy!, unittest.equals('foo')); - unittest.expect(o.gcsOutputDirectory!, unittest.equals('foo')); - checkUnnamed299(o.inputArtifacts!); - checkUnnamed300(o.parameterValues!); - checkUnnamed301(o.parameters!); + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec++; + if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec < + 3) { + checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec( + o.metric!, + ); + unittest.expect(o.multiTrialAlgorithm!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec( + o.searchTrialSpec!, + ); + checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec( + o.trainTrialSpec!, + ); } - buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfig--; + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec--; } core.int -buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact = 0; -api.GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact -buildGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact() { - final o = api.GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact(); - buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact++; - if (buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact < +buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec = + 0; +api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec +buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec() { + final o = + api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec(); + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec < 3) { - o.artifactId = 'foo'; + o.goal = 'foo'; + o.metricId = 'foo'; } - buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact--; + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec--; return o; } -void checkGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact( - api.GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact o, +void checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec( + api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec o, ) { - buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact++; - if (buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact < + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec < 3) { - unittest.expect(o.artifactId!, unittest.equals('foo')); + unittest.expect(o.goal!, unittest.equals('foo')); + unittest.expect(o.metricId!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact--; + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec--; } -core.Map -buildUnnamed302() => { - 'x': buildGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(), - 'y': buildGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(), -}; - -void checkUnnamed302( - core.Map< - core.String, - api.GoogleCloudAiplatformV1PipelineTaskDetailArtifactList - > - o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(o['x']!); - checkGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(o['y']!); +core.int +buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec = + 0; +api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec +buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec() { + final o = + api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec(); + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec++; + if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec < + 3) { + o.maxFailedTrialCount = 42; + o.maxParallelTrialCount = 42; + o.maxTrialCount = 42; + o.searchTrialJobSpec = buildGoogleCloudAiplatformV1CustomJobSpec(); + } + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec--; + return o; } -core.Map -buildUnnamed303() => { - 'x': buildGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(), - 'y': buildGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(), -}; - -void checkUnnamed303( - core.Map< - core.String, - api.GoogleCloudAiplatformV1PipelineTaskDetailArtifactList - > - o, +void +checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec( + api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(o['x']!); - checkGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(o['y']!); + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec++; + if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec < + 3) { + unittest.expect(o.maxFailedTrialCount!, unittest.equals(42)); + unittest.expect(o.maxParallelTrialCount!, unittest.equals(42)); + unittest.expect(o.maxTrialCount!, unittest.equals(42)); + checkGoogleCloudAiplatformV1CustomJobSpec(o.searchTrialJobSpec!); + } + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec--; } -core.List -buildUnnamed304() => [ - buildGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus(), - buildGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus(), -]; +core.int +buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec = + 0; +api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec +buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec() { + final o = + api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec(); + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec++; + if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec < + 3) { + o.frequency = 42; + o.maxParallelTrialCount = 42; + o.trainTrialJobSpec = buildGoogleCloudAiplatformV1CustomJobSpec(); + } + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec--; + return o; +} -void checkUnnamed304( - core.List o, +void +checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec( + api.GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus(o[0]); - checkGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus(o[1]); + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec++; + if (buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec < + 3) { + unittest.expect(o.frequency!, unittest.equals(42)); + unittest.expect(o.maxParallelTrialCount!, unittest.equals(42)); + checkGoogleCloudAiplatformV1CustomJobSpec(o.trainTrialJobSpec!); + } + buildCounterGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec--; } -core.int buildCounterGoogleCloudAiplatformV1PipelineTaskDetail = 0; -api.GoogleCloudAiplatformV1PipelineTaskDetail -buildGoogleCloudAiplatformV1PipelineTaskDetail() { - final o = api.GoogleCloudAiplatformV1PipelineTaskDetail(); - buildCounterGoogleCloudAiplatformV1PipelineTaskDetail++; - if (buildCounterGoogleCloudAiplatformV1PipelineTaskDetail < 3) { - o.createTime = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1NasTrial = 0; +api.GoogleCloudAiplatformV1NasTrial buildGoogleCloudAiplatformV1NasTrial() { + final o = api.GoogleCloudAiplatformV1NasTrial(); + buildCounterGoogleCloudAiplatformV1NasTrial++; + if (buildCounterGoogleCloudAiplatformV1NasTrial < 3) { o.endTime = 'foo'; - o.error = buildGoogleRpcStatus(); - o.execution = buildGoogleCloudAiplatformV1Execution(); - o.executorDetail = buildGoogleCloudAiplatformV1PipelineTaskExecutorDetail(); - o.inputs = buildUnnamed302(); - o.outputs = buildUnnamed303(); - o.parentTaskId = 'foo'; - o.pipelineTaskStatus = buildUnnamed304(); + o.finalMeasurement = buildGoogleCloudAiplatformV1Measurement(); + o.id = 'foo'; o.startTime = 'foo'; o.state = 'foo'; - o.taskId = 'foo'; - o.taskName = 'foo'; - o.taskUniqueName = 'foo'; } - buildCounterGoogleCloudAiplatformV1PipelineTaskDetail--; + buildCounterGoogleCloudAiplatformV1NasTrial--; return o; } -void checkGoogleCloudAiplatformV1PipelineTaskDetail( - api.GoogleCloudAiplatformV1PipelineTaskDetail o, +void checkGoogleCloudAiplatformV1NasTrial( + api.GoogleCloudAiplatformV1NasTrial o, ) { - buildCounterGoogleCloudAiplatformV1PipelineTaskDetail++; - if (buildCounterGoogleCloudAiplatformV1PipelineTaskDetail < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NasTrial++; + if (buildCounterGoogleCloudAiplatformV1NasTrial < 3) { unittest.expect(o.endTime!, unittest.equals('foo')); - checkGoogleRpcStatus(o.error!); - checkGoogleCloudAiplatformV1Execution(o.execution!); - checkGoogleCloudAiplatformV1PipelineTaskExecutorDetail(o.executorDetail!); - checkUnnamed302(o.inputs!); - checkUnnamed303(o.outputs!); - unittest.expect(o.parentTaskId!, unittest.equals('foo')); - checkUnnamed304(o.pipelineTaskStatus!); + checkGoogleCloudAiplatformV1Measurement(o.finalMeasurement!); + unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.startTime!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); - unittest.expect(o.taskId!, unittest.equals('foo')); - unittest.expect(o.taskName!, unittest.equals('foo')); - unittest.expect(o.taskUniqueName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PipelineTaskDetail--; + buildCounterGoogleCloudAiplatformV1NasTrial--; } -core.List buildUnnamed305() => [ - buildGoogleCloudAiplatformV1Artifact(), - buildGoogleCloudAiplatformV1Artifact(), +core.int buildCounterGoogleCloudAiplatformV1NasTrialDetail = 0; +api.GoogleCloudAiplatformV1NasTrialDetail +buildGoogleCloudAiplatformV1NasTrialDetail() { + final o = api.GoogleCloudAiplatformV1NasTrialDetail(); + buildCounterGoogleCloudAiplatformV1NasTrialDetail++; + if (buildCounterGoogleCloudAiplatformV1NasTrialDetail < 3) { + o.name = 'foo'; + o.parameters = 'foo'; + o.searchTrial = buildGoogleCloudAiplatformV1NasTrial(); + o.trainTrial = buildGoogleCloudAiplatformV1NasTrial(); + } + buildCounterGoogleCloudAiplatformV1NasTrialDetail--; + return o; +} + +void checkGoogleCloudAiplatformV1NasTrialDetail( + api.GoogleCloudAiplatformV1NasTrialDetail o, +) { + buildCounterGoogleCloudAiplatformV1NasTrialDetail++; + if (buildCounterGoogleCloudAiplatformV1NasTrialDetail < 3) { + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.parameters!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1NasTrial(o.searchTrial!); + checkGoogleCloudAiplatformV1NasTrial(o.trainTrial!); + } + buildCounterGoogleCloudAiplatformV1NasTrialDetail--; +} + +core.List +buildUnnamed311() => [ + buildGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter(), + buildGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter(), ]; -void checkUnnamed305(core.List o) { +void checkUnnamed311( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Artifact(o[0]); - checkGoogleCloudAiplatformV1Artifact(o[1]); + checkGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter(o[0]); + checkGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1PipelineTaskDetailArtifactList = 0; -api.GoogleCloudAiplatformV1PipelineTaskDetailArtifactList -buildGoogleCloudAiplatformV1PipelineTaskDetailArtifactList() { - final o = api.GoogleCloudAiplatformV1PipelineTaskDetailArtifactList(); - buildCounterGoogleCloudAiplatformV1PipelineTaskDetailArtifactList++; - if (buildCounterGoogleCloudAiplatformV1PipelineTaskDetailArtifactList < 3) { - o.artifacts = buildUnnamed305(); +core.List +buildUnnamed312() => [ + buildGoogleCloudAiplatformV1NearestNeighborQueryStringFilter(), + buildGoogleCloudAiplatformV1NearestNeighborQueryStringFilter(), +]; + +void checkUnnamed312( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1NearestNeighborQueryStringFilter(o[0]); + checkGoogleCloudAiplatformV1NearestNeighborQueryStringFilter(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1NearestNeighborQuery = 0; +api.GoogleCloudAiplatformV1NearestNeighborQuery +buildGoogleCloudAiplatformV1NearestNeighborQuery() { + final o = api.GoogleCloudAiplatformV1NearestNeighborQuery(); + buildCounterGoogleCloudAiplatformV1NearestNeighborQuery++; + if (buildCounterGoogleCloudAiplatformV1NearestNeighborQuery < 3) { + o.embedding = buildGoogleCloudAiplatformV1NearestNeighborQueryEmbedding(); + o.entityId = 'foo'; + o.neighborCount = 42; + o.numericFilters = buildUnnamed311(); + o.parameters = buildGoogleCloudAiplatformV1NearestNeighborQueryParameters(); + o.perCrowdingAttributeNeighborCount = 42; + o.stringFilters = buildUnnamed312(); } - buildCounterGoogleCloudAiplatformV1PipelineTaskDetailArtifactList--; + buildCounterGoogleCloudAiplatformV1NearestNeighborQuery--; return o; } -void checkGoogleCloudAiplatformV1PipelineTaskDetailArtifactList( - api.GoogleCloudAiplatformV1PipelineTaskDetailArtifactList o, +void checkGoogleCloudAiplatformV1NearestNeighborQuery( + api.GoogleCloudAiplatformV1NearestNeighborQuery o, ) { - buildCounterGoogleCloudAiplatformV1PipelineTaskDetailArtifactList++; - if (buildCounterGoogleCloudAiplatformV1PipelineTaskDetailArtifactList < 3) { - checkUnnamed305(o.artifacts!); + buildCounterGoogleCloudAiplatformV1NearestNeighborQuery++; + if (buildCounterGoogleCloudAiplatformV1NearestNeighborQuery < 3) { + checkGoogleCloudAiplatformV1NearestNeighborQueryEmbedding(o.embedding!); + unittest.expect(o.entityId!, unittest.equals('foo')); + unittest.expect(o.neighborCount!, unittest.equals(42)); + checkUnnamed311(o.numericFilters!); + checkGoogleCloudAiplatformV1NearestNeighborQueryParameters(o.parameters!); + unittest.expect(o.perCrowdingAttributeNeighborCount!, unittest.equals(42)); + checkUnnamed312(o.stringFilters!); } - buildCounterGoogleCloudAiplatformV1PipelineTaskDetailArtifactList--; + buildCounterGoogleCloudAiplatformV1NearestNeighborQuery--; } -core.int -buildCounterGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus = 0; -api.GoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus -buildGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus() { - final o = api.GoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus(); - buildCounterGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus++; - if (buildCounterGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus < +core.List buildUnnamed313() => [42.0, 42.0]; + +void checkUnnamed313(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals(42.0)); + unittest.expect(o[1], unittest.equals(42.0)); +} + +core.int buildCounterGoogleCloudAiplatformV1NearestNeighborQueryEmbedding = 0; +api.GoogleCloudAiplatformV1NearestNeighborQueryEmbedding +buildGoogleCloudAiplatformV1NearestNeighborQueryEmbedding() { + final o = api.GoogleCloudAiplatformV1NearestNeighborQueryEmbedding(); + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryEmbedding++; + if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryEmbedding < 3) { + o.value = buildUnnamed313(); + } + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryEmbedding--; + return o; +} + +void checkGoogleCloudAiplatformV1NearestNeighborQueryEmbedding( + api.GoogleCloudAiplatformV1NearestNeighborQueryEmbedding o, +) { + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryEmbedding++; + if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryEmbedding < 3) { + checkUnnamed313(o.value!); + } + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryEmbedding--; +} + +core.int buildCounterGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter = + 0; +api.GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter +buildGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter() { + final o = api.GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter(); + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter++; + if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter < 3) { - o.error = buildGoogleRpcStatus(); - o.state = 'foo'; - o.updateTime = 'foo'; + o.name = 'foo'; + o.op = 'foo'; + o.valueDouble = 42.0; + o.valueFloat = 42.0; + o.valueInt = 'foo'; } - buildCounterGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus--; + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter--; return o; } -void checkGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus( - api.GoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus o, +void checkGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter( + api.GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter o, ) { - buildCounterGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus++; - if (buildCounterGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus < + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter++; + if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter < 3) { - checkGoogleRpcStatus(o.error!); - unittest.expect(o.state!, unittest.equals('foo')); - unittest.expect(o.updateTime!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.op!, unittest.equals('foo')); + unittest.expect(o.valueDouble!, unittest.equals(42.0)); + unittest.expect(o.valueFloat!, unittest.equals(42.0)); + unittest.expect(o.valueInt!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus--; + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter--; } -core.int buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetail = 0; -api.GoogleCloudAiplatformV1PipelineTaskExecutorDetail -buildGoogleCloudAiplatformV1PipelineTaskExecutorDetail() { - final o = api.GoogleCloudAiplatformV1PipelineTaskExecutorDetail(); - buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetail++; - if (buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetail < 3) { - o.containerDetail = - buildGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail(); - o.customJobDetail = - buildGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail(); +core.int buildCounterGoogleCloudAiplatformV1NearestNeighborQueryParameters = 0; +api.GoogleCloudAiplatformV1NearestNeighborQueryParameters +buildGoogleCloudAiplatformV1NearestNeighborQueryParameters() { + final o = api.GoogleCloudAiplatformV1NearestNeighborQueryParameters(); + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryParameters++; + if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryParameters < 3) { + o.approximateNeighborCandidates = 42; + o.leafNodesSearchFraction = 42.0; } - buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetail--; + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryParameters--; return o; } -void checkGoogleCloudAiplatformV1PipelineTaskExecutorDetail( - api.GoogleCloudAiplatformV1PipelineTaskExecutorDetail o, +void checkGoogleCloudAiplatformV1NearestNeighborQueryParameters( + api.GoogleCloudAiplatformV1NearestNeighborQueryParameters o, ) { - buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetail++; - if (buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetail < 3) { - checkGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail( - o.containerDetail!, - ); - checkGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail( - o.customJobDetail!, - ); + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryParameters++; + if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryParameters < 3) { + unittest.expect(o.approximateNeighborCandidates!, unittest.equals(42)); + unittest.expect(o.leafNodesSearchFraction!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetail--; + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryParameters--; } -core.List buildUnnamed306() => ['foo', 'foo']; +core.List buildUnnamed314() => ['foo', 'foo']; -void checkUnnamed306(core.List o) { +void checkUnnamed314(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed307() => ['foo', 'foo']; +core.List buildUnnamed315() => ['foo', 'foo']; -void checkUnnamed307(core.List o) { +void checkUnnamed315(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.int -buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail = +core.int buildCounterGoogleCloudAiplatformV1NearestNeighborQueryStringFilter = 0; -api.GoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail -buildGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail() { - final o = - api.GoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail(); - buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail++; - if (buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail < - 3) { - o.failedMainJobs = buildUnnamed306(); - o.failedPreCachingCheckJobs = buildUnnamed307(); - o.mainJob = 'foo'; - o.preCachingCheckJob = 'foo'; +api.GoogleCloudAiplatformV1NearestNeighborQueryStringFilter +buildGoogleCloudAiplatformV1NearestNeighborQueryStringFilter() { + final o = api.GoogleCloudAiplatformV1NearestNeighborQueryStringFilter(); + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryStringFilter++; + if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryStringFilter < 3) { + o.allowTokens = buildUnnamed314(); + o.denyTokens = buildUnnamed315(); + o.name = 'foo'; } - buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail--; + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryStringFilter--; return o; } -void checkGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail( - api.GoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail o, +void checkGoogleCloudAiplatformV1NearestNeighborQueryStringFilter( + api.GoogleCloudAiplatformV1NearestNeighborQueryStringFilter o, ) { - buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail++; - if (buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail < - 3) { - checkUnnamed306(o.failedMainJobs!); - checkUnnamed307(o.failedPreCachingCheckJobs!); - unittest.expect(o.mainJob!, unittest.equals('foo')); - unittest.expect(o.preCachingCheckJob!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryStringFilter++; + if (buildCounterGoogleCloudAiplatformV1NearestNeighborQueryStringFilter < 3) { + checkUnnamed314(o.allowTokens!); + checkUnnamed315(o.denyTokens!); + unittest.expect(o.name!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail--; + buildCounterGoogleCloudAiplatformV1NearestNeighborQueryStringFilter--; } -core.List buildUnnamed308() => ['foo', 'foo']; +core.List +buildUnnamed316() => [ + buildGoogleCloudAiplatformV1NearestNeighborsNeighbor(), + buildGoogleCloudAiplatformV1NearestNeighborsNeighbor(), +]; -void checkUnnamed308(core.List o) { +void checkUnnamed316( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1NearestNeighborsNeighbor(o[0]); + checkGoogleCloudAiplatformV1NearestNeighborsNeighbor(o[1]); } -core.int -buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail = - 0; -api.GoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail -buildGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail() { - final o = - api.GoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail(); - buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail++; - if (buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail < - 3) { - o.failedJobs = buildUnnamed308(); - o.job = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1NearestNeighbors = 0; +api.GoogleCloudAiplatformV1NearestNeighbors +buildGoogleCloudAiplatformV1NearestNeighbors() { + final o = api.GoogleCloudAiplatformV1NearestNeighbors(); + buildCounterGoogleCloudAiplatformV1NearestNeighbors++; + if (buildCounterGoogleCloudAiplatformV1NearestNeighbors < 3) { + o.neighbors = buildUnnamed316(); } - buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail--; + buildCounterGoogleCloudAiplatformV1NearestNeighbors--; return o; } -void checkGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail( - api.GoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail o, +void checkGoogleCloudAiplatformV1NearestNeighbors( + api.GoogleCloudAiplatformV1NearestNeighbors o, ) { - buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail++; - if (buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail < - 3) { - checkUnnamed308(o.failedJobs!); - unittest.expect(o.job!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NearestNeighbors++; + if (buildCounterGoogleCloudAiplatformV1NearestNeighbors < 3) { + checkUnnamed316(o.neighbors!); } - buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail--; + buildCounterGoogleCloudAiplatformV1NearestNeighbors--; } -core.int buildCounterGoogleCloudAiplatformV1PipelineTemplateMetadata = 0; -api.GoogleCloudAiplatformV1PipelineTemplateMetadata -buildGoogleCloudAiplatformV1PipelineTemplateMetadata() { - final o = api.GoogleCloudAiplatformV1PipelineTemplateMetadata(); - buildCounterGoogleCloudAiplatformV1PipelineTemplateMetadata++; - if (buildCounterGoogleCloudAiplatformV1PipelineTemplateMetadata < 3) { - o.version = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1NearestNeighborsNeighbor = 0; +api.GoogleCloudAiplatformV1NearestNeighborsNeighbor +buildGoogleCloudAiplatformV1NearestNeighborsNeighbor() { + final o = api.GoogleCloudAiplatformV1NearestNeighborsNeighbor(); + buildCounterGoogleCloudAiplatformV1NearestNeighborsNeighbor++; + if (buildCounterGoogleCloudAiplatformV1NearestNeighborsNeighbor < 3) { + o.distance = 42.0; + o.entityId = 'foo'; + o.entityKeyValues = + buildGoogleCloudAiplatformV1FetchFeatureValuesResponse(); } - buildCounterGoogleCloudAiplatformV1PipelineTemplateMetadata--; + buildCounterGoogleCloudAiplatformV1NearestNeighborsNeighbor--; return o; } -void checkGoogleCloudAiplatformV1PipelineTemplateMetadata( - api.GoogleCloudAiplatformV1PipelineTemplateMetadata o, +void checkGoogleCloudAiplatformV1NearestNeighborsNeighbor( + api.GoogleCloudAiplatformV1NearestNeighborsNeighbor o, ) { - buildCounterGoogleCloudAiplatformV1PipelineTemplateMetadata++; - if (buildCounterGoogleCloudAiplatformV1PipelineTemplateMetadata < 3) { - unittest.expect(o.version!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NearestNeighborsNeighbor++; + if (buildCounterGoogleCloudAiplatformV1NearestNeighborsNeighbor < 3) { + unittest.expect(o.distance!, unittest.equals(42.0)); + unittest.expect(o.entityId!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1FetchFeatureValuesResponse(o.entityKeyValues!); } - buildCounterGoogleCloudAiplatformV1PipelineTemplateMetadata--; + buildCounterGoogleCloudAiplatformV1NearestNeighborsNeighbor--; } -core.int buildCounterGoogleCloudAiplatformV1PointwiseMetricInput = 0; -api.GoogleCloudAiplatformV1PointwiseMetricInput -buildGoogleCloudAiplatformV1PointwiseMetricInput() { - final o = api.GoogleCloudAiplatformV1PointwiseMetricInput(); - buildCounterGoogleCloudAiplatformV1PointwiseMetricInput++; - if (buildCounterGoogleCloudAiplatformV1PointwiseMetricInput < 3) { - o.instance = buildGoogleCloudAiplatformV1PointwiseMetricInstance(); - o.metricSpec = buildGoogleCloudAiplatformV1PointwiseMetricSpec(); +core.int buildCounterGoogleCloudAiplatformV1Neighbor = 0; +api.GoogleCloudAiplatformV1Neighbor buildGoogleCloudAiplatformV1Neighbor() { + final o = api.GoogleCloudAiplatformV1Neighbor(); + buildCounterGoogleCloudAiplatformV1Neighbor++; + if (buildCounterGoogleCloudAiplatformV1Neighbor < 3) { + o.neighborDistance = 42.0; + o.neighborId = 'foo'; } - buildCounterGoogleCloudAiplatformV1PointwiseMetricInput--; + buildCounterGoogleCloudAiplatformV1Neighbor--; return o; } -void checkGoogleCloudAiplatformV1PointwiseMetricInput( - api.GoogleCloudAiplatformV1PointwiseMetricInput o, +void checkGoogleCloudAiplatformV1Neighbor( + api.GoogleCloudAiplatformV1Neighbor o, ) { - buildCounterGoogleCloudAiplatformV1PointwiseMetricInput++; - if (buildCounterGoogleCloudAiplatformV1PointwiseMetricInput < 3) { - checkGoogleCloudAiplatformV1PointwiseMetricInstance(o.instance!); - checkGoogleCloudAiplatformV1PointwiseMetricSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1Neighbor++; + if (buildCounterGoogleCloudAiplatformV1Neighbor < 3) { + unittest.expect(o.neighborDistance!, unittest.equals(42.0)); + unittest.expect(o.neighborId!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PointwiseMetricInput--; + buildCounterGoogleCloudAiplatformV1Neighbor--; } -core.int buildCounterGoogleCloudAiplatformV1PointwiseMetricInstance = 0; -api.GoogleCloudAiplatformV1PointwiseMetricInstance -buildGoogleCloudAiplatformV1PointwiseMetricInstance() { - final o = api.GoogleCloudAiplatformV1PointwiseMetricInstance(); - buildCounterGoogleCloudAiplatformV1PointwiseMetricInstance++; - if (buildCounterGoogleCloudAiplatformV1PointwiseMetricInstance < 3) { - o.contentMapInstance = buildGoogleCloudAiplatformV1ContentMap(); - o.jsonInstance = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1NetworkSpec = 0; +api.GoogleCloudAiplatformV1NetworkSpec +buildGoogleCloudAiplatformV1NetworkSpec() { + final o = api.GoogleCloudAiplatformV1NetworkSpec(); + buildCounterGoogleCloudAiplatformV1NetworkSpec++; + if (buildCounterGoogleCloudAiplatformV1NetworkSpec < 3) { + o.enableInternetAccess = true; + o.network = 'foo'; + o.subnetwork = 'foo'; } - buildCounterGoogleCloudAiplatformV1PointwiseMetricInstance--; + buildCounterGoogleCloudAiplatformV1NetworkSpec--; return o; } -void checkGoogleCloudAiplatformV1PointwiseMetricInstance( - api.GoogleCloudAiplatformV1PointwiseMetricInstance o, +void checkGoogleCloudAiplatformV1NetworkSpec( + api.GoogleCloudAiplatformV1NetworkSpec o, ) { - buildCounterGoogleCloudAiplatformV1PointwiseMetricInstance++; - if (buildCounterGoogleCloudAiplatformV1PointwiseMetricInstance < 3) { - checkGoogleCloudAiplatformV1ContentMap(o.contentMapInstance!); - unittest.expect(o.jsonInstance!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NetworkSpec++; + if (buildCounterGoogleCloudAiplatformV1NetworkSpec < 3) { + unittest.expect(o.enableInternetAccess!, unittest.isTrue); + unittest.expect(o.network!, unittest.equals('foo')); + unittest.expect(o.subnetwork!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PointwiseMetricInstance--; + buildCounterGoogleCloudAiplatformV1NetworkSpec--; } -core.int buildCounterGoogleCloudAiplatformV1PointwiseMetricResult = 0; -api.GoogleCloudAiplatformV1PointwiseMetricResult -buildGoogleCloudAiplatformV1PointwiseMetricResult() { - final o = api.GoogleCloudAiplatformV1PointwiseMetricResult(); - buildCounterGoogleCloudAiplatformV1PointwiseMetricResult++; - if (buildCounterGoogleCloudAiplatformV1PointwiseMetricResult < 3) { - o.customOutput = buildGoogleCloudAiplatformV1CustomOutput(); - o.explanation = 'foo'; - o.score = 42.0; +core.int buildCounterGoogleCloudAiplatformV1NfsMount = 0; +api.GoogleCloudAiplatformV1NfsMount buildGoogleCloudAiplatformV1NfsMount() { + final o = api.GoogleCloudAiplatformV1NfsMount(); + buildCounterGoogleCloudAiplatformV1NfsMount++; + if (buildCounterGoogleCloudAiplatformV1NfsMount < 3) { + o.mountPoint = 'foo'; + o.path = 'foo'; + o.server = 'foo'; } - buildCounterGoogleCloudAiplatformV1PointwiseMetricResult--; + buildCounterGoogleCloudAiplatformV1NfsMount--; return o; } -void checkGoogleCloudAiplatformV1PointwiseMetricResult( - api.GoogleCloudAiplatformV1PointwiseMetricResult o, +void checkGoogleCloudAiplatformV1NfsMount( + api.GoogleCloudAiplatformV1NfsMount o, ) { - buildCounterGoogleCloudAiplatformV1PointwiseMetricResult++; - if (buildCounterGoogleCloudAiplatformV1PointwiseMetricResult < 3) { - checkGoogleCloudAiplatformV1CustomOutput(o.customOutput!); - unittest.expect(o.explanation!, unittest.equals('foo')); - unittest.expect(o.score!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1NfsMount++; + if (buildCounterGoogleCloudAiplatformV1NfsMount < 3) { + unittest.expect(o.mountPoint!, unittest.equals('foo')); + unittest.expect(o.path!, unittest.equals('foo')); + unittest.expect(o.server!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PointwiseMetricResult--; + buildCounterGoogleCloudAiplatformV1NfsMount--; } -core.int buildCounterGoogleCloudAiplatformV1PointwiseMetricSpec = 0; -api.GoogleCloudAiplatformV1PointwiseMetricSpec -buildGoogleCloudAiplatformV1PointwiseMetricSpec() { - final o = api.GoogleCloudAiplatformV1PointwiseMetricSpec(); - buildCounterGoogleCloudAiplatformV1PointwiseMetricSpec++; - if (buildCounterGoogleCloudAiplatformV1PointwiseMetricSpec < 3) { - o.customOutputFormatConfig = - buildGoogleCloudAiplatformV1CustomOutputFormatConfig(); - o.metricPromptTemplate = 'foo'; - o.systemInstruction = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1NotebookEucConfig = 0; +api.GoogleCloudAiplatformV1NotebookEucConfig +buildGoogleCloudAiplatformV1NotebookEucConfig() { + final o = api.GoogleCloudAiplatformV1NotebookEucConfig(); + buildCounterGoogleCloudAiplatformV1NotebookEucConfig++; + if (buildCounterGoogleCloudAiplatformV1NotebookEucConfig < 3) { + o.bypassActasCheck = true; + o.eucDisabled = true; } - buildCounterGoogleCloudAiplatformV1PointwiseMetricSpec--; + buildCounterGoogleCloudAiplatformV1NotebookEucConfig--; return o; } -void checkGoogleCloudAiplatformV1PointwiseMetricSpec( - api.GoogleCloudAiplatformV1PointwiseMetricSpec o, +void checkGoogleCloudAiplatformV1NotebookEucConfig( + api.GoogleCloudAiplatformV1NotebookEucConfig o, ) { - buildCounterGoogleCloudAiplatformV1PointwiseMetricSpec++; - if (buildCounterGoogleCloudAiplatformV1PointwiseMetricSpec < 3) { - checkGoogleCloudAiplatformV1CustomOutputFormatConfig( - o.customOutputFormatConfig!, - ); - unittest.expect(o.metricPromptTemplate!, unittest.equals('foo')); - unittest.expect(o.systemInstruction!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NotebookEucConfig++; + if (buildCounterGoogleCloudAiplatformV1NotebookEucConfig < 3) { + unittest.expect(o.bypassActasCheck!, unittest.isTrue); + unittest.expect(o.eucDisabled!, unittest.isTrue); } - buildCounterGoogleCloudAiplatformV1PointwiseMetricSpec--; + buildCounterGoogleCloudAiplatformV1NotebookEucConfig--; } -core.int buildCounterGoogleCloudAiplatformV1Port = 0; -api.GoogleCloudAiplatformV1Port buildGoogleCloudAiplatformV1Port() { - final o = api.GoogleCloudAiplatformV1Port(); - buildCounterGoogleCloudAiplatformV1Port++; - if (buildCounterGoogleCloudAiplatformV1Port < 3) { - o.containerPort = 42; +core.Map buildUnnamed317() => { + 'x': 'foo', + 'y': 'foo', +}; + +void checkUnnamed317(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1NotebookExecutionJob = 0; +api.GoogleCloudAiplatformV1NotebookExecutionJob +buildGoogleCloudAiplatformV1NotebookExecutionJob() { + final o = api.GoogleCloudAiplatformV1NotebookExecutionJob(); + buildCounterGoogleCloudAiplatformV1NotebookExecutionJob++; + if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJob < 3) { + o.createTime = 'foo'; + o.customEnvironmentSpec = + buildGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec(); + o.dataformRepositorySource = + buildGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource(); + o.directNotebookSource = + buildGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource(); + o.displayName = 'foo'; + o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.executionTimeout = 'foo'; + o.executionUser = 'foo'; + o.gcsNotebookSource = + buildGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource(); + o.gcsOutputUri = 'foo'; + o.jobState = 'foo'; + o.kernelName = 'foo'; + o.labels = buildUnnamed317(); + o.name = 'foo'; + o.notebookRuntimeTemplateResourceName = 'foo'; + o.scheduleResourceName = 'foo'; + o.serviceAccount = 'foo'; + o.status = buildGoogleRpcStatus(); + o.updateTime = 'foo'; + o.workbenchRuntime = + buildGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime(); } - buildCounterGoogleCloudAiplatformV1Port--; + buildCounterGoogleCloudAiplatformV1NotebookExecutionJob--; return o; } -void checkGoogleCloudAiplatformV1Port(api.GoogleCloudAiplatformV1Port o) { - buildCounterGoogleCloudAiplatformV1Port++; - if (buildCounterGoogleCloudAiplatformV1Port < 3) { - unittest.expect(o.containerPort!, unittest.equals(42)); +void checkGoogleCloudAiplatformV1NotebookExecutionJob( + api.GoogleCloudAiplatformV1NotebookExecutionJob o, +) { + buildCounterGoogleCloudAiplatformV1NotebookExecutionJob++; + if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJob < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec( + o.customEnvironmentSpec!, + ); + checkGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource( + o.dataformRepositorySource!, + ); + checkGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource( + o.directNotebookSource!, + ); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + unittest.expect(o.executionTimeout!, unittest.equals('foo')); + unittest.expect(o.executionUser!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource( + o.gcsNotebookSource!, + ); + unittest.expect(o.gcsOutputUri!, unittest.equals('foo')); + unittest.expect(o.jobState!, unittest.equals('foo')); + unittest.expect(o.kernelName!, unittest.equals('foo')); + checkUnnamed317(o.labels!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect( + o.notebookRuntimeTemplateResourceName!, + unittest.equals('foo'), + ); + unittest.expect(o.scheduleResourceName!, unittest.equals('foo')); + unittest.expect(o.serviceAccount!, unittest.equals('foo')); + checkGoogleRpcStatus(o.status!); + unittest.expect(o.updateTime!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime( + o.workbenchRuntime!, + ); } - buildCounterGoogleCloudAiplatformV1Port--; + buildCounterGoogleCloudAiplatformV1NotebookExecutionJob--; } -core.int buildCounterGoogleCloudAiplatformV1PostStartupScriptConfig = 0; -api.GoogleCloudAiplatformV1PostStartupScriptConfig -buildGoogleCloudAiplatformV1PostStartupScriptConfig() { - final o = api.GoogleCloudAiplatformV1PostStartupScriptConfig(); - buildCounterGoogleCloudAiplatformV1PostStartupScriptConfig++; - if (buildCounterGoogleCloudAiplatformV1PostStartupScriptConfig < 3) { - o.postStartupScript = 'foo'; - o.postStartupScriptBehavior = 'foo'; - o.postStartupScriptUrl = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec = + 0; +api.GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec +buildGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec() { + final o = + api.GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec(); + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec++; + if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec < + 3) { + o.machineSpec = buildGoogleCloudAiplatformV1MachineSpec(); + o.networkSpec = buildGoogleCloudAiplatformV1NetworkSpec(); + o.persistentDiskSpec = buildGoogleCloudAiplatformV1PersistentDiskSpec(); } - buildCounterGoogleCloudAiplatformV1PostStartupScriptConfig--; + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec--; return o; } -void checkGoogleCloudAiplatformV1PostStartupScriptConfig( - api.GoogleCloudAiplatformV1PostStartupScriptConfig o, +void checkGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec( + api.GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec o, ) { - buildCounterGoogleCloudAiplatformV1PostStartupScriptConfig++; - if (buildCounterGoogleCloudAiplatformV1PostStartupScriptConfig < 3) { - unittest.expect(o.postStartupScript!, unittest.equals('foo')); - unittest.expect(o.postStartupScriptBehavior!, unittest.equals('foo')); - unittest.expect(o.postStartupScriptUrl!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec++; + if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec < + 3) { + checkGoogleCloudAiplatformV1MachineSpec(o.machineSpec!); + checkGoogleCloudAiplatformV1NetworkSpec(o.networkSpec!); + checkGoogleCloudAiplatformV1PersistentDiskSpec(o.persistentDiskSpec!); } - buildCounterGoogleCloudAiplatformV1PostStartupScriptConfig--; + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec--; } -core.int buildCounterGoogleCloudAiplatformV1PrebuiltVoiceConfig = 0; -api.GoogleCloudAiplatformV1PrebuiltVoiceConfig -buildGoogleCloudAiplatformV1PrebuiltVoiceConfig() { - final o = api.GoogleCloudAiplatformV1PrebuiltVoiceConfig(); - buildCounterGoogleCloudAiplatformV1PrebuiltVoiceConfig++; - if (buildCounterGoogleCloudAiplatformV1PrebuiltVoiceConfig < 3) { - o.voiceName = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource = + 0; +api.GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource +buildGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource() { + final o = + api.GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource(); + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource++; + if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource < + 3) { + o.commitSha = 'foo'; + o.dataformRepositoryResourceName = 'foo'; } - buildCounterGoogleCloudAiplatformV1PrebuiltVoiceConfig--; + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource--; return o; } -void checkGoogleCloudAiplatformV1PrebuiltVoiceConfig( - api.GoogleCloudAiplatformV1PrebuiltVoiceConfig o, +void checkGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource( + api.GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource o, ) { - buildCounterGoogleCloudAiplatformV1PrebuiltVoiceConfig++; - if (buildCounterGoogleCloudAiplatformV1PrebuiltVoiceConfig < 3) { - unittest.expect(o.voiceName!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource++; + if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource < + 3) { + unittest.expect(o.commitSha!, unittest.equals('foo')); + unittest.expect(o.dataformRepositoryResourceName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PrebuiltVoiceConfig--; + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource--; } -core.int buildCounterGoogleCloudAiplatformV1PredefinedSplit = 0; -api.GoogleCloudAiplatformV1PredefinedSplit -buildGoogleCloudAiplatformV1PredefinedSplit() { - final o = api.GoogleCloudAiplatformV1PredefinedSplit(); - buildCounterGoogleCloudAiplatformV1PredefinedSplit++; - if (buildCounterGoogleCloudAiplatformV1PredefinedSplit < 3) { - o.key = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource = 0; +api.GoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource +buildGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource() { + final o = + api.GoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource(); + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource++; + if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource < + 3) { + o.content = 'foo'; } - buildCounterGoogleCloudAiplatformV1PredefinedSplit--; + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource--; return o; } -void checkGoogleCloudAiplatformV1PredefinedSplit( - api.GoogleCloudAiplatformV1PredefinedSplit o, +void checkGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource( + api.GoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource o, ) { - buildCounterGoogleCloudAiplatformV1PredefinedSplit++; - if (buildCounterGoogleCloudAiplatformV1PredefinedSplit < 3) { - unittest.expect(o.key!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource++; + if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource < + 3) { + unittest.expect(o.content!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PredefinedSplit--; -} - -core.List buildUnnamed309() => [ - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -]; - -void checkUnnamed309(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - var casted61 = (o[0]) as core.Map; - unittest.expect(casted61, unittest.hasLength(3)); - unittest.expect(casted61['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted61['bool'], unittest.equals(true)); - unittest.expect(casted61['string'], unittest.equals('foo')); - var casted62 = (o[1]) as core.Map; - unittest.expect(casted62, unittest.hasLength(3)); - unittest.expect(casted62['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted62['bool'], unittest.equals(true)); - unittest.expect(casted62['string'], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource--; } -core.int buildCounterGoogleCloudAiplatformV1PredictLongRunningRequest = 0; -api.GoogleCloudAiplatformV1PredictLongRunningRequest -buildGoogleCloudAiplatformV1PredictLongRunningRequest() { - final o = api.GoogleCloudAiplatformV1PredictLongRunningRequest(); - buildCounterGoogleCloudAiplatformV1PredictLongRunningRequest++; - if (buildCounterGoogleCloudAiplatformV1PredictLongRunningRequest < 3) { - o.instances = buildUnnamed309(); - o.parameters = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; +core.int +buildCounterGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource = 0; +api.GoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource +buildGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource() { + final o = api.GoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource(); + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource++; + if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource < + 3) { + o.generation = 'foo'; + o.uri = 'foo'; } - buildCounterGoogleCloudAiplatformV1PredictLongRunningRequest--; + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource--; return o; } -void checkGoogleCloudAiplatformV1PredictLongRunningRequest( - api.GoogleCloudAiplatformV1PredictLongRunningRequest o, +void checkGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource( + api.GoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource o, ) { - buildCounterGoogleCloudAiplatformV1PredictLongRunningRequest++; - if (buildCounterGoogleCloudAiplatformV1PredictLongRunningRequest < 3) { - checkUnnamed309(o.instances!); - var casted63 = (o.parameters!) as core.Map; - unittest.expect(casted63, unittest.hasLength(3)); - unittest.expect(casted63['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted63['bool'], unittest.equals(true)); - unittest.expect(casted63['string'], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource++; + if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource < + 3) { + unittest.expect(o.generation!, unittest.equals('foo')); + unittest.expect(o.uri!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PredictLongRunningRequest--; -} - -core.List buildUnnamed310() => [ - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -]; - -void checkUnnamed310(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - var casted64 = (o[0]) as core.Map; - unittest.expect(casted64, unittest.hasLength(3)); - unittest.expect(casted64['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted64['bool'], unittest.equals(true)); - unittest.expect(casted64['string'], unittest.equals('foo')); - var casted65 = (o[1]) as core.Map; - unittest.expect(casted65, unittest.hasLength(3)); - unittest.expect(casted65['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted65['bool'], unittest.equals(true)); - unittest.expect(casted65['string'], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource--; } -core.int buildCounterGoogleCloudAiplatformV1PredictRequest = 0; -api.GoogleCloudAiplatformV1PredictRequest -buildGoogleCloudAiplatformV1PredictRequest() { - final o = api.GoogleCloudAiplatformV1PredictRequest(); - buildCounterGoogleCloudAiplatformV1PredictRequest++; - if (buildCounterGoogleCloudAiplatformV1PredictRequest < 3) { - o.instances = buildUnnamed310(); - o.parameters = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - } - buildCounterGoogleCloudAiplatformV1PredictRequest--; +core.int +buildCounterGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime = 0; +api.GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime +buildGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime() { + final o = api.GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime(); + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime++; + if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime < + 3) {} + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime--; return o; } -void checkGoogleCloudAiplatformV1PredictRequest( - api.GoogleCloudAiplatformV1PredictRequest o, +void checkGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime( + api.GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime o, ) { - buildCounterGoogleCloudAiplatformV1PredictRequest++; - if (buildCounterGoogleCloudAiplatformV1PredictRequest < 3) { - checkUnnamed310(o.instances!); - var casted66 = (o.parameters!) as core.Map; - unittest.expect(casted66, unittest.hasLength(3)); - unittest.expect(casted66['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted66['bool'], unittest.equals(true)); - unittest.expect(casted66['string'], unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1PredictRequest--; + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime++; + if (buildCounterGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime < + 3) {} + buildCounterGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime--; } -core.int -buildCounterGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig = 0; -api.GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig -buildGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig() { - final o = api.GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig(); - buildCounterGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig++; - if (buildCounterGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig < - 3) { - o.bigqueryDestination = buildGoogleCloudAiplatformV1BigQueryDestination(); - o.enabled = true; - o.samplingRate = 42.0; +core.int buildCounterGoogleCloudAiplatformV1NotebookIdleShutdownConfig = 0; +api.GoogleCloudAiplatformV1NotebookIdleShutdownConfig +buildGoogleCloudAiplatformV1NotebookIdleShutdownConfig() { + final o = api.GoogleCloudAiplatformV1NotebookIdleShutdownConfig(); + buildCounterGoogleCloudAiplatformV1NotebookIdleShutdownConfig++; + if (buildCounterGoogleCloudAiplatformV1NotebookIdleShutdownConfig < 3) { + o.idleShutdownDisabled = true; + o.idleTimeout = 'foo'; } - buildCounterGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig--; + buildCounterGoogleCloudAiplatformV1NotebookIdleShutdownConfig--; return o; } -void checkGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig( - api.GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig o, +void checkGoogleCloudAiplatformV1NotebookIdleShutdownConfig( + api.GoogleCloudAiplatformV1NotebookIdleShutdownConfig o, ) { - buildCounterGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig++; - if (buildCounterGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig < - 3) { - checkGoogleCloudAiplatformV1BigQueryDestination(o.bigqueryDestination!); - unittest.expect(o.enabled!, unittest.isTrue); - unittest.expect(o.samplingRate!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1NotebookIdleShutdownConfig++; + if (buildCounterGoogleCloudAiplatformV1NotebookIdleShutdownConfig < 3) { + unittest.expect(o.idleShutdownDisabled!, unittest.isTrue); + unittest.expect(o.idleTimeout!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig--; + buildCounterGoogleCloudAiplatformV1NotebookIdleShutdownConfig--; } -core.List buildUnnamed311() => [ - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -]; +core.List buildUnnamed318() => ['foo', 'foo']; -void checkUnnamed311(core.List o) { +void checkUnnamed318(core.List o) { unittest.expect(o, unittest.hasLength(2)); - var casted67 = (o[0]) as core.Map; - unittest.expect(casted67, unittest.hasLength(3)); - unittest.expect(casted67['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted67['bool'], unittest.equals(true)); - unittest.expect(casted67['string'], unittest.equals('foo')); - var casted68 = (o[1]) as core.Map; - unittest.expect(casted68, unittest.hasLength(3)); - unittest.expect(casted68['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted68['bool'], unittest.equals(true)); - unittest.expect(casted68['string'], unittest.equals('foo')); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1PredictResponse = 0; -api.GoogleCloudAiplatformV1PredictResponse -buildGoogleCloudAiplatformV1PredictResponse() { - final o = api.GoogleCloudAiplatformV1PredictResponse(); - buildCounterGoogleCloudAiplatformV1PredictResponse++; - if (buildCounterGoogleCloudAiplatformV1PredictResponse < 3) { - o.deployedModelId = 'foo'; - o.metadata = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - o.model = 'foo'; - o.modelDisplayName = 'foo'; - o.modelVersionId = 'foo'; - o.predictions = buildUnnamed311(); +core.int buildCounterGoogleCloudAiplatformV1NotebookReservationAffinity = 0; +api.GoogleCloudAiplatformV1NotebookReservationAffinity +buildGoogleCloudAiplatformV1NotebookReservationAffinity() { + final o = api.GoogleCloudAiplatformV1NotebookReservationAffinity(); + buildCounterGoogleCloudAiplatformV1NotebookReservationAffinity++; + if (buildCounterGoogleCloudAiplatformV1NotebookReservationAffinity < 3) { + o.consumeReservationType = 'foo'; + o.key = 'foo'; + o.values = buildUnnamed318(); } - buildCounterGoogleCloudAiplatformV1PredictResponse--; + buildCounterGoogleCloudAiplatformV1NotebookReservationAffinity--; return o; } -void checkGoogleCloudAiplatformV1PredictResponse( - api.GoogleCloudAiplatformV1PredictResponse o, +void checkGoogleCloudAiplatformV1NotebookReservationAffinity( + api.GoogleCloudAiplatformV1NotebookReservationAffinity o, ) { - buildCounterGoogleCloudAiplatformV1PredictResponse++; - if (buildCounterGoogleCloudAiplatformV1PredictResponse < 3) { - unittest.expect(o.deployedModelId!, unittest.equals('foo')); - var casted69 = (o.metadata!) as core.Map; - unittest.expect(casted69, unittest.hasLength(3)); - unittest.expect(casted69['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted69['bool'], unittest.equals(true)); - unittest.expect(casted69['string'], unittest.equals('foo')); - unittest.expect(o.model!, unittest.equals('foo')); - unittest.expect(o.modelDisplayName!, unittest.equals('foo')); - unittest.expect(o.modelVersionId!, unittest.equals('foo')); - checkUnnamed311(o.predictions!); + buildCounterGoogleCloudAiplatformV1NotebookReservationAffinity++; + if (buildCounterGoogleCloudAiplatformV1NotebookReservationAffinity < 3) { + unittest.expect(o.consumeReservationType!, unittest.equals('foo')); + unittest.expect(o.key!, unittest.equals('foo')); + checkUnnamed318(o.values!); } - buildCounterGoogleCloudAiplatformV1PredictResponse--; + buildCounterGoogleCloudAiplatformV1NotebookReservationAffinity--; } -core.int buildCounterGoogleCloudAiplatformV1PredictSchemata = 0; -api.GoogleCloudAiplatformV1PredictSchemata -buildGoogleCloudAiplatformV1PredictSchemata() { - final o = api.GoogleCloudAiplatformV1PredictSchemata(); - buildCounterGoogleCloudAiplatformV1PredictSchemata++; - if (buildCounterGoogleCloudAiplatformV1PredictSchemata < 3) { - o.instanceSchemaUri = 'foo'; - o.parametersSchemaUri = 'foo'; - o.predictionSchemaUri = 'foo'; - } - buildCounterGoogleCloudAiplatformV1PredictSchemata--; - return o; -} +core.Map buildUnnamed319() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkGoogleCloudAiplatformV1PredictSchemata( - api.GoogleCloudAiplatformV1PredictSchemata o, -) { - buildCounterGoogleCloudAiplatformV1PredictSchemata++; - if (buildCounterGoogleCloudAiplatformV1PredictSchemata < 3) { - unittest.expect(o.instanceSchemaUri!, unittest.equals('foo')); - unittest.expect(o.parametersSchemaUri!, unittest.equals('foo')); - unittest.expect(o.predictionSchemaUri!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1PredictSchemata--; +void checkUnnamed319(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1Presets = 0; -api.GoogleCloudAiplatformV1Presets buildGoogleCloudAiplatformV1Presets() { - final o = api.GoogleCloudAiplatformV1Presets(); - buildCounterGoogleCloudAiplatformV1Presets++; - if (buildCounterGoogleCloudAiplatformV1Presets < 3) { - o.modality = 'foo'; - o.query = 'foo'; - } - buildCounterGoogleCloudAiplatformV1Presets--; - return o; -} +core.List buildUnnamed320() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1Presets(api.GoogleCloudAiplatformV1Presets o) { - buildCounterGoogleCloudAiplatformV1Presets++; - if (buildCounterGoogleCloudAiplatformV1Presets < 3) { - unittest.expect(o.modality!, unittest.equals('foo')); - unittest.expect(o.query!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1Presets--; -} - -core.int buildCounterGoogleCloudAiplatformV1PrivateEndpoints = 0; -api.GoogleCloudAiplatformV1PrivateEndpoints -buildGoogleCloudAiplatformV1PrivateEndpoints() { - final o = api.GoogleCloudAiplatformV1PrivateEndpoints(); - buildCounterGoogleCloudAiplatformV1PrivateEndpoints++; - if (buildCounterGoogleCloudAiplatformV1PrivateEndpoints < 3) { - o.explainHttpUri = 'foo'; - o.healthHttpUri = 'foo'; - o.predictHttpUri = 'foo'; - o.serviceAttachment = 'foo'; - } - buildCounterGoogleCloudAiplatformV1PrivateEndpoints--; - return o; -} - -void checkGoogleCloudAiplatformV1PrivateEndpoints( - api.GoogleCloudAiplatformV1PrivateEndpoints o, -) { - buildCounterGoogleCloudAiplatformV1PrivateEndpoints++; - if (buildCounterGoogleCloudAiplatformV1PrivateEndpoints < 3) { - unittest.expect(o.explainHttpUri!, unittest.equals('foo')); - unittest.expect(o.healthHttpUri!, unittest.equals('foo')); - unittest.expect(o.predictHttpUri!, unittest.equals('foo')); - unittest.expect(o.serviceAttachment!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1PrivateEndpoints--; -} - -core.List buildUnnamed312() => ['foo', 'foo']; - -void checkUnnamed312(core.List o) { +void checkUnnamed320(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed313() => [ - buildGoogleCloudAiplatformV1PSCAutomationConfig(), - buildGoogleCloudAiplatformV1PSCAutomationConfig(), -]; - -void checkUnnamed313( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1PSCAutomationConfig(o[0]); - checkGoogleCloudAiplatformV1PSCAutomationConfig(o[1]); -} - -core.int buildCounterGoogleCloudAiplatformV1PrivateServiceConnectConfig = 0; -api.GoogleCloudAiplatformV1PrivateServiceConnectConfig -buildGoogleCloudAiplatformV1PrivateServiceConnectConfig() { - final o = api.GoogleCloudAiplatformV1PrivateServiceConnectConfig(); - buildCounterGoogleCloudAiplatformV1PrivateServiceConnectConfig++; - if (buildCounterGoogleCloudAiplatformV1PrivateServiceConnectConfig < 3) { - o.enablePrivateServiceConnect = true; - o.projectAllowlist = buildUnnamed312(); - o.pscAutomationConfigs = buildUnnamed313(); - o.serviceAttachment = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1NotebookRuntime = 0; +api.GoogleCloudAiplatformV1NotebookRuntime +buildGoogleCloudAiplatformV1NotebookRuntime() { + final o = api.GoogleCloudAiplatformV1NotebookRuntime(); + buildCounterGoogleCloudAiplatformV1NotebookRuntime++; + if (buildCounterGoogleCloudAiplatformV1NotebookRuntime < 3) { + o.createTime = 'foo'; + o.dataPersistentDiskSpec = buildGoogleCloudAiplatformV1PersistentDiskSpec(); + o.description = 'foo'; + o.displayName = 'foo'; + o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.eucConfig = buildGoogleCloudAiplatformV1NotebookEucConfig(); + o.expirationTime = 'foo'; + o.healthState = 'foo'; + o.idleShutdownConfig = + buildGoogleCloudAiplatformV1NotebookIdleShutdownConfig(); + o.isUpgradable = true; + o.labels = buildUnnamed319(); + o.machineSpec = buildGoogleCloudAiplatformV1MachineSpec(); + o.name = 'foo'; + o.networkSpec = buildGoogleCloudAiplatformV1NetworkSpec(); + o.networkTags = buildUnnamed320(); + o.notebookRuntimeTemplateRef = + buildGoogleCloudAiplatformV1NotebookRuntimeTemplateRef(); + o.notebookRuntimeType = 'foo'; + o.proxyUri = 'foo'; + o.reservationAffinity = + buildGoogleCloudAiplatformV1NotebookReservationAffinity(); + o.runtimeState = 'foo'; + o.runtimeUser = 'foo'; + o.satisfiesPzi = true; + o.satisfiesPzs = true; + o.serviceAccount = 'foo'; + o.shieldedVmConfig = buildGoogleCloudAiplatformV1ShieldedVmConfig(); + o.softwareConfig = buildGoogleCloudAiplatformV1NotebookSoftwareConfig(); + o.updateTime = 'foo'; + o.version = 'foo'; } - buildCounterGoogleCloudAiplatformV1PrivateServiceConnectConfig--; + buildCounterGoogleCloudAiplatformV1NotebookRuntime--; return o; } -void checkGoogleCloudAiplatformV1PrivateServiceConnectConfig( - api.GoogleCloudAiplatformV1PrivateServiceConnectConfig o, +void checkGoogleCloudAiplatformV1NotebookRuntime( + api.GoogleCloudAiplatformV1NotebookRuntime o, ) { - buildCounterGoogleCloudAiplatformV1PrivateServiceConnectConfig++; - if (buildCounterGoogleCloudAiplatformV1PrivateServiceConnectConfig < 3) { - unittest.expect(o.enablePrivateServiceConnect!, unittest.isTrue); - checkUnnamed312(o.projectAllowlist!); - checkUnnamed313(o.pscAutomationConfigs!); - unittest.expect(o.serviceAttachment!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NotebookRuntime++; + if (buildCounterGoogleCloudAiplatformV1NotebookRuntime < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1PersistentDiskSpec(o.dataPersistentDiskSpec!); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + checkGoogleCloudAiplatformV1NotebookEucConfig(o.eucConfig!); + unittest.expect(o.expirationTime!, unittest.equals('foo')); + unittest.expect(o.healthState!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1NotebookIdleShutdownConfig( + o.idleShutdownConfig!, + ); + unittest.expect(o.isUpgradable!, unittest.isTrue); + checkUnnamed319(o.labels!); + checkGoogleCloudAiplatformV1MachineSpec(o.machineSpec!); + unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1NetworkSpec(o.networkSpec!); + checkUnnamed320(o.networkTags!); + checkGoogleCloudAiplatformV1NotebookRuntimeTemplateRef( + o.notebookRuntimeTemplateRef!, + ); + unittest.expect(o.notebookRuntimeType!, unittest.equals('foo')); + unittest.expect(o.proxyUri!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1NotebookReservationAffinity( + o.reservationAffinity!, + ); + unittest.expect(o.runtimeState!, unittest.equals('foo')); + unittest.expect(o.runtimeUser!, unittest.equals('foo')); + unittest.expect(o.satisfiesPzi!, unittest.isTrue); + unittest.expect(o.satisfiesPzs!, unittest.isTrue); + unittest.expect(o.serviceAccount!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ShieldedVmConfig(o.shieldedVmConfig!); + checkGoogleCloudAiplatformV1NotebookSoftwareConfig(o.softwareConfig!); + unittest.expect(o.updateTime!, unittest.equals('foo')); + unittest.expect(o.version!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PrivateServiceConnectConfig--; + buildCounterGoogleCloudAiplatformV1NotebookRuntime--; } -core.int buildCounterGoogleCloudAiplatformV1Probe = 0; -api.GoogleCloudAiplatformV1Probe buildGoogleCloudAiplatformV1Probe() { - final o = api.GoogleCloudAiplatformV1Probe(); - buildCounterGoogleCloudAiplatformV1Probe++; - if (buildCounterGoogleCloudAiplatformV1Probe < 3) { - o.exec = buildGoogleCloudAiplatformV1ProbeExecAction(); - o.failureThreshold = 42; - o.grpc = buildGoogleCloudAiplatformV1ProbeGrpcAction(); - o.httpGet = buildGoogleCloudAiplatformV1ProbeHttpGetAction(); - o.initialDelaySeconds = 42; - o.periodSeconds = 42; - o.successThreshold = 42; - o.tcpSocket = buildGoogleCloudAiplatformV1ProbeTcpSocketAction(); - o.timeoutSeconds = 42; - } - buildCounterGoogleCloudAiplatformV1Probe--; - return o; -} +core.Map buildUnnamed321() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkGoogleCloudAiplatformV1Probe(api.GoogleCloudAiplatformV1Probe o) { - buildCounterGoogleCloudAiplatformV1Probe++; - if (buildCounterGoogleCloudAiplatformV1Probe < 3) { - checkGoogleCloudAiplatformV1ProbeExecAction(o.exec!); - unittest.expect(o.failureThreshold!, unittest.equals(42)); - checkGoogleCloudAiplatformV1ProbeGrpcAction(o.grpc!); - checkGoogleCloudAiplatformV1ProbeHttpGetAction(o.httpGet!); - unittest.expect(o.initialDelaySeconds!, unittest.equals(42)); - unittest.expect(o.periodSeconds!, unittest.equals(42)); - unittest.expect(o.successThreshold!, unittest.equals(42)); - checkGoogleCloudAiplatformV1ProbeTcpSocketAction(o.tcpSocket!); - unittest.expect(o.timeoutSeconds!, unittest.equals(42)); - } - buildCounterGoogleCloudAiplatformV1Probe--; +void checkUnnamed321(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed314() => ['foo', 'foo']; +core.List buildUnnamed322() => ['foo', 'foo']; -void checkUnnamed314(core.List o) { +void checkUnnamed322(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ProbeExecAction = 0; -api.GoogleCloudAiplatformV1ProbeExecAction -buildGoogleCloudAiplatformV1ProbeExecAction() { - final o = api.GoogleCloudAiplatformV1ProbeExecAction(); - buildCounterGoogleCloudAiplatformV1ProbeExecAction++; - if (buildCounterGoogleCloudAiplatformV1ProbeExecAction < 3) { - o.command = buildUnnamed314(); +core.int buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplate = 0; +api.GoogleCloudAiplatformV1NotebookRuntimeTemplate +buildGoogleCloudAiplatformV1NotebookRuntimeTemplate() { + final o = api.GoogleCloudAiplatformV1NotebookRuntimeTemplate(); + buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplate++; + if (buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplate < 3) { + o.createTime = 'foo'; + o.dataPersistentDiskSpec = buildGoogleCloudAiplatformV1PersistentDiskSpec(); + o.description = 'foo'; + o.displayName = 'foo'; + o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.etag = 'foo'; + o.eucConfig = buildGoogleCloudAiplatformV1NotebookEucConfig(); + o.idleShutdownConfig = + buildGoogleCloudAiplatformV1NotebookIdleShutdownConfig(); + o.isDefault = true; + o.labels = buildUnnamed321(); + o.machineSpec = buildGoogleCloudAiplatformV1MachineSpec(); + o.name = 'foo'; + o.networkSpec = buildGoogleCloudAiplatformV1NetworkSpec(); + o.networkTags = buildUnnamed322(); + o.notebookRuntimeType = 'foo'; + o.reservationAffinity = + buildGoogleCloudAiplatformV1NotebookReservationAffinity(); + o.serviceAccount = 'foo'; + o.shieldedVmConfig = buildGoogleCloudAiplatformV1ShieldedVmConfig(); + o.softwareConfig = buildGoogleCloudAiplatformV1NotebookSoftwareConfig(); + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1ProbeExecAction--; + buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplate--; return o; } -void checkGoogleCloudAiplatformV1ProbeExecAction( - api.GoogleCloudAiplatformV1ProbeExecAction o, +void checkGoogleCloudAiplatformV1NotebookRuntimeTemplate( + api.GoogleCloudAiplatformV1NotebookRuntimeTemplate o, ) { - buildCounterGoogleCloudAiplatformV1ProbeExecAction++; - if (buildCounterGoogleCloudAiplatformV1ProbeExecAction < 3) { - checkUnnamed314(o.command!); + buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplate++; + if (buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplate < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1PersistentDiskSpec(o.dataPersistentDiskSpec!); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + unittest.expect(o.etag!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1NotebookEucConfig(o.eucConfig!); + checkGoogleCloudAiplatformV1NotebookIdleShutdownConfig( + o.idleShutdownConfig!, + ); + unittest.expect(o.isDefault!, unittest.isTrue); + checkUnnamed321(o.labels!); + checkGoogleCloudAiplatformV1MachineSpec(o.machineSpec!); + unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1NetworkSpec(o.networkSpec!); + checkUnnamed322(o.networkTags!); + unittest.expect(o.notebookRuntimeType!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1NotebookReservationAffinity( + o.reservationAffinity!, + ); + unittest.expect(o.serviceAccount!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ShieldedVmConfig(o.shieldedVmConfig!); + checkGoogleCloudAiplatformV1NotebookSoftwareConfig(o.softwareConfig!); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ProbeExecAction--; + buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplate--; } -core.int buildCounterGoogleCloudAiplatformV1ProbeGrpcAction = 0; -api.GoogleCloudAiplatformV1ProbeGrpcAction -buildGoogleCloudAiplatformV1ProbeGrpcAction() { - final o = api.GoogleCloudAiplatformV1ProbeGrpcAction(); - buildCounterGoogleCloudAiplatformV1ProbeGrpcAction++; - if (buildCounterGoogleCloudAiplatformV1ProbeGrpcAction < 3) { - o.port = 42; - o.service = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplateRef = 0; +api.GoogleCloudAiplatformV1NotebookRuntimeTemplateRef +buildGoogleCloudAiplatformV1NotebookRuntimeTemplateRef() { + final o = api.GoogleCloudAiplatformV1NotebookRuntimeTemplateRef(); + buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplateRef++; + if (buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplateRef < 3) { + o.notebookRuntimeTemplate = 'foo'; } - buildCounterGoogleCloudAiplatformV1ProbeGrpcAction--; + buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplateRef--; return o; } -void checkGoogleCloudAiplatformV1ProbeGrpcAction( - api.GoogleCloudAiplatformV1ProbeGrpcAction o, +void checkGoogleCloudAiplatformV1NotebookRuntimeTemplateRef( + api.GoogleCloudAiplatformV1NotebookRuntimeTemplateRef o, ) { - buildCounterGoogleCloudAiplatformV1ProbeGrpcAction++; - if (buildCounterGoogleCloudAiplatformV1ProbeGrpcAction < 3) { - unittest.expect(o.port!, unittest.equals(42)); - unittest.expect(o.service!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplateRef++; + if (buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplateRef < 3) { + unittest.expect(o.notebookRuntimeTemplate!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ProbeGrpcAction--; + buildCounterGoogleCloudAiplatformV1NotebookRuntimeTemplateRef--; } -core.List buildUnnamed315() => [ - buildGoogleCloudAiplatformV1ProbeHttpHeader(), - buildGoogleCloudAiplatformV1ProbeHttpHeader(), +core.List buildUnnamed323() => [ + buildGoogleCloudAiplatformV1EnvVar(), + buildGoogleCloudAiplatformV1EnvVar(), ]; -void checkUnnamed315(core.List o) { +void checkUnnamed323(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ProbeHttpHeader(o[0]); - checkGoogleCloudAiplatformV1ProbeHttpHeader(o[1]); + checkGoogleCloudAiplatformV1EnvVar(o[0]); + checkGoogleCloudAiplatformV1EnvVar(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ProbeHttpGetAction = 0; -api.GoogleCloudAiplatformV1ProbeHttpGetAction -buildGoogleCloudAiplatformV1ProbeHttpGetAction() { - final o = api.GoogleCloudAiplatformV1ProbeHttpGetAction(); - buildCounterGoogleCloudAiplatformV1ProbeHttpGetAction++; - if (buildCounterGoogleCloudAiplatformV1ProbeHttpGetAction < 3) { - o.host = 'foo'; - o.httpHeaders = buildUnnamed315(); - o.path = 'foo'; - o.port = 42; - o.scheme = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1NotebookSoftwareConfig = 0; +api.GoogleCloudAiplatformV1NotebookSoftwareConfig +buildGoogleCloudAiplatformV1NotebookSoftwareConfig() { + final o = api.GoogleCloudAiplatformV1NotebookSoftwareConfig(); + buildCounterGoogleCloudAiplatformV1NotebookSoftwareConfig++; + if (buildCounterGoogleCloudAiplatformV1NotebookSoftwareConfig < 3) { + o.colabImage = buildGoogleCloudAiplatformV1ColabImage(); + o.env = buildUnnamed323(); + o.postStartupScriptConfig = + buildGoogleCloudAiplatformV1PostStartupScriptConfig(); } - buildCounterGoogleCloudAiplatformV1ProbeHttpGetAction--; + buildCounterGoogleCloudAiplatformV1NotebookSoftwareConfig--; return o; } -void checkGoogleCloudAiplatformV1ProbeHttpGetAction( - api.GoogleCloudAiplatformV1ProbeHttpGetAction o, +void checkGoogleCloudAiplatformV1NotebookSoftwareConfig( + api.GoogleCloudAiplatformV1NotebookSoftwareConfig o, ) { - buildCounterGoogleCloudAiplatformV1ProbeHttpGetAction++; - if (buildCounterGoogleCloudAiplatformV1ProbeHttpGetAction < 3) { - unittest.expect(o.host!, unittest.equals('foo')); - checkUnnamed315(o.httpHeaders!); - unittest.expect(o.path!, unittest.equals('foo')); - unittest.expect(o.port!, unittest.equals(42)); - unittest.expect(o.scheme!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1NotebookSoftwareConfig++; + if (buildCounterGoogleCloudAiplatformV1NotebookSoftwareConfig < 3) { + checkGoogleCloudAiplatformV1ColabImage(o.colabImage!); + checkUnnamed323(o.env!); + checkGoogleCloudAiplatformV1PostStartupScriptConfig( + o.postStartupScriptConfig!, + ); } - buildCounterGoogleCloudAiplatformV1ProbeHttpGetAction--; + buildCounterGoogleCloudAiplatformV1NotebookSoftwareConfig--; } -core.int buildCounterGoogleCloudAiplatformV1ProbeHttpHeader = 0; -api.GoogleCloudAiplatformV1ProbeHttpHeader -buildGoogleCloudAiplatformV1ProbeHttpHeader() { - final o = api.GoogleCloudAiplatformV1ProbeHttpHeader(); - buildCounterGoogleCloudAiplatformV1ProbeHttpHeader++; - if (buildCounterGoogleCloudAiplatformV1ProbeHttpHeader < 3) { - o.name = 'foo'; - o.value = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1OutputConfig = 0; +api.GoogleCloudAiplatformV1OutputConfig +buildGoogleCloudAiplatformV1OutputConfig() { + final o = api.GoogleCloudAiplatformV1OutputConfig(); + buildCounterGoogleCloudAiplatformV1OutputConfig++; + if (buildCounterGoogleCloudAiplatformV1OutputConfig < 3) { + o.gcsDestination = buildGoogleCloudAiplatformV1GcsDestination(); } - buildCounterGoogleCloudAiplatformV1ProbeHttpHeader--; + buildCounterGoogleCloudAiplatformV1OutputConfig--; return o; } -void checkGoogleCloudAiplatformV1ProbeHttpHeader( - api.GoogleCloudAiplatformV1ProbeHttpHeader o, +void checkGoogleCloudAiplatformV1OutputConfig( + api.GoogleCloudAiplatformV1OutputConfig o, ) { - buildCounterGoogleCloudAiplatformV1ProbeHttpHeader++; - if (buildCounterGoogleCloudAiplatformV1ProbeHttpHeader < 3) { - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.value!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1OutputConfig++; + if (buildCounterGoogleCloudAiplatformV1OutputConfig < 3) { + checkGoogleCloudAiplatformV1GcsDestination(o.gcsDestination!); } - buildCounterGoogleCloudAiplatformV1ProbeHttpHeader--; + buildCounterGoogleCloudAiplatformV1OutputConfig--; } -core.int buildCounterGoogleCloudAiplatformV1ProbeTcpSocketAction = 0; -api.GoogleCloudAiplatformV1ProbeTcpSocketAction -buildGoogleCloudAiplatformV1ProbeTcpSocketAction() { - final o = api.GoogleCloudAiplatformV1ProbeTcpSocketAction(); - buildCounterGoogleCloudAiplatformV1ProbeTcpSocketAction++; - if (buildCounterGoogleCloudAiplatformV1ProbeTcpSocketAction < 3) { - o.host = 'foo'; - o.port = 42; +core.int buildCounterGoogleCloudAiplatformV1OutputFieldSpec = 0; +api.GoogleCloudAiplatformV1OutputFieldSpec +buildGoogleCloudAiplatformV1OutputFieldSpec() { + final o = api.GoogleCloudAiplatformV1OutputFieldSpec(); + buildCounterGoogleCloudAiplatformV1OutputFieldSpec++; + if (buildCounterGoogleCloudAiplatformV1OutputFieldSpec < 3) { + o.fieldName = 'foo'; + o.fieldType = 'foo'; + o.guidance = 'foo'; } - buildCounterGoogleCloudAiplatformV1ProbeTcpSocketAction--; + buildCounterGoogleCloudAiplatformV1OutputFieldSpec--; return o; } -void checkGoogleCloudAiplatformV1ProbeTcpSocketAction( - api.GoogleCloudAiplatformV1ProbeTcpSocketAction o, +void checkGoogleCloudAiplatformV1OutputFieldSpec( + api.GoogleCloudAiplatformV1OutputFieldSpec o, ) { - buildCounterGoogleCloudAiplatformV1ProbeTcpSocketAction++; - if (buildCounterGoogleCloudAiplatformV1ProbeTcpSocketAction < 3) { - unittest.expect(o.host!, unittest.equals('foo')); - unittest.expect(o.port!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1OutputFieldSpec++; + if (buildCounterGoogleCloudAiplatformV1OutputFieldSpec < 3) { + unittest.expect(o.fieldName!, unittest.equals('foo')); + unittest.expect(o.fieldType!, unittest.equals('foo')); + unittest.expect(o.guidance!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ProbeTcpSocketAction--; + buildCounterGoogleCloudAiplatformV1OutputFieldSpec--; } -core.int buildCounterGoogleCloudAiplatformV1PscAutomatedEndpoints = 0; -api.GoogleCloudAiplatformV1PscAutomatedEndpoints -buildGoogleCloudAiplatformV1PscAutomatedEndpoints() { - final o = api.GoogleCloudAiplatformV1PscAutomatedEndpoints(); - buildCounterGoogleCloudAiplatformV1PscAutomatedEndpoints++; - if (buildCounterGoogleCloudAiplatformV1PscAutomatedEndpoints < 3) { - o.matchAddress = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1PSCAutomationConfig = 0; +api.GoogleCloudAiplatformV1PSCAutomationConfig +buildGoogleCloudAiplatformV1PSCAutomationConfig() { + final o = api.GoogleCloudAiplatformV1PSCAutomationConfig(); + buildCounterGoogleCloudAiplatformV1PSCAutomationConfig++; + if (buildCounterGoogleCloudAiplatformV1PSCAutomationConfig < 3) { + o.errorMessage = 'foo'; + o.forwardingRule = 'foo'; + o.ipAddress = 'foo'; o.network = 'foo'; o.projectId = 'foo'; + o.state = 'foo'; } - buildCounterGoogleCloudAiplatformV1PscAutomatedEndpoints--; + buildCounterGoogleCloudAiplatformV1PSCAutomationConfig--; return o; } -void checkGoogleCloudAiplatformV1PscAutomatedEndpoints( - api.GoogleCloudAiplatformV1PscAutomatedEndpoints o, +void checkGoogleCloudAiplatformV1PSCAutomationConfig( + api.GoogleCloudAiplatformV1PSCAutomationConfig o, ) { - buildCounterGoogleCloudAiplatformV1PscAutomatedEndpoints++; - if (buildCounterGoogleCloudAiplatformV1PscAutomatedEndpoints < 3) { - unittest.expect(o.matchAddress!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1PSCAutomationConfig++; + if (buildCounterGoogleCloudAiplatformV1PSCAutomationConfig < 3) { + unittest.expect(o.errorMessage!, unittest.equals('foo')); + unittest.expect(o.forwardingRule!, unittest.equals('foo')); + unittest.expect(o.ipAddress!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); unittest.expect(o.projectId!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PscAutomatedEndpoints--; -} - -core.List buildUnnamed316() => [ - buildGoogleCloudAiplatformV1DnsPeeringConfig(), - buildGoogleCloudAiplatformV1DnsPeeringConfig(), -]; - -void checkUnnamed316(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1DnsPeeringConfig(o[0]); - checkGoogleCloudAiplatformV1DnsPeeringConfig(o[1]); + buildCounterGoogleCloudAiplatformV1PSCAutomationConfig--; } -core.int buildCounterGoogleCloudAiplatformV1PscInterfaceConfig = 0; -api.GoogleCloudAiplatformV1PscInterfaceConfig -buildGoogleCloudAiplatformV1PscInterfaceConfig() { - final o = api.GoogleCloudAiplatformV1PscInterfaceConfig(); - buildCounterGoogleCloudAiplatformV1PscInterfaceConfig++; - if (buildCounterGoogleCloudAiplatformV1PscInterfaceConfig < 3) { - o.dnsPeeringConfigs = buildUnnamed316(); - o.networkAttachment = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1PairwiseMetricInput = 0; +api.GoogleCloudAiplatformV1PairwiseMetricInput +buildGoogleCloudAiplatformV1PairwiseMetricInput() { + final o = api.GoogleCloudAiplatformV1PairwiseMetricInput(); + buildCounterGoogleCloudAiplatformV1PairwiseMetricInput++; + if (buildCounterGoogleCloudAiplatformV1PairwiseMetricInput < 3) { + o.instance = buildGoogleCloudAiplatformV1PairwiseMetricInstance(); + o.metricSpec = buildGoogleCloudAiplatformV1PairwiseMetricSpec(); } - buildCounterGoogleCloudAiplatformV1PscInterfaceConfig--; + buildCounterGoogleCloudAiplatformV1PairwiseMetricInput--; return o; } -void checkGoogleCloudAiplatformV1PscInterfaceConfig( - api.GoogleCloudAiplatformV1PscInterfaceConfig o, +void checkGoogleCloudAiplatformV1PairwiseMetricInput( + api.GoogleCloudAiplatformV1PairwiseMetricInput o, ) { - buildCounterGoogleCloudAiplatformV1PscInterfaceConfig++; - if (buildCounterGoogleCloudAiplatformV1PscInterfaceConfig < 3) { - checkUnnamed316(o.dnsPeeringConfigs!); - unittest.expect(o.networkAttachment!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1PairwiseMetricInput++; + if (buildCounterGoogleCloudAiplatformV1PairwiseMetricInput < 3) { + checkGoogleCloudAiplatformV1PairwiseMetricInstance(o.instance!); + checkGoogleCloudAiplatformV1PairwiseMetricSpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1PscInterfaceConfig--; + buildCounterGoogleCloudAiplatformV1PairwiseMetricInput--; } -core.List buildUnnamed317() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1PairwiseMetricInstance = 0; +api.GoogleCloudAiplatformV1PairwiseMetricInstance +buildGoogleCloudAiplatformV1PairwiseMetricInstance() { + final o = api.GoogleCloudAiplatformV1PairwiseMetricInstance(); + buildCounterGoogleCloudAiplatformV1PairwiseMetricInstance++; + if (buildCounterGoogleCloudAiplatformV1PairwiseMetricInstance < 3) { + o.contentMapInstance = buildGoogleCloudAiplatformV1ContentMap(); + o.jsonInstance = 'foo'; + } + buildCounterGoogleCloudAiplatformV1PairwiseMetricInstance--; + return o; +} -void checkUnnamed317(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1PairwiseMetricInstance( + api.GoogleCloudAiplatformV1PairwiseMetricInstance o, +) { + buildCounterGoogleCloudAiplatformV1PairwiseMetricInstance++; + if (buildCounterGoogleCloudAiplatformV1PairwiseMetricInstance < 3) { + checkGoogleCloudAiplatformV1ContentMap(o.contentMapInstance!); + unittest.expect(o.jsonInstance!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1PairwiseMetricInstance--; } -core.int buildCounterGoogleCloudAiplatformV1PublisherModel = 0; -api.GoogleCloudAiplatformV1PublisherModel -buildGoogleCloudAiplatformV1PublisherModel() { - final o = api.GoogleCloudAiplatformV1PublisherModel(); - buildCounterGoogleCloudAiplatformV1PublisherModel++; - if (buildCounterGoogleCloudAiplatformV1PublisherModel < 3) { - o.frameworks = buildUnnamed317(); - o.launchStage = 'foo'; - o.name = 'foo'; - o.openSourceCategory = 'foo'; - o.predictSchemata = buildGoogleCloudAiplatformV1PredictSchemata(); - o.publisherModelTemplate = 'foo'; - o.supportedActions = - buildGoogleCloudAiplatformV1PublisherModelCallToAction(); - o.versionId = 'foo'; - o.versionState = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1PairwiseMetricResult = 0; +api.GoogleCloudAiplatformV1PairwiseMetricResult +buildGoogleCloudAiplatformV1PairwiseMetricResult() { + final o = api.GoogleCloudAiplatformV1PairwiseMetricResult(); + buildCounterGoogleCloudAiplatformV1PairwiseMetricResult++; + if (buildCounterGoogleCloudAiplatformV1PairwiseMetricResult < 3) { + o.customOutput = buildGoogleCloudAiplatformV1CustomOutput(); + o.explanation = 'foo'; + o.pairwiseChoice = 'foo'; } - buildCounterGoogleCloudAiplatformV1PublisherModel--; + buildCounterGoogleCloudAiplatformV1PairwiseMetricResult--; return o; } -void checkGoogleCloudAiplatformV1PublisherModel( - api.GoogleCloudAiplatformV1PublisherModel o, +void checkGoogleCloudAiplatformV1PairwiseMetricResult( + api.GoogleCloudAiplatformV1PairwiseMetricResult o, ) { - buildCounterGoogleCloudAiplatformV1PublisherModel++; - if (buildCounterGoogleCloudAiplatformV1PublisherModel < 3) { - checkUnnamed317(o.frameworks!); - unittest.expect(o.launchStage!, unittest.equals('foo')); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.openSourceCategory!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1PredictSchemata(o.predictSchemata!); - unittest.expect(o.publisherModelTemplate!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1PublisherModelCallToAction(o.supportedActions!); - unittest.expect(o.versionId!, unittest.equals('foo')); - unittest.expect(o.versionState!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1PairwiseMetricResult++; + if (buildCounterGoogleCloudAiplatformV1PairwiseMetricResult < 3) { + checkGoogleCloudAiplatformV1CustomOutput(o.customOutput!); + unittest.expect(o.explanation!, unittest.equals('foo')); + unittest.expect(o.pairwiseChoice!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PublisherModel--; + buildCounterGoogleCloudAiplatformV1PairwiseMetricResult--; } -core.int buildCounterGoogleCloudAiplatformV1PublisherModelCallToAction = 0; -api.GoogleCloudAiplatformV1PublisherModelCallToAction -buildGoogleCloudAiplatformV1PublisherModelCallToAction() { - final o = api.GoogleCloudAiplatformV1PublisherModelCallToAction(); - buildCounterGoogleCloudAiplatformV1PublisherModelCallToAction++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToAction < 3) { - o.createApplication = - buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); - o.deploy = buildGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(); - o.deployGke = - buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke(); - o.multiDeployVertex = - buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex(); - o.openEvaluationPipeline = - buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); - o.openFineTuningPipeline = - buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); - o.openFineTuningPipelines = - buildGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines(); - o.openGenerationAiStudio = - buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); - o.openGenie = - buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); - o.openNotebook = - buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); - o.openNotebooks = - buildGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks(); - o.openPromptTuningPipeline = - buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); - o.requestAccess = - buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); - o.viewRestApi = - buildGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi(); +core.int buildCounterGoogleCloudAiplatformV1PairwiseMetricSpec = 0; +api.GoogleCloudAiplatformV1PairwiseMetricSpec +buildGoogleCloudAiplatformV1PairwiseMetricSpec() { + final o = api.GoogleCloudAiplatformV1PairwiseMetricSpec(); + buildCounterGoogleCloudAiplatformV1PairwiseMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1PairwiseMetricSpec < 3) { + o.baselineResponseFieldName = 'foo'; + o.candidateResponseFieldName = 'foo'; + o.customOutputFormatConfig = + buildGoogleCloudAiplatformV1CustomOutputFormatConfig(); + o.metricPromptTemplate = 'foo'; + o.systemInstruction = 'foo'; } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToAction--; + buildCounterGoogleCloudAiplatformV1PairwiseMetricSpec--; return o; } -void checkGoogleCloudAiplatformV1PublisherModelCallToAction( - api.GoogleCloudAiplatformV1PublisherModelCallToAction o, +void checkGoogleCloudAiplatformV1PairwiseMetricSpec( + api.GoogleCloudAiplatformV1PairwiseMetricSpec o, ) { - buildCounterGoogleCloudAiplatformV1PublisherModelCallToAction++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToAction < 3) { - checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( - o.createApplication!, - ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(o.deploy!); - checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke( - o.deployGke!, - ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex( - o.multiDeployVertex!, - ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( - o.openEvaluationPipeline!, - ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( - o.openFineTuningPipeline!, - ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines( - o.openFineTuningPipelines!, - ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( - o.openGenerationAiStudio!, - ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( - o.openGenie!, - ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( - o.openNotebook!, - ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks( - o.openNotebooks!, - ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( - o.openPromptTuningPipeline!, - ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( - o.requestAccess!, - ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi( - o.viewRestApi!, + buildCounterGoogleCloudAiplatformV1PairwiseMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1PairwiseMetricSpec < 3) { + unittest.expect(o.baselineResponseFieldName!, unittest.equals('foo')); + unittest.expect(o.candidateResponseFieldName!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1CustomOutputFormatConfig( + o.customOutputFormatConfig!, ); + unittest.expect(o.metricPromptTemplate!, unittest.equals('foo')); + unittest.expect(o.systemInstruction!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToAction--; + buildCounterGoogleCloudAiplatformV1PairwiseMetricSpec--; } -core.int buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeploy = - 0; -api.GoogleCloudAiplatformV1PublisherModelCallToActionDeploy -buildGoogleCloudAiplatformV1PublisherModelCallToActionDeploy() { - final o = api.GoogleCloudAiplatformV1PublisherModelCallToActionDeploy(); - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeploy++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeploy < 3) { - o.artifactUri = 'foo'; - o.automaticResources = buildGoogleCloudAiplatformV1AutomaticResources(); - o.containerSpec = buildGoogleCloudAiplatformV1ModelContainerSpec(); - o.dedicatedResources = buildGoogleCloudAiplatformV1DedicatedResources(); - o.deployMetadata = - buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata(); - o.deployTaskName = 'foo'; - o.largeModelReference = buildGoogleCloudAiplatformV1LargeModelReference(); - o.modelDisplayName = 'foo'; - o.publicArtifactUri = 'foo'; - o.sharedResources = 'foo'; - o.title = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput = 0; +api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput +buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput() { + final o = api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput(); + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput++; + if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput < + 3) { + o.instance = + buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance(); + o.metricSpec = + buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec(); } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeploy--; + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput--; return o; } -void checkGoogleCloudAiplatformV1PublisherModelCallToActionDeploy( - api.GoogleCloudAiplatformV1PublisherModelCallToActionDeploy o, +void checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput( + api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput o, ) { - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeploy++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeploy < 3) { - unittest.expect(o.artifactUri!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1AutomaticResources(o.automaticResources!); - checkGoogleCloudAiplatformV1ModelContainerSpec(o.containerSpec!); - checkGoogleCloudAiplatformV1DedicatedResources(o.dedicatedResources!); - checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata( - o.deployMetadata!, + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput++; + if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput < + 3) { + checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance( + o.instance!, + ); + checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec( + o.metricSpec!, ); - unittest.expect(o.deployTaskName!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1LargeModelReference(o.largeModelReference!); - unittest.expect(o.modelDisplayName!, unittest.equals('foo')); - unittest.expect(o.publicArtifactUri!, unittest.equals('foo')); - unittest.expect(o.sharedResources!, unittest.equals('foo')); - unittest.expect(o.title!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeploy--; -} - -core.Map buildUnnamed318() => { - 'x': 'foo', - 'y': 'foo', -}; - -void checkUnnamed318(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput--; } core.int -buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata = - 0; -api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata -buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata() { +buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance = 0; +api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance +buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance() { final o = - api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata(); - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata < + api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance(); + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance++; + if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance < 3) { - o.labels = buildUnnamed318(); - o.sampleRequest = 'foo'; + o.baselinePrediction = 'foo'; + o.context = 'foo'; + o.instruction = 'foo'; + o.prediction = 'foo'; + o.reference = 'foo'; } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata--; + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance--; return o; } -void checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata( - api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata o, +void checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance( + api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance o, ) { - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata < + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance++; + if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance < 3) { - checkUnnamed318(o.labels!); - unittest.expect(o.sampleRequest!, unittest.equals('foo')); + unittest.expect(o.baselinePrediction!, unittest.equals('foo')); + unittest.expect(o.context!, unittest.equals('foo')); + unittest.expect(o.instruction!, unittest.equals('foo')); + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata--; -} - -core.List buildUnnamed319() => ['foo', 'foo']; - -void checkUnnamed319(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance--; } core.int -buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke = 0; -api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke -buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke() { - final o = api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke(); - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke < +buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult = 0; +api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult +buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult() { + final o = api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult(); + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult++; + if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult < 3) { - o.gkeYamlConfigs = buildUnnamed319(); + o.confidence = 42.0; + o.explanation = 'foo'; + o.pairwiseChoice = 'foo'; } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke--; + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult--; return o; } -void checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke( - api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke o, +void checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult( + api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult o, ) { - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke < + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult++; + if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult < 3) { - checkUnnamed319(o.gkeYamlConfigs!); + unittest.expect(o.confidence!, unittest.equals(42.0)); + unittest.expect(o.explanation!, unittest.equals('foo')); + unittest.expect(o.pairwiseChoice!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke--; -} - -core.List -buildUnnamed320() => [ - buildGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(), - buildGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(), -]; - -void checkUnnamed320( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(o[0]); - checkGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(o[1]); + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult--; } core.int -buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex = 0; -api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex -buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex() { - final o = api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex(); - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex < +buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec = 0; +api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec +buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec() { + final o = api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec(); + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec++; + if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec < 3) { - o.multiDeployVertex = buildUnnamed320(); + o.useReference = true; + o.version = 42; } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex--; + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec--; return o; } -void checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex( - api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex o, +void checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec( + api.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec o, ) { - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex < + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec++; + if (buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec < 3) { - checkUnnamed320(o.multiDeployVertex!); + unittest.expect(o.useReference!, unittest.isTrue); + unittest.expect(o.version!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex--; -} - -core.List< - api.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences -> -buildUnnamed321() => [ - buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(), - buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(), -]; - -void checkUnnamed321( - core.List< - api.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences - > - o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( - o[0], - ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( - o[1], - ); + buildCounterGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec--; } -core.int -buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines = +core.int buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInput = 0; -api.GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines -buildGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines() { - final o = - api.GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines(); - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines < +api.GoogleCloudAiplatformV1PairwiseSummarizationQualityInput +buildGoogleCloudAiplatformV1PairwiseSummarizationQualityInput() { + final o = api.GoogleCloudAiplatformV1PairwiseSummarizationQualityInput(); + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInput++; + if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInput < 3) { - o.fineTuningPipelines = buildUnnamed321(); + o.instance = + buildGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance(); + o.metricSpec = + buildGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec(); } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines--; + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInput--; return o; } -void -checkGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines( - api.GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines - o, +void checkGoogleCloudAiplatformV1PairwiseSummarizationQualityInput( + api.GoogleCloudAiplatformV1PairwiseSummarizationQualityInput o, ) { - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines < + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInput++; + if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInput < 3) { - checkUnnamed321(o.fineTuningPipelines!); + checkGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance( + o.instance!, + ); + checkGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines--; -} - -core.List< - api.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences -> -buildUnnamed322() => [ - buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(), - buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(), -]; - -void checkUnnamed322( - core.List< - api.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences - > - o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( - o[0], - ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( - o[1], - ); + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInput--; } core.int -buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks = 0; -api.GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks -buildGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks() { - final o = - api.GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks(); - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks < +buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance = 0; +api.GoogleCloudAiplatformV1PairwiseSummarizationQualityInstance +buildGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance() { + final o = api.GoogleCloudAiplatformV1PairwiseSummarizationQualityInstance(); + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance++; + if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance < 3) { - o.notebooks = buildUnnamed322(); + o.baselinePrediction = 'foo'; + o.context = 'foo'; + o.instruction = 'foo'; + o.prediction = 'foo'; + o.reference = 'foo'; } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks--; + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance--; return o; } -void checkGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks( - api.GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks o, +void checkGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance( + api.GoogleCloudAiplatformV1PairwiseSummarizationQualityInstance o, ) { - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks < + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance++; + if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance < 3) { - checkUnnamed322(o.notebooks!); + unittest.expect(o.baselinePrediction!, unittest.equals('foo')); + unittest.expect(o.context!, unittest.equals('foo')); + unittest.expect(o.instruction!, unittest.equals('foo')); + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks--; -} - -core.Map< - core.String, - api.GoogleCloudAiplatformV1PublisherModelResourceReference -> -buildUnnamed323() => { - 'x': buildGoogleCloudAiplatformV1PublisherModelResourceReference(), - 'y': buildGoogleCloudAiplatformV1PublisherModelResourceReference(), -}; - -void checkUnnamed323( - core.Map< - core.String, - api.GoogleCloudAiplatformV1PublisherModelResourceReference - > - o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1PublisherModelResourceReference(o['x']!); - checkGoogleCloudAiplatformV1PublisherModelResourceReference(o['y']!); + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance--; } -core.int -buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences = +core.int buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityResult = 0; -api.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences -buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences() { - final o = - api.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences < +api.GoogleCloudAiplatformV1PairwiseSummarizationQualityResult +buildGoogleCloudAiplatformV1PairwiseSummarizationQualityResult() { + final o = api.GoogleCloudAiplatformV1PairwiseSummarizationQualityResult(); + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityResult++; + if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityResult < 3) { - o.colabNotebookDisabled = true; - o.references = buildUnnamed323(); - o.resourceDescription = 'foo'; - o.resourceTitle = 'foo'; - o.resourceUseCase = 'foo'; - o.supportsWorkbench = true; - o.title = 'foo'; + o.confidence = 42.0; + o.explanation = 'foo'; + o.pairwiseChoice = 'foo'; } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences--; + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityResult--; return o; } -void -checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( - api.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences - o, +void checkGoogleCloudAiplatformV1PairwiseSummarizationQualityResult( + api.GoogleCloudAiplatformV1PairwiseSummarizationQualityResult o, ) { - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences < + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityResult++; + if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityResult < 3) { - unittest.expect(o.colabNotebookDisabled!, unittest.isTrue); - checkUnnamed323(o.references!); - unittest.expect(o.resourceDescription!, unittest.equals('foo')); - unittest.expect(o.resourceTitle!, unittest.equals('foo')); - unittest.expect(o.resourceUseCase!, unittest.equals('foo')); - unittest.expect(o.supportsWorkbench!, unittest.isTrue); - unittest.expect(o.title!, unittest.equals('foo')); + unittest.expect(o.confidence!, unittest.equals(42.0)); + unittest.expect(o.explanation!, unittest.equals('foo')); + unittest.expect(o.pairwiseChoice!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences--; -} - -core.List -buildUnnamed324() => [ - buildGoogleCloudAiplatformV1PublisherModelDocumentation(), - buildGoogleCloudAiplatformV1PublisherModelDocumentation(), -]; - -void checkUnnamed324( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1PublisherModelDocumentation(o[0]); - checkGoogleCloudAiplatformV1PublisherModelDocumentation(o[1]); + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualityResult--; } -core.int -buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi = 0; -api.GoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi -buildGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi() { - final o = api.GoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi(); - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi < - 3) { - o.documentations = buildUnnamed324(); - o.title = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec = + 0; +api.GoogleCloudAiplatformV1PairwiseSummarizationQualitySpec +buildGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec() { + final o = api.GoogleCloudAiplatformV1PairwiseSummarizationQualitySpec(); + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec++; + if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec < 3) { + o.useReference = true; + o.version = 42; } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi--; + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec--; return o; } -void checkGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi( - api.GoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi o, +void checkGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec( + api.GoogleCloudAiplatformV1PairwiseSummarizationQualitySpec o, ) { - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi < - 3) { - checkUnnamed324(o.documentations!); - unittest.expect(o.title!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec++; + if (buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec < 3) { + unittest.expect(o.useReference!, unittest.isTrue); + unittest.expect(o.version!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi--; + buildCounterGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec--; } -core.int buildCounterGoogleCloudAiplatformV1PublisherModelDocumentation = 0; -api.GoogleCloudAiplatformV1PublisherModelDocumentation -buildGoogleCloudAiplatformV1PublisherModelDocumentation() { - final o = api.GoogleCloudAiplatformV1PublisherModelDocumentation(); - buildCounterGoogleCloudAiplatformV1PublisherModelDocumentation++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelDocumentation < 3) { - o.content = 'foo'; - o.title = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1Part = 0; +api.GoogleCloudAiplatformV1Part buildGoogleCloudAiplatformV1Part() { + final o = api.GoogleCloudAiplatformV1Part(); + buildCounterGoogleCloudAiplatformV1Part++; + if (buildCounterGoogleCloudAiplatformV1Part < 3) { + o.codeExecutionResult = buildGoogleCloudAiplatformV1CodeExecutionResult(); + o.executableCode = buildGoogleCloudAiplatformV1ExecutableCode(); + o.fileData = buildGoogleCloudAiplatformV1FileData(); + o.functionCall = buildGoogleCloudAiplatformV1FunctionCall(); + o.functionResponse = buildGoogleCloudAiplatformV1FunctionResponse(); + o.inlineData = buildGoogleCloudAiplatformV1Blob(); + o.text = 'foo'; + o.thought = true; + o.thoughtSignature = 'foo'; + o.videoMetadata = buildGoogleCloudAiplatformV1VideoMetadata(); } - buildCounterGoogleCloudAiplatformV1PublisherModelDocumentation--; + buildCounterGoogleCloudAiplatformV1Part--; return o; } -void checkGoogleCloudAiplatformV1PublisherModelDocumentation( - api.GoogleCloudAiplatformV1PublisherModelDocumentation o, -) { - buildCounterGoogleCloudAiplatformV1PublisherModelDocumentation++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelDocumentation < 3) { - unittest.expect(o.content!, unittest.equals('foo')); - unittest.expect(o.title!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1Part(api.GoogleCloudAiplatformV1Part o) { + buildCounterGoogleCloudAiplatformV1Part++; + if (buildCounterGoogleCloudAiplatformV1Part < 3) { + checkGoogleCloudAiplatformV1CodeExecutionResult(o.codeExecutionResult!); + checkGoogleCloudAiplatformV1ExecutableCode(o.executableCode!); + checkGoogleCloudAiplatformV1FileData(o.fileData!); + checkGoogleCloudAiplatformV1FunctionCall(o.functionCall!); + checkGoogleCloudAiplatformV1FunctionResponse(o.functionResponse!); + checkGoogleCloudAiplatformV1Blob(o.inlineData!); + unittest.expect(o.text!, unittest.equals('foo')); + unittest.expect(o.thought!, unittest.isTrue); + unittest.expect(o.thoughtSignature!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1VideoMetadata(o.videoMetadata!); } - buildCounterGoogleCloudAiplatformV1PublisherModelDocumentation--; + buildCounterGoogleCloudAiplatformV1Part--; } -core.int buildCounterGoogleCloudAiplatformV1PublisherModelResourceReference = 0; -api.GoogleCloudAiplatformV1PublisherModelResourceReference -buildGoogleCloudAiplatformV1PublisherModelResourceReference() { - final o = api.GoogleCloudAiplatformV1PublisherModelResourceReference(); - buildCounterGoogleCloudAiplatformV1PublisherModelResourceReference++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelResourceReference < 3) { - o.description = 'foo'; - o.resourceName = 'foo'; - o.uri = 'foo'; - o.useCase = 'foo'; - } - buildCounterGoogleCloudAiplatformV1PublisherModelResourceReference--; +core.int +buildCounterGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest = 0; +api.GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest +buildGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest() { + final o = + api.GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest(); + buildCounterGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest++; + if (buildCounterGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest < + 3) {} + buildCounterGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest--; return o; } -void checkGoogleCloudAiplatformV1PublisherModelResourceReference( - api.GoogleCloudAiplatformV1PublisherModelResourceReference o, +void checkGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest( + api.GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest o, ) { - buildCounterGoogleCloudAiplatformV1PublisherModelResourceReference++; - if (buildCounterGoogleCloudAiplatformV1PublisherModelResourceReference < 3) { - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.resourceName!, unittest.equals('foo')); - unittest.expect(o.uri!, unittest.equals('foo')); - unittest.expect(o.useCase!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1PublisherModelResourceReference--; + buildCounterGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest++; + if (buildCounterGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest < + 3) {} + buildCounterGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest--; } -core.int buildCounterGoogleCloudAiplatformV1PurgeArtifactsRequest = 0; -api.GoogleCloudAiplatformV1PurgeArtifactsRequest -buildGoogleCloudAiplatformV1PurgeArtifactsRequest() { - final o = api.GoogleCloudAiplatformV1PurgeArtifactsRequest(); - buildCounterGoogleCloudAiplatformV1PurgeArtifactsRequest++; - if (buildCounterGoogleCloudAiplatformV1PurgeArtifactsRequest < 3) { - o.filter = 'foo'; - o.force = true; - } - buildCounterGoogleCloudAiplatformV1PurgeArtifactsRequest--; +core.int buildCounterGoogleCloudAiplatformV1PauseScheduleRequest = 0; +api.GoogleCloudAiplatformV1PauseScheduleRequest +buildGoogleCloudAiplatformV1PauseScheduleRequest() { + final o = api.GoogleCloudAiplatformV1PauseScheduleRequest(); + buildCounterGoogleCloudAiplatformV1PauseScheduleRequest++; + if (buildCounterGoogleCloudAiplatformV1PauseScheduleRequest < 3) {} + buildCounterGoogleCloudAiplatformV1PauseScheduleRequest--; return o; } -void checkGoogleCloudAiplatformV1PurgeArtifactsRequest( - api.GoogleCloudAiplatformV1PurgeArtifactsRequest o, +void checkGoogleCloudAiplatformV1PauseScheduleRequest( + api.GoogleCloudAiplatformV1PauseScheduleRequest o, ) { - buildCounterGoogleCloudAiplatformV1PurgeArtifactsRequest++; - if (buildCounterGoogleCloudAiplatformV1PurgeArtifactsRequest < 3) { - unittest.expect(o.filter!, unittest.equals('foo')); - unittest.expect(o.force!, unittest.isTrue); - } - buildCounterGoogleCloudAiplatformV1PurgeArtifactsRequest--; + buildCounterGoogleCloudAiplatformV1PauseScheduleRequest++; + if (buildCounterGoogleCloudAiplatformV1PauseScheduleRequest < 3) {} + buildCounterGoogleCloudAiplatformV1PauseScheduleRequest--; } -core.int buildCounterGoogleCloudAiplatformV1PurgeContextsRequest = 0; -api.GoogleCloudAiplatformV1PurgeContextsRequest -buildGoogleCloudAiplatformV1PurgeContextsRequest() { - final o = api.GoogleCloudAiplatformV1PurgeContextsRequest(); - buildCounterGoogleCloudAiplatformV1PurgeContextsRequest++; - if (buildCounterGoogleCloudAiplatformV1PurgeContextsRequest < 3) { - o.filter = 'foo'; - o.force = true; +core.int buildCounterGoogleCloudAiplatformV1PersistentDiskSpec = 0; +api.GoogleCloudAiplatformV1PersistentDiskSpec +buildGoogleCloudAiplatformV1PersistentDiskSpec() { + final o = api.GoogleCloudAiplatformV1PersistentDiskSpec(); + buildCounterGoogleCloudAiplatformV1PersistentDiskSpec++; + if (buildCounterGoogleCloudAiplatformV1PersistentDiskSpec < 3) { + o.diskSizeGb = 'foo'; + o.diskType = 'foo'; } - buildCounterGoogleCloudAiplatformV1PurgeContextsRequest--; + buildCounterGoogleCloudAiplatformV1PersistentDiskSpec--; return o; } -void checkGoogleCloudAiplatformV1PurgeContextsRequest( - api.GoogleCloudAiplatformV1PurgeContextsRequest o, +void checkGoogleCloudAiplatformV1PersistentDiskSpec( + api.GoogleCloudAiplatformV1PersistentDiskSpec o, ) { - buildCounterGoogleCloudAiplatformV1PurgeContextsRequest++; - if (buildCounterGoogleCloudAiplatformV1PurgeContextsRequest < 3) { - unittest.expect(o.filter!, unittest.equals('foo')); - unittest.expect(o.force!, unittest.isTrue); + buildCounterGoogleCloudAiplatformV1PersistentDiskSpec++; + if (buildCounterGoogleCloudAiplatformV1PersistentDiskSpec < 3) { + unittest.expect(o.diskSizeGb!, unittest.equals('foo')); + unittest.expect(o.diskType!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PurgeContextsRequest--; + buildCounterGoogleCloudAiplatformV1PersistentDiskSpec--; } -core.int buildCounterGoogleCloudAiplatformV1PurgeExecutionsRequest = 0; -api.GoogleCloudAiplatformV1PurgeExecutionsRequest -buildGoogleCloudAiplatformV1PurgeExecutionsRequest() { - final o = api.GoogleCloudAiplatformV1PurgeExecutionsRequest(); - buildCounterGoogleCloudAiplatformV1PurgeExecutionsRequest++; - if (buildCounterGoogleCloudAiplatformV1PurgeExecutionsRequest < 3) { - o.filter = 'foo'; - o.force = true; - } - buildCounterGoogleCloudAiplatformV1PurgeExecutionsRequest--; - return o; -} +core.Map buildUnnamed324() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkGoogleCloudAiplatformV1PurgeExecutionsRequest( - api.GoogleCloudAiplatformV1PurgeExecutionsRequest o, -) { - buildCounterGoogleCloudAiplatformV1PurgeExecutionsRequest++; - if (buildCounterGoogleCloudAiplatformV1PurgeExecutionsRequest < 3) { - unittest.expect(o.filter!, unittest.equals('foo')); - unittest.expect(o.force!, unittest.isTrue); - } - buildCounterGoogleCloudAiplatformV1PurgeExecutionsRequest--; +void checkUnnamed324(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } core.List buildUnnamed325() => ['foo', 'foo']; @@ -20198,108 +19899,83 @@ void checkUnnamed325(core.List o) { unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed326() => [ - buildGoogleCloudAiplatformV1EnvVar(), - buildGoogleCloudAiplatformV1EnvVar(), +core.List buildUnnamed326() => [ + buildGoogleCloudAiplatformV1ResourcePool(), + buildGoogleCloudAiplatformV1ResourcePool(), ]; -void checkUnnamed326(core.List o) { +void checkUnnamed326(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1EnvVar(o[0]); - checkGoogleCloudAiplatformV1EnvVar(o[1]); -} - -core.List buildUnnamed327() => ['foo', 'foo']; - -void checkUnnamed327(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1ResourcePool(o[0]); + checkGoogleCloudAiplatformV1ResourcePool(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1PythonPackageSpec = 0; -api.GoogleCloudAiplatformV1PythonPackageSpec -buildGoogleCloudAiplatformV1PythonPackageSpec() { - final o = api.GoogleCloudAiplatformV1PythonPackageSpec(); - buildCounterGoogleCloudAiplatformV1PythonPackageSpec++; - if (buildCounterGoogleCloudAiplatformV1PythonPackageSpec < 3) { - o.args = buildUnnamed325(); - o.env = buildUnnamed326(); - o.executorImageUri = 'foo'; - o.packageUris = buildUnnamed327(); - o.pythonModule = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1PersistentResource = 0; +api.GoogleCloudAiplatformV1PersistentResource +buildGoogleCloudAiplatformV1PersistentResource() { + final o = api.GoogleCloudAiplatformV1PersistentResource(); + buildCounterGoogleCloudAiplatformV1PersistentResource++; + if (buildCounterGoogleCloudAiplatformV1PersistentResource < 3) { + o.createTime = 'foo'; + o.displayName = 'foo'; + o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.error = buildGoogleRpcStatus(); + o.labels = buildUnnamed324(); + o.name = 'foo'; + o.network = 'foo'; + o.pscInterfaceConfig = buildGoogleCloudAiplatformV1PscInterfaceConfig(); + o.reservedIpRanges = buildUnnamed325(); + o.resourcePools = buildUnnamed326(); + o.resourceRuntime = buildGoogleCloudAiplatformV1ResourceRuntime(); + o.resourceRuntimeSpec = buildGoogleCloudAiplatformV1ResourceRuntimeSpec(); + o.satisfiesPzi = true; + o.satisfiesPzs = true; + o.startTime = 'foo'; + o.state = 'foo'; + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1PythonPackageSpec--; + buildCounterGoogleCloudAiplatformV1PersistentResource--; return o; } -void checkGoogleCloudAiplatformV1PythonPackageSpec( - api.GoogleCloudAiplatformV1PythonPackageSpec o, +void checkGoogleCloudAiplatformV1PersistentResource( + api.GoogleCloudAiplatformV1PersistentResource o, ) { - buildCounterGoogleCloudAiplatformV1PythonPackageSpec++; - if (buildCounterGoogleCloudAiplatformV1PythonPackageSpec < 3) { - checkUnnamed325(o.args!); - checkUnnamed326(o.env!); - unittest.expect(o.executorImageUri!, unittest.equals('foo')); - checkUnnamed327(o.packageUris!); - unittest.expect(o.pythonModule!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1PersistentResource++; + if (buildCounterGoogleCloudAiplatformV1PersistentResource < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + checkGoogleRpcStatus(o.error!); + checkUnnamed324(o.labels!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.network!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1PscInterfaceConfig(o.pscInterfaceConfig!); + checkUnnamed325(o.reservedIpRanges!); + checkUnnamed326(o.resourcePools!); + checkGoogleCloudAiplatformV1ResourceRuntime(o.resourceRuntime!); + checkGoogleCloudAiplatformV1ResourceRuntimeSpec(o.resourceRuntimeSpec!); + unittest.expect(o.satisfiesPzi!, unittest.isTrue); + unittest.expect(o.satisfiesPzs!, unittest.isTrue); + unittest.expect(o.startTime!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1PythonPackageSpec--; -} - -core.List buildUnnamed328() => [ - buildGoogleCloudAiplatformV1DeployedModelRef(), - buildGoogleCloudAiplatformV1DeployedModelRef(), -]; - -void checkUnnamed328(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1DeployedModelRef(o[0]); - checkGoogleCloudAiplatformV1DeployedModelRef(o[1]); + buildCounterGoogleCloudAiplatformV1PersistentResource--; } -core.List buildUnnamed329() => [ - buildGoogleCloudAiplatformV1DeployedModel(), - buildGoogleCloudAiplatformV1DeployedModel(), -]; +core.Map buildUnnamed327() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkUnnamed329(core.List o) { +void checkUnnamed327(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1DeployedModel(o[0]); - checkGoogleCloudAiplatformV1DeployedModel(o[1]); -} - -core.int buildCounterGoogleCloudAiplatformV1QueryDeployedModelsResponse = 0; -api.GoogleCloudAiplatformV1QueryDeployedModelsResponse -buildGoogleCloudAiplatformV1QueryDeployedModelsResponse() { - final o = api.GoogleCloudAiplatformV1QueryDeployedModelsResponse(); - buildCounterGoogleCloudAiplatformV1QueryDeployedModelsResponse++; - if (buildCounterGoogleCloudAiplatformV1QueryDeployedModelsResponse < 3) { - o.deployedModelRefs = buildUnnamed328(); - o.deployedModels = buildUnnamed329(); - o.nextPageToken = 'foo'; - o.totalDeployedModelCount = 42; - o.totalEndpointCount = 42; - } - buildCounterGoogleCloudAiplatformV1QueryDeployedModelsResponse--; - return o; -} - -void checkGoogleCloudAiplatformV1QueryDeployedModelsResponse( - api.GoogleCloudAiplatformV1QueryDeployedModelsResponse o, -) { - buildCounterGoogleCloudAiplatformV1QueryDeployedModelsResponse++; - if (buildCounterGoogleCloudAiplatformV1QueryDeployedModelsResponse < 3) { - checkUnnamed328(o.deployedModelRefs!); - checkUnnamed329(o.deployedModels!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); - unittest.expect(o.totalDeployedModelCount!, unittest.equals(42)); - unittest.expect(o.totalEndpointCount!, unittest.equals(42)); - } - buildCounterGoogleCloudAiplatformV1QueryDeployedModelsResponse--; + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed330() => { +core.Map buildUnnamed328() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -20312,7 +19988,7 @@ core.Map buildUnnamed330() => { }, }; -void checkUnnamed330(core.Map o) { +void checkUnnamed328(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted70 = (o['x']!) as core.Map; unittest.expect(casted70, unittest.hasLength(3)); @@ -20326,12447 +20002,12628 @@ void checkUnnamed330(core.Map o) { unittest.expect(casted71['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1QueryReasoningEngineRequest = 0; -api.GoogleCloudAiplatformV1QueryReasoningEngineRequest -buildGoogleCloudAiplatformV1QueryReasoningEngineRequest() { - final o = api.GoogleCloudAiplatformV1QueryReasoningEngineRequest(); - buildCounterGoogleCloudAiplatformV1QueryReasoningEngineRequest++; - if (buildCounterGoogleCloudAiplatformV1QueryReasoningEngineRequest < 3) { - o.classMethod = 'foo'; - o.input = buildUnnamed330(); +core.List buildUnnamed329() => ['foo', 'foo']; + +void checkUnnamed329(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1PipelineJob = 0; +api.GoogleCloudAiplatformV1PipelineJob +buildGoogleCloudAiplatformV1PipelineJob() { + final o = api.GoogleCloudAiplatformV1PipelineJob(); + buildCounterGoogleCloudAiplatformV1PipelineJob++; + if (buildCounterGoogleCloudAiplatformV1PipelineJob < 3) { + o.createTime = 'foo'; + o.displayName = 'foo'; + o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.endTime = 'foo'; + o.error = buildGoogleRpcStatus(); + o.jobDetail = buildGoogleCloudAiplatformV1PipelineJobDetail(); + o.labels = buildUnnamed327(); + o.name = 'foo'; + o.network = 'foo'; + o.pipelineSpec = buildUnnamed328(); + o.preflightValidations = true; + o.pscInterfaceConfig = buildGoogleCloudAiplatformV1PscInterfaceConfig(); + o.reservedIpRanges = buildUnnamed329(); + o.runtimeConfig = buildGoogleCloudAiplatformV1PipelineJobRuntimeConfig(); + o.scheduleName = 'foo'; + o.serviceAccount = 'foo'; + o.startTime = 'foo'; + o.state = 'foo'; + o.templateMetadata = buildGoogleCloudAiplatformV1PipelineTemplateMetadata(); + o.templateUri = 'foo'; + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1QueryReasoningEngineRequest--; + buildCounterGoogleCloudAiplatformV1PipelineJob--; return o; } -void checkGoogleCloudAiplatformV1QueryReasoningEngineRequest( - api.GoogleCloudAiplatformV1QueryReasoningEngineRequest o, +void checkGoogleCloudAiplatformV1PipelineJob( + api.GoogleCloudAiplatformV1PipelineJob o, ) { - buildCounterGoogleCloudAiplatformV1QueryReasoningEngineRequest++; - if (buildCounterGoogleCloudAiplatformV1QueryReasoningEngineRequest < 3) { - unittest.expect(o.classMethod!, unittest.equals('foo')); - checkUnnamed330(o.input!); + buildCounterGoogleCloudAiplatformV1PipelineJob++; + if (buildCounterGoogleCloudAiplatformV1PipelineJob < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + unittest.expect(o.endTime!, unittest.equals('foo')); + checkGoogleRpcStatus(o.error!); + checkGoogleCloudAiplatformV1PipelineJobDetail(o.jobDetail!); + checkUnnamed327(o.labels!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.network!, unittest.equals('foo')); + checkUnnamed328(o.pipelineSpec!); + unittest.expect(o.preflightValidations!, unittest.isTrue); + checkGoogleCloudAiplatformV1PscInterfaceConfig(o.pscInterfaceConfig!); + checkUnnamed329(o.reservedIpRanges!); + checkGoogleCloudAiplatformV1PipelineJobRuntimeConfig(o.runtimeConfig!); + unittest.expect(o.scheduleName!, unittest.equals('foo')); + unittest.expect(o.serviceAccount!, unittest.equals('foo')); + unittest.expect(o.startTime!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1PipelineTemplateMetadata(o.templateMetadata!); + unittest.expect(o.templateUri!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1QueryReasoningEngineRequest--; + buildCounterGoogleCloudAiplatformV1PipelineJob--; } -core.int buildCounterGoogleCloudAiplatformV1QueryReasoningEngineResponse = 0; -api.GoogleCloudAiplatformV1QueryReasoningEngineResponse -buildGoogleCloudAiplatformV1QueryReasoningEngineResponse() { - final o = api.GoogleCloudAiplatformV1QueryReasoningEngineResponse(); - buildCounterGoogleCloudAiplatformV1QueryReasoningEngineResponse++; - if (buildCounterGoogleCloudAiplatformV1QueryReasoningEngineResponse < 3) { - o.output = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; +core.List buildUnnamed330() => [ + buildGoogleCloudAiplatformV1PipelineTaskDetail(), + buildGoogleCloudAiplatformV1PipelineTaskDetail(), +]; + +void checkUnnamed330( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1PipelineTaskDetail(o[0]); + checkGoogleCloudAiplatformV1PipelineTaskDetail(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1PipelineJobDetail = 0; +api.GoogleCloudAiplatformV1PipelineJobDetail +buildGoogleCloudAiplatformV1PipelineJobDetail() { + final o = api.GoogleCloudAiplatformV1PipelineJobDetail(); + buildCounterGoogleCloudAiplatformV1PipelineJobDetail++; + if (buildCounterGoogleCloudAiplatformV1PipelineJobDetail < 3) { + o.pipelineContext = buildGoogleCloudAiplatformV1Context(); + o.pipelineRunContext = buildGoogleCloudAiplatformV1Context(); + o.taskDetails = buildUnnamed330(); } - buildCounterGoogleCloudAiplatformV1QueryReasoningEngineResponse--; + buildCounterGoogleCloudAiplatformV1PipelineJobDetail--; return o; } -void checkGoogleCloudAiplatformV1QueryReasoningEngineResponse( - api.GoogleCloudAiplatformV1QueryReasoningEngineResponse o, +void checkGoogleCloudAiplatformV1PipelineJobDetail( + api.GoogleCloudAiplatformV1PipelineJobDetail o, ) { - buildCounterGoogleCloudAiplatformV1QueryReasoningEngineResponse++; - if (buildCounterGoogleCloudAiplatformV1QueryReasoningEngineResponse < 3) { - var casted72 = (o.output!) as core.Map; - unittest.expect(casted72, unittest.hasLength(3)); - unittest.expect(casted72['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted72['bool'], unittest.equals(true)); - unittest.expect(casted72['string'], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1PipelineJobDetail++; + if (buildCounterGoogleCloudAiplatformV1PipelineJobDetail < 3) { + checkGoogleCloudAiplatformV1Context(o.pipelineContext!); + checkGoogleCloudAiplatformV1Context(o.pipelineRunContext!); + checkUnnamed330(o.taskDetails!); } - buildCounterGoogleCloudAiplatformV1QueryReasoningEngineResponse--; + buildCounterGoogleCloudAiplatformV1PipelineJobDetail--; } -core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput = - 0; -api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput -buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput < - 3) { - o.instance = - buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance(); - o.metricSpec = - buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec(); +core.Map< + core.String, + api.GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact +> +buildUnnamed331() => { + 'x': buildGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact(), + 'y': buildGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact(), +}; + +void checkUnnamed331( + core.Map< + core.String, + api.GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact + > + o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact(o['x']!); + checkGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact(o['y']!); +} + +core.Map buildUnnamed332() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed332(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted72 = (o['x']!) as core.Map; + unittest.expect(casted72, unittest.hasLength(3)); + unittest.expect(casted72['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted72['bool'], unittest.equals(true)); + unittest.expect(casted72['string'], unittest.equals('foo')); + var casted73 = (o['y']!) as core.Map; + unittest.expect(casted73, unittest.hasLength(3)); + unittest.expect(casted73['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted73['bool'], unittest.equals(true)); + unittest.expect(casted73['string'], unittest.equals('foo')); +} + +core.Map buildUnnamed333() => { + 'x': buildGoogleCloudAiplatformV1Value(), + 'y': buildGoogleCloudAiplatformV1Value(), +}; + +void checkUnnamed333( + core.Map o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Value(o['x']!); + checkGoogleCloudAiplatformV1Value(o['y']!); +} + +core.int buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfig = 0; +api.GoogleCloudAiplatformV1PipelineJobRuntimeConfig +buildGoogleCloudAiplatformV1PipelineJobRuntimeConfig() { + final o = api.GoogleCloudAiplatformV1PipelineJobRuntimeConfig(); + buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfig++; + if (buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfig < 3) { + o.failurePolicy = 'foo'; + o.gcsOutputDirectory = 'foo'; + o.inputArtifacts = buildUnnamed331(); + o.parameterValues = buildUnnamed332(); + o.parameters = buildUnnamed333(); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput--; + buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfig--; return o; } -void checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput( - api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput o, +void checkGoogleCloudAiplatformV1PipelineJobRuntimeConfig( + api.GoogleCloudAiplatformV1PipelineJobRuntimeConfig o, ) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput < - 3) { - checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance( - o.instance!, - ); - checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfig++; + if (buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfig < 3) { + unittest.expect(o.failurePolicy!, unittest.equals('foo')); + unittest.expect(o.gcsOutputDirectory!, unittest.equals('foo')); + checkUnnamed331(o.inputArtifacts!); + checkUnnamed332(o.parameterValues!); + checkUnnamed333(o.parameters!); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput--; + buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfig--; } core.int -buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance = 0; -api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance -buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance < +buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact = 0; +api.GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact +buildGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact() { + final o = api.GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact(); + buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact++; + if (buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact < 3) { - o.context = 'foo'; - o.instruction = 'foo'; - o.prediction = 'foo'; - o.reference = 'foo'; + o.artifactId = 'foo'; } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance--; + buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact--; return o; } -void checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance( - api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance o, +void checkGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact( + api.GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact o, ) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance < + buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact++; + if (buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact < 3) { - unittest.expect(o.context!, unittest.equals('foo')); - unittest.expect(o.instruction!, unittest.equals('foo')); - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); + unittest.expect(o.artifactId!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance--; + buildCounterGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact--; } -core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult = - 0; -api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult -buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult < - 3) { - o.confidence = 42.0; - o.explanation = 'foo'; - o.score = 42.0; - } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult--; - return o; -} +core.Map +buildUnnamed334() => { + 'x': buildGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(), + 'y': buildGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(), +}; -void checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult( - api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult o, +void checkUnnamed334( + core.Map< + core.String, + api.GoogleCloudAiplatformV1PipelineTaskDetailArtifactList + > + o, ) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult < - 3) { - unittest.expect(o.confidence!, unittest.equals(42.0)); - unittest.expect(o.explanation!, unittest.equals('foo')); - unittest.expect(o.score!, unittest.equals(42.0)); - } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(o['x']!); + checkGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(o['y']!); } -core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec = - 0; -api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec -buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec < 3) { - o.useReference = true; - o.version = 42; - } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec--; - return o; +core.Map +buildUnnamed335() => { + 'x': buildGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(), + 'y': buildGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(), +}; + +void checkUnnamed335( + core.Map< + core.String, + api.GoogleCloudAiplatformV1PipelineTaskDetailArtifactList + > + o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(o['x']!); + checkGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(o['y']!); } -void checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec( - api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec o, +core.List +buildUnnamed336() => [ + buildGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus(), + buildGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus(), +]; + +void checkUnnamed336( + core.List o, ) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec < 3) { - unittest.expect(o.useReference!, unittest.isTrue); - unittest.expect(o.version!, unittest.equals(42)); - } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus(o[0]); + checkGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput = - 0; -api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput -buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput < - 3) { - o.instance = - buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance(); - o.metricSpec = - buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec(); +core.int buildCounterGoogleCloudAiplatformV1PipelineTaskDetail = 0; +api.GoogleCloudAiplatformV1PipelineTaskDetail +buildGoogleCloudAiplatformV1PipelineTaskDetail() { + final o = api.GoogleCloudAiplatformV1PipelineTaskDetail(); + buildCounterGoogleCloudAiplatformV1PipelineTaskDetail++; + if (buildCounterGoogleCloudAiplatformV1PipelineTaskDetail < 3) { + o.createTime = 'foo'; + o.endTime = 'foo'; + o.error = buildGoogleRpcStatus(); + o.execution = buildGoogleCloudAiplatformV1Execution(); + o.executorDetail = buildGoogleCloudAiplatformV1PipelineTaskExecutorDetail(); + o.inputs = buildUnnamed334(); + o.outputs = buildUnnamed335(); + o.parentTaskId = 'foo'; + o.pipelineTaskStatus = buildUnnamed336(); + o.startTime = 'foo'; + o.state = 'foo'; + o.taskId = 'foo'; + o.taskName = 'foo'; + o.taskUniqueName = 'foo'; } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput--; + buildCounterGoogleCloudAiplatformV1PipelineTaskDetail--; return o; } -void checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput( - api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput o, +void checkGoogleCloudAiplatformV1PipelineTaskDetail( + api.GoogleCloudAiplatformV1PipelineTaskDetail o, ) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput < - 3) { - checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance( - o.instance!, - ); - checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1PipelineTaskDetail++; + if (buildCounterGoogleCloudAiplatformV1PipelineTaskDetail < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.endTime!, unittest.equals('foo')); + checkGoogleRpcStatus(o.error!); + checkGoogleCloudAiplatformV1Execution(o.execution!); + checkGoogleCloudAiplatformV1PipelineTaskExecutorDetail(o.executorDetail!); + checkUnnamed334(o.inputs!); + checkUnnamed335(o.outputs!); + unittest.expect(o.parentTaskId!, unittest.equals('foo')); + checkUnnamed336(o.pipelineTaskStatus!); + unittest.expect(o.startTime!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + unittest.expect(o.taskId!, unittest.equals('foo')); + unittest.expect(o.taskName!, unittest.equals('foo')); + unittest.expect(o.taskUniqueName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput--; + buildCounterGoogleCloudAiplatformV1PipelineTaskDetail--; } -core.int -buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance = 0; -api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance -buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance < - 3) { - o.context = 'foo'; - o.instruction = 'foo'; - o.prediction = 'foo'; - o.reference = 'foo'; +core.List buildUnnamed337() => [ + buildGoogleCloudAiplatformV1Artifact(), + buildGoogleCloudAiplatformV1Artifact(), +]; + +void checkUnnamed337(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Artifact(o[0]); + checkGoogleCloudAiplatformV1Artifact(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1PipelineTaskDetailArtifactList = 0; +api.GoogleCloudAiplatformV1PipelineTaskDetailArtifactList +buildGoogleCloudAiplatformV1PipelineTaskDetailArtifactList() { + final o = api.GoogleCloudAiplatformV1PipelineTaskDetailArtifactList(); + buildCounterGoogleCloudAiplatformV1PipelineTaskDetailArtifactList++; + if (buildCounterGoogleCloudAiplatformV1PipelineTaskDetailArtifactList < 3) { + o.artifacts = buildUnnamed337(); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance--; + buildCounterGoogleCloudAiplatformV1PipelineTaskDetailArtifactList--; return o; } -void checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance( - api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance o, +void checkGoogleCloudAiplatformV1PipelineTaskDetailArtifactList( + api.GoogleCloudAiplatformV1PipelineTaskDetailArtifactList o, ) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance < - 3) { - unittest.expect(o.context!, unittest.equals('foo')); - unittest.expect(o.instruction!, unittest.equals('foo')); - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1PipelineTaskDetailArtifactList++; + if (buildCounterGoogleCloudAiplatformV1PipelineTaskDetailArtifactList < 3) { + checkUnnamed337(o.artifacts!); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance--; + buildCounterGoogleCloudAiplatformV1PipelineTaskDetailArtifactList--; } -core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult = - 0; -api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult -buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult < +core.int +buildCounterGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus = 0; +api.GoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus +buildGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus() { + final o = api.GoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus(); + buildCounterGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus++; + if (buildCounterGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus < 3) { - o.confidence = 42.0; - o.explanation = 'foo'; - o.score = 42.0; + o.error = buildGoogleRpcStatus(); + o.state = 'foo'; + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult--; + buildCounterGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus--; return o; } -void checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult( - api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult o, +void checkGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus( + api.GoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus o, ) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult < + buildCounterGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus++; + if (buildCounterGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus < 3) { - unittest.expect(o.confidence!, unittest.equals(42.0)); - unittest.expect(o.explanation!, unittest.equals('foo')); - unittest.expect(o.score!, unittest.equals(42.0)); + checkGoogleRpcStatus(o.error!); + unittest.expect(o.state!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult--; + buildCounterGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus--; } -core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec = - 0; -api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec -buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec < 3) { - o.useReference = true; - o.version = 42; +core.int buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetail = 0; +api.GoogleCloudAiplatformV1PipelineTaskExecutorDetail +buildGoogleCloudAiplatformV1PipelineTaskExecutorDetail() { + final o = api.GoogleCloudAiplatformV1PipelineTaskExecutorDetail(); + buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetail++; + if (buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetail < 3) { + o.containerDetail = + buildGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail(); + o.customJobDetail = + buildGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail(); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec--; + buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetail--; return o; } -void checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec( - api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec o, +void checkGoogleCloudAiplatformV1PipelineTaskExecutorDetail( + api.GoogleCloudAiplatformV1PipelineTaskExecutorDetail o, ) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec < 3) { - unittest.expect(o.useReference!, unittest.isTrue); - unittest.expect(o.version!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetail++; + if (buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetail < 3) { + checkGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail( + o.containerDetail!, + ); + checkGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail( + o.customJobDetail!, + ); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec--; + buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetail--; } -core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInput = 0; -api.GoogleCloudAiplatformV1QuestionAnsweringQualityInput -buildGoogleCloudAiplatformV1QuestionAnsweringQualityInput() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringQualityInput(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInput++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInput < 3) { - o.instance = buildGoogleCloudAiplatformV1QuestionAnsweringQualityInstance(); - o.metricSpec = buildGoogleCloudAiplatformV1QuestionAnsweringQualitySpec(); - } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInput--; - return o; +core.List buildUnnamed338() => ['foo', 'foo']; + +void checkUnnamed338(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -void checkGoogleCloudAiplatformV1QuestionAnsweringQualityInput( - api.GoogleCloudAiplatformV1QuestionAnsweringQualityInput o, -) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInput++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInput < 3) { - checkGoogleCloudAiplatformV1QuestionAnsweringQualityInstance(o.instance!); - checkGoogleCloudAiplatformV1QuestionAnsweringQualitySpec(o.metricSpec!); - } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInput--; +core.List buildUnnamed339() => ['foo', 'foo']; + +void checkUnnamed339(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInstance = +core.int +buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail = 0; -api.GoogleCloudAiplatformV1QuestionAnsweringQualityInstance -buildGoogleCloudAiplatformV1QuestionAnsweringQualityInstance() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringQualityInstance(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInstance++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInstance < 3) { - o.context = 'foo'; - o.instruction = 'foo'; - o.prediction = 'foo'; - o.reference = 'foo'; +api.GoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail +buildGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail() { + final o = + api.GoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail(); + buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail++; + if (buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail < + 3) { + o.failedMainJobs = buildUnnamed338(); + o.failedPreCachingCheckJobs = buildUnnamed339(); + o.mainJob = 'foo'; + o.preCachingCheckJob = 'foo'; } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInstance--; + buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail--; return o; } -void checkGoogleCloudAiplatformV1QuestionAnsweringQualityInstance( - api.GoogleCloudAiplatformV1QuestionAnsweringQualityInstance o, +void checkGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail( + api.GoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail o, ) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInstance++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInstance < 3) { - unittest.expect(o.context!, unittest.equals('foo')); - unittest.expect(o.instruction!, unittest.equals('foo')); - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail++; + if (buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail < + 3) { + checkUnnamed338(o.failedMainJobs!); + checkUnnamed339(o.failedPreCachingCheckJobs!); + unittest.expect(o.mainJob!, unittest.equals('foo')); + unittest.expect(o.preCachingCheckJob!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInstance--; + buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail--; } -core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityResult = 0; -api.GoogleCloudAiplatformV1QuestionAnsweringQualityResult -buildGoogleCloudAiplatformV1QuestionAnsweringQualityResult() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringQualityResult(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityResult++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityResult < 3) { - o.confidence = 42.0; - o.explanation = 'foo'; - o.score = 42.0; +core.List buildUnnamed340() => ['foo', 'foo']; + +void checkUnnamed340(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int +buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail = + 0; +api.GoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail +buildGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail() { + final o = + api.GoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail(); + buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail++; + if (buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail < + 3) { + o.failedJobs = buildUnnamed340(); + o.job = 'foo'; } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityResult--; + buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail--; return o; } -void checkGoogleCloudAiplatformV1QuestionAnsweringQualityResult( - api.GoogleCloudAiplatformV1QuestionAnsweringQualityResult o, +void checkGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail( + api.GoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail o, ) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityResult++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityResult < 3) { - unittest.expect(o.confidence!, unittest.equals(42.0)); - unittest.expect(o.explanation!, unittest.equals('foo')); - unittest.expect(o.score!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail++; + if (buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail < + 3) { + checkUnnamed340(o.failedJobs!); + unittest.expect(o.job!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityResult--; + buildCounterGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail--; } -core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualitySpec = 0; -api.GoogleCloudAiplatformV1QuestionAnsweringQualitySpec -buildGoogleCloudAiplatformV1QuestionAnsweringQualitySpec() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringQualitySpec(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualitySpec++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualitySpec < 3) { - o.useReference = true; - o.version = 42; +core.int buildCounterGoogleCloudAiplatformV1PipelineTemplateMetadata = 0; +api.GoogleCloudAiplatformV1PipelineTemplateMetadata +buildGoogleCloudAiplatformV1PipelineTemplateMetadata() { + final o = api.GoogleCloudAiplatformV1PipelineTemplateMetadata(); + buildCounterGoogleCloudAiplatformV1PipelineTemplateMetadata++; + if (buildCounterGoogleCloudAiplatformV1PipelineTemplateMetadata < 3) { + o.version = 'foo'; } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualitySpec--; + buildCounterGoogleCloudAiplatformV1PipelineTemplateMetadata--; return o; } -void checkGoogleCloudAiplatformV1QuestionAnsweringQualitySpec( - api.GoogleCloudAiplatformV1QuestionAnsweringQualitySpec o, +void checkGoogleCloudAiplatformV1PipelineTemplateMetadata( + api.GoogleCloudAiplatformV1PipelineTemplateMetadata o, ) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualitySpec++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualitySpec < 3) { - unittest.expect(o.useReference!, unittest.isTrue); - unittest.expect(o.version!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1PipelineTemplateMetadata++; + if (buildCounterGoogleCloudAiplatformV1PipelineTemplateMetadata < 3) { + unittest.expect(o.version!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualitySpec--; + buildCounterGoogleCloudAiplatformV1PipelineTemplateMetadata--; } -core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput = 0; -api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceInput -buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceInput(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput < 3) { - o.instance = - buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance(); - o.metricSpec = buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec(); +core.int buildCounterGoogleCloudAiplatformV1PointwiseMetricInput = 0; +api.GoogleCloudAiplatformV1PointwiseMetricInput +buildGoogleCloudAiplatformV1PointwiseMetricInput() { + final o = api.GoogleCloudAiplatformV1PointwiseMetricInput(); + buildCounterGoogleCloudAiplatformV1PointwiseMetricInput++; + if (buildCounterGoogleCloudAiplatformV1PointwiseMetricInput < 3) { + o.instance = buildGoogleCloudAiplatformV1PointwiseMetricInstance(); + o.metricSpec = buildGoogleCloudAiplatformV1PointwiseMetricSpec(); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput--; + buildCounterGoogleCloudAiplatformV1PointwiseMetricInput--; return o; } -void checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput( - api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceInput o, +void checkGoogleCloudAiplatformV1PointwiseMetricInput( + api.GoogleCloudAiplatformV1PointwiseMetricInput o, ) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput < 3) { - checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance(o.instance!); - checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1PointwiseMetricInput++; + if (buildCounterGoogleCloudAiplatformV1PointwiseMetricInput < 3) { + checkGoogleCloudAiplatformV1PointwiseMetricInstance(o.instance!); + checkGoogleCloudAiplatformV1PointwiseMetricSpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput--; + buildCounterGoogleCloudAiplatformV1PointwiseMetricInput--; } -core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance = - 0; -api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance -buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance < - 3) { - o.context = 'foo'; - o.instruction = 'foo'; - o.prediction = 'foo'; - o.reference = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1PointwiseMetricInstance = 0; +api.GoogleCloudAiplatformV1PointwiseMetricInstance +buildGoogleCloudAiplatformV1PointwiseMetricInstance() { + final o = api.GoogleCloudAiplatformV1PointwiseMetricInstance(); + buildCounterGoogleCloudAiplatformV1PointwiseMetricInstance++; + if (buildCounterGoogleCloudAiplatformV1PointwiseMetricInstance < 3) { + o.contentMapInstance = buildGoogleCloudAiplatformV1ContentMap(); + o.jsonInstance = 'foo'; } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance--; + buildCounterGoogleCloudAiplatformV1PointwiseMetricInstance--; return o; } -void checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance( - api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance o, +void checkGoogleCloudAiplatformV1PointwiseMetricInstance( + api.GoogleCloudAiplatformV1PointwiseMetricInstance o, ) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance < - 3) { - unittest.expect(o.context!, unittest.equals('foo')); - unittest.expect(o.instruction!, unittest.equals('foo')); - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1PointwiseMetricInstance++; + if (buildCounterGoogleCloudAiplatformV1PointwiseMetricInstance < 3) { + checkGoogleCloudAiplatformV1ContentMap(o.contentMapInstance!); + unittest.expect(o.jsonInstance!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance--; + buildCounterGoogleCloudAiplatformV1PointwiseMetricInstance--; } -core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult = - 0; -api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult -buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult < 3) { - o.confidence = 42.0; +core.int buildCounterGoogleCloudAiplatformV1PointwiseMetricResult = 0; +api.GoogleCloudAiplatformV1PointwiseMetricResult +buildGoogleCloudAiplatformV1PointwiseMetricResult() { + final o = api.GoogleCloudAiplatformV1PointwiseMetricResult(); + buildCounterGoogleCloudAiplatformV1PointwiseMetricResult++; + if (buildCounterGoogleCloudAiplatformV1PointwiseMetricResult < 3) { + o.customOutput = buildGoogleCloudAiplatformV1CustomOutput(); o.explanation = 'foo'; o.score = 42.0; } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult--; + buildCounterGoogleCloudAiplatformV1PointwiseMetricResult--; return o; } -void checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult( - api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult o, +void checkGoogleCloudAiplatformV1PointwiseMetricResult( + api.GoogleCloudAiplatformV1PointwiseMetricResult o, ) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult < 3) { - unittest.expect(o.confidence!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1PointwiseMetricResult++; + if (buildCounterGoogleCloudAiplatformV1PointwiseMetricResult < 3) { + checkGoogleCloudAiplatformV1CustomOutput(o.customOutput!); unittest.expect(o.explanation!, unittest.equals('foo')); unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult--; + buildCounterGoogleCloudAiplatformV1PointwiseMetricResult--; } -core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec = 0; -api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec -buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec() { - final o = api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec(); - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec < 3) { - o.useReference = true; - o.version = 42; +core.int buildCounterGoogleCloudAiplatformV1PointwiseMetricSpec = 0; +api.GoogleCloudAiplatformV1PointwiseMetricSpec +buildGoogleCloudAiplatformV1PointwiseMetricSpec() { + final o = api.GoogleCloudAiplatformV1PointwiseMetricSpec(); + buildCounterGoogleCloudAiplatformV1PointwiseMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1PointwiseMetricSpec < 3) { + o.customOutputFormatConfig = + buildGoogleCloudAiplatformV1CustomOutputFormatConfig(); + o.metricPromptTemplate = 'foo'; + o.systemInstruction = 'foo'; } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec--; + buildCounterGoogleCloudAiplatformV1PointwiseMetricSpec--; return o; } -void checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec( - api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec o, +void checkGoogleCloudAiplatformV1PointwiseMetricSpec( + api.GoogleCloudAiplatformV1PointwiseMetricSpec o, ) { - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec++; - if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec < 3) { - unittest.expect(o.useReference!, unittest.isTrue); - unittest.expect(o.version!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1PointwiseMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1PointwiseMetricSpec < 3) { + checkGoogleCloudAiplatformV1CustomOutputFormatConfig( + o.customOutputFormatConfig!, + ); + unittest.expect(o.metricPromptTemplate!, unittest.equals('foo')); + unittest.expect(o.systemInstruction!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec--; + buildCounterGoogleCloudAiplatformV1PointwiseMetricSpec--; } -core.int buildCounterGoogleCloudAiplatformV1RagChunk = 0; -api.GoogleCloudAiplatformV1RagChunk buildGoogleCloudAiplatformV1RagChunk() { - final o = api.GoogleCloudAiplatformV1RagChunk(); - buildCounterGoogleCloudAiplatformV1RagChunk++; - if (buildCounterGoogleCloudAiplatformV1RagChunk < 3) { - o.pageSpan = buildGoogleCloudAiplatformV1RagChunkPageSpan(); - o.text = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1Port = 0; +api.GoogleCloudAiplatformV1Port buildGoogleCloudAiplatformV1Port() { + final o = api.GoogleCloudAiplatformV1Port(); + buildCounterGoogleCloudAiplatformV1Port++; + if (buildCounterGoogleCloudAiplatformV1Port < 3) { + o.containerPort = 42; } - buildCounterGoogleCloudAiplatformV1RagChunk--; + buildCounterGoogleCloudAiplatformV1Port--; return o; } -void checkGoogleCloudAiplatformV1RagChunk( - api.GoogleCloudAiplatformV1RagChunk o, -) { - buildCounterGoogleCloudAiplatformV1RagChunk++; - if (buildCounterGoogleCloudAiplatformV1RagChunk < 3) { - checkGoogleCloudAiplatformV1RagChunkPageSpan(o.pageSpan!); - unittest.expect(o.text!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1Port(api.GoogleCloudAiplatformV1Port o) { + buildCounterGoogleCloudAiplatformV1Port++; + if (buildCounterGoogleCloudAiplatformV1Port < 3) { + unittest.expect(o.containerPort!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1RagChunk--; + buildCounterGoogleCloudAiplatformV1Port--; } -core.int buildCounterGoogleCloudAiplatformV1RagChunkPageSpan = 0; -api.GoogleCloudAiplatformV1RagChunkPageSpan -buildGoogleCloudAiplatformV1RagChunkPageSpan() { - final o = api.GoogleCloudAiplatformV1RagChunkPageSpan(); - buildCounterGoogleCloudAiplatformV1RagChunkPageSpan++; - if (buildCounterGoogleCloudAiplatformV1RagChunkPageSpan < 3) { - o.firstPage = 42; - o.lastPage = 42; +core.int buildCounterGoogleCloudAiplatformV1PostStartupScriptConfig = 0; +api.GoogleCloudAiplatformV1PostStartupScriptConfig +buildGoogleCloudAiplatformV1PostStartupScriptConfig() { + final o = api.GoogleCloudAiplatformV1PostStartupScriptConfig(); + buildCounterGoogleCloudAiplatformV1PostStartupScriptConfig++; + if (buildCounterGoogleCloudAiplatformV1PostStartupScriptConfig < 3) { + o.postStartupScript = 'foo'; + o.postStartupScriptBehavior = 'foo'; + o.postStartupScriptUrl = 'foo'; } - buildCounterGoogleCloudAiplatformV1RagChunkPageSpan--; + buildCounterGoogleCloudAiplatformV1PostStartupScriptConfig--; return o; } -void checkGoogleCloudAiplatformV1RagChunkPageSpan( - api.GoogleCloudAiplatformV1RagChunkPageSpan o, +void checkGoogleCloudAiplatformV1PostStartupScriptConfig( + api.GoogleCloudAiplatformV1PostStartupScriptConfig o, ) { - buildCounterGoogleCloudAiplatformV1RagChunkPageSpan++; - if (buildCounterGoogleCloudAiplatformV1RagChunkPageSpan < 3) { - unittest.expect(o.firstPage!, unittest.equals(42)); - unittest.expect(o.lastPage!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1PostStartupScriptConfig++; + if (buildCounterGoogleCloudAiplatformV1PostStartupScriptConfig < 3) { + unittest.expect(o.postStartupScript!, unittest.equals('foo')); + unittest.expect(o.postStartupScriptBehavior!, unittest.equals('foo')); + unittest.expect(o.postStartupScriptUrl!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RagChunkPageSpan--; + buildCounterGoogleCloudAiplatformV1PostStartupScriptConfig--; } -core.List buildUnnamed331() => [ - buildGoogleCloudAiplatformV1RagContextsContext(), - buildGoogleCloudAiplatformV1RagContextsContext(), -]; +core.int buildCounterGoogleCloudAiplatformV1PrebuiltVoiceConfig = 0; +api.GoogleCloudAiplatformV1PrebuiltVoiceConfig +buildGoogleCloudAiplatformV1PrebuiltVoiceConfig() { + final o = api.GoogleCloudAiplatformV1PrebuiltVoiceConfig(); + buildCounterGoogleCloudAiplatformV1PrebuiltVoiceConfig++; + if (buildCounterGoogleCloudAiplatformV1PrebuiltVoiceConfig < 3) { + o.voiceName = 'foo'; + } + buildCounterGoogleCloudAiplatformV1PrebuiltVoiceConfig--; + return o; +} -void checkUnnamed331( - core.List o, +void checkGoogleCloudAiplatformV1PrebuiltVoiceConfig( + api.GoogleCloudAiplatformV1PrebuiltVoiceConfig o, ) { + buildCounterGoogleCloudAiplatformV1PrebuiltVoiceConfig++; + if (buildCounterGoogleCloudAiplatformV1PrebuiltVoiceConfig < 3) { + unittest.expect(o.voiceName!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1PrebuiltVoiceConfig--; +} + +core.Map buildUnnamed341() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed341(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1RagContextsContext(o[0]); - checkGoogleCloudAiplatformV1RagContextsContext(o[1]); + var casted74 = (o['x']!) as core.Map; + unittest.expect(casted74, unittest.hasLength(3)); + unittest.expect(casted74['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted74['bool'], unittest.equals(true)); + unittest.expect(casted74['string'], unittest.equals('foo')); + var casted75 = (o['y']!) as core.Map; + unittest.expect(casted75, unittest.hasLength(3)); + unittest.expect(casted75['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted75['bool'], unittest.equals(true)); + unittest.expect(casted75['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1RagContexts = 0; -api.GoogleCloudAiplatformV1RagContexts -buildGoogleCloudAiplatformV1RagContexts() { - final o = api.GoogleCloudAiplatformV1RagContexts(); - buildCounterGoogleCloudAiplatformV1RagContexts++; - if (buildCounterGoogleCloudAiplatformV1RagContexts < 3) { - o.contexts = buildUnnamed331(); +core.int buildCounterGoogleCloudAiplatformV1PredefinedMetricSpec = 0; +api.GoogleCloudAiplatformV1PredefinedMetricSpec +buildGoogleCloudAiplatformV1PredefinedMetricSpec() { + final o = api.GoogleCloudAiplatformV1PredefinedMetricSpec(); + buildCounterGoogleCloudAiplatformV1PredefinedMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1PredefinedMetricSpec < 3) { + o.metricSpecName = 'foo'; + o.metricSpecParameters = buildUnnamed341(); } - buildCounterGoogleCloudAiplatformV1RagContexts--; + buildCounterGoogleCloudAiplatformV1PredefinedMetricSpec--; return o; } -void checkGoogleCloudAiplatformV1RagContexts( - api.GoogleCloudAiplatformV1RagContexts o, +void checkGoogleCloudAiplatformV1PredefinedMetricSpec( + api.GoogleCloudAiplatformV1PredefinedMetricSpec o, ) { - buildCounterGoogleCloudAiplatformV1RagContexts++; - if (buildCounterGoogleCloudAiplatformV1RagContexts < 3) { - checkUnnamed331(o.contexts!); + buildCounterGoogleCloudAiplatformV1PredefinedMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1PredefinedMetricSpec < 3) { + unittest.expect(o.metricSpecName!, unittest.equals('foo')); + checkUnnamed341(o.metricSpecParameters!); } - buildCounterGoogleCloudAiplatformV1RagContexts--; + buildCounterGoogleCloudAiplatformV1PredefinedMetricSpec--; } -core.int buildCounterGoogleCloudAiplatformV1RagContextsContext = 0; -api.GoogleCloudAiplatformV1RagContextsContext -buildGoogleCloudAiplatformV1RagContextsContext() { - final o = api.GoogleCloudAiplatformV1RagContextsContext(); - buildCounterGoogleCloudAiplatformV1RagContextsContext++; - if (buildCounterGoogleCloudAiplatformV1RagContextsContext < 3) { - o.chunk = buildGoogleCloudAiplatformV1RagChunk(); - o.score = 42.0; - o.sourceDisplayName = 'foo'; - o.sourceUri = 'foo'; - o.text = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1PredefinedSplit = 0; +api.GoogleCloudAiplatformV1PredefinedSplit +buildGoogleCloudAiplatformV1PredefinedSplit() { + final o = api.GoogleCloudAiplatformV1PredefinedSplit(); + buildCounterGoogleCloudAiplatformV1PredefinedSplit++; + if (buildCounterGoogleCloudAiplatformV1PredefinedSplit < 3) { + o.key = 'foo'; } - buildCounterGoogleCloudAiplatformV1RagContextsContext--; + buildCounterGoogleCloudAiplatformV1PredefinedSplit--; return o; } -void checkGoogleCloudAiplatformV1RagContextsContext( - api.GoogleCloudAiplatformV1RagContextsContext o, +void checkGoogleCloudAiplatformV1PredefinedSplit( + api.GoogleCloudAiplatformV1PredefinedSplit o, ) { - buildCounterGoogleCloudAiplatformV1RagContextsContext++; - if (buildCounterGoogleCloudAiplatformV1RagContextsContext < 3) { - checkGoogleCloudAiplatformV1RagChunk(o.chunk!); - unittest.expect(o.score!, unittest.equals(42.0)); - unittest.expect(o.sourceDisplayName!, unittest.equals('foo')); - unittest.expect(o.sourceUri!, unittest.equals('foo')); - unittest.expect(o.text!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1PredefinedSplit++; + if (buildCounterGoogleCloudAiplatformV1PredefinedSplit < 3) { + unittest.expect(o.key!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RagContextsContext--; + buildCounterGoogleCloudAiplatformV1PredefinedSplit--; } -core.int buildCounterGoogleCloudAiplatformV1RagCorpus = 0; -api.GoogleCloudAiplatformV1RagCorpus buildGoogleCloudAiplatformV1RagCorpus() { - final o = api.GoogleCloudAiplatformV1RagCorpus(); - buildCounterGoogleCloudAiplatformV1RagCorpus++; - if (buildCounterGoogleCloudAiplatformV1RagCorpus < 3) { - o.corpusStatus = buildGoogleCloudAiplatformV1CorpusStatus(); - o.createTime = 'foo'; - o.description = 'foo'; - o.displayName = 'foo'; - o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.name = 'foo'; - o.updateTime = 'foo'; - o.vectorDbConfig = buildGoogleCloudAiplatformV1RagVectorDbConfig(); - o.vertexAiSearchConfig = buildGoogleCloudAiplatformV1VertexAiSearchConfig(); +core.List buildUnnamed342() => [ + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +]; + +void checkUnnamed342(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + var casted76 = (o[0]) as core.Map; + unittest.expect(casted76, unittest.hasLength(3)); + unittest.expect(casted76['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted76['bool'], unittest.equals(true)); + unittest.expect(casted76['string'], unittest.equals('foo')); + var casted77 = (o[1]) as core.Map; + unittest.expect(casted77, unittest.hasLength(3)); + unittest.expect(casted77['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted77['bool'], unittest.equals(true)); + unittest.expect(casted77['string'], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1PredictLongRunningRequest = 0; +api.GoogleCloudAiplatformV1PredictLongRunningRequest +buildGoogleCloudAiplatformV1PredictLongRunningRequest() { + final o = api.GoogleCloudAiplatformV1PredictLongRunningRequest(); + buildCounterGoogleCloudAiplatformV1PredictLongRunningRequest++; + if (buildCounterGoogleCloudAiplatformV1PredictLongRunningRequest < 3) { + o.instances = buildUnnamed342(); + o.parameters = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; } - buildCounterGoogleCloudAiplatformV1RagCorpus--; + buildCounterGoogleCloudAiplatformV1PredictLongRunningRequest--; return o; } -void checkGoogleCloudAiplatformV1RagCorpus( - api.GoogleCloudAiplatformV1RagCorpus o, +void checkGoogleCloudAiplatformV1PredictLongRunningRequest( + api.GoogleCloudAiplatformV1PredictLongRunningRequest o, ) { - buildCounterGoogleCloudAiplatformV1RagCorpus++; - if (buildCounterGoogleCloudAiplatformV1RagCorpus < 3) { - checkGoogleCloudAiplatformV1CorpusStatus(o.corpusStatus!); - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.updateTime!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1RagVectorDbConfig(o.vectorDbConfig!); - checkGoogleCloudAiplatformV1VertexAiSearchConfig(o.vertexAiSearchConfig!); + buildCounterGoogleCloudAiplatformV1PredictLongRunningRequest++; + if (buildCounterGoogleCloudAiplatformV1PredictLongRunningRequest < 3) { + checkUnnamed342(o.instances!); + var casted78 = (o.parameters!) as core.Map; + unittest.expect(casted78, unittest.hasLength(3)); + unittest.expect(casted78['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted78['bool'], unittest.equals(true)); + unittest.expect(casted78['string'], unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RagCorpus--; + buildCounterGoogleCloudAiplatformV1PredictLongRunningRequest--; } -core.int buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfig = 0; -api.GoogleCloudAiplatformV1RagEmbeddingModelConfig -buildGoogleCloudAiplatformV1RagEmbeddingModelConfig() { - final o = api.GoogleCloudAiplatformV1RagEmbeddingModelConfig(); - buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfig++; - if (buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfig < 3) { - o.vertexPredictionEndpoint = - buildGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint(); +core.List buildUnnamed343() => [ + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +]; + +void checkUnnamed343(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + var casted79 = (o[0]) as core.Map; + unittest.expect(casted79, unittest.hasLength(3)); + unittest.expect(casted79['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted79['bool'], unittest.equals(true)); + unittest.expect(casted79['string'], unittest.equals('foo')); + var casted80 = (o[1]) as core.Map; + unittest.expect(casted80, unittest.hasLength(3)); + unittest.expect(casted80['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted80['bool'], unittest.equals(true)); + unittest.expect(casted80['string'], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1PredictRequest = 0; +api.GoogleCloudAiplatformV1PredictRequest +buildGoogleCloudAiplatformV1PredictRequest() { + final o = api.GoogleCloudAiplatformV1PredictRequest(); + buildCounterGoogleCloudAiplatformV1PredictRequest++; + if (buildCounterGoogleCloudAiplatformV1PredictRequest < 3) { + o.instances = buildUnnamed343(); + o.parameters = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; } - buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfig--; + buildCounterGoogleCloudAiplatformV1PredictRequest--; return o; } -void checkGoogleCloudAiplatformV1RagEmbeddingModelConfig( - api.GoogleCloudAiplatformV1RagEmbeddingModelConfig o, +void checkGoogleCloudAiplatformV1PredictRequest( + api.GoogleCloudAiplatformV1PredictRequest o, ) { - buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfig++; - if (buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfig < 3) { - checkGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint( - o.vertexPredictionEndpoint!, - ); + buildCounterGoogleCloudAiplatformV1PredictRequest++; + if (buildCounterGoogleCloudAiplatformV1PredictRequest < 3) { + checkUnnamed343(o.instances!); + var casted81 = (o.parameters!) as core.Map; + unittest.expect(casted81, unittest.hasLength(3)); + unittest.expect(casted81['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted81['bool'], unittest.equals(true)); + unittest.expect(casted81['string'], unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfig--; + buildCounterGoogleCloudAiplatformV1PredictRequest--; } core.int -buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint = - 0; -api.GoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint -buildGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint() { - final o = - api.GoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint(); - buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint++; - if (buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint < +buildCounterGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig = 0; +api.GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig +buildGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig() { + final o = api.GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig(); + buildCounterGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig++; + if (buildCounterGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig < 3) { - o.endpoint = 'foo'; + o.bigqueryDestination = buildGoogleCloudAiplatformV1BigQueryDestination(); + o.enabled = true; + o.samplingRate = 42.0; + } + buildCounterGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig--; + return o; +} + +void checkGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig( + api.GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig o, +) { + buildCounterGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig++; + if (buildCounterGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig < + 3) { + checkGoogleCloudAiplatformV1BigQueryDestination(o.bigqueryDestination!); + unittest.expect(o.enabled!, unittest.isTrue); + unittest.expect(o.samplingRate!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig--; +} + +core.List buildUnnamed344() => [ + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +]; + +void checkUnnamed344(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + var casted82 = (o[0]) as core.Map; + unittest.expect(casted82, unittest.hasLength(3)); + unittest.expect(casted82['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted82['bool'], unittest.equals(true)); + unittest.expect(casted82['string'], unittest.equals('foo')); + var casted83 = (o[1]) as core.Map; + unittest.expect(casted83, unittest.hasLength(3)); + unittest.expect(casted83['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted83['bool'], unittest.equals(true)); + unittest.expect(casted83['string'], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1PredictResponse = 0; +api.GoogleCloudAiplatformV1PredictResponse +buildGoogleCloudAiplatformV1PredictResponse() { + final o = api.GoogleCloudAiplatformV1PredictResponse(); + buildCounterGoogleCloudAiplatformV1PredictResponse++; + if (buildCounterGoogleCloudAiplatformV1PredictResponse < 3) { + o.deployedModelId = 'foo'; + o.metadata = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; o.model = 'foo'; + o.modelDisplayName = 'foo'; o.modelVersionId = 'foo'; + o.predictions = buildUnnamed344(); } - buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint--; + buildCounterGoogleCloudAiplatformV1PredictResponse--; return o; } -void -checkGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint( - api.GoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint o, +void checkGoogleCloudAiplatformV1PredictResponse( + api.GoogleCloudAiplatformV1PredictResponse o, ) { - buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint++; - if (buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint < - 3) { - unittest.expect(o.endpoint!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1PredictResponse++; + if (buildCounterGoogleCloudAiplatformV1PredictResponse < 3) { + unittest.expect(o.deployedModelId!, unittest.equals('foo')); + var casted84 = (o.metadata!) as core.Map; + unittest.expect(casted84, unittest.hasLength(3)); + unittest.expect(casted84['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted84['bool'], unittest.equals(true)); + unittest.expect(casted84['string'], unittest.equals('foo')); unittest.expect(o.model!, unittest.equals('foo')); + unittest.expect(o.modelDisplayName!, unittest.equals('foo')); unittest.expect(o.modelVersionId!, unittest.equals('foo')); + checkUnnamed344(o.predictions!); } - buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint--; + buildCounterGoogleCloudAiplatformV1PredictResponse--; } -core.int buildCounterGoogleCloudAiplatformV1RagEngineConfig = 0; -api.GoogleCloudAiplatformV1RagEngineConfig -buildGoogleCloudAiplatformV1RagEngineConfig() { - final o = api.GoogleCloudAiplatformV1RagEngineConfig(); - buildCounterGoogleCloudAiplatformV1RagEngineConfig++; - if (buildCounterGoogleCloudAiplatformV1RagEngineConfig < 3) { - o.name = 'foo'; - o.ragManagedDbConfig = buildGoogleCloudAiplatformV1RagManagedDbConfig(); +core.int buildCounterGoogleCloudAiplatformV1PredictSchemata = 0; +api.GoogleCloudAiplatformV1PredictSchemata +buildGoogleCloudAiplatformV1PredictSchemata() { + final o = api.GoogleCloudAiplatformV1PredictSchemata(); + buildCounterGoogleCloudAiplatformV1PredictSchemata++; + if (buildCounterGoogleCloudAiplatformV1PredictSchemata < 3) { + o.instanceSchemaUri = 'foo'; + o.parametersSchemaUri = 'foo'; + o.predictionSchemaUri = 'foo'; } - buildCounterGoogleCloudAiplatformV1RagEngineConfig--; + buildCounterGoogleCloudAiplatformV1PredictSchemata--; return o; } -void checkGoogleCloudAiplatformV1RagEngineConfig( - api.GoogleCloudAiplatformV1RagEngineConfig o, +void checkGoogleCloudAiplatformV1PredictSchemata( + api.GoogleCloudAiplatformV1PredictSchemata o, ) { - buildCounterGoogleCloudAiplatformV1RagEngineConfig++; - if (buildCounterGoogleCloudAiplatformV1RagEngineConfig < 3) { - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1RagManagedDbConfig(o.ragManagedDbConfig!); + buildCounterGoogleCloudAiplatformV1PredictSchemata++; + if (buildCounterGoogleCloudAiplatformV1PredictSchemata < 3) { + unittest.expect(o.instanceSchemaUri!, unittest.equals('foo')); + unittest.expect(o.parametersSchemaUri!, unittest.equals('foo')); + unittest.expect(o.predictionSchemaUri!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RagEngineConfig--; + buildCounterGoogleCloudAiplatformV1PredictSchemata--; } -core.int buildCounterGoogleCloudAiplatformV1RagFile = 0; -api.GoogleCloudAiplatformV1RagFile buildGoogleCloudAiplatformV1RagFile() { - final o = api.GoogleCloudAiplatformV1RagFile(); - buildCounterGoogleCloudAiplatformV1RagFile++; - if (buildCounterGoogleCloudAiplatformV1RagFile < 3) { - o.createTime = 'foo'; - o.description = 'foo'; - o.directUploadSource = buildGoogleCloudAiplatformV1DirectUploadSource(); - o.displayName = 'foo'; - o.fileStatus = buildGoogleCloudAiplatformV1FileStatus(); - o.gcsSource = buildGoogleCloudAiplatformV1GcsSource(); - o.googleDriveSource = buildGoogleCloudAiplatformV1GoogleDriveSource(); - o.jiraSource = buildGoogleCloudAiplatformV1JiraSource(); - o.name = 'foo'; - o.sharePointSources = buildGoogleCloudAiplatformV1SharePointSources(); - o.slackSource = buildGoogleCloudAiplatformV1SlackSource(); - o.updateTime = 'foo'; - o.userMetadata = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1Presets = 0; +api.GoogleCloudAiplatformV1Presets buildGoogleCloudAiplatformV1Presets() { + final o = api.GoogleCloudAiplatformV1Presets(); + buildCounterGoogleCloudAiplatformV1Presets++; + if (buildCounterGoogleCloudAiplatformV1Presets < 3) { + o.modality = 'foo'; + o.query = 'foo'; } - buildCounterGoogleCloudAiplatformV1RagFile--; + buildCounterGoogleCloudAiplatformV1Presets--; return o; } -void checkGoogleCloudAiplatformV1RagFile(api.GoogleCloudAiplatformV1RagFile o) { - buildCounterGoogleCloudAiplatformV1RagFile++; - if (buildCounterGoogleCloudAiplatformV1RagFile < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.description!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1DirectUploadSource(o.directUploadSource!); - unittest.expect(o.displayName!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FileStatus(o.fileStatus!); - checkGoogleCloudAiplatformV1GcsSource(o.gcsSource!); - checkGoogleCloudAiplatformV1GoogleDriveSource(o.googleDriveSource!); - checkGoogleCloudAiplatformV1JiraSource(o.jiraSource!); - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1SharePointSources(o.sharePointSources!); - checkGoogleCloudAiplatformV1SlackSource(o.slackSource!); - unittest.expect(o.updateTime!, unittest.equals('foo')); - unittest.expect(o.userMetadata!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1Presets(api.GoogleCloudAiplatformV1Presets o) { + buildCounterGoogleCloudAiplatformV1Presets++; + if (buildCounterGoogleCloudAiplatformV1Presets < 3) { + unittest.expect(o.modality!, unittest.equals('foo')); + unittest.expect(o.query!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RagFile--; + buildCounterGoogleCloudAiplatformV1Presets--; } -core.int buildCounterGoogleCloudAiplatformV1RagFileChunkingConfig = 0; -api.GoogleCloudAiplatformV1RagFileChunkingConfig -buildGoogleCloudAiplatformV1RagFileChunkingConfig() { - final o = api.GoogleCloudAiplatformV1RagFileChunkingConfig(); - buildCounterGoogleCloudAiplatformV1RagFileChunkingConfig++; - if (buildCounterGoogleCloudAiplatformV1RagFileChunkingConfig < 3) { - o.fixedLengthChunking = - buildGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking(); +core.int buildCounterGoogleCloudAiplatformV1PrivateEndpoints = 0; +api.GoogleCloudAiplatformV1PrivateEndpoints +buildGoogleCloudAiplatformV1PrivateEndpoints() { + final o = api.GoogleCloudAiplatformV1PrivateEndpoints(); + buildCounterGoogleCloudAiplatformV1PrivateEndpoints++; + if (buildCounterGoogleCloudAiplatformV1PrivateEndpoints < 3) { + o.explainHttpUri = 'foo'; + o.healthHttpUri = 'foo'; + o.predictHttpUri = 'foo'; + o.serviceAttachment = 'foo'; } - buildCounterGoogleCloudAiplatformV1RagFileChunkingConfig--; + buildCounterGoogleCloudAiplatformV1PrivateEndpoints--; return o; } -void checkGoogleCloudAiplatformV1RagFileChunkingConfig( - api.GoogleCloudAiplatformV1RagFileChunkingConfig o, +void checkGoogleCloudAiplatformV1PrivateEndpoints( + api.GoogleCloudAiplatformV1PrivateEndpoints o, ) { - buildCounterGoogleCloudAiplatformV1RagFileChunkingConfig++; - if (buildCounterGoogleCloudAiplatformV1RagFileChunkingConfig < 3) { - checkGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking( - o.fixedLengthChunking!, - ); + buildCounterGoogleCloudAiplatformV1PrivateEndpoints++; + if (buildCounterGoogleCloudAiplatformV1PrivateEndpoints < 3) { + unittest.expect(o.explainHttpUri!, unittest.equals('foo')); + unittest.expect(o.healthHttpUri!, unittest.equals('foo')); + unittest.expect(o.predictHttpUri!, unittest.equals('foo')); + unittest.expect(o.serviceAttachment!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RagFileChunkingConfig--; + buildCounterGoogleCloudAiplatformV1PrivateEndpoints--; } -core.int -buildCounterGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking = 0; -api.GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking -buildGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking() { - final o = - api.GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking(); - buildCounterGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking++; - if (buildCounterGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking < - 3) { - o.chunkOverlap = 42; - o.chunkSize = 42; - } - buildCounterGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking--; - return o; +core.List buildUnnamed345() => ['foo', 'foo']; + +void checkUnnamed345(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -void checkGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking( - api.GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking o, +core.List buildUnnamed346() => [ + buildGoogleCloudAiplatformV1PSCAutomationConfig(), + buildGoogleCloudAiplatformV1PSCAutomationConfig(), +]; + +void checkUnnamed346( + core.List o, ) { - buildCounterGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking++; - if (buildCounterGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking < - 3) { - unittest.expect(o.chunkOverlap!, unittest.equals(42)); - unittest.expect(o.chunkSize!, unittest.equals(42)); - } - buildCounterGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1PSCAutomationConfig(o[0]); + checkGoogleCloudAiplatformV1PSCAutomationConfig(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1RagFileParsingConfig = 0; -api.GoogleCloudAiplatformV1RagFileParsingConfig -buildGoogleCloudAiplatformV1RagFileParsingConfig() { - final o = api.GoogleCloudAiplatformV1RagFileParsingConfig(); - buildCounterGoogleCloudAiplatformV1RagFileParsingConfig++; - if (buildCounterGoogleCloudAiplatformV1RagFileParsingConfig < 3) { - o.layoutParser = - buildGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser(); - o.llmParser = buildGoogleCloudAiplatformV1RagFileParsingConfigLlmParser(); +core.int buildCounterGoogleCloudAiplatformV1PrivateServiceConnectConfig = 0; +api.GoogleCloudAiplatformV1PrivateServiceConnectConfig +buildGoogleCloudAiplatformV1PrivateServiceConnectConfig() { + final o = api.GoogleCloudAiplatformV1PrivateServiceConnectConfig(); + buildCounterGoogleCloudAiplatformV1PrivateServiceConnectConfig++; + if (buildCounterGoogleCloudAiplatformV1PrivateServiceConnectConfig < 3) { + o.enablePrivateServiceConnect = true; + o.projectAllowlist = buildUnnamed345(); + o.pscAutomationConfigs = buildUnnamed346(); + o.serviceAttachment = 'foo'; } - buildCounterGoogleCloudAiplatformV1RagFileParsingConfig--; + buildCounterGoogleCloudAiplatformV1PrivateServiceConnectConfig--; return o; } -void checkGoogleCloudAiplatformV1RagFileParsingConfig( - api.GoogleCloudAiplatformV1RagFileParsingConfig o, +void checkGoogleCloudAiplatformV1PrivateServiceConnectConfig( + api.GoogleCloudAiplatformV1PrivateServiceConnectConfig o, ) { - buildCounterGoogleCloudAiplatformV1RagFileParsingConfig++; - if (buildCounterGoogleCloudAiplatformV1RagFileParsingConfig < 3) { - checkGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser( - o.layoutParser!, - ); - checkGoogleCloudAiplatformV1RagFileParsingConfigLlmParser(o.llmParser!); + buildCounterGoogleCloudAiplatformV1PrivateServiceConnectConfig++; + if (buildCounterGoogleCloudAiplatformV1PrivateServiceConnectConfig < 3) { + unittest.expect(o.enablePrivateServiceConnect!, unittest.isTrue); + checkUnnamed345(o.projectAllowlist!); + checkUnnamed346(o.pscAutomationConfigs!); + unittest.expect(o.serviceAttachment!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RagFileParsingConfig--; + buildCounterGoogleCloudAiplatformV1PrivateServiceConnectConfig--; } -core.int buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser = - 0; -api.GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser -buildGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser() { - final o = api.GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser(); - buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser++; - if (buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser < 3) { - o.maxParsingRequestsPerMin = 42; - o.processorName = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1Probe = 0; +api.GoogleCloudAiplatformV1Probe buildGoogleCloudAiplatformV1Probe() { + final o = api.GoogleCloudAiplatformV1Probe(); + buildCounterGoogleCloudAiplatformV1Probe++; + if (buildCounterGoogleCloudAiplatformV1Probe < 3) { + o.exec = buildGoogleCloudAiplatformV1ProbeExecAction(); + o.failureThreshold = 42; + o.grpc = buildGoogleCloudAiplatformV1ProbeGrpcAction(); + o.httpGet = buildGoogleCloudAiplatformV1ProbeHttpGetAction(); + o.initialDelaySeconds = 42; + o.periodSeconds = 42; + o.successThreshold = 42; + o.tcpSocket = buildGoogleCloudAiplatformV1ProbeTcpSocketAction(); + o.timeoutSeconds = 42; } - buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser--; + buildCounterGoogleCloudAiplatformV1Probe--; return o; } -void checkGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser( - api.GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser o, -) { - buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser++; - if (buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser < 3) { - unittest.expect(o.maxParsingRequestsPerMin!, unittest.equals(42)); - unittest.expect(o.processorName!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1Probe(api.GoogleCloudAiplatformV1Probe o) { + buildCounterGoogleCloudAiplatformV1Probe++; + if (buildCounterGoogleCloudAiplatformV1Probe < 3) { + checkGoogleCloudAiplatformV1ProbeExecAction(o.exec!); + unittest.expect(o.failureThreshold!, unittest.equals(42)); + checkGoogleCloudAiplatformV1ProbeGrpcAction(o.grpc!); + checkGoogleCloudAiplatformV1ProbeHttpGetAction(o.httpGet!); + unittest.expect(o.initialDelaySeconds!, unittest.equals(42)); + unittest.expect(o.periodSeconds!, unittest.equals(42)); + unittest.expect(o.successThreshold!, unittest.equals(42)); + checkGoogleCloudAiplatformV1ProbeTcpSocketAction(o.tcpSocket!); + unittest.expect(o.timeoutSeconds!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser--; + buildCounterGoogleCloudAiplatformV1Probe--; } -core.int buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLlmParser = 0; -api.GoogleCloudAiplatformV1RagFileParsingConfigLlmParser -buildGoogleCloudAiplatformV1RagFileParsingConfigLlmParser() { - final o = api.GoogleCloudAiplatformV1RagFileParsingConfigLlmParser(); - buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLlmParser++; - if (buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLlmParser < 3) { - o.customParsingPrompt = 'foo'; - o.maxParsingRequestsPerMin = 42; - o.modelName = 'foo'; - } - buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLlmParser--; - return o; -} +core.List buildUnnamed347() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1RagFileParsingConfigLlmParser( - api.GoogleCloudAiplatformV1RagFileParsingConfigLlmParser o, -) { - buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLlmParser++; - if (buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLlmParser < 3) { - unittest.expect(o.customParsingPrompt!, unittest.equals('foo')); - unittest.expect(o.maxParsingRequestsPerMin!, unittest.equals(42)); - unittest.expect(o.modelName!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLlmParser--; +void checkUnnamed347(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1RagFileTransformationConfig = 0; -api.GoogleCloudAiplatformV1RagFileTransformationConfig -buildGoogleCloudAiplatformV1RagFileTransformationConfig() { - final o = api.GoogleCloudAiplatformV1RagFileTransformationConfig(); - buildCounterGoogleCloudAiplatformV1RagFileTransformationConfig++; - if (buildCounterGoogleCloudAiplatformV1RagFileTransformationConfig < 3) { - o.ragFileChunkingConfig = - buildGoogleCloudAiplatformV1RagFileChunkingConfig(); +core.int buildCounterGoogleCloudAiplatformV1ProbeExecAction = 0; +api.GoogleCloudAiplatformV1ProbeExecAction +buildGoogleCloudAiplatformV1ProbeExecAction() { + final o = api.GoogleCloudAiplatformV1ProbeExecAction(); + buildCounterGoogleCloudAiplatformV1ProbeExecAction++; + if (buildCounterGoogleCloudAiplatformV1ProbeExecAction < 3) { + o.command = buildUnnamed347(); } - buildCounterGoogleCloudAiplatformV1RagFileTransformationConfig--; + buildCounterGoogleCloudAiplatformV1ProbeExecAction--; return o; } -void checkGoogleCloudAiplatformV1RagFileTransformationConfig( - api.GoogleCloudAiplatformV1RagFileTransformationConfig o, +void checkGoogleCloudAiplatformV1ProbeExecAction( + api.GoogleCloudAiplatformV1ProbeExecAction o, ) { - buildCounterGoogleCloudAiplatformV1RagFileTransformationConfig++; - if (buildCounterGoogleCloudAiplatformV1RagFileTransformationConfig < 3) { - checkGoogleCloudAiplatformV1RagFileChunkingConfig(o.ragFileChunkingConfig!); + buildCounterGoogleCloudAiplatformV1ProbeExecAction++; + if (buildCounterGoogleCloudAiplatformV1ProbeExecAction < 3) { + checkUnnamed347(o.command!); } - buildCounterGoogleCloudAiplatformV1RagFileTransformationConfig--; + buildCounterGoogleCloudAiplatformV1ProbeExecAction--; } -core.int buildCounterGoogleCloudAiplatformV1RagManagedDbConfig = 0; -api.GoogleCloudAiplatformV1RagManagedDbConfig -buildGoogleCloudAiplatformV1RagManagedDbConfig() { - final o = api.GoogleCloudAiplatformV1RagManagedDbConfig(); - buildCounterGoogleCloudAiplatformV1RagManagedDbConfig++; - if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfig < 3) { - o.basic = buildGoogleCloudAiplatformV1RagManagedDbConfigBasic(); - o.scaled = buildGoogleCloudAiplatformV1RagManagedDbConfigScaled(); - o.unprovisioned = - buildGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned(); +core.int buildCounterGoogleCloudAiplatformV1ProbeGrpcAction = 0; +api.GoogleCloudAiplatformV1ProbeGrpcAction +buildGoogleCloudAiplatformV1ProbeGrpcAction() { + final o = api.GoogleCloudAiplatformV1ProbeGrpcAction(); + buildCounterGoogleCloudAiplatformV1ProbeGrpcAction++; + if (buildCounterGoogleCloudAiplatformV1ProbeGrpcAction < 3) { + o.port = 42; + o.service = 'foo'; } - buildCounterGoogleCloudAiplatformV1RagManagedDbConfig--; + buildCounterGoogleCloudAiplatformV1ProbeGrpcAction--; return o; } -void checkGoogleCloudAiplatformV1RagManagedDbConfig( - api.GoogleCloudAiplatformV1RagManagedDbConfig o, +void checkGoogleCloudAiplatformV1ProbeGrpcAction( + api.GoogleCloudAiplatformV1ProbeGrpcAction o, ) { - buildCounterGoogleCloudAiplatformV1RagManagedDbConfig++; - if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfig < 3) { - checkGoogleCloudAiplatformV1RagManagedDbConfigBasic(o.basic!); - checkGoogleCloudAiplatformV1RagManagedDbConfigScaled(o.scaled!); - checkGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned( - o.unprovisioned!, - ); + buildCounterGoogleCloudAiplatformV1ProbeGrpcAction++; + if (buildCounterGoogleCloudAiplatformV1ProbeGrpcAction < 3) { + unittest.expect(o.port!, unittest.equals(42)); + unittest.expect(o.service!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RagManagedDbConfig--; + buildCounterGoogleCloudAiplatformV1ProbeGrpcAction--; } -core.int buildCounterGoogleCloudAiplatformV1RagManagedDbConfigBasic = 0; -api.GoogleCloudAiplatformV1RagManagedDbConfigBasic -buildGoogleCloudAiplatformV1RagManagedDbConfigBasic() { - final o = api.GoogleCloudAiplatformV1RagManagedDbConfigBasic(); - buildCounterGoogleCloudAiplatformV1RagManagedDbConfigBasic++; - if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfigBasic < 3) {} - buildCounterGoogleCloudAiplatformV1RagManagedDbConfigBasic--; - return o; -} +core.List buildUnnamed348() => [ + buildGoogleCloudAiplatformV1ProbeHttpHeader(), + buildGoogleCloudAiplatformV1ProbeHttpHeader(), +]; -void checkGoogleCloudAiplatformV1RagManagedDbConfigBasic( - api.GoogleCloudAiplatformV1RagManagedDbConfigBasic o, -) { - buildCounterGoogleCloudAiplatformV1RagManagedDbConfigBasic++; - if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfigBasic < 3) {} - buildCounterGoogleCloudAiplatformV1RagManagedDbConfigBasic--; +void checkUnnamed348(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ProbeHttpHeader(o[0]); + checkGoogleCloudAiplatformV1ProbeHttpHeader(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1RagManagedDbConfigScaled = 0; -api.GoogleCloudAiplatformV1RagManagedDbConfigScaled -buildGoogleCloudAiplatformV1RagManagedDbConfigScaled() { - final o = api.GoogleCloudAiplatformV1RagManagedDbConfigScaled(); - buildCounterGoogleCloudAiplatformV1RagManagedDbConfigScaled++; - if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfigScaled < 3) {} - buildCounterGoogleCloudAiplatformV1RagManagedDbConfigScaled--; +core.int buildCounterGoogleCloudAiplatformV1ProbeHttpGetAction = 0; +api.GoogleCloudAiplatformV1ProbeHttpGetAction +buildGoogleCloudAiplatformV1ProbeHttpGetAction() { + final o = api.GoogleCloudAiplatformV1ProbeHttpGetAction(); + buildCounterGoogleCloudAiplatformV1ProbeHttpGetAction++; + if (buildCounterGoogleCloudAiplatformV1ProbeHttpGetAction < 3) { + o.host = 'foo'; + o.httpHeaders = buildUnnamed348(); + o.path = 'foo'; + o.port = 42; + o.scheme = 'foo'; + } + buildCounterGoogleCloudAiplatformV1ProbeHttpGetAction--; return o; } -void checkGoogleCloudAiplatformV1RagManagedDbConfigScaled( - api.GoogleCloudAiplatformV1RagManagedDbConfigScaled o, +void checkGoogleCloudAiplatformV1ProbeHttpGetAction( + api.GoogleCloudAiplatformV1ProbeHttpGetAction o, ) { - buildCounterGoogleCloudAiplatformV1RagManagedDbConfigScaled++; - if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfigScaled < 3) {} - buildCounterGoogleCloudAiplatformV1RagManagedDbConfigScaled--; + buildCounterGoogleCloudAiplatformV1ProbeHttpGetAction++; + if (buildCounterGoogleCloudAiplatformV1ProbeHttpGetAction < 3) { + unittest.expect(o.host!, unittest.equals('foo')); + checkUnnamed348(o.httpHeaders!); + unittest.expect(o.path!, unittest.equals('foo')); + unittest.expect(o.port!, unittest.equals(42)); + unittest.expect(o.scheme!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1ProbeHttpGetAction--; } -core.int buildCounterGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned = 0; -api.GoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned -buildGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned() { - final o = api.GoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned(); - buildCounterGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned++; - if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned < 3) {} - buildCounterGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned--; +core.int buildCounterGoogleCloudAiplatformV1ProbeHttpHeader = 0; +api.GoogleCloudAiplatformV1ProbeHttpHeader +buildGoogleCloudAiplatformV1ProbeHttpHeader() { + final o = api.GoogleCloudAiplatformV1ProbeHttpHeader(); + buildCounterGoogleCloudAiplatformV1ProbeHttpHeader++; + if (buildCounterGoogleCloudAiplatformV1ProbeHttpHeader < 3) { + o.name = 'foo'; + o.value = 'foo'; + } + buildCounterGoogleCloudAiplatformV1ProbeHttpHeader--; return o; } -void checkGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned( - api.GoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned o, +void checkGoogleCloudAiplatformV1ProbeHttpHeader( + api.GoogleCloudAiplatformV1ProbeHttpHeader o, ) { - buildCounterGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned++; - if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned < 3) {} - buildCounterGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned--; + buildCounterGoogleCloudAiplatformV1ProbeHttpHeader++; + if (buildCounterGoogleCloudAiplatformV1ProbeHttpHeader < 3) { + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.value!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1ProbeHttpHeader--; } -core.int buildCounterGoogleCloudAiplatformV1RagQuery = 0; -api.GoogleCloudAiplatformV1RagQuery buildGoogleCloudAiplatformV1RagQuery() { - final o = api.GoogleCloudAiplatformV1RagQuery(); - buildCounterGoogleCloudAiplatformV1RagQuery++; - if (buildCounterGoogleCloudAiplatformV1RagQuery < 3) { - o.ragRetrievalConfig = buildGoogleCloudAiplatformV1RagRetrievalConfig(); - o.text = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ProbeTcpSocketAction = 0; +api.GoogleCloudAiplatformV1ProbeTcpSocketAction +buildGoogleCloudAiplatformV1ProbeTcpSocketAction() { + final o = api.GoogleCloudAiplatformV1ProbeTcpSocketAction(); + buildCounterGoogleCloudAiplatformV1ProbeTcpSocketAction++; + if (buildCounterGoogleCloudAiplatformV1ProbeTcpSocketAction < 3) { + o.host = 'foo'; + o.port = 42; } - buildCounterGoogleCloudAiplatformV1RagQuery--; + buildCounterGoogleCloudAiplatformV1ProbeTcpSocketAction--; return o; } -void checkGoogleCloudAiplatformV1RagQuery( - api.GoogleCloudAiplatformV1RagQuery o, +void checkGoogleCloudAiplatformV1ProbeTcpSocketAction( + api.GoogleCloudAiplatformV1ProbeTcpSocketAction o, ) { - buildCounterGoogleCloudAiplatformV1RagQuery++; - if (buildCounterGoogleCloudAiplatformV1RagQuery < 3) { - checkGoogleCloudAiplatformV1RagRetrievalConfig(o.ragRetrievalConfig!); - unittest.expect(o.text!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ProbeTcpSocketAction++; + if (buildCounterGoogleCloudAiplatformV1ProbeTcpSocketAction < 3) { + unittest.expect(o.host!, unittest.equals('foo')); + unittest.expect(o.port!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1RagQuery--; + buildCounterGoogleCloudAiplatformV1ProbeTcpSocketAction--; } -core.int buildCounterGoogleCloudAiplatformV1RagRetrievalConfig = 0; -api.GoogleCloudAiplatformV1RagRetrievalConfig -buildGoogleCloudAiplatformV1RagRetrievalConfig() { - final o = api.GoogleCloudAiplatformV1RagRetrievalConfig(); - buildCounterGoogleCloudAiplatformV1RagRetrievalConfig++; - if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfig < 3) { - o.filter = buildGoogleCloudAiplatformV1RagRetrievalConfigFilter(); - o.ranking = buildGoogleCloudAiplatformV1RagRetrievalConfigRanking(); - o.topK = 42; +core.int buildCounterGoogleCloudAiplatformV1PscAutomatedEndpoints = 0; +api.GoogleCloudAiplatformV1PscAutomatedEndpoints +buildGoogleCloudAiplatformV1PscAutomatedEndpoints() { + final o = api.GoogleCloudAiplatformV1PscAutomatedEndpoints(); + buildCounterGoogleCloudAiplatformV1PscAutomatedEndpoints++; + if (buildCounterGoogleCloudAiplatformV1PscAutomatedEndpoints < 3) { + o.matchAddress = 'foo'; + o.network = 'foo'; + o.projectId = 'foo'; } - buildCounterGoogleCloudAiplatformV1RagRetrievalConfig--; + buildCounterGoogleCloudAiplatformV1PscAutomatedEndpoints--; return o; } -void checkGoogleCloudAiplatformV1RagRetrievalConfig( - api.GoogleCloudAiplatformV1RagRetrievalConfig o, +void checkGoogleCloudAiplatformV1PscAutomatedEndpoints( + api.GoogleCloudAiplatformV1PscAutomatedEndpoints o, ) { - buildCounterGoogleCloudAiplatformV1RagRetrievalConfig++; - if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfig < 3) { - checkGoogleCloudAiplatformV1RagRetrievalConfigFilter(o.filter!); - checkGoogleCloudAiplatformV1RagRetrievalConfigRanking(o.ranking!); - unittest.expect(o.topK!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1PscAutomatedEndpoints++; + if (buildCounterGoogleCloudAiplatformV1PscAutomatedEndpoints < 3) { + unittest.expect(o.matchAddress!, unittest.equals('foo')); + unittest.expect(o.network!, unittest.equals('foo')); + unittest.expect(o.projectId!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RagRetrievalConfig--; + buildCounterGoogleCloudAiplatformV1PscAutomatedEndpoints--; } -core.int buildCounterGoogleCloudAiplatformV1RagRetrievalConfigFilter = 0; -api.GoogleCloudAiplatformV1RagRetrievalConfigFilter -buildGoogleCloudAiplatformV1RagRetrievalConfigFilter() { - final o = api.GoogleCloudAiplatformV1RagRetrievalConfigFilter(); - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigFilter++; - if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigFilter < 3) { - o.metadataFilter = 'foo'; - o.vectorDistanceThreshold = 42.0; - o.vectorSimilarityThreshold = 42.0; - } - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigFilter--; - return o; -} +core.List buildUnnamed349() => [ + buildGoogleCloudAiplatformV1DnsPeeringConfig(), + buildGoogleCloudAiplatformV1DnsPeeringConfig(), +]; -void checkGoogleCloudAiplatformV1RagRetrievalConfigFilter( - api.GoogleCloudAiplatformV1RagRetrievalConfigFilter o, -) { - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigFilter++; - if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigFilter < 3) { - unittest.expect(o.metadataFilter!, unittest.equals('foo')); - unittest.expect(o.vectorDistanceThreshold!, unittest.equals(42.0)); - unittest.expect(o.vectorSimilarityThreshold!, unittest.equals(42.0)); - } - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigFilter--; +void checkUnnamed349(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1DnsPeeringConfig(o[0]); + checkGoogleCloudAiplatformV1DnsPeeringConfig(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRanking = 0; -api.GoogleCloudAiplatformV1RagRetrievalConfigRanking -buildGoogleCloudAiplatformV1RagRetrievalConfigRanking() { - final o = api.GoogleCloudAiplatformV1RagRetrievalConfigRanking(); - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRanking++; - if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRanking < 3) { - o.llmRanker = - buildGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker(); - o.rankService = - buildGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService(); +core.int buildCounterGoogleCloudAiplatformV1PscInterfaceConfig = 0; +api.GoogleCloudAiplatformV1PscInterfaceConfig +buildGoogleCloudAiplatformV1PscInterfaceConfig() { + final o = api.GoogleCloudAiplatformV1PscInterfaceConfig(); + buildCounterGoogleCloudAiplatformV1PscInterfaceConfig++; + if (buildCounterGoogleCloudAiplatformV1PscInterfaceConfig < 3) { + o.dnsPeeringConfigs = buildUnnamed349(); + o.networkAttachment = 'foo'; } - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRanking--; + buildCounterGoogleCloudAiplatformV1PscInterfaceConfig--; return o; } -void checkGoogleCloudAiplatformV1RagRetrievalConfigRanking( - api.GoogleCloudAiplatformV1RagRetrievalConfigRanking o, +void checkGoogleCloudAiplatformV1PscInterfaceConfig( + api.GoogleCloudAiplatformV1PscInterfaceConfig o, ) { - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRanking++; - if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRanking < 3) { - checkGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker( - o.llmRanker!, - ); - checkGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService( - o.rankService!, - ); + buildCounterGoogleCloudAiplatformV1PscInterfaceConfig++; + if (buildCounterGoogleCloudAiplatformV1PscInterfaceConfig < 3) { + checkUnnamed349(o.dnsPeeringConfigs!); + unittest.expect(o.networkAttachment!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRanking--; + buildCounterGoogleCloudAiplatformV1PscInterfaceConfig--; } -core.int buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker = - 0; -api.GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker -buildGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker() { - final o = api.GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker(); - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker++; - if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker < - 3) { - o.modelName = 'foo'; - } - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker--; - return o; -} +core.List buildUnnamed350() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker( - api.GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker o, -) { - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker++; - if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker < - 3) { - unittest.expect(o.modelName!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker--; +void checkUnnamed350(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int -buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService = 0; -api.GoogleCloudAiplatformV1RagRetrievalConfigRankingRankService -buildGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService() { - final o = api.GoogleCloudAiplatformV1RagRetrievalConfigRankingRankService(); - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService++; - if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService < - 3) { - o.modelName = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1PublisherModel = 0; +api.GoogleCloudAiplatformV1PublisherModel +buildGoogleCloudAiplatformV1PublisherModel() { + final o = api.GoogleCloudAiplatformV1PublisherModel(); + buildCounterGoogleCloudAiplatformV1PublisherModel++; + if (buildCounterGoogleCloudAiplatformV1PublisherModel < 3) { + o.frameworks = buildUnnamed350(); + o.launchStage = 'foo'; + o.name = 'foo'; + o.openSourceCategory = 'foo'; + o.predictSchemata = buildGoogleCloudAiplatformV1PredictSchemata(); + o.publisherModelTemplate = 'foo'; + o.supportedActions = + buildGoogleCloudAiplatformV1PublisherModelCallToAction(); + o.versionId = 'foo'; + o.versionState = 'foo'; } - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService--; + buildCounterGoogleCloudAiplatformV1PublisherModel--; return o; } -void checkGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService( - api.GoogleCloudAiplatformV1RagRetrievalConfigRankingRankService o, +void checkGoogleCloudAiplatformV1PublisherModel( + api.GoogleCloudAiplatformV1PublisherModel o, ) { - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService++; - if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService < - 3) { - unittest.expect(o.modelName!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1PublisherModel++; + if (buildCounterGoogleCloudAiplatformV1PublisherModel < 3) { + checkUnnamed350(o.frameworks!); + unittest.expect(o.launchStage!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.openSourceCategory!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1PredictSchemata(o.predictSchemata!); + unittest.expect(o.publisherModelTemplate!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1PublisherModelCallToAction(o.supportedActions!); + unittest.expect(o.versionId!, unittest.equals('foo')); + unittest.expect(o.versionState!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService--; + buildCounterGoogleCloudAiplatformV1PublisherModel--; } -core.int buildCounterGoogleCloudAiplatformV1RagVectorDbConfig = 0; -api.GoogleCloudAiplatformV1RagVectorDbConfig -buildGoogleCloudAiplatformV1RagVectorDbConfig() { - final o = api.GoogleCloudAiplatformV1RagVectorDbConfig(); - buildCounterGoogleCloudAiplatformV1RagVectorDbConfig++; - if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfig < 3) { - o.apiAuth = buildGoogleCloudAiplatformV1ApiAuth(); - o.pinecone = buildGoogleCloudAiplatformV1RagVectorDbConfigPinecone(); - o.ragEmbeddingModelConfig = - buildGoogleCloudAiplatformV1RagEmbeddingModelConfig(); - o.ragManagedDb = - buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb(); - o.vertexVectorSearch = - buildGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch(); +core.int buildCounterGoogleCloudAiplatformV1PublisherModelCallToAction = 0; +api.GoogleCloudAiplatformV1PublisherModelCallToAction +buildGoogleCloudAiplatformV1PublisherModelCallToAction() { + final o = api.GoogleCloudAiplatformV1PublisherModelCallToAction(); + buildCounterGoogleCloudAiplatformV1PublisherModelCallToAction++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToAction < 3) { + o.createApplication = + buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); + o.deploy = buildGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(); + o.deployGke = + buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke(); + o.multiDeployVertex = + buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex(); + o.openEvaluationPipeline = + buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); + o.openFineTuningPipeline = + buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); + o.openFineTuningPipelines = + buildGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines(); + o.openGenerationAiStudio = + buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); + o.openGenie = + buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); + o.openNotebook = + buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); + o.openNotebooks = + buildGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks(); + o.openPromptTuningPipeline = + buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); + o.requestAccess = + buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); + o.viewRestApi = + buildGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi(); } - buildCounterGoogleCloudAiplatformV1RagVectorDbConfig--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToAction--; return o; } -void checkGoogleCloudAiplatformV1RagVectorDbConfig( - api.GoogleCloudAiplatformV1RagVectorDbConfig o, +void checkGoogleCloudAiplatformV1PublisherModelCallToAction( + api.GoogleCloudAiplatformV1PublisherModelCallToAction o, ) { - buildCounterGoogleCloudAiplatformV1RagVectorDbConfig++; - if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfig < 3) { - checkGoogleCloudAiplatformV1ApiAuth(o.apiAuth!); - checkGoogleCloudAiplatformV1RagVectorDbConfigPinecone(o.pinecone!); - checkGoogleCloudAiplatformV1RagEmbeddingModelConfig( - o.ragEmbeddingModelConfig!, + buildCounterGoogleCloudAiplatformV1PublisherModelCallToAction++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToAction < 3) { + checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( + o.createApplication!, ); - checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb(o.ragManagedDb!); - checkGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch( - o.vertexVectorSearch!, + checkGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(o.deploy!); + checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke( + o.deployGke!, + ); + checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex( + o.multiDeployVertex!, + ); + checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( + o.openEvaluationPipeline!, + ); + checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( + o.openFineTuningPipeline!, + ); + checkGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines( + o.openFineTuningPipelines!, + ); + checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( + o.openGenerationAiStudio!, + ); + checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( + o.openGenie!, + ); + checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( + o.openNotebook!, + ); + checkGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks( + o.openNotebooks!, + ); + checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( + o.openPromptTuningPipeline!, + ); + checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( + o.requestAccess!, + ); + checkGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi( + o.viewRestApi!, ); } - buildCounterGoogleCloudAiplatformV1RagVectorDbConfig--; -} - -core.int buildCounterGoogleCloudAiplatformV1RagVectorDbConfigPinecone = 0; -api.GoogleCloudAiplatformV1RagVectorDbConfigPinecone -buildGoogleCloudAiplatformV1RagVectorDbConfigPinecone() { - final o = api.GoogleCloudAiplatformV1RagVectorDbConfigPinecone(); - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigPinecone++; - if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigPinecone < 3) { - o.indexName = 'foo'; - } - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigPinecone--; - return o; -} - -void checkGoogleCloudAiplatformV1RagVectorDbConfigPinecone( - api.GoogleCloudAiplatformV1RagVectorDbConfigPinecone o, -) { - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigPinecone++; - if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigPinecone < 3) { - unittest.expect(o.indexName!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigPinecone--; -} - -core.int buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb = 0; -api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb -buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb() { - final o = api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb(); - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb++; - if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb < 3) { - o.ann = buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN(); - o.knn = buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN(); - } - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb--; - return o; -} - -void checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb( - api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb o, -) { - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb++; - if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb < 3) { - checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN(o.ann!); - checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN(o.knn!); - } - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToAction--; } -core.int buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN = +core.int buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeploy = 0; -api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN -buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN() { - final o = api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN(); - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN++; - if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN < 3) { - o.leafCount = 42; - o.treeDepth = 42; +api.GoogleCloudAiplatformV1PublisherModelCallToActionDeploy +buildGoogleCloudAiplatformV1PublisherModelCallToActionDeploy() { + final o = api.GoogleCloudAiplatformV1PublisherModelCallToActionDeploy(); + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeploy++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeploy < 3) { + o.artifactUri = 'foo'; + o.automaticResources = buildGoogleCloudAiplatformV1AutomaticResources(); + o.containerSpec = buildGoogleCloudAiplatformV1ModelContainerSpec(); + o.dedicatedResources = buildGoogleCloudAiplatformV1DedicatedResources(); + o.deployMetadata = + buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata(); + o.deployTaskName = 'foo'; + o.largeModelReference = buildGoogleCloudAiplatformV1LargeModelReference(); + o.modelDisplayName = 'foo'; + o.publicArtifactUri = 'foo'; + o.sharedResources = 'foo'; + o.title = 'foo'; } - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeploy--; return o; } -void checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN( - api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN o, +void checkGoogleCloudAiplatformV1PublisherModelCallToActionDeploy( + api.GoogleCloudAiplatformV1PublisherModelCallToActionDeploy o, ) { - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN++; - if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN < 3) { - unittest.expect(o.leafCount!, unittest.equals(42)); - unittest.expect(o.treeDepth!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeploy++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeploy < 3) { + unittest.expect(o.artifactUri!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1AutomaticResources(o.automaticResources!); + checkGoogleCloudAiplatformV1ModelContainerSpec(o.containerSpec!); + checkGoogleCloudAiplatformV1DedicatedResources(o.dedicatedResources!); + checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata( + o.deployMetadata!, + ); + unittest.expect(o.deployTaskName!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1LargeModelReference(o.largeModelReference!); + unittest.expect(o.modelDisplayName!, unittest.equals('foo')); + unittest.expect(o.publicArtifactUri!, unittest.equals('foo')); + unittest.expect(o.sharedResources!, unittest.equals('foo')); + unittest.expect(o.title!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeploy--; } -core.int buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN = - 0; -api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN -buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN() { - final o = api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN(); - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN++; - if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN < - 3) {} - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN--; - return o; -} +core.Map buildUnnamed351() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN( - api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN o, -) { - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN++; - if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN < - 3) {} - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN--; +void checkUnnamed351(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } core.int -buildCounterGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch = 0; -api.GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch -buildGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch() { - final o = api.GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch(); - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch++; - if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch < +buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata = + 0; +api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata +buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata() { + final o = + api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata(); + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata < 3) { - o.index = 'foo'; - o.indexEndpoint = 'foo'; + o.labels = buildUnnamed351(); + o.sampleRequest = 'foo'; } - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata--; return o; } -void checkGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch( - api.GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch o, +void checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata( + api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata o, ) { - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch++; - if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch < + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata < 3) { - unittest.expect(o.index!, unittest.equals('foo')); - unittest.expect(o.indexEndpoint!, unittest.equals('foo')); + checkUnnamed351(o.labels!); + unittest.expect(o.sampleRequest!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata--; } -core.List buildUnnamed332() => ['foo', 'foo']; +core.List buildUnnamed352() => ['foo', 'foo']; -void checkUnnamed332(core.List o) { +void checkUnnamed352(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1RawOutput = 0; -api.GoogleCloudAiplatformV1RawOutput buildGoogleCloudAiplatformV1RawOutput() { - final o = api.GoogleCloudAiplatformV1RawOutput(); - buildCounterGoogleCloudAiplatformV1RawOutput++; - if (buildCounterGoogleCloudAiplatformV1RawOutput < 3) { - o.rawOutput = buildUnnamed332(); +core.int +buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke = 0; +api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke +buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke() { + final o = api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke(); + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke < + 3) { + o.gkeYamlConfigs = buildUnnamed352(); } - buildCounterGoogleCloudAiplatformV1RawOutput--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke--; return o; } -void checkGoogleCloudAiplatformV1RawOutput( - api.GoogleCloudAiplatformV1RawOutput o, +void checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke( + api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke o, ) { - buildCounterGoogleCloudAiplatformV1RawOutput++; - if (buildCounterGoogleCloudAiplatformV1RawOutput < 3) { - checkUnnamed332(o.rawOutput!); + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke < + 3) { + checkUnnamed352(o.gkeYamlConfigs!); } - buildCounterGoogleCloudAiplatformV1RawOutput--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke--; } -core.int buildCounterGoogleCloudAiplatformV1RawPredictRequest = 0; -api.GoogleCloudAiplatformV1RawPredictRequest -buildGoogleCloudAiplatformV1RawPredictRequest() { - final o = api.GoogleCloudAiplatformV1RawPredictRequest(); - buildCounterGoogleCloudAiplatformV1RawPredictRequest++; - if (buildCounterGoogleCloudAiplatformV1RawPredictRequest < 3) { - o.httpBody = buildGoogleApiHttpBody(); - } - buildCounterGoogleCloudAiplatformV1RawPredictRequest--; - return o; -} +core.List +buildUnnamed353() => [ + buildGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(), + buildGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(), +]; -void checkGoogleCloudAiplatformV1RawPredictRequest( - api.GoogleCloudAiplatformV1RawPredictRequest o, +void checkUnnamed353( + core.List o, ) { - buildCounterGoogleCloudAiplatformV1RawPredictRequest++; - if (buildCounterGoogleCloudAiplatformV1RawPredictRequest < 3) { - checkGoogleApiHttpBody(o.httpBody!); - } - buildCounterGoogleCloudAiplatformV1RawPredictRequest--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(o[0]); + checkGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1RayLogsSpec = 0; -api.GoogleCloudAiplatformV1RayLogsSpec -buildGoogleCloudAiplatformV1RayLogsSpec() { - final o = api.GoogleCloudAiplatformV1RayLogsSpec(); - buildCounterGoogleCloudAiplatformV1RayLogsSpec++; - if (buildCounterGoogleCloudAiplatformV1RayLogsSpec < 3) { - o.disabled = true; +core.int +buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex = 0; +api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex +buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex() { + final o = api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex(); + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex < + 3) { + o.multiDeployVertex = buildUnnamed353(); } - buildCounterGoogleCloudAiplatformV1RayLogsSpec--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex--; return o; } -void checkGoogleCloudAiplatformV1RayLogsSpec( - api.GoogleCloudAiplatformV1RayLogsSpec o, +void checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex( + api.GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex o, ) { - buildCounterGoogleCloudAiplatformV1RayLogsSpec++; - if (buildCounterGoogleCloudAiplatformV1RayLogsSpec < 3) { - unittest.expect(o.disabled!, unittest.isTrue); + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex < + 3) { + checkUnnamed353(o.multiDeployVertex!); } - buildCounterGoogleCloudAiplatformV1RayLogsSpec--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex--; } -core.int buildCounterGoogleCloudAiplatformV1RayMetricSpec = 0; -api.GoogleCloudAiplatformV1RayMetricSpec -buildGoogleCloudAiplatformV1RayMetricSpec() { - final o = api.GoogleCloudAiplatformV1RayMetricSpec(); - buildCounterGoogleCloudAiplatformV1RayMetricSpec++; - if (buildCounterGoogleCloudAiplatformV1RayMetricSpec < 3) { - o.disabled = true; - } - buildCounterGoogleCloudAiplatformV1RayMetricSpec--; - return o; -} +core.List< + api.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences +> +buildUnnamed354() => [ + buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(), + buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(), +]; -void checkGoogleCloudAiplatformV1RayMetricSpec( - api.GoogleCloudAiplatformV1RayMetricSpec o, +void checkUnnamed354( + core.List< + api.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences + > + o, ) { - buildCounterGoogleCloudAiplatformV1RayMetricSpec++; - if (buildCounterGoogleCloudAiplatformV1RayMetricSpec < 3) { - unittest.expect(o.disabled!, unittest.isTrue); - } - buildCounterGoogleCloudAiplatformV1RayMetricSpec--; -} - -core.Map buildUnnamed333() => { - 'x': 'foo', - 'y': 'foo', -}; - -void checkUnnamed333(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( + o[0], + ); + checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( + o[1], + ); } -core.int buildCounterGoogleCloudAiplatformV1RaySpec = 0; -api.GoogleCloudAiplatformV1RaySpec buildGoogleCloudAiplatformV1RaySpec() { - final o = api.GoogleCloudAiplatformV1RaySpec(); - buildCounterGoogleCloudAiplatformV1RaySpec++; - if (buildCounterGoogleCloudAiplatformV1RaySpec < 3) { - o.headNodeResourcePoolId = 'foo'; - o.imageUri = 'foo'; - o.rayLogsSpec = buildGoogleCloudAiplatformV1RayLogsSpec(); - o.rayMetricSpec = buildGoogleCloudAiplatformV1RayMetricSpec(); - o.resourcePoolImages = buildUnnamed333(); +core.int +buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines = + 0; +api.GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines +buildGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines() { + final o = + api.GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines(); + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines < + 3) { + o.fineTuningPipelines = buildUnnamed354(); } - buildCounterGoogleCloudAiplatformV1RaySpec--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines--; return o; } -void checkGoogleCloudAiplatformV1RaySpec(api.GoogleCloudAiplatformV1RaySpec o) { - buildCounterGoogleCloudAiplatformV1RaySpec++; - if (buildCounterGoogleCloudAiplatformV1RaySpec < 3) { - unittest.expect(o.headNodeResourcePoolId!, unittest.equals('foo')); - unittest.expect(o.imageUri!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1RayLogsSpec(o.rayLogsSpec!); - checkGoogleCloudAiplatformV1RayMetricSpec(o.rayMetricSpec!); - checkUnnamed333(o.resourcePoolImages!); +void +checkGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines( + api.GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines + o, +) { + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines < + 3) { + checkUnnamed354(o.fineTuningPipelines!); } - buildCounterGoogleCloudAiplatformV1RaySpec--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines--; } -core.int buildCounterGoogleCloudAiplatformV1ReadFeatureValuesRequest = 0; -api.GoogleCloudAiplatformV1ReadFeatureValuesRequest -buildGoogleCloudAiplatformV1ReadFeatureValuesRequest() { - final o = api.GoogleCloudAiplatformV1ReadFeatureValuesRequest(); - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesRequest++; - if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesRequest < 3) { - o.entityId = 'foo'; - o.featureSelector = buildGoogleCloudAiplatformV1FeatureSelector(); - } - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesRequest--; - return o; -} +core.List< + api.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences +> +buildUnnamed355() => [ + buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(), + buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(), +]; -void checkGoogleCloudAiplatformV1ReadFeatureValuesRequest( - api.GoogleCloudAiplatformV1ReadFeatureValuesRequest o, +void checkUnnamed355( + core.List< + api.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences + > + o, ) { - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesRequest++; - if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesRequest < 3) { - unittest.expect(o.entityId!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FeatureSelector(o.featureSelector!); - } - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesRequest--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( + o[0], + ); + checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( + o[1], + ); } -core.int buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponse = 0; -api.GoogleCloudAiplatformV1ReadFeatureValuesResponse -buildGoogleCloudAiplatformV1ReadFeatureValuesResponse() { - final o = api.GoogleCloudAiplatformV1ReadFeatureValuesResponse(); - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponse++; - if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponse < 3) { - o.entityView = - buildGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView(); - o.header = buildGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader(); +core.int +buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks = 0; +api.GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks +buildGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks() { + final o = + api.GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks(); + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks < + 3) { + o.notebooks = buildUnnamed355(); } - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponse--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks--; return o; } -void checkGoogleCloudAiplatformV1ReadFeatureValuesResponse( - api.GoogleCloudAiplatformV1ReadFeatureValuesResponse o, +void checkGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks( + api.GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks o, ) { - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponse++; - if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponse < 3) { - checkGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView( - o.entityView!, - ); - checkGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader(o.header!); + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks < + 3) { + checkUnnamed355(o.notebooks!); } - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponse--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks--; } -core.List -buildUnnamed334() => [ - buildGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData(), - buildGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData(), -]; +core.Map< + core.String, + api.GoogleCloudAiplatformV1PublisherModelResourceReference +> +buildUnnamed356() => { + 'x': buildGoogleCloudAiplatformV1PublisherModelResourceReference(), + 'y': buildGoogleCloudAiplatformV1PublisherModelResourceReference(), +}; -void checkUnnamed334( - core.List +void checkUnnamed356( + core.Map< + core.String, + api.GoogleCloudAiplatformV1PublisherModelResourceReference + > o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData(o[0]); - checkGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData(o[1]); + checkGoogleCloudAiplatformV1PublisherModelResourceReference(o['x']!); + checkGoogleCloudAiplatformV1PublisherModelResourceReference(o['y']!); } core.int -buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView = 0; -api.GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView -buildGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView() { - final o = api.GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView(); - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView++; - if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView < +buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences = + 0; +api.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences +buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences() { + final o = + api.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences < 3) { - o.data = buildUnnamed334(); - o.entityId = 'foo'; + o.colabNotebookDisabled = true; + o.references = buildUnnamed356(); + o.resourceDescription = 'foo'; + o.resourceTitle = 'foo'; + o.resourceUseCase = 'foo'; + o.supportsWorkbench = true; + o.title = 'foo'; } - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences--; return o; } -void checkGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView( - api.GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView o, +void +checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( + api.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences + o, ) { - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView++; - if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView < + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences < 3) { - checkUnnamed334(o.data!); - unittest.expect(o.entityId!, unittest.equals('foo')); + unittest.expect(o.colabNotebookDisabled!, unittest.isTrue); + checkUnnamed356(o.references!); + unittest.expect(o.resourceDescription!, unittest.equals('foo')); + unittest.expect(o.resourceTitle!, unittest.equals('foo')); + unittest.expect(o.resourceUseCase!, unittest.equals('foo')); + unittest.expect(o.supportsWorkbench!, unittest.isTrue); + unittest.expect(o.title!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences--; +} + +core.List +buildUnnamed357() => [ + buildGoogleCloudAiplatformV1PublisherModelDocumentation(), + buildGoogleCloudAiplatformV1PublisherModelDocumentation(), +]; + +void checkUnnamed357( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1PublisherModelDocumentation(o[0]); + checkGoogleCloudAiplatformV1PublisherModelDocumentation(o[1]); } core.int -buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData = 0; -api.GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData -buildGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData() { - final o = - api.GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData(); - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData++; - if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData < +buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi = 0; +api.GoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi +buildGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi() { + final o = api.GoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi(); + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi < 3) { - o.value = buildGoogleCloudAiplatformV1FeatureValue(); - o.values = buildGoogleCloudAiplatformV1FeatureValueList(); + o.documentations = buildUnnamed357(); + o.title = 'foo'; } - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi--; return o; } -void checkGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData( - api.GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData o, +void checkGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi( + api.GoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi o, ) { - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData++; - if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData < + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi < 3) { - checkGoogleCloudAiplatformV1FeatureValue(o.value!); - checkGoogleCloudAiplatformV1FeatureValueList(o.values!); + checkUnnamed357(o.documentations!); + unittest.expect(o.title!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData--; + buildCounterGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi--; } -core.int -buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor = - 0; -api.GoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor -buildGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor() { - final o = - api.GoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor(); - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor++; - if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor < - 3) { - o.id = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1PublisherModelDocumentation = 0; +api.GoogleCloudAiplatformV1PublisherModelDocumentation +buildGoogleCloudAiplatformV1PublisherModelDocumentation() { + final o = api.GoogleCloudAiplatformV1PublisherModelDocumentation(); + buildCounterGoogleCloudAiplatformV1PublisherModelDocumentation++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelDocumentation < 3) { + o.content = 'foo'; + o.title = 'foo'; } - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor--; + buildCounterGoogleCloudAiplatformV1PublisherModelDocumentation--; return o; } -void checkGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor( - api.GoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor o, +void checkGoogleCloudAiplatformV1PublisherModelDocumentation( + api.GoogleCloudAiplatformV1PublisherModelDocumentation o, ) { - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor++; - if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor < - 3) { - unittest.expect(o.id!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1PublisherModelDocumentation++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelDocumentation < 3) { + unittest.expect(o.content!, unittest.equals('foo')); + unittest.expect(o.title!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor--; + buildCounterGoogleCloudAiplatformV1PublisherModelDocumentation--; } -core.List -buildUnnamed335() => [ - buildGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor(), - buildGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor(), -]; +core.int buildCounterGoogleCloudAiplatformV1PublisherModelResourceReference = 0; +api.GoogleCloudAiplatformV1PublisherModelResourceReference +buildGoogleCloudAiplatformV1PublisherModelResourceReference() { + final o = api.GoogleCloudAiplatformV1PublisherModelResourceReference(); + buildCounterGoogleCloudAiplatformV1PublisherModelResourceReference++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelResourceReference < 3) { + o.description = 'foo'; + o.resourceName = 'foo'; + o.uri = 'foo'; + o.useCase = 'foo'; + } + buildCounterGoogleCloudAiplatformV1PublisherModelResourceReference--; + return o; +} -void checkUnnamed335( - core.List< - api.GoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor - > - o, +void checkGoogleCloudAiplatformV1PublisherModelResourceReference( + api.GoogleCloudAiplatformV1PublisherModelResourceReference o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor(o[0]); - checkGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor(o[1]); + buildCounterGoogleCloudAiplatformV1PublisherModelResourceReference++; + if (buildCounterGoogleCloudAiplatformV1PublisherModelResourceReference < 3) { + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.resourceName!, unittest.equals('foo')); + unittest.expect(o.uri!, unittest.equals('foo')); + unittest.expect(o.useCase!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1PublisherModelResourceReference--; } -core.int buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader = 0; -api.GoogleCloudAiplatformV1ReadFeatureValuesResponseHeader -buildGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader() { - final o = api.GoogleCloudAiplatformV1ReadFeatureValuesResponseHeader(); - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader++; - if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader < 3) { - o.entityType = 'foo'; - o.featureDescriptors = buildUnnamed335(); +core.int buildCounterGoogleCloudAiplatformV1PurgeArtifactsRequest = 0; +api.GoogleCloudAiplatformV1PurgeArtifactsRequest +buildGoogleCloudAiplatformV1PurgeArtifactsRequest() { + final o = api.GoogleCloudAiplatformV1PurgeArtifactsRequest(); + buildCounterGoogleCloudAiplatformV1PurgeArtifactsRequest++; + if (buildCounterGoogleCloudAiplatformV1PurgeArtifactsRequest < 3) { + o.filter = 'foo'; + o.force = true; } - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader--; + buildCounterGoogleCloudAiplatformV1PurgeArtifactsRequest--; return o; } -void checkGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader( - api.GoogleCloudAiplatformV1ReadFeatureValuesResponseHeader o, +void checkGoogleCloudAiplatformV1PurgeArtifactsRequest( + api.GoogleCloudAiplatformV1PurgeArtifactsRequest o, ) { - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader++; - if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader < 3) { - unittest.expect(o.entityType!, unittest.equals('foo')); - checkUnnamed335(o.featureDescriptors!); + buildCounterGoogleCloudAiplatformV1PurgeArtifactsRequest++; + if (buildCounterGoogleCloudAiplatformV1PurgeArtifactsRequest < 3) { + unittest.expect(o.filter!, unittest.equals('foo')); + unittest.expect(o.force!, unittest.isTrue); } - buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader--; + buildCounterGoogleCloudAiplatformV1PurgeArtifactsRequest--; } -core.List buildUnnamed336() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1PurgeContextsRequest = 0; +api.GoogleCloudAiplatformV1PurgeContextsRequest +buildGoogleCloudAiplatformV1PurgeContextsRequest() { + final o = api.GoogleCloudAiplatformV1PurgeContextsRequest(); + buildCounterGoogleCloudAiplatformV1PurgeContextsRequest++; + if (buildCounterGoogleCloudAiplatformV1PurgeContextsRequest < 3) { + o.filter = 'foo'; + o.force = true; + } + buildCounterGoogleCloudAiplatformV1PurgeContextsRequest--; + return o; +} -void checkUnnamed336(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1PurgeContextsRequest( + api.GoogleCloudAiplatformV1PurgeContextsRequest o, +) { + buildCounterGoogleCloudAiplatformV1PurgeContextsRequest++; + if (buildCounterGoogleCloudAiplatformV1PurgeContextsRequest < 3) { + unittest.expect(o.filter!, unittest.equals('foo')); + unittest.expect(o.force!, unittest.isTrue); + } + buildCounterGoogleCloudAiplatformV1PurgeContextsRequest--; } -core.int buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsRequest = 0; -api.GoogleCloudAiplatformV1ReadIndexDatapointsRequest -buildGoogleCloudAiplatformV1ReadIndexDatapointsRequest() { - final o = api.GoogleCloudAiplatformV1ReadIndexDatapointsRequest(); - buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsRequest++; - if (buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsRequest < 3) { - o.deployedIndexId = 'foo'; - o.ids = buildUnnamed336(); +core.int buildCounterGoogleCloudAiplatformV1PurgeExecutionsRequest = 0; +api.GoogleCloudAiplatformV1PurgeExecutionsRequest +buildGoogleCloudAiplatformV1PurgeExecutionsRequest() { + final o = api.GoogleCloudAiplatformV1PurgeExecutionsRequest(); + buildCounterGoogleCloudAiplatformV1PurgeExecutionsRequest++; + if (buildCounterGoogleCloudAiplatformV1PurgeExecutionsRequest < 3) { + o.filter = 'foo'; + o.force = true; } - buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsRequest--; + buildCounterGoogleCloudAiplatformV1PurgeExecutionsRequest--; return o; } -void checkGoogleCloudAiplatformV1ReadIndexDatapointsRequest( - api.GoogleCloudAiplatformV1ReadIndexDatapointsRequest o, +void checkGoogleCloudAiplatformV1PurgeExecutionsRequest( + api.GoogleCloudAiplatformV1PurgeExecutionsRequest o, ) { - buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsRequest++; - if (buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsRequest < 3) { - unittest.expect(o.deployedIndexId!, unittest.equals('foo')); - checkUnnamed336(o.ids!); + buildCounterGoogleCloudAiplatformV1PurgeExecutionsRequest++; + if (buildCounterGoogleCloudAiplatformV1PurgeExecutionsRequest < 3) { + unittest.expect(o.filter!, unittest.equals('foo')); + unittest.expect(o.force!, unittest.isTrue); } - buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsRequest--; + buildCounterGoogleCloudAiplatformV1PurgeExecutionsRequest--; } -core.List buildUnnamed337() => [ - buildGoogleCloudAiplatformV1IndexDatapoint(), - buildGoogleCloudAiplatformV1IndexDatapoint(), -]; +core.List buildUnnamed358() => ['foo', 'foo']; -void checkUnnamed337(core.List o) { +void checkUnnamed358(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1IndexDatapoint(o[0]); - checkGoogleCloudAiplatformV1IndexDatapoint(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsResponse = 0; -api.GoogleCloudAiplatformV1ReadIndexDatapointsResponse -buildGoogleCloudAiplatformV1ReadIndexDatapointsResponse() { - final o = api.GoogleCloudAiplatformV1ReadIndexDatapointsResponse(); - buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsResponse++; - if (buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsResponse < 3) { - o.datapoints = buildUnnamed337(); - } - buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsResponse--; - return o; -} +core.List buildUnnamed359() => [ + buildGoogleCloudAiplatformV1EnvVar(), + buildGoogleCloudAiplatformV1EnvVar(), +]; -void checkGoogleCloudAiplatformV1ReadIndexDatapointsResponse( - api.GoogleCloudAiplatformV1ReadIndexDatapointsResponse o, -) { - buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsResponse++; - if (buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsResponse < 3) { - checkUnnamed337(o.datapoints!); - } - buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsResponse--; +void checkUnnamed359(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1EnvVar(o[0]); + checkGoogleCloudAiplatformV1EnvVar(o[1]); } -core.List buildUnnamed338() => [ - buildGoogleCloudAiplatformV1TensorboardBlob(), - buildGoogleCloudAiplatformV1TensorboardBlob(), -]; +core.List buildUnnamed360() => ['foo', 'foo']; -void checkUnnamed338(core.List o) { +void checkUnnamed360(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TensorboardBlob(o[0]); - checkGoogleCloudAiplatformV1TensorboardBlob(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse = 0; -api.GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse -buildGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse() { - final o = api.GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse(); - buildCounterGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse++; - if (buildCounterGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse < 3) { - o.blobs = buildUnnamed338(); +core.int buildCounterGoogleCloudAiplatformV1PythonPackageSpec = 0; +api.GoogleCloudAiplatformV1PythonPackageSpec +buildGoogleCloudAiplatformV1PythonPackageSpec() { + final o = api.GoogleCloudAiplatformV1PythonPackageSpec(); + buildCounterGoogleCloudAiplatformV1PythonPackageSpec++; + if (buildCounterGoogleCloudAiplatformV1PythonPackageSpec < 3) { + o.args = buildUnnamed358(); + o.env = buildUnnamed359(); + o.executorImageUri = 'foo'; + o.packageUris = buildUnnamed360(); + o.pythonModule = 'foo'; } - buildCounterGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse--; + buildCounterGoogleCloudAiplatformV1PythonPackageSpec--; return o; } -void checkGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse( - api.GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse o, +void checkGoogleCloudAiplatformV1PythonPackageSpec( + api.GoogleCloudAiplatformV1PythonPackageSpec o, ) { - buildCounterGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse++; - if (buildCounterGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse < 3) { - checkUnnamed338(o.blobs!); + buildCounterGoogleCloudAiplatformV1PythonPackageSpec++; + if (buildCounterGoogleCloudAiplatformV1PythonPackageSpec < 3) { + checkUnnamed358(o.args!); + checkUnnamed359(o.env!); + unittest.expect(o.executorImageUri!, unittest.equals('foo')); + checkUnnamed360(o.packageUris!); + unittest.expect(o.pythonModule!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse--; + buildCounterGoogleCloudAiplatformV1PythonPackageSpec--; } -core.int buildCounterGoogleCloudAiplatformV1ReadTensorboardSizeResponse = 0; -api.GoogleCloudAiplatformV1ReadTensorboardSizeResponse -buildGoogleCloudAiplatformV1ReadTensorboardSizeResponse() { - final o = api.GoogleCloudAiplatformV1ReadTensorboardSizeResponse(); - buildCounterGoogleCloudAiplatformV1ReadTensorboardSizeResponse++; - if (buildCounterGoogleCloudAiplatformV1ReadTensorboardSizeResponse < 3) { - o.storageSizeByte = 'foo'; - } - buildCounterGoogleCloudAiplatformV1ReadTensorboardSizeResponse--; - return o; +core.List buildUnnamed361() => [ + buildGoogleCloudAiplatformV1DeployedModelRef(), + buildGoogleCloudAiplatformV1DeployedModelRef(), +]; + +void checkUnnamed361(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1DeployedModelRef(o[0]); + checkGoogleCloudAiplatformV1DeployedModelRef(o[1]); } -void checkGoogleCloudAiplatformV1ReadTensorboardSizeResponse( - api.GoogleCloudAiplatformV1ReadTensorboardSizeResponse o, -) { - buildCounterGoogleCloudAiplatformV1ReadTensorboardSizeResponse++; - if (buildCounterGoogleCloudAiplatformV1ReadTensorboardSizeResponse < 3) { - unittest.expect(o.storageSizeByte!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1ReadTensorboardSizeResponse--; +core.List buildUnnamed362() => [ + buildGoogleCloudAiplatformV1DeployedModel(), + buildGoogleCloudAiplatformV1DeployedModel(), +]; + +void checkUnnamed362(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1DeployedModel(o[0]); + checkGoogleCloudAiplatformV1DeployedModel(o[1]); } -core.int -buildCounterGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse = 0; -api.GoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse -buildGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse() { - final o = api.GoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse(); - buildCounterGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse++; - if (buildCounterGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse < - 3) { - o.timeSeriesData = buildGoogleCloudAiplatformV1TimeSeriesData(); +core.int buildCounterGoogleCloudAiplatformV1QueryDeployedModelsResponse = 0; +api.GoogleCloudAiplatformV1QueryDeployedModelsResponse +buildGoogleCloudAiplatformV1QueryDeployedModelsResponse() { + final o = api.GoogleCloudAiplatformV1QueryDeployedModelsResponse(); + buildCounterGoogleCloudAiplatformV1QueryDeployedModelsResponse++; + if (buildCounterGoogleCloudAiplatformV1QueryDeployedModelsResponse < 3) { + o.deployedModelRefs = buildUnnamed361(); + o.deployedModels = buildUnnamed362(); + o.nextPageToken = 'foo'; + o.totalDeployedModelCount = 42; + o.totalEndpointCount = 42; } - buildCounterGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse--; + buildCounterGoogleCloudAiplatformV1QueryDeployedModelsResponse--; return o; } -void checkGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse( - api.GoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse o, +void checkGoogleCloudAiplatformV1QueryDeployedModelsResponse( + api.GoogleCloudAiplatformV1QueryDeployedModelsResponse o, ) { - buildCounterGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse++; - if (buildCounterGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse < - 3) { - checkGoogleCloudAiplatformV1TimeSeriesData(o.timeSeriesData!); + buildCounterGoogleCloudAiplatformV1QueryDeployedModelsResponse++; + if (buildCounterGoogleCloudAiplatformV1QueryDeployedModelsResponse < 3) { + checkUnnamed361(o.deployedModelRefs!); + checkUnnamed362(o.deployedModels!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + unittest.expect(o.totalDeployedModelCount!, unittest.equals(42)); + unittest.expect(o.totalEndpointCount!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse--; + buildCounterGoogleCloudAiplatformV1QueryDeployedModelsResponse--; } -core.Map< - core.String, - api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData -> -buildUnnamed339() => { - 'x': - buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData(), - 'y': - buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData(), +core.Map buildUnnamed363() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, }; -void checkUnnamed339( - core.Map< - core.String, - api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData - > - o, -) { +void checkUnnamed363(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData( - o['x']!, - ); - checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData( - o['y']!, - ); + var casted85 = (o['x']!) as core.Map; + unittest.expect(casted85, unittest.hasLength(3)); + unittest.expect(casted85['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted85['bool'], unittest.equals(true)); + unittest.expect(casted85['string'], unittest.equals('foo')); + var casted86 = (o['y']!) as core.Map; + unittest.expect(casted86, unittest.hasLength(3)); + unittest.expect(casted86['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted86['bool'], unittest.equals(true)); + unittest.expect(casted86['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponse = 0; -api.GoogleCloudAiplatformV1ReadTensorboardUsageResponse -buildGoogleCloudAiplatformV1ReadTensorboardUsageResponse() { - final o = api.GoogleCloudAiplatformV1ReadTensorboardUsageResponse(); - buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponse++; - if (buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponse < 3) { - o.monthlyUsageData = buildUnnamed339(); +core.int buildCounterGoogleCloudAiplatformV1QueryReasoningEngineRequest = 0; +api.GoogleCloudAiplatformV1QueryReasoningEngineRequest +buildGoogleCloudAiplatformV1QueryReasoningEngineRequest() { + final o = api.GoogleCloudAiplatformV1QueryReasoningEngineRequest(); + buildCounterGoogleCloudAiplatformV1QueryReasoningEngineRequest++; + if (buildCounterGoogleCloudAiplatformV1QueryReasoningEngineRequest < 3) { + o.classMethod = 'foo'; + o.input = buildUnnamed363(); } - buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponse--; + buildCounterGoogleCloudAiplatformV1QueryReasoningEngineRequest--; return o; } -void checkGoogleCloudAiplatformV1ReadTensorboardUsageResponse( - api.GoogleCloudAiplatformV1ReadTensorboardUsageResponse o, +void checkGoogleCloudAiplatformV1QueryReasoningEngineRequest( + api.GoogleCloudAiplatformV1QueryReasoningEngineRequest o, ) { - buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponse++; - if (buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponse < 3) { - checkUnnamed339(o.monthlyUsageData!); + buildCounterGoogleCloudAiplatformV1QueryReasoningEngineRequest++; + if (buildCounterGoogleCloudAiplatformV1QueryReasoningEngineRequest < 3) { + unittest.expect(o.classMethod!, unittest.equals('foo')); + checkUnnamed363(o.input!); } - buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponse--; + buildCounterGoogleCloudAiplatformV1QueryReasoningEngineRequest--; } -core.List< - api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData -> -buildUnnamed340() => [ - buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData(), - buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData(), -]; +core.int buildCounterGoogleCloudAiplatformV1QueryReasoningEngineResponse = 0; +api.GoogleCloudAiplatformV1QueryReasoningEngineResponse +buildGoogleCloudAiplatformV1QueryReasoningEngineResponse() { + final o = api.GoogleCloudAiplatformV1QueryReasoningEngineResponse(); + buildCounterGoogleCloudAiplatformV1QueryReasoningEngineResponse++; + if (buildCounterGoogleCloudAiplatformV1QueryReasoningEngineResponse < 3) { + o.output = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + } + buildCounterGoogleCloudAiplatformV1QueryReasoningEngineResponse--; + return o; +} -void checkUnnamed340( - core.List< - api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData - > - o, +void checkGoogleCloudAiplatformV1QueryReasoningEngineResponse( + api.GoogleCloudAiplatformV1QueryReasoningEngineResponse o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData( - o[0], - ); - checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData( - o[1], - ); + buildCounterGoogleCloudAiplatformV1QueryReasoningEngineResponse++; + if (buildCounterGoogleCloudAiplatformV1QueryReasoningEngineResponse < 3) { + var casted87 = (o.output!) as core.Map; + unittest.expect(casted87, unittest.hasLength(3)); + unittest.expect(casted87['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted87['bool'], unittest.equals(true)); + unittest.expect(casted87['string'], unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1QueryReasoningEngineResponse--; } -core.int -buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData = +core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput = 0; -api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData -buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData() { - final o = - api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData(); - buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData++; - if (buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData < +api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput +buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput < 3) { - o.userUsageData = buildUnnamed340(); + o.instance = + buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance(); + o.metricSpec = + buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec(); } - buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput--; return o; } -void checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData( - api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData o, +void checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput( + api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput o, ) { - buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData++; - if (buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData < + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput < 3) { - checkUnnamed340(o.userUsageData!); + checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance( + o.instance!, + ); + checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput--; } core.int -buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData = - 0; -api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData -buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData() { - final o = - api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData(); - buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData++; - if (buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData < +buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance = 0; +api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance +buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance < 3) { - o.username = 'foo'; - o.viewCount = 'foo'; + o.context = 'foo'; + o.instruction = 'foo'; + o.prediction = 'foo'; + o.reference = 'foo'; } - buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance--; return o; } -void checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData( - api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData o, +void checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance( + api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance o, ) { - buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData++; - if (buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData < + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance < 3) { - unittest.expect(o.username!, unittest.equals('foo')); - unittest.expect(o.viewCount!, unittest.equals('foo')); + unittest.expect(o.context!, unittest.equals('foo')); + unittest.expect(o.instruction!, unittest.equals('foo')); + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance--; } -core.int buildCounterGoogleCloudAiplatformV1ReasoningEngine = 0; -api.GoogleCloudAiplatformV1ReasoningEngine -buildGoogleCloudAiplatformV1ReasoningEngine() { - final o = api.GoogleCloudAiplatformV1ReasoningEngine(); - buildCounterGoogleCloudAiplatformV1ReasoningEngine++; - if (buildCounterGoogleCloudAiplatformV1ReasoningEngine < 3) { - o.createTime = 'foo'; - o.description = 'foo'; - o.displayName = 'foo'; - o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.etag = 'foo'; - o.name = 'foo'; - o.spec = buildGoogleCloudAiplatformV1ReasoningEngineSpec(); - o.updateTime = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult = + 0; +api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult +buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult < + 3) { + o.confidence = 42.0; + o.explanation = 'foo'; + o.score = 42.0; } - buildCounterGoogleCloudAiplatformV1ReasoningEngine--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult--; return o; } -void checkGoogleCloudAiplatformV1ReasoningEngine( - api.GoogleCloudAiplatformV1ReasoningEngine o, +void checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult( + api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult o, ) { - buildCounterGoogleCloudAiplatformV1ReasoningEngine++; - if (buildCounterGoogleCloudAiplatformV1ReasoningEngine < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.etag!, unittest.equals('foo')); - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ReasoningEngineSpec(o.spec!); - unittest.expect(o.updateTime!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult < + 3) { + unittest.expect(o.confidence!, unittest.equals(42.0)); + unittest.expect(o.explanation!, unittest.equals('foo')); + unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1ReasoningEngine--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult--; } -core.Map buildUnnamed341() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; - -void checkUnnamed341(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - var casted73 = (o['x']!) as core.Map; - unittest.expect(casted73, unittest.hasLength(3)); - unittest.expect(casted73['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted73['bool'], unittest.equals(true)); - unittest.expect(casted73['string'], unittest.equals('foo')); - var casted74 = (o['y']!) as core.Map; - unittest.expect(casted74, unittest.hasLength(3)); - unittest.expect(casted74['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted74['bool'], unittest.equals(true)); - unittest.expect(casted74['string'], unittest.equals('foo')); +core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec = + 0; +api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec +buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec < 3) { + o.useReference = true; + o.version = 42; + } + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec--; + return o; } -core.List> buildUnnamed342() => [ - buildUnnamed341(), - buildUnnamed341(), -]; - -void checkUnnamed342(core.List> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUnnamed341(o[0]); - checkUnnamed341(o[1]); +void checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec( + api.GoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec o, +) { + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec < 3) { + unittest.expect(o.useReference!, unittest.isTrue); + unittest.expect(o.version!, unittest.equals(42)); + } + buildCounterGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec--; } -core.int buildCounterGoogleCloudAiplatformV1ReasoningEngineSpec = 0; -api.GoogleCloudAiplatformV1ReasoningEngineSpec -buildGoogleCloudAiplatformV1ReasoningEngineSpec() { - final o = api.GoogleCloudAiplatformV1ReasoningEngineSpec(); - buildCounterGoogleCloudAiplatformV1ReasoningEngineSpec++; - if (buildCounterGoogleCloudAiplatformV1ReasoningEngineSpec < 3) { - o.agentFramework = 'foo'; - o.classMethods = buildUnnamed342(); - o.deploymentSpec = - buildGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec(); - o.packageSpec = - buildGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec(); - o.serviceAccount = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput = + 0; +api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput +buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput < + 3) { + o.instance = + buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance(); + o.metricSpec = + buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec(); } - buildCounterGoogleCloudAiplatformV1ReasoningEngineSpec--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput--; return o; } -void checkGoogleCloudAiplatformV1ReasoningEngineSpec( - api.GoogleCloudAiplatformV1ReasoningEngineSpec o, +void checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput( + api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput o, ) { - buildCounterGoogleCloudAiplatformV1ReasoningEngineSpec++; - if (buildCounterGoogleCloudAiplatformV1ReasoningEngineSpec < 3) { - unittest.expect(o.agentFramework!, unittest.equals('foo')); - checkUnnamed342(o.classMethods!); - checkGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec( - o.deploymentSpec!, + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput < + 3) { + checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance( + o.instance!, ); - checkGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec(o.packageSpec!); - unittest.expect(o.serviceAccount!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1ReasoningEngineSpec--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput--; } -core.List buildUnnamed343() => [ - buildGoogleCloudAiplatformV1EnvVar(), - buildGoogleCloudAiplatformV1EnvVar(), -]; - -void checkUnnamed343(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1EnvVar(o[0]); - checkGoogleCloudAiplatformV1EnvVar(o[1]); +core.int +buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance = 0; +api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance +buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance < + 3) { + o.context = 'foo'; + o.instruction = 'foo'; + o.prediction = 'foo'; + o.reference = 'foo'; + } + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance--; + return o; } -core.List buildUnnamed344() => [ - buildGoogleCloudAiplatformV1SecretEnvVar(), - buildGoogleCloudAiplatformV1SecretEnvVar(), -]; - -void checkUnnamed344(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1SecretEnvVar(o[0]); - checkGoogleCloudAiplatformV1SecretEnvVar(o[1]); +void checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance( + api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance o, +) { + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance < + 3) { + unittest.expect(o.context!, unittest.equals('foo')); + unittest.expect(o.instruction!, unittest.equals('foo')); + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance--; } -core.int buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec = +core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult = 0; -api.GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec -buildGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec() { - final o = api.GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec(); - buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec++; - if (buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec < +api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult +buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult < 3) { - o.env = buildUnnamed343(); - o.secretEnv = buildUnnamed344(); + o.confidence = 42.0; + o.explanation = 'foo'; + o.score = 42.0; } - buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult--; return o; } -void checkGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec( - api.GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec o, +void checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult( + api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult o, ) { - buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec++; - if (buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec < + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult < 3) { - checkUnnamed343(o.env!); - checkUnnamed344(o.secretEnv!); + unittest.expect(o.confidence!, unittest.equals(42.0)); + unittest.expect(o.explanation!, unittest.equals('foo')); + unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult--; } -core.int buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec = 0; -api.GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec -buildGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec() { - final o = api.GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec(); - buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec++; - if (buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec < 3) { - o.dependencyFilesGcsUri = 'foo'; - o.pickleObjectGcsUri = 'foo'; - o.pythonVersion = 'foo'; - o.requirementsGcsUri = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec = + 0; +api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec +buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec < 3) { + o.useReference = true; + o.version = 42; } - buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec--; return o; } -void checkGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec( - api.GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec o, +void checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec( + api.GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec o, ) { - buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec++; - if (buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec < 3) { - unittest.expect(o.dependencyFilesGcsUri!, unittest.equals('foo')); - unittest.expect(o.pickleObjectGcsUri!, unittest.equals('foo')); - unittest.expect(o.pythonVersion!, unittest.equals('foo')); - unittest.expect(o.requirementsGcsUri!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec < 3) { + unittest.expect(o.useReference!, unittest.isTrue); + unittest.expect(o.version!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec--; } -core.int buildCounterGoogleCloudAiplatformV1RebaseTunedModelRequest = 0; -api.GoogleCloudAiplatformV1RebaseTunedModelRequest -buildGoogleCloudAiplatformV1RebaseTunedModelRequest() { - final o = api.GoogleCloudAiplatformV1RebaseTunedModelRequest(); - buildCounterGoogleCloudAiplatformV1RebaseTunedModelRequest++; - if (buildCounterGoogleCloudAiplatformV1RebaseTunedModelRequest < 3) { - o.artifactDestination = buildGoogleCloudAiplatformV1GcsDestination(); - o.deployToSameEndpoint = true; - o.tunedModelRef = buildGoogleCloudAiplatformV1TunedModelRef(); - o.tuningJob = buildGoogleCloudAiplatformV1TuningJob(); +core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInput = 0; +api.GoogleCloudAiplatformV1QuestionAnsweringQualityInput +buildGoogleCloudAiplatformV1QuestionAnsweringQualityInput() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringQualityInput(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInput++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInput < 3) { + o.instance = buildGoogleCloudAiplatformV1QuestionAnsweringQualityInstance(); + o.metricSpec = buildGoogleCloudAiplatformV1QuestionAnsweringQualitySpec(); } - buildCounterGoogleCloudAiplatformV1RebaseTunedModelRequest--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInput--; return o; } -void checkGoogleCloudAiplatformV1RebaseTunedModelRequest( - api.GoogleCloudAiplatformV1RebaseTunedModelRequest o, +void checkGoogleCloudAiplatformV1QuestionAnsweringQualityInput( + api.GoogleCloudAiplatformV1QuestionAnsweringQualityInput o, ) { - buildCounterGoogleCloudAiplatformV1RebaseTunedModelRequest++; - if (buildCounterGoogleCloudAiplatformV1RebaseTunedModelRequest < 3) { - checkGoogleCloudAiplatformV1GcsDestination(o.artifactDestination!); - unittest.expect(o.deployToSameEndpoint!, unittest.isTrue); - checkGoogleCloudAiplatformV1TunedModelRef(o.tunedModelRef!); - checkGoogleCloudAiplatformV1TuningJob(o.tuningJob!); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInput++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInput < 3) { + checkGoogleCloudAiplatformV1QuestionAnsweringQualityInstance(o.instance!); + checkGoogleCloudAiplatformV1QuestionAnsweringQualitySpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1RebaseTunedModelRequest--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInput--; } -core.int buildCounterGoogleCloudAiplatformV1RebootPersistentResourceRequest = 0; -api.GoogleCloudAiplatformV1RebootPersistentResourceRequest -buildGoogleCloudAiplatformV1RebootPersistentResourceRequest() { - final o = api.GoogleCloudAiplatformV1RebootPersistentResourceRequest(); - buildCounterGoogleCloudAiplatformV1RebootPersistentResourceRequest++; - if (buildCounterGoogleCloudAiplatformV1RebootPersistentResourceRequest < 3) {} - buildCounterGoogleCloudAiplatformV1RebootPersistentResourceRequest--; +core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInstance = + 0; +api.GoogleCloudAiplatformV1QuestionAnsweringQualityInstance +buildGoogleCloudAiplatformV1QuestionAnsweringQualityInstance() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringQualityInstance(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInstance++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInstance < 3) { + o.context = 'foo'; + o.instruction = 'foo'; + o.prediction = 'foo'; + o.reference = 'foo'; + } + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInstance--; return o; } -void checkGoogleCloudAiplatformV1RebootPersistentResourceRequest( - api.GoogleCloudAiplatformV1RebootPersistentResourceRequest o, +void checkGoogleCloudAiplatformV1QuestionAnsweringQualityInstance( + api.GoogleCloudAiplatformV1QuestionAnsweringQualityInstance o, ) { - buildCounterGoogleCloudAiplatformV1RebootPersistentResourceRequest++; - if (buildCounterGoogleCloudAiplatformV1RebootPersistentResourceRequest < 3) {} - buildCounterGoogleCloudAiplatformV1RebootPersistentResourceRequest--; -} - -core.List buildUnnamed345() => ['foo', 'foo']; - -void checkUnnamed345(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInstance++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInstance < 3) { + unittest.expect(o.context!, unittest.equals('foo')); + unittest.expect(o.instruction!, unittest.equals('foo')); + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityInstance--; } -core.int buildCounterGoogleCloudAiplatformV1RemoveContextChildrenRequest = 0; -api.GoogleCloudAiplatformV1RemoveContextChildrenRequest -buildGoogleCloudAiplatformV1RemoveContextChildrenRequest() { - final o = api.GoogleCloudAiplatformV1RemoveContextChildrenRequest(); - buildCounterGoogleCloudAiplatformV1RemoveContextChildrenRequest++; - if (buildCounterGoogleCloudAiplatformV1RemoveContextChildrenRequest < 3) { - o.childContexts = buildUnnamed345(); +core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityResult = 0; +api.GoogleCloudAiplatformV1QuestionAnsweringQualityResult +buildGoogleCloudAiplatformV1QuestionAnsweringQualityResult() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringQualityResult(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityResult++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityResult < 3) { + o.confidence = 42.0; + o.explanation = 'foo'; + o.score = 42.0; } - buildCounterGoogleCloudAiplatformV1RemoveContextChildrenRequest--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityResult--; return o; } -void checkGoogleCloudAiplatformV1RemoveContextChildrenRequest( - api.GoogleCloudAiplatformV1RemoveContextChildrenRequest o, +void checkGoogleCloudAiplatformV1QuestionAnsweringQualityResult( + api.GoogleCloudAiplatformV1QuestionAnsweringQualityResult o, ) { - buildCounterGoogleCloudAiplatformV1RemoveContextChildrenRequest++; - if (buildCounterGoogleCloudAiplatformV1RemoveContextChildrenRequest < 3) { - checkUnnamed345(o.childContexts!); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityResult++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityResult < 3) { + unittest.expect(o.confidence!, unittest.equals(42.0)); + unittest.expect(o.explanation!, unittest.equals('foo')); + unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1RemoveContextChildrenRequest--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualityResult--; } -core.int buildCounterGoogleCloudAiplatformV1RemoveContextChildrenResponse = 0; -api.GoogleCloudAiplatformV1RemoveContextChildrenResponse -buildGoogleCloudAiplatformV1RemoveContextChildrenResponse() { - final o = api.GoogleCloudAiplatformV1RemoveContextChildrenResponse(); - buildCounterGoogleCloudAiplatformV1RemoveContextChildrenResponse++; - if (buildCounterGoogleCloudAiplatformV1RemoveContextChildrenResponse < 3) {} - buildCounterGoogleCloudAiplatformV1RemoveContextChildrenResponse--; +core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualitySpec = 0; +api.GoogleCloudAiplatformV1QuestionAnsweringQualitySpec +buildGoogleCloudAiplatformV1QuestionAnsweringQualitySpec() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringQualitySpec(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualitySpec++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualitySpec < 3) { + o.useReference = true; + o.version = 42; + } + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualitySpec--; return o; } -void checkGoogleCloudAiplatformV1RemoveContextChildrenResponse( - api.GoogleCloudAiplatformV1RemoveContextChildrenResponse o, +void checkGoogleCloudAiplatformV1QuestionAnsweringQualitySpec( + api.GoogleCloudAiplatformV1QuestionAnsweringQualitySpec o, ) { - buildCounterGoogleCloudAiplatformV1RemoveContextChildrenResponse++; - if (buildCounterGoogleCloudAiplatformV1RemoveContextChildrenResponse < 3) {} - buildCounterGoogleCloudAiplatformV1RemoveContextChildrenResponse--; -} - -core.List buildUnnamed346() => ['foo', 'foo']; - -void checkUnnamed346(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualitySpec++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualitySpec < 3) { + unittest.expect(o.useReference!, unittest.isTrue); + unittest.expect(o.version!, unittest.equals(42)); + } + buildCounterGoogleCloudAiplatformV1QuestionAnsweringQualitySpec--; } -core.int buildCounterGoogleCloudAiplatformV1RemoveDatapointsRequest = 0; -api.GoogleCloudAiplatformV1RemoveDatapointsRequest -buildGoogleCloudAiplatformV1RemoveDatapointsRequest() { - final o = api.GoogleCloudAiplatformV1RemoveDatapointsRequest(); - buildCounterGoogleCloudAiplatformV1RemoveDatapointsRequest++; - if (buildCounterGoogleCloudAiplatformV1RemoveDatapointsRequest < 3) { - o.datapointIds = buildUnnamed346(); +core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput = 0; +api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceInput +buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceInput(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput < 3) { + o.instance = + buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance(); + o.metricSpec = buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec(); } - buildCounterGoogleCloudAiplatformV1RemoveDatapointsRequest--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput--; return o; } -void checkGoogleCloudAiplatformV1RemoveDatapointsRequest( - api.GoogleCloudAiplatformV1RemoveDatapointsRequest o, +void checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput( + api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceInput o, ) { - buildCounterGoogleCloudAiplatformV1RemoveDatapointsRequest++; - if (buildCounterGoogleCloudAiplatformV1RemoveDatapointsRequest < 3) { - checkUnnamed346(o.datapointIds!); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput < 3) { + checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance(o.instance!); + checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1RemoveDatapointsRequest--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput--; } -core.int buildCounterGoogleCloudAiplatformV1RemoveDatapointsResponse = 0; -api.GoogleCloudAiplatformV1RemoveDatapointsResponse -buildGoogleCloudAiplatformV1RemoveDatapointsResponse() { - final o = api.GoogleCloudAiplatformV1RemoveDatapointsResponse(); - buildCounterGoogleCloudAiplatformV1RemoveDatapointsResponse++; - if (buildCounterGoogleCloudAiplatformV1RemoveDatapointsResponse < 3) {} - buildCounterGoogleCloudAiplatformV1RemoveDatapointsResponse--; +core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance = + 0; +api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance +buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance < + 3) { + o.context = 'foo'; + o.instruction = 'foo'; + o.prediction = 'foo'; + o.reference = 'foo'; + } + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance--; return o; } -void checkGoogleCloudAiplatformV1RemoveDatapointsResponse( - api.GoogleCloudAiplatformV1RemoveDatapointsResponse o, +void checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance( + api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance o, ) { - buildCounterGoogleCloudAiplatformV1RemoveDatapointsResponse++; - if (buildCounterGoogleCloudAiplatformV1RemoveDatapointsResponse < 3) {} - buildCounterGoogleCloudAiplatformV1RemoveDatapointsResponse--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance < + 3) { + unittest.expect(o.context!, unittest.equals('foo')); + unittest.expect(o.instruction!, unittest.equals('foo')); + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance--; } -core.List buildUnnamed347() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult = + 0; +api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult +buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult < 3) { + o.confidence = 42.0; + o.explanation = 'foo'; + o.score = 42.0; + } + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult--; + return o; +} -void checkUnnamed347(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult( + api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult o, +) { + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult < 3) { + unittest.expect(o.confidence!, unittest.equals(42.0)); + unittest.expect(o.explanation!, unittest.equals('foo')); + unittest.expect(o.score!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult--; } -core.int buildCounterGoogleCloudAiplatformV1ReservationAffinity = 0; -api.GoogleCloudAiplatformV1ReservationAffinity -buildGoogleCloudAiplatformV1ReservationAffinity() { - final o = api.GoogleCloudAiplatformV1ReservationAffinity(); - buildCounterGoogleCloudAiplatformV1ReservationAffinity++; - if (buildCounterGoogleCloudAiplatformV1ReservationAffinity < 3) { - o.key = 'foo'; - o.reservationAffinityType = 'foo'; - o.values = buildUnnamed347(); +core.int buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec = 0; +api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec +buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec() { + final o = api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec(); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec < 3) { + o.useReference = true; + o.version = 42; } - buildCounterGoogleCloudAiplatformV1ReservationAffinity--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec--; return o; } -void checkGoogleCloudAiplatformV1ReservationAffinity( - api.GoogleCloudAiplatformV1ReservationAffinity o, +void checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec( + api.GoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec o, ) { - buildCounterGoogleCloudAiplatformV1ReservationAffinity++; - if (buildCounterGoogleCloudAiplatformV1ReservationAffinity < 3) { - unittest.expect(o.key!, unittest.equals('foo')); - unittest.expect(o.reservationAffinityType!, unittest.equals('foo')); - checkUnnamed347(o.values!); + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec++; + if (buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec < 3) { + unittest.expect(o.useReference!, unittest.isTrue); + unittest.expect(o.version!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1ReservationAffinity--; + buildCounterGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec--; } -core.int buildCounterGoogleCloudAiplatformV1ResourcePool = 0; -api.GoogleCloudAiplatformV1ResourcePool -buildGoogleCloudAiplatformV1ResourcePool() { - final o = api.GoogleCloudAiplatformV1ResourcePool(); - buildCounterGoogleCloudAiplatformV1ResourcePool++; - if (buildCounterGoogleCloudAiplatformV1ResourcePool < 3) { - o.autoscalingSpec = - buildGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec(); - o.diskSpec = buildGoogleCloudAiplatformV1DiskSpec(); - o.id = 'foo'; - o.machineSpec = buildGoogleCloudAiplatformV1MachineSpec(); - o.replicaCount = 'foo'; - o.usedReplicaCount = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1RagChunk = 0; +api.GoogleCloudAiplatformV1RagChunk buildGoogleCloudAiplatformV1RagChunk() { + final o = api.GoogleCloudAiplatformV1RagChunk(); + buildCounterGoogleCloudAiplatformV1RagChunk++; + if (buildCounterGoogleCloudAiplatformV1RagChunk < 3) { + o.pageSpan = buildGoogleCloudAiplatformV1RagChunkPageSpan(); + o.text = 'foo'; } - buildCounterGoogleCloudAiplatformV1ResourcePool--; + buildCounterGoogleCloudAiplatformV1RagChunk--; return o; } -void checkGoogleCloudAiplatformV1ResourcePool( - api.GoogleCloudAiplatformV1ResourcePool o, +void checkGoogleCloudAiplatformV1RagChunk( + api.GoogleCloudAiplatformV1RagChunk o, ) { - buildCounterGoogleCloudAiplatformV1ResourcePool++; - if (buildCounterGoogleCloudAiplatformV1ResourcePool < 3) { - checkGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec(o.autoscalingSpec!); - checkGoogleCloudAiplatformV1DiskSpec(o.diskSpec!); - unittest.expect(o.id!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1MachineSpec(o.machineSpec!); - unittest.expect(o.replicaCount!, unittest.equals('foo')); - unittest.expect(o.usedReplicaCount!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1RagChunk++; + if (buildCounterGoogleCloudAiplatformV1RagChunk < 3) { + checkGoogleCloudAiplatformV1RagChunkPageSpan(o.pageSpan!); + unittest.expect(o.text!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ResourcePool--; + buildCounterGoogleCloudAiplatformV1RagChunk--; } -core.int buildCounterGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec = 0; -api.GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec -buildGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec() { - final o = api.GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec(); - buildCounterGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec++; - if (buildCounterGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec < 3) { - o.maxReplicaCount = 'foo'; - o.minReplicaCount = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1RagChunkPageSpan = 0; +api.GoogleCloudAiplatformV1RagChunkPageSpan +buildGoogleCloudAiplatformV1RagChunkPageSpan() { + final o = api.GoogleCloudAiplatformV1RagChunkPageSpan(); + buildCounterGoogleCloudAiplatformV1RagChunkPageSpan++; + if (buildCounterGoogleCloudAiplatformV1RagChunkPageSpan < 3) { + o.firstPage = 42; + o.lastPage = 42; } - buildCounterGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec--; + buildCounterGoogleCloudAiplatformV1RagChunkPageSpan--; return o; } -void checkGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec( - api.GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec o, +void checkGoogleCloudAiplatformV1RagChunkPageSpan( + api.GoogleCloudAiplatformV1RagChunkPageSpan o, ) { - buildCounterGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec++; - if (buildCounterGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec < 3) { - unittest.expect(o.maxReplicaCount!, unittest.equals('foo')); - unittest.expect(o.minReplicaCount!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1RagChunkPageSpan++; + if (buildCounterGoogleCloudAiplatformV1RagChunkPageSpan < 3) { + unittest.expect(o.firstPage!, unittest.equals(42)); + unittest.expect(o.lastPage!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec--; + buildCounterGoogleCloudAiplatformV1RagChunkPageSpan--; } -core.Map buildUnnamed348() => { - 'x': 'foo', - 'y': 'foo', -}; +core.List buildUnnamed364() => [ + buildGoogleCloudAiplatformV1RagContextsContext(), + buildGoogleCloudAiplatformV1RagContextsContext(), +]; -void checkUnnamed348(core.Map o) { +void checkUnnamed364( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1RagContextsContext(o[0]); + checkGoogleCloudAiplatformV1RagContextsContext(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ResourceRuntime = 0; -api.GoogleCloudAiplatformV1ResourceRuntime -buildGoogleCloudAiplatformV1ResourceRuntime() { - final o = api.GoogleCloudAiplatformV1ResourceRuntime(); - buildCounterGoogleCloudAiplatformV1ResourceRuntime++; - if (buildCounterGoogleCloudAiplatformV1ResourceRuntime < 3) { - o.accessUris = buildUnnamed348(); +core.int buildCounterGoogleCloudAiplatformV1RagContexts = 0; +api.GoogleCloudAiplatformV1RagContexts +buildGoogleCloudAiplatformV1RagContexts() { + final o = api.GoogleCloudAiplatformV1RagContexts(); + buildCounterGoogleCloudAiplatformV1RagContexts++; + if (buildCounterGoogleCloudAiplatformV1RagContexts < 3) { + o.contexts = buildUnnamed364(); } - buildCounterGoogleCloudAiplatformV1ResourceRuntime--; + buildCounterGoogleCloudAiplatformV1RagContexts--; return o; } -void checkGoogleCloudAiplatformV1ResourceRuntime( - api.GoogleCloudAiplatformV1ResourceRuntime o, +void checkGoogleCloudAiplatformV1RagContexts( + api.GoogleCloudAiplatformV1RagContexts o, ) { - buildCounterGoogleCloudAiplatformV1ResourceRuntime++; - if (buildCounterGoogleCloudAiplatformV1ResourceRuntime < 3) { - checkUnnamed348(o.accessUris!); + buildCounterGoogleCloudAiplatformV1RagContexts++; + if (buildCounterGoogleCloudAiplatformV1RagContexts < 3) { + checkUnnamed364(o.contexts!); } - buildCounterGoogleCloudAiplatformV1ResourceRuntime--; + buildCounterGoogleCloudAiplatformV1RagContexts--; } -core.int buildCounterGoogleCloudAiplatformV1ResourceRuntimeSpec = 0; -api.GoogleCloudAiplatformV1ResourceRuntimeSpec -buildGoogleCloudAiplatformV1ResourceRuntimeSpec() { - final o = api.GoogleCloudAiplatformV1ResourceRuntimeSpec(); - buildCounterGoogleCloudAiplatformV1ResourceRuntimeSpec++; - if (buildCounterGoogleCloudAiplatformV1ResourceRuntimeSpec < 3) { - o.raySpec = buildGoogleCloudAiplatformV1RaySpec(); - o.serviceAccountSpec = buildGoogleCloudAiplatformV1ServiceAccountSpec(); +core.int buildCounterGoogleCloudAiplatformV1RagContextsContext = 0; +api.GoogleCloudAiplatformV1RagContextsContext +buildGoogleCloudAiplatformV1RagContextsContext() { + final o = api.GoogleCloudAiplatformV1RagContextsContext(); + buildCounterGoogleCloudAiplatformV1RagContextsContext++; + if (buildCounterGoogleCloudAiplatformV1RagContextsContext < 3) { + o.chunk = buildGoogleCloudAiplatformV1RagChunk(); + o.score = 42.0; + o.sourceDisplayName = 'foo'; + o.sourceUri = 'foo'; + o.text = 'foo'; } - buildCounterGoogleCloudAiplatformV1ResourceRuntimeSpec--; + buildCounterGoogleCloudAiplatformV1RagContextsContext--; return o; } -void checkGoogleCloudAiplatformV1ResourceRuntimeSpec( - api.GoogleCloudAiplatformV1ResourceRuntimeSpec o, +void checkGoogleCloudAiplatformV1RagContextsContext( + api.GoogleCloudAiplatformV1RagContextsContext o, ) { - buildCounterGoogleCloudAiplatformV1ResourceRuntimeSpec++; - if (buildCounterGoogleCloudAiplatformV1ResourceRuntimeSpec < 3) { - checkGoogleCloudAiplatformV1RaySpec(o.raySpec!); - checkGoogleCloudAiplatformV1ServiceAccountSpec(o.serviceAccountSpec!); + buildCounterGoogleCloudAiplatformV1RagContextsContext++; + if (buildCounterGoogleCloudAiplatformV1RagContextsContext < 3) { + checkGoogleCloudAiplatformV1RagChunk(o.chunk!); + unittest.expect(o.score!, unittest.equals(42.0)); + unittest.expect(o.sourceDisplayName!, unittest.equals('foo')); + unittest.expect(o.sourceUri!, unittest.equals('foo')); + unittest.expect(o.text!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ResourceRuntimeSpec--; + buildCounterGoogleCloudAiplatformV1RagContextsContext--; } -core.int buildCounterGoogleCloudAiplatformV1ResourcesConsumed = 0; -api.GoogleCloudAiplatformV1ResourcesConsumed -buildGoogleCloudAiplatformV1ResourcesConsumed() { - final o = api.GoogleCloudAiplatformV1ResourcesConsumed(); - buildCounterGoogleCloudAiplatformV1ResourcesConsumed++; - if (buildCounterGoogleCloudAiplatformV1ResourcesConsumed < 3) { - o.replicaHours = 42.0; +core.int buildCounterGoogleCloudAiplatformV1RagCorpus = 0; +api.GoogleCloudAiplatformV1RagCorpus buildGoogleCloudAiplatformV1RagCorpus() { + final o = api.GoogleCloudAiplatformV1RagCorpus(); + buildCounterGoogleCloudAiplatformV1RagCorpus++; + if (buildCounterGoogleCloudAiplatformV1RagCorpus < 3) { + o.corpusStatus = buildGoogleCloudAiplatformV1CorpusStatus(); + o.createTime = 'foo'; + o.description = 'foo'; + o.displayName = 'foo'; + o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.name = 'foo'; + o.updateTime = 'foo'; + o.vectorDbConfig = buildGoogleCloudAiplatformV1RagVectorDbConfig(); + o.vertexAiSearchConfig = buildGoogleCloudAiplatformV1VertexAiSearchConfig(); } - buildCounterGoogleCloudAiplatformV1ResourcesConsumed--; + buildCounterGoogleCloudAiplatformV1RagCorpus--; return o; } -void checkGoogleCloudAiplatformV1ResourcesConsumed( - api.GoogleCloudAiplatformV1ResourcesConsumed o, +void checkGoogleCloudAiplatformV1RagCorpus( + api.GoogleCloudAiplatformV1RagCorpus o, ) { - buildCounterGoogleCloudAiplatformV1ResourcesConsumed++; - if (buildCounterGoogleCloudAiplatformV1ResourcesConsumed < 3) { - unittest.expect(o.replicaHours!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1RagCorpus++; + if (buildCounterGoogleCloudAiplatformV1RagCorpus < 3) { + checkGoogleCloudAiplatformV1CorpusStatus(o.corpusStatus!); + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1RagVectorDbConfig(o.vectorDbConfig!); + checkGoogleCloudAiplatformV1VertexAiSearchConfig(o.vertexAiSearchConfig!); } - buildCounterGoogleCloudAiplatformV1ResourcesConsumed--; -} - -core.int -buildCounterGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest = - 0; -api.GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest -buildGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest() { - final o = - api.GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest(); - buildCounterGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest++; - if (buildCounterGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest < - 3) {} - buildCounterGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest--; - return o; -} - -void checkGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest( - api.GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest o, -) { - buildCounterGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest++; - if (buildCounterGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest < - 3) {} - buildCounterGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest--; + buildCounterGoogleCloudAiplatformV1RagCorpus--; } -core.int buildCounterGoogleCloudAiplatformV1ResumeScheduleRequest = 0; -api.GoogleCloudAiplatformV1ResumeScheduleRequest -buildGoogleCloudAiplatformV1ResumeScheduleRequest() { - final o = api.GoogleCloudAiplatformV1ResumeScheduleRequest(); - buildCounterGoogleCloudAiplatformV1ResumeScheduleRequest++; - if (buildCounterGoogleCloudAiplatformV1ResumeScheduleRequest < 3) { - o.catchUp = true; +core.int buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfig = 0; +api.GoogleCloudAiplatformV1RagEmbeddingModelConfig +buildGoogleCloudAiplatformV1RagEmbeddingModelConfig() { + final o = api.GoogleCloudAiplatformV1RagEmbeddingModelConfig(); + buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfig++; + if (buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfig < 3) { + o.vertexPredictionEndpoint = + buildGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint(); } - buildCounterGoogleCloudAiplatformV1ResumeScheduleRequest--; + buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfig--; return o; } -void checkGoogleCloudAiplatformV1ResumeScheduleRequest( - api.GoogleCloudAiplatformV1ResumeScheduleRequest o, +void checkGoogleCloudAiplatformV1RagEmbeddingModelConfig( + api.GoogleCloudAiplatformV1RagEmbeddingModelConfig o, ) { - buildCounterGoogleCloudAiplatformV1ResumeScheduleRequest++; - if (buildCounterGoogleCloudAiplatformV1ResumeScheduleRequest < 3) { - unittest.expect(o.catchUp!, unittest.isTrue); + buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfig++; + if (buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfig < 3) { + checkGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint( + o.vertexPredictionEndpoint!, + ); } - buildCounterGoogleCloudAiplatformV1ResumeScheduleRequest--; + buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfig--; } -core.int buildCounterGoogleCloudAiplatformV1Retrieval = 0; -api.GoogleCloudAiplatformV1Retrieval buildGoogleCloudAiplatformV1Retrieval() { - final o = api.GoogleCloudAiplatformV1Retrieval(); - buildCounterGoogleCloudAiplatformV1Retrieval++; - if (buildCounterGoogleCloudAiplatformV1Retrieval < 3) { - o.disableAttribution = true; - o.externalApi = buildGoogleCloudAiplatformV1ExternalApi(); - o.vertexAiSearch = buildGoogleCloudAiplatformV1VertexAISearch(); - o.vertexRagStore = buildGoogleCloudAiplatformV1VertexRagStore(); +core.int +buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint = + 0; +api.GoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint +buildGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint() { + final o = + api.GoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint(); + buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint++; + if (buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint < + 3) { + o.endpoint = 'foo'; + o.model = 'foo'; + o.modelVersionId = 'foo'; } - buildCounterGoogleCloudAiplatformV1Retrieval--; + buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint--; return o; } -void checkGoogleCloudAiplatformV1Retrieval( - api.GoogleCloudAiplatformV1Retrieval o, +void +checkGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint( + api.GoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint o, ) { - buildCounterGoogleCloudAiplatformV1Retrieval++; - if (buildCounterGoogleCloudAiplatformV1Retrieval < 3) { - unittest.expect(o.disableAttribution!, unittest.isTrue); - checkGoogleCloudAiplatformV1ExternalApi(o.externalApi!); - checkGoogleCloudAiplatformV1VertexAISearch(o.vertexAiSearch!); - checkGoogleCloudAiplatformV1VertexRagStore(o.vertexRagStore!); + buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint++; + if (buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint < + 3) { + unittest.expect(o.endpoint!, unittest.equals('foo')); + unittest.expect(o.model!, unittest.equals('foo')); + unittest.expect(o.modelVersionId!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1Retrieval--; + buildCounterGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint--; } -core.int buildCounterGoogleCloudAiplatformV1RetrievalConfig = 0; -api.GoogleCloudAiplatformV1RetrievalConfig -buildGoogleCloudAiplatformV1RetrievalConfig() { - final o = api.GoogleCloudAiplatformV1RetrievalConfig(); - buildCounterGoogleCloudAiplatformV1RetrievalConfig++; - if (buildCounterGoogleCloudAiplatformV1RetrievalConfig < 3) { - o.languageCode = 'foo'; - o.latLng = buildGoogleTypeLatLng(); +core.int buildCounterGoogleCloudAiplatformV1RagEngineConfig = 0; +api.GoogleCloudAiplatformV1RagEngineConfig +buildGoogleCloudAiplatformV1RagEngineConfig() { + final o = api.GoogleCloudAiplatformV1RagEngineConfig(); + buildCounterGoogleCloudAiplatformV1RagEngineConfig++; + if (buildCounterGoogleCloudAiplatformV1RagEngineConfig < 3) { + o.name = 'foo'; + o.ragManagedDbConfig = buildGoogleCloudAiplatformV1RagManagedDbConfig(); } - buildCounterGoogleCloudAiplatformV1RetrievalConfig--; + buildCounterGoogleCloudAiplatformV1RagEngineConfig--; return o; } -void checkGoogleCloudAiplatformV1RetrievalConfig( - api.GoogleCloudAiplatformV1RetrievalConfig o, +void checkGoogleCloudAiplatformV1RagEngineConfig( + api.GoogleCloudAiplatformV1RagEngineConfig o, ) { - buildCounterGoogleCloudAiplatformV1RetrievalConfig++; - if (buildCounterGoogleCloudAiplatformV1RetrievalConfig < 3) { - unittest.expect(o.languageCode!, unittest.equals('foo')); - checkGoogleTypeLatLng(o.latLng!); + buildCounterGoogleCloudAiplatformV1RagEngineConfig++; + if (buildCounterGoogleCloudAiplatformV1RagEngineConfig < 3) { + unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1RagManagedDbConfig(o.ragManagedDbConfig!); } - buildCounterGoogleCloudAiplatformV1RetrievalConfig--; + buildCounterGoogleCloudAiplatformV1RagEngineConfig--; } -core.int buildCounterGoogleCloudAiplatformV1RetrievalMetadata = 0; -api.GoogleCloudAiplatformV1RetrievalMetadata -buildGoogleCloudAiplatformV1RetrievalMetadata() { - final o = api.GoogleCloudAiplatformV1RetrievalMetadata(); - buildCounterGoogleCloudAiplatformV1RetrievalMetadata++; - if (buildCounterGoogleCloudAiplatformV1RetrievalMetadata < 3) { - o.googleSearchDynamicRetrievalScore = 42.0; +core.int buildCounterGoogleCloudAiplatformV1RagFile = 0; +api.GoogleCloudAiplatformV1RagFile buildGoogleCloudAiplatformV1RagFile() { + final o = api.GoogleCloudAiplatformV1RagFile(); + buildCounterGoogleCloudAiplatformV1RagFile++; + if (buildCounterGoogleCloudAiplatformV1RagFile < 3) { + o.createTime = 'foo'; + o.description = 'foo'; + o.directUploadSource = buildGoogleCloudAiplatformV1DirectUploadSource(); + o.displayName = 'foo'; + o.fileStatus = buildGoogleCloudAiplatformV1FileStatus(); + o.gcsSource = buildGoogleCloudAiplatformV1GcsSource(); + o.googleDriveSource = buildGoogleCloudAiplatformV1GoogleDriveSource(); + o.jiraSource = buildGoogleCloudAiplatformV1JiraSource(); + o.name = 'foo'; + o.sharePointSources = buildGoogleCloudAiplatformV1SharePointSources(); + o.slackSource = buildGoogleCloudAiplatformV1SlackSource(); + o.updateTime = 'foo'; + o.userMetadata = 'foo'; } - buildCounterGoogleCloudAiplatformV1RetrievalMetadata--; + buildCounterGoogleCloudAiplatformV1RagFile--; return o; } -void checkGoogleCloudAiplatformV1RetrievalMetadata( - api.GoogleCloudAiplatformV1RetrievalMetadata o, -) { - buildCounterGoogleCloudAiplatformV1RetrievalMetadata++; - if (buildCounterGoogleCloudAiplatformV1RetrievalMetadata < 3) { - unittest.expect( - o.googleSearchDynamicRetrievalScore!, - unittest.equals(42.0), - ); +void checkGoogleCloudAiplatformV1RagFile(api.GoogleCloudAiplatformV1RagFile o) { + buildCounterGoogleCloudAiplatformV1RagFile++; + if (buildCounterGoogleCloudAiplatformV1RagFile < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1DirectUploadSource(o.directUploadSource!); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1FileStatus(o.fileStatus!); + checkGoogleCloudAiplatformV1GcsSource(o.gcsSource!); + checkGoogleCloudAiplatformV1GoogleDriveSource(o.googleDriveSource!); + checkGoogleCloudAiplatformV1JiraSource(o.jiraSource!); + unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1SharePointSources(o.sharePointSources!); + checkGoogleCloudAiplatformV1SlackSource(o.slackSource!); + unittest.expect(o.updateTime!, unittest.equals('foo')); + unittest.expect(o.userMetadata!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RetrievalMetadata--; + buildCounterGoogleCloudAiplatformV1RagFile--; } -core.int buildCounterGoogleCloudAiplatformV1RetrieveContextsRequest = 0; -api.GoogleCloudAiplatformV1RetrieveContextsRequest -buildGoogleCloudAiplatformV1RetrieveContextsRequest() { - final o = api.GoogleCloudAiplatformV1RetrieveContextsRequest(); - buildCounterGoogleCloudAiplatformV1RetrieveContextsRequest++; - if (buildCounterGoogleCloudAiplatformV1RetrieveContextsRequest < 3) { - o.query = buildGoogleCloudAiplatformV1RagQuery(); - o.vertexRagStore = - buildGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore(); +core.int buildCounterGoogleCloudAiplatformV1RagFileChunkingConfig = 0; +api.GoogleCloudAiplatformV1RagFileChunkingConfig +buildGoogleCloudAiplatformV1RagFileChunkingConfig() { + final o = api.GoogleCloudAiplatformV1RagFileChunkingConfig(); + buildCounterGoogleCloudAiplatformV1RagFileChunkingConfig++; + if (buildCounterGoogleCloudAiplatformV1RagFileChunkingConfig < 3) { + o.fixedLengthChunking = + buildGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking(); } - buildCounterGoogleCloudAiplatformV1RetrieveContextsRequest--; + buildCounterGoogleCloudAiplatformV1RagFileChunkingConfig--; return o; } -void checkGoogleCloudAiplatformV1RetrieveContextsRequest( - api.GoogleCloudAiplatformV1RetrieveContextsRequest o, +void checkGoogleCloudAiplatformV1RagFileChunkingConfig( + api.GoogleCloudAiplatformV1RagFileChunkingConfig o, ) { - buildCounterGoogleCloudAiplatformV1RetrieveContextsRequest++; - if (buildCounterGoogleCloudAiplatformV1RetrieveContextsRequest < 3) { - checkGoogleCloudAiplatformV1RagQuery(o.query!); - checkGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore( - o.vertexRagStore!, + buildCounterGoogleCloudAiplatformV1RagFileChunkingConfig++; + if (buildCounterGoogleCloudAiplatformV1RagFileChunkingConfig < 3) { + checkGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking( + o.fixedLengthChunking!, ); } - buildCounterGoogleCloudAiplatformV1RetrieveContextsRequest--; -} - -core.List< - api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource -> -buildUnnamed349() => [ - buildGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource(), - buildGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource(), -]; - -void checkUnnamed349( - core.List< - api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource - > - o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource( - o[0], - ); - checkGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource( - o[1], - ); + buildCounterGoogleCloudAiplatformV1RagFileChunkingConfig--; } core.int -buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore = 0; -api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore -buildGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore() { - final o = api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore(); - buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore++; - if (buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore < +buildCounterGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking = 0; +api.GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking +buildGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking() { + final o = + api.GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking(); + buildCounterGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking++; + if (buildCounterGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking < 3) { - o.ragResources = buildUnnamed349(); - o.vectorDistanceThreshold = 42.0; + o.chunkOverlap = 42; + o.chunkSize = 42; } - buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore--; + buildCounterGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking--; return o; } -void checkGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore( - api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore o, +void checkGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking( + api.GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking o, ) { - buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore++; - if (buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore < + buildCounterGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking++; + if (buildCounterGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking < 3) { - checkUnnamed349(o.ragResources!); - unittest.expect(o.vectorDistanceThreshold!, unittest.equals(42.0)); + unittest.expect(o.chunkOverlap!, unittest.equals(42)); + unittest.expect(o.chunkSize!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore--; -} - -core.List buildUnnamed350() => ['foo', 'foo']; - -void checkUnnamed350(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking--; } -core.int -buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource = - 0; -api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource -buildGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource() { - final o = - api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource(); - buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource++; - if (buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource < - 3) { - o.ragCorpus = 'foo'; - o.ragFileIds = buildUnnamed350(); +core.int buildCounterGoogleCloudAiplatformV1RagFileParsingConfig = 0; +api.GoogleCloudAiplatformV1RagFileParsingConfig +buildGoogleCloudAiplatformV1RagFileParsingConfig() { + final o = api.GoogleCloudAiplatformV1RagFileParsingConfig(); + buildCounterGoogleCloudAiplatformV1RagFileParsingConfig++; + if (buildCounterGoogleCloudAiplatformV1RagFileParsingConfig < 3) { + o.layoutParser = + buildGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser(); + o.llmParser = buildGoogleCloudAiplatformV1RagFileParsingConfigLlmParser(); } - buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource--; + buildCounterGoogleCloudAiplatformV1RagFileParsingConfig--; return o; } -void -checkGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource( - api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource o, +void checkGoogleCloudAiplatformV1RagFileParsingConfig( + api.GoogleCloudAiplatformV1RagFileParsingConfig o, ) { - buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource++; - if (buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource < - 3) { - unittest.expect(o.ragCorpus!, unittest.equals('foo')); - checkUnnamed350(o.ragFileIds!); + buildCounterGoogleCloudAiplatformV1RagFileParsingConfig++; + if (buildCounterGoogleCloudAiplatformV1RagFileParsingConfig < 3) { + checkGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser( + o.layoutParser!, + ); + checkGoogleCloudAiplatformV1RagFileParsingConfigLlmParser(o.llmParser!); } - buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource--; + buildCounterGoogleCloudAiplatformV1RagFileParsingConfig--; } -core.int buildCounterGoogleCloudAiplatformV1RetrieveContextsResponse = 0; -api.GoogleCloudAiplatformV1RetrieveContextsResponse -buildGoogleCloudAiplatformV1RetrieveContextsResponse() { - final o = api.GoogleCloudAiplatformV1RetrieveContextsResponse(); - buildCounterGoogleCloudAiplatformV1RetrieveContextsResponse++; - if (buildCounterGoogleCloudAiplatformV1RetrieveContextsResponse < 3) { - o.contexts = buildGoogleCloudAiplatformV1RagContexts(); +core.int buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser = + 0; +api.GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser +buildGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser() { + final o = api.GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser(); + buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser++; + if (buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser < 3) { + o.maxParsingRequestsPerMin = 42; + o.processorName = 'foo'; } - buildCounterGoogleCloudAiplatformV1RetrieveContextsResponse--; + buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser--; return o; } -void checkGoogleCloudAiplatformV1RetrieveContextsResponse( - api.GoogleCloudAiplatformV1RetrieveContextsResponse o, +void checkGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser( + api.GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser o, ) { - buildCounterGoogleCloudAiplatformV1RetrieveContextsResponse++; - if (buildCounterGoogleCloudAiplatformV1RetrieveContextsResponse < 3) { - checkGoogleCloudAiplatformV1RagContexts(o.contexts!); + buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser++; + if (buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser < 3) { + unittest.expect(o.maxParsingRequestsPerMin!, unittest.equals(42)); + unittest.expect(o.processorName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RetrieveContextsResponse--; + buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser--; } -core.List buildUnnamed351() => [ - buildGoogleCloudAiplatformV1RougeInstance(), - buildGoogleCloudAiplatformV1RougeInstance(), -]; +core.int buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLlmParser = 0; +api.GoogleCloudAiplatformV1RagFileParsingConfigLlmParser +buildGoogleCloudAiplatformV1RagFileParsingConfigLlmParser() { + final o = api.GoogleCloudAiplatformV1RagFileParsingConfigLlmParser(); + buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLlmParser++; + if (buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLlmParser < 3) { + o.customParsingPrompt = 'foo'; + o.maxParsingRequestsPerMin = 42; + o.modelName = 'foo'; + } + buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLlmParser--; + return o; +} -void checkUnnamed351(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1RougeInstance(o[0]); - checkGoogleCloudAiplatformV1RougeInstance(o[1]); +void checkGoogleCloudAiplatformV1RagFileParsingConfigLlmParser( + api.GoogleCloudAiplatformV1RagFileParsingConfigLlmParser o, +) { + buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLlmParser++; + if (buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLlmParser < 3) { + unittest.expect(o.customParsingPrompt!, unittest.equals('foo')); + unittest.expect(o.maxParsingRequestsPerMin!, unittest.equals(42)); + unittest.expect(o.modelName!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1RagFileParsingConfigLlmParser--; } -core.int buildCounterGoogleCloudAiplatformV1RougeInput = 0; -api.GoogleCloudAiplatformV1RougeInput buildGoogleCloudAiplatformV1RougeInput() { - final o = api.GoogleCloudAiplatformV1RougeInput(); - buildCounterGoogleCloudAiplatformV1RougeInput++; - if (buildCounterGoogleCloudAiplatformV1RougeInput < 3) { - o.instances = buildUnnamed351(); - o.metricSpec = buildGoogleCloudAiplatformV1RougeSpec(); +core.int buildCounterGoogleCloudAiplatformV1RagFileTransformationConfig = 0; +api.GoogleCloudAiplatformV1RagFileTransformationConfig +buildGoogleCloudAiplatformV1RagFileTransformationConfig() { + final o = api.GoogleCloudAiplatformV1RagFileTransformationConfig(); + buildCounterGoogleCloudAiplatformV1RagFileTransformationConfig++; + if (buildCounterGoogleCloudAiplatformV1RagFileTransformationConfig < 3) { + o.ragFileChunkingConfig = + buildGoogleCloudAiplatformV1RagFileChunkingConfig(); } - buildCounterGoogleCloudAiplatformV1RougeInput--; + buildCounterGoogleCloudAiplatformV1RagFileTransformationConfig--; return o; } -void checkGoogleCloudAiplatformV1RougeInput( - api.GoogleCloudAiplatformV1RougeInput o, +void checkGoogleCloudAiplatformV1RagFileTransformationConfig( + api.GoogleCloudAiplatformV1RagFileTransformationConfig o, ) { - buildCounterGoogleCloudAiplatformV1RougeInput++; - if (buildCounterGoogleCloudAiplatformV1RougeInput < 3) { - checkUnnamed351(o.instances!); - checkGoogleCloudAiplatformV1RougeSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1RagFileTransformationConfig++; + if (buildCounterGoogleCloudAiplatformV1RagFileTransformationConfig < 3) { + checkGoogleCloudAiplatformV1RagFileChunkingConfig(o.ragFileChunkingConfig!); } - buildCounterGoogleCloudAiplatformV1RougeInput--; + buildCounterGoogleCloudAiplatformV1RagFileTransformationConfig--; } -core.int buildCounterGoogleCloudAiplatformV1RougeInstance = 0; -api.GoogleCloudAiplatformV1RougeInstance -buildGoogleCloudAiplatformV1RougeInstance() { - final o = api.GoogleCloudAiplatformV1RougeInstance(); - buildCounterGoogleCloudAiplatformV1RougeInstance++; - if (buildCounterGoogleCloudAiplatformV1RougeInstance < 3) { - o.prediction = 'foo'; - o.reference = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1RagManagedDbConfig = 0; +api.GoogleCloudAiplatformV1RagManagedDbConfig +buildGoogleCloudAiplatformV1RagManagedDbConfig() { + final o = api.GoogleCloudAiplatformV1RagManagedDbConfig(); + buildCounterGoogleCloudAiplatformV1RagManagedDbConfig++; + if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfig < 3) { + o.basic = buildGoogleCloudAiplatformV1RagManagedDbConfigBasic(); + o.scaled = buildGoogleCloudAiplatformV1RagManagedDbConfigScaled(); + o.unprovisioned = + buildGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned(); } - buildCounterGoogleCloudAiplatformV1RougeInstance--; + buildCounterGoogleCloudAiplatformV1RagManagedDbConfig--; return o; } -void checkGoogleCloudAiplatformV1RougeInstance( - api.GoogleCloudAiplatformV1RougeInstance o, +void checkGoogleCloudAiplatformV1RagManagedDbConfig( + api.GoogleCloudAiplatformV1RagManagedDbConfig o, ) { - buildCounterGoogleCloudAiplatformV1RougeInstance++; - if (buildCounterGoogleCloudAiplatformV1RougeInstance < 3) { - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1RagManagedDbConfig++; + if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfig < 3) { + checkGoogleCloudAiplatformV1RagManagedDbConfigBasic(o.basic!); + checkGoogleCloudAiplatformV1RagManagedDbConfigScaled(o.scaled!); + checkGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned( + o.unprovisioned!, + ); } - buildCounterGoogleCloudAiplatformV1RougeInstance--; + buildCounterGoogleCloudAiplatformV1RagManagedDbConfig--; } -core.int buildCounterGoogleCloudAiplatformV1RougeMetricValue = 0; -api.GoogleCloudAiplatformV1RougeMetricValue -buildGoogleCloudAiplatformV1RougeMetricValue() { - final o = api.GoogleCloudAiplatformV1RougeMetricValue(); - buildCounterGoogleCloudAiplatformV1RougeMetricValue++; - if (buildCounterGoogleCloudAiplatformV1RougeMetricValue < 3) { - o.score = 42.0; - } - buildCounterGoogleCloudAiplatformV1RougeMetricValue--; +core.int buildCounterGoogleCloudAiplatformV1RagManagedDbConfigBasic = 0; +api.GoogleCloudAiplatformV1RagManagedDbConfigBasic +buildGoogleCloudAiplatformV1RagManagedDbConfigBasic() { + final o = api.GoogleCloudAiplatformV1RagManagedDbConfigBasic(); + buildCounterGoogleCloudAiplatformV1RagManagedDbConfigBasic++; + if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfigBasic < 3) {} + buildCounterGoogleCloudAiplatformV1RagManagedDbConfigBasic--; return o; } -void checkGoogleCloudAiplatformV1RougeMetricValue( - api.GoogleCloudAiplatformV1RougeMetricValue o, +void checkGoogleCloudAiplatformV1RagManagedDbConfigBasic( + api.GoogleCloudAiplatformV1RagManagedDbConfigBasic o, ) { - buildCounterGoogleCloudAiplatformV1RougeMetricValue++; - if (buildCounterGoogleCloudAiplatformV1RougeMetricValue < 3) { - unittest.expect(o.score!, unittest.equals(42.0)); - } - buildCounterGoogleCloudAiplatformV1RougeMetricValue--; + buildCounterGoogleCloudAiplatformV1RagManagedDbConfigBasic++; + if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfigBasic < 3) {} + buildCounterGoogleCloudAiplatformV1RagManagedDbConfigBasic--; } -core.List buildUnnamed352() => [ - buildGoogleCloudAiplatformV1RougeMetricValue(), - buildGoogleCloudAiplatformV1RougeMetricValue(), -]; +core.int buildCounterGoogleCloudAiplatformV1RagManagedDbConfigScaled = 0; +api.GoogleCloudAiplatformV1RagManagedDbConfigScaled +buildGoogleCloudAiplatformV1RagManagedDbConfigScaled() { + final o = api.GoogleCloudAiplatformV1RagManagedDbConfigScaled(); + buildCounterGoogleCloudAiplatformV1RagManagedDbConfigScaled++; + if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfigScaled < 3) {} + buildCounterGoogleCloudAiplatformV1RagManagedDbConfigScaled--; + return o; +} -void checkUnnamed352(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1RougeMetricValue(o[0]); - checkGoogleCloudAiplatformV1RougeMetricValue(o[1]); +void checkGoogleCloudAiplatformV1RagManagedDbConfigScaled( + api.GoogleCloudAiplatformV1RagManagedDbConfigScaled o, +) { + buildCounterGoogleCloudAiplatformV1RagManagedDbConfigScaled++; + if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfigScaled < 3) {} + buildCounterGoogleCloudAiplatformV1RagManagedDbConfigScaled--; } -core.int buildCounterGoogleCloudAiplatformV1RougeResults = 0; -api.GoogleCloudAiplatformV1RougeResults -buildGoogleCloudAiplatformV1RougeResults() { - final o = api.GoogleCloudAiplatformV1RougeResults(); - buildCounterGoogleCloudAiplatformV1RougeResults++; - if (buildCounterGoogleCloudAiplatformV1RougeResults < 3) { - o.rougeMetricValues = buildUnnamed352(); - } - buildCounterGoogleCloudAiplatformV1RougeResults--; +core.int buildCounterGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned = 0; +api.GoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned +buildGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned() { + final o = api.GoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned(); + buildCounterGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned++; + if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned < 3) {} + buildCounterGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned--; return o; } -void checkGoogleCloudAiplatformV1RougeResults( - api.GoogleCloudAiplatformV1RougeResults o, +void checkGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned( + api.GoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned o, ) { - buildCounterGoogleCloudAiplatformV1RougeResults++; - if (buildCounterGoogleCloudAiplatformV1RougeResults < 3) { - checkUnnamed352(o.rougeMetricValues!); - } - buildCounterGoogleCloudAiplatformV1RougeResults--; + buildCounterGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned++; + if (buildCounterGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned < 3) {} + buildCounterGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned--; } -core.int buildCounterGoogleCloudAiplatformV1RougeSpec = 0; -api.GoogleCloudAiplatformV1RougeSpec buildGoogleCloudAiplatformV1RougeSpec() { - final o = api.GoogleCloudAiplatformV1RougeSpec(); - buildCounterGoogleCloudAiplatformV1RougeSpec++; - if (buildCounterGoogleCloudAiplatformV1RougeSpec < 3) { - o.rougeType = 'foo'; - o.splitSummaries = true; - o.useStemmer = true; +core.int buildCounterGoogleCloudAiplatformV1RagQuery = 0; +api.GoogleCloudAiplatformV1RagQuery buildGoogleCloudAiplatformV1RagQuery() { + final o = api.GoogleCloudAiplatformV1RagQuery(); + buildCounterGoogleCloudAiplatformV1RagQuery++; + if (buildCounterGoogleCloudAiplatformV1RagQuery < 3) { + o.ragRetrievalConfig = buildGoogleCloudAiplatformV1RagRetrievalConfig(); + o.text = 'foo'; } - buildCounterGoogleCloudAiplatformV1RougeSpec--; + buildCounterGoogleCloudAiplatformV1RagQuery--; return o; } -void checkGoogleCloudAiplatformV1RougeSpec( - api.GoogleCloudAiplatformV1RougeSpec o, +void checkGoogleCloudAiplatformV1RagQuery( + api.GoogleCloudAiplatformV1RagQuery o, ) { - buildCounterGoogleCloudAiplatformV1RougeSpec++; - if (buildCounterGoogleCloudAiplatformV1RougeSpec < 3) { - unittest.expect(o.rougeType!, unittest.equals('foo')); - unittest.expect(o.splitSummaries!, unittest.isTrue); - unittest.expect(o.useStemmer!, unittest.isTrue); + buildCounterGoogleCloudAiplatformV1RagQuery++; + if (buildCounterGoogleCloudAiplatformV1RagQuery < 3) { + checkGoogleCloudAiplatformV1RagRetrievalConfig(o.ragRetrievalConfig!); + unittest.expect(o.text!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RougeSpec--; + buildCounterGoogleCloudAiplatformV1RagQuery--; } -core.int -buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput = 0; -api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput -buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput() { - final o = api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput(); - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput++; - if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput < - 3) { - o.instance = - buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance(); - o.metricSpec = - buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec(); +core.int buildCounterGoogleCloudAiplatformV1RagRetrievalConfig = 0; +api.GoogleCloudAiplatformV1RagRetrievalConfig +buildGoogleCloudAiplatformV1RagRetrievalConfig() { + final o = api.GoogleCloudAiplatformV1RagRetrievalConfig(); + buildCounterGoogleCloudAiplatformV1RagRetrievalConfig++; + if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfig < 3) { + o.filter = buildGoogleCloudAiplatformV1RagRetrievalConfigFilter(); + o.ranking = buildGoogleCloudAiplatformV1RagRetrievalConfigRanking(); + o.topK = 42; } - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput--; + buildCounterGoogleCloudAiplatformV1RagRetrievalConfig--; return o; } -void checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput( - api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput o, +void checkGoogleCloudAiplatformV1RagRetrievalConfig( + api.GoogleCloudAiplatformV1RagRetrievalConfig o, ) { - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput++; - if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput < - 3) { - checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance( - o.instance!, - ); - checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec( - o.metricSpec!, - ); + buildCounterGoogleCloudAiplatformV1RagRetrievalConfig++; + if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfig < 3) { + checkGoogleCloudAiplatformV1RagRetrievalConfigFilter(o.filter!); + checkGoogleCloudAiplatformV1RagRetrievalConfigRanking(o.ranking!); + unittest.expect(o.topK!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput--; + buildCounterGoogleCloudAiplatformV1RagRetrievalConfig--; } -core.int -buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance = 0; -api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance -buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance() { - final o = - api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance(); - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance++; - if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance < - 3) { - o.jsonInstance = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1RagRetrievalConfigFilter = 0; +api.GoogleCloudAiplatformV1RagRetrievalConfigFilter +buildGoogleCloudAiplatformV1RagRetrievalConfigFilter() { + final o = api.GoogleCloudAiplatformV1RagRetrievalConfigFilter(); + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigFilter++; + if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigFilter < 3) { + o.metadataFilter = 'foo'; + o.vectorDistanceThreshold = 42.0; + o.vectorSimilarityThreshold = 42.0; } - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance--; + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigFilter--; return o; } -void checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance( - api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance o, +void checkGoogleCloudAiplatformV1RagRetrievalConfigFilter( + api.GoogleCloudAiplatformV1RagRetrievalConfigFilter o, ) { - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance++; - if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance < - 3) { - unittest.expect(o.jsonInstance!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigFilter++; + if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigFilter < 3) { + unittest.expect(o.metadataFilter!, unittest.equals('foo')); + unittest.expect(o.vectorDistanceThreshold!, unittest.equals(42.0)); + unittest.expect(o.vectorSimilarityThreshold!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance--; + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigFilter--; } -core.List buildUnnamed353() => - [ - buildGoogleCloudAiplatformV1RubricCritiqueResult(), - buildGoogleCloudAiplatformV1RubricCritiqueResult(), - ]; +core.int buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRanking = 0; +api.GoogleCloudAiplatformV1RagRetrievalConfigRanking +buildGoogleCloudAiplatformV1RagRetrievalConfigRanking() { + final o = api.GoogleCloudAiplatformV1RagRetrievalConfigRanking(); + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRanking++; + if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRanking < 3) { + o.llmRanker = + buildGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker(); + o.rankService = + buildGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService(); + } + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRanking--; + return o; +} -void checkUnnamed353( - core.List o, +void checkGoogleCloudAiplatformV1RagRetrievalConfigRanking( + api.GoogleCloudAiplatformV1RagRetrievalConfigRanking o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1RubricCritiqueResult(o[0]); - checkGoogleCloudAiplatformV1RubricCritiqueResult(o[1]); + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRanking++; + if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRanking < 3) { + checkGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker( + o.llmRanker!, + ); + checkGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService( + o.rankService!, + ); + } + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRanking--; } -core.int -buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult = 0; -api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult -buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult() { - final o = api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult(); - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult++; - if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult < +core.int buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker = + 0; +api.GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker +buildGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker() { + final o = api.GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker(); + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker++; + if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker < 3) { - o.rubricCritiqueResults = buildUnnamed353(); - o.score = 42.0; + o.modelName = 'foo'; } - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult--; + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker--; return o; } -void checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult( - api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult o, +void checkGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker( + api.GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker o, ) { - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult++; - if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult < + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker++; + if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker < 3) { - checkUnnamed353(o.rubricCritiqueResults!); - unittest.expect(o.score!, unittest.equals(42.0)); + unittest.expect(o.modelName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult--; + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker--; } core.int -buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec = 0; -api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec -buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec() { - final o = api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec(); - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec++; - if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec < - 3) {} - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec--; +buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService = 0; +api.GoogleCloudAiplatformV1RagRetrievalConfigRankingRankService +buildGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService() { + final o = api.GoogleCloudAiplatformV1RagRetrievalConfigRankingRankService(); + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService++; + if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService < + 3) { + o.modelName = 'foo'; + } + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService--; return o; } -void checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec( - api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec o, +void checkGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService( + api.GoogleCloudAiplatformV1RagRetrievalConfigRankingRankService o, ) { - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec++; - if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec < - 3) {} - buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec--; + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService++; + if (buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService < + 3) { + unittest.expect(o.modelName!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService--; } -core.int buildCounterGoogleCloudAiplatformV1RubricCritiqueResult = 0; -api.GoogleCloudAiplatformV1RubricCritiqueResult -buildGoogleCloudAiplatformV1RubricCritiqueResult() { - final o = api.GoogleCloudAiplatformV1RubricCritiqueResult(); - buildCounterGoogleCloudAiplatformV1RubricCritiqueResult++; - if (buildCounterGoogleCloudAiplatformV1RubricCritiqueResult < 3) { - o.rubric = 'foo'; - o.verdict = true; +core.int buildCounterGoogleCloudAiplatformV1RagVectorDbConfig = 0; +api.GoogleCloudAiplatformV1RagVectorDbConfig +buildGoogleCloudAiplatformV1RagVectorDbConfig() { + final o = api.GoogleCloudAiplatformV1RagVectorDbConfig(); + buildCounterGoogleCloudAiplatformV1RagVectorDbConfig++; + if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfig < 3) { + o.apiAuth = buildGoogleCloudAiplatformV1ApiAuth(); + o.pinecone = buildGoogleCloudAiplatformV1RagVectorDbConfigPinecone(); + o.ragEmbeddingModelConfig = + buildGoogleCloudAiplatformV1RagEmbeddingModelConfig(); + o.ragManagedDb = + buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb(); + o.vertexVectorSearch = + buildGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch(); } - buildCounterGoogleCloudAiplatformV1RubricCritiqueResult--; + buildCounterGoogleCloudAiplatformV1RagVectorDbConfig--; return o; } -void checkGoogleCloudAiplatformV1RubricCritiqueResult( - api.GoogleCloudAiplatformV1RubricCritiqueResult o, +void checkGoogleCloudAiplatformV1RagVectorDbConfig( + api.GoogleCloudAiplatformV1RagVectorDbConfig o, ) { - buildCounterGoogleCloudAiplatformV1RubricCritiqueResult++; - if (buildCounterGoogleCloudAiplatformV1RubricCritiqueResult < 3) { - unittest.expect(o.rubric!, unittest.equals('foo')); - unittest.expect(o.verdict!, unittest.isTrue); + buildCounterGoogleCloudAiplatformV1RagVectorDbConfig++; + if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfig < 3) { + checkGoogleCloudAiplatformV1ApiAuth(o.apiAuth!); + checkGoogleCloudAiplatformV1RagVectorDbConfigPinecone(o.pinecone!); + checkGoogleCloudAiplatformV1RagEmbeddingModelConfig( + o.ragEmbeddingModelConfig!, + ); + checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb(o.ragManagedDb!); + checkGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch( + o.vertexVectorSearch!, + ); } - buildCounterGoogleCloudAiplatformV1RubricCritiqueResult--; + buildCounterGoogleCloudAiplatformV1RagVectorDbConfig--; } -core.int buildCounterGoogleCloudAiplatformV1SafetyInput = 0; -api.GoogleCloudAiplatformV1SafetyInput -buildGoogleCloudAiplatformV1SafetyInput() { - final o = api.GoogleCloudAiplatformV1SafetyInput(); - buildCounterGoogleCloudAiplatformV1SafetyInput++; - if (buildCounterGoogleCloudAiplatformV1SafetyInput < 3) { - o.instance = buildGoogleCloudAiplatformV1SafetyInstance(); - o.metricSpec = buildGoogleCloudAiplatformV1SafetySpec(); +core.int buildCounterGoogleCloudAiplatformV1RagVectorDbConfigPinecone = 0; +api.GoogleCloudAiplatformV1RagVectorDbConfigPinecone +buildGoogleCloudAiplatformV1RagVectorDbConfigPinecone() { + final o = api.GoogleCloudAiplatformV1RagVectorDbConfigPinecone(); + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigPinecone++; + if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigPinecone < 3) { + o.indexName = 'foo'; } - buildCounterGoogleCloudAiplatformV1SafetyInput--; + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigPinecone--; return o; } -void checkGoogleCloudAiplatformV1SafetyInput( - api.GoogleCloudAiplatformV1SafetyInput o, -) { - buildCounterGoogleCloudAiplatformV1SafetyInput++; - if (buildCounterGoogleCloudAiplatformV1SafetyInput < 3) { - checkGoogleCloudAiplatformV1SafetyInstance(o.instance!); - checkGoogleCloudAiplatformV1SafetySpec(o.metricSpec!); +void checkGoogleCloudAiplatformV1RagVectorDbConfigPinecone( + api.GoogleCloudAiplatformV1RagVectorDbConfigPinecone o, +) { + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigPinecone++; + if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigPinecone < 3) { + unittest.expect(o.indexName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SafetyInput--; + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigPinecone--; } -core.int buildCounterGoogleCloudAiplatformV1SafetyInstance = 0; -api.GoogleCloudAiplatformV1SafetyInstance -buildGoogleCloudAiplatformV1SafetyInstance() { - final o = api.GoogleCloudAiplatformV1SafetyInstance(); - buildCounterGoogleCloudAiplatformV1SafetyInstance++; - if (buildCounterGoogleCloudAiplatformV1SafetyInstance < 3) { - o.prediction = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb = 0; +api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb +buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb() { + final o = api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb(); + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb++; + if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb < 3) { + o.ann = buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN(); + o.knn = buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN(); } - buildCounterGoogleCloudAiplatformV1SafetyInstance--; + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb--; return o; } -void checkGoogleCloudAiplatformV1SafetyInstance( - api.GoogleCloudAiplatformV1SafetyInstance o, +void checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb( + api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb o, ) { - buildCounterGoogleCloudAiplatformV1SafetyInstance++; - if (buildCounterGoogleCloudAiplatformV1SafetyInstance < 3) { - unittest.expect(o.prediction!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb++; + if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb < 3) { + checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN(o.ann!); + checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN(o.knn!); } - buildCounterGoogleCloudAiplatformV1SafetyInstance--; + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb--; } -core.int buildCounterGoogleCloudAiplatformV1SafetyRating = 0; -api.GoogleCloudAiplatformV1SafetyRating -buildGoogleCloudAiplatformV1SafetyRating() { - final o = api.GoogleCloudAiplatformV1SafetyRating(); - buildCounterGoogleCloudAiplatformV1SafetyRating++; - if (buildCounterGoogleCloudAiplatformV1SafetyRating < 3) { - o.blocked = true; - o.category = 'foo'; - o.overwrittenThreshold = 'foo'; - o.probability = 'foo'; - o.probabilityScore = 42.0; - o.severity = 'foo'; - o.severityScore = 42.0; +core.int buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN = + 0; +api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN +buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN() { + final o = api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN(); + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN++; + if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN < 3) { + o.leafCount = 42; + o.treeDepth = 42; } - buildCounterGoogleCloudAiplatformV1SafetyRating--; + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN--; return o; } -void checkGoogleCloudAiplatformV1SafetyRating( - api.GoogleCloudAiplatformV1SafetyRating o, +void checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN( + api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN o, ) { - buildCounterGoogleCloudAiplatformV1SafetyRating++; - if (buildCounterGoogleCloudAiplatformV1SafetyRating < 3) { - unittest.expect(o.blocked!, unittest.isTrue); - unittest.expect(o.category!, unittest.equals('foo')); - unittest.expect(o.overwrittenThreshold!, unittest.equals('foo')); - unittest.expect(o.probability!, unittest.equals('foo')); - unittest.expect(o.probabilityScore!, unittest.equals(42.0)); - unittest.expect(o.severity!, unittest.equals('foo')); - unittest.expect(o.severityScore!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN++; + if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN < 3) { + unittest.expect(o.leafCount!, unittest.equals(42)); + unittest.expect(o.treeDepth!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1SafetyRating--; + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN--; } -core.int buildCounterGoogleCloudAiplatformV1SafetyResult = 0; -api.GoogleCloudAiplatformV1SafetyResult -buildGoogleCloudAiplatformV1SafetyResult() { - final o = api.GoogleCloudAiplatformV1SafetyResult(); - buildCounterGoogleCloudAiplatformV1SafetyResult++; - if (buildCounterGoogleCloudAiplatformV1SafetyResult < 3) { - o.confidence = 42.0; - o.explanation = 'foo'; - o.score = 42.0; - } - buildCounterGoogleCloudAiplatformV1SafetyResult--; +core.int buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN = + 0; +api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN +buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN() { + final o = api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN(); + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN++; + if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN < + 3) {} + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN--; return o; } -void checkGoogleCloudAiplatformV1SafetyResult( - api.GoogleCloudAiplatformV1SafetyResult o, +void checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN( + api.GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN o, ) { - buildCounterGoogleCloudAiplatformV1SafetyResult++; - if (buildCounterGoogleCloudAiplatformV1SafetyResult < 3) { - unittest.expect(o.confidence!, unittest.equals(42.0)); - unittest.expect(o.explanation!, unittest.equals('foo')); - unittest.expect(o.score!, unittest.equals(42.0)); - } - buildCounterGoogleCloudAiplatformV1SafetyResult--; + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN++; + if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN < + 3) {} + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN--; } -core.int buildCounterGoogleCloudAiplatformV1SafetySetting = 0; -api.GoogleCloudAiplatformV1SafetySetting -buildGoogleCloudAiplatformV1SafetySetting() { - final o = api.GoogleCloudAiplatformV1SafetySetting(); - buildCounterGoogleCloudAiplatformV1SafetySetting++; - if (buildCounterGoogleCloudAiplatformV1SafetySetting < 3) { - o.category = 'foo'; - o.method = 'foo'; - o.threshold = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch = 0; +api.GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch +buildGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch() { + final o = api.GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch(); + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch++; + if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch < + 3) { + o.index = 'foo'; + o.indexEndpoint = 'foo'; } - buildCounterGoogleCloudAiplatformV1SafetySetting--; + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch--; return o; } -void checkGoogleCloudAiplatformV1SafetySetting( - api.GoogleCloudAiplatformV1SafetySetting o, +void checkGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch( + api.GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch o, ) { - buildCounterGoogleCloudAiplatformV1SafetySetting++; - if (buildCounterGoogleCloudAiplatformV1SafetySetting < 3) { - unittest.expect(o.category!, unittest.equals('foo')); - unittest.expect(o.method!, unittest.equals('foo')); - unittest.expect(o.threshold!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch++; + if (buildCounterGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch < + 3) { + unittest.expect(o.index!, unittest.equals('foo')); + unittest.expect(o.indexEndpoint!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SafetySetting--; + buildCounterGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch--; } -core.int buildCounterGoogleCloudAiplatformV1SafetySpec = 0; -api.GoogleCloudAiplatformV1SafetySpec buildGoogleCloudAiplatformV1SafetySpec() { - final o = api.GoogleCloudAiplatformV1SafetySpec(); - buildCounterGoogleCloudAiplatformV1SafetySpec++; - if (buildCounterGoogleCloudAiplatformV1SafetySpec < 3) { - o.version = 42; - } - buildCounterGoogleCloudAiplatformV1SafetySpec--; - return o; -} +core.List buildUnnamed365() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1SafetySpec( - api.GoogleCloudAiplatformV1SafetySpec o, -) { - buildCounterGoogleCloudAiplatformV1SafetySpec++; - if (buildCounterGoogleCloudAiplatformV1SafetySpec < 3) { - unittest.expect(o.version!, unittest.equals(42)); - } - buildCounterGoogleCloudAiplatformV1SafetySpec--; +void checkUnnamed365(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1SampleConfig = 0; -api.GoogleCloudAiplatformV1SampleConfig -buildGoogleCloudAiplatformV1SampleConfig() { - final o = api.GoogleCloudAiplatformV1SampleConfig(); - buildCounterGoogleCloudAiplatformV1SampleConfig++; - if (buildCounterGoogleCloudAiplatformV1SampleConfig < 3) { - o.followingBatchSamplePercentage = 42; - o.initialBatchSamplePercentage = 42; - o.sampleStrategy = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1RawOutput = 0; +api.GoogleCloudAiplatformV1RawOutput buildGoogleCloudAiplatformV1RawOutput() { + final o = api.GoogleCloudAiplatformV1RawOutput(); + buildCounterGoogleCloudAiplatformV1RawOutput++; + if (buildCounterGoogleCloudAiplatformV1RawOutput < 3) { + o.rawOutput = buildUnnamed365(); } - buildCounterGoogleCloudAiplatformV1SampleConfig--; + buildCounterGoogleCloudAiplatformV1RawOutput--; return o; } -void checkGoogleCloudAiplatformV1SampleConfig( - api.GoogleCloudAiplatformV1SampleConfig o, +void checkGoogleCloudAiplatformV1RawOutput( + api.GoogleCloudAiplatformV1RawOutput o, ) { - buildCounterGoogleCloudAiplatformV1SampleConfig++; - if (buildCounterGoogleCloudAiplatformV1SampleConfig < 3) { - unittest.expect(o.followingBatchSamplePercentage!, unittest.equals(42)); - unittest.expect(o.initialBatchSamplePercentage!, unittest.equals(42)); - unittest.expect(o.sampleStrategy!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1RawOutput++; + if (buildCounterGoogleCloudAiplatformV1RawOutput < 3) { + checkUnnamed365(o.rawOutput!); } - buildCounterGoogleCloudAiplatformV1SampleConfig--; + buildCounterGoogleCloudAiplatformV1RawOutput--; } -core.int buildCounterGoogleCloudAiplatformV1SampledShapleyAttribution = 0; -api.GoogleCloudAiplatformV1SampledShapleyAttribution -buildGoogleCloudAiplatformV1SampledShapleyAttribution() { - final o = api.GoogleCloudAiplatformV1SampledShapleyAttribution(); - buildCounterGoogleCloudAiplatformV1SampledShapleyAttribution++; - if (buildCounterGoogleCloudAiplatformV1SampledShapleyAttribution < 3) { - o.pathCount = 42; +core.int buildCounterGoogleCloudAiplatformV1RawPredictRequest = 0; +api.GoogleCloudAiplatformV1RawPredictRequest +buildGoogleCloudAiplatformV1RawPredictRequest() { + final o = api.GoogleCloudAiplatformV1RawPredictRequest(); + buildCounterGoogleCloudAiplatformV1RawPredictRequest++; + if (buildCounterGoogleCloudAiplatformV1RawPredictRequest < 3) { + o.httpBody = buildGoogleApiHttpBody(); } - buildCounterGoogleCloudAiplatformV1SampledShapleyAttribution--; + buildCounterGoogleCloudAiplatformV1RawPredictRequest--; return o; } -void checkGoogleCloudAiplatformV1SampledShapleyAttribution( - api.GoogleCloudAiplatformV1SampledShapleyAttribution o, +void checkGoogleCloudAiplatformV1RawPredictRequest( + api.GoogleCloudAiplatformV1RawPredictRequest o, ) { - buildCounterGoogleCloudAiplatformV1SampledShapleyAttribution++; - if (buildCounterGoogleCloudAiplatformV1SampledShapleyAttribution < 3) { - unittest.expect(o.pathCount!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1RawPredictRequest++; + if (buildCounterGoogleCloudAiplatformV1RawPredictRequest < 3) { + checkGoogleApiHttpBody(o.httpBody!); } - buildCounterGoogleCloudAiplatformV1SampledShapleyAttribution--; + buildCounterGoogleCloudAiplatformV1RawPredictRequest--; } -core.int buildCounterGoogleCloudAiplatformV1SamplingStrategy = 0; -api.GoogleCloudAiplatformV1SamplingStrategy -buildGoogleCloudAiplatformV1SamplingStrategy() { - final o = api.GoogleCloudAiplatformV1SamplingStrategy(); - buildCounterGoogleCloudAiplatformV1SamplingStrategy++; - if (buildCounterGoogleCloudAiplatformV1SamplingStrategy < 3) { - o.randomSampleConfig = - buildGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig(); +core.int buildCounterGoogleCloudAiplatformV1RayLogsSpec = 0; +api.GoogleCloudAiplatformV1RayLogsSpec +buildGoogleCloudAiplatformV1RayLogsSpec() { + final o = api.GoogleCloudAiplatformV1RayLogsSpec(); + buildCounterGoogleCloudAiplatformV1RayLogsSpec++; + if (buildCounterGoogleCloudAiplatformV1RayLogsSpec < 3) { + o.disabled = true; } - buildCounterGoogleCloudAiplatformV1SamplingStrategy--; + buildCounterGoogleCloudAiplatformV1RayLogsSpec--; return o; } -void checkGoogleCloudAiplatformV1SamplingStrategy( - api.GoogleCloudAiplatformV1SamplingStrategy o, +void checkGoogleCloudAiplatformV1RayLogsSpec( + api.GoogleCloudAiplatformV1RayLogsSpec o, ) { - buildCounterGoogleCloudAiplatformV1SamplingStrategy++; - if (buildCounterGoogleCloudAiplatformV1SamplingStrategy < 3) { - checkGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig( - o.randomSampleConfig!, - ); + buildCounterGoogleCloudAiplatformV1RayLogsSpec++; + if (buildCounterGoogleCloudAiplatformV1RayLogsSpec < 3) { + unittest.expect(o.disabled!, unittest.isTrue); } - buildCounterGoogleCloudAiplatformV1SamplingStrategy--; + buildCounterGoogleCloudAiplatformV1RayLogsSpec--; } -core.int buildCounterGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig = - 0; -api.GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig -buildGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig() { - final o = api.GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig(); - buildCounterGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig++; - if (buildCounterGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig < - 3) { - o.sampleRate = 42.0; +core.int buildCounterGoogleCloudAiplatformV1RayMetricSpec = 0; +api.GoogleCloudAiplatformV1RayMetricSpec +buildGoogleCloudAiplatformV1RayMetricSpec() { + final o = api.GoogleCloudAiplatformV1RayMetricSpec(); + buildCounterGoogleCloudAiplatformV1RayMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1RayMetricSpec < 3) { + o.disabled = true; } - buildCounterGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig--; + buildCounterGoogleCloudAiplatformV1RayMetricSpec--; return o; } -void checkGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig( - api.GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig o, +void checkGoogleCloudAiplatformV1RayMetricSpec( + api.GoogleCloudAiplatformV1RayMetricSpec o, ) { - buildCounterGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig++; - if (buildCounterGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig < - 3) { - unittest.expect(o.sampleRate!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1RayMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1RayMetricSpec < 3) { + unittest.expect(o.disabled!, unittest.isTrue); } - buildCounterGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig--; + buildCounterGoogleCloudAiplatformV1RayMetricSpec--; } -core.int buildCounterGoogleCloudAiplatformV1SavedQuery = 0; -api.GoogleCloudAiplatformV1SavedQuery buildGoogleCloudAiplatformV1SavedQuery() { - final o = api.GoogleCloudAiplatformV1SavedQuery(); - buildCounterGoogleCloudAiplatformV1SavedQuery++; - if (buildCounterGoogleCloudAiplatformV1SavedQuery < 3) { - o.annotationFilter = 'foo'; - o.annotationSpecCount = 42; - o.createTime = 'foo'; - o.displayName = 'foo'; - o.etag = 'foo'; - o.metadata = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - o.name = 'foo'; - o.problemType = 'foo'; - o.supportAutomlTraining = true; - o.updateTime = 'foo'; +core.Map buildUnnamed366() => { + 'x': 'foo', + 'y': 'foo', +}; + +void checkUnnamed366(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1RaySpec = 0; +api.GoogleCloudAiplatformV1RaySpec buildGoogleCloudAiplatformV1RaySpec() { + final o = api.GoogleCloudAiplatformV1RaySpec(); + buildCounterGoogleCloudAiplatformV1RaySpec++; + if (buildCounterGoogleCloudAiplatformV1RaySpec < 3) { + o.headNodeResourcePoolId = 'foo'; + o.imageUri = 'foo'; + o.rayLogsSpec = buildGoogleCloudAiplatformV1RayLogsSpec(); + o.rayMetricSpec = buildGoogleCloudAiplatformV1RayMetricSpec(); + o.resourcePoolImages = buildUnnamed366(); } - buildCounterGoogleCloudAiplatformV1SavedQuery--; + buildCounterGoogleCloudAiplatformV1RaySpec--; return o; } -void checkGoogleCloudAiplatformV1SavedQuery( - api.GoogleCloudAiplatformV1SavedQuery o, -) { - buildCounterGoogleCloudAiplatformV1SavedQuery++; - if (buildCounterGoogleCloudAiplatformV1SavedQuery < 3) { - unittest.expect(o.annotationFilter!, unittest.equals('foo')); - unittest.expect(o.annotationSpecCount!, unittest.equals(42)); - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - unittest.expect(o.etag!, unittest.equals('foo')); - var casted75 = (o.metadata!) as core.Map; - unittest.expect(casted75, unittest.hasLength(3)); - unittest.expect(casted75['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted75['bool'], unittest.equals(true)); - unittest.expect(casted75['string'], unittest.equals('foo')); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.problemType!, unittest.equals('foo')); - unittest.expect(o.supportAutomlTraining!, unittest.isTrue); - unittest.expect(o.updateTime!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1RaySpec(api.GoogleCloudAiplatformV1RaySpec o) { + buildCounterGoogleCloudAiplatformV1RaySpec++; + if (buildCounterGoogleCloudAiplatformV1RaySpec < 3) { + unittest.expect(o.headNodeResourcePoolId!, unittest.equals('foo')); + unittest.expect(o.imageUri!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1RayLogsSpec(o.rayLogsSpec!); + checkGoogleCloudAiplatformV1RayMetricSpec(o.rayMetricSpec!); + checkUnnamed366(o.resourcePoolImages!); } - buildCounterGoogleCloudAiplatformV1SavedQuery--; + buildCounterGoogleCloudAiplatformV1RaySpec--; } -core.int buildCounterGoogleCloudAiplatformV1Scalar = 0; -api.GoogleCloudAiplatformV1Scalar buildGoogleCloudAiplatformV1Scalar() { - final o = api.GoogleCloudAiplatformV1Scalar(); - buildCounterGoogleCloudAiplatformV1Scalar++; - if (buildCounterGoogleCloudAiplatformV1Scalar < 3) { - o.value = 42.0; +core.int buildCounterGoogleCloudAiplatformV1ReadFeatureValuesRequest = 0; +api.GoogleCloudAiplatformV1ReadFeatureValuesRequest +buildGoogleCloudAiplatformV1ReadFeatureValuesRequest() { + final o = api.GoogleCloudAiplatformV1ReadFeatureValuesRequest(); + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesRequest++; + if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesRequest < 3) { + o.entityId = 'foo'; + o.featureSelector = buildGoogleCloudAiplatformV1FeatureSelector(); } - buildCounterGoogleCloudAiplatformV1Scalar--; + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesRequest--; return o; } -void checkGoogleCloudAiplatformV1Scalar(api.GoogleCloudAiplatformV1Scalar o) { - buildCounterGoogleCloudAiplatformV1Scalar++; - if (buildCounterGoogleCloudAiplatformV1Scalar < 3) { - unittest.expect(o.value!, unittest.equals(42.0)); +void checkGoogleCloudAiplatformV1ReadFeatureValuesRequest( + api.GoogleCloudAiplatformV1ReadFeatureValuesRequest o, +) { + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesRequest++; + if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesRequest < 3) { + unittest.expect(o.entityId!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1FeatureSelector(o.featureSelector!); } - buildCounterGoogleCloudAiplatformV1Scalar--; + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesRequest--; } -core.int buildCounterGoogleCloudAiplatformV1Schedule = 0; -api.GoogleCloudAiplatformV1Schedule buildGoogleCloudAiplatformV1Schedule() { - final o = api.GoogleCloudAiplatformV1Schedule(); - buildCounterGoogleCloudAiplatformV1Schedule++; - if (buildCounterGoogleCloudAiplatformV1Schedule < 3) { - o.allowQueueing = true; - o.catchUp = true; - o.createNotebookExecutionJobRequest = - buildGoogleCloudAiplatformV1CreateNotebookExecutionJobRequest(); - o.createPipelineJobRequest = - buildGoogleCloudAiplatformV1CreatePipelineJobRequest(); - o.createTime = 'foo'; - o.cron = 'foo'; - o.displayName = 'foo'; - o.endTime = 'foo'; - o.lastPauseTime = 'foo'; - o.lastResumeTime = 'foo'; - o.lastScheduledRunResponse = - buildGoogleCloudAiplatformV1ScheduleRunResponse(); - o.maxConcurrentRunCount = 'foo'; - o.maxRunCount = 'foo'; - o.name = 'foo'; - o.nextRunTime = 'foo'; - o.startTime = 'foo'; - o.startedRunCount = 'foo'; - o.state = 'foo'; - o.updateTime = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponse = 0; +api.GoogleCloudAiplatformV1ReadFeatureValuesResponse +buildGoogleCloudAiplatformV1ReadFeatureValuesResponse() { + final o = api.GoogleCloudAiplatformV1ReadFeatureValuesResponse(); + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponse++; + if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponse < 3) { + o.entityView = + buildGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView(); + o.header = buildGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader(); } - buildCounterGoogleCloudAiplatformV1Schedule--; + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponse--; return o; } -void checkGoogleCloudAiplatformV1Schedule( - api.GoogleCloudAiplatformV1Schedule o, +void checkGoogleCloudAiplatformV1ReadFeatureValuesResponse( + api.GoogleCloudAiplatformV1ReadFeatureValuesResponse o, ) { - buildCounterGoogleCloudAiplatformV1Schedule++; - if (buildCounterGoogleCloudAiplatformV1Schedule < 3) { - unittest.expect(o.allowQueueing!, unittest.isTrue); - unittest.expect(o.catchUp!, unittest.isTrue); - checkGoogleCloudAiplatformV1CreateNotebookExecutionJobRequest( - o.createNotebookExecutionJobRequest!, - ); - checkGoogleCloudAiplatformV1CreatePipelineJobRequest( - o.createPipelineJobRequest!, - ); - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.cron!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - unittest.expect(o.endTime!, unittest.equals('foo')); - unittest.expect(o.lastPauseTime!, unittest.equals('foo')); - unittest.expect(o.lastResumeTime!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ScheduleRunResponse( - o.lastScheduledRunResponse!, + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponse++; + if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponse < 3) { + checkGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView( + o.entityView!, ); - unittest.expect(o.maxConcurrentRunCount!, unittest.equals('foo')); - unittest.expect(o.maxRunCount!, unittest.equals('foo')); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.nextRunTime!, unittest.equals('foo')); - unittest.expect(o.startTime!, unittest.equals('foo')); - unittest.expect(o.startedRunCount!, unittest.equals('foo')); - unittest.expect(o.state!, unittest.equals('foo')); - unittest.expect(o.updateTime!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader(o.header!); } - buildCounterGoogleCloudAiplatformV1Schedule--; + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponse--; } -core.int buildCounterGoogleCloudAiplatformV1ScheduleRunResponse = 0; -api.GoogleCloudAiplatformV1ScheduleRunResponse -buildGoogleCloudAiplatformV1ScheduleRunResponse() { - final o = api.GoogleCloudAiplatformV1ScheduleRunResponse(); - buildCounterGoogleCloudAiplatformV1ScheduleRunResponse++; - if (buildCounterGoogleCloudAiplatformV1ScheduleRunResponse < 3) { - o.runResponse = 'foo'; - o.scheduledRunTime = 'foo'; +core.List +buildUnnamed367() => [ + buildGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData(), + buildGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData(), +]; + +void checkUnnamed367( + core.List + o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData(o[0]); + checkGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData(o[1]); +} + +core.int +buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView = 0; +api.GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView +buildGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView() { + final o = api.GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView(); + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView++; + if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView < + 3) { + o.data = buildUnnamed367(); + o.entityId = 'foo'; } - buildCounterGoogleCloudAiplatformV1ScheduleRunResponse--; + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView--; return o; } -void checkGoogleCloudAiplatformV1ScheduleRunResponse( - api.GoogleCloudAiplatformV1ScheduleRunResponse o, +void checkGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView( + api.GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView o, ) { - buildCounterGoogleCloudAiplatformV1ScheduleRunResponse++; - if (buildCounterGoogleCloudAiplatformV1ScheduleRunResponse < 3) { - unittest.expect(o.runResponse!, unittest.equals('foo')); - unittest.expect(o.scheduledRunTime!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView++; + if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView < + 3) { + checkUnnamed367(o.data!); + unittest.expect(o.entityId!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ScheduleRunResponse--; + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView--; } -core.int buildCounterGoogleCloudAiplatformV1Scheduling = 0; -api.GoogleCloudAiplatformV1Scheduling buildGoogleCloudAiplatformV1Scheduling() { - final o = api.GoogleCloudAiplatformV1Scheduling(); - buildCounterGoogleCloudAiplatformV1Scheduling++; - if (buildCounterGoogleCloudAiplatformV1Scheduling < 3) { - o.disableRetries = true; - o.maxWaitDuration = 'foo'; - o.restartJobOnWorkerRestart = true; - o.strategy = 'foo'; - o.timeout = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData = 0; +api.GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData +buildGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData() { + final o = + api.GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData(); + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData++; + if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData < + 3) { + o.value = buildGoogleCloudAiplatformV1FeatureValue(); + o.values = buildGoogleCloudAiplatformV1FeatureValueList(); } - buildCounterGoogleCloudAiplatformV1Scheduling--; + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData--; return o; } -void checkGoogleCloudAiplatformV1Scheduling( - api.GoogleCloudAiplatformV1Scheduling o, +void checkGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData( + api.GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData o, ) { - buildCounterGoogleCloudAiplatformV1Scheduling++; - if (buildCounterGoogleCloudAiplatformV1Scheduling < 3) { - unittest.expect(o.disableRetries!, unittest.isTrue); - unittest.expect(o.maxWaitDuration!, unittest.equals('foo')); - unittest.expect(o.restartJobOnWorkerRestart!, unittest.isTrue); - unittest.expect(o.strategy!, unittest.equals('foo')); - unittest.expect(o.timeout!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData++; + if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData < + 3) { + checkGoogleCloudAiplatformV1FeatureValue(o.value!); + checkGoogleCloudAiplatformV1FeatureValueList(o.values!); } - buildCounterGoogleCloudAiplatformV1Scheduling--; + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData--; } -core.List buildUnnamed354() => [ - buildGoogleCloudAiplatformV1Schema(), - buildGoogleCloudAiplatformV1Schema(), -]; - -void checkUnnamed354(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Schema(o[0]); - checkGoogleCloudAiplatformV1Schema(o[1]); +core.int +buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor = + 0; +api.GoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor +buildGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor() { + final o = + api.GoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor(); + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor++; + if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor < + 3) { + o.id = 'foo'; + } + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor--; + return o; } -core.Map buildUnnamed355() => { - 'x': buildGoogleCloudAiplatformV1Schema(), - 'y': buildGoogleCloudAiplatformV1Schema(), -}; - -void checkUnnamed355( - core.Map o, +void checkGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor( + api.GoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Schema(o['x']!); - checkGoogleCloudAiplatformV1Schema(o['y']!); -} - -core.List buildUnnamed356() => ['foo', 'foo']; - -void checkUnnamed356(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor++; + if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor < + 3) { + unittest.expect(o.id!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor--; } -core.Map buildUnnamed357() => { - 'x': buildGoogleCloudAiplatformV1Schema(), - 'y': buildGoogleCloudAiplatformV1Schema(), -}; +core.List +buildUnnamed368() => [ + buildGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor(), + buildGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor(), +]; -void checkUnnamed357( - core.Map o, +void checkUnnamed368( + core.List< + api.GoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor + > + o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Schema(o['x']!); - checkGoogleCloudAiplatformV1Schema(o['y']!); + checkGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor(o[0]); + checkGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor(o[1]); } -core.List buildUnnamed358() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader = 0; +api.GoogleCloudAiplatformV1ReadFeatureValuesResponseHeader +buildGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader() { + final o = api.GoogleCloudAiplatformV1ReadFeatureValuesResponseHeader(); + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader++; + if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader < 3) { + o.entityType = 'foo'; + o.featureDescriptors = buildUnnamed368(); + } + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader--; + return o; +} -void checkUnnamed358(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader( + api.GoogleCloudAiplatformV1ReadFeatureValuesResponseHeader o, +) { + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader++; + if (buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader < 3) { + unittest.expect(o.entityType!, unittest.equals('foo')); + checkUnnamed368(o.featureDescriptors!); + } + buildCounterGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader--; } -core.List buildUnnamed359() => ['foo', 'foo']; +core.List buildUnnamed369() => ['foo', 'foo']; -void checkUnnamed359(core.List o) { +void checkUnnamed369(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1Schema = 0; -api.GoogleCloudAiplatformV1Schema buildGoogleCloudAiplatformV1Schema() { - final o = api.GoogleCloudAiplatformV1Schema(); - buildCounterGoogleCloudAiplatformV1Schema++; - if (buildCounterGoogleCloudAiplatformV1Schema < 3) { - o.additionalProperties = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - o.anyOf = buildUnnamed354(); - o.default_ = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - o.defs = buildUnnamed355(); - o.description = 'foo'; - o.enum_ = buildUnnamed356(); - o.example = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - o.format = 'foo'; - o.items = buildGoogleCloudAiplatformV1Schema(); - o.maxItems = 'foo'; - o.maxLength = 'foo'; - o.maxProperties = 'foo'; - o.maximum = 42.0; - o.minItems = 'foo'; - o.minLength = 'foo'; - o.minProperties = 'foo'; - o.minimum = 42.0; - o.nullable = true; - o.pattern = 'foo'; - o.properties = buildUnnamed357(); - o.propertyOrdering = buildUnnamed358(); - o.ref = 'foo'; - o.required = buildUnnamed359(); - o.title = 'foo'; - o.type = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsRequest = 0; +api.GoogleCloudAiplatformV1ReadIndexDatapointsRequest +buildGoogleCloudAiplatformV1ReadIndexDatapointsRequest() { + final o = api.GoogleCloudAiplatformV1ReadIndexDatapointsRequest(); + buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsRequest++; + if (buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsRequest < 3) { + o.deployedIndexId = 'foo'; + o.ids = buildUnnamed369(); } - buildCounterGoogleCloudAiplatformV1Schema--; + buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsRequest--; return o; } -void checkGoogleCloudAiplatformV1Schema(api.GoogleCloudAiplatformV1Schema o) { - buildCounterGoogleCloudAiplatformV1Schema++; - if (buildCounterGoogleCloudAiplatformV1Schema < 3) { - var casted76 = (o.additionalProperties!) as core.Map; - unittest.expect(casted76, unittest.hasLength(3)); - unittest.expect(casted76['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted76['bool'], unittest.equals(true)); - unittest.expect(casted76['string'], unittest.equals('foo')); - checkUnnamed354(o.anyOf!); - var casted77 = (o.default_!) as core.Map; - unittest.expect(casted77, unittest.hasLength(3)); - unittest.expect(casted77['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted77['bool'], unittest.equals(true)); - unittest.expect(casted77['string'], unittest.equals('foo')); - checkUnnamed355(o.defs!); - unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed356(o.enum_!); - var casted78 = (o.example!) as core.Map; - unittest.expect(casted78, unittest.hasLength(3)); - unittest.expect(casted78['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted78['bool'], unittest.equals(true)); - unittest.expect(casted78['string'], unittest.equals('foo')); - unittest.expect(o.format!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1Schema(o.items!); - unittest.expect(o.maxItems!, unittest.equals('foo')); - unittest.expect(o.maxLength!, unittest.equals('foo')); - unittest.expect(o.maxProperties!, unittest.equals('foo')); - unittest.expect(o.maximum!, unittest.equals(42.0)); - unittest.expect(o.minItems!, unittest.equals('foo')); - unittest.expect(o.minLength!, unittest.equals('foo')); - unittest.expect(o.minProperties!, unittest.equals('foo')); - unittest.expect(o.minimum!, unittest.equals(42.0)); - unittest.expect(o.nullable!, unittest.isTrue); - unittest.expect(o.pattern!, unittest.equals('foo')); - checkUnnamed357(o.properties!); - checkUnnamed358(o.propertyOrdering!); - unittest.expect(o.ref!, unittest.equals('foo')); - checkUnnamed359(o.required!); - unittest.expect(o.title!, unittest.equals('foo')); - unittest.expect(o.type!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1ReadIndexDatapointsRequest( + api.GoogleCloudAiplatformV1ReadIndexDatapointsRequest o, +) { + buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsRequest++; + if (buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsRequest < 3) { + unittest.expect(o.deployedIndexId!, unittest.equals('foo')); + checkUnnamed369(o.ids!); } - buildCounterGoogleCloudAiplatformV1Schema--; + buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsRequest--; } -core.List buildUnnamed360() => [ - buildGoogleCloudAiplatformV1DataItemView(), - buildGoogleCloudAiplatformV1DataItemView(), +core.List buildUnnamed370() => [ + buildGoogleCloudAiplatformV1IndexDatapoint(), + buildGoogleCloudAiplatformV1IndexDatapoint(), ]; -void checkUnnamed360(core.List o) { +void checkUnnamed370(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1DataItemView(o[0]); - checkGoogleCloudAiplatformV1DataItemView(o[1]); + checkGoogleCloudAiplatformV1IndexDatapoint(o[0]); + checkGoogleCloudAiplatformV1IndexDatapoint(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1SearchDataItemsResponse = 0; -api.GoogleCloudAiplatformV1SearchDataItemsResponse -buildGoogleCloudAiplatformV1SearchDataItemsResponse() { - final o = api.GoogleCloudAiplatformV1SearchDataItemsResponse(); - buildCounterGoogleCloudAiplatformV1SearchDataItemsResponse++; - if (buildCounterGoogleCloudAiplatformV1SearchDataItemsResponse < 3) { - o.dataItemViews = buildUnnamed360(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsResponse = 0; +api.GoogleCloudAiplatformV1ReadIndexDatapointsResponse +buildGoogleCloudAiplatformV1ReadIndexDatapointsResponse() { + final o = api.GoogleCloudAiplatformV1ReadIndexDatapointsResponse(); + buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsResponse++; + if (buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsResponse < 3) { + o.datapoints = buildUnnamed370(); } - buildCounterGoogleCloudAiplatformV1SearchDataItemsResponse--; + buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsResponse--; return o; } -void checkGoogleCloudAiplatformV1SearchDataItemsResponse( - api.GoogleCloudAiplatformV1SearchDataItemsResponse o, +void checkGoogleCloudAiplatformV1ReadIndexDatapointsResponse( + api.GoogleCloudAiplatformV1ReadIndexDatapointsResponse o, ) { - buildCounterGoogleCloudAiplatformV1SearchDataItemsResponse++; - if (buildCounterGoogleCloudAiplatformV1SearchDataItemsResponse < 3) { - checkUnnamed360(o.dataItemViews!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsResponse++; + if (buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsResponse < 3) { + checkUnnamed370(o.datapoints!); } - buildCounterGoogleCloudAiplatformV1SearchDataItemsResponse--; + buildCounterGoogleCloudAiplatformV1ReadIndexDatapointsResponse--; } -core.int buildCounterGoogleCloudAiplatformV1SearchEntryPoint = 0; -api.GoogleCloudAiplatformV1SearchEntryPoint -buildGoogleCloudAiplatformV1SearchEntryPoint() { - final o = api.GoogleCloudAiplatformV1SearchEntryPoint(); - buildCounterGoogleCloudAiplatformV1SearchEntryPoint++; - if (buildCounterGoogleCloudAiplatformV1SearchEntryPoint < 3) { - o.renderedContent = 'foo'; - o.sdkBlob = 'foo'; +core.List buildUnnamed371() => [ + buildGoogleCloudAiplatformV1TensorboardBlob(), + buildGoogleCloudAiplatformV1TensorboardBlob(), +]; + +void checkUnnamed371(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1TensorboardBlob(o[0]); + checkGoogleCloudAiplatformV1TensorboardBlob(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse = 0; +api.GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse +buildGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse() { + final o = api.GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse(); + buildCounterGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse++; + if (buildCounterGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse < 3) { + o.blobs = buildUnnamed371(); } - buildCounterGoogleCloudAiplatformV1SearchEntryPoint--; + buildCounterGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse--; return o; } -void checkGoogleCloudAiplatformV1SearchEntryPoint( - api.GoogleCloudAiplatformV1SearchEntryPoint o, +void checkGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse( + api.GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse o, ) { - buildCounterGoogleCloudAiplatformV1SearchEntryPoint++; - if (buildCounterGoogleCloudAiplatformV1SearchEntryPoint < 3) { - unittest.expect(o.renderedContent!, unittest.equals('foo')); - unittest.expect(o.sdkBlob!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse++; + if (buildCounterGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse < 3) { + checkUnnamed371(o.blobs!); } - buildCounterGoogleCloudAiplatformV1SearchEntryPoint--; -} - -core.List buildUnnamed361() => [ - buildGoogleCloudAiplatformV1Feature(), - buildGoogleCloudAiplatformV1Feature(), -]; - -void checkUnnamed361(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Feature(o[0]); - checkGoogleCloudAiplatformV1Feature(o[1]); + buildCounterGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse--; } -core.int buildCounterGoogleCloudAiplatformV1SearchFeaturesResponse = 0; -api.GoogleCloudAiplatformV1SearchFeaturesResponse -buildGoogleCloudAiplatformV1SearchFeaturesResponse() { - final o = api.GoogleCloudAiplatformV1SearchFeaturesResponse(); - buildCounterGoogleCloudAiplatformV1SearchFeaturesResponse++; - if (buildCounterGoogleCloudAiplatformV1SearchFeaturesResponse < 3) { - o.features = buildUnnamed361(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ReadTensorboardSizeResponse = 0; +api.GoogleCloudAiplatformV1ReadTensorboardSizeResponse +buildGoogleCloudAiplatformV1ReadTensorboardSizeResponse() { + final o = api.GoogleCloudAiplatformV1ReadTensorboardSizeResponse(); + buildCounterGoogleCloudAiplatformV1ReadTensorboardSizeResponse++; + if (buildCounterGoogleCloudAiplatformV1ReadTensorboardSizeResponse < 3) { + o.storageSizeByte = 'foo'; } - buildCounterGoogleCloudAiplatformV1SearchFeaturesResponse--; + buildCounterGoogleCloudAiplatformV1ReadTensorboardSizeResponse--; return o; } -void checkGoogleCloudAiplatformV1SearchFeaturesResponse( - api.GoogleCloudAiplatformV1SearchFeaturesResponse o, +void checkGoogleCloudAiplatformV1ReadTensorboardSizeResponse( + api.GoogleCloudAiplatformV1ReadTensorboardSizeResponse o, ) { - buildCounterGoogleCloudAiplatformV1SearchFeaturesResponse++; - if (buildCounterGoogleCloudAiplatformV1SearchFeaturesResponse < 3) { - checkUnnamed361(o.features!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ReadTensorboardSizeResponse++; + if (buildCounterGoogleCloudAiplatformV1ReadTensorboardSizeResponse < 3) { + unittest.expect(o.storageSizeByte!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SearchFeaturesResponse--; + buildCounterGoogleCloudAiplatformV1ReadTensorboardSizeResponse--; } -core.int buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesRequest = - 0; -api.GoogleCloudAiplatformV1SearchMigratableResourcesRequest -buildGoogleCloudAiplatformV1SearchMigratableResourcesRequest() { - final o = api.GoogleCloudAiplatformV1SearchMigratableResourcesRequest(); - buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesRequest++; - if (buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesRequest < 3) { - o.filter = 'foo'; - o.pageSize = 42; - o.pageToken = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse = 0; +api.GoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse +buildGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse() { + final o = api.GoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse(); + buildCounterGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse++; + if (buildCounterGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse < + 3) { + o.timeSeriesData = buildGoogleCloudAiplatformV1TimeSeriesData(); } - buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesRequest--; + buildCounterGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse--; return o; } -void checkGoogleCloudAiplatformV1SearchMigratableResourcesRequest( - api.GoogleCloudAiplatformV1SearchMigratableResourcesRequest o, +void checkGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse( + api.GoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse o, ) { - buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesRequest++; - if (buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesRequest < 3) { - unittest.expect(o.filter!, unittest.equals('foo')); - unittest.expect(o.pageSize!, unittest.equals(42)); - unittest.expect(o.pageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse++; + if (buildCounterGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse < + 3) { + checkGoogleCloudAiplatformV1TimeSeriesData(o.timeSeriesData!); } - buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesRequest--; + buildCounterGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse--; } -core.List buildUnnamed362() => [ - buildGoogleCloudAiplatformV1MigratableResource(), - buildGoogleCloudAiplatformV1MigratableResource(), -]; +core.Map< + core.String, + api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData +> +buildUnnamed372() => { + 'x': + buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData(), + 'y': + buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData(), +}; -void checkUnnamed362( - core.List o, +void checkUnnamed372( + core.Map< + core.String, + api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData + > + o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1MigratableResource(o[0]); - checkGoogleCloudAiplatformV1MigratableResource(o[1]); + checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData( + o['x']!, + ); + checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData( + o['y']!, + ); } -core.int buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesResponse = - 0; -api.GoogleCloudAiplatformV1SearchMigratableResourcesResponse -buildGoogleCloudAiplatformV1SearchMigratableResourcesResponse() { - final o = api.GoogleCloudAiplatformV1SearchMigratableResourcesResponse(); - buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesResponse++; - if (buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesResponse < - 3) { - o.migratableResources = buildUnnamed362(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponse = 0; +api.GoogleCloudAiplatformV1ReadTensorboardUsageResponse +buildGoogleCloudAiplatformV1ReadTensorboardUsageResponse() { + final o = api.GoogleCloudAiplatformV1ReadTensorboardUsageResponse(); + buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponse++; + if (buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponse < 3) { + o.monthlyUsageData = buildUnnamed372(); } - buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesResponse--; + buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponse--; return o; } -void checkGoogleCloudAiplatformV1SearchMigratableResourcesResponse( - api.GoogleCloudAiplatformV1SearchMigratableResourcesResponse o, +void checkGoogleCloudAiplatformV1ReadTensorboardUsageResponse( + api.GoogleCloudAiplatformV1ReadTensorboardUsageResponse o, ) { - buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesResponse++; - if (buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesResponse < - 3) { - checkUnnamed362(o.migratableResources!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponse++; + if (buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponse < 3) { + checkUnnamed372(o.monthlyUsageData!); } - buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesResponse--; + buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponse--; } core.List< - api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective + api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData > -buildUnnamed363() => [ - buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective(), - buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective(), +buildUnnamed373() => [ + buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData(), + buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData(), ]; -void checkUnnamed363( +void checkUnnamed373( core.List< - api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective + api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData > o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective( + checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData( o[0], ); - checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective( + checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData( o[1], ); } core.int -buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest = +buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData = 0; -api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest -buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest() { +api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData +buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData() { final o = - api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest(); - buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest++; - if (buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest < + api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData(); + buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData++; + if (buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData < 3) { - o.deployedModelId = 'foo'; - o.endTime = 'foo'; - o.featureDisplayName = 'foo'; - o.objectives = buildUnnamed363(); - o.pageSize = 42; - o.pageToken = 'foo'; - o.startTime = 'foo'; + o.userUsageData = buildUnnamed373(); } - buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest--; + buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData--; return o; } -void -checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest( - api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest - o, +void checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData( + api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData o, ) { - buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest++; - if (buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest < + buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData++; + if (buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData < 3) { - unittest.expect(o.deployedModelId!, unittest.equals('foo')); - unittest.expect(o.endTime!, unittest.equals('foo')); - unittest.expect(o.featureDisplayName!, unittest.equals('foo')); - checkUnnamed363(o.objectives!); - unittest.expect(o.pageSize!, unittest.equals(42)); - unittest.expect(o.pageToken!, unittest.equals('foo')); - unittest.expect(o.startTime!, unittest.equals('foo')); + checkUnnamed373(o.userUsageData!); } - buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest--; + buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData--; } core.int -buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective = +buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData = 0; -api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective -buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective() { +api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData +buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData() { final o = - api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective(); - buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective++; - if (buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective < + api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData(); + buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData++; + if (buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData < 3) { - o.topFeatureCount = 42; - o.type = 'foo'; + o.username = 'foo'; + o.viewCount = 'foo'; } - buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective--; + buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData--; return o; } -void -checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective( - api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective - o, +void checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData( + api.GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData o, ) { - buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective++; - if (buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective < + buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData++; + if (buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData < 3) { - unittest.expect(o.topFeatureCount!, unittest.equals(42)); - unittest.expect(o.type!, unittest.equals('foo')); + unittest.expect(o.username!, unittest.equals('foo')); + unittest.expect(o.viewCount!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective--; + buildCounterGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData--; } -core.List -buildUnnamed364() => [ - buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies(), - buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies(), -]; +core.Map buildUnnamed374() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkUnnamed364( - core.List o, -) { +void checkUnnamed374(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies(o[0]); - checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies(o[1]); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.int -buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse = - 0; -api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse -buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse() { - final o = - api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse(); - buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse++; - if (buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse < - 3) { - o.monitoringStats = buildUnnamed364(); - o.nextPageToken = 'foo'; - } - buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse--; - return o; -} - -void -checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse( - api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse - o, -) { - buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse++; - if (buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse < - 3) { - checkUnnamed364(o.monitoringStats!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse--; -} - -core.int buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesRequest = 0; -api.GoogleCloudAiplatformV1SearchNearestEntitiesRequest -buildGoogleCloudAiplatformV1SearchNearestEntitiesRequest() { - final o = api.GoogleCloudAiplatformV1SearchNearestEntitiesRequest(); - buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesRequest++; - if (buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesRequest < 3) { - o.query = buildGoogleCloudAiplatformV1NearestNeighborQuery(); - o.returnFullEntity = true; +core.int buildCounterGoogleCloudAiplatformV1ReasoningEngine = 0; +api.GoogleCloudAiplatformV1ReasoningEngine +buildGoogleCloudAiplatformV1ReasoningEngine() { + final o = api.GoogleCloudAiplatformV1ReasoningEngine(); + buildCounterGoogleCloudAiplatformV1ReasoningEngine++; + if (buildCounterGoogleCloudAiplatformV1ReasoningEngine < 3) { + o.createTime = 'foo'; + o.description = 'foo'; + o.displayName = 'foo'; + o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.etag = 'foo'; + o.labels = buildUnnamed374(); + o.name = 'foo'; + o.spec = buildGoogleCloudAiplatformV1ReasoningEngineSpec(); + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesRequest--; + buildCounterGoogleCloudAiplatformV1ReasoningEngine--; return o; } -void checkGoogleCloudAiplatformV1SearchNearestEntitiesRequest( - api.GoogleCloudAiplatformV1SearchNearestEntitiesRequest o, +void checkGoogleCloudAiplatformV1ReasoningEngine( + api.GoogleCloudAiplatformV1ReasoningEngine o, ) { - buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesRequest++; - if (buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesRequest < 3) { - checkGoogleCloudAiplatformV1NearestNeighborQuery(o.query!); - unittest.expect(o.returnFullEntity!, unittest.isTrue); + buildCounterGoogleCloudAiplatformV1ReasoningEngine++; + if (buildCounterGoogleCloudAiplatformV1ReasoningEngine < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + unittest.expect(o.etag!, unittest.equals('foo')); + checkUnnamed374(o.labels!); + unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ReasoningEngineSpec(o.spec!); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesRequest--; + buildCounterGoogleCloudAiplatformV1ReasoningEngine--; } -core.int buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesResponse = 0; -api.GoogleCloudAiplatformV1SearchNearestEntitiesResponse -buildGoogleCloudAiplatformV1SearchNearestEntitiesResponse() { - final o = api.GoogleCloudAiplatformV1SearchNearestEntitiesResponse(); - buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesResponse++; - if (buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesResponse < 3) { - o.nearestNeighbors = buildGoogleCloudAiplatformV1NearestNeighbors(); - } - buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesResponse--; - return o; -} +core.Map buildUnnamed375() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; -void checkGoogleCloudAiplatformV1SearchNearestEntitiesResponse( - api.GoogleCloudAiplatformV1SearchNearestEntitiesResponse o, -) { - buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesResponse++; - if (buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesResponse < 3) { - checkGoogleCloudAiplatformV1NearestNeighbors(o.nearestNeighbors!); - } - buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesResponse--; +void checkUnnamed375(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted88 = (o['x']!) as core.Map; + unittest.expect(casted88, unittest.hasLength(3)); + unittest.expect(casted88['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted88['bool'], unittest.equals(true)); + unittest.expect(casted88['string'], unittest.equals('foo')); + var casted89 = (o['y']!) as core.Map; + unittest.expect(casted89, unittest.hasLength(3)); + unittest.expect(casted89['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted89['bool'], unittest.equals(true)); + unittest.expect(casted89['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1SecretEnvVar = 0; -api.GoogleCloudAiplatformV1SecretEnvVar -buildGoogleCloudAiplatformV1SecretEnvVar() { - final o = api.GoogleCloudAiplatformV1SecretEnvVar(); - buildCounterGoogleCloudAiplatformV1SecretEnvVar++; - if (buildCounterGoogleCloudAiplatformV1SecretEnvVar < 3) { - o.name = 'foo'; - o.secretRef = buildGoogleCloudAiplatformV1SecretRef(); - } - buildCounterGoogleCloudAiplatformV1SecretEnvVar--; - return o; -} +core.List> buildUnnamed376() => [ + buildUnnamed375(), + buildUnnamed375(), +]; -void checkGoogleCloudAiplatformV1SecretEnvVar( - api.GoogleCloudAiplatformV1SecretEnvVar o, -) { - buildCounterGoogleCloudAiplatformV1SecretEnvVar++; - if (buildCounterGoogleCloudAiplatformV1SecretEnvVar < 3) { - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1SecretRef(o.secretRef!); - } - buildCounterGoogleCloudAiplatformV1SecretEnvVar--; +void checkUnnamed376(core.List> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed375(o[0]); + checkUnnamed375(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1SecretRef = 0; -api.GoogleCloudAiplatformV1SecretRef buildGoogleCloudAiplatformV1SecretRef() { - final o = api.GoogleCloudAiplatformV1SecretRef(); - buildCounterGoogleCloudAiplatformV1SecretRef++; - if (buildCounterGoogleCloudAiplatformV1SecretRef < 3) { - o.secret = 'foo'; - o.version = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ReasoningEngineSpec = 0; +api.GoogleCloudAiplatformV1ReasoningEngineSpec +buildGoogleCloudAiplatformV1ReasoningEngineSpec() { + final o = api.GoogleCloudAiplatformV1ReasoningEngineSpec(); + buildCounterGoogleCloudAiplatformV1ReasoningEngineSpec++; + if (buildCounterGoogleCloudAiplatformV1ReasoningEngineSpec < 3) { + o.agentFramework = 'foo'; + o.classMethods = buildUnnamed376(); + o.deploymentSpec = + buildGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec(); + o.packageSpec = + buildGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec(); + o.serviceAccount = 'foo'; } - buildCounterGoogleCloudAiplatformV1SecretRef--; + buildCounterGoogleCloudAiplatformV1ReasoningEngineSpec--; return o; } -void checkGoogleCloudAiplatformV1SecretRef( - api.GoogleCloudAiplatformV1SecretRef o, +void checkGoogleCloudAiplatformV1ReasoningEngineSpec( + api.GoogleCloudAiplatformV1ReasoningEngineSpec o, ) { - buildCounterGoogleCloudAiplatformV1SecretRef++; - if (buildCounterGoogleCloudAiplatformV1SecretRef < 3) { - unittest.expect(o.secret!, unittest.equals('foo')); - unittest.expect(o.version!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ReasoningEngineSpec++; + if (buildCounterGoogleCloudAiplatformV1ReasoningEngineSpec < 3) { + unittest.expect(o.agentFramework!, unittest.equals('foo')); + checkUnnamed376(o.classMethods!); + checkGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec( + o.deploymentSpec!, + ); + checkGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec(o.packageSpec!); + unittest.expect(o.serviceAccount!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SecretRef--; + buildCounterGoogleCloudAiplatformV1ReasoningEngineSpec--; } -core.int buildCounterGoogleCloudAiplatformV1Segment = 0; -api.GoogleCloudAiplatformV1Segment buildGoogleCloudAiplatformV1Segment() { - final o = api.GoogleCloudAiplatformV1Segment(); - buildCounterGoogleCloudAiplatformV1Segment++; - if (buildCounterGoogleCloudAiplatformV1Segment < 3) { - o.endIndex = 42; - o.partIndex = 42; - o.startIndex = 42; - o.text = 'foo'; - } - buildCounterGoogleCloudAiplatformV1Segment--; - return o; -} +core.List buildUnnamed377() => [ + buildGoogleCloudAiplatformV1EnvVar(), + buildGoogleCloudAiplatformV1EnvVar(), +]; -void checkGoogleCloudAiplatformV1Segment(api.GoogleCloudAiplatformV1Segment o) { - buildCounterGoogleCloudAiplatformV1Segment++; - if (buildCounterGoogleCloudAiplatformV1Segment < 3) { - unittest.expect(o.endIndex!, unittest.equals(42)); - unittest.expect(o.partIndex!, unittest.equals(42)); - unittest.expect(o.startIndex!, unittest.equals(42)); - unittest.expect(o.text!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1Segment--; +void checkUnnamed377(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1EnvVar(o[0]); + checkGoogleCloudAiplatformV1EnvVar(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ServiceAccountSpec = 0; -api.GoogleCloudAiplatformV1ServiceAccountSpec -buildGoogleCloudAiplatformV1ServiceAccountSpec() { - final o = api.GoogleCloudAiplatformV1ServiceAccountSpec(); - buildCounterGoogleCloudAiplatformV1ServiceAccountSpec++; - if (buildCounterGoogleCloudAiplatformV1ServiceAccountSpec < 3) { - o.enableCustomServiceAccount = true; - o.serviceAccount = 'foo'; - } - buildCounterGoogleCloudAiplatformV1ServiceAccountSpec--; - return o; -} +core.Map buildUnnamed378() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkGoogleCloudAiplatformV1ServiceAccountSpec( - api.GoogleCloudAiplatformV1ServiceAccountSpec o, -) { - buildCounterGoogleCloudAiplatformV1ServiceAccountSpec++; - if (buildCounterGoogleCloudAiplatformV1ServiceAccountSpec < 3) { - unittest.expect(o.enableCustomServiceAccount!, unittest.isTrue); - unittest.expect(o.serviceAccount!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1ServiceAccountSpec--; +void checkUnnamed378(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.List -buildUnnamed365() => [ - buildGoogleCloudAiplatformV1SharePointSourcesSharePointSource(), - buildGoogleCloudAiplatformV1SharePointSourcesSharePointSource(), +core.List buildUnnamed379() => [ + buildGoogleCloudAiplatformV1SecretEnvVar(), + buildGoogleCloudAiplatformV1SecretEnvVar(), ]; -void checkUnnamed365( - core.List o, -) { +void checkUnnamed379(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1SharePointSourcesSharePointSource(o[0]); - checkGoogleCloudAiplatformV1SharePointSourcesSharePointSource(o[1]); + checkGoogleCloudAiplatformV1SecretEnvVar(o[0]); + checkGoogleCloudAiplatformV1SecretEnvVar(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1SharePointSources = 0; -api.GoogleCloudAiplatformV1SharePointSources -buildGoogleCloudAiplatformV1SharePointSources() { - final o = api.GoogleCloudAiplatformV1SharePointSources(); - buildCounterGoogleCloudAiplatformV1SharePointSources++; - if (buildCounterGoogleCloudAiplatformV1SharePointSources < 3) { - o.sharePointSources = buildUnnamed365(); +core.int buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec = + 0; +api.GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec +buildGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec() { + final o = api.GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec(); + buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec++; + if (buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec < + 3) { + o.containerConcurrency = 42; + o.env = buildUnnamed377(); + o.maxInstances = 42; + o.minInstances = 42; + o.pscInterfaceConfig = buildGoogleCloudAiplatformV1PscInterfaceConfig(); + o.resourceLimits = buildUnnamed378(); + o.secretEnv = buildUnnamed379(); } - buildCounterGoogleCloudAiplatformV1SharePointSources--; + buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec--; return o; } -void checkGoogleCloudAiplatformV1SharePointSources( - api.GoogleCloudAiplatformV1SharePointSources o, +void checkGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec( + api.GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec o, ) { - buildCounterGoogleCloudAiplatformV1SharePointSources++; - if (buildCounterGoogleCloudAiplatformV1SharePointSources < 3) { - checkUnnamed365(o.sharePointSources!); + buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec++; + if (buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec < + 3) { + unittest.expect(o.containerConcurrency!, unittest.equals(42)); + checkUnnamed377(o.env!); + unittest.expect(o.maxInstances!, unittest.equals(42)); + unittest.expect(o.minInstances!, unittest.equals(42)); + checkGoogleCloudAiplatformV1PscInterfaceConfig(o.pscInterfaceConfig!); + checkUnnamed378(o.resourceLimits!); + checkUnnamed379(o.secretEnv!); } - buildCounterGoogleCloudAiplatformV1SharePointSources--; + buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec--; } -core.int buildCounterGoogleCloudAiplatformV1SharePointSourcesSharePointSource = - 0; -api.GoogleCloudAiplatformV1SharePointSourcesSharePointSource -buildGoogleCloudAiplatformV1SharePointSourcesSharePointSource() { - final o = api.GoogleCloudAiplatformV1SharePointSourcesSharePointSource(); - buildCounterGoogleCloudAiplatformV1SharePointSourcesSharePointSource++; - if (buildCounterGoogleCloudAiplatformV1SharePointSourcesSharePointSource < - 3) { - o.clientId = 'foo'; - o.clientSecret = buildGoogleCloudAiplatformV1ApiAuthApiKeyConfig(); - o.driveId = 'foo'; - o.driveName = 'foo'; - o.fileId = 'foo'; - o.sharepointFolderId = 'foo'; - o.sharepointFolderPath = 'foo'; - o.sharepointSiteName = 'foo'; - o.tenantId = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec = 0; +api.GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec +buildGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec() { + final o = api.GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec(); + buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec++; + if (buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec < 3) { + o.dependencyFilesGcsUri = 'foo'; + o.pickleObjectGcsUri = 'foo'; + o.pythonVersion = 'foo'; + o.requirementsGcsUri = 'foo'; } - buildCounterGoogleCloudAiplatformV1SharePointSourcesSharePointSource--; + buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec--; return o; } -void checkGoogleCloudAiplatformV1SharePointSourcesSharePointSource( - api.GoogleCloudAiplatformV1SharePointSourcesSharePointSource o, +void checkGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec( + api.GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec o, ) { - buildCounterGoogleCloudAiplatformV1SharePointSourcesSharePointSource++; - if (buildCounterGoogleCloudAiplatformV1SharePointSourcesSharePointSource < - 3) { - unittest.expect(o.clientId!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ApiAuthApiKeyConfig(o.clientSecret!); - unittest.expect(o.driveId!, unittest.equals('foo')); - unittest.expect(o.driveName!, unittest.equals('foo')); - unittest.expect(o.fileId!, unittest.equals('foo')); - unittest.expect(o.sharepointFolderId!, unittest.equals('foo')); - unittest.expect(o.sharepointFolderPath!, unittest.equals('foo')); - unittest.expect(o.sharepointSiteName!, unittest.equals('foo')); - unittest.expect(o.tenantId!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec++; + if (buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec < 3) { + unittest.expect(o.dependencyFilesGcsUri!, unittest.equals('foo')); + unittest.expect(o.pickleObjectGcsUri!, unittest.equals('foo')); + unittest.expect(o.pythonVersion!, unittest.equals('foo')); + unittest.expect(o.requirementsGcsUri!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SharePointSourcesSharePointSource--; + buildCounterGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec--; } -core.int buildCounterGoogleCloudAiplatformV1ShieldedVmConfig = 0; -api.GoogleCloudAiplatformV1ShieldedVmConfig -buildGoogleCloudAiplatformV1ShieldedVmConfig() { - final o = api.GoogleCloudAiplatformV1ShieldedVmConfig(); - buildCounterGoogleCloudAiplatformV1ShieldedVmConfig++; - if (buildCounterGoogleCloudAiplatformV1ShieldedVmConfig < 3) { - o.enableSecureBoot = true; +core.int buildCounterGoogleCloudAiplatformV1RebaseTunedModelRequest = 0; +api.GoogleCloudAiplatformV1RebaseTunedModelRequest +buildGoogleCloudAiplatformV1RebaseTunedModelRequest() { + final o = api.GoogleCloudAiplatformV1RebaseTunedModelRequest(); + buildCounterGoogleCloudAiplatformV1RebaseTunedModelRequest++; + if (buildCounterGoogleCloudAiplatformV1RebaseTunedModelRequest < 3) { + o.artifactDestination = buildGoogleCloudAiplatformV1GcsDestination(); + o.deployToSameEndpoint = true; + o.tunedModelRef = buildGoogleCloudAiplatformV1TunedModelRef(); + o.tuningJob = buildGoogleCloudAiplatformV1TuningJob(); } - buildCounterGoogleCloudAiplatformV1ShieldedVmConfig--; + buildCounterGoogleCloudAiplatformV1RebaseTunedModelRequest--; return o; } -void checkGoogleCloudAiplatformV1ShieldedVmConfig( - api.GoogleCloudAiplatformV1ShieldedVmConfig o, +void checkGoogleCloudAiplatformV1RebaseTunedModelRequest( + api.GoogleCloudAiplatformV1RebaseTunedModelRequest o, ) { - buildCounterGoogleCloudAiplatformV1ShieldedVmConfig++; - if (buildCounterGoogleCloudAiplatformV1ShieldedVmConfig < 3) { - unittest.expect(o.enableSecureBoot!, unittest.isTrue); + buildCounterGoogleCloudAiplatformV1RebaseTunedModelRequest++; + if (buildCounterGoogleCloudAiplatformV1RebaseTunedModelRequest < 3) { + checkGoogleCloudAiplatformV1GcsDestination(o.artifactDestination!); + unittest.expect(o.deployToSameEndpoint!, unittest.isTrue); + checkGoogleCloudAiplatformV1TunedModelRef(o.tunedModelRef!); + checkGoogleCloudAiplatformV1TuningJob(o.tuningJob!); } - buildCounterGoogleCloudAiplatformV1ShieldedVmConfig--; + buildCounterGoogleCloudAiplatformV1RebaseTunedModelRequest--; } -core.List -buildUnnamed366() => [ - buildGoogleCloudAiplatformV1SlackSourceSlackChannels(), - buildGoogleCloudAiplatformV1SlackSourceSlackChannels(), -]; +core.int buildCounterGoogleCloudAiplatformV1RebootPersistentResourceRequest = 0; +api.GoogleCloudAiplatformV1RebootPersistentResourceRequest +buildGoogleCloudAiplatformV1RebootPersistentResourceRequest() { + final o = api.GoogleCloudAiplatformV1RebootPersistentResourceRequest(); + buildCounterGoogleCloudAiplatformV1RebootPersistentResourceRequest++; + if (buildCounterGoogleCloudAiplatformV1RebootPersistentResourceRequest < 3) {} + buildCounterGoogleCloudAiplatformV1RebootPersistentResourceRequest--; + return o; +} -void checkUnnamed366( - core.List o, +void checkGoogleCloudAiplatformV1RebootPersistentResourceRequest( + api.GoogleCloudAiplatformV1RebootPersistentResourceRequest o, ) { + buildCounterGoogleCloudAiplatformV1RebootPersistentResourceRequest++; + if (buildCounterGoogleCloudAiplatformV1RebootPersistentResourceRequest < 3) {} + buildCounterGoogleCloudAiplatformV1RebootPersistentResourceRequest--; +} + +core.List buildUnnamed380() => ['foo', 'foo']; + +void checkUnnamed380(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1SlackSourceSlackChannels(o[0]); - checkGoogleCloudAiplatformV1SlackSourceSlackChannels(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1SlackSource = 0; -api.GoogleCloudAiplatformV1SlackSource -buildGoogleCloudAiplatformV1SlackSource() { - final o = api.GoogleCloudAiplatformV1SlackSource(); - buildCounterGoogleCloudAiplatformV1SlackSource++; - if (buildCounterGoogleCloudAiplatformV1SlackSource < 3) { - o.channels = buildUnnamed366(); +core.int buildCounterGoogleCloudAiplatformV1RemoveContextChildrenRequest = 0; +api.GoogleCloudAiplatformV1RemoveContextChildrenRequest +buildGoogleCloudAiplatformV1RemoveContextChildrenRequest() { + final o = api.GoogleCloudAiplatformV1RemoveContextChildrenRequest(); + buildCounterGoogleCloudAiplatformV1RemoveContextChildrenRequest++; + if (buildCounterGoogleCloudAiplatformV1RemoveContextChildrenRequest < 3) { + o.childContexts = buildUnnamed380(); } - buildCounterGoogleCloudAiplatformV1SlackSource--; + buildCounterGoogleCloudAiplatformV1RemoveContextChildrenRequest--; return o; } -void checkGoogleCloudAiplatformV1SlackSource( - api.GoogleCloudAiplatformV1SlackSource o, +void checkGoogleCloudAiplatformV1RemoveContextChildrenRequest( + api.GoogleCloudAiplatformV1RemoveContextChildrenRequest o, ) { - buildCounterGoogleCloudAiplatformV1SlackSource++; - if (buildCounterGoogleCloudAiplatformV1SlackSource < 3) { - checkUnnamed366(o.channels!); + buildCounterGoogleCloudAiplatformV1RemoveContextChildrenRequest++; + if (buildCounterGoogleCloudAiplatformV1RemoveContextChildrenRequest < 3) { + checkUnnamed380(o.childContexts!); } - buildCounterGoogleCloudAiplatformV1SlackSource--; + buildCounterGoogleCloudAiplatformV1RemoveContextChildrenRequest--; } -core.List -buildUnnamed367() => [ - buildGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel(), - buildGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel(), -]; +core.int buildCounterGoogleCloudAiplatformV1RemoveContextChildrenResponse = 0; +api.GoogleCloudAiplatformV1RemoveContextChildrenResponse +buildGoogleCloudAiplatformV1RemoveContextChildrenResponse() { + final o = api.GoogleCloudAiplatformV1RemoveContextChildrenResponse(); + buildCounterGoogleCloudAiplatformV1RemoveContextChildrenResponse++; + if (buildCounterGoogleCloudAiplatformV1RemoveContextChildrenResponse < 3) {} + buildCounterGoogleCloudAiplatformV1RemoveContextChildrenResponse--; + return o; +} -void checkUnnamed367( - core.List o, +void checkGoogleCloudAiplatformV1RemoveContextChildrenResponse( + api.GoogleCloudAiplatformV1RemoveContextChildrenResponse o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel(o[0]); - checkGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel(o[1]); + buildCounterGoogleCloudAiplatformV1RemoveContextChildrenResponse++; + if (buildCounterGoogleCloudAiplatformV1RemoveContextChildrenResponse < 3) {} + buildCounterGoogleCloudAiplatformV1RemoveContextChildrenResponse--; } -core.int buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannels = 0; -api.GoogleCloudAiplatformV1SlackSourceSlackChannels -buildGoogleCloudAiplatformV1SlackSourceSlackChannels() { - final o = api.GoogleCloudAiplatformV1SlackSourceSlackChannels(); - buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannels++; - if (buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannels < 3) { - o.apiKeyConfig = buildGoogleCloudAiplatformV1ApiAuthApiKeyConfig(); - o.channels = buildUnnamed367(); - } - buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannels--; - return o; -} +core.List buildUnnamed381() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1SlackSourceSlackChannels( - api.GoogleCloudAiplatformV1SlackSourceSlackChannels o, -) { - buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannels++; - if (buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannels < 3) { - checkGoogleCloudAiplatformV1ApiAuthApiKeyConfig(o.apiKeyConfig!); - checkUnnamed367(o.channels!); - } - buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannels--; +void checkUnnamed381(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int -buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel = 0; -api.GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel -buildGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel() { - final o = api.GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel(); - buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel++; - if (buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel < - 3) { - o.channelId = 'foo'; - o.endTime = 'foo'; - o.startTime = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1RemoveDatapointsRequest = 0; +api.GoogleCloudAiplatformV1RemoveDatapointsRequest +buildGoogleCloudAiplatformV1RemoveDatapointsRequest() { + final o = api.GoogleCloudAiplatformV1RemoveDatapointsRequest(); + buildCounterGoogleCloudAiplatformV1RemoveDatapointsRequest++; + if (buildCounterGoogleCloudAiplatformV1RemoveDatapointsRequest < 3) { + o.datapointIds = buildUnnamed381(); } - buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel--; + buildCounterGoogleCloudAiplatformV1RemoveDatapointsRequest--; return o; } -void checkGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel( - api.GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel o, +void checkGoogleCloudAiplatformV1RemoveDatapointsRequest( + api.GoogleCloudAiplatformV1RemoveDatapointsRequest o, ) { - buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel++; - if (buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel < - 3) { - unittest.expect(o.channelId!, unittest.equals('foo')); - unittest.expect(o.endTime!, unittest.equals('foo')); - unittest.expect(o.startTime!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1RemoveDatapointsRequest++; + if (buildCounterGoogleCloudAiplatformV1RemoveDatapointsRequest < 3) { + checkUnnamed381(o.datapointIds!); } - buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel--; + buildCounterGoogleCloudAiplatformV1RemoveDatapointsRequest--; } -core.int buildCounterGoogleCloudAiplatformV1SmoothGradConfig = 0; -api.GoogleCloudAiplatformV1SmoothGradConfig -buildGoogleCloudAiplatformV1SmoothGradConfig() { - final o = api.GoogleCloudAiplatformV1SmoothGradConfig(); - buildCounterGoogleCloudAiplatformV1SmoothGradConfig++; - if (buildCounterGoogleCloudAiplatformV1SmoothGradConfig < 3) { - o.featureNoiseSigma = buildGoogleCloudAiplatformV1FeatureNoiseSigma(); - o.noiseSigma = 42.0; - o.noisySampleCount = 42; - } - buildCounterGoogleCloudAiplatformV1SmoothGradConfig--; +core.int buildCounterGoogleCloudAiplatformV1RemoveDatapointsResponse = 0; +api.GoogleCloudAiplatformV1RemoveDatapointsResponse +buildGoogleCloudAiplatformV1RemoveDatapointsResponse() { + final o = api.GoogleCloudAiplatformV1RemoveDatapointsResponse(); + buildCounterGoogleCloudAiplatformV1RemoveDatapointsResponse++; + if (buildCounterGoogleCloudAiplatformV1RemoveDatapointsResponse < 3) {} + buildCounterGoogleCloudAiplatformV1RemoveDatapointsResponse--; return o; } -void checkGoogleCloudAiplatformV1SmoothGradConfig( - api.GoogleCloudAiplatformV1SmoothGradConfig o, +void checkGoogleCloudAiplatformV1RemoveDatapointsResponse( + api.GoogleCloudAiplatformV1RemoveDatapointsResponse o, ) { - buildCounterGoogleCloudAiplatformV1SmoothGradConfig++; - if (buildCounterGoogleCloudAiplatformV1SmoothGradConfig < 3) { - checkGoogleCloudAiplatformV1FeatureNoiseSigma(o.featureNoiseSigma!); - unittest.expect(o.noiseSigma!, unittest.equals(42.0)); - unittest.expect(o.noisySampleCount!, unittest.equals(42)); - } - buildCounterGoogleCloudAiplatformV1SmoothGradConfig--; + buildCounterGoogleCloudAiplatformV1RemoveDatapointsResponse++; + if (buildCounterGoogleCloudAiplatformV1RemoveDatapointsResponse < 3) {} + buildCounterGoogleCloudAiplatformV1RemoveDatapointsResponse--; } -core.List buildUnnamed368() => ['foo', 'foo']; +core.List buildUnnamed382() => ['foo', 'foo']; -void checkUnnamed368(core.List o) { +void checkUnnamed382(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed369() => ['foo', 'foo']; - -void checkUnnamed369(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.List buildUnnamed370() => ['foo', 'foo']; - -void checkUnnamed370(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterGoogleCloudAiplatformV1SpecialistPool = 0; -api.GoogleCloudAiplatformV1SpecialistPool -buildGoogleCloudAiplatformV1SpecialistPool() { - final o = api.GoogleCloudAiplatformV1SpecialistPool(); - buildCounterGoogleCloudAiplatformV1SpecialistPool++; - if (buildCounterGoogleCloudAiplatformV1SpecialistPool < 3) { - o.displayName = 'foo'; - o.name = 'foo'; - o.pendingDataLabelingJobs = buildUnnamed368(); - o.specialistManagerEmails = buildUnnamed369(); - o.specialistManagersCount = 42; - o.specialistWorkerEmails = buildUnnamed370(); +core.int buildCounterGoogleCloudAiplatformV1ReservationAffinity = 0; +api.GoogleCloudAiplatformV1ReservationAffinity +buildGoogleCloudAiplatformV1ReservationAffinity() { + final o = api.GoogleCloudAiplatformV1ReservationAffinity(); + buildCounterGoogleCloudAiplatformV1ReservationAffinity++; + if (buildCounterGoogleCloudAiplatformV1ReservationAffinity < 3) { + o.key = 'foo'; + o.reservationAffinityType = 'foo'; + o.values = buildUnnamed382(); } - buildCounterGoogleCloudAiplatformV1SpecialistPool--; + buildCounterGoogleCloudAiplatformV1ReservationAffinity--; return o; } -void checkGoogleCloudAiplatformV1SpecialistPool( - api.GoogleCloudAiplatformV1SpecialistPool o, +void checkGoogleCloudAiplatformV1ReservationAffinity( + api.GoogleCloudAiplatformV1ReservationAffinity o, ) { - buildCounterGoogleCloudAiplatformV1SpecialistPool++; - if (buildCounterGoogleCloudAiplatformV1SpecialistPool < 3) { - unittest.expect(o.displayName!, unittest.equals('foo')); - unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed368(o.pendingDataLabelingJobs!); - checkUnnamed369(o.specialistManagerEmails!); - unittest.expect(o.specialistManagersCount!, unittest.equals(42)); - checkUnnamed370(o.specialistWorkerEmails!); + buildCounterGoogleCloudAiplatformV1ReservationAffinity++; + if (buildCounterGoogleCloudAiplatformV1ReservationAffinity < 3) { + unittest.expect(o.key!, unittest.equals('foo')); + unittest.expect(o.reservationAffinityType!, unittest.equals('foo')); + checkUnnamed382(o.values!); } - buildCounterGoogleCloudAiplatformV1SpecialistPool--; + buildCounterGoogleCloudAiplatformV1ReservationAffinity--; } -core.int buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpec = 0; -api.GoogleCloudAiplatformV1SpeculativeDecodingSpec -buildGoogleCloudAiplatformV1SpeculativeDecodingSpec() { - final o = api.GoogleCloudAiplatformV1SpeculativeDecodingSpec(); - buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpec++; - if (buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpec < 3) { - o.draftModelSpeculation = - buildGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation(); - o.ngramSpeculation = - buildGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation(); - o.speculativeTokenCount = 42; +core.int buildCounterGoogleCloudAiplatformV1ResourcePool = 0; +api.GoogleCloudAiplatformV1ResourcePool +buildGoogleCloudAiplatformV1ResourcePool() { + final o = api.GoogleCloudAiplatformV1ResourcePool(); + buildCounterGoogleCloudAiplatformV1ResourcePool++; + if (buildCounterGoogleCloudAiplatformV1ResourcePool < 3) { + o.autoscalingSpec = + buildGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec(); + o.diskSpec = buildGoogleCloudAiplatformV1DiskSpec(); + o.id = 'foo'; + o.machineSpec = buildGoogleCloudAiplatformV1MachineSpec(); + o.replicaCount = 'foo'; + o.usedReplicaCount = 'foo'; } - buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpec--; + buildCounterGoogleCloudAiplatformV1ResourcePool--; return o; } -void checkGoogleCloudAiplatformV1SpeculativeDecodingSpec( - api.GoogleCloudAiplatformV1SpeculativeDecodingSpec o, +void checkGoogleCloudAiplatformV1ResourcePool( + api.GoogleCloudAiplatformV1ResourcePool o, ) { - buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpec++; - if (buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpec < 3) { - checkGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation( - o.draftModelSpeculation!, - ); - checkGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation( - o.ngramSpeculation!, - ); - unittest.expect(o.speculativeTokenCount!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1ResourcePool++; + if (buildCounterGoogleCloudAiplatformV1ResourcePool < 3) { + checkGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec(o.autoscalingSpec!); + checkGoogleCloudAiplatformV1DiskSpec(o.diskSpec!); + unittest.expect(o.id!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1MachineSpec(o.machineSpec!); + unittest.expect(o.replicaCount!, unittest.equals('foo')); + unittest.expect(o.usedReplicaCount!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpec--; + buildCounterGoogleCloudAiplatformV1ResourcePool--; } -core.int -buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation = - 0; -api.GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation -buildGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation() { - final o = - api.GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation(); - buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation++; - if (buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation < - 3) { - o.draftModel = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec = 0; +api.GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec +buildGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec() { + final o = api.GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec(); + buildCounterGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec++; + if (buildCounterGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec < 3) { + o.maxReplicaCount = 'foo'; + o.minReplicaCount = 'foo'; } - buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation--; + buildCounterGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec--; return o; } -void checkGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation( - api.GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation o, +void checkGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec( + api.GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec o, ) { - buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation++; - if (buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation < - 3) { - unittest.expect(o.draftModel!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec++; + if (buildCounterGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec < 3) { + unittest.expect(o.maxReplicaCount!, unittest.equals('foo')); + unittest.expect(o.minReplicaCount!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation--; + buildCounterGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec--; } -core.int -buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation = 0; -api.GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation -buildGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation() { - final o = - api.GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation(); - buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation++; - if (buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation < - 3) { - o.ngramSize = 42; +core.Map buildUnnamed383() => { + 'x': 'foo', + 'y': 'foo', +}; + +void checkUnnamed383(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1ResourceRuntime = 0; +api.GoogleCloudAiplatformV1ResourceRuntime +buildGoogleCloudAiplatformV1ResourceRuntime() { + final o = api.GoogleCloudAiplatformV1ResourceRuntime(); + buildCounterGoogleCloudAiplatformV1ResourceRuntime++; + if (buildCounterGoogleCloudAiplatformV1ResourceRuntime < 3) { + o.accessUris = buildUnnamed383(); } - buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation--; + buildCounterGoogleCloudAiplatformV1ResourceRuntime--; return o; } -void checkGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation( - api.GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation o, +void checkGoogleCloudAiplatformV1ResourceRuntime( + api.GoogleCloudAiplatformV1ResourceRuntime o, ) { - buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation++; - if (buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation < - 3) { - unittest.expect(o.ngramSize!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1ResourceRuntime++; + if (buildCounterGoogleCloudAiplatformV1ResourceRuntime < 3) { + checkUnnamed383(o.accessUris!); } - buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation--; + buildCounterGoogleCloudAiplatformV1ResourceRuntime--; } -core.int buildCounterGoogleCloudAiplatformV1SpeechConfig = 0; -api.GoogleCloudAiplatformV1SpeechConfig -buildGoogleCloudAiplatformV1SpeechConfig() { - final o = api.GoogleCloudAiplatformV1SpeechConfig(); - buildCounterGoogleCloudAiplatformV1SpeechConfig++; - if (buildCounterGoogleCloudAiplatformV1SpeechConfig < 3) { - o.languageCode = 'foo'; - o.voiceConfig = buildGoogleCloudAiplatformV1VoiceConfig(); +core.int buildCounterGoogleCloudAiplatformV1ResourceRuntimeSpec = 0; +api.GoogleCloudAiplatformV1ResourceRuntimeSpec +buildGoogleCloudAiplatformV1ResourceRuntimeSpec() { + final o = api.GoogleCloudAiplatformV1ResourceRuntimeSpec(); + buildCounterGoogleCloudAiplatformV1ResourceRuntimeSpec++; + if (buildCounterGoogleCloudAiplatformV1ResourceRuntimeSpec < 3) { + o.raySpec = buildGoogleCloudAiplatformV1RaySpec(); + o.serviceAccountSpec = buildGoogleCloudAiplatformV1ServiceAccountSpec(); } - buildCounterGoogleCloudAiplatformV1SpeechConfig--; + buildCounterGoogleCloudAiplatformV1ResourceRuntimeSpec--; return o; } -void checkGoogleCloudAiplatformV1SpeechConfig( - api.GoogleCloudAiplatformV1SpeechConfig o, +void checkGoogleCloudAiplatformV1ResourceRuntimeSpec( + api.GoogleCloudAiplatformV1ResourceRuntimeSpec o, ) { - buildCounterGoogleCloudAiplatformV1SpeechConfig++; - if (buildCounterGoogleCloudAiplatformV1SpeechConfig < 3) { - unittest.expect(o.languageCode!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1VoiceConfig(o.voiceConfig!); + buildCounterGoogleCloudAiplatformV1ResourceRuntimeSpec++; + if (buildCounterGoogleCloudAiplatformV1ResourceRuntimeSpec < 3) { + checkGoogleCloudAiplatformV1RaySpec(o.raySpec!); + checkGoogleCloudAiplatformV1ServiceAccountSpec(o.serviceAccountSpec!); } - buildCounterGoogleCloudAiplatformV1SpeechConfig--; + buildCounterGoogleCloudAiplatformV1ResourceRuntimeSpec--; } -core.int buildCounterGoogleCloudAiplatformV1StartNotebookRuntimeRequest = 0; -api.GoogleCloudAiplatformV1StartNotebookRuntimeRequest -buildGoogleCloudAiplatformV1StartNotebookRuntimeRequest() { - final o = api.GoogleCloudAiplatformV1StartNotebookRuntimeRequest(); - buildCounterGoogleCloudAiplatformV1StartNotebookRuntimeRequest++; - if (buildCounterGoogleCloudAiplatformV1StartNotebookRuntimeRequest < 3) {} - buildCounterGoogleCloudAiplatformV1StartNotebookRuntimeRequest--; +core.int buildCounterGoogleCloudAiplatformV1ResourcesConsumed = 0; +api.GoogleCloudAiplatformV1ResourcesConsumed +buildGoogleCloudAiplatformV1ResourcesConsumed() { + final o = api.GoogleCloudAiplatformV1ResourcesConsumed(); + buildCounterGoogleCloudAiplatformV1ResourcesConsumed++; + if (buildCounterGoogleCloudAiplatformV1ResourcesConsumed < 3) { + o.replicaHours = 42.0; + } + buildCounterGoogleCloudAiplatformV1ResourcesConsumed--; return o; } -void checkGoogleCloudAiplatformV1StartNotebookRuntimeRequest( - api.GoogleCloudAiplatformV1StartNotebookRuntimeRequest o, +void checkGoogleCloudAiplatformV1ResourcesConsumed( + api.GoogleCloudAiplatformV1ResourcesConsumed o, ) { - buildCounterGoogleCloudAiplatformV1StartNotebookRuntimeRequest++; - if (buildCounterGoogleCloudAiplatformV1StartNotebookRuntimeRequest < 3) {} - buildCounterGoogleCloudAiplatformV1StartNotebookRuntimeRequest--; + buildCounterGoogleCloudAiplatformV1ResourcesConsumed++; + if (buildCounterGoogleCloudAiplatformV1ResourcesConsumed < 3) { + unittest.expect(o.replicaHours!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1ResourcesConsumed--; } -core.int buildCounterGoogleCloudAiplatformV1StopNotebookRuntimeRequest = 0; -api.GoogleCloudAiplatformV1StopNotebookRuntimeRequest -buildGoogleCloudAiplatformV1StopNotebookRuntimeRequest() { - final o = api.GoogleCloudAiplatformV1StopNotebookRuntimeRequest(); - buildCounterGoogleCloudAiplatformV1StopNotebookRuntimeRequest++; - if (buildCounterGoogleCloudAiplatformV1StopNotebookRuntimeRequest < 3) {} - buildCounterGoogleCloudAiplatformV1StopNotebookRuntimeRequest--; +core.int +buildCounterGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest = + 0; +api.GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest +buildGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest() { + final o = + api.GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest(); + buildCounterGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest++; + if (buildCounterGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest < + 3) {} + buildCounterGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest--; return o; } -void checkGoogleCloudAiplatformV1StopNotebookRuntimeRequest( - api.GoogleCloudAiplatformV1StopNotebookRuntimeRequest o, +void checkGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest( + api.GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest o, ) { - buildCounterGoogleCloudAiplatformV1StopNotebookRuntimeRequest++; - if (buildCounterGoogleCloudAiplatformV1StopNotebookRuntimeRequest < 3) {} - buildCounterGoogleCloudAiplatformV1StopNotebookRuntimeRequest--; + buildCounterGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest++; + if (buildCounterGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest < + 3) {} + buildCounterGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest--; } -core.int buildCounterGoogleCloudAiplatformV1StopTrialRequest = 0; -api.GoogleCloudAiplatformV1StopTrialRequest -buildGoogleCloudAiplatformV1StopTrialRequest() { - final o = api.GoogleCloudAiplatformV1StopTrialRequest(); - buildCounterGoogleCloudAiplatformV1StopTrialRequest++; - if (buildCounterGoogleCloudAiplatformV1StopTrialRequest < 3) {} - buildCounterGoogleCloudAiplatformV1StopTrialRequest--; +core.int buildCounterGoogleCloudAiplatformV1ResumeScheduleRequest = 0; +api.GoogleCloudAiplatformV1ResumeScheduleRequest +buildGoogleCloudAiplatformV1ResumeScheduleRequest() { + final o = api.GoogleCloudAiplatformV1ResumeScheduleRequest(); + buildCounterGoogleCloudAiplatformV1ResumeScheduleRequest++; + if (buildCounterGoogleCloudAiplatformV1ResumeScheduleRequest < 3) { + o.catchUp = true; + } + buildCounterGoogleCloudAiplatformV1ResumeScheduleRequest--; return o; } -void checkGoogleCloudAiplatformV1StopTrialRequest( - api.GoogleCloudAiplatformV1StopTrialRequest o, +void checkGoogleCloudAiplatformV1ResumeScheduleRequest( + api.GoogleCloudAiplatformV1ResumeScheduleRequest o, ) { - buildCounterGoogleCloudAiplatformV1StopTrialRequest++; - if (buildCounterGoogleCloudAiplatformV1StopTrialRequest < 3) {} - buildCounterGoogleCloudAiplatformV1StopTrialRequest--; + buildCounterGoogleCloudAiplatformV1ResumeScheduleRequest++; + if (buildCounterGoogleCloudAiplatformV1ResumeScheduleRequest < 3) { + unittest.expect(o.catchUp!, unittest.isTrue); + } + buildCounterGoogleCloudAiplatformV1ResumeScheduleRequest--; } -core.int buildCounterGoogleCloudAiplatformV1StratifiedSplit = 0; -api.GoogleCloudAiplatformV1StratifiedSplit -buildGoogleCloudAiplatformV1StratifiedSplit() { - final o = api.GoogleCloudAiplatformV1StratifiedSplit(); - buildCounterGoogleCloudAiplatformV1StratifiedSplit++; - if (buildCounterGoogleCloudAiplatformV1StratifiedSplit < 3) { - o.key = 'foo'; - o.testFraction = 42.0; - o.trainingFraction = 42.0; - o.validationFraction = 42.0; +core.int buildCounterGoogleCloudAiplatformV1Retrieval = 0; +api.GoogleCloudAiplatformV1Retrieval buildGoogleCloudAiplatformV1Retrieval() { + final o = api.GoogleCloudAiplatformV1Retrieval(); + buildCounterGoogleCloudAiplatformV1Retrieval++; + if (buildCounterGoogleCloudAiplatformV1Retrieval < 3) { + o.disableAttribution = true; + o.externalApi = buildGoogleCloudAiplatformV1ExternalApi(); + o.vertexAiSearch = buildGoogleCloudAiplatformV1VertexAISearch(); + o.vertexRagStore = buildGoogleCloudAiplatformV1VertexRagStore(); } - buildCounterGoogleCloudAiplatformV1StratifiedSplit--; + buildCounterGoogleCloudAiplatformV1Retrieval--; return o; } -void checkGoogleCloudAiplatformV1StratifiedSplit( - api.GoogleCloudAiplatformV1StratifiedSplit o, +void checkGoogleCloudAiplatformV1Retrieval( + api.GoogleCloudAiplatformV1Retrieval o, ) { - buildCounterGoogleCloudAiplatformV1StratifiedSplit++; - if (buildCounterGoogleCloudAiplatformV1StratifiedSplit < 3) { - unittest.expect(o.key!, unittest.equals('foo')); - unittest.expect(o.testFraction!, unittest.equals(42.0)); - unittest.expect(o.trainingFraction!, unittest.equals(42.0)); - unittest.expect(o.validationFraction!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1Retrieval++; + if (buildCounterGoogleCloudAiplatformV1Retrieval < 3) { + unittest.expect(o.disableAttribution!, unittest.isTrue); + checkGoogleCloudAiplatformV1ExternalApi(o.externalApi!); + checkGoogleCloudAiplatformV1VertexAISearch(o.vertexAiSearch!); + checkGoogleCloudAiplatformV1VertexRagStore(o.vertexRagStore!); } - buildCounterGoogleCloudAiplatformV1StratifiedSplit--; -} - -core.Map buildUnnamed371() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; - -void checkUnnamed371(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - var casted79 = (o['x']!) as core.Map; - unittest.expect(casted79, unittest.hasLength(3)); - unittest.expect(casted79['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted79['bool'], unittest.equals(true)); - unittest.expect(casted79['string'], unittest.equals('foo')); - var casted80 = (o['y']!) as core.Map; - unittest.expect(casted80, unittest.hasLength(3)); - unittest.expect(casted80['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted80['bool'], unittest.equals(true)); - unittest.expect(casted80['string'], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1Retrieval--; } -core.int buildCounterGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest = - 0; -api.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest -buildGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest() { - final o = api.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest(); - buildCounterGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest++; - if (buildCounterGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest < - 3) { - o.classMethod = 'foo'; - o.input = buildUnnamed371(); +core.int buildCounterGoogleCloudAiplatformV1RetrievalConfig = 0; +api.GoogleCloudAiplatformV1RetrievalConfig +buildGoogleCloudAiplatformV1RetrievalConfig() { + final o = api.GoogleCloudAiplatformV1RetrievalConfig(); + buildCounterGoogleCloudAiplatformV1RetrievalConfig++; + if (buildCounterGoogleCloudAiplatformV1RetrievalConfig < 3) { + o.languageCode = 'foo'; + o.latLng = buildGoogleTypeLatLng(); } - buildCounterGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest--; + buildCounterGoogleCloudAiplatformV1RetrievalConfig--; return o; } -void checkGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest( - api.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest o, +void checkGoogleCloudAiplatformV1RetrievalConfig( + api.GoogleCloudAiplatformV1RetrievalConfig o, ) { - buildCounterGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest++; - if (buildCounterGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest < - 3) { - unittest.expect(o.classMethod!, unittest.equals('foo')); - checkUnnamed371(o.input!); + buildCounterGoogleCloudAiplatformV1RetrievalConfig++; + if (buildCounterGoogleCloudAiplatformV1RetrievalConfig < 3) { + unittest.expect(o.languageCode!, unittest.equals('foo')); + checkGoogleTypeLatLng(o.latLng!); } - buildCounterGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest--; + buildCounterGoogleCloudAiplatformV1RetrievalConfig--; } -core.int buildCounterGoogleCloudAiplatformV1StreamRawPredictRequest = 0; -api.GoogleCloudAiplatformV1StreamRawPredictRequest -buildGoogleCloudAiplatformV1StreamRawPredictRequest() { - final o = api.GoogleCloudAiplatformV1StreamRawPredictRequest(); - buildCounterGoogleCloudAiplatformV1StreamRawPredictRequest++; - if (buildCounterGoogleCloudAiplatformV1StreamRawPredictRequest < 3) { - o.httpBody = buildGoogleApiHttpBody(); +core.int buildCounterGoogleCloudAiplatformV1RetrievalMetadata = 0; +api.GoogleCloudAiplatformV1RetrievalMetadata +buildGoogleCloudAiplatformV1RetrievalMetadata() { + final o = api.GoogleCloudAiplatformV1RetrievalMetadata(); + buildCounterGoogleCloudAiplatformV1RetrievalMetadata++; + if (buildCounterGoogleCloudAiplatformV1RetrievalMetadata < 3) { + o.googleSearchDynamicRetrievalScore = 42.0; } - buildCounterGoogleCloudAiplatformV1StreamRawPredictRequest--; + buildCounterGoogleCloudAiplatformV1RetrievalMetadata--; return o; } -void checkGoogleCloudAiplatformV1StreamRawPredictRequest( - api.GoogleCloudAiplatformV1StreamRawPredictRequest o, +void checkGoogleCloudAiplatformV1RetrievalMetadata( + api.GoogleCloudAiplatformV1RetrievalMetadata o, ) { - buildCounterGoogleCloudAiplatformV1StreamRawPredictRequest++; - if (buildCounterGoogleCloudAiplatformV1StreamRawPredictRequest < 3) { - checkGoogleApiHttpBody(o.httpBody!); + buildCounterGoogleCloudAiplatformV1RetrievalMetadata++; + if (buildCounterGoogleCloudAiplatformV1RetrievalMetadata < 3) { + unittest.expect( + o.googleSearchDynamicRetrievalScore!, + unittest.equals(42.0), + ); } - buildCounterGoogleCloudAiplatformV1StreamRawPredictRequest--; -} - -core.List buildUnnamed372() => [ - buildGoogleCloudAiplatformV1Tensor(), - buildGoogleCloudAiplatformV1Tensor(), -]; - -void checkUnnamed372(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Tensor(o[0]); - checkGoogleCloudAiplatformV1Tensor(o[1]); + buildCounterGoogleCloudAiplatformV1RetrievalMetadata--; } -core.int buildCounterGoogleCloudAiplatformV1StreamingPredictRequest = 0; -api.GoogleCloudAiplatformV1StreamingPredictRequest -buildGoogleCloudAiplatformV1StreamingPredictRequest() { - final o = api.GoogleCloudAiplatformV1StreamingPredictRequest(); - buildCounterGoogleCloudAiplatformV1StreamingPredictRequest++; - if (buildCounterGoogleCloudAiplatformV1StreamingPredictRequest < 3) { - o.inputs = buildUnnamed372(); - o.parameters = buildGoogleCloudAiplatformV1Tensor(); +core.int buildCounterGoogleCloudAiplatformV1RetrieveContextsRequest = 0; +api.GoogleCloudAiplatformV1RetrieveContextsRequest +buildGoogleCloudAiplatformV1RetrieveContextsRequest() { + final o = api.GoogleCloudAiplatformV1RetrieveContextsRequest(); + buildCounterGoogleCloudAiplatformV1RetrieveContextsRequest++; + if (buildCounterGoogleCloudAiplatformV1RetrieveContextsRequest < 3) { + o.query = buildGoogleCloudAiplatformV1RagQuery(); + o.vertexRagStore = + buildGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore(); } - buildCounterGoogleCloudAiplatformV1StreamingPredictRequest--; + buildCounterGoogleCloudAiplatformV1RetrieveContextsRequest--; return o; } -void checkGoogleCloudAiplatformV1StreamingPredictRequest( - api.GoogleCloudAiplatformV1StreamingPredictRequest o, +void checkGoogleCloudAiplatformV1RetrieveContextsRequest( + api.GoogleCloudAiplatformV1RetrieveContextsRequest o, ) { - buildCounterGoogleCloudAiplatformV1StreamingPredictRequest++; - if (buildCounterGoogleCloudAiplatformV1StreamingPredictRequest < 3) { - checkUnnamed372(o.inputs!); - checkGoogleCloudAiplatformV1Tensor(o.parameters!); + buildCounterGoogleCloudAiplatformV1RetrieveContextsRequest++; + if (buildCounterGoogleCloudAiplatformV1RetrieveContextsRequest < 3) { + checkGoogleCloudAiplatformV1RagQuery(o.query!); + checkGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore( + o.vertexRagStore!, + ); } - buildCounterGoogleCloudAiplatformV1StreamingPredictRequest--; + buildCounterGoogleCloudAiplatformV1RetrieveContextsRequest--; } -core.List buildUnnamed373() => [ - buildGoogleCloudAiplatformV1Tensor(), - buildGoogleCloudAiplatformV1Tensor(), +core.List< + api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource +> +buildUnnamed384() => [ + buildGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource(), + buildGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource(), ]; -void checkUnnamed373(core.List o) { +void checkUnnamed384( + core.List< + api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource + > + o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Tensor(o[0]); - checkGoogleCloudAiplatformV1Tensor(o[1]); + checkGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource( + o[0], + ); + checkGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource( + o[1], + ); } -core.int buildCounterGoogleCloudAiplatformV1StreamingPredictResponse = 0; -api.GoogleCloudAiplatformV1StreamingPredictResponse -buildGoogleCloudAiplatformV1StreamingPredictResponse() { - final o = api.GoogleCloudAiplatformV1StreamingPredictResponse(); - buildCounterGoogleCloudAiplatformV1StreamingPredictResponse++; - if (buildCounterGoogleCloudAiplatformV1StreamingPredictResponse < 3) { - o.outputs = buildUnnamed373(); - o.parameters = buildGoogleCloudAiplatformV1Tensor(); +core.int +buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore = 0; +api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore +buildGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore() { + final o = api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore(); + buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore++; + if (buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore < + 3) { + o.ragResources = buildUnnamed384(); + o.vectorDistanceThreshold = 42.0; } - buildCounterGoogleCloudAiplatformV1StreamingPredictResponse--; + buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore--; return o; } -void checkGoogleCloudAiplatformV1StreamingPredictResponse( - api.GoogleCloudAiplatformV1StreamingPredictResponse o, +void checkGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore( + api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore o, ) { - buildCounterGoogleCloudAiplatformV1StreamingPredictResponse++; - if (buildCounterGoogleCloudAiplatformV1StreamingPredictResponse < 3) { - checkUnnamed373(o.outputs!); - checkGoogleCloudAiplatformV1Tensor(o.parameters!); + buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore++; + if (buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore < + 3) { + checkUnnamed384(o.ragResources!); + unittest.expect(o.vectorDistanceThreshold!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1StreamingPredictResponse--; + buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore--; } -core.List buildUnnamed374() => ['foo', 'foo']; +core.List buildUnnamed385() => ['foo', 'foo']; -void checkUnnamed374(core.List o) { +void checkUnnamed385(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest = +core.int +buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource = 0; -api.GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest -buildGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest() { - final o = api.GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest(); - buildCounterGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest++; - if (buildCounterGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest < +api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource +buildGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource() { + final o = + api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource(); + buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource++; + if (buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource < 3) { - o.entityIds = buildUnnamed374(); - o.featureSelector = buildGoogleCloudAiplatformV1FeatureSelector(); + o.ragCorpus = 'foo'; + o.ragFileIds = buildUnnamed385(); } - buildCounterGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest--; + buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource--; return o; } -void checkGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest( - api.GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest o, +void +checkGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource( + api.GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource o, ) { - buildCounterGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest++; - if (buildCounterGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest < + buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource++; + if (buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource < 3) { - checkUnnamed374(o.entityIds!); - checkGoogleCloudAiplatformV1FeatureSelector(o.featureSelector!); + unittest.expect(o.ragCorpus!, unittest.equals('foo')); + checkUnnamed385(o.ragFileIds!); } - buildCounterGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest--; + buildCounterGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource--; +} + +core.int buildCounterGoogleCloudAiplatformV1RetrieveContextsResponse = 0; +api.GoogleCloudAiplatformV1RetrieveContextsResponse +buildGoogleCloudAiplatformV1RetrieveContextsResponse() { + final o = api.GoogleCloudAiplatformV1RetrieveContextsResponse(); + buildCounterGoogleCloudAiplatformV1RetrieveContextsResponse++; + if (buildCounterGoogleCloudAiplatformV1RetrieveContextsResponse < 3) { + o.contexts = buildGoogleCloudAiplatformV1RagContexts(); + } + buildCounterGoogleCloudAiplatformV1RetrieveContextsResponse--; + return o; +} + +void checkGoogleCloudAiplatformV1RetrieveContextsResponse( + api.GoogleCloudAiplatformV1RetrieveContextsResponse o, +) { + buildCounterGoogleCloudAiplatformV1RetrieveContextsResponse++; + if (buildCounterGoogleCloudAiplatformV1RetrieveContextsResponse < 3) { + checkGoogleCloudAiplatformV1RagContexts(o.contexts!); + } + buildCounterGoogleCloudAiplatformV1RetrieveContextsResponse--; } -core.List buildUnnamed375() => ['foo', 'foo']; +core.List buildUnnamed386() => [ + buildGoogleCloudAiplatformV1RougeInstance(), + buildGoogleCloudAiplatformV1RougeInstance(), +]; -void checkUnnamed375(core.List o) { +void checkUnnamed386(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1RougeInstance(o[0]); + checkGoogleCloudAiplatformV1RougeInstance(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1StringArray = 0; -api.GoogleCloudAiplatformV1StringArray -buildGoogleCloudAiplatformV1StringArray() { - final o = api.GoogleCloudAiplatformV1StringArray(); - buildCounterGoogleCloudAiplatformV1StringArray++; - if (buildCounterGoogleCloudAiplatformV1StringArray < 3) { - o.values = buildUnnamed375(); +core.int buildCounterGoogleCloudAiplatformV1RougeInput = 0; +api.GoogleCloudAiplatformV1RougeInput buildGoogleCloudAiplatformV1RougeInput() { + final o = api.GoogleCloudAiplatformV1RougeInput(); + buildCounterGoogleCloudAiplatformV1RougeInput++; + if (buildCounterGoogleCloudAiplatformV1RougeInput < 3) { + o.instances = buildUnnamed386(); + o.metricSpec = buildGoogleCloudAiplatformV1RougeSpec(); } - buildCounterGoogleCloudAiplatformV1StringArray--; + buildCounterGoogleCloudAiplatformV1RougeInput--; return o; } -void checkGoogleCloudAiplatformV1StringArray( - api.GoogleCloudAiplatformV1StringArray o, +void checkGoogleCloudAiplatformV1RougeInput( + api.GoogleCloudAiplatformV1RougeInput o, ) { - buildCounterGoogleCloudAiplatformV1StringArray++; - if (buildCounterGoogleCloudAiplatformV1StringArray < 3) { - checkUnnamed375(o.values!); + buildCounterGoogleCloudAiplatformV1RougeInput++; + if (buildCounterGoogleCloudAiplatformV1RougeInput < 3) { + checkUnnamed386(o.instances!); + checkGoogleCloudAiplatformV1RougeSpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1StringArray--; + buildCounterGoogleCloudAiplatformV1RougeInput--; } -core.int buildCounterGoogleCloudAiplatformV1StructFieldValue = 0; -api.GoogleCloudAiplatformV1StructFieldValue -buildGoogleCloudAiplatformV1StructFieldValue() { - final o = api.GoogleCloudAiplatformV1StructFieldValue(); - buildCounterGoogleCloudAiplatformV1StructFieldValue++; - if (buildCounterGoogleCloudAiplatformV1StructFieldValue < 3) { - o.name = 'foo'; - o.value = buildGoogleCloudAiplatformV1FeatureValue(); +core.int buildCounterGoogleCloudAiplatformV1RougeInstance = 0; +api.GoogleCloudAiplatformV1RougeInstance +buildGoogleCloudAiplatformV1RougeInstance() { + final o = api.GoogleCloudAiplatformV1RougeInstance(); + buildCounterGoogleCloudAiplatformV1RougeInstance++; + if (buildCounterGoogleCloudAiplatformV1RougeInstance < 3) { + o.prediction = 'foo'; + o.reference = 'foo'; } - buildCounterGoogleCloudAiplatformV1StructFieldValue--; + buildCounterGoogleCloudAiplatformV1RougeInstance--; return o; } -void checkGoogleCloudAiplatformV1StructFieldValue( - api.GoogleCloudAiplatformV1StructFieldValue o, +void checkGoogleCloudAiplatformV1RougeInstance( + api.GoogleCloudAiplatformV1RougeInstance o, ) { - buildCounterGoogleCloudAiplatformV1StructFieldValue++; - if (buildCounterGoogleCloudAiplatformV1StructFieldValue < 3) { - unittest.expect(o.name!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1FeatureValue(o.value!); + buildCounterGoogleCloudAiplatformV1RougeInstance++; + if (buildCounterGoogleCloudAiplatformV1RougeInstance < 3) { + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1StructFieldValue--; + buildCounterGoogleCloudAiplatformV1RougeInstance--; } -core.List buildUnnamed376() => [ - buildGoogleCloudAiplatformV1StructFieldValue(), - buildGoogleCloudAiplatformV1StructFieldValue(), +core.int buildCounterGoogleCloudAiplatformV1RougeMetricValue = 0; +api.GoogleCloudAiplatformV1RougeMetricValue +buildGoogleCloudAiplatformV1RougeMetricValue() { + final o = api.GoogleCloudAiplatformV1RougeMetricValue(); + buildCounterGoogleCloudAiplatformV1RougeMetricValue++; + if (buildCounterGoogleCloudAiplatformV1RougeMetricValue < 3) { + o.score = 42.0; + } + buildCounterGoogleCloudAiplatformV1RougeMetricValue--; + return o; +} + +void checkGoogleCloudAiplatformV1RougeMetricValue( + api.GoogleCloudAiplatformV1RougeMetricValue o, +) { + buildCounterGoogleCloudAiplatformV1RougeMetricValue++; + if (buildCounterGoogleCloudAiplatformV1RougeMetricValue < 3) { + unittest.expect(o.score!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1RougeMetricValue--; +} + +core.List buildUnnamed387() => [ + buildGoogleCloudAiplatformV1RougeMetricValue(), + buildGoogleCloudAiplatformV1RougeMetricValue(), ]; -void checkUnnamed376(core.List o) { +void checkUnnamed387(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1StructFieldValue(o[0]); - checkGoogleCloudAiplatformV1StructFieldValue(o[1]); + checkGoogleCloudAiplatformV1RougeMetricValue(o[0]); + checkGoogleCloudAiplatformV1RougeMetricValue(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1StructValue = 0; -api.GoogleCloudAiplatformV1StructValue -buildGoogleCloudAiplatformV1StructValue() { - final o = api.GoogleCloudAiplatformV1StructValue(); - buildCounterGoogleCloudAiplatformV1StructValue++; - if (buildCounterGoogleCloudAiplatformV1StructValue < 3) { - o.values = buildUnnamed376(); +core.int buildCounterGoogleCloudAiplatformV1RougeResults = 0; +api.GoogleCloudAiplatformV1RougeResults +buildGoogleCloudAiplatformV1RougeResults() { + final o = api.GoogleCloudAiplatformV1RougeResults(); + buildCounterGoogleCloudAiplatformV1RougeResults++; + if (buildCounterGoogleCloudAiplatformV1RougeResults < 3) { + o.rougeMetricValues = buildUnnamed387(); } - buildCounterGoogleCloudAiplatformV1StructValue--; + buildCounterGoogleCloudAiplatformV1RougeResults--; return o; } -void checkGoogleCloudAiplatformV1StructValue( - api.GoogleCloudAiplatformV1StructValue o, +void checkGoogleCloudAiplatformV1RougeResults( + api.GoogleCloudAiplatformV1RougeResults o, ) { - buildCounterGoogleCloudAiplatformV1StructValue++; - if (buildCounterGoogleCloudAiplatformV1StructValue < 3) { - checkUnnamed376(o.values!); + buildCounterGoogleCloudAiplatformV1RougeResults++; + if (buildCounterGoogleCloudAiplatformV1RougeResults < 3) { + checkUnnamed387(o.rougeMetricValues!); } - buildCounterGoogleCloudAiplatformV1StructValue--; + buildCounterGoogleCloudAiplatformV1RougeResults--; } -core.int buildCounterGoogleCloudAiplatformV1Study = 0; -api.GoogleCloudAiplatformV1Study buildGoogleCloudAiplatformV1Study() { - final o = api.GoogleCloudAiplatformV1Study(); - buildCounterGoogleCloudAiplatformV1Study++; - if (buildCounterGoogleCloudAiplatformV1Study < 3) { - o.createTime = 'foo'; - o.displayName = 'foo'; - o.inactiveReason = 'foo'; - o.name = 'foo'; - o.state = 'foo'; - o.studySpec = buildGoogleCloudAiplatformV1StudySpec(); +core.int buildCounterGoogleCloudAiplatformV1RougeSpec = 0; +api.GoogleCloudAiplatformV1RougeSpec buildGoogleCloudAiplatformV1RougeSpec() { + final o = api.GoogleCloudAiplatformV1RougeSpec(); + buildCounterGoogleCloudAiplatformV1RougeSpec++; + if (buildCounterGoogleCloudAiplatformV1RougeSpec < 3) { + o.rougeType = 'foo'; + o.splitSummaries = true; + o.useStemmer = true; } - buildCounterGoogleCloudAiplatformV1Study--; + buildCounterGoogleCloudAiplatformV1RougeSpec--; return o; } -void checkGoogleCloudAiplatformV1Study(api.GoogleCloudAiplatformV1Study o) { - buildCounterGoogleCloudAiplatformV1Study++; - if (buildCounterGoogleCloudAiplatformV1Study < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - unittest.expect(o.inactiveReason!, unittest.equals('foo')); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.state!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1StudySpec(o.studySpec!); +void checkGoogleCloudAiplatformV1RougeSpec( + api.GoogleCloudAiplatformV1RougeSpec o, +) { + buildCounterGoogleCloudAiplatformV1RougeSpec++; + if (buildCounterGoogleCloudAiplatformV1RougeSpec < 3) { + unittest.expect(o.rougeType!, unittest.equals('foo')); + unittest.expect(o.splitSummaries!, unittest.isTrue); + unittest.expect(o.useStemmer!, unittest.isTrue); } - buildCounterGoogleCloudAiplatformV1Study--; + buildCounterGoogleCloudAiplatformV1RougeSpec--; } -core.List buildUnnamed377() => [ - buildGoogleCloudAiplatformV1StudySpecMetricSpec(), - buildGoogleCloudAiplatformV1StudySpecMetricSpec(), -]; - -void checkUnnamed377( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1StudySpecMetricSpec(o[0]); - checkGoogleCloudAiplatformV1StudySpecMetricSpec(o[1]); +core.int buildCounterGoogleCloudAiplatformV1Rubric = 0; +api.GoogleCloudAiplatformV1Rubric buildGoogleCloudAiplatformV1Rubric() { + final o = api.GoogleCloudAiplatformV1Rubric(); + buildCounterGoogleCloudAiplatformV1Rubric++; + if (buildCounterGoogleCloudAiplatformV1Rubric < 3) { + o.content = buildGoogleCloudAiplatformV1RubricContent(); + o.importance = 'foo'; + o.rubricId = 'foo'; + o.type = 'foo'; + } + buildCounterGoogleCloudAiplatformV1Rubric--; + return o; } -core.List -buildUnnamed378() => [ - buildGoogleCloudAiplatformV1StudySpecParameterSpec(), - buildGoogleCloudAiplatformV1StudySpecParameterSpec(), -]; - -void checkUnnamed378( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1StudySpecParameterSpec(o[0]); - checkGoogleCloudAiplatformV1StudySpecParameterSpec(o[1]); +void checkGoogleCloudAiplatformV1Rubric(api.GoogleCloudAiplatformV1Rubric o) { + buildCounterGoogleCloudAiplatformV1Rubric++; + if (buildCounterGoogleCloudAiplatformV1Rubric < 3) { + checkGoogleCloudAiplatformV1RubricContent(o.content!); + unittest.expect(o.importance!, unittest.equals('foo')); + unittest.expect(o.rubricId!, unittest.equals('foo')); + unittest.expect(o.type!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1Rubric--; } -core.int buildCounterGoogleCloudAiplatformV1StudySpec = 0; -api.GoogleCloudAiplatformV1StudySpec buildGoogleCloudAiplatformV1StudySpec() { - final o = api.GoogleCloudAiplatformV1StudySpec(); - buildCounterGoogleCloudAiplatformV1StudySpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpec < 3) { - o.algorithm = 'foo'; - o.convexAutomatedStoppingSpec = - buildGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec(); - o.decayCurveStoppingSpec = - buildGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec(); - o.measurementSelectionType = 'foo'; - o.medianAutomatedStoppingSpec = - buildGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec(); - o.metrics = buildUnnamed377(); - o.observationNoise = 'foo'; - o.parameters = buildUnnamed378(); - o.studyStoppingConfig = - buildGoogleCloudAiplatformV1StudySpecStudyStoppingConfig(); +core.int +buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput = 0; +api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput +buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput() { + final o = api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput(); + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput++; + if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput < + 3) { + o.instance = + buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance(); + o.metricSpec = + buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec(); } - buildCounterGoogleCloudAiplatformV1StudySpec--; + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput--; return o; } -void checkGoogleCloudAiplatformV1StudySpec( - api.GoogleCloudAiplatformV1StudySpec o, +void checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput( + api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput o, ) { - buildCounterGoogleCloudAiplatformV1StudySpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpec < 3) { - unittest.expect(o.algorithm!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec( - o.convexAutomatedStoppingSpec!, - ); - checkGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec( - o.decayCurveStoppingSpec!, - ); - unittest.expect(o.measurementSelectionType!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec( - o.medianAutomatedStoppingSpec!, + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput++; + if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput < + 3) { + checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance( + o.instance!, ); - checkUnnamed377(o.metrics!); - unittest.expect(o.observationNoise!, unittest.equals('foo')); - checkUnnamed378(o.parameters!); - checkGoogleCloudAiplatformV1StudySpecStudyStoppingConfig( - o.studyStoppingConfig!, + checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec( + o.metricSpec!, ); } - buildCounterGoogleCloudAiplatformV1StudySpec--; + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput--; } core.int -buildCounterGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec = 0; -api.GoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec -buildGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec() { - final o = api.GoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec(); - buildCounterGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec < +buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance = 0; +api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance +buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance() { + final o = + api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance(); + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance++; + if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance < 3) { - o.learningRateParameterName = 'foo'; - o.maxStepCount = 'foo'; - o.minMeasurementCount = 'foo'; - o.minStepCount = 'foo'; - o.updateAllStoppedTrials = true; - o.useElapsedDuration = true; + o.jsonInstance = 'foo'; } - buildCounterGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec--; + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance--; return o; } -void checkGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec( - api.GoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec o, +void checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance( + api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance o, ) { - buildCounterGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec < + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance++; + if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance < 3) { - unittest.expect(o.learningRateParameterName!, unittest.equals('foo')); - unittest.expect(o.maxStepCount!, unittest.equals('foo')); - unittest.expect(o.minMeasurementCount!, unittest.equals('foo')); - unittest.expect(o.minStepCount!, unittest.equals('foo')); - unittest.expect(o.updateAllStoppedTrials!, unittest.isTrue); - unittest.expect(o.useElapsedDuration!, unittest.isTrue); + unittest.expect(o.jsonInstance!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec--; + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance--; +} + +core.List buildUnnamed388() => + [ + buildGoogleCloudAiplatformV1RubricCritiqueResult(), + buildGoogleCloudAiplatformV1RubricCritiqueResult(), + ]; + +void checkUnnamed388( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1RubricCritiqueResult(o[0]); + checkGoogleCloudAiplatformV1RubricCritiqueResult(o[1]); } core.int -buildCounterGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec = 0; -api.GoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec -buildGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec() { - final o = - api.GoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec(); - buildCounterGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec < +buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult = 0; +api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult +buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult() { + final o = api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult(); + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult++; + if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult < 3) { - o.useElapsedDuration = true; + o.rubricCritiqueResults = buildUnnamed388(); + o.score = 42.0; } - buildCounterGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec--; + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult--; return o; } -void checkGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec( - api.GoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec o, +void checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult( + api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult o, ) { - buildCounterGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec < + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult++; + if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult < 3) { - unittest.expect(o.useElapsedDuration!, unittest.isTrue); + checkUnnamed388(o.rubricCritiqueResults!); + unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec--; + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult--; } core.int -buildCounterGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec = 0; -api.GoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec -buildGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec() { - final o = api.GoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec(); - buildCounterGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec < - 3) { - o.useElapsedDuration = true; +buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec = 0; +api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec +buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec() { + final o = api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec(); + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec++; + if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec < + 3) {} + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec--; + return o; +} + +void checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec( + api.GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec o, +) { + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec++; + if (buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec < + 3) {} + buildCounterGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec--; +} + +core.int buildCounterGoogleCloudAiplatformV1RubricContent = 0; +api.GoogleCloudAiplatformV1RubricContent +buildGoogleCloudAiplatformV1RubricContent() { + final o = api.GoogleCloudAiplatformV1RubricContent(); + buildCounterGoogleCloudAiplatformV1RubricContent++; + if (buildCounterGoogleCloudAiplatformV1RubricContent < 3) { + o.property = buildGoogleCloudAiplatformV1RubricContentProperty(); } - buildCounterGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec--; + buildCounterGoogleCloudAiplatformV1RubricContent--; return o; } -void checkGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec( - api.GoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec o, +void checkGoogleCloudAiplatformV1RubricContent( + api.GoogleCloudAiplatformV1RubricContent o, ) { - buildCounterGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec < - 3) { - unittest.expect(o.useElapsedDuration!, unittest.isTrue); + buildCounterGoogleCloudAiplatformV1RubricContent++; + if (buildCounterGoogleCloudAiplatformV1RubricContent < 3) { + checkGoogleCloudAiplatformV1RubricContentProperty(o.property!); } - buildCounterGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec--; + buildCounterGoogleCloudAiplatformV1RubricContent--; } -core.int buildCounterGoogleCloudAiplatformV1StudySpecMetricSpec = 0; -api.GoogleCloudAiplatformV1StudySpecMetricSpec -buildGoogleCloudAiplatformV1StudySpecMetricSpec() { - final o = api.GoogleCloudAiplatformV1StudySpecMetricSpec(); - buildCounterGoogleCloudAiplatformV1StudySpecMetricSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecMetricSpec < 3) { - o.goal = 'foo'; - o.metricId = 'foo'; - o.safetyConfig = - buildGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig(); +core.int buildCounterGoogleCloudAiplatformV1RubricContentProperty = 0; +api.GoogleCloudAiplatformV1RubricContentProperty +buildGoogleCloudAiplatformV1RubricContentProperty() { + final o = api.GoogleCloudAiplatformV1RubricContentProperty(); + buildCounterGoogleCloudAiplatformV1RubricContentProperty++; + if (buildCounterGoogleCloudAiplatformV1RubricContentProperty < 3) { + o.description = 'foo'; } - buildCounterGoogleCloudAiplatformV1StudySpecMetricSpec--; + buildCounterGoogleCloudAiplatformV1RubricContentProperty--; return o; } -void checkGoogleCloudAiplatformV1StudySpecMetricSpec( - api.GoogleCloudAiplatformV1StudySpecMetricSpec o, +void checkGoogleCloudAiplatformV1RubricContentProperty( + api.GoogleCloudAiplatformV1RubricContentProperty o, ) { - buildCounterGoogleCloudAiplatformV1StudySpecMetricSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecMetricSpec < 3) { - unittest.expect(o.goal!, unittest.equals('foo')); - unittest.expect(o.metricId!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig( - o.safetyConfig!, - ); + buildCounterGoogleCloudAiplatformV1RubricContentProperty++; + if (buildCounterGoogleCloudAiplatformV1RubricContentProperty < 3) { + unittest.expect(o.description!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1StudySpecMetricSpec--; + buildCounterGoogleCloudAiplatformV1RubricContentProperty--; } -core.int -buildCounterGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig = 0; -api.GoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig -buildGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig() { - final o = api.GoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig(); - buildCounterGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig++; - if (buildCounterGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig < - 3) { - o.desiredMinSafeTrialsFraction = 42.0; - o.safetyThreshold = 42.0; +core.int buildCounterGoogleCloudAiplatformV1RubricCritiqueResult = 0; +api.GoogleCloudAiplatformV1RubricCritiqueResult +buildGoogleCloudAiplatformV1RubricCritiqueResult() { + final o = api.GoogleCloudAiplatformV1RubricCritiqueResult(); + buildCounterGoogleCloudAiplatformV1RubricCritiqueResult++; + if (buildCounterGoogleCloudAiplatformV1RubricCritiqueResult < 3) { + o.rubric = 'foo'; + o.verdict = true; } - buildCounterGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig--; + buildCounterGoogleCloudAiplatformV1RubricCritiqueResult--; return o; } -void checkGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig( - api.GoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig o, +void checkGoogleCloudAiplatformV1RubricCritiqueResult( + api.GoogleCloudAiplatformV1RubricCritiqueResult o, ) { - buildCounterGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig++; - if (buildCounterGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig < - 3) { - unittest.expect(o.desiredMinSafeTrialsFraction!, unittest.equals(42.0)); - unittest.expect(o.safetyThreshold!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1RubricCritiqueResult++; + if (buildCounterGoogleCloudAiplatformV1RubricCritiqueResult < 3) { + unittest.expect(o.rubric!, unittest.equals('foo')); + unittest.expect(o.verdict!, unittest.isTrue); } - buildCounterGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig--; + buildCounterGoogleCloudAiplatformV1RubricCritiqueResult--; } -core.List< - api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec -> -buildUnnamed379() => [ - buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec(), - buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec(), -]; +core.List buildUnnamed389() => ['foo', 'foo']; -void checkUnnamed379( - core.List< - api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec - > - o, -) { +void checkUnnamed389(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec( - o[0], - ); - checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec( - o[1], - ); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1StudySpecParameterSpec = 0; -api.GoogleCloudAiplatformV1StudySpecParameterSpec -buildGoogleCloudAiplatformV1StudySpecParameterSpec() { - final o = api.GoogleCloudAiplatformV1StudySpecParameterSpec(); - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpec < 3) { - o.categoricalValueSpec = - buildGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec(); - o.conditionalParameterSpecs = buildUnnamed379(); - o.discreteValueSpec = - buildGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec(); - o.doubleValueSpec = - buildGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec(); - o.integerValueSpec = - buildGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec(); - o.parameterId = 'foo'; - o.scaleType = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1RubricGenerationSpec = 0; +api.GoogleCloudAiplatformV1RubricGenerationSpec +buildGoogleCloudAiplatformV1RubricGenerationSpec() { + final o = api.GoogleCloudAiplatformV1RubricGenerationSpec(); + buildCounterGoogleCloudAiplatformV1RubricGenerationSpec++; + if (buildCounterGoogleCloudAiplatformV1RubricGenerationSpec < 3) { + o.modelConfig = buildGoogleCloudAiplatformV1AutoraterConfig(); + o.promptTemplate = 'foo'; + o.rubricContentType = 'foo'; + o.rubricTypeOntology = buildUnnamed389(); } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpec--; + buildCounterGoogleCloudAiplatformV1RubricGenerationSpec--; return o; } -void checkGoogleCloudAiplatformV1StudySpecParameterSpec( - api.GoogleCloudAiplatformV1StudySpecParameterSpec o, +void checkGoogleCloudAiplatformV1RubricGenerationSpec( + api.GoogleCloudAiplatformV1RubricGenerationSpec o, ) { - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpec < 3) { - checkGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec( - o.categoricalValueSpec!, - ); - checkUnnamed379(o.conditionalParameterSpecs!); - checkGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec( - o.discreteValueSpec!, - ); - checkGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec( - o.doubleValueSpec!, - ); - checkGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec( - o.integerValueSpec!, - ); - unittest.expect(o.parameterId!, unittest.equals('foo')); - unittest.expect(o.scaleType!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1RubricGenerationSpec++; + if (buildCounterGoogleCloudAiplatformV1RubricGenerationSpec < 3) { + checkGoogleCloudAiplatformV1AutoraterConfig(o.modelConfig!); + unittest.expect(o.promptTemplate!, unittest.equals('foo')); + unittest.expect(o.rubricContentType!, unittest.equals('foo')); + checkUnnamed389(o.rubricTypeOntology!); } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpec--; + buildCounterGoogleCloudAiplatformV1RubricGenerationSpec--; } -core.List buildUnnamed380() => ['foo', 'foo']; +core.List buildUnnamed390() => [ + buildGoogleCloudAiplatformV1Rubric(), + buildGoogleCloudAiplatformV1Rubric(), +]; -void checkUnnamed380(core.List o) { +void checkUnnamed390(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1Rubric(o[0]); + checkGoogleCloudAiplatformV1Rubric(o[1]); } -core.int -buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec = - 0; -api.GoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec -buildGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec() { - final o = - api.GoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec(); - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec < - 3) { - o.defaultValue = 'foo'; - o.values = buildUnnamed380(); +core.int buildCounterGoogleCloudAiplatformV1RubricGroup = 0; +api.GoogleCloudAiplatformV1RubricGroup +buildGoogleCloudAiplatformV1RubricGroup() { + final o = api.GoogleCloudAiplatformV1RubricGroup(); + buildCounterGoogleCloudAiplatformV1RubricGroup++; + if (buildCounterGoogleCloudAiplatformV1RubricGroup < 3) { + o.displayName = 'foo'; + o.groupId = 'foo'; + o.rubrics = buildUnnamed390(); } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec--; + buildCounterGoogleCloudAiplatformV1RubricGroup--; return o; } -void checkGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec( - api.GoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec o, +void checkGoogleCloudAiplatformV1RubricGroup( + api.GoogleCloudAiplatformV1RubricGroup o, ) { - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec < - 3) { - unittest.expect(o.defaultValue!, unittest.equals('foo')); - checkUnnamed380(o.values!); + buildCounterGoogleCloudAiplatformV1RubricGroup++; + if (buildCounterGoogleCloudAiplatformV1RubricGroup < 3) { + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.groupId!, unittest.equals('foo')); + checkUnnamed390(o.rubrics!); } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec--; + buildCounterGoogleCloudAiplatformV1RubricGroup--; } -core.int -buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec = - 0; -api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec -buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec() { - final o = - api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec(); - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec < - 3) { - o.parameterSpec = buildGoogleCloudAiplatformV1StudySpecParameterSpec(); - o.parentCategoricalValues = - buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition(); - o.parentDiscreteValues = - buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition(); - o.parentIntValues = - buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition(); +core.int buildCounterGoogleCloudAiplatformV1RubricVerdict = 0; +api.GoogleCloudAiplatformV1RubricVerdict +buildGoogleCloudAiplatformV1RubricVerdict() { + final o = api.GoogleCloudAiplatformV1RubricVerdict(); + buildCounterGoogleCloudAiplatformV1RubricVerdict++; + if (buildCounterGoogleCloudAiplatformV1RubricVerdict < 3) { + o.evaluatedRubric = buildGoogleCloudAiplatformV1Rubric(); + o.reasoning = 'foo'; + o.verdict = true; } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec--; + buildCounterGoogleCloudAiplatformV1RubricVerdict--; return o; } -void checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec( - api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec o, +void checkGoogleCloudAiplatformV1RubricVerdict( + api.GoogleCloudAiplatformV1RubricVerdict o, ) { - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec < - 3) { - checkGoogleCloudAiplatformV1StudySpecParameterSpec(o.parameterSpec!); - checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition( - o.parentCategoricalValues!, - ); - checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition( - o.parentDiscreteValues!, - ); - checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition( - o.parentIntValues!, - ); + buildCounterGoogleCloudAiplatformV1RubricVerdict++; + if (buildCounterGoogleCloudAiplatformV1RubricVerdict < 3) { + checkGoogleCloudAiplatformV1Rubric(o.evaluatedRubric!); + unittest.expect(o.reasoning!, unittest.equals('foo')); + unittest.expect(o.verdict!, unittest.isTrue); } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec--; -} - -core.List buildUnnamed381() => ['foo', 'foo']; - -void checkUnnamed381(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1RubricVerdict--; } -core.int -buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition = - 0; -api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition -buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition() { - final o = - api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition(); - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition < - 3) { - o.values = buildUnnamed381(); +core.int buildCounterGoogleCloudAiplatformV1SafetyInput = 0; +api.GoogleCloudAiplatformV1SafetyInput +buildGoogleCloudAiplatformV1SafetyInput() { + final o = api.GoogleCloudAiplatformV1SafetyInput(); + buildCounterGoogleCloudAiplatformV1SafetyInput++; + if (buildCounterGoogleCloudAiplatformV1SafetyInput < 3) { + o.instance = buildGoogleCloudAiplatformV1SafetyInstance(); + o.metricSpec = buildGoogleCloudAiplatformV1SafetySpec(); } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition--; + buildCounterGoogleCloudAiplatformV1SafetyInput--; return o; } -void -checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition( - api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition - o, +void checkGoogleCloudAiplatformV1SafetyInput( + api.GoogleCloudAiplatformV1SafetyInput o, ) { - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition < - 3) { - checkUnnamed381(o.values!); + buildCounterGoogleCloudAiplatformV1SafetyInput++; + if (buildCounterGoogleCloudAiplatformV1SafetyInput < 3) { + checkGoogleCloudAiplatformV1SafetyInstance(o.instance!); + checkGoogleCloudAiplatformV1SafetySpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition--; -} - -core.List buildUnnamed382() => [42.0, 42.0]; - -void checkUnnamed382(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals(42.0)); - unittest.expect(o[1], unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1SafetyInput--; } -core.int -buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition = - 0; -api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition -buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition() { - final o = - api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition(); - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition < - 3) { - o.values = buildUnnamed382(); +core.int buildCounterGoogleCloudAiplatformV1SafetyInstance = 0; +api.GoogleCloudAiplatformV1SafetyInstance +buildGoogleCloudAiplatformV1SafetyInstance() { + final o = api.GoogleCloudAiplatformV1SafetyInstance(); + buildCounterGoogleCloudAiplatformV1SafetyInstance++; + if (buildCounterGoogleCloudAiplatformV1SafetyInstance < 3) { + o.prediction = 'foo'; } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition--; + buildCounterGoogleCloudAiplatformV1SafetyInstance--; return o; } -void -checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition( - api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition - o, +void checkGoogleCloudAiplatformV1SafetyInstance( + api.GoogleCloudAiplatformV1SafetyInstance o, ) { - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition < - 3) { - checkUnnamed382(o.values!); + buildCounterGoogleCloudAiplatformV1SafetyInstance++; + if (buildCounterGoogleCloudAiplatformV1SafetyInstance < 3) { + unittest.expect(o.prediction!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition--; -} - -core.List buildUnnamed383() => ['foo', 'foo']; - -void checkUnnamed383(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1SafetyInstance--; } -core.int -buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition = - 0; -api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition -buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition() { - final o = - api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition(); - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition < - 3) { - o.values = buildUnnamed383(); +core.int buildCounterGoogleCloudAiplatformV1SafetyRating = 0; +api.GoogleCloudAiplatformV1SafetyRating +buildGoogleCloudAiplatformV1SafetyRating() { + final o = api.GoogleCloudAiplatformV1SafetyRating(); + buildCounterGoogleCloudAiplatformV1SafetyRating++; + if (buildCounterGoogleCloudAiplatformV1SafetyRating < 3) { + o.blocked = true; + o.category = 'foo'; + o.overwrittenThreshold = 'foo'; + o.probability = 'foo'; + o.probabilityScore = 42.0; + o.severity = 'foo'; + o.severityScore = 42.0; } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition--; + buildCounterGoogleCloudAiplatformV1SafetyRating--; return o; } -void -checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition( - api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition - o, +void checkGoogleCloudAiplatformV1SafetyRating( + api.GoogleCloudAiplatformV1SafetyRating o, ) { - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition < - 3) { - checkUnnamed383(o.values!); + buildCounterGoogleCloudAiplatformV1SafetyRating++; + if (buildCounterGoogleCloudAiplatformV1SafetyRating < 3) { + unittest.expect(o.blocked!, unittest.isTrue); + unittest.expect(o.category!, unittest.equals('foo')); + unittest.expect(o.overwrittenThreshold!, unittest.equals('foo')); + unittest.expect(o.probability!, unittest.equals('foo')); + unittest.expect(o.probabilityScore!, unittest.equals(42.0)); + unittest.expect(o.severity!, unittest.equals('foo')); + unittest.expect(o.severityScore!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition--; -} - -core.List buildUnnamed384() => [42.0, 42.0]; - -void checkUnnamed384(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals(42.0)); - unittest.expect(o[1], unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1SafetyRating--; } -core.int -buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec = 0; -api.GoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec -buildGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec() { - final o = - api.GoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec(); - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec < - 3) { - o.defaultValue = 42.0; - o.values = buildUnnamed384(); +core.int buildCounterGoogleCloudAiplatformV1SafetyResult = 0; +api.GoogleCloudAiplatformV1SafetyResult +buildGoogleCloudAiplatformV1SafetyResult() { + final o = api.GoogleCloudAiplatformV1SafetyResult(); + buildCounterGoogleCloudAiplatformV1SafetyResult++; + if (buildCounterGoogleCloudAiplatformV1SafetyResult < 3) { + o.confidence = 42.0; + o.explanation = 'foo'; + o.score = 42.0; } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec--; + buildCounterGoogleCloudAiplatformV1SafetyResult--; return o; } -void checkGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec( - api.GoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec o, +void checkGoogleCloudAiplatformV1SafetyResult( + api.GoogleCloudAiplatformV1SafetyResult o, ) { - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec < - 3) { - unittest.expect(o.defaultValue!, unittest.equals(42.0)); - checkUnnamed384(o.values!); + buildCounterGoogleCloudAiplatformV1SafetyResult++; + if (buildCounterGoogleCloudAiplatformV1SafetyResult < 3) { + unittest.expect(o.confidence!, unittest.equals(42.0)); + unittest.expect(o.explanation!, unittest.equals('foo')); + unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec--; + buildCounterGoogleCloudAiplatformV1SafetyResult--; } -core.int -buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec = 0; -api.GoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec -buildGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec() { - final o = api.GoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec(); - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec < - 3) { - o.defaultValue = 42.0; - o.maxValue = 42.0; - o.minValue = 42.0; +core.int buildCounterGoogleCloudAiplatformV1SafetySetting = 0; +api.GoogleCloudAiplatformV1SafetySetting +buildGoogleCloudAiplatformV1SafetySetting() { + final o = api.GoogleCloudAiplatformV1SafetySetting(); + buildCounterGoogleCloudAiplatformV1SafetySetting++; + if (buildCounterGoogleCloudAiplatformV1SafetySetting < 3) { + o.category = 'foo'; + o.method = 'foo'; + o.threshold = 'foo'; } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec--; + buildCounterGoogleCloudAiplatformV1SafetySetting--; return o; } -void checkGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec( - api.GoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec o, +void checkGoogleCloudAiplatformV1SafetySetting( + api.GoogleCloudAiplatformV1SafetySetting o, ) { - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec < - 3) { - unittest.expect(o.defaultValue!, unittest.equals(42.0)); - unittest.expect(o.maxValue!, unittest.equals(42.0)); - unittest.expect(o.minValue!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1SafetySetting++; + if (buildCounterGoogleCloudAiplatformV1SafetySetting < 3) { + unittest.expect(o.category!, unittest.equals('foo')); + unittest.expect(o.method!, unittest.equals('foo')); + unittest.expect(o.threshold!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec--; + buildCounterGoogleCloudAiplatformV1SafetySetting--; } -core.int -buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec = 0; -api.GoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec -buildGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec() { - final o = api.GoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec(); - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec < - 3) { - o.defaultValue = 'foo'; - o.maxValue = 'foo'; - o.minValue = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1SafetySpec = 0; +api.GoogleCloudAiplatformV1SafetySpec buildGoogleCloudAiplatformV1SafetySpec() { + final o = api.GoogleCloudAiplatformV1SafetySpec(); + buildCounterGoogleCloudAiplatformV1SafetySpec++; + if (buildCounterGoogleCloudAiplatformV1SafetySpec < 3) { + o.version = 42; } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec--; + buildCounterGoogleCloudAiplatformV1SafetySpec--; return o; } -void checkGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec( - api.GoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec o, +void checkGoogleCloudAiplatformV1SafetySpec( + api.GoogleCloudAiplatformV1SafetySpec o, ) { - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec++; - if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec < - 3) { - unittest.expect(o.defaultValue!, unittest.equals('foo')); - unittest.expect(o.maxValue!, unittest.equals('foo')); - unittest.expect(o.minValue!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1SafetySpec++; + if (buildCounterGoogleCloudAiplatformV1SafetySpec < 3) { + unittest.expect(o.version!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec--; + buildCounterGoogleCloudAiplatformV1SafetySpec--; } -core.int buildCounterGoogleCloudAiplatformV1StudySpecStudyStoppingConfig = 0; -api.GoogleCloudAiplatformV1StudySpecStudyStoppingConfig -buildGoogleCloudAiplatformV1StudySpecStudyStoppingConfig() { - final o = api.GoogleCloudAiplatformV1StudySpecStudyStoppingConfig(); - buildCounterGoogleCloudAiplatformV1StudySpecStudyStoppingConfig++; - if (buildCounterGoogleCloudAiplatformV1StudySpecStudyStoppingConfig < 3) { - o.maxDurationNoProgress = 'foo'; - o.maxNumTrials = 42; - o.maxNumTrialsNoProgress = 42; - o.maximumRuntimeConstraint = - buildGoogleCloudAiplatformV1StudyTimeConstraint(); - o.minNumTrials = 42; - o.minimumRuntimeConstraint = - buildGoogleCloudAiplatformV1StudyTimeConstraint(); - o.shouldStopAsap = true; +core.int buildCounterGoogleCloudAiplatformV1SampleConfig = 0; +api.GoogleCloudAiplatformV1SampleConfig +buildGoogleCloudAiplatformV1SampleConfig() { + final o = api.GoogleCloudAiplatformV1SampleConfig(); + buildCounterGoogleCloudAiplatformV1SampleConfig++; + if (buildCounterGoogleCloudAiplatformV1SampleConfig < 3) { + o.followingBatchSamplePercentage = 42; + o.initialBatchSamplePercentage = 42; + o.sampleStrategy = 'foo'; } - buildCounterGoogleCloudAiplatformV1StudySpecStudyStoppingConfig--; + buildCounterGoogleCloudAiplatformV1SampleConfig--; return o; } -void checkGoogleCloudAiplatformV1StudySpecStudyStoppingConfig( - api.GoogleCloudAiplatformV1StudySpecStudyStoppingConfig o, +void checkGoogleCloudAiplatformV1SampleConfig( + api.GoogleCloudAiplatformV1SampleConfig o, ) { - buildCounterGoogleCloudAiplatformV1StudySpecStudyStoppingConfig++; - if (buildCounterGoogleCloudAiplatformV1StudySpecStudyStoppingConfig < 3) { - unittest.expect(o.maxDurationNoProgress!, unittest.equals('foo')); - unittest.expect(o.maxNumTrials!, unittest.equals(42)); - unittest.expect(o.maxNumTrialsNoProgress!, unittest.equals(42)); - checkGoogleCloudAiplatformV1StudyTimeConstraint( - o.maximumRuntimeConstraint!, - ); - unittest.expect(o.minNumTrials!, unittest.equals(42)); - checkGoogleCloudAiplatformV1StudyTimeConstraint( - o.minimumRuntimeConstraint!, - ); - unittest.expect(o.shouldStopAsap!, unittest.isTrue); + buildCounterGoogleCloudAiplatformV1SampleConfig++; + if (buildCounterGoogleCloudAiplatformV1SampleConfig < 3) { + unittest.expect(o.followingBatchSamplePercentage!, unittest.equals(42)); + unittest.expect(o.initialBatchSamplePercentage!, unittest.equals(42)); + unittest.expect(o.sampleStrategy!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1StudySpecStudyStoppingConfig--; + buildCounterGoogleCloudAiplatformV1SampleConfig--; } -core.int buildCounterGoogleCloudAiplatformV1StudyTimeConstraint = 0; -api.GoogleCloudAiplatformV1StudyTimeConstraint -buildGoogleCloudAiplatformV1StudyTimeConstraint() { - final o = api.GoogleCloudAiplatformV1StudyTimeConstraint(); - buildCounterGoogleCloudAiplatformV1StudyTimeConstraint++; - if (buildCounterGoogleCloudAiplatformV1StudyTimeConstraint < 3) { - o.endTime = 'foo'; - o.maxDuration = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1SampledShapleyAttribution = 0; +api.GoogleCloudAiplatformV1SampledShapleyAttribution +buildGoogleCloudAiplatformV1SampledShapleyAttribution() { + final o = api.GoogleCloudAiplatformV1SampledShapleyAttribution(); + buildCounterGoogleCloudAiplatformV1SampledShapleyAttribution++; + if (buildCounterGoogleCloudAiplatformV1SampledShapleyAttribution < 3) { + o.pathCount = 42; } - buildCounterGoogleCloudAiplatformV1StudyTimeConstraint--; + buildCounterGoogleCloudAiplatformV1SampledShapleyAttribution--; return o; } -void checkGoogleCloudAiplatformV1StudyTimeConstraint( - api.GoogleCloudAiplatformV1StudyTimeConstraint o, +void checkGoogleCloudAiplatformV1SampledShapleyAttribution( + api.GoogleCloudAiplatformV1SampledShapleyAttribution o, ) { - buildCounterGoogleCloudAiplatformV1StudyTimeConstraint++; - if (buildCounterGoogleCloudAiplatformV1StudyTimeConstraint < 3) { - unittest.expect(o.endTime!, unittest.equals('foo')); - unittest.expect(o.maxDuration!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1SampledShapleyAttribution++; + if (buildCounterGoogleCloudAiplatformV1SampledShapleyAttribution < 3) { + unittest.expect(o.pathCount!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1StudyTimeConstraint--; -} - -core.List buildUnnamed385() => [ - buildGoogleCloudAiplatformV1TrialContext(), - buildGoogleCloudAiplatformV1TrialContext(), -]; - -void checkUnnamed385(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrialContext(o[0]); - checkGoogleCloudAiplatformV1TrialContext(o[1]); + buildCounterGoogleCloudAiplatformV1SampledShapleyAttribution--; } -core.int buildCounterGoogleCloudAiplatformV1SuggestTrialsRequest = 0; -api.GoogleCloudAiplatformV1SuggestTrialsRequest -buildGoogleCloudAiplatformV1SuggestTrialsRequest() { - final o = api.GoogleCloudAiplatformV1SuggestTrialsRequest(); - buildCounterGoogleCloudAiplatformV1SuggestTrialsRequest++; - if (buildCounterGoogleCloudAiplatformV1SuggestTrialsRequest < 3) { - o.clientId = 'foo'; - o.contexts = buildUnnamed385(); - o.suggestionCount = 42; +core.int buildCounterGoogleCloudAiplatformV1SamplingStrategy = 0; +api.GoogleCloudAiplatformV1SamplingStrategy +buildGoogleCloudAiplatformV1SamplingStrategy() { + final o = api.GoogleCloudAiplatformV1SamplingStrategy(); + buildCounterGoogleCloudAiplatformV1SamplingStrategy++; + if (buildCounterGoogleCloudAiplatformV1SamplingStrategy < 3) { + o.randomSampleConfig = + buildGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig(); } - buildCounterGoogleCloudAiplatformV1SuggestTrialsRequest--; + buildCounterGoogleCloudAiplatformV1SamplingStrategy--; return o; } -void checkGoogleCloudAiplatformV1SuggestTrialsRequest( - api.GoogleCloudAiplatformV1SuggestTrialsRequest o, +void checkGoogleCloudAiplatformV1SamplingStrategy( + api.GoogleCloudAiplatformV1SamplingStrategy o, ) { - buildCounterGoogleCloudAiplatformV1SuggestTrialsRequest++; - if (buildCounterGoogleCloudAiplatformV1SuggestTrialsRequest < 3) { - unittest.expect(o.clientId!, unittest.equals('foo')); - checkUnnamed385(o.contexts!); - unittest.expect(o.suggestionCount!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1SamplingStrategy++; + if (buildCounterGoogleCloudAiplatformV1SamplingStrategy < 3) { + checkGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig( + o.randomSampleConfig!, + ); } - buildCounterGoogleCloudAiplatformV1SuggestTrialsRequest--; + buildCounterGoogleCloudAiplatformV1SamplingStrategy--; } -core.int buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInput = 0; -api.GoogleCloudAiplatformV1SummarizationHelpfulnessInput -buildGoogleCloudAiplatformV1SummarizationHelpfulnessInput() { - final o = api.GoogleCloudAiplatformV1SummarizationHelpfulnessInput(); - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInput++; - if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInput < 3) { - o.instance = buildGoogleCloudAiplatformV1SummarizationHelpfulnessInstance(); - o.metricSpec = buildGoogleCloudAiplatformV1SummarizationHelpfulnessSpec(); +core.int buildCounterGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig = + 0; +api.GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig +buildGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig() { + final o = api.GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig(); + buildCounterGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig++; + if (buildCounterGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig < + 3) { + o.sampleRate = 42.0; } - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInput--; + buildCounterGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig--; return o; } -void checkGoogleCloudAiplatformV1SummarizationHelpfulnessInput( - api.GoogleCloudAiplatformV1SummarizationHelpfulnessInput o, +void checkGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig( + api.GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig o, ) { - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInput++; - if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInput < 3) { - checkGoogleCloudAiplatformV1SummarizationHelpfulnessInstance(o.instance!); - checkGoogleCloudAiplatformV1SummarizationHelpfulnessSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig++; + if (buildCounterGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig < + 3) { + unittest.expect(o.sampleRate!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInput--; + buildCounterGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig--; } -core.int buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInstance = - 0; -api.GoogleCloudAiplatformV1SummarizationHelpfulnessInstance -buildGoogleCloudAiplatformV1SummarizationHelpfulnessInstance() { - final o = api.GoogleCloudAiplatformV1SummarizationHelpfulnessInstance(); - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInstance++; - if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInstance < 3) { - o.context = 'foo'; - o.instruction = 'foo'; - o.prediction = 'foo'; - o.reference = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1SavedQuery = 0; +api.GoogleCloudAiplatformV1SavedQuery buildGoogleCloudAiplatformV1SavedQuery() { + final o = api.GoogleCloudAiplatformV1SavedQuery(); + buildCounterGoogleCloudAiplatformV1SavedQuery++; + if (buildCounterGoogleCloudAiplatformV1SavedQuery < 3) { + o.annotationFilter = 'foo'; + o.annotationSpecCount = 42; + o.createTime = 'foo'; + o.displayName = 'foo'; + o.etag = 'foo'; + o.metadata = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.name = 'foo'; + o.problemType = 'foo'; + o.supportAutomlTraining = true; + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInstance--; + buildCounterGoogleCloudAiplatformV1SavedQuery--; return o; } -void checkGoogleCloudAiplatformV1SummarizationHelpfulnessInstance( - api.GoogleCloudAiplatformV1SummarizationHelpfulnessInstance o, +void checkGoogleCloudAiplatformV1SavedQuery( + api.GoogleCloudAiplatformV1SavedQuery o, ) { - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInstance++; - if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInstance < 3) { - unittest.expect(o.context!, unittest.equals('foo')); - unittest.expect(o.instruction!, unittest.equals('foo')); - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1SavedQuery++; + if (buildCounterGoogleCloudAiplatformV1SavedQuery < 3) { + unittest.expect(o.annotationFilter!, unittest.equals('foo')); + unittest.expect(o.annotationSpecCount!, unittest.equals(42)); + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.etag!, unittest.equals('foo')); + var casted90 = (o.metadata!) as core.Map; + unittest.expect(casted90, unittest.hasLength(3)); + unittest.expect(casted90['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted90['bool'], unittest.equals(true)); + unittest.expect(casted90['string'], unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.problemType!, unittest.equals('foo')); + unittest.expect(o.supportAutomlTraining!, unittest.isTrue); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInstance--; + buildCounterGoogleCloudAiplatformV1SavedQuery--; } -core.int buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessResult = 0; -api.GoogleCloudAiplatformV1SummarizationHelpfulnessResult -buildGoogleCloudAiplatformV1SummarizationHelpfulnessResult() { - final o = api.GoogleCloudAiplatformV1SummarizationHelpfulnessResult(); - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessResult++; - if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessResult < 3) { - o.confidence = 42.0; - o.explanation = 'foo'; - o.score = 42.0; +core.int buildCounterGoogleCloudAiplatformV1Scalar = 0; +api.GoogleCloudAiplatformV1Scalar buildGoogleCloudAiplatformV1Scalar() { + final o = api.GoogleCloudAiplatformV1Scalar(); + buildCounterGoogleCloudAiplatformV1Scalar++; + if (buildCounterGoogleCloudAiplatformV1Scalar < 3) { + o.value = 42.0; } - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessResult--; + buildCounterGoogleCloudAiplatformV1Scalar--; return o; } -void checkGoogleCloudAiplatformV1SummarizationHelpfulnessResult( - api.GoogleCloudAiplatformV1SummarizationHelpfulnessResult o, -) { - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessResult++; - if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessResult < 3) { - unittest.expect(o.confidence!, unittest.equals(42.0)); - unittest.expect(o.explanation!, unittest.equals('foo')); - unittest.expect(o.score!, unittest.equals(42.0)); +void checkGoogleCloudAiplatformV1Scalar(api.GoogleCloudAiplatformV1Scalar o) { + buildCounterGoogleCloudAiplatformV1Scalar++; + if (buildCounterGoogleCloudAiplatformV1Scalar < 3) { + unittest.expect(o.value!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessResult--; + buildCounterGoogleCloudAiplatformV1Scalar--; } -core.int buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessSpec = 0; -api.GoogleCloudAiplatformV1SummarizationHelpfulnessSpec -buildGoogleCloudAiplatformV1SummarizationHelpfulnessSpec() { - final o = api.GoogleCloudAiplatformV1SummarizationHelpfulnessSpec(); - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessSpec++; - if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessSpec < 3) { - o.useReference = true; - o.version = 42; +core.int buildCounterGoogleCloudAiplatformV1Schedule = 0; +api.GoogleCloudAiplatformV1Schedule buildGoogleCloudAiplatformV1Schedule() { + final o = api.GoogleCloudAiplatformV1Schedule(); + buildCounterGoogleCloudAiplatformV1Schedule++; + if (buildCounterGoogleCloudAiplatformV1Schedule < 3) { + o.allowQueueing = true; + o.catchUp = true; + o.createNotebookExecutionJobRequest = + buildGoogleCloudAiplatformV1CreateNotebookExecutionJobRequest(); + o.createPipelineJobRequest = + buildGoogleCloudAiplatformV1CreatePipelineJobRequest(); + o.createTime = 'foo'; + o.cron = 'foo'; + o.displayName = 'foo'; + o.endTime = 'foo'; + o.lastPauseTime = 'foo'; + o.lastResumeTime = 'foo'; + o.lastScheduledRunResponse = + buildGoogleCloudAiplatformV1ScheduleRunResponse(); + o.maxConcurrentRunCount = 'foo'; + o.maxRunCount = 'foo'; + o.name = 'foo'; + o.nextRunTime = 'foo'; + o.startTime = 'foo'; + o.startedRunCount = 'foo'; + o.state = 'foo'; + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessSpec--; + buildCounterGoogleCloudAiplatformV1Schedule--; return o; } -void checkGoogleCloudAiplatformV1SummarizationHelpfulnessSpec( - api.GoogleCloudAiplatformV1SummarizationHelpfulnessSpec o, +void checkGoogleCloudAiplatformV1Schedule( + api.GoogleCloudAiplatformV1Schedule o, ) { - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessSpec++; - if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessSpec < 3) { - unittest.expect(o.useReference!, unittest.isTrue); - unittest.expect(o.version!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1Schedule++; + if (buildCounterGoogleCloudAiplatformV1Schedule < 3) { + unittest.expect(o.allowQueueing!, unittest.isTrue); + unittest.expect(o.catchUp!, unittest.isTrue); + checkGoogleCloudAiplatformV1CreateNotebookExecutionJobRequest( + o.createNotebookExecutionJobRequest!, + ); + checkGoogleCloudAiplatformV1CreatePipelineJobRequest( + o.createPipelineJobRequest!, + ); + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.cron!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.endTime!, unittest.equals('foo')); + unittest.expect(o.lastPauseTime!, unittest.equals('foo')); + unittest.expect(o.lastResumeTime!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ScheduleRunResponse( + o.lastScheduledRunResponse!, + ); + unittest.expect(o.maxConcurrentRunCount!, unittest.equals('foo')); + unittest.expect(o.maxRunCount!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.nextRunTime!, unittest.equals('foo')); + unittest.expect(o.startTime!, unittest.equals('foo')); + unittest.expect(o.startedRunCount!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessSpec--; + buildCounterGoogleCloudAiplatformV1Schedule--; } -core.int buildCounterGoogleCloudAiplatformV1SummarizationQualityInput = 0; -api.GoogleCloudAiplatformV1SummarizationQualityInput -buildGoogleCloudAiplatformV1SummarizationQualityInput() { - final o = api.GoogleCloudAiplatformV1SummarizationQualityInput(); - buildCounterGoogleCloudAiplatformV1SummarizationQualityInput++; - if (buildCounterGoogleCloudAiplatformV1SummarizationQualityInput < 3) { - o.instance = buildGoogleCloudAiplatformV1SummarizationQualityInstance(); - o.metricSpec = buildGoogleCloudAiplatformV1SummarizationQualitySpec(); +core.int buildCounterGoogleCloudAiplatformV1ScheduleRunResponse = 0; +api.GoogleCloudAiplatformV1ScheduleRunResponse +buildGoogleCloudAiplatformV1ScheduleRunResponse() { + final o = api.GoogleCloudAiplatformV1ScheduleRunResponse(); + buildCounterGoogleCloudAiplatformV1ScheduleRunResponse++; + if (buildCounterGoogleCloudAiplatformV1ScheduleRunResponse < 3) { + o.runResponse = 'foo'; + o.scheduledRunTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1SummarizationQualityInput--; + buildCounterGoogleCloudAiplatformV1ScheduleRunResponse--; return o; } -void checkGoogleCloudAiplatformV1SummarizationQualityInput( - api.GoogleCloudAiplatformV1SummarizationQualityInput o, +void checkGoogleCloudAiplatformV1ScheduleRunResponse( + api.GoogleCloudAiplatformV1ScheduleRunResponse o, ) { - buildCounterGoogleCloudAiplatformV1SummarizationQualityInput++; - if (buildCounterGoogleCloudAiplatformV1SummarizationQualityInput < 3) { - checkGoogleCloudAiplatformV1SummarizationQualityInstance(o.instance!); - checkGoogleCloudAiplatformV1SummarizationQualitySpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1ScheduleRunResponse++; + if (buildCounterGoogleCloudAiplatformV1ScheduleRunResponse < 3) { + unittest.expect(o.runResponse!, unittest.equals('foo')); + unittest.expect(o.scheduledRunTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SummarizationQualityInput--; + buildCounterGoogleCloudAiplatformV1ScheduleRunResponse--; } -core.int buildCounterGoogleCloudAiplatformV1SummarizationQualityInstance = 0; -api.GoogleCloudAiplatformV1SummarizationQualityInstance -buildGoogleCloudAiplatformV1SummarizationQualityInstance() { - final o = api.GoogleCloudAiplatformV1SummarizationQualityInstance(); - buildCounterGoogleCloudAiplatformV1SummarizationQualityInstance++; - if (buildCounterGoogleCloudAiplatformV1SummarizationQualityInstance < 3) { - o.context = 'foo'; - o.instruction = 'foo'; - o.prediction = 'foo'; - o.reference = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1Scheduling = 0; +api.GoogleCloudAiplatformV1Scheduling buildGoogleCloudAiplatformV1Scheduling() { + final o = api.GoogleCloudAiplatformV1Scheduling(); + buildCounterGoogleCloudAiplatformV1Scheduling++; + if (buildCounterGoogleCloudAiplatformV1Scheduling < 3) { + o.disableRetries = true; + o.maxWaitDuration = 'foo'; + o.restartJobOnWorkerRestart = true; + o.strategy = 'foo'; + o.timeout = 'foo'; } - buildCounterGoogleCloudAiplatformV1SummarizationQualityInstance--; + buildCounterGoogleCloudAiplatformV1Scheduling--; return o; } -void checkGoogleCloudAiplatformV1SummarizationQualityInstance( - api.GoogleCloudAiplatformV1SummarizationQualityInstance o, +void checkGoogleCloudAiplatformV1Scheduling( + api.GoogleCloudAiplatformV1Scheduling o, ) { - buildCounterGoogleCloudAiplatformV1SummarizationQualityInstance++; - if (buildCounterGoogleCloudAiplatformV1SummarizationQualityInstance < 3) { - unittest.expect(o.context!, unittest.equals('foo')); - unittest.expect(o.instruction!, unittest.equals('foo')); - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1Scheduling++; + if (buildCounterGoogleCloudAiplatformV1Scheduling < 3) { + unittest.expect(o.disableRetries!, unittest.isTrue); + unittest.expect(o.maxWaitDuration!, unittest.equals('foo')); + unittest.expect(o.restartJobOnWorkerRestart!, unittest.isTrue); + unittest.expect(o.strategy!, unittest.equals('foo')); + unittest.expect(o.timeout!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SummarizationQualityInstance--; + buildCounterGoogleCloudAiplatformV1Scheduling--; } -core.int buildCounterGoogleCloudAiplatformV1SummarizationQualityResult = 0; -api.GoogleCloudAiplatformV1SummarizationQualityResult -buildGoogleCloudAiplatformV1SummarizationQualityResult() { - final o = api.GoogleCloudAiplatformV1SummarizationQualityResult(); - buildCounterGoogleCloudAiplatformV1SummarizationQualityResult++; - if (buildCounterGoogleCloudAiplatformV1SummarizationQualityResult < 3) { - o.confidence = 42.0; - o.explanation = 'foo'; - o.score = 42.0; - } - buildCounterGoogleCloudAiplatformV1SummarizationQualityResult--; - return o; +core.List buildUnnamed391() => [ + buildGoogleCloudAiplatformV1Schema(), + buildGoogleCloudAiplatformV1Schema(), +]; + +void checkUnnamed391(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Schema(o[0]); + checkGoogleCloudAiplatformV1Schema(o[1]); } -void checkGoogleCloudAiplatformV1SummarizationQualityResult( - api.GoogleCloudAiplatformV1SummarizationQualityResult o, +core.Map buildUnnamed392() => { + 'x': buildGoogleCloudAiplatformV1Schema(), + 'y': buildGoogleCloudAiplatformV1Schema(), +}; + +void checkUnnamed392( + core.Map o, ) { - buildCounterGoogleCloudAiplatformV1SummarizationQualityResult++; - if (buildCounterGoogleCloudAiplatformV1SummarizationQualityResult < 3) { - unittest.expect(o.confidence!, unittest.equals(42.0)); - unittest.expect(o.explanation!, unittest.equals('foo')); - unittest.expect(o.score!, unittest.equals(42.0)); - } - buildCounterGoogleCloudAiplatformV1SummarizationQualityResult--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Schema(o['x']!); + checkGoogleCloudAiplatformV1Schema(o['y']!); } -core.int buildCounterGoogleCloudAiplatformV1SummarizationQualitySpec = 0; -api.GoogleCloudAiplatformV1SummarizationQualitySpec -buildGoogleCloudAiplatformV1SummarizationQualitySpec() { - final o = api.GoogleCloudAiplatformV1SummarizationQualitySpec(); - buildCounterGoogleCloudAiplatformV1SummarizationQualitySpec++; - if (buildCounterGoogleCloudAiplatformV1SummarizationQualitySpec < 3) { - o.useReference = true; - o.version = 42; - } - buildCounterGoogleCloudAiplatformV1SummarizationQualitySpec--; - return o; +core.List buildUnnamed393() => ['foo', 'foo']; + +void checkUnnamed393(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -void checkGoogleCloudAiplatformV1SummarizationQualitySpec( - api.GoogleCloudAiplatformV1SummarizationQualitySpec o, +core.Map buildUnnamed394() => { + 'x': buildGoogleCloudAiplatformV1Schema(), + 'y': buildGoogleCloudAiplatformV1Schema(), +}; + +void checkUnnamed394( + core.Map o, ) { - buildCounterGoogleCloudAiplatformV1SummarizationQualitySpec++; - if (buildCounterGoogleCloudAiplatformV1SummarizationQualitySpec < 3) { - unittest.expect(o.useReference!, unittest.isTrue); - unittest.expect(o.version!, unittest.equals(42)); - } - buildCounterGoogleCloudAiplatformV1SummarizationQualitySpec--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Schema(o['x']!); + checkGoogleCloudAiplatformV1Schema(o['y']!); } -core.int buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInput = 0; -api.GoogleCloudAiplatformV1SummarizationVerbosityInput -buildGoogleCloudAiplatformV1SummarizationVerbosityInput() { - final o = api.GoogleCloudAiplatformV1SummarizationVerbosityInput(); - buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInput++; - if (buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInput < 3) { - o.instance = buildGoogleCloudAiplatformV1SummarizationVerbosityInstance(); - o.metricSpec = buildGoogleCloudAiplatformV1SummarizationVerbositySpec(); +core.List buildUnnamed395() => ['foo', 'foo']; + +void checkUnnamed395(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed396() => ['foo', 'foo']; + +void checkUnnamed396(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1Schema = 0; +api.GoogleCloudAiplatformV1Schema buildGoogleCloudAiplatformV1Schema() { + final o = api.GoogleCloudAiplatformV1Schema(); + buildCounterGoogleCloudAiplatformV1Schema++; + if (buildCounterGoogleCloudAiplatformV1Schema < 3) { + o.additionalProperties = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.anyOf = buildUnnamed391(); + o.default_ = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.defs = buildUnnamed392(); + o.description = 'foo'; + o.enum_ = buildUnnamed393(); + o.example = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.format = 'foo'; + o.items = buildGoogleCloudAiplatformV1Schema(); + o.maxItems = 'foo'; + o.maxLength = 'foo'; + o.maxProperties = 'foo'; + o.maximum = 42.0; + o.minItems = 'foo'; + o.minLength = 'foo'; + o.minProperties = 'foo'; + o.minimum = 42.0; + o.nullable = true; + o.pattern = 'foo'; + o.properties = buildUnnamed394(); + o.propertyOrdering = buildUnnamed395(); + o.ref = 'foo'; + o.required = buildUnnamed396(); + o.title = 'foo'; + o.type = 'foo'; } - buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInput--; + buildCounterGoogleCloudAiplatformV1Schema--; return o; } -void checkGoogleCloudAiplatformV1SummarizationVerbosityInput( - api.GoogleCloudAiplatformV1SummarizationVerbosityInput o, -) { - buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInput++; - if (buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInput < 3) { - checkGoogleCloudAiplatformV1SummarizationVerbosityInstance(o.instance!); - checkGoogleCloudAiplatformV1SummarizationVerbositySpec(o.metricSpec!); +void checkGoogleCloudAiplatformV1Schema(api.GoogleCloudAiplatformV1Schema o) { + buildCounterGoogleCloudAiplatformV1Schema++; + if (buildCounterGoogleCloudAiplatformV1Schema < 3) { + var casted91 = (o.additionalProperties!) as core.Map; + unittest.expect(casted91, unittest.hasLength(3)); + unittest.expect(casted91['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted91['bool'], unittest.equals(true)); + unittest.expect(casted91['string'], unittest.equals('foo')); + checkUnnamed391(o.anyOf!); + var casted92 = (o.default_!) as core.Map; + unittest.expect(casted92, unittest.hasLength(3)); + unittest.expect(casted92['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted92['bool'], unittest.equals(true)); + unittest.expect(casted92['string'], unittest.equals('foo')); + checkUnnamed392(o.defs!); + unittest.expect(o.description!, unittest.equals('foo')); + checkUnnamed393(o.enum_!); + var casted93 = (o.example!) as core.Map; + unittest.expect(casted93, unittest.hasLength(3)); + unittest.expect(casted93['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted93['bool'], unittest.equals(true)); + unittest.expect(casted93['string'], unittest.equals('foo')); + unittest.expect(o.format!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1Schema(o.items!); + unittest.expect(o.maxItems!, unittest.equals('foo')); + unittest.expect(o.maxLength!, unittest.equals('foo')); + unittest.expect(o.maxProperties!, unittest.equals('foo')); + unittest.expect(o.maximum!, unittest.equals(42.0)); + unittest.expect(o.minItems!, unittest.equals('foo')); + unittest.expect(o.minLength!, unittest.equals('foo')); + unittest.expect(o.minProperties!, unittest.equals('foo')); + unittest.expect(o.minimum!, unittest.equals(42.0)); + unittest.expect(o.nullable!, unittest.isTrue); + unittest.expect(o.pattern!, unittest.equals('foo')); + checkUnnamed394(o.properties!); + checkUnnamed395(o.propertyOrdering!); + unittest.expect(o.ref!, unittest.equals('foo')); + checkUnnamed396(o.required!); + unittest.expect(o.title!, unittest.equals('foo')); + unittest.expect(o.type!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInput--; + buildCounterGoogleCloudAiplatformV1Schema--; } -core.int buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInstance = 0; -api.GoogleCloudAiplatformV1SummarizationVerbosityInstance -buildGoogleCloudAiplatformV1SummarizationVerbosityInstance() { - final o = api.GoogleCloudAiplatformV1SummarizationVerbosityInstance(); - buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInstance++; - if (buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInstance < 3) { - o.context = 'foo'; - o.instruction = 'foo'; - o.prediction = 'foo'; - o.reference = 'foo'; +core.List buildUnnamed397() => [ + buildGoogleCloudAiplatformV1DataItemView(), + buildGoogleCloudAiplatformV1DataItemView(), +]; + +void checkUnnamed397(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1DataItemView(o[0]); + checkGoogleCloudAiplatformV1DataItemView(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1SearchDataItemsResponse = 0; +api.GoogleCloudAiplatformV1SearchDataItemsResponse +buildGoogleCloudAiplatformV1SearchDataItemsResponse() { + final o = api.GoogleCloudAiplatformV1SearchDataItemsResponse(); + buildCounterGoogleCloudAiplatformV1SearchDataItemsResponse++; + if (buildCounterGoogleCloudAiplatformV1SearchDataItemsResponse < 3) { + o.dataItemViews = buildUnnamed397(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInstance--; + buildCounterGoogleCloudAiplatformV1SearchDataItemsResponse--; return o; } -void checkGoogleCloudAiplatformV1SummarizationVerbosityInstance( - api.GoogleCloudAiplatformV1SummarizationVerbosityInstance o, +void checkGoogleCloudAiplatformV1SearchDataItemsResponse( + api.GoogleCloudAiplatformV1SearchDataItemsResponse o, ) { - buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInstance++; - if (buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInstance < 3) { - unittest.expect(o.context!, unittest.equals('foo')); - unittest.expect(o.instruction!, unittest.equals('foo')); - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1SearchDataItemsResponse++; + if (buildCounterGoogleCloudAiplatformV1SearchDataItemsResponse < 3) { + checkUnnamed397(o.dataItemViews!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInstance--; + buildCounterGoogleCloudAiplatformV1SearchDataItemsResponse--; } -core.int buildCounterGoogleCloudAiplatformV1SummarizationVerbosityResult = 0; -api.GoogleCloudAiplatformV1SummarizationVerbosityResult -buildGoogleCloudAiplatformV1SummarizationVerbosityResult() { - final o = api.GoogleCloudAiplatformV1SummarizationVerbosityResult(); - buildCounterGoogleCloudAiplatformV1SummarizationVerbosityResult++; - if (buildCounterGoogleCloudAiplatformV1SummarizationVerbosityResult < 3) { - o.confidence = 42.0; - o.explanation = 'foo'; - o.score = 42.0; +core.int buildCounterGoogleCloudAiplatformV1SearchEntryPoint = 0; +api.GoogleCloudAiplatformV1SearchEntryPoint +buildGoogleCloudAiplatformV1SearchEntryPoint() { + final o = api.GoogleCloudAiplatformV1SearchEntryPoint(); + buildCounterGoogleCloudAiplatformV1SearchEntryPoint++; + if (buildCounterGoogleCloudAiplatformV1SearchEntryPoint < 3) { + o.renderedContent = 'foo'; + o.sdkBlob = 'foo'; } - buildCounterGoogleCloudAiplatformV1SummarizationVerbosityResult--; + buildCounterGoogleCloudAiplatformV1SearchEntryPoint--; return o; } -void checkGoogleCloudAiplatformV1SummarizationVerbosityResult( - api.GoogleCloudAiplatformV1SummarizationVerbosityResult o, +void checkGoogleCloudAiplatformV1SearchEntryPoint( + api.GoogleCloudAiplatformV1SearchEntryPoint o, ) { - buildCounterGoogleCloudAiplatformV1SummarizationVerbosityResult++; - if (buildCounterGoogleCloudAiplatformV1SummarizationVerbosityResult < 3) { - unittest.expect(o.confidence!, unittest.equals(42.0)); - unittest.expect(o.explanation!, unittest.equals('foo')); - unittest.expect(o.score!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1SearchEntryPoint++; + if (buildCounterGoogleCloudAiplatformV1SearchEntryPoint < 3) { + unittest.expect(o.renderedContent!, unittest.equals('foo')); + unittest.expect(o.sdkBlob!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SummarizationVerbosityResult--; + buildCounterGoogleCloudAiplatformV1SearchEntryPoint--; } -core.int buildCounterGoogleCloudAiplatformV1SummarizationVerbositySpec = 0; -api.GoogleCloudAiplatformV1SummarizationVerbositySpec -buildGoogleCloudAiplatformV1SummarizationVerbositySpec() { - final o = api.GoogleCloudAiplatformV1SummarizationVerbositySpec(); - buildCounterGoogleCloudAiplatformV1SummarizationVerbositySpec++; - if (buildCounterGoogleCloudAiplatformV1SummarizationVerbositySpec < 3) { - o.useReference = true; - o.version = 42; +core.List buildUnnamed398() => [ + buildGoogleCloudAiplatformV1Feature(), + buildGoogleCloudAiplatformV1Feature(), +]; + +void checkUnnamed398(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Feature(o[0]); + checkGoogleCloudAiplatformV1Feature(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1SearchFeaturesResponse = 0; +api.GoogleCloudAiplatformV1SearchFeaturesResponse +buildGoogleCloudAiplatformV1SearchFeaturesResponse() { + final o = api.GoogleCloudAiplatformV1SearchFeaturesResponse(); + buildCounterGoogleCloudAiplatformV1SearchFeaturesResponse++; + if (buildCounterGoogleCloudAiplatformV1SearchFeaturesResponse < 3) { + o.features = buildUnnamed398(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1SummarizationVerbositySpec--; + buildCounterGoogleCloudAiplatformV1SearchFeaturesResponse--; return o; } -void checkGoogleCloudAiplatformV1SummarizationVerbositySpec( - api.GoogleCloudAiplatformV1SummarizationVerbositySpec o, +void checkGoogleCloudAiplatformV1SearchFeaturesResponse( + api.GoogleCloudAiplatformV1SearchFeaturesResponse o, ) { - buildCounterGoogleCloudAiplatformV1SummarizationVerbositySpec++; - if (buildCounterGoogleCloudAiplatformV1SummarizationVerbositySpec < 3) { - unittest.expect(o.useReference!, unittest.isTrue); - unittest.expect(o.version!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1SearchFeaturesResponse++; + if (buildCounterGoogleCloudAiplatformV1SearchFeaturesResponse < 3) { + checkUnnamed398(o.features!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SummarizationVerbositySpec--; + buildCounterGoogleCloudAiplatformV1SearchFeaturesResponse--; } -core.int buildCounterGoogleCloudAiplatformV1SupervisedHyperParameters = 0; -api.GoogleCloudAiplatformV1SupervisedHyperParameters -buildGoogleCloudAiplatformV1SupervisedHyperParameters() { - final o = api.GoogleCloudAiplatformV1SupervisedHyperParameters(); - buildCounterGoogleCloudAiplatformV1SupervisedHyperParameters++; - if (buildCounterGoogleCloudAiplatformV1SupervisedHyperParameters < 3) { - o.adapterSize = 'foo'; - o.epochCount = 'foo'; - o.learningRateMultiplier = 42.0; +core.int buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesRequest = + 0; +api.GoogleCloudAiplatformV1SearchMigratableResourcesRequest +buildGoogleCloudAiplatformV1SearchMigratableResourcesRequest() { + final o = api.GoogleCloudAiplatformV1SearchMigratableResourcesRequest(); + buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesRequest++; + if (buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesRequest < 3) { + o.filter = 'foo'; + o.pageSize = 42; + o.pageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1SupervisedHyperParameters--; + buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesRequest--; return o; } -void checkGoogleCloudAiplatformV1SupervisedHyperParameters( - api.GoogleCloudAiplatformV1SupervisedHyperParameters o, +void checkGoogleCloudAiplatformV1SearchMigratableResourcesRequest( + api.GoogleCloudAiplatformV1SearchMigratableResourcesRequest o, ) { - buildCounterGoogleCloudAiplatformV1SupervisedHyperParameters++; - if (buildCounterGoogleCloudAiplatformV1SupervisedHyperParameters < 3) { - unittest.expect(o.adapterSize!, unittest.equals('foo')); - unittest.expect(o.epochCount!, unittest.equals('foo')); - unittest.expect(o.learningRateMultiplier!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesRequest++; + if (buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesRequest < 3) { + unittest.expect(o.filter!, unittest.equals('foo')); + unittest.expect(o.pageSize!, unittest.equals(42)); + unittest.expect(o.pageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SupervisedHyperParameters--; + buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesRequest--; } -core.List buildUnnamed386() => ['foo', 'foo']; +core.List buildUnnamed399() => [ + buildGoogleCloudAiplatformV1MigratableResource(), + buildGoogleCloudAiplatformV1MigratableResource(), +]; -void checkUnnamed386(core.List o) { +void checkUnnamed399( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1MigratableResource(o[0]); + checkGoogleCloudAiplatformV1MigratableResource(o[1]); } -core.List buildUnnamed387() => ['foo', 'foo']; - -void checkUnnamed387(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.List buildUnnamed388() => [ - buildGoogleCloudAiplatformV1Content(), - buildGoogleCloudAiplatformV1Content(), -]; - -void checkUnnamed388(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Content(o[0]); - checkGoogleCloudAiplatformV1Content(o[1]); -} - -core.int buildCounterGoogleCloudAiplatformV1SupervisedTuningDataStats = 0; -api.GoogleCloudAiplatformV1SupervisedTuningDataStats -buildGoogleCloudAiplatformV1SupervisedTuningDataStats() { - final o = api.GoogleCloudAiplatformV1SupervisedTuningDataStats(); - buildCounterGoogleCloudAiplatformV1SupervisedTuningDataStats++; - if (buildCounterGoogleCloudAiplatformV1SupervisedTuningDataStats < 3) { - o.droppedExampleReasons = buildUnnamed386(); - o.totalBillableCharacterCount = 'foo'; - o.totalBillableTokenCount = 'foo'; - o.totalTruncatedExampleCount = 'foo'; - o.totalTuningCharacterCount = 'foo'; - o.truncatedExampleIndices = buildUnnamed387(); - o.tuningDatasetExampleCount = 'foo'; - o.tuningStepCount = 'foo'; - o.userDatasetExamples = buildUnnamed388(); - o.userInputTokenDistribution = - buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution(); - o.userMessagePerExampleDistribution = - buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution(); - o.userOutputTokenDistribution = - buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution(); +core.int buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesResponse = + 0; +api.GoogleCloudAiplatformV1SearchMigratableResourcesResponse +buildGoogleCloudAiplatformV1SearchMigratableResourcesResponse() { + final o = api.GoogleCloudAiplatformV1SearchMigratableResourcesResponse(); + buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesResponse++; + if (buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesResponse < + 3) { + o.migratableResources = buildUnnamed399(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1SupervisedTuningDataStats--; + buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesResponse--; return o; } -void checkGoogleCloudAiplatformV1SupervisedTuningDataStats( - api.GoogleCloudAiplatformV1SupervisedTuningDataStats o, +void checkGoogleCloudAiplatformV1SearchMigratableResourcesResponse( + api.GoogleCloudAiplatformV1SearchMigratableResourcesResponse o, ) { - buildCounterGoogleCloudAiplatformV1SupervisedTuningDataStats++; - if (buildCounterGoogleCloudAiplatformV1SupervisedTuningDataStats < 3) { - checkUnnamed386(o.droppedExampleReasons!); - unittest.expect(o.totalBillableCharacterCount!, unittest.equals('foo')); - unittest.expect(o.totalBillableTokenCount!, unittest.equals('foo')); - unittest.expect(o.totalTruncatedExampleCount!, unittest.equals('foo')); - unittest.expect(o.totalTuningCharacterCount!, unittest.equals('foo')); - checkUnnamed387(o.truncatedExampleIndices!); - unittest.expect(o.tuningDatasetExampleCount!, unittest.equals('foo')); - unittest.expect(o.tuningStepCount!, unittest.equals('foo')); - checkUnnamed388(o.userDatasetExamples!); - checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution( - o.userInputTokenDistribution!, - ); - checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution( - o.userMessagePerExampleDistribution!, - ); - checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution( - o.userOutputTokenDistribution!, - ); + buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesResponse++; + if (buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesResponse < + 3) { + checkUnnamed399(o.migratableResources!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SupervisedTuningDataStats--; + buildCounterGoogleCloudAiplatformV1SearchMigratableResourcesResponse--; } core.List< - api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket + api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective > -buildUnnamed389() => [ - buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket(), - buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket(), +buildUnnamed400() => [ + buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective(), + buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective(), ]; -void checkUnnamed389( +void checkUnnamed400( core.List< - api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket + api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective > o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket( + checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective( o[0], ); - checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket( + checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective( o[1], ); } core.int -buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution = 0; -api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution -buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution() { - final o = api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution(); - buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution++; - if (buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution < +buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest = + 0; +api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest +buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest() { + final o = + api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest++; + if (buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest < 3) { - o.billableSum = 'foo'; - o.buckets = buildUnnamed389(); - o.max = 42.0; - o.mean = 42.0; - o.median = 42.0; - o.min = 42.0; - o.p5 = 42.0; - o.p95 = 42.0; - o.sum = 'foo'; + o.deployedModelId = 'foo'; + o.endTime = 'foo'; + o.featureDisplayName = 'foo'; + o.objectives = buildUnnamed400(); + o.pageSize = 42; + o.pageToken = 'foo'; + o.startTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution--; + buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest--; return o; } -void checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution( - api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution o, +void +checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest( + api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest + o, ) { - buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution++; - if (buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution < + buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest++; + if (buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest < 3) { - unittest.expect(o.billableSum!, unittest.equals('foo')); - checkUnnamed389(o.buckets!); - unittest.expect(o.max!, unittest.equals(42.0)); - unittest.expect(o.mean!, unittest.equals(42.0)); - unittest.expect(o.median!, unittest.equals(42.0)); - unittest.expect(o.min!, unittest.equals(42.0)); - unittest.expect(o.p5!, unittest.equals(42.0)); - unittest.expect(o.p95!, unittest.equals(42.0)); - unittest.expect(o.sum!, unittest.equals('foo')); + unittest.expect(o.deployedModelId!, unittest.equals('foo')); + unittest.expect(o.endTime!, unittest.equals('foo')); + unittest.expect(o.featureDisplayName!, unittest.equals('foo')); + checkUnnamed400(o.objectives!); + unittest.expect(o.pageSize!, unittest.equals(42)); + unittest.expect(o.pageToken!, unittest.equals('foo')); + unittest.expect(o.startTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution--; + buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest--; } core.int -buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket = +buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective = 0; -api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket -buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket() { +api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective +buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective() { final o = - api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket(); - buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket++; - if (buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket < + api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective(); + buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective++; + if (buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective < 3) { - o.count = 42.0; - o.left = 42.0; - o.right = 42.0; + o.topFeatureCount = 42; + o.type = 'foo'; } - buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket--; + buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective--; return o; } void -checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket( - api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket o, +checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective( + api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective + o, ) { - buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket++; - if (buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket < + buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective++; + if (buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective < 3) { - unittest.expect(o.count!, unittest.equals(42.0)); - unittest.expect(o.left!, unittest.equals(42.0)); - unittest.expect(o.right!, unittest.equals(42.0)); + unittest.expect(o.topFeatureCount!, unittest.equals(42)); + unittest.expect(o.type!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket--; + buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective--; } -core.int buildCounterGoogleCloudAiplatformV1SupervisedTuningSpec = 0; -api.GoogleCloudAiplatformV1SupervisedTuningSpec -buildGoogleCloudAiplatformV1SupervisedTuningSpec() { - final o = api.GoogleCloudAiplatformV1SupervisedTuningSpec(); - buildCounterGoogleCloudAiplatformV1SupervisedTuningSpec++; - if (buildCounterGoogleCloudAiplatformV1SupervisedTuningSpec < 3) { - o.exportLastCheckpointOnly = true; - o.hyperParameters = buildGoogleCloudAiplatformV1SupervisedHyperParameters(); - o.trainingDatasetUri = 'foo'; - o.validationDatasetUri = 'foo'; +core.List +buildUnnamed401() => [ + buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies(), + buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies(), +]; + +void checkUnnamed401( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies(o[0]); + checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies(o[1]); +} + +core.int +buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse = + 0; +api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse +buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse() { + final o = + api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse++; + if (buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse < + 3) { + o.monitoringStats = buildUnnamed401(); + o.nextPageToken = 'foo'; } - buildCounterGoogleCloudAiplatformV1SupervisedTuningSpec--; + buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse--; return o; } -void checkGoogleCloudAiplatformV1SupervisedTuningSpec( - api.GoogleCloudAiplatformV1SupervisedTuningSpec o, +void +checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse( + api.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse + o, ) { - buildCounterGoogleCloudAiplatformV1SupervisedTuningSpec++; - if (buildCounterGoogleCloudAiplatformV1SupervisedTuningSpec < 3) { - unittest.expect(o.exportLastCheckpointOnly!, unittest.isTrue); - checkGoogleCloudAiplatformV1SupervisedHyperParameters(o.hyperParameters!); - unittest.expect(o.trainingDatasetUri!, unittest.equals('foo')); - unittest.expect(o.validationDatasetUri!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse++; + if (buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse < + 3) { + checkUnnamed401(o.monitoringStats!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1SupervisedTuningSpec--; + buildCounterGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse--; } -core.int buildCounterGoogleCloudAiplatformV1SyncFeatureViewRequest = 0; -api.GoogleCloudAiplatformV1SyncFeatureViewRequest -buildGoogleCloudAiplatformV1SyncFeatureViewRequest() { - final o = api.GoogleCloudAiplatformV1SyncFeatureViewRequest(); - buildCounterGoogleCloudAiplatformV1SyncFeatureViewRequest++; - if (buildCounterGoogleCloudAiplatformV1SyncFeatureViewRequest < 3) {} - buildCounterGoogleCloudAiplatformV1SyncFeatureViewRequest--; +core.int buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesRequest = 0; +api.GoogleCloudAiplatformV1SearchNearestEntitiesRequest +buildGoogleCloudAiplatformV1SearchNearestEntitiesRequest() { + final o = api.GoogleCloudAiplatformV1SearchNearestEntitiesRequest(); + buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesRequest++; + if (buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesRequest < 3) { + o.query = buildGoogleCloudAiplatformV1NearestNeighborQuery(); + o.returnFullEntity = true; + } + buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesRequest--; return o; } -void checkGoogleCloudAiplatformV1SyncFeatureViewRequest( - api.GoogleCloudAiplatformV1SyncFeatureViewRequest o, +void checkGoogleCloudAiplatformV1SearchNearestEntitiesRequest( + api.GoogleCloudAiplatformV1SearchNearestEntitiesRequest o, ) { - buildCounterGoogleCloudAiplatformV1SyncFeatureViewRequest++; - if (buildCounterGoogleCloudAiplatformV1SyncFeatureViewRequest < 3) {} - buildCounterGoogleCloudAiplatformV1SyncFeatureViewRequest--; + buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesRequest++; + if (buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesRequest < 3) { + checkGoogleCloudAiplatformV1NearestNeighborQuery(o.query!); + unittest.expect(o.returnFullEntity!, unittest.isTrue); + } + buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesRequest--; } -core.int buildCounterGoogleCloudAiplatformV1SyncFeatureViewResponse = 0; -api.GoogleCloudAiplatformV1SyncFeatureViewResponse -buildGoogleCloudAiplatformV1SyncFeatureViewResponse() { - final o = api.GoogleCloudAiplatformV1SyncFeatureViewResponse(); - buildCounterGoogleCloudAiplatformV1SyncFeatureViewResponse++; - if (buildCounterGoogleCloudAiplatformV1SyncFeatureViewResponse < 3) { - o.featureViewSync = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesResponse = 0; +api.GoogleCloudAiplatformV1SearchNearestEntitiesResponse +buildGoogleCloudAiplatformV1SearchNearestEntitiesResponse() { + final o = api.GoogleCloudAiplatformV1SearchNearestEntitiesResponse(); + buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesResponse++; + if (buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesResponse < 3) { + o.nearestNeighbors = buildGoogleCloudAiplatformV1NearestNeighbors(); } - buildCounterGoogleCloudAiplatformV1SyncFeatureViewResponse--; + buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesResponse--; return o; } -void checkGoogleCloudAiplatformV1SyncFeatureViewResponse( - api.GoogleCloudAiplatformV1SyncFeatureViewResponse o, +void checkGoogleCloudAiplatformV1SearchNearestEntitiesResponse( + api.GoogleCloudAiplatformV1SearchNearestEntitiesResponse o, ) { - buildCounterGoogleCloudAiplatformV1SyncFeatureViewResponse++; - if (buildCounterGoogleCloudAiplatformV1SyncFeatureViewResponse < 3) { - unittest.expect(o.featureViewSync!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesResponse++; + if (buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesResponse < 3) { + checkGoogleCloudAiplatformV1NearestNeighbors(o.nearestNeighbors!); } - buildCounterGoogleCloudAiplatformV1SyncFeatureViewResponse--; + buildCounterGoogleCloudAiplatformV1SearchNearestEntitiesResponse--; } -core.int buildCounterGoogleCloudAiplatformV1TFRecordDestination = 0; -api.GoogleCloudAiplatformV1TFRecordDestination -buildGoogleCloudAiplatformV1TFRecordDestination() { - final o = api.GoogleCloudAiplatformV1TFRecordDestination(); - buildCounterGoogleCloudAiplatformV1TFRecordDestination++; - if (buildCounterGoogleCloudAiplatformV1TFRecordDestination < 3) { - o.gcsDestination = buildGoogleCloudAiplatformV1GcsDestination(); +core.int buildCounterGoogleCloudAiplatformV1SecretEnvVar = 0; +api.GoogleCloudAiplatformV1SecretEnvVar +buildGoogleCloudAiplatformV1SecretEnvVar() { + final o = api.GoogleCloudAiplatformV1SecretEnvVar(); + buildCounterGoogleCloudAiplatformV1SecretEnvVar++; + if (buildCounterGoogleCloudAiplatformV1SecretEnvVar < 3) { + o.name = 'foo'; + o.secretRef = buildGoogleCloudAiplatformV1SecretRef(); } - buildCounterGoogleCloudAiplatformV1TFRecordDestination--; + buildCounterGoogleCloudAiplatformV1SecretEnvVar--; return o; } -void checkGoogleCloudAiplatformV1TFRecordDestination( - api.GoogleCloudAiplatformV1TFRecordDestination o, +void checkGoogleCloudAiplatformV1SecretEnvVar( + api.GoogleCloudAiplatformV1SecretEnvVar o, ) { - buildCounterGoogleCloudAiplatformV1TFRecordDestination++; - if (buildCounterGoogleCloudAiplatformV1TFRecordDestination < 3) { - checkGoogleCloudAiplatformV1GcsDestination(o.gcsDestination!); + buildCounterGoogleCloudAiplatformV1SecretEnvVar++; + if (buildCounterGoogleCloudAiplatformV1SecretEnvVar < 3) { + unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1SecretRef(o.secretRef!); } - buildCounterGoogleCloudAiplatformV1TFRecordDestination--; + buildCounterGoogleCloudAiplatformV1SecretEnvVar--; } -core.List buildUnnamed390() => [true, true]; - -void checkUnnamed390(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.isTrue); - unittest.expect(o[1], unittest.isTrue); +core.int buildCounterGoogleCloudAiplatformV1SecretRef = 0; +api.GoogleCloudAiplatformV1SecretRef buildGoogleCloudAiplatformV1SecretRef() { + final o = api.GoogleCloudAiplatformV1SecretRef(); + buildCounterGoogleCloudAiplatformV1SecretRef++; + if (buildCounterGoogleCloudAiplatformV1SecretRef < 3) { + o.secret = 'foo'; + o.version = 'foo'; + } + buildCounterGoogleCloudAiplatformV1SecretRef--; + return o; } -core.List buildUnnamed391() => ['foo', 'foo']; - -void checkUnnamed391(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1SecretRef( + api.GoogleCloudAiplatformV1SecretRef o, +) { + buildCounterGoogleCloudAiplatformV1SecretRef++; + if (buildCounterGoogleCloudAiplatformV1SecretRef < 3) { + unittest.expect(o.secret!, unittest.equals('foo')); + unittest.expect(o.version!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1SecretRef--; } -core.List buildUnnamed392() => [42.0, 42.0]; - -void checkUnnamed392(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals(42.0)); - unittest.expect(o[1], unittest.equals(42.0)); +core.int buildCounterGoogleCloudAiplatformV1Segment = 0; +api.GoogleCloudAiplatformV1Segment buildGoogleCloudAiplatformV1Segment() { + final o = api.GoogleCloudAiplatformV1Segment(); + buildCounterGoogleCloudAiplatformV1Segment++; + if (buildCounterGoogleCloudAiplatformV1Segment < 3) { + o.endIndex = 42; + o.partIndex = 42; + o.startIndex = 42; + o.text = 'foo'; + } + buildCounterGoogleCloudAiplatformV1Segment--; + return o; } -core.List buildUnnamed393() => [42.0, 42.0]; - -void checkUnnamed393(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals(42.0)); - unittest.expect(o[1], unittest.equals(42.0)); +void checkGoogleCloudAiplatformV1Segment(api.GoogleCloudAiplatformV1Segment o) { + buildCounterGoogleCloudAiplatformV1Segment++; + if (buildCounterGoogleCloudAiplatformV1Segment < 3) { + unittest.expect(o.endIndex!, unittest.equals(42)); + unittest.expect(o.partIndex!, unittest.equals(42)); + unittest.expect(o.startIndex!, unittest.equals(42)); + unittest.expect(o.text!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1Segment--; } -core.List buildUnnamed394() => ['foo', 'foo']; - -void checkUnnamed394(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +core.int buildCounterGoogleCloudAiplatformV1ServiceAccountSpec = 0; +api.GoogleCloudAiplatformV1ServiceAccountSpec +buildGoogleCloudAiplatformV1ServiceAccountSpec() { + final o = api.GoogleCloudAiplatformV1ServiceAccountSpec(); + buildCounterGoogleCloudAiplatformV1ServiceAccountSpec++; + if (buildCounterGoogleCloudAiplatformV1ServiceAccountSpec < 3) { + o.enableCustomServiceAccount = true; + o.serviceAccount = 'foo'; + } + buildCounterGoogleCloudAiplatformV1ServiceAccountSpec--; + return o; } -core.List buildUnnamed395() => [42, 42]; - -void checkUnnamed395(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals(42)); - unittest.expect(o[1], unittest.equals(42)); +void checkGoogleCloudAiplatformV1ServiceAccountSpec( + api.GoogleCloudAiplatformV1ServiceAccountSpec o, +) { + buildCounterGoogleCloudAiplatformV1ServiceAccountSpec++; + if (buildCounterGoogleCloudAiplatformV1ServiceAccountSpec < 3) { + unittest.expect(o.enableCustomServiceAccount!, unittest.isTrue); + unittest.expect(o.serviceAccount!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1ServiceAccountSpec--; } -core.List buildUnnamed396() => [ - buildGoogleCloudAiplatformV1Tensor(), - buildGoogleCloudAiplatformV1Tensor(), +core.List +buildUnnamed402() => [ + buildGoogleCloudAiplatformV1SharePointSourcesSharePointSource(), + buildGoogleCloudAiplatformV1SharePointSourcesSharePointSource(), ]; -void checkUnnamed396(core.List o) { +void checkUnnamed402( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Tensor(o[0]); - checkGoogleCloudAiplatformV1Tensor(o[1]); + checkGoogleCloudAiplatformV1SharePointSourcesSharePointSource(o[0]); + checkGoogleCloudAiplatformV1SharePointSourcesSharePointSource(o[1]); } -core.List buildUnnamed397() => ['foo', 'foo']; - -void checkUnnamed397(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +core.int buildCounterGoogleCloudAiplatformV1SharePointSources = 0; +api.GoogleCloudAiplatformV1SharePointSources +buildGoogleCloudAiplatformV1SharePointSources() { + final o = api.GoogleCloudAiplatformV1SharePointSources(); + buildCounterGoogleCloudAiplatformV1SharePointSources++; + if (buildCounterGoogleCloudAiplatformV1SharePointSources < 3) { + o.sharePointSources = buildUnnamed402(); + } + buildCounterGoogleCloudAiplatformV1SharePointSources--; + return o; } -core.List buildUnnamed398() => ['foo', 'foo']; - -void checkUnnamed398(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1SharePointSources( + api.GoogleCloudAiplatformV1SharePointSources o, +) { + buildCounterGoogleCloudAiplatformV1SharePointSources++; + if (buildCounterGoogleCloudAiplatformV1SharePointSources < 3) { + checkUnnamed402(o.sharePointSources!); + } + buildCounterGoogleCloudAiplatformV1SharePointSources--; } -core.Map buildUnnamed399() => { - 'x': buildGoogleCloudAiplatformV1Tensor(), - 'y': buildGoogleCloudAiplatformV1Tensor(), -}; +core.int buildCounterGoogleCloudAiplatformV1SharePointSourcesSharePointSource = + 0; +api.GoogleCloudAiplatformV1SharePointSourcesSharePointSource +buildGoogleCloudAiplatformV1SharePointSourcesSharePointSource() { + final o = api.GoogleCloudAiplatformV1SharePointSourcesSharePointSource(); + buildCounterGoogleCloudAiplatformV1SharePointSourcesSharePointSource++; + if (buildCounterGoogleCloudAiplatformV1SharePointSourcesSharePointSource < + 3) { + o.clientId = 'foo'; + o.clientSecret = buildGoogleCloudAiplatformV1ApiAuthApiKeyConfig(); + o.driveId = 'foo'; + o.driveName = 'foo'; + o.fileId = 'foo'; + o.sharepointFolderId = 'foo'; + o.sharepointFolderPath = 'foo'; + o.sharepointSiteName = 'foo'; + o.tenantId = 'foo'; + } + buildCounterGoogleCloudAiplatformV1SharePointSourcesSharePointSource--; + return o; +} -void checkUnnamed399( - core.Map o, +void checkGoogleCloudAiplatformV1SharePointSourcesSharePointSource( + api.GoogleCloudAiplatformV1SharePointSourcesSharePointSource o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Tensor(o['x']!); - checkGoogleCloudAiplatformV1Tensor(o['y']!); + buildCounterGoogleCloudAiplatformV1SharePointSourcesSharePointSource++; + if (buildCounterGoogleCloudAiplatformV1SharePointSourcesSharePointSource < + 3) { + unittest.expect(o.clientId!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ApiAuthApiKeyConfig(o.clientSecret!); + unittest.expect(o.driveId!, unittest.equals('foo')); + unittest.expect(o.driveName!, unittest.equals('foo')); + unittest.expect(o.fileId!, unittest.equals('foo')); + unittest.expect(o.sharepointFolderId!, unittest.equals('foo')); + unittest.expect(o.sharepointFolderPath!, unittest.equals('foo')); + unittest.expect(o.sharepointSiteName!, unittest.equals('foo')); + unittest.expect(o.tenantId!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1SharePointSourcesSharePointSource--; } -core.List buildUnnamed400() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1ShieldedVmConfig = 0; +api.GoogleCloudAiplatformV1ShieldedVmConfig +buildGoogleCloudAiplatformV1ShieldedVmConfig() { + final o = api.GoogleCloudAiplatformV1ShieldedVmConfig(); + buildCounterGoogleCloudAiplatformV1ShieldedVmConfig++; + if (buildCounterGoogleCloudAiplatformV1ShieldedVmConfig < 3) { + o.enableSecureBoot = true; + } + buildCounterGoogleCloudAiplatformV1ShieldedVmConfig--; + return o; +} -void checkUnnamed400(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1ShieldedVmConfig( + api.GoogleCloudAiplatformV1ShieldedVmConfig o, +) { + buildCounterGoogleCloudAiplatformV1ShieldedVmConfig++; + if (buildCounterGoogleCloudAiplatformV1ShieldedVmConfig < 3) { + unittest.expect(o.enableSecureBoot!, unittest.isTrue); + } + buildCounterGoogleCloudAiplatformV1ShieldedVmConfig--; } -core.List buildUnnamed401() => [42, 42]; +core.List +buildUnnamed403() => [ + buildGoogleCloudAiplatformV1SlackSourceSlackChannels(), + buildGoogleCloudAiplatformV1SlackSourceSlackChannels(), +]; -void checkUnnamed401(core.List o) { +void checkUnnamed403( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals(42)); - unittest.expect(o[1], unittest.equals(42)); + checkGoogleCloudAiplatformV1SlackSourceSlackChannels(o[0]); + checkGoogleCloudAiplatformV1SlackSourceSlackChannels(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1Tensor = 0; -api.GoogleCloudAiplatformV1Tensor buildGoogleCloudAiplatformV1Tensor() { - final o = api.GoogleCloudAiplatformV1Tensor(); - buildCounterGoogleCloudAiplatformV1Tensor++; - if (buildCounterGoogleCloudAiplatformV1Tensor < 3) { - o.boolVal = buildUnnamed390(); - o.bytesVal = buildUnnamed391(); - o.doubleVal = buildUnnamed392(); - o.dtype = 'foo'; - o.floatVal = buildUnnamed393(); - o.int64Val = buildUnnamed394(); - o.intVal = buildUnnamed395(); - o.listVal = buildUnnamed396(); - o.shape = buildUnnamed397(); - o.stringVal = buildUnnamed398(); - o.structVal = buildUnnamed399(); - o.tensorVal = 'foo'; - o.uint64Val = buildUnnamed400(); - o.uintVal = buildUnnamed401(); +core.int buildCounterGoogleCloudAiplatformV1SlackSource = 0; +api.GoogleCloudAiplatformV1SlackSource +buildGoogleCloudAiplatformV1SlackSource() { + final o = api.GoogleCloudAiplatformV1SlackSource(); + buildCounterGoogleCloudAiplatformV1SlackSource++; + if (buildCounterGoogleCloudAiplatformV1SlackSource < 3) { + o.channels = buildUnnamed403(); } - buildCounterGoogleCloudAiplatformV1Tensor--; + buildCounterGoogleCloudAiplatformV1SlackSource--; return o; } -void checkGoogleCloudAiplatformV1Tensor(api.GoogleCloudAiplatformV1Tensor o) { - buildCounterGoogleCloudAiplatformV1Tensor++; - if (buildCounterGoogleCloudAiplatformV1Tensor < 3) { - checkUnnamed390(o.boolVal!); - checkUnnamed391(o.bytesVal!); - checkUnnamed392(o.doubleVal!); - unittest.expect(o.dtype!, unittest.equals('foo')); - checkUnnamed393(o.floatVal!); - checkUnnamed394(o.int64Val!); - checkUnnamed395(o.intVal!); - checkUnnamed396(o.listVal!); - checkUnnamed397(o.shape!); - checkUnnamed398(o.stringVal!); - checkUnnamed399(o.structVal!); - unittest.expect(o.tensorVal!, unittest.equals('foo')); - checkUnnamed400(o.uint64Val!); - checkUnnamed401(o.uintVal!); +void checkGoogleCloudAiplatformV1SlackSource( + api.GoogleCloudAiplatformV1SlackSource o, +) { + buildCounterGoogleCloudAiplatformV1SlackSource++; + if (buildCounterGoogleCloudAiplatformV1SlackSource < 3) { + checkUnnamed403(o.channels!); } - buildCounterGoogleCloudAiplatformV1Tensor--; + buildCounterGoogleCloudAiplatformV1SlackSource--; } -core.Map buildUnnamed402() => { - 'x': 'foo', - 'y': 'foo', -}; +core.List +buildUnnamed404() => [ + buildGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel(), + buildGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel(), +]; -void checkUnnamed402(core.Map o) { +void checkUnnamed404( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel(o[0]); + checkGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1Tensorboard = 0; -api.GoogleCloudAiplatformV1Tensorboard -buildGoogleCloudAiplatformV1Tensorboard() { - final o = api.GoogleCloudAiplatformV1Tensorboard(); - buildCounterGoogleCloudAiplatformV1Tensorboard++; - if (buildCounterGoogleCloudAiplatformV1Tensorboard < 3) { - o.blobStoragePathPrefix = 'foo'; - o.createTime = 'foo'; - o.description = 'foo'; - o.displayName = 'foo'; - o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.etag = 'foo'; - o.isDefault = true; - o.labels = buildUnnamed402(); - o.name = 'foo'; - o.runCount = 42; - o.satisfiesPzi = true; - o.satisfiesPzs = true; - o.updateTime = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannels = 0; +api.GoogleCloudAiplatformV1SlackSourceSlackChannels +buildGoogleCloudAiplatformV1SlackSourceSlackChannels() { + final o = api.GoogleCloudAiplatformV1SlackSourceSlackChannels(); + buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannels++; + if (buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannels < 3) { + o.apiKeyConfig = buildGoogleCloudAiplatformV1ApiAuthApiKeyConfig(); + o.channels = buildUnnamed404(); } - buildCounterGoogleCloudAiplatformV1Tensorboard--; + buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannels--; return o; } -void checkGoogleCloudAiplatformV1Tensorboard( - api.GoogleCloudAiplatformV1Tensorboard o, +void checkGoogleCloudAiplatformV1SlackSourceSlackChannels( + api.GoogleCloudAiplatformV1SlackSourceSlackChannels o, ) { - buildCounterGoogleCloudAiplatformV1Tensorboard++; - if (buildCounterGoogleCloudAiplatformV1Tensorboard < 3) { - unittest.expect(o.blobStoragePathPrefix!, unittest.equals('foo')); - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.etag!, unittest.equals('foo')); - unittest.expect(o.isDefault!, unittest.isTrue); - checkUnnamed402(o.labels!); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.runCount!, unittest.equals(42)); - unittest.expect(o.satisfiesPzi!, unittest.isTrue); - unittest.expect(o.satisfiesPzs!, unittest.isTrue); - unittest.expect(o.updateTime!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannels++; + if (buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannels < 3) { + checkGoogleCloudAiplatformV1ApiAuthApiKeyConfig(o.apiKeyConfig!); + checkUnnamed404(o.channels!); } - buildCounterGoogleCloudAiplatformV1Tensorboard--; + buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannels--; } -core.int buildCounterGoogleCloudAiplatformV1TensorboardBlob = 0; -api.GoogleCloudAiplatformV1TensorboardBlob -buildGoogleCloudAiplatformV1TensorboardBlob() { - final o = api.GoogleCloudAiplatformV1TensorboardBlob(); - buildCounterGoogleCloudAiplatformV1TensorboardBlob++; - if (buildCounterGoogleCloudAiplatformV1TensorboardBlob < 3) { - o.data = 'foo'; - o.id = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel = 0; +api.GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel +buildGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel() { + final o = api.GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel(); + buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel++; + if (buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel < + 3) { + o.channelId = 'foo'; + o.endTime = 'foo'; + o.startTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1TensorboardBlob--; + buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel--; return o; } -void checkGoogleCloudAiplatformV1TensorboardBlob( - api.GoogleCloudAiplatformV1TensorboardBlob o, +void checkGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel( + api.GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel o, ) { - buildCounterGoogleCloudAiplatformV1TensorboardBlob++; - if (buildCounterGoogleCloudAiplatformV1TensorboardBlob < 3) { - unittest.expect(o.data!, unittest.equals('foo')); - unittest.expect(o.id!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel++; + if (buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel < + 3) { + unittest.expect(o.channelId!, unittest.equals('foo')); + unittest.expect(o.endTime!, unittest.equals('foo')); + unittest.expect(o.startTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1TensorboardBlob--; -} - -core.List buildUnnamed403() => [ - buildGoogleCloudAiplatformV1TensorboardBlob(), - buildGoogleCloudAiplatformV1TensorboardBlob(), -]; - -void checkUnnamed403(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TensorboardBlob(o[0]); - checkGoogleCloudAiplatformV1TensorboardBlob(o[1]); + buildCounterGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel--; } -core.int buildCounterGoogleCloudAiplatformV1TensorboardBlobSequence = 0; -api.GoogleCloudAiplatformV1TensorboardBlobSequence -buildGoogleCloudAiplatformV1TensorboardBlobSequence() { - final o = api.GoogleCloudAiplatformV1TensorboardBlobSequence(); - buildCounterGoogleCloudAiplatformV1TensorboardBlobSequence++; - if (buildCounterGoogleCloudAiplatformV1TensorboardBlobSequence < 3) { - o.values = buildUnnamed403(); +core.int buildCounterGoogleCloudAiplatformV1SmoothGradConfig = 0; +api.GoogleCloudAiplatformV1SmoothGradConfig +buildGoogleCloudAiplatformV1SmoothGradConfig() { + final o = api.GoogleCloudAiplatformV1SmoothGradConfig(); + buildCounterGoogleCloudAiplatformV1SmoothGradConfig++; + if (buildCounterGoogleCloudAiplatformV1SmoothGradConfig < 3) { + o.featureNoiseSigma = buildGoogleCloudAiplatformV1FeatureNoiseSigma(); + o.noiseSigma = 42.0; + o.noisySampleCount = 42; } - buildCounterGoogleCloudAiplatformV1TensorboardBlobSequence--; + buildCounterGoogleCloudAiplatformV1SmoothGradConfig--; return o; } -void checkGoogleCloudAiplatformV1TensorboardBlobSequence( - api.GoogleCloudAiplatformV1TensorboardBlobSequence o, +void checkGoogleCloudAiplatformV1SmoothGradConfig( + api.GoogleCloudAiplatformV1SmoothGradConfig o, ) { - buildCounterGoogleCloudAiplatformV1TensorboardBlobSequence++; - if (buildCounterGoogleCloudAiplatformV1TensorboardBlobSequence < 3) { - checkUnnamed403(o.values!); + buildCounterGoogleCloudAiplatformV1SmoothGradConfig++; + if (buildCounterGoogleCloudAiplatformV1SmoothGradConfig < 3) { + checkGoogleCloudAiplatformV1FeatureNoiseSigma(o.featureNoiseSigma!); + unittest.expect(o.noiseSigma!, unittest.equals(42.0)); + unittest.expect(o.noisySampleCount!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1TensorboardBlobSequence--; + buildCounterGoogleCloudAiplatformV1SmoothGradConfig--; } -core.Map buildUnnamed404() => { - 'x': 'foo', - 'y': 'foo', -}; +core.List buildUnnamed405() => ['foo', 'foo']; -void checkUnnamed404(core.Map o) { +void checkUnnamed405(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1TensorboardExperiment = 0; -api.GoogleCloudAiplatformV1TensorboardExperiment -buildGoogleCloudAiplatformV1TensorboardExperiment() { - final o = api.GoogleCloudAiplatformV1TensorboardExperiment(); - buildCounterGoogleCloudAiplatformV1TensorboardExperiment++; - if (buildCounterGoogleCloudAiplatformV1TensorboardExperiment < 3) { - o.createTime = 'foo'; - o.description = 'foo'; - o.displayName = 'foo'; - o.etag = 'foo'; - o.labels = buildUnnamed404(); - o.name = 'foo'; - o.source = 'foo'; - o.updateTime = 'foo'; - } - buildCounterGoogleCloudAiplatformV1TensorboardExperiment--; - return o; -} +core.List buildUnnamed406() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1TensorboardExperiment( - api.GoogleCloudAiplatformV1TensorboardExperiment o, -) { - buildCounterGoogleCloudAiplatformV1TensorboardExperiment++; - if (buildCounterGoogleCloudAiplatformV1TensorboardExperiment < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed404(o.labels!); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.source!, unittest.equals('foo')); - unittest.expect(o.updateTime!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1TensorboardExperiment--; +void checkUnnamed406(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed405() => { - 'x': 'foo', - 'y': 'foo', -}; +core.List buildUnnamed407() => ['foo', 'foo']; -void checkUnnamed405(core.Map o) { +void checkUnnamed407(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1TensorboardRun = 0; -api.GoogleCloudAiplatformV1TensorboardRun -buildGoogleCloudAiplatformV1TensorboardRun() { - final o = api.GoogleCloudAiplatformV1TensorboardRun(); - buildCounterGoogleCloudAiplatformV1TensorboardRun++; - if (buildCounterGoogleCloudAiplatformV1TensorboardRun < 3) { - o.createTime = 'foo'; - o.description = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1SpecialistPool = 0; +api.GoogleCloudAiplatformV1SpecialistPool +buildGoogleCloudAiplatformV1SpecialistPool() { + final o = api.GoogleCloudAiplatformV1SpecialistPool(); + buildCounterGoogleCloudAiplatformV1SpecialistPool++; + if (buildCounterGoogleCloudAiplatformV1SpecialistPool < 3) { o.displayName = 'foo'; - o.etag = 'foo'; - o.labels = buildUnnamed405(); o.name = 'foo'; - o.updateTime = 'foo'; + o.pendingDataLabelingJobs = buildUnnamed405(); + o.specialistManagerEmails = buildUnnamed406(); + o.specialistManagersCount = 42; + o.specialistWorkerEmails = buildUnnamed407(); } - buildCounterGoogleCloudAiplatformV1TensorboardRun--; + buildCounterGoogleCloudAiplatformV1SpecialistPool--; return o; } -void checkGoogleCloudAiplatformV1TensorboardRun( - api.GoogleCloudAiplatformV1TensorboardRun o, +void checkGoogleCloudAiplatformV1SpecialistPool( + api.GoogleCloudAiplatformV1SpecialistPool o, ) { - buildCounterGoogleCloudAiplatformV1TensorboardRun++; - if (buildCounterGoogleCloudAiplatformV1TensorboardRun < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.description!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1SpecialistPool++; + if (buildCounterGoogleCloudAiplatformV1SpecialistPool < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); - unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed405(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.updateTime!, unittest.equals('foo')); + checkUnnamed405(o.pendingDataLabelingJobs!); + checkUnnamed406(o.specialistManagerEmails!); + unittest.expect(o.specialistManagersCount!, unittest.equals(42)); + checkUnnamed407(o.specialistWorkerEmails!); } - buildCounterGoogleCloudAiplatformV1TensorboardRun--; + buildCounterGoogleCloudAiplatformV1SpecialistPool--; } -core.int buildCounterGoogleCloudAiplatformV1TensorboardTensor = 0; -api.GoogleCloudAiplatformV1TensorboardTensor -buildGoogleCloudAiplatformV1TensorboardTensor() { - final o = api.GoogleCloudAiplatformV1TensorboardTensor(); - buildCounterGoogleCloudAiplatformV1TensorboardTensor++; - if (buildCounterGoogleCloudAiplatformV1TensorboardTensor < 3) { - o.value = 'foo'; - o.versionNumber = 42; +core.int buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpec = 0; +api.GoogleCloudAiplatformV1SpeculativeDecodingSpec +buildGoogleCloudAiplatformV1SpeculativeDecodingSpec() { + final o = api.GoogleCloudAiplatformV1SpeculativeDecodingSpec(); + buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpec++; + if (buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpec < 3) { + o.draftModelSpeculation = + buildGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation(); + o.ngramSpeculation = + buildGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation(); + o.speculativeTokenCount = 42; } - buildCounterGoogleCloudAiplatformV1TensorboardTensor--; + buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpec--; return o; } -void checkGoogleCloudAiplatformV1TensorboardTensor( - api.GoogleCloudAiplatformV1TensorboardTensor o, +void checkGoogleCloudAiplatformV1SpeculativeDecodingSpec( + api.GoogleCloudAiplatformV1SpeculativeDecodingSpec o, ) { - buildCounterGoogleCloudAiplatformV1TensorboardTensor++; - if (buildCounterGoogleCloudAiplatformV1TensorboardTensor < 3) { - unittest.expect(o.value!, unittest.equals('foo')); - unittest.expect(o.versionNumber!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpec++; + if (buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpec < 3) { + checkGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation( + o.draftModelSpeculation!, + ); + checkGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation( + o.ngramSpeculation!, + ); + unittest.expect(o.speculativeTokenCount!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1TensorboardTensor--; + buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpec--; } -core.int buildCounterGoogleCloudAiplatformV1TensorboardTimeSeries = 0; -api.GoogleCloudAiplatformV1TensorboardTimeSeries -buildGoogleCloudAiplatformV1TensorboardTimeSeries() { - final o = api.GoogleCloudAiplatformV1TensorboardTimeSeries(); - buildCounterGoogleCloudAiplatformV1TensorboardTimeSeries++; - if (buildCounterGoogleCloudAiplatformV1TensorboardTimeSeries < 3) { - o.createTime = 'foo'; - o.description = 'foo'; - o.displayName = 'foo'; - o.etag = 'foo'; - o.metadata = buildGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata(); - o.name = 'foo'; - o.pluginData = 'foo'; - o.pluginName = 'foo'; - o.updateTime = 'foo'; - o.valueType = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation = + 0; +api.GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation +buildGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation() { + final o = + api.GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation(); + buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation++; + if (buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation < + 3) { + o.draftModel = 'foo'; } - buildCounterGoogleCloudAiplatformV1TensorboardTimeSeries--; + buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation--; return o; } -void checkGoogleCloudAiplatformV1TensorboardTimeSeries( - api.GoogleCloudAiplatformV1TensorboardTimeSeries o, +void checkGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation( + api.GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation o, ) { - buildCounterGoogleCloudAiplatformV1TensorboardTimeSeries++; - if (buildCounterGoogleCloudAiplatformV1TensorboardTimeSeries < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - unittest.expect(o.etag!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata(o.metadata!); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.pluginData!, unittest.equals('foo')); - unittest.expect(o.pluginName!, unittest.equals('foo')); - unittest.expect(o.updateTime!, unittest.equals('foo')); - unittest.expect(o.valueType!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation++; + if (buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation < + 3) { + unittest.expect(o.draftModel!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1TensorboardTimeSeries--; + buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation--; } -core.int buildCounterGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata = 0; -api.GoogleCloudAiplatformV1TensorboardTimeSeriesMetadata -buildGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata() { - final o = api.GoogleCloudAiplatformV1TensorboardTimeSeriesMetadata(); - buildCounterGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata++; - if (buildCounterGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata < 3) { - o.maxBlobSequenceLength = 'foo'; - o.maxStep = 'foo'; - o.maxWallTime = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation = 0; +api.GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation +buildGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation() { + final o = + api.GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation(); + buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation++; + if (buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation < + 3) { + o.ngramSize = 42; } - buildCounterGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata--; + buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation--; return o; } -void checkGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata( - api.GoogleCloudAiplatformV1TensorboardTimeSeriesMetadata o, +void checkGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation( + api.GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation o, ) { - buildCounterGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata++; - if (buildCounterGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata < 3) { - unittest.expect(o.maxBlobSequenceLength!, unittest.equals('foo')); - unittest.expect(o.maxStep!, unittest.equals('foo')); - unittest.expect(o.maxWallTime!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation++; + if (buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation < + 3) { + unittest.expect(o.ngramSize!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata--; + buildCounterGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation--; } -core.int buildCounterGoogleCloudAiplatformV1ThresholdConfig = 0; -api.GoogleCloudAiplatformV1ThresholdConfig -buildGoogleCloudAiplatformV1ThresholdConfig() { - final o = api.GoogleCloudAiplatformV1ThresholdConfig(); - buildCounterGoogleCloudAiplatformV1ThresholdConfig++; - if (buildCounterGoogleCloudAiplatformV1ThresholdConfig < 3) { - o.value = 42.0; +core.int buildCounterGoogleCloudAiplatformV1SpeechConfig = 0; +api.GoogleCloudAiplatformV1SpeechConfig +buildGoogleCloudAiplatformV1SpeechConfig() { + final o = api.GoogleCloudAiplatformV1SpeechConfig(); + buildCounterGoogleCloudAiplatformV1SpeechConfig++; + if (buildCounterGoogleCloudAiplatformV1SpeechConfig < 3) { + o.languageCode = 'foo'; + o.voiceConfig = buildGoogleCloudAiplatformV1VoiceConfig(); } - buildCounterGoogleCloudAiplatformV1ThresholdConfig--; + buildCounterGoogleCloudAiplatformV1SpeechConfig--; return o; } -void checkGoogleCloudAiplatformV1ThresholdConfig( - api.GoogleCloudAiplatformV1ThresholdConfig o, +void checkGoogleCloudAiplatformV1SpeechConfig( + api.GoogleCloudAiplatformV1SpeechConfig o, ) { - buildCounterGoogleCloudAiplatformV1ThresholdConfig++; - if (buildCounterGoogleCloudAiplatformV1ThresholdConfig < 3) { - unittest.expect(o.value!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1SpeechConfig++; + if (buildCounterGoogleCloudAiplatformV1SpeechConfig < 3) { + unittest.expect(o.languageCode!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1VoiceConfig(o.voiceConfig!); } - buildCounterGoogleCloudAiplatformV1ThresholdConfig--; + buildCounterGoogleCloudAiplatformV1SpeechConfig--; } -core.List buildUnnamed406() => [ - buildGoogleCloudAiplatformV1TimeSeriesDataPoint(), - buildGoogleCloudAiplatformV1TimeSeriesDataPoint(), -]; +core.int buildCounterGoogleCloudAiplatformV1StartNotebookRuntimeRequest = 0; +api.GoogleCloudAiplatformV1StartNotebookRuntimeRequest +buildGoogleCloudAiplatformV1StartNotebookRuntimeRequest() { + final o = api.GoogleCloudAiplatformV1StartNotebookRuntimeRequest(); + buildCounterGoogleCloudAiplatformV1StartNotebookRuntimeRequest++; + if (buildCounterGoogleCloudAiplatformV1StartNotebookRuntimeRequest < 3) {} + buildCounterGoogleCloudAiplatformV1StartNotebookRuntimeRequest--; + return o; +} -void checkUnnamed406( - core.List o, +void checkGoogleCloudAiplatformV1StartNotebookRuntimeRequest( + api.GoogleCloudAiplatformV1StartNotebookRuntimeRequest o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TimeSeriesDataPoint(o[0]); - checkGoogleCloudAiplatformV1TimeSeriesDataPoint(o[1]); + buildCounterGoogleCloudAiplatformV1StartNotebookRuntimeRequest++; + if (buildCounterGoogleCloudAiplatformV1StartNotebookRuntimeRequest < 3) {} + buildCounterGoogleCloudAiplatformV1StartNotebookRuntimeRequest--; } -core.int buildCounterGoogleCloudAiplatformV1TimeSeriesData = 0; -api.GoogleCloudAiplatformV1TimeSeriesData -buildGoogleCloudAiplatformV1TimeSeriesData() { - final o = api.GoogleCloudAiplatformV1TimeSeriesData(); - buildCounterGoogleCloudAiplatformV1TimeSeriesData++; - if (buildCounterGoogleCloudAiplatformV1TimeSeriesData < 3) { - o.tensorboardTimeSeriesId = 'foo'; - o.valueType = 'foo'; - o.values = buildUnnamed406(); - } - buildCounterGoogleCloudAiplatformV1TimeSeriesData--; +core.int buildCounterGoogleCloudAiplatformV1StopNotebookRuntimeRequest = 0; +api.GoogleCloudAiplatformV1StopNotebookRuntimeRequest +buildGoogleCloudAiplatformV1StopNotebookRuntimeRequest() { + final o = api.GoogleCloudAiplatformV1StopNotebookRuntimeRequest(); + buildCounterGoogleCloudAiplatformV1StopNotebookRuntimeRequest++; + if (buildCounterGoogleCloudAiplatformV1StopNotebookRuntimeRequest < 3) {} + buildCounterGoogleCloudAiplatformV1StopNotebookRuntimeRequest--; return o; } -void checkGoogleCloudAiplatformV1TimeSeriesData( - api.GoogleCloudAiplatformV1TimeSeriesData o, +void checkGoogleCloudAiplatformV1StopNotebookRuntimeRequest( + api.GoogleCloudAiplatformV1StopNotebookRuntimeRequest o, ) { - buildCounterGoogleCloudAiplatformV1TimeSeriesData++; - if (buildCounterGoogleCloudAiplatformV1TimeSeriesData < 3) { - unittest.expect(o.tensorboardTimeSeriesId!, unittest.equals('foo')); - unittest.expect(o.valueType!, unittest.equals('foo')); - checkUnnamed406(o.values!); - } - buildCounterGoogleCloudAiplatformV1TimeSeriesData--; + buildCounterGoogleCloudAiplatformV1StopNotebookRuntimeRequest++; + if (buildCounterGoogleCloudAiplatformV1StopNotebookRuntimeRequest < 3) {} + buildCounterGoogleCloudAiplatformV1StopNotebookRuntimeRequest--; } -core.int buildCounterGoogleCloudAiplatformV1TimeSeriesDataPoint = 0; -api.GoogleCloudAiplatformV1TimeSeriesDataPoint -buildGoogleCloudAiplatformV1TimeSeriesDataPoint() { - final o = api.GoogleCloudAiplatformV1TimeSeriesDataPoint(); - buildCounterGoogleCloudAiplatformV1TimeSeriesDataPoint++; - if (buildCounterGoogleCloudAiplatformV1TimeSeriesDataPoint < 3) { - o.blobs = buildGoogleCloudAiplatformV1TensorboardBlobSequence(); - o.scalar = buildGoogleCloudAiplatformV1Scalar(); - o.step = 'foo'; - o.tensor = buildGoogleCloudAiplatformV1TensorboardTensor(); - o.wallTime = 'foo'; - } - buildCounterGoogleCloudAiplatformV1TimeSeriesDataPoint--; +core.int buildCounterGoogleCloudAiplatformV1StopTrialRequest = 0; +api.GoogleCloudAiplatformV1StopTrialRequest +buildGoogleCloudAiplatformV1StopTrialRequest() { + final o = api.GoogleCloudAiplatformV1StopTrialRequest(); + buildCounterGoogleCloudAiplatformV1StopTrialRequest++; + if (buildCounterGoogleCloudAiplatformV1StopTrialRequest < 3) {} + buildCounterGoogleCloudAiplatformV1StopTrialRequest--; return o; } -void checkGoogleCloudAiplatformV1TimeSeriesDataPoint( - api.GoogleCloudAiplatformV1TimeSeriesDataPoint o, +void checkGoogleCloudAiplatformV1StopTrialRequest( + api.GoogleCloudAiplatformV1StopTrialRequest o, ) { - buildCounterGoogleCloudAiplatformV1TimeSeriesDataPoint++; - if (buildCounterGoogleCloudAiplatformV1TimeSeriesDataPoint < 3) { - checkGoogleCloudAiplatformV1TensorboardBlobSequence(o.blobs!); - checkGoogleCloudAiplatformV1Scalar(o.scalar!); - unittest.expect(o.step!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1TensorboardTensor(o.tensor!); - unittest.expect(o.wallTime!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1TimeSeriesDataPoint--; + buildCounterGoogleCloudAiplatformV1StopTrialRequest++; + if (buildCounterGoogleCloudAiplatformV1StopTrialRequest < 3) {} + buildCounterGoogleCloudAiplatformV1StopTrialRequest--; } -core.int buildCounterGoogleCloudAiplatformV1TimestampSplit = 0; -api.GoogleCloudAiplatformV1TimestampSplit -buildGoogleCloudAiplatformV1TimestampSplit() { - final o = api.GoogleCloudAiplatformV1TimestampSplit(); - buildCounterGoogleCloudAiplatformV1TimestampSplit++; - if (buildCounterGoogleCloudAiplatformV1TimestampSplit < 3) { +core.int buildCounterGoogleCloudAiplatformV1StratifiedSplit = 0; +api.GoogleCloudAiplatformV1StratifiedSplit +buildGoogleCloudAiplatformV1StratifiedSplit() { + final o = api.GoogleCloudAiplatformV1StratifiedSplit(); + buildCounterGoogleCloudAiplatformV1StratifiedSplit++; + if (buildCounterGoogleCloudAiplatformV1StratifiedSplit < 3) { o.key = 'foo'; o.testFraction = 42.0; o.trainingFraction = 42.0; o.validationFraction = 42.0; } - buildCounterGoogleCloudAiplatformV1TimestampSplit--; + buildCounterGoogleCloudAiplatformV1StratifiedSplit--; return o; } -void checkGoogleCloudAiplatformV1TimestampSplit( - api.GoogleCloudAiplatformV1TimestampSplit o, +void checkGoogleCloudAiplatformV1StratifiedSplit( + api.GoogleCloudAiplatformV1StratifiedSplit o, ) { - buildCounterGoogleCloudAiplatformV1TimestampSplit++; - if (buildCounterGoogleCloudAiplatformV1TimestampSplit < 3) { - unittest.expect(o.key!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1StratifiedSplit++; + if (buildCounterGoogleCloudAiplatformV1StratifiedSplit < 3) { + unittest.expect(o.key!, unittest.equals('foo')); unittest.expect(o.testFraction!, unittest.equals(42.0)); unittest.expect(o.trainingFraction!, unittest.equals(42.0)); unittest.expect(o.validationFraction!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1TimestampSplit--; -} - -core.List buildUnnamed407() => ['foo', 'foo']; - -void checkUnnamed407(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1StratifiedSplit--; } -core.List buildUnnamed408() => ['foo', 'foo']; +core.Map buildUnnamed408() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; -void checkUnnamed408(core.List o) { +void checkUnnamed408(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + var casted94 = (o['x']!) as core.Map; + unittest.expect(casted94, unittest.hasLength(3)); + unittest.expect(casted94['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted94['bool'], unittest.equals(true)); + unittest.expect(casted94['string'], unittest.equals('foo')); + var casted95 = (o['y']!) as core.Map; + unittest.expect(casted95, unittest.hasLength(3)); + unittest.expect(casted95['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted95['bool'], unittest.equals(true)); + unittest.expect(casted95['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1TokensInfo = 0; -api.GoogleCloudAiplatformV1TokensInfo buildGoogleCloudAiplatformV1TokensInfo() { - final o = api.GoogleCloudAiplatformV1TokensInfo(); - buildCounterGoogleCloudAiplatformV1TokensInfo++; - if (buildCounterGoogleCloudAiplatformV1TokensInfo < 3) { - o.role = 'foo'; - o.tokenIds = buildUnnamed407(); - o.tokens = buildUnnamed408(); +core.int buildCounterGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest = + 0; +api.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest +buildGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest() { + final o = api.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest(); + buildCounterGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest++; + if (buildCounterGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest < + 3) { + o.classMethod = 'foo'; + o.input = buildUnnamed408(); } - buildCounterGoogleCloudAiplatformV1TokensInfo--; + buildCounterGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest--; return o; } -void checkGoogleCloudAiplatformV1TokensInfo( - api.GoogleCloudAiplatformV1TokensInfo o, -) { - buildCounterGoogleCloudAiplatformV1TokensInfo++; - if (buildCounterGoogleCloudAiplatformV1TokensInfo < 3) { - unittest.expect(o.role!, unittest.equals('foo')); - checkUnnamed407(o.tokenIds!); - checkUnnamed408(o.tokens!); - } - buildCounterGoogleCloudAiplatformV1TokensInfo--; -} - -core.List buildUnnamed409() => [ - buildGoogleCloudAiplatformV1FunctionDeclaration(), - buildGoogleCloudAiplatformV1FunctionDeclaration(), -]; - -void checkUnnamed409( - core.List o, +void checkGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest( + api.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FunctionDeclaration(o[0]); - checkGoogleCloudAiplatformV1FunctionDeclaration(o[1]); -} - -core.int buildCounterGoogleCloudAiplatformV1Tool = 0; -api.GoogleCloudAiplatformV1Tool buildGoogleCloudAiplatformV1Tool() { - final o = api.GoogleCloudAiplatformV1Tool(); - buildCounterGoogleCloudAiplatformV1Tool++; - if (buildCounterGoogleCloudAiplatformV1Tool < 3) { - o.codeExecution = buildGoogleCloudAiplatformV1ToolCodeExecution(); - o.enterpriseWebSearch = buildGoogleCloudAiplatformV1EnterpriseWebSearch(); - o.functionDeclarations = buildUnnamed409(); - o.googleMaps = buildGoogleCloudAiplatformV1GoogleMaps(); - o.googleSearch = buildGoogleCloudAiplatformV1ToolGoogleSearch(); - o.googleSearchRetrieval = - buildGoogleCloudAiplatformV1GoogleSearchRetrieval(); - o.retrieval = buildGoogleCloudAiplatformV1Retrieval(); - o.urlContext = buildGoogleCloudAiplatformV1UrlContext(); - } - buildCounterGoogleCloudAiplatformV1Tool--; - return o; -} - -void checkGoogleCloudAiplatformV1Tool(api.GoogleCloudAiplatformV1Tool o) { - buildCounterGoogleCloudAiplatformV1Tool++; - if (buildCounterGoogleCloudAiplatformV1Tool < 3) { - checkGoogleCloudAiplatformV1ToolCodeExecution(o.codeExecution!); - checkGoogleCloudAiplatformV1EnterpriseWebSearch(o.enterpriseWebSearch!); - checkUnnamed409(o.functionDeclarations!); - checkGoogleCloudAiplatformV1GoogleMaps(o.googleMaps!); - checkGoogleCloudAiplatformV1ToolGoogleSearch(o.googleSearch!); - checkGoogleCloudAiplatformV1GoogleSearchRetrieval(o.googleSearchRetrieval!); - checkGoogleCloudAiplatformV1Retrieval(o.retrieval!); - checkGoogleCloudAiplatformV1UrlContext(o.urlContext!); + buildCounterGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest++; + if (buildCounterGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest < + 3) { + unittest.expect(o.classMethod!, unittest.equals('foo')); + checkUnnamed408(o.input!); } - buildCounterGoogleCloudAiplatformV1Tool--; + buildCounterGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest--; } -core.int buildCounterGoogleCloudAiplatformV1ToolCall = 0; -api.GoogleCloudAiplatformV1ToolCall buildGoogleCloudAiplatformV1ToolCall() { - final o = api.GoogleCloudAiplatformV1ToolCall(); - buildCounterGoogleCloudAiplatformV1ToolCall++; - if (buildCounterGoogleCloudAiplatformV1ToolCall < 3) { - o.toolInput = 'foo'; - o.toolName = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1StreamRawPredictRequest = 0; +api.GoogleCloudAiplatformV1StreamRawPredictRequest +buildGoogleCloudAiplatformV1StreamRawPredictRequest() { + final o = api.GoogleCloudAiplatformV1StreamRawPredictRequest(); + buildCounterGoogleCloudAiplatformV1StreamRawPredictRequest++; + if (buildCounterGoogleCloudAiplatformV1StreamRawPredictRequest < 3) { + o.httpBody = buildGoogleApiHttpBody(); } - buildCounterGoogleCloudAiplatformV1ToolCall--; + buildCounterGoogleCloudAiplatformV1StreamRawPredictRequest--; return o; } -void checkGoogleCloudAiplatformV1ToolCall( - api.GoogleCloudAiplatformV1ToolCall o, +void checkGoogleCloudAiplatformV1StreamRawPredictRequest( + api.GoogleCloudAiplatformV1StreamRawPredictRequest o, ) { - buildCounterGoogleCloudAiplatformV1ToolCall++; - if (buildCounterGoogleCloudAiplatformV1ToolCall < 3) { - unittest.expect(o.toolInput!, unittest.equals('foo')); - unittest.expect(o.toolName!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1StreamRawPredictRequest++; + if (buildCounterGoogleCloudAiplatformV1StreamRawPredictRequest < 3) { + checkGoogleApiHttpBody(o.httpBody!); } - buildCounterGoogleCloudAiplatformV1ToolCall--; + buildCounterGoogleCloudAiplatformV1StreamRawPredictRequest--; } -core.List buildUnnamed410() => - [ - buildGoogleCloudAiplatformV1ToolCallValidInstance(), - buildGoogleCloudAiplatformV1ToolCallValidInstance(), - ]; +core.List buildUnnamed409() => [ + buildGoogleCloudAiplatformV1Tensor(), + buildGoogleCloudAiplatformV1Tensor(), +]; -void checkUnnamed410( - core.List o, -) { +void checkUnnamed409(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ToolCallValidInstance(o[0]); - checkGoogleCloudAiplatformV1ToolCallValidInstance(o[1]); + checkGoogleCloudAiplatformV1Tensor(o[0]); + checkGoogleCloudAiplatformV1Tensor(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ToolCallValidInput = 0; -api.GoogleCloudAiplatformV1ToolCallValidInput -buildGoogleCloudAiplatformV1ToolCallValidInput() { - final o = api.GoogleCloudAiplatformV1ToolCallValidInput(); - buildCounterGoogleCloudAiplatformV1ToolCallValidInput++; - if (buildCounterGoogleCloudAiplatformV1ToolCallValidInput < 3) { - o.instances = buildUnnamed410(); - o.metricSpec = buildGoogleCloudAiplatformV1ToolCallValidSpec(); +core.int buildCounterGoogleCloudAiplatformV1StreamingPredictRequest = 0; +api.GoogleCloudAiplatformV1StreamingPredictRequest +buildGoogleCloudAiplatformV1StreamingPredictRequest() { + final o = api.GoogleCloudAiplatformV1StreamingPredictRequest(); + buildCounterGoogleCloudAiplatformV1StreamingPredictRequest++; + if (buildCounterGoogleCloudAiplatformV1StreamingPredictRequest < 3) { + o.inputs = buildUnnamed409(); + o.parameters = buildGoogleCloudAiplatformV1Tensor(); } - buildCounterGoogleCloudAiplatformV1ToolCallValidInput--; + buildCounterGoogleCloudAiplatformV1StreamingPredictRequest--; return o; } -void checkGoogleCloudAiplatformV1ToolCallValidInput( - api.GoogleCloudAiplatformV1ToolCallValidInput o, +void checkGoogleCloudAiplatformV1StreamingPredictRequest( + api.GoogleCloudAiplatformV1StreamingPredictRequest o, ) { - buildCounterGoogleCloudAiplatformV1ToolCallValidInput++; - if (buildCounterGoogleCloudAiplatformV1ToolCallValidInput < 3) { - checkUnnamed410(o.instances!); - checkGoogleCloudAiplatformV1ToolCallValidSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1StreamingPredictRequest++; + if (buildCounterGoogleCloudAiplatformV1StreamingPredictRequest < 3) { + checkUnnamed409(o.inputs!); + checkGoogleCloudAiplatformV1Tensor(o.parameters!); } - buildCounterGoogleCloudAiplatformV1ToolCallValidInput--; + buildCounterGoogleCloudAiplatformV1StreamingPredictRequest--; } -core.int buildCounterGoogleCloudAiplatformV1ToolCallValidInstance = 0; -api.GoogleCloudAiplatformV1ToolCallValidInstance -buildGoogleCloudAiplatformV1ToolCallValidInstance() { - final o = api.GoogleCloudAiplatformV1ToolCallValidInstance(); - buildCounterGoogleCloudAiplatformV1ToolCallValidInstance++; - if (buildCounterGoogleCloudAiplatformV1ToolCallValidInstance < 3) { - o.prediction = 'foo'; - o.reference = 'foo'; - } - buildCounterGoogleCloudAiplatformV1ToolCallValidInstance--; - return o; -} +core.List buildUnnamed410() => [ + buildGoogleCloudAiplatformV1Tensor(), + buildGoogleCloudAiplatformV1Tensor(), +]; -void checkGoogleCloudAiplatformV1ToolCallValidInstance( - api.GoogleCloudAiplatformV1ToolCallValidInstance o, -) { - buildCounterGoogleCloudAiplatformV1ToolCallValidInstance++; - if (buildCounterGoogleCloudAiplatformV1ToolCallValidInstance < 3) { - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1ToolCallValidInstance--; +void checkUnnamed410(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Tensor(o[0]); + checkGoogleCloudAiplatformV1Tensor(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ToolCallValidMetricValue = 0; -api.GoogleCloudAiplatformV1ToolCallValidMetricValue -buildGoogleCloudAiplatformV1ToolCallValidMetricValue() { - final o = api.GoogleCloudAiplatformV1ToolCallValidMetricValue(); - buildCounterGoogleCloudAiplatformV1ToolCallValidMetricValue++; - if (buildCounterGoogleCloudAiplatformV1ToolCallValidMetricValue < 3) { - o.score = 42.0; +core.int buildCounterGoogleCloudAiplatformV1StreamingPredictResponse = 0; +api.GoogleCloudAiplatformV1StreamingPredictResponse +buildGoogleCloudAiplatformV1StreamingPredictResponse() { + final o = api.GoogleCloudAiplatformV1StreamingPredictResponse(); + buildCounterGoogleCloudAiplatformV1StreamingPredictResponse++; + if (buildCounterGoogleCloudAiplatformV1StreamingPredictResponse < 3) { + o.outputs = buildUnnamed410(); + o.parameters = buildGoogleCloudAiplatformV1Tensor(); } - buildCounterGoogleCloudAiplatformV1ToolCallValidMetricValue--; + buildCounterGoogleCloudAiplatformV1StreamingPredictResponse--; return o; } -void checkGoogleCloudAiplatformV1ToolCallValidMetricValue( - api.GoogleCloudAiplatformV1ToolCallValidMetricValue o, +void checkGoogleCloudAiplatformV1StreamingPredictResponse( + api.GoogleCloudAiplatformV1StreamingPredictResponse o, ) { - buildCounterGoogleCloudAiplatformV1ToolCallValidMetricValue++; - if (buildCounterGoogleCloudAiplatformV1ToolCallValidMetricValue < 3) { - unittest.expect(o.score!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1StreamingPredictResponse++; + if (buildCounterGoogleCloudAiplatformV1StreamingPredictResponse < 3) { + checkUnnamed410(o.outputs!); + checkGoogleCloudAiplatformV1Tensor(o.parameters!); } - buildCounterGoogleCloudAiplatformV1ToolCallValidMetricValue--; + buildCounterGoogleCloudAiplatformV1StreamingPredictResponse--; } -core.List -buildUnnamed411() => [ - buildGoogleCloudAiplatformV1ToolCallValidMetricValue(), - buildGoogleCloudAiplatformV1ToolCallValidMetricValue(), -]; +core.List buildUnnamed411() => ['foo', 'foo']; -void checkUnnamed411( - core.List o, -) { +void checkUnnamed411(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ToolCallValidMetricValue(o[0]); - checkGoogleCloudAiplatformV1ToolCallValidMetricValue(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ToolCallValidResults = 0; -api.GoogleCloudAiplatformV1ToolCallValidResults -buildGoogleCloudAiplatformV1ToolCallValidResults() { - final o = api.GoogleCloudAiplatformV1ToolCallValidResults(); - buildCounterGoogleCloudAiplatformV1ToolCallValidResults++; - if (buildCounterGoogleCloudAiplatformV1ToolCallValidResults < 3) { - o.toolCallValidMetricValues = buildUnnamed411(); +core.int buildCounterGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest = + 0; +api.GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest +buildGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest() { + final o = api.GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest(); + buildCounterGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest++; + if (buildCounterGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest < + 3) { + o.entityIds = buildUnnamed411(); + o.featureSelector = buildGoogleCloudAiplatformV1FeatureSelector(); } - buildCounterGoogleCloudAiplatformV1ToolCallValidResults--; + buildCounterGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest--; return o; } -void checkGoogleCloudAiplatformV1ToolCallValidResults( - api.GoogleCloudAiplatformV1ToolCallValidResults o, +void checkGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest( + api.GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest o, ) { - buildCounterGoogleCloudAiplatformV1ToolCallValidResults++; - if (buildCounterGoogleCloudAiplatformV1ToolCallValidResults < 3) { - checkUnnamed411(o.toolCallValidMetricValues!); + buildCounterGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest++; + if (buildCounterGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest < + 3) { + checkUnnamed411(o.entityIds!); + checkGoogleCloudAiplatformV1FeatureSelector(o.featureSelector!); } - buildCounterGoogleCloudAiplatformV1ToolCallValidResults--; -} - -core.int buildCounterGoogleCloudAiplatformV1ToolCallValidSpec = 0; -api.GoogleCloudAiplatformV1ToolCallValidSpec -buildGoogleCloudAiplatformV1ToolCallValidSpec() { - final o = api.GoogleCloudAiplatformV1ToolCallValidSpec(); - buildCounterGoogleCloudAiplatformV1ToolCallValidSpec++; - if (buildCounterGoogleCloudAiplatformV1ToolCallValidSpec < 3) {} - buildCounterGoogleCloudAiplatformV1ToolCallValidSpec--; - return o; -} - -void checkGoogleCloudAiplatformV1ToolCallValidSpec( - api.GoogleCloudAiplatformV1ToolCallValidSpec o, -) { - buildCounterGoogleCloudAiplatformV1ToolCallValidSpec++; - if (buildCounterGoogleCloudAiplatformV1ToolCallValidSpec < 3) {} - buildCounterGoogleCloudAiplatformV1ToolCallValidSpec--; + buildCounterGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest--; } -core.int buildCounterGoogleCloudAiplatformV1ToolCodeExecution = 0; -api.GoogleCloudAiplatformV1ToolCodeExecution -buildGoogleCloudAiplatformV1ToolCodeExecution() { - final o = api.GoogleCloudAiplatformV1ToolCodeExecution(); - buildCounterGoogleCloudAiplatformV1ToolCodeExecution++; - if (buildCounterGoogleCloudAiplatformV1ToolCodeExecution < 3) {} - buildCounterGoogleCloudAiplatformV1ToolCodeExecution--; - return o; -} +core.List buildUnnamed412() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1ToolCodeExecution( - api.GoogleCloudAiplatformV1ToolCodeExecution o, -) { - buildCounterGoogleCloudAiplatformV1ToolCodeExecution++; - if (buildCounterGoogleCloudAiplatformV1ToolCodeExecution < 3) {} - buildCounterGoogleCloudAiplatformV1ToolCodeExecution--; +void checkUnnamed412(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ToolConfig = 0; -api.GoogleCloudAiplatformV1ToolConfig buildGoogleCloudAiplatformV1ToolConfig() { - final o = api.GoogleCloudAiplatformV1ToolConfig(); - buildCounterGoogleCloudAiplatformV1ToolConfig++; - if (buildCounterGoogleCloudAiplatformV1ToolConfig < 3) { - o.functionCallingConfig = - buildGoogleCloudAiplatformV1FunctionCallingConfig(); - o.retrievalConfig = buildGoogleCloudAiplatformV1RetrievalConfig(); +core.int buildCounterGoogleCloudAiplatformV1StringArray = 0; +api.GoogleCloudAiplatformV1StringArray +buildGoogleCloudAiplatformV1StringArray() { + final o = api.GoogleCloudAiplatformV1StringArray(); + buildCounterGoogleCloudAiplatformV1StringArray++; + if (buildCounterGoogleCloudAiplatformV1StringArray < 3) { + o.values = buildUnnamed412(); } - buildCounterGoogleCloudAiplatformV1ToolConfig--; + buildCounterGoogleCloudAiplatformV1StringArray--; return o; } -void checkGoogleCloudAiplatformV1ToolConfig( - api.GoogleCloudAiplatformV1ToolConfig o, +void checkGoogleCloudAiplatformV1StringArray( + api.GoogleCloudAiplatformV1StringArray o, ) { - buildCounterGoogleCloudAiplatformV1ToolConfig++; - if (buildCounterGoogleCloudAiplatformV1ToolConfig < 3) { - checkGoogleCloudAiplatformV1FunctionCallingConfig(o.functionCallingConfig!); - checkGoogleCloudAiplatformV1RetrievalConfig(o.retrievalConfig!); + buildCounterGoogleCloudAiplatformV1StringArray++; + if (buildCounterGoogleCloudAiplatformV1StringArray < 3) { + checkUnnamed412(o.values!); } - buildCounterGoogleCloudAiplatformV1ToolConfig--; -} - -core.List buildUnnamed412() => ['foo', 'foo']; - -void checkUnnamed412(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1StringArray--; } -core.int buildCounterGoogleCloudAiplatformV1ToolGoogleSearch = 0; -api.GoogleCloudAiplatformV1ToolGoogleSearch -buildGoogleCloudAiplatformV1ToolGoogleSearch() { - final o = api.GoogleCloudAiplatformV1ToolGoogleSearch(); - buildCounterGoogleCloudAiplatformV1ToolGoogleSearch++; - if (buildCounterGoogleCloudAiplatformV1ToolGoogleSearch < 3) { - o.excludeDomains = buildUnnamed412(); +core.int buildCounterGoogleCloudAiplatformV1StructFieldValue = 0; +api.GoogleCloudAiplatformV1StructFieldValue +buildGoogleCloudAiplatformV1StructFieldValue() { + final o = api.GoogleCloudAiplatformV1StructFieldValue(); + buildCounterGoogleCloudAiplatformV1StructFieldValue++; + if (buildCounterGoogleCloudAiplatformV1StructFieldValue < 3) { + o.name = 'foo'; + o.value = buildGoogleCloudAiplatformV1FeatureValue(); } - buildCounterGoogleCloudAiplatformV1ToolGoogleSearch--; + buildCounterGoogleCloudAiplatformV1StructFieldValue--; return o; } -void checkGoogleCloudAiplatformV1ToolGoogleSearch( - api.GoogleCloudAiplatformV1ToolGoogleSearch o, +void checkGoogleCloudAiplatformV1StructFieldValue( + api.GoogleCloudAiplatformV1StructFieldValue o, ) { - buildCounterGoogleCloudAiplatformV1ToolGoogleSearch++; - if (buildCounterGoogleCloudAiplatformV1ToolGoogleSearch < 3) { - checkUnnamed412(o.excludeDomains!); + buildCounterGoogleCloudAiplatformV1StructFieldValue++; + if (buildCounterGoogleCloudAiplatformV1StructFieldValue < 3) { + unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1FeatureValue(o.value!); } - buildCounterGoogleCloudAiplatformV1ToolGoogleSearch--; + buildCounterGoogleCloudAiplatformV1StructFieldValue--; } -core.List buildUnnamed413() => - [ - buildGoogleCloudAiplatformV1ToolNameMatchInstance(), - buildGoogleCloudAiplatformV1ToolNameMatchInstance(), - ]; +core.List buildUnnamed413() => [ + buildGoogleCloudAiplatformV1StructFieldValue(), + buildGoogleCloudAiplatformV1StructFieldValue(), +]; -void checkUnnamed413( - core.List o, -) { +void checkUnnamed413(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ToolNameMatchInstance(o[0]); - checkGoogleCloudAiplatformV1ToolNameMatchInstance(o[1]); + checkGoogleCloudAiplatformV1StructFieldValue(o[0]); + checkGoogleCloudAiplatformV1StructFieldValue(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ToolNameMatchInput = 0; -api.GoogleCloudAiplatformV1ToolNameMatchInput -buildGoogleCloudAiplatformV1ToolNameMatchInput() { - final o = api.GoogleCloudAiplatformV1ToolNameMatchInput(); - buildCounterGoogleCloudAiplatformV1ToolNameMatchInput++; - if (buildCounterGoogleCloudAiplatformV1ToolNameMatchInput < 3) { - o.instances = buildUnnamed413(); - o.metricSpec = buildGoogleCloudAiplatformV1ToolNameMatchSpec(); +core.int buildCounterGoogleCloudAiplatformV1StructValue = 0; +api.GoogleCloudAiplatformV1StructValue +buildGoogleCloudAiplatformV1StructValue() { + final o = api.GoogleCloudAiplatformV1StructValue(); + buildCounterGoogleCloudAiplatformV1StructValue++; + if (buildCounterGoogleCloudAiplatformV1StructValue < 3) { + o.values = buildUnnamed413(); } - buildCounterGoogleCloudAiplatformV1ToolNameMatchInput--; + buildCounterGoogleCloudAiplatformV1StructValue--; return o; } -void checkGoogleCloudAiplatformV1ToolNameMatchInput( - api.GoogleCloudAiplatformV1ToolNameMatchInput o, +void checkGoogleCloudAiplatformV1StructValue( + api.GoogleCloudAiplatformV1StructValue o, ) { - buildCounterGoogleCloudAiplatformV1ToolNameMatchInput++; - if (buildCounterGoogleCloudAiplatformV1ToolNameMatchInput < 3) { - checkUnnamed413(o.instances!); - checkGoogleCloudAiplatformV1ToolNameMatchSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1StructValue++; + if (buildCounterGoogleCloudAiplatformV1StructValue < 3) { + checkUnnamed413(o.values!); } - buildCounterGoogleCloudAiplatformV1ToolNameMatchInput--; + buildCounterGoogleCloudAiplatformV1StructValue--; } -core.int buildCounterGoogleCloudAiplatformV1ToolNameMatchInstance = 0; -api.GoogleCloudAiplatformV1ToolNameMatchInstance -buildGoogleCloudAiplatformV1ToolNameMatchInstance() { - final o = api.GoogleCloudAiplatformV1ToolNameMatchInstance(); - buildCounterGoogleCloudAiplatformV1ToolNameMatchInstance++; - if (buildCounterGoogleCloudAiplatformV1ToolNameMatchInstance < 3) { - o.prediction = 'foo'; - o.reference = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1Study = 0; +api.GoogleCloudAiplatformV1Study buildGoogleCloudAiplatformV1Study() { + final o = api.GoogleCloudAiplatformV1Study(); + buildCounterGoogleCloudAiplatformV1Study++; + if (buildCounterGoogleCloudAiplatformV1Study < 3) { + o.createTime = 'foo'; + o.displayName = 'foo'; + o.inactiveReason = 'foo'; + o.name = 'foo'; + o.state = 'foo'; + o.studySpec = buildGoogleCloudAiplatformV1StudySpec(); } - buildCounterGoogleCloudAiplatformV1ToolNameMatchInstance--; + buildCounterGoogleCloudAiplatformV1Study--; return o; } -void checkGoogleCloudAiplatformV1ToolNameMatchInstance( - api.GoogleCloudAiplatformV1ToolNameMatchInstance o, -) { - buildCounterGoogleCloudAiplatformV1ToolNameMatchInstance++; - if (buildCounterGoogleCloudAiplatformV1ToolNameMatchInstance < 3) { - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1Study(api.GoogleCloudAiplatformV1Study o) { + buildCounterGoogleCloudAiplatformV1Study++; + if (buildCounterGoogleCloudAiplatformV1Study < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.inactiveReason!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1StudySpec(o.studySpec!); } - buildCounterGoogleCloudAiplatformV1ToolNameMatchInstance--; + buildCounterGoogleCloudAiplatformV1Study--; } -core.int buildCounterGoogleCloudAiplatformV1ToolNameMatchMetricValue = 0; -api.GoogleCloudAiplatformV1ToolNameMatchMetricValue -buildGoogleCloudAiplatformV1ToolNameMatchMetricValue() { - final o = api.GoogleCloudAiplatformV1ToolNameMatchMetricValue(); - buildCounterGoogleCloudAiplatformV1ToolNameMatchMetricValue++; - if (buildCounterGoogleCloudAiplatformV1ToolNameMatchMetricValue < 3) { - o.score = 42.0; - } - buildCounterGoogleCloudAiplatformV1ToolNameMatchMetricValue--; - return o; -} +core.List buildUnnamed414() => [ + buildGoogleCloudAiplatformV1StudySpecMetricSpec(), + buildGoogleCloudAiplatformV1StudySpecMetricSpec(), +]; -void checkGoogleCloudAiplatformV1ToolNameMatchMetricValue( - api.GoogleCloudAiplatformV1ToolNameMatchMetricValue o, +void checkUnnamed414( + core.List o, ) { - buildCounterGoogleCloudAiplatformV1ToolNameMatchMetricValue++; - if (buildCounterGoogleCloudAiplatformV1ToolNameMatchMetricValue < 3) { - unittest.expect(o.score!, unittest.equals(42.0)); - } - buildCounterGoogleCloudAiplatformV1ToolNameMatchMetricValue--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1StudySpecMetricSpec(o[0]); + checkGoogleCloudAiplatformV1StudySpecMetricSpec(o[1]); } -core.List -buildUnnamed414() => [ - buildGoogleCloudAiplatformV1ToolNameMatchMetricValue(), - buildGoogleCloudAiplatformV1ToolNameMatchMetricValue(), +core.List +buildUnnamed415() => [ + buildGoogleCloudAiplatformV1StudySpecParameterSpec(), + buildGoogleCloudAiplatformV1StudySpecParameterSpec(), ]; -void checkUnnamed414( - core.List o, +void checkUnnamed415( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ToolNameMatchMetricValue(o[0]); - checkGoogleCloudAiplatformV1ToolNameMatchMetricValue(o[1]); + checkGoogleCloudAiplatformV1StudySpecParameterSpec(o[0]); + checkGoogleCloudAiplatformV1StudySpecParameterSpec(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1ToolNameMatchResults = 0; -api.GoogleCloudAiplatformV1ToolNameMatchResults -buildGoogleCloudAiplatformV1ToolNameMatchResults() { - final o = api.GoogleCloudAiplatformV1ToolNameMatchResults(); - buildCounterGoogleCloudAiplatformV1ToolNameMatchResults++; - if (buildCounterGoogleCloudAiplatformV1ToolNameMatchResults < 3) { - o.toolNameMatchMetricValues = buildUnnamed414(); +core.int buildCounterGoogleCloudAiplatformV1StudySpec = 0; +api.GoogleCloudAiplatformV1StudySpec buildGoogleCloudAiplatformV1StudySpec() { + final o = api.GoogleCloudAiplatformV1StudySpec(); + buildCounterGoogleCloudAiplatformV1StudySpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpec < 3) { + o.algorithm = 'foo'; + o.convexAutomatedStoppingSpec = + buildGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec(); + o.decayCurveStoppingSpec = + buildGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec(); + o.measurementSelectionType = 'foo'; + o.medianAutomatedStoppingSpec = + buildGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec(); + o.metrics = buildUnnamed414(); + o.observationNoise = 'foo'; + o.parameters = buildUnnamed415(); + o.studyStoppingConfig = + buildGoogleCloudAiplatformV1StudySpecStudyStoppingConfig(); } - buildCounterGoogleCloudAiplatformV1ToolNameMatchResults--; + buildCounterGoogleCloudAiplatformV1StudySpec--; return o; } -void checkGoogleCloudAiplatformV1ToolNameMatchResults( - api.GoogleCloudAiplatformV1ToolNameMatchResults o, +void checkGoogleCloudAiplatformV1StudySpec( + api.GoogleCloudAiplatformV1StudySpec o, ) { - buildCounterGoogleCloudAiplatformV1ToolNameMatchResults++; - if (buildCounterGoogleCloudAiplatformV1ToolNameMatchResults < 3) { - checkUnnamed414(o.toolNameMatchMetricValues!); + buildCounterGoogleCloudAiplatformV1StudySpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpec < 3) { + unittest.expect(o.algorithm!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec( + o.convexAutomatedStoppingSpec!, + ); + checkGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec( + o.decayCurveStoppingSpec!, + ); + unittest.expect(o.measurementSelectionType!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec( + o.medianAutomatedStoppingSpec!, + ); + checkUnnamed414(o.metrics!); + unittest.expect(o.observationNoise!, unittest.equals('foo')); + checkUnnamed415(o.parameters!); + checkGoogleCloudAiplatformV1StudySpecStudyStoppingConfig( + o.studyStoppingConfig!, + ); } - buildCounterGoogleCloudAiplatformV1ToolNameMatchResults--; + buildCounterGoogleCloudAiplatformV1StudySpec--; } -core.int buildCounterGoogleCloudAiplatformV1ToolNameMatchSpec = 0; -api.GoogleCloudAiplatformV1ToolNameMatchSpec -buildGoogleCloudAiplatformV1ToolNameMatchSpec() { - final o = api.GoogleCloudAiplatformV1ToolNameMatchSpec(); - buildCounterGoogleCloudAiplatformV1ToolNameMatchSpec++; - if (buildCounterGoogleCloudAiplatformV1ToolNameMatchSpec < 3) {} - buildCounterGoogleCloudAiplatformV1ToolNameMatchSpec--; +core.int +buildCounterGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec = 0; +api.GoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec +buildGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec() { + final o = api.GoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec(); + buildCounterGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec < + 3) { + o.learningRateParameterName = 'foo'; + o.maxStepCount = 'foo'; + o.minMeasurementCount = 'foo'; + o.minStepCount = 'foo'; + o.updateAllStoppedTrials = true; + o.useElapsedDuration = true; + } + buildCounterGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec--; return o; } -void checkGoogleCloudAiplatformV1ToolNameMatchSpec( - api.GoogleCloudAiplatformV1ToolNameMatchSpec o, +void checkGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec( + api.GoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec o, ) { - buildCounterGoogleCloudAiplatformV1ToolNameMatchSpec++; - if (buildCounterGoogleCloudAiplatformV1ToolNameMatchSpec < 3) {} - buildCounterGoogleCloudAiplatformV1ToolNameMatchSpec--; + buildCounterGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec < + 3) { + unittest.expect(o.learningRateParameterName!, unittest.equals('foo')); + unittest.expect(o.maxStepCount!, unittest.equals('foo')); + unittest.expect(o.minMeasurementCount!, unittest.equals('foo')); + unittest.expect(o.minStepCount!, unittest.equals('foo')); + unittest.expect(o.updateAllStoppedTrials!, unittest.isTrue); + unittest.expect(o.useElapsedDuration!, unittest.isTrue); + } + buildCounterGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec--; } -core.List -buildUnnamed415() => [ - buildGoogleCloudAiplatformV1ToolParameterKVMatchInstance(), - buildGoogleCloudAiplatformV1ToolParameterKVMatchInstance(), -]; +core.int +buildCounterGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec = 0; +api.GoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec +buildGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec() { + final o = + api.GoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec(); + buildCounterGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec < + 3) { + o.useElapsedDuration = true; + } + buildCounterGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec--; + return o; +} -void checkUnnamed415( - core.List o, +void checkGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec( + api.GoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ToolParameterKVMatchInstance(o[0]); - checkGoogleCloudAiplatformV1ToolParameterKVMatchInstance(o[1]); + buildCounterGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec < + 3) { + unittest.expect(o.useElapsedDuration!, unittest.isTrue); + } + buildCounterGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec--; } -core.int buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInput = 0; -api.GoogleCloudAiplatformV1ToolParameterKVMatchInput -buildGoogleCloudAiplatformV1ToolParameterKVMatchInput() { - final o = api.GoogleCloudAiplatformV1ToolParameterKVMatchInput(); - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInput++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInput < 3) { - o.instances = buildUnnamed415(); - o.metricSpec = buildGoogleCloudAiplatformV1ToolParameterKVMatchSpec(); +core.int +buildCounterGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec = 0; +api.GoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec +buildGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec() { + final o = api.GoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec(); + buildCounterGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec < + 3) { + o.useElapsedDuration = true; } - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInput--; + buildCounterGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec--; return o; } -void checkGoogleCloudAiplatformV1ToolParameterKVMatchInput( - api.GoogleCloudAiplatformV1ToolParameterKVMatchInput o, +void checkGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec( + api.GoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec o, ) { - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInput++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInput < 3) { - checkUnnamed415(o.instances!); - checkGoogleCloudAiplatformV1ToolParameterKVMatchSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec < + 3) { + unittest.expect(o.useElapsedDuration!, unittest.isTrue); } - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInput--; + buildCounterGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec--; } -core.int buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInstance = 0; -api.GoogleCloudAiplatformV1ToolParameterKVMatchInstance -buildGoogleCloudAiplatformV1ToolParameterKVMatchInstance() { - final o = api.GoogleCloudAiplatformV1ToolParameterKVMatchInstance(); - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInstance++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInstance < 3) { - o.prediction = 'foo'; - o.reference = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1StudySpecMetricSpec = 0; +api.GoogleCloudAiplatformV1StudySpecMetricSpec +buildGoogleCloudAiplatformV1StudySpecMetricSpec() { + final o = api.GoogleCloudAiplatformV1StudySpecMetricSpec(); + buildCounterGoogleCloudAiplatformV1StudySpecMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecMetricSpec < 3) { + o.goal = 'foo'; + o.metricId = 'foo'; + o.safetyConfig = + buildGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig(); } - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInstance--; + buildCounterGoogleCloudAiplatformV1StudySpecMetricSpec--; return o; } -void checkGoogleCloudAiplatformV1ToolParameterKVMatchInstance( - api.GoogleCloudAiplatformV1ToolParameterKVMatchInstance o, +void checkGoogleCloudAiplatformV1StudySpecMetricSpec( + api.GoogleCloudAiplatformV1StudySpecMetricSpec o, ) { - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInstance++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInstance < 3) { - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1StudySpecMetricSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecMetricSpec < 3) { + unittest.expect(o.goal!, unittest.equals('foo')); + unittest.expect(o.metricId!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig( + o.safetyConfig!, + ); } - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInstance--; + buildCounterGoogleCloudAiplatformV1StudySpecMetricSpec--; } -core.int buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue = 0; -api.GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue -buildGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue() { - final o = api.GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue(); - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue < 3) { - o.score = 42.0; +core.int +buildCounterGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig = 0; +api.GoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig +buildGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig() { + final o = api.GoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig(); + buildCounterGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig++; + if (buildCounterGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig < + 3) { + o.desiredMinSafeTrialsFraction = 42.0; + o.safetyThreshold = 42.0; } - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue--; + buildCounterGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig--; return o; } -void checkGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue( - api.GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue o, +void checkGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig( + api.GoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig o, ) { - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue < 3) { - unittest.expect(o.score!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig++; + if (buildCounterGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig < + 3) { + unittest.expect(o.desiredMinSafeTrialsFraction!, unittest.equals(42.0)); + unittest.expect(o.safetyThreshold!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue--; + buildCounterGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig--; } -core.List +core.List< + api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec +> buildUnnamed416() => [ - buildGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue(), - buildGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue(), + buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec(), + buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec(), ]; void checkUnnamed416( - core.List o, + core.List< + api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec + > + o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue(o[0]); - checkGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue(o[1]); -} - -core.int buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchResults = 0; -api.GoogleCloudAiplatformV1ToolParameterKVMatchResults -buildGoogleCloudAiplatformV1ToolParameterKVMatchResults() { - final o = api.GoogleCloudAiplatformV1ToolParameterKVMatchResults(); - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchResults++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchResults < 3) { - o.toolParameterKvMatchMetricValues = buildUnnamed416(); - } - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchResults--; - return o; -} - -void checkGoogleCloudAiplatformV1ToolParameterKVMatchResults( - api.GoogleCloudAiplatformV1ToolParameterKVMatchResults o, -) { - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchResults++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchResults < 3) { - checkUnnamed416(o.toolParameterKvMatchMetricValues!); - } - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchResults--; + checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec( + o[0], + ); + checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec( + o[1], + ); } -core.int buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchSpec = 0; -api.GoogleCloudAiplatformV1ToolParameterKVMatchSpec -buildGoogleCloudAiplatformV1ToolParameterKVMatchSpec() { - final o = api.GoogleCloudAiplatformV1ToolParameterKVMatchSpec(); - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchSpec++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchSpec < 3) { - o.useStrictStringMatch = true; +core.int buildCounterGoogleCloudAiplatformV1StudySpecParameterSpec = 0; +api.GoogleCloudAiplatformV1StudySpecParameterSpec +buildGoogleCloudAiplatformV1StudySpecParameterSpec() { + final o = api.GoogleCloudAiplatformV1StudySpecParameterSpec(); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpec < 3) { + o.categoricalValueSpec = + buildGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec(); + o.conditionalParameterSpecs = buildUnnamed416(); + o.discreteValueSpec = + buildGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec(); + o.doubleValueSpec = + buildGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec(); + o.integerValueSpec = + buildGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec(); + o.parameterId = 'foo'; + o.scaleType = 'foo'; } - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchSpec--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpec--; return o; } -void checkGoogleCloudAiplatformV1ToolParameterKVMatchSpec( - api.GoogleCloudAiplatformV1ToolParameterKVMatchSpec o, +void checkGoogleCloudAiplatformV1StudySpecParameterSpec( + api.GoogleCloudAiplatformV1StudySpecParameterSpec o, ) { - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchSpec++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchSpec < 3) { - unittest.expect(o.useStrictStringMatch!, unittest.isTrue); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpec < 3) { + checkGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec( + o.categoricalValueSpec!, + ); + checkUnnamed416(o.conditionalParameterSpecs!); + checkGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec( + o.discreteValueSpec!, + ); + checkGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec( + o.doubleValueSpec!, + ); + checkGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec( + o.integerValueSpec!, + ); + unittest.expect(o.parameterId!, unittest.equals('foo')); + unittest.expect(o.scaleType!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchSpec--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpec--; } -core.List -buildUnnamed417() => [ - buildGoogleCloudAiplatformV1ToolParameterKeyMatchInstance(), - buildGoogleCloudAiplatformV1ToolParameterKeyMatchInstance(), -]; +core.List buildUnnamed417() => ['foo', 'foo']; -void checkUnnamed417( - core.List o, -) { +void checkUnnamed417(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ToolParameterKeyMatchInstance(o[0]); - checkGoogleCloudAiplatformV1ToolParameterKeyMatchInstance(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInput = 0; -api.GoogleCloudAiplatformV1ToolParameterKeyMatchInput -buildGoogleCloudAiplatformV1ToolParameterKeyMatchInput() { - final o = api.GoogleCloudAiplatformV1ToolParameterKeyMatchInput(); - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInput++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInput < 3) { - o.instances = buildUnnamed417(); - o.metricSpec = buildGoogleCloudAiplatformV1ToolParameterKeyMatchSpec(); +core.int +buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec = + 0; +api.GoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec +buildGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec() { + final o = + api.GoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec(); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec < + 3) { + o.defaultValue = 'foo'; + o.values = buildUnnamed417(); } - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInput--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec--; return o; } -void checkGoogleCloudAiplatformV1ToolParameterKeyMatchInput( - api.GoogleCloudAiplatformV1ToolParameterKeyMatchInput o, +void checkGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec( + api.GoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec o, ) { - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInput++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInput < 3) { - checkUnnamed417(o.instances!); - checkGoogleCloudAiplatformV1ToolParameterKeyMatchSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec < + 3) { + unittest.expect(o.defaultValue!, unittest.equals('foo')); + checkUnnamed417(o.values!); } - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInput--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec--; } -core.int buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInstance = 0; -api.GoogleCloudAiplatformV1ToolParameterKeyMatchInstance -buildGoogleCloudAiplatformV1ToolParameterKeyMatchInstance() { - final o = api.GoogleCloudAiplatformV1ToolParameterKeyMatchInstance(); - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInstance++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInstance < 3) { - o.prediction = 'foo'; - o.reference = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec = + 0; +api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec +buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec() { + final o = + api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec(); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec < + 3) { + o.parameterSpec = buildGoogleCloudAiplatformV1StudySpecParameterSpec(); + o.parentCategoricalValues = + buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition(); + o.parentDiscreteValues = + buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition(); + o.parentIntValues = + buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition(); } - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInstance--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec--; return o; } -void checkGoogleCloudAiplatformV1ToolParameterKeyMatchInstance( - api.GoogleCloudAiplatformV1ToolParameterKeyMatchInstance o, +void checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec( + api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec o, ) { - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInstance++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInstance < 3) { - unittest.expect(o.prediction!, unittest.equals('foo')); - unittest.expect(o.reference!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec < + 3) { + checkGoogleCloudAiplatformV1StudySpecParameterSpec(o.parameterSpec!); + checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition( + o.parentCategoricalValues!, + ); + checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition( + o.parentDiscreteValues!, + ); + checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition( + o.parentIntValues!, + ); } - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInstance--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec--; } -core.int buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue = +core.List buildUnnamed418() => ['foo', 'foo']; + +void checkUnnamed418(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int +buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition = 0; -api.GoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue -buildGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue() { - final o = api.GoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue(); - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue < 3) { - o.score = 42.0; +api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition +buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition() { + final o = + api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition(); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition < + 3) { + o.values = buildUnnamed418(); } - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition--; return o; } -void checkGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue( - api.GoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue o, +void +checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition( + api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition + o, ) { - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue < 3) { - unittest.expect(o.score!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition < + 3) { + checkUnnamed418(o.values!); } - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition--; } -core.List -buildUnnamed418() => [ - buildGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue(), - buildGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue(), -]; +core.List buildUnnamed419() => [42.0, 42.0]; -void checkUnnamed418( - core.List o, -) { +void checkUnnamed419(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue(o[0]); - checkGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue(o[1]); + unittest.expect(o[0], unittest.equals(42.0)); + unittest.expect(o[1], unittest.equals(42.0)); } -core.int buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchResults = 0; -api.GoogleCloudAiplatformV1ToolParameterKeyMatchResults -buildGoogleCloudAiplatformV1ToolParameterKeyMatchResults() { - final o = api.GoogleCloudAiplatformV1ToolParameterKeyMatchResults(); - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchResults++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchResults < 3) { - o.toolParameterKeyMatchMetricValues = buildUnnamed418(); +core.int +buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition = + 0; +api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition +buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition() { + final o = + api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition(); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition < + 3) { + o.values = buildUnnamed419(); } - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchResults--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition--; return o; } -void checkGoogleCloudAiplatformV1ToolParameterKeyMatchResults( - api.GoogleCloudAiplatformV1ToolParameterKeyMatchResults o, +void +checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition( + api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition + o, ) { - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchResults++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchResults < 3) { - checkUnnamed418(o.toolParameterKeyMatchMetricValues!); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition < + 3) { + checkUnnamed419(o.values!); } - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchResults--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition--; } -core.int buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchSpec = 0; -api.GoogleCloudAiplatformV1ToolParameterKeyMatchSpec -buildGoogleCloudAiplatformV1ToolParameterKeyMatchSpec() { - final o = api.GoogleCloudAiplatformV1ToolParameterKeyMatchSpec(); - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchSpec++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchSpec < 3) {} - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchSpec--; - return o; -} +core.List buildUnnamed420() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1ToolParameterKeyMatchSpec( - api.GoogleCloudAiplatformV1ToolParameterKeyMatchSpec o, -) { - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchSpec++; - if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchSpec < 3) {} - buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchSpec--; +void checkUnnamed420(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1TrainingConfig = 0; -api.GoogleCloudAiplatformV1TrainingConfig -buildGoogleCloudAiplatformV1TrainingConfig() { - final o = api.GoogleCloudAiplatformV1TrainingConfig(); - buildCounterGoogleCloudAiplatformV1TrainingConfig++; - if (buildCounterGoogleCloudAiplatformV1TrainingConfig < 3) { - o.timeoutTrainingMilliHours = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition = + 0; +api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition +buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition() { + final o = + api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition(); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition < + 3) { + o.values = buildUnnamed420(); } - buildCounterGoogleCloudAiplatformV1TrainingConfig--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition--; return o; } -void checkGoogleCloudAiplatformV1TrainingConfig( - api.GoogleCloudAiplatformV1TrainingConfig o, +void +checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition( + api.GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition + o, ) { - buildCounterGoogleCloudAiplatformV1TrainingConfig++; - if (buildCounterGoogleCloudAiplatformV1TrainingConfig < 3) { - unittest.expect(o.timeoutTrainingMilliHours!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition < + 3) { + checkUnnamed420(o.values!); } - buildCounterGoogleCloudAiplatformV1TrainingConfig--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition--; } -core.Map buildUnnamed419() => { - 'x': 'foo', - 'y': 'foo', -}; +core.List buildUnnamed421() => [42.0, 42.0]; -void checkUnnamed419(core.Map o) { +void checkUnnamed421(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + unittest.expect(o[0], unittest.equals(42.0)); + unittest.expect(o[1], unittest.equals(42.0)); } -core.int buildCounterGoogleCloudAiplatformV1TrainingPipeline = 0; -api.GoogleCloudAiplatformV1TrainingPipeline -buildGoogleCloudAiplatformV1TrainingPipeline() { - final o = api.GoogleCloudAiplatformV1TrainingPipeline(); - buildCounterGoogleCloudAiplatformV1TrainingPipeline++; - if (buildCounterGoogleCloudAiplatformV1TrainingPipeline < 3) { - o.createTime = 'foo'; - o.displayName = 'foo'; - o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.endTime = 'foo'; - o.error = buildGoogleRpcStatus(); - o.inputDataConfig = buildGoogleCloudAiplatformV1InputDataConfig(); - o.labels = buildUnnamed419(); - o.modelId = 'foo'; - o.modelToUpload = buildGoogleCloudAiplatformV1Model(); - o.name = 'foo'; - o.parentModel = 'foo'; - o.startTime = 'foo'; - o.state = 'foo'; - o.trainingTaskDefinition = 'foo'; - o.trainingTaskInputs = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - o.trainingTaskMetadata = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - o.updateTime = 'foo'; +core.int +buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec = 0; +api.GoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec +buildGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec() { + final o = + api.GoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec(); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec < + 3) { + o.defaultValue = 42.0; + o.values = buildUnnamed421(); } - buildCounterGoogleCloudAiplatformV1TrainingPipeline--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec--; return o; } -void checkGoogleCloudAiplatformV1TrainingPipeline( - api.GoogleCloudAiplatformV1TrainingPipeline o, +void checkGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec( + api.GoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec o, ) { - buildCounterGoogleCloudAiplatformV1TrainingPipeline++; - if (buildCounterGoogleCloudAiplatformV1TrainingPipeline < 3) { - unittest.expect(o.createTime!, unittest.equals('foo')); - unittest.expect(o.displayName!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.endTime!, unittest.equals('foo')); - checkGoogleRpcStatus(o.error!); - checkGoogleCloudAiplatformV1InputDataConfig(o.inputDataConfig!); - checkUnnamed419(o.labels!); - unittest.expect(o.modelId!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1Model(o.modelToUpload!); - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.parentModel!, unittest.equals('foo')); - unittest.expect(o.startTime!, unittest.equals('foo')); - unittest.expect(o.state!, unittest.equals('foo')); - unittest.expect(o.trainingTaskDefinition!, unittest.equals('foo')); - var casted81 = (o.trainingTaskInputs!) as core.Map; - unittest.expect(casted81, unittest.hasLength(3)); - unittest.expect(casted81['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted81['bool'], unittest.equals(true)); - unittest.expect(casted81['string'], unittest.equals('foo')); - var casted82 = (o.trainingTaskMetadata!) as core.Map; - unittest.expect(casted82, unittest.hasLength(3)); - unittest.expect(casted82['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted82['bool'], unittest.equals(true)); - unittest.expect(casted82['string'], unittest.equals('foo')); - unittest.expect(o.updateTime!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec < + 3) { + unittest.expect(o.defaultValue!, unittest.equals(42.0)); + checkUnnamed421(o.values!); } - buildCounterGoogleCloudAiplatformV1TrainingPipeline--; -} - -core.List buildUnnamed420() => [ - buildGoogleCloudAiplatformV1ToolCall(), - buildGoogleCloudAiplatformV1ToolCall(), -]; - -void checkUnnamed420(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1ToolCall(o[0]); - checkGoogleCloudAiplatformV1ToolCall(o[1]); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec--; } -core.int buildCounterGoogleCloudAiplatformV1Trajectory = 0; -api.GoogleCloudAiplatformV1Trajectory buildGoogleCloudAiplatformV1Trajectory() { - final o = api.GoogleCloudAiplatformV1Trajectory(); - buildCounterGoogleCloudAiplatformV1Trajectory++; - if (buildCounterGoogleCloudAiplatformV1Trajectory < 3) { - o.toolCalls = buildUnnamed420(); +core.int +buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec = 0; +api.GoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec +buildGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec() { + final o = api.GoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec(); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec < + 3) { + o.defaultValue = 42.0; + o.maxValue = 42.0; + o.minValue = 42.0; } - buildCounterGoogleCloudAiplatformV1Trajectory--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec--; return o; } -void checkGoogleCloudAiplatformV1Trajectory( - api.GoogleCloudAiplatformV1Trajectory o, +void checkGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec( + api.GoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec o, ) { - buildCounterGoogleCloudAiplatformV1Trajectory++; - if (buildCounterGoogleCloudAiplatformV1Trajectory < 3) { - checkUnnamed420(o.toolCalls!); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec < + 3) { + unittest.expect(o.defaultValue!, unittest.equals(42.0)); + unittest.expect(o.maxValue!, unittest.equals(42.0)); + unittest.expect(o.minValue!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1Trajectory--; -} - -core.List -buildUnnamed421() => [ - buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance(), - buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance(), -]; - -void checkUnnamed421( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance(o[0]); - checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance(o[1]); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput = 0; -api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput -buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput() { - final o = api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput(); - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput < 3) { - o.instances = buildUnnamed421(); - o.metricSpec = buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec(); +core.int +buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec = 0; +api.GoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec +buildGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec() { + final o = api.GoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec(); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec < + 3) { + o.defaultValue = 'foo'; + o.maxValue = 'foo'; + o.minValue = 'foo'; } - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput( - api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput o, +void checkGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec( + api.GoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput < 3) { - checkUnnamed421(o.instances!); - checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec++; + if (buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec < + 3) { + unittest.expect(o.defaultValue!, unittest.equals('foo')); + unittest.expect(o.maxValue!, unittest.equals('foo')); + unittest.expect(o.minValue!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput--; + buildCounterGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance = 0; -api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance -buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance() { - final o = api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance(); - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance < 3) { - o.predictedTrajectory = buildGoogleCloudAiplatformV1Trajectory(); - o.referenceTrajectory = buildGoogleCloudAiplatformV1Trajectory(); +core.int buildCounterGoogleCloudAiplatformV1StudySpecStudyStoppingConfig = 0; +api.GoogleCloudAiplatformV1StudySpecStudyStoppingConfig +buildGoogleCloudAiplatformV1StudySpecStudyStoppingConfig() { + final o = api.GoogleCloudAiplatformV1StudySpecStudyStoppingConfig(); + buildCounterGoogleCloudAiplatformV1StudySpecStudyStoppingConfig++; + if (buildCounterGoogleCloudAiplatformV1StudySpecStudyStoppingConfig < 3) { + o.maxDurationNoProgress = 'foo'; + o.maxNumTrials = 42; + o.maxNumTrialsNoProgress = 42; + o.maximumRuntimeConstraint = + buildGoogleCloudAiplatformV1StudyTimeConstraint(); + o.minNumTrials = 42; + o.minimumRuntimeConstraint = + buildGoogleCloudAiplatformV1StudyTimeConstraint(); + o.shouldStopAsap = true; } - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance--; + buildCounterGoogleCloudAiplatformV1StudySpecStudyStoppingConfig--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance( - api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance o, +void checkGoogleCloudAiplatformV1StudySpecStudyStoppingConfig( + api.GoogleCloudAiplatformV1StudySpecStudyStoppingConfig o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance < 3) { - checkGoogleCloudAiplatformV1Trajectory(o.predictedTrajectory!); - checkGoogleCloudAiplatformV1Trajectory(o.referenceTrajectory!); + buildCounterGoogleCloudAiplatformV1StudySpecStudyStoppingConfig++; + if (buildCounterGoogleCloudAiplatformV1StudySpecStudyStoppingConfig < 3) { + unittest.expect(o.maxDurationNoProgress!, unittest.equals('foo')); + unittest.expect(o.maxNumTrials!, unittest.equals(42)); + unittest.expect(o.maxNumTrialsNoProgress!, unittest.equals(42)); + checkGoogleCloudAiplatformV1StudyTimeConstraint( + o.maximumRuntimeConstraint!, + ); + unittest.expect(o.minNumTrials!, unittest.equals(42)); + checkGoogleCloudAiplatformV1StudyTimeConstraint( + o.minimumRuntimeConstraint!, + ); + unittest.expect(o.shouldStopAsap!, unittest.isTrue); } - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance--; + buildCounterGoogleCloudAiplatformV1StudySpecStudyStoppingConfig--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue = - 0; -api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue -buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue() { - final o = api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue(); - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue < - 3) { - o.score = 42.0; +core.int buildCounterGoogleCloudAiplatformV1StudyTimeConstraint = 0; +api.GoogleCloudAiplatformV1StudyTimeConstraint +buildGoogleCloudAiplatformV1StudyTimeConstraint() { + final o = api.GoogleCloudAiplatformV1StudyTimeConstraint(); + buildCounterGoogleCloudAiplatformV1StudyTimeConstraint++; + if (buildCounterGoogleCloudAiplatformV1StudyTimeConstraint < 3) { + o.endTime = 'foo'; + o.maxDuration = 'foo'; } - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue--; + buildCounterGoogleCloudAiplatformV1StudyTimeConstraint--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue( - api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue o, +void checkGoogleCloudAiplatformV1StudyTimeConstraint( + api.GoogleCloudAiplatformV1StudyTimeConstraint o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue < - 3) { - unittest.expect(o.score!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1StudyTimeConstraint++; + if (buildCounterGoogleCloudAiplatformV1StudyTimeConstraint < 3) { + unittest.expect(o.endTime!, unittest.equals('foo')); + unittest.expect(o.maxDuration!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue--; + buildCounterGoogleCloudAiplatformV1StudyTimeConstraint--; } -core.List -buildUnnamed422() => [ - buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue(), - buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue(), +core.List buildUnnamed422() => [ + buildGoogleCloudAiplatformV1TrialContext(), + buildGoogleCloudAiplatformV1TrialContext(), ]; -void checkUnnamed422( - core.List o, -) { +void checkUnnamed422(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue(o[0]); - checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue(o[1]); + checkGoogleCloudAiplatformV1TrialContext(o[0]); + checkGoogleCloudAiplatformV1TrialContext(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults = 0; -api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults -buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults() { - final o = api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults(); - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults < 3) { - o.trajectoryAnyOrderMatchMetricValues = buildUnnamed422(); +core.int buildCounterGoogleCloudAiplatformV1SuggestTrialsRequest = 0; +api.GoogleCloudAiplatformV1SuggestTrialsRequest +buildGoogleCloudAiplatformV1SuggestTrialsRequest() { + final o = api.GoogleCloudAiplatformV1SuggestTrialsRequest(); + buildCounterGoogleCloudAiplatformV1SuggestTrialsRequest++; + if (buildCounterGoogleCloudAiplatformV1SuggestTrialsRequest < 3) { + o.clientId = 'foo'; + o.contexts = buildUnnamed422(); + o.suggestionCount = 42; } - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults--; + buildCounterGoogleCloudAiplatformV1SuggestTrialsRequest--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults( - api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults o, +void checkGoogleCloudAiplatformV1SuggestTrialsRequest( + api.GoogleCloudAiplatformV1SuggestTrialsRequest o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults < 3) { - checkUnnamed422(o.trajectoryAnyOrderMatchMetricValues!); + buildCounterGoogleCloudAiplatformV1SuggestTrialsRequest++; + if (buildCounterGoogleCloudAiplatformV1SuggestTrialsRequest < 3) { + unittest.expect(o.clientId!, unittest.equals('foo')); + checkUnnamed422(o.contexts!); + unittest.expect(o.suggestionCount!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults--; + buildCounterGoogleCloudAiplatformV1SuggestTrialsRequest--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec = 0; -api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec -buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec() { - final o = api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec(); - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec < 3) {} - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec--; +core.int buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInput = 0; +api.GoogleCloudAiplatformV1SummarizationHelpfulnessInput +buildGoogleCloudAiplatformV1SummarizationHelpfulnessInput() { + final o = api.GoogleCloudAiplatformV1SummarizationHelpfulnessInput(); + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInput++; + if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInput < 3) { + o.instance = buildGoogleCloudAiplatformV1SummarizationHelpfulnessInstance(); + o.metricSpec = buildGoogleCloudAiplatformV1SummarizationHelpfulnessSpec(); + } + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInput--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec( - api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec o, -) { - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec < 3) {} - buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec--; -} - -core.List -buildUnnamed423() => [ - buildGoogleCloudAiplatformV1TrajectoryExactMatchInstance(), - buildGoogleCloudAiplatformV1TrajectoryExactMatchInstance(), -]; - -void checkUnnamed423( - core.List o, +void checkGoogleCloudAiplatformV1SummarizationHelpfulnessInput( + api.GoogleCloudAiplatformV1SummarizationHelpfulnessInput o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrajectoryExactMatchInstance(o[0]); - checkGoogleCloudAiplatformV1TrajectoryExactMatchInstance(o[1]); + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInput++; + if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInput < 3) { + checkGoogleCloudAiplatformV1SummarizationHelpfulnessInstance(o.instance!); + checkGoogleCloudAiplatformV1SummarizationHelpfulnessSpec(o.metricSpec!); + } + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInput--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInput = 0; -api.GoogleCloudAiplatformV1TrajectoryExactMatchInput -buildGoogleCloudAiplatformV1TrajectoryExactMatchInput() { - final o = api.GoogleCloudAiplatformV1TrajectoryExactMatchInput(); - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInput++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInput < 3) { - o.instances = buildUnnamed423(); - o.metricSpec = buildGoogleCloudAiplatformV1TrajectoryExactMatchSpec(); +core.int buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInstance = + 0; +api.GoogleCloudAiplatformV1SummarizationHelpfulnessInstance +buildGoogleCloudAiplatformV1SummarizationHelpfulnessInstance() { + final o = api.GoogleCloudAiplatformV1SummarizationHelpfulnessInstance(); + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInstance++; + if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInstance < 3) { + o.context = 'foo'; + o.instruction = 'foo'; + o.prediction = 'foo'; + o.reference = 'foo'; } - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInput--; + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInstance--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryExactMatchInput( - api.GoogleCloudAiplatformV1TrajectoryExactMatchInput o, +void checkGoogleCloudAiplatformV1SummarizationHelpfulnessInstance( + api.GoogleCloudAiplatformV1SummarizationHelpfulnessInstance o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInput++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInput < 3) { - checkUnnamed423(o.instances!); - checkGoogleCloudAiplatformV1TrajectoryExactMatchSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInstance++; + if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInstance < 3) { + unittest.expect(o.context!, unittest.equals('foo')); + unittest.expect(o.instruction!, unittest.equals('foo')); + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInput--; + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessInstance--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInstance = 0; -api.GoogleCloudAiplatformV1TrajectoryExactMatchInstance -buildGoogleCloudAiplatformV1TrajectoryExactMatchInstance() { - final o = api.GoogleCloudAiplatformV1TrajectoryExactMatchInstance(); - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInstance++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInstance < 3) { - o.predictedTrajectory = buildGoogleCloudAiplatformV1Trajectory(); - o.referenceTrajectory = buildGoogleCloudAiplatformV1Trajectory(); +core.int buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessResult = 0; +api.GoogleCloudAiplatformV1SummarizationHelpfulnessResult +buildGoogleCloudAiplatformV1SummarizationHelpfulnessResult() { + final o = api.GoogleCloudAiplatformV1SummarizationHelpfulnessResult(); + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessResult++; + if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessResult < 3) { + o.confidence = 42.0; + o.explanation = 'foo'; + o.score = 42.0; } - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInstance--; + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessResult--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryExactMatchInstance( - api.GoogleCloudAiplatformV1TrajectoryExactMatchInstance o, +void checkGoogleCloudAiplatformV1SummarizationHelpfulnessResult( + api.GoogleCloudAiplatformV1SummarizationHelpfulnessResult o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInstance++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInstance < 3) { - checkGoogleCloudAiplatformV1Trajectory(o.predictedTrajectory!); - checkGoogleCloudAiplatformV1Trajectory(o.referenceTrajectory!); + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessResult++; + if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessResult < 3) { + unittest.expect(o.confidence!, unittest.equals(42.0)); + unittest.expect(o.explanation!, unittest.equals('foo')); + unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInstance--; + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessResult--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue = 0; -api.GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue -buildGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue() { - final o = api.GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue(); - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue < 3) { - o.score = 42.0; +core.int buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessSpec = 0; +api.GoogleCloudAiplatformV1SummarizationHelpfulnessSpec +buildGoogleCloudAiplatformV1SummarizationHelpfulnessSpec() { + final o = api.GoogleCloudAiplatformV1SummarizationHelpfulnessSpec(); + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessSpec++; + if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessSpec < 3) { + o.useReference = true; + o.version = 42; } - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue--; + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessSpec--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue( - api.GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue o, +void checkGoogleCloudAiplatformV1SummarizationHelpfulnessSpec( + api.GoogleCloudAiplatformV1SummarizationHelpfulnessSpec o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue < 3) { - unittest.expect(o.score!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessSpec++; + if (buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessSpec < 3) { + unittest.expect(o.useReference!, unittest.isTrue); + unittest.expect(o.version!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue--; + buildCounterGoogleCloudAiplatformV1SummarizationHelpfulnessSpec--; } -core.List -buildUnnamed424() => [ - buildGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue(), - buildGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue(), -]; +core.int buildCounterGoogleCloudAiplatformV1SummarizationQualityInput = 0; +api.GoogleCloudAiplatformV1SummarizationQualityInput +buildGoogleCloudAiplatformV1SummarizationQualityInput() { + final o = api.GoogleCloudAiplatformV1SummarizationQualityInput(); + buildCounterGoogleCloudAiplatformV1SummarizationQualityInput++; + if (buildCounterGoogleCloudAiplatformV1SummarizationQualityInput < 3) { + o.instance = buildGoogleCloudAiplatformV1SummarizationQualityInstance(); + o.metricSpec = buildGoogleCloudAiplatformV1SummarizationQualitySpec(); + } + buildCounterGoogleCloudAiplatformV1SummarizationQualityInput--; + return o; +} -void checkUnnamed424( - core.List o, +void checkGoogleCloudAiplatformV1SummarizationQualityInput( + api.GoogleCloudAiplatformV1SummarizationQualityInput o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue(o[0]); - checkGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue(o[1]); + buildCounterGoogleCloudAiplatformV1SummarizationQualityInput++; + if (buildCounterGoogleCloudAiplatformV1SummarizationQualityInput < 3) { + checkGoogleCloudAiplatformV1SummarizationQualityInstance(o.instance!); + checkGoogleCloudAiplatformV1SummarizationQualitySpec(o.metricSpec!); + } + buildCounterGoogleCloudAiplatformV1SummarizationQualityInput--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchResults = 0; -api.GoogleCloudAiplatformV1TrajectoryExactMatchResults -buildGoogleCloudAiplatformV1TrajectoryExactMatchResults() { - final o = api.GoogleCloudAiplatformV1TrajectoryExactMatchResults(); - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchResults++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchResults < 3) { - o.trajectoryExactMatchMetricValues = buildUnnamed424(); +core.int buildCounterGoogleCloudAiplatformV1SummarizationQualityInstance = 0; +api.GoogleCloudAiplatformV1SummarizationQualityInstance +buildGoogleCloudAiplatformV1SummarizationQualityInstance() { + final o = api.GoogleCloudAiplatformV1SummarizationQualityInstance(); + buildCounterGoogleCloudAiplatformV1SummarizationQualityInstance++; + if (buildCounterGoogleCloudAiplatformV1SummarizationQualityInstance < 3) { + o.context = 'foo'; + o.instruction = 'foo'; + o.prediction = 'foo'; + o.reference = 'foo'; } - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchResults--; + buildCounterGoogleCloudAiplatformV1SummarizationQualityInstance--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryExactMatchResults( - api.GoogleCloudAiplatformV1TrajectoryExactMatchResults o, +void checkGoogleCloudAiplatformV1SummarizationQualityInstance( + api.GoogleCloudAiplatformV1SummarizationQualityInstance o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchResults++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchResults < 3) { - checkUnnamed424(o.trajectoryExactMatchMetricValues!); + buildCounterGoogleCloudAiplatformV1SummarizationQualityInstance++; + if (buildCounterGoogleCloudAiplatformV1SummarizationQualityInstance < 3) { + unittest.expect(o.context!, unittest.equals('foo')); + unittest.expect(o.instruction!, unittest.equals('foo')); + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchResults--; + buildCounterGoogleCloudAiplatformV1SummarizationQualityInstance--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchSpec = 0; -api.GoogleCloudAiplatformV1TrajectoryExactMatchSpec -buildGoogleCloudAiplatformV1TrajectoryExactMatchSpec() { - final o = api.GoogleCloudAiplatformV1TrajectoryExactMatchSpec(); - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchSpec++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchSpec < 3) {} - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchSpec--; +core.int buildCounterGoogleCloudAiplatformV1SummarizationQualityResult = 0; +api.GoogleCloudAiplatformV1SummarizationQualityResult +buildGoogleCloudAiplatformV1SummarizationQualityResult() { + final o = api.GoogleCloudAiplatformV1SummarizationQualityResult(); + buildCounterGoogleCloudAiplatformV1SummarizationQualityResult++; + if (buildCounterGoogleCloudAiplatformV1SummarizationQualityResult < 3) { + o.confidence = 42.0; + o.explanation = 'foo'; + o.score = 42.0; + } + buildCounterGoogleCloudAiplatformV1SummarizationQualityResult--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryExactMatchSpec( - api.GoogleCloudAiplatformV1TrajectoryExactMatchSpec o, +void checkGoogleCloudAiplatformV1SummarizationQualityResult( + api.GoogleCloudAiplatformV1SummarizationQualityResult o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchSpec++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchSpec < 3) {} - buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchSpec--; -} - -core.List -buildUnnamed425() => [ - buildGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance(), - buildGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance(), -]; - -void checkUnnamed425( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance(o[0]); - checkGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance(o[1]); + buildCounterGoogleCloudAiplatformV1SummarizationQualityResult++; + if (buildCounterGoogleCloudAiplatformV1SummarizationQualityResult < 3) { + unittest.expect(o.confidence!, unittest.equals(42.0)); + unittest.expect(o.explanation!, unittest.equals('foo')); + unittest.expect(o.score!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1SummarizationQualityResult--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInput = 0; -api.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput -buildGoogleCloudAiplatformV1TrajectoryInOrderMatchInput() { - final o = api.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput(); - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInput++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInput < 3) { - o.instances = buildUnnamed425(); - o.metricSpec = buildGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec(); +core.int buildCounterGoogleCloudAiplatformV1SummarizationQualitySpec = 0; +api.GoogleCloudAiplatformV1SummarizationQualitySpec +buildGoogleCloudAiplatformV1SummarizationQualitySpec() { + final o = api.GoogleCloudAiplatformV1SummarizationQualitySpec(); + buildCounterGoogleCloudAiplatformV1SummarizationQualitySpec++; + if (buildCounterGoogleCloudAiplatformV1SummarizationQualitySpec < 3) { + o.useReference = true; + o.version = 42; } - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInput--; + buildCounterGoogleCloudAiplatformV1SummarizationQualitySpec--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryInOrderMatchInput( - api.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput o, +void checkGoogleCloudAiplatformV1SummarizationQualitySpec( + api.GoogleCloudAiplatformV1SummarizationQualitySpec o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInput++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInput < 3) { - checkUnnamed425(o.instances!); - checkGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1SummarizationQualitySpec++; + if (buildCounterGoogleCloudAiplatformV1SummarizationQualitySpec < 3) { + unittest.expect(o.useReference!, unittest.isTrue); + unittest.expect(o.version!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInput--; + buildCounterGoogleCloudAiplatformV1SummarizationQualitySpec--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance = 0; -api.GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance -buildGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance() { - final o = api.GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance(); - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance < 3) { - o.predictedTrajectory = buildGoogleCloudAiplatformV1Trajectory(); - o.referenceTrajectory = buildGoogleCloudAiplatformV1Trajectory(); +core.int buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInput = 0; +api.GoogleCloudAiplatformV1SummarizationVerbosityInput +buildGoogleCloudAiplatformV1SummarizationVerbosityInput() { + final o = api.GoogleCloudAiplatformV1SummarizationVerbosityInput(); + buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInput++; + if (buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInput < 3) { + o.instance = buildGoogleCloudAiplatformV1SummarizationVerbosityInstance(); + o.metricSpec = buildGoogleCloudAiplatformV1SummarizationVerbositySpec(); } - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance--; + buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInput--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance( - api.GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance o, +void checkGoogleCloudAiplatformV1SummarizationVerbosityInput( + api.GoogleCloudAiplatformV1SummarizationVerbosityInput o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance < 3) { - checkGoogleCloudAiplatformV1Trajectory(o.predictedTrajectory!); - checkGoogleCloudAiplatformV1Trajectory(o.referenceTrajectory!); + buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInput++; + if (buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInput < 3) { + checkGoogleCloudAiplatformV1SummarizationVerbosityInstance(o.instance!); + checkGoogleCloudAiplatformV1SummarizationVerbositySpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance--; + buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInput--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue = - 0; -api.GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue -buildGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue() { - final o = api.GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue(); - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue < - 3) { - o.score = 42.0; +core.int buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInstance = 0; +api.GoogleCloudAiplatformV1SummarizationVerbosityInstance +buildGoogleCloudAiplatformV1SummarizationVerbosityInstance() { + final o = api.GoogleCloudAiplatformV1SummarizationVerbosityInstance(); + buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInstance++; + if (buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInstance < 3) { + o.context = 'foo'; + o.instruction = 'foo'; + o.prediction = 'foo'; + o.reference = 'foo'; } - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue--; + buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInstance--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue( - api.GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue o, +void checkGoogleCloudAiplatformV1SummarizationVerbosityInstance( + api.GoogleCloudAiplatformV1SummarizationVerbosityInstance o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue < - 3) { - unittest.expect(o.score!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInstance++; + if (buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInstance < 3) { + unittest.expect(o.context!, unittest.equals('foo')); + unittest.expect(o.instruction!, unittest.equals('foo')); + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue--; -} - -core.List -buildUnnamed426() => [ - buildGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue(), - buildGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue(), -]; - -void checkUnnamed426( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue(o[0]); - checkGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue(o[1]); + buildCounterGoogleCloudAiplatformV1SummarizationVerbosityInstance--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchResults = 0; -api.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults -buildGoogleCloudAiplatformV1TrajectoryInOrderMatchResults() { - final o = api.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults(); - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchResults++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchResults < 3) { - o.trajectoryInOrderMatchMetricValues = buildUnnamed426(); +core.int buildCounterGoogleCloudAiplatformV1SummarizationVerbosityResult = 0; +api.GoogleCloudAiplatformV1SummarizationVerbosityResult +buildGoogleCloudAiplatformV1SummarizationVerbosityResult() { + final o = api.GoogleCloudAiplatformV1SummarizationVerbosityResult(); + buildCounterGoogleCloudAiplatformV1SummarizationVerbosityResult++; + if (buildCounterGoogleCloudAiplatformV1SummarizationVerbosityResult < 3) { + o.confidence = 42.0; + o.explanation = 'foo'; + o.score = 42.0; } - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchResults--; + buildCounterGoogleCloudAiplatformV1SummarizationVerbosityResult--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryInOrderMatchResults( - api.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults o, +void checkGoogleCloudAiplatformV1SummarizationVerbosityResult( + api.GoogleCloudAiplatformV1SummarizationVerbosityResult o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchResults++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchResults < 3) { - checkUnnamed426(o.trajectoryInOrderMatchMetricValues!); + buildCounterGoogleCloudAiplatformV1SummarizationVerbosityResult++; + if (buildCounterGoogleCloudAiplatformV1SummarizationVerbosityResult < 3) { + unittest.expect(o.confidence!, unittest.equals(42.0)); + unittest.expect(o.explanation!, unittest.equals('foo')); + unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchResults--; + buildCounterGoogleCloudAiplatformV1SummarizationVerbosityResult--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec = 0; -api.GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec -buildGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec() { - final o = api.GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec(); - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec < 3) {} - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec--; +core.int buildCounterGoogleCloudAiplatformV1SummarizationVerbositySpec = 0; +api.GoogleCloudAiplatformV1SummarizationVerbositySpec +buildGoogleCloudAiplatformV1SummarizationVerbositySpec() { + final o = api.GoogleCloudAiplatformV1SummarizationVerbositySpec(); + buildCounterGoogleCloudAiplatformV1SummarizationVerbositySpec++; + if (buildCounterGoogleCloudAiplatformV1SummarizationVerbositySpec < 3) { + o.useReference = true; + o.version = 42; + } + buildCounterGoogleCloudAiplatformV1SummarizationVerbositySpec--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec( - api.GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec o, +void checkGoogleCloudAiplatformV1SummarizationVerbositySpec( + api.GoogleCloudAiplatformV1SummarizationVerbositySpec o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec < 3) {} - buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec--; + buildCounterGoogleCloudAiplatformV1SummarizationVerbositySpec++; + if (buildCounterGoogleCloudAiplatformV1SummarizationVerbositySpec < 3) { + unittest.expect(o.useReference!, unittest.isTrue); + unittest.expect(o.version!, unittest.equals(42)); + } + buildCounterGoogleCloudAiplatformV1SummarizationVerbositySpec--; } -core.List -buildUnnamed427() => [ - buildGoogleCloudAiplatformV1TrajectoryPrecisionInstance(), - buildGoogleCloudAiplatformV1TrajectoryPrecisionInstance(), -]; +core.Map buildUnnamed423() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; -void checkUnnamed427( - core.List o, -) { +void checkUnnamed423(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrajectoryPrecisionInstance(o[0]); - checkGoogleCloudAiplatformV1TrajectoryPrecisionInstance(o[1]); + var casted96 = (o['x']!) as core.Map; + unittest.expect(casted96, unittest.hasLength(3)); + unittest.expect(casted96['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted96['bool'], unittest.equals(true)); + unittest.expect(casted96['string'], unittest.equals('foo')); + var casted97 = (o['y']!) as core.Map; + unittest.expect(casted97, unittest.hasLength(3)); + unittest.expect(casted97['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted97['bool'], unittest.equals(true)); + unittest.expect(casted97['string'], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInput = 0; -api.GoogleCloudAiplatformV1TrajectoryPrecisionInput -buildGoogleCloudAiplatformV1TrajectoryPrecisionInput() { - final o = api.GoogleCloudAiplatformV1TrajectoryPrecisionInput(); - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInput++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInput < 3) { - o.instances = buildUnnamed427(); - o.metricSpec = buildGoogleCloudAiplatformV1TrajectoryPrecisionSpec(); +core.int buildCounterGoogleCloudAiplatformV1SummaryMetrics = 0; +api.GoogleCloudAiplatformV1SummaryMetrics +buildGoogleCloudAiplatformV1SummaryMetrics() { + final o = api.GoogleCloudAiplatformV1SummaryMetrics(); + buildCounterGoogleCloudAiplatformV1SummaryMetrics++; + if (buildCounterGoogleCloudAiplatformV1SummaryMetrics < 3) { + o.failedItems = 42; + o.metrics = buildUnnamed423(); + o.totalItems = 42; } - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInput--; + buildCounterGoogleCloudAiplatformV1SummaryMetrics--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryPrecisionInput( - api.GoogleCloudAiplatformV1TrajectoryPrecisionInput o, +void checkGoogleCloudAiplatformV1SummaryMetrics( + api.GoogleCloudAiplatformV1SummaryMetrics o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInput++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInput < 3) { - checkUnnamed427(o.instances!); - checkGoogleCloudAiplatformV1TrajectoryPrecisionSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1SummaryMetrics++; + if (buildCounterGoogleCloudAiplatformV1SummaryMetrics < 3) { + unittest.expect(o.failedItems!, unittest.equals(42)); + checkUnnamed423(o.metrics!); + unittest.expect(o.totalItems!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInput--; + buildCounterGoogleCloudAiplatformV1SummaryMetrics--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInstance = 0; -api.GoogleCloudAiplatformV1TrajectoryPrecisionInstance -buildGoogleCloudAiplatformV1TrajectoryPrecisionInstance() { - final o = api.GoogleCloudAiplatformV1TrajectoryPrecisionInstance(); - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInstance++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInstance < 3) { - o.predictedTrajectory = buildGoogleCloudAiplatformV1Trajectory(); - o.referenceTrajectory = buildGoogleCloudAiplatformV1Trajectory(); +core.int buildCounterGoogleCloudAiplatformV1SupervisedHyperParameters = 0; +api.GoogleCloudAiplatformV1SupervisedHyperParameters +buildGoogleCloudAiplatformV1SupervisedHyperParameters() { + final o = api.GoogleCloudAiplatformV1SupervisedHyperParameters(); + buildCounterGoogleCloudAiplatformV1SupervisedHyperParameters++; + if (buildCounterGoogleCloudAiplatformV1SupervisedHyperParameters < 3) { + o.adapterSize = 'foo'; + o.epochCount = 'foo'; + o.learningRateMultiplier = 42.0; } - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInstance--; + buildCounterGoogleCloudAiplatformV1SupervisedHyperParameters--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryPrecisionInstance( - api.GoogleCloudAiplatformV1TrajectoryPrecisionInstance o, +void checkGoogleCloudAiplatformV1SupervisedHyperParameters( + api.GoogleCloudAiplatformV1SupervisedHyperParameters o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInstance++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInstance < 3) { - checkGoogleCloudAiplatformV1Trajectory(o.predictedTrajectory!); - checkGoogleCloudAiplatformV1Trajectory(o.referenceTrajectory!); + buildCounterGoogleCloudAiplatformV1SupervisedHyperParameters++; + if (buildCounterGoogleCloudAiplatformV1SupervisedHyperParameters < 3) { + unittest.expect(o.adapterSize!, unittest.equals('foo')); + unittest.expect(o.epochCount!, unittest.equals('foo')); + unittest.expect(o.learningRateMultiplier!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInstance--; + buildCounterGoogleCloudAiplatformV1SupervisedHyperParameters--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue = 0; -api.GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue -buildGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue() { - final o = api.GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue(); - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue < 3) { - o.score = 42.0; - } - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue--; - return o; +core.List buildUnnamed424() => ['foo', 'foo']; + +void checkUnnamed424(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -void checkGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue( - api.GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue o, -) { - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue < 3) { - unittest.expect(o.score!, unittest.equals(42.0)); - } - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue--; +core.List buildUnnamed425() => ['foo', 'foo']; + +void checkUnnamed425(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.List -buildUnnamed428() => [ - buildGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue(), - buildGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue(), +core.List buildUnnamed426() => [ + buildGoogleCloudAiplatformV1Content(), + buildGoogleCloudAiplatformV1Content(), ]; -void checkUnnamed428( - core.List o, -) { +void checkUnnamed426(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue(o[0]); - checkGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue(o[1]); + checkGoogleCloudAiplatformV1Content(o[0]); + checkGoogleCloudAiplatformV1Content(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionResults = 0; -api.GoogleCloudAiplatformV1TrajectoryPrecisionResults -buildGoogleCloudAiplatformV1TrajectoryPrecisionResults() { - final o = api.GoogleCloudAiplatformV1TrajectoryPrecisionResults(); - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionResults++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionResults < 3) { - o.trajectoryPrecisionMetricValues = buildUnnamed428(); +core.int buildCounterGoogleCloudAiplatformV1SupervisedTuningDataStats = 0; +api.GoogleCloudAiplatformV1SupervisedTuningDataStats +buildGoogleCloudAiplatformV1SupervisedTuningDataStats() { + final o = api.GoogleCloudAiplatformV1SupervisedTuningDataStats(); + buildCounterGoogleCloudAiplatformV1SupervisedTuningDataStats++; + if (buildCounterGoogleCloudAiplatformV1SupervisedTuningDataStats < 3) { + o.droppedExampleReasons = buildUnnamed424(); + o.totalBillableCharacterCount = 'foo'; + o.totalBillableTokenCount = 'foo'; + o.totalTruncatedExampleCount = 'foo'; + o.totalTuningCharacterCount = 'foo'; + o.truncatedExampleIndices = buildUnnamed425(); + o.tuningDatasetExampleCount = 'foo'; + o.tuningStepCount = 'foo'; + o.userDatasetExamples = buildUnnamed426(); + o.userInputTokenDistribution = + buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution(); + o.userMessagePerExampleDistribution = + buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution(); + o.userOutputTokenDistribution = + buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution(); } - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionResults--; + buildCounterGoogleCloudAiplatformV1SupervisedTuningDataStats--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryPrecisionResults( - api.GoogleCloudAiplatformV1TrajectoryPrecisionResults o, +void checkGoogleCloudAiplatformV1SupervisedTuningDataStats( + api.GoogleCloudAiplatformV1SupervisedTuningDataStats o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionResults++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionResults < 3) { - checkUnnamed428(o.trajectoryPrecisionMetricValues!); + buildCounterGoogleCloudAiplatformV1SupervisedTuningDataStats++; + if (buildCounterGoogleCloudAiplatformV1SupervisedTuningDataStats < 3) { + checkUnnamed424(o.droppedExampleReasons!); + unittest.expect(o.totalBillableCharacterCount!, unittest.equals('foo')); + unittest.expect(o.totalBillableTokenCount!, unittest.equals('foo')); + unittest.expect(o.totalTruncatedExampleCount!, unittest.equals('foo')); + unittest.expect(o.totalTuningCharacterCount!, unittest.equals('foo')); + checkUnnamed425(o.truncatedExampleIndices!); + unittest.expect(o.tuningDatasetExampleCount!, unittest.equals('foo')); + unittest.expect(o.tuningStepCount!, unittest.equals('foo')); + checkUnnamed426(o.userDatasetExamples!); + checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution( + o.userInputTokenDistribution!, + ); + checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution( + o.userMessagePerExampleDistribution!, + ); + checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution( + o.userOutputTokenDistribution!, + ); } - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionResults--; -} - -core.int buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionSpec = 0; -api.GoogleCloudAiplatformV1TrajectoryPrecisionSpec -buildGoogleCloudAiplatformV1TrajectoryPrecisionSpec() { - final o = api.GoogleCloudAiplatformV1TrajectoryPrecisionSpec(); - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionSpec++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionSpec < 3) {} - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionSpec--; - return o; -} - -void checkGoogleCloudAiplatformV1TrajectoryPrecisionSpec( - api.GoogleCloudAiplatformV1TrajectoryPrecisionSpec o, -) { - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionSpec++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionSpec < 3) {} - buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionSpec--; + buildCounterGoogleCloudAiplatformV1SupervisedTuningDataStats--; } -core.List -buildUnnamed429() => [ - buildGoogleCloudAiplatformV1TrajectoryRecallInstance(), - buildGoogleCloudAiplatformV1TrajectoryRecallInstance(), +core.List< + api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket +> +buildUnnamed427() => [ + buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket(), + buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket(), ]; -void checkUnnamed429( - core.List o, +void checkUnnamed427( + core.List< + api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket + > + o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrajectoryRecallInstance(o[0]); - checkGoogleCloudAiplatformV1TrajectoryRecallInstance(o[1]); + checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket( + o[0], + ); + checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket( + o[1], + ); } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryRecallInput = 0; -api.GoogleCloudAiplatformV1TrajectoryRecallInput -buildGoogleCloudAiplatformV1TrajectoryRecallInput() { - final o = api.GoogleCloudAiplatformV1TrajectoryRecallInput(); - buildCounterGoogleCloudAiplatformV1TrajectoryRecallInput++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallInput < 3) { - o.instances = buildUnnamed429(); - o.metricSpec = buildGoogleCloudAiplatformV1TrajectoryRecallSpec(); +core.int +buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution = 0; +api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution +buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution() { + final o = api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution(); + buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution++; + if (buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution < + 3) { + o.billableSum = 'foo'; + o.buckets = buildUnnamed427(); + o.max = 42.0; + o.mean = 42.0; + o.median = 42.0; + o.min = 42.0; + o.p5 = 42.0; + o.p95 = 42.0; + o.sum = 'foo'; } - buildCounterGoogleCloudAiplatformV1TrajectoryRecallInput--; + buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryRecallInput( - api.GoogleCloudAiplatformV1TrajectoryRecallInput o, +void checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution( + api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryRecallInput++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallInput < 3) { - checkUnnamed429(o.instances!); - checkGoogleCloudAiplatformV1TrajectoryRecallSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution++; + if (buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution < + 3) { + unittest.expect(o.billableSum!, unittest.equals('foo')); + checkUnnamed427(o.buckets!); + unittest.expect(o.max!, unittest.equals(42.0)); + unittest.expect(o.mean!, unittest.equals(42.0)); + unittest.expect(o.median!, unittest.equals(42.0)); + unittest.expect(o.min!, unittest.equals(42.0)); + unittest.expect(o.p5!, unittest.equals(42.0)); + unittest.expect(o.p95!, unittest.equals(42.0)); + unittest.expect(o.sum!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1TrajectoryRecallInput--; + buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryRecallInstance = 0; -api.GoogleCloudAiplatformV1TrajectoryRecallInstance -buildGoogleCloudAiplatformV1TrajectoryRecallInstance() { - final o = api.GoogleCloudAiplatformV1TrajectoryRecallInstance(); - buildCounterGoogleCloudAiplatformV1TrajectoryRecallInstance++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallInstance < 3) { - o.predictedTrajectory = buildGoogleCloudAiplatformV1Trajectory(); - o.referenceTrajectory = buildGoogleCloudAiplatformV1Trajectory(); +core.int +buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket = + 0; +api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket +buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket() { + final o = + api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket(); + buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket++; + if (buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket < + 3) { + o.count = 42.0; + o.left = 42.0; + o.right = 42.0; } - buildCounterGoogleCloudAiplatformV1TrajectoryRecallInstance--; + buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryRecallInstance( - api.GoogleCloudAiplatformV1TrajectoryRecallInstance o, +void +checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket( + api.GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryRecallInstance++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallInstance < 3) { - checkGoogleCloudAiplatformV1Trajectory(o.predictedTrajectory!); - checkGoogleCloudAiplatformV1Trajectory(o.referenceTrajectory!); + buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket++; + if (buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket < + 3) { + unittest.expect(o.count!, unittest.equals(42.0)); + unittest.expect(o.left!, unittest.equals(42.0)); + unittest.expect(o.right!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1TrajectoryRecallInstance--; + buildCounterGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryRecallMetricValue = 0; -api.GoogleCloudAiplatformV1TrajectoryRecallMetricValue -buildGoogleCloudAiplatformV1TrajectoryRecallMetricValue() { - final o = api.GoogleCloudAiplatformV1TrajectoryRecallMetricValue(); - buildCounterGoogleCloudAiplatformV1TrajectoryRecallMetricValue++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallMetricValue < 3) { - o.score = 42.0; +core.int buildCounterGoogleCloudAiplatformV1SupervisedTuningSpec = 0; +api.GoogleCloudAiplatformV1SupervisedTuningSpec +buildGoogleCloudAiplatformV1SupervisedTuningSpec() { + final o = api.GoogleCloudAiplatformV1SupervisedTuningSpec(); + buildCounterGoogleCloudAiplatformV1SupervisedTuningSpec++; + if (buildCounterGoogleCloudAiplatformV1SupervisedTuningSpec < 3) { + o.exportLastCheckpointOnly = true; + o.hyperParameters = buildGoogleCloudAiplatformV1SupervisedHyperParameters(); + o.trainingDatasetUri = 'foo'; + o.validationDatasetUri = 'foo'; } - buildCounterGoogleCloudAiplatformV1TrajectoryRecallMetricValue--; + buildCounterGoogleCloudAiplatformV1SupervisedTuningSpec--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryRecallMetricValue( - api.GoogleCloudAiplatformV1TrajectoryRecallMetricValue o, +void checkGoogleCloudAiplatformV1SupervisedTuningSpec( + api.GoogleCloudAiplatformV1SupervisedTuningSpec o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryRecallMetricValue++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallMetricValue < 3) { - unittest.expect(o.score!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1SupervisedTuningSpec++; + if (buildCounterGoogleCloudAiplatformV1SupervisedTuningSpec < 3) { + unittest.expect(o.exportLastCheckpointOnly!, unittest.isTrue); + checkGoogleCloudAiplatformV1SupervisedHyperParameters(o.hyperParameters!); + unittest.expect(o.trainingDatasetUri!, unittest.equals('foo')); + unittest.expect(o.validationDatasetUri!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1TrajectoryRecallMetricValue--; + buildCounterGoogleCloudAiplatformV1SupervisedTuningSpec--; } -core.List -buildUnnamed430() => [ - buildGoogleCloudAiplatformV1TrajectoryRecallMetricValue(), - buildGoogleCloudAiplatformV1TrajectoryRecallMetricValue(), -]; - -void checkUnnamed430( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrajectoryRecallMetricValue(o[0]); - checkGoogleCloudAiplatformV1TrajectoryRecallMetricValue(o[1]); -} - -core.int buildCounterGoogleCloudAiplatformV1TrajectoryRecallResults = 0; -api.GoogleCloudAiplatformV1TrajectoryRecallResults -buildGoogleCloudAiplatformV1TrajectoryRecallResults() { - final o = api.GoogleCloudAiplatformV1TrajectoryRecallResults(); - buildCounterGoogleCloudAiplatformV1TrajectoryRecallResults++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallResults < 3) { - o.trajectoryRecallMetricValues = buildUnnamed430(); - } - buildCounterGoogleCloudAiplatformV1TrajectoryRecallResults--; +core.int buildCounterGoogleCloudAiplatformV1SyncFeatureViewRequest = 0; +api.GoogleCloudAiplatformV1SyncFeatureViewRequest +buildGoogleCloudAiplatformV1SyncFeatureViewRequest() { + final o = api.GoogleCloudAiplatformV1SyncFeatureViewRequest(); + buildCounterGoogleCloudAiplatformV1SyncFeatureViewRequest++; + if (buildCounterGoogleCloudAiplatformV1SyncFeatureViewRequest < 3) {} + buildCounterGoogleCloudAiplatformV1SyncFeatureViewRequest--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryRecallResults( - api.GoogleCloudAiplatformV1TrajectoryRecallResults o, +void checkGoogleCloudAiplatformV1SyncFeatureViewRequest( + api.GoogleCloudAiplatformV1SyncFeatureViewRequest o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryRecallResults++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallResults < 3) { - checkUnnamed430(o.trajectoryRecallMetricValues!); - } - buildCounterGoogleCloudAiplatformV1TrajectoryRecallResults--; + buildCounterGoogleCloudAiplatformV1SyncFeatureViewRequest++; + if (buildCounterGoogleCloudAiplatformV1SyncFeatureViewRequest < 3) {} + buildCounterGoogleCloudAiplatformV1SyncFeatureViewRequest--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectoryRecallSpec = 0; -api.GoogleCloudAiplatformV1TrajectoryRecallSpec -buildGoogleCloudAiplatformV1TrajectoryRecallSpec() { - final o = api.GoogleCloudAiplatformV1TrajectoryRecallSpec(); - buildCounterGoogleCloudAiplatformV1TrajectoryRecallSpec++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallSpec < 3) {} - buildCounterGoogleCloudAiplatformV1TrajectoryRecallSpec--; +core.int buildCounterGoogleCloudAiplatformV1SyncFeatureViewResponse = 0; +api.GoogleCloudAiplatformV1SyncFeatureViewResponse +buildGoogleCloudAiplatformV1SyncFeatureViewResponse() { + final o = api.GoogleCloudAiplatformV1SyncFeatureViewResponse(); + buildCounterGoogleCloudAiplatformV1SyncFeatureViewResponse++; + if (buildCounterGoogleCloudAiplatformV1SyncFeatureViewResponse < 3) { + o.featureViewSync = 'foo'; + } + buildCounterGoogleCloudAiplatformV1SyncFeatureViewResponse--; return o; } -void checkGoogleCloudAiplatformV1TrajectoryRecallSpec( - api.GoogleCloudAiplatformV1TrajectoryRecallSpec o, +void checkGoogleCloudAiplatformV1SyncFeatureViewResponse( + api.GoogleCloudAiplatformV1SyncFeatureViewResponse o, ) { - buildCounterGoogleCloudAiplatformV1TrajectoryRecallSpec++; - if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallSpec < 3) {} - buildCounterGoogleCloudAiplatformV1TrajectoryRecallSpec--; + buildCounterGoogleCloudAiplatformV1SyncFeatureViewResponse++; + if (buildCounterGoogleCloudAiplatformV1SyncFeatureViewResponse < 3) { + unittest.expect(o.featureViewSync!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1SyncFeatureViewResponse--; } -core.List -buildUnnamed431() => [ - buildGoogleCloudAiplatformV1TrajectorySingleToolUseInstance(), - buildGoogleCloudAiplatformV1TrajectorySingleToolUseInstance(), +core.List buildUnnamed428() => [ + buildGoogleCloudAiplatformV1SyntheticField(), + buildGoogleCloudAiplatformV1SyntheticField(), ]; -void checkUnnamed431( - core.List o, -) { +void checkUnnamed428(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrajectorySingleToolUseInstance(o[0]); - checkGoogleCloudAiplatformV1TrajectorySingleToolUseInstance(o[1]); + checkGoogleCloudAiplatformV1SyntheticField(o[0]); + checkGoogleCloudAiplatformV1SyntheticField(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInput = 0; -api.GoogleCloudAiplatformV1TrajectorySingleToolUseInput -buildGoogleCloudAiplatformV1TrajectorySingleToolUseInput() { - final o = api.GoogleCloudAiplatformV1TrajectorySingleToolUseInput(); - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInput++; - if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInput < 3) { - o.instances = buildUnnamed431(); - o.metricSpec = buildGoogleCloudAiplatformV1TrajectorySingleToolUseSpec(); +core.int buildCounterGoogleCloudAiplatformV1SyntheticExample = 0; +api.GoogleCloudAiplatformV1SyntheticExample +buildGoogleCloudAiplatformV1SyntheticExample() { + final o = api.GoogleCloudAiplatformV1SyntheticExample(); + buildCounterGoogleCloudAiplatformV1SyntheticExample++; + if (buildCounterGoogleCloudAiplatformV1SyntheticExample < 3) { + o.fields = buildUnnamed428(); } - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInput--; + buildCounterGoogleCloudAiplatformV1SyntheticExample--; return o; } -void checkGoogleCloudAiplatformV1TrajectorySingleToolUseInput( - api.GoogleCloudAiplatformV1TrajectorySingleToolUseInput o, +void checkGoogleCloudAiplatformV1SyntheticExample( + api.GoogleCloudAiplatformV1SyntheticExample o, ) { - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInput++; - if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInput < 3) { - checkUnnamed431(o.instances!); - checkGoogleCloudAiplatformV1TrajectorySingleToolUseSpec(o.metricSpec!); + buildCounterGoogleCloudAiplatformV1SyntheticExample++; + if (buildCounterGoogleCloudAiplatformV1SyntheticExample < 3) { + checkUnnamed428(o.fields!); } - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInput--; + buildCounterGoogleCloudAiplatformV1SyntheticExample--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInstance = 0; -api.GoogleCloudAiplatformV1TrajectorySingleToolUseInstance -buildGoogleCloudAiplatformV1TrajectorySingleToolUseInstance() { - final o = api.GoogleCloudAiplatformV1TrajectorySingleToolUseInstance(); - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInstance++; - if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInstance < 3) { - o.predictedTrajectory = buildGoogleCloudAiplatformV1Trajectory(); +core.int buildCounterGoogleCloudAiplatformV1SyntheticField = 0; +api.GoogleCloudAiplatformV1SyntheticField +buildGoogleCloudAiplatformV1SyntheticField() { + final o = api.GoogleCloudAiplatformV1SyntheticField(); + buildCounterGoogleCloudAiplatformV1SyntheticField++; + if (buildCounterGoogleCloudAiplatformV1SyntheticField < 3) { + o.content = buildGoogleCloudAiplatformV1Content(); + o.fieldName = 'foo'; } - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInstance--; + buildCounterGoogleCloudAiplatformV1SyntheticField--; return o; } -void checkGoogleCloudAiplatformV1TrajectorySingleToolUseInstance( - api.GoogleCloudAiplatformV1TrajectorySingleToolUseInstance o, +void checkGoogleCloudAiplatformV1SyntheticField( + api.GoogleCloudAiplatformV1SyntheticField o, ) { - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInstance++; - if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInstance < 3) { - checkGoogleCloudAiplatformV1Trajectory(o.predictedTrajectory!); + buildCounterGoogleCloudAiplatformV1SyntheticField++; + if (buildCounterGoogleCloudAiplatformV1SyntheticField < 3) { + checkGoogleCloudAiplatformV1Content(o.content!); + unittest.expect(o.fieldName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInstance--; + buildCounterGoogleCloudAiplatformV1SyntheticField--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue = - 0; -api.GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue -buildGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue() { - final o = api.GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue(); - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue++; - if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue < - 3) { - o.score = 42.0; +core.int buildCounterGoogleCloudAiplatformV1TFRecordDestination = 0; +api.GoogleCloudAiplatformV1TFRecordDestination +buildGoogleCloudAiplatformV1TFRecordDestination() { + final o = api.GoogleCloudAiplatformV1TFRecordDestination(); + buildCounterGoogleCloudAiplatformV1TFRecordDestination++; + if (buildCounterGoogleCloudAiplatformV1TFRecordDestination < 3) { + o.gcsDestination = buildGoogleCloudAiplatformV1GcsDestination(); } - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue--; + buildCounterGoogleCloudAiplatformV1TFRecordDestination--; return o; } -void checkGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue( - api.GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue o, +void checkGoogleCloudAiplatformV1TFRecordDestination( + api.GoogleCloudAiplatformV1TFRecordDestination o, ) { - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue++; - if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue < - 3) { - unittest.expect(o.score!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1TFRecordDestination++; + if (buildCounterGoogleCloudAiplatformV1TFRecordDestination < 3) { + checkGoogleCloudAiplatformV1GcsDestination(o.gcsDestination!); } - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue--; -} - -core.List -buildUnnamed432() => [ - buildGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue(), - buildGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue(), -]; - -void checkUnnamed432( - core.List o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue(o[0]); - checkGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue(o[1]); + buildCounterGoogleCloudAiplatformV1TFRecordDestination--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseResults = 0; -api.GoogleCloudAiplatformV1TrajectorySingleToolUseResults -buildGoogleCloudAiplatformV1TrajectorySingleToolUseResults() { - final o = api.GoogleCloudAiplatformV1TrajectorySingleToolUseResults(); - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseResults++; - if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseResults < 3) { - o.trajectorySingleToolUseMetricValues = buildUnnamed432(); +core.int buildCounterGoogleCloudAiplatformV1TaskDescriptionStrategy = 0; +api.GoogleCloudAiplatformV1TaskDescriptionStrategy +buildGoogleCloudAiplatformV1TaskDescriptionStrategy() { + final o = api.GoogleCloudAiplatformV1TaskDescriptionStrategy(); + buildCounterGoogleCloudAiplatformV1TaskDescriptionStrategy++; + if (buildCounterGoogleCloudAiplatformV1TaskDescriptionStrategy < 3) { + o.taskDescription = 'foo'; } - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseResults--; + buildCounterGoogleCloudAiplatformV1TaskDescriptionStrategy--; return o; } -void checkGoogleCloudAiplatformV1TrajectorySingleToolUseResults( - api.GoogleCloudAiplatformV1TrajectorySingleToolUseResults o, +void checkGoogleCloudAiplatformV1TaskDescriptionStrategy( + api.GoogleCloudAiplatformV1TaskDescriptionStrategy o, ) { - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseResults++; - if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseResults < 3) { - checkUnnamed432(o.trajectorySingleToolUseMetricValues!); + buildCounterGoogleCloudAiplatformV1TaskDescriptionStrategy++; + if (buildCounterGoogleCloudAiplatformV1TaskDescriptionStrategy < 3) { + unittest.expect(o.taskDescription!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseResults--; + buildCounterGoogleCloudAiplatformV1TaskDescriptionStrategy--; } -core.int buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseSpec = 0; -api.GoogleCloudAiplatformV1TrajectorySingleToolUseSpec -buildGoogleCloudAiplatformV1TrajectorySingleToolUseSpec() { - final o = api.GoogleCloudAiplatformV1TrajectorySingleToolUseSpec(); - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseSpec++; - if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseSpec < 3) { - o.toolName = 'foo'; - } - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseSpec--; - return o; -} +core.List buildUnnamed429() => [true, true]; -void checkGoogleCloudAiplatformV1TrajectorySingleToolUseSpec( - api.GoogleCloudAiplatformV1TrajectorySingleToolUseSpec o, -) { - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseSpec++; - if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseSpec < 3) { - unittest.expect(o.toolName!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseSpec--; +void checkUnnamed429(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.isTrue); + unittest.expect(o[1], unittest.isTrue); } -core.List buildUnnamed433() => [ - buildGoogleCloudAiplatformV1Measurement(), - buildGoogleCloudAiplatformV1Measurement(), -]; +core.List buildUnnamed430() => ['foo', 'foo']; -void checkUnnamed433(core.List o) { +void checkUnnamed430(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1Measurement(o[0]); - checkGoogleCloudAiplatformV1Measurement(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed434() => [ - buildGoogleCloudAiplatformV1TrialParameter(), - buildGoogleCloudAiplatformV1TrialParameter(), -]; +core.List buildUnnamed431() => [42.0, 42.0]; -void checkUnnamed434(core.List o) { +void checkUnnamed431(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrialParameter(o[0]); - checkGoogleCloudAiplatformV1TrialParameter(o[1]); + unittest.expect(o[0], unittest.equals(42.0)); + unittest.expect(o[1], unittest.equals(42.0)); } -core.Map buildUnnamed435() => { - 'x': 'foo', - 'y': 'foo', -}; +core.List buildUnnamed432() => [42.0, 42.0]; -void checkUnnamed435(core.Map o) { +void checkUnnamed432(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + unittest.expect(o[0], unittest.equals(42.0)); + unittest.expect(o[1], unittest.equals(42.0)); } -core.int buildCounterGoogleCloudAiplatformV1Trial = 0; -api.GoogleCloudAiplatformV1Trial buildGoogleCloudAiplatformV1Trial() { - final o = api.GoogleCloudAiplatformV1Trial(); - buildCounterGoogleCloudAiplatformV1Trial++; - if (buildCounterGoogleCloudAiplatformV1Trial < 3) { - o.clientId = 'foo'; - o.customJob = 'foo'; - o.endTime = 'foo'; - o.finalMeasurement = buildGoogleCloudAiplatformV1Measurement(); - o.id = 'foo'; - o.infeasibleReason = 'foo'; - o.measurements = buildUnnamed433(); - o.name = 'foo'; - o.parameters = buildUnnamed434(); - o.startTime = 'foo'; - o.state = 'foo'; - o.webAccessUris = buildUnnamed435(); - } - buildCounterGoogleCloudAiplatformV1Trial--; - return o; -} +core.List buildUnnamed433() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1Trial(api.GoogleCloudAiplatformV1Trial o) { - buildCounterGoogleCloudAiplatformV1Trial++; - if (buildCounterGoogleCloudAiplatformV1Trial < 3) { - unittest.expect(o.clientId!, unittest.equals('foo')); - unittest.expect(o.customJob!, unittest.equals('foo')); - unittest.expect(o.endTime!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1Measurement(o.finalMeasurement!); - unittest.expect(o.id!, unittest.equals('foo')); - unittest.expect(o.infeasibleReason!, unittest.equals('foo')); - checkUnnamed433(o.measurements!); - unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed434(o.parameters!); - unittest.expect(o.startTime!, unittest.equals('foo')); - unittest.expect(o.state!, unittest.equals('foo')); - checkUnnamed435(o.webAccessUris!); - } - buildCounterGoogleCloudAiplatformV1Trial--; +void checkUnnamed433(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed436() => [ - buildGoogleCloudAiplatformV1TrialParameter(), - buildGoogleCloudAiplatformV1TrialParameter(), -]; +core.List buildUnnamed434() => [42, 42]; -void checkUnnamed436(core.List o) { +void checkUnnamed434(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TrialParameter(o[0]); - checkGoogleCloudAiplatformV1TrialParameter(o[1]); + unittest.expect(o[0], unittest.equals(42)); + unittest.expect(o[1], unittest.equals(42)); } -core.int buildCounterGoogleCloudAiplatformV1TrialContext = 0; -api.GoogleCloudAiplatformV1TrialContext -buildGoogleCloudAiplatformV1TrialContext() { - final o = api.GoogleCloudAiplatformV1TrialContext(); - buildCounterGoogleCloudAiplatformV1TrialContext++; - if (buildCounterGoogleCloudAiplatformV1TrialContext < 3) { - o.description = 'foo'; - o.parameters = buildUnnamed436(); - } - buildCounterGoogleCloudAiplatformV1TrialContext--; - return o; -} +core.List buildUnnamed435() => [ + buildGoogleCloudAiplatformV1Tensor(), + buildGoogleCloudAiplatformV1Tensor(), +]; -void checkGoogleCloudAiplatformV1TrialContext( - api.GoogleCloudAiplatformV1TrialContext o, -) { - buildCounterGoogleCloudAiplatformV1TrialContext++; - if (buildCounterGoogleCloudAiplatformV1TrialContext < 3) { - unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed436(o.parameters!); - } - buildCounterGoogleCloudAiplatformV1TrialContext--; +void checkUnnamed435(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Tensor(o[0]); + checkGoogleCloudAiplatformV1Tensor(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1TrialParameter = 0; -api.GoogleCloudAiplatformV1TrialParameter -buildGoogleCloudAiplatformV1TrialParameter() { - final o = api.GoogleCloudAiplatformV1TrialParameter(); - buildCounterGoogleCloudAiplatformV1TrialParameter++; - if (buildCounterGoogleCloudAiplatformV1TrialParameter < 3) { - o.parameterId = 'foo'; - o.value = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }; - } - buildCounterGoogleCloudAiplatformV1TrialParameter--; - return o; -} +core.List buildUnnamed436() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1TrialParameter( - api.GoogleCloudAiplatformV1TrialParameter o, -) { - buildCounterGoogleCloudAiplatformV1TrialParameter++; - if (buildCounterGoogleCloudAiplatformV1TrialParameter < 3) { - unittest.expect(o.parameterId!, unittest.equals('foo')); - var casted83 = (o.value!) as core.Map; - unittest.expect(casted83, unittest.hasLength(3)); - unittest.expect(casted83['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted83['bool'], unittest.equals(true)); - unittest.expect(casted83['string'], unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1TrialParameter--; +void checkUnnamed436(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed437() => - [ - buildGoogleCloudAiplatformV1TunedModelCheckpoint(), - buildGoogleCloudAiplatformV1TunedModelCheckpoint(), - ]; +core.List buildUnnamed437() => ['foo', 'foo']; -void checkUnnamed437( - core.List o, -) { +void checkUnnamed437(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TunedModelCheckpoint(o[0]); - checkGoogleCloudAiplatformV1TunedModelCheckpoint(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1TunedModel = 0; -api.GoogleCloudAiplatformV1TunedModel buildGoogleCloudAiplatformV1TunedModel() { - final o = api.GoogleCloudAiplatformV1TunedModel(); - buildCounterGoogleCloudAiplatformV1TunedModel++; - if (buildCounterGoogleCloudAiplatformV1TunedModel < 3) { - o.checkpoints = buildUnnamed437(); - o.endpoint = 'foo'; - o.model = 'foo'; - } - buildCounterGoogleCloudAiplatformV1TunedModel--; - return o; -} +core.Map buildUnnamed438() => { + 'x': buildGoogleCloudAiplatformV1Tensor(), + 'y': buildGoogleCloudAiplatformV1Tensor(), +}; -void checkGoogleCloudAiplatformV1TunedModel( - api.GoogleCloudAiplatformV1TunedModel o, +void checkUnnamed438( + core.Map o, ) { - buildCounterGoogleCloudAiplatformV1TunedModel++; - if (buildCounterGoogleCloudAiplatformV1TunedModel < 3) { - checkUnnamed437(o.checkpoints!); - unittest.expect(o.endpoint!, unittest.equals('foo')); - unittest.expect(o.model!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1TunedModel--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Tensor(o['x']!); + checkGoogleCloudAiplatformV1Tensor(o['y']!); } -core.int buildCounterGoogleCloudAiplatformV1TunedModelCheckpoint = 0; -api.GoogleCloudAiplatformV1TunedModelCheckpoint -buildGoogleCloudAiplatformV1TunedModelCheckpoint() { - final o = api.GoogleCloudAiplatformV1TunedModelCheckpoint(); - buildCounterGoogleCloudAiplatformV1TunedModelCheckpoint++; - if (buildCounterGoogleCloudAiplatformV1TunedModelCheckpoint < 3) { - o.checkpointId = 'foo'; - o.endpoint = 'foo'; - o.epoch = 'foo'; - o.step = 'foo'; - } - buildCounterGoogleCloudAiplatformV1TunedModelCheckpoint--; - return o; -} +core.List buildUnnamed439() => ['foo', 'foo']; -void checkGoogleCloudAiplatformV1TunedModelCheckpoint( - api.GoogleCloudAiplatformV1TunedModelCheckpoint o, -) { - buildCounterGoogleCloudAiplatformV1TunedModelCheckpoint++; - if (buildCounterGoogleCloudAiplatformV1TunedModelCheckpoint < 3) { - unittest.expect(o.checkpointId!, unittest.equals('foo')); - unittest.expect(o.endpoint!, unittest.equals('foo')); - unittest.expect(o.epoch!, unittest.equals('foo')); - unittest.expect(o.step!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1TunedModelCheckpoint--; +void checkUnnamed439(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1TunedModelRef = 0; -api.GoogleCloudAiplatformV1TunedModelRef -buildGoogleCloudAiplatformV1TunedModelRef() { - final o = api.GoogleCloudAiplatformV1TunedModelRef(); - buildCounterGoogleCloudAiplatformV1TunedModelRef++; - if (buildCounterGoogleCloudAiplatformV1TunedModelRef < 3) { - o.pipelineJob = 'foo'; - o.tunedModel = 'foo'; - o.tuningJob = 'foo'; - } - buildCounterGoogleCloudAiplatformV1TunedModelRef--; - return o; -} +core.List buildUnnamed440() => [42, 42]; -void checkGoogleCloudAiplatformV1TunedModelRef( - api.GoogleCloudAiplatformV1TunedModelRef o, -) { - buildCounterGoogleCloudAiplatformV1TunedModelRef++; - if (buildCounterGoogleCloudAiplatformV1TunedModelRef < 3) { - unittest.expect(o.pipelineJob!, unittest.equals('foo')); - unittest.expect(o.tunedModel!, unittest.equals('foo')); - unittest.expect(o.tuningJob!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1TunedModelRef--; +void checkUnnamed440(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals(42)); + unittest.expect(o[1], unittest.equals(42)); } -core.int buildCounterGoogleCloudAiplatformV1TuningDataStats = 0; -api.GoogleCloudAiplatformV1TuningDataStats -buildGoogleCloudAiplatformV1TuningDataStats() { - final o = api.GoogleCloudAiplatformV1TuningDataStats(); - buildCounterGoogleCloudAiplatformV1TuningDataStats++; - if (buildCounterGoogleCloudAiplatformV1TuningDataStats < 3) { - o.supervisedTuningDataStats = - buildGoogleCloudAiplatformV1SupervisedTuningDataStats(); +core.int buildCounterGoogleCloudAiplatformV1Tensor = 0; +api.GoogleCloudAiplatformV1Tensor buildGoogleCloudAiplatformV1Tensor() { + final o = api.GoogleCloudAiplatformV1Tensor(); + buildCounterGoogleCloudAiplatformV1Tensor++; + if (buildCounterGoogleCloudAiplatformV1Tensor < 3) { + o.boolVal = buildUnnamed429(); + o.bytesVal = buildUnnamed430(); + o.doubleVal = buildUnnamed431(); + o.dtype = 'foo'; + o.floatVal = buildUnnamed432(); + o.int64Val = buildUnnamed433(); + o.intVal = buildUnnamed434(); + o.listVal = buildUnnamed435(); + o.shape = buildUnnamed436(); + o.stringVal = buildUnnamed437(); + o.structVal = buildUnnamed438(); + o.tensorVal = 'foo'; + o.uint64Val = buildUnnamed439(); + o.uintVal = buildUnnamed440(); } - buildCounterGoogleCloudAiplatformV1TuningDataStats--; + buildCounterGoogleCloudAiplatformV1Tensor--; return o; } -void checkGoogleCloudAiplatformV1TuningDataStats( - api.GoogleCloudAiplatformV1TuningDataStats o, -) { - buildCounterGoogleCloudAiplatformV1TuningDataStats++; - if (buildCounterGoogleCloudAiplatformV1TuningDataStats < 3) { - checkGoogleCloudAiplatformV1SupervisedTuningDataStats( - o.supervisedTuningDataStats!, - ); +void checkGoogleCloudAiplatformV1Tensor(api.GoogleCloudAiplatformV1Tensor o) { + buildCounterGoogleCloudAiplatformV1Tensor++; + if (buildCounterGoogleCloudAiplatformV1Tensor < 3) { + checkUnnamed429(o.boolVal!); + checkUnnamed430(o.bytesVal!); + checkUnnamed431(o.doubleVal!); + unittest.expect(o.dtype!, unittest.equals('foo')); + checkUnnamed432(o.floatVal!); + checkUnnamed433(o.int64Val!); + checkUnnamed434(o.intVal!); + checkUnnamed435(o.listVal!); + checkUnnamed436(o.shape!); + checkUnnamed437(o.stringVal!); + checkUnnamed438(o.structVal!); + unittest.expect(o.tensorVal!, unittest.equals('foo')); + checkUnnamed439(o.uint64Val!); + checkUnnamed440(o.uintVal!); } - buildCounterGoogleCloudAiplatformV1TuningDataStats--; + buildCounterGoogleCloudAiplatformV1Tensor--; } -core.Map buildUnnamed438() => { +core.Map buildUnnamed441() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed438(core.Map o) { +void checkUnnamed441(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1TuningJob = 0; -api.GoogleCloudAiplatformV1TuningJob buildGoogleCloudAiplatformV1TuningJob() { - final o = api.GoogleCloudAiplatformV1TuningJob(); - buildCounterGoogleCloudAiplatformV1TuningJob++; - if (buildCounterGoogleCloudAiplatformV1TuningJob < 3) { - o.baseModel = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1Tensorboard = 0; +api.GoogleCloudAiplatformV1Tensorboard +buildGoogleCloudAiplatformV1Tensorboard() { + final o = api.GoogleCloudAiplatformV1Tensorboard(); + buildCounterGoogleCloudAiplatformV1Tensorboard++; + if (buildCounterGoogleCloudAiplatformV1Tensorboard < 3) { + o.blobStoragePathPrefix = 'foo'; o.createTime = 'foo'; o.description = 'foo'; + o.displayName = 'foo'; o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); - o.endTime = 'foo'; - o.error = buildGoogleRpcStatus(); - o.experiment = 'foo'; - o.labels = buildUnnamed438(); + o.etag = 'foo'; + o.isDefault = true; + o.labels = buildUnnamed441(); o.name = 'foo'; - o.serviceAccount = 'foo'; - o.startTime = 'foo'; - o.state = 'foo'; - o.supervisedTuningSpec = buildGoogleCloudAiplatformV1SupervisedTuningSpec(); - o.tunedModel = buildGoogleCloudAiplatformV1TunedModel(); - o.tunedModelDisplayName = 'foo'; - o.tuningDataStats = buildGoogleCloudAiplatformV1TuningDataStats(); + o.runCount = 42; + o.satisfiesPzi = true; + o.satisfiesPzs = true; o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1TuningJob--; + buildCounterGoogleCloudAiplatformV1Tensorboard--; return o; } -void checkGoogleCloudAiplatformV1TuningJob( - api.GoogleCloudAiplatformV1TuningJob o, +void checkGoogleCloudAiplatformV1Tensorboard( + api.GoogleCloudAiplatformV1Tensorboard o, ) { - buildCounterGoogleCloudAiplatformV1TuningJob++; - if (buildCounterGoogleCloudAiplatformV1TuningJob < 3) { - unittest.expect(o.baseModel!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1Tensorboard++; + if (buildCounterGoogleCloudAiplatformV1Tensorboard < 3) { + unittest.expect(o.blobStoragePathPrefix!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); - unittest.expect(o.endTime!, unittest.equals('foo')); - checkGoogleRpcStatus(o.error!); - unittest.expect(o.experiment!, unittest.equals('foo')); - checkUnnamed438(o.labels!); + unittest.expect(o.etag!, unittest.equals('foo')); + unittest.expect(o.isDefault!, unittest.isTrue); + checkUnnamed441(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.serviceAccount!, unittest.equals('foo')); - unittest.expect(o.startTime!, unittest.equals('foo')); - unittest.expect(o.state!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1SupervisedTuningSpec(o.supervisedTuningSpec!); - checkGoogleCloudAiplatformV1TunedModel(o.tunedModel!); - unittest.expect(o.tunedModelDisplayName!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1TuningDataStats(o.tuningDataStats!); + unittest.expect(o.runCount!, unittest.equals(42)); + unittest.expect(o.satisfiesPzi!, unittest.isTrue); + unittest.expect(o.satisfiesPzs!, unittest.isTrue); unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1TuningJob--; + buildCounterGoogleCloudAiplatformV1Tensorboard--; } -core.int buildCounterGoogleCloudAiplatformV1UndeployIndexRequest = 0; -api.GoogleCloudAiplatformV1UndeployIndexRequest -buildGoogleCloudAiplatformV1UndeployIndexRequest() { - final o = api.GoogleCloudAiplatformV1UndeployIndexRequest(); - buildCounterGoogleCloudAiplatformV1UndeployIndexRequest++; - if (buildCounterGoogleCloudAiplatformV1UndeployIndexRequest < 3) { - o.deployedIndexId = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1TensorboardBlob = 0; +api.GoogleCloudAiplatformV1TensorboardBlob +buildGoogleCloudAiplatformV1TensorboardBlob() { + final o = api.GoogleCloudAiplatformV1TensorboardBlob(); + buildCounterGoogleCloudAiplatformV1TensorboardBlob++; + if (buildCounterGoogleCloudAiplatformV1TensorboardBlob < 3) { + o.data = 'foo'; + o.id = 'foo'; } - buildCounterGoogleCloudAiplatformV1UndeployIndexRequest--; + buildCounterGoogleCloudAiplatformV1TensorboardBlob--; return o; } -void checkGoogleCloudAiplatformV1UndeployIndexRequest( - api.GoogleCloudAiplatformV1UndeployIndexRequest o, +void checkGoogleCloudAiplatformV1TensorboardBlob( + api.GoogleCloudAiplatformV1TensorboardBlob o, ) { - buildCounterGoogleCloudAiplatformV1UndeployIndexRequest++; - if (buildCounterGoogleCloudAiplatformV1UndeployIndexRequest < 3) { - unittest.expect(o.deployedIndexId!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1TensorboardBlob++; + if (buildCounterGoogleCloudAiplatformV1TensorboardBlob < 3) { + unittest.expect(o.data!, unittest.equals('foo')); + unittest.expect(o.id!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1UndeployIndexRequest--; + buildCounterGoogleCloudAiplatformV1TensorboardBlob--; } -core.Map buildUnnamed439() => {'x': 42, 'y': 42}; +core.List buildUnnamed442() => [ + buildGoogleCloudAiplatformV1TensorboardBlob(), + buildGoogleCloudAiplatformV1TensorboardBlob(), +]; -void checkUnnamed439(core.Map o) { +void checkUnnamed442(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals(42)); - unittest.expect(o['y']!, unittest.equals(42)); + checkGoogleCloudAiplatformV1TensorboardBlob(o[0]); + checkGoogleCloudAiplatformV1TensorboardBlob(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1UndeployModelRequest = 0; -api.GoogleCloudAiplatformV1UndeployModelRequest -buildGoogleCloudAiplatformV1UndeployModelRequest() { - final o = api.GoogleCloudAiplatformV1UndeployModelRequest(); - buildCounterGoogleCloudAiplatformV1UndeployModelRequest++; - if (buildCounterGoogleCloudAiplatformV1UndeployModelRequest < 3) { - o.deployedModelId = 'foo'; - o.trafficSplit = buildUnnamed439(); +core.int buildCounterGoogleCloudAiplatformV1TensorboardBlobSequence = 0; +api.GoogleCloudAiplatformV1TensorboardBlobSequence +buildGoogleCloudAiplatformV1TensorboardBlobSequence() { + final o = api.GoogleCloudAiplatformV1TensorboardBlobSequence(); + buildCounterGoogleCloudAiplatformV1TensorboardBlobSequence++; + if (buildCounterGoogleCloudAiplatformV1TensorboardBlobSequence < 3) { + o.values = buildUnnamed442(); } - buildCounterGoogleCloudAiplatformV1UndeployModelRequest--; + buildCounterGoogleCloudAiplatformV1TensorboardBlobSequence--; return o; } -void checkGoogleCloudAiplatformV1UndeployModelRequest( - api.GoogleCloudAiplatformV1UndeployModelRequest o, +void checkGoogleCloudAiplatformV1TensorboardBlobSequence( + api.GoogleCloudAiplatformV1TensorboardBlobSequence o, ) { - buildCounterGoogleCloudAiplatformV1UndeployModelRequest++; - if (buildCounterGoogleCloudAiplatformV1UndeployModelRequest < 3) { - unittest.expect(o.deployedModelId!, unittest.equals('foo')); - checkUnnamed439(o.trafficSplit!); + buildCounterGoogleCloudAiplatformV1TensorboardBlobSequence++; + if (buildCounterGoogleCloudAiplatformV1TensorboardBlobSequence < 3) { + checkUnnamed442(o.values!); } - buildCounterGoogleCloudAiplatformV1UndeployModelRequest--; + buildCounterGoogleCloudAiplatformV1TensorboardBlobSequence--; } -core.int buildCounterGoogleCloudAiplatformV1UnmanagedContainerModel = 0; -api.GoogleCloudAiplatformV1UnmanagedContainerModel -buildGoogleCloudAiplatformV1UnmanagedContainerModel() { - final o = api.GoogleCloudAiplatformV1UnmanagedContainerModel(); - buildCounterGoogleCloudAiplatformV1UnmanagedContainerModel++; - if (buildCounterGoogleCloudAiplatformV1UnmanagedContainerModel < 3) { - o.artifactUri = 'foo'; - o.containerSpec = buildGoogleCloudAiplatformV1ModelContainerSpec(); - o.predictSchemata = buildGoogleCloudAiplatformV1PredictSchemata(); - } - buildCounterGoogleCloudAiplatformV1UnmanagedContainerModel--; - return o; -} +core.Map buildUnnamed443() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkGoogleCloudAiplatformV1UnmanagedContainerModel( - api.GoogleCloudAiplatformV1UnmanagedContainerModel o, -) { - buildCounterGoogleCloudAiplatformV1UnmanagedContainerModel++; - if (buildCounterGoogleCloudAiplatformV1UnmanagedContainerModel < 3) { - unittest.expect(o.artifactUri!, unittest.equals('foo')); - checkGoogleCloudAiplatformV1ModelContainerSpec(o.containerSpec!); - checkGoogleCloudAiplatformV1PredictSchemata(o.predictSchemata!); - } - buildCounterGoogleCloudAiplatformV1UnmanagedContainerModel--; +void checkUnnamed443(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest = - 0; -api.GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest -buildGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest() { - final o = api.GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest(); - buildCounterGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest++; - if (buildCounterGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest < 3) { - o.endpoint = buildGoogleCloudAiplatformV1Endpoint(); +core.int buildCounterGoogleCloudAiplatformV1TensorboardExperiment = 0; +api.GoogleCloudAiplatformV1TensorboardExperiment +buildGoogleCloudAiplatformV1TensorboardExperiment() { + final o = api.GoogleCloudAiplatformV1TensorboardExperiment(); + buildCounterGoogleCloudAiplatformV1TensorboardExperiment++; + if (buildCounterGoogleCloudAiplatformV1TensorboardExperiment < 3) { + o.createTime = 'foo'; + o.description = 'foo'; + o.displayName = 'foo'; + o.etag = 'foo'; + o.labels = buildUnnamed443(); + o.name = 'foo'; + o.source = 'foo'; + o.updateTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest--; + buildCounterGoogleCloudAiplatformV1TensorboardExperiment--; return o; } -void checkGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest( - api.GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest o, +void checkGoogleCloudAiplatformV1TensorboardExperiment( + api.GoogleCloudAiplatformV1TensorboardExperiment o, ) { - buildCounterGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest++; - if (buildCounterGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest < 3) { - checkGoogleCloudAiplatformV1Endpoint(o.endpoint!); + buildCounterGoogleCloudAiplatformV1TensorboardExperiment++; + if (buildCounterGoogleCloudAiplatformV1TensorboardExperiment < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.etag!, unittest.equals('foo')); + checkUnnamed443(o.labels!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.source!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest--; + buildCounterGoogleCloudAiplatformV1TensorboardExperiment--; } -core.int buildCounterGoogleCloudAiplatformV1UpdateExplanationDatasetRequest = 0; -api.GoogleCloudAiplatformV1UpdateExplanationDatasetRequest -buildGoogleCloudAiplatformV1UpdateExplanationDatasetRequest() { - final o = api.GoogleCloudAiplatformV1UpdateExplanationDatasetRequest(); - buildCounterGoogleCloudAiplatformV1UpdateExplanationDatasetRequest++; - if (buildCounterGoogleCloudAiplatformV1UpdateExplanationDatasetRequest < 3) { - o.examples = buildGoogleCloudAiplatformV1Examples(); - } - buildCounterGoogleCloudAiplatformV1UpdateExplanationDatasetRequest--; - return o; -} +core.Map buildUnnamed444() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkGoogleCloudAiplatformV1UpdateExplanationDatasetRequest( - api.GoogleCloudAiplatformV1UpdateExplanationDatasetRequest o, -) { - buildCounterGoogleCloudAiplatformV1UpdateExplanationDatasetRequest++; - if (buildCounterGoogleCloudAiplatformV1UpdateExplanationDatasetRequest < 3) { - checkGoogleCloudAiplatformV1Examples(o.examples!); - } - buildCounterGoogleCloudAiplatformV1UpdateExplanationDatasetRequest--; +void checkUnnamed444(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest = 0; -api.GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest -buildGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest() { - final o = api.GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest(); - buildCounterGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest++; - if (buildCounterGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest < 3) {} - buildCounterGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest--; +core.int buildCounterGoogleCloudAiplatformV1TensorboardRun = 0; +api.GoogleCloudAiplatformV1TensorboardRun +buildGoogleCloudAiplatformV1TensorboardRun() { + final o = api.GoogleCloudAiplatformV1TensorboardRun(); + buildCounterGoogleCloudAiplatformV1TensorboardRun++; + if (buildCounterGoogleCloudAiplatformV1TensorboardRun < 3) { + o.createTime = 'foo'; + o.description = 'foo'; + o.displayName = 'foo'; + o.etag = 'foo'; + o.labels = buildUnnamed444(); + o.name = 'foo'; + o.updateTime = 'foo'; + } + buildCounterGoogleCloudAiplatformV1TensorboardRun--; return o; } -void checkGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest( - api.GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest o, +void checkGoogleCloudAiplatformV1TensorboardRun( + api.GoogleCloudAiplatformV1TensorboardRun o, ) { - buildCounterGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest++; - if (buildCounterGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest < 3) {} - buildCounterGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest--; + buildCounterGoogleCloudAiplatformV1TensorboardRun++; + if (buildCounterGoogleCloudAiplatformV1TensorboardRun < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.etag!, unittest.equals('foo')); + checkUnnamed444(o.labels!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1TensorboardRun--; } -core.int buildCounterGoogleCloudAiplatformV1UploadModelRequest = 0; -api.GoogleCloudAiplatformV1UploadModelRequest -buildGoogleCloudAiplatformV1UploadModelRequest() { - final o = api.GoogleCloudAiplatformV1UploadModelRequest(); - buildCounterGoogleCloudAiplatformV1UploadModelRequest++; - if (buildCounterGoogleCloudAiplatformV1UploadModelRequest < 3) { - o.model = buildGoogleCloudAiplatformV1Model(); - o.modelId = 'foo'; - o.parentModel = 'foo'; - o.serviceAccount = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1TensorboardTensor = 0; +api.GoogleCloudAiplatformV1TensorboardTensor +buildGoogleCloudAiplatformV1TensorboardTensor() { + final o = api.GoogleCloudAiplatformV1TensorboardTensor(); + buildCounterGoogleCloudAiplatformV1TensorboardTensor++; + if (buildCounterGoogleCloudAiplatformV1TensorboardTensor < 3) { + o.value = 'foo'; + o.versionNumber = 42; } - buildCounterGoogleCloudAiplatformV1UploadModelRequest--; + buildCounterGoogleCloudAiplatformV1TensorboardTensor--; return o; } -void checkGoogleCloudAiplatformV1UploadModelRequest( - api.GoogleCloudAiplatformV1UploadModelRequest o, +void checkGoogleCloudAiplatformV1TensorboardTensor( + api.GoogleCloudAiplatformV1TensorboardTensor o, ) { - buildCounterGoogleCloudAiplatformV1UploadModelRequest++; - if (buildCounterGoogleCloudAiplatformV1UploadModelRequest < 3) { - checkGoogleCloudAiplatformV1Model(o.model!); - unittest.expect(o.modelId!, unittest.equals('foo')); - unittest.expect(o.parentModel!, unittest.equals('foo')); - unittest.expect(o.serviceAccount!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1TensorboardTensor++; + if (buildCounterGoogleCloudAiplatformV1TensorboardTensor < 3) { + unittest.expect(o.value!, unittest.equals('foo')); + unittest.expect(o.versionNumber!, unittest.equals(42)); } - buildCounterGoogleCloudAiplatformV1UploadModelRequest--; + buildCounterGoogleCloudAiplatformV1TensorboardTensor--; } -core.int buildCounterGoogleCloudAiplatformV1UploadRagFileConfig = 0; -api.GoogleCloudAiplatformV1UploadRagFileConfig -buildGoogleCloudAiplatformV1UploadRagFileConfig() { - final o = api.GoogleCloudAiplatformV1UploadRagFileConfig(); - buildCounterGoogleCloudAiplatformV1UploadRagFileConfig++; - if (buildCounterGoogleCloudAiplatformV1UploadRagFileConfig < 3) { - o.ragFileTransformationConfig = - buildGoogleCloudAiplatformV1RagFileTransformationConfig(); +core.int buildCounterGoogleCloudAiplatformV1TensorboardTimeSeries = 0; +api.GoogleCloudAiplatformV1TensorboardTimeSeries +buildGoogleCloudAiplatformV1TensorboardTimeSeries() { + final o = api.GoogleCloudAiplatformV1TensorboardTimeSeries(); + buildCounterGoogleCloudAiplatformV1TensorboardTimeSeries++; + if (buildCounterGoogleCloudAiplatformV1TensorboardTimeSeries < 3) { + o.createTime = 'foo'; + o.description = 'foo'; + o.displayName = 'foo'; + o.etag = 'foo'; + o.metadata = buildGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata(); + o.name = 'foo'; + o.pluginData = 'foo'; + o.pluginName = 'foo'; + o.updateTime = 'foo'; + o.valueType = 'foo'; } - buildCounterGoogleCloudAiplatformV1UploadRagFileConfig--; + buildCounterGoogleCloudAiplatformV1TensorboardTimeSeries--; return o; } -void checkGoogleCloudAiplatformV1UploadRagFileConfig( - api.GoogleCloudAiplatformV1UploadRagFileConfig o, +void checkGoogleCloudAiplatformV1TensorboardTimeSeries( + api.GoogleCloudAiplatformV1TensorboardTimeSeries o, ) { - buildCounterGoogleCloudAiplatformV1UploadRagFileConfig++; - if (buildCounterGoogleCloudAiplatformV1UploadRagFileConfig < 3) { - checkGoogleCloudAiplatformV1RagFileTransformationConfig( - o.ragFileTransformationConfig!, - ); + buildCounterGoogleCloudAiplatformV1TensorboardTimeSeries++; + if (buildCounterGoogleCloudAiplatformV1TensorboardTimeSeries < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.etag!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata(o.metadata!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.pluginData!, unittest.equals('foo')); + unittest.expect(o.pluginName!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); + unittest.expect(o.valueType!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1UploadRagFileConfig--; + buildCounterGoogleCloudAiplatformV1TensorboardTimeSeries--; } -core.int buildCounterGoogleCloudAiplatformV1UploadRagFileRequest = 0; -api.GoogleCloudAiplatformV1UploadRagFileRequest -buildGoogleCloudAiplatformV1UploadRagFileRequest() { - final o = api.GoogleCloudAiplatformV1UploadRagFileRequest(); - buildCounterGoogleCloudAiplatformV1UploadRagFileRequest++; - if (buildCounterGoogleCloudAiplatformV1UploadRagFileRequest < 3) { - o.ragFile = buildGoogleCloudAiplatformV1RagFile(); - o.uploadRagFileConfig = buildGoogleCloudAiplatformV1UploadRagFileConfig(); +core.int buildCounterGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata = 0; +api.GoogleCloudAiplatformV1TensorboardTimeSeriesMetadata +buildGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata() { + final o = api.GoogleCloudAiplatformV1TensorboardTimeSeriesMetadata(); + buildCounterGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata++; + if (buildCounterGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata < 3) { + o.maxBlobSequenceLength = 'foo'; + o.maxStep = 'foo'; + o.maxWallTime = 'foo'; } - buildCounterGoogleCloudAiplatformV1UploadRagFileRequest--; + buildCounterGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata--; return o; } -void checkGoogleCloudAiplatformV1UploadRagFileRequest( - api.GoogleCloudAiplatformV1UploadRagFileRequest o, +void checkGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata( + api.GoogleCloudAiplatformV1TensorboardTimeSeriesMetadata o, ) { - buildCounterGoogleCloudAiplatformV1UploadRagFileRequest++; - if (buildCounterGoogleCloudAiplatformV1UploadRagFileRequest < 3) { - checkGoogleCloudAiplatformV1RagFile(o.ragFile!); - checkGoogleCloudAiplatformV1UploadRagFileConfig(o.uploadRagFileConfig!); + buildCounterGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata++; + if (buildCounterGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata < 3) { + unittest.expect(o.maxBlobSequenceLength!, unittest.equals('foo')); + unittest.expect(o.maxStep!, unittest.equals('foo')); + unittest.expect(o.maxWallTime!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1UploadRagFileRequest--; + buildCounterGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata--; } -core.int buildCounterGoogleCloudAiplatformV1UploadRagFileResponse = 0; -api.GoogleCloudAiplatformV1UploadRagFileResponse -buildGoogleCloudAiplatformV1UploadRagFileResponse() { - final o = api.GoogleCloudAiplatformV1UploadRagFileResponse(); - buildCounterGoogleCloudAiplatformV1UploadRagFileResponse++; - if (buildCounterGoogleCloudAiplatformV1UploadRagFileResponse < 3) { - o.error = buildGoogleRpcStatus(); - o.ragFile = buildGoogleCloudAiplatformV1RagFile(); +core.int buildCounterGoogleCloudAiplatformV1ThresholdConfig = 0; +api.GoogleCloudAiplatformV1ThresholdConfig +buildGoogleCloudAiplatformV1ThresholdConfig() { + final o = api.GoogleCloudAiplatformV1ThresholdConfig(); + buildCounterGoogleCloudAiplatformV1ThresholdConfig++; + if (buildCounterGoogleCloudAiplatformV1ThresholdConfig < 3) { + o.value = 42.0; } - buildCounterGoogleCloudAiplatformV1UploadRagFileResponse--; + buildCounterGoogleCloudAiplatformV1ThresholdConfig--; return o; } -void checkGoogleCloudAiplatformV1UploadRagFileResponse( - api.GoogleCloudAiplatformV1UploadRagFileResponse o, +void checkGoogleCloudAiplatformV1ThresholdConfig( + api.GoogleCloudAiplatformV1ThresholdConfig o, ) { - buildCounterGoogleCloudAiplatformV1UploadRagFileResponse++; - if (buildCounterGoogleCloudAiplatformV1UploadRagFileResponse < 3) { - checkGoogleRpcStatus(o.error!); - checkGoogleCloudAiplatformV1RagFile(o.ragFile!); + buildCounterGoogleCloudAiplatformV1ThresholdConfig++; + if (buildCounterGoogleCloudAiplatformV1ThresholdConfig < 3) { + unittest.expect(o.value!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1UploadRagFileResponse--; + buildCounterGoogleCloudAiplatformV1ThresholdConfig--; } -core.List buildUnnamed440() => [ - buildGoogleCloudAiplatformV1IndexDatapoint(), - buildGoogleCloudAiplatformV1IndexDatapoint(), +core.List buildUnnamed445() => [ + buildGoogleCloudAiplatformV1TimeSeriesDataPoint(), + buildGoogleCloudAiplatformV1TimeSeriesDataPoint(), ]; -void checkUnnamed440(core.List o) { +void checkUnnamed445( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1IndexDatapoint(o[0]); - checkGoogleCloudAiplatformV1IndexDatapoint(o[1]); + checkGoogleCloudAiplatformV1TimeSeriesDataPoint(o[0]); + checkGoogleCloudAiplatformV1TimeSeriesDataPoint(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1UpsertDatapointsRequest = 0; -api.GoogleCloudAiplatformV1UpsertDatapointsRequest -buildGoogleCloudAiplatformV1UpsertDatapointsRequest() { - final o = api.GoogleCloudAiplatformV1UpsertDatapointsRequest(); - buildCounterGoogleCloudAiplatformV1UpsertDatapointsRequest++; - if (buildCounterGoogleCloudAiplatformV1UpsertDatapointsRequest < 3) { - o.datapoints = buildUnnamed440(); - o.updateMask = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1TimeSeriesData = 0; +api.GoogleCloudAiplatformV1TimeSeriesData +buildGoogleCloudAiplatformV1TimeSeriesData() { + final o = api.GoogleCloudAiplatformV1TimeSeriesData(); + buildCounterGoogleCloudAiplatformV1TimeSeriesData++; + if (buildCounterGoogleCloudAiplatformV1TimeSeriesData < 3) { + o.tensorboardTimeSeriesId = 'foo'; + o.valueType = 'foo'; + o.values = buildUnnamed445(); } - buildCounterGoogleCloudAiplatformV1UpsertDatapointsRequest--; + buildCounterGoogleCloudAiplatformV1TimeSeriesData--; return o; } -void checkGoogleCloudAiplatformV1UpsertDatapointsRequest( - api.GoogleCloudAiplatformV1UpsertDatapointsRequest o, +void checkGoogleCloudAiplatformV1TimeSeriesData( + api.GoogleCloudAiplatformV1TimeSeriesData o, ) { - buildCounterGoogleCloudAiplatformV1UpsertDatapointsRequest++; - if (buildCounterGoogleCloudAiplatformV1UpsertDatapointsRequest < 3) { - checkUnnamed440(o.datapoints!); - unittest.expect(o.updateMask!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1TimeSeriesData++; + if (buildCounterGoogleCloudAiplatformV1TimeSeriesData < 3) { + unittest.expect(o.tensorboardTimeSeriesId!, unittest.equals('foo')); + unittest.expect(o.valueType!, unittest.equals('foo')); + checkUnnamed445(o.values!); } - buildCounterGoogleCloudAiplatformV1UpsertDatapointsRequest--; + buildCounterGoogleCloudAiplatformV1TimeSeriesData--; } -core.int buildCounterGoogleCloudAiplatformV1UpsertDatapointsResponse = 0; -api.GoogleCloudAiplatformV1UpsertDatapointsResponse -buildGoogleCloudAiplatformV1UpsertDatapointsResponse() { - final o = api.GoogleCloudAiplatformV1UpsertDatapointsResponse(); - buildCounterGoogleCloudAiplatformV1UpsertDatapointsResponse++; - if (buildCounterGoogleCloudAiplatformV1UpsertDatapointsResponse < 3) {} - buildCounterGoogleCloudAiplatformV1UpsertDatapointsResponse--; +core.int buildCounterGoogleCloudAiplatformV1TimeSeriesDataPoint = 0; +api.GoogleCloudAiplatformV1TimeSeriesDataPoint +buildGoogleCloudAiplatformV1TimeSeriesDataPoint() { + final o = api.GoogleCloudAiplatformV1TimeSeriesDataPoint(); + buildCounterGoogleCloudAiplatformV1TimeSeriesDataPoint++; + if (buildCounterGoogleCloudAiplatformV1TimeSeriesDataPoint < 3) { + o.blobs = buildGoogleCloudAiplatformV1TensorboardBlobSequence(); + o.scalar = buildGoogleCloudAiplatformV1Scalar(); + o.step = 'foo'; + o.tensor = buildGoogleCloudAiplatformV1TensorboardTensor(); + o.wallTime = 'foo'; + } + buildCounterGoogleCloudAiplatformV1TimeSeriesDataPoint--; return o; } -void checkGoogleCloudAiplatformV1UpsertDatapointsResponse( - api.GoogleCloudAiplatformV1UpsertDatapointsResponse o, +void checkGoogleCloudAiplatformV1TimeSeriesDataPoint( + api.GoogleCloudAiplatformV1TimeSeriesDataPoint o, ) { - buildCounterGoogleCloudAiplatformV1UpsertDatapointsResponse++; - if (buildCounterGoogleCloudAiplatformV1UpsertDatapointsResponse < 3) {} - buildCounterGoogleCloudAiplatformV1UpsertDatapointsResponse--; + buildCounterGoogleCloudAiplatformV1TimeSeriesDataPoint++; + if (buildCounterGoogleCloudAiplatformV1TimeSeriesDataPoint < 3) { + checkGoogleCloudAiplatformV1TensorboardBlobSequence(o.blobs!); + checkGoogleCloudAiplatformV1Scalar(o.scalar!); + unittest.expect(o.step!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1TensorboardTensor(o.tensor!); + unittest.expect(o.wallTime!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1TimeSeriesDataPoint--; } -core.int buildCounterGoogleCloudAiplatformV1UrlContext = 0; -api.GoogleCloudAiplatformV1UrlContext buildGoogleCloudAiplatformV1UrlContext() { - final o = api.GoogleCloudAiplatformV1UrlContext(); - buildCounterGoogleCloudAiplatformV1UrlContext++; - if (buildCounterGoogleCloudAiplatformV1UrlContext < 3) {} - buildCounterGoogleCloudAiplatformV1UrlContext--; +core.int buildCounterGoogleCloudAiplatformV1TimestampSplit = 0; +api.GoogleCloudAiplatformV1TimestampSplit +buildGoogleCloudAiplatformV1TimestampSplit() { + final o = api.GoogleCloudAiplatformV1TimestampSplit(); + buildCounterGoogleCloudAiplatformV1TimestampSplit++; + if (buildCounterGoogleCloudAiplatformV1TimestampSplit < 3) { + o.key = 'foo'; + o.testFraction = 42.0; + o.trainingFraction = 42.0; + o.validationFraction = 42.0; + } + buildCounterGoogleCloudAiplatformV1TimestampSplit--; return o; } -void checkGoogleCloudAiplatformV1UrlContext( - api.GoogleCloudAiplatformV1UrlContext o, +void checkGoogleCloudAiplatformV1TimestampSplit( + api.GoogleCloudAiplatformV1TimestampSplit o, ) { - buildCounterGoogleCloudAiplatformV1UrlContext++; - if (buildCounterGoogleCloudAiplatformV1UrlContext < 3) {} - buildCounterGoogleCloudAiplatformV1UrlContext--; + buildCounterGoogleCloudAiplatformV1TimestampSplit++; + if (buildCounterGoogleCloudAiplatformV1TimestampSplit < 3) { + unittest.expect(o.key!, unittest.equals('foo')); + unittest.expect(o.testFraction!, unittest.equals(42.0)); + unittest.expect(o.trainingFraction!, unittest.equals(42.0)); + unittest.expect(o.validationFraction!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1TimestampSplit--; } -core.List buildUnnamed441() => [ - buildGoogleCloudAiplatformV1UrlMetadata(), - buildGoogleCloudAiplatformV1UrlMetadata(), -]; +core.List buildUnnamed446() => ['foo', 'foo']; -void checkUnnamed441(core.List o) { +void checkUnnamed446(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1UrlMetadata(o[0]); - checkGoogleCloudAiplatformV1UrlMetadata(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudAiplatformV1UrlContextMetadata = 0; -api.GoogleCloudAiplatformV1UrlContextMetadata -buildGoogleCloudAiplatformV1UrlContextMetadata() { - final o = api.GoogleCloudAiplatformV1UrlContextMetadata(); - buildCounterGoogleCloudAiplatformV1UrlContextMetadata++; - if (buildCounterGoogleCloudAiplatformV1UrlContextMetadata < 3) { - o.urlMetadata = buildUnnamed441(); +core.List buildUnnamed447() => ['foo', 'foo']; + +void checkUnnamed447(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1TokensInfo = 0; +api.GoogleCloudAiplatformV1TokensInfo buildGoogleCloudAiplatformV1TokensInfo() { + final o = api.GoogleCloudAiplatformV1TokensInfo(); + buildCounterGoogleCloudAiplatformV1TokensInfo++; + if (buildCounterGoogleCloudAiplatformV1TokensInfo < 3) { + o.role = 'foo'; + o.tokenIds = buildUnnamed446(); + o.tokens = buildUnnamed447(); } - buildCounterGoogleCloudAiplatformV1UrlContextMetadata--; + buildCounterGoogleCloudAiplatformV1TokensInfo--; return o; } -void checkGoogleCloudAiplatformV1UrlContextMetadata( - api.GoogleCloudAiplatformV1UrlContextMetadata o, +void checkGoogleCloudAiplatformV1TokensInfo( + api.GoogleCloudAiplatformV1TokensInfo o, ) { - buildCounterGoogleCloudAiplatformV1UrlContextMetadata++; - if (buildCounterGoogleCloudAiplatformV1UrlContextMetadata < 3) { - checkUnnamed441(o.urlMetadata!); + buildCounterGoogleCloudAiplatformV1TokensInfo++; + if (buildCounterGoogleCloudAiplatformV1TokensInfo < 3) { + unittest.expect(o.role!, unittest.equals('foo')); + checkUnnamed446(o.tokenIds!); + checkUnnamed447(o.tokens!); } - buildCounterGoogleCloudAiplatformV1UrlContextMetadata--; + buildCounterGoogleCloudAiplatformV1TokensInfo--; } -core.int buildCounterGoogleCloudAiplatformV1UrlMetadata = 0; -api.GoogleCloudAiplatformV1UrlMetadata -buildGoogleCloudAiplatformV1UrlMetadata() { - final o = api.GoogleCloudAiplatformV1UrlMetadata(); - buildCounterGoogleCloudAiplatformV1UrlMetadata++; - if (buildCounterGoogleCloudAiplatformV1UrlMetadata < 3) { - o.retrievedUrl = 'foo'; - o.urlRetrievalStatus = 'foo'; - } - buildCounterGoogleCloudAiplatformV1UrlMetadata--; - return o; -} +core.List buildUnnamed448() => [ + buildGoogleCloudAiplatformV1FunctionDeclaration(), + buildGoogleCloudAiplatformV1FunctionDeclaration(), +]; -void checkGoogleCloudAiplatformV1UrlMetadata( - api.GoogleCloudAiplatformV1UrlMetadata o, +void checkUnnamed448( + core.List o, ) { - buildCounterGoogleCloudAiplatformV1UrlMetadata++; - if (buildCounterGoogleCloudAiplatformV1UrlMetadata < 3) { - unittest.expect(o.retrievedUrl!, unittest.equals('foo')); - unittest.expect(o.urlRetrievalStatus!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1UrlMetadata--; + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1FunctionDeclaration(o[0]); + checkGoogleCloudAiplatformV1FunctionDeclaration(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1UserActionReference = 0; -api.GoogleCloudAiplatformV1UserActionReference -buildGoogleCloudAiplatformV1UserActionReference() { - final o = api.GoogleCloudAiplatformV1UserActionReference(); - buildCounterGoogleCloudAiplatformV1UserActionReference++; - if (buildCounterGoogleCloudAiplatformV1UserActionReference < 3) { - o.dataLabelingJob = 'foo'; - o.method = 'foo'; - o.operation = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1Tool = 0; +api.GoogleCloudAiplatformV1Tool buildGoogleCloudAiplatformV1Tool() { + final o = api.GoogleCloudAiplatformV1Tool(); + buildCounterGoogleCloudAiplatformV1Tool++; + if (buildCounterGoogleCloudAiplatformV1Tool < 3) { + o.codeExecution = buildGoogleCloudAiplatformV1ToolCodeExecution(); + o.enterpriseWebSearch = buildGoogleCloudAiplatformV1EnterpriseWebSearch(); + o.functionDeclarations = buildUnnamed448(); + o.googleMaps = buildGoogleCloudAiplatformV1GoogleMaps(); + o.googleSearch = buildGoogleCloudAiplatformV1ToolGoogleSearch(); + o.googleSearchRetrieval = + buildGoogleCloudAiplatformV1GoogleSearchRetrieval(); + o.retrieval = buildGoogleCloudAiplatformV1Retrieval(); + o.urlContext = buildGoogleCloudAiplatformV1UrlContext(); } - buildCounterGoogleCloudAiplatformV1UserActionReference--; + buildCounterGoogleCloudAiplatformV1Tool--; return o; } -void checkGoogleCloudAiplatformV1UserActionReference( - api.GoogleCloudAiplatformV1UserActionReference o, -) { - buildCounterGoogleCloudAiplatformV1UserActionReference++; - if (buildCounterGoogleCloudAiplatformV1UserActionReference < 3) { - unittest.expect(o.dataLabelingJob!, unittest.equals('foo')); - unittest.expect(o.method!, unittest.equals('foo')); - unittest.expect(o.operation!, unittest.equals('foo')); - } - buildCounterGoogleCloudAiplatformV1UserActionReference--; +void checkGoogleCloudAiplatformV1Tool(api.GoogleCloudAiplatformV1Tool o) { + buildCounterGoogleCloudAiplatformV1Tool++; + if (buildCounterGoogleCloudAiplatformV1Tool < 3) { + checkGoogleCloudAiplatformV1ToolCodeExecution(o.codeExecution!); + checkGoogleCloudAiplatformV1EnterpriseWebSearch(o.enterpriseWebSearch!); + checkUnnamed448(o.functionDeclarations!); + checkGoogleCloudAiplatformV1GoogleMaps(o.googleMaps!); + checkGoogleCloudAiplatformV1ToolGoogleSearch(o.googleSearch!); + checkGoogleCloudAiplatformV1GoogleSearchRetrieval(o.googleSearchRetrieval!); + checkGoogleCloudAiplatformV1Retrieval(o.retrieval!); + checkGoogleCloudAiplatformV1UrlContext(o.urlContext!); + } + buildCounterGoogleCloudAiplatformV1Tool--; } -core.int buildCounterGoogleCloudAiplatformV1Value = 0; -api.GoogleCloudAiplatformV1Value buildGoogleCloudAiplatformV1Value() { - final o = api.GoogleCloudAiplatformV1Value(); - buildCounterGoogleCloudAiplatformV1Value++; - if (buildCounterGoogleCloudAiplatformV1Value < 3) { - o.doubleValue = 42.0; - o.intValue = 'foo'; - o.stringValue = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ToolCall = 0; +api.GoogleCloudAiplatformV1ToolCall buildGoogleCloudAiplatformV1ToolCall() { + final o = api.GoogleCloudAiplatformV1ToolCall(); + buildCounterGoogleCloudAiplatformV1ToolCall++; + if (buildCounterGoogleCloudAiplatformV1ToolCall < 3) { + o.toolInput = 'foo'; + o.toolName = 'foo'; } - buildCounterGoogleCloudAiplatformV1Value--; + buildCounterGoogleCloudAiplatformV1ToolCall--; return o; } -void checkGoogleCloudAiplatformV1Value(api.GoogleCloudAiplatformV1Value o) { - buildCounterGoogleCloudAiplatformV1Value++; - if (buildCounterGoogleCloudAiplatformV1Value < 3) { - unittest.expect(o.doubleValue!, unittest.equals(42.0)); - unittest.expect(o.intValue!, unittest.equals('foo')); - unittest.expect(o.stringValue!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1ToolCall( + api.GoogleCloudAiplatformV1ToolCall o, +) { + buildCounterGoogleCloudAiplatformV1ToolCall++; + if (buildCounterGoogleCloudAiplatformV1ToolCall < 3) { + unittest.expect(o.toolInput!, unittest.equals('foo')); + unittest.expect(o.toolName!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1Value--; + buildCounterGoogleCloudAiplatformV1ToolCall--; } -core.List -buildUnnamed442() => [ - buildGoogleCloudAiplatformV1VertexAISearchDataStoreSpec(), - buildGoogleCloudAiplatformV1VertexAISearchDataStoreSpec(), -]; +core.List buildUnnamed449() => + [ + buildGoogleCloudAiplatformV1ToolCallValidInstance(), + buildGoogleCloudAiplatformV1ToolCallValidInstance(), + ]; -void checkUnnamed442( - core.List o, +void checkUnnamed449( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1VertexAISearchDataStoreSpec(o[0]); - checkGoogleCloudAiplatformV1VertexAISearchDataStoreSpec(o[1]); + checkGoogleCloudAiplatformV1ToolCallValidInstance(o[0]); + checkGoogleCloudAiplatformV1ToolCallValidInstance(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1VertexAISearch = 0; -api.GoogleCloudAiplatformV1VertexAISearch -buildGoogleCloudAiplatformV1VertexAISearch() { - final o = api.GoogleCloudAiplatformV1VertexAISearch(); - buildCounterGoogleCloudAiplatformV1VertexAISearch++; - if (buildCounterGoogleCloudAiplatformV1VertexAISearch < 3) { - o.dataStoreSpecs = buildUnnamed442(); - o.datastore = 'foo'; - o.engine = 'foo'; - o.filter = 'foo'; - o.maxResults = 42; +core.int buildCounterGoogleCloudAiplatformV1ToolCallValidInput = 0; +api.GoogleCloudAiplatformV1ToolCallValidInput +buildGoogleCloudAiplatformV1ToolCallValidInput() { + final o = api.GoogleCloudAiplatformV1ToolCallValidInput(); + buildCounterGoogleCloudAiplatformV1ToolCallValidInput++; + if (buildCounterGoogleCloudAiplatformV1ToolCallValidInput < 3) { + o.instances = buildUnnamed449(); + o.metricSpec = buildGoogleCloudAiplatformV1ToolCallValidSpec(); } - buildCounterGoogleCloudAiplatformV1VertexAISearch--; + buildCounterGoogleCloudAiplatformV1ToolCallValidInput--; return o; } -void checkGoogleCloudAiplatformV1VertexAISearch( - api.GoogleCloudAiplatformV1VertexAISearch o, +void checkGoogleCloudAiplatformV1ToolCallValidInput( + api.GoogleCloudAiplatformV1ToolCallValidInput o, ) { - buildCounterGoogleCloudAiplatformV1VertexAISearch++; - if (buildCounterGoogleCloudAiplatformV1VertexAISearch < 3) { - checkUnnamed442(o.dataStoreSpecs!); - unittest.expect(o.datastore!, unittest.equals('foo')); - unittest.expect(o.engine!, unittest.equals('foo')); - unittest.expect(o.filter!, unittest.equals('foo')); - unittest.expect(o.maxResults!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1ToolCallValidInput++; + if (buildCounterGoogleCloudAiplatformV1ToolCallValidInput < 3) { + checkUnnamed449(o.instances!); + checkGoogleCloudAiplatformV1ToolCallValidSpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1VertexAISearch--; + buildCounterGoogleCloudAiplatformV1ToolCallValidInput--; } -core.int buildCounterGoogleCloudAiplatformV1VertexAISearchDataStoreSpec = 0; -api.GoogleCloudAiplatformV1VertexAISearchDataStoreSpec -buildGoogleCloudAiplatformV1VertexAISearchDataStoreSpec() { - final o = api.GoogleCloudAiplatformV1VertexAISearchDataStoreSpec(); - buildCounterGoogleCloudAiplatformV1VertexAISearchDataStoreSpec++; - if (buildCounterGoogleCloudAiplatformV1VertexAISearchDataStoreSpec < 3) { - o.dataStore = 'foo'; - o.filter = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ToolCallValidInstance = 0; +api.GoogleCloudAiplatformV1ToolCallValidInstance +buildGoogleCloudAiplatformV1ToolCallValidInstance() { + final o = api.GoogleCloudAiplatformV1ToolCallValidInstance(); + buildCounterGoogleCloudAiplatformV1ToolCallValidInstance++; + if (buildCounterGoogleCloudAiplatformV1ToolCallValidInstance < 3) { + o.prediction = 'foo'; + o.reference = 'foo'; } - buildCounterGoogleCloudAiplatformV1VertexAISearchDataStoreSpec--; + buildCounterGoogleCloudAiplatformV1ToolCallValidInstance--; return o; } -void checkGoogleCloudAiplatformV1VertexAISearchDataStoreSpec( - api.GoogleCloudAiplatformV1VertexAISearchDataStoreSpec o, +void checkGoogleCloudAiplatformV1ToolCallValidInstance( + api.GoogleCloudAiplatformV1ToolCallValidInstance o, ) { - buildCounterGoogleCloudAiplatformV1VertexAISearchDataStoreSpec++; - if (buildCounterGoogleCloudAiplatformV1VertexAISearchDataStoreSpec < 3) { - unittest.expect(o.dataStore!, unittest.equals('foo')); - unittest.expect(o.filter!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ToolCallValidInstance++; + if (buildCounterGoogleCloudAiplatformV1ToolCallValidInstance < 3) { + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); } - buildCounterGoogleCloudAiplatformV1VertexAISearchDataStoreSpec--; + buildCounterGoogleCloudAiplatformV1ToolCallValidInstance--; } -core.int buildCounterGoogleCloudAiplatformV1VertexAiSearchConfig = 0; -api.GoogleCloudAiplatformV1VertexAiSearchConfig -buildGoogleCloudAiplatformV1VertexAiSearchConfig() { - final o = api.GoogleCloudAiplatformV1VertexAiSearchConfig(); - buildCounterGoogleCloudAiplatformV1VertexAiSearchConfig++; - if (buildCounterGoogleCloudAiplatformV1VertexAiSearchConfig < 3) { - o.servingConfig = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ToolCallValidMetricValue = 0; +api.GoogleCloudAiplatformV1ToolCallValidMetricValue +buildGoogleCloudAiplatformV1ToolCallValidMetricValue() { + final o = api.GoogleCloudAiplatformV1ToolCallValidMetricValue(); + buildCounterGoogleCloudAiplatformV1ToolCallValidMetricValue++; + if (buildCounterGoogleCloudAiplatformV1ToolCallValidMetricValue < 3) { + o.score = 42.0; } - buildCounterGoogleCloudAiplatformV1VertexAiSearchConfig--; + buildCounterGoogleCloudAiplatformV1ToolCallValidMetricValue--; return o; } -void checkGoogleCloudAiplatformV1VertexAiSearchConfig( - api.GoogleCloudAiplatformV1VertexAiSearchConfig o, +void checkGoogleCloudAiplatformV1ToolCallValidMetricValue( + api.GoogleCloudAiplatformV1ToolCallValidMetricValue o, ) { - buildCounterGoogleCloudAiplatformV1VertexAiSearchConfig++; - if (buildCounterGoogleCloudAiplatformV1VertexAiSearchConfig < 3) { - unittest.expect(o.servingConfig!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ToolCallValidMetricValue++; + if (buildCounterGoogleCloudAiplatformV1ToolCallValidMetricValue < 3) { + unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1VertexAiSearchConfig--; + buildCounterGoogleCloudAiplatformV1ToolCallValidMetricValue--; } -core.List -buildUnnamed443() => [ - buildGoogleCloudAiplatformV1VertexRagStoreRagResource(), - buildGoogleCloudAiplatformV1VertexRagStoreRagResource(), +core.List +buildUnnamed450() => [ + buildGoogleCloudAiplatformV1ToolCallValidMetricValue(), + buildGoogleCloudAiplatformV1ToolCallValidMetricValue(), ]; -void checkUnnamed443( - core.List o, +void checkUnnamed450( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1VertexRagStoreRagResource(o[0]); - checkGoogleCloudAiplatformV1VertexRagStoreRagResource(o[1]); + checkGoogleCloudAiplatformV1ToolCallValidMetricValue(o[0]); + checkGoogleCloudAiplatformV1ToolCallValidMetricValue(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1VertexRagStore = 0; -api.GoogleCloudAiplatformV1VertexRagStore -buildGoogleCloudAiplatformV1VertexRagStore() { - final o = api.GoogleCloudAiplatformV1VertexRagStore(); - buildCounterGoogleCloudAiplatformV1VertexRagStore++; - if (buildCounterGoogleCloudAiplatformV1VertexRagStore < 3) { - o.ragResources = buildUnnamed443(); - o.ragRetrievalConfig = buildGoogleCloudAiplatformV1RagRetrievalConfig(); - o.similarityTopK = 42; - o.vectorDistanceThreshold = 42.0; +core.int buildCounterGoogleCloudAiplatformV1ToolCallValidResults = 0; +api.GoogleCloudAiplatformV1ToolCallValidResults +buildGoogleCloudAiplatformV1ToolCallValidResults() { + final o = api.GoogleCloudAiplatformV1ToolCallValidResults(); + buildCounterGoogleCloudAiplatformV1ToolCallValidResults++; + if (buildCounterGoogleCloudAiplatformV1ToolCallValidResults < 3) { + o.toolCallValidMetricValues = buildUnnamed450(); } - buildCounterGoogleCloudAiplatformV1VertexRagStore--; + buildCounterGoogleCloudAiplatformV1ToolCallValidResults--; return o; } -void checkGoogleCloudAiplatformV1VertexRagStore( - api.GoogleCloudAiplatformV1VertexRagStore o, +void checkGoogleCloudAiplatformV1ToolCallValidResults( + api.GoogleCloudAiplatformV1ToolCallValidResults o, ) { - buildCounterGoogleCloudAiplatformV1VertexRagStore++; - if (buildCounterGoogleCloudAiplatformV1VertexRagStore < 3) { - checkUnnamed443(o.ragResources!); - checkGoogleCloudAiplatformV1RagRetrievalConfig(o.ragRetrievalConfig!); - unittest.expect(o.similarityTopK!, unittest.equals(42)); - unittest.expect(o.vectorDistanceThreshold!, unittest.equals(42.0)); + buildCounterGoogleCloudAiplatformV1ToolCallValidResults++; + if (buildCounterGoogleCloudAiplatformV1ToolCallValidResults < 3) { + checkUnnamed450(o.toolCallValidMetricValues!); } - buildCounterGoogleCloudAiplatformV1VertexRagStore--; + buildCounterGoogleCloudAiplatformV1ToolCallValidResults--; } -core.List buildUnnamed444() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1ToolCallValidSpec = 0; +api.GoogleCloudAiplatformV1ToolCallValidSpec +buildGoogleCloudAiplatformV1ToolCallValidSpec() { + final o = api.GoogleCloudAiplatformV1ToolCallValidSpec(); + buildCounterGoogleCloudAiplatformV1ToolCallValidSpec++; + if (buildCounterGoogleCloudAiplatformV1ToolCallValidSpec < 3) {} + buildCounterGoogleCloudAiplatformV1ToolCallValidSpec--; + return o; +} -void checkUnnamed444(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1ToolCallValidSpec( + api.GoogleCloudAiplatformV1ToolCallValidSpec o, +) { + buildCounterGoogleCloudAiplatformV1ToolCallValidSpec++; + if (buildCounterGoogleCloudAiplatformV1ToolCallValidSpec < 3) {} + buildCounterGoogleCloudAiplatformV1ToolCallValidSpec--; } -core.int buildCounterGoogleCloudAiplatformV1VertexRagStoreRagResource = 0; -api.GoogleCloudAiplatformV1VertexRagStoreRagResource -buildGoogleCloudAiplatformV1VertexRagStoreRagResource() { - final o = api.GoogleCloudAiplatformV1VertexRagStoreRagResource(); - buildCounterGoogleCloudAiplatformV1VertexRagStoreRagResource++; - if (buildCounterGoogleCloudAiplatformV1VertexRagStoreRagResource < 3) { - o.ragCorpus = 'foo'; - o.ragFileIds = buildUnnamed444(); - } - buildCounterGoogleCloudAiplatformV1VertexRagStoreRagResource--; +core.int buildCounterGoogleCloudAiplatformV1ToolCodeExecution = 0; +api.GoogleCloudAiplatformV1ToolCodeExecution +buildGoogleCloudAiplatformV1ToolCodeExecution() { + final o = api.GoogleCloudAiplatformV1ToolCodeExecution(); + buildCounterGoogleCloudAiplatformV1ToolCodeExecution++; + if (buildCounterGoogleCloudAiplatformV1ToolCodeExecution < 3) {} + buildCounterGoogleCloudAiplatformV1ToolCodeExecution--; return o; } -void checkGoogleCloudAiplatformV1VertexRagStoreRagResource( - api.GoogleCloudAiplatformV1VertexRagStoreRagResource o, +void checkGoogleCloudAiplatformV1ToolCodeExecution( + api.GoogleCloudAiplatformV1ToolCodeExecution o, ) { - buildCounterGoogleCloudAiplatformV1VertexRagStoreRagResource++; - if (buildCounterGoogleCloudAiplatformV1VertexRagStoreRagResource < 3) { - unittest.expect(o.ragCorpus!, unittest.equals('foo')); - checkUnnamed444(o.ragFileIds!); - } - buildCounterGoogleCloudAiplatformV1VertexRagStoreRagResource--; + buildCounterGoogleCloudAiplatformV1ToolCodeExecution++; + if (buildCounterGoogleCloudAiplatformV1ToolCodeExecution < 3) {} + buildCounterGoogleCloudAiplatformV1ToolCodeExecution--; } -core.int buildCounterGoogleCloudAiplatformV1VideoMetadata = 0; -api.GoogleCloudAiplatformV1VideoMetadata -buildGoogleCloudAiplatformV1VideoMetadata() { - final o = api.GoogleCloudAiplatformV1VideoMetadata(); - buildCounterGoogleCloudAiplatformV1VideoMetadata++; - if (buildCounterGoogleCloudAiplatformV1VideoMetadata < 3) { - o.endOffset = 'foo'; - o.fps = 42.0; - o.startOffset = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ToolConfig = 0; +api.GoogleCloudAiplatformV1ToolConfig buildGoogleCloudAiplatformV1ToolConfig() { + final o = api.GoogleCloudAiplatformV1ToolConfig(); + buildCounterGoogleCloudAiplatformV1ToolConfig++; + if (buildCounterGoogleCloudAiplatformV1ToolConfig < 3) { + o.functionCallingConfig = + buildGoogleCloudAiplatformV1FunctionCallingConfig(); + o.retrievalConfig = buildGoogleCloudAiplatformV1RetrievalConfig(); } - buildCounterGoogleCloudAiplatformV1VideoMetadata--; + buildCounterGoogleCloudAiplatformV1ToolConfig--; return o; } -void checkGoogleCloudAiplatformV1VideoMetadata( - api.GoogleCloudAiplatformV1VideoMetadata o, +void checkGoogleCloudAiplatformV1ToolConfig( + api.GoogleCloudAiplatformV1ToolConfig o, ) { - buildCounterGoogleCloudAiplatformV1VideoMetadata++; - if (buildCounterGoogleCloudAiplatformV1VideoMetadata < 3) { - unittest.expect(o.endOffset!, unittest.equals('foo')); - unittest.expect(o.fps!, unittest.equals(42.0)); - unittest.expect(o.startOffset!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ToolConfig++; + if (buildCounterGoogleCloudAiplatformV1ToolConfig < 3) { + checkGoogleCloudAiplatformV1FunctionCallingConfig(o.functionCallingConfig!); + checkGoogleCloudAiplatformV1RetrievalConfig(o.retrievalConfig!); } - buildCounterGoogleCloudAiplatformV1VideoMetadata--; + buildCounterGoogleCloudAiplatformV1ToolConfig--; } -core.int buildCounterGoogleCloudAiplatformV1VoiceConfig = 0; -api.GoogleCloudAiplatformV1VoiceConfig -buildGoogleCloudAiplatformV1VoiceConfig() { - final o = api.GoogleCloudAiplatformV1VoiceConfig(); - buildCounterGoogleCloudAiplatformV1VoiceConfig++; - if (buildCounterGoogleCloudAiplatformV1VoiceConfig < 3) { - o.prebuiltVoiceConfig = buildGoogleCloudAiplatformV1PrebuiltVoiceConfig(); +core.List buildUnnamed451() => ['foo', 'foo']; + +void checkUnnamed451(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudAiplatformV1ToolGoogleSearch = 0; +api.GoogleCloudAiplatformV1ToolGoogleSearch +buildGoogleCloudAiplatformV1ToolGoogleSearch() { + final o = api.GoogleCloudAiplatformV1ToolGoogleSearch(); + buildCounterGoogleCloudAiplatformV1ToolGoogleSearch++; + if (buildCounterGoogleCloudAiplatformV1ToolGoogleSearch < 3) { + o.excludeDomains = buildUnnamed451(); } - buildCounterGoogleCloudAiplatformV1VoiceConfig--; + buildCounterGoogleCloudAiplatformV1ToolGoogleSearch--; return o; } -void checkGoogleCloudAiplatformV1VoiceConfig( - api.GoogleCloudAiplatformV1VoiceConfig o, +void checkGoogleCloudAiplatformV1ToolGoogleSearch( + api.GoogleCloudAiplatformV1ToolGoogleSearch o, ) { - buildCounterGoogleCloudAiplatformV1VoiceConfig++; - if (buildCounterGoogleCloudAiplatformV1VoiceConfig < 3) { - checkGoogleCloudAiplatformV1PrebuiltVoiceConfig(o.prebuiltVoiceConfig!); + buildCounterGoogleCloudAiplatformV1ToolGoogleSearch++; + if (buildCounterGoogleCloudAiplatformV1ToolGoogleSearch < 3) { + checkUnnamed451(o.excludeDomains!); } - buildCounterGoogleCloudAiplatformV1VoiceConfig--; + buildCounterGoogleCloudAiplatformV1ToolGoogleSearch--; } -core.List buildUnnamed445() => [ - buildGoogleCloudAiplatformV1NfsMount(), - buildGoogleCloudAiplatformV1NfsMount(), -]; +core.List buildUnnamed452() => + [ + buildGoogleCloudAiplatformV1ToolNameMatchInstance(), + buildGoogleCloudAiplatformV1ToolNameMatchInstance(), + ]; -void checkUnnamed445(core.List o) { +void checkUnnamed452( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1NfsMount(o[0]); - checkGoogleCloudAiplatformV1NfsMount(o[1]); + checkGoogleCloudAiplatformV1ToolNameMatchInstance(o[0]); + checkGoogleCloudAiplatformV1ToolNameMatchInstance(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1WorkerPoolSpec = 0; -api.GoogleCloudAiplatformV1WorkerPoolSpec -buildGoogleCloudAiplatformV1WorkerPoolSpec() { - final o = api.GoogleCloudAiplatformV1WorkerPoolSpec(); - buildCounterGoogleCloudAiplatformV1WorkerPoolSpec++; - if (buildCounterGoogleCloudAiplatformV1WorkerPoolSpec < 3) { - o.containerSpec = buildGoogleCloudAiplatformV1ContainerSpec(); - o.diskSpec = buildGoogleCloudAiplatformV1DiskSpec(); - o.machineSpec = buildGoogleCloudAiplatformV1MachineSpec(); - o.nfsMounts = buildUnnamed445(); - o.pythonPackageSpec = buildGoogleCloudAiplatformV1PythonPackageSpec(); - o.replicaCount = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ToolNameMatchInput = 0; +api.GoogleCloudAiplatformV1ToolNameMatchInput +buildGoogleCloudAiplatformV1ToolNameMatchInput() { + final o = api.GoogleCloudAiplatformV1ToolNameMatchInput(); + buildCounterGoogleCloudAiplatformV1ToolNameMatchInput++; + if (buildCounterGoogleCloudAiplatformV1ToolNameMatchInput < 3) { + o.instances = buildUnnamed452(); + o.metricSpec = buildGoogleCloudAiplatformV1ToolNameMatchSpec(); } - buildCounterGoogleCloudAiplatformV1WorkerPoolSpec--; + buildCounterGoogleCloudAiplatformV1ToolNameMatchInput--; return o; } -void checkGoogleCloudAiplatformV1WorkerPoolSpec( - api.GoogleCloudAiplatformV1WorkerPoolSpec o, +void checkGoogleCloudAiplatformV1ToolNameMatchInput( + api.GoogleCloudAiplatformV1ToolNameMatchInput o, ) { - buildCounterGoogleCloudAiplatformV1WorkerPoolSpec++; - if (buildCounterGoogleCloudAiplatformV1WorkerPoolSpec < 3) { - checkGoogleCloudAiplatformV1ContainerSpec(o.containerSpec!); - checkGoogleCloudAiplatformV1DiskSpec(o.diskSpec!); - checkGoogleCloudAiplatformV1MachineSpec(o.machineSpec!); - checkUnnamed445(o.nfsMounts!); - checkGoogleCloudAiplatformV1PythonPackageSpec(o.pythonPackageSpec!); - unittest.expect(o.replicaCount!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ToolNameMatchInput++; + if (buildCounterGoogleCloudAiplatformV1ToolNameMatchInput < 3) { + checkUnnamed452(o.instances!); + checkGoogleCloudAiplatformV1ToolNameMatchSpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1WorkerPoolSpec--; + buildCounterGoogleCloudAiplatformV1ToolNameMatchInput--; } -core.Map -buildUnnamed446() => { - 'x': buildGoogleCloudAiplatformV1FeatureValue(), - 'y': buildGoogleCloudAiplatformV1FeatureValue(), -}; +core.int buildCounterGoogleCloudAiplatformV1ToolNameMatchInstance = 0; +api.GoogleCloudAiplatformV1ToolNameMatchInstance +buildGoogleCloudAiplatformV1ToolNameMatchInstance() { + final o = api.GoogleCloudAiplatformV1ToolNameMatchInstance(); + buildCounterGoogleCloudAiplatformV1ToolNameMatchInstance++; + if (buildCounterGoogleCloudAiplatformV1ToolNameMatchInstance < 3) { + o.prediction = 'foo'; + o.reference = 'foo'; + } + buildCounterGoogleCloudAiplatformV1ToolNameMatchInstance--; + return o; +} -void checkUnnamed446( - core.Map o, +void checkGoogleCloudAiplatformV1ToolNameMatchInstance( + api.GoogleCloudAiplatformV1ToolNameMatchInstance o, ) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1FeatureValue(o['x']!); - checkGoogleCloudAiplatformV1FeatureValue(o['y']!); + buildCounterGoogleCloudAiplatformV1ToolNameMatchInstance++; + if (buildCounterGoogleCloudAiplatformV1ToolNameMatchInstance < 3) { + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1ToolNameMatchInstance--; } -core.int buildCounterGoogleCloudAiplatformV1WriteFeatureValuesPayload = 0; -api.GoogleCloudAiplatformV1WriteFeatureValuesPayload -buildGoogleCloudAiplatformV1WriteFeatureValuesPayload() { - final o = api.GoogleCloudAiplatformV1WriteFeatureValuesPayload(); - buildCounterGoogleCloudAiplatformV1WriteFeatureValuesPayload++; - if (buildCounterGoogleCloudAiplatformV1WriteFeatureValuesPayload < 3) { - o.entityId = 'foo'; - o.featureValues = buildUnnamed446(); +core.int buildCounterGoogleCloudAiplatformV1ToolNameMatchMetricValue = 0; +api.GoogleCloudAiplatformV1ToolNameMatchMetricValue +buildGoogleCloudAiplatformV1ToolNameMatchMetricValue() { + final o = api.GoogleCloudAiplatformV1ToolNameMatchMetricValue(); + buildCounterGoogleCloudAiplatformV1ToolNameMatchMetricValue++; + if (buildCounterGoogleCloudAiplatformV1ToolNameMatchMetricValue < 3) { + o.score = 42.0; } - buildCounterGoogleCloudAiplatformV1WriteFeatureValuesPayload--; + buildCounterGoogleCloudAiplatformV1ToolNameMatchMetricValue--; return o; } -void checkGoogleCloudAiplatformV1WriteFeatureValuesPayload( - api.GoogleCloudAiplatformV1WriteFeatureValuesPayload o, +void checkGoogleCloudAiplatformV1ToolNameMatchMetricValue( + api.GoogleCloudAiplatformV1ToolNameMatchMetricValue o, ) { - buildCounterGoogleCloudAiplatformV1WriteFeatureValuesPayload++; - if (buildCounterGoogleCloudAiplatformV1WriteFeatureValuesPayload < 3) { - unittest.expect(o.entityId!, unittest.equals('foo')); - checkUnnamed446(o.featureValues!); + buildCounterGoogleCloudAiplatformV1ToolNameMatchMetricValue++; + if (buildCounterGoogleCloudAiplatformV1ToolNameMatchMetricValue < 3) { + unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleCloudAiplatformV1WriteFeatureValuesPayload--; + buildCounterGoogleCloudAiplatformV1ToolNameMatchMetricValue--; } -core.List -buildUnnamed447() => [ - buildGoogleCloudAiplatformV1WriteFeatureValuesPayload(), - buildGoogleCloudAiplatformV1WriteFeatureValuesPayload(), +core.List +buildUnnamed453() => [ + buildGoogleCloudAiplatformV1ToolNameMatchMetricValue(), + buildGoogleCloudAiplatformV1ToolNameMatchMetricValue(), ]; -void checkUnnamed447( - core.List o, +void checkUnnamed453( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1WriteFeatureValuesPayload(o[0]); - checkGoogleCloudAiplatformV1WriteFeatureValuesPayload(o[1]); + checkGoogleCloudAiplatformV1ToolNameMatchMetricValue(o[0]); + checkGoogleCloudAiplatformV1ToolNameMatchMetricValue(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1WriteFeatureValuesRequest = 0; -api.GoogleCloudAiplatformV1WriteFeatureValuesRequest -buildGoogleCloudAiplatformV1WriteFeatureValuesRequest() { - final o = api.GoogleCloudAiplatformV1WriteFeatureValuesRequest(); - buildCounterGoogleCloudAiplatformV1WriteFeatureValuesRequest++; - if (buildCounterGoogleCloudAiplatformV1WriteFeatureValuesRequest < 3) { - o.payloads = buildUnnamed447(); +core.int buildCounterGoogleCloudAiplatformV1ToolNameMatchResults = 0; +api.GoogleCloudAiplatformV1ToolNameMatchResults +buildGoogleCloudAiplatformV1ToolNameMatchResults() { + final o = api.GoogleCloudAiplatformV1ToolNameMatchResults(); + buildCounterGoogleCloudAiplatformV1ToolNameMatchResults++; + if (buildCounterGoogleCloudAiplatformV1ToolNameMatchResults < 3) { + o.toolNameMatchMetricValues = buildUnnamed453(); } - buildCounterGoogleCloudAiplatformV1WriteFeatureValuesRequest--; + buildCounterGoogleCloudAiplatformV1ToolNameMatchResults--; return o; } -void checkGoogleCloudAiplatformV1WriteFeatureValuesRequest( - api.GoogleCloudAiplatformV1WriteFeatureValuesRequest o, +void checkGoogleCloudAiplatformV1ToolNameMatchResults( + api.GoogleCloudAiplatformV1ToolNameMatchResults o, ) { - buildCounterGoogleCloudAiplatformV1WriteFeatureValuesRequest++; - if (buildCounterGoogleCloudAiplatformV1WriteFeatureValuesRequest < 3) { - checkUnnamed447(o.payloads!); + buildCounterGoogleCloudAiplatformV1ToolNameMatchResults++; + if (buildCounterGoogleCloudAiplatformV1ToolNameMatchResults < 3) { + checkUnnamed453(o.toolNameMatchMetricValues!); } - buildCounterGoogleCloudAiplatformV1WriteFeatureValuesRequest--; + buildCounterGoogleCloudAiplatformV1ToolNameMatchResults--; } -core.int buildCounterGoogleCloudAiplatformV1WriteFeatureValuesResponse = 0; -api.GoogleCloudAiplatformV1WriteFeatureValuesResponse -buildGoogleCloudAiplatformV1WriteFeatureValuesResponse() { - final o = api.GoogleCloudAiplatformV1WriteFeatureValuesResponse(); - buildCounterGoogleCloudAiplatformV1WriteFeatureValuesResponse++; - if (buildCounterGoogleCloudAiplatformV1WriteFeatureValuesResponse < 3) {} - buildCounterGoogleCloudAiplatformV1WriteFeatureValuesResponse--; +core.int buildCounterGoogleCloudAiplatformV1ToolNameMatchSpec = 0; +api.GoogleCloudAiplatformV1ToolNameMatchSpec +buildGoogleCloudAiplatformV1ToolNameMatchSpec() { + final o = api.GoogleCloudAiplatformV1ToolNameMatchSpec(); + buildCounterGoogleCloudAiplatformV1ToolNameMatchSpec++; + if (buildCounterGoogleCloudAiplatformV1ToolNameMatchSpec < 3) {} + buildCounterGoogleCloudAiplatformV1ToolNameMatchSpec--; return o; } -void checkGoogleCloudAiplatformV1WriteFeatureValuesResponse( - api.GoogleCloudAiplatformV1WriteFeatureValuesResponse o, +void checkGoogleCloudAiplatformV1ToolNameMatchSpec( + api.GoogleCloudAiplatformV1ToolNameMatchSpec o, ) { - buildCounterGoogleCloudAiplatformV1WriteFeatureValuesResponse++; - if (buildCounterGoogleCloudAiplatformV1WriteFeatureValuesResponse < 3) {} - buildCounterGoogleCloudAiplatformV1WriteFeatureValuesResponse--; + buildCounterGoogleCloudAiplatformV1ToolNameMatchSpec++; + if (buildCounterGoogleCloudAiplatformV1ToolNameMatchSpec < 3) {} + buildCounterGoogleCloudAiplatformV1ToolNameMatchSpec--; } -core.List -buildUnnamed448() => [ - buildGoogleCloudAiplatformV1WriteTensorboardRunDataRequest(), - buildGoogleCloudAiplatformV1WriteTensorboardRunDataRequest(), +core.List +buildUnnamed454() => [ + buildGoogleCloudAiplatformV1ToolParameterKVMatchInstance(), + buildGoogleCloudAiplatformV1ToolParameterKVMatchInstance(), ]; -void checkUnnamed448( - core.List o, +void checkUnnamed454( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1WriteTensorboardRunDataRequest(o[0]); - checkGoogleCloudAiplatformV1WriteTensorboardRunDataRequest(o[1]); + checkGoogleCloudAiplatformV1ToolParameterKVMatchInstance(o[0]); + checkGoogleCloudAiplatformV1ToolParameterKVMatchInstance(o[1]); } -core.int -buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest = 0; -api.GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest -buildGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest() { - final o = api.GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest(); - buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest++; - if (buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest < - 3) { - o.writeRunDataRequests = buildUnnamed448(); +core.int buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInput = 0; +api.GoogleCloudAiplatformV1ToolParameterKVMatchInput +buildGoogleCloudAiplatformV1ToolParameterKVMatchInput() { + final o = api.GoogleCloudAiplatformV1ToolParameterKVMatchInput(); + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInput++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInput < 3) { + o.instances = buildUnnamed454(); + o.metricSpec = buildGoogleCloudAiplatformV1ToolParameterKVMatchSpec(); } - buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest--; + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInput--; return o; } -void checkGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest( - api.GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest o, +void checkGoogleCloudAiplatformV1ToolParameterKVMatchInput( + api.GoogleCloudAiplatformV1ToolParameterKVMatchInput o, ) { - buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest++; - if (buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest < - 3) { - checkUnnamed448(o.writeRunDataRequests!); + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInput++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInput < 3) { + checkUnnamed454(o.instances!); + checkGoogleCloudAiplatformV1ToolParameterKVMatchSpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest--; + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInput--; } -core.int -buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse = 0; -api.GoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse -buildGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse() { - final o = api.GoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse(); - buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse++; - if (buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse < - 3) {} - buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse--; +core.int buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInstance = 0; +api.GoogleCloudAiplatformV1ToolParameterKVMatchInstance +buildGoogleCloudAiplatformV1ToolParameterKVMatchInstance() { + final o = api.GoogleCloudAiplatformV1ToolParameterKVMatchInstance(); + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInstance++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInstance < 3) { + o.prediction = 'foo'; + o.reference = 'foo'; + } + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInstance--; return o; } -void checkGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse( - api.GoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse o, +void checkGoogleCloudAiplatformV1ToolParameterKVMatchInstance( + api.GoogleCloudAiplatformV1ToolParameterKVMatchInstance o, ) { - buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse++; - if (buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse < - 3) {} - buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse--; + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInstance++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInstance < 3) { + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchInstance--; } -core.List buildUnnamed449() => [ - buildGoogleCloudAiplatformV1TimeSeriesData(), - buildGoogleCloudAiplatformV1TimeSeriesData(), +core.int buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue = 0; +api.GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue +buildGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue() { + final o = api.GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue(); + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue < 3) { + o.score = 42.0; + } + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue--; + return o; +} + +void checkGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue( + api.GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue o, +) { + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue < 3) { + unittest.expect(o.score!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue--; +} + +core.List +buildUnnamed455() => [ + buildGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue(), + buildGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue(), ]; -void checkUnnamed449(core.List o) { +void checkUnnamed455( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudAiplatformV1TimeSeriesData(o[0]); - checkGoogleCloudAiplatformV1TimeSeriesData(o[1]); + checkGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue(o[0]); + checkGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue(o[1]); } -core.int buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataRequest = 0; -api.GoogleCloudAiplatformV1WriteTensorboardRunDataRequest -buildGoogleCloudAiplatformV1WriteTensorboardRunDataRequest() { - final o = api.GoogleCloudAiplatformV1WriteTensorboardRunDataRequest(); - buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataRequest++; - if (buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataRequest < 3) { - o.tensorboardRun = 'foo'; - o.timeSeriesData = buildUnnamed449(); +core.int buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchResults = 0; +api.GoogleCloudAiplatformV1ToolParameterKVMatchResults +buildGoogleCloudAiplatformV1ToolParameterKVMatchResults() { + final o = api.GoogleCloudAiplatformV1ToolParameterKVMatchResults(); + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchResults++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchResults < 3) { + o.toolParameterKvMatchMetricValues = buildUnnamed455(); } - buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataRequest--; + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchResults--; return o; } -void checkGoogleCloudAiplatformV1WriteTensorboardRunDataRequest( - api.GoogleCloudAiplatformV1WriteTensorboardRunDataRequest o, +void checkGoogleCloudAiplatformV1ToolParameterKVMatchResults( + api.GoogleCloudAiplatformV1ToolParameterKVMatchResults o, ) { - buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataRequest++; - if (buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataRequest < 3) { - unittest.expect(o.tensorboardRun!, unittest.equals('foo')); - checkUnnamed449(o.timeSeriesData!); + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchResults++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchResults < 3) { + checkUnnamed455(o.toolParameterKvMatchMetricValues!); } - buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataRequest--; + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchResults--; } -core.int buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataResponse = 0; -api.GoogleCloudAiplatformV1WriteTensorboardRunDataResponse -buildGoogleCloudAiplatformV1WriteTensorboardRunDataResponse() { - final o = api.GoogleCloudAiplatformV1WriteTensorboardRunDataResponse(); - buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataResponse++; - if (buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataResponse < 3) {} - buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataResponse--; +core.int buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchSpec = 0; +api.GoogleCloudAiplatformV1ToolParameterKVMatchSpec +buildGoogleCloudAiplatformV1ToolParameterKVMatchSpec() { + final o = api.GoogleCloudAiplatformV1ToolParameterKVMatchSpec(); + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchSpec++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchSpec < 3) { + o.useStrictStringMatch = true; + } + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchSpec--; return o; } -void checkGoogleCloudAiplatformV1WriteTensorboardRunDataResponse( - api.GoogleCloudAiplatformV1WriteTensorboardRunDataResponse o, +void checkGoogleCloudAiplatformV1ToolParameterKVMatchSpec( + api.GoogleCloudAiplatformV1ToolParameterKVMatchSpec o, ) { - buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataResponse++; - if (buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataResponse < 3) {} - buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataResponse--; + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchSpec++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchSpec < 3) { + unittest.expect(o.useStrictStringMatch!, unittest.isTrue); + } + buildCounterGoogleCloudAiplatformV1ToolParameterKVMatchSpec--; } -core.int buildCounterGoogleCloudAiplatformV1XraiAttribution = 0; -api.GoogleCloudAiplatformV1XraiAttribution -buildGoogleCloudAiplatformV1XraiAttribution() { - final o = api.GoogleCloudAiplatformV1XraiAttribution(); - buildCounterGoogleCloudAiplatformV1XraiAttribution++; - if (buildCounterGoogleCloudAiplatformV1XraiAttribution < 3) { - o.blurBaselineConfig = buildGoogleCloudAiplatformV1BlurBaselineConfig(); - o.smoothGradConfig = buildGoogleCloudAiplatformV1SmoothGradConfig(); - o.stepCount = 42; +core.List +buildUnnamed456() => [ + buildGoogleCloudAiplatformV1ToolParameterKeyMatchInstance(), + buildGoogleCloudAiplatformV1ToolParameterKeyMatchInstance(), +]; + +void checkUnnamed456( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1ToolParameterKeyMatchInstance(o[0]); + checkGoogleCloudAiplatformV1ToolParameterKeyMatchInstance(o[1]); +} + +core.int buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInput = 0; +api.GoogleCloudAiplatformV1ToolParameterKeyMatchInput +buildGoogleCloudAiplatformV1ToolParameterKeyMatchInput() { + final o = api.GoogleCloudAiplatformV1ToolParameterKeyMatchInput(); + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInput++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInput < 3) { + o.instances = buildUnnamed456(); + o.metricSpec = buildGoogleCloudAiplatformV1ToolParameterKeyMatchSpec(); } - buildCounterGoogleCloudAiplatformV1XraiAttribution--; + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInput--; return o; } -void checkGoogleCloudAiplatformV1XraiAttribution( - api.GoogleCloudAiplatformV1XraiAttribution o, +void checkGoogleCloudAiplatformV1ToolParameterKeyMatchInput( + api.GoogleCloudAiplatformV1ToolParameterKeyMatchInput o, ) { - buildCounterGoogleCloudAiplatformV1XraiAttribution++; - if (buildCounterGoogleCloudAiplatformV1XraiAttribution < 3) { - checkGoogleCloudAiplatformV1BlurBaselineConfig(o.blurBaselineConfig!); - checkGoogleCloudAiplatformV1SmoothGradConfig(o.smoothGradConfig!); - unittest.expect(o.stepCount!, unittest.equals(42)); + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInput++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInput < 3) { + checkUnnamed456(o.instances!); + checkGoogleCloudAiplatformV1ToolParameterKeyMatchSpec(o.metricSpec!); } - buildCounterGoogleCloudAiplatformV1XraiAttribution--; + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInput--; } -core.List buildUnnamed450() => [ - buildGoogleCloudLocationLocation(), - buildGoogleCloudLocationLocation(), +core.int buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInstance = 0; +api.GoogleCloudAiplatformV1ToolParameterKeyMatchInstance +buildGoogleCloudAiplatformV1ToolParameterKeyMatchInstance() { + final o = api.GoogleCloudAiplatformV1ToolParameterKeyMatchInstance(); + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInstance++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInstance < 3) { + o.prediction = 'foo'; + o.reference = 'foo'; + } + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInstance--; + return o; +} + +void checkGoogleCloudAiplatformV1ToolParameterKeyMatchInstance( + api.GoogleCloudAiplatformV1ToolParameterKeyMatchInstance o, +) { + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInstance++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInstance < 3) { + unittest.expect(o.prediction!, unittest.equals('foo')); + unittest.expect(o.reference!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchInstance--; +} + +core.int buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue = + 0; +api.GoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue +buildGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue() { + final o = api.GoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue(); + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue < 3) { + o.score = 42.0; + } + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue--; + return o; +} + +void checkGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue( + api.GoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue o, +) { + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue < 3) { + unittest.expect(o.score!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue--; +} + +core.List +buildUnnamed457() => [ + buildGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue(), + buildGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue(), ]; -void checkUnnamed450(core.List o) { +void checkUnnamed457( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudLocationLocation(o[0]); - checkGoogleCloudLocationLocation(o[1]); + checkGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue(o[0]); + checkGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue(o[1]); } -core.int buildCounterGoogleCloudLocationListLocationsResponse = 0; -api.GoogleCloudLocationListLocationsResponse -buildGoogleCloudLocationListLocationsResponse() { - final o = api.GoogleCloudLocationListLocationsResponse(); - buildCounterGoogleCloudLocationListLocationsResponse++; - if (buildCounterGoogleCloudLocationListLocationsResponse < 3) { - o.locations = buildUnnamed450(); - o.nextPageToken = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchResults = 0; +api.GoogleCloudAiplatformV1ToolParameterKeyMatchResults +buildGoogleCloudAiplatformV1ToolParameterKeyMatchResults() { + final o = api.GoogleCloudAiplatformV1ToolParameterKeyMatchResults(); + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchResults++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchResults < 3) { + o.toolParameterKeyMatchMetricValues = buildUnnamed457(); } - buildCounterGoogleCloudLocationListLocationsResponse--; + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchResults--; return o; } -void checkGoogleCloudLocationListLocationsResponse( - api.GoogleCloudLocationListLocationsResponse o, +void checkGoogleCloudAiplatformV1ToolParameterKeyMatchResults( + api.GoogleCloudAiplatformV1ToolParameterKeyMatchResults o, ) { - buildCounterGoogleCloudLocationListLocationsResponse++; - if (buildCounterGoogleCloudLocationListLocationsResponse < 3) { - checkUnnamed450(o.locations!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchResults++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchResults < 3) { + checkUnnamed457(o.toolParameterKeyMatchMetricValues!); } - buildCounterGoogleCloudLocationListLocationsResponse--; + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchResults--; +} + +core.int buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchSpec = 0; +api.GoogleCloudAiplatformV1ToolParameterKeyMatchSpec +buildGoogleCloudAiplatformV1ToolParameterKeyMatchSpec() { + final o = api.GoogleCloudAiplatformV1ToolParameterKeyMatchSpec(); + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchSpec++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchSpec < 3) {} + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchSpec--; + return o; +} + +void checkGoogleCloudAiplatformV1ToolParameterKeyMatchSpec( + api.GoogleCloudAiplatformV1ToolParameterKeyMatchSpec o, +) { + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchSpec++; + if (buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchSpec < 3) {} + buildCounterGoogleCloudAiplatformV1ToolParameterKeyMatchSpec--; +} + +core.int buildCounterGoogleCloudAiplatformV1TrainingConfig = 0; +api.GoogleCloudAiplatformV1TrainingConfig +buildGoogleCloudAiplatformV1TrainingConfig() { + final o = api.GoogleCloudAiplatformV1TrainingConfig(); + buildCounterGoogleCloudAiplatformV1TrainingConfig++; + if (buildCounterGoogleCloudAiplatformV1TrainingConfig < 3) { + o.timeoutTrainingMilliHours = 'foo'; + } + buildCounterGoogleCloudAiplatformV1TrainingConfig--; + return o; +} + +void checkGoogleCloudAiplatformV1TrainingConfig( + api.GoogleCloudAiplatformV1TrainingConfig o, +) { + buildCounterGoogleCloudAiplatformV1TrainingConfig++; + if (buildCounterGoogleCloudAiplatformV1TrainingConfig < 3) { + unittest.expect(o.timeoutTrainingMilliHours!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1TrainingConfig--; } -core.Map buildUnnamed451() => { +core.Map buildUnnamed458() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed451(core.Map o) { +void checkUnnamed458(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed452() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; - -void checkUnnamed452(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - var casted84 = (o['x']!) as core.Map; - unittest.expect(casted84, unittest.hasLength(3)); - unittest.expect(casted84['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted84['bool'], unittest.equals(true)); - unittest.expect(casted84['string'], unittest.equals('foo')); - var casted85 = (o['y']!) as core.Map; - unittest.expect(casted85, unittest.hasLength(3)); - unittest.expect(casted85['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted85['bool'], unittest.equals(true)); - unittest.expect(casted85['string'], unittest.equals('foo')); -} - -core.int buildCounterGoogleCloudLocationLocation = 0; -api.GoogleCloudLocationLocation buildGoogleCloudLocationLocation() { - final o = api.GoogleCloudLocationLocation(); - buildCounterGoogleCloudLocationLocation++; - if (buildCounterGoogleCloudLocationLocation < 3) { +core.int buildCounterGoogleCloudAiplatformV1TrainingPipeline = 0; +api.GoogleCloudAiplatformV1TrainingPipeline +buildGoogleCloudAiplatformV1TrainingPipeline() { + final o = api.GoogleCloudAiplatformV1TrainingPipeline(); + buildCounterGoogleCloudAiplatformV1TrainingPipeline++; + if (buildCounterGoogleCloudAiplatformV1TrainingPipeline < 3) { + o.createTime = 'foo'; o.displayName = 'foo'; - o.labels = buildUnnamed451(); - o.locationId = 'foo'; - o.metadata = buildUnnamed452(); + o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.endTime = 'foo'; + o.error = buildGoogleRpcStatus(); + o.inputDataConfig = buildGoogleCloudAiplatformV1InputDataConfig(); + o.labels = buildUnnamed458(); + o.modelId = 'foo'; + o.modelToUpload = buildGoogleCloudAiplatformV1Model(); o.name = 'foo'; + o.parentModel = 'foo'; + o.startTime = 'foo'; + o.state = 'foo'; + o.trainingTaskDefinition = 'foo'; + o.trainingTaskInputs = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.trainingTaskMetadata = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + o.updateTime = 'foo'; } - buildCounterGoogleCloudLocationLocation--; + buildCounterGoogleCloudAiplatformV1TrainingPipeline--; return o; } -void checkGoogleCloudLocationLocation(api.GoogleCloudLocationLocation o) { - buildCounterGoogleCloudLocationLocation++; - if (buildCounterGoogleCloudLocationLocation < 3) { +void checkGoogleCloudAiplatformV1TrainingPipeline( + api.GoogleCloudAiplatformV1TrainingPipeline o, +) { + buildCounterGoogleCloudAiplatformV1TrainingPipeline++; + if (buildCounterGoogleCloudAiplatformV1TrainingPipeline < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed451(o.labels!); - unittest.expect(o.locationId!, unittest.equals('foo')); - checkUnnamed452(o.metadata!); + checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + unittest.expect(o.endTime!, unittest.equals('foo')); + checkGoogleRpcStatus(o.error!); + checkGoogleCloudAiplatformV1InputDataConfig(o.inputDataConfig!); + checkUnnamed458(o.labels!); + unittest.expect(o.modelId!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1Model(o.modelToUpload!); unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.parentModel!, unittest.equals('foo')); + unittest.expect(o.startTime!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + unittest.expect(o.trainingTaskDefinition!, unittest.equals('foo')); + var casted98 = (o.trainingTaskInputs!) as core.Map; + unittest.expect(casted98, unittest.hasLength(3)); + unittest.expect(casted98['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted98['bool'], unittest.equals(true)); + unittest.expect(casted98['string'], unittest.equals('foo')); + var casted99 = (o.trainingTaskMetadata!) as core.Map; + unittest.expect(casted99, unittest.hasLength(3)); + unittest.expect(casted99['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted99['bool'], unittest.equals(true)); + unittest.expect(casted99['string'], unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); } - buildCounterGoogleCloudLocationLocation--; + buildCounterGoogleCloudAiplatformV1TrainingPipeline--; } -core.List buildUnnamed453() => ['foo', 'foo']; +core.List buildUnnamed459() => [ + buildGoogleCloudAiplatformV1ToolCall(), + buildGoogleCloudAiplatformV1ToolCall(), +]; -void checkUnnamed453(core.List o) { +void checkUnnamed459(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1ToolCall(o[0]); + checkGoogleCloudAiplatformV1ToolCall(o[1]); } -core.int buildCounterGoogleIamV1Binding = 0; -api.GoogleIamV1Binding buildGoogleIamV1Binding() { - final o = api.GoogleIamV1Binding(); - buildCounterGoogleIamV1Binding++; - if (buildCounterGoogleIamV1Binding < 3) { - o.condition = buildGoogleTypeExpr(); - o.members = buildUnnamed453(); - o.role = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1Trajectory = 0; +api.GoogleCloudAiplatformV1Trajectory buildGoogleCloudAiplatformV1Trajectory() { + final o = api.GoogleCloudAiplatformV1Trajectory(); + buildCounterGoogleCloudAiplatformV1Trajectory++; + if (buildCounterGoogleCloudAiplatformV1Trajectory < 3) { + o.toolCalls = buildUnnamed459(); } - buildCounterGoogleIamV1Binding--; + buildCounterGoogleCloudAiplatformV1Trajectory--; return o; } -void checkGoogleIamV1Binding(api.GoogleIamV1Binding o) { - buildCounterGoogleIamV1Binding++; - if (buildCounterGoogleIamV1Binding < 3) { - checkGoogleTypeExpr(o.condition!); - checkUnnamed453(o.members!); - unittest.expect(o.role!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1Trajectory( + api.GoogleCloudAiplatformV1Trajectory o, +) { + buildCounterGoogleCloudAiplatformV1Trajectory++; + if (buildCounterGoogleCloudAiplatformV1Trajectory < 3) { + checkUnnamed459(o.toolCalls!); } - buildCounterGoogleIamV1Binding--; + buildCounterGoogleCloudAiplatformV1Trajectory--; } -core.List buildUnnamed454() => [ - buildGoogleIamV1Binding(), - buildGoogleIamV1Binding(), +core.List +buildUnnamed460() => [ + buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance(), + buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance(), ]; -void checkUnnamed454(core.List o) { +void checkUnnamed460( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleIamV1Binding(o[0]); - checkGoogleIamV1Binding(o[1]); + checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance(o[0]); + checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance(o[1]); } -core.int buildCounterGoogleIamV1Policy = 0; -api.GoogleIamV1Policy buildGoogleIamV1Policy() { - final o = api.GoogleIamV1Policy(); - buildCounterGoogleIamV1Policy++; - if (buildCounterGoogleIamV1Policy < 3) { - o.bindings = buildUnnamed454(); - o.etag = 'foo'; - o.version = 42; +core.int buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput = 0; +api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput +buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput() { + final o = api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput(); + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput < 3) { + o.instances = buildUnnamed460(); + o.metricSpec = buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec(); } - buildCounterGoogleIamV1Policy--; + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput--; return o; } -void checkGoogleIamV1Policy(api.GoogleIamV1Policy o) { - buildCounterGoogleIamV1Policy++; - if (buildCounterGoogleIamV1Policy < 3) { - checkUnnamed454(o.bindings!); - unittest.expect(o.etag!, unittest.equals('foo')); - unittest.expect(o.version!, unittest.equals(42)); +void checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput( + api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput < 3) { + checkUnnamed460(o.instances!); + checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec(o.metricSpec!); } - buildCounterGoogleIamV1Policy--; + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput--; } -core.int buildCounterGoogleIamV1SetIamPolicyRequest = 0; -api.GoogleIamV1SetIamPolicyRequest buildGoogleIamV1SetIamPolicyRequest() { - final o = api.GoogleIamV1SetIamPolicyRequest(); - buildCounterGoogleIamV1SetIamPolicyRequest++; - if (buildCounterGoogleIamV1SetIamPolicyRequest < 3) { - o.policy = buildGoogleIamV1Policy(); +core.int buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance = 0; +api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance +buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance() { + final o = api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance(); + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance < 3) { + o.predictedTrajectory = buildGoogleCloudAiplatformV1Trajectory(); + o.referenceTrajectory = buildGoogleCloudAiplatformV1Trajectory(); } - buildCounterGoogleIamV1SetIamPolicyRequest--; + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance--; return o; } -void checkGoogleIamV1SetIamPolicyRequest(api.GoogleIamV1SetIamPolicyRequest o) { - buildCounterGoogleIamV1SetIamPolicyRequest++; - if (buildCounterGoogleIamV1SetIamPolicyRequest < 3) { - checkGoogleIamV1Policy(o.policy!); +void checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance( + api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance < 3) { + checkGoogleCloudAiplatformV1Trajectory(o.predictedTrajectory!); + checkGoogleCloudAiplatformV1Trajectory(o.referenceTrajectory!); } - buildCounterGoogleIamV1SetIamPolicyRequest--; -} - -core.List buildUnnamed455() => ['foo', 'foo']; - -void checkUnnamed455(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance--; } -core.int buildCounterGoogleIamV1TestIamPermissionsResponse = 0; -api.GoogleIamV1TestIamPermissionsResponse -buildGoogleIamV1TestIamPermissionsResponse() { - final o = api.GoogleIamV1TestIamPermissionsResponse(); - buildCounterGoogleIamV1TestIamPermissionsResponse++; - if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed455(); +core.int buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue = + 0; +api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue +buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue() { + final o = api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue(); + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue < + 3) { + o.score = 42.0; } - buildCounterGoogleIamV1TestIamPermissionsResponse--; + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue--; return o; } -void checkGoogleIamV1TestIamPermissionsResponse( - api.GoogleIamV1TestIamPermissionsResponse o, +void checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue( + api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue o, ) { - buildCounterGoogleIamV1TestIamPermissionsResponse++; - if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) { - checkUnnamed455(o.permissions!); + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue < + 3) { + unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleIamV1TestIamPermissionsResponse--; + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue--; } -core.List buildUnnamed456() => [ - buildGoogleLongrunningOperation(), - buildGoogleLongrunningOperation(), +core.List +buildUnnamed461() => [ + buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue(), + buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue(), ]; -void checkUnnamed456(core.List o) { +void checkUnnamed461( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleLongrunningOperation(o[0]); - checkGoogleLongrunningOperation(o[1]); + checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue(o[0]); + checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue(o[1]); } -core.int buildCounterGoogleLongrunningListOperationsResponse = 0; -api.GoogleLongrunningListOperationsResponse -buildGoogleLongrunningListOperationsResponse() { - final o = api.GoogleLongrunningListOperationsResponse(); - buildCounterGoogleLongrunningListOperationsResponse++; - if (buildCounterGoogleLongrunningListOperationsResponse < 3) { - o.nextPageToken = 'foo'; - o.operations = buildUnnamed456(); +core.int buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults = 0; +api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults +buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults() { + final o = api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults(); + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults < 3) { + o.trajectoryAnyOrderMatchMetricValues = buildUnnamed461(); } - buildCounterGoogleLongrunningListOperationsResponse--; + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults--; return o; } -void checkGoogleLongrunningListOperationsResponse( - api.GoogleLongrunningListOperationsResponse o, +void checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults( + api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults o, ) { - buildCounterGoogleLongrunningListOperationsResponse++; - if (buildCounterGoogleLongrunningListOperationsResponse < 3) { - unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed456(o.operations!); + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults < 3) { + checkUnnamed461(o.trajectoryAnyOrderMatchMetricValues!); } - buildCounterGoogleLongrunningListOperationsResponse--; + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults--; } -core.Map buildUnnamed457() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; +core.int buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec = 0; +api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec +buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec() { + final o = api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec(); + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec < 3) {} + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec--; + return o; +} -void checkUnnamed457(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - var casted86 = (o['x']!) as core.Map; - unittest.expect(casted86, unittest.hasLength(3)); - unittest.expect(casted86['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted86['bool'], unittest.equals(true)); - unittest.expect(casted86['string'], unittest.equals('foo')); - var casted87 = (o['y']!) as core.Map; - unittest.expect(casted87, unittest.hasLength(3)); - unittest.expect(casted87['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted87['bool'], unittest.equals(true)); - unittest.expect(casted87['string'], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec( + api.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec < 3) {} + buildCounterGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec--; } -core.Map buildUnnamed458() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; +core.List +buildUnnamed462() => [ + buildGoogleCloudAiplatformV1TrajectoryExactMatchInstance(), + buildGoogleCloudAiplatformV1TrajectoryExactMatchInstance(), +]; -void checkUnnamed458(core.Map o) { +void checkUnnamed462( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - var casted88 = (o['x']!) as core.Map; - unittest.expect(casted88, unittest.hasLength(3)); - unittest.expect(casted88['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted88['bool'], unittest.equals(true)); - unittest.expect(casted88['string'], unittest.equals('foo')); - var casted89 = (o['y']!) as core.Map; - unittest.expect(casted89, unittest.hasLength(3)); - unittest.expect(casted89['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted89['bool'], unittest.equals(true)); - unittest.expect(casted89['string'], unittest.equals('foo')); + checkGoogleCloudAiplatformV1TrajectoryExactMatchInstance(o[0]); + checkGoogleCloudAiplatformV1TrajectoryExactMatchInstance(o[1]); } -core.int buildCounterGoogleLongrunningOperation = 0; -api.GoogleLongrunningOperation buildGoogleLongrunningOperation() { - final o = api.GoogleLongrunningOperation(); - buildCounterGoogleLongrunningOperation++; - if (buildCounterGoogleLongrunningOperation < 3) { - o.done = true; - o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed457(); - o.name = 'foo'; - o.response = buildUnnamed458(); +core.int buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInput = 0; +api.GoogleCloudAiplatformV1TrajectoryExactMatchInput +buildGoogleCloudAiplatformV1TrajectoryExactMatchInput() { + final o = api.GoogleCloudAiplatformV1TrajectoryExactMatchInput(); + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInput++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInput < 3) { + o.instances = buildUnnamed462(); + o.metricSpec = buildGoogleCloudAiplatformV1TrajectoryExactMatchSpec(); } - buildCounterGoogleLongrunningOperation--; + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInput--; return o; } -void checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { - buildCounterGoogleLongrunningOperation++; - if (buildCounterGoogleLongrunningOperation < 3) { - unittest.expect(o.done!, unittest.isTrue); - checkGoogleRpcStatus(o.error!); - checkUnnamed457(o.metadata!); - unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed458(o.response!); +void checkGoogleCloudAiplatformV1TrajectoryExactMatchInput( + api.GoogleCloudAiplatformV1TrajectoryExactMatchInput o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInput++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInput < 3) { + checkUnnamed462(o.instances!); + checkGoogleCloudAiplatformV1TrajectoryExactMatchSpec(o.metricSpec!); } - buildCounterGoogleLongrunningOperation--; + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInput--; } -core.int buildCounterGoogleProtobufEmpty = 0; -api.GoogleProtobufEmpty buildGoogleProtobufEmpty() { - final o = api.GoogleProtobufEmpty(); - buildCounterGoogleProtobufEmpty++; - if (buildCounterGoogleProtobufEmpty < 3) {} - buildCounterGoogleProtobufEmpty--; +core.int buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInstance = 0; +api.GoogleCloudAiplatformV1TrajectoryExactMatchInstance +buildGoogleCloudAiplatformV1TrajectoryExactMatchInstance() { + final o = api.GoogleCloudAiplatformV1TrajectoryExactMatchInstance(); + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInstance++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInstance < 3) { + o.predictedTrajectory = buildGoogleCloudAiplatformV1Trajectory(); + o.referenceTrajectory = buildGoogleCloudAiplatformV1Trajectory(); + } + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInstance--; return o; } -void checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { - buildCounterGoogleProtobufEmpty++; - if (buildCounterGoogleProtobufEmpty < 3) {} - buildCounterGoogleProtobufEmpty--; +void checkGoogleCloudAiplatformV1TrajectoryExactMatchInstance( + api.GoogleCloudAiplatformV1TrajectoryExactMatchInstance o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInstance++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInstance < 3) { + checkGoogleCloudAiplatformV1Trajectory(o.predictedTrajectory!); + checkGoogleCloudAiplatformV1Trajectory(o.referenceTrajectory!); + } + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchInstance--; } -core.Map buildUnnamed459() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; +core.int buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue = 0; +api.GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue +buildGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue() { + final o = api.GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue(); + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue < 3) { + o.score = 42.0; + } + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue--; + return o; +} -void checkUnnamed459(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - var casted90 = (o['x']!) as core.Map; - unittest.expect(casted90, unittest.hasLength(3)); - unittest.expect(casted90['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted90['bool'], unittest.equals(true)); - unittest.expect(casted90['string'], unittest.equals('foo')); - var casted91 = (o['y']!) as core.Map; - unittest.expect(casted91, unittest.hasLength(3)); - unittest.expect(casted91['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted91['bool'], unittest.equals(true)); - unittest.expect(casted91['string'], unittest.equals('foo')); -} - -core.List> buildUnnamed460() => [ - buildUnnamed459(), - buildUnnamed459(), +void checkGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue( + api.GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue < 3) { + unittest.expect(o.score!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue--; +} + +core.List +buildUnnamed463() => [ + buildGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue(), + buildGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue(), ]; -void checkUnnamed460(core.List> o) { +void checkUnnamed463( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed459(o[0]); - checkUnnamed459(o[1]); + checkGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue(o[0]); + checkGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue(o[1]); } -core.int buildCounterGoogleRpcStatus = 0; -api.GoogleRpcStatus buildGoogleRpcStatus() { - final o = api.GoogleRpcStatus(); - buildCounterGoogleRpcStatus++; - if (buildCounterGoogleRpcStatus < 3) { - o.code = 42; - o.details = buildUnnamed460(); - o.message = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchResults = 0; +api.GoogleCloudAiplatformV1TrajectoryExactMatchResults +buildGoogleCloudAiplatformV1TrajectoryExactMatchResults() { + final o = api.GoogleCloudAiplatformV1TrajectoryExactMatchResults(); + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchResults++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchResults < 3) { + o.trajectoryExactMatchMetricValues = buildUnnamed463(); } - buildCounterGoogleRpcStatus--; + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchResults--; return o; } -void checkGoogleRpcStatus(api.GoogleRpcStatus o) { - buildCounterGoogleRpcStatus++; - if (buildCounterGoogleRpcStatus < 3) { - unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed460(o.details!); - unittest.expect(o.message!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1TrajectoryExactMatchResults( + api.GoogleCloudAiplatformV1TrajectoryExactMatchResults o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchResults++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchResults < 3) { + checkUnnamed463(o.trajectoryExactMatchMetricValues!); } - buildCounterGoogleRpcStatus--; + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchResults--; } -core.int buildCounterGoogleTypeDate = 0; -api.GoogleTypeDate buildGoogleTypeDate() { - final o = api.GoogleTypeDate(); - buildCounterGoogleTypeDate++; - if (buildCounterGoogleTypeDate < 3) { - o.day = 42; - o.month = 42; - o.year = 42; - } - buildCounterGoogleTypeDate--; +core.int buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchSpec = 0; +api.GoogleCloudAiplatformV1TrajectoryExactMatchSpec +buildGoogleCloudAiplatformV1TrajectoryExactMatchSpec() { + final o = api.GoogleCloudAiplatformV1TrajectoryExactMatchSpec(); + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchSpec++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchSpec < 3) {} + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchSpec--; return o; } -void checkGoogleTypeDate(api.GoogleTypeDate o) { - buildCounterGoogleTypeDate++; - if (buildCounterGoogleTypeDate < 3) { - unittest.expect(o.day!, unittest.equals(42)); - unittest.expect(o.month!, unittest.equals(42)); - unittest.expect(o.year!, unittest.equals(42)); - } - buildCounterGoogleTypeDate--; +void checkGoogleCloudAiplatformV1TrajectoryExactMatchSpec( + api.GoogleCloudAiplatformV1TrajectoryExactMatchSpec o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchSpec++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchSpec < 3) {} + buildCounterGoogleCloudAiplatformV1TrajectoryExactMatchSpec--; } -core.int buildCounterGoogleTypeExpr = 0; -api.GoogleTypeExpr buildGoogleTypeExpr() { - final o = api.GoogleTypeExpr(); - buildCounterGoogleTypeExpr++; - if (buildCounterGoogleTypeExpr < 3) { - o.description = 'foo'; - o.expression = 'foo'; - o.location = 'foo'; - o.title = 'foo'; - } - buildCounterGoogleTypeExpr--; - return o; -} +core.List +buildUnnamed464() => [ + buildGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance(), + buildGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance(), +]; -void checkGoogleTypeExpr(api.GoogleTypeExpr o) { - buildCounterGoogleTypeExpr++; - if (buildCounterGoogleTypeExpr < 3) { - unittest.expect(o.description!, unittest.equals('foo')); - unittest.expect(o.expression!, unittest.equals('foo')); - unittest.expect(o.location!, unittest.equals('foo')); - unittest.expect(o.title!, unittest.equals('foo')); - } - buildCounterGoogleTypeExpr--; +void checkUnnamed464( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance(o[0]); + checkGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance(o[1]); } -core.int buildCounterGoogleTypeInterval = 0; -api.GoogleTypeInterval buildGoogleTypeInterval() { - final o = api.GoogleTypeInterval(); - buildCounterGoogleTypeInterval++; - if (buildCounterGoogleTypeInterval < 3) { - o.endTime = 'foo'; - o.startTime = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInput = 0; +api.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput +buildGoogleCloudAiplatformV1TrajectoryInOrderMatchInput() { + final o = api.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput(); + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInput++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInput < 3) { + o.instances = buildUnnamed464(); + o.metricSpec = buildGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec(); } - buildCounterGoogleTypeInterval--; + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInput--; return o; } -void checkGoogleTypeInterval(api.GoogleTypeInterval o) { - buildCounterGoogleTypeInterval++; - if (buildCounterGoogleTypeInterval < 3) { - unittest.expect(o.endTime!, unittest.equals('foo')); - unittest.expect(o.startTime!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1TrajectoryInOrderMatchInput( + api.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInput++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInput < 3) { + checkUnnamed464(o.instances!); + checkGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec(o.metricSpec!); } - buildCounterGoogleTypeInterval--; + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInput--; } -core.int buildCounterGoogleTypeLatLng = 0; -api.GoogleTypeLatLng buildGoogleTypeLatLng() { - final o = api.GoogleTypeLatLng(); - buildCounterGoogleTypeLatLng++; - if (buildCounterGoogleTypeLatLng < 3) { - o.latitude = 42.0; - o.longitude = 42.0; +core.int buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance = 0; +api.GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance +buildGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance() { + final o = api.GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance(); + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance < 3) { + o.predictedTrajectory = buildGoogleCloudAiplatformV1Trajectory(); + o.referenceTrajectory = buildGoogleCloudAiplatformV1Trajectory(); } - buildCounterGoogleTypeLatLng--; + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance--; return o; } -void checkGoogleTypeLatLng(api.GoogleTypeLatLng o) { - buildCounterGoogleTypeLatLng++; - if (buildCounterGoogleTypeLatLng < 3) { - unittest.expect(o.latitude!, unittest.equals(42.0)); - unittest.expect(o.longitude!, unittest.equals(42.0)); +void checkGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance( + api.GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance < 3) { + checkGoogleCloudAiplatformV1Trajectory(o.predictedTrajectory!); + checkGoogleCloudAiplatformV1Trajectory(o.referenceTrajectory!); } - buildCounterGoogleTypeLatLng--; + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance--; } -core.int buildCounterGoogleTypeMoney = 0; -api.GoogleTypeMoney buildGoogleTypeMoney() { - final o = api.GoogleTypeMoney(); - buildCounterGoogleTypeMoney++; - if (buildCounterGoogleTypeMoney < 3) { - o.currencyCode = 'foo'; - o.nanos = 42; - o.units = 'foo'; +core.int buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue = + 0; +api.GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue +buildGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue() { + final o = api.GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue(); + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue < + 3) { + o.score = 42.0; } - buildCounterGoogleTypeMoney--; + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue--; return o; } -void checkGoogleTypeMoney(api.GoogleTypeMoney o) { - buildCounterGoogleTypeMoney++; - if (buildCounterGoogleTypeMoney < 3) { - unittest.expect(o.currencyCode!, unittest.equals('foo')); - unittest.expect(o.nanos!, unittest.equals(42)); - unittest.expect(o.units!, unittest.equals('foo')); +void checkGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue( + api.GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue < + 3) { + unittest.expect(o.score!, unittest.equals(42.0)); } - buildCounterGoogleTypeMoney--; + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue--; } -core.List buildUnnamed461() => ['foo', 'foo']; +core.List +buildUnnamed465() => [ + buildGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue(), + buildGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue(), +]; -void checkUnnamed461(core.List o) { +void checkUnnamed465( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue(o[0]); + checkGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue(o[1]); } -core.List buildUnnamed462() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchResults = 0; +api.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults +buildGoogleCloudAiplatformV1TrajectoryInOrderMatchResults() { + final o = api.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults(); + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchResults++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchResults < 3) { + o.trajectoryInOrderMatchMetricValues = buildUnnamed465(); + } + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchResults--; + return o; +} -void checkUnnamed462(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1TrajectoryInOrderMatchResults( + api.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchResults++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchResults < 3) { + checkUnnamed465(o.trajectoryInOrderMatchMetricValues!); + } + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchResults--; } -core.List buildUnnamed463() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec = 0; +api.GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec +buildGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec() { + final o = api.GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec(); + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec < 3) {} + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec--; + return o; +} -void checkUnnamed463(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec( + api.GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec < 3) {} + buildCounterGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec--; } -core.List buildUnnamed464() => ['foo', 'foo']; +core.List +buildUnnamed466() => [ + buildGoogleCloudAiplatformV1TrajectoryPrecisionInstance(), + buildGoogleCloudAiplatformV1TrajectoryPrecisionInstance(), +]; -void checkUnnamed464(core.List o) { +void checkUnnamed466( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1TrajectoryPrecisionInstance(o[0]); + checkGoogleCloudAiplatformV1TrajectoryPrecisionInstance(o[1]); } -core.List buildUnnamed465() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInput = 0; +api.GoogleCloudAiplatformV1TrajectoryPrecisionInput +buildGoogleCloudAiplatformV1TrajectoryPrecisionInput() { + final o = api.GoogleCloudAiplatformV1TrajectoryPrecisionInput(); + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInput++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInput < 3) { + o.instances = buildUnnamed466(); + o.metricSpec = buildGoogleCloudAiplatformV1TrajectoryPrecisionSpec(); + } + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInput--; + return o; +} -void checkUnnamed465(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1TrajectoryPrecisionInput( + api.GoogleCloudAiplatformV1TrajectoryPrecisionInput o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInput++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInput < 3) { + checkUnnamed466(o.instances!); + checkGoogleCloudAiplatformV1TrajectoryPrecisionSpec(o.metricSpec!); + } + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInput--; } -core.List buildUnnamed466() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInstance = 0; +api.GoogleCloudAiplatformV1TrajectoryPrecisionInstance +buildGoogleCloudAiplatformV1TrajectoryPrecisionInstance() { + final o = api.GoogleCloudAiplatformV1TrajectoryPrecisionInstance(); + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInstance++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInstance < 3) { + o.predictedTrajectory = buildGoogleCloudAiplatformV1Trajectory(); + o.referenceTrajectory = buildGoogleCloudAiplatformV1Trajectory(); + } + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInstance--; + return o; +} -void checkUnnamed466(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1TrajectoryPrecisionInstance( + api.GoogleCloudAiplatformV1TrajectoryPrecisionInstance o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInstance++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInstance < 3) { + checkGoogleCloudAiplatformV1Trajectory(o.predictedTrajectory!); + checkGoogleCloudAiplatformV1Trajectory(o.referenceTrajectory!); + } + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionInstance--; } -core.List buildUnnamed467() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue = 0; +api.GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue +buildGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue() { + final o = api.GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue(); + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue < 3) { + o.score = 42.0; + } + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue--; + return o; +} -void checkUnnamed467(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue( + api.GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue < 3) { + unittest.expect(o.score!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue--; } -core.List buildUnnamed468() => ['foo', 'foo']; +core.List +buildUnnamed467() => [ + buildGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue(), + buildGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue(), +]; -void checkUnnamed468(core.List o) { +void checkUnnamed467( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue(o[0]); + checkGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue(o[1]); } -core.List buildUnnamed469() => ['foo', 'foo']; - -void checkUnnamed469(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +core.int buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionResults = 0; +api.GoogleCloudAiplatformV1TrajectoryPrecisionResults +buildGoogleCloudAiplatformV1TrajectoryPrecisionResults() { + final o = api.GoogleCloudAiplatformV1TrajectoryPrecisionResults(); + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionResults++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionResults < 3) { + o.trajectoryPrecisionMetricValues = buildUnnamed467(); + } + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionResults--; + return o; +} + +void checkGoogleCloudAiplatformV1TrajectoryPrecisionResults( + api.GoogleCloudAiplatformV1TrajectoryPrecisionResults o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionResults++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionResults < 3) { + checkUnnamed467(o.trajectoryPrecisionMetricValues!); + } + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionResults--; } -core.List buildUnnamed470() => ['foo', 'foo']; +core.int buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionSpec = 0; +api.GoogleCloudAiplatformV1TrajectoryPrecisionSpec +buildGoogleCloudAiplatformV1TrajectoryPrecisionSpec() { + final o = api.GoogleCloudAiplatformV1TrajectoryPrecisionSpec(); + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionSpec++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionSpec < 3) {} + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionSpec--; + return o; +} -void checkUnnamed470(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkGoogleCloudAiplatformV1TrajectoryPrecisionSpec( + api.GoogleCloudAiplatformV1TrajectoryPrecisionSpec o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionSpec++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionSpec < 3) {} + buildCounterGoogleCloudAiplatformV1TrajectoryPrecisionSpec--; } -core.List buildUnnamed471() => ['foo', 'foo']; +core.List +buildUnnamed468() => [ + buildGoogleCloudAiplatformV1TrajectoryRecallInstance(), + buildGoogleCloudAiplatformV1TrajectoryRecallInstance(), +]; -void checkUnnamed471(core.List o) { +void checkUnnamed468( + core.List o, +) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudAiplatformV1TrajectoryRecallInstance(o[0]); + checkGoogleCloudAiplatformV1TrajectoryRecallInstance(o[1]); } -void main() { - unittest.group('obj-schema-GoogleApiHttpBody', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleApiHttpBody(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleApiHttpBody.fromJson( - oJson as core.Map, - ); - checkGoogleApiHttpBody(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1TrajectoryRecallInput = 0; +api.GoogleCloudAiplatformV1TrajectoryRecallInput +buildGoogleCloudAiplatformV1TrajectoryRecallInput() { + final o = api.GoogleCloudAiplatformV1TrajectoryRecallInput(); + buildCounterGoogleCloudAiplatformV1TrajectoryRecallInput++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallInput < 3) { + o.instances = buildUnnamed468(); + o.metricSpec = buildGoogleCloudAiplatformV1TrajectoryRecallSpec(); + } + buildCounterGoogleCloudAiplatformV1TrajectoryRecallInput--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ActiveLearningConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ActiveLearningConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ActiveLearningConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ActiveLearningConfig(od); - }); - }); +void checkGoogleCloudAiplatformV1TrajectoryRecallInput( + api.GoogleCloudAiplatformV1TrajectoryRecallInput o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryRecallInput++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallInput < 3) { + checkUnnamed468(o.instances!); + checkGoogleCloudAiplatformV1TrajectoryRecallSpec(o.metricSpec!); + } + buildCounterGoogleCloudAiplatformV1TrajectoryRecallInput--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1TrajectoryRecallInstance = 0; +api.GoogleCloudAiplatformV1TrajectoryRecallInstance +buildGoogleCloudAiplatformV1TrajectoryRecallInstance() { + final o = api.GoogleCloudAiplatformV1TrajectoryRecallInstance(); + buildCounterGoogleCloudAiplatformV1TrajectoryRecallInstance++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallInstance < 3) { + o.predictedTrajectory = buildGoogleCloudAiplatformV1Trajectory(); + o.referenceTrajectory = buildGoogleCloudAiplatformV1Trajectory(); + } + buildCounterGoogleCloudAiplatformV1TrajectoryRecallInstance--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse( - od, - ); - }); - }, - ); +void checkGoogleCloudAiplatformV1TrajectoryRecallInstance( + api.GoogleCloudAiplatformV1TrajectoryRecallInstance o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryRecallInstance++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallInstance < 3) { + checkGoogleCloudAiplatformV1Trajectory(o.predictedTrajectory!); + checkGoogleCloudAiplatformV1Trajectory(o.referenceTrajectory!); + } + buildCounterGoogleCloudAiplatformV1TrajectoryRecallInstance--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1AddContextChildrenRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AddContextChildrenRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1AddContextChildrenRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AddContextChildrenRequest(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1TrajectoryRecallMetricValue = 0; +api.GoogleCloudAiplatformV1TrajectoryRecallMetricValue +buildGoogleCloudAiplatformV1TrajectoryRecallMetricValue() { + final o = api.GoogleCloudAiplatformV1TrajectoryRecallMetricValue(); + buildCounterGoogleCloudAiplatformV1TrajectoryRecallMetricValue++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallMetricValue < 3) { + o.score = 42.0; + } + buildCounterGoogleCloudAiplatformV1TrajectoryRecallMetricValue--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1AddContextChildrenResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AddContextChildrenResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1AddContextChildrenResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AddContextChildrenResponse(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1TrajectoryRecallMetricValue( + api.GoogleCloudAiplatformV1TrajectoryRecallMetricValue o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryRecallMetricValue++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallMetricValue < 3) { + unittest.expect(o.score!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1TrajectoryRecallMetricValue--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1AddExecutionEventsRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AddExecutionEventsRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1AddExecutionEventsRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AddExecutionEventsRequest(od); - }); - }, - ); +core.List +buildUnnamed469() => [ + buildGoogleCloudAiplatformV1TrajectoryRecallMetricValue(), + buildGoogleCloudAiplatformV1TrajectoryRecallMetricValue(), +]; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1AddExecutionEventsResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AddExecutionEventsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1AddExecutionEventsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AddExecutionEventsResponse(od); - }); - }, - ); +void checkUnnamed469( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1TrajectoryRecallMetricValue(o[0]); + checkGoogleCloudAiplatformV1TrajectoryRecallMetricValue(o[1]); +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1AddTrialMeasurementRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AddTrialMeasurementRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1AddTrialMeasurementRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AddTrialMeasurementRequest(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1TrajectoryRecallResults = 0; +api.GoogleCloudAiplatformV1TrajectoryRecallResults +buildGoogleCloudAiplatformV1TrajectoryRecallResults() { + final o = api.GoogleCloudAiplatformV1TrajectoryRecallResults(); + buildCounterGoogleCloudAiplatformV1TrajectoryRecallResults++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallResults < 3) { + o.trajectoryRecallMetricValues = buildUnnamed469(); + } + buildCounterGoogleCloudAiplatformV1TrajectoryRecallResults--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1Annotation', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Annotation(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Annotation.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Annotation(od); - }); - }); +void checkGoogleCloudAiplatformV1TrajectoryRecallResults( + api.GoogleCloudAiplatformV1TrajectoryRecallResults o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryRecallResults++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallResults < 3) { + checkUnnamed469(o.trajectoryRecallMetricValues!); + } + buildCounterGoogleCloudAiplatformV1TrajectoryRecallResults--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1AnnotationSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AnnotationSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1AnnotationSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AnnotationSpec(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1TrajectoryRecallSpec = 0; +api.GoogleCloudAiplatformV1TrajectoryRecallSpec +buildGoogleCloudAiplatformV1TrajectoryRecallSpec() { + final o = api.GoogleCloudAiplatformV1TrajectoryRecallSpec(); + buildCounterGoogleCloudAiplatformV1TrajectoryRecallSpec++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallSpec < 3) {} + buildCounterGoogleCloudAiplatformV1TrajectoryRecallSpec--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ApiAuth', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ApiAuth(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ApiAuth.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ApiAuth(od); - }); - }); +void checkGoogleCloudAiplatformV1TrajectoryRecallSpec( + api.GoogleCloudAiplatformV1TrajectoryRecallSpec o, +) { + buildCounterGoogleCloudAiplatformV1TrajectoryRecallSpec++; + if (buildCounterGoogleCloudAiplatformV1TrajectoryRecallSpec < 3) {} + buildCounterGoogleCloudAiplatformV1TrajectoryRecallSpec--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ApiAuthApiKeyConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ApiAuthApiKeyConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ApiAuthApiKeyConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ApiAuthApiKeyConfig(od); - }); - }); +core.List +buildUnnamed470() => [ + buildGoogleCloudAiplatformV1TrajectorySingleToolUseInstance(), + buildGoogleCloudAiplatformV1TrajectorySingleToolUseInstance(), +]; - unittest.group('obj-schema-GoogleCloudAiplatformV1Artifact', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Artifact(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Artifact.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Artifact(od); - }); - }); +void checkUnnamed470( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1TrajectorySingleToolUseInstance(o[0]); + checkGoogleCloudAiplatformV1TrajectorySingleToolUseInstance(o[1]); +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1AssignNotebookRuntimeRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AssignNotebookRuntimeRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1AssignNotebookRuntimeRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AssignNotebookRuntimeRequest(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInput = 0; +api.GoogleCloudAiplatformV1TrajectorySingleToolUseInput +buildGoogleCloudAiplatformV1TrajectorySingleToolUseInput() { + final o = api.GoogleCloudAiplatformV1TrajectorySingleToolUseInput(); + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInput++; + if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInput < 3) { + o.instances = buildUnnamed470(); + o.metricSpec = buildGoogleCloudAiplatformV1TrajectorySingleToolUseSpec(); + } + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInput--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1Attribution', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Attribution(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Attribution.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Attribution(od); - }); - }); +void checkGoogleCloudAiplatformV1TrajectorySingleToolUseInput( + api.GoogleCloudAiplatformV1TrajectorySingleToolUseInput o, +) { + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInput++; + if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInput < 3) { + checkUnnamed470(o.instances!); + checkGoogleCloudAiplatformV1TrajectorySingleToolUseSpec(o.metricSpec!); + } + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInput--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1AugmentPromptRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AugmentPromptRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1AugmentPromptRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AugmentPromptRequest(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInstance = 0; +api.GoogleCloudAiplatformV1TrajectorySingleToolUseInstance +buildGoogleCloudAiplatformV1TrajectorySingleToolUseInstance() { + final o = api.GoogleCloudAiplatformV1TrajectorySingleToolUseInstance(); + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInstance++; + if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInstance < 3) { + o.predictedTrajectory = buildGoogleCloudAiplatformV1Trajectory(); + } + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInstance--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1AugmentPromptRequestModel', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AugmentPromptRequestModel(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1AugmentPromptRequestModel.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AugmentPromptRequestModel(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1TrajectorySingleToolUseInstance( + api.GoogleCloudAiplatformV1TrajectorySingleToolUseInstance o, +) { + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInstance++; + if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInstance < 3) { + checkGoogleCloudAiplatformV1Trajectory(o.predictedTrajectory!); + } + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseInstance--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1AugmentPromptResponse', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AugmentPromptResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1AugmentPromptResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AugmentPromptResponse(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue = + 0; +api.GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue +buildGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue() { + final o = api.GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue(); + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue++; + if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue < + 3) { + o.score = 42.0; + } + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1AuthConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AuthConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1AuthConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AuthConfig(od); - }); - }); +void checkGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue( + api.GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue o, +) { + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue++; + if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue < + 3) { + unittest.expect(o.score!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1AuthConfigApiKeyConfig', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AuthConfigApiKeyConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1AuthConfigApiKeyConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AuthConfigApiKeyConfig(od); - }); - }, - ); +core.List +buildUnnamed471() => [ + buildGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue(), + buildGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue(), +]; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig(od); - }); - }, - ); +void checkUnnamed471( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue(o[0]); + checkGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue(o[1]); +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseResults = 0; +api.GoogleCloudAiplatformV1TrajectorySingleToolUseResults +buildGoogleCloudAiplatformV1TrajectorySingleToolUseResults() { + final o = api.GoogleCloudAiplatformV1TrajectorySingleToolUseResults(); + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseResults++; + if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseResults < 3) { + o.trajectorySingleToolUseMetricValues = buildUnnamed471(); + } + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseResults--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1AuthConfigOauthConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AuthConfigOauthConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1AuthConfigOauthConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AuthConfigOauthConfig(od); - }); - }); +void checkGoogleCloudAiplatformV1TrajectorySingleToolUseResults( + api.GoogleCloudAiplatformV1TrajectorySingleToolUseResults o, +) { + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseResults++; + if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseResults < 3) { + checkUnnamed471(o.trajectorySingleToolUseMetricValues!); + } + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseResults--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1AuthConfigOidcConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AuthConfigOidcConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1AuthConfigOidcConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AuthConfigOidcConfig(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseSpec = 0; +api.GoogleCloudAiplatformV1TrajectorySingleToolUseSpec +buildGoogleCloudAiplatformV1TrajectorySingleToolUseSpec() { + final o = api.GoogleCloudAiplatformV1TrajectorySingleToolUseSpec(); + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseSpec++; + if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseSpec < 3) { + o.toolName = 'foo'; + } + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseSpec--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1AutomaticResources', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AutomaticResources(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1AutomaticResources.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AutomaticResources(od); - }); - }); +void checkGoogleCloudAiplatformV1TrajectorySingleToolUseSpec( + api.GoogleCloudAiplatformV1TrajectorySingleToolUseSpec o, +) { + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseSpec++; + if (buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseSpec < 3) { + unittest.expect(o.toolName!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1TrajectorySingleToolUseSpec--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1AutoraterConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AutoraterConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1AutoraterConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AutoraterConfig(od); - }); - }); +core.List buildUnnamed472() => [ + buildGoogleCloudAiplatformV1Measurement(), + buildGoogleCloudAiplatformV1Measurement(), +]; - unittest.group('obj-schema-GoogleCloudAiplatformV1AutoscalingMetricSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AutoscalingMetricSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1AutoscalingMetricSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AutoscalingMetricSpec(od); - }); - }); +void checkUnnamed472(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1Measurement(o[0]); + checkGoogleCloudAiplatformV1Measurement(o[1]); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1AvroSource', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1AvroSource(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1AvroSource.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1AvroSource(od); - }); - }); +core.List buildUnnamed473() => [ + buildGoogleCloudAiplatformV1TrialParameter(), + buildGoogleCloudAiplatformV1TrialParameter(), +]; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchCancelPipelineJobsRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BatchCancelPipelineJobsRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchCancelPipelineJobsRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchCancelPipelineJobsRequest(od); - }); - }, - ); +void checkUnnamed473(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1TrialParameter(o[0]); + checkGoogleCloudAiplatformV1TrialParameter(o[1]); +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchCreateFeaturesRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BatchCreateFeaturesRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchCreateFeaturesRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchCreateFeaturesRequest(od); - }); - }, - ); +core.Map buildUnnamed474() => { + 'x': 'foo', + 'y': 'foo', +}; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchCreateTensorboardRunsRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1BatchCreateTensorboardRunsRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchCreateTensorboardRunsRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchCreateTensorboardRunsRequest(od); - }); - }, - ); +void checkUnnamed474(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchCreateTensorboardRunsResponse', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1BatchCreateTensorboardRunsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchCreateTensorboardRunsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchCreateTensorboardRunsResponse(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1Trial = 0; +api.GoogleCloudAiplatformV1Trial buildGoogleCloudAiplatformV1Trial() { + final o = api.GoogleCloudAiplatformV1Trial(); + buildCounterGoogleCloudAiplatformV1Trial++; + if (buildCounterGoogleCloudAiplatformV1Trial < 3) { + o.clientId = 'foo'; + o.customJob = 'foo'; + o.endTime = 'foo'; + o.finalMeasurement = buildGoogleCloudAiplatformV1Measurement(); + o.id = 'foo'; + o.infeasibleReason = 'foo'; + o.measurements = buildUnnamed472(); + o.name = 'foo'; + o.parameters = buildUnnamed473(); + o.startTime = 'foo'; + o.state = 'foo'; + o.webAccessUris = buildUnnamed474(); + } + buildCounterGoogleCloudAiplatformV1Trial--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1Trial(api.GoogleCloudAiplatformV1Trial o) { + buildCounterGoogleCloudAiplatformV1Trial++; + if (buildCounterGoogleCloudAiplatformV1Trial < 3) { + unittest.expect(o.clientId!, unittest.equals('foo')); + unittest.expect(o.customJob!, unittest.equals('foo')); + unittest.expect(o.endTime!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1Measurement(o.finalMeasurement!); + unittest.expect(o.id!, unittest.equals('foo')); + unittest.expect(o.infeasibleReason!, unittest.equals('foo')); + checkUnnamed472(o.measurements!); + unittest.expect(o.name!, unittest.equals('foo')); + checkUnnamed473(o.parameters!); + unittest.expect(o.startTime!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + checkUnnamed474(o.webAccessUris!); + } + buildCounterGoogleCloudAiplatformV1Trial--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse( - od, - ); - }); - }, - ); +core.List buildUnnamed475() => [ + buildGoogleCloudAiplatformV1TrialParameter(), + buildGoogleCloudAiplatformV1TrialParameter(), +]; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchDedicatedResources', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BatchDedicatedResources(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1BatchDedicatedResources.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchDedicatedResources(od); - }); - }, - ); +void checkUnnamed475(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1TrialParameter(o[0]); + checkGoogleCloudAiplatformV1TrialParameter(o[1]); +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchDeletePipelineJobsRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BatchDeletePipelineJobsRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchDeletePipelineJobsRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchDeletePipelineJobsRequest(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1TrialContext = 0; +api.GoogleCloudAiplatformV1TrialContext +buildGoogleCloudAiplatformV1TrialContext() { + final o = api.GoogleCloudAiplatformV1TrialContext(); + buildCounterGoogleCloudAiplatformV1TrialContext++; + if (buildCounterGoogleCloudAiplatformV1TrialContext < 3) { + o.description = 'foo'; + o.parameters = buildUnnamed475(); + } + buildCounterGoogleCloudAiplatformV1TrialContext--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1TrialContext( + api.GoogleCloudAiplatformV1TrialContext o, +) { + buildCounterGoogleCloudAiplatformV1TrialContext++; + if (buildCounterGoogleCloudAiplatformV1TrialContext < 3) { + unittest.expect(o.description!, unittest.equals('foo')); + checkUnnamed475(o.parameters!); + } + buildCounterGoogleCloudAiplatformV1TrialContext--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsResponse', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsResponse(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1TrialParameter = 0; +api.GoogleCloudAiplatformV1TrialParameter +buildGoogleCloudAiplatformV1TrialParameter() { + final o = api.GoogleCloudAiplatformV1TrialParameter(); + buildCounterGoogleCloudAiplatformV1TrialParameter++; + if (buildCounterGoogleCloudAiplatformV1TrialParameter < 3) { + o.parameterId = 'foo'; + o.value = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }; + } + buildCounterGoogleCloudAiplatformV1TrialParameter--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchMigrateResourcesRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BatchMigrateResourcesRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchMigrateResourcesRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchMigrateResourcesRequest(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1TrialParameter( + api.GoogleCloudAiplatformV1TrialParameter o, +) { + buildCounterGoogleCloudAiplatformV1TrialParameter++; + if (buildCounterGoogleCloudAiplatformV1TrialParameter < 3) { + unittest.expect(o.parameterId!, unittest.equals('foo')); + var casted100 = (o.value!) as core.Map; + unittest.expect(casted100, unittest.hasLength(3)); + unittest.expect(casted100['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted100['bool'], unittest.equals(true)); + unittest.expect(casted100['string'], unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1TrialParameter--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1BatchPredictionJob', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BatchPredictionJob(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1BatchPredictionJob.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchPredictionJob(od); - }); - }); +core.List buildUnnamed476() => + [ + buildGoogleCloudAiplatformV1TunedModelCheckpoint(), + buildGoogleCloudAiplatformV1TunedModelCheckpoint(), + ]; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchPredictionJobInputConfig', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BatchPredictionJobInputConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchPredictionJobInputConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchPredictionJobInputConfig(od); - }); - }, - ); +void checkUnnamed476( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1TunedModelCheckpoint(o[0]); + checkGoogleCloudAiplatformV1TunedModelCheckpoint(o[1]); +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchPredictionJobInstanceConfig', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1BatchPredictionJobInstanceConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchPredictionJobInstanceConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchPredictionJobInstanceConfig(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1TunedModel = 0; +api.GoogleCloudAiplatformV1TunedModel buildGoogleCloudAiplatformV1TunedModel() { + final o = api.GoogleCloudAiplatformV1TunedModel(); + buildCounterGoogleCloudAiplatformV1TunedModel++; + if (buildCounterGoogleCloudAiplatformV1TunedModel < 3) { + o.checkpoints = buildUnnamed476(); + o.endpoint = 'foo'; + o.model = 'foo'; + } + buildCounterGoogleCloudAiplatformV1TunedModel--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchPredictionJobOutputConfig', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BatchPredictionJobOutputConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchPredictionJobOutputConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchPredictionJobOutputConfig(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1TunedModel( + api.GoogleCloudAiplatformV1TunedModel o, +) { + buildCounterGoogleCloudAiplatformV1TunedModel++; + if (buildCounterGoogleCloudAiplatformV1TunedModel < 3) { + checkUnnamed476(o.checkpoints!); + unittest.expect(o.endpoint!, unittest.equals('foo')); + unittest.expect(o.model!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1TunedModel--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchPredictionJobOutputInfo', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BatchPredictionJobOutputInfo(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchPredictionJobOutputInfo.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchPredictionJobOutputInfo(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1TunedModelCheckpoint = 0; +api.GoogleCloudAiplatformV1TunedModelCheckpoint +buildGoogleCloudAiplatformV1TunedModelCheckpoint() { + final o = api.GoogleCloudAiplatformV1TunedModelCheckpoint(); + buildCounterGoogleCloudAiplatformV1TunedModelCheckpoint++; + if (buildCounterGoogleCloudAiplatformV1TunedModelCheckpoint < 3) { + o.checkpointId = 'foo'; + o.endpoint = 'foo'; + o.epoch = 'foo'; + o.step = 'foo'; + } + buildCounterGoogleCloudAiplatformV1TunedModelCheckpoint--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchReadFeatureValuesRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BatchReadFeatureValuesRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchReadFeatureValuesRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchReadFeatureValuesRequest(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1TunedModelCheckpoint( + api.GoogleCloudAiplatformV1TunedModelCheckpoint o, +) { + buildCounterGoogleCloudAiplatformV1TunedModelCheckpoint++; + if (buildCounterGoogleCloudAiplatformV1TunedModelCheckpoint < 3) { + unittest.expect(o.checkpointId!, unittest.equals('foo')); + unittest.expect(o.endpoint!, unittest.equals('foo')); + unittest.expect(o.epoch!, unittest.equals('foo')); + unittest.expect(o.step!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1TunedModelCheckpoint--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchReadFeatureValuesRequestEntityTypeSpec', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1BatchReadFeatureValuesRequestEntityTypeSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchReadFeatureValuesRequestEntityTypeSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchReadFeatureValuesRequestEntityTypeSpec( - od, - ); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchReadFeatureValuesRequestPassThroughField', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1BatchReadFeatureValuesRequestPassThroughField(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchReadFeatureValuesRequestPassThroughField.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchReadFeatureValuesRequestPassThroughField( - od, - ); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1TunedModelRef = 0; +api.GoogleCloudAiplatformV1TunedModelRef +buildGoogleCloudAiplatformV1TunedModelRef() { + final o = api.GoogleCloudAiplatformV1TunedModelRef(); + buildCounterGoogleCloudAiplatformV1TunedModelRef++; + if (buildCounterGoogleCloudAiplatformV1TunedModelRef < 3) { + o.pipelineJob = 'foo'; + o.tunedModel = 'foo'; + o.tuningJob = 'foo'; + } + buildCounterGoogleCloudAiplatformV1TunedModelRef--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse( - od, - ); - }); - }, - ); +void checkGoogleCloudAiplatformV1TunedModelRef( + api.GoogleCloudAiplatformV1TunedModelRef o, +) { + buildCounterGoogleCloudAiplatformV1TunedModelRef++; + if (buildCounterGoogleCloudAiplatformV1TunedModelRef < 3) { + unittest.expect(o.pipelineJob!, unittest.equals('foo')); + unittest.expect(o.tunedModel!, unittest.equals('foo')); + unittest.expect(o.tuningJob!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1TunedModelRef--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1BigQueryDestination', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BigQueryDestination(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1BigQueryDestination.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BigQueryDestination(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1TuningDataStats = 0; +api.GoogleCloudAiplatformV1TuningDataStats +buildGoogleCloudAiplatformV1TuningDataStats() { + final o = api.GoogleCloudAiplatformV1TuningDataStats(); + buildCounterGoogleCloudAiplatformV1TuningDataStats++; + if (buildCounterGoogleCloudAiplatformV1TuningDataStats < 3) { + o.supervisedTuningDataStats = + buildGoogleCloudAiplatformV1SupervisedTuningDataStats(); + } + buildCounterGoogleCloudAiplatformV1TuningDataStats--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1BigQuerySource', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BigQuerySource(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1BigQuerySource.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BigQuerySource(od); - }); - }); +void checkGoogleCloudAiplatformV1TuningDataStats( + api.GoogleCloudAiplatformV1TuningDataStats o, +) { + buildCounterGoogleCloudAiplatformV1TuningDataStats++; + if (buildCounterGoogleCloudAiplatformV1TuningDataStats < 3) { + checkGoogleCloudAiplatformV1SupervisedTuningDataStats( + o.supervisedTuningDataStats!, + ); + } + buildCounterGoogleCloudAiplatformV1TuningDataStats--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1BleuInput', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BleuInput(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1BleuInput.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BleuInput(od); - }); - }); +core.Map buildUnnamed477() => { + 'x': 'foo', + 'y': 'foo', +}; - unittest.group('obj-schema-GoogleCloudAiplatformV1BleuInstance', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BleuInstance(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1BleuInstance.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BleuInstance(od); - }); - }); +void checkUnnamed477(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1BleuMetricValue', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BleuMetricValue(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1BleuMetricValue.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BleuMetricValue(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1TuningJob = 0; +api.GoogleCloudAiplatformV1TuningJob buildGoogleCloudAiplatformV1TuningJob() { + final o = api.GoogleCloudAiplatformV1TuningJob(); + buildCounterGoogleCloudAiplatformV1TuningJob++; + if (buildCounterGoogleCloudAiplatformV1TuningJob < 3) { + o.baseModel = 'foo'; + o.createTime = 'foo'; + o.description = 'foo'; + o.encryptionSpec = buildGoogleCloudAiplatformV1EncryptionSpec(); + o.endTime = 'foo'; + o.error = buildGoogleRpcStatus(); + o.experiment = 'foo'; + o.labels = buildUnnamed477(); + o.name = 'foo'; + o.serviceAccount = 'foo'; + o.startTime = 'foo'; + o.state = 'foo'; + o.supervisedTuningSpec = buildGoogleCloudAiplatformV1SupervisedTuningSpec(); + o.tunedModel = buildGoogleCloudAiplatformV1TunedModel(); + o.tunedModelDisplayName = 'foo'; + o.tuningDataStats = buildGoogleCloudAiplatformV1TuningDataStats(); + o.updateTime = 'foo'; + } + buildCounterGoogleCloudAiplatformV1TuningJob--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1BleuResults', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BleuResults(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1BleuResults.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BleuResults(od); - }); - }); +void checkGoogleCloudAiplatformV1TuningJob( + api.GoogleCloudAiplatformV1TuningJob o, +) { + buildCounterGoogleCloudAiplatformV1TuningJob++; + if (buildCounterGoogleCloudAiplatformV1TuningJob < 3) { + unittest.expect(o.baseModel!, unittest.equals('foo')); + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1EncryptionSpec(o.encryptionSpec!); + unittest.expect(o.endTime!, unittest.equals('foo')); + checkGoogleRpcStatus(o.error!); + unittest.expect(o.experiment!, unittest.equals('foo')); + checkUnnamed477(o.labels!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.serviceAccount!, unittest.equals('foo')); + unittest.expect(o.startTime!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1SupervisedTuningSpec(o.supervisedTuningSpec!); + checkGoogleCloudAiplatformV1TunedModel(o.tunedModel!); + unittest.expect(o.tunedModelDisplayName!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1TuningDataStats(o.tuningDataStats!); + unittest.expect(o.updateTime!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1TuningJob--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1BleuSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BleuSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1BleuSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BleuSpec(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1UndeployIndexRequest = 0; +api.GoogleCloudAiplatformV1UndeployIndexRequest +buildGoogleCloudAiplatformV1UndeployIndexRequest() { + final o = api.GoogleCloudAiplatformV1UndeployIndexRequest(); + buildCounterGoogleCloudAiplatformV1UndeployIndexRequest++; + if (buildCounterGoogleCloudAiplatformV1UndeployIndexRequest < 3) { + o.deployedIndexId = 'foo'; + } + buildCounterGoogleCloudAiplatformV1UndeployIndexRequest--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1Blob', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Blob(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Blob.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Blob(od); - }); - }); +void checkGoogleCloudAiplatformV1UndeployIndexRequest( + api.GoogleCloudAiplatformV1UndeployIndexRequest o, +) { + buildCounterGoogleCloudAiplatformV1UndeployIndexRequest++; + if (buildCounterGoogleCloudAiplatformV1UndeployIndexRequest < 3) { + unittest.expect(o.deployedIndexId!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1UndeployIndexRequest--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1BlurBaselineConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BlurBaselineConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1BlurBaselineConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BlurBaselineConfig(od); - }); - }); +core.Map buildUnnamed478() => {'x': 42, 'y': 42}; - unittest.group('obj-schema-GoogleCloudAiplatformV1BoolArray', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1BoolArray(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1BoolArray.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1BoolArray(od); - }); - }); +void checkUnnamed478(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals(42)); + unittest.expect(o['y']!, unittest.equals(42)); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CacheConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CacheConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CacheConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CacheConfig(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1UndeployModelRequest = 0; +api.GoogleCloudAiplatformV1UndeployModelRequest +buildGoogleCloudAiplatformV1UndeployModelRequest() { + final o = api.GoogleCloudAiplatformV1UndeployModelRequest(); + buildCounterGoogleCloudAiplatformV1UndeployModelRequest++; + if (buildCounterGoogleCloudAiplatformV1UndeployModelRequest < 3) { + o.deployedModelId = 'foo'; + o.trafficSplit = buildUnnamed478(); + } + buildCounterGoogleCloudAiplatformV1UndeployModelRequest--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CachedContent', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CachedContent(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CachedContent.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CachedContent(od); - }); - }); +void checkGoogleCloudAiplatformV1UndeployModelRequest( + api.GoogleCloudAiplatformV1UndeployModelRequest o, +) { + buildCounterGoogleCloudAiplatformV1UndeployModelRequest++; + if (buildCounterGoogleCloudAiplatformV1UndeployModelRequest < 3) { + unittest.expect(o.deployedModelId!, unittest.equals('foo')); + checkUnnamed478(o.trafficSplit!); + } + buildCounterGoogleCloudAiplatformV1UndeployModelRequest--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CachedContentUsageMetadata', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CachedContentUsageMetadata(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1CachedContentUsageMetadata.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CachedContentUsageMetadata(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1UnmanagedContainerModel = 0; +api.GoogleCloudAiplatformV1UnmanagedContainerModel +buildGoogleCloudAiplatformV1UnmanagedContainerModel() { + final o = api.GoogleCloudAiplatformV1UnmanagedContainerModel(); + buildCounterGoogleCloudAiplatformV1UnmanagedContainerModel++; + if (buildCounterGoogleCloudAiplatformV1UnmanagedContainerModel < 3) { + o.artifactUri = 'foo'; + o.containerSpec = buildGoogleCloudAiplatformV1ModelContainerSpec(); + o.predictSchemata = buildGoogleCloudAiplatformV1PredictSchemata(); + } + buildCounterGoogleCloudAiplatformV1UnmanagedContainerModel--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CancelBatchPredictionJobRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CancelBatchPredictionJobRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1CancelBatchPredictionJobRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CancelBatchPredictionJobRequest(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1UnmanagedContainerModel( + api.GoogleCloudAiplatformV1UnmanagedContainerModel o, +) { + buildCounterGoogleCloudAiplatformV1UnmanagedContainerModel++; + if (buildCounterGoogleCloudAiplatformV1UnmanagedContainerModel < 3) { + unittest.expect(o.artifactUri!, unittest.equals('foo')); + checkGoogleCloudAiplatformV1ModelContainerSpec(o.containerSpec!); + checkGoogleCloudAiplatformV1PredictSchemata(o.predictSchemata!); + } + buildCounterGoogleCloudAiplatformV1UnmanagedContainerModel--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CancelCustomJobRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CancelCustomJobRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CancelCustomJobRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CancelCustomJobRequest(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest = + 0; +api.GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest +buildGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest() { + final o = api.GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest(); + buildCounterGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest++; + if (buildCounterGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest < 3) { + o.endpoint = buildGoogleCloudAiplatformV1Endpoint(); + } + buildCounterGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CancelDataLabelingJobRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CancelDataLabelingJobRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1CancelDataLabelingJobRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CancelDataLabelingJobRequest(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest( + api.GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest o, +) { + buildCounterGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest++; + if (buildCounterGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest < 3) { + checkGoogleCloudAiplatformV1Endpoint(o.endpoint!); + } + buildCounterGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1UpdateExplanationDatasetRequest = 0; +api.GoogleCloudAiplatformV1UpdateExplanationDatasetRequest +buildGoogleCloudAiplatformV1UpdateExplanationDatasetRequest() { + final o = api.GoogleCloudAiplatformV1UpdateExplanationDatasetRequest(); + buildCounterGoogleCloudAiplatformV1UpdateExplanationDatasetRequest++; + if (buildCounterGoogleCloudAiplatformV1UpdateExplanationDatasetRequest < 3) { + o.examples = buildGoogleCloudAiplatformV1Examples(); + } + buildCounterGoogleCloudAiplatformV1UpdateExplanationDatasetRequest--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CancelNasJobRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CancelNasJobRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CancelNasJobRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CancelNasJobRequest(od); - }); - }); +void checkGoogleCloudAiplatformV1UpdateExplanationDatasetRequest( + api.GoogleCloudAiplatformV1UpdateExplanationDatasetRequest o, +) { + buildCounterGoogleCloudAiplatformV1UpdateExplanationDatasetRequest++; + if (buildCounterGoogleCloudAiplatformV1UpdateExplanationDatasetRequest < 3) { + checkGoogleCloudAiplatformV1Examples(o.examples!); + } + buildCounterGoogleCloudAiplatformV1UpdateExplanationDatasetRequest--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CancelPipelineJobRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CancelPipelineJobRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CancelPipelineJobRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CancelPipelineJobRequest(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest = 0; +api.GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest +buildGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest() { + final o = api.GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest(); + buildCounterGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest++; + if (buildCounterGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest < 3) {} + buildCounterGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CancelTrainingPipelineRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CancelTrainingPipelineRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1CancelTrainingPipelineRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CancelTrainingPipelineRequest(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest( + api.GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest o, +) { + buildCounterGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest++; + if (buildCounterGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest < 3) {} + buildCounterGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CancelTuningJobRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CancelTuningJobRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CancelTuningJobRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CancelTuningJobRequest(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1UploadModelRequest = 0; +api.GoogleCloudAiplatformV1UploadModelRequest +buildGoogleCloudAiplatformV1UploadModelRequest() { + final o = api.GoogleCloudAiplatformV1UploadModelRequest(); + buildCounterGoogleCloudAiplatformV1UploadModelRequest++; + if (buildCounterGoogleCloudAiplatformV1UploadModelRequest < 3) { + o.model = buildGoogleCloudAiplatformV1Model(); + o.modelId = 'foo'; + o.parentModel = 'foo'; + o.serviceAccount = 'foo'; + } + buildCounterGoogleCloudAiplatformV1UploadModelRequest--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1Candidate', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Candidate(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Candidate.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Candidate(od); - }); - }); +void checkGoogleCloudAiplatformV1UploadModelRequest( + api.GoogleCloudAiplatformV1UploadModelRequest o, +) { + buildCounterGoogleCloudAiplatformV1UploadModelRequest++; + if (buildCounterGoogleCloudAiplatformV1UploadModelRequest < 3) { + checkGoogleCloudAiplatformV1Model(o.model!); + unittest.expect(o.modelId!, unittest.equals('foo')); + unittest.expect(o.parentModel!, unittest.equals('foo')); + unittest.expect(o.serviceAccount!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1UploadModelRequest--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1UploadRagFileConfig = 0; +api.GoogleCloudAiplatformV1UploadRagFileConfig +buildGoogleCloudAiplatformV1UploadRagFileConfig() { + final o = api.GoogleCloudAiplatformV1UploadRagFileConfig(); + buildCounterGoogleCloudAiplatformV1UploadRagFileConfig++; + if (buildCounterGoogleCloudAiplatformV1UploadRagFileConfig < 3) { + o.ragFileTransformationConfig = + buildGoogleCloudAiplatformV1RagFileTransformationConfig(); + } + buildCounterGoogleCloudAiplatformV1UploadRagFileConfig--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1Checkpoint', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Checkpoint(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Checkpoint.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Checkpoint(od); - }); - }); +void checkGoogleCloudAiplatformV1UploadRagFileConfig( + api.GoogleCloudAiplatformV1UploadRagFileConfig o, +) { + buildCounterGoogleCloudAiplatformV1UploadRagFileConfig++; + if (buildCounterGoogleCloudAiplatformV1UploadRagFileConfig < 3) { + checkGoogleCloudAiplatformV1RagFileTransformationConfig( + o.ragFileTransformationConfig!, + ); + } + buildCounterGoogleCloudAiplatformV1UploadRagFileConfig--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1Citation', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Citation(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Citation.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Citation(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1UploadRagFileRequest = 0; +api.GoogleCloudAiplatformV1UploadRagFileRequest +buildGoogleCloudAiplatformV1UploadRagFileRequest() { + final o = api.GoogleCloudAiplatformV1UploadRagFileRequest(); + buildCounterGoogleCloudAiplatformV1UploadRagFileRequest++; + if (buildCounterGoogleCloudAiplatformV1UploadRagFileRequest < 3) { + o.ragFile = buildGoogleCloudAiplatformV1RagFile(); + o.uploadRagFileConfig = buildGoogleCloudAiplatformV1UploadRagFileConfig(); + } + buildCounterGoogleCloudAiplatformV1UploadRagFileRequest--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CitationMetadata', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CitationMetadata(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CitationMetadata.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CitationMetadata(od); - }); - }); +void checkGoogleCloudAiplatformV1UploadRagFileRequest( + api.GoogleCloudAiplatformV1UploadRagFileRequest o, +) { + buildCounterGoogleCloudAiplatformV1UploadRagFileRequest++; + if (buildCounterGoogleCloudAiplatformV1UploadRagFileRequest < 3) { + checkGoogleCloudAiplatformV1RagFile(o.ragFile!); + checkGoogleCloudAiplatformV1UploadRagFileConfig(o.uploadRagFileConfig!); + } + buildCounterGoogleCloudAiplatformV1UploadRagFileRequest--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1Claim', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Claim(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Claim.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Claim(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1UploadRagFileResponse = 0; +api.GoogleCloudAiplatformV1UploadRagFileResponse +buildGoogleCloudAiplatformV1UploadRagFileResponse() { + final o = api.GoogleCloudAiplatformV1UploadRagFileResponse(); + buildCounterGoogleCloudAiplatformV1UploadRagFileResponse++; + if (buildCounterGoogleCloudAiplatformV1UploadRagFileResponse < 3) { + o.error = buildGoogleRpcStatus(); + o.ragFile = buildGoogleCloudAiplatformV1RagFile(); + } + buildCounterGoogleCloudAiplatformV1UploadRagFileResponse--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ClientConnectionConfig', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ClientConnectionConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ClientConnectionConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ClientConnectionConfig(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1UploadRagFileResponse( + api.GoogleCloudAiplatformV1UploadRagFileResponse o, +) { + buildCounterGoogleCloudAiplatformV1UploadRagFileResponse++; + if (buildCounterGoogleCloudAiplatformV1UploadRagFileResponse < 3) { + checkGoogleRpcStatus(o.error!); + checkGoogleCloudAiplatformV1RagFile(o.ragFile!); + } + buildCounterGoogleCloudAiplatformV1UploadRagFileResponse--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CodeExecutionResult', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CodeExecutionResult(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CodeExecutionResult.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CodeExecutionResult(od); - }); - }); +core.List buildUnnamed479() => [ + buildGoogleCloudAiplatformV1IndexDatapoint(), + buildGoogleCloudAiplatformV1IndexDatapoint(), +]; - unittest.group('obj-schema-GoogleCloudAiplatformV1CoherenceInput', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CoherenceInput(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CoherenceInput.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CoherenceInput(od); - }); - }); +void checkUnnamed479(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1IndexDatapoint(o[0]); + checkGoogleCloudAiplatformV1IndexDatapoint(o[1]); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CoherenceInstance', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CoherenceInstance(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CoherenceInstance.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CoherenceInstance(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1UpsertDatapointsRequest = 0; +api.GoogleCloudAiplatformV1UpsertDatapointsRequest +buildGoogleCloudAiplatformV1UpsertDatapointsRequest() { + final o = api.GoogleCloudAiplatformV1UpsertDatapointsRequest(); + buildCounterGoogleCloudAiplatformV1UpsertDatapointsRequest++; + if (buildCounterGoogleCloudAiplatformV1UpsertDatapointsRequest < 3) { + o.datapoints = buildUnnamed479(); + o.updateMask = 'foo'; + } + buildCounterGoogleCloudAiplatformV1UpsertDatapointsRequest--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CoherenceResult', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CoherenceResult(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CoherenceResult.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CoherenceResult(od); - }); - }); +void checkGoogleCloudAiplatformV1UpsertDatapointsRequest( + api.GoogleCloudAiplatformV1UpsertDatapointsRequest o, +) { + buildCounterGoogleCloudAiplatformV1UpsertDatapointsRequest++; + if (buildCounterGoogleCloudAiplatformV1UpsertDatapointsRequest < 3) { + checkUnnamed479(o.datapoints!); + unittest.expect(o.updateMask!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1UpsertDatapointsRequest--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CoherenceSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CoherenceSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CoherenceSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CoherenceSpec(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1UpsertDatapointsResponse = 0; +api.GoogleCloudAiplatformV1UpsertDatapointsResponse +buildGoogleCloudAiplatformV1UpsertDatapointsResponse() { + final o = api.GoogleCloudAiplatformV1UpsertDatapointsResponse(); + buildCounterGoogleCloudAiplatformV1UpsertDatapointsResponse++; + if (buildCounterGoogleCloudAiplatformV1UpsertDatapointsResponse < 3) {} + buildCounterGoogleCloudAiplatformV1UpsertDatapointsResponse--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ColabImage', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ColabImage(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ColabImage.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ColabImage(od); - }); - }); +void checkGoogleCloudAiplatformV1UpsertDatapointsResponse( + api.GoogleCloudAiplatformV1UpsertDatapointsResponse o, +) { + buildCounterGoogleCloudAiplatformV1UpsertDatapointsResponse++; + if (buildCounterGoogleCloudAiplatformV1UpsertDatapointsResponse < 3) {} + buildCounterGoogleCloudAiplatformV1UpsertDatapointsResponse--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CometInput', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CometInput(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CometInput.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CometInput(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1UrlContext = 0; +api.GoogleCloudAiplatformV1UrlContext buildGoogleCloudAiplatformV1UrlContext() { + final o = api.GoogleCloudAiplatformV1UrlContext(); + buildCounterGoogleCloudAiplatformV1UrlContext++; + if (buildCounterGoogleCloudAiplatformV1UrlContext < 3) {} + buildCounterGoogleCloudAiplatformV1UrlContext--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CometInstance', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CometInstance(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CometInstance.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CometInstance(od); - }); - }); +void checkGoogleCloudAiplatformV1UrlContext( + api.GoogleCloudAiplatformV1UrlContext o, +) { + buildCounterGoogleCloudAiplatformV1UrlContext++; + if (buildCounterGoogleCloudAiplatformV1UrlContext < 3) {} + buildCounterGoogleCloudAiplatformV1UrlContext--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CometResult', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CometResult(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CometResult.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CometResult(od); - }); - }); +core.List buildUnnamed480() => [ + buildGoogleCloudAiplatformV1UrlMetadata(), + buildGoogleCloudAiplatformV1UrlMetadata(), +]; - unittest.group('obj-schema-GoogleCloudAiplatformV1CometSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CometSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CometSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CometSpec(od); - }); - }); +void checkUnnamed480(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1UrlMetadata(o[0]); + checkGoogleCloudAiplatformV1UrlMetadata(o[1]); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CompleteTrialRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CompleteTrialRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CompleteTrialRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CompleteTrialRequest(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1UrlContextMetadata = 0; +api.GoogleCloudAiplatformV1UrlContextMetadata +buildGoogleCloudAiplatformV1UrlContextMetadata() { + final o = api.GoogleCloudAiplatformV1UrlContextMetadata(); + buildCounterGoogleCloudAiplatformV1UrlContextMetadata++; + if (buildCounterGoogleCloudAiplatformV1UrlContextMetadata < 3) { + o.urlMetadata = buildUnnamed480(); + } + buildCounterGoogleCloudAiplatformV1UrlContextMetadata--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CompletionStats', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CompletionStats(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CompletionStats.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CompletionStats(od); - }); - }); +void checkGoogleCloudAiplatformV1UrlContextMetadata( + api.GoogleCloudAiplatformV1UrlContextMetadata o, +) { + buildCounterGoogleCloudAiplatformV1UrlContextMetadata++; + if (buildCounterGoogleCloudAiplatformV1UrlContextMetadata < 3) { + checkUnnamed480(o.urlMetadata!); + } + buildCounterGoogleCloudAiplatformV1UrlContextMetadata--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ComputeTokensRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ComputeTokensRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ComputeTokensRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ComputeTokensRequest(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1UrlMetadata = 0; +api.GoogleCloudAiplatformV1UrlMetadata +buildGoogleCloudAiplatformV1UrlMetadata() { + final o = api.GoogleCloudAiplatformV1UrlMetadata(); + buildCounterGoogleCloudAiplatformV1UrlMetadata++; + if (buildCounterGoogleCloudAiplatformV1UrlMetadata < 3) { + o.retrievedUrl = 'foo'; + o.urlRetrievalStatus = 'foo'; + } + buildCounterGoogleCloudAiplatformV1UrlMetadata--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ComputeTokensResponse', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ComputeTokensResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ComputeTokensResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ComputeTokensResponse(od); - }); - }); +void checkGoogleCloudAiplatformV1UrlMetadata( + api.GoogleCloudAiplatformV1UrlMetadata o, +) { + buildCounterGoogleCloudAiplatformV1UrlMetadata++; + if (buildCounterGoogleCloudAiplatformV1UrlMetadata < 3) { + unittest.expect(o.retrievedUrl!, unittest.equals('foo')); + unittest.expect(o.urlRetrievalStatus!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1UrlMetadata--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ContainerRegistryDestination', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ContainerRegistryDestination(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ContainerRegistryDestination.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ContainerRegistryDestination(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1UserActionReference = 0; +api.GoogleCloudAiplatformV1UserActionReference +buildGoogleCloudAiplatformV1UserActionReference() { + final o = api.GoogleCloudAiplatformV1UserActionReference(); + buildCounterGoogleCloudAiplatformV1UserActionReference++; + if (buildCounterGoogleCloudAiplatformV1UserActionReference < 3) { + o.dataLabelingJob = 'foo'; + o.method = 'foo'; + o.operation = 'foo'; + } + buildCounterGoogleCloudAiplatformV1UserActionReference--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ContainerSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ContainerSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ContainerSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ContainerSpec(od); - }); - }); +void checkGoogleCloudAiplatformV1UserActionReference( + api.GoogleCloudAiplatformV1UserActionReference o, +) { + buildCounterGoogleCloudAiplatformV1UserActionReference++; + if (buildCounterGoogleCloudAiplatformV1UserActionReference < 3) { + unittest.expect(o.dataLabelingJob!, unittest.equals('foo')); + unittest.expect(o.method!, unittest.equals('foo')); + unittest.expect(o.operation!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1UserActionReference--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1Content', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Content(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Content.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Content(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1Value = 0; +api.GoogleCloudAiplatformV1Value buildGoogleCloudAiplatformV1Value() { + final o = api.GoogleCloudAiplatformV1Value(); + buildCounterGoogleCloudAiplatformV1Value++; + if (buildCounterGoogleCloudAiplatformV1Value < 3) { + o.doubleValue = 42.0; + o.intValue = 'foo'; + o.stringValue = 'foo'; + } + buildCounterGoogleCloudAiplatformV1Value--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ContentMap', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ContentMap(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ContentMap.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ContentMap(od); - }); - }); +void checkGoogleCloudAiplatformV1Value(api.GoogleCloudAiplatformV1Value o) { + buildCounterGoogleCloudAiplatformV1Value++; + if (buildCounterGoogleCloudAiplatformV1Value < 3) { + unittest.expect(o.doubleValue!, unittest.equals(42.0)); + unittest.expect(o.intValue!, unittest.equals('foo')); + unittest.expect(o.stringValue!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1Value--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ContentMapContents', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ContentMapContents(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ContentMapContents.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ContentMapContents(od); - }); - }); +core.List +buildUnnamed481() => [ + buildGoogleCloudAiplatformV1VertexAISearchDataStoreSpec(), + buildGoogleCloudAiplatformV1VertexAISearchDataStoreSpec(), +]; - unittest.group('obj-schema-GoogleCloudAiplatformV1Context', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Context(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Context.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Context(od); - }); - }); +void checkUnnamed481( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1VertexAISearchDataStoreSpec(o[0]); + checkGoogleCloudAiplatformV1VertexAISearchDataStoreSpec(o[1]); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CopyModelRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CopyModelRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CopyModelRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CopyModelRequest(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1VertexAISearch = 0; +api.GoogleCloudAiplatformV1VertexAISearch +buildGoogleCloudAiplatformV1VertexAISearch() { + final o = api.GoogleCloudAiplatformV1VertexAISearch(); + buildCounterGoogleCloudAiplatformV1VertexAISearch++; + if (buildCounterGoogleCloudAiplatformV1VertexAISearch < 3) { + o.dataStoreSpecs = buildUnnamed481(); + o.datastore = 'foo'; + o.engine = 'foo'; + o.filter = 'foo'; + o.maxResults = 42; + } + buildCounterGoogleCloudAiplatformV1VertexAISearch--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CorpusStatus', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CorpusStatus(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CorpusStatus.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CorpusStatus(od); - }); - }); +void checkGoogleCloudAiplatformV1VertexAISearch( + api.GoogleCloudAiplatformV1VertexAISearch o, +) { + buildCounterGoogleCloudAiplatformV1VertexAISearch++; + if (buildCounterGoogleCloudAiplatformV1VertexAISearch < 3) { + checkUnnamed481(o.dataStoreSpecs!); + unittest.expect(o.datastore!, unittest.equals('foo')); + unittest.expect(o.engine!, unittest.equals('foo')); + unittest.expect(o.filter!, unittest.equals('foo')); + unittest.expect(o.maxResults!, unittest.equals(42)); + } + buildCounterGoogleCloudAiplatformV1VertexAISearch--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CorroborateContentRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CorroborateContentRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1CorroborateContentRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CorroborateContentRequest(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1VertexAISearchDataStoreSpec = 0; +api.GoogleCloudAiplatformV1VertexAISearchDataStoreSpec +buildGoogleCloudAiplatformV1VertexAISearchDataStoreSpec() { + final o = api.GoogleCloudAiplatformV1VertexAISearchDataStoreSpec(); + buildCounterGoogleCloudAiplatformV1VertexAISearchDataStoreSpec++; + if (buildCounterGoogleCloudAiplatformV1VertexAISearchDataStoreSpec < 3) { + o.dataStore = 'foo'; + o.filter = 'foo'; + } + buildCounterGoogleCloudAiplatformV1VertexAISearchDataStoreSpec--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CorroborateContentRequestParameters', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1CorroborateContentRequestParameters(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1CorroborateContentRequestParameters.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CorroborateContentRequestParameters(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1VertexAISearchDataStoreSpec( + api.GoogleCloudAiplatformV1VertexAISearchDataStoreSpec o, +) { + buildCounterGoogleCloudAiplatformV1VertexAISearchDataStoreSpec++; + if (buildCounterGoogleCloudAiplatformV1VertexAISearchDataStoreSpec < 3) { + unittest.expect(o.dataStore!, unittest.equals('foo')); + unittest.expect(o.filter!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1VertexAISearchDataStoreSpec--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CorroborateContentResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CorroborateContentResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1CorroborateContentResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CorroborateContentResponse(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1VertexAiSearchConfig = 0; +api.GoogleCloudAiplatformV1VertexAiSearchConfig +buildGoogleCloudAiplatformV1VertexAiSearchConfig() { + final o = api.GoogleCloudAiplatformV1VertexAiSearchConfig(); + buildCounterGoogleCloudAiplatformV1VertexAiSearchConfig++; + if (buildCounterGoogleCloudAiplatformV1VertexAiSearchConfig < 3) { + o.servingConfig = 'foo'; + } + buildCounterGoogleCloudAiplatformV1VertexAiSearchConfig--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CountTokensRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CountTokensRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CountTokensRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CountTokensRequest(od); - }); - }); +void checkGoogleCloudAiplatformV1VertexAiSearchConfig( + api.GoogleCloudAiplatformV1VertexAiSearchConfig o, +) { + buildCounterGoogleCloudAiplatformV1VertexAiSearchConfig++; + if (buildCounterGoogleCloudAiplatformV1VertexAiSearchConfig < 3) { + unittest.expect(o.servingConfig!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1VertexAiSearchConfig--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CountTokensResponse', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CountTokensResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CountTokensResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CountTokensResponse(od); - }); - }); +core.List +buildUnnamed482() => [ + buildGoogleCloudAiplatformV1VertexRagStoreRagResource(), + buildGoogleCloudAiplatformV1VertexRagStoreRagResource(), +]; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest(od); - }); - }, - ); +void checkUnnamed482( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1VertexRagStoreRagResource(o[0]); + checkGoogleCloudAiplatformV1VertexRagStoreRagResource(o[1]); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CreateFeatureRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CreateFeatureRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CreateFeatureRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CreateFeatureRequest(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1VertexRagStore = 0; +api.GoogleCloudAiplatformV1VertexRagStore +buildGoogleCloudAiplatformV1VertexRagStore() { + final o = api.GoogleCloudAiplatformV1VertexRagStore(); + buildCounterGoogleCloudAiplatformV1VertexRagStore++; + if (buildCounterGoogleCloudAiplatformV1VertexRagStore < 3) { + o.ragResources = buildUnnamed482(); + o.ragRetrievalConfig = buildGoogleCloudAiplatformV1RagRetrievalConfig(); + o.similarityTopK = 42; + o.vectorDistanceThreshold = 42.0; + } + buildCounterGoogleCloudAiplatformV1VertexRagStore--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CreateNotebookExecutionJobRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1CreateNotebookExecutionJobRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1CreateNotebookExecutionJobRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CreateNotebookExecutionJobRequest(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1VertexRagStore( + api.GoogleCloudAiplatformV1VertexRagStore o, +) { + buildCounterGoogleCloudAiplatformV1VertexRagStore++; + if (buildCounterGoogleCloudAiplatformV1VertexRagStore < 3) { + checkUnnamed482(o.ragResources!); + checkGoogleCloudAiplatformV1RagRetrievalConfig(o.ragRetrievalConfig!); + unittest.expect(o.similarityTopK!, unittest.equals(42)); + unittest.expect(o.vectorDistanceThreshold!, unittest.equals(42.0)); + } + buildCounterGoogleCloudAiplatformV1VertexRagStore--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CreatePipelineJobRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CreatePipelineJobRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CreatePipelineJobRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CreatePipelineJobRequest(od); - }); - }, - ); +core.List buildUnnamed483() => ['foo', 'foo']; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CreateTensorboardRunRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CreateTensorboardRunRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1CreateTensorboardRunRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CreateTensorboardRunRequest(od); - }); - }, - ); +void checkUnnamed483(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CreateTensorboardTimeSeriesRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1CreateTensorboardTimeSeriesRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1CreateTensorboardTimeSeriesRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CreateTensorboardTimeSeriesRequest(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1VertexRagStoreRagResource = 0; +api.GoogleCloudAiplatformV1VertexRagStoreRagResource +buildGoogleCloudAiplatformV1VertexRagStoreRagResource() { + final o = api.GoogleCloudAiplatformV1VertexRagStoreRagResource(); + buildCounterGoogleCloudAiplatformV1VertexRagStoreRagResource++; + if (buildCounterGoogleCloudAiplatformV1VertexRagStoreRagResource < 3) { + o.ragCorpus = 'foo'; + o.ragFileIds = buildUnnamed483(); + } + buildCounterGoogleCloudAiplatformV1VertexRagStoreRagResource--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CsvDestination', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CsvDestination(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CsvDestination.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CsvDestination(od); - }); - }); +void checkGoogleCloudAiplatformV1VertexRagStoreRagResource( + api.GoogleCloudAiplatformV1VertexRagStoreRagResource o, +) { + buildCounterGoogleCloudAiplatformV1VertexRagStoreRagResource++; + if (buildCounterGoogleCloudAiplatformV1VertexRagStoreRagResource < 3) { + unittest.expect(o.ragCorpus!, unittest.equals('foo')); + checkUnnamed483(o.ragFileIds!); + } + buildCounterGoogleCloudAiplatformV1VertexRagStoreRagResource--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CsvSource', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CsvSource(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CsvSource.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CsvSource(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1VideoMetadata = 0; +api.GoogleCloudAiplatformV1VideoMetadata +buildGoogleCloudAiplatformV1VideoMetadata() { + final o = api.GoogleCloudAiplatformV1VideoMetadata(); + buildCounterGoogleCloudAiplatformV1VideoMetadata++; + if (buildCounterGoogleCloudAiplatformV1VideoMetadata < 3) { + o.endOffset = 'foo'; + o.fps = 42.0; + o.startOffset = 'foo'; + } + buildCounterGoogleCloudAiplatformV1VideoMetadata--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CustomJob', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CustomJob(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CustomJob.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CustomJob(od); - }); - }); +void checkGoogleCloudAiplatformV1VideoMetadata( + api.GoogleCloudAiplatformV1VideoMetadata o, +) { + buildCounterGoogleCloudAiplatformV1VideoMetadata++; + if (buildCounterGoogleCloudAiplatformV1VideoMetadata < 3) { + unittest.expect(o.endOffset!, unittest.equals('foo')); + unittest.expect(o.fps!, unittest.equals(42.0)); + unittest.expect(o.startOffset!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1VideoMetadata--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CustomJobSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CustomJobSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CustomJobSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CustomJobSpec(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1VoiceConfig = 0; +api.GoogleCloudAiplatformV1VoiceConfig +buildGoogleCloudAiplatformV1VoiceConfig() { + final o = api.GoogleCloudAiplatformV1VoiceConfig(); + buildCounterGoogleCloudAiplatformV1VoiceConfig++; + if (buildCounterGoogleCloudAiplatformV1VoiceConfig < 3) { + o.prebuiltVoiceConfig = buildGoogleCloudAiplatformV1PrebuiltVoiceConfig(); + } + buildCounterGoogleCloudAiplatformV1VoiceConfig--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1CustomOutput', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CustomOutput(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CustomOutput.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CustomOutput(od); - }); - }); +void checkGoogleCloudAiplatformV1VoiceConfig( + api.GoogleCloudAiplatformV1VoiceConfig o, +) { + buildCounterGoogleCloudAiplatformV1VoiceConfig++; + if (buildCounterGoogleCloudAiplatformV1VoiceConfig < 3) { + checkGoogleCloudAiplatformV1PrebuiltVoiceConfig(o.prebuiltVoiceConfig!); + } + buildCounterGoogleCloudAiplatformV1VoiceConfig--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1CustomOutputFormatConfig', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1CustomOutputFormatConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1CustomOutputFormatConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1CustomOutputFormatConfig(od); - }); - }, - ); +core.List buildUnnamed484() => [ + buildGoogleCloudAiplatformV1NfsMount(), + buildGoogleCloudAiplatformV1NfsMount(), +]; - unittest.group('obj-schema-GoogleCloudAiplatformV1DataItem', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DataItem(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DataItem.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DataItem(od); - }); - }); +void checkUnnamed484(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1NfsMount(o[0]); + checkGoogleCloudAiplatformV1NfsMount(o[1]); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1DataItemView', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DataItemView(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DataItemView.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DataItemView(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1WorkerPoolSpec = 0; +api.GoogleCloudAiplatformV1WorkerPoolSpec +buildGoogleCloudAiplatformV1WorkerPoolSpec() { + final o = api.GoogleCloudAiplatformV1WorkerPoolSpec(); + buildCounterGoogleCloudAiplatformV1WorkerPoolSpec++; + if (buildCounterGoogleCloudAiplatformV1WorkerPoolSpec < 3) { + o.containerSpec = buildGoogleCloudAiplatformV1ContainerSpec(); + o.diskSpec = buildGoogleCloudAiplatformV1DiskSpec(); + o.machineSpec = buildGoogleCloudAiplatformV1MachineSpec(); + o.nfsMounts = buildUnnamed484(); + o.pythonPackageSpec = buildGoogleCloudAiplatformV1PythonPackageSpec(); + o.replicaCount = 'foo'; + } + buildCounterGoogleCloudAiplatformV1WorkerPoolSpec--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1DataLabelingJob', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DataLabelingJob(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DataLabelingJob.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DataLabelingJob(od); - }); - }); +void checkGoogleCloudAiplatformV1WorkerPoolSpec( + api.GoogleCloudAiplatformV1WorkerPoolSpec o, +) { + buildCounterGoogleCloudAiplatformV1WorkerPoolSpec++; + if (buildCounterGoogleCloudAiplatformV1WorkerPoolSpec < 3) { + checkGoogleCloudAiplatformV1ContainerSpec(o.containerSpec!); + checkGoogleCloudAiplatformV1DiskSpec(o.diskSpec!); + checkGoogleCloudAiplatformV1MachineSpec(o.machineSpec!); + checkUnnamed484(o.nfsMounts!); + checkGoogleCloudAiplatformV1PythonPackageSpec(o.pythonPackageSpec!); + unittest.expect(o.replicaCount!, unittest.equals('foo')); + } + buildCounterGoogleCloudAiplatformV1WorkerPoolSpec--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1Dataset', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Dataset(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Dataset.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Dataset(od); - }); - }); +core.Map +buildUnnamed485() => { + 'x': buildGoogleCloudAiplatformV1FeatureValue(), + 'y': buildGoogleCloudAiplatformV1FeatureValue(), +}; - unittest.group('obj-schema-GoogleCloudAiplatformV1DatasetVersion', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DatasetVersion(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DatasetVersion.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DatasetVersion(od); - }); - }); +void checkUnnamed485( + core.Map o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1FeatureValue(o['x']!); + checkGoogleCloudAiplatformV1FeatureValue(o['y']!); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1DedicatedResources', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DedicatedResources(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DedicatedResources.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DedicatedResources(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1WriteFeatureValuesPayload = 0; +api.GoogleCloudAiplatformV1WriteFeatureValuesPayload +buildGoogleCloudAiplatformV1WriteFeatureValuesPayload() { + final o = api.GoogleCloudAiplatformV1WriteFeatureValuesPayload(); + buildCounterGoogleCloudAiplatformV1WriteFeatureValuesPayload++; + if (buildCounterGoogleCloudAiplatformV1WriteFeatureValuesPayload < 3) { + o.entityId = 'foo'; + o.featureValues = buildUnnamed485(); + } + buildCounterGoogleCloudAiplatformV1WriteFeatureValuesPayload--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1DeleteFeatureValuesRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DeleteFeatureValuesRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1DeleteFeatureValuesRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeleteFeatureValuesRequest(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1WriteFeatureValuesPayload( + api.GoogleCloudAiplatformV1WriteFeatureValuesPayload o, +) { + buildCounterGoogleCloudAiplatformV1WriteFeatureValuesPayload++; + if (buildCounterGoogleCloudAiplatformV1WriteFeatureValuesPayload < 3) { + unittest.expect(o.entityId!, unittest.equals('foo')); + checkUnnamed485(o.featureValues!); + } + buildCounterGoogleCloudAiplatformV1WriteFeatureValuesPayload--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectEntity', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectEntity(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectEntity.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectEntity(od); - }); - }, - ); +core.List +buildUnnamed486() => [ + buildGoogleCloudAiplatformV1WriteFeatureValuesPayload(), + buildGoogleCloudAiplatformV1WriteFeatureValuesPayload(), +]; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectTimeRangeAndFeature', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectTimeRangeAndFeature(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectTimeRangeAndFeature.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectTimeRangeAndFeature( - od, - ); - }); - }, - ); +void checkUnnamed486( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1WriteFeatureValuesPayload(o[0]); + checkGoogleCloudAiplatformV1WriteFeatureValuesPayload(o[1]); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1DeployIndexRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DeployIndexRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DeployIndexRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeployIndexRequest(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1WriteFeatureValuesRequest = 0; +api.GoogleCloudAiplatformV1WriteFeatureValuesRequest +buildGoogleCloudAiplatformV1WriteFeatureValuesRequest() { + final o = api.GoogleCloudAiplatformV1WriteFeatureValuesRequest(); + buildCounterGoogleCloudAiplatformV1WriteFeatureValuesRequest++; + if (buildCounterGoogleCloudAiplatformV1WriteFeatureValuesRequest < 3) { + o.payloads = buildUnnamed486(); + } + buildCounterGoogleCloudAiplatformV1WriteFeatureValuesRequest--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1DeployModelRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DeployModelRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DeployModelRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeployModelRequest(od); - }); - }); +void checkGoogleCloudAiplatformV1WriteFeatureValuesRequest( + api.GoogleCloudAiplatformV1WriteFeatureValuesRequest o, +) { + buildCounterGoogleCloudAiplatformV1WriteFeatureValuesRequest++; + if (buildCounterGoogleCloudAiplatformV1WriteFeatureValuesRequest < 3) { + checkUnnamed486(o.payloads!); + } + buildCounterGoogleCloudAiplatformV1WriteFeatureValuesRequest--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1DeployRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DeployRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DeployRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeployRequest(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1WriteFeatureValuesResponse = 0; +api.GoogleCloudAiplatformV1WriteFeatureValuesResponse +buildGoogleCloudAiplatformV1WriteFeatureValuesResponse() { + final o = api.GoogleCloudAiplatformV1WriteFeatureValuesResponse(); + buildCounterGoogleCloudAiplatformV1WriteFeatureValuesResponse++; + if (buildCounterGoogleCloudAiplatformV1WriteFeatureValuesResponse < 3) {} + buildCounterGoogleCloudAiplatformV1WriteFeatureValuesResponse--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1DeployRequestDeployConfig', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DeployRequestDeployConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1DeployRequestDeployConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeployRequestDeployConfig(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1WriteFeatureValuesResponse( + api.GoogleCloudAiplatformV1WriteFeatureValuesResponse o, +) { + buildCounterGoogleCloudAiplatformV1WriteFeatureValuesResponse++; + if (buildCounterGoogleCloudAiplatformV1WriteFeatureValuesResponse < 3) {} + buildCounterGoogleCloudAiplatformV1WriteFeatureValuesResponse--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1DeployRequestEndpointConfig', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DeployRequestEndpointConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1DeployRequestEndpointConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeployRequestEndpointConfig(od); - }); - }, - ); +core.List +buildUnnamed487() => [ + buildGoogleCloudAiplatformV1WriteTensorboardRunDataRequest(), + buildGoogleCloudAiplatformV1WriteTensorboardRunDataRequest(), +]; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1DeployRequestModelConfig', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DeployRequestModelConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DeployRequestModelConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeployRequestModelConfig(od); - }); - }, - ); +void checkUnnamed487( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1WriteTensorboardRunDataRequest(o[0]); + checkGoogleCloudAiplatformV1WriteTensorboardRunDataRequest(o[1]); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1DeployedIndex', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DeployedIndex(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DeployedIndex.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeployedIndex(od); - }); - }); +core.int +buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest = 0; +api.GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest +buildGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest() { + final o = api.GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest(); + buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest++; + if (buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest < + 3) { + o.writeRunDataRequests = buildUnnamed487(); + } + buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1DeployedIndexAuthConfig', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DeployedIndexAuthConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DeployedIndexAuthConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeployedIndexAuthConfig(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest( + api.GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest o, +) { + buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest++; + if (buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest < + 3) { + checkUnnamed487(o.writeRunDataRequests!); + } + buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider(od); - }); - }, - ); +core.int +buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse = 0; +api.GoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse +buildGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse() { + final o = api.GoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse(); + buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse++; + if (buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse < + 3) {} + buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1DeployedIndexRef', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DeployedIndexRef(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DeployedIndexRef.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeployedIndexRef(od); - }); - }); +void checkGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse( + api.GoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse o, +) { + buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse++; + if (buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse < + 3) {} + buildCounterGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1DeployedModel', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DeployedModel(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DeployedModel.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeployedModel(od); - }); - }); +core.List buildUnnamed488() => [ + buildGoogleCloudAiplatformV1TimeSeriesData(), + buildGoogleCloudAiplatformV1TimeSeriesData(), +]; - unittest.group('obj-schema-GoogleCloudAiplatformV1DeployedModelRef', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DeployedModelRef(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DeployedModelRef.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeployedModelRef(od); - }); - }); +void checkUnnamed488(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudAiplatformV1TimeSeriesData(o[0]); + checkGoogleCloudAiplatformV1TimeSeriesData(o[1]); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1DeployedModelStatus', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DeployedModelStatus(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DeployedModelStatus.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeployedModelStatus(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataRequest = 0; +api.GoogleCloudAiplatformV1WriteTensorboardRunDataRequest +buildGoogleCloudAiplatformV1WriteTensorboardRunDataRequest() { + final o = api.GoogleCloudAiplatformV1WriteTensorboardRunDataRequest(); + buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataRequest++; + if (buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataRequest < 3) { + o.tensorboardRun = 'foo'; + o.timeSeriesData = buildUnnamed488(); + } + buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataRequest--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1DeploymentResourcePool', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DeploymentResourcePool(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DeploymentResourcePool.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DeploymentResourcePool(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1WriteTensorboardRunDataRequest( + api.GoogleCloudAiplatformV1WriteTensorboardRunDataRequest o, +) { + buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataRequest++; + if (buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataRequest < 3) { + unittest.expect(o.tensorboardRun!, unittest.equals('foo')); + checkUnnamed488(o.timeSeriesData!); + } + buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataRequest--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1DestinationFeatureSetting', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DestinationFeatureSetting(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1DestinationFeatureSetting.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DestinationFeatureSetting(od); - }); - }, - ); +core.int buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataResponse = 0; +api.GoogleCloudAiplatformV1WriteTensorboardRunDataResponse +buildGoogleCloudAiplatformV1WriteTensorboardRunDataResponse() { + final o = api.GoogleCloudAiplatformV1WriteTensorboardRunDataResponse(); + buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataResponse++; + if (buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataResponse < 3) {} + buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataResponse--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1DirectPredictRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DirectPredictRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DirectPredictRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DirectPredictRequest(od); - }); - }); +void checkGoogleCloudAiplatformV1WriteTensorboardRunDataResponse( + api.GoogleCloudAiplatformV1WriteTensorboardRunDataResponse o, +) { + buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataResponse++; + if (buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataResponse < 3) {} + buildCounterGoogleCloudAiplatformV1WriteTensorboardRunDataResponse--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1DirectPredictResponse', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DirectPredictResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DirectPredictResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DirectPredictResponse(od); - }); - }); +core.int buildCounterGoogleCloudAiplatformV1XraiAttribution = 0; +api.GoogleCloudAiplatformV1XraiAttribution +buildGoogleCloudAiplatformV1XraiAttribution() { + final o = api.GoogleCloudAiplatformV1XraiAttribution(); + buildCounterGoogleCloudAiplatformV1XraiAttribution++; + if (buildCounterGoogleCloudAiplatformV1XraiAttribution < 3) { + o.blurBaselineConfig = buildGoogleCloudAiplatformV1BlurBaselineConfig(); + o.smoothGradConfig = buildGoogleCloudAiplatformV1SmoothGradConfig(); + o.stepCount = 42; + } + buildCounterGoogleCloudAiplatformV1XraiAttribution--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1DirectRawPredictRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DirectRawPredictRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DirectRawPredictRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DirectRawPredictRequest(od); - }); - }, - ); +void checkGoogleCloudAiplatformV1XraiAttribution( + api.GoogleCloudAiplatformV1XraiAttribution o, +) { + buildCounterGoogleCloudAiplatformV1XraiAttribution++; + if (buildCounterGoogleCloudAiplatformV1XraiAttribution < 3) { + checkGoogleCloudAiplatformV1BlurBaselineConfig(o.blurBaselineConfig!); + checkGoogleCloudAiplatformV1SmoothGradConfig(o.smoothGradConfig!); + unittest.expect(o.stepCount!, unittest.equals(42)); + } + buildCounterGoogleCloudAiplatformV1XraiAttribution--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1DirectRawPredictResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DirectRawPredictResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DirectRawPredictResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DirectRawPredictResponse(od); - }); - }, - ); +core.List buildUnnamed489() => [ + buildGoogleCloudLocationLocation(), + buildGoogleCloudLocationLocation(), +]; - unittest.group('obj-schema-GoogleCloudAiplatformV1DirectUploadSource', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DirectUploadSource(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DirectUploadSource.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DirectUploadSource(od); - }); - }); +void checkUnnamed489(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudLocationLocation(o[0]); + checkGoogleCloudLocationLocation(o[1]); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1DiskSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DiskSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DiskSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DiskSpec(od); - }); - }); +core.int buildCounterGoogleCloudLocationListLocationsResponse = 0; +api.GoogleCloudLocationListLocationsResponse +buildGoogleCloudLocationListLocationsResponse() { + final o = api.GoogleCloudLocationListLocationsResponse(); + buildCounterGoogleCloudLocationListLocationsResponse++; + if (buildCounterGoogleCloudLocationListLocationsResponse < 3) { + o.locations = buildUnnamed489(); + o.nextPageToken = 'foo'; + } + buildCounterGoogleCloudLocationListLocationsResponse--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1DnsPeeringConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DnsPeeringConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DnsPeeringConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DnsPeeringConfig(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1DoubleArray', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DoubleArray(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DoubleArray.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DoubleArray(od); - }); - }); +void checkGoogleCloudLocationListLocationsResponse( + api.GoogleCloudLocationListLocationsResponse o, +) { + buildCounterGoogleCloudLocationListLocationsResponse++; + if (buildCounterGoogleCloudLocationListLocationsResponse < 3) { + checkUnnamed489(o.locations!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + } + buildCounterGoogleCloudLocationListLocationsResponse--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1DynamicRetrievalConfig', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1DynamicRetrievalConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1DynamicRetrievalConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1DynamicRetrievalConfig(od); - }); - }, - ); +core.Map buildUnnamed490() => { + 'x': 'foo', + 'y': 'foo', +}; - unittest.group('obj-schema-GoogleCloudAiplatformV1EncryptionSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1EncryptionSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1EncryptionSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1EncryptionSpec(od); - }); - }); +void checkUnnamed490(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1Endpoint', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Endpoint(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Endpoint.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Endpoint(od); - }); - }); +core.Map buildUnnamed491() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; - unittest.group('obj-schema-GoogleCloudAiplatformV1EnterpriseWebSearch', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1EnterpriseWebSearch(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1EnterpriseWebSearch.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1EnterpriseWebSearch(od); - }); - }); +void checkUnnamed491(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted101 = (o['x']!) as core.Map; + unittest.expect(casted101, unittest.hasLength(3)); + unittest.expect(casted101['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted101['bool'], unittest.equals(true)); + unittest.expect(casted101['string'], unittest.equals('foo')); + var casted102 = (o['y']!) as core.Map; + unittest.expect(casted102, unittest.hasLength(3)); + unittest.expect(casted102['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted102['bool'], unittest.equals(true)); + unittest.expect(casted102['string'], unittest.equals('foo')); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1EntityIdSelector', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1EntityIdSelector(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1EntityIdSelector.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1EntityIdSelector(od); - }); - }); +core.int buildCounterGoogleCloudLocationLocation = 0; +api.GoogleCloudLocationLocation buildGoogleCloudLocationLocation() { + final o = api.GoogleCloudLocationLocation(); + buildCounterGoogleCloudLocationLocation++; + if (buildCounterGoogleCloudLocationLocation < 3) { + o.displayName = 'foo'; + o.labels = buildUnnamed490(); + o.locationId = 'foo'; + o.metadata = buildUnnamed491(); + o.name = 'foo'; + } + buildCounterGoogleCloudLocationLocation--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1EntityType', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1EntityType(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1EntityType.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1EntityType(od); - }); - }); +void checkGoogleCloudLocationLocation(api.GoogleCloudLocationLocation o) { + buildCounterGoogleCloudLocationLocation++; + if (buildCounterGoogleCloudLocationLocation < 3) { + unittest.expect(o.displayName!, unittest.equals('foo')); + checkUnnamed490(o.labels!); + unittest.expect(o.locationId!, unittest.equals('foo')); + checkUnnamed491(o.metadata!); + unittest.expect(o.name!, unittest.equals('foo')); + } + buildCounterGoogleCloudLocationLocation--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1EnvVar', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1EnvVar(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1EnvVar.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1EnvVar(od); - }); - }); +core.List buildUnnamed492() => ['foo', 'foo']; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ErrorAnalysisAnnotation', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ErrorAnalysisAnnotation(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ErrorAnalysisAnnotation.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ErrorAnalysisAnnotation(od); - }); - }, - ); +void checkUnnamed492(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ErrorAnalysisAnnotationAttributedItem', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ErrorAnalysisAnnotationAttributedItem(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ErrorAnalysisAnnotationAttributedItem.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ErrorAnalysisAnnotationAttributedItem(od); - }); - }, - ); +core.int buildCounterGoogleIamV1Binding = 0; +api.GoogleIamV1Binding buildGoogleIamV1Binding() { + final o = api.GoogleIamV1Binding(); + buildCounterGoogleIamV1Binding++; + if (buildCounterGoogleIamV1Binding < 3) { + o.condition = buildGoogleTypeExpr(); + o.members = buildUnnamed492(); + o.role = 'foo'; + } + buildCounterGoogleIamV1Binding--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1EvaluateDatasetRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1EvaluateDatasetRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1EvaluateDatasetRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1EvaluateDatasetRequest(od); - }); - }, - ); +void checkGoogleIamV1Binding(api.GoogleIamV1Binding o) { + buildCounterGoogleIamV1Binding++; + if (buildCounterGoogleIamV1Binding < 3) { + checkGoogleTypeExpr(o.condition!); + checkUnnamed492(o.members!); + unittest.expect(o.role!, unittest.equals('foo')); + } + buildCounterGoogleIamV1Binding--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1EvaluateInstancesRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1EvaluateInstancesRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1EvaluateInstancesRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1EvaluateInstancesRequest(od); - }); - }, - ); +core.List buildUnnamed493() => [ + buildGoogleIamV1Binding(), + buildGoogleIamV1Binding(), +]; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1EvaluateInstancesResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1EvaluateInstancesResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1EvaluateInstancesResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1EvaluateInstancesResponse(od); - }); - }, - ); +void checkUnnamed493(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleIamV1Binding(o[0]); + checkGoogleIamV1Binding(o[1]); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1EvaluatedAnnotation', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1EvaluatedAnnotation(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1EvaluatedAnnotation.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1EvaluatedAnnotation(od); - }); - }); +core.int buildCounterGoogleIamV1Policy = 0; +api.GoogleIamV1Policy buildGoogleIamV1Policy() { + final o = api.GoogleIamV1Policy(); + buildCounterGoogleIamV1Policy++; + if (buildCounterGoogleIamV1Policy < 3) { + o.bindings = buildUnnamed493(); + o.etag = 'foo'; + o.version = 42; + } + buildCounterGoogleIamV1Policy--; + return o; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1EvaluatedAnnotationExplanation', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1EvaluatedAnnotationExplanation(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1EvaluatedAnnotationExplanation.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1EvaluatedAnnotationExplanation(od); - }); - }, - ); +void checkGoogleIamV1Policy(api.GoogleIamV1Policy o) { + buildCounterGoogleIamV1Policy++; + if (buildCounterGoogleIamV1Policy < 3) { + checkUnnamed493(o.bindings!); + unittest.expect(o.etag!, unittest.equals('foo')); + unittest.expect(o.version!, unittest.equals(42)); + } + buildCounterGoogleIamV1Policy--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1EvaluationDataset', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1EvaluationDataset(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1EvaluationDataset.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1EvaluationDataset(od); - }); - }); +core.int buildCounterGoogleIamV1SetIamPolicyRequest = 0; +api.GoogleIamV1SetIamPolicyRequest buildGoogleIamV1SetIamPolicyRequest() { + final o = api.GoogleIamV1SetIamPolicyRequest(); + buildCounterGoogleIamV1SetIamPolicyRequest++; + if (buildCounterGoogleIamV1SetIamPolicyRequest < 3) { + o.policy = buildGoogleIamV1Policy(); + } + buildCounterGoogleIamV1SetIamPolicyRequest--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1Event', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Event(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Event.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Event(od); - }); - }); +void checkGoogleIamV1SetIamPolicyRequest(api.GoogleIamV1SetIamPolicyRequest o) { + buildCounterGoogleIamV1SetIamPolicyRequest++; + if (buildCounterGoogleIamV1SetIamPolicyRequest < 3) { + checkGoogleIamV1Policy(o.policy!); + } + buildCounterGoogleIamV1SetIamPolicyRequest--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ExactMatchInput', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExactMatchInput(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExactMatchInput.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExactMatchInput(od); - }); - }); +core.List buildUnnamed494() => ['foo', 'foo']; - unittest.group('obj-schema-GoogleCloudAiplatformV1ExactMatchInstance', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExactMatchInstance(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExactMatchInstance.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExactMatchInstance(od); - }); - }); +void checkUnnamed494(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ExactMatchMetricValue', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExactMatchMetricValue(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExactMatchMetricValue.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExactMatchMetricValue(od); - }); - }); +core.int buildCounterGoogleIamV1TestIamPermissionsResponse = 0; +api.GoogleIamV1TestIamPermissionsResponse +buildGoogleIamV1TestIamPermissionsResponse() { + final o = api.GoogleIamV1TestIamPermissionsResponse(); + buildCounterGoogleIamV1TestIamPermissionsResponse++; + if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) { + o.permissions = buildUnnamed494(); + } + buildCounterGoogleIamV1TestIamPermissionsResponse--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ExactMatchResults', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExactMatchResults(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExactMatchResults.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExactMatchResults(od); - }); - }); +void checkGoogleIamV1TestIamPermissionsResponse( + api.GoogleIamV1TestIamPermissionsResponse o, +) { + buildCounterGoogleIamV1TestIamPermissionsResponse++; + if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) { + checkUnnamed494(o.permissions!); + } + buildCounterGoogleIamV1TestIamPermissionsResponse--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ExactMatchSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExactMatchSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExactMatchSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExactMatchSpec(od); - }); - }); +core.List buildUnnamed495() => [ + buildGoogleLongrunningOperation(), + buildGoogleLongrunningOperation(), +]; - unittest.group('obj-schema-GoogleCloudAiplatformV1Examples', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Examples(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Examples.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Examples(od); - }); - }); +void checkUnnamed495(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleLongrunningOperation(o[0]); + checkGoogleLongrunningOperation(o[1]); +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExamplesExampleGcsSource', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExamplesExampleGcsSource(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExamplesExampleGcsSource.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExamplesExampleGcsSource(od); - }); - }, - ); +core.int buildCounterGoogleLongrunningListOperationsResponse = 0; +api.GoogleLongrunningListOperationsResponse +buildGoogleLongrunningListOperationsResponse() { + final o = api.GoogleLongrunningListOperationsResponse(); + buildCounterGoogleLongrunningListOperationsResponse++; + if (buildCounterGoogleLongrunningListOperationsResponse < 3) { + o.nextPageToken = 'foo'; + o.operations = buildUnnamed495(); + } + buildCounterGoogleLongrunningListOperationsResponse--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ExamplesOverride', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExamplesOverride(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExamplesOverride.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExamplesOverride(od); - }); - }); +void checkGoogleLongrunningListOperationsResponse( + api.GoogleLongrunningListOperationsResponse o, +) { + buildCounterGoogleLongrunningListOperationsResponse++; + if (buildCounterGoogleLongrunningListOperationsResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed495(o.operations!); + } + buildCounterGoogleLongrunningListOperationsResponse--; +} - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExamplesRestrictionsNamespace', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExamplesRestrictionsNamespace(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ExamplesRestrictionsNamespace.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExamplesRestrictionsNamespace(od); - }); - }, - ); +core.Map buildUnnamed496() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; - unittest.group('obj-schema-GoogleCloudAiplatformV1ExecutableCode', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExecutableCode(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExecutableCode.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExecutableCode(od); - }); - }); +void checkUnnamed496(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted103 = (o['x']!) as core.Map; + unittest.expect(casted103, unittest.hasLength(3)); + unittest.expect(casted103['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted103['bool'], unittest.equals(true)); + unittest.expect(casted103['string'], unittest.equals('foo')); + var casted104 = (o['y']!) as core.Map; + unittest.expect(casted104, unittest.hasLength(3)); + unittest.expect(casted104['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted104['bool'], unittest.equals(true)); + unittest.expect(casted104['string'], unittest.equals('foo')); +} + +core.Map buildUnnamed497() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; - unittest.group('obj-schema-GoogleCloudAiplatformV1Execution', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Execution(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Execution.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Execution(od); - }); - }); +void checkUnnamed497(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted105 = (o['x']!) as core.Map; + unittest.expect(casted105, unittest.hasLength(3)); + unittest.expect(casted105['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted105['bool'], unittest.equals(true)); + unittest.expect(casted105['string'], unittest.equals('foo')); + var casted106 = (o['y']!) as core.Map; + unittest.expect(casted106, unittest.hasLength(3)); + unittest.expect(casted106['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted106['bool'], unittest.equals(true)); + unittest.expect(casted106['string'], unittest.equals('foo')); +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ExplainRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExplainRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExplainRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExplainRequest(od); - }); - }); +core.int buildCounterGoogleLongrunningOperation = 0; +api.GoogleLongrunningOperation buildGoogleLongrunningOperation() { + final o = api.GoogleLongrunningOperation(); + buildCounterGoogleLongrunningOperation++; + if (buildCounterGoogleLongrunningOperation < 3) { + o.done = true; + o.error = buildGoogleRpcStatus(); + o.metadata = buildUnnamed496(); + o.name = 'foo'; + o.response = buildUnnamed497(); + } + buildCounterGoogleLongrunningOperation--; + return o; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1ExplainResponse', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExplainResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExplainResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExplainResponse(od); - }); - }); +void checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { + buildCounterGoogleLongrunningOperation++; + if (buildCounterGoogleLongrunningOperation < 3) { + unittest.expect(o.done!, unittest.isTrue); + checkGoogleRpcStatus(o.error!); + checkUnnamed496(o.metadata!); + unittest.expect(o.name!, unittest.equals('foo')); + checkUnnamed497(o.response!); + } + buildCounterGoogleLongrunningOperation--; +} - unittest.group('obj-schema-GoogleCloudAiplatformV1Explanation', () { +core.int buildCounterGoogleProtobufEmpty = 0; +api.GoogleProtobufEmpty buildGoogleProtobufEmpty() { + final o = api.GoogleProtobufEmpty(); + buildCounterGoogleProtobufEmpty++; + if (buildCounterGoogleProtobufEmpty < 3) {} + buildCounterGoogleProtobufEmpty--; + return o; +} + +void checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { + buildCounterGoogleProtobufEmpty++; + if (buildCounterGoogleProtobufEmpty < 3) {} + buildCounterGoogleProtobufEmpty--; +} + +core.Map buildUnnamed498() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed498(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted107 = (o['x']!) as core.Map; + unittest.expect(casted107, unittest.hasLength(3)); + unittest.expect(casted107['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted107['bool'], unittest.equals(true)); + unittest.expect(casted107['string'], unittest.equals('foo')); + var casted108 = (o['y']!) as core.Map; + unittest.expect(casted108, unittest.hasLength(3)); + unittest.expect(casted108['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted108['bool'], unittest.equals(true)); + unittest.expect(casted108['string'], unittest.equals('foo')); +} + +core.List> buildUnnamed499() => [ + buildUnnamed498(), + buildUnnamed498(), +]; + +void checkUnnamed499(core.List> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed498(o[0]); + checkUnnamed498(o[1]); +} + +core.int buildCounterGoogleRpcStatus = 0; +api.GoogleRpcStatus buildGoogleRpcStatus() { + final o = api.GoogleRpcStatus(); + buildCounterGoogleRpcStatus++; + if (buildCounterGoogleRpcStatus < 3) { + o.code = 42; + o.details = buildUnnamed499(); + o.message = 'foo'; + } + buildCounterGoogleRpcStatus--; + return o; +} + +void checkGoogleRpcStatus(api.GoogleRpcStatus o) { + buildCounterGoogleRpcStatus++; + if (buildCounterGoogleRpcStatus < 3) { + unittest.expect(o.code!, unittest.equals(42)); + checkUnnamed499(o.details!); + unittest.expect(o.message!, unittest.equals('foo')); + } + buildCounterGoogleRpcStatus--; +} + +core.int buildCounterGoogleTypeDate = 0; +api.GoogleTypeDate buildGoogleTypeDate() { + final o = api.GoogleTypeDate(); + buildCounterGoogleTypeDate++; + if (buildCounterGoogleTypeDate < 3) { + o.day = 42; + o.month = 42; + o.year = 42; + } + buildCounterGoogleTypeDate--; + return o; +} + +void checkGoogleTypeDate(api.GoogleTypeDate o) { + buildCounterGoogleTypeDate++; + if (buildCounterGoogleTypeDate < 3) { + unittest.expect(o.day!, unittest.equals(42)); + unittest.expect(o.month!, unittest.equals(42)); + unittest.expect(o.year!, unittest.equals(42)); + } + buildCounterGoogleTypeDate--; +} + +core.int buildCounterGoogleTypeExpr = 0; +api.GoogleTypeExpr buildGoogleTypeExpr() { + final o = api.GoogleTypeExpr(); + buildCounterGoogleTypeExpr++; + if (buildCounterGoogleTypeExpr < 3) { + o.description = 'foo'; + o.expression = 'foo'; + o.location = 'foo'; + o.title = 'foo'; + } + buildCounterGoogleTypeExpr--; + return o; +} + +void checkGoogleTypeExpr(api.GoogleTypeExpr o) { + buildCounterGoogleTypeExpr++; + if (buildCounterGoogleTypeExpr < 3) { + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.expression!, unittest.equals('foo')); + unittest.expect(o.location!, unittest.equals('foo')); + unittest.expect(o.title!, unittest.equals('foo')); + } + buildCounterGoogleTypeExpr--; +} + +core.int buildCounterGoogleTypeInterval = 0; +api.GoogleTypeInterval buildGoogleTypeInterval() { + final o = api.GoogleTypeInterval(); + buildCounterGoogleTypeInterval++; + if (buildCounterGoogleTypeInterval < 3) { + o.endTime = 'foo'; + o.startTime = 'foo'; + } + buildCounterGoogleTypeInterval--; + return o; +} + +void checkGoogleTypeInterval(api.GoogleTypeInterval o) { + buildCounterGoogleTypeInterval++; + if (buildCounterGoogleTypeInterval < 3) { + unittest.expect(o.endTime!, unittest.equals('foo')); + unittest.expect(o.startTime!, unittest.equals('foo')); + } + buildCounterGoogleTypeInterval--; +} + +core.int buildCounterGoogleTypeLatLng = 0; +api.GoogleTypeLatLng buildGoogleTypeLatLng() { + final o = api.GoogleTypeLatLng(); + buildCounterGoogleTypeLatLng++; + if (buildCounterGoogleTypeLatLng < 3) { + o.latitude = 42.0; + o.longitude = 42.0; + } + buildCounterGoogleTypeLatLng--; + return o; +} + +void checkGoogleTypeLatLng(api.GoogleTypeLatLng o) { + buildCounterGoogleTypeLatLng++; + if (buildCounterGoogleTypeLatLng < 3) { + unittest.expect(o.latitude!, unittest.equals(42.0)); + unittest.expect(o.longitude!, unittest.equals(42.0)); + } + buildCounterGoogleTypeLatLng--; +} + +core.int buildCounterGoogleTypeMoney = 0; +api.GoogleTypeMoney buildGoogleTypeMoney() { + final o = api.GoogleTypeMoney(); + buildCounterGoogleTypeMoney++; + if (buildCounterGoogleTypeMoney < 3) { + o.currencyCode = 'foo'; + o.nanos = 42; + o.units = 'foo'; + } + buildCounterGoogleTypeMoney--; + return o; +} + +void checkGoogleTypeMoney(api.GoogleTypeMoney o) { + buildCounterGoogleTypeMoney++; + if (buildCounterGoogleTypeMoney < 3) { + unittest.expect(o.currencyCode!, unittest.equals('foo')); + unittest.expect(o.nanos!, unittest.equals(42)); + unittest.expect(o.units!, unittest.equals('foo')); + } + buildCounterGoogleTypeMoney--; +} + +core.List buildUnnamed500() => ['foo', 'foo']; + +void checkUnnamed500(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed501() => ['foo', 'foo']; + +void checkUnnamed501(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed502() => ['foo', 'foo']; + +void checkUnnamed502(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed503() => ['foo', 'foo']; + +void checkUnnamed503(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed504() => ['foo', 'foo']; + +void checkUnnamed504(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed505() => ['foo', 'foo']; + +void checkUnnamed505(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed506() => ['foo', 'foo']; + +void checkUnnamed506(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed507() => ['foo', 'foo']; + +void checkUnnamed507(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed508() => ['foo', 'foo']; + +void checkUnnamed508(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed509() => ['foo', 'foo']; + +void checkUnnamed509(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed510() => ['foo', 'foo']; + +void checkUnnamed510(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +void main() { + unittest.group('obj-schema-GoogleApiHttpBody', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Explanation(); + final o = buildGoogleApiHttpBody(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Explanation.fromJson( + final od = api.GoogleApiHttpBody.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Explanation(od); + checkGoogleApiHttpBody(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ExplanationMetadata', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ActiveLearningConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExplanationMetadata(); + final o = buildGoogleCloudAiplatformV1ActiveLearningConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExplanationMetadata.fromJson( + final od = api.GoogleCloudAiplatformV1ActiveLearningConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExplanationMetadata(od); + checkGoogleCloudAiplatformV1ActiveLearningConfig(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExplanationMetadataInputMetadata', + 'obj-schema-GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadata(); + buildGoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ExplanationMetadataInputMetadata.fromJson( + .GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadata(od); + checkGoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain', + 'obj-schema-GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain(); + buildGoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain.fromJson( + .GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain( + checkGoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse( od, ); }); @@ -32774,469 +32631,410 @@ void main() { ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization', + 'obj-schema-GoogleCloudAiplatformV1AddContextChildrenRequest', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization(); + final o = buildGoogleCloudAiplatformV1AddContextChildrenRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization.fromJson( + .GoogleCloudAiplatformV1AddContextChildrenRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization( - od, - ); + checkGoogleCloudAiplatformV1AddContextChildrenRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExplanationMetadataOutputMetadata', + 'obj-schema-GoogleCloudAiplatformV1AddContextChildrenResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata(); + final o = buildGoogleCloudAiplatformV1AddContextChildrenResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ExplanationMetadataOutputMetadata.fromJson( + .GoogleCloudAiplatformV1AddContextChildrenResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata(od); + checkGoogleCloudAiplatformV1AddContextChildrenResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExplanationMetadataOverride', + 'obj-schema-GoogleCloudAiplatformV1AddExecutionEventsRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExplanationMetadataOverride(); + final o = buildGoogleCloudAiplatformV1AddExecutionEventsRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ExplanationMetadataOverride.fromJson( + .GoogleCloudAiplatformV1AddExecutionEventsRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExplanationMetadataOverride(od); + checkGoogleCloudAiplatformV1AddExecutionEventsRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride', + 'obj-schema-GoogleCloudAiplatformV1AddExecutionEventsResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride(); + final o = buildGoogleCloudAiplatformV1AddExecutionEventsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride.fromJson( + .GoogleCloudAiplatformV1AddExecutionEventsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride( - od, + checkGoogleCloudAiplatformV1AddExecutionEventsResponse(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1AddTrialMeasurementRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1AddTrialMeasurementRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1AddTrialMeasurementRequest.fromJson( + oJson as core.Map, ); + checkGoogleCloudAiplatformV1AddTrialMeasurementRequest(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ExplanationParameters', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1Annotation', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExplanationParameters(); + final o = buildGoogleCloudAiplatformV1Annotation(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExplanationParameters.fromJson( + final od = api.GoogleCloudAiplatformV1Annotation.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExplanationParameters(od); + checkGoogleCloudAiplatformV1Annotation(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ExplanationSpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1AnnotationSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExplanationSpec(); + final o = buildGoogleCloudAiplatformV1AnnotationSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExplanationSpec.fromJson( + final od = api.GoogleCloudAiplatformV1AnnotationSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExplanationSpec(od); + checkGoogleCloudAiplatformV1AnnotationSpec(od); }); }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExplanationSpecOverride', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExplanationSpecOverride(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExplanationSpecOverride.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExplanationSpecOverride(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1ApiAuth', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ApiAuth(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ApiAuth.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ApiAuth(od); + }); + }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ExportDataConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ApiAuthApiKeyConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExportDataConfig(); + final o = buildGoogleCloudAiplatformV1ApiAuthApiKeyConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExportDataConfig.fromJson( + final od = api.GoogleCloudAiplatformV1ApiAuthApiKeyConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExportDataConfig(od); + checkGoogleCloudAiplatformV1ApiAuthApiKeyConfig(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ExportDataRequest', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1Artifact', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExportDataRequest(); + final o = buildGoogleCloudAiplatformV1Artifact(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExportDataRequest.fromJson( + final od = api.GoogleCloudAiplatformV1Artifact.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExportDataRequest(od); + checkGoogleCloudAiplatformV1Artifact(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExportFeatureValuesRequest', + 'obj-schema-GoogleCloudAiplatformV1AssignNotebookRuntimeRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExportFeatureValuesRequest(); + final o = buildGoogleCloudAiplatformV1AssignNotebookRuntimeRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ExportFeatureValuesRequest.fromJson( + .GoogleCloudAiplatformV1AssignNotebookRuntimeRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExportFeatureValuesRequest(od); + checkGoogleCloudAiplatformV1AssignNotebookRuntimeRequest(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1Attribution', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Attribution(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Attribution.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Attribution(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1AugmentPromptRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1AugmentPromptRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1AugmentPromptRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1AugmentPromptRequest(od); + }); + }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport', + 'obj-schema-GoogleCloudAiplatformV1AugmentPromptRequestModel', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport(); + final o = buildGoogleCloudAiplatformV1AugmentPromptRequestModel(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport.fromJson( + .GoogleCloudAiplatformV1AugmentPromptRequestModel.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport( - od, - ); + checkGoogleCloudAiplatformV1AugmentPromptRequestModel(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ExportFilterSplit', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExportFilterSplit(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExportFilterSplit.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExportFilterSplit(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1ExportFractionSplit', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1AugmentPromptResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExportFractionSplit(); + final o = buildGoogleCloudAiplatformV1AugmentPromptResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExportFractionSplit.fromJson( + final od = api.GoogleCloudAiplatformV1AugmentPromptResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExportFractionSplit(od); + checkGoogleCloudAiplatformV1AugmentPromptResponse(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ExportModelRequest', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1AuthConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExportModelRequest(); + final o = buildGoogleCloudAiplatformV1AuthConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExportModelRequest.fromJson( + final od = api.GoogleCloudAiplatformV1AuthConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExportModelRequest(od); + checkGoogleCloudAiplatformV1AuthConfig(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExportModelRequestOutputConfig', + 'obj-schema-GoogleCloudAiplatformV1AuthConfigApiKeyConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExportModelRequestOutputConfig(); + final o = buildGoogleCloudAiplatformV1AuthConfigApiKeyConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ExportModelRequestOutputConfig.fromJson( + final od = api.GoogleCloudAiplatformV1AuthConfigApiKeyConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExportModelRequestOutputConfig(od); + checkGoogleCloudAiplatformV1AuthConfigApiKeyConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest', + 'obj-schema-GoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest(); + buildGoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest.fromJson( + .GoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest(od); + checkGoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse', + 'obj-schema-GoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse(); + final o = buildGoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse.fromJson( + .GoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse(od); + checkGoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ExternalApi', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1AuthConfigOauthConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExternalApi(); + final o = buildGoogleCloudAiplatformV1AuthConfigOauthConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ExternalApi.fromJson( + final od = api.GoogleCloudAiplatformV1AuthConfigOauthConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ExternalApi(od); + checkGoogleCloudAiplatformV1AuthConfigOauthConfig(od); }); }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExternalApiElasticSearchParams', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExternalApiElasticSearchParams(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ExternalApiElasticSearchParams.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExternalApiElasticSearchParams(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ExternalApiSimpleSearchParams', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ExternalApiSimpleSearchParams(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ExternalApiSimpleSearchParams.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ExternalApiSimpleSearchParams(od); - }); - }, - ); - - unittest.group('obj-schema-GoogleCloudAiplatformV1Fact', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1AuthConfigOidcConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Fact(); + final o = buildGoogleCloudAiplatformV1AuthConfigOidcConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Fact.fromJson( + final od = api.GoogleCloudAiplatformV1AuthConfigOidcConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Fact(od); + checkGoogleCloudAiplatformV1AuthConfigOidcConfig(od); }); }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FasterDeploymentConfig', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FasterDeploymentConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FasterDeploymentConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FasterDeploymentConfig(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1AutomaticResources', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1AutomaticResources(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1AutomaticResources.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1AutomaticResources(od); + }); + }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Feature', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1AutoraterConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Feature(); + final o = buildGoogleCloudAiplatformV1AutoraterConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Feature.fromJson( + final od = api.GoogleCloudAiplatformV1AutoraterConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Feature(od); + checkGoogleCloudAiplatformV1AutoraterConfig(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureGroup', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1AutoscalingMetricSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureGroup(); + final o = buildGoogleCloudAiplatformV1AutoscalingMetricSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FeatureGroup.fromJson( + final od = api.GoogleCloudAiplatformV1AutoscalingMetricSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureGroup(od); + checkGoogleCloudAiplatformV1AutoscalingMetricSpec(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureGroupBigQuery', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1AvroSource', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureGroupBigQuery(); + final o = buildGoogleCloudAiplatformV1AvroSource(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FeatureGroupBigQuery.fromJson( + final od = api.GoogleCloudAiplatformV1AvroSource.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureGroupBigQuery(od); + checkGoogleCloudAiplatformV1AvroSource(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries', + 'obj-schema-GoogleCloudAiplatformV1BatchCancelPipelineJobsRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries(); + final o = buildGoogleCloudAiplatformV1BatchCancelPipelineJobsRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries.fromJson( + .GoogleCloudAiplatformV1BatchCancelPipelineJobsRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries(od); + checkGoogleCloudAiplatformV1BatchCancelPipelineJobsRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly', + 'obj-schema-GoogleCloudAiplatformV1BatchCreateFeaturesRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly(); + final o = buildGoogleCloudAiplatformV1BatchCreateFeaturesRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly.fromJson( + .GoogleCloudAiplatformV1BatchCreateFeaturesRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly(od); + checkGoogleCloudAiplatformV1BatchCreateFeaturesRequest(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureNoiseSigma', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureNoiseSigma(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FeatureNoiseSigma.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FeatureNoiseSigma(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature', + 'obj-schema-GoogleCloudAiplatformV1BatchCreateTensorboardRunsRequest', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature(); + buildGoogleCloudAiplatformV1BatchCreateTensorboardRunsRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature.fromJson( + .GoogleCloudAiplatformV1BatchCreateTensorboardRunsRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature(od); + checkGoogleCloudAiplatformV1BatchCreateTensorboardRunsRequest(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureOnlineStore', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureOnlineStore(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FeatureOnlineStore.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FeatureOnlineStore(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureOnlineStoreBigtable', + 'obj-schema-GoogleCloudAiplatformV1BatchCreateTensorboardRunsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureOnlineStoreBigtable(); + final o = + buildGoogleCloudAiplatformV1BatchCreateTensorboardRunsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureOnlineStoreBigtable.fromJson( + .GoogleCloudAiplatformV1BatchCreateTensorboardRunsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureOnlineStoreBigtable(od); + checkGoogleCloudAiplatformV1BatchCreateTensorboardRunsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling', + 'obj-schema-GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling(); + buildGoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling.fromJson( + .GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling(od); + checkGoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint', + 'obj-schema-GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint(); + buildGoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint.fromJson( + .GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint( + checkGoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse( od, ); }); @@ -33244,253 +33042,180 @@ void main() { ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureOnlineStoreOptimized', + 'obj-schema-GoogleCloudAiplatformV1BatchDedicatedResources', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureOnlineStoreOptimized(); + final o = buildGoogleCloudAiplatformV1BatchDedicatedResources(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1FeatureOnlineStoreOptimized.fromJson( + final od = api.GoogleCloudAiplatformV1BatchDedicatedResources.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureOnlineStoreOptimized(od); + checkGoogleCloudAiplatformV1BatchDedicatedResources(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureSelector', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureSelector(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FeatureSelector.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FeatureSelector(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureStatsAnomaly', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureStatsAnomaly(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FeatureStatsAnomaly.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FeatureStatsAnomaly(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureValue', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureValue(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FeatureValue.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FeatureValue(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureValueDestination', + 'obj-schema-GoogleCloudAiplatformV1BatchDeletePipelineJobsRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureValueDestination(); + final o = buildGoogleCloudAiplatformV1BatchDeletePipelineJobsRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FeatureValueDestination.fromJson( + final od = api + .GoogleCloudAiplatformV1BatchDeletePipelineJobsRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureValueDestination(od); + checkGoogleCloudAiplatformV1BatchDeletePipelineJobsRequest(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureValueList', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureValueList(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FeatureValueList.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FeatureValueList(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureValueMetadata', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureValueMetadata(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FeatureValueMetadata.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FeatureValueMetadata(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureView', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureView(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FeatureView.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FeatureView(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureViewBigQuerySource', + 'obj-schema-GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureViewBigQuerySource(); + final o = + buildGoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureViewBigQuerySource.fromJson( + .GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureViewBigQuerySource(od); + checkGoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureViewDataKey', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureViewDataKey(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FeatureViewDataKey.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FeatureViewDataKey(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey', + 'obj-schema-GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey(); + final o = + buildGoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey.fromJson( + .GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey(od); + checkGoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureViewDirectWriteRequest', + 'obj-schema-GoogleCloudAiplatformV1BatchMigrateResourcesRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequest(); + final o = buildGoogleCloudAiplatformV1BatchMigrateResourcesRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureViewDirectWriteRequest.fromJson( + .GoogleCloudAiplatformV1BatchMigrateResourcesRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequest(od); + checkGoogleCloudAiplatformV1BatchMigrateResourcesRequest(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1BatchPredictionJob', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1BatchPredictionJob(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1BatchPredictionJob.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1BatchPredictionJob(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues', + 'obj-schema-GoogleCloudAiplatformV1BatchPredictionJobInputConfig', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues(); + final o = buildGoogleCloudAiplatformV1BatchPredictionJobInputConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues.fromJson( + .GoogleCloudAiplatformV1BatchPredictionJobInputConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues( - od, - ); + checkGoogleCloudAiplatformV1BatchPredictionJobInputConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature', + 'obj-schema-GoogleCloudAiplatformV1BatchPredictionJobInstanceConfig', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature(); + buildGoogleCloudAiplatformV1BatchPredictionJobInstanceConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature.fromJson( + .GoogleCloudAiplatformV1BatchPredictionJobInstanceConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature( - od, - ); + checkGoogleCloudAiplatformV1BatchPredictionJobInstanceConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureViewDirectWriteResponse', + 'obj-schema-GoogleCloudAiplatformV1BatchPredictionJobOutputConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureViewDirectWriteResponse(); + final o = buildGoogleCloudAiplatformV1BatchPredictionJobOutputConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureViewDirectWriteResponse.fromJson( + .GoogleCloudAiplatformV1BatchPredictionJobOutputConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureViewDirectWriteResponse(od); + checkGoogleCloudAiplatformV1BatchPredictionJobOutputConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse', + 'obj-schema-GoogleCloudAiplatformV1BatchPredictionJobOutputInfo', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse(); + final o = buildGoogleCloudAiplatformV1BatchPredictionJobOutputInfo(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse.fromJson( + .GoogleCloudAiplatformV1BatchPredictionJobOutputInfo.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse( - od, - ); + checkGoogleCloudAiplatformV1BatchPredictionJobOutputInfo(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource', + 'obj-schema-GoogleCloudAiplatformV1BatchReadFeatureValuesRequest', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource(); + final o = buildGoogleCloudAiplatformV1BatchReadFeatureValuesRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource.fromJson( + .GoogleCloudAiplatformV1BatchReadFeatureValuesRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource(od); + checkGoogleCloudAiplatformV1BatchReadFeatureValuesRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup', + 'obj-schema-GoogleCloudAiplatformV1BatchReadFeatureValuesRequestEntityTypeSpec', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup(); + buildGoogleCloudAiplatformV1BatchReadFeatureValuesRequestEntityTypeSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup.fromJson( + .GoogleCloudAiplatformV1BatchReadFeatureValuesRequestEntityTypeSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup( + checkGoogleCloudAiplatformV1BatchReadFeatureValuesRequestEntityTypeSpec( od, ); }); @@ -33498,1663 +33223,1706 @@ void main() { ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureViewIndexConfig', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureViewIndexConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FeatureViewIndexConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FeatureViewIndexConfig(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig', + 'obj-schema-GoogleCloudAiplatformV1BatchReadFeatureValuesRequestPassThroughField', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig(); + buildGoogleCloudAiplatformV1BatchReadFeatureValuesRequestPassThroughField(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig.fromJson( + .GoogleCloudAiplatformV1BatchReadFeatureValuesRequestPassThroughField.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig(od); + checkGoogleCloudAiplatformV1BatchReadFeatureValuesRequestPassThroughField( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig', + 'obj-schema-GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig(); + buildGoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig.fromJson( + .GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureViewOptimizedConfig', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureViewOptimizedConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1FeatureViewOptimizedConfig.fromJson( - oJson as core.Map, + checkGoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse( + od, ); - checkGoogleCloudAiplatformV1FeatureViewOptimizedConfig(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureViewSync', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1BigQueryDestination', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureViewSync(); + final o = buildGoogleCloudAiplatformV1BigQueryDestination(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FeatureViewSync.fromJson( + final od = api.GoogleCloudAiplatformV1BigQueryDestination.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureViewSync(od); + checkGoogleCloudAiplatformV1BigQueryDestination(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureViewSyncConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1BigQueryRequestSet', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureViewSyncConfig(); + final o = buildGoogleCloudAiplatformV1BigQueryRequestSet(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FeatureViewSyncConfig.fromJson( + final od = api.GoogleCloudAiplatformV1BigQueryRequestSet.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureViewSyncConfig(od); + checkGoogleCloudAiplatformV1BigQueryRequestSet(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureViewSyncSyncSummary', + 'obj-schema-GoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureViewSyncSyncSummary(); + final o = + buildGoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeatureViewSyncSyncSummary.fromJson( + .GoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeatureViewSyncSyncSummary(od); + checkGoogleCloudAiplatformV1BigQueryRequestSetSamplingConfig(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeatureViewVertexRagSource', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeatureViewVertexRagSource(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1FeatureViewVertexRagSource.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FeatureViewVertexRagSource(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1BigQuerySource', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1BigQuerySource(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1BigQuerySource.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1BigQuerySource(od); + }); + }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Featurestore', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1BleuInput', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Featurestore(); + final o = buildGoogleCloudAiplatformV1BleuInput(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Featurestore.fromJson( + final od = api.GoogleCloudAiplatformV1BleuInput.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Featurestore(od); + checkGoogleCloudAiplatformV1BleuInput(od); }); }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeaturestoreMonitoringConfig', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1FeaturestoreMonitoringConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfig(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1BleuInstance', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1BleuInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1BleuInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1BleuInstance(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis( - od, - ); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1BleuMetricValue', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1BleuMetricValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1BleuMetricValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1BleuMetricValue(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis(); + unittest.group('obj-schema-GoogleCloudAiplatformV1BleuResults', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1BleuResults(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1BleuResults.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1BleuResults(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1BleuSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1BleuSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1BleuSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1BleuSpec(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Blob', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Blob(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Blob.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Blob(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1BlurBaselineConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1BlurBaselineConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1BlurBaselineConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1BlurBaselineConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1BoolArray', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1BoolArray(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1BoolArray.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1BoolArray(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1CacheConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1CacheConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1CacheConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1CacheConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1CachedContent', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1CachedContent(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1CachedContent.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1CachedContent(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1CachedContentUsageMetadata', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1CachedContentUsageMetadata(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis.fromJson( + .GoogleCloudAiplatformV1CachedContentUsageMetadata.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis( - od, - ); + checkGoogleCloudAiplatformV1CachedContentUsageMetadata(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig', + 'obj-schema-GoogleCloudAiplatformV1CancelBatchPredictionJobRequest', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig(); + final o = buildGoogleCloudAiplatformV1CancelBatchPredictionJobRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig.fromJson( + .GoogleCloudAiplatformV1CancelBatchPredictionJobRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig( - od, - ); + checkGoogleCloudAiplatformV1CancelBatchPredictionJobRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeaturestoreOnlineServingConfig', + 'obj-schema-GoogleCloudAiplatformV1CancelCustomJobRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig(); + final o = buildGoogleCloudAiplatformV1CancelCustomJobRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1FeaturestoreOnlineServingConfig.fromJson( + final od = api.GoogleCloudAiplatformV1CancelCustomJobRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig(od); + checkGoogleCloudAiplatformV1CancelCustomJobRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling', + 'obj-schema-GoogleCloudAiplatformV1CancelDataLabelingJobRequest', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling(); + final o = buildGoogleCloudAiplatformV1CancelDataLabelingJobRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling.fromJson( + .GoogleCloudAiplatformV1CancelDataLabelingJobRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling(od); + checkGoogleCloudAiplatformV1CancelDataLabelingJobRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FetchFeatureValuesRequest', + 'obj-schema-GoogleCloudAiplatformV1CancelEvaluationRunRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FetchFeatureValuesRequest(); + final o = buildGoogleCloudAiplatformV1CancelEvaluationRunRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FetchFeatureValuesRequest.fromJson( + .GoogleCloudAiplatformV1CancelEvaluationRunRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FetchFeatureValuesRequest(od); + checkGoogleCloudAiplatformV1CancelEvaluationRunRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FetchFeatureValuesResponse', + 'obj-schema-GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FetchFeatureValuesResponse(); + final o = + buildGoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FetchFeatureValuesResponse.fromJson( + .GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FetchFeatureValuesResponse(od); + checkGoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1CancelNasJobRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1CancelNasJobRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1CancelNasJobRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1CancelNasJobRequest(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList', + 'obj-schema-GoogleCloudAiplatformV1CancelPipelineJobRequest', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList(); + final o = buildGoogleCloudAiplatformV1CancelPipelineJobRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList.fromJson( + final od = api.GoogleCloudAiplatformV1CancelPipelineJobRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList( - od, - ); + checkGoogleCloudAiplatformV1CancelPipelineJobRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair', + 'obj-schema-GoogleCloudAiplatformV1CancelTrainingPipelineRequest', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair(); + final o = buildGoogleCloudAiplatformV1CancelTrainingPipelineRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair.fromJson( + .GoogleCloudAiplatformV1CancelTrainingPipelineRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair( - od, - ); + checkGoogleCloudAiplatformV1CancelTrainingPipelineRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FetchPredictOperationRequest', + 'obj-schema-GoogleCloudAiplatformV1CancelTuningJobRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FetchPredictOperationRequest(); + final o = buildGoogleCloudAiplatformV1CancelTuningJobRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1FetchPredictOperationRequest.fromJson( + final od = api.GoogleCloudAiplatformV1CancelTuningJobRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FetchPredictOperationRequest(od); + checkGoogleCloudAiplatformV1CancelTuningJobRequest(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1FileData', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FileData(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FileData.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FileData(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1FileStatus', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1Candidate', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FileStatus(); + final o = buildGoogleCloudAiplatformV1Candidate(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FileStatus.fromJson( + final od = api.GoogleCloudAiplatformV1Candidate.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FileStatus(od); + checkGoogleCloudAiplatformV1Candidate(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FilterSplit', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CandidateResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FilterSplit(); + final o = buildGoogleCloudAiplatformV1CandidateResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FilterSplit.fromJson( + final od = api.GoogleCloudAiplatformV1CandidateResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FilterSplit(od); + checkGoogleCloudAiplatformV1CandidateResponse(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FindNeighborsRequest', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CandidateResult', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FindNeighborsRequest(); + final o = buildGoogleCloudAiplatformV1CandidateResult(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FindNeighborsRequest.fromJson( + final od = api.GoogleCloudAiplatformV1CandidateResult.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FindNeighborsRequest(od); + checkGoogleCloudAiplatformV1CandidateResult(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FindNeighborsRequestQuery', + 'obj-schema-GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FindNeighborsRequestQuery(); + final o = + buildGoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1FindNeighborsRequestQuery.fromJson( + .GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FindNeighborsRequestQuery(od); + checkGoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1Checkpoint', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Checkpoint(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Checkpoint.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Checkpoint(od); + }); + }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FindNeighborsResponse', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1Citation', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FindNeighborsResponse(); + final o = buildGoogleCloudAiplatformV1Citation(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FindNeighborsResponse.fromJson( + final od = api.GoogleCloudAiplatformV1Citation.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FindNeighborsResponse(od); + checkGoogleCloudAiplatformV1Citation(od); }); }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1CitationMetadata', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1CitationMetadata(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1CitationMetadata.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1CitationMetadata(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Claim', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Claim(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Claim.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Claim(od); + }); + }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1FindNeighborsResponseNeighbor', + 'obj-schema-GoogleCloudAiplatformV1ClientConnectionConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FindNeighborsResponseNeighbor(); + final o = buildGoogleCloudAiplatformV1ClientConnectionConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1FindNeighborsResponseNeighbor.fromJson( + final od = api.GoogleCloudAiplatformV1ClientConnectionConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FindNeighborsResponseNeighbor(od); + checkGoogleCloudAiplatformV1ClientConnectionConfig(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1FluencyInput', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CodeExecutionResult', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FluencyInput(); + final o = buildGoogleCloudAiplatformV1CodeExecutionResult(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FluencyInput.fromJson( + final od = api.GoogleCloudAiplatformV1CodeExecutionResult.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FluencyInput(od); + checkGoogleCloudAiplatformV1CodeExecutionResult(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FluencyInstance', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CoherenceInput', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FluencyInstance(); + final o = buildGoogleCloudAiplatformV1CoherenceInput(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FluencyInstance.fromJson( + final od = api.GoogleCloudAiplatformV1CoherenceInput.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FluencyInstance(od); + checkGoogleCloudAiplatformV1CoherenceInput(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FluencyResult', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CoherenceInstance', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FluencyResult(); + final o = buildGoogleCloudAiplatformV1CoherenceInstance(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FluencyResult.fromJson( + final od = api.GoogleCloudAiplatformV1CoherenceInstance.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FluencyResult(od); + checkGoogleCloudAiplatformV1CoherenceInstance(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FluencySpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CoherenceResult', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FluencySpec(); + final o = buildGoogleCloudAiplatformV1CoherenceResult(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FluencySpec.fromJson( + final od = api.GoogleCloudAiplatformV1CoherenceResult.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FluencySpec(od); + checkGoogleCloudAiplatformV1CoherenceResult(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FractionSplit', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CoherenceSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FractionSplit(); + final o = buildGoogleCloudAiplatformV1CoherenceSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FractionSplit.fromJson( + final od = api.GoogleCloudAiplatformV1CoherenceSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FractionSplit(od); + checkGoogleCloudAiplatformV1CoherenceSpec(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FulfillmentInput', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ColabImage', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FulfillmentInput(); + final o = buildGoogleCloudAiplatformV1ColabImage(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FulfillmentInput.fromJson( + final od = api.GoogleCloudAiplatformV1ColabImage.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FulfillmentInput(od); + checkGoogleCloudAiplatformV1ColabImage(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FulfillmentInstance', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CometInput', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FulfillmentInstance(); + final o = buildGoogleCloudAiplatformV1CometInput(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FulfillmentInstance.fromJson( + final od = api.GoogleCloudAiplatformV1CometInput.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FulfillmentInstance(od); + checkGoogleCloudAiplatformV1CometInput(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FulfillmentResult', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CometInstance', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FulfillmentResult(); + final o = buildGoogleCloudAiplatformV1CometInstance(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FulfillmentResult.fromJson( + final od = api.GoogleCloudAiplatformV1CometInstance.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FulfillmentResult(od); + checkGoogleCloudAiplatformV1CometInstance(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FulfillmentSpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CometResult', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FulfillmentSpec(); + final o = buildGoogleCloudAiplatformV1CometResult(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FulfillmentSpec.fromJson( + final od = api.GoogleCloudAiplatformV1CometResult.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FulfillmentSpec(od); + checkGoogleCloudAiplatformV1CometResult(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FunctionCall', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CometSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FunctionCall(); + final o = buildGoogleCloudAiplatformV1CometSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FunctionCall.fromJson( + final od = api.GoogleCloudAiplatformV1CometSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FunctionCall(od); + checkGoogleCloudAiplatformV1CometSpec(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FunctionCallingConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CompleteTrialRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FunctionCallingConfig(); + final o = buildGoogleCloudAiplatformV1CompleteTrialRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FunctionCallingConfig.fromJson( + final od = api.GoogleCloudAiplatformV1CompleteTrialRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FunctionCallingConfig(od); + checkGoogleCloudAiplatformV1CompleteTrialRequest(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FunctionDeclaration', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CompletionStats', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FunctionDeclaration(); + final o = buildGoogleCloudAiplatformV1CompletionStats(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FunctionDeclaration.fromJson( + final od = api.GoogleCloudAiplatformV1CompletionStats.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FunctionDeclaration(od); + checkGoogleCloudAiplatformV1CompletionStats(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1FunctionResponse', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ComputeTokensRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1FunctionResponse(); + final o = buildGoogleCloudAiplatformV1ComputeTokensRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1FunctionResponse.fromJson( + final od = api.GoogleCloudAiplatformV1ComputeTokensRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1FunctionResponse(od); + checkGoogleCloudAiplatformV1ComputeTokensRequest(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1GcsDestination', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ComputeTokensResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GcsDestination(); + final o = buildGoogleCloudAiplatformV1ComputeTokensResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GcsDestination.fromJson( + final od = api.GoogleCloudAiplatformV1ComputeTokensResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GcsDestination(od); + checkGoogleCloudAiplatformV1ComputeTokensResponse(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1GcsSource', () { + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ContainerRegistryDestination', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ContainerRegistryDestination(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ContainerRegistryDestination.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ContainerRegistryDestination(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ContainerSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GcsSource(); + final o = buildGoogleCloudAiplatformV1ContainerSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GcsSource.fromJson( + final od = api.GoogleCloudAiplatformV1ContainerSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GcsSource(od); + checkGoogleCloudAiplatformV1ContainerSpec(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1GdcConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1Content', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GdcConfig(); + final o = buildGoogleCloudAiplatformV1Content(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GdcConfig.fromJson( + final od = api.GoogleCloudAiplatformV1Content.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GdcConfig(od); + checkGoogleCloudAiplatformV1Content(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ContentMap', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ContentMap(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ContentMap.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ContentMap(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ContentMapContents', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ContentMapContents(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ContentMapContents.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ContentMapContents(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Context', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Context(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Context.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Context(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1CopyModelRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1CopyModelRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1CopyModelRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1CopyModelRequest(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1CorpusStatus', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1CorpusStatus(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1CorpusStatus.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1CorpusStatus(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig', + 'obj-schema-GoogleCloudAiplatformV1CorroborateContentRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig(); + final o = buildGoogleCloudAiplatformV1CorroborateContentRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig.fromJson( + .GoogleCloudAiplatformV1CorroborateContentRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig(od); + checkGoogleCloudAiplatformV1CorroborateContentRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig', + 'obj-schema-GoogleCloudAiplatformV1CorroborateContentRequestParameters', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig(); + buildGoogleCloudAiplatformV1CorroborateContentRequestParameters(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig.fromJson( + .GoogleCloudAiplatformV1CorroborateContentRequestParameters.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig(od); + checkGoogleCloudAiplatformV1CorroborateContentRequestParameters(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1GenerateContentRequest', + 'obj-schema-GoogleCloudAiplatformV1CorroborateContentResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GenerateContentRequest(); + final o = buildGoogleCloudAiplatformV1CorroborateContentResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GenerateContentRequest.fromJson( + final od = api + .GoogleCloudAiplatformV1CorroborateContentResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GenerateContentRequest(od); + checkGoogleCloudAiplatformV1CorroborateContentResponse(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1GenerateContentResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GenerateContentResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GenerateContentResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1GenerateContentResponse(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1CountTokensRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1CountTokensRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1CountTokensRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1CountTokensRequest(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1CountTokensResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1CountTokensResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1CountTokensResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1CountTokensResponse(od); + }); + }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata', + 'obj-schema-GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata(); + buildGoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata.fromJson( + .GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata(od); + checkGoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1GenerationConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CreateFeatureRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GenerationConfig(); + final o = buildGoogleCloudAiplatformV1CreateFeatureRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GenerationConfig.fromJson( + final od = api.GoogleCloudAiplatformV1CreateFeatureRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GenerationConfig(od); + checkGoogleCloudAiplatformV1CreateFeatureRequest(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1GenerationConfigRoutingConfig', + 'obj-schema-GoogleCloudAiplatformV1CreateNotebookExecutionJobRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GenerationConfigRoutingConfig(); + final o = + buildGoogleCloudAiplatformV1CreateNotebookExecutionJobRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1GenerationConfigRoutingConfig.fromJson( + .GoogleCloudAiplatformV1CreateNotebookExecutionJobRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GenerationConfigRoutingConfig(od); + checkGoogleCloudAiplatformV1CreateNotebookExecutionJobRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode', + 'obj-schema-GoogleCloudAiplatformV1CreatePipelineJobRequest', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode(); + final o = buildGoogleCloudAiplatformV1CreatePipelineJobRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode.fromJson( + final od = api.GoogleCloudAiplatformV1CreatePipelineJobRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode( - od, - ); + checkGoogleCloudAiplatformV1CreatePipelineJobRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode', + 'obj-schema-GoogleCloudAiplatformV1CreateTensorboardRunRequest', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode(); + final o = buildGoogleCloudAiplatformV1CreateTensorboardRunRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode.fromJson( + .GoogleCloudAiplatformV1CreateTensorboardRunRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode( - od, - ); + checkGoogleCloudAiplatformV1CreateTensorboardRunRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1GenerationConfigThinkingConfig', + 'obj-schema-GoogleCloudAiplatformV1CreateTensorboardTimeSeriesRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GenerationConfigThinkingConfig(); + final o = + buildGoogleCloudAiplatformV1CreateTensorboardTimeSeriesRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1GenerationConfigThinkingConfig.fromJson( + .GoogleCloudAiplatformV1CreateTensorboardTimeSeriesRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GenerationConfigThinkingConfig(od); + checkGoogleCloudAiplatformV1CreateTensorboardTimeSeriesRequest(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1GenieSource', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CsvDestination', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GenieSource(); + final o = buildGoogleCloudAiplatformV1CsvDestination(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GenieSource.fromJson( + final od = api.GoogleCloudAiplatformV1CsvDestination.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GenieSource(od); + checkGoogleCloudAiplatformV1CsvDestination(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1GoogleDriveSource', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CsvSource', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GoogleDriveSource(); + final o = buildGoogleCloudAiplatformV1CsvSource(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GoogleDriveSource.fromJson( + final od = api.GoogleCloudAiplatformV1CsvSource.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GoogleDriveSource(od); + checkGoogleCloudAiplatformV1CsvSource(od); }); }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1GoogleDriveSourceResourceId', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GoogleDriveSourceResourceId(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1GoogleDriveSourceResourceId.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1GoogleDriveSourceResourceId(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1CustomJob', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1CustomJob(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1CustomJob.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1CustomJob(od); + }); + }); - unittest.group('obj-schema-GoogleCloudAiplatformV1GoogleMaps', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CustomJobSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GoogleMaps(); + final o = buildGoogleCloudAiplatformV1CustomJobSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GoogleMaps.fromJson( + final od = api.GoogleCloudAiplatformV1CustomJobSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GoogleMaps(od); + checkGoogleCloudAiplatformV1CustomJobSpec(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1GoogleSearchRetrieval', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1CustomOutput', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GoogleSearchRetrieval(); + final o = buildGoogleCloudAiplatformV1CustomOutput(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GoogleSearchRetrieval.fromJson( + final od = api.GoogleCloudAiplatformV1CustomOutput.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GoogleSearchRetrieval(od); + checkGoogleCloudAiplatformV1CustomOutput(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1GroundednessInput', () { + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1CustomOutputFormatConfig', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1CustomOutputFormatConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1CustomOutputFormatConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1CustomOutputFormatConfig(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1DataItem', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GroundednessInput(); + final o = buildGoogleCloudAiplatformV1DataItem(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GroundednessInput.fromJson( + final od = api.GoogleCloudAiplatformV1DataItem.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GroundednessInput(od); + checkGoogleCloudAiplatformV1DataItem(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1GroundednessInstance', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1DataItemView', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GroundednessInstance(); + final o = buildGoogleCloudAiplatformV1DataItemView(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GroundednessInstance.fromJson( + final od = api.GoogleCloudAiplatformV1DataItemView.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GroundednessInstance(od); + checkGoogleCloudAiplatformV1DataItemView(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1GroundednessResult', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1DataLabelingJob', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GroundednessResult(); + final o = buildGoogleCloudAiplatformV1DataLabelingJob(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GroundednessResult.fromJson( + final od = api.GoogleCloudAiplatformV1DataLabelingJob.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GroundednessResult(od); + checkGoogleCloudAiplatformV1DataLabelingJob(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1GroundednessSpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1Dataset', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GroundednessSpec(); + final o = buildGoogleCloudAiplatformV1Dataset(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GroundednessSpec.fromJson( + final od = api.GoogleCloudAiplatformV1Dataset.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GroundednessSpec(od); + checkGoogleCloudAiplatformV1Dataset(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1GroundingChunk', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1DatasetVersion', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GroundingChunk(); + final o = buildGoogleCloudAiplatformV1DatasetVersion(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GroundingChunk.fromJson( + final od = api.GoogleCloudAiplatformV1DatasetVersion.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GroundingChunk(od); + checkGoogleCloudAiplatformV1DatasetVersion(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1GroundingChunkMaps', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1DedicatedResources', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GroundingChunkMaps(); + final o = buildGoogleCloudAiplatformV1DedicatedResources(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GroundingChunkMaps.fromJson( + final od = api.GoogleCloudAiplatformV1DedicatedResources.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GroundingChunkMaps(od); + checkGoogleCloudAiplatformV1DedicatedResources(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources', + 'obj-schema-GoogleCloudAiplatformV1DeleteFeatureValuesRequest', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources(); + final o = buildGoogleCloudAiplatformV1DeleteFeatureValuesRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources.fromJson( + .GoogleCloudAiplatformV1DeleteFeatureValuesRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources(od); + checkGoogleCloudAiplatformV1DeleteFeatureValuesRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution', + 'obj-schema-GoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectEntity', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution(); + buildGoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectEntity(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution.fromJson( + .GoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectEntity.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution( - od, - ); + checkGoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectEntity(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet', + 'obj-schema-GoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectTimeRangeAndFeature', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet(); + buildGoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectTimeRangeAndFeature(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet.fromJson( + .GoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectTimeRangeAndFeature.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet( + checkGoogleCloudAiplatformV1DeleteFeatureValuesRequestSelectTimeRangeAndFeature( od, ); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1GroundingChunkRetrievedContext', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GroundingChunkRetrievedContext(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1GroundingChunkRetrievedContext.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1GroundingChunkRetrievedContext(od); - }); - }, - ); - - unittest.group('obj-schema-GoogleCloudAiplatformV1GroundingChunkWeb', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1DeployIndexRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GroundingChunkWeb(); + final o = buildGoogleCloudAiplatformV1DeployIndexRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GroundingChunkWeb.fromJson( + final od = api.GoogleCloudAiplatformV1DeployIndexRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GroundingChunkWeb(od); + checkGoogleCloudAiplatformV1DeployIndexRequest(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1GroundingMetadata', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1DeployModelRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GroundingMetadata(); + final o = buildGoogleCloudAiplatformV1DeployModelRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GroundingMetadata.fromJson( + final od = api.GoogleCloudAiplatformV1DeployModelRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GroundingMetadata(od); + checkGoogleCloudAiplatformV1DeployModelRequest(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1GroundingSupport', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1DeployRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1GroundingSupport(); + final o = buildGoogleCloudAiplatformV1DeployRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1GroundingSupport.fromJson( + final od = api.GoogleCloudAiplatformV1DeployRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1GroundingSupport(od); + checkGoogleCloudAiplatformV1DeployRequest(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1HyperparameterTuningJob', + 'obj-schema-GoogleCloudAiplatformV1DeployRequestDeployConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1HyperparameterTuningJob(); + final o = buildGoogleCloudAiplatformV1DeployRequestDeployConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1HyperparameterTuningJob.fromJson( + final od = api + .GoogleCloudAiplatformV1DeployRequestDeployConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1HyperparameterTuningJob(od); + checkGoogleCloudAiplatformV1DeployRequestDeployConfig(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1IdMatcher', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1IdMatcher(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1IdMatcher.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1IdMatcher(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1ImportDataConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ImportDataConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ImportDataConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ImportDataConfig(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1ImportDataRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ImportDataRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ImportDataRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ImportDataRequest(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ImportFeatureValuesRequest', + 'obj-schema-GoogleCloudAiplatformV1DeployRequestEndpointConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ImportFeatureValuesRequest(); + final o = buildGoogleCloudAiplatformV1DeployRequestEndpointConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ImportFeatureValuesRequest.fromJson( + .GoogleCloudAiplatformV1DeployRequestEndpointConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ImportFeatureValuesRequest(od); + checkGoogleCloudAiplatformV1DeployRequestEndpointConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec', + 'obj-schema-GoogleCloudAiplatformV1DeployRequestModelConfig', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec(); + final o = buildGoogleCloudAiplatformV1DeployRequestModelConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec.fromJson( + final od = api.GoogleCloudAiplatformV1DeployRequestModelConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec(od); + checkGoogleCloudAiplatformV1DeployRequestModelConfig(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1DeployedIndex', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1DeployedIndex(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1DeployedIndex.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1DeployedIndex(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1DeployedIndexAuthConfig', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1DeployedIndexAuthConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1DeployedIndexAuthConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1DeployedIndexAuthConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ImportModelEvaluationRequest', + 'obj-schema-GoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ImportModelEvaluationRequest(); + final o = + buildGoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ImportModelEvaluationRequest.fromJson( + .GoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ImportModelEvaluationRequest(od); + checkGoogleCloudAiplatformV1DeployedIndexAuthConfigAuthProvider(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ImportRagFilesConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1DeployedIndexRef', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ImportRagFilesConfig(); + final o = buildGoogleCloudAiplatformV1DeployedIndexRef(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ImportRagFilesConfig.fromJson( + final od = api.GoogleCloudAiplatformV1DeployedIndexRef.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ImportRagFilesConfig(od); + checkGoogleCloudAiplatformV1DeployedIndexRef(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ImportRagFilesRequest', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1DeployedModel', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ImportRagFilesRequest(); + final o = buildGoogleCloudAiplatformV1DeployedModel(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ImportRagFilesRequest.fromJson( + final od = api.GoogleCloudAiplatformV1DeployedModel.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ImportRagFilesRequest(od); + checkGoogleCloudAiplatformV1DeployedModel(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Index', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1DeployedModelRef', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Index(); + final o = buildGoogleCloudAiplatformV1DeployedModelRef(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Index.fromJson( + final od = api.GoogleCloudAiplatformV1DeployedModelRef.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Index(od); + checkGoogleCloudAiplatformV1DeployedModelRef(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1IndexDatapoint', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1DeployedModelStatus', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1IndexDatapoint(); + final o = buildGoogleCloudAiplatformV1DeployedModelStatus(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1IndexDatapoint.fromJson( + final od = api.GoogleCloudAiplatformV1DeployedModelStatus.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1IndexDatapoint(od); + checkGoogleCloudAiplatformV1DeployedModelStatus(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1IndexDatapointCrowdingTag', + 'obj-schema-GoogleCloudAiplatformV1DeploymentResourcePool', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1IndexDatapointCrowdingTag(); + final o = buildGoogleCloudAiplatformV1DeploymentResourcePool(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1IndexDatapointCrowdingTag.fromJson( + final od = api.GoogleCloudAiplatformV1DeploymentResourcePool.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1IndexDatapointCrowdingTag(od); + checkGoogleCloudAiplatformV1DeploymentResourcePool(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1IndexDatapointNumericRestriction', + 'obj-schema-GoogleCloudAiplatformV1DestinationFeatureSetting', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1IndexDatapointNumericRestriction(); + final o = buildGoogleCloudAiplatformV1DestinationFeatureSetting(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1IndexDatapointNumericRestriction.fromJson( + .GoogleCloudAiplatformV1DestinationFeatureSetting.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1IndexDatapointNumericRestriction(od); + checkGoogleCloudAiplatformV1DestinationFeatureSetting(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1DirectPredictRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1DirectPredictRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1DirectPredictRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1DirectPredictRequest(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1DirectPredictResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1DirectPredictResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1DirectPredictResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1DirectPredictResponse(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1IndexDatapointRestriction', + 'obj-schema-GoogleCloudAiplatformV1DirectRawPredictRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1IndexDatapointRestriction(); + final o = buildGoogleCloudAiplatformV1DirectRawPredictRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1IndexDatapointRestriction.fromJson( + final od = api.GoogleCloudAiplatformV1DirectRawPredictRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1IndexDatapointRestriction(od); + checkGoogleCloudAiplatformV1DirectRawPredictRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1IndexDatapointSparseEmbedding', + 'obj-schema-GoogleCloudAiplatformV1DirectRawPredictResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1IndexDatapointSparseEmbedding(); + final o = buildGoogleCloudAiplatformV1DirectRawPredictResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1IndexDatapointSparseEmbedding.fromJson( + final od = api.GoogleCloudAiplatformV1DirectRawPredictResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1IndexDatapointSparseEmbedding(od); + checkGoogleCloudAiplatformV1DirectRawPredictResponse(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1IndexEndpoint', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1IndexEndpoint(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1IndexEndpoint.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1IndexEndpoint(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1IndexPrivateEndpoints', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1DirectUploadSource', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1IndexPrivateEndpoints(); + final o = buildGoogleCloudAiplatformV1DirectUploadSource(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1IndexPrivateEndpoints.fromJson( + final od = api.GoogleCloudAiplatformV1DirectUploadSource.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1IndexPrivateEndpoints(od); + checkGoogleCloudAiplatformV1DirectUploadSource(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1IndexStats', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1DiskSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1IndexStats(); + final o = buildGoogleCloudAiplatformV1DiskSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1IndexStats.fromJson( + final od = api.GoogleCloudAiplatformV1DiskSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1IndexStats(od); + checkGoogleCloudAiplatformV1DiskSpec(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1InputDataConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1DnsPeeringConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1InputDataConfig(); + final o = buildGoogleCloudAiplatformV1DnsPeeringConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1InputDataConfig.fromJson( + final od = api.GoogleCloudAiplatformV1DnsPeeringConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1InputDataConfig(od); + checkGoogleCloudAiplatformV1DnsPeeringConfig(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Int64Array', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1DoubleArray', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Int64Array(); + final o = buildGoogleCloudAiplatformV1DoubleArray(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Int64Array.fromJson( + final od = api.GoogleCloudAiplatformV1DoubleArray.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Int64Array(od); + checkGoogleCloudAiplatformV1DoubleArray(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1IntegratedGradientsAttribution', + 'obj-schema-GoogleCloudAiplatformV1DynamicRetrievalConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1IntegratedGradientsAttribution(); + final o = buildGoogleCloudAiplatformV1DynamicRetrievalConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1IntegratedGradientsAttribution.fromJson( + final od = api.GoogleCloudAiplatformV1DynamicRetrievalConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1IntegratedGradientsAttribution(od); + checkGoogleCloudAiplatformV1DynamicRetrievalConfig(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1JiraSource', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1EncryptionSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1JiraSource(); + final o = buildGoogleCloudAiplatformV1EncryptionSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1JiraSource.fromJson( + final od = api.GoogleCloudAiplatformV1EncryptionSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1JiraSource(od); + checkGoogleCloudAiplatformV1EncryptionSpec(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1JiraSourceJiraQueries', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1Endpoint', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1JiraSourceJiraQueries(); + final o = buildGoogleCloudAiplatformV1Endpoint(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1JiraSourceJiraQueries.fromJson( + final od = api.GoogleCloudAiplatformV1Endpoint.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1JiraSourceJiraQueries(od); + checkGoogleCloudAiplatformV1Endpoint(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1LargeModelReference', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1EnterpriseWebSearch', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1LargeModelReference(); + final o = buildGoogleCloudAiplatformV1EnterpriseWebSearch(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1LargeModelReference.fromJson( + final od = api.GoogleCloudAiplatformV1EnterpriseWebSearch.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1LargeModelReference(od); + checkGoogleCloudAiplatformV1EnterpriseWebSearch(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1LineageSubgraph', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1EntityIdSelector', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1LineageSubgraph(); + final o = buildGoogleCloudAiplatformV1EntityIdSelector(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1LineageSubgraph.fromJson( + final od = api.GoogleCloudAiplatformV1EntityIdSelector.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1LineageSubgraph(od); + checkGoogleCloudAiplatformV1EntityIdSelector(od); }); }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListAnnotationsResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListAnnotationsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListAnnotationsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ListAnnotationsResponse(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1EntityType', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1EntityType(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1EntityType.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1EntityType(od); + }); + }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ListArtifactsResponse', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1EnvVar', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListArtifactsResponse(); + final o = buildGoogleCloudAiplatformV1EnvVar(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListArtifactsResponse.fromJson( + final od = api.GoogleCloudAiplatformV1EnvVar.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListArtifactsResponse(od); + checkGoogleCloudAiplatformV1EnvVar(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListBatchPredictionJobsResponse', + 'obj-schema-GoogleCloudAiplatformV1ErrorAnalysisAnnotation', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListBatchPredictionJobsResponse(); + final o = buildGoogleCloudAiplatformV1ErrorAnalysisAnnotation(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ListBatchPredictionJobsResponse.fromJson( + final od = api.GoogleCloudAiplatformV1ErrorAnalysisAnnotation.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListBatchPredictionJobsResponse(od); + checkGoogleCloudAiplatformV1ErrorAnalysisAnnotation(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListCachedContentsResponse', + 'obj-schema-GoogleCloudAiplatformV1ErrorAnalysisAnnotationAttributedItem', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListCachedContentsResponse(); + final o = + buildGoogleCloudAiplatformV1ErrorAnalysisAnnotationAttributedItem(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListCachedContentsResponse.fromJson( + .GoogleCloudAiplatformV1ErrorAnalysisAnnotationAttributedItem.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListCachedContentsResponse(od); + checkGoogleCloudAiplatformV1ErrorAnalysisAnnotationAttributedItem(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ListContextsResponse', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListContextsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListContextsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ListContextsResponse(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListCustomJobsResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluateDatasetRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListCustomJobsResponse(); + final o = buildGoogleCloudAiplatformV1EvaluateDatasetRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListCustomJobsResponse.fromJson( + final od = api.GoogleCloudAiplatformV1EvaluateDatasetRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListCustomJobsResponse(od); + checkGoogleCloudAiplatformV1EvaluateDatasetRequest(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ListDataItemsResponse', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListDataItemsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListDataItemsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ListDataItemsResponse(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListDataLabelingJobsResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluateInstancesRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListDataLabelingJobsResponse(); + final o = buildGoogleCloudAiplatformV1EvaluateInstancesRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ListDataLabelingJobsResponse.fromJson( + final od = api.GoogleCloudAiplatformV1EvaluateInstancesRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListDataLabelingJobsResponse(od); + checkGoogleCloudAiplatformV1EvaluateInstancesRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListDatasetVersionsResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluateInstancesResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListDatasetVersionsResponse(); + final o = buildGoogleCloudAiplatformV1EvaluateInstancesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListDatasetVersionsResponse.fromJson( + .GoogleCloudAiplatformV1EvaluateInstancesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListDatasetVersionsResponse(od); + checkGoogleCloudAiplatformV1EvaluateInstancesResponse(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ListDatasetsResponse', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1EvaluatedAnnotation', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListDatasetsResponse(); + final o = buildGoogleCloudAiplatformV1EvaluatedAnnotation(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListDatasetsResponse.fromJson( + final od = api.GoogleCloudAiplatformV1EvaluatedAnnotation.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListDatasetsResponse(od); + checkGoogleCloudAiplatformV1EvaluatedAnnotation(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluatedAnnotationExplanation', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse(); + final o = buildGoogleCloudAiplatformV1EvaluatedAnnotationExplanation(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse.fromJson( + .GoogleCloudAiplatformV1EvaluatedAnnotationExplanation.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse(od); + checkGoogleCloudAiplatformV1EvaluatedAnnotationExplanation(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ListEndpointsResponse', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1EvaluationDataset', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListEndpointsResponse(); + final o = buildGoogleCloudAiplatformV1EvaluationDataset(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListEndpointsResponse.fromJson( + final od = api.GoogleCloudAiplatformV1EvaluationDataset.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListEndpointsResponse(od); + checkGoogleCloudAiplatformV1EvaluationDataset(od); }); }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListEntityTypesResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListEntityTypesResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListEntityTypesResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ListEntityTypesResponse(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListExecutionsResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListExecutionsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListExecutionsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ListExecutionsResponse(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1EvaluationInstance', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1EvaluationInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1EvaluationInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1EvaluationInstance(od); + }); + }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListFeatureGroupsResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationInstanceInstanceData', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListFeatureGroupsResponse(); + final o = buildGoogleCloudAiplatformV1EvaluationInstanceInstanceData(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListFeatureGroupsResponse.fromJson( + .GoogleCloudAiplatformV1EvaluationInstanceInstanceData.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListFeatureGroupsResponse(od); + checkGoogleCloudAiplatformV1EvaluationInstanceInstanceData(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse(); + final o = + buildGoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse.fromJson( + .GoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse(od); + checkGoogleCloudAiplatformV1EvaluationInstanceInstanceDataContents(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListFeatureViewSyncsResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationInstanceMapInstance', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListFeatureViewSyncsResponse(); + final o = buildGoogleCloudAiplatformV1EvaluationInstanceMapInstance(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListFeatureViewSyncsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ListFeatureViewSyncsResponse(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListFeatureViewsResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListFeatureViewsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListFeatureViewsResponse.fromJson( + .GoogleCloudAiplatformV1EvaluationInstanceMapInstance.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListFeatureViewsResponse(od); + checkGoogleCloudAiplatformV1EvaluationInstanceMapInstance(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ListFeaturesResponse', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1EvaluationItem', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListFeaturesResponse(); + final o = buildGoogleCloudAiplatformV1EvaluationItem(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListFeaturesResponse.fromJson( + final od = api.GoogleCloudAiplatformV1EvaluationItem.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListFeaturesResponse(od); + checkGoogleCloudAiplatformV1EvaluationItem(od); }); }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListFeaturestoresResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListFeaturestoresResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ListFeaturestoresResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ListFeaturestoresResponse(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1EvaluationPrompt', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1EvaluationPrompt(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1EvaluationPrompt.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1EvaluationPrompt(od); + }); + }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse(); + buildGoogleCloudAiplatformV1EvaluationPromptPromptTemplateData(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse.fromJson( + .GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse(od); + checkGoogleCloudAiplatformV1EvaluationPromptPromptTemplateData(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1EvaluationRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1EvaluationRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1EvaluationRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1EvaluationRequest(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1EvaluationResult', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1EvaluationResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1EvaluationResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1EvaluationResult(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1EvaluationResults', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1EvaluationResults(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1EvaluationResults.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1EvaluationResults(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListIndexEndpointsResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationRubricConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListIndexEndpointsResponse(); + final o = buildGoogleCloudAiplatformV1EvaluationRubricConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ListIndexEndpointsResponse.fromJson( + final od = api.GoogleCloudAiplatformV1EvaluationRubricConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListIndexEndpointsResponse(od); + checkGoogleCloudAiplatformV1EvaluationRubricConfig(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ListIndexesResponse', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1EvaluationRun', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListIndexesResponse(); + final o = buildGoogleCloudAiplatformV1EvaluationRun(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListIndexesResponse.fromJson( + final od = api.GoogleCloudAiplatformV1EvaluationRun.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListIndexesResponse(od); + checkGoogleCloudAiplatformV1EvaluationRun(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListMetadataSchemasResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationRunDataSource', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListMetadataSchemasResponse(); + final o = buildGoogleCloudAiplatformV1EvaluationRunDataSource(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ListMetadataSchemasResponse.fromJson( + final od = api.GoogleCloudAiplatformV1EvaluationRunDataSource.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListMetadataSchemasResponse(od); + checkGoogleCloudAiplatformV1EvaluationRunDataSource(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListMetadataStoresResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationRunEvaluationConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListMetadataStoresResponse(); + final o = buildGoogleCloudAiplatformV1EvaluationRunEvaluationConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListMetadataStoresResponse.fromJson( + .GoogleCloudAiplatformV1EvaluationRunEvaluationConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListMetadataStoresResponse(od); + checkGoogleCloudAiplatformV1EvaluationRunEvaluationConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse(); + buildGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse.fromJson( + .GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse( + checkGoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig( od, ); }); @@ -35162,739 +34930,843 @@ void main() { ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListModelEvaluationSlicesResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse(); + buildGoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListModelEvaluationSlicesResponse.fromJson( + .GoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListModelEvaluationsResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListModelEvaluationsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ListModelEvaluationsResponse.fromJson( - oJson as core.Map, + checkGoogleCloudAiplatformV1EvaluationRunEvaluationConfigOutputConfig( + od, ); - checkGoogleCloudAiplatformV1ListModelEvaluationsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse(); + buildGoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse.fromJson( + .GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse(od); + checkGoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListModelVersionsResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationRunInferenceConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListModelVersionsResponse(); + final o = buildGoogleCloudAiplatformV1EvaluationRunInferenceConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListModelVersionsResponse.fromJson( + .GoogleCloudAiplatformV1EvaluationRunInferenceConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListModelVersionsResponse(od); + checkGoogleCloudAiplatformV1EvaluationRunInferenceConfig(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ListModelsResponse', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListModelsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListModelsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ListModelsResponse(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1ListNasJobsResponse', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1EvaluationRunMetric', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListNasJobsResponse(); + final o = buildGoogleCloudAiplatformV1EvaluationRunMetric(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListNasJobsResponse.fromJson( + final od = api.GoogleCloudAiplatformV1EvaluationRunMetric.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListNasJobsResponse(od); + checkGoogleCloudAiplatformV1EvaluationRunMetric(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListNasTrialDetailsResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListNasTrialDetailsResponse(); + final o = + buildGoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListNasTrialDetailsResponse.fromJson( + .GoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListNasTrialDetailsResponse(od); + checkGoogleCloudAiplatformV1EvaluationRunMetricLLMBasedMetricSpec(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse(); + buildGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse.fromJson( + .GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse(od); + checkGoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse(); + buildGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse.fromJson( + .GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse(od); + checkGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListNotebookRuntimesResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListNotebookRuntimesResponse(); + final o = + buildGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListNotebookRuntimesResponse.fromJson( + .GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListNotebookRuntimesResponse(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListOptimalTrialsRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListOptimalTrialsRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListOptimalTrialsRequest.fromJson( - oJson as core.Map, + checkGoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpecRepeatedRubrics( + od, ); - checkGoogleCloudAiplatformV1ListOptimalTrialsRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListOptimalTrialsResponse', + 'obj-schema-GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListOptimalTrialsResponse(); + final o = + buildGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListOptimalTrialsResponse.fromJson( + .GoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListOptimalTrialsResponse(od); + checkGoogleCloudAiplatformV1EvaluationRunMetricRubricGenerationSpec(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListPersistentResourcesResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListPersistentResourcesResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ListPersistentResourcesResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ListPersistentResourcesResponse(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1EvaluationSet', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1EvaluationSet(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1EvaluationSet.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1EvaluationSet(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListPipelineJobsResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListPipelineJobsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListPipelineJobsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ListPipelineJobsResponse(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1Event', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Event(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Event.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Event(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ExactMatchInput', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ExactMatchInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ExactMatchInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ExactMatchInput(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ExactMatchInstance', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ExactMatchInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ExactMatchInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ExactMatchInstance(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ExactMatchMetricValue', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ExactMatchMetricValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ExactMatchMetricValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ExactMatchMetricValue(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ExactMatchResults', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ExactMatchResults(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ExactMatchResults.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ExactMatchResults(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ExactMatchSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ExactMatchSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ExactMatchSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ExactMatchSpec(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Examples', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Examples(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Examples.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Examples(od); + }); + }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListRagCorporaResponse', + 'obj-schema-GoogleCloudAiplatformV1ExamplesExampleGcsSource', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListRagCorporaResponse(); + final o = buildGoogleCloudAiplatformV1ExamplesExampleGcsSource(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListRagCorporaResponse.fromJson( + final od = api.GoogleCloudAiplatformV1ExamplesExampleGcsSource.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListRagCorporaResponse(od); + checkGoogleCloudAiplatformV1ExamplesExampleGcsSource(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ListRagFilesResponse', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ExamplesOverride', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListRagFilesResponse(); + final o = buildGoogleCloudAiplatformV1ExamplesOverride(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListRagFilesResponse.fromJson( + final od = api.GoogleCloudAiplatformV1ExamplesOverride.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListRagFilesResponse(od); + checkGoogleCloudAiplatformV1ExamplesOverride(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListReasoningEnginesResponse', + 'obj-schema-GoogleCloudAiplatformV1ExamplesRestrictionsNamespace', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListReasoningEnginesResponse(); + final o = buildGoogleCloudAiplatformV1ExamplesRestrictionsNamespace(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListReasoningEnginesResponse.fromJson( + .GoogleCloudAiplatformV1ExamplesRestrictionsNamespace.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListReasoningEnginesResponse(od); + checkGoogleCloudAiplatformV1ExamplesRestrictionsNamespace(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListSavedQueriesResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListSavedQueriesResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListSavedQueriesResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ListSavedQueriesResponse(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1ExecutableCode', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ExecutableCode(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ExecutableCode.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ExecutableCode(od); + }); + }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ListSchedulesResponse', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1Execution', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListSchedulesResponse(); + final o = buildGoogleCloudAiplatformV1Execution(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListSchedulesResponse.fromJson( + final od = api.GoogleCloudAiplatformV1Execution.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListSchedulesResponse(od); + checkGoogleCloudAiplatformV1Execution(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ExplainRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ExplainRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ExplainRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ExplainRequest(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ExplainResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ExplainResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ExplainResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ExplainResponse(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Explanation', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Explanation(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Explanation.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Explanation(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ExplanationMetadata', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ExplanationMetadata(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ExplanationMetadata.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ExplanationMetadata(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListSpecialistPoolsResponse', + 'obj-schema-GoogleCloudAiplatformV1ExplanationMetadataInputMetadata', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListSpecialistPoolsResponse(); + final o = + buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadata(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListSpecialistPoolsResponse.fromJson( + .GoogleCloudAiplatformV1ExplanationMetadataInputMetadata.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListSpecialistPoolsResponse(od); + checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadata(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ListStudiesResponse', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListStudiesResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListStudiesResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ListStudiesResponse(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListTensorboardExperimentsResponse', + 'obj-schema-GoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ListTensorboardExperimentsResponse(); + buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListTensorboardExperimentsResponse.fromJson( + .GoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListTensorboardExperimentsResponse(od); + checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadataFeatureValueDomain( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListTensorboardRunsResponse', + 'obj-schema-GoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListTensorboardRunsResponse(); + final o = + buildGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListTensorboardRunsResponse.fromJson( + .GoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListTensorboardRunsResponse(od); + checkGoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse', + 'obj-schema-GoogleCloudAiplatformV1ExplanationMetadataOutputMetadata', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse(); + buildGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse.fromJson( + .GoogleCloudAiplatformV1ExplanationMetadataOutputMetadata.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse(od); + checkGoogleCloudAiplatformV1ExplanationMetadataOutputMetadata(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListTensorboardsResponse', + 'obj-schema-GoogleCloudAiplatformV1ExplanationMetadataOverride', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListTensorboardsResponse(); + final o = buildGoogleCloudAiplatformV1ExplanationMetadataOverride(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListTensorboardsResponse.fromJson( + final od = api + .GoogleCloudAiplatformV1ExplanationMetadataOverride.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListTensorboardsResponse(od); + checkGoogleCloudAiplatformV1ExplanationMetadataOverride(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListTrainingPipelinesResponse', + 'obj-schema-GoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListTrainingPipelinesResponse(); + final o = + buildGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ListTrainingPipelinesResponse.fromJson( + .GoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListTrainingPipelinesResponse(od); + checkGoogleCloudAiplatformV1ExplanationMetadataOverrideInputMetadataOverride( + od, + ); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ListTrialsResponse', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ExplanationParameters', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListTrialsResponse(); + final o = buildGoogleCloudAiplatformV1ExplanationParameters(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListTrialsResponse.fromJson( + final od = api.GoogleCloudAiplatformV1ExplanationParameters.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListTrialsResponse(od); + checkGoogleCloudAiplatformV1ExplanationParameters(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ExplanationSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ExplanationSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ExplanationSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ExplanationSpec(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ListTuningJobsResponse', + 'obj-schema-GoogleCloudAiplatformV1ExplanationSpecOverride', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ListTuningJobsResponse(); + final o = buildGoogleCloudAiplatformV1ExplanationSpecOverride(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ListTuningJobsResponse.fromJson( + final od = api.GoogleCloudAiplatformV1ExplanationSpecOverride.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ListTuningJobsResponse(od); + checkGoogleCloudAiplatformV1ExplanationSpecOverride(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1LogprobsResult', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ExportDataConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1LogprobsResult(); + final o = buildGoogleCloudAiplatformV1ExportDataConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1LogprobsResult.fromJson( + final od = api.GoogleCloudAiplatformV1ExportDataConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1LogprobsResult(od); + checkGoogleCloudAiplatformV1ExportDataConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ExportDataRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ExportDataRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ExportDataRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ExportDataRequest(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1LogprobsResultCandidate', + 'obj-schema-GoogleCloudAiplatformV1ExportFeatureValuesRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1LogprobsResultCandidate(); + final o = buildGoogleCloudAiplatformV1ExportFeatureValuesRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1LogprobsResultCandidate.fromJson( + final od = api + .GoogleCloudAiplatformV1ExportFeatureValuesRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1LogprobsResultCandidate(od); + checkGoogleCloudAiplatformV1ExportFeatureValuesRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1LogprobsResultTopCandidates', + 'obj-schema-GoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1LogprobsResultTopCandidates(); + final o = + buildGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1LogprobsResultTopCandidates.fromJson( + .GoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1LogprobsResultTopCandidates(od); + checkGoogleCloudAiplatformV1ExportFeatureValuesRequestFullExport(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1LookupStudyRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1LookupStudyRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1LookupStudyRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1LookupStudyRequest(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1MachineSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MachineSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1MachineSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1MachineSpec(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ManualBatchTuningParameters', + 'obj-schema-GoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ManualBatchTuningParameters(); + final o = + buildGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ManualBatchTuningParameters.fromJson( + .GoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ManualBatchTuningParameters(od); + checkGoogleCloudAiplatformV1ExportFeatureValuesRequestSnapshotExport( + od, + ); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1Measurement', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ExportFilterSplit', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Measurement(); + final o = buildGoogleCloudAiplatformV1ExportFilterSplit(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Measurement.fromJson( + final od = api.GoogleCloudAiplatformV1ExportFilterSplit.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Measurement(od); + checkGoogleCloudAiplatformV1ExportFilterSplit(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1MeasurementMetric', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ExportFractionSplit', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MeasurementMetric(); + final o = buildGoogleCloudAiplatformV1ExportFractionSplit(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1MeasurementMetric.fromJson( + final od = api.GoogleCloudAiplatformV1ExportFractionSplit.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MeasurementMetric(od); + checkGoogleCloudAiplatformV1ExportFractionSplit(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ExportModelRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ExportModelRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ExportModelRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ExportModelRequest(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1MergeVersionAliasesRequest', + 'obj-schema-GoogleCloudAiplatformV1ExportModelRequestOutputConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MergeVersionAliasesRequest(); + final o = buildGoogleCloudAiplatformV1ExportModelRequestOutputConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1MergeVersionAliasesRequest.fromJson( + .GoogleCloudAiplatformV1ExportModelRequestOutputConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MergeVersionAliasesRequest(od); + checkGoogleCloudAiplatformV1ExportModelRequestOutputConfig(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1MetadataSchema', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MetadataSchema(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1MetadataSchema.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1MetadataSchema(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1MetadataStore', () { + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ExternalApi', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MetadataStore(); + final o = buildGoogleCloudAiplatformV1ExternalApi(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1MetadataStore.fromJson( + final od = api.GoogleCloudAiplatformV1ExternalApi.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MetadataStore(od); + checkGoogleCloudAiplatformV1ExternalApi(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1MetadataStoreDataplexConfig', + 'obj-schema-GoogleCloudAiplatformV1ExternalApiElasticSearchParams', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MetadataStoreDataplexConfig(); + final o = buildGoogleCloudAiplatformV1ExternalApiElasticSearchParams(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1MetadataStoreDataplexConfig.fromJson( + .GoogleCloudAiplatformV1ExternalApiElasticSearchParams.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MetadataStoreDataplexConfig(od); + checkGoogleCloudAiplatformV1ExternalApiElasticSearchParams(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1MetadataStoreMetadataStoreState', + 'obj-schema-GoogleCloudAiplatformV1ExternalApiSimpleSearchParams', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MetadataStoreMetadataStoreState(); + final o = buildGoogleCloudAiplatformV1ExternalApiSimpleSearchParams(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1MetadataStoreMetadataStoreState.fromJson( + .GoogleCloudAiplatformV1ExternalApiSimpleSearchParams.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MetadataStoreMetadataStoreState(od); + checkGoogleCloudAiplatformV1ExternalApiSimpleSearchParams(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1Metric', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Metric(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Metric.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Metric(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1MetricxInput', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1Fact', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MetricxInput(); + final o = buildGoogleCloudAiplatformV1Fact(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1MetricxInput.fromJson( + final od = api.GoogleCloudAiplatformV1Fact.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MetricxInput(od); + checkGoogleCloudAiplatformV1Fact(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1MetricxInstance', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MetricxInstance(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1MetricxInstance.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1MetricxInstance(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1FasterDeploymentConfig', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FasterDeploymentConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1FasterDeploymentConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FasterDeploymentConfig(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1MetricxResult', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1Feature', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MetricxResult(); + final o = buildGoogleCloudAiplatformV1Feature(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1MetricxResult.fromJson( + final od = api.GoogleCloudAiplatformV1Feature.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MetricxResult(od); + checkGoogleCloudAiplatformV1Feature(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1MetricxSpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureGroup', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MetricxSpec(); + final o = buildGoogleCloudAiplatformV1FeatureGroup(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1MetricxSpec.fromJson( + final od = api.GoogleCloudAiplatformV1FeatureGroup.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MetricxSpec(od); + checkGoogleCloudAiplatformV1FeatureGroup(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1MigratableResource', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureGroupBigQuery', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MigratableResource(); + final o = buildGoogleCloudAiplatformV1FeatureGroupBigQuery(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1MigratableResource.fromJson( + final od = api.GoogleCloudAiplatformV1FeatureGroupBigQuery.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MigratableResource(od); + checkGoogleCloudAiplatformV1FeatureGroupBigQuery(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1MigratableResourceAutomlDataset', + 'obj-schema-GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MigratableResourceAutomlDataset(); + final o = buildGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1MigratableResourceAutomlDataset.fromJson( + .GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MigratableResourceAutomlDataset(od); + checkGoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1MigratableResourceAutomlModel', + 'obj-schema-GoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MigratableResourceAutomlModel(); + final o = buildGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1MigratableResourceAutomlModel.fromJson( + .GoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MigratableResourceAutomlModel(od); + checkGoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureNoiseSigma', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FeatureNoiseSigma(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1FeatureNoiseSigma.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FeatureNoiseSigma(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1MigratableResourceDataLabelingDataset', + 'obj-schema-GoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset(); + buildGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1MigratableResourceDataLabelingDataset.fromJson( + .GoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset(od); + checkGoogleCloudAiplatformV1FeatureNoiseSigmaNoiseSigmaForFeature(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureOnlineStore', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FeatureOnlineStore(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1FeatureOnlineStore.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FeatureOnlineStore(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset', + 'obj-schema-GoogleCloudAiplatformV1FeatureOnlineStoreBigtable', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset(); + final o = buildGoogleCloudAiplatformV1FeatureOnlineStoreBigtable(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset.fromJson( + .GoogleCloudAiplatformV1FeatureOnlineStoreBigtable.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset( - od, - ); + checkGoogleCloudAiplatformV1FeatureOnlineStoreBigtable(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion', + 'obj-schema-GoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion(); + buildGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1MigrateResourceRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MigrateResourceRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1MigrateResourceRequest.fromJson( + .GoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MigrateResourceRequest(od); + checkGoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig', + 'obj-schema-GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig(); + buildGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig.fromJson( + .GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig( + checkGoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint( od, ); }); @@ -35902,175 +35774,168 @@ void main() { ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig', + 'obj-schema-GoogleCloudAiplatformV1FeatureOnlineStoreOptimized', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig(); + final o = buildGoogleCloudAiplatformV1FeatureOnlineStoreOptimized(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig.fromJson( + .GoogleCloudAiplatformV1FeatureOnlineStoreOptimized.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig( - od, - ); + checkGoogleCloudAiplatformV1FeatureOnlineStoreOptimized(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig( - od, - ); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureSelector', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FeatureSelector(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1FeatureSelector.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FeatureSelector(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig( - od, - ); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureStatsAnomaly', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FeatureStatsAnomaly(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1FeatureStatsAnomaly.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FeatureStatsAnomaly(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureValue', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FeatureValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1FeatureValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FeatureValue(od); + }); + }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig', + 'obj-schema-GoogleCloudAiplatformV1FeatureValueDestination', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig(); + final o = buildGoogleCloudAiplatformV1FeatureValueDestination(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig.fromJson( + final od = api.GoogleCloudAiplatformV1FeatureValueDestination.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig( - od, - ); + checkGoogleCloudAiplatformV1FeatureValueDestination(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ModalityTokenCount', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureValueList', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModalityTokenCount(); + final o = buildGoogleCloudAiplatformV1FeatureValueList(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ModalityTokenCount.fromJson( + final od = api.GoogleCloudAiplatformV1FeatureValueList.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModalityTokenCount(od); + checkGoogleCloudAiplatformV1FeatureValueList(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Model', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureValueMetadata', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Model(); + final o = buildGoogleCloudAiplatformV1FeatureValueMetadata(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Model.fromJson( + final od = api.GoogleCloudAiplatformV1FeatureValueMetadata.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Model(od); + checkGoogleCloudAiplatformV1FeatureValueMetadata(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ModelBaseModelSource', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureView', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelBaseModelSource(); + final o = buildGoogleCloudAiplatformV1FeatureView(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ModelBaseModelSource.fromJson( + final od = api.GoogleCloudAiplatformV1FeatureView.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelBaseModelSource(od); + checkGoogleCloudAiplatformV1FeatureView(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ModelContainerSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelContainerSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ModelContainerSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ModelContainerSpec(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1FeatureViewBigQuerySource', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FeatureViewBigQuerySource(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1FeatureViewBigQuerySource.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FeatureViewBigQuerySource(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ModelDataStats', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureViewDataKey', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelDataStats(); + final o = buildGoogleCloudAiplatformV1FeatureViewDataKey(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ModelDataStats.fromJson( + final od = api.GoogleCloudAiplatformV1FeatureViewDataKey.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelDataStats(od); + checkGoogleCloudAiplatformV1FeatureViewDataKey(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable', + 'obj-schema-GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable(); + final o = buildGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable.fromJson( + .GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable(od); + checkGoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelDeploymentMonitoringJob', + 'obj-schema-GoogleCloudAiplatformV1FeatureViewDirectWriteRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelDeploymentMonitoringJob(); + final o = buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelDeploymentMonitoringJob.fromJson( + .GoogleCloudAiplatformV1FeatureViewDirectWriteRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelDeploymentMonitoringJob(od); + checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata', + 'obj-schema-GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata(); + buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata.fromJson( + .GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata( + checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValues( od, ); }); @@ -36078,17 +35943,17 @@ void main() { ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig', + 'obj-schema-GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig(); + buildGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig.fromJson( + .GoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig( + checkGoogleCloudAiplatformV1FeatureViewDirectWriteRequestDataKeyAndFeatureValuesFeature( od, ); }); @@ -36096,235 +35961,223 @@ void main() { ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig', + 'obj-schema-GoogleCloudAiplatformV1FeatureViewDirectWriteResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig(); + final o = buildGoogleCloudAiplatformV1FeatureViewDirectWriteResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig.fromJson( + .GoogleCloudAiplatformV1FeatureViewDirectWriteResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig(od); + checkGoogleCloudAiplatformV1FeatureViewDirectWriteResponse(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ModelEvaluation', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelEvaluation(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ModelEvaluation.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ModelEvaluation(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec', + 'obj-schema-GoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec(); + buildGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec.fromJson( + .GoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec( + checkGoogleCloudAiplatformV1FeatureViewDirectWriteResponseWriteResponse( od, ); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ModelEvaluationSlice', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelEvaluationSlice(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ModelEvaluationSlice.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ModelEvaluationSlice(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelEvaluationSliceSlice', + 'obj-schema-GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelEvaluationSliceSlice(); + final o = + buildGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelEvaluationSliceSlice.fromJson( + .GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelEvaluationSliceSlice(od); + checkGoogleCloudAiplatformV1FeatureViewFeatureRegistrySource(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec', + 'obj-schema-GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec(); + buildGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec.fromJson( + .GoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec(od); + checkGoogleCloudAiplatformV1FeatureViewFeatureRegistrySourceFeatureGroup( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange', + 'obj-schema-GoogleCloudAiplatformV1FeatureViewIndexConfig', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange(); + final o = buildGoogleCloudAiplatformV1FeatureViewIndexConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange.fromJson( + final od = api.GoogleCloudAiplatformV1FeatureViewIndexConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange(od); + checkGoogleCloudAiplatformV1FeatureViewIndexConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig', + 'obj-schema-GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig(); + buildGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig.fromJson( + .GoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig( - od, - ); + checkGoogleCloudAiplatformV1FeatureViewIndexConfigBruteForceConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue', + 'obj-schema-GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue(); + buildGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue.fromJson( + .GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue(od); + checkGoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ModelExplanation', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelExplanation(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ModelExplanation.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ModelExplanation(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1FeatureViewOptimizedConfig', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FeatureViewOptimizedConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1FeatureViewOptimizedConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FeatureViewOptimizedConfig(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ModelExportFormat', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureViewSync', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelExportFormat(); + final o = buildGoogleCloudAiplatformV1FeatureViewSync(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ModelExportFormat.fromJson( + final od = api.GoogleCloudAiplatformV1FeatureViewSync.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelExportFormat(od); + checkGoogleCloudAiplatformV1FeatureViewSync(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ModelGardenSource', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FeatureViewSyncConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelGardenSource(); + final o = buildGoogleCloudAiplatformV1FeatureViewSyncConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ModelGardenSource.fromJson( + final od = api.GoogleCloudAiplatformV1FeatureViewSyncConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelGardenSource(od); + checkGoogleCloudAiplatformV1FeatureViewSyncConfig(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringAlertConfig', + 'obj-schema-GoogleCloudAiplatformV1FeatureViewSyncSyncSummary', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelMonitoringAlertConfig(); + final o = buildGoogleCloudAiplatformV1FeatureViewSyncSyncSummary(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelMonitoringAlertConfig.fromJson( + .GoogleCloudAiplatformV1FeatureViewSyncSyncSummary.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelMonitoringAlertConfig(od); + checkGoogleCloudAiplatformV1FeatureViewSyncSyncSummary(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig', + 'obj-schema-GoogleCloudAiplatformV1FeatureViewVertexRagSource', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig(); + final o = buildGoogleCloudAiplatformV1FeatureViewVertexRagSource(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig.fromJson( + .GoogleCloudAiplatformV1FeatureViewVertexRagSource.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig( - od, - ); + checkGoogleCloudAiplatformV1FeatureViewVertexRagSource(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1Featurestore', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Featurestore(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Featurestore.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Featurestore(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringObjectiveConfig', + 'obj-schema-GoogleCloudAiplatformV1FeaturestoreMonitoringConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig(); + final o = buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelMonitoringObjectiveConfig.fromJson( + .GoogleCloudAiplatformV1FeaturestoreMonitoringConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig(od); + checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig', + 'obj-schema-GoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig(); + buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig.fromJson( + .GoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig( + checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigImportFeaturesAnalysis( od, ); }); @@ -36332,17 +36185,17 @@ void main() { ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline', + 'obj-schema-GoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline(); + buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline.fromJson( + .GoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline( + checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigSnapshotAnalysis( od, ); }); @@ -36350,17 +36203,17 @@ void main() { ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig', + 'obj-schema-GoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig(); + buildGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig.fromJson( + .GoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig( + checkGoogleCloudAiplatformV1FeaturestoreMonitoringConfigThresholdConfig( od, ); }); @@ -36368,688 +36221,598 @@ void main() { ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset', + 'obj-schema-GoogleCloudAiplatformV1FeaturestoreOnlineServingConfig', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset(); + final o = buildGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset.fromJson( + .GoogleCloudAiplatformV1FeaturestoreOnlineServingConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset( - od, - ); + checkGoogleCloudAiplatformV1FeaturestoreOnlineServingConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig', + 'obj-schema-GoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig(); + buildGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig.fromJson( + .GoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig( - od, - ); + checkGoogleCloudAiplatformV1FeaturestoreOnlineServingConfigScaling(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringStatsAnomalies', + 'obj-schema-GoogleCloudAiplatformV1FetchFeatureValuesRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies(); + final o = buildGoogleCloudAiplatformV1FetchFeatureValuesRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelMonitoringStatsAnomalies.fromJson( + .GoogleCloudAiplatformV1FetchFeatureValuesRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies(od); + checkGoogleCloudAiplatformV1FetchFeatureValuesRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies', + 'obj-schema-GoogleCloudAiplatformV1FetchFeatureValuesResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies(); + final o = buildGoogleCloudAiplatformV1FetchFeatureValuesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies.fromJson( + .GoogleCloudAiplatformV1FetchFeatureValuesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies( - od, - ); + checkGoogleCloudAiplatformV1FetchFeatureValuesResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelOriginalModelInfo', + 'obj-schema-GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelOriginalModelInfo(); + final o = + buildGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ModelOriginalModelInfo.fromJson( + final od = api + .GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelOriginalModelInfo(od); + checkGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairList( + od, + ); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ModelSourceInfo', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelSourceInfo(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ModelSourceInfo.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ModelSourceInfo(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ModelVersionCheckpoint', + 'obj-schema-GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ModelVersionCheckpoint(); + final o = + buildGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ModelVersionCheckpoint.fromJson( + final od = api + .GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ModelVersionCheckpoint(od); + checkGoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1MutateDeployedModelRequest', + 'obj-schema-GoogleCloudAiplatformV1FetchPredictOperationRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1MutateDeployedModelRequest(); + final o = buildGoogleCloudAiplatformV1FetchPredictOperationRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1MutateDeployedModelRequest.fromJson( + .GoogleCloudAiplatformV1FetchPredictOperationRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1MutateDeployedModelRequest(od); + checkGoogleCloudAiplatformV1FetchPredictOperationRequest(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1NasJob', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FileData', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NasJob(); + final o = buildGoogleCloudAiplatformV1FileData(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1NasJob.fromJson( + final od = api.GoogleCloudAiplatformV1FileData.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NasJob(od); + checkGoogleCloudAiplatformV1FileData(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1NasJobOutput', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FileStatus', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NasJobOutput(); + final o = buildGoogleCloudAiplatformV1FileStatus(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1NasJobOutput.fromJson( + final od = api.GoogleCloudAiplatformV1FileStatus.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NasJobOutput(od); + checkGoogleCloudAiplatformV1FileStatus(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1FilterSplit', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FilterSplit(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1FilterSplit.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FilterSplit(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1FindNeighborsRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FindNeighborsRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1FindNeighborsRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FindNeighborsRequest(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput', + 'obj-schema-GoogleCloudAiplatformV1FindNeighborsRequestQuery', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput(); + final o = buildGoogleCloudAiplatformV1FindNeighborsRequestQuery(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput.fromJson( + .GoogleCloudAiplatformV1FindNeighborsRequestQuery.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput(od); + checkGoogleCloudAiplatformV1FindNeighborsRequestQuery(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1NasJobSpec', () { + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FindNeighborsRequestQueryRRF(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1FindNeighborsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NasJobSpec(); + final o = buildGoogleCloudAiplatformV1FindNeighborsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1NasJobSpec.fromJson( + final od = api.GoogleCloudAiplatformV1FindNeighborsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NasJobSpec(od); + checkGoogleCloudAiplatformV1FindNeighborsResponse(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec', + 'obj-schema-GoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec(); + buildGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec.fromJson( + .GoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec(od); + checkGoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec', + 'obj-schema-GoogleCloudAiplatformV1FindNeighborsResponseNeighbor', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec(); + final o = buildGoogleCloudAiplatformV1FindNeighborsResponseNeighbor(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec.fromJson( + .GoogleCloudAiplatformV1FindNeighborsResponseNeighbor.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec( - od, - ); + checkGoogleCloudAiplatformV1FindNeighborsResponseNeighbor(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec( - od, - ); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1FluencyInput', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FluencyInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1FluencyInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FluencyInput(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec( - od, - ); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1FluencyInstance', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FluencyInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1FluencyInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FluencyInstance(od); + }); + }); - unittest.group('obj-schema-GoogleCloudAiplatformV1NasTrial', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FluencyResult', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NasTrial(); + final o = buildGoogleCloudAiplatformV1FluencyResult(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1NasTrial.fromJson( + final od = api.GoogleCloudAiplatformV1FluencyResult.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NasTrial(od); + checkGoogleCloudAiplatformV1FluencyResult(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1NasTrialDetail', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FluencySpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NasTrialDetail(); + final o = buildGoogleCloudAiplatformV1FluencySpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1NasTrialDetail.fromJson( + final od = api.GoogleCloudAiplatformV1FluencySpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NasTrialDetail(od); + checkGoogleCloudAiplatformV1FluencySpec(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1NearestNeighborQuery', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FractionSplit', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NearestNeighborQuery(); + final o = buildGoogleCloudAiplatformV1FractionSplit(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1NearestNeighborQuery.fromJson( + final od = api.GoogleCloudAiplatformV1FractionSplit.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NearestNeighborQuery(od); + checkGoogleCloudAiplatformV1FractionSplit(od); }); }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NearestNeighborQueryEmbedding', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NearestNeighborQueryEmbedding(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1NearestNeighborQueryEmbedding.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1NearestNeighborQueryEmbedding(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1FulfillmentInput', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FulfillmentInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1FulfillmentInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FulfillmentInput(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1FulfillmentInstance', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FulfillmentInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1FulfillmentInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FulfillmentInstance(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NearestNeighborQueryParameters', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NearestNeighborQueryParameters(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1NearestNeighborQueryParameters.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1NearestNeighborQueryParameters(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1FulfillmentResult', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FulfillmentResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1FulfillmentResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FulfillmentResult(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NearestNeighborQueryStringFilter', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1NearestNeighborQueryStringFilter(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1NearestNeighborQueryStringFilter.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1NearestNeighborQueryStringFilter(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1FulfillmentSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FulfillmentSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1FulfillmentSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FulfillmentSpec(od); + }); + }); - unittest.group('obj-schema-GoogleCloudAiplatformV1NearestNeighbors', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FunctionCall', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NearestNeighbors(); + final o = buildGoogleCloudAiplatformV1FunctionCall(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1NearestNeighbors.fromJson( + final od = api.GoogleCloudAiplatformV1FunctionCall.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NearestNeighbors(od); + checkGoogleCloudAiplatformV1FunctionCall(od); }); }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NearestNeighborsNeighbor', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NearestNeighborsNeighbor(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1NearestNeighborsNeighbor.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1NearestNeighborsNeighbor(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1FunctionCallingConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1FunctionCallingConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1FunctionCallingConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1FunctionCallingConfig(od); + }); + }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Neighbor', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FunctionDeclaration', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Neighbor(); + final o = buildGoogleCloudAiplatformV1FunctionDeclaration(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Neighbor.fromJson( + final od = api.GoogleCloudAiplatformV1FunctionDeclaration.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Neighbor(od); + checkGoogleCloudAiplatformV1FunctionDeclaration(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1NetworkSpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1FunctionResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NetworkSpec(); + final o = buildGoogleCloudAiplatformV1FunctionResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1NetworkSpec.fromJson( + final od = api.GoogleCloudAiplatformV1FunctionResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NetworkSpec(od); + checkGoogleCloudAiplatformV1FunctionResponse(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1NfsMount', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1GcsDestination', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NfsMount(); + final o = buildGoogleCloudAiplatformV1GcsDestination(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1NfsMount.fromJson( + final od = api.GoogleCloudAiplatformV1GcsDestination.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NfsMount(od); + checkGoogleCloudAiplatformV1GcsDestination(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1NotebookEucConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1GcsSource', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NotebookEucConfig(); + final o = buildGoogleCloudAiplatformV1GcsSource(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1NotebookEucConfig.fromJson( + final od = api.GoogleCloudAiplatformV1GcsSource.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NotebookEucConfig(od); + checkGoogleCloudAiplatformV1GcsSource(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1NotebookExecutionJob', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1GdcConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NotebookExecutionJob(); + final o = buildGoogleCloudAiplatformV1GdcConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1NotebookExecutionJob.fromJson( + final od = api.GoogleCloudAiplatformV1GdcConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NotebookExecutionJob(od); + checkGoogleCloudAiplatformV1GdcConfig(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec', + 'obj-schema-GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec(); + final o = buildGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec.fromJson( + .GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec( - od, - ); + checkGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource', + 'obj-schema-GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource(); + buildGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource.fromJson( + .GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource( - od, - ); + checkGoogleCloudAiplatformV1GenAiAdvancedFeaturesConfigRagConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource', + 'obj-schema-GoogleCloudAiplatformV1GenerateContentRequest', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource(); + final o = buildGoogleCloudAiplatformV1GenerateContentRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource.fromJson( + final od = api.GoogleCloudAiplatformV1GenerateContentRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource( - od, - ); + checkGoogleCloudAiplatformV1GenerateContentRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource', + 'obj-schema-GoogleCloudAiplatformV1GenerateContentResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource(); + final o = buildGoogleCloudAiplatformV1GenerateContentResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource.fromJson( + final od = api.GoogleCloudAiplatformV1GenerateContentResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource(od); + checkGoogleCloudAiplatformV1GenerateContentResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime', + 'obj-schema-GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime(); + buildGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime.fromJson( + .GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime(od); + checkGoogleCloudAiplatformV1GenerateContentResponsePromptFeedback(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NotebookIdleShutdownConfig', + 'obj-schema-GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NotebookIdleShutdownConfig(); + final o = + buildGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1NotebookIdleShutdownConfig.fromJson( + .GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NotebookIdleShutdownConfig(od); + checkGoogleCloudAiplatformV1GenerateContentResponseUsageMetadata(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NotebookReservationAffinity', + 'obj-schema-GoogleCloudAiplatformV1GenerateInstanceRubricsRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NotebookReservationAffinity(); + final o = buildGoogleCloudAiplatformV1GenerateInstanceRubricsRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1NotebookReservationAffinity.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1NotebookReservationAffinity(od); - }); - }, - ); - - unittest.group('obj-schema-GoogleCloudAiplatformV1NotebookRuntime', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NotebookRuntime(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1NotebookRuntime.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1NotebookRuntime(od); - }); - }); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NotebookRuntimeTemplate', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NotebookRuntimeTemplate(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1NotebookRuntimeTemplate.fromJson( + .GoogleCloudAiplatformV1GenerateInstanceRubricsRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NotebookRuntimeTemplate(od); + checkGoogleCloudAiplatformV1GenerateInstanceRubricsRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NotebookRuntimeTemplateRef', + 'obj-schema-GoogleCloudAiplatformV1GenerateInstanceRubricsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NotebookRuntimeTemplateRef(); + final o = buildGoogleCloudAiplatformV1GenerateInstanceRubricsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1NotebookRuntimeTemplateRef.fromJson( + .GoogleCloudAiplatformV1GenerateInstanceRubricsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NotebookRuntimeTemplateRef(od); + checkGoogleCloudAiplatformV1GenerateInstanceRubricsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1NotebookSoftwareConfig', + 'obj-schema-GoogleCloudAiplatformV1GenerateSyntheticDataRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1NotebookSoftwareConfig(); + final o = buildGoogleCloudAiplatformV1GenerateSyntheticDataRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1NotebookSoftwareConfig.fromJson( + final od = api + .GoogleCloudAiplatformV1GenerateSyntheticDataRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1NotebookSoftwareConfig(od); + checkGoogleCloudAiplatformV1GenerateSyntheticDataRequest(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1OutputConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1OutputConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1OutputConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1OutputConfig(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1PSCAutomationConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PSCAutomationConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PSCAutomationConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1PSCAutomationConfig(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1PairwiseMetricInput', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PairwiseMetricInput(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PairwiseMetricInput.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1PairwiseMetricInput(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PairwiseMetricInstance', + 'obj-schema-GoogleCloudAiplatformV1GenerateSyntheticDataResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PairwiseMetricInstance(); + final o = buildGoogleCloudAiplatformV1GenerateSyntheticDataResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PairwiseMetricInstance.fromJson( + final od = api + .GoogleCloudAiplatformV1GenerateSyntheticDataResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PairwiseMetricInstance(od); + checkGoogleCloudAiplatformV1GenerateSyntheticDataResponse(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1PairwiseMetricResult', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PairwiseMetricResult(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PairwiseMetricResult.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1PairwiseMetricResult(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1PairwiseMetricSpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1GenerationConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PairwiseMetricSpec(); + final o = buildGoogleCloudAiplatformV1GenerationConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PairwiseMetricSpec.fromJson( + final od = api.GoogleCloudAiplatformV1GenerationConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PairwiseMetricSpec(od); + checkGoogleCloudAiplatformV1GenerationConfig(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput', + 'obj-schema-GoogleCloudAiplatformV1GenerationConfigRoutingConfig', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput(); + final o = buildGoogleCloudAiplatformV1GenerationConfigRoutingConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput.fromJson( + .GoogleCloudAiplatformV1GenerationConfigRoutingConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput(od); + checkGoogleCloudAiplatformV1GenerationConfigRoutingConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance', + 'obj-schema-GoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance(); + buildGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance.fromJson( + .GoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance( + checkGoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode( od, ); }); @@ -37057,2149 +36820,2293 @@ void main() { ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult', + 'obj-schema-GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult(); + buildGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult.fromJson( + .GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec.fromJson( - oJson as core.Map, + checkGoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode( + od, ); - checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PairwiseSummarizationQualityInput', + 'obj-schema-GoogleCloudAiplatformV1GenerationConfigThinkingConfig', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PairwiseSummarizationQualityInput(); + final o = buildGoogleCloudAiplatformV1GenerationConfigThinkingConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PairwiseSummarizationQualityInput.fromJson( + .GoogleCloudAiplatformV1GenerationConfigThinkingConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PairwiseSummarizationQualityInput(od); + checkGoogleCloudAiplatformV1GenerationConfigThinkingConfig(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PairwiseSummarizationQualityInstance', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1PairwiseSummarizationQualityInstance.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1GenieSource', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1GenieSource(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1GenieSource.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1GenieSource(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PairwiseSummarizationQualityResult', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PairwiseSummarizationQualityResult(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1PairwiseSummarizationQualityResult.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1PairwiseSummarizationQualityResult(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1GoogleDriveSource', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1GoogleDriveSource(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1GoogleDriveSource.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1GoogleDriveSource(od); + }); + }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PairwiseSummarizationQualitySpec', + 'obj-schema-GoogleCloudAiplatformV1GoogleDriveSourceResourceId', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec(); + final o = buildGoogleCloudAiplatformV1GoogleDriveSourceResourceId(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PairwiseSummarizationQualitySpec.fromJson( + .GoogleCloudAiplatformV1GoogleDriveSourceResourceId.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec(od); + checkGoogleCloudAiplatformV1GoogleDriveSourceResourceId(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1Part', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1GoogleMaps', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Part(); + final o = buildGoogleCloudAiplatformV1GoogleMaps(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Part.fromJson( + final od = api.GoogleCloudAiplatformV1GoogleMaps.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Part(od); + checkGoogleCloudAiplatformV1GoogleMaps(od); }); }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest( - od, - ); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1GoogleSearchRetrieval', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1GoogleSearchRetrieval(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1GoogleSearchRetrieval.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1GoogleSearchRetrieval(od); + }); + }); - unittest.group('obj-schema-GoogleCloudAiplatformV1PauseScheduleRequest', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1GroundednessInput', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PauseScheduleRequest(); + final o = buildGoogleCloudAiplatformV1GroundednessInput(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PauseScheduleRequest.fromJson( + final od = api.GoogleCloudAiplatformV1GroundednessInput.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PauseScheduleRequest(od); + checkGoogleCloudAiplatformV1GroundednessInput(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1PersistentDiskSpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1GroundednessInstance', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PersistentDiskSpec(); + final o = buildGoogleCloudAiplatformV1GroundednessInstance(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PersistentDiskSpec.fromJson( + final od = api.GoogleCloudAiplatformV1GroundednessInstance.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PersistentDiskSpec(od); + checkGoogleCloudAiplatformV1GroundednessInstance(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1PersistentResource', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1GroundednessResult', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PersistentResource(); + final o = buildGoogleCloudAiplatformV1GroundednessResult(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PersistentResource.fromJson( + final od = api.GoogleCloudAiplatformV1GroundednessResult.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PersistentResource(od); + checkGoogleCloudAiplatformV1GroundednessResult(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1PipelineJob', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1GroundednessSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PipelineJob(); + final o = buildGoogleCloudAiplatformV1GroundednessSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PipelineJob.fromJson( + final od = api.GoogleCloudAiplatformV1GroundednessSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PipelineJob(od); + checkGoogleCloudAiplatformV1GroundednessSpec(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1PipelineJobDetail', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1GroundingChunk', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PipelineJobDetail(); + final o = buildGoogleCloudAiplatformV1GroundingChunk(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PipelineJobDetail.fromJson( + final od = api.GoogleCloudAiplatformV1GroundingChunk.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PipelineJobDetail(od); + checkGoogleCloudAiplatformV1GroundingChunk(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1GroundingChunkMaps', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1GroundingChunkMaps(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1GroundingChunkMaps.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1GroundingChunkMaps(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PipelineJobRuntimeConfig', + 'obj-schema-GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PipelineJobRuntimeConfig(); + final o = + buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PipelineJobRuntimeConfig.fromJson( + final od = api + .GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PipelineJobRuntimeConfig(od); + checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSources(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact', + 'obj-schema-GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact(); + buildGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact.fromJson( + .GoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact(od); + checkGoogleCloudAiplatformV1GroundingChunkMapsPlaceAnswerSourcesReviewSnippet( + od, + ); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1PipelineTaskDetail', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PipelineTaskDetail(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PipelineTaskDetail.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1PipelineTaskDetail(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PipelineTaskDetailArtifactList', + 'obj-schema-GoogleCloudAiplatformV1GroundingChunkRetrievedContext', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(); + final o = buildGoogleCloudAiplatformV1GroundingChunkRetrievedContext(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PipelineTaskDetailArtifactList.fromJson( + .GoogleCloudAiplatformV1GroundingChunkRetrievedContext.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(od); + checkGoogleCloudAiplatformV1GroundingChunkRetrievedContext(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1GroundingChunkWeb', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1GroundingChunkWeb(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1GroundingChunkWeb.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1GroundingChunkWeb(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1GroundingMetadata', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1GroundingMetadata(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1GroundingMetadata.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1GroundingMetadata(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus', + 'obj-schema-GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus(); + buildGoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus.fromJson( + .GoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus(od); + checkGoogleCloudAiplatformV1GroundingMetadataSourceFlaggingUri(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1GroundingSupport', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1GroundingSupport(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1GroundingSupport.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1GroundingSupport(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PipelineTaskExecutorDetail', + 'obj-schema-GoogleCloudAiplatformV1HyperparameterTuningJob', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PipelineTaskExecutorDetail(); + final o = buildGoogleCloudAiplatformV1HyperparameterTuningJob(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1PipelineTaskExecutorDetail.fromJson( + final od = api.GoogleCloudAiplatformV1HyperparameterTuningJob.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PipelineTaskExecutorDetail(od); + checkGoogleCloudAiplatformV1HyperparameterTuningJob(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1IdMatcher', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1IdMatcher(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1IdMatcher.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1IdMatcher(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ImportDataConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ImportDataConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ImportDataConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ImportDataConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ImportDataRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ImportDataRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ImportDataRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ImportDataRequest(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail', + 'obj-schema-GoogleCloudAiplatformV1ImportFeatureValuesRequest', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail(); + final o = buildGoogleCloudAiplatformV1ImportFeatureValuesRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail.fromJson( + .GoogleCloudAiplatformV1ImportFeatureValuesRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail( - od, - ); + checkGoogleCloudAiplatformV1ImportFeatureValuesRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail', + 'obj-schema-GoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail(); + buildGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail.fromJson( + .GoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail( - od, - ); + checkGoogleCloudAiplatformV1ImportFeatureValuesRequestFeatureSpec(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PipelineTemplateMetadata', + 'obj-schema-GoogleCloudAiplatformV1ImportModelEvaluationRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PipelineTemplateMetadata(); + final o = buildGoogleCloudAiplatformV1ImportModelEvaluationRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PipelineTemplateMetadata.fromJson( + final od = api + .GoogleCloudAiplatformV1ImportModelEvaluationRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PipelineTemplateMetadata(od); + checkGoogleCloudAiplatformV1ImportModelEvaluationRequest(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1PointwiseMetricInput', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ImportRagFilesConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PointwiseMetricInput(); + final o = buildGoogleCloudAiplatformV1ImportRagFilesConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PointwiseMetricInput.fromJson( + final od = api.GoogleCloudAiplatformV1ImportRagFilesConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PointwiseMetricInput(od); + checkGoogleCloudAiplatformV1ImportRagFilesConfig(od); }); }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PointwiseMetricInstance', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PointwiseMetricInstance(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PointwiseMetricInstance.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1PointwiseMetricInstance(od); - }); - }, - ); - - unittest.group('obj-schema-GoogleCloudAiplatformV1PointwiseMetricResult', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ImportRagFilesRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PointwiseMetricResult(); + final o = buildGoogleCloudAiplatformV1ImportRagFilesRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PointwiseMetricResult.fromJson( + final od = api.GoogleCloudAiplatformV1ImportRagFilesRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PointwiseMetricResult(od); + checkGoogleCloudAiplatformV1ImportRagFilesRequest(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1PointwiseMetricSpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1Index', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PointwiseMetricSpec(); + final o = buildGoogleCloudAiplatformV1Index(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PointwiseMetricSpec.fromJson( + final od = api.GoogleCloudAiplatformV1Index.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PointwiseMetricSpec(od); + checkGoogleCloudAiplatformV1Index(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Port', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1IndexDatapoint', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Port(); + final o = buildGoogleCloudAiplatformV1IndexDatapoint(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Port.fromJson( + final od = api.GoogleCloudAiplatformV1IndexDatapoint.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Port(od); + checkGoogleCloudAiplatformV1IndexDatapoint(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PostStartupScriptConfig', + 'obj-schema-GoogleCloudAiplatformV1IndexDatapointCrowdingTag', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PostStartupScriptConfig(); + final o = buildGoogleCloudAiplatformV1IndexDatapointCrowdingTag(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PostStartupScriptConfig.fromJson( + final od = api + .GoogleCloudAiplatformV1IndexDatapointCrowdingTag.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PostStartupScriptConfig(od); + checkGoogleCloudAiplatformV1IndexDatapointCrowdingTag(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1PrebuiltVoiceConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PrebuiltVoiceConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PrebuiltVoiceConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1PrebuiltVoiceConfig(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1PredefinedSplit', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PredefinedSplit(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PredefinedSplit.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1PredefinedSplit(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PredictLongRunningRequest', + 'obj-schema-GoogleCloudAiplatformV1IndexDatapointNumericRestriction', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PredictLongRunningRequest(); + final o = + buildGoogleCloudAiplatformV1IndexDatapointNumericRestriction(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PredictLongRunningRequest.fromJson( + .GoogleCloudAiplatformV1IndexDatapointNumericRestriction.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PredictLongRunningRequest(od); + checkGoogleCloudAiplatformV1IndexDatapointNumericRestriction(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1PredictRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PredictRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PredictRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1PredictRequest(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1IndexDatapointRestriction', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1IndexDatapointRestriction(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1IndexDatapointRestriction.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1IndexDatapointRestriction(od); + }); + }, + ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig', + 'obj-schema-GoogleCloudAiplatformV1IndexDatapointSparseEmbedding', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig(); + final o = buildGoogleCloudAiplatformV1IndexDatapointSparseEmbedding(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig.fromJson( + .GoogleCloudAiplatformV1IndexDatapointSparseEmbedding.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig(od); + checkGoogleCloudAiplatformV1IndexDatapointSparseEmbedding(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1PredictResponse', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1IndexEndpoint', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PredictResponse(); + final o = buildGoogleCloudAiplatformV1IndexEndpoint(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PredictResponse.fromJson( + final od = api.GoogleCloudAiplatformV1IndexEndpoint.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PredictResponse(od); + checkGoogleCloudAiplatformV1IndexEndpoint(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1PredictSchemata', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1IndexPrivateEndpoints', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PredictSchemata(); + final o = buildGoogleCloudAiplatformV1IndexPrivateEndpoints(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PredictSchemata.fromJson( + final od = api.GoogleCloudAiplatformV1IndexPrivateEndpoints.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PredictSchemata(od); + checkGoogleCloudAiplatformV1IndexPrivateEndpoints(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Presets', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1IndexStats', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Presets(); + final o = buildGoogleCloudAiplatformV1IndexStats(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Presets.fromJson( + final od = api.GoogleCloudAiplatformV1IndexStats.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Presets(od); + checkGoogleCloudAiplatformV1IndexStats(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1PrivateEndpoints', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1InputDataConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PrivateEndpoints(); + final o = buildGoogleCloudAiplatformV1InputDataConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PrivateEndpoints.fromJson( + final od = api.GoogleCloudAiplatformV1InputDataConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PrivateEndpoints(od); + checkGoogleCloudAiplatformV1InputDataConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Int64Array', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Int64Array(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Int64Array.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Int64Array(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PrivateServiceConnectConfig', + 'obj-schema-GoogleCloudAiplatformV1IntegratedGradientsAttribution', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PrivateServiceConnectConfig(); + final o = buildGoogleCloudAiplatformV1IntegratedGradientsAttribution(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PrivateServiceConnectConfig.fromJson( + .GoogleCloudAiplatformV1IntegratedGradientsAttribution.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PrivateServiceConnectConfig(od); + checkGoogleCloudAiplatformV1IntegratedGradientsAttribution(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1Probe', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Probe(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Probe.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Probe(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1ProbeExecAction', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1InvokeRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ProbeExecAction(); + final o = buildGoogleCloudAiplatformV1InvokeRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ProbeExecAction.fromJson( + final od = api.GoogleCloudAiplatformV1InvokeRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ProbeExecAction(od); + checkGoogleCloudAiplatformV1InvokeRequest(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ProbeGrpcAction', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1JiraSource', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ProbeGrpcAction(); + final o = buildGoogleCloudAiplatformV1JiraSource(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ProbeGrpcAction.fromJson( + final od = api.GoogleCloudAiplatformV1JiraSource.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ProbeGrpcAction(od); + checkGoogleCloudAiplatformV1JiraSource(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ProbeHttpGetAction', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1JiraSourceJiraQueries', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ProbeHttpGetAction(); + final o = buildGoogleCloudAiplatformV1JiraSourceJiraQueries(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ProbeHttpGetAction.fromJson( + final od = api.GoogleCloudAiplatformV1JiraSourceJiraQueries.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ProbeHttpGetAction(od); + checkGoogleCloudAiplatformV1JiraSourceJiraQueries(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ProbeHttpHeader', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1LLMBasedMetricSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ProbeHttpHeader(); + final o = buildGoogleCloudAiplatformV1LLMBasedMetricSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ProbeHttpHeader.fromJson( + final od = api.GoogleCloudAiplatformV1LLMBasedMetricSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ProbeHttpHeader(od); + checkGoogleCloudAiplatformV1LLMBasedMetricSpec(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ProbeTcpSocketAction', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1LargeModelReference', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ProbeTcpSocketAction(); + final o = buildGoogleCloudAiplatformV1LargeModelReference(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ProbeTcpSocketAction.fromJson( + final od = api.GoogleCloudAiplatformV1LargeModelReference.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ProbeTcpSocketAction(od); + checkGoogleCloudAiplatformV1LargeModelReference(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1PscAutomatedEndpoints', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1LineageSubgraph', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PscAutomatedEndpoints(); + final o = buildGoogleCloudAiplatformV1LineageSubgraph(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PscAutomatedEndpoints.fromJson( + final od = api.GoogleCloudAiplatformV1LineageSubgraph.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PscAutomatedEndpoints(od); + checkGoogleCloudAiplatformV1LineageSubgraph(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1PscInterfaceConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PscInterfaceConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PscInterfaceConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1PscInterfaceConfig(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ListAnnotationsResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ListAnnotationsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ListAnnotationsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ListAnnotationsResponse(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1PublisherModel', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ListArtifactsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PublisherModel(); + final o = buildGoogleCloudAiplatformV1ListArtifactsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PublisherModel.fromJson( + final od = api.GoogleCloudAiplatformV1ListArtifactsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PublisherModel(od); + checkGoogleCloudAiplatformV1ListArtifactsResponse(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToAction', + 'obj-schema-GoogleCloudAiplatformV1ListBatchPredictionJobsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PublisherModelCallToAction(); + final o = buildGoogleCloudAiplatformV1ListBatchPredictionJobsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PublisherModelCallToAction.fromJson( + .GoogleCloudAiplatformV1ListBatchPredictionJobsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PublisherModelCallToAction(od); + checkGoogleCloudAiplatformV1ListBatchPredictionJobsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionDeploy', + 'obj-schema-GoogleCloudAiplatformV1ListCachedContentsResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(); + final o = buildGoogleCloudAiplatformV1ListCachedContentsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PublisherModelCallToActionDeploy.fromJson( + .GoogleCloudAiplatformV1ListCachedContentsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(od); + checkGoogleCloudAiplatformV1ListCachedContentsResponse(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata( - od, + unittest.group('obj-schema-GoogleCloudAiplatformV1ListContextsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ListContextsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ListContextsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ListContextsResponse(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ListCustomJobsResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ListCustomJobsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ListCustomJobsResponse.fromJson( + oJson as core.Map, ); + checkGoogleCloudAiplatformV1ListCustomJobsResponse(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1ListDataItemsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ListDataItemsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ListDataItemsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ListDataItemsResponse(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke', + 'obj-schema-GoogleCloudAiplatformV1ListDataLabelingJobsResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke(); + final o = buildGoogleCloudAiplatformV1ListDataLabelingJobsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke.fromJson( + .GoogleCloudAiplatformV1ListDataLabelingJobsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke(od); + checkGoogleCloudAiplatformV1ListDataLabelingJobsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex', + 'obj-schema-GoogleCloudAiplatformV1ListDatasetVersionsResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex(); + final o = buildGoogleCloudAiplatformV1ListDatasetVersionsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex.fromJson( + .GoogleCloudAiplatformV1ListDatasetVersionsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex(od); + checkGoogleCloudAiplatformV1ListDatasetVersionsResponse(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1ListDatasetsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ListDatasetsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ListDatasetsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ListDatasetsResponse(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines', + 'obj-schema-GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines(); + buildGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines.fromJson( + .GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines( - od, + checkGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ListEndpointsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ListEndpointsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ListEndpointsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ListEndpointsResponse(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ListEntityTypesResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ListEntityTypesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ListEntityTypesResponse.fromJson( + oJson as core.Map, ); + checkGoogleCloudAiplatformV1ListEntityTypesResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks', + 'obj-schema-GoogleCloudAiplatformV1ListEvaluationItemsResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks(); + final o = buildGoogleCloudAiplatformV1ListEvaluationItemsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks.fromJson( + .GoogleCloudAiplatformV1ListEvaluationItemsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks(od); + checkGoogleCloudAiplatformV1ListEvaluationItemsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences', + 'obj-schema-GoogleCloudAiplatformV1ListEvaluationRunsResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); + final o = buildGoogleCloudAiplatformV1ListEvaluationRunsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.fromJson( + .GoogleCloudAiplatformV1ListEvaluationRunsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( - od, - ); + checkGoogleCloudAiplatformV1ListEvaluationRunsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi', + 'obj-schema-GoogleCloudAiplatformV1ListEvaluationSetsResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi(); + final o = buildGoogleCloudAiplatformV1ListEvaluationSetsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi.fromJson( + .GoogleCloudAiplatformV1ListEvaluationSetsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi(od); + checkGoogleCloudAiplatformV1ListEvaluationSetsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PublisherModelDocumentation', + 'obj-schema-GoogleCloudAiplatformV1ListExecutionsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PublisherModelDocumentation(); + final o = buildGoogleCloudAiplatformV1ListExecutionsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1PublisherModelDocumentation.fromJson( + final od = api.GoogleCloudAiplatformV1ListExecutionsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PublisherModelDocumentation(od); + checkGoogleCloudAiplatformV1ListExecutionsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PublisherModelResourceReference', + 'obj-schema-GoogleCloudAiplatformV1ListFeatureGroupsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PublisherModelResourceReference(); + final o = buildGoogleCloudAiplatformV1ListFeatureGroupsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1PublisherModelResourceReference.fromJson( + .GoogleCloudAiplatformV1ListFeatureGroupsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PublisherModelResourceReference(od); + checkGoogleCloudAiplatformV1ListFeatureGroupsResponse(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1PurgeArtifactsRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PurgeArtifactsRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PurgeArtifactsRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1PurgeArtifactsRequest(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ListFeatureOnlineStoresResponse(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1PurgeContextsRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PurgeContextsRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PurgeContextsRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1PurgeContextsRequest(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ListFeatureViewSyncsResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ListFeatureViewSyncsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ListFeatureViewSyncsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ListFeatureViewSyncsResponse(od); + }); + }, + ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1PurgeExecutionsRequest', + 'obj-schema-GoogleCloudAiplatformV1ListFeatureViewsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PurgeExecutionsRequest(); + final o = buildGoogleCloudAiplatformV1ListFeatureViewsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PurgeExecutionsRequest.fromJson( + final od = api.GoogleCloudAiplatformV1ListFeatureViewsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PurgeExecutionsRequest(od); + checkGoogleCloudAiplatformV1ListFeatureViewsResponse(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1PythonPackageSpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ListFeaturesResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1PythonPackageSpec(); + final o = buildGoogleCloudAiplatformV1ListFeaturesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1PythonPackageSpec.fromJson( + final od = api.GoogleCloudAiplatformV1ListFeaturesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1PythonPackageSpec(od); + checkGoogleCloudAiplatformV1ListFeaturesResponse(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QueryDeployedModelsResponse', + 'obj-schema-GoogleCloudAiplatformV1ListFeaturestoresResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1QueryDeployedModelsResponse(); + final o = buildGoogleCloudAiplatformV1ListFeaturestoresResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QueryDeployedModelsResponse.fromJson( + .GoogleCloudAiplatformV1ListFeaturestoresResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QueryDeployedModelsResponse(od); + checkGoogleCloudAiplatformV1ListFeaturestoresResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QueryReasoningEngineRequest', + 'obj-schema-GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1QueryReasoningEngineRequest(); + final o = + buildGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QueryReasoningEngineRequest.fromJson( + .GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QueryReasoningEngineRequest(od); + checkGoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QueryReasoningEngineResponse', + 'obj-schema-GoogleCloudAiplatformV1ListIndexEndpointsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1QueryReasoningEngineResponse(); + final o = buildGoogleCloudAiplatformV1ListIndexEndpointsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QueryReasoningEngineResponse.fromJson( + .GoogleCloudAiplatformV1ListIndexEndpointsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QueryReasoningEngineResponse(od); + checkGoogleCloudAiplatformV1ListIndexEndpointsResponse(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1ListIndexesResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ListIndexesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ListIndexesResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ListIndexesResponse(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput', + 'obj-schema-GoogleCloudAiplatformV1ListMetadataSchemasResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput(); + final o = buildGoogleCloudAiplatformV1ListMetadataSchemasResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput.fromJson( + .GoogleCloudAiplatformV1ListMetadataSchemasResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput(od); + checkGoogleCloudAiplatformV1ListMetadataSchemasResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance', + 'obj-schema-GoogleCloudAiplatformV1ListMetadataStoresResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance(); + final o = buildGoogleCloudAiplatformV1ListMetadataStoresResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance.fromJson( + .GoogleCloudAiplatformV1ListMetadataStoresResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance(od); + checkGoogleCloudAiplatformV1ListMetadataStoresResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult', + 'obj-schema-GoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult(); + buildGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult.fromJson( + .GoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult(od); + checkGoogleCloudAiplatformV1ListModelDeploymentMonitoringJobsResponse( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec', + 'obj-schema-GoogleCloudAiplatformV1ListModelEvaluationSlicesResponse', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec(); + buildGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec.fromJson( + .GoogleCloudAiplatformV1ListModelEvaluationSlicesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec(od); + checkGoogleCloudAiplatformV1ListModelEvaluationSlicesResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput', + 'obj-schema-GoogleCloudAiplatformV1ListModelEvaluationsResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput(); + final o = buildGoogleCloudAiplatformV1ListModelEvaluationsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput.fromJson( + .GoogleCloudAiplatformV1ListModelEvaluationsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput(od); + checkGoogleCloudAiplatformV1ListModelEvaluationsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance', + 'obj-schema-GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance(); + buildGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance.fromJson( + .GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance(od); + checkGoogleCloudAiplatformV1ListModelVersionCheckpointsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult', + 'obj-schema-GoogleCloudAiplatformV1ListModelVersionsResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult(); + final o = buildGoogleCloudAiplatformV1ListModelVersionsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult.fromJson( + .GoogleCloudAiplatformV1ListModelVersionsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult(od); + checkGoogleCloudAiplatformV1ListModelVersionsResponse(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1ListModelsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ListModelsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ListModelsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ListModelsResponse(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ListNasJobsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ListNasJobsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ListNasJobsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ListNasJobsResponse(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec', + 'obj-schema-GoogleCloudAiplatformV1ListNasTrialDetailsResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec(); + final o = buildGoogleCloudAiplatformV1ListNasTrialDetailsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec.fromJson( + .GoogleCloudAiplatformV1ListNasTrialDetailsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec(od); + checkGoogleCloudAiplatformV1ListNasTrialDetailsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringQualityInput', + 'obj-schema-GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1QuestionAnsweringQualityInput(); + final o = + buildGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QuestionAnsweringQualityInput.fromJson( + .GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringQualityInput(od); + checkGoogleCloudAiplatformV1ListNotebookExecutionJobsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringQualityInstance', + 'obj-schema-GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1QuestionAnsweringQualityInstance(); + buildGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QuestionAnsweringQualityInstance.fromJson( + .GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringQualityInstance(od); + checkGoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringQualityResult', + 'obj-schema-GoogleCloudAiplatformV1ListNotebookRuntimesResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1QuestionAnsweringQualityResult(); + final o = buildGoogleCloudAiplatformV1ListNotebookRuntimesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QuestionAnsweringQualityResult.fromJson( + .GoogleCloudAiplatformV1ListNotebookRuntimesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringQualityResult(od); + checkGoogleCloudAiplatformV1ListNotebookRuntimesResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringQualitySpec', + 'obj-schema-GoogleCloudAiplatformV1ListOptimalTrialsRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1QuestionAnsweringQualitySpec(); + final o = buildGoogleCloudAiplatformV1ListOptimalTrialsRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1QuestionAnsweringQualitySpec.fromJson( + final od = api.GoogleCloudAiplatformV1ListOptimalTrialsRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringQualitySpec(od); + checkGoogleCloudAiplatformV1ListOptimalTrialsRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringRelevanceInput', + 'obj-schema-GoogleCloudAiplatformV1ListOptimalTrialsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput(); + final o = buildGoogleCloudAiplatformV1ListOptimalTrialsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QuestionAnsweringRelevanceInput.fromJson( + .GoogleCloudAiplatformV1ListOptimalTrialsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput(od); + checkGoogleCloudAiplatformV1ListOptimalTrialsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance', + 'obj-schema-GoogleCloudAiplatformV1ListPersistentResourcesResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance(); + final o = buildGoogleCloudAiplatformV1ListPersistentResourcesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance.fromJson( + .GoogleCloudAiplatformV1ListPersistentResourcesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance(od); + checkGoogleCloudAiplatformV1ListPersistentResourcesResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult', + 'obj-schema-GoogleCloudAiplatformV1ListPipelineJobsResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult(); + final o = buildGoogleCloudAiplatformV1ListPipelineJobsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult.fromJson( + final od = api.GoogleCloudAiplatformV1ListPipelineJobsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult(od); + checkGoogleCloudAiplatformV1ListPipelineJobsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec', + 'obj-schema-GoogleCloudAiplatformV1ListRagCorporaResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec(); + final o = buildGoogleCloudAiplatformV1ListRagCorporaResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec.fromJson( + final od = api.GoogleCloudAiplatformV1ListRagCorporaResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec(od); + checkGoogleCloudAiplatformV1ListRagCorporaResponse(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1RagChunk', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagChunk(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagChunk.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1RagChunk(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1RagChunkPageSpan', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagChunkPageSpan(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagChunkPageSpan.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1RagChunkPageSpan(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1RagContexts', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagContexts(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagContexts.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1RagContexts(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1RagContextsContext', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagContextsContext(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagContextsContext.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1RagContextsContext(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1RagCorpus', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ListRagFilesResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagCorpus(); + final o = buildGoogleCloudAiplatformV1ListRagFilesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagCorpus.fromJson( + final od = api.GoogleCloudAiplatformV1ListRagFilesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagCorpus(od); + checkGoogleCloudAiplatformV1ListRagFilesResponse(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagEmbeddingModelConfig', + 'obj-schema-GoogleCloudAiplatformV1ListReasoningEnginesResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagEmbeddingModelConfig(); + final o = buildGoogleCloudAiplatformV1ListReasoningEnginesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagEmbeddingModelConfig.fromJson( + final od = api + .GoogleCloudAiplatformV1ListReasoningEnginesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagEmbeddingModelConfig(od); + checkGoogleCloudAiplatformV1ListReasoningEnginesResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint', + 'obj-schema-GoogleCloudAiplatformV1ListSavedQueriesResponse', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint(); + final o = buildGoogleCloudAiplatformV1ListSavedQueriesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint.fromJson( + final od = api.GoogleCloudAiplatformV1ListSavedQueriesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint( - od, - ); + checkGoogleCloudAiplatformV1ListSavedQueriesResponse(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1RagEngineConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ListSchedulesResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagEngineConfig(); + final o = buildGoogleCloudAiplatformV1ListSchedulesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagEngineConfig.fromJson( + final od = api.GoogleCloudAiplatformV1ListSchedulesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagEngineConfig(od); + checkGoogleCloudAiplatformV1ListSchedulesResponse(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1RagFile', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagFile(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagFile.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1RagFile(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ListSpecialistPoolsResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ListSpecialistPoolsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ListSpecialistPoolsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ListSpecialistPoolsResponse(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1RagFileChunkingConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ListStudiesResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagFileChunkingConfig(); + final o = buildGoogleCloudAiplatformV1ListStudiesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagFileChunkingConfig.fromJson( + final od = api.GoogleCloudAiplatformV1ListStudiesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagFileChunkingConfig(od); + checkGoogleCloudAiplatformV1ListStudiesResponse(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking', + 'obj-schema-GoogleCloudAiplatformV1ListTensorboardExperimentsResponse', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking(); + buildGoogleCloudAiplatformV1ListTensorboardExperimentsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking.fromJson( + .GoogleCloudAiplatformV1ListTensorboardExperimentsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking( - od, - ); + checkGoogleCloudAiplatformV1ListTensorboardExperimentsResponse(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1RagFileParsingConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagFileParsingConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagFileParsingConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1RagFileParsingConfig(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ListTensorboardRunsResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ListTensorboardRunsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ListTensorboardRunsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ListTensorboardRunsResponse(od); + }); + }, + ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser', + 'obj-schema-GoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser(); + buildGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser.fromJson( + .GoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser(od); + checkGoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagFileParsingConfigLlmParser', + 'obj-schema-GoogleCloudAiplatformV1ListTensorboardsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagFileParsingConfigLlmParser(); + final o = buildGoogleCloudAiplatformV1ListTensorboardsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1RagFileParsingConfigLlmParser.fromJson( + final od = api.GoogleCloudAiplatformV1ListTensorboardsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagFileParsingConfigLlmParser(od); + checkGoogleCloudAiplatformV1ListTensorboardsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagFileTransformationConfig', + 'obj-schema-GoogleCloudAiplatformV1ListTrainingPipelinesResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagFileTransformationConfig(); + final o = buildGoogleCloudAiplatformV1ListTrainingPipelinesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RagFileTransformationConfig.fromJson( + .GoogleCloudAiplatformV1ListTrainingPipelinesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagFileTransformationConfig(od); + checkGoogleCloudAiplatformV1ListTrainingPipelinesResponse(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1RagManagedDbConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ListTrialsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagManagedDbConfig(); + final o = buildGoogleCloudAiplatformV1ListTrialsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagManagedDbConfig.fromJson( + final od = api.GoogleCloudAiplatformV1ListTrialsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagManagedDbConfig(od); + checkGoogleCloudAiplatformV1ListTrialsResponse(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagManagedDbConfigBasic', + 'obj-schema-GoogleCloudAiplatformV1ListTuningJobsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagManagedDbConfigBasic(); + final o = buildGoogleCloudAiplatformV1ListTuningJobsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagManagedDbConfigBasic.fromJson( + final od = api.GoogleCloudAiplatformV1ListTuningJobsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagManagedDbConfigBasic(od); + checkGoogleCloudAiplatformV1ListTuningJobsResponse(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1LogprobsResult', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1LogprobsResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1LogprobsResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1LogprobsResult(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagManagedDbConfigScaled', + 'obj-schema-GoogleCloudAiplatformV1LogprobsResultCandidate', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagManagedDbConfigScaled(); + final o = buildGoogleCloudAiplatformV1LogprobsResultCandidate(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagManagedDbConfigScaled.fromJson( + final od = api.GoogleCloudAiplatformV1LogprobsResultCandidate.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagManagedDbConfigScaled(od); + checkGoogleCloudAiplatformV1LogprobsResultCandidate(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned', + 'obj-schema-GoogleCloudAiplatformV1LogprobsResultTopCandidates', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned(); + final o = buildGoogleCloudAiplatformV1LogprobsResultTopCandidates(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned.fromJson( + .GoogleCloudAiplatformV1LogprobsResultTopCandidates.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned(od); + checkGoogleCloudAiplatformV1LogprobsResultTopCandidates(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1RagQuery', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1LookupStudyRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagQuery(); + final o = buildGoogleCloudAiplatformV1LookupStudyRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagQuery.fromJson( + final od = api.GoogleCloudAiplatformV1LookupStudyRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagQuery(od); + checkGoogleCloudAiplatformV1LookupStudyRequest(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1RagRetrievalConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1MachineSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagRetrievalConfig(); + final o = buildGoogleCloudAiplatformV1MachineSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagRetrievalConfig.fromJson( + final od = api.GoogleCloudAiplatformV1MachineSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagRetrievalConfig(od); + checkGoogleCloudAiplatformV1MachineSpec(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagRetrievalConfigFilter', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagRetrievalConfigFilter(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagRetrievalConfigFilter.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1RagRetrievalConfigFilter(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagRetrievalConfigRanking', + 'obj-schema-GoogleCloudAiplatformV1ManualBatchTuningParameters', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagRetrievalConfigRanking(); + final o = buildGoogleCloudAiplatformV1ManualBatchTuningParameters(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RagRetrievalConfigRanking.fromJson( + .GoogleCloudAiplatformV1ManualBatchTuningParameters.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagRetrievalConfigRanking(od); + checkGoogleCloudAiplatformV1ManualBatchTuningParameters(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1Measurement', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Measurement(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Measurement.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Measurement(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1MeasurementMetric', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1MeasurementMetric(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1MeasurementMetric.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1MeasurementMetric(od); + }); + }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagRetrievalConfigRankingRankService', + 'obj-schema-GoogleCloudAiplatformV1MergeVersionAliasesRequest', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService(); + final o = buildGoogleCloudAiplatformV1MergeVersionAliasesRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RagRetrievalConfigRankingRankService.fromJson( + .GoogleCloudAiplatformV1MergeVersionAliasesRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService(od); + checkGoogleCloudAiplatformV1MergeVersionAliasesRequest(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1RagVectorDbConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1MetadataSchema', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagVectorDbConfig(); + final o = buildGoogleCloudAiplatformV1MetadataSchema(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RagVectorDbConfig.fromJson( + final od = api.GoogleCloudAiplatformV1MetadataSchema.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagVectorDbConfig(od); + checkGoogleCloudAiplatformV1MetadataSchema(od); }); }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagVectorDbConfigPinecone', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagVectorDbConfigPinecone(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1RagVectorDbConfigPinecone.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1RagVectorDbConfigPinecone(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1MetadataStore', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1MetadataStore(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1MetadataStore.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1MetadataStore(od); + }); + }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb', + 'obj-schema-GoogleCloudAiplatformV1MetadataStoreDataplexConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb(); + final o = buildGoogleCloudAiplatformV1MetadataStoreDataplexConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb.fromJson( + .GoogleCloudAiplatformV1MetadataStoreDataplexConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb(od); + checkGoogleCloudAiplatformV1MetadataStoreDataplexConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN', + 'obj-schema-GoogleCloudAiplatformV1MetadataStoreMetadataStoreState', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN(); + final o = buildGoogleCloudAiplatformV1MetadataStoreMetadataStoreState(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN.fromJson( + .GoogleCloudAiplatformV1MetadataStoreMetadataStoreState.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN(od); + checkGoogleCloudAiplatformV1MetadataStoreMetadataStoreState(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1Metric', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Metric(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Metric.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Metric(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1MetricResult', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1MetricResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1MetricResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1MetricResult(od); + }); + }); - unittest.group('obj-schema-GoogleCloudAiplatformV1RawOutput', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1MetricxInput', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RawOutput(); + final o = buildGoogleCloudAiplatformV1MetricxInput(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RawOutput.fromJson( + final od = api.GoogleCloudAiplatformV1MetricxInput.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RawOutput(od); + checkGoogleCloudAiplatformV1MetricxInput(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1RawPredictRequest', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1MetricxInstance', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RawPredictRequest(); + final o = buildGoogleCloudAiplatformV1MetricxInstance(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RawPredictRequest.fromJson( + final od = api.GoogleCloudAiplatformV1MetricxInstance.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RawPredictRequest(od); + checkGoogleCloudAiplatformV1MetricxInstance(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1RayLogsSpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1MetricxResult', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RayLogsSpec(); + final o = buildGoogleCloudAiplatformV1MetricxResult(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RayLogsSpec.fromJson( + final od = api.GoogleCloudAiplatformV1MetricxResult.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RayLogsSpec(od); + checkGoogleCloudAiplatformV1MetricxResult(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1RayMetricSpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1MetricxSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RayMetricSpec(); + final o = buildGoogleCloudAiplatformV1MetricxSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RayMetricSpec.fromJson( + final od = api.GoogleCloudAiplatformV1MetricxSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RayMetricSpec(od); + checkGoogleCloudAiplatformV1MetricxSpec(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1RaySpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1MigratableResource', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RaySpec(); + final o = buildGoogleCloudAiplatformV1MigratableResource(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RaySpec.fromJson( + final od = api.GoogleCloudAiplatformV1MigratableResource.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RaySpec(od); + checkGoogleCloudAiplatformV1MigratableResource(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReadFeatureValuesRequest', + 'obj-schema-GoogleCloudAiplatformV1MigratableResourceAutomlDataset', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ReadFeatureValuesRequest(); + final o = buildGoogleCloudAiplatformV1MigratableResourceAutomlDataset(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ReadFeatureValuesRequest.fromJson( + final od = api + .GoogleCloudAiplatformV1MigratableResourceAutomlDataset.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReadFeatureValuesRequest(od); + checkGoogleCloudAiplatformV1MigratableResourceAutomlDataset(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReadFeatureValuesResponse', + 'obj-schema-GoogleCloudAiplatformV1MigratableResourceAutomlModel', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ReadFeatureValuesResponse(); + final o = buildGoogleCloudAiplatformV1MigratableResourceAutomlModel(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ReadFeatureValuesResponse.fromJson( + .GoogleCloudAiplatformV1MigratableResourceAutomlModel.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReadFeatureValuesResponse(od); + checkGoogleCloudAiplatformV1MigratableResourceAutomlModel(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView', + 'obj-schema-GoogleCloudAiplatformV1MigratableResourceDataLabelingDataset', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView(); + buildGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView.fromJson( + .GoogleCloudAiplatformV1MigratableResourceDataLabelingDataset.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView(od); + checkGoogleCloudAiplatformV1MigratableResourceDataLabelingDataset(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData', + 'obj-schema-GoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData(); + buildGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData.fromJson( + .GoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData(od); + checkGoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor', + 'obj-schema-GoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor(); + buildGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor.fromJson( + .GoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor( - od, - ); + checkGoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReadFeatureValuesResponseHeader', + 'obj-schema-GoogleCloudAiplatformV1MigrateResourceRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader(); + final o = buildGoogleCloudAiplatformV1MigrateResourceRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ReadFeatureValuesResponseHeader.fromJson( + final od = api.GoogleCloudAiplatformV1MigrateResourceRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader(od); + checkGoogleCloudAiplatformV1MigrateResourceRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReadIndexDatapointsRequest', + 'obj-schema-GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ReadIndexDatapointsRequest(); + final o = + buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ReadIndexDatapointsRequest.fromJson( + .GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReadIndexDatapointsRequest(od); + checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlDatasetConfig( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReadIndexDatapointsResponse', + 'obj-schema-GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ReadIndexDatapointsResponse(); + final o = + buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ReadIndexDatapointsResponse.fromJson( + .GoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReadIndexDatapointsResponse(od); + checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateAutomlModelConfig( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse', + 'obj-schema-GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse(); + final o = + buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse.fromJson( + .GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse(od); + checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReadTensorboardSizeResponse', + 'obj-schema-GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ReadTensorboardSizeResponse(); + final o = + buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ReadTensorboardSizeResponse.fromJson( + .GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReadTensorboardSizeResponse(od); + checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfigMigrateDataLabelingAnnotatedDatasetConfig( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse', + 'obj-schema-GoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse(); + buildGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse.fromJson( + .GoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse(od); + checkGoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig( + od, + ); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1ModalityTokenCount', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ModalityTokenCount(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ModalityTokenCount.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ModalityTokenCount(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Model', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Model(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Model.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Model(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ModelArmorConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ModelArmorConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ModelArmorConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ModelArmorConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ModelBaseModelSource', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ModelBaseModelSource(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ModelBaseModelSource.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ModelBaseModelSource(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ModelContainerSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ModelContainerSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ModelContainerSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ModelContainerSpec(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ModelDataStats', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ModelDataStats(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ModelDataStats.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ModelDataStats(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReadTensorboardUsageResponse', + 'obj-schema-GoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ReadTensorboardUsageResponse(); + final o = + buildGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ReadTensorboardUsageResponse.fromJson( + .GoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReadTensorboardUsageResponse(od); + checkGoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData', + 'obj-schema-GoogleCloudAiplatformV1ModelDeploymentMonitoringJob', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData(); + final o = buildGoogleCloudAiplatformV1ModelDeploymentMonitoringJob(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData.fromJson( + .GoogleCloudAiplatformV1ModelDeploymentMonitoringJob.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData( - od, - ); + checkGoogleCloudAiplatformV1ModelDeploymentMonitoringJob(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData', + 'obj-schema-GoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData(); + buildGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData.fromJson( + .GoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData( + checkGoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata( od, ); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ReasoningEngine', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ReasoningEngine(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ReasoningEngine.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ReasoningEngine(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1ReasoningEngineSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ReasoningEngineSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ReasoningEngineSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ReasoningEngineSpec(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec', + 'obj-schema-GoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec(); + buildGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec.fromJson( + .GoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec(od); + checkGoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec', + 'obj-schema-GoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec(); + final o = + buildGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec.fromJson( + .GoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec(od); + checkGoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1ModelEvaluation', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ModelEvaluation(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ModelEvaluation.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ModelEvaluation(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RebaseTunedModelRequest', + 'obj-schema-GoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RebaseTunedModelRequest(); + final o = + buildGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RebaseTunedModelRequest.fromJson( + final od = api + .GoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RebaseTunedModelRequest(od); + checkGoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec( + od, + ); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1ModelEvaluationSlice', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ModelEvaluationSlice(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ModelEvaluationSlice.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ModelEvaluationSlice(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RebootPersistentResourceRequest', + 'obj-schema-GoogleCloudAiplatformV1ModelEvaluationSliceSlice', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RebootPersistentResourceRequest(); + final o = buildGoogleCloudAiplatformV1ModelEvaluationSliceSlice(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RebootPersistentResourceRequest.fromJson( + .GoogleCloudAiplatformV1ModelEvaluationSliceSlice.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RebootPersistentResourceRequest(od); + checkGoogleCloudAiplatformV1ModelEvaluationSliceSlice(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RemoveContextChildrenRequest', + 'obj-schema-GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RemoveContextChildrenRequest(); + final o = + buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RemoveContextChildrenRequest.fromJson( + .GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RemoveContextChildrenRequest(od); + checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpec(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RemoveContextChildrenResponse', + 'obj-schema-GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RemoveContextChildrenResponse(); + final o = + buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RemoveContextChildrenResponse.fromJson( + .GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RemoveContextChildrenResponse(od); + checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecRange(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RemoveDatapointsRequest', + 'obj-schema-GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RemoveDatapointsRequest(); + final o = + buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RemoveDatapointsRequest.fromJson( + final od = api + .GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RemoveDatapointsRequest(od); + checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecSliceConfig( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RemoveDatapointsResponse', + 'obj-schema-GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RemoveDatapointsResponse(); + final o = + buildGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RemoveDatapointsResponse.fromJson( + final od = api + .GoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RemoveDatapointsResponse(od); + checkGoogleCloudAiplatformV1ModelEvaluationSliceSliceSliceSpecValue(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ReservationAffinity', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ModelExplanation', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ReservationAffinity(); + final o = buildGoogleCloudAiplatformV1ModelExplanation(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ReservationAffinity.fromJson( + final od = api.GoogleCloudAiplatformV1ModelExplanation.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ReservationAffinity(od); + checkGoogleCloudAiplatformV1ModelExplanation(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ResourcePool', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ModelExportFormat', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ResourcePool(); + final o = buildGoogleCloudAiplatformV1ModelExportFormat(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ResourcePool.fromJson( + final od = api.GoogleCloudAiplatformV1ModelExportFormat.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ResourcePool(od); + checkGoogleCloudAiplatformV1ModelExportFormat(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ModelGardenSource', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ModelGardenSource(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ModelGardenSource.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ModelGardenSource(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec', + 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringAlertConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec(); + final o = buildGoogleCloudAiplatformV1ModelMonitoringAlertConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec.fromJson( + .GoogleCloudAiplatformV1ModelMonitoringAlertConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec(od); + checkGoogleCloudAiplatformV1ModelMonitoringAlertConfig(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ResourceRuntime', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ResourceRuntime(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ResourceRuntime.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ResourceRuntime(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1ResourceRuntimeSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ResourceRuntimeSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ResourceRuntimeSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ResourceRuntimeSpec(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1ResourcesConsumed', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ResourcesConsumed(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ResourcesConsumed.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ResourcesConsumed(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest', + 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest(); + buildGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest.fromJson( + .GoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest( + checkGoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig( od, ); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ResumeScheduleRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ResumeScheduleRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ResumeScheduleRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ResumeScheduleRequest(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringObjectiveConfig', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ModelMonitoringObjectiveConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfig(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1Retrieval', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Retrieval(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Retrieval.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Retrieval(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfig( + od, + ); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1RetrievalConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RetrievalConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RetrievalConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1RetrievalConfig(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigExplanationConfigExplanationBaseline( + od, + ); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1RetrievalMetadata', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RetrievalMetadata(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RetrievalMetadata.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1RetrievalMetadata(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigPredictionDriftDetectionConfig( + od, + ); + }); + }, + ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RetrieveContextsRequest', + 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RetrieveContextsRequest(); + final o = + buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RetrieveContextsRequest.fromJson( + final od = api + .GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RetrieveContextsRequest(od); + checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingDataset( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore', + 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore(); + buildGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore.fromJson( + .GoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore(od); + checkGoogleCloudAiplatformV1ModelMonitoringObjectiveConfigTrainingPredictionSkewDetectionConfig( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource', + 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringStatsAnomalies', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ModelMonitoringStatsAnomalies.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomalies(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource(); + buildGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource.fromJson( + .GoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource( + checkGoogleCloudAiplatformV1ModelMonitoringStatsAnomaliesFeatureHistoricStatsAnomalies( od, ); }); @@ -39207,995 +39114,915 @@ void main() { ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RetrieveContextsResponse', + 'obj-schema-GoogleCloudAiplatformV1ModelOriginalModelInfo', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RetrieveContextsResponse(); + final o = buildGoogleCloudAiplatformV1ModelOriginalModelInfo(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RetrieveContextsResponse.fromJson( + final od = api.GoogleCloudAiplatformV1ModelOriginalModelInfo.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RetrieveContextsResponse(od); + checkGoogleCloudAiplatformV1ModelOriginalModelInfo(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1RougeInput', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ModelSourceInfo', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RougeInput(); + final o = buildGoogleCloudAiplatformV1ModelSourceInfo(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RougeInput.fromJson( + final od = api.GoogleCloudAiplatformV1ModelSourceInfo.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RougeInput(od); + checkGoogleCloudAiplatformV1ModelSourceInfo(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1RougeInstance', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RougeInstance(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RougeInstance.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1RougeInstance(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ModelVersionCheckpoint', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ModelVersionCheckpoint(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ModelVersionCheckpoint.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ModelVersionCheckpoint(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1RougeMetricValue', () { + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1MutateDeployedModelRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1MutateDeployedModelRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1MutateDeployedModelRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1MutateDeployedModelRequest(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1NasJob', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RougeMetricValue(); + final o = buildGoogleCloudAiplatformV1NasJob(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RougeMetricValue.fromJson( + final od = api.GoogleCloudAiplatformV1NasJob.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RougeMetricValue(od); + checkGoogleCloudAiplatformV1NasJob(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1RougeResults', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1NasJobOutput', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RougeResults(); + final o = buildGoogleCloudAiplatformV1NasJobOutput(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RougeResults.fromJson( + final od = api.GoogleCloudAiplatformV1NasJobOutput.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RougeResults(od); + checkGoogleCloudAiplatformV1NasJobOutput(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1RougeSpec', () { + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1NasJobOutputMultiTrialJobOutput(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1NasJobSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RougeSpec(); + final o = buildGoogleCloudAiplatformV1NasJobSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RougeSpec.fromJson( + final od = api.GoogleCloudAiplatformV1NasJobSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RougeSpec(od); + checkGoogleCloudAiplatformV1NasJobSpec(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput', + 'obj-schema-GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput(); + buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput.fromJson( + .GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput(od); + checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpec(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance', + 'obj-schema-GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance(); + buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance.fromJson( + .GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance(od); + checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecMetricSpec( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult', + 'obj-schema-GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult(); + buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult.fromJson( + .GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult(od); + checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecSearchTrialSpec( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec', + 'obj-schema-GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec(); + buildGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec.fromJson( + .GoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec(od); + checkGoogleCloudAiplatformV1NasJobSpecMultiTrialAlgorithmSpecTrainTrialSpec( + od, + ); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1RubricCritiqueResult', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1NasTrial', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1RubricCritiqueResult(); + final o = buildGoogleCloudAiplatformV1NasTrial(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1RubricCritiqueResult.fromJson( + final od = api.GoogleCloudAiplatformV1NasTrial.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1RubricCritiqueResult(od); + checkGoogleCloudAiplatformV1NasTrial(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1SafetyInput', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1NasTrialDetail', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SafetyInput(); + final o = buildGoogleCloudAiplatformV1NasTrialDetail(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SafetyInput.fromJson( + final od = api.GoogleCloudAiplatformV1NasTrialDetail.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SafetyInput(od); + checkGoogleCloudAiplatformV1NasTrialDetail(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1SafetyInstance', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1NearestNeighborQuery', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SafetyInstance(); + final o = buildGoogleCloudAiplatformV1NearestNeighborQuery(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SafetyInstance.fromJson( + final od = api.GoogleCloudAiplatformV1NearestNeighborQuery.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SafetyInstance(od); + checkGoogleCloudAiplatformV1NearestNeighborQuery(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1SafetyRating', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SafetyRating(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SafetyRating.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1SafetyRating(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1SafetyResult', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SafetyResult(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SafetyResult.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1SafetyResult(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1SafetySetting', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SafetySetting(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SafetySetting.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1SafetySetting(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1SafetySpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SafetySpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SafetySpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1SafetySpec(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1SampleConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SampleConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SampleConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1SampleConfig(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1NearestNeighborQueryEmbedding', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1NearestNeighborQueryEmbedding(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1NearestNeighborQueryEmbedding.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1NearestNeighborQueryEmbedding(od); + }); + }, + ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SampledShapleyAttribution', + 'obj-schema-GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SampledShapleyAttribution(); + final o = + buildGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SampledShapleyAttribution.fromJson( + .GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SampledShapleyAttribution(od); + checkGoogleCloudAiplatformV1NearestNeighborQueryNumericFilter(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1SamplingStrategy', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SamplingStrategy(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SamplingStrategy.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1SamplingStrategy(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1NearestNeighborQueryParameters', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1NearestNeighborQueryParameters(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1NearestNeighborQueryParameters.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1NearestNeighborQueryParameters(od); + }); + }, + ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig', + 'obj-schema-GoogleCloudAiplatformV1NearestNeighborQueryStringFilter', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig(); + buildGoogleCloudAiplatformV1NearestNeighborQueryStringFilter(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig.fromJson( + .GoogleCloudAiplatformV1NearestNeighborQueryStringFilter.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig(od); + checkGoogleCloudAiplatformV1NearestNeighborQueryStringFilter(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1SavedQuery', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1NearestNeighbors', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SavedQuery(); + final o = buildGoogleCloudAiplatformV1NearestNeighbors(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SavedQuery.fromJson( + final od = api.GoogleCloudAiplatformV1NearestNeighbors.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SavedQuery(od); + checkGoogleCloudAiplatformV1NearestNeighbors(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Scalar', () { + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1NearestNeighborsNeighbor', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1NearestNeighborsNeighbor(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1NearestNeighborsNeighbor.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1NearestNeighborsNeighbor(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Neighbor', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Scalar(); + final o = buildGoogleCloudAiplatformV1Neighbor(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Scalar.fromJson( + final od = api.GoogleCloudAiplatformV1Neighbor.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Scalar(od); + checkGoogleCloudAiplatformV1Neighbor(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Schedule', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1NetworkSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Schedule(); + final o = buildGoogleCloudAiplatformV1NetworkSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Schedule.fromJson( + final od = api.GoogleCloudAiplatformV1NetworkSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Schedule(od); + checkGoogleCloudAiplatformV1NetworkSpec(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ScheduleRunResponse', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1NfsMount', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ScheduleRunResponse(); + final o = buildGoogleCloudAiplatformV1NfsMount(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ScheduleRunResponse.fromJson( + final od = api.GoogleCloudAiplatformV1NfsMount.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ScheduleRunResponse(od); + checkGoogleCloudAiplatformV1NfsMount(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Scheduling', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1NotebookEucConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Scheduling(); + final o = buildGoogleCloudAiplatformV1NotebookEucConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Scheduling.fromJson( + final od = api.GoogleCloudAiplatformV1NotebookEucConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Scheduling(od); + checkGoogleCloudAiplatformV1NotebookEucConfig(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Schema', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1NotebookExecutionJob', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Schema(); + final o = buildGoogleCloudAiplatformV1NotebookExecutionJob(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Schema.fromJson( + final od = api.GoogleCloudAiplatformV1NotebookExecutionJob.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Schema(od); + checkGoogleCloudAiplatformV1NotebookExecutionJob(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SearchDataItemsResponse', + 'obj-schema-GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SearchDataItemsResponse(); + final o = + buildGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SearchDataItemsResponse.fromJson( + final od = api + .GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SearchDataItemsResponse(od); + checkGoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec( + od, + ); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1SearchEntryPoint', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SearchEntryPoint(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SearchEntryPoint.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1SearchEntryPoint(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SearchFeaturesResponse', + 'obj-schema-GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SearchFeaturesResponse(); + final o = + buildGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SearchFeaturesResponse.fromJson( + final od = api + .GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SearchFeaturesResponse(od); + checkGoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SearchMigratableResourcesRequest', + 'obj-schema-GoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1SearchMigratableResourcesRequest(); + buildGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SearchMigratableResourcesRequest.fromJson( + .GoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SearchMigratableResourcesRequest(od); + checkGoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SearchMigratableResourcesResponse', + 'obj-schema-GoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1SearchMigratableResourcesResponse(); + buildGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SearchMigratableResourcesResponse.fromJson( + .GoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SearchMigratableResourcesResponse(od); + checkGoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest', + 'obj-schema-GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + buildGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromJson( + .GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest( - od, - ); + checkGoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective', + 'obj-schema-GoogleCloudAiplatformV1NotebookIdleShutdownConfig', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective(); + final o = buildGoogleCloudAiplatformV1NotebookIdleShutdownConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective.fromJson( + .GoogleCloudAiplatformV1NotebookIdleShutdownConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective( - od, - ); + checkGoogleCloudAiplatformV1NotebookIdleShutdownConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse', + 'obj-schema-GoogleCloudAiplatformV1NotebookReservationAffinity', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + final o = buildGoogleCloudAiplatformV1NotebookReservationAffinity(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromJson( + .GoogleCloudAiplatformV1NotebookReservationAffinity.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse( - od, - ); + checkGoogleCloudAiplatformV1NotebookReservationAffinity(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1NotebookRuntime', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1NotebookRuntime(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1NotebookRuntime.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1NotebookRuntime(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SearchNearestEntitiesRequest', + 'obj-schema-GoogleCloudAiplatformV1NotebookRuntimeTemplate', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SearchNearestEntitiesRequest(); + final o = buildGoogleCloudAiplatformV1NotebookRuntimeTemplate(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1SearchNearestEntitiesRequest.fromJson( + final od = api.GoogleCloudAiplatformV1NotebookRuntimeTemplate.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SearchNearestEntitiesRequest(od); + checkGoogleCloudAiplatformV1NotebookRuntimeTemplate(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SearchNearestEntitiesResponse', + 'obj-schema-GoogleCloudAiplatformV1NotebookRuntimeTemplateRef', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SearchNearestEntitiesResponse(); + final o = buildGoogleCloudAiplatformV1NotebookRuntimeTemplateRef(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SearchNearestEntitiesResponse.fromJson( + .GoogleCloudAiplatformV1NotebookRuntimeTemplateRef.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SearchNearestEntitiesResponse(od); + checkGoogleCloudAiplatformV1NotebookRuntimeTemplateRef(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1SecretEnvVar', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SecretEnvVar(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SecretEnvVar.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1SecretEnvVar(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1NotebookSoftwareConfig', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1NotebookSoftwareConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1NotebookSoftwareConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1NotebookSoftwareConfig(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1SecretRef', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1OutputConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SecretRef(); + final o = buildGoogleCloudAiplatformV1OutputConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SecretRef.fromJson( + final od = api.GoogleCloudAiplatformV1OutputConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SecretRef(od); + checkGoogleCloudAiplatformV1OutputConfig(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Segment', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1OutputFieldSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Segment(); + final o = buildGoogleCloudAiplatformV1OutputFieldSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Segment.fromJson( + final od = api.GoogleCloudAiplatformV1OutputFieldSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Segment(od); + checkGoogleCloudAiplatformV1OutputFieldSpec(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ServiceAccountSpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1PSCAutomationConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ServiceAccountSpec(); + final o = buildGoogleCloudAiplatformV1PSCAutomationConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ServiceAccountSpec.fromJson( + final od = api.GoogleCloudAiplatformV1PSCAutomationConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ServiceAccountSpec(od); + checkGoogleCloudAiplatformV1PSCAutomationConfig(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1SharePointSources', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1PairwiseMetricInput', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SharePointSources(); + final o = buildGoogleCloudAiplatformV1PairwiseMetricInput(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SharePointSources.fromJson( + final od = api.GoogleCloudAiplatformV1PairwiseMetricInput.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SharePointSources(od); + checkGoogleCloudAiplatformV1PairwiseMetricInput(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SharePointSourcesSharePointSource', + 'obj-schema-GoogleCloudAiplatformV1PairwiseMetricInstance', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1SharePointSourcesSharePointSource(); + final o = buildGoogleCloudAiplatformV1PairwiseMetricInstance(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1SharePointSourcesSharePointSource.fromJson( + final od = api.GoogleCloudAiplatformV1PairwiseMetricInstance.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SharePointSourcesSharePointSource(od); + checkGoogleCloudAiplatformV1PairwiseMetricInstance(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ShieldedVmConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1PairwiseMetricResult', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ShieldedVmConfig(); + final o = buildGoogleCloudAiplatformV1PairwiseMetricResult(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ShieldedVmConfig.fromJson( + final od = api.GoogleCloudAiplatformV1PairwiseMetricResult.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ShieldedVmConfig(od); + checkGoogleCloudAiplatformV1PairwiseMetricResult(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1SlackSource', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1PairwiseMetricSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SlackSource(); + final o = buildGoogleCloudAiplatformV1PairwiseMetricSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SlackSource.fromJson( + final od = api.GoogleCloudAiplatformV1PairwiseMetricSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SlackSource(od); + checkGoogleCloudAiplatformV1PairwiseMetricSpec(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SlackSourceSlackChannels', + 'obj-schema-GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SlackSourceSlackChannels(); + final o = + buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SlackSourceSlackChannels.fromJson( + final od = api + .GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SlackSourceSlackChannels(od); + checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel', + 'obj-schema-GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel(); + buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel.fromJson( + .GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel(od); + checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance( + od, + ); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1SmoothGradConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SmoothGradConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SmoothGradConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1SmoothGradConfig(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1SpecialistPool', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SpecialistPool(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SpecialistPool.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1SpecialistPool(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SpeculativeDecodingSpec', + 'obj-schema-GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SpeculativeDecodingSpec(); + final o = + buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SpeculativeDecodingSpec.fromJson( + final od = api + .GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SpeculativeDecodingSpec(od); + checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation', + 'obj-schema-GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation(); + buildGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation.fromJson( + .GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation( - od, - ); + checkGoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation', + 'obj-schema-GoogleCloudAiplatformV1PairwiseSummarizationQualityInput', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation(); + buildGoogleCloudAiplatformV1PairwiseSummarizationQualityInput(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation.fromJson( + .GoogleCloudAiplatformV1PairwiseSummarizationQualityInput.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation(od); + checkGoogleCloudAiplatformV1PairwiseSummarizationQualityInput(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1SpeechConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SpeechConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SpeechConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1SpeechConfig(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StartNotebookRuntimeRequest', + 'obj-schema-GoogleCloudAiplatformV1PairwiseSummarizationQualityInstance', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1StartNotebookRuntimeRequest(); + final o = + buildGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1StartNotebookRuntimeRequest.fromJson( + .GoogleCloudAiplatformV1PairwiseSummarizationQualityInstance.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StartNotebookRuntimeRequest(od); + checkGoogleCloudAiplatformV1PairwiseSummarizationQualityInstance(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StopNotebookRuntimeRequest', + 'obj-schema-GoogleCloudAiplatformV1PairwiseSummarizationQualityResult', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1StopNotebookRuntimeRequest(); + final o = + buildGoogleCloudAiplatformV1PairwiseSummarizationQualityResult(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1StopNotebookRuntimeRequest.fromJson( + .GoogleCloudAiplatformV1PairwiseSummarizationQualityResult.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StopNotebookRuntimeRequest(od); + checkGoogleCloudAiplatformV1PairwiseSummarizationQualityResult(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1StopTrialRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1StopTrialRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1StopTrialRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1StopTrialRequest(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1StratifiedSplit', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1StratifiedSplit(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1StratifiedSplit.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1StratifiedSplit(od); - }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest', + 'obj-schema-GoogleCloudAiplatformV1PairwiseSummarizationQualitySpec', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest(); + buildGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest.fromJson( + .GoogleCloudAiplatformV1PairwiseSummarizationQualitySpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest(od); + checkGoogleCloudAiplatformV1PairwiseSummarizationQualitySpec(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1Part', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Part(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Part.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Part(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StreamRawPredictRequest', + 'obj-schema-GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1StreamRawPredictRequest(); + final o = + buildGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1StreamRawPredictRequest.fromJson( + final od = api + .GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StreamRawPredictRequest(od); + checkGoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest( + od, + ); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StreamingPredictRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1StreamingPredictRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1StreamingPredictRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1StreamingPredictRequest(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StreamingPredictResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1StreamingPredictResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1StreamingPredictResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1StreamingPredictResponse(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest(od); - }); - }, - ); - - unittest.group('obj-schema-GoogleCloudAiplatformV1StringArray', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1PauseScheduleRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1StringArray(); + final o = buildGoogleCloudAiplatformV1PauseScheduleRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1StringArray.fromJson( + final od = api.GoogleCloudAiplatformV1PauseScheduleRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StringArray(od); + checkGoogleCloudAiplatformV1PauseScheduleRequest(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1StructFieldValue', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1PersistentDiskSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1StructFieldValue(); + final o = buildGoogleCloudAiplatformV1PersistentDiskSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1StructFieldValue.fromJson( + final od = api.GoogleCloudAiplatformV1PersistentDiskSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StructFieldValue(od); + checkGoogleCloudAiplatformV1PersistentDiskSpec(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1StructValue', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1PersistentResource', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1StructValue(); + final o = buildGoogleCloudAiplatformV1PersistentResource(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1StructValue.fromJson( + final od = api.GoogleCloudAiplatformV1PersistentResource.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StructValue(od); + checkGoogleCloudAiplatformV1PersistentResource(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Study', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1PipelineJob', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Study(); + final o = buildGoogleCloudAiplatformV1PipelineJob(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Study.fromJson( + final od = api.GoogleCloudAiplatformV1PipelineJob.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Study(od); + checkGoogleCloudAiplatformV1PipelineJob(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1StudySpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1PipelineJobDetail', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1StudySpec(); + final o = buildGoogleCloudAiplatformV1PipelineJobDetail(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1StudySpec.fromJson( + final od = api.GoogleCloudAiplatformV1PipelineJobDetail.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudySpec(od); + checkGoogleCloudAiplatformV1PipelineJobDetail(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec', + 'obj-schema-GoogleCloudAiplatformV1PipelineJobRuntimeConfig', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec(); + final o = buildGoogleCloudAiplatformV1PipelineJobRuntimeConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec.fromJson( + final od = api.GoogleCloudAiplatformV1PipelineJobRuntimeConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec( - od, - ); + checkGoogleCloudAiplatformV1PipelineJobRuntimeConfig(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec', + 'obj-schema-GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec(); + buildGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec.fromJson( + .GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec(od); + checkGoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1StudySpecMetricSpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1PipelineTaskDetail', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1StudySpecMetricSpec(); + final o = buildGoogleCloudAiplatformV1PipelineTaskDetail(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1StudySpecMetricSpec.fromJson( + final od = api.GoogleCloudAiplatformV1PipelineTaskDetail.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudySpecMetricSpec(od); + checkGoogleCloudAiplatformV1PipelineTaskDetail(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig', + 'obj-schema-GoogleCloudAiplatformV1PipelineTaskDetailArtifactList', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig(); + final o = buildGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig.fromJson( + .GoogleCloudAiplatformV1PipelineTaskDetailArtifactList.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig(od); + checkGoogleCloudAiplatformV1PipelineTaskDetailArtifactList(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpec', + 'obj-schema-GoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1StudySpecParameterSpec(); + final o = + buildGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1StudySpecParameterSpec.fromJson( + final od = api + .GoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudySpecParameterSpec(od); + checkGoogleCloudAiplatformV1PipelineTaskDetailPipelineTaskStatus(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec', + 'obj-schema-GoogleCloudAiplatformV1PipelineTaskExecutorDetail', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec(); + final o = buildGoogleCloudAiplatformV1PipelineTaskExecutorDetail(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec.fromJson( + .GoogleCloudAiplatformV1PipelineTaskExecutorDetail.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec( - od, - ); + checkGoogleCloudAiplatformV1PipelineTaskExecutorDetail(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec', + 'obj-schema-GoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec(); + buildGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec.fromJson( + .GoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec( + checkGoogleCloudAiplatformV1PipelineTaskExecutorDetailContainerDetail( od, ); }); @@ -40203,17 +40030,17 @@ void main() { ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition', + 'obj-schema-GoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition(); + buildGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition.fromJson( + .GoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition( + checkGoogleCloudAiplatformV1PipelineTaskExecutorDetailCustomJobDetail( od, ); }); @@ -40221,2064 +40048,6569 @@ void main() { ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition', + 'obj-schema-GoogleCloudAiplatformV1PipelineTemplateMetadata', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition(); + final o = buildGoogleCloudAiplatformV1PipelineTemplateMetadata(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition.fromJson( + final od = api.GoogleCloudAiplatformV1PipelineTemplateMetadata.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition( - od, - ); + checkGoogleCloudAiplatformV1PipelineTemplateMetadata(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1PointwiseMetricInput', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PointwiseMetricInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PointwiseMetricInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PointwiseMetricInput(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition', + 'obj-schema-GoogleCloudAiplatformV1PointwiseMetricInstance', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition(); + final o = buildGoogleCloudAiplatformV1PointwiseMetricInstance(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition.fromJson( + final od = api.GoogleCloudAiplatformV1PointwiseMetricInstance.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition( - od, - ); + checkGoogleCloudAiplatformV1PointwiseMetricInstance(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1PointwiseMetricResult', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PointwiseMetricResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PointwiseMetricResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PointwiseMetricResult(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1PointwiseMetricSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PointwiseMetricSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PointwiseMetricSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PointwiseMetricSpec(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Port', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Port(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Port.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Port(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec', + 'obj-schema-GoogleCloudAiplatformV1PostStartupScriptConfig', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec(); + final o = buildGoogleCloudAiplatformV1PostStartupScriptConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec.fromJson( + final od = api.GoogleCloudAiplatformV1PostStartupScriptConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec(od); + checkGoogleCloudAiplatformV1PostStartupScriptConfig(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1PrebuiltVoiceConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PrebuiltVoiceConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PrebuiltVoiceConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PrebuiltVoiceConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1PredefinedMetricSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PredefinedMetricSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PredefinedMetricSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PredefinedMetricSpec(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1PredefinedSplit', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PredefinedSplit(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PredefinedSplit.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PredefinedSplit(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec', + 'obj-schema-GoogleCloudAiplatformV1PredictLongRunningRequest', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec(); + final o = buildGoogleCloudAiplatformV1PredictLongRunningRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec.fromJson( + .GoogleCloudAiplatformV1PredictLongRunningRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec(od); + checkGoogleCloudAiplatformV1PredictLongRunningRequest(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1PredictRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PredictRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PredictRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PredictRequest(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec', + 'obj-schema-GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec(); + buildGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec.fromJson( + .GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec(od); + checkGoogleCloudAiplatformV1PredictRequestResponseLoggingConfig(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1PredictResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PredictResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PredictResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PredictResponse(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1PredictSchemata', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PredictSchemata(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PredictSchemata.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PredictSchemata(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Presets', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Presets(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Presets.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Presets(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1PrivateEndpoints', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PrivateEndpoints(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PrivateEndpoints.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PrivateEndpoints(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1StudySpecStudyStoppingConfig', + 'obj-schema-GoogleCloudAiplatformV1PrivateServiceConnectConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1StudySpecStudyStoppingConfig(); + final o = buildGoogleCloudAiplatformV1PrivateServiceConnectConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1StudySpecStudyStoppingConfig.fromJson( + .GoogleCloudAiplatformV1PrivateServiceConnectConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudySpecStudyStoppingConfig(od); + checkGoogleCloudAiplatformV1PrivateServiceConnectConfig(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1StudyTimeConstraint', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1Probe', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1StudyTimeConstraint(); + final o = buildGoogleCloudAiplatformV1Probe(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1StudyTimeConstraint.fromJson( + final od = api.GoogleCloudAiplatformV1Probe.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1StudyTimeConstraint(od); + checkGoogleCloudAiplatformV1Probe(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1SuggestTrialsRequest', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1ProbeExecAction', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SuggestTrialsRequest(); + final o = buildGoogleCloudAiplatformV1ProbeExecAction(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SuggestTrialsRequest.fromJson( + final od = api.GoogleCloudAiplatformV1ProbeExecAction.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SuggestTrialsRequest(od); + checkGoogleCloudAiplatformV1ProbeExecAction(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ProbeGrpcAction', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ProbeGrpcAction(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ProbeGrpcAction.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ProbeGrpcAction(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ProbeHttpGetAction', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ProbeHttpGetAction(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ProbeHttpGetAction.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ProbeHttpGetAction(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ProbeHttpHeader', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ProbeHttpHeader(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ProbeHttpHeader.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ProbeHttpHeader(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ProbeTcpSocketAction', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ProbeTcpSocketAction(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ProbeTcpSocketAction.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ProbeTcpSocketAction(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1PscAutomatedEndpoints', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PscAutomatedEndpoints(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PscAutomatedEndpoints.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PscAutomatedEndpoints(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1PscInterfaceConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PscInterfaceConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PscInterfaceConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PscInterfaceConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1PublisherModel', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PublisherModel(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PublisherModel.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PublisherModel(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SummarizationHelpfulnessInput', + 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToAction', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SummarizationHelpfulnessInput(); + final o = buildGoogleCloudAiplatformV1PublisherModelCallToAction(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SummarizationHelpfulnessInput.fromJson( + .GoogleCloudAiplatformV1PublisherModelCallToAction.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SummarizationHelpfulnessInput(od); + checkGoogleCloudAiplatformV1PublisherModelCallToAction(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SummarizationHelpfulnessInstance', + 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionDeploy', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1SummarizationHelpfulnessInstance(); + buildGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SummarizationHelpfulnessInstance.fromJson( + .GoogleCloudAiplatformV1PublisherModelCallToActionDeploy.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SummarizationHelpfulnessInstance(od); + checkGoogleCloudAiplatformV1PublisherModelCallToActionDeploy(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SummarizationHelpfulnessResult', + 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SummarizationHelpfulnessResult(); + final o = + buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SummarizationHelpfulnessResult.fromJson( + .GoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SummarizationHelpfulnessResult(od); + checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SummarizationHelpfulnessSpec', + 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SummarizationHelpfulnessSpec(); + final o = + buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SummarizationHelpfulnessSpec.fromJson( + .GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SummarizationHelpfulnessSpec(od); + checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployGke(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SummarizationQualityInput', + 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SummarizationQualityInput(); + final o = + buildGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SummarizationQualityInput.fromJson( + .GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SummarizationQualityInput(od); + checkGoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SummarizationQualityInstance', + 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SummarizationQualityInstance(); + final o = + buildGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SummarizationQualityInstance.fromJson( + .GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SummarizationQualityInstance(od); + checkGoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SummarizationQualityResult', + 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SummarizationQualityResult(); + final o = + buildGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SummarizationQualityResult.fromJson( + .GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SummarizationQualityResult(od); + checkGoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SummarizationQualitySpec', + 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SummarizationQualitySpec(); + final o = + buildGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SummarizationQualitySpec.fromJson( + final od = api + .GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SummarizationQualitySpec(od); + checkGoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SummarizationVerbosityInput', + 'obj-schema-GoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SummarizationVerbosityInput(); + final o = + buildGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SummarizationVerbosityInput.fromJson( + .GoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SummarizationVerbosityInput(od); + checkGoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SummarizationVerbosityInstance', + 'obj-schema-GoogleCloudAiplatformV1PublisherModelDocumentation', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SummarizationVerbosityInstance(); + final o = buildGoogleCloudAiplatformV1PublisherModelDocumentation(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SummarizationVerbosityInstance.fromJson( + .GoogleCloudAiplatformV1PublisherModelDocumentation.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SummarizationVerbosityInstance(od); + checkGoogleCloudAiplatformV1PublisherModelDocumentation(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SummarizationVerbosityResult', + 'obj-schema-GoogleCloudAiplatformV1PublisherModelResourceReference', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SummarizationVerbosityResult(); + final o = buildGoogleCloudAiplatformV1PublisherModelResourceReference(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SummarizationVerbosityResult.fromJson( + .GoogleCloudAiplatformV1PublisherModelResourceReference.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SummarizationVerbosityResult(od); + checkGoogleCloudAiplatformV1PublisherModelResourceReference(od); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1PurgeArtifactsRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PurgeArtifactsRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PurgeArtifactsRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PurgeArtifactsRequest(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1PurgeContextsRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PurgeContextsRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PurgeContextsRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PurgeContextsRequest(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SummarizationVerbositySpec', + 'obj-schema-GoogleCloudAiplatformV1PurgeExecutionsRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SummarizationVerbositySpec(); + final o = buildGoogleCloudAiplatformV1PurgeExecutionsRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PurgeExecutionsRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PurgeExecutionsRequest(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1PythonPackageSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1PythonPackageSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1PythonPackageSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1PythonPackageSpec(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1QueryDeployedModelsResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1QueryDeployedModelsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SummarizationVerbositySpec.fromJson( + .GoogleCloudAiplatformV1QueryDeployedModelsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SummarizationVerbositySpec(od); + checkGoogleCloudAiplatformV1QueryDeployedModelsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SupervisedHyperParameters', + 'obj-schema-GoogleCloudAiplatformV1QueryReasoningEngineRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SupervisedHyperParameters(); + final o = buildGoogleCloudAiplatformV1QueryReasoningEngineRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SupervisedHyperParameters.fromJson( + .GoogleCloudAiplatformV1QueryReasoningEngineRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SupervisedHyperParameters(od); + checkGoogleCloudAiplatformV1QueryReasoningEngineRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SupervisedTuningDataStats', + 'obj-schema-GoogleCloudAiplatformV1QueryReasoningEngineResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SupervisedTuningDataStats(); + final o = buildGoogleCloudAiplatformV1QueryReasoningEngineResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SupervisedTuningDataStats.fromJson( + .GoogleCloudAiplatformV1QueryReasoningEngineResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SupervisedTuningDataStats(od); + checkGoogleCloudAiplatformV1QueryReasoningEngineResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution', + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution(); + buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution.fromJson( + .GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution(od); + checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket', + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket(); + buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket.fromJson( + .GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket( - od, + checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult.fromJson( + oJson as core.Map, ); + checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1SupervisedTuningSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SupervisedTuningSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SupervisedTuningSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1SupervisedTuningSpec(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec(od); + }); + }, + ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SyncFeatureViewRequest', + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SyncFeatureViewRequest(); + final o = + buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SyncFeatureViewRequest.fromJson( + final od = api + .GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SyncFeatureViewRequest(od); + checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1SyncFeatureViewResponse', + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1SyncFeatureViewResponse(); + final o = + buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1SyncFeatureViewResponse.fromJson( + final od = api + .GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1SyncFeatureViewResponse(od); + checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1TFRecordDestination', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TFRecordDestination(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TFRecordDestination.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TFRecordDestination(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1Tensor', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Tensor(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Tensor.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Tensor(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1Tensorboard', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Tensorboard(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Tensorboard.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Tensorboard(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringQualityInput', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1QuestionAnsweringQualityInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1QuestionAnsweringQualityInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1QuestionAnsweringQualityInput(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1TensorboardBlob', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TensorboardBlob(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TensorboardBlob.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TensorboardBlob(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringQualityInstance', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1QuestionAnsweringQualityInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1QuestionAnsweringQualityInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1QuestionAnsweringQualityInstance(od); + }); + }, + ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TensorboardBlobSequence', + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringQualityResult', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TensorboardBlobSequence(); + final o = buildGoogleCloudAiplatformV1QuestionAnsweringQualityResult(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TensorboardBlobSequence.fromJson( + final od = api + .GoogleCloudAiplatformV1QuestionAnsweringQualityResult.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TensorboardBlobSequence(od); + checkGoogleCloudAiplatformV1QuestionAnsweringQualityResult(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1TensorboardExperiment', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TensorboardExperiment(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TensorboardExperiment.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TensorboardExperiment(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringQualitySpec', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1QuestionAnsweringQualitySpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1QuestionAnsweringQualitySpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1QuestionAnsweringQualitySpec(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1TensorboardRun', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TensorboardRun(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TensorboardRun.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TensorboardRun(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringRelevanceInput', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1QuestionAnsweringRelevanceInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceInput(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1TensorboardTensor', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TensorboardTensor(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TensorboardTensor.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TensorboardTensor(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1TensorboardTimeSeries', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TensorboardTimeSeries(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TensorboardTimeSeries.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TensorboardTimeSeries(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceResult(od); + }); + }, + ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TensorboardTimeSeriesMetadata', + 'obj-schema-GoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata(); + final o = buildGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TensorboardTimeSeriesMetadata.fromJson( + .GoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata(od); + checkGoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ThresholdConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1RagChunk', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ThresholdConfig(); + final o = buildGoogleCloudAiplatformV1RagChunk(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ThresholdConfig.fromJson( + final od = api.GoogleCloudAiplatformV1RagChunk.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ThresholdConfig(od); + checkGoogleCloudAiplatformV1RagChunk(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1TimeSeriesData', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1RagChunkPageSpan', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TimeSeriesData(); + final o = buildGoogleCloudAiplatformV1RagChunkPageSpan(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TimeSeriesData.fromJson( + final od = api.GoogleCloudAiplatformV1RagChunkPageSpan.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TimeSeriesData(od); + checkGoogleCloudAiplatformV1RagChunkPageSpan(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1TimeSeriesDataPoint', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1RagContexts', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TimeSeriesDataPoint(); + final o = buildGoogleCloudAiplatformV1RagContexts(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TimeSeriesDataPoint.fromJson( + final od = api.GoogleCloudAiplatformV1RagContexts.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TimeSeriesDataPoint(od); + checkGoogleCloudAiplatformV1RagContexts(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1TimestampSplit', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1RagContextsContext', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TimestampSplit(); + final o = buildGoogleCloudAiplatformV1RagContextsContext(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TimestampSplit.fromJson( + final od = api.GoogleCloudAiplatformV1RagContextsContext.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TimestampSplit(od); + checkGoogleCloudAiplatformV1RagContextsContext(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1TokensInfo', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1RagCorpus', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TokensInfo(); + final o = buildGoogleCloudAiplatformV1RagCorpus(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TokensInfo.fromJson( + final od = api.GoogleCloudAiplatformV1RagCorpus.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TokensInfo(od); + checkGoogleCloudAiplatformV1RagCorpus(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Tool', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Tool(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Tool.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Tool(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RagEmbeddingModelConfig', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RagEmbeddingModelConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RagEmbeddingModelConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RagEmbeddingModelConfig(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ToolCall', () { + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint( + od, + ); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RagEngineConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolCall(); + final o = buildGoogleCloudAiplatformV1RagEngineConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ToolCall.fromJson( + final od = api.GoogleCloudAiplatformV1RagEngineConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolCall(od); + checkGoogleCloudAiplatformV1RagEngineConfig(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ToolCallValidInput', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1RagFile', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolCallValidInput(); + final o = buildGoogleCloudAiplatformV1RagFile(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ToolCallValidInput.fromJson( + final od = api.GoogleCloudAiplatformV1RagFile.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolCallValidInput(od); + checkGoogleCloudAiplatformV1RagFile(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ToolCallValidInstance', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1RagFileChunkingConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolCallValidInstance(); + final o = buildGoogleCloudAiplatformV1RagFileChunkingConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ToolCallValidInstance.fromJson( + final od = api.GoogleCloudAiplatformV1RagFileChunkingConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolCallValidInstance(od); + checkGoogleCloudAiplatformV1RagFileChunkingConfig(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ToolCallValidMetricValue', + 'obj-schema-GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolCallValidMetricValue(); + final o = + buildGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ToolCallValidMetricValue.fromJson( + final od = api + .GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolCallValidMetricValue(od); + checkGoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking( + od, + ); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ToolCallValidResults', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1RagFileParsingConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolCallValidResults(); + final o = buildGoogleCloudAiplatformV1RagFileParsingConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ToolCallValidResults.fromJson( + final od = api.GoogleCloudAiplatformV1RagFileParsingConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolCallValidResults(od); + checkGoogleCloudAiplatformV1RagFileParsingConfig(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ToolCallValidSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolCallValidSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ToolCallValidSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ToolCallValidSpec(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RagFileParsingConfigLayoutParser(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ToolCodeExecution', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolCodeExecution(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ToolCodeExecution.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ToolCodeExecution(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RagFileParsingConfigLlmParser', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RagFileParsingConfigLlmParser(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1RagFileParsingConfigLlmParser.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RagFileParsingConfigLlmParser(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ToolConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ToolConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ToolConfig(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RagFileTransformationConfig', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RagFileTransformationConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1RagFileTransformationConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RagFileTransformationConfig(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ToolGoogleSearch', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1RagManagedDbConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolGoogleSearch(); + final o = buildGoogleCloudAiplatformV1RagManagedDbConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ToolGoogleSearch.fromJson( + final od = api.GoogleCloudAiplatformV1RagManagedDbConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolGoogleSearch(od); + checkGoogleCloudAiplatformV1RagManagedDbConfig(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ToolNameMatchInput', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolNameMatchInput(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ToolNameMatchInput.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ToolNameMatchInput(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RagManagedDbConfigBasic', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RagManagedDbConfigBasic(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RagManagedDbConfigBasic.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RagManagedDbConfigBasic(od); + }); + }, + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ToolNameMatchInstance', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolNameMatchInstance(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ToolNameMatchInstance.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ToolNameMatchInstance(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RagManagedDbConfigScaled', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RagManagedDbConfigScaled(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RagManagedDbConfigScaled.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RagManagedDbConfigScaled(od); + }); + }, + ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ToolNameMatchMetricValue', + 'obj-schema-GoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolNameMatchMetricValue(); + final o = buildGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ToolNameMatchMetricValue.fromJson( + final od = api + .GoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolNameMatchMetricValue(od); + checkGoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1ToolNameMatchResults', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1RagQuery', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolNameMatchResults(); + final o = buildGoogleCloudAiplatformV1RagQuery(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ToolNameMatchResults.fromJson( + final od = api.GoogleCloudAiplatformV1RagQuery.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolNameMatchResults(od); + checkGoogleCloudAiplatformV1RagQuery(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1ToolNameMatchSpec', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1RagRetrievalConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolNameMatchSpec(); + final o = buildGoogleCloudAiplatformV1RagRetrievalConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ToolNameMatchSpec.fromJson( + final od = api.GoogleCloudAiplatformV1RagRetrievalConfig.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolNameMatchSpec(od); + checkGoogleCloudAiplatformV1RagRetrievalConfig(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ToolParameterKVMatchInput', + 'obj-schema-GoogleCloudAiplatformV1RagRetrievalConfigFilter', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolParameterKVMatchInput(); + final o = buildGoogleCloudAiplatformV1RagRetrievalConfigFilter(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1ToolParameterKVMatchInput.fromJson( + final od = api.GoogleCloudAiplatformV1RagRetrievalConfigFilter.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolParameterKVMatchInput(od); + checkGoogleCloudAiplatformV1RagRetrievalConfigFilter(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ToolParameterKVMatchInstance', + 'obj-schema-GoogleCloudAiplatformV1RagRetrievalConfigRanking', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolParameterKVMatchInstance(); + final o = buildGoogleCloudAiplatformV1RagRetrievalConfigRanking(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ToolParameterKVMatchInstance.fromJson( + .GoogleCloudAiplatformV1RagRetrievalConfigRanking.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolParameterKVMatchInstance(od); + checkGoogleCloudAiplatformV1RagRetrievalConfigRanking(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue', + 'obj-schema-GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue(); + final o = + buildGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue.fromJson( + .GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue(od); + checkGoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ToolParameterKVMatchResults', + 'obj-schema-GoogleCloudAiplatformV1RagRetrievalConfigRankingRankService', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolParameterKVMatchResults(); + final o = + buildGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ToolParameterKVMatchResults.fromJson( + .GoogleCloudAiplatformV1RagRetrievalConfigRankingRankService.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolParameterKVMatchResults(od); + checkGoogleCloudAiplatformV1RagRetrievalConfigRankingRankService(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ToolParameterKVMatchSpec', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolParameterKVMatchSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1ToolParameterKVMatchSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1ToolParameterKVMatchSpec(od); - }); - }, - ); + unittest.group('obj-schema-GoogleCloudAiplatformV1RagVectorDbConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RagVectorDbConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RagVectorDbConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RagVectorDbConfig(od); + }); + }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ToolParameterKeyMatchInput', + 'obj-schema-GoogleCloudAiplatformV1RagVectorDbConfigPinecone', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolParameterKeyMatchInput(); + final o = buildGoogleCloudAiplatformV1RagVectorDbConfigPinecone(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ToolParameterKeyMatchInput.fromJson( + .GoogleCloudAiplatformV1RagVectorDbConfigPinecone.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolParameterKeyMatchInput(od); + checkGoogleCloudAiplatformV1RagVectorDbConfigPinecone(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ToolParameterKeyMatchInstance', + 'obj-schema-GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolParameterKeyMatchInstance(); + final o = buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ToolParameterKeyMatchInstance.fromJson( + .GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolParameterKeyMatchInstance(od); + checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue', + 'obj-schema-GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue(); + buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue.fromJson( + .GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue(od); + checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbANN(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ToolParameterKeyMatchResults', + 'obj-schema-GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolParameterKeyMatchResults(); + final o = + buildGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ToolParameterKeyMatchResults.fromJson( + .GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolParameterKeyMatchResults(od); + checkGoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKNN(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1ToolParameterKeyMatchSpec', + 'obj-schema-GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1ToolParameterKeyMatchSpec(); + final o = + buildGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1ToolParameterKeyMatchSpec.fromJson( + .GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1ToolParameterKeyMatchSpec(od); + checkGoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1TrainingConfig', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1RawOutput', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrainingConfig(); + final o = buildGoogleCloudAiplatformV1RawOutput(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TrainingConfig.fromJson( + final od = api.GoogleCloudAiplatformV1RawOutput.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrainingConfig(od); + checkGoogleCloudAiplatformV1RawOutput(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1TrainingPipeline', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1RawPredictRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrainingPipeline(); + final o = buildGoogleCloudAiplatformV1RawPredictRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TrainingPipeline.fromJson( + final od = api.GoogleCloudAiplatformV1RawPredictRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrainingPipeline(od); + checkGoogleCloudAiplatformV1RawPredictRequest(od); }); }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Trajectory', () { + unittest.group('obj-schema-GoogleCloudAiplatformV1RayLogsSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Trajectory(); + final o = buildGoogleCloudAiplatformV1RayLogsSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Trajectory.fromJson( + final od = api.GoogleCloudAiplatformV1RayLogsSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1Trajectory(od); + checkGoogleCloudAiplatformV1RayLogsSpec(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RayMetricSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RayMetricSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RayMetricSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RayMetricSpec(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RaySpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RaySpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RaySpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RaySpec(od); }); }); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput', + 'obj-schema-GoogleCloudAiplatformV1ReadFeatureValuesRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput(); + final o = buildGoogleCloudAiplatformV1ReadFeatureValuesRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput.fromJson( + final od = api.GoogleCloudAiplatformV1ReadFeatureValuesRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput(od); + checkGoogleCloudAiplatformV1ReadFeatureValuesRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance', + 'obj-schema-GoogleCloudAiplatformV1ReadFeatureValuesResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance(); + final o = buildGoogleCloudAiplatformV1ReadFeatureValuesResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance.fromJson( + .GoogleCloudAiplatformV1ReadFeatureValuesResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance(od); + checkGoogleCloudAiplatformV1ReadFeatureValuesResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue', + 'obj-schema-GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue(); + buildGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue.fromJson( + .GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue(od); + checkGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityView(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults', + 'obj-schema-GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults(); + final o = + buildGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults.fromJson( + .GoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults(od); + checkGoogleCloudAiplatformV1ReadFeatureValuesResponseEntityViewData(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec', + 'obj-schema-GoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec(); + final o = + buildGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec.fromJson( + .GoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec(od); + checkGoogleCloudAiplatformV1ReadFeatureValuesResponseFeatureDescriptor( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryExactMatchInput', + 'obj-schema-GoogleCloudAiplatformV1ReadFeatureValuesResponseHeader', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryExactMatchInput(); + final o = buildGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TrajectoryExactMatchInput.fromJson( + .GoogleCloudAiplatformV1ReadFeatureValuesResponseHeader.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryExactMatchInput(od); + checkGoogleCloudAiplatformV1ReadFeatureValuesResponseHeader(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryExactMatchInstance', + 'obj-schema-GoogleCloudAiplatformV1ReadIndexDatapointsRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryExactMatchInstance(); + final o = buildGoogleCloudAiplatformV1ReadIndexDatapointsRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TrajectoryExactMatchInstance.fromJson( + .GoogleCloudAiplatformV1ReadIndexDatapointsRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryExactMatchInstance(od); + checkGoogleCloudAiplatformV1ReadIndexDatapointsRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue', + 'obj-schema-GoogleCloudAiplatformV1ReadIndexDatapointsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue(); + final o = buildGoogleCloudAiplatformV1ReadIndexDatapointsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue.fromJson( + .GoogleCloudAiplatformV1ReadIndexDatapointsResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue(od); + checkGoogleCloudAiplatformV1ReadIndexDatapointsResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryExactMatchResults', + 'obj-schema-GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryExactMatchResults(); + final o = buildGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TrajectoryExactMatchResults.fromJson( + .GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryExactMatchResults(od); + checkGoogleCloudAiplatformV1ReadTensorboardBlobDataResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryExactMatchSpec', + 'obj-schema-GoogleCloudAiplatformV1ReadTensorboardSizeResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryExactMatchSpec(); + final o = buildGoogleCloudAiplatformV1ReadTensorboardSizeResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TrajectoryExactMatchSpec.fromJson( + final od = api + .GoogleCloudAiplatformV1ReadTensorboardSizeResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryExactMatchSpec(od); + checkGoogleCloudAiplatformV1ReadTensorboardSizeResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryInOrderMatchInput', + 'obj-schema-GoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryInOrderMatchInput(); + final o = + buildGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TrajectoryInOrderMatchInput.fromJson( + .GoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryInOrderMatchInput(od); + checkGoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance', + 'obj-schema-GoogleCloudAiplatformV1ReadTensorboardUsageResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance(); + final o = buildGoogleCloudAiplatformV1ReadTensorboardUsageResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance.fromJson( + .GoogleCloudAiplatformV1ReadTensorboardUsageResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance(od); + checkGoogleCloudAiplatformV1ReadTensorboardUsageResponse(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue', + 'obj-schema-GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue(); + buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue.fromJson( + .GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue(od); + checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerMonthUsageData( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryInOrderMatchResults', + 'obj-schema-GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryInOrderMatchResults(); + final o = + buildGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TrajectoryInOrderMatchResults.fromJson( + .GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryInOrderMatchResults(od); + checkGoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData( + od, + ); }); }, ); + unittest.group('obj-schema-GoogleCloudAiplatformV1ReasoningEngine', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ReasoningEngine(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ReasoningEngine.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ReasoningEngine(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ReasoningEngineSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ReasoningEngineSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ReasoningEngineSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ReasoningEngineSpec(od); + }); + }); + unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec', + 'obj-schema-GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec(); + final o = + buildGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec.fromJson( + .GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec(od); + checkGoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryPrecisionInput', + 'obj-schema-GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryPrecisionInput(); + final o = buildGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TrajectoryPrecisionInput.fromJson( + final od = api + .GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryPrecisionInput(od); + checkGoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryPrecisionInstance', + 'obj-schema-GoogleCloudAiplatformV1RebaseTunedModelRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryPrecisionInstance(); + final o = buildGoogleCloudAiplatformV1RebaseTunedModelRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1TrajectoryPrecisionInstance.fromJson( + final od = api.GoogleCloudAiplatformV1RebaseTunedModelRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryPrecisionInstance(od); + checkGoogleCloudAiplatformV1RebaseTunedModelRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue', + 'obj-schema-GoogleCloudAiplatformV1RebootPersistentResourceRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue(); + final o = buildGoogleCloudAiplatformV1RebootPersistentResourceRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue.fromJson( + .GoogleCloudAiplatformV1RebootPersistentResourceRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue(od); + checkGoogleCloudAiplatformV1RebootPersistentResourceRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryPrecisionResults', + 'obj-schema-GoogleCloudAiplatformV1RemoveContextChildrenRequest', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryPrecisionResults(); + final o = buildGoogleCloudAiplatformV1RemoveContextChildrenRequest(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudAiplatformV1TrajectoryPrecisionResults.fromJson( + .GoogleCloudAiplatformV1RemoveContextChildrenRequest.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryPrecisionResults(od); + checkGoogleCloudAiplatformV1RemoveContextChildrenRequest(od); }); }, ); unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryPrecisionSpec', + 'obj-schema-GoogleCloudAiplatformV1RemoveContextChildrenResponse', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryPrecisionSpec(); + final o = buildGoogleCloudAiplatformV1RemoveContextChildrenResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TrajectoryPrecisionSpec.fromJson( + final od = api + .GoogleCloudAiplatformV1RemoveContextChildrenResponse.fromJson( oJson as core.Map, ); - checkGoogleCloudAiplatformV1TrajectoryPrecisionSpec(od); + checkGoogleCloudAiplatformV1RemoveContextChildrenResponse(od); }); }, ); - unittest.group('obj-schema-GoogleCloudAiplatformV1TrajectoryRecallInput', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryRecallInput(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TrajectoryRecallInput.fromJson( - oJson as core.Map, + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RemoveDatapointsRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RemoveDatapointsRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RemoveDatapointsRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RemoveDatapointsRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RemoveDatapointsResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RemoveDatapointsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RemoveDatapointsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RemoveDatapointsResponse(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ReservationAffinity', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ReservationAffinity(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ReservationAffinity.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ReservationAffinity(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ResourcePool', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ResourcePool(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ResourcePool.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ResourcePool(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ResourcePoolAutoscalingSpec(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ResourceRuntime', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ResourceRuntime(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ResourceRuntime.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ResourceRuntime(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ResourceRuntimeSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ResourceRuntimeSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ResourceRuntimeSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ResourceRuntimeSpec(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ResourcesConsumed', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ResourcesConsumed(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ResourcesConsumed.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ResourcesConsumed(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest( + od, + ); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ResumeScheduleRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ResumeScheduleRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ResumeScheduleRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ResumeScheduleRequest(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Retrieval', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Retrieval(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Retrieval.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Retrieval(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RetrievalConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RetrievalConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RetrievalConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RetrievalConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RetrievalMetadata', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RetrievalMetadata(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RetrievalMetadata.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RetrievalMetadata(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RetrieveContextsRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RetrieveContextsRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RetrieveContextsRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RetrieveContextsRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource( + od, + ); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RetrieveContextsResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RetrieveContextsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RetrieveContextsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RetrieveContextsResponse(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RougeInput', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RougeInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RougeInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RougeInput(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RougeInstance', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RougeInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RougeInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RougeInstance(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RougeMetricValue', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RougeMetricValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RougeMetricValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RougeMetricValue(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RougeResults', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RougeResults(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RougeResults.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RougeResults(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RougeSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RougeSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RougeSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RougeSpec(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Rubric', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Rubric(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Rubric.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Rubric(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingInput(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingResult(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RubricContent', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RubricContent(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RubricContent.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RubricContent(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RubricContentProperty', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RubricContentProperty(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RubricContentProperty.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RubricContentProperty(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RubricCritiqueResult', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RubricCritiqueResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RubricCritiqueResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RubricCritiqueResult(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RubricGenerationSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RubricGenerationSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RubricGenerationSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RubricGenerationSpec(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RubricGroup', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RubricGroup(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RubricGroup.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RubricGroup(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1RubricVerdict', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1RubricVerdict(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1RubricVerdict.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1RubricVerdict(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SafetyInput', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SafetyInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SafetyInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SafetyInput(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SafetyInstance', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SafetyInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SafetyInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SafetyInstance(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SafetyRating', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SafetyRating(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SafetyRating.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SafetyRating(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SafetyResult', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SafetyResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SafetyResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SafetyResult(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SafetySetting', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SafetySetting(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SafetySetting.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SafetySetting(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SafetySpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SafetySpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SafetySpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SafetySpec(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SampleConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SampleConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SampleConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SampleConfig(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SampledShapleyAttribution', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SampledShapleyAttribution(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SampledShapleyAttribution.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SampledShapleyAttribution(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SamplingStrategy', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SamplingStrategy(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SamplingStrategy.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SamplingStrategy(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SavedQuery', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SavedQuery(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SavedQuery.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SavedQuery(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Scalar', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Scalar(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Scalar.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Scalar(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Schedule', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Schedule(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Schedule.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Schedule(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ScheduleRunResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ScheduleRunResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ScheduleRunResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ScheduleRunResponse(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Scheduling', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Scheduling(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Scheduling.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Scheduling(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Schema', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Schema(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Schema.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Schema(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SearchDataItemsResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SearchDataItemsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SearchDataItemsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SearchDataItemsResponse(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SearchEntryPoint', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SearchEntryPoint(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SearchEntryPoint.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SearchEntryPoint(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SearchFeaturesResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SearchFeaturesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SearchFeaturesResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SearchFeaturesResponse(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SearchMigratableResourcesRequest', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1SearchMigratableResourcesRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SearchMigratableResourcesRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SearchMigratableResourcesRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SearchMigratableResourcesResponse', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1SearchMigratableResourcesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SearchMigratableResourcesResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SearchMigratableResourcesResponse(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest( + od, + ); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequestStatsAnomaliesObjective( + od, + ); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesResponse( + od, + ); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SearchNearestEntitiesRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SearchNearestEntitiesRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SearchNearestEntitiesRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SearchNearestEntitiesRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SearchNearestEntitiesResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SearchNearestEntitiesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SearchNearestEntitiesResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SearchNearestEntitiesResponse(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SecretEnvVar', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SecretEnvVar(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SecretEnvVar.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SecretEnvVar(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SecretRef', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SecretRef(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SecretRef.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SecretRef(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Segment', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Segment(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Segment.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Segment(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ServiceAccountSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ServiceAccountSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ServiceAccountSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ServiceAccountSpec(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SharePointSources', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SharePointSources(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SharePointSources.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SharePointSources(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SharePointSourcesSharePointSource', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1SharePointSourcesSharePointSource(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SharePointSourcesSharePointSource.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SharePointSourcesSharePointSource(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ShieldedVmConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ShieldedVmConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ShieldedVmConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ShieldedVmConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SlackSource', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SlackSource(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SlackSource.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SlackSource(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SlackSourceSlackChannels', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SlackSourceSlackChannels(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SlackSourceSlackChannels.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SlackSourceSlackChannels(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SmoothGradConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SmoothGradConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SmoothGradConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SmoothGradConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SpecialistPool', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SpecialistPool(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SpecialistPool.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SpecialistPool(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SpeculativeDecodingSpec', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SpeculativeDecodingSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SpeculativeDecodingSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SpeculativeDecodingSpec(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation( + od, + ); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SpeechConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SpeechConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SpeechConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SpeechConfig(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StartNotebookRuntimeRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1StartNotebookRuntimeRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StartNotebookRuntimeRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StartNotebookRuntimeRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StopNotebookRuntimeRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1StopNotebookRuntimeRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StopNotebookRuntimeRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StopNotebookRuntimeRequest(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1StopTrialRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1StopTrialRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1StopTrialRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StopTrialRequest(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1StratifiedSplit', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1StratifiedSplit(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1StratifiedSplit.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StratifiedSplit(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StreamQueryReasoningEngineRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StreamRawPredictRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1StreamRawPredictRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1StreamRawPredictRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StreamRawPredictRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StreamingPredictRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1StreamingPredictRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1StreamingPredictRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StreamingPredictRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StreamingPredictResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1StreamingPredictResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1StreamingPredictResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StreamingPredictResponse(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StreamingReadFeatureValuesRequest(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1StringArray', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1StringArray(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1StringArray.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StringArray(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1StructFieldValue', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1StructFieldValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1StructFieldValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StructFieldValue(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1StructValue', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1StructValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1StructValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StructValue(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Study', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Study(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Study.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Study(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1StudySpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1StudySpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1StudySpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpec(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpecConvexAutomatedStoppingSpec(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpecDecayCurveAutomatedStoppingSpec( + od, + ); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpecMedianAutomatedStoppingSpec(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1StudySpecMetricSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1StudySpecMetricSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1StudySpecMetricSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpecMetricSpec(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpecMetricSpecSafetyMetricConfig(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpec', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1StudySpecParameterSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1StudySpecParameterSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpecParameterSpec(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpecParameterSpecCategoricalValueSpec( + od, + ); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpec( + od, + ); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecCategoricalValueCondition( + od, + ); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecDiscreteValueCondition( + od, + ); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpecParameterSpecConditionalParameterSpecIntValueCondition( + od, + ); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpecParameterSpecDiscreteValueSpec(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpecParameterSpecDoubleValueSpec(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1StudySpecStudyStoppingConfig', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1StudySpecStudyStoppingConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1StudySpecStudyStoppingConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudySpecStudyStoppingConfig(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1StudyTimeConstraint', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1StudyTimeConstraint(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1StudyTimeConstraint.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1StudyTimeConstraint(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SuggestTrialsRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SuggestTrialsRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SuggestTrialsRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SuggestTrialsRequest(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SummarizationHelpfulnessInput', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SummarizationHelpfulnessInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SummarizationHelpfulnessInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SummarizationHelpfulnessInput(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SummarizationHelpfulnessInstance', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1SummarizationHelpfulnessInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SummarizationHelpfulnessInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SummarizationHelpfulnessInstance(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SummarizationHelpfulnessResult', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SummarizationHelpfulnessResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SummarizationHelpfulnessResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SummarizationHelpfulnessResult(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SummarizationHelpfulnessSpec', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SummarizationHelpfulnessSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SummarizationHelpfulnessSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SummarizationHelpfulnessSpec(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SummarizationQualityInput', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SummarizationQualityInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SummarizationQualityInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SummarizationQualityInput(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SummarizationQualityInstance', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SummarizationQualityInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SummarizationQualityInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SummarizationQualityInstance(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SummarizationQualityResult', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SummarizationQualityResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SummarizationQualityResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SummarizationQualityResult(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SummarizationQualitySpec', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SummarizationQualitySpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SummarizationQualitySpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SummarizationQualitySpec(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SummarizationVerbosityInput', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SummarizationVerbosityInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SummarizationVerbosityInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SummarizationVerbosityInput(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SummarizationVerbosityInstance', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SummarizationVerbosityInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SummarizationVerbosityInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SummarizationVerbosityInstance(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SummarizationVerbosityResult', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SummarizationVerbosityResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SummarizationVerbosityResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SummarizationVerbosityResult(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SummarizationVerbositySpec', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SummarizationVerbositySpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SummarizationVerbositySpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SummarizationVerbositySpec(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SummaryMetrics', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SummaryMetrics(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SummaryMetrics.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SummaryMetrics(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SupervisedHyperParameters', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SupervisedHyperParameters(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SupervisedHyperParameters.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SupervisedHyperParameters(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SupervisedTuningDataStats', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SupervisedTuningDataStats(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SupervisedTuningDataStats.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SupervisedTuningDataStats(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistribution(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket( + od, + ); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SupervisedTuningSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SupervisedTuningSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SupervisedTuningSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SupervisedTuningSpec(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SyncFeatureViewRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SyncFeatureViewRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SyncFeatureViewRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SyncFeatureViewRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1SyncFeatureViewResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SyncFeatureViewResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SyncFeatureViewResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SyncFeatureViewResponse(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SyntheticExample', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SyntheticExample(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SyntheticExample.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SyntheticExample(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1SyntheticField', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1SyntheticField(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1SyntheticField.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1SyntheticField(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TFRecordDestination', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TFRecordDestination(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TFRecordDestination.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TFRecordDestination(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TaskDescriptionStrategy', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TaskDescriptionStrategy(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TaskDescriptionStrategy.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TaskDescriptionStrategy(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Tensor', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Tensor(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Tensor.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Tensor(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Tensorboard', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Tensorboard(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Tensorboard.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Tensorboard(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TensorboardBlob', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TensorboardBlob(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TensorboardBlob.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TensorboardBlob(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TensorboardBlobSequence', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TensorboardBlobSequence(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TensorboardBlobSequence.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TensorboardBlobSequence(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TensorboardExperiment', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TensorboardExperiment(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TensorboardExperiment.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TensorboardExperiment(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TensorboardRun', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TensorboardRun(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TensorboardRun.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TensorboardRun(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TensorboardTensor', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TensorboardTensor(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TensorboardTensor.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TensorboardTensor(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TensorboardTimeSeries', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TensorboardTimeSeries(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TensorboardTimeSeries.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TensorboardTimeSeries(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TensorboardTimeSeriesMetadata', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TensorboardTimeSeriesMetadata.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TensorboardTimeSeriesMetadata(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ThresholdConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ThresholdConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ThresholdConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ThresholdConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TimeSeriesData', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TimeSeriesData(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TimeSeriesData.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TimeSeriesData(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TimeSeriesDataPoint', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TimeSeriesDataPoint(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TimeSeriesDataPoint.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TimeSeriesDataPoint(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TimestampSplit', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TimestampSplit(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TimestampSplit.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TimestampSplit(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TokensInfo', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TokensInfo(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TokensInfo.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TokensInfo(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Tool', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Tool(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Tool.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Tool(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ToolCall', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolCall(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ToolCall.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolCall(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ToolCallValidInput', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolCallValidInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ToolCallValidInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolCallValidInput(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ToolCallValidInstance', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolCallValidInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ToolCallValidInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolCallValidInstance(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ToolCallValidMetricValue', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolCallValidMetricValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ToolCallValidMetricValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolCallValidMetricValue(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ToolCallValidResults', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolCallValidResults(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ToolCallValidResults.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolCallValidResults(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ToolCallValidSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolCallValidSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ToolCallValidSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolCallValidSpec(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ToolCodeExecution', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolCodeExecution(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ToolCodeExecution.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolCodeExecution(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ToolConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ToolConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ToolGoogleSearch', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolGoogleSearch(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ToolGoogleSearch.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolGoogleSearch(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ToolNameMatchInput', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolNameMatchInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ToolNameMatchInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolNameMatchInput(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ToolNameMatchInstance', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolNameMatchInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ToolNameMatchInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolNameMatchInstance(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ToolNameMatchMetricValue', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolNameMatchMetricValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ToolNameMatchMetricValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolNameMatchMetricValue(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ToolNameMatchResults', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolNameMatchResults(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ToolNameMatchResults.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolNameMatchResults(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1ToolNameMatchSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolNameMatchSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ToolNameMatchSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolNameMatchSpec(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ToolParameterKVMatchInput', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolParameterKVMatchInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ToolParameterKVMatchInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolParameterKVMatchInput(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ToolParameterKVMatchInstance', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolParameterKVMatchInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ToolParameterKVMatchInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolParameterKVMatchInstance(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolParameterKVMatchMetricValue(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ToolParameterKVMatchResults', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolParameterKVMatchResults(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ToolParameterKVMatchResults.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolParameterKVMatchResults(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ToolParameterKVMatchSpec', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolParameterKVMatchSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1ToolParameterKVMatchSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolParameterKVMatchSpec(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ToolParameterKeyMatchInput', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolParameterKeyMatchInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ToolParameterKeyMatchInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolParameterKeyMatchInput(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ToolParameterKeyMatchInstance', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolParameterKeyMatchInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ToolParameterKeyMatchInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolParameterKeyMatchInstance(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ToolParameterKeyMatchResults', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolParameterKeyMatchResults(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ToolParameterKeyMatchResults.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolParameterKeyMatchResults(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1ToolParameterKeyMatchSpec', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1ToolParameterKeyMatchSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1ToolParameterKeyMatchSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1ToolParameterKeyMatchSpec(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TrainingConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrainingConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TrainingConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrainingConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TrainingPipeline', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrainingPipeline(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TrainingPipeline.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrainingPipeline(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Trajectory', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Trajectory(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Trajectory.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Trajectory(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryExactMatchInput', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryExactMatchInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryExactMatchInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryExactMatchInput(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryExactMatchInstance', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryExactMatchInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryExactMatchInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryExactMatchInstance(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryExactMatchMetricValue(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryExactMatchResults', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryExactMatchResults(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryExactMatchResults.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryExactMatchResults(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryExactMatchSpec', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryExactMatchSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TrajectoryExactMatchSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryExactMatchSpec(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryInOrderMatchInput', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryInOrderMatchInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryInOrderMatchInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryInOrderMatchInput(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryInOrderMatchInstance(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryInOrderMatchResults', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryInOrderMatchResults(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryInOrderMatchResults.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryInOrderMatchResults(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryInOrderMatchSpec(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryPrecisionInput', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryPrecisionInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TrajectoryPrecisionInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryPrecisionInput(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryPrecisionInstance', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryPrecisionInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryPrecisionInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryPrecisionInstance(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryPrecisionMetricValue(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryPrecisionResults', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryPrecisionResults(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryPrecisionResults.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryPrecisionResults(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryPrecisionSpec', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryPrecisionSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TrajectoryPrecisionSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryPrecisionSpec(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TrajectoryRecallInput', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryRecallInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TrajectoryRecallInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryRecallInput(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryRecallInstance', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryRecallInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TrajectoryRecallInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryRecallInstance(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryRecallMetricValue', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryRecallMetricValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectoryRecallMetricValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryRecallMetricValue(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectoryRecallResults', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryRecallResults(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TrajectoryRecallResults.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryRecallResults(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TrajectoryRecallSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectoryRecallSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TrajectoryRecallSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectoryRecallSpec(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectorySingleToolUseInput', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectorySingleToolUseInput(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectorySingleToolUseInput.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectorySingleToolUseInput(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectorySingleToolUseInstance', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectorySingleToolUseInstance(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectorySingleToolUseInstance.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectorySingleToolUseInstance(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectorySingleToolUseResults', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectorySingleToolUseResults(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectorySingleToolUseResults.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectorySingleToolUseResults(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1TrajectorySingleToolUseSpec', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrajectorySingleToolUseSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1TrajectorySingleToolUseSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrajectorySingleToolUseSpec(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Trial', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Trial(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Trial.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Trial(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TrialContext', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrialContext(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TrialContext.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrialContext(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TrialParameter', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TrialParameter(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TrialParameter.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TrialParameter(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TunedModel', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TunedModel(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TunedModel.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TunedModel(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TunedModelCheckpoint', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TunedModelCheckpoint(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TunedModelCheckpoint.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TunedModelCheckpoint(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TunedModelRef', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TunedModelRef(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TunedModelRef.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TunedModelRef(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TuningDataStats', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TuningDataStats(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TuningDataStats.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TuningDataStats(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1TuningJob', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1TuningJob(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1TuningJob.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1TuningJob(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1UndeployIndexRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1UndeployIndexRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1UndeployIndexRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UndeployIndexRequest(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1UndeployModelRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1UndeployModelRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1UndeployModelRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UndeployModelRequest(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1UnmanagedContainerModel', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1UnmanagedContainerModel(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1UnmanagedContainerModel.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UnmanagedContainerModel(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1UpdateExplanationDatasetRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1UpdateExplanationDatasetRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1UpdateExplanationDatasetRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UpdateExplanationDatasetRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1UploadModelRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1UploadModelRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1UploadModelRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UploadModelRequest(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1UploadRagFileConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1UploadRagFileConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1UploadRagFileConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UploadRagFileConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1UploadRagFileRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1UploadRagFileRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1UploadRagFileRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UploadRagFileRequest(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1UploadRagFileResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1UploadRagFileResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1UploadRagFileResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UploadRagFileResponse(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1UpsertDatapointsRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1UpsertDatapointsRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1UpsertDatapointsRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UpsertDatapointsRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1UpsertDatapointsResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1UpsertDatapointsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1UpsertDatapointsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UpsertDatapointsResponse(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1UrlContext', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1UrlContext(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1UrlContext.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UrlContext(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1UrlContextMetadata', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1UrlContextMetadata(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1UrlContextMetadata.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UrlContextMetadata(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1UrlMetadata', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1UrlMetadata(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1UrlMetadata.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UrlMetadata(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1UserActionReference', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1UserActionReference(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1UserActionReference.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1UserActionReference(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1Value', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1Value(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1Value.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1Value(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1VertexAISearch', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1VertexAISearch(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1VertexAISearch.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1VertexAISearch(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1VertexAISearchDataStoreSpec', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1VertexAISearchDataStoreSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1VertexAISearchDataStoreSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1VertexAISearchDataStoreSpec(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1VertexAiSearchConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1VertexAiSearchConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1VertexAiSearchConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1VertexAiSearchConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1VertexRagStore', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1VertexRagStore(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1VertexRagStore.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1VertexRagStore(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1VertexRagStoreRagResource', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1VertexRagStoreRagResource(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1VertexRagStoreRagResource.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1VertexRagStoreRagResource(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1VideoMetadata', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1VideoMetadata(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1VideoMetadata.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1VideoMetadata(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1VoiceConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1VoiceConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1VoiceConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1VoiceConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudAiplatformV1WorkerPoolSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1WorkerPoolSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1WorkerPoolSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1WorkerPoolSpec(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1WriteFeatureValuesPayload', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1WriteFeatureValuesPayload(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1WriteFeatureValuesPayload.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1WriteFeatureValuesPayload(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1WriteFeatureValuesRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1WriteFeatureValuesRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1WriteFeatureValuesRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1WriteFeatureValuesRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1WriteFeatureValuesResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1WriteFeatureValuesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1WriteFeatureValuesResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1WriteFeatureValuesResponse(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1WriteTensorboardRunDataRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1WriteTensorboardRunDataRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1WriteTensorboardRunDataRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1WriteTensorboardRunDataRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudAiplatformV1WriteTensorboardRunDataResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1WriteTensorboardRunDataResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudAiplatformV1WriteTensorboardRunDataResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1WriteTensorboardRunDataResponse(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudAiplatformV1XraiAttribution', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudAiplatformV1XraiAttribution(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudAiplatformV1XraiAttribution.fromJson( + oJson as core.Map, + ); + checkGoogleCloudAiplatformV1XraiAttribution(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudLocationListLocationsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudLocationListLocationsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudLocationListLocationsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudLocationListLocationsResponse(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudLocationLocation', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudLocationLocation(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudLocationLocation.fromJson( + oJson as core.Map, + ); + checkGoogleCloudLocationLocation(od); + }); + }); + + unittest.group('obj-schema-GoogleIamV1Binding', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleIamV1Binding(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleIamV1Binding.fromJson( + oJson as core.Map, + ); + checkGoogleIamV1Binding(od); + }); + }); + + unittest.group('obj-schema-GoogleIamV1Policy', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleIamV1Policy(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleIamV1Policy.fromJson( + oJson as core.Map, + ); + checkGoogleIamV1Policy(od); + }); + }); + + unittest.group('obj-schema-GoogleIamV1SetIamPolicyRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleIamV1SetIamPolicyRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleIamV1SetIamPolicyRequest.fromJson( + oJson as core.Map, + ); + checkGoogleIamV1SetIamPolicyRequest(od); + }); + }); + + unittest.group('obj-schema-GoogleIamV1TestIamPermissionsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleIamV1TestIamPermissionsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleIamV1TestIamPermissionsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleIamV1TestIamPermissionsResponse(od); + }); + }); + + unittest.group('obj-schema-GoogleLongrunningListOperationsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleLongrunningListOperationsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleLongrunningListOperationsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleLongrunningListOperationsResponse(od); + }); + }); + + unittest.group('obj-schema-GoogleLongrunningOperation', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleLongrunningOperation(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleLongrunningOperation.fromJson( + oJson as core.Map, + ); + checkGoogleLongrunningOperation(od); + }); + }); + + unittest.group('obj-schema-GoogleProtobufEmpty', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleProtobufEmpty(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleProtobufEmpty.fromJson( + oJson as core.Map, + ); + checkGoogleProtobufEmpty(od); + }); + }); + + unittest.group('obj-schema-GoogleRpcStatus', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleRpcStatus(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleRpcStatus.fromJson( + oJson as core.Map, + ); + checkGoogleRpcStatus(od); + }); + }); + + unittest.group('obj-schema-GoogleTypeDate', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleTypeDate(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleTypeDate.fromJson( + oJson as core.Map, + ); + checkGoogleTypeDate(od); + }); + }); + + unittest.group('obj-schema-GoogleTypeExpr', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleTypeExpr(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleTypeExpr.fromJson( + oJson as core.Map, + ); + checkGoogleTypeExpr(od); + }); + }); + + unittest.group('obj-schema-GoogleTypeInterval', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleTypeInterval(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleTypeInterval.fromJson( + oJson as core.Map, + ); + checkGoogleTypeInterval(od); + }); + }); + + unittest.group('obj-schema-GoogleTypeLatLng', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleTypeLatLng(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleTypeLatLng.fromJson( + oJson as core.Map, + ); + checkGoogleTypeLatLng(od); + }); + }); + + unittest.group('obj-schema-GoogleTypeMoney', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleTypeMoney(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleTypeMoney.fromJson( + oJson as core.Map, + ); + checkGoogleTypeMoney(od); + }); + }); + + unittest.group('resource-BatchPredictionJobsResource', () { + unittest.test('method--create', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).batchPredictionJobs; + final arg_request = buildGoogleCloudAiplatformV1BatchPredictionJob(); + final arg_parent = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1BatchPredictionJob.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1BatchPredictionJob(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 22), + unittest.equals('v1/batchPredictionJobs'), + ); + pathOffset += 22; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['parent']!.first, + unittest.equals(arg_parent), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1BatchPredictionJob(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.create( + arg_request, + parent: arg_parent, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1BatchPredictionJob( + response as api.GoogleCloudAiplatformV1BatchPredictionJob, + ); + }); + + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).batchPredictionJobs; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1BatchPredictionJob(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleCloudAiplatformV1BatchPredictionJob( + response as api.GoogleCloudAiplatformV1BatchPredictionJob, + ); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).batchPredictionJobs; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_parent = 'foo'; + final arg_readMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 22), + unittest.equals('v1/batchPredictionJobs'), + ); + pathOffset += 22; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['parent']!.first, + unittest.equals(arg_parent), + ); + unittest.expect( + queryMap['readMask']!.first, + unittest.equals(arg_readMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1ListBatchPredictionJobsResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + parent: arg_parent, + readMask: arg_readMask, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1ListBatchPredictionJobsResponse( + response as api.GoogleCloudAiplatformV1ListBatchPredictionJobsResponse, + ); + }); + }); + + unittest.group('resource-DatasetsResource', () { + unittest.test('method--create', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).datasets; + final arg_request = buildGoogleCloudAiplatformV1Dataset(); + final arg_parent = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1Dataset.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1Dataset(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('v1/datasets'), + ); + pathOffset += 11; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['parent']!.first, + unittest.equals(arg_parent), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.create( + arg_request, + parent: arg_parent, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).datasets; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).datasets; + final arg_name = 'foo'; + final arg_readMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['readMask']!.first, + unittest.equals(arg_readMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1Dataset(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get( + arg_name, + readMask: arg_readMask, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1Dataset( + response as api.GoogleCloudAiplatformV1Dataset, + ); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).datasets; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_parent = 'foo'; + final arg_readMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('v1/datasets'), + ); + pathOffset += 11; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['parent']!.first, + unittest.equals(arg_parent), + ); + unittest.expect( + queryMap['readMask']!.first, + unittest.equals(arg_readMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1ListDatasetsResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + parent: arg_parent, + readMask: arg_readMask, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1ListDatasetsResponse( + response as api.GoogleCloudAiplatformV1ListDatasetsResponse, + ); + }); + + unittest.test('method--patch', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).datasets; + final arg_request = buildGoogleCloudAiplatformV1Dataset(); + final arg_name = 'foo'; + final arg_updateMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1Dataset.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1Dataset(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1Dataset(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.patch( + arg_request, + arg_name, + updateMask: arg_updateMask, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1Dataset( + response as api.GoogleCloudAiplatformV1Dataset, + ); + }); + }); + + unittest.group('resource-DatasetsDatasetVersionsResource', () { + unittest.test('method--create', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).datasets.datasetVersions; + final arg_request = buildGoogleCloudAiplatformV1DatasetVersion(); + final arg_parent = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1DatasetVersion.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1DatasetVersion(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.create( + arg_request, + arg_parent, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); - checkGoogleCloudAiplatformV1TrajectoryRecallInput(od); }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryRecallInstance', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryRecallInstance(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TrajectoryRecallInstance.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TrajectoryRecallInstance(od); - }); - }, - ); + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).datasets.datasetVersions; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryRecallMetricValue', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryRecallMetricValue(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1TrajectoryRecallMetricValue.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TrajectoryRecallMetricValue(od); - }); - }, - ); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectoryRecallResults', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryRecallResults(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TrajectoryRecallResults.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TrajectoryRecallResults(od); - }); - }, - ); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1TrajectoryRecallSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectoryRecallSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TrajectoryRecallSpec.fromJson( - oJson as core.Map, + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); - checkGoogleCloudAiplatformV1TrajectoryRecallSpec(od); }); - }); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectorySingleToolUseInput', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectorySingleToolUseInput(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1TrajectorySingleToolUseInput.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TrajectorySingleToolUseInput(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectorySingleToolUseInstance', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectorySingleToolUseInstance(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1TrajectorySingleToolUseInstance.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TrajectorySingleToolUseInstance(od); - }); - }, - ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue(od); - }); - }, - ); + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).datasets.datasetVersions; + final arg_name = 'foo'; + final arg_readMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectorySingleToolUseResults', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectorySingleToolUseResults(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1TrajectorySingleToolUseResults.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TrajectorySingleToolUseResults(od); - }); - }, - ); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1TrajectorySingleToolUseSpec', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrajectorySingleToolUseSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1TrajectorySingleToolUseSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TrajectorySingleToolUseSpec(od); - }); - }, - ); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['readMask']!.first, + unittest.equals(arg_readMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1Trial', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Trial(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Trial.fromJson( - oJson as core.Map, + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1DatasetVersion(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, ); - checkGoogleCloudAiplatformV1Trial(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1TrialContext', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrialContext(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TrialContext.fromJson( - oJson as core.Map, + final response = await res.get( + arg_name, + readMask: arg_readMask, + $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1TrialContext(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1TrialParameter', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TrialParameter(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TrialParameter.fromJson( - oJson as core.Map, + checkGoogleCloudAiplatformV1DatasetVersion( + response as api.GoogleCloudAiplatformV1DatasetVersion, ); - checkGoogleCloudAiplatformV1TrialParameter(od); }); - }); - unittest.group('obj-schema-GoogleCloudAiplatformV1TunedModel', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TunedModel(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TunedModel.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TunedModel(od); - }); - }); + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).datasets.datasetVersions; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_readMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - unittest.group('obj-schema-GoogleCloudAiplatformV1TunedModelCheckpoint', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TunedModelCheckpoint(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TunedModelCheckpoint.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TunedModelCheckpoint(od); - }); - }); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - unittest.group('obj-schema-GoogleCloudAiplatformV1TunedModelRef', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TunedModelRef(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TunedModelRef.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1TunedModelRef(od); - }); - }); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['readMask']!.first, + unittest.equals(arg_readMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1TuningDataStats', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TuningDataStats(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TuningDataStats.fromJson( - oJson as core.Map, + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1ListDatasetVersionsResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + readMask: arg_readMask, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1ListDatasetVersionsResponse( + response as api.GoogleCloudAiplatformV1ListDatasetVersionsResponse, ); - checkGoogleCloudAiplatformV1TuningDataStats(od); }); - }); - unittest.group('obj-schema-GoogleCloudAiplatformV1TuningJob', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1TuningJob(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1TuningJob.fromJson( - oJson as core.Map, + unittest.test('method--patch', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).datasets.datasetVersions; + final arg_request = buildGoogleCloudAiplatformV1DatasetVersion(); + final arg_name = 'foo'; + final arg_updateMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1DatasetVersion.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1DatasetVersion(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1DatasetVersion(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.patch( + arg_request, + arg_name, + updateMask: arg_updateMask, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1DatasetVersion( + response as api.GoogleCloudAiplatformV1DatasetVersion, ); - checkGoogleCloudAiplatformV1TuningJob(od); }); - }); - unittest.group('obj-schema-GoogleCloudAiplatformV1UndeployIndexRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1UndeployIndexRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1UndeployIndexRequest.fromJson( - oJson as core.Map, + unittest.test('method--restore', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).datasets.datasetVersions; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, ); - checkGoogleCloudAiplatformV1UndeployIndexRequest(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1UndeployModelRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1UndeployModelRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1UndeployModelRequest.fromJson( - oJson as core.Map, + final response = await res.restore(arg_name, $fields: arg_$fields); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); - checkGoogleCloudAiplatformV1UndeployModelRequest(od); }); }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1UnmanagedContainerModel', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1UnmanagedContainerModel(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1UnmanagedContainerModel.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1UnmanagedContainerModel(od); - }); - }, - ); + unittest.group('resource-EndpointsResource', () { + unittest.test('method--computeTokens', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).endpoints; + final arg_request = buildGoogleCloudAiplatformV1ComputeTokensRequest(); + final arg_endpoint = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1ComputeTokensRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1ComputeTokensRequest(obj); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest(od); - }); - }, - ); + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1UpdateExplanationDatasetRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1UpdateExplanationDatasetRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1UpdateExplanationDatasetRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1UpdateExplanationDatasetRequest(od); - }); - }, - ); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest(od); - }); - }, - ); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1UploadModelRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1UploadModelRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1UploadModelRequest.fromJson( - oJson as core.Map, + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1ComputeTokensResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, ); - checkGoogleCloudAiplatformV1UploadModelRequest(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1UploadRagFileConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1UploadRagFileConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1UploadRagFileConfig.fromJson( - oJson as core.Map, + final response = await res.computeTokens( + arg_request, + arg_endpoint, + $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1UploadRagFileConfig(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1UploadRagFileRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1UploadRagFileRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1UploadRagFileRequest.fromJson( - oJson as core.Map, + checkGoogleCloudAiplatformV1ComputeTokensResponse( + response as api.GoogleCloudAiplatformV1ComputeTokensResponse, ); - checkGoogleCloudAiplatformV1UploadRagFileRequest(od); }); - }); - unittest.group('obj-schema-GoogleCloudAiplatformV1UploadRagFileResponse', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1UploadRagFileResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1UploadRagFileResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1UploadRagFileResponse(od); - }); - }); + unittest.test('method--countTokens', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).endpoints; + final arg_request = buildGoogleCloudAiplatformV1CountTokensRequest(); + final arg_endpoint = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1CountTokensRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1CountTokensRequest(obj); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1UpsertDatapointsRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1UpsertDatapointsRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1UpsertDatapointsRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1UpsertDatapointsRequest(od); - }); - }, - ); + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1UpsertDatapointsResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1UpsertDatapointsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1UpsertDatapointsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1UpsertDatapointsResponse(od); - }); - }, - ); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - unittest.group('obj-schema-GoogleCloudAiplatformV1UrlContext', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1UrlContext(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1UrlContext.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1UrlContext(od); - }); - }); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1UrlContextMetadata', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1UrlContextMetadata(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1UrlContextMetadata.fromJson( - oJson as core.Map, + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1CountTokensResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, ); - checkGoogleCloudAiplatformV1UrlContextMetadata(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1UrlMetadata', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1UrlMetadata(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1UrlMetadata.fromJson( - oJson as core.Map, + final response = await res.countTokens( + arg_request, + arg_endpoint, + $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1UrlMetadata(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudAiplatformV1UserActionReference', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1UserActionReference(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1UserActionReference.fromJson( - oJson as core.Map, + checkGoogleCloudAiplatformV1CountTokensResponse( + response as api.GoogleCloudAiplatformV1CountTokensResponse, ); - checkGoogleCloudAiplatformV1UserActionReference(od); }); - }); - unittest.group('obj-schema-GoogleCloudAiplatformV1Value', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1Value(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1Value.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1Value(od); - }); - }); + unittest.test('method--fetchPredictOperation', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).endpoints; + final arg_request = + buildGoogleCloudAiplatformV1FetchPredictOperationRequest(); + final arg_endpoint = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudAiplatformV1FetchPredictOperationRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1FetchPredictOperationRequest(obj); - unittest.group('obj-schema-GoogleCloudAiplatformV1VertexAISearch', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1VertexAISearch(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1VertexAISearch.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1VertexAISearch(od); - }); - }); + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1VertexAISearchDataStoreSpec', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1VertexAISearchDataStoreSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1VertexAISearchDataStoreSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1VertexAISearchDataStoreSpec(od); - }); - }, - ); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - unittest.group('obj-schema-GoogleCloudAiplatformV1VertexAiSearchConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1VertexAiSearchConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1VertexAiSearchConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1VertexAiSearchConfig(od); - }); - }); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - unittest.group('obj-schema-GoogleCloudAiplatformV1VertexRagStore', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1VertexRagStore(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1VertexRagStore.fromJson( - oJson as core.Map, + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.fetchPredictOperation( + arg_request, + arg_endpoint, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); - checkGoogleCloudAiplatformV1VertexRagStore(od); }); - }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1VertexRagStoreRagResource', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1VertexRagStoreRagResource(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1VertexRagStoreRagResource.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1VertexRagStoreRagResource(od); - }); - }, - ); + unittest.test('method--generateContent', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).endpoints; + final arg_request = buildGoogleCloudAiplatformV1GenerateContentRequest(); + final arg_model = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudAiplatformV1GenerateContentRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1GenerateContentRequest(obj); - unittest.group('obj-schema-GoogleCloudAiplatformV1VideoMetadata', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1VideoMetadata(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1VideoMetadata.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1VideoMetadata(od); - }); - }); + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - unittest.group('obj-schema-GoogleCloudAiplatformV1VoiceConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1VoiceConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1VoiceConfig.fromJson( - oJson as core.Map, + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1GenerateContentResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.generateContent( + arg_request, + arg_model, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1GenerateContentResponse( + response as api.GoogleCloudAiplatformV1GenerateContentResponse, ); - checkGoogleCloudAiplatformV1VoiceConfig(od); }); - }); - unittest.group('obj-schema-GoogleCloudAiplatformV1WorkerPoolSpec', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1WorkerPoolSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1WorkerPoolSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1WorkerPoolSpec(od); - }); - }); + unittest.test('method--predict', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).endpoints; + final arg_request = buildGoogleCloudAiplatformV1PredictRequest(); + final arg_endpoint = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1PredictRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1PredictRequest(obj); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1WriteFeatureValuesPayload', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1WriteFeatureValuesPayload(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1WriteFeatureValuesPayload.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1WriteFeatureValuesPayload(od); - }); - }, - ); + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1WriteFeatureValuesRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1WriteFeatureValuesRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1WriteFeatureValuesRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1WriteFeatureValuesRequest(od); - }); - }, - ); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1WriteFeatureValuesResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1WriteFeatureValuesResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1WriteFeatureValuesResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1WriteFeatureValuesResponse(od); - }); - }, - ); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest(od); - }); - }, - ); + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1PredictResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.predict( + arg_request, + arg_endpoint, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1PredictResponse( + response as api.GoogleCloudAiplatformV1PredictResponse, + ); + }); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1WriteTensorboardExperimentDataResponse(od); - }); - }, - ); + unittest.test('method--predictLongRunning', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).endpoints; + final arg_request = + buildGoogleCloudAiplatformV1PredictLongRunningRequest(); + final arg_endpoint = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudAiplatformV1PredictLongRunningRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1PredictLongRunningRequest(obj); - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1WriteTensorboardRunDataRequest', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1WriteTensorboardRunDataRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1WriteTensorboardRunDataRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1WriteTensorboardRunDataRequest(od); - }); - }, - ); + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - unittest.group( - 'obj-schema-GoogleCloudAiplatformV1WriteTensorboardRunDataResponse', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1WriteTensorboardRunDataResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudAiplatformV1WriteTensorboardRunDataResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1WriteTensorboardRunDataResponse(od); - }); - }, - ); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - unittest.group('obj-schema-GoogleCloudAiplatformV1XraiAttribution', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudAiplatformV1XraiAttribution(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudAiplatformV1XraiAttribution.fromJson( - oJson as core.Map, - ); - checkGoogleCloudAiplatformV1XraiAttribution(od); - }); - }); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - unittest.group('obj-schema-GoogleCloudLocationListLocationsResponse', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudLocationListLocationsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudLocationListLocationsResponse.fromJson( - oJson as core.Map, + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, ); - checkGoogleCloudLocationListLocationsResponse(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudLocationLocation', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudLocationLocation(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudLocationLocation.fromJson( - oJson as core.Map, + final response = await res.predictLongRunning( + arg_request, + arg_endpoint, + $fields: arg_$fields, ); - checkGoogleCloudLocationLocation(od); - }); - }); - - unittest.group('obj-schema-GoogleIamV1Binding', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleIamV1Binding(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleIamV1Binding.fromJson( - oJson as core.Map, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); - checkGoogleIamV1Binding(od); }); - }); - unittest.group('obj-schema-GoogleIamV1Policy', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleIamV1Policy(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleIamV1Policy.fromJson( - oJson as core.Map, - ); - checkGoogleIamV1Policy(od); - }); - }); + unittest.test('method--streamGenerateContent', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).endpoints; + final arg_request = buildGoogleCloudAiplatformV1GenerateContentRequest(); + final arg_model = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudAiplatformV1GenerateContentRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1GenerateContentRequest(obj); - unittest.group('obj-schema-GoogleIamV1SetIamPolicyRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleIamV1SetIamPolicyRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleIamV1SetIamPolicyRequest.fromJson( - oJson as core.Map, - ); - checkGoogleIamV1SetIamPolicyRequest(od); - }); - }); + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - unittest.group('obj-schema-GoogleIamV1TestIamPermissionsResponse', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleIamV1TestIamPermissionsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleIamV1TestIamPermissionsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleIamV1TestIamPermissionsResponse(od); - }); - }); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - unittest.group('obj-schema-GoogleLongrunningListOperationsResponse', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleLongrunningListOperationsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleLongrunningListOperationsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleLongrunningListOperationsResponse(od); - }); - }); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - unittest.group('obj-schema-GoogleLongrunningOperation', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleLongrunningOperation(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleLongrunningOperation.fromJson( - oJson as core.Map, + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1GenerateContentResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, ); - checkGoogleLongrunningOperation(od); - }); - }); - - unittest.group('obj-schema-GoogleProtobufEmpty', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleProtobufEmpty(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleProtobufEmpty.fromJson( - oJson as core.Map, + final response = await res.streamGenerateContent( + arg_request, + arg_model, + $fields: arg_$fields, ); - checkGoogleProtobufEmpty(od); - }); - }); - - unittest.group('obj-schema-GoogleRpcStatus', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleRpcStatus(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleRpcStatus.fromJson( - oJson as core.Map, + checkGoogleCloudAiplatformV1GenerateContentResponse( + response as api.GoogleCloudAiplatformV1GenerateContentResponse, ); - checkGoogleRpcStatus(od); }); }); - unittest.group('obj-schema-GoogleTypeDate', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleTypeDate(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleTypeDate.fromJson( - oJson as core.Map, - ); - checkGoogleTypeDate(od); - }); - }); + unittest.group('resource-EndpointsChatResource', () { + unittest.test('method--completions', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).endpoints.chat; + final arg_request = buildGoogleApiHttpBody(); + final arg_endpoint = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleApiHttpBody.fromJson( + json as core.Map, + ); + checkGoogleApiHttpBody(obj); - unittest.group('obj-schema-GoogleTypeExpr', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleTypeExpr(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleTypeExpr.fromJson( - oJson as core.Map, - ); - checkGoogleTypeExpr(od); - }); - }); + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - unittest.group('obj-schema-GoogleTypeInterval', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleTypeInterval(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleTypeInterval.fromJson( - oJson as core.Map, - ); - checkGoogleTypeInterval(od); - }); - }); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - unittest.group('obj-schema-GoogleTypeLatLng', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleTypeLatLng(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleTypeLatLng.fromJson( - oJson as core.Map, - ); - checkGoogleTypeLatLng(od); - }); - }); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - unittest.group('obj-schema-GoogleTypeMoney', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleTypeMoney(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleTypeMoney.fromJson( - oJson as core.Map, + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleApiHttpBody()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, ); - checkGoogleTypeMoney(od); + final response = await res.completions( + arg_request, + arg_endpoint, + $fields: arg_$fields, + ); + checkGoogleApiHttpBody(response as api.GoogleApiHttpBody); }); }); - unittest.group('resource-BatchPredictionJobsResource', () { - unittest.test('method--create', () async { + unittest.group('resource-MediaResource', () { + unittest.test('method--upload', () async { + // TODO: Implement tests for media upload; + // TODO: Implement tests for media download; + final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).batchPredictionJobs; - final arg_request = buildGoogleCloudAiplatformV1BatchPredictionJob(); + final res = api.AiplatformApi(mock).media; + final arg_request = buildGoogleCloudAiplatformV1UploadRagFileRequest(); final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1BatchPredictionJob.fromJson( + final obj = api.GoogleCloudAiplatformV1UploadRagFileRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1BatchPredictionJob(obj); + checkGoogleCloudAiplatformV1UploadRagFileRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -42290,10 +46622,11 @@ void main() { ); pathOffset += 1; unittest.expect( - path.substring(pathOffset, pathOffset + 22), - unittest.equals('v1/batchPredictionJobs'), + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), ); - pathOffset += 22; + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; final query = req.url.query; var queryOffset = 0; @@ -42310,10 +46643,6 @@ void main() { ); } } - unittest.expect( - queryMap['parent']!.first, - unittest.equals(arg_parent), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -42321,25 +46650,27 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1BatchPredictionJob(), + buildGoogleCloudAiplatformV1UploadRagFileResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.create( + final response = await res.upload( arg_request, - parent: arg_parent, + arg_parent, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1BatchPredictionJob( - response as api.GoogleCloudAiplatformV1BatchPredictionJob, + checkGoogleCloudAiplatformV1UploadRagFileResponse( + response as api.GoogleCloudAiplatformV1UploadRagFileResponse, ); }); + }); - unittest.test('method--get', () async { + unittest.group('resource-ProjectsResource', () { + unittest.test('method--getCacheConfig', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).batchPredictionJobs; + final res = api.AiplatformApi(mock).projects; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -42382,29 +46713,31 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1BatchPredictionJob(), + buildGoogleCloudAiplatformV1CacheConfig(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleCloudAiplatformV1BatchPredictionJob( - response as api.GoogleCloudAiplatformV1BatchPredictionJob, + final response = await res.getCacheConfig(arg_name, $fields: arg_$fields); + checkGoogleCloudAiplatformV1CacheConfig( + response as api.GoogleCloudAiplatformV1CacheConfig, ); }); - unittest.test('method--list', () async { + unittest.test('method--updateCacheConfig', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).batchPredictionJobs; - final arg_filter = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; - final arg_parent = 'foo'; - final arg_readMask = 'foo'; + final res = api.AiplatformApi(mock).projects; + final arg_request = buildGoogleCloudAiplatformV1CacheConfig(); + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1CacheConfig.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1CacheConfig(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -42415,10 +46748,11 @@ void main() { ); pathOffset += 1; unittest.expect( - path.substring(pathOffset, pathOffset + 22), - unittest.equals('v1/batchPredictionJobs'), + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), ); - pathOffset += 22; + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; final query = req.url.query; var queryOffset = 0; @@ -42435,66 +46769,41 @@ void main() { ); } } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['parent']!.first, - unittest.equals(arg_parent), - ); - unittest.expect( - queryMap['readMask']!.first, - unittest.equals(arg_readMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ListBatchPredictionJobsResponse(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.list( - filter: arg_filter, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - parent: arg_parent, - readMask: arg_readMask, + final response = await res.updateCacheConfig( + arg_request, + arg_name, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1ListBatchPredictionJobsResponse( - response as api.GoogleCloudAiplatformV1ListBatchPredictionJobsResponse, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); }); - unittest.group('resource-DatasetsResource', () { - unittest.test('method--create', () async { + unittest.group('resource-ProjectsLocationsResource', () { + unittest.test('method--augmentPrompt', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).datasets; - final arg_request = buildGoogleCloudAiplatformV1Dataset(); + final res = api.AiplatformApi(mock).projects.locations; + final arg_request = buildGoogleCloudAiplatformV1AugmentPromptRequest(); final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1Dataset.fromJson( + final obj = api.GoogleCloudAiplatformV1AugmentPromptRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1Dataset(obj); + checkGoogleCloudAiplatformV1AugmentPromptRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -42506,10 +46815,11 @@ void main() { ); pathOffset += 1; unittest.expect( - path.substring(pathOffset, pathOffset + 11), - unittest.equals('v1/datasets'), + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), ); - pathOffset += 11; + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; final query = req.url.query; var queryOffset = 0; @@ -42526,38 +46836,44 @@ void main() { ); } } - unittest.expect( - queryMap['parent']!.first, - unittest.equals(arg_parent), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1AugmentPromptResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.create( + final response = await res.augmentPrompt( arg_request, - parent: arg_parent, + arg_parent, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkGoogleCloudAiplatformV1AugmentPromptResponse( + response as api.GoogleCloudAiplatformV1AugmentPromptResponse, ); }); - unittest.test('method--delete', () async { + unittest.test('method--corroborateContent', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).datasets; - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations; + final arg_request = + buildGoogleCloudAiplatformV1CorroborateContentRequest(); + final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudAiplatformV1CorroborateContentRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1CorroborateContentRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -42595,25 +46911,36 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1CorroborateContentResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.delete(arg_name, $fields: arg_$fields); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + final response = await res.corroborateContent( + arg_request, + arg_parent, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1CorroborateContentResponse( + response as api.GoogleCloudAiplatformV1CorroborateContentResponse, ); }); - unittest.test('method--get', () async { + unittest.test('method--deploy', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).datasets; - final arg_name = 'foo'; - final arg_readMask = 'foo'; + final res = api.AiplatformApi(mock).projects.locations; + final arg_request = buildGoogleCloudAiplatformV1DeployRequest(); + final arg_destination = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1DeployRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1DeployRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -42645,45 +46972,41 @@ void main() { ); } } - unittest.expect( - queryMap['readMask']!.first, - unittest.equals(arg_readMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1Dataset(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get( - arg_name, - readMask: arg_readMask, + final response = await res.deploy( + arg_request, + arg_destination, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1Dataset( - response as api.GoogleCloudAiplatformV1Dataset, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--list', () async { + unittest.test('method--evaluateDataset', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).datasets; - final arg_filter = 'foo'; - final arg_orderBy = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; - final arg_parent = 'foo'; - final arg_readMask = 'foo'; + final res = api.AiplatformApi(mock).projects.locations; + final arg_request = buildGoogleCloudAiplatformV1EvaluateDatasetRequest(); + final arg_location = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudAiplatformV1EvaluateDatasetRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1EvaluateDatasetRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -42694,10 +47017,11 @@ void main() { ); pathOffset += 1; unittest.expect( - path.substring(pathOffset, pathOffset + 11), - unittest.equals('v1/datasets'), + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), ); - pathOffset += 11; + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; final query = req.url.query; var queryOffset = 0; @@ -42714,70 +47038,41 @@ void main() { ); } } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['parent']!.first, - unittest.equals(arg_parent), - ); - unittest.expect( - queryMap['readMask']!.first, - unittest.equals(arg_readMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ListDatasetsResponse(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.list( - filter: arg_filter, - orderBy: arg_orderBy, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - parent: arg_parent, - readMask: arg_readMask, + final response = await res.evaluateDataset( + arg_request, + arg_location, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1ListDatasetsResponse( - response as api.GoogleCloudAiplatformV1ListDatasetsResponse, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--patch', () async { + unittest.test('method--evaluateInstances', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).datasets; - final arg_request = buildGoogleCloudAiplatformV1Dataset(); - final arg_name = 'foo'; - final arg_updateMask = 'foo'; + final res = api.AiplatformApi(mock).projects.locations; + final arg_request = + buildGoogleCloudAiplatformV1EvaluateInstancesRequest(); + final arg_location = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1Dataset.fromJson( + final obj = api + .GoogleCloudAiplatformV1EvaluateInstancesRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1Dataset(obj); + checkGoogleCloudAiplatformV1EvaluateInstancesRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -42810,10 +47105,6 @@ void main() { ); } } - unittest.expect( - queryMap['updateMask']!.first, - unittest.equals(arg_updateMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -42821,37 +47112,36 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1Dataset(), + buildGoogleCloudAiplatformV1EvaluateInstancesResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.patch( + final response = await res.evaluateInstances( arg_request, - arg_name, - updateMask: arg_updateMask, + arg_location, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1Dataset( - response as api.GoogleCloudAiplatformV1Dataset, + checkGoogleCloudAiplatformV1EvaluateInstancesResponse( + response as api.GoogleCloudAiplatformV1EvaluateInstancesResponse, ); }); - }); - unittest.group('resource-DatasetsDatasetVersionsResource', () { - unittest.test('method--create', () async { + unittest.test('method--generateInstanceRubrics', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).datasets.datasetVersions; - final arg_request = buildGoogleCloudAiplatformV1DatasetVersion(); - final arg_parent = 'foo'; + final res = api.AiplatformApi(mock).projects.locations; + final arg_request = + buildGoogleCloudAiplatformV1GenerateInstanceRubricsRequest(); + final arg_location = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1DatasetVersion.fromJson( + final obj = api + .GoogleCloudAiplatformV1GenerateInstanceRubricsRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1DatasetVersion(obj); + checkGoogleCloudAiplatformV1GenerateInstanceRubricsRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -42890,28 +47180,38 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1GenerateInstanceRubricsResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.create( + final response = await res.generateInstanceRubrics( arg_request, - arg_parent, + arg_location, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkGoogleCloudAiplatformV1GenerateInstanceRubricsResponse( + response as api.GoogleCloudAiplatformV1GenerateInstanceRubricsResponse, ); }); - unittest.test('method--delete', () async { + unittest.test('method--generateSyntheticData', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).datasets.datasetVersions; - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations; + final arg_request = + buildGoogleCloudAiplatformV1GenerateSyntheticDataRequest(); + final arg_location = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudAiplatformV1GenerateSyntheticDataRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1GenerateSyntheticDataRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -42949,22 +47249,27 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1GenerateSyntheticDataResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.delete(arg_name, $fields: arg_$fields); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + final response = await res.generateSyntheticData( + arg_request, + arg_location, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1GenerateSyntheticDataResponse( + response as api.GoogleCloudAiplatformV1GenerateSyntheticDataResponse, ); }); unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).datasets.datasetVersions; + final res = api.AiplatformApi(mock).projects.locations; final arg_name = 'foo'; - final arg_readMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -42999,42 +47304,27 @@ void main() { ); } } - unittest.expect( - queryMap['readMask']!.first, - unittest.equals(arg_readMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1DatasetVersion(), - ); + final resp = convert.json.encode(buildGoogleCloudLocationLocation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get( - arg_name, - readMask: arg_readMask, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1DatasetVersion( - response as api.GoogleCloudAiplatformV1DatasetVersion, + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleCloudLocationLocation( + response as api.GoogleCloudLocationLocation, ); }); - unittest.test('method--list', () async { + unittest.test('method--getRagEngineConfig', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).datasets.datasetVersions; - final arg_parent = 'foo'; - final arg_filter = 'foo'; - final arg_orderBy = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; - final arg_readMask = 'foo'; + final res = api.AiplatformApi(mock).projects.locations; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -43069,26 +47359,6 @@ void main() { ); } } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['readMask']!.first, - unittest.equals(arg_readMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -43096,40 +47366,32 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ListDatasetVersionsResponse(), + buildGoogleCloudAiplatformV1RagEngineConfig(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.list( - arg_parent, - filter: arg_filter, - orderBy: arg_orderBy, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - readMask: arg_readMask, + final response = await res.getRagEngineConfig( + arg_name, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1ListDatasetVersionsResponse( - response as api.GoogleCloudAiplatformV1ListDatasetVersionsResponse, + checkGoogleCloudAiplatformV1RagEngineConfig( + response as api.GoogleCloudAiplatformV1RagEngineConfig, ); }); - unittest.test('method--patch', () async { + unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).datasets.datasetVersions; - final arg_request = buildGoogleCloudAiplatformV1DatasetVersion(); + final res = api.AiplatformApi(mock).projects.locations; final arg_name = 'foo'; - final arg_updateMask = 'foo'; + final arg_extraLocationTypes = buildUnnamed500(); + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1DatasetVersion.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1DatasetVersion(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -43162,8 +47424,20 @@ void main() { } } unittest.expect( - queryMap['updateMask']!.first, - unittest.equals(arg_updateMask), + queryMap['extraLocationTypes']!, + unittest.equals(arg_extraLocationTypes), + ); + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), ); unittest.expect( queryMap['fields']!.first, @@ -43172,30 +47446,39 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1DatasetVersion(), + buildGoogleCloudLocationListLocationsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.patch( - arg_request, + final response = await res.list( arg_name, - updateMask: arg_updateMask, + extraLocationTypes: arg_extraLocationTypes, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1DatasetVersion( - response as api.GoogleCloudAiplatformV1DatasetVersion, + checkGoogleCloudLocationListLocationsResponse( + response as api.GoogleCloudLocationListLocationsResponse, ); }); - unittest.test('method--restore', () async { + unittest.test('method--retrieveContexts', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).datasets.datasetVersions; - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations; + final arg_request = buildGoogleCloudAiplatformV1RetrieveContextsRequest(); + final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudAiplatformV1RetrieveContextsRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1RetrieveContextsRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -43233,31 +47516,35 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1RetrieveContextsResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.restore(arg_name, $fields: arg_$fields); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + final response = await res.retrieveContexts( + arg_request, + arg_parent, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1RetrieveContextsResponse( + response as api.GoogleCloudAiplatformV1RetrieveContextsResponse, ); }); - }); - unittest.group('resource-EndpointsResource', () { - unittest.test('method--computeTokens', () async { + unittest.test('method--updateRagEngineConfig', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).endpoints; - final arg_request = buildGoogleCloudAiplatformV1ComputeTokensRequest(); - final arg_endpoint = 'foo'; + final res = api.AiplatformApi(mock).projects.locations; + final arg_request = buildGoogleCloudAiplatformV1RagEngineConfig(); + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1ComputeTokensRequest.fromJson( + final obj = api.GoogleCloudAiplatformV1RagEngineConfig.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1ComputeTokensRequest(obj); + checkGoogleCloudAiplatformV1RagEngineConfig(obj); final path = req.url.path; var pathOffset = 0; @@ -43296,35 +47583,38 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ComputeTokensResponse(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.computeTokens( + final response = await res.updateRagEngineConfig( arg_request, - arg_endpoint, + arg_name, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1ComputeTokensResponse( - response as api.GoogleCloudAiplatformV1ComputeTokensResponse, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); + }); - unittest.test('method--countTokens', () async { + unittest.group('resource-ProjectsLocationsBatchPredictionJobsResource', () { + unittest.test('method--cancel', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).endpoints; - final arg_request = buildGoogleCloudAiplatformV1CountTokensRequest(); - final arg_endpoint = 'foo'; + final res = + api.AiplatformApi(mock).projects.locations.batchPredictionJobs; + final arg_request = + buildGoogleCloudAiplatformV1CancelBatchPredictionJobRequest(); + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1CountTokensRequest.fromJson( + final obj = api + .GoogleCloudAiplatformV1CancelBatchPredictionJobRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1CountTokensRequest(obj); + checkGoogleCloudAiplatformV1CancelBatchPredictionJobRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -43363,37 +47653,32 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1CountTokensResponse(), - ); + final resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.countTokens( + final response = await res.cancel( arg_request, - arg_endpoint, + arg_name, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1CountTokensResponse( - response as api.GoogleCloudAiplatformV1CountTokensResponse, - ); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); - unittest.test('method--fetchPredictOperation', () async { + unittest.test('method--create', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).endpoints; - final arg_request = - buildGoogleCloudAiplatformV1FetchPredictOperationRequest(); - final arg_endpoint = 'foo'; + final res = + api.AiplatformApi(mock).projects.locations.batchPredictionJobs; + final arg_request = buildGoogleCloudAiplatformV1BatchPredictionJob(); + final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1FetchPredictOperationRequest.fromJson( + final obj = api.GoogleCloudAiplatformV1BatchPredictionJob.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1FetchPredictOperationRequest(obj); + checkGoogleCloudAiplatformV1BatchPredictionJob(obj); final path = req.url.path; var pathOffset = 0; @@ -43432,35 +47717,31 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1BatchPredictionJob(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.fetchPredictOperation( + final response = await res.create( arg_request, - arg_endpoint, + arg_parent, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkGoogleCloudAiplatformV1BatchPredictionJob( + response as api.GoogleCloudAiplatformV1BatchPredictionJob, ); }); - unittest.test('method--generateContent', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).endpoints; - final arg_request = buildGoogleCloudAiplatformV1GenerateContentRequest(); - final arg_model = 'foo'; + final res = + api.AiplatformApi(mock).projects.locations.batchPredictionJobs; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1GenerateContentRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1GenerateContentRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -43498,36 +47779,25 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1GenerateContentResponse(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.generateContent( - arg_request, - arg_model, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1GenerateContentResponse( - response as api.GoogleCloudAiplatformV1GenerateContentResponse, + final response = await res.delete(arg_name, $fields: arg_$fields); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--predict', () async { + unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).endpoints; - final arg_request = buildGoogleCloudAiplatformV1PredictRequest(); - final arg_endpoint = 'foo'; + final res = + api.AiplatformApi(mock).projects.locations.batchPredictionJobs; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1PredictRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1PredictRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -43566,37 +47836,30 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1PredictResponse(), + buildGoogleCloudAiplatformV1BatchPredictionJob(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.predict( - arg_request, - arg_endpoint, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1PredictResponse( - response as api.GoogleCloudAiplatformV1PredictResponse, + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleCloudAiplatformV1BatchPredictionJob( + response as api.GoogleCloudAiplatformV1BatchPredictionJob, ); }); - unittest.test('method--predictLongRunning', () async { + unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).endpoints; - final arg_request = - buildGoogleCloudAiplatformV1PredictLongRunningRequest(); - final arg_endpoint = 'foo'; + final res = + api.AiplatformApi(mock).projects.locations.batchPredictionJobs; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_readMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1PredictLongRunningRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1PredictLongRunningRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -43628,40 +47891,62 @@ void main() { ); } } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['readMask']!.first, + unittest.equals(arg_readMask), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1ListBatchPredictionJobsResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.predictLongRunning( - arg_request, - arg_endpoint, + final response = await res.list( + arg_parent, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + readMask: arg_readMask, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkGoogleCloudAiplatformV1ListBatchPredictionJobsResponse( + response as api.GoogleCloudAiplatformV1ListBatchPredictionJobsResponse, ); }); + }); - unittest.test('method--streamGenerateContent', () async { + unittest.group('resource-ProjectsLocationsCachedContentsResource', () { + unittest.test('method--create', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).endpoints; - final arg_request = buildGoogleCloudAiplatformV1GenerateContentRequest(); - final arg_model = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.cachedContents; + final arg_request = buildGoogleCloudAiplatformV1CachedContent(); + final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1GenerateContentRequest.fromJson( + final obj = api.GoogleCloudAiplatformV1CachedContent.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1GenerateContentRequest(obj); + checkGoogleCloudAiplatformV1CachedContent(obj); final path = req.url.path; var pathOffset = 0; @@ -43701,37 +47986,29 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1GenerateContentResponse(), + buildGoogleCloudAiplatformV1CachedContent(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.streamGenerateContent( + final response = await res.create( arg_request, - arg_model, + arg_parent, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1GenerateContentResponse( - response as api.GoogleCloudAiplatformV1GenerateContentResponse, + checkGoogleCloudAiplatformV1CachedContent( + response as api.GoogleCloudAiplatformV1CachedContent, ); }); - }); - unittest.group('resource-EndpointsChatResource', () { - unittest.test('method--completions', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).endpoints.chat; - final arg_request = buildGoogleApiHttpBody(); - final arg_endpoint = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.cachedContents; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleApiHttpBody.fromJson( - json as core.Map, - ); - checkGoogleApiHttpBody(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -43769,37 +48046,22 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleApiHttpBody()); + final resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.completions( - arg_request, - arg_endpoint, - $fields: arg_$fields, - ); - checkGoogleApiHttpBody(response as api.GoogleApiHttpBody); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); - }); - - unittest.group('resource-MediaResource', () { - unittest.test('method--upload', () async { - // TODO: Implement tests for media upload; - // TODO: Implement tests for media download; + unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).media; - final arg_request = buildGoogleCloudAiplatformV1UploadRagFileRequest(); - final arg_parent = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.cachedContents; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1UploadRagFileRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1UploadRagFileRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -43838,28 +48100,24 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1UploadRagFileResponse(), + buildGoogleCloudAiplatformV1CachedContent(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.upload( - arg_request, - arg_parent, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1UploadRagFileResponse( - response as api.GoogleCloudAiplatformV1UploadRagFileResponse, + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleCloudAiplatformV1CachedContent( + response as api.GoogleCloudAiplatformV1CachedContent, ); }); - }); - unittest.group('resource-ProjectsResource', () { - unittest.test('method--getCacheConfig', () async { + unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects; - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.cachedContents; + final arg_parent = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -43894,6 +48152,14 @@ void main() { ); } } + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -43901,30 +48167,36 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1CacheConfig(), + buildGoogleCloudAiplatformV1ListCachedContentsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.getCacheConfig(arg_name, $fields: arg_$fields); - checkGoogleCloudAiplatformV1CacheConfig( - response as api.GoogleCloudAiplatformV1CacheConfig, + final response = await res.list( + arg_parent, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1ListCachedContentsResponse( + response as api.GoogleCloudAiplatformV1ListCachedContentsResponse, ); }); - unittest.test('method--updateCacheConfig', () async { + unittest.test('method--patch', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects; - final arg_request = buildGoogleCloudAiplatformV1CacheConfig(); + final res = api.AiplatformApi(mock).projects.locations.cachedContents; + final arg_request = buildGoogleCloudAiplatformV1CachedContent(); final arg_name = 'foo'; + final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1CacheConfig.fromJson( + final obj = api.GoogleCloudAiplatformV1CachedContent.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1CacheConfig(obj); + checkGoogleCloudAiplatformV1CachedContent(obj); final path = req.url.path; var pathOffset = 0; @@ -43957,41 +48229,49 @@ void main() { ); } } + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1CachedContent(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.updateCacheConfig( + final response = await res.patch( arg_request, arg_name, + updateMask: arg_updateMask, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkGoogleCloudAiplatformV1CachedContent( + response as api.GoogleCloudAiplatformV1CachedContent, ); }); }); - unittest.group('resource-ProjectsLocationsResource', () { - unittest.test('method--augmentPrompt', () async { + unittest.group('resource-ProjectsLocationsCustomJobsResource', () { + unittest.test('method--cancel', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations; - final arg_request = buildGoogleCloudAiplatformV1AugmentPromptRequest(); - final arg_parent = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.customJobs; + final arg_request = buildGoogleCloudAiplatformV1CancelCustomJobRequest(); + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1AugmentPromptRequest.fromJson( + final obj = api + .GoogleCloudAiplatformV1CancelCustomJobRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1AugmentPromptRequest(obj); + checkGoogleCloudAiplatformV1CancelCustomJobRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -44030,37 +48310,31 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1AugmentPromptResponse(), - ); + final resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.augmentPrompt( + final response = await res.cancel( arg_request, - arg_parent, + arg_name, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1AugmentPromptResponse( - response as api.GoogleCloudAiplatformV1AugmentPromptResponse, - ); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); - unittest.test('method--corroborateContent', () async { + unittest.test('method--create', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations; - final arg_request = - buildGoogleCloudAiplatformV1CorroborateContentRequest(); + final res = api.AiplatformApi(mock).projects.locations.customJobs; + final arg_request = buildGoogleCloudAiplatformV1CustomJob(); final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1CorroborateContentRequest.fromJson( + final obj = api.GoogleCloudAiplatformV1CustomJob.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1CorroborateContentRequest(obj); + checkGoogleCloudAiplatformV1CustomJob(obj); final path = req.url.path; var pathOffset = 0; @@ -44100,35 +48374,29 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1CorroborateContentResponse(), + buildGoogleCloudAiplatformV1CustomJob(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.corroborateContent( + final response = await res.create( arg_request, arg_parent, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1CorroborateContentResponse( - response as api.GoogleCloudAiplatformV1CorroborateContentResponse, + checkGoogleCloudAiplatformV1CustomJob( + response as api.GoogleCloudAiplatformV1CustomJob, ); }); - unittest.test('method--deploy', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations; - final arg_request = buildGoogleCloudAiplatformV1DeployRequest(); - final arg_destination = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.customJobs; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1DeployRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1DeployRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -44171,30 +48439,19 @@ void main() { }), true, ); - final response = await res.deploy( - arg_request, - arg_destination, - $fields: arg_$fields, - ); + final response = await res.delete(arg_name, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--evaluateDataset', () async { + unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations; - final arg_request = buildGoogleCloudAiplatformV1EvaluateDatasetRequest(); - final arg_location = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.customJobs; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1EvaluateDatasetRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1EvaluateDatasetRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -44232,36 +48489,30 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1CustomJob(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.evaluateDataset( - arg_request, - arg_location, - $fields: arg_$fields, - ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleCloudAiplatformV1CustomJob( + response as api.GoogleCloudAiplatformV1CustomJob, ); }); - unittest.test('method--evaluateInstances', () async { + unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations; - final arg_request = - buildGoogleCloudAiplatformV1EvaluateInstancesRequest(); - final arg_location = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.customJobs; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_readMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1EvaluateInstancesRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1EvaluateInstancesRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -44293,6 +48544,22 @@ void main() { ); } } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['readMask']!.first, + unittest.equals(arg_readMask), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -44300,25 +48567,31 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1EvaluateInstancesResponse(), + buildGoogleCloudAiplatformV1ListCustomJobsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.evaluateInstances( - arg_request, - arg_location, + final response = await res.list( + arg_parent, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + readMask: arg_readMask, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1EvaluateInstancesResponse( - response as api.GoogleCloudAiplatformV1EvaluateInstancesResponse, + checkGoogleCloudAiplatformV1ListCustomJobsResponse( + response as api.GoogleCloudAiplatformV1ListCustomJobsResponse, ); }); + }); - unittest.test('method--get', () async { + unittest.group('resource-ProjectsLocationsCustomJobsOperationsResource', () { + unittest.test('method--cancel', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations; + final res = + api.AiplatformApi(mock).projects.locations.customJobs.operations; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -44360,20 +48633,19 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleCloudLocationLocation()); + final resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleCloudLocationLocation( - response as api.GoogleCloudLocationLocation, - ); + final response = await res.cancel(arg_name, $fields: arg_$fields); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); - unittest.test('method--getRagEngineConfig', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations; + final res = + api.AiplatformApi(mock).projects.locations.customJobs.operations; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -44415,30 +48687,20 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1RagEngineConfig(), - ); + final resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.getRagEngineConfig( - arg_name, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1RagEngineConfig( - response as api.GoogleCloudAiplatformV1RagEngineConfig, - ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); - unittest.test('method--list', () async { + unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations; + final res = + api.AiplatformApi(mock).projects.locations.customJobs.operations; final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed461(); - final arg_filter = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -44473,62 +48735,34 @@ void main() { ); } } - unittest.expect( - queryMap['extraLocationTypes']!, - unittest.equals(arg_extraLocationTypes), - ); - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudLocationListLocationsResponse(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.list( - arg_name, - extraLocationTypes: arg_extraLocationTypes, - filter: arg_filter, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - $fields: arg_$fields, - ); - checkGoogleCloudLocationListLocationsResponse( - response as api.GoogleCloudLocationListLocationsResponse, + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--retrieveContexts', () async { + unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations; - final arg_request = buildGoogleCloudAiplatformV1RetrieveContextsRequest(); - final arg_parent = 'foo'; + final res = + api.AiplatformApi(mock).projects.locations.customJobs.operations; + final arg_name = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1RetrieveContextsRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1RetrieveContextsRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -44560,6 +48794,18 @@ void main() { ); } } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -44567,35 +48813,33 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1RetrieveContextsResponse(), + buildGoogleLongrunningListOperationsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.retrieveContexts( - arg_request, - arg_parent, + final response = await res.list( + arg_name, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1RetrieveContextsResponse( - response as api.GoogleCloudAiplatformV1RetrieveContextsResponse, + checkGoogleLongrunningListOperationsResponse( + response as api.GoogleLongrunningListOperationsResponse, ); }); - unittest.test('method--updateRagEngineConfig', () async { + unittest.test('method--wait', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations; - final arg_request = buildGoogleCloudAiplatformV1RagEngineConfig(); + final res = + api.AiplatformApi(mock).projects.locations.customJobs.operations; final arg_name = 'foo'; + final arg_timeout = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1RagEngineConfig.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1RagEngineConfig(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -44627,6 +48871,10 @@ void main() { ); } } + unittest.expect( + queryMap['timeout']!.first, + unittest.equals(arg_timeout), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -44638,9 +48886,9 @@ void main() { }), true, ); - final response = await res.updateRagEngineConfig( - arg_request, + final response = await res.wait( arg_name, + timeout: arg_timeout, $fields: arg_$fields, ); checkGoogleLongrunningOperation( @@ -44649,22 +48897,21 @@ void main() { }); }); - unittest.group('resource-ProjectsLocationsBatchPredictionJobsResource', () { + unittest.group('resource-ProjectsLocationsDataLabelingJobsResource', () { unittest.test('method--cancel', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.batchPredictionJobs; + final res = api.AiplatformApi(mock).projects.locations.dataLabelingJobs; final arg_request = - buildGoogleCloudAiplatformV1CancelBatchPredictionJobRequest(); + buildGoogleCloudAiplatformV1CancelDataLabelingJobRequest(); final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { final obj = api - .GoogleCloudAiplatformV1CancelBatchPredictionJobRequest.fromJson( + .GoogleCloudAiplatformV1CancelDataLabelingJobRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1CancelBatchPredictionJobRequest(obj); + checkGoogleCloudAiplatformV1CancelDataLabelingJobRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -44718,17 +48965,16 @@ void main() { unittest.test('method--create', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.batchPredictionJobs; - final arg_request = buildGoogleCloudAiplatformV1BatchPredictionJob(); + final res = api.AiplatformApi(mock).projects.locations.dataLabelingJobs; + final arg_request = buildGoogleCloudAiplatformV1DataLabelingJob(); final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1BatchPredictionJob.fromJson( + final obj = api.GoogleCloudAiplatformV1DataLabelingJob.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1BatchPredictionJob(obj); + checkGoogleCloudAiplatformV1DataLabelingJob(obj); final path = req.url.path; var pathOffset = 0; @@ -44768,7 +49014,7 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1BatchPredictionJob(), + buildGoogleCloudAiplatformV1DataLabelingJob(), ); return async.Future.value(stringResponse(200, h, resp)); }), @@ -44779,15 +49025,14 @@ void main() { arg_parent, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1BatchPredictionJob( - response as api.GoogleCloudAiplatformV1BatchPredictionJob, + checkGoogleCloudAiplatformV1DataLabelingJob( + response as api.GoogleCloudAiplatformV1DataLabelingJob, ); }); unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.batchPredictionJobs; + final res = api.AiplatformApi(mock).projects.locations.dataLabelingJobs; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -44842,8 +49087,7 @@ void main() { unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.batchPredictionJobs; + final res = api.AiplatformApi(mock).projects.locations.dataLabelingJobs; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -44886,24 +49130,24 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1BatchPredictionJob(), + buildGoogleCloudAiplatformV1DataLabelingJob(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleCloudAiplatformV1BatchPredictionJob( - response as api.GoogleCloudAiplatformV1BatchPredictionJob, + checkGoogleCloudAiplatformV1DataLabelingJob( + response as api.GoogleCloudAiplatformV1DataLabelingJob, ); }); unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.batchPredictionJobs; + final res = api.AiplatformApi(mock).projects.locations.dataLabelingJobs; final arg_parent = 'foo'; final arg_filter = 'foo'; + final arg_orderBy = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; final arg_readMask = 'foo'; @@ -44945,6 +49189,10 @@ void main() { queryMap['filter']!.first, unittest.equals(arg_filter), ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); unittest.expect( core.int.parse(queryMap['pageSize']!.first), unittest.equals(arg_pageSize), @@ -44964,7 +49212,7 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ListBatchPredictionJobsResponse(), + buildGoogleCloudAiplatformV1ListDataLabelingJobsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), @@ -44973,31 +49221,29 @@ void main() { final response = await res.list( arg_parent, filter: arg_filter, + orderBy: arg_orderBy, pageSize: arg_pageSize, pageToken: arg_pageToken, readMask: arg_readMask, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1ListBatchPredictionJobsResponse( - response as api.GoogleCloudAiplatformV1ListBatchPredictionJobsResponse, + checkGoogleCloudAiplatformV1ListDataLabelingJobsResponse( + response as api.GoogleCloudAiplatformV1ListDataLabelingJobsResponse, ); }); }); - unittest.group('resource-ProjectsLocationsCachedContentsResource', () { - unittest.test('method--create', () async { + unittest.group('resource-ProjectsLocationsDataLabelingJobsOperationsResource', () { + unittest.test('method--cancel', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.cachedContents; - final arg_request = buildGoogleCloudAiplatformV1CachedContent(); - final arg_parent = 'foo'; + final res = + api.AiplatformApi( + mock, + ).projects.locations.dataLabelingJobs.operations; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1CachedContent.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1CachedContent(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -45035,26 +49281,21 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1CachedContent(), - ); + final resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.create( - arg_request, - arg_parent, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1CachedContent( - response as api.GoogleCloudAiplatformV1CachedContent, - ); + final response = await res.cancel(arg_name, $fields: arg_$fields); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.cachedContents; + final res = + api.AiplatformApi( + mock, + ).projects.locations.dataLabelingJobs.operations; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -45107,7 +49348,10 @@ void main() { unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.cachedContents; + final res = + api.AiplatformApi( + mock, + ).projects.locations.dataLabelingJobs.operations; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -45149,23 +49393,25 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1CachedContent(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleCloudAiplatformV1CachedContent( - response as api.GoogleCloudAiplatformV1CachedContent, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.cachedContents; - final arg_parent = 'foo'; + final res = + api.AiplatformApi( + mock, + ).projects.locations.dataLabelingJobs.operations; + final arg_name = 'foo'; + final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; final arg_$fields = 'foo'; @@ -45202,6 +49448,10 @@ void main() { ); } } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); unittest.expect( core.int.parse(queryMap['pageSize']!.first), unittest.equals(arg_pageSize), @@ -45217,37 +49467,35 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ListCachedContentsResponse(), + buildGoogleLongrunningListOperationsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); final response = await res.list( - arg_parent, + arg_name, + filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1ListCachedContentsResponse( - response as api.GoogleCloudAiplatformV1ListCachedContentsResponse, + checkGoogleLongrunningListOperationsResponse( + response as api.GoogleLongrunningListOperationsResponse, ); }); - unittest.test('method--patch', () async { + unittest.test('method--wait', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.cachedContents; - final arg_request = buildGoogleCloudAiplatformV1CachedContent(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.dataLabelingJobs.operations; final arg_name = 'foo'; - final arg_updateMask = 'foo'; + final arg_timeout = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1CachedContent.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1CachedContent(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -45280,8 +49528,8 @@ void main() { } } unittest.expect( - queryMap['updateMask']!.first, - unittest.equals(arg_updateMask), + queryMap['timeout']!.first, + unittest.equals(arg_timeout), ); unittest.expect( queryMap['fields']!.first, @@ -45289,39 +49537,35 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1CachedContent(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.patch( - arg_request, + final response = await res.wait( arg_name, - updateMask: arg_updateMask, + timeout: arg_timeout, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1CachedContent( - response as api.GoogleCloudAiplatformV1CachedContent, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); }); - unittest.group('resource-ProjectsLocationsCustomJobsResource', () { - unittest.test('method--cancel', () async { + unittest.group('resource-ProjectsLocationsDatasetsResource', () { + unittest.test('method--create', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.customJobs; - final arg_request = buildGoogleCloudAiplatformV1CancelCustomJobRequest(); - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.datasets; + final arg_request = buildGoogleCloudAiplatformV1Dataset(); + final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1CancelCustomJobRequest.fromJson( + final obj = api.GoogleCloudAiplatformV1Dataset.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1CancelCustomJobRequest(obj); + checkGoogleCloudAiplatformV1Dataset(obj); final path = req.url.path; var pathOffset = 0; @@ -45360,31 +49604,88 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.cancel( + final response = await res.create( arg_request, - arg_name, + arg_parent, $fields: arg_$fields, ); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); }); - unittest.test('method--create', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.customJobs; - final arg_request = buildGoogleCloudAiplatformV1CustomJob(); - final arg_parent = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.datasets; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1CustomJob.fromJson( + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + + unittest.test('method--export', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).projects.locations.datasets; + final arg_request = buildGoogleCloudAiplatformV1ExportDataRequest(); + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1ExportDataRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1CustomJob(obj); + checkGoogleCloudAiplatformV1ExportDataRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -45423,27 +49724,26 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1CustomJob(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.create( + final response = await res.export( arg_request, - arg_parent, + arg_name, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1CustomJob( - response as api.GoogleCloudAiplatformV1CustomJob, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--delete', () async { + unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.customJobs; + final res = api.AiplatformApi(mock).projects.locations.datasets; final arg_name = 'foo'; + final arg_readMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -45478,30 +49778,46 @@ void main() { ); } } + unittest.expect( + queryMap['readMask']!.first, + unittest.equals(arg_readMask), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1Dataset(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.delete(arg_name, $fields: arg_$fields); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + final response = await res.get( + arg_name, + readMask: arg_readMask, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1Dataset( + response as api.GoogleCloudAiplatformV1Dataset, ); }); - unittest.test('method--get', () async { + unittest.test('method--import', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.customJobs; + final res = api.AiplatformApi(mock).projects.locations.datasets; + final arg_request = buildGoogleCloudAiplatformV1ImportDataRequest(); final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1ImportDataRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1ImportDataRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -45539,24 +49855,27 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1CustomJob(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleCloudAiplatformV1CustomJob( - response as api.GoogleCloudAiplatformV1CustomJob, + final response = await res.import( + arg_request, + arg_name, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.customJobs; + final res = api.AiplatformApi(mock).projects.locations.datasets; final arg_parent = 'foo'; final arg_filter = 'foo'; + final arg_orderBy = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; final arg_readMask = 'foo'; @@ -45598,6 +49917,10 @@ void main() { queryMap['filter']!.first, unittest.equals(arg_filter), ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); unittest.expect( core.int.parse(queryMap['pageSize']!.first), unittest.equals(arg_pageSize), @@ -45617,7 +49940,7 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ListCustomJobsResponse(), + buildGoogleCloudAiplatformV1ListDatasetsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), @@ -45626,26 +49949,31 @@ void main() { final response = await res.list( arg_parent, filter: arg_filter, + orderBy: arg_orderBy, pageSize: arg_pageSize, pageToken: arg_pageToken, readMask: arg_readMask, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1ListCustomJobsResponse( - response as api.GoogleCloudAiplatformV1ListCustomJobsResponse, + checkGoogleCloudAiplatformV1ListDatasetsResponse( + response as api.GoogleCloudAiplatformV1ListDatasetsResponse, ); }); - }); - unittest.group('resource-ProjectsLocationsCustomJobsOperationsResource', () { - unittest.test('method--cancel', () async { + unittest.test('method--patch', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.customJobs.operations; + final res = api.AiplatformApi(mock).projects.locations.datasets; + final arg_request = buildGoogleCloudAiplatformV1Dataset(); final arg_name = 'foo'; + final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1Dataset.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1Dataset(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -45677,26 +50005,51 @@ void main() { ); } } + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1Dataset(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.cancel(arg_name, $fields: arg_$fields); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); + final response = await res.patch( + arg_request, + arg_name, + updateMask: arg_updateMask, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1Dataset( + response as api.GoogleCloudAiplatformV1Dataset, + ); }); - unittest.test('method--delete', () async { + unittest.test('method--searchDataItems', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.customJobs.operations; - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.datasets; + final arg_dataset = 'foo'; + final arg_annotationFilters = buildUnnamed501(); + final arg_annotationsFilter = 'foo'; + final arg_annotationsLimit = 42; + final arg_dataItemFilter = 'foo'; + final arg_dataLabelingJob = 'foo'; + final arg_fieldMask = 'foo'; + final arg_orderBy = 'foo'; + final arg_orderByAnnotation_orderBy = 'foo'; + final arg_orderByAnnotation_savedQuery = 'foo'; + final arg_orderByDataItem = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_savedQuery = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -45731,26 +50084,101 @@ void main() { ); } } + unittest.expect( + queryMap['annotationFilters']!, + unittest.equals(arg_annotationFilters), + ); + unittest.expect( + queryMap['annotationsFilter']!.first, + unittest.equals(arg_annotationsFilter), + ); + unittest.expect( + core.int.parse(queryMap['annotationsLimit']!.first), + unittest.equals(arg_annotationsLimit), + ); + unittest.expect( + queryMap['dataItemFilter']!.first, + unittest.equals(arg_dataItemFilter), + ); + unittest.expect( + queryMap['dataLabelingJob']!.first, + unittest.equals(arg_dataLabelingJob), + ); + unittest.expect( + queryMap['fieldMask']!.first, + unittest.equals(arg_fieldMask), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + queryMap['orderByAnnotation.orderBy']!.first, + unittest.equals(arg_orderByAnnotation_orderBy), + ); + unittest.expect( + queryMap['orderByAnnotation.savedQuery']!.first, + unittest.equals(arg_orderByAnnotation_savedQuery), + ); + unittest.expect( + queryMap['orderByDataItem']!.first, + unittest.equals(arg_orderByDataItem), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['savedQuery']!.first, + unittest.equals(arg_savedQuery), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1SearchDataItemsResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.delete(arg_name, $fields: arg_$fields); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); + final response = await res.searchDataItems( + arg_dataset, + annotationFilters: arg_annotationFilters, + annotationsFilter: arg_annotationsFilter, + annotationsLimit: arg_annotationsLimit, + dataItemFilter: arg_dataItemFilter, + dataLabelingJob: arg_dataLabelingJob, + fieldMask: arg_fieldMask, + orderBy: arg_orderBy, + orderByAnnotation_orderBy: arg_orderByAnnotation_orderBy, + orderByAnnotation_savedQuery: arg_orderByAnnotation_savedQuery, + orderByDataItem: arg_orderByDataItem, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + savedQuery: arg_savedQuery, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1SearchDataItemsResponse( + response as api.GoogleCloudAiplatformV1SearchDataItemsResponse, + ); }); + }); + unittest.group('resource-ProjectsLocationsDatasetsAnnotationSpecsResource', () { unittest.test('method--get', () async { final mock = HttpServerMock(); final res = - api.AiplatformApi(mock).projects.locations.customJobs.operations; + api.AiplatformApi(mock).projects.locations.datasets.annotationSpecs; final arg_name = 'foo'; + final arg_readMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -45770,46 +50198,382 @@ void main() { pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['readMask']!.first, + unittest.equals(arg_readMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1AnnotationSpec(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get( + arg_name, + readMask: arg_readMask, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1AnnotationSpec( + response as api.GoogleCloudAiplatformV1AnnotationSpec, + ); + }); + }); + + unittest.group( + 'resource-ProjectsLocationsDatasetsAnnotationSpecsOperationsResource', + () { + unittest.test('method--cancel', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.datasets.annotationSpecs.operations; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleProtobufEmpty()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.cancel(arg_name, $fields: arg_$fields); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); + }); + + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.datasets.annotationSpecs.operations; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleProtobufEmpty()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); + }); + + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.datasets.annotationSpecs.operations; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.datasets.annotationSpecs.operations; + final arg_name = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleLongrunningListOperationsResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_name, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkGoogleLongrunningListOperationsResponse( + response as api.GoogleLongrunningListOperationsResponse, + ); + }); + + unittest.test('method--wait', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.datasets.annotationSpecs.operations; + final arg_name = 'foo'; + final arg_timeout = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); + unittest.expect( + queryMap['timeout']!.first, + unittest.equals(arg_timeout), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, - ); - }); + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.wait( + arg_name, + timeout: arg_timeout, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + }, + ); + unittest.group('resource-ProjectsLocationsDatasetsDataItemsResource', () { unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.customJobs.operations; - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.datasets.dataItems; + final arg_parent = 'foo'; final arg_filter = 'foo'; + final arg_orderBy = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; + final arg_readMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -45848,6 +50612,10 @@ void main() { queryMap['filter']!.first, unittest.equals(arg_filter), ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); unittest.expect( core.int.parse(queryMap['pageSize']!.first), unittest.equals(arg_pageSize), @@ -45856,6 +50624,10 @@ void main() { queryMap['pageToken']!.first, unittest.equals(arg_pageToken), ); + unittest.expect( + queryMap['readMask']!.first, + unittest.equals(arg_readMask), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -45863,433 +50635,455 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleLongrunningListOperationsResponse(), + buildGoogleCloudAiplatformV1ListDataItemsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); final response = await res.list( - arg_name, + arg_parent, filter: arg_filter, + orderBy: arg_orderBy, pageSize: arg_pageSize, pageToken: arg_pageToken, + readMask: arg_readMask, $fields: arg_$fields, ); - checkGoogleLongrunningListOperationsResponse( - response as api.GoogleLongrunningListOperationsResponse, + checkGoogleCloudAiplatformV1ListDataItemsResponse( + response as api.GoogleCloudAiplatformV1ListDataItemsResponse, ); }); + }); - unittest.test('method--wait', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.customJobs.operations; - final arg_name = 'foo'; - final arg_timeout = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + unittest.group( + 'resource-ProjectsLocationsDatasetsDataItemsAnnotationsResource', + () { + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.datasets.dataItems.annotations; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_readMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } } - } - unittest.expect( - queryMap['timeout']!.first, - unittest.equals(arg_timeout), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.wait( - arg_name, - timeout: arg_timeout, - $fields: arg_$fields, - ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, - ); - }); - }); + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['readMask']!.first, + unittest.equals(arg_readMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - unittest.group('resource-ProjectsLocationsDataLabelingJobsResource', () { - unittest.test('method--cancel', () async { - final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.dataLabelingJobs; - final arg_request = - buildGoogleCloudAiplatformV1CancelDataLabelingJobRequest(); - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1CancelDataLabelingJobRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1CancelDataLabelingJobRequest(obj); + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1ListAnnotationsResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + readMask: arg_readMask, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1ListAnnotationsResponse( + response as api.GoogleCloudAiplatformV1ListAnnotationsResponse, + ); + }); + }, + ); - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + unittest.group( + 'resource-ProjectsLocationsDatasetsDataItemsAnnotationsOperationsResource', + () { + unittest.test('method--cancel', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.datasets.dataItems.annotations.operations; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.cancel( - arg_request, - arg_name, - $fields: arg_$fields, - ); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); - }); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - unittest.test('method--create', () async { - final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.dataLabelingJobs; - final arg_request = buildGoogleCloudAiplatformV1DataLabelingJob(); - final arg_parent = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1DataLabelingJob.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1DataLabelingJob(obj); + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleProtobufEmpty()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.cancel(arg_name, $fields: arg_$fields); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); + }); - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.datasets.dataItems.annotations.operations; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1DataLabelingJob(), - ); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.create( - arg_request, - arg_parent, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1DataLabelingJob( - response as api.GoogleCloudAiplatformV1DataLabelingJob, - ); - }); + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleProtobufEmpty()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); + }); - unittest.test('method--delete', () async { - final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.dataLabelingJobs; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.datasets.dataItems.annotations.operations; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.delete(arg_name, $fields: arg_$fields); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, - ); - }); + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); - unittest.test('method--get', () async { - final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.dataLabelingJobs; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.datasets.dataItems.annotations.operations; + final arg_name = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1DataLabelingJob(), - ); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleCloudAiplatformV1DataLabelingJob( - response as api.GoogleCloudAiplatformV1DataLabelingJob, - ); - }); + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleLongrunningListOperationsResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_name, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkGoogleLongrunningListOperationsResponse( + response as api.GoogleLongrunningListOperationsResponse, + ); + }); - unittest.test('method--list', () async { - final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.dataLabelingJobs; - final arg_parent = 'foo'; - final arg_filter = 'foo'; - final arg_orderBy = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; - final arg_readMask = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + unittest.test('method--wait', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.datasets.dataItems.annotations.operations; + final arg_name = 'foo'; + final arg_timeout = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } } - } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['readMask']!.first, - unittest.equals(arg_readMask), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); + unittest.expect( + queryMap['timeout']!.first, + unittest.equals(arg_timeout), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ListDataLabelingJobsResponse(), - ); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.list( - arg_parent, - filter: arg_filter, - orderBy: arg_orderBy, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - readMask: arg_readMask, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1ListDataLabelingJobsResponse( - response as api.GoogleCloudAiplatformV1ListDataLabelingJobsResponse, - ); - }); - }); + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.wait( + arg_name, + timeout: arg_timeout, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + }, + ); - unittest.group('resource-ProjectsLocationsDataLabelingJobsOperationsResource', () { + unittest.group('resource-ProjectsLocationsDatasetsDataItemsOperationsResource', () { unittest.test('method--cancel', () async { final mock = HttpServerMock(); final res = api.AiplatformApi( mock, - ).projects.locations.dataLabelingJobs.operations; + ).projects.locations.datasets.dataItems.operations; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -46345,7 +51139,7 @@ void main() { final res = api.AiplatformApi( mock, - ).projects.locations.dataLabelingJobs.operations; + ).projects.locations.datasets.dataItems.operations; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -46401,7 +51195,7 @@ void main() { final res = api.AiplatformApi( mock, - ).projects.locations.dataLabelingJobs.operations; + ).projects.locations.datasets.dataItems.operations; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -46459,7 +51253,7 @@ void main() { final res = api.AiplatformApi( mock, - ).projects.locations.dataLabelingJobs.operations; + ).projects.locations.datasets.dataItems.operations; final arg_name = 'foo'; final arg_filter = 'foo'; final arg_pageSize = 42; @@ -46540,7 +51334,7 @@ void main() { final res = api.AiplatformApi( mock, - ).projects.locations.dataLabelingJobs.operations; + ).projects.locations.datasets.dataItems.operations; final arg_name = 'foo'; final arg_timeout = 'foo'; final arg_$fields = 'foo'; @@ -46603,19 +51397,20 @@ void main() { }); }); - unittest.group('resource-ProjectsLocationsDatasetsResource', () { + unittest.group('resource-ProjectsLocationsDatasetsDatasetVersionsResource', () { unittest.test('method--create', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.datasets; - final arg_request = buildGoogleCloudAiplatformV1Dataset(); + final res = + api.AiplatformApi(mock).projects.locations.datasets.datasetVersions; + final arg_request = buildGoogleCloudAiplatformV1DatasetVersion(); final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1Dataset.fromJson( + final obj = api.GoogleCloudAiplatformV1DatasetVersion.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1Dataset(obj); + checkGoogleCloudAiplatformV1DatasetVersion(obj); final path = req.url.path; var pathOffset = 0; @@ -46671,7 +51466,8 @@ void main() { unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.datasets; + final res = + api.AiplatformApi(mock).projects.locations.datasets.datasetVersions; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -46724,19 +51520,15 @@ void main() { ); }); - unittest.test('method--export', () async { + unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.datasets; - final arg_request = buildGoogleCloudAiplatformV1ExportDataRequest(); + final res = + api.AiplatformApi(mock).projects.locations.datasets.datasetVersions; final arg_name = 'foo'; + final arg_readMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1ExportDataRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1ExportDataRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -46768,31 +51560,42 @@ void main() { ); } } + unittest.expect( + queryMap['readMask']!.first, + unittest.equals(arg_readMask), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1DatasetVersion(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.export( - arg_request, + final response = await res.get( arg_name, + readMask: arg_readMask, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkGoogleCloudAiplatformV1DatasetVersion( + response as api.GoogleCloudAiplatformV1DatasetVersion, ); }); - unittest.test('method--get', () async { + unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.datasets; - final arg_name = 'foo'; + final res = + api.AiplatformApi(mock).projects.locations.datasets.datasetVersions; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; final arg_readMask = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -46828,6 +51631,22 @@ void main() { ); } } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); unittest.expect( queryMap['readMask']!.first, unittest.equals(arg_readMask), @@ -46839,34 +51658,40 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1Dataset(), + buildGoogleCloudAiplatformV1ListDatasetVersionsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get( - arg_name, + final response = await res.list( + arg_parent, + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, readMask: arg_readMask, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1Dataset( - response as api.GoogleCloudAiplatformV1Dataset, + checkGoogleCloudAiplatformV1ListDatasetVersionsResponse( + response as api.GoogleCloudAiplatformV1ListDatasetVersionsResponse, ); }); - unittest.test('method--import', () async { + unittest.test('method--patch', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.datasets; - final arg_request = buildGoogleCloudAiplatformV1ImportDataRequest(); + final res = + api.AiplatformApi(mock).projects.locations.datasets.datasetVersions; + final arg_request = buildGoogleCloudAiplatformV1DatasetVersion(); final arg_name = 'foo'; + final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1ImportDataRequest.fromJson( + final obj = api.GoogleCloudAiplatformV1DatasetVersion.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1ImportDataRequest(obj); + checkGoogleCloudAiplatformV1DatasetVersion(obj); final path = req.url.path; var pathOffset = 0; @@ -46899,36 +51724,39 @@ void main() { ); } } + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1DatasetVersion(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.import( + final response = await res.patch( arg_request, arg_name, + updateMask: arg_updateMask, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkGoogleCloudAiplatformV1DatasetVersion( + response as api.GoogleCloudAiplatformV1DatasetVersion, ); }); - unittest.test('method--list', () async { + unittest.test('method--restore', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.datasets; - final arg_parent = 'foo'; - final arg_filter = 'foo'; - final arg_orderBy = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; - final arg_readMask = 'foo'; + final res = + api.AiplatformApi(mock).projects.locations.datasets.datasetVersions; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -46951,79 +51779,45 @@ void main() { final query = req.url.query; var queryOffset = 0; final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['readMask']!.first, - unittest.equals(arg_readMask), - ); + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ListDatasetsResponse(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.list( - arg_parent, - filter: arg_filter, - orderBy: arg_orderBy, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - readMask: arg_readMask, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1ListDatasetsResponse( - response as api.GoogleCloudAiplatformV1ListDatasetsResponse, + final response = await res.restore(arg_name, $fields: arg_$fields); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); + }); - unittest.test('method--patch', () async { + unittest.group('resource-ProjectsLocationsDatasetsOperationsResource', () { + unittest.test('method--cancel', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.datasets; - final arg_request = buildGoogleCloudAiplatformV1Dataset(); + final res = + api.AiplatformApi(mock).projects.locations.datasets.operations; final arg_name = 'foo'; - final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1Dataset.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1Dataset(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -47055,51 +51849,26 @@ void main() { ); } } - unittest.expect( - queryMap['updateMask']!.first, - unittest.equals(arg_updateMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1Dataset(), - ); + final resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.patch( - arg_request, - arg_name, - updateMask: arg_updateMask, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1Dataset( - response as api.GoogleCloudAiplatformV1Dataset, - ); + final response = await res.cancel(arg_name, $fields: arg_$fields); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); - unittest.test('method--searchDataItems', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.datasets; - final arg_dataset = 'foo'; - final arg_annotationFilters = buildUnnamed462(); - final arg_annotationsFilter = 'foo'; - final arg_annotationsLimit = 42; - final arg_dataItemFilter = 'foo'; - final arg_dataLabelingJob = 'foo'; - final arg_fieldMask = 'foo'; - final arg_orderBy = 'foo'; - final arg_orderByAnnotation_orderBy = 'foo'; - final arg_orderByAnnotation_savedQuery = 'foo'; - final arg_orderByDataItem = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; - final arg_savedQuery = 'foo'; + final res = + api.AiplatformApi(mock).projects.locations.datasets.operations; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -47134,101 +51903,26 @@ void main() { ); } } - unittest.expect( - queryMap['annotationFilters']!, - unittest.equals(arg_annotationFilters), - ); - unittest.expect( - queryMap['annotationsFilter']!.first, - unittest.equals(arg_annotationsFilter), - ); - unittest.expect( - core.int.parse(queryMap['annotationsLimit']!.first), - unittest.equals(arg_annotationsLimit), - ); - unittest.expect( - queryMap['dataItemFilter']!.first, - unittest.equals(arg_dataItemFilter), - ); - unittest.expect( - queryMap['dataLabelingJob']!.first, - unittest.equals(arg_dataLabelingJob), - ); - unittest.expect( - queryMap['fieldMask']!.first, - unittest.equals(arg_fieldMask), - ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); - unittest.expect( - queryMap['orderByAnnotation.orderBy']!.first, - unittest.equals(arg_orderByAnnotation_orderBy), - ); - unittest.expect( - queryMap['orderByAnnotation.savedQuery']!.first, - unittest.equals(arg_orderByAnnotation_savedQuery), - ); - unittest.expect( - queryMap['orderByDataItem']!.first, - unittest.equals(arg_orderByDataItem), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['savedQuery']!.first, - unittest.equals(arg_savedQuery), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1SearchDataItemsResponse(), - ); + final resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.searchDataItems( - arg_dataset, - annotationFilters: arg_annotationFilters, - annotationsFilter: arg_annotationsFilter, - annotationsLimit: arg_annotationsLimit, - dataItemFilter: arg_dataItemFilter, - dataLabelingJob: arg_dataLabelingJob, - fieldMask: arg_fieldMask, - orderBy: arg_orderBy, - orderByAnnotation_orderBy: arg_orderByAnnotation_orderBy, - orderByAnnotation_savedQuery: arg_orderByAnnotation_savedQuery, - orderByDataItem: arg_orderByDataItem, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - savedQuery: arg_savedQuery, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1SearchDataItemsResponse( - response as api.GoogleCloudAiplatformV1SearchDataItemsResponse, - ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); - }); - unittest.group('resource-ProjectsLocationsDatasetsAnnotationSpecsResource', () { unittest.test('method--get', () async { final mock = HttpServerMock(); final res = - api.AiplatformApi(mock).projects.locations.datasets.annotationSpecs; + api.AiplatformApi(mock).projects.locations.datasets.operations; final arg_name = 'foo'; - final arg_readMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -47263,367 +51957,31 @@ void main() { ); } } - unittest.expect( - queryMap['readMask']!.first, - unittest.equals(arg_readMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1AnnotationSpec(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get( - arg_name, - readMask: arg_readMask, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1AnnotationSpec( - response as api.GoogleCloudAiplatformV1AnnotationSpec, + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); - }); - - unittest.group( - 'resource-ProjectsLocationsDatasetsAnnotationSpecsOperationsResource', - () { - unittest.test('method--cancel', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.annotationSpecs.operations; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.cancel(arg_name, $fields: arg_$fields); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); - }); - - unittest.test('method--delete', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.annotationSpecs.operations; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.delete(arg_name, $fields: arg_$fields); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); - }); - - unittest.test('method--get', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.annotationSpecs.operations; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, - ); - }); - - unittest.test('method--list', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.annotationSpecs.operations; - final arg_name = 'foo'; - final arg_filter = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleLongrunningListOperationsResponse(), - ); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.list( - arg_name, - filter: arg_filter, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - $fields: arg_$fields, - ); - checkGoogleLongrunningListOperationsResponse( - response as api.GoogleLongrunningListOperationsResponse, - ); - }); - - unittest.test('method--wait', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.annotationSpecs.operations; - final arg_name = 'foo'; - final arg_timeout = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['timeout']!.first, - unittest.equals(arg_timeout), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.wait( - arg_name, - timeout: arg_timeout, - $fields: arg_$fields, - ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, - ); - }); - }, - ); - unittest.group('resource-ProjectsLocationsDatasetsDataItemsResource', () { unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.datasets.dataItems; - final arg_parent = 'foo'; + final res = + api.AiplatformApi(mock).projects.locations.datasets.operations; + final arg_name = 'foo'; final arg_filter = 'foo'; - final arg_orderBy = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; - final arg_readMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -47662,10 +52020,6 @@ void main() { queryMap['filter']!.first, unittest.equals(arg_filter), ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); unittest.expect( core.int.parse(queryMap['pageSize']!.first), unittest.equals(arg_pageSize), @@ -47674,10 +52028,6 @@ void main() { queryMap['pageToken']!.first, unittest.equals(arg_pageToken), ); - unittest.expect( - queryMap['readMask']!.first, - unittest.equals(arg_readMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -47685,455 +52035,246 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ListDataItemsResponse(), + buildGoogleLongrunningListOperationsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); final response = await res.list( - arg_parent, + arg_name, filter: arg_filter, - orderBy: arg_orderBy, pageSize: arg_pageSize, pageToken: arg_pageToken, - readMask: arg_readMask, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1ListDataItemsResponse( - response as api.GoogleCloudAiplatformV1ListDataItemsResponse, + checkGoogleLongrunningListOperationsResponse( + response as api.GoogleLongrunningListOperationsResponse, ); }); - }); - - unittest.group( - 'resource-ProjectsLocationsDatasetsDataItemsAnnotationsResource', - () { - unittest.test('method--list', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.dataItems.annotations; - final arg_parent = 'foo'; - final arg_filter = 'foo'; - final arg_orderBy = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; - final arg_readMask = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['readMask']!.first, - unittest.equals(arg_readMask), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ListAnnotationsResponse(), - ); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.list( - arg_parent, - filter: arg_filter, - orderBy: arg_orderBy, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - readMask: arg_readMask, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1ListAnnotationsResponse( - response as api.GoogleCloudAiplatformV1ListAnnotationsResponse, - ); - }); - }, - ); - - unittest.group( - 'resource-ProjectsLocationsDatasetsDataItemsAnnotationsOperationsResource', - () { - unittest.test('method--cancel', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.dataItems.annotations.operations; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.cancel(arg_name, $fields: arg_$fields); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); - }); - - unittest.test('method--delete', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.dataItems.annotations.operations; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.delete(arg_name, $fields: arg_$fields); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); - }); - unittest.test('method--get', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.dataItems.annotations.operations; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + unittest.test('method--wait', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi(mock).projects.locations.datasets.operations; + final arg_name = 'foo'; + final arg_timeout = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); + } + unittest.expect( + queryMap['timeout']!.first, + unittest.equals(arg_timeout), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, - ); - }); + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.wait( + arg_name, + timeout: arg_timeout, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + }); - unittest.test('method--list', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.dataItems.annotations.operations; - final arg_name = 'foo'; - final arg_filter = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + unittest.group('resource-ProjectsLocationsDatasetsSavedQueriesResource', () { + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi(mock).projects.locations.datasets.savedQueries; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleLongrunningListOperationsResponse(), - ); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.list( - arg_name, - filter: arg_filter, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - $fields: arg_$fields, - ); - checkGoogleLongrunningListOperationsResponse( - response as api.GoogleLongrunningListOperationsResponse, - ); - }); + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); - unittest.test('method--wait', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.dataItems.annotations.operations; - final arg_name = 'foo'; - final arg_timeout = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi(mock).projects.locations.datasets.savedQueries; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_readMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); } - unittest.expect( - queryMap['timeout']!.first, - unittest.equals(arg_timeout), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['readMask']!.first, + unittest.equals(arg_readMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.wait( - arg_name, - timeout: arg_timeout, - $fields: arg_$fields, - ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, - ); - }); - }, - ); + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1ListSavedQueriesResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + readMask: arg_readMask, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1ListSavedQueriesResponse( + response as api.GoogleCloudAiplatformV1ListSavedQueriesResponse, + ); + }); + }); - unittest.group('resource-ProjectsLocationsDatasetsDataItemsOperationsResource', () { + unittest.group('resource-ProjectsLocationsDatasetsSavedQueriesOperationsResource', () { unittest.test('method--cancel', () async { final mock = HttpServerMock(); final res = api.AiplatformApi( mock, - ).projects.locations.datasets.dataItems.operations; + ).projects.locations.datasets.savedQueries.operations; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -48189,7 +52330,7 @@ void main() { final res = api.AiplatformApi( mock, - ).projects.locations.datasets.dataItems.operations; + ).projects.locations.datasets.savedQueries.operations; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -48245,7 +52386,7 @@ void main() { final res = api.AiplatformApi( mock, - ).projects.locations.datasets.dataItems.operations; + ).projects.locations.datasets.savedQueries.operations; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -48303,7 +52444,7 @@ void main() { final res = api.AiplatformApi( mock, - ).projects.locations.datasets.dataItems.operations; + ).projects.locations.datasets.savedQueries.operations; final arg_name = 'foo'; final arg_filter = 'foo'; final arg_pageSize = 42; @@ -48384,7 +52525,7 @@ void main() { final res = api.AiplatformApi( mock, - ).projects.locations.datasets.dataItems.operations; + ).projects.locations.datasets.savedQueries.operations; final arg_name = 'foo'; final arg_timeout = 'foo'; final arg_$fields = 'foo'; @@ -48447,20 +52588,22 @@ void main() { }); }); - unittest.group('resource-ProjectsLocationsDatasetsDatasetVersionsResource', () { + unittest.group('resource-ProjectsLocationsDeploymentResourcePoolsResource', () { unittest.test('method--create', () async { final mock = HttpServerMock(); final res = - api.AiplatformApi(mock).projects.locations.datasets.datasetVersions; - final arg_request = buildGoogleCloudAiplatformV1DatasetVersion(); + api.AiplatformApi(mock).projects.locations.deploymentResourcePools; + final arg_request = + buildGoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest(); final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1DatasetVersion.fromJson( + final obj = api + .GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1DatasetVersion(obj); + checkGoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -48517,7 +52660,7 @@ void main() { unittest.test('method--delete', () async { final mock = HttpServerMock(); final res = - api.AiplatformApi(mock).projects.locations.datasets.datasetVersions; + api.AiplatformApi(mock).projects.locations.deploymentResourcePools; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -48573,9 +52716,8 @@ void main() { unittest.test('method--get', () async { final mock = HttpServerMock(); final res = - api.AiplatformApi(mock).projects.locations.datasets.datasetVersions; + api.AiplatformApi(mock).projects.locations.deploymentResourcePools; final arg_name = 'foo'; - final arg_readMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -48610,10 +52752,6 @@ void main() { ); } } - unittest.expect( - queryMap['readMask']!.first, - unittest.equals(arg_readMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -48621,32 +52759,25 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1DatasetVersion(), + buildGoogleCloudAiplatformV1DeploymentResourcePool(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get( - arg_name, - readMask: arg_readMask, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1DatasetVersion( - response as api.GoogleCloudAiplatformV1DatasetVersion, + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleCloudAiplatformV1DeploymentResourcePool( + response as api.GoogleCloudAiplatformV1DeploymentResourcePool, ); }); unittest.test('method--list', () async { final mock = HttpServerMock(); final res = - api.AiplatformApi(mock).projects.locations.datasets.datasetVersions; + api.AiplatformApi(mock).projects.locations.deploymentResourcePools; final arg_parent = 'foo'; - final arg_filter = 'foo'; - final arg_orderBy = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; - final arg_readMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -48681,14 +52812,6 @@ void main() { ); } } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); unittest.expect( core.int.parse(queryMap['pageSize']!.first), unittest.equals(arg_pageSize), @@ -48697,10 +52820,6 @@ void main() { queryMap['pageToken']!.first, unittest.equals(arg_pageToken), ); - unittest.expect( - queryMap['readMask']!.first, - unittest.equals(arg_readMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -48708,7 +52827,7 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ListDatasetVersionsResponse(), + buildGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), @@ -48716,32 +52835,31 @@ void main() { ); final response = await res.list( arg_parent, - filter: arg_filter, - orderBy: arg_orderBy, pageSize: arg_pageSize, pageToken: arg_pageToken, - readMask: arg_readMask, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1ListDatasetVersionsResponse( - response as api.GoogleCloudAiplatformV1ListDatasetVersionsResponse, + checkGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse( + response + as api.GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse, ); }); unittest.test('method--patch', () async { final mock = HttpServerMock(); final res = - api.AiplatformApi(mock).projects.locations.datasets.datasetVersions; - final arg_request = buildGoogleCloudAiplatformV1DatasetVersion(); + api.AiplatformApi(mock).projects.locations.deploymentResourcePools; + final arg_request = buildGoogleCloudAiplatformV1DeploymentResourcePool(); final arg_name = 'foo'; final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1DatasetVersion.fromJson( + final obj = api + .GoogleCloudAiplatformV1DeploymentResourcePool.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1DatasetVersion(obj); + checkGoogleCloudAiplatformV1DeploymentResourcePool(obj); final path = req.url.path; var pathOffset = 0; @@ -48784,9 +52902,7 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1DatasetVersion(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, @@ -48797,16 +52913,18 @@ void main() { updateMask: arg_updateMask, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1DatasetVersion( - response as api.GoogleCloudAiplatformV1DatasetVersion, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--restore', () async { + unittest.test('method--queryDeployedModels', () async { final mock = HttpServerMock(); final res = - api.AiplatformApi(mock).projects.locations.datasets.datasetVersions; - final arg_name = 'foo'; + api.AiplatformApi(mock).projects.locations.deploymentResourcePools; + final arg_deploymentResourcePool = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -48841,87 +52959,376 @@ void main() { ); } } + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1QueryDeployedModelsResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.restore(arg_name, $fields: arg_$fields); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + final response = await res.queryDeployedModels( + arg_deploymentResourcePool, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1QueryDeployedModelsResponse( + response as api.GoogleCloudAiplatformV1QueryDeployedModelsResponse, ); }); }); - unittest.group('resource-ProjectsLocationsDatasetsOperationsResource', () { - unittest.test('method--cancel', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.datasets.operations; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + unittest.group( + 'resource-ProjectsLocationsDeploymentResourcePoolsOperationsResource', + () { + unittest.test('method--cancel', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.deploymentResourcePools.operations; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleProtobufEmpty()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.cancel(arg_name, $fields: arg_$fields); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); + }); + + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.deploymentResourcePools.operations; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleProtobufEmpty()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); + }); + + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.deploymentResourcePools.operations; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.deploymentResourcePools.operations; + final arg_name = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleLongrunningListOperationsResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_name, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkGoogleLongrunningListOperationsResponse( + response as api.GoogleLongrunningListOperationsResponse, + ); + }); - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); + unittest.test('method--wait', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.deploymentResourcePools.operations; + final arg_name = 'foo'; + final arg_timeout = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); + unittest.expect( + queryMap['timeout']!.first, + unittest.equals(arg_timeout), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.cancel(arg_name, $fields: arg_$fields); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); - }); + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.wait( + arg_name, + timeout: arg_timeout, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + }, + ); - unittest.test('method--delete', () async { + unittest.group('resource-ProjectsLocationsEndpointsResource', () { + unittest.test('method--computeTokens', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.datasets.operations; - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.endpoints; + final arg_request = buildGoogleCloudAiplatformV1ComputeTokensRequest(); + final arg_endpoint = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1ComputeTokensRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1ComputeTokensRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -48959,23 +53366,36 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1ComputeTokensResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.delete(arg_name, $fields: arg_$fields); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); + final response = await res.computeTokens( + arg_request, + arg_endpoint, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1ComputeTokensResponse( + response as api.GoogleCloudAiplatformV1ComputeTokensResponse, + ); }); - unittest.test('method--get', () async { + unittest.test('method--countTokens', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.datasets.operations; - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.endpoints; + final arg_request = buildGoogleCloudAiplatformV1CountTokensRequest(); + final arg_endpoint = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1CountTokensRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1CountTokensRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -49013,28 +53433,37 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1CountTokensResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + final response = await res.countTokens( + arg_request, + arg_endpoint, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1CountTokensResponse( + response as api.GoogleCloudAiplatformV1CountTokensResponse, ); }); - unittest.test('method--list', () async { + unittest.test('method--create', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.datasets.operations; - final arg_name = 'foo'; - final arg_filter = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.endpoints; + final arg_request = buildGoogleCloudAiplatformV1Endpoint(); + final arg_parent = 'foo'; + final arg_endpointId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1Endpoint.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1Endpoint(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -49067,16 +53496,8 @@ void main() { } } unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), + queryMap['endpointId']!.first, + unittest.equals(arg_endpointId), ); unittest.expect( queryMap['fields']!.first, @@ -49084,31 +53505,26 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleLongrunningListOperationsResponse(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.list( - arg_name, - filter: arg_filter, - pageSize: arg_pageSize, - pageToken: arg_pageToken, + final response = await res.create( + arg_request, + arg_parent, + endpointId: arg_endpointId, $fields: arg_$fields, ); - checkGoogleLongrunningListOperationsResponse( - response as api.GoogleLongrunningListOperationsResponse, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--wait', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.datasets.operations; + final res = api.AiplatformApi(mock).projects.locations.endpoints; final arg_name = 'foo'; - final arg_timeout = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -49143,10 +53559,6 @@ void main() { ); } } - unittest.expect( - queryMap['timeout']!.first, - unittest.equals(arg_timeout), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -49158,26 +53570,25 @@ void main() { }), true, ); - final response = await res.wait( - arg_name, - timeout: arg_timeout, - $fields: arg_$fields, - ); + final response = await res.delete(arg_name, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation, ); }); - }); - unittest.group('resource-ProjectsLocationsDatasetsSavedQueriesResource', () { - unittest.test('method--delete', () async { + unittest.test('method--deployModel', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.datasets.savedQueries; - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.endpoints; + final arg_request = buildGoogleCloudAiplatformV1DeployModelRequest(); + final arg_endpoint = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1DeployModelRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1DeployModelRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -49220,25 +53631,29 @@ void main() { }), true, ); - final response = await res.delete(arg_name, $fields: arg_$fields); + final response = await res.deployModel( + arg_request, + arg_endpoint, + $fields: arg_$fields, + ); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--list', () async { + unittest.test('method--directPredict', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.datasets.savedQueries; - final arg_parent = 'foo'; - final arg_filter = 'foo'; - final arg_orderBy = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; - final arg_readMask = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.endpoints; + final arg_request = buildGoogleCloudAiplatformV1DirectPredictRequest(); + final arg_endpoint = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1DirectPredictRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1DirectPredictRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -49270,26 +53685,6 @@ void main() { ); } } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['readMask']!.first, - unittest.equals(arg_readMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -49297,38 +53692,36 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ListSavedQueriesResponse(), + buildGoogleCloudAiplatformV1DirectPredictResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.list( - arg_parent, - filter: arg_filter, - orderBy: arg_orderBy, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - readMask: arg_readMask, + final response = await res.directPredict( + arg_request, + arg_endpoint, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1ListSavedQueriesResponse( - response as api.GoogleCloudAiplatformV1ListSavedQueriesResponse, + checkGoogleCloudAiplatformV1DirectPredictResponse( + response as api.GoogleCloudAiplatformV1DirectPredictResponse, ); }); - }); - unittest.group('resource-ProjectsLocationsDatasetsSavedQueriesOperationsResource', () { - unittest.test('method--cancel', () async { + unittest.test('method--directRawPredict', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.savedQueries.operations; - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.endpoints; + final arg_request = buildGoogleCloudAiplatformV1DirectRawPredictRequest(); + final arg_endpoint = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudAiplatformV1DirectRawPredictRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1DirectRawPredictRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -49366,25 +53759,36 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1DirectRawPredictResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.cancel(arg_name, $fields: arg_$fields); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); + final response = await res.directRawPredict( + arg_request, + arg_endpoint, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1DirectRawPredictResponse( + response as api.GoogleCloudAiplatformV1DirectRawPredictResponse, + ); }); - unittest.test('method--delete', () async { + unittest.test('method--explain', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.savedQueries.operations; - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.endpoints; + final arg_request = buildGoogleCloudAiplatformV1ExplainRequest(); + final arg_endpoint = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1ExplainRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1ExplainRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -49422,25 +53826,38 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1ExplainResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.delete(arg_name, $fields: arg_$fields); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); + final response = await res.explain( + arg_request, + arg_endpoint, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1ExplainResponse( + response as api.GoogleCloudAiplatformV1ExplainResponse, + ); }); - unittest.test('method--get', () async { + unittest.test('method--fetchPredictOperation', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.savedQueries.operations; - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.endpoints; + final arg_request = + buildGoogleCloudAiplatformV1FetchPredictOperationRequest(); + final arg_endpoint = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudAiplatformV1FetchPredictOperationRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1FetchPredictOperationRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -49483,25 +53900,30 @@ void main() { }), true, ); - final response = await res.get(arg_name, $fields: arg_$fields); + final response = await res.fetchPredictOperation( + arg_request, + arg_endpoint, + $fields: arg_$fields, + ); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--list', () async { + unittest.test('method--generateContent', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.savedQueries.operations; - final arg_name = 'foo'; - final arg_filter = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.endpoints; + final arg_request = buildGoogleCloudAiplatformV1GenerateContentRequest(); + final arg_model = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudAiplatformV1GenerateContentRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1GenerateContentRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -49533,18 +53955,6 @@ void main() { ); } } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -49552,32 +53962,26 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleLongrunningListOperationsResponse(), + buildGoogleCloudAiplatformV1GenerateContentResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.list( - arg_name, - filter: arg_filter, - pageSize: arg_pageSize, - pageToken: arg_pageToken, + final response = await res.generateContent( + arg_request, + arg_model, $fields: arg_$fields, ); - checkGoogleLongrunningListOperationsResponse( - response as api.GoogleLongrunningListOperationsResponse, + checkGoogleCloudAiplatformV1GenerateContentResponse( + response as api.GoogleCloudAiplatformV1GenerateContentResponse, ); }); - unittest.test('method--wait', () async { + unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.datasets.savedQueries.operations; + final res = api.AiplatformApi(mock).projects.locations.endpoints; final arg_name = 'foo'; - final arg_timeout = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -49612,49 +54016,38 @@ void main() { ); } } - unittest.expect( - queryMap['timeout']!.first, - unittest.equals(arg_timeout), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1Endpoint(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.wait( - arg_name, - timeout: arg_timeout, - $fields: arg_$fields, - ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleCloudAiplatformV1Endpoint( + response as api.GoogleCloudAiplatformV1Endpoint, ); }); - }); - unittest.group('resource-ProjectsLocationsDeploymentResourcePoolsResource', () { - unittest.test('method--create', () async { + unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.deploymentResourcePools; - final arg_request = - buildGoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest(); + final res = api.AiplatformApi(mock).projects.locations.endpoints; final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_gdcZone = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_readMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -49687,90 +54080,72 @@ void main() { } } unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), + queryMap['filter']!.first, + unittest.equals(arg_filter), ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.create( - arg_request, - arg_parent, - $fields: arg_$fields, - ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, - ); - }); - - unittest.test('method--delete', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.deploymentResourcePools; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), + queryMap['gdcZone']!.first, + unittest.equals(arg_gdcZone), ); - pathOffset += 1; unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['readMask']!.first, + unittest.equals(arg_readMask), ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1ListEndpointsResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.delete(arg_name, $fields: arg_$fields); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + final response = await res.list( + arg_parent, + filter: arg_filter, + gdcZone: arg_gdcZone, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + readMask: arg_readMask, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1ListEndpointsResponse( + response as api.GoogleCloudAiplatformV1ListEndpointsResponse, ); }); - unittest.test('method--get', () async { + unittest.test('method--mutateDeployedModel', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.deploymentResourcePools; - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.endpoints; + final arg_request = + buildGoogleCloudAiplatformV1MutateDeployedModelRequest(); + final arg_endpoint = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudAiplatformV1MutateDeployedModelRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1MutateDeployedModelRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -49808,29 +54183,35 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1DeploymentResourcePool(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleCloudAiplatformV1DeploymentResourcePool( - response as api.GoogleCloudAiplatformV1DeploymentResourcePool, + final response = await res.mutateDeployedModel( + arg_request, + arg_endpoint, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--list', () async { + unittest.test('method--patch', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.deploymentResourcePools; - final arg_parent = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.endpoints; + final arg_request = buildGoogleCloudAiplatformV1Endpoint(); + final arg_name = 'foo'; + final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1Endpoint.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1Endpoint(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -49863,12 +54244,8 @@ void main() { } } unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), ); unittest.expect( queryMap['fields']!.first, @@ -49877,39 +54254,35 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse(), + buildGoogleCloudAiplatformV1Endpoint(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.list( - arg_parent, - pageSize: arg_pageSize, - pageToken: arg_pageToken, + final response = await res.patch( + arg_request, + arg_name, + updateMask: arg_updateMask, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse( - response - as api.GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse, + checkGoogleCloudAiplatformV1Endpoint( + response as api.GoogleCloudAiplatformV1Endpoint, ); }); - unittest.test('method--patch', () async { + unittest.test('method--predict', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.deploymentResourcePools; - final arg_request = buildGoogleCloudAiplatformV1DeploymentResourcePool(); - final arg_name = 'foo'; - final arg_updateMask = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.endpoints; + final arg_request = buildGoogleCloudAiplatformV1PredictRequest(); + final arg_endpoint = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1DeploymentResourcePool.fromJson( + final obj = api.GoogleCloudAiplatformV1PredictRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1DeploymentResourcePool(obj); + checkGoogleCloudAiplatformV1PredictRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -49942,42 +54315,44 @@ void main() { ); } } - unittest.expect( - queryMap['updateMask']!.first, - unittest.equals(arg_updateMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1PredictResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.patch( + final response = await res.predict( arg_request, - arg_name, - updateMask: arg_updateMask, + arg_endpoint, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkGoogleCloudAiplatformV1PredictResponse( + response as api.GoogleCloudAiplatformV1PredictResponse, ); }); - unittest.test('method--queryDeployedModels', () async { + unittest.test('method--predictLongRunning', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.deploymentResourcePools; - final arg_deploymentResourcePool = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.endpoints; + final arg_request = + buildGoogleCloudAiplatformV1PredictLongRunningRequest(); + final arg_endpoint = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudAiplatformV1PredictLongRunningRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1PredictLongRunningRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -50009,375 +54384,39 @@ void main() { ); } } - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1QueryDeployedModelsResponse(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.queryDeployedModels( - arg_deploymentResourcePool, - pageSize: arg_pageSize, - pageToken: arg_pageToken, + final response = await res.predictLongRunning( + arg_request, + arg_endpoint, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1QueryDeployedModelsResponse( - response as api.GoogleCloudAiplatformV1QueryDeployedModelsResponse, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); - }); - - unittest.group( - 'resource-ProjectsLocationsDeploymentResourcePoolsOperationsResource', - () { - unittest.test('method--cancel', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.deploymentResourcePools.operations; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.cancel(arg_name, $fields: arg_$fields); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); - }); - - unittest.test('method--delete', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.deploymentResourcePools.operations; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.delete(arg_name, $fields: arg_$fields); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); - }); - - unittest.test('method--get', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.deploymentResourcePools.operations; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, - ); - }); - - unittest.test('method--list', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.deploymentResourcePools.operations; - final arg_name = 'foo'; - final arg_filter = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleLongrunningListOperationsResponse(), - ); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.list( - arg_name, - filter: arg_filter, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - $fields: arg_$fields, - ); - checkGoogleLongrunningListOperationsResponse( - response as api.GoogleLongrunningListOperationsResponse, - ); - }); - - unittest.test('method--wait', () async { - final mock = HttpServerMock(); - final res = - api.AiplatformApi( - mock, - ).projects.locations.deploymentResourcePools.operations; - final arg_name = 'foo'; - final arg_timeout = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['timeout']!.first, - unittest.equals(arg_timeout), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.wait( - arg_name, - timeout: arg_timeout, - $fields: arg_$fields, - ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, - ); - }); - }, - ); - unittest.group('resource-ProjectsLocationsEndpointsResource', () { - unittest.test('method--computeTokens', () async { + unittest.test('method--rawPredict', () async { final mock = HttpServerMock(); final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = buildGoogleCloudAiplatformV1ComputeTokensRequest(); + final arg_request = buildGoogleCloudAiplatformV1RawPredictRequest(); final arg_endpoint = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1ComputeTokensRequest.fromJson( + final obj = api.GoogleCloudAiplatformV1RawPredictRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1ComputeTokensRequest(obj); + checkGoogleCloudAiplatformV1RawPredictRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -50416,35 +54455,32 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ComputeTokensResponse(), - ); + final resp = convert.json.encode(buildGoogleApiHttpBody()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.computeTokens( + final response = await res.rawPredict( arg_request, arg_endpoint, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1ComputeTokensResponse( - response as api.GoogleCloudAiplatformV1ComputeTokensResponse, - ); + checkGoogleApiHttpBody(response as api.GoogleApiHttpBody); }); - unittest.test('method--countTokens', () async { + unittest.test('method--serverStreamingPredict', () async { final mock = HttpServerMock(); final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = buildGoogleCloudAiplatformV1CountTokensRequest(); + final arg_request = buildGoogleCloudAiplatformV1StreamingPredictRequest(); final arg_endpoint = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1CountTokensRequest.fromJson( + final obj = api + .GoogleCloudAiplatformV1StreamingPredictRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1CountTokensRequest(obj); + checkGoogleCloudAiplatformV1StreamingPredictRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -50484,35 +54520,35 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1CountTokensResponse(), + buildGoogleCloudAiplatformV1StreamingPredictResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.countTokens( + final response = await res.serverStreamingPredict( arg_request, arg_endpoint, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1CountTokensResponse( - response as api.GoogleCloudAiplatformV1CountTokensResponse, + checkGoogleCloudAiplatformV1StreamingPredictResponse( + response as api.GoogleCloudAiplatformV1StreamingPredictResponse, ); }); - unittest.test('method--create', () async { + unittest.test('method--streamGenerateContent', () async { final mock = HttpServerMock(); final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = buildGoogleCloudAiplatformV1Endpoint(); - final arg_parent = 'foo'; - final arg_endpointId = 'foo'; + final arg_request = buildGoogleCloudAiplatformV1GenerateContentRequest(); + final arg_model = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1Endpoint.fromJson( + final obj = api + .GoogleCloudAiplatformV1GenerateContentRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1Endpoint(obj); + checkGoogleCloudAiplatformV1GenerateContentRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -50545,39 +54581,43 @@ void main() { ); } } - unittest.expect( - queryMap['endpointId']!.first, - unittest.equals(arg_endpointId), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1GenerateContentResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.create( + final response = await res.streamGenerateContent( arg_request, - arg_parent, - endpointId: arg_endpointId, + arg_model, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkGoogleCloudAiplatformV1GenerateContentResponse( + response as api.GoogleCloudAiplatformV1GenerateContentResponse, ); }); - unittest.test('method--delete', () async { + unittest.test('method--streamRawPredict', () async { final mock = HttpServerMock(); final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_name = 'foo'; + final arg_request = buildGoogleCloudAiplatformV1StreamRawPredictRequest(); + final arg_endpoint = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudAiplatformV1StreamRawPredictRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1StreamRawPredictRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -50615,29 +54655,31 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode(buildGoogleApiHttpBody()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.delete(arg_name, $fields: arg_$fields); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + final response = await res.streamRawPredict( + arg_request, + arg_endpoint, + $fields: arg_$fields, ); + checkGoogleApiHttpBody(response as api.GoogleApiHttpBody); }); - unittest.test('method--deployModel', () async { + unittest.test('method--undeployModel', () async { final mock = HttpServerMock(); final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = buildGoogleCloudAiplatformV1DeployModelRequest(); + final arg_request = buildGoogleCloudAiplatformV1UndeployModelRequest(); final arg_endpoint = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1DeployModelRequest.fromJson( + final obj = api.GoogleCloudAiplatformV1UndeployModelRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1DeployModelRequest(obj); + checkGoogleCloudAiplatformV1UndeployModelRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -50681,7 +54723,7 @@ void main() { }), true, ); - final response = await res.deployModel( + final response = await res.undeployModel( arg_request, arg_endpoint, $fields: arg_$fields, @@ -50691,18 +54733,20 @@ void main() { ); }); - unittest.test('method--directPredict', () async { + unittest.test('method--update', () async { final mock = HttpServerMock(); final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = buildGoogleCloudAiplatformV1DirectPredictRequest(); - final arg_endpoint = 'foo'; + final arg_request = + buildGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest(); + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1DirectPredictRequest.fromJson( + final obj = api + .GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1DirectPredictRequest(obj); + checkGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -50741,36 +54785,35 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1DirectPredictResponse(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.directPredict( + final response = await res.update( arg_request, - arg_endpoint, + arg_name, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1DirectPredictResponse( - response as api.GoogleCloudAiplatformV1DirectPredictResponse, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); + }); - unittest.test('method--directRawPredict', () async { + unittest.group('resource-ProjectsLocationsEndpointsChatResource', () { + unittest.test('method--completions', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = buildGoogleCloudAiplatformV1DirectRawPredictRequest(); + final res = api.AiplatformApi(mock).projects.locations.endpoints.chat; + final arg_request = buildGoogleApiHttpBody(); final arg_endpoint = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1DirectRawPredictRequest.fromJson( + final obj = api.GoogleApiHttpBody.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1DirectRawPredictRequest(obj); + checkGoogleApiHttpBody(obj); final path = req.url.path; var pathOffset = 0; @@ -50809,104 +54852,109 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1DirectRawPredictResponse(), - ); + final resp = convert.json.encode(buildGoogleApiHttpBody()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.directRawPredict( + final response = await res.completions( arg_request, arg_endpoint, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1DirectRawPredictResponse( - response as api.GoogleCloudAiplatformV1DirectRawPredictResponse, - ); + checkGoogleApiHttpBody(response as api.GoogleApiHttpBody); }); + }); - unittest.test('method--explain', () async { - final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = buildGoogleCloudAiplatformV1ExplainRequest(); - final arg_endpoint = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1ExplainRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1ExplainRequest(obj); + unittest.group( + 'resource-ProjectsLocationsEndpointsDeployedModelsInvokeResource', + () { + unittest.test('method--invoke', () async { + final mock = HttpServerMock(); + final res = + api.AiplatformApi( + mock, + ).projects.locations.endpoints.deployedModels.invoke; + final arg_request = buildGoogleCloudAiplatformV1InvokeRequest(); + final arg_endpoint = 'foo'; + final arg_deployedModelId = 'foo'; + final arg_invokeId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1InvokeRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1InvokeRequest(obj); - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ExplainResponse(), - ); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.explain( - arg_request, - arg_endpoint, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1ExplainResponse( - response as api.GoogleCloudAiplatformV1ExplainResponse, - ); - }); + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleApiHttpBody()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.invoke( + arg_request, + arg_endpoint, + arg_deployedModelId, + arg_invokeId, + $fields: arg_$fields, + ); + checkGoogleApiHttpBody(response as api.GoogleApiHttpBody); + }); + }, + ); - unittest.test('method--fetchPredictOperation', () async { + unittest.group('resource-ProjectsLocationsEndpointsInvokeResource', () { + unittest.test('method--invoke', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = - buildGoogleCloudAiplatformV1FetchPredictOperationRequest(); + final res = api.AiplatformApi(mock).projects.locations.endpoints.invoke; + final arg_request = buildGoogleCloudAiplatformV1InvokeRequest(); final arg_endpoint = 'foo'; + final arg_invokeId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1FetchPredictOperationRequest.fromJson( + final obj = api.GoogleCloudAiplatformV1InvokeRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1FetchPredictOperationRequest(obj); + checkGoogleCloudAiplatformV1InvokeRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -50945,34 +54993,35 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode(buildGoogleApiHttpBody()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.fetchPredictOperation( + final response = await res.invoke( arg_request, arg_endpoint, + arg_invokeId, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, - ); + checkGoogleApiHttpBody(response as api.GoogleApiHttpBody); }); + }); - unittest.test('method--generateContent', () async { + unittest.group('resource-ProjectsLocationsEndpointsOpenapiResource', () { + unittest.test('method--embeddings', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = buildGoogleCloudAiplatformV1GenerateContentRequest(); - final arg_model = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.endpoints.openapi; + final arg_request = buildGoogleApiHttpBody(); + final arg_endpoint = 'foo'; + final arg_deployedModelId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1GenerateContentRequest.fromJson( + final obj = api.GoogleApiHttpBody.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1GenerateContentRequest(obj); + checkGoogleApiHttpBody(obj); final path = req.url.path; var pathOffset = 0; @@ -51005,32 +55054,36 @@ void main() { ); } } + unittest.expect( + queryMap['deployedModelId']!.first, + unittest.equals(arg_deployedModelId), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1GenerateContentResponse(), - ); + final resp = convert.json.encode(buildGoogleApiHttpBody()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.generateContent( + final response = await res.embeddings( arg_request, - arg_model, + arg_endpoint, + deployedModelId: arg_deployedModelId, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1GenerateContentResponse( - response as api.GoogleCloudAiplatformV1GenerateContentResponse, - ); + checkGoogleApiHttpBody(response as api.GoogleApiHttpBody); }); + }); - unittest.test('method--get', () async { + unittest.group('resource-ProjectsLocationsEndpointsOperationsResource', () { + unittest.test('method--cancel', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; + final res = + api.AiplatformApi(mock).projects.locations.endpoints.operations; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -51072,29 +55125,20 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1Endpoint(), - ); + final resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleCloudAiplatformV1Endpoint( - response as api.GoogleCloudAiplatformV1Endpoint, - ); + final response = await res.cancel(arg_name, $fields: arg_$fields); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); - unittest.test('method--list', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_parent = 'foo'; - final arg_filter = 'foo'; - final arg_gdcZone = 'foo'; - final arg_orderBy = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; - final arg_readMask = 'foo'; + final res = + api.AiplatformApi(mock).projects.locations.endpoints.operations; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -51129,73 +55173,29 @@ void main() { ); } } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - queryMap['gdcZone']!.first, - unittest.equals(arg_gdcZone), - ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['readMask']!.first, - unittest.equals(arg_readMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1ListEndpointsResponse(), - ); + final resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.list( - arg_parent, - filter: arg_filter, - gdcZone: arg_gdcZone, - orderBy: arg_orderBy, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - readMask: arg_readMask, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1ListEndpointsResponse( - response as api.GoogleCloudAiplatformV1ListEndpointsResponse, - ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); - unittest.test('method--mutateDeployedModel', () async { + unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = - buildGoogleCloudAiplatformV1MutateDeployedModelRequest(); - final arg_endpoint = 'foo'; + final res = + api.AiplatformApi(mock).projects.locations.endpoints.operations; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1MutateDeployedModelRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1MutateDeployedModelRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -51238,30 +55238,23 @@ void main() { }), true, ); - final response = await res.mutateDeployedModel( - arg_request, - arg_endpoint, - $fields: arg_$fields, - ); + final response = await res.get(arg_name, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--patch', () async { + unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = buildGoogleCloudAiplatformV1Endpoint(); + final res = + api.AiplatformApi(mock).projects.locations.endpoints.operations; final arg_name = 'foo'; - final arg_updateMask = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1Endpoint.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1Endpoint(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -51294,8 +55287,16 @@ void main() { } } unittest.expect( - queryMap['updateMask']!.first, - unittest.equals(arg_updateMask), + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), ); unittest.expect( queryMap['fields']!.first, @@ -51304,36 +55305,33 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1Endpoint(), + buildGoogleLongrunningListOperationsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.patch( - arg_request, + final response = await res.list( arg_name, - updateMask: arg_updateMask, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1Endpoint( - response as api.GoogleCloudAiplatformV1Endpoint, + checkGoogleLongrunningListOperationsResponse( + response as api.GoogleLongrunningListOperationsResponse, ); }); - unittest.test('method--predict', () async { + unittest.test('method--wait', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = buildGoogleCloudAiplatformV1PredictRequest(); - final arg_endpoint = 'foo'; + final res = + api.AiplatformApi(mock).projects.locations.endpoints.operations; + final arg_name = 'foo'; + final arg_timeout = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1PredictRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1PredictRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -51365,43 +55363,45 @@ void main() { ); } } + unittest.expect( + queryMap['timeout']!.first, + unittest.equals(arg_timeout), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudAiplatformV1PredictResponse(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.predict( - arg_request, - arg_endpoint, + final response = await res.wait( + arg_name, + timeout: arg_timeout, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1PredictResponse( - response as api.GoogleCloudAiplatformV1PredictResponse, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); + }); - unittest.test('method--predictLongRunning', () async { + unittest.group('resource-ProjectsLocationsEvaluationItemsResource', () { + unittest.test('method--create', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = - buildGoogleCloudAiplatformV1PredictLongRunningRequest(); - final arg_endpoint = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.evaluationItems; + final arg_request = buildGoogleCloudAiplatformV1EvaluationItem(); + final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1PredictLongRunningRequest.fromJson( + final obj = api.GoogleCloudAiplatformV1EvaluationItem.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1PredictLongRunningRequest(obj); + checkGoogleCloudAiplatformV1EvaluationItem(obj); final path = req.url.path; var pathOffset = 0; @@ -51440,34 +55440,30 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1EvaluationItem(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.predictLongRunning( + final response = await res.create( arg_request, - arg_endpoint, + arg_parent, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkGoogleCloudAiplatformV1EvaluationItem( + response as api.GoogleCloudAiplatformV1EvaluationItem, ); }); - unittest.test('method--rawPredict', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = buildGoogleCloudAiplatformV1RawPredictRequest(); - final arg_endpoint = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.evaluationItems; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1RawPredictRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1RawPredictRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -51505,33 +55501,24 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleApiHttpBody()); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.rawPredict( - arg_request, - arg_endpoint, - $fields: arg_$fields, + final response = await res.delete(arg_name, $fields: arg_$fields); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); - checkGoogleApiHttpBody(response as api.GoogleApiHttpBody); }); - unittest.test('method--serverStreamingPredict', () async { + unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = buildGoogleCloudAiplatformV1StreamingPredictRequest(); - final arg_endpoint = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.evaluationItems; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1StreamingPredictRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1StreamingPredictRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -51570,36 +55557,29 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1StreamingPredictResponse(), + buildGoogleCloudAiplatformV1EvaluationItem(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.serverStreamingPredict( - arg_request, - arg_endpoint, - $fields: arg_$fields, - ); - checkGoogleCloudAiplatformV1StreamingPredictResponse( - response as api.GoogleCloudAiplatformV1StreamingPredictResponse, + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleCloudAiplatformV1EvaluationItem( + response as api.GoogleCloudAiplatformV1EvaluationItem, ); }); - unittest.test('method--streamGenerateContent', () async { + unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = buildGoogleCloudAiplatformV1GenerateContentRequest(); - final arg_model = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.evaluationItems; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1GenerateContentRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1GenerateContentRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -51631,6 +55611,22 @@ void main() { ); } } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -51638,35 +55634,41 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudAiplatformV1GenerateContentResponse(), + buildGoogleCloudAiplatformV1ListEvaluationItemsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.streamGenerateContent( - arg_request, - arg_model, + final response = await res.list( + arg_parent, + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields, ); - checkGoogleCloudAiplatformV1GenerateContentResponse( - response as api.GoogleCloudAiplatformV1GenerateContentResponse, + checkGoogleCloudAiplatformV1ListEvaluationItemsResponse( + response as api.GoogleCloudAiplatformV1ListEvaluationItemsResponse, ); }); + }); - unittest.test('method--streamRawPredict', () async { + unittest.group('resource-ProjectsLocationsEvaluationRunsResource', () { + unittest.test('method--cancel', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = buildGoogleCloudAiplatformV1StreamRawPredictRequest(); - final arg_endpoint = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.evaluationRuns; + final arg_request = + buildGoogleCloudAiplatformV1CancelEvaluationRunRequest(); + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { final obj = api - .GoogleCloudAiplatformV1StreamRawPredictRequest.fromJson( + .GoogleCloudAiplatformV1CancelEvaluationRunRequest.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1StreamRawPredictRequest(obj); + checkGoogleCloudAiplatformV1CancelEvaluationRunRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -51705,31 +55707,31 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleApiHttpBody()); + final resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.streamRawPredict( + final response = await res.cancel( arg_request, - arg_endpoint, + arg_name, $fields: arg_$fields, ); - checkGoogleApiHttpBody(response as api.GoogleApiHttpBody); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); - unittest.test('method--undeployModel', () async { + unittest.test('method--create', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = buildGoogleCloudAiplatformV1UndeployModelRequest(); - final arg_endpoint = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.evaluationRuns; + final arg_request = buildGoogleCloudAiplatformV1EvaluationRun(); + final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleCloudAiplatformV1UndeployModelRequest.fromJson( + final obj = api.GoogleCloudAiplatformV1EvaluationRun.fromJson( json as core.Map, ); - checkGoogleCloudAiplatformV1UndeployModelRequest(obj); + checkGoogleCloudAiplatformV1EvaluationRun(obj); final path = req.url.path; var pathOffset = 0; @@ -51768,36 +55770,30 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1EvaluationRun(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.undeployModel( + final response = await res.create( arg_request, - arg_endpoint, + arg_parent, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkGoogleCloudAiplatformV1EvaluationRun( + response as api.GoogleCloudAiplatformV1EvaluationRun, ); }); - unittest.test('method--update', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints; - final arg_request = - buildGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest(); + final res = api.AiplatformApi(mock).projects.locations.evaluationRuns; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudAiplatformV1UpdateEndpointLongRunningRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -51840,31 +55836,80 @@ void main() { }), true, ); - final response = await res.update( - arg_request, - arg_name, - $fields: arg_$fields, - ); + final response = await res.delete(arg_name, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation, ); }); - }); - unittest.group('resource-ProjectsLocationsEndpointsChatResource', () { - unittest.test('method--completions', () async { + unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = api.AiplatformApi(mock).projects.locations.endpoints.chat; - final arg_request = buildGoogleApiHttpBody(); - final arg_endpoint = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.evaluationRuns; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleApiHttpBody.fromJson( - json as core.Map, + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), ); - checkGoogleApiHttpBody(obj); + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1EvaluationRun(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleCloudAiplatformV1EvaluationRun( + response as api.GoogleCloudAiplatformV1EvaluationRun, + ); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = api.AiplatformApi(mock).projects.locations.evaluationRuns; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { final path = req.url.path; var pathOffset = 0; core.int index; @@ -51896,35 +55941,63 @@ void main() { ); } } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleApiHttpBody()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1ListEvaluationRunsResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.completions( - arg_request, - arg_endpoint, + final response = await res.list( + arg_parent, + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields, ); - checkGoogleApiHttpBody(response as api.GoogleApiHttpBody); + checkGoogleCloudAiplatformV1ListEvaluationRunsResponse( + response as api.GoogleCloudAiplatformV1ListEvaluationRunsResponse, + ); }); }); - unittest.group('resource-ProjectsLocationsEndpointsOperationsResource', () { - unittest.test('method--cancel', () async { + unittest.group('resource-ProjectsLocationsEvaluationSetsResource', () { + unittest.test('method--create', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.endpoints.operations; - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.evaluationSets; + final arg_request = buildGoogleCloudAiplatformV1EvaluationSet(); + final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1EvaluationSet.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1EvaluationSet(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -51962,19 +56035,26 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1EvaluationSet(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.cancel(arg_name, $fields: arg_$fields); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); + final response = await res.create( + arg_request, + arg_parent, + $fields: arg_$fields, + ); + checkGoogleCloudAiplatformV1EvaluationSet( + response as api.GoogleCloudAiplatformV1EvaluationSet, + ); }); unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.endpoints.operations; + final res = api.AiplatformApi(mock).projects.locations.evaluationSets; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -52016,19 +56096,20 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleProtobufEmpty()); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); final response = await res.delete(arg_name, $fields: arg_$fields); - checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); }); unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.endpoints.operations; + final res = api.AiplatformApi(mock).projects.locations.evaluationSets; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -52070,23 +56151,25 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1EvaluationSet(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkGoogleCloudAiplatformV1EvaluationSet( + response as api.GoogleCloudAiplatformV1EvaluationSet, ); }); unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.endpoints.operations; - final arg_name = 'foo'; + final res = api.AiplatformApi(mock).projects.locations.evaluationSets; + final arg_parent = 'foo'; final arg_filter = 'foo'; + final arg_orderBy = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; final arg_$fields = 'foo'; @@ -52127,6 +56210,10 @@ void main() { queryMap['filter']!.first, unittest.equals(arg_filter), ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); unittest.expect( core.int.parse(queryMap['pageSize']!.first), unittest.equals(arg_pageSize), @@ -52142,33 +56229,39 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleLongrunningListOperationsResponse(), + buildGoogleCloudAiplatformV1ListEvaluationSetsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); final response = await res.list( - arg_name, + arg_parent, filter: arg_filter, + orderBy: arg_orderBy, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields, ); - checkGoogleLongrunningListOperationsResponse( - response as api.GoogleLongrunningListOperationsResponse, + checkGoogleCloudAiplatformV1ListEvaluationSetsResponse( + response as api.GoogleCloudAiplatformV1ListEvaluationSetsResponse, ); }); - unittest.test('method--wait', () async { + unittest.test('method--patch', () async { final mock = HttpServerMock(); - final res = - api.AiplatformApi(mock).projects.locations.endpoints.operations; + final res = api.AiplatformApi(mock).projects.locations.evaluationSets; + final arg_request = buildGoogleCloudAiplatformV1EvaluationSet(); final arg_name = 'foo'; - final arg_timeout = 'foo'; + final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudAiplatformV1EvaluationSet.fromJson( + json as core.Map, + ); + checkGoogleCloudAiplatformV1EvaluationSet(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -52201,8 +56294,8 @@ void main() { } } unittest.expect( - queryMap['timeout']!.first, - unittest.equals(arg_timeout), + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), ); unittest.expect( queryMap['fields']!.first, @@ -52210,18 +56303,21 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudAiplatformV1EvaluationSet(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.wait( + final response = await res.patch( + arg_request, arg_name, - timeout: arg_timeout, + updateMask: arg_updateMask, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkGoogleCloudAiplatformV1EvaluationSet( + response as api.GoogleCloudAiplatformV1EvaluationSet, ); }); }); @@ -52703,7 +56799,7 @@ void main() { final mock = HttpServerMock(); final res = api.AiplatformApi(mock).projects.locations.featureGroups; final arg_resource = 'foo'; - final arg_permissions = buildUnnamed463(); + final arg_permissions = buildUnnamed502(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -54199,7 +58295,7 @@ void main() { final res = api.AiplatformApi(mock).projects.locations.featureOnlineStores; final arg_resource = 'foo'; - final arg_permissions = buildUnnamed464(); + final arg_permissions = buildUnnamed503(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -55047,7 +59143,7 @@ void main() { mock, ).projects.locations.featureOnlineStores.featureViews; final arg_resource = 'foo'; - final arg_permissions = buildUnnamed465(); + final arg_permissions = buildUnnamed504(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -56424,7 +60520,7 @@ void main() { final mock = HttpServerMock(); final res = api.AiplatformApi(mock).projects.locations.featurestores; final arg_resource = 'foo'; - final arg_permissions = buildUnnamed466(); + final arg_permissions = buildUnnamed505(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -57324,7 +61420,7 @@ void main() { final res = api.AiplatformApi(mock).projects.locations.featurestores.entityTypes; final arg_resource = 'foo'; - final arg_permissions = buildUnnamed467(); + final arg_permissions = buildUnnamed506(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -66966,7 +71062,7 @@ void main() { final mock = HttpServerMock(); final res = api.AiplatformApi(mock).projects.locations.models; final arg_resource = 'foo'; - final arg_permissions = buildUnnamed468(); + final arg_permissions = buildUnnamed507(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -69768,7 +73864,7 @@ void main() { final res = api.AiplatformApi(mock).projects.locations.notebookRuntimeTemplates; final arg_resource = 'foo'; - final arg_permissions = buildUnnamed469(); + final arg_permissions = buildUnnamed508(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -74067,6 +78163,7 @@ void main() { final res = api.AiplatformApi(mock).projects.locations.ragCorpora.ragFiles; final arg_name = 'foo'; + final arg_forceDelete = true; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -74101,6 +78198,10 @@ void main() { ); } } + unittest.expect( + queryMap['forceDelete']!.first, + unittest.equals('$arg_forceDelete'), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -74112,7 +78213,11 @@ void main() { }), true, ); - final response = await res.delete(arg_name, $fields: arg_$fields); + final response = await res.delete( + arg_name, + forceDelete: arg_forceDelete, + $fields: arg_$fields, + ); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation, ); @@ -78735,7 +82840,7 @@ void main() { final mock = HttpServerMock(); final res = api.AiplatformApi(mock).projects.locations.tensorboards; final arg_tensorboard = 'foo'; - final arg_timeSeries = buildUnnamed470(); + final arg_timeSeries = buildUnnamed509(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -81438,7 +85543,7 @@ void main() { mock, ).projects.locations.tensorboards.experiments.runs.timeSeries; final arg_timeSeries = 'foo'; - final arg_blobIds = buildUnnamed471(); + final arg_blobIds = buildUnnamed510(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { diff --git a/generated/googleapis/test/analyticshub/v1_test.dart b/generated/googleapis/test/analyticshub/v1_test.dart index ade89f3f2..aabf6d32d 100644 --- a/generated/googleapis/test/analyticshub/v1_test.dart +++ b/generated/googleapis/test/analyticshub/v1_test.dart @@ -26,6 +26,21 @@ import 'package:test/test.dart' as unittest; import '../test_shared.dart'; +core.int buildCounterApproveQueryTemplateRequest = 0; +api.ApproveQueryTemplateRequest buildApproveQueryTemplateRequest() { + final o = api.ApproveQueryTemplateRequest(); + buildCounterApproveQueryTemplateRequest++; + if (buildCounterApproveQueryTemplateRequest < 3) {} + buildCounterApproveQueryTemplateRequest--; + return o; +} + +void checkApproveQueryTemplateRequest(api.ApproveQueryTemplateRequest o) { + buildCounterApproveQueryTemplateRequest++; + if (buildCounterApproveQueryTemplateRequest < 3) {} + buildCounterApproveQueryTemplateRequest--; +} + core.List buildUnnamed0() => [ buildAuditLogConfig(), buildAuditLogConfig(), @@ -137,12 +152,28 @@ void checkBigQueryConfig(api.BigQueryConfig o) { buildCounterBigQueryConfig--; } -core.List buildUnnamed2() => [ +core.List buildUnnamed2() => [buildReplica(), buildReplica()]; + +void checkUnnamed2(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkReplica(o[0]); + checkReplica(o[1]); +} + +core.List buildUnnamed3() => ['foo', 'foo']; + +void checkUnnamed3(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed4() => [ buildSelectedResource(), buildSelectedResource(), ]; -void checkUnnamed2(core.List o) { +void checkUnnamed4(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSelectedResource(o[0]); checkSelectedResource(o[1]); @@ -154,8 +185,10 @@ api.BigQueryDatasetSource buildBigQueryDatasetSource() { buildCounterBigQueryDatasetSource++; if (buildCounterBigQueryDatasetSource < 3) { o.dataset = 'foo'; + o.effectiveReplicas = buildUnnamed2(); + o.replicaLocations = buildUnnamed3(); o.restrictedExportPolicy = buildRestrictedExportPolicy(); - o.selectedResources = buildUnnamed2(); + o.selectedResources = buildUnnamed4(); } buildCounterBigQueryDatasetSource--; return o; @@ -165,15 +198,17 @@ void checkBigQueryDatasetSource(api.BigQueryDatasetSource o) { buildCounterBigQueryDatasetSource++; if (buildCounterBigQueryDatasetSource < 3) { unittest.expect(o.dataset!, unittest.equals('foo')); + checkUnnamed2(o.effectiveReplicas!); + checkUnnamed3(o.replicaLocations!); checkRestrictedExportPolicy(o.restrictedExportPolicy!); - checkUnnamed2(o.selectedResources!); + checkUnnamed4(o.selectedResources!); } buildCounterBigQueryDatasetSource--; } -core.List buildUnnamed3() => ['foo', 'foo']; +core.List buildUnnamed5() => ['foo', 'foo']; -void checkUnnamed3(core.List o) { +void checkUnnamed5(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -185,7 +220,7 @@ api.Binding buildBinding() { buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed3(); + o.members = buildUnnamed5(); o.role = 'foo'; } buildCounterBinding--; @@ -196,7 +231,7 @@ void checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition!); - checkUnnamed3(o.members!); + checkUnnamed5(o.members!); unittest.expect(o.role!, unittest.equals('foo')); } buildCounterBinding--; @@ -357,14 +392,22 @@ void checkDefaultExchangeConfig(api.DefaultExchangeConfig o) { buildCounterDefaultExchangeConfig--; } -core.Map buildUnnamed4() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed6() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed4(core.Map o) { +void checkUnnamed6(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } +core.List buildUnnamed7() => ['foo', 'foo']; + +void checkUnnamed7(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterDestinationDataset = 0; api.DestinationDataset buildDestinationDataset() { final o = api.DestinationDataset(); @@ -373,8 +416,9 @@ api.DestinationDataset buildDestinationDataset() { o.datasetReference = buildDestinationDatasetReference(); o.description = 'foo'; o.friendlyName = 'foo'; - o.labels = buildUnnamed4(); + o.labels = buildUnnamed6(); o.location = 'foo'; + o.replicaLocations = buildUnnamed7(); } buildCounterDestinationDataset--; return o; @@ -386,8 +430,9 @@ void checkDestinationDataset(api.DestinationDataset o) { checkDestinationDatasetReference(o.datasetReference!); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.friendlyName!, unittest.equals('foo')); - checkUnnamed4(o.labels!); + checkUnnamed6(o.labels!); unittest.expect(o.location!, unittest.equals('foo')); + checkUnnamed7(o.replicaLocations!); } buildCounterDestinationDataset--; } @@ -642,20 +687,20 @@ checkGoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarke buildCounterGoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo--; } -core.Map buildUnnamed5() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed8() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed5(core.Map o) { +void checkUnnamed8(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed6() => [ +core.List buildUnnamed9() => [ buildMessageTransform(), buildMessageTransform(), ]; -void checkUnnamed6(core.List o) { +void checkUnnamed9(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMessageTransform(o[0]); checkMessageTransform(o[1]); @@ -675,9 +720,9 @@ api.GooglePubsubV1Subscription buildGooglePubsubV1Subscription() { o.enableMessageOrdering = true; o.expirationPolicy = buildExpirationPolicy(); o.filter = 'foo'; - o.labels = buildUnnamed5(); + o.labels = buildUnnamed8(); o.messageRetentionDuration = 'foo'; - o.messageTransforms = buildUnnamed6(); + o.messageTransforms = buildUnnamed9(); o.name = 'foo'; o.pushConfig = buildPushConfig(); o.retainAckedMessages = true; @@ -699,9 +744,9 @@ void checkGooglePubsubV1Subscription(api.GooglePubsubV1Subscription o) { unittest.expect(o.enableMessageOrdering!, unittest.isTrue); checkExpirationPolicy(o.expirationPolicy!); unittest.expect(o.filter!, unittest.equals('foo')); - checkUnnamed5(o.labels!); + checkUnnamed8(o.labels!); unittest.expect(o.messageRetentionDuration!, unittest.equals('foo')); - checkUnnamed6(o.messageTransforms!); + checkUnnamed9(o.messageTransforms!); unittest.expect(o.name!, unittest.equals('foo')); checkPushConfig(o.pushConfig!); unittest.expect(o.retainAckedMessages!, unittest.isTrue); @@ -754,12 +799,12 @@ void checkLinkedResource(api.LinkedResource o) { buildCounterLinkedResource--; } -core.List buildUnnamed7() => [ +core.List buildUnnamed10() => [ buildDataExchange(), buildDataExchange(), ]; -void checkUnnamed7(core.List o) { +void checkUnnamed10(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDataExchange(o[0]); checkDataExchange(o[1]); @@ -770,7 +815,7 @@ api.ListDataExchangesResponse buildListDataExchangesResponse() { final o = api.ListDataExchangesResponse(); buildCounterListDataExchangesResponse++; if (buildCounterListDataExchangesResponse < 3) { - o.dataExchanges = buildUnnamed7(); + o.dataExchanges = buildUnnamed10(); o.nextPageToken = 'foo'; } buildCounterListDataExchangesResponse--; @@ -780,15 +825,15 @@ api.ListDataExchangesResponse buildListDataExchangesResponse() { void checkListDataExchangesResponse(api.ListDataExchangesResponse o) { buildCounterListDataExchangesResponse++; if (buildCounterListDataExchangesResponse < 3) { - checkUnnamed7(o.dataExchanges!); + checkUnnamed10(o.dataExchanges!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListDataExchangesResponse--; } -core.List buildUnnamed8() => [buildListing(), buildListing()]; +core.List buildUnnamed11() => [buildListing(), buildListing()]; -void checkUnnamed8(core.List o) { +void checkUnnamed11(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkListing(o[0]); checkListing(o[1]); @@ -799,7 +844,7 @@ api.ListListingsResponse buildListListingsResponse() { final o = api.ListListingsResponse(); buildCounterListListingsResponse++; if (buildCounterListListingsResponse < 3) { - o.listings = buildUnnamed8(); + o.listings = buildUnnamed11(); o.nextPageToken = 'foo'; } buildCounterListListingsResponse--; @@ -809,18 +854,18 @@ api.ListListingsResponse buildListListingsResponse() { void checkListListingsResponse(api.ListListingsResponse o) { buildCounterListListingsResponse++; if (buildCounterListListingsResponse < 3) { - checkUnnamed8(o.listings!); + checkUnnamed11(o.listings!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListListingsResponse--; } -core.List buildUnnamed9() => [ +core.List buildUnnamed12() => [ buildDataExchange(), buildDataExchange(), ]; -void checkUnnamed9(core.List o) { +void checkUnnamed12(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDataExchange(o[0]); checkDataExchange(o[1]); @@ -831,7 +876,7 @@ api.ListOrgDataExchangesResponse buildListOrgDataExchangesResponse() { final o = api.ListOrgDataExchangesResponse(); buildCounterListOrgDataExchangesResponse++; if (buildCounterListOrgDataExchangesResponse < 3) { - o.dataExchanges = buildUnnamed9(); + o.dataExchanges = buildUnnamed12(); o.nextPageToken = 'foo'; } buildCounterListOrgDataExchangesResponse--; @@ -841,18 +886,50 @@ api.ListOrgDataExchangesResponse buildListOrgDataExchangesResponse() { void checkListOrgDataExchangesResponse(api.ListOrgDataExchangesResponse o) { buildCounterListOrgDataExchangesResponse++; if (buildCounterListOrgDataExchangesResponse < 3) { - checkUnnamed9(o.dataExchanges!); + checkUnnamed12(o.dataExchanges!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListOrgDataExchangesResponse--; } -core.List buildUnnamed10() => [ +core.List buildUnnamed13() => [ + buildQueryTemplate(), + buildQueryTemplate(), +]; + +void checkUnnamed13(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkQueryTemplate(o[0]); + checkQueryTemplate(o[1]); +} + +core.int buildCounterListQueryTemplatesResponse = 0; +api.ListQueryTemplatesResponse buildListQueryTemplatesResponse() { + final o = api.ListQueryTemplatesResponse(); + buildCounterListQueryTemplatesResponse++; + if (buildCounterListQueryTemplatesResponse < 3) { + o.nextPageToken = 'foo'; + o.queryTemplates = buildUnnamed13(); + } + buildCounterListQueryTemplatesResponse--; + return o; +} + +void checkListQueryTemplatesResponse(api.ListQueryTemplatesResponse o) { + buildCounterListQueryTemplatesResponse++; + if (buildCounterListQueryTemplatesResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed13(o.queryTemplates!); + } + buildCounterListQueryTemplatesResponse--; +} + +core.List buildUnnamed14() => [ buildSubscription(), buildSubscription(), ]; -void checkUnnamed10(core.List o) { +void checkUnnamed14(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -865,7 +942,7 @@ buildListSharedResourceSubscriptionsResponse() { buildCounterListSharedResourceSubscriptionsResponse++; if (buildCounterListSharedResourceSubscriptionsResponse < 3) { o.nextPageToken = 'foo'; - o.sharedResourceSubscriptions = buildUnnamed10(); + o.sharedResourceSubscriptions = buildUnnamed14(); } buildCounterListSharedResourceSubscriptionsResponse--; return o; @@ -877,17 +954,17 @@ void checkListSharedResourceSubscriptionsResponse( buildCounterListSharedResourceSubscriptionsResponse++; if (buildCounterListSharedResourceSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed10(o.sharedResourceSubscriptions!); + checkUnnamed14(o.sharedResourceSubscriptions!); } buildCounterListSharedResourceSubscriptionsResponse--; } -core.List buildUnnamed11() => [ +core.List buildUnnamed15() => [ buildSubscription(), buildSubscription(), ]; -void checkUnnamed11(core.List o) { +void checkUnnamed15(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -899,7 +976,7 @@ api.ListSubscriptionsResponse buildListSubscriptionsResponse() { buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { o.nextPageToken = 'foo'; - o.subscriptions = buildUnnamed11(); + o.subscriptions = buildUnnamed15(); } buildCounterListSubscriptionsResponse--; return o; @@ -909,14 +986,14 @@ void checkListSubscriptionsResponse(api.ListSubscriptionsResponse o) { buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed11(o.subscriptions!); + checkUnnamed15(o.subscriptions!); } buildCounterListSubscriptionsResponse--; } -core.List buildUnnamed12() => ['foo', 'foo']; +core.List buildUnnamed16() => ['foo', 'foo']; -void checkUnnamed12(core.List o) { +void checkUnnamed16(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -929,7 +1006,7 @@ api.Listing buildListing() { if (buildCounterListing < 3) { o.allowOnlyMetadataSharing = true; o.bigqueryDataset = buildBigQueryDatasetSource(); - o.categories = buildUnnamed12(); + o.categories = buildUnnamed16(); o.commercialInfo = buildGoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo(); o.dataProvider = buildDataProvider(); @@ -957,7 +1034,7 @@ void checkListing(api.Listing o) { if (buildCounterListing < 3) { unittest.expect(o.allowOnlyMetadataSharing!, unittest.isTrue); checkBigQueryDatasetSource(o.bigqueryDataset!); - checkUnnamed12(o.categories!); + checkUnnamed16(o.categories!); checkGoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo( o.commercialInfo!, ); @@ -1043,7 +1120,7 @@ void checkOidcToken(api.OidcToken o) { buildCounterOidcToken--; } -core.Map buildUnnamed13() => { +core.Map buildUnnamed17() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1056,7 +1133,7 @@ core.Map buildUnnamed13() => { }, }; -void checkUnnamed13(core.Map o) { +void checkUnnamed17(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o['x']!) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -1070,7 +1147,7 @@ void checkUnnamed13(core.Map o) { unittest.expect(casted2['string'], unittest.equals('foo')); } -core.Map buildUnnamed14() => { +core.Map buildUnnamed18() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1083,7 +1160,7 @@ core.Map buildUnnamed14() => { }, }; -void checkUnnamed14(core.Map o) { +void checkUnnamed18(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o['x']!) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -1104,9 +1181,9 @@ api.Operation buildOperation() { if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed13(); + o.metadata = buildUnnamed17(); o.name = 'foo'; - o.response = buildUnnamed14(); + o.response = buildUnnamed18(); } buildCounterOperation--; return o; @@ -1117,27 +1194,27 @@ void checkOperation(api.Operation o) { if (buildCounterOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkStatus(o.error!); - checkUnnamed13(o.metadata!); + checkUnnamed17(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed14(o.response!); + checkUnnamed18(o.response!); } buildCounterOperation--; } -core.List buildUnnamed15() => [ +core.List buildUnnamed19() => [ buildAuditConfig(), buildAuditConfig(), ]; -void checkUnnamed15(core.List o) { +void checkUnnamed19(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -core.List buildUnnamed16() => [buildBinding(), buildBinding()]; +core.List buildUnnamed20() => [buildBinding(), buildBinding()]; -void checkUnnamed16(core.List o) { +void checkUnnamed20(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1148,8 +1225,8 @@ api.Policy buildPolicy() { final o = api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed15(); - o.bindings = buildUnnamed16(); + o.auditConfigs = buildUnnamed19(); + o.bindings = buildUnnamed20(); o.etag = 'foo'; o.version = 42; } @@ -1160,17 +1237,17 @@ api.Policy buildPolicy() { void checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed15(o.auditConfigs!); - checkUnnamed16(o.bindings!); + checkUnnamed19(o.auditConfigs!); + checkUnnamed20(o.bindings!); unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.version!, unittest.equals(42)); } buildCounterPolicy--; } -core.List buildUnnamed17() => ['foo', 'foo']; +core.List buildUnnamed21() => ['foo', 'foo']; -void checkUnnamed17(core.List o) { +void checkUnnamed21(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1181,7 +1258,7 @@ api.PubSubTopicSource buildPubSubTopicSource() { final o = api.PubSubTopicSource(); buildCounterPubSubTopicSource++; if (buildCounterPubSubTopicSource < 3) { - o.dataAffinityRegions = buildUnnamed17(); + o.dataAffinityRegions = buildUnnamed21(); o.topic = 'foo'; } buildCounterPubSubTopicSource--; @@ -1191,7 +1268,7 @@ api.PubSubTopicSource buildPubSubTopicSource() { void checkPubSubTopicSource(api.PubSubTopicSource o) { buildCounterPubSubTopicSource++; if (buildCounterPubSubTopicSource < 3) { - checkUnnamed17(o.dataAffinityRegions!); + checkUnnamed21(o.dataAffinityRegions!); unittest.expect(o.topic!, unittest.equals('foo')); } buildCounterPubSubTopicSource--; @@ -1233,9 +1310,9 @@ void checkPubsubWrapper(api.PubsubWrapper o) { buildCounterPubsubWrapper--; } -core.Map buildUnnamed18() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed22() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed18(core.Map o) { +void checkUnnamed22(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -1246,7 +1323,7 @@ api.PushConfig buildPushConfig() { final o = api.PushConfig(); buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - o.attributes = buildUnnamed18(); + o.attributes = buildUnnamed22(); o.noWrapper = buildNoWrapper(); o.oidcToken = buildOidcToken(); o.pubsubWrapper = buildPubsubWrapper(); @@ -1259,7 +1336,7 @@ api.PushConfig buildPushConfig() { void checkPushConfig(api.PushConfig o) { buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - checkUnnamed18(o.attributes!); + checkUnnamed22(o.attributes!); checkNoWrapper(o.noWrapper!); checkOidcToken(o.oidcToken!); checkPubsubWrapper(o.pubsubWrapper!); @@ -1268,6 +1345,43 @@ void checkPushConfig(api.PushConfig o) { buildCounterPushConfig--; } +core.int buildCounterQueryTemplate = 0; +api.QueryTemplate buildQueryTemplate() { + final o = api.QueryTemplate(); + buildCounterQueryTemplate++; + if (buildCounterQueryTemplate < 3) { + o.createTime = 'foo'; + o.description = 'foo'; + o.displayName = 'foo'; + o.documentation = 'foo'; + o.name = 'foo'; + o.primaryContact = 'foo'; + o.proposer = 'foo'; + o.routine = buildRoutine(); + o.state = 'foo'; + o.updateTime = 'foo'; + } + buildCounterQueryTemplate--; + return o; +} + +void checkQueryTemplate(api.QueryTemplate o) { + buildCounterQueryTemplate++; + if (buildCounterQueryTemplate < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.documentation!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.primaryContact!, unittest.equals('foo')); + unittest.expect(o.proposer!, unittest.equals('foo')); + checkRoutine(o.routine!); + unittest.expect(o.state!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); + } + buildCounterQueryTemplate--; +} + core.int buildCounterRefreshSubscriptionRequest = 0; api.RefreshSubscriptionRequest buildRefreshSubscriptionRequest() { final o = api.RefreshSubscriptionRequest(); @@ -1283,6 +1397,29 @@ void checkRefreshSubscriptionRequest(api.RefreshSubscriptionRequest o) { buildCounterRefreshSubscriptionRequest--; } +core.int buildCounterReplica = 0; +api.Replica buildReplica() { + final o = api.Replica(); + buildCounterReplica++; + if (buildCounterReplica < 3) { + o.location = 'foo'; + o.primaryState = 'foo'; + o.replicaState = 'foo'; + } + buildCounterReplica--; + return o; +} + +void checkReplica(api.Replica o) { + buildCounterReplica++; + if (buildCounterReplica < 3) { + unittest.expect(o.location!, unittest.equals('foo')); + unittest.expect(o.primaryState!, unittest.equals('foo')); + unittest.expect(o.replicaState!, unittest.equals('foo')); + } + buildCounterReplica--; +} + core.int buildCounterRestrictedExportConfig = 0; api.RestrictedExportConfig buildRestrictedExportConfig() { final o = api.RestrictedExportConfig(); @@ -1384,6 +1521,27 @@ void checkRevokeSubscriptionResponse(api.RevokeSubscriptionResponse o) { buildCounterRevokeSubscriptionResponse--; } +core.int buildCounterRoutine = 0; +api.Routine buildRoutine() { + final o = api.Routine(); + buildCounterRoutine++; + if (buildCounterRoutine < 3) { + o.definitionBody = 'foo'; + o.routineType = 'foo'; + } + buildCounterRoutine--; + return o; +} + +void checkRoutine(api.Routine o) { + buildCounterRoutine++; + if (buildCounterRoutine < 3) { + unittest.expect(o.definitionBody!, unittest.equals('foo')); + unittest.expect(o.routineType!, unittest.equals('foo')); + } + buildCounterRoutine--; +} + core.int buildCounterSelectedResource = 0; api.SelectedResource buildSelectedResource() { final o = api.SelectedResource(); @@ -1447,7 +1605,7 @@ void checkSharingEnvironmentConfig(api.SharingEnvironmentConfig o) { buildCounterSharingEnvironmentConfig--; } -core.Map buildUnnamed19() => { +core.Map buildUnnamed23() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1460,7 +1618,7 @@ core.Map buildUnnamed19() => { }, }; -void checkUnnamed19(core.Map o) { +void checkUnnamed23(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o['x']!) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -1474,15 +1632,15 @@ void checkUnnamed19(core.Map o) { unittest.expect(casted6['string'], unittest.equals('foo')); } -core.List> buildUnnamed20() => [ - buildUnnamed19(), - buildUnnamed19(), +core.List> buildUnnamed24() => [ + buildUnnamed23(), + buildUnnamed23(), ]; -void checkUnnamed20(core.List> o) { +void checkUnnamed24(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed19(o[0]); - checkUnnamed19(o[1]); + checkUnnamed23(o[0]); + checkUnnamed23(o[1]); } core.int buildCounterStatus = 0; @@ -1491,7 +1649,7 @@ api.Status buildStatus() { buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed20(); + o.details = buildUnnamed24(); o.message = 'foo'; } buildCounterStatus--; @@ -1502,12 +1660,27 @@ void checkStatus(api.Status o) { buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed20(o.details!); + checkUnnamed24(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStatus--; } +core.int buildCounterSubmitQueryTemplateRequest = 0; +api.SubmitQueryTemplateRequest buildSubmitQueryTemplateRequest() { + final o = api.SubmitQueryTemplateRequest(); + buildCounterSubmitQueryTemplateRequest++; + if (buildCounterSubmitQueryTemplateRequest < 3) {} + buildCounterSubmitQueryTemplateRequest--; + return o; +} + +void checkSubmitQueryTemplateRequest(api.SubmitQueryTemplateRequest o) { + buildCounterSubmitQueryTemplateRequest++; + if (buildCounterSubmitQueryTemplateRequest < 3) {} + buildCounterSubmitQueryTemplateRequest--; +} + core.int buildCounterSubscribeDataExchangeRequest = 0; api.SubscribeDataExchangeRequest buildSubscribeDataExchangeRequest() { final o = api.SubscribeDataExchangeRequest(); @@ -1573,23 +1746,23 @@ void checkSubscribeListingResponse(api.SubscribeListingResponse o) { buildCounterSubscribeListingResponse--; } -core.Map buildUnnamed21() => { +core.Map buildUnnamed25() => { 'x': buildLinkedResource(), 'y': buildLinkedResource(), }; -void checkUnnamed21(core.Map o) { +void checkUnnamed25(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkLinkedResource(o['x']!); checkLinkedResource(o['y']!); } -core.List buildUnnamed22() => [ +core.List buildUnnamed26() => [ buildLinkedResource(), buildLinkedResource(), ]; -void checkUnnamed22(core.List o) { +void checkUnnamed26(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLinkedResource(o[0]); checkLinkedResource(o[1]); @@ -1606,8 +1779,8 @@ api.Subscription buildSubscription() { o.dataExchange = 'foo'; o.destinationDataset = buildDestinationDataset(); o.lastModifyTime = 'foo'; - o.linkedDatasetMap = buildUnnamed21(); - o.linkedResources = buildUnnamed22(); + o.linkedDatasetMap = buildUnnamed25(); + o.linkedResources = buildUnnamed26(); o.listing = 'foo'; o.logLinkedDatasetQueryUserEmail = true; o.name = 'foo'; @@ -1631,8 +1804,8 @@ void checkSubscription(api.Subscription o) { unittest.expect(o.dataExchange!, unittest.equals('foo')); checkDestinationDataset(o.destinationDataset!); unittest.expect(o.lastModifyTime!, unittest.equals('foo')); - checkUnnamed21(o.linkedDatasetMap!); - checkUnnamed22(o.linkedResources!); + checkUnnamed25(o.linkedDatasetMap!); + checkUnnamed26(o.linkedResources!); unittest.expect(o.listing!, unittest.equals('foo')); unittest.expect(o.logLinkedDatasetQueryUserEmail!, unittest.isTrue); unittest.expect(o.name!, unittest.equals('foo')); @@ -1645,9 +1818,9 @@ void checkSubscription(api.Subscription o) { buildCounterSubscription--; } -core.List buildUnnamed23() => ['foo', 'foo']; +core.List buildUnnamed27() => ['foo', 'foo']; -void checkUnnamed23(core.List o) { +void checkUnnamed27(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1658,7 +1831,7 @@ api.TestIamPermissionsRequest buildTestIamPermissionsRequest() { final o = api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed23(); + o.permissions = buildUnnamed27(); } buildCounterTestIamPermissionsRequest--; return o; @@ -1667,14 +1840,14 @@ api.TestIamPermissionsRequest buildTestIamPermissionsRequest() { void checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed23(o.permissions!); + checkUnnamed27(o.permissions!); } buildCounterTestIamPermissionsRequest--; } -core.List buildUnnamed24() => ['foo', 'foo']; +core.List buildUnnamed28() => ['foo', 'foo']; -void checkUnnamed24(core.List o) { +void checkUnnamed28(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1685,7 +1858,7 @@ api.TestIamPermissionsResponse buildTestIamPermissionsResponse() { final o = api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed24(); + o.permissions = buildUnnamed28(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1694,7 +1867,7 @@ api.TestIamPermissionsResponse buildTestIamPermissionsResponse() { void checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed24(o.permissions!); + checkUnnamed28(o.permissions!); } buildCounterTestIamPermissionsResponse--; } @@ -1715,6 +1888,17 @@ void checkTextConfig(api.TextConfig o) { } void main() { + unittest.group('obj-schema-ApproveQueryTemplateRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildApproveQueryTemplateRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ApproveQueryTemplateRequest.fromJson( + oJson as core.Map, + ); + checkApproveQueryTemplateRequest(od); + }); + }); + unittest.group('obj-schema-AuditConfig', () { unittest.test('to-json--from-json', () async { final o = buildAuditConfig(); @@ -2068,6 +2252,17 @@ void main() { }); }); + unittest.group('obj-schema-ListQueryTemplatesResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListQueryTemplatesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListQueryTemplatesResponse.fromJson( + oJson as core.Map, + ); + checkListQueryTemplatesResponse(od); + }); + }); + unittest.group('obj-schema-ListSharedResourceSubscriptionsResponse', () { unittest.test('to-json--from-json', () async { final o = buildListSharedResourceSubscriptionsResponse(); @@ -2200,6 +2395,17 @@ void main() { }); }); + unittest.group('obj-schema-QueryTemplate', () { + unittest.test('to-json--from-json', () async { + final o = buildQueryTemplate(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.QueryTemplate.fromJson( + oJson as core.Map, + ); + checkQueryTemplate(od); + }); + }); + unittest.group('obj-schema-RefreshSubscriptionRequest', () { unittest.test('to-json--from-json', () async { final o = buildRefreshSubscriptionRequest(); @@ -2211,6 +2417,17 @@ void main() { }); }); + unittest.group('obj-schema-Replica', () { + unittest.test('to-json--from-json', () async { + final o = buildReplica(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Replica.fromJson( + oJson as core.Map, + ); + checkReplica(od); + }); + }); + unittest.group('obj-schema-RestrictedExportConfig', () { unittest.test('to-json--from-json', () async { final o = buildRestrictedExportConfig(); @@ -2266,6 +2483,17 @@ void main() { }); }); + unittest.group('obj-schema-Routine', () { + unittest.test('to-json--from-json', () async { + final o = buildRoutine(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Routine.fromJson( + oJson as core.Map, + ); + checkRoutine(od); + }); + }); + unittest.group('obj-schema-SelectedResource', () { unittest.test('to-json--from-json', () async { final o = buildSelectedResource(); @@ -2310,6 +2538,17 @@ void main() { }); }); + unittest.group('obj-schema-SubmitQueryTemplateRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildSubmitQueryTemplateRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.SubmitQueryTemplateRequest.fromJson( + oJson as core.Map, + ); + checkSubmitQueryTemplateRequest(od); + }); + }); + unittest.group('obj-schema-SubscribeDataExchangeRequest', () { unittest.test('to-json--from-json', () async { final o = buildSubscribeDataExchangeRequest(); @@ -3771,6 +4010,469 @@ void main() { }); }); + unittest.group('resource-ProjectsLocationsDataExchangesQueryTemplatesResource', () { + unittest.test('method--approve', () async { + final mock = HttpServerMock(); + final res = + api.AnalyticsHubApi( + mock, + ).projects.locations.dataExchanges.queryTemplates; + final arg_request = buildApproveQueryTemplateRequest(); + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.ApproveQueryTemplateRequest.fromJson( + json as core.Map, + ); + checkApproveQueryTemplateRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildQueryTemplate()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.approve( + arg_request, + arg_name, + $fields: arg_$fields, + ); + checkQueryTemplate(response as api.QueryTemplate); + }); + + unittest.test('method--create', () async { + final mock = HttpServerMock(); + final res = + api.AnalyticsHubApi( + mock, + ).projects.locations.dataExchanges.queryTemplates; + final arg_request = buildQueryTemplate(); + final arg_parent = 'foo'; + final arg_queryTemplateId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.QueryTemplate.fromJson( + json as core.Map, + ); + checkQueryTemplate(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['queryTemplateId']!.first, + unittest.equals(arg_queryTemplateId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildQueryTemplate()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.create( + arg_request, + arg_parent, + queryTemplateId: arg_queryTemplateId, + $fields: arg_$fields, + ); + checkQueryTemplate(response as api.QueryTemplate); + }); + + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = + api.AnalyticsHubApi( + mock, + ).projects.locations.dataExchanges.queryTemplates; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildEmpty()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkEmpty(response as api.Empty); + }); + + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = + api.AnalyticsHubApi( + mock, + ).projects.locations.dataExchanges.queryTemplates; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildQueryTemplate()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkQueryTemplate(response as api.QueryTemplate); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.AnalyticsHubApi( + mock, + ).projects.locations.dataExchanges.queryTemplates; + final arg_parent = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildListQueryTemplatesResponse()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkListQueryTemplatesResponse( + response as api.ListQueryTemplatesResponse, + ); + }); + + unittest.test('method--patch', () async { + final mock = HttpServerMock(); + final res = + api.AnalyticsHubApi( + mock, + ).projects.locations.dataExchanges.queryTemplates; + final arg_request = buildQueryTemplate(); + final arg_name = 'foo'; + final arg_updateMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.QueryTemplate.fromJson( + json as core.Map, + ); + checkQueryTemplate(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildQueryTemplate()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.patch( + arg_request, + arg_name, + updateMask: arg_updateMask, + $fields: arg_$fields, + ); + checkQueryTemplate(response as api.QueryTemplate); + }); + + unittest.test('method--submit', () async { + final mock = HttpServerMock(); + final res = + api.AnalyticsHubApi( + mock, + ).projects.locations.dataExchanges.queryTemplates; + final arg_request = buildSubmitQueryTemplateRequest(); + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.SubmitQueryTemplateRequest.fromJson( + json as core.Map, + ); + checkSubmitQueryTemplateRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildQueryTemplate()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.submit( + arg_request, + arg_name, + $fields: arg_$fields, + ); + checkQueryTemplate(response as api.QueryTemplate); + }); + }); + unittest.group('resource-ProjectsLocationsSubscriptionsResource', () { unittest.test('method--delete', () async { final mock = HttpServerMock(); diff --git a/generated/googleapis/test/androidmanagement/v1_test.dart b/generated/googleapis/test/androidmanagement/v1_test.dart index 3af1a1bfc..6c57dcedb 100644 --- a/generated/googleapis/test/androidmanagement/v1_test.dart +++ b/generated/googleapis/test/androidmanagement/v1_test.dart @@ -523,6 +523,25 @@ void checkUnnamed16(core.List o) { checkPermissionGrant(o[1]); } +core.List buildUnnamed17() => [buildRole(), buildRole()]; + +void checkUnnamed17(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkRole(o[0]); + checkRole(o[1]); +} + +core.List buildUnnamed18() => [ + buildApplicationSigningKeyCert(), + buildApplicationSigningKeyCert(), +]; + +void checkUnnamed18(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkApplicationSigningKeyCert(o[0]); + checkApplicationSigningKeyCert(o[1]); +} + core.int buildCounterApplicationPolicy = 0; api.ApplicationPolicy buildApplicationPolicy() { final o = api.ApplicationPolicy(); @@ -533,6 +552,7 @@ api.ApplicationPolicy buildApplicationPolicy() { o.autoUpdateMode = 'foo'; o.connectedWorkAndPersonalApp = 'foo'; o.credentialProviderPolicy = 'foo'; + o.customAppConfig = buildCustomAppConfig(); o.defaultPermissionPolicy = 'foo'; o.delegatedScopes = buildUnnamed13(); o.disabled = true; @@ -547,6 +567,8 @@ api.ApplicationPolicy buildApplicationPolicy() { o.packageName = 'foo'; o.permissionGrants = buildUnnamed16(); o.preferentialNetworkId = 'foo'; + o.roles = buildUnnamed17(); + o.signingKeyCerts = buildUnnamed18(); o.userControlSettings = 'foo'; o.workProfileWidgets = 'foo'; } @@ -562,6 +584,7 @@ void checkApplicationPolicy(api.ApplicationPolicy o) { unittest.expect(o.autoUpdateMode!, unittest.equals('foo')); unittest.expect(o.connectedWorkAndPersonalApp!, unittest.equals('foo')); unittest.expect(o.credentialProviderPolicy!, unittest.equals('foo')); + checkCustomAppConfig(o.customAppConfig!); unittest.expect(o.defaultPermissionPolicy!, unittest.equals('foo')); checkUnnamed13(o.delegatedScopes!); unittest.expect(o.disabled!, unittest.isTrue); @@ -576,6 +599,8 @@ void checkApplicationPolicy(api.ApplicationPolicy o) { unittest.expect(o.packageName!, unittest.equals('foo')); checkUnnamed16(o.permissionGrants!); unittest.expect(o.preferentialNetworkId!, unittest.equals('foo')); + checkUnnamed17(o.roles!); + checkUnnamed18(o.signingKeyCerts!); unittest.expect(o.userControlSettings!, unittest.equals('foo')); unittest.expect(o.workProfileWidgets!, unittest.equals('foo')); } @@ -603,31 +628,31 @@ void checkApplicationPolicyChange(api.ApplicationPolicyChange o) { buildCounterApplicationPolicyChange--; } -core.List buildUnnamed17() => [ +core.List buildUnnamed19() => [ buildApplicationEvent(), buildApplicationEvent(), ]; -void checkUnnamed17(core.List o) { +void checkUnnamed19(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationEvent(o[0]); checkApplicationEvent(o[1]); } -core.List buildUnnamed18() => [ +core.List buildUnnamed20() => [ buildKeyedAppState(), buildKeyedAppState(), ]; -void checkUnnamed18(core.List o) { +void checkUnnamed20(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkKeyedAppState(o[0]); checkKeyedAppState(o[1]); } -core.List buildUnnamed19() => ['foo', 'foo']; +core.List buildUnnamed21() => ['foo', 'foo']; -void checkUnnamed19(core.List o) { +void checkUnnamed21(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -640,12 +665,12 @@ api.ApplicationReport buildApplicationReport() { if (buildCounterApplicationReport < 3) { o.applicationSource = 'foo'; o.displayName = 'foo'; - o.events = buildUnnamed17(); + o.events = buildUnnamed19(); o.installerPackageName = 'foo'; - o.keyedAppStates = buildUnnamed18(); + o.keyedAppStates = buildUnnamed20(); o.packageName = 'foo'; o.packageSha256Hash = 'foo'; - o.signingKeyCertFingerprints = buildUnnamed19(); + o.signingKeyCertFingerprints = buildUnnamed21(); o.state = 'foo'; o.userFacingType = 'foo'; o.versionCode = 42; @@ -660,12 +685,12 @@ void checkApplicationReport(api.ApplicationReport o) { if (buildCounterApplicationReport < 3) { unittest.expect(o.applicationSource!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed17(o.events!); + checkUnnamed19(o.events!); unittest.expect(o.installerPackageName!, unittest.equals('foo')); - checkUnnamed18(o.keyedAppStates!); + checkUnnamed20(o.keyedAppStates!); unittest.expect(o.packageName!, unittest.equals('foo')); unittest.expect(o.packageSha256Hash!, unittest.equals('foo')); - checkUnnamed19(o.signingKeyCertFingerprints!); + checkUnnamed21(o.signingKeyCertFingerprints!); unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.userFacingType!, unittest.equals('foo')); unittest.expect(o.versionCode!, unittest.equals(42)); @@ -693,6 +718,25 @@ void checkApplicationReportingSettings(api.ApplicationReportingSettings o) { buildCounterApplicationReportingSettings--; } +core.int buildCounterApplicationSigningKeyCert = 0; +api.ApplicationSigningKeyCert buildApplicationSigningKeyCert() { + final o = api.ApplicationSigningKeyCert(); + buildCounterApplicationSigningKeyCert++; + if (buildCounterApplicationSigningKeyCert < 3) { + o.signingKeyCertFingerprintSha256 = 'foo'; + } + buildCounterApplicationSigningKeyCert--; + return o; +} + +void checkApplicationSigningKeyCert(api.ApplicationSigningKeyCert o) { + buildCounterApplicationSigningKeyCert++; + if (buildCounterApplicationSigningKeyCert < 3) { + unittest.expect(o.signingKeyCertFingerprintSha256!, unittest.equals('foo')); + } + buildCounterApplicationSigningKeyCert--; +} + core.int buildCounterBlockAction = 0; api.BlockAction buildBlockAction() { final o = api.BlockAction(); @@ -714,9 +758,9 @@ void checkBlockAction(api.BlockAction o) { buildCounterBlockAction--; } -core.List buildUnnamed20() => ['foo', 'foo']; +core.List buildUnnamed22() => ['foo', 'foo']; -void checkUnnamed20(core.List o) { +void checkUnnamed22(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -727,7 +771,7 @@ api.ChoosePrivateKeyRule buildChoosePrivateKeyRule() { final o = api.ChoosePrivateKeyRule(); buildCounterChoosePrivateKeyRule++; if (buildCounterChoosePrivateKeyRule < 3) { - o.packageNames = buildUnnamed20(); + o.packageNames = buildUnnamed22(); o.privateKeyAlias = 'foo'; o.urlPattern = 'foo'; } @@ -738,16 +782,16 @@ api.ChoosePrivateKeyRule buildChoosePrivateKeyRule() { void checkChoosePrivateKeyRule(api.ChoosePrivateKeyRule o) { buildCounterChoosePrivateKeyRule++; if (buildCounterChoosePrivateKeyRule < 3) { - checkUnnamed20(o.packageNames!); + checkUnnamed22(o.packageNames!); unittest.expect(o.privateKeyAlias!, unittest.equals('foo')); unittest.expect(o.urlPattern!, unittest.equals('foo')); } buildCounterChoosePrivateKeyRule--; } -core.List buildUnnamed21() => ['foo', 'foo']; +core.List buildUnnamed23() => ['foo', 'foo']; -void checkUnnamed21(core.List o) { +void checkUnnamed23(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -758,7 +802,7 @@ api.ClearAppsDataParams buildClearAppsDataParams() { final o = api.ClearAppsDataParams(); buildCounterClearAppsDataParams++; if (buildCounterClearAppsDataParams < 3) { - o.packageNames = buildUnnamed21(); + o.packageNames = buildUnnamed23(); } buildCounterClearAppsDataParams--; return o; @@ -767,17 +811,17 @@ api.ClearAppsDataParams buildClearAppsDataParams() { void checkClearAppsDataParams(api.ClearAppsDataParams o) { buildCounterClearAppsDataParams++; if (buildCounterClearAppsDataParams < 3) { - checkUnnamed21(o.packageNames!); + checkUnnamed23(o.packageNames!); } buildCounterClearAppsDataParams--; } -core.Map buildUnnamed22() => { +core.Map buildUnnamed24() => { 'x': buildPerAppResult(), 'y': buildPerAppResult(), }; -void checkUnnamed22(core.Map o) { +void checkUnnamed24(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkPerAppResult(o['x']!); checkPerAppResult(o['y']!); @@ -788,7 +832,7 @@ api.ClearAppsDataStatus buildClearAppsDataStatus() { final o = api.ClearAppsDataStatus(); buildCounterClearAppsDataStatus++; if (buildCounterClearAppsDataStatus < 3) { - o.results = buildUnnamed22(); + o.results = buildUnnamed24(); } buildCounterClearAppsDataStatus--; return o; @@ -797,14 +841,14 @@ api.ClearAppsDataStatus buildClearAppsDataStatus() { void checkClearAppsDataStatus(api.ClearAppsDataStatus o) { buildCounterClearAppsDataStatus++; if (buildCounterClearAppsDataStatus < 3) { - checkUnnamed22(o.results!); + checkUnnamed24(o.results!); } buildCounterClearAppsDataStatus--; } -core.List buildUnnamed23() => ['foo', 'foo']; +core.List buildUnnamed25() => ['foo', 'foo']; -void checkUnnamed23(core.List o) { +void checkUnnamed25(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -826,7 +870,7 @@ api.Command buildCommand() { o.removeEsimParams = buildRemoveEsimParams(); o.requestDeviceInfoParams = buildRequestDeviceInfoParams(); o.requestDeviceInfoStatus = buildRequestDeviceInfoStatus(); - o.resetPasswordFlags = buildUnnamed23(); + o.resetPasswordFlags = buildUnnamed25(); o.startLostModeParams = buildStartLostModeParams(); o.startLostModeStatus = buildStartLostModeStatus(); o.stopLostModeParams = buildStopLostModeParams(); @@ -853,7 +897,7 @@ void checkCommand(api.Command o) { checkRemoveEsimParams(o.removeEsimParams!); checkRequestDeviceInfoParams(o.requestDeviceInfoParams!); checkRequestDeviceInfoStatus(o.requestDeviceInfoStatus!); - checkUnnamed23(o.resetPasswordFlags!); + checkUnnamed25(o.resetPasswordFlags!); checkStartLostModeParams(o.startLostModeParams!); checkStartLostModeStatus(o.startLostModeStatus!); checkStopLostModeParams(o.stopLostModeParams!); @@ -889,9 +933,9 @@ void checkCommonCriteriaModeInfo(api.CommonCriteriaModeInfo o) { buildCounterCommonCriteriaModeInfo--; } -core.List buildUnnamed24() => ['foo', 'foo']; +core.List buildUnnamed26() => ['foo', 'foo']; -void checkUnnamed24(core.List o) { +void checkUnnamed26(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -905,7 +949,7 @@ api.ComplianceRule buildComplianceRule() { o.apiLevelCondition = buildApiLevelCondition(); o.disableApps = true; o.nonComplianceDetailCondition = buildNonComplianceDetailCondition(); - o.packageNamesToDisable = buildUnnamed24(); + o.packageNamesToDisable = buildUnnamed26(); } buildCounterComplianceRule--; return o; @@ -917,7 +961,7 @@ void checkComplianceRule(api.ComplianceRule o) { checkApiLevelCondition(o.apiLevelCondition!); unittest.expect(o.disableApps!, unittest.isTrue); checkNonComplianceDetailCondition(o.nonComplianceDetailCondition!); - checkUnnamed24(o.packageNamesToDisable!); + checkUnnamed26(o.packageNamesToDisable!); } buildCounterComplianceRule--; } @@ -953,9 +997,9 @@ void checkContactInfo(api.ContactInfo o) { buildCounterContactInfo--; } -core.List buildUnnamed25() => ['foo', 'foo']; +core.List buildUnnamed27() => ['foo', 'foo']; -void checkUnnamed25(core.List o) { +void checkUnnamed27(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -967,7 +1011,7 @@ api.ContentProviderEndpoint buildContentProviderEndpoint() { buildCounterContentProviderEndpoint++; if (buildCounterContentProviderEndpoint < 3) { o.packageName = 'foo'; - o.signingCertsSha256 = buildUnnamed25(); + o.signingCertsSha256 = buildUnnamed27(); o.uri = 'foo'; } buildCounterContentProviderEndpoint--; @@ -978,7 +1022,7 @@ void checkContentProviderEndpoint(api.ContentProviderEndpoint o) { buildCounterContentProviderEndpoint++; if (buildCounterContentProviderEndpoint < 3) { unittest.expect(o.packageName!, unittest.equals('foo')); - checkUnnamed25(o.signingCertsSha256!); + checkUnnamed27(o.signingCertsSha256!); unittest.expect(o.uri!, unittest.equals('foo')); } buildCounterContentProviderEndpoint--; @@ -1016,6 +1060,25 @@ void checkCrossProfilePolicies(api.CrossProfilePolicies o) { buildCounterCrossProfilePolicies--; } +core.int buildCounterCustomAppConfig = 0; +api.CustomAppConfig buildCustomAppConfig() { + final o = api.CustomAppConfig(); + buildCounterCustomAppConfig++; + if (buildCounterCustomAppConfig < 3) { + o.userUninstallSettings = 'foo'; + } + buildCounterCustomAppConfig--; + return o; +} + +void checkCustomAppConfig(api.CustomAppConfig o) { + buildCounterCustomAppConfig++; + if (buildCounterCustomAppConfig < 3) { + unittest.expect(o.userUninstallSettings!, unittest.equals('foo')); + } + buildCounterCustomAppConfig--; +} + core.int buildCounterDate = 0; api.Date buildDate() { final o = api.Date(); @@ -1039,91 +1102,91 @@ void checkDate(api.Date o) { buildCounterDate--; } -core.List buildUnnamed26() => [ +core.List buildUnnamed28() => [ buildApplicationReport(), buildApplicationReport(), ]; -void checkUnnamed26(core.List o) { +void checkUnnamed28(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationReport(o[0]); checkApplicationReport(o[1]); } -core.List buildUnnamed27() => [ +core.List buildUnnamed29() => [ buildPasswordRequirements(), buildPasswordRequirements(), ]; -void checkUnnamed27(core.List o) { +void checkUnnamed29(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPasswordRequirements(o[0]); checkPasswordRequirements(o[1]); } -core.List buildUnnamed28() => [buildDisplay(), buildDisplay()]; +core.List buildUnnamed30() => [buildDisplay(), buildDisplay()]; -void checkUnnamed28(core.List o) { +void checkUnnamed30(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDisplay(o[0]); checkDisplay(o[1]); } -core.List buildUnnamed29() => [ +core.List buildUnnamed31() => [ buildHardwareStatus(), buildHardwareStatus(), ]; -void checkUnnamed29(core.List o) { +void checkUnnamed31(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHardwareStatus(o[0]); checkHardwareStatus(o[1]); } -core.List buildUnnamed30() => [ +core.List buildUnnamed32() => [ buildMemoryEvent(), buildMemoryEvent(), ]; -void checkUnnamed30(core.List o) { +void checkUnnamed32(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMemoryEvent(o[0]); checkMemoryEvent(o[1]); } -core.List buildUnnamed31() => [ +core.List buildUnnamed33() => [ buildNonComplianceDetail(), buildNonComplianceDetail(), ]; -void checkUnnamed31(core.List o) { +void checkUnnamed33(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNonComplianceDetail(o[0]); checkNonComplianceDetail(o[1]); } -core.List buildUnnamed32() => [ +core.List buildUnnamed34() => [ buildPowerManagementEvent(), buildPowerManagementEvent(), ]; -void checkUnnamed32(core.List o) { +void checkUnnamed34(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPowerManagementEvent(o[0]); checkPowerManagementEvent(o[1]); } -core.List buildUnnamed33() => ['foo', 'foo']; +core.List buildUnnamed35() => ['foo', 'foo']; -void checkUnnamed33(core.List o) { +void checkUnnamed35(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed34() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed36() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed34(core.Map o) { +void checkUnnamed36(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -1135,39 +1198,39 @@ api.Device buildDevice() { buildCounterDevice++; if (buildCounterDevice < 3) { o.apiLevel = 42; - o.applicationReports = buildUnnamed26(); - o.appliedPasswordPolicies = buildUnnamed27(); + o.applicationReports = buildUnnamed28(); + o.appliedPasswordPolicies = buildUnnamed29(); o.appliedPolicyName = 'foo'; o.appliedPolicyVersion = 'foo'; o.appliedState = 'foo'; o.commonCriteriaModeInfo = buildCommonCriteriaModeInfo(); o.deviceSettings = buildDeviceSettings(); o.disabledReason = buildUserFacingMessage(); - o.displays = buildUnnamed28(); + o.displays = buildUnnamed30(); o.dpcMigrationInfo = buildDpcMigrationInfo(); o.enrollmentTime = 'foo'; o.enrollmentTokenData = 'foo'; o.enrollmentTokenName = 'foo'; o.hardwareInfo = buildHardwareInfo(); - o.hardwareStatusSamples = buildUnnamed29(); + o.hardwareStatusSamples = buildUnnamed31(); o.lastPolicyComplianceReportTime = 'foo'; o.lastPolicySyncTime = 'foo'; o.lastStatusReportTime = 'foo'; o.managementMode = 'foo'; - o.memoryEvents = buildUnnamed30(); + o.memoryEvents = buildUnnamed32(); o.memoryInfo = buildMemoryInfo(); o.name = 'foo'; o.networkInfo = buildNetworkInfo(); - o.nonComplianceDetails = buildUnnamed31(); + o.nonComplianceDetails = buildUnnamed33(); o.ownership = 'foo'; o.policyCompliant = true; o.policyName = 'foo'; - o.powerManagementEvents = buildUnnamed32(); - o.previousDeviceNames = buildUnnamed33(); + o.powerManagementEvents = buildUnnamed34(); + o.previousDeviceNames = buildUnnamed35(); o.securityPosture = buildSecurityPosture(); o.softwareInfo = buildSoftwareInfo(); o.state = 'foo'; - o.systemProperties = buildUnnamed34(); + o.systemProperties = buildUnnamed36(); o.user = buildUser(); o.userName = 'foo'; } @@ -1179,39 +1242,39 @@ void checkDevice(api.Device o) { buildCounterDevice++; if (buildCounterDevice < 3) { unittest.expect(o.apiLevel!, unittest.equals(42)); - checkUnnamed26(o.applicationReports!); - checkUnnamed27(o.appliedPasswordPolicies!); + checkUnnamed28(o.applicationReports!); + checkUnnamed29(o.appliedPasswordPolicies!); unittest.expect(o.appliedPolicyName!, unittest.equals('foo')); unittest.expect(o.appliedPolicyVersion!, unittest.equals('foo')); unittest.expect(o.appliedState!, unittest.equals('foo')); checkCommonCriteriaModeInfo(o.commonCriteriaModeInfo!); checkDeviceSettings(o.deviceSettings!); checkUserFacingMessage(o.disabledReason!); - checkUnnamed28(o.displays!); + checkUnnamed30(o.displays!); checkDpcMigrationInfo(o.dpcMigrationInfo!); unittest.expect(o.enrollmentTime!, unittest.equals('foo')); unittest.expect(o.enrollmentTokenData!, unittest.equals('foo')); unittest.expect(o.enrollmentTokenName!, unittest.equals('foo')); checkHardwareInfo(o.hardwareInfo!); - checkUnnamed29(o.hardwareStatusSamples!); + checkUnnamed31(o.hardwareStatusSamples!); unittest.expect(o.lastPolicyComplianceReportTime!, unittest.equals('foo')); unittest.expect(o.lastPolicySyncTime!, unittest.equals('foo')); unittest.expect(o.lastStatusReportTime!, unittest.equals('foo')); unittest.expect(o.managementMode!, unittest.equals('foo')); - checkUnnamed30(o.memoryEvents!); + checkUnnamed32(o.memoryEvents!); checkMemoryInfo(o.memoryInfo!); unittest.expect(o.name!, unittest.equals('foo')); checkNetworkInfo(o.networkInfo!); - checkUnnamed31(o.nonComplianceDetails!); + checkUnnamed33(o.nonComplianceDetails!); unittest.expect(o.ownership!, unittest.equals('foo')); unittest.expect(o.policyCompliant!, unittest.isTrue); unittest.expect(o.policyName!, unittest.equals('foo')); - checkUnnamed32(o.powerManagementEvents!); - checkUnnamed33(o.previousDeviceNames!); + checkUnnamed34(o.powerManagementEvents!); + checkUnnamed35(o.previousDeviceNames!); checkSecurityPosture(o.securityPosture!); checkSoftwareInfo(o.softwareInfo!); unittest.expect(o.state!, unittest.equals('foo')); - checkUnnamed34(o.systemProperties!); + checkUnnamed36(o.systemProperties!); checkUser(o.user!); unittest.expect(o.userName!, unittest.equals('foo')); } @@ -1406,9 +1469,9 @@ void checkEid(api.Eid o) { buildCounterEid--; } -core.List buildUnnamed35() => [buildEid(), buildEid()]; +core.List buildUnnamed37() => [buildEid(), buildEid()]; -void checkUnnamed35(core.List o) { +void checkUnnamed37(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkEid(o[0]); checkEid(o[1]); @@ -1419,7 +1482,7 @@ api.EidInfo buildEidInfo() { final o = api.EidInfo(); buildCounterEidInfo++; if (buildCounterEidInfo < 3) { - o.eids = buildUnnamed35(); + o.eids = buildUnnamed37(); } buildCounterEidInfo--; return o; @@ -1428,7 +1491,7 @@ api.EidInfo buildEidInfo() { void checkEidInfo(api.EidInfo o) { buildCounterEidInfo++; if (buildCounterEidInfo < 3) { - checkUnnamed35(o.eids!); + checkUnnamed37(o.eids!); } buildCounterEidInfo--; } @@ -1485,31 +1548,31 @@ void checkEnrollmentToken(api.EnrollmentToken o) { buildCounterEnrollmentToken--; } -core.List buildUnnamed36() => ['foo', 'foo']; +core.List buildUnnamed38() => ['foo', 'foo']; -void checkUnnamed36(core.List o) { +void checkUnnamed38(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed37() => [ +core.List buildUnnamed39() => [ buildSigninDetail(), buildSigninDetail(), ]; -void checkUnnamed37(core.List o) { +void checkUnnamed39(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSigninDetail(o[0]); checkSigninDetail(o[1]); } -core.List buildUnnamed38() => [ +core.List buildUnnamed40() => [ buildTermsAndConditions(), buildTermsAndConditions(), ]; -void checkUnnamed38(core.List o) { +void checkUnnamed40(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTermsAndConditions(o[0]); checkTermsAndConditions(o[1]); @@ -1522,7 +1585,7 @@ api.Enterprise buildEnterprise() { if (buildCounterEnterprise < 3) { o.appAutoApprovalEnabled = true; o.contactInfo = buildContactInfo(); - o.enabledNotificationTypes = buildUnnamed36(); + o.enabledNotificationTypes = buildUnnamed38(); o.enterpriseDisplayName = 'foo'; o.enterpriseType = 'foo'; o.googleAuthenticationSettings = buildGoogleAuthenticationSettings(); @@ -1532,8 +1595,8 @@ api.Enterprise buildEnterprise() { o.name = 'foo'; o.primaryColor = 42; o.pubsubTopic = 'foo'; - o.signinDetails = buildUnnamed37(); - o.termsAndConditions = buildUnnamed38(); + o.signinDetails = buildUnnamed39(); + o.termsAndConditions = buildUnnamed40(); } buildCounterEnterprise--; return o; @@ -1544,7 +1607,7 @@ void checkEnterprise(api.Enterprise o) { if (buildCounterEnterprise < 3) { unittest.expect(o.appAutoApprovalEnabled!, unittest.isTrue); checkContactInfo(o.contactInfo!); - checkUnnamed36(o.enabledNotificationTypes!); + checkUnnamed38(o.enabledNotificationTypes!); unittest.expect(o.enterpriseDisplayName!, unittest.equals('foo')); unittest.expect(o.enterpriseType!, unittest.equals('foo')); checkGoogleAuthenticationSettings(o.googleAuthenticationSettings!); @@ -1557,8 +1620,8 @@ void checkEnterprise(api.Enterprise o) { unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.primaryColor!, unittest.equals(42)); unittest.expect(o.pubsubTopic!, unittest.equals('foo')); - checkUnnamed37(o.signinDetails!); - checkUnnamed38(o.termsAndConditions!); + checkUnnamed39(o.signinDetails!); + checkUnnamed40(o.termsAndConditions!); } buildCounterEnterprise--; } @@ -1624,9 +1687,9 @@ void checkEuiccChipInfo(api.EuiccChipInfo o) { buildCounterEuiccChipInfo--; } -core.List buildUnnamed39() => ['foo', 'foo']; +core.List buildUnnamed41() => ['foo', 'foo']; -void checkUnnamed39(core.List o) { +void checkUnnamed41(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1638,7 +1701,7 @@ api.ExtensionConfig buildExtensionConfig() { buildCounterExtensionConfig++; if (buildCounterExtensionConfig < 3) { o.notificationReceiver = 'foo'; - o.signingKeyFingerprintsSha256 = buildUnnamed39(); + o.signingKeyFingerprintsSha256 = buildUnnamed41(); } buildCounterExtensionConfig--; return o; @@ -1648,7 +1711,7 @@ void checkExtensionConfig(api.ExtensionConfig o) { buildCounterExtensionConfig++; if (buildCounterExtensionConfig < 3) { unittest.expect(o.notificationReceiver!, unittest.equals('foo')); - checkUnnamed39(o.signingKeyFingerprintsSha256!); + checkUnnamed41(o.signingKeyFingerprintsSha256!); } buildCounterExtensionConfig--; } @@ -1695,9 +1758,9 @@ void checkFreezePeriod(api.FreezePeriod o) { buildCounterFreezePeriod--; } -core.List buildUnnamed40() => ['foo', 'foo']; +core.List buildUnnamed42() => ['foo', 'foo']; -void checkUnnamed40(core.List o) { +void checkUnnamed42(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1710,7 +1773,7 @@ buildGenerateEnterpriseUpgradeUrlRequest() { buildCounterGenerateEnterpriseUpgradeUrlRequest++; if (buildCounterGenerateEnterpriseUpgradeUrlRequest < 3) { o.adminEmail = 'foo'; - o.allowedDomains = buildUnnamed40(); + o.allowedDomains = buildUnnamed42(); } buildCounterGenerateEnterpriseUpgradeUrlRequest--; return o; @@ -1722,7 +1785,7 @@ void checkGenerateEnterpriseUpgradeUrlRequest( buildCounterGenerateEnterpriseUpgradeUrlRequest++; if (buildCounterGenerateEnterpriseUpgradeUrlRequest < 3) { unittest.expect(o.adminEmail!, unittest.equals('foo')); - checkUnnamed40(o.allowedDomains!); + checkUnnamed42(o.allowedDomains!); } buildCounterGenerateEnterpriseUpgradeUrlRequest--; } @@ -1768,76 +1831,76 @@ void checkGoogleAuthenticationSettings(api.GoogleAuthenticationSettings o) { buildCounterGoogleAuthenticationSettings--; } -core.List buildUnnamed41() => [42.0, 42.0]; +core.List buildUnnamed43() => [42.0, 42.0]; -void checkUnnamed41(core.List o) { +void checkUnnamed43(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -core.List buildUnnamed42() => [42.0, 42.0]; +core.List buildUnnamed44() => [42.0, 42.0]; -void checkUnnamed42(core.List o) { +void checkUnnamed44(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -core.List buildUnnamed43() => [42.0, 42.0]; +core.List buildUnnamed45() => [42.0, 42.0]; -void checkUnnamed43(core.List o) { +void checkUnnamed45(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -core.List buildUnnamed44() => [42.0, 42.0]; +core.List buildUnnamed46() => [42.0, 42.0]; -void checkUnnamed44(core.List o) { +void checkUnnamed46(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -core.List buildUnnamed45() => [ +core.List buildUnnamed47() => [ buildEuiccChipInfo(), buildEuiccChipInfo(), ]; -void checkUnnamed45(core.List o) { +void checkUnnamed47(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkEuiccChipInfo(o[0]); checkEuiccChipInfo(o[1]); } -core.List buildUnnamed46() => [42.0, 42.0]; +core.List buildUnnamed48() => [42.0, 42.0]; -void checkUnnamed46(core.List o) { +void checkUnnamed48(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -core.List buildUnnamed47() => [42.0, 42.0]; +core.List buildUnnamed49() => [42.0, 42.0]; -void checkUnnamed47(core.List o) { +void checkUnnamed49(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -core.List buildUnnamed48() => [42.0, 42.0]; +core.List buildUnnamed50() => [42.0, 42.0]; -void checkUnnamed48(core.List o) { +void checkUnnamed50(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -core.List buildUnnamed49() => [42.0, 42.0]; +core.List buildUnnamed51() => [42.0, 42.0]; -void checkUnnamed49(core.List o) { +void checkUnnamed51(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -1848,22 +1911,22 @@ api.HardwareInfo buildHardwareInfo() { final o = api.HardwareInfo(); buildCounterHardwareInfo++; if (buildCounterHardwareInfo < 3) { - o.batteryShutdownTemperatures = buildUnnamed41(); - o.batteryThrottlingTemperatures = buildUnnamed42(); + o.batteryShutdownTemperatures = buildUnnamed43(); + o.batteryThrottlingTemperatures = buildUnnamed44(); o.brand = 'foo'; - o.cpuShutdownTemperatures = buildUnnamed43(); - o.cpuThrottlingTemperatures = buildUnnamed44(); + o.cpuShutdownTemperatures = buildUnnamed45(); + o.cpuThrottlingTemperatures = buildUnnamed46(); o.deviceBasebandVersion = 'foo'; o.enterpriseSpecificId = 'foo'; - o.euiccChipInfo = buildUnnamed45(); - o.gpuShutdownTemperatures = buildUnnamed46(); - o.gpuThrottlingTemperatures = buildUnnamed47(); + o.euiccChipInfo = buildUnnamed47(); + o.gpuShutdownTemperatures = buildUnnamed48(); + o.gpuThrottlingTemperatures = buildUnnamed49(); o.hardware = 'foo'; o.manufacturer = 'foo'; o.model = 'foo'; o.serialNumber = 'foo'; - o.skinShutdownTemperatures = buildUnnamed48(); - o.skinThrottlingTemperatures = buildUnnamed49(); + o.skinShutdownTemperatures = buildUnnamed50(); + o.skinThrottlingTemperatures = buildUnnamed51(); } buildCounterHardwareInfo--; return o; @@ -1872,69 +1935,69 @@ api.HardwareInfo buildHardwareInfo() { void checkHardwareInfo(api.HardwareInfo o) { buildCounterHardwareInfo++; if (buildCounterHardwareInfo < 3) { - checkUnnamed41(o.batteryShutdownTemperatures!); - checkUnnamed42(o.batteryThrottlingTemperatures!); + checkUnnamed43(o.batteryShutdownTemperatures!); + checkUnnamed44(o.batteryThrottlingTemperatures!); unittest.expect(o.brand!, unittest.equals('foo')); - checkUnnamed43(o.cpuShutdownTemperatures!); - checkUnnamed44(o.cpuThrottlingTemperatures!); + checkUnnamed45(o.cpuShutdownTemperatures!); + checkUnnamed46(o.cpuThrottlingTemperatures!); unittest.expect(o.deviceBasebandVersion!, unittest.equals('foo')); unittest.expect(o.enterpriseSpecificId!, unittest.equals('foo')); - checkUnnamed45(o.euiccChipInfo!); - checkUnnamed46(o.gpuShutdownTemperatures!); - checkUnnamed47(o.gpuThrottlingTemperatures!); + checkUnnamed47(o.euiccChipInfo!); + checkUnnamed48(o.gpuShutdownTemperatures!); + checkUnnamed49(o.gpuThrottlingTemperatures!); unittest.expect(o.hardware!, unittest.equals('foo')); unittest.expect(o.manufacturer!, unittest.equals('foo')); unittest.expect(o.model!, unittest.equals('foo')); unittest.expect(o.serialNumber!, unittest.equals('foo')); - checkUnnamed48(o.skinShutdownTemperatures!); - checkUnnamed49(o.skinThrottlingTemperatures!); + checkUnnamed50(o.skinShutdownTemperatures!); + checkUnnamed51(o.skinThrottlingTemperatures!); } buildCounterHardwareInfo--; } -core.List buildUnnamed50() => [42.0, 42.0]; +core.List buildUnnamed52() => [42.0, 42.0]; -void checkUnnamed50(core.List o) { +void checkUnnamed52(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -core.List buildUnnamed51() => [42.0, 42.0]; +core.List buildUnnamed53() => [42.0, 42.0]; -void checkUnnamed51(core.List o) { +void checkUnnamed53(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -core.List buildUnnamed52() => [42.0, 42.0]; +core.List buildUnnamed54() => [42.0, 42.0]; -void checkUnnamed52(core.List o) { +void checkUnnamed54(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -core.List buildUnnamed53() => [42.0, 42.0]; +core.List buildUnnamed55() => [42.0, 42.0]; -void checkUnnamed53(core.List o) { +void checkUnnamed55(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -core.List buildUnnamed54() => [42.0, 42.0]; +core.List buildUnnamed56() => [42.0, 42.0]; -void checkUnnamed54(core.List o) { +void checkUnnamed56(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -core.List buildUnnamed55() => [42.0, 42.0]; +core.List buildUnnamed57() => [42.0, 42.0]; -void checkUnnamed55(core.List o) { +void checkUnnamed57(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -1945,13 +2008,13 @@ api.HardwareStatus buildHardwareStatus() { final o = api.HardwareStatus(); buildCounterHardwareStatus++; if (buildCounterHardwareStatus < 3) { - o.batteryTemperatures = buildUnnamed50(); - o.cpuTemperatures = buildUnnamed51(); - o.cpuUsages = buildUnnamed52(); + o.batteryTemperatures = buildUnnamed52(); + o.cpuTemperatures = buildUnnamed53(); + o.cpuUsages = buildUnnamed54(); o.createTime = 'foo'; - o.fanSpeeds = buildUnnamed53(); - o.gpuTemperatures = buildUnnamed54(); - o.skinTemperatures = buildUnnamed55(); + o.fanSpeeds = buildUnnamed55(); + o.gpuTemperatures = buildUnnamed56(); + o.skinTemperatures = buildUnnamed57(); } buildCounterHardwareStatus--; return o; @@ -1960,13 +2023,13 @@ api.HardwareStatus buildHardwareStatus() { void checkHardwareStatus(api.HardwareStatus o) { buildCounterHardwareStatus++; if (buildCounterHardwareStatus < 3) { - checkUnnamed50(o.batteryTemperatures!); - checkUnnamed51(o.cpuTemperatures!); - checkUnnamed52(o.cpuUsages!); + checkUnnamed52(o.batteryTemperatures!); + checkUnnamed53(o.cpuTemperatures!); + checkUnnamed54(o.cpuUsages!); unittest.expect(o.createTime!, unittest.equals('foo')); - checkUnnamed53(o.fanSpeeds!); - checkUnnamed54(o.gpuTemperatures!); - checkUnnamed55(o.skinTemperatures!); + checkUnnamed55(o.fanSpeeds!); + checkUnnamed56(o.gpuTemperatures!); + checkUnnamed57(o.skinTemperatures!); } buildCounterHardwareStatus--; } @@ -2094,9 +2157,9 @@ void checkLaunchAppAction(api.LaunchAppAction o) { buildCounterLaunchAppAction--; } -core.List buildUnnamed56() => [buildDevice(), buildDevice()]; +core.List buildUnnamed58() => [buildDevice(), buildDevice()]; -void checkUnnamed56(core.List o) { +void checkUnnamed58(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -2107,7 +2170,7 @@ api.ListDevicesResponse buildListDevicesResponse() { final o = api.ListDevicesResponse(); buildCounterListDevicesResponse++; if (buildCounterListDevicesResponse < 3) { - o.devices = buildUnnamed56(); + o.devices = buildUnnamed58(); o.nextPageToken = 'foo'; } buildCounterListDevicesResponse--; @@ -2117,18 +2180,18 @@ api.ListDevicesResponse buildListDevicesResponse() { void checkListDevicesResponse(api.ListDevicesResponse o) { buildCounterListDevicesResponse++; if (buildCounterListDevicesResponse < 3) { - checkUnnamed56(o.devices!); + checkUnnamed58(o.devices!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListDevicesResponse--; } -core.List buildUnnamed57() => [ +core.List buildUnnamed59() => [ buildEnrollmentToken(), buildEnrollmentToken(), ]; -void checkUnnamed57(core.List o) { +void checkUnnamed59(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkEnrollmentToken(o[0]); checkEnrollmentToken(o[1]); @@ -2139,7 +2202,7 @@ api.ListEnrollmentTokensResponse buildListEnrollmentTokensResponse() { final o = api.ListEnrollmentTokensResponse(); buildCounterListEnrollmentTokensResponse++; if (buildCounterListEnrollmentTokensResponse < 3) { - o.enrollmentTokens = buildUnnamed57(); + o.enrollmentTokens = buildUnnamed59(); o.nextPageToken = 'foo'; } buildCounterListEnrollmentTokensResponse--; @@ -2149,18 +2212,18 @@ api.ListEnrollmentTokensResponse buildListEnrollmentTokensResponse() { void checkListEnrollmentTokensResponse(api.ListEnrollmentTokensResponse o) { buildCounterListEnrollmentTokensResponse++; if (buildCounterListEnrollmentTokensResponse < 3) { - checkUnnamed57(o.enrollmentTokens!); + checkUnnamed59(o.enrollmentTokens!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListEnrollmentTokensResponse--; } -core.List buildUnnamed58() => [ +core.List buildUnnamed60() => [ buildEnterprise(), buildEnterprise(), ]; -void checkUnnamed58(core.List o) { +void checkUnnamed60(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkEnterprise(o[0]); checkEnterprise(o[1]); @@ -2171,7 +2234,7 @@ api.ListEnterprisesResponse buildListEnterprisesResponse() { final o = api.ListEnterprisesResponse(); buildCounterListEnterprisesResponse++; if (buildCounterListEnterprisesResponse < 3) { - o.enterprises = buildUnnamed58(); + o.enterprises = buildUnnamed60(); o.nextPageToken = 'foo'; } buildCounterListEnterprisesResponse--; @@ -2181,18 +2244,18 @@ api.ListEnterprisesResponse buildListEnterprisesResponse() { void checkListEnterprisesResponse(api.ListEnterprisesResponse o) { buildCounterListEnterprisesResponse++; if (buildCounterListEnterprisesResponse < 3) { - checkUnnamed58(o.enterprises!); + checkUnnamed60(o.enterprises!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListEnterprisesResponse--; } -core.List buildUnnamed59() => [ +core.List buildUnnamed61() => [ buildMigrationToken(), buildMigrationToken(), ]; -void checkUnnamed59(core.List o) { +void checkUnnamed61(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMigrationToken(o[0]); checkMigrationToken(o[1]); @@ -2203,7 +2266,7 @@ api.ListMigrationTokensResponse buildListMigrationTokensResponse() { final o = api.ListMigrationTokensResponse(); buildCounterListMigrationTokensResponse++; if (buildCounterListMigrationTokensResponse < 3) { - o.migrationTokens = buildUnnamed59(); + o.migrationTokens = buildUnnamed61(); o.nextPageToken = 'foo'; } buildCounterListMigrationTokensResponse--; @@ -2213,18 +2276,18 @@ api.ListMigrationTokensResponse buildListMigrationTokensResponse() { void checkListMigrationTokensResponse(api.ListMigrationTokensResponse o) { buildCounterListMigrationTokensResponse++; if (buildCounterListMigrationTokensResponse < 3) { - checkUnnamed59(o.migrationTokens!); + checkUnnamed61(o.migrationTokens!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListMigrationTokensResponse--; } -core.List buildUnnamed60() => [ +core.List buildUnnamed62() => [ buildOperation(), buildOperation(), ]; -void checkUnnamed60(core.List o) { +void checkUnnamed62(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -2236,7 +2299,7 @@ api.ListOperationsResponse buildListOperationsResponse() { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = 'foo'; - o.operations = buildUnnamed60(); + o.operations = buildUnnamed62(); } buildCounterListOperationsResponse--; return o; @@ -2246,14 +2309,14 @@ void checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed60(o.operations!); + checkUnnamed62(o.operations!); } buildCounterListOperationsResponse--; } -core.List buildUnnamed61() => [buildPolicy(), buildPolicy()]; +core.List buildUnnamed63() => [buildPolicy(), buildPolicy()]; -void checkUnnamed61(core.List o) { +void checkUnnamed63(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPolicy(o[0]); checkPolicy(o[1]); @@ -2265,7 +2328,7 @@ api.ListPoliciesResponse buildListPoliciesResponse() { buildCounterListPoliciesResponse++; if (buildCounterListPoliciesResponse < 3) { o.nextPageToken = 'foo'; - o.policies = buildUnnamed61(); + o.policies = buildUnnamed63(); } buildCounterListPoliciesResponse--; return o; @@ -2275,14 +2338,14 @@ void checkListPoliciesResponse(api.ListPoliciesResponse o) { buildCounterListPoliciesResponse++; if (buildCounterListPoliciesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed61(o.policies!); + checkUnnamed63(o.policies!); } buildCounterListPoliciesResponse--; } -core.List buildUnnamed62() => [buildWebApp(), buildWebApp()]; +core.List buildUnnamed64() => [buildWebApp(), buildWebApp()]; -void checkUnnamed62(core.List o) { +void checkUnnamed64(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkWebApp(o[0]); checkWebApp(o[1]); @@ -2294,7 +2357,7 @@ api.ListWebAppsResponse buildListWebAppsResponse() { buildCounterListWebAppsResponse++; if (buildCounterListWebAppsResponse < 3) { o.nextPageToken = 'foo'; - o.webApps = buildUnnamed62(); + o.webApps = buildUnnamed64(); } buildCounterListWebAppsResponse--; return o; @@ -2304,14 +2367,14 @@ void checkListWebAppsResponse(api.ListWebAppsResponse o) { buildCounterListWebAppsResponse++; if (buildCounterListWebAppsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed62(o.webApps!); + checkUnnamed64(o.webApps!); } buildCounterListWebAppsResponse--; } -core.Map buildUnnamed63() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed65() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed63(core.Map o) { +void checkUnnamed65(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2322,7 +2385,7 @@ api.ManagedConfigurationTemplate buildManagedConfigurationTemplate() { final o = api.ManagedConfigurationTemplate(); buildCounterManagedConfigurationTemplate++; if (buildCounterManagedConfigurationTemplate < 3) { - o.configurationVariables = buildUnnamed63(); + o.configurationVariables = buildUnnamed65(); o.templateId = 'foo'; } buildCounterManagedConfigurationTemplate--; @@ -2332,29 +2395,29 @@ api.ManagedConfigurationTemplate buildManagedConfigurationTemplate() { void checkManagedConfigurationTemplate(api.ManagedConfigurationTemplate o) { buildCounterManagedConfigurationTemplate++; if (buildCounterManagedConfigurationTemplate < 3) { - checkUnnamed63(o.configurationVariables!); + checkUnnamed65(o.configurationVariables!); unittest.expect(o.templateId!, unittest.equals('foo')); } buildCounterManagedConfigurationTemplate--; } -core.List buildUnnamed64() => [ +core.List buildUnnamed66() => [ buildManagedPropertyEntry(), buildManagedPropertyEntry(), ]; -void checkUnnamed64(core.List o) { +void checkUnnamed66(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkManagedPropertyEntry(o[0]); checkManagedPropertyEntry(o[1]); } -core.List buildUnnamed65() => [ +core.List buildUnnamed67() => [ buildManagedProperty(), buildManagedProperty(), ]; -void checkUnnamed65(core.List o) { +void checkUnnamed67(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -2371,9 +2434,9 @@ api.ManagedProperty buildManagedProperty() { 'string': 'foo', }; o.description = 'foo'; - o.entries = buildUnnamed64(); + o.entries = buildUnnamed66(); o.key = 'foo'; - o.nestedProperties = buildUnnamed65(); + o.nestedProperties = buildUnnamed67(); o.title = 'foo'; o.type = 'foo'; } @@ -2390,9 +2453,9 @@ void checkManagedProperty(api.ManagedProperty o) { unittest.expect(casted3['bool'], unittest.equals(true)); unittest.expect(casted3['string'], unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed64(o.entries!); + checkUnnamed66(o.entries!); unittest.expect(o.key!, unittest.equals('foo')); - checkUnnamed65(o.nestedProperties!); + checkUnnamed67(o.nestedProperties!); unittest.expect(o.title!, unittest.equals('foo')); unittest.expect(o.type!, unittest.equals('foo')); } @@ -2503,12 +2566,12 @@ void checkMigrationToken(api.MigrationToken o) { buildCounterMigrationToken--; } -core.List buildUnnamed66() => [ +core.List buildUnnamed68() => [ buildApplicationPolicyChange(), buildApplicationPolicyChange(), ]; -void checkUnnamed66(core.List o) { +void checkUnnamed68(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationPolicyChange(o[0]); checkApplicationPolicyChange(o[1]); @@ -2519,7 +2582,7 @@ api.ModifyPolicyApplicationsRequest buildModifyPolicyApplicationsRequest() { final o = api.ModifyPolicyApplicationsRequest(); buildCounterModifyPolicyApplicationsRequest++; if (buildCounterModifyPolicyApplicationsRequest < 3) { - o.changes = buildUnnamed66(); + o.changes = buildUnnamed68(); } buildCounterModifyPolicyApplicationsRequest--; return o; @@ -2530,7 +2593,7 @@ void checkModifyPolicyApplicationsRequest( ) { buildCounterModifyPolicyApplicationsRequest++; if (buildCounterModifyPolicyApplicationsRequest < 3) { - checkUnnamed66(o.changes!); + checkUnnamed68(o.changes!); } buildCounterModifyPolicyApplicationsRequest--; } @@ -2556,12 +2619,12 @@ void checkModifyPolicyApplicationsResponse( buildCounterModifyPolicyApplicationsResponse--; } -core.List buildUnnamed67() => [ +core.List buildUnnamed69() => [ buildTelephonyInfo(), buildTelephonyInfo(), ]; -void checkUnnamed67(core.List o) { +void checkUnnamed69(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTelephonyInfo(o[0]); checkTelephonyInfo(o[1]); @@ -2575,7 +2638,7 @@ api.NetworkInfo buildNetworkInfo() { o.imei = 'foo'; o.meid = 'foo'; o.networkOperatorName = 'foo'; - o.telephonyInfos = buildUnnamed67(); + o.telephonyInfos = buildUnnamed69(); o.wifiMacAddress = 'foo'; } buildCounterNetworkInfo--; @@ -2588,7 +2651,7 @@ void checkNetworkInfo(api.NetworkInfo o) { unittest.expect(o.imei!, unittest.equals('foo')); unittest.expect(o.meid!, unittest.equals('foo')); unittest.expect(o.networkOperatorName!, unittest.equals('foo')); - checkUnnamed67(o.telephonyInfos!); + checkUnnamed69(o.telephonyInfos!); unittest.expect(o.wifiMacAddress!, unittest.equals('foo')); } buildCounterNetworkInfo--; @@ -2658,9 +2721,9 @@ void checkNonComplianceDetailCondition(api.NonComplianceDetailCondition o) { buildCounterNonComplianceDetailCondition--; } -core.List buildUnnamed68() => ['foo', 'foo']; +core.List buildUnnamed70() => ['foo', 'foo']; -void checkUnnamed68(core.List o) { +void checkUnnamed70(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2671,7 +2734,7 @@ api.OncCertificateProvider buildOncCertificateProvider() { final o = api.OncCertificateProvider(); buildCounterOncCertificateProvider++; if (buildCounterOncCertificateProvider < 3) { - o.certificateReferences = buildUnnamed68(); + o.certificateReferences = buildUnnamed70(); o.contentProviderEndpoint = buildContentProviderEndpoint(); } buildCounterOncCertificateProvider--; @@ -2681,7 +2744,7 @@ api.OncCertificateProvider buildOncCertificateProvider() { void checkOncCertificateProvider(api.OncCertificateProvider o) { buildCounterOncCertificateProvider++; if (buildCounterOncCertificateProvider < 3) { - checkUnnamed68(o.certificateReferences!); + checkUnnamed70(o.certificateReferences!); checkContentProviderEndpoint(o.contentProviderEndpoint!); } buildCounterOncCertificateProvider--; @@ -2706,7 +2769,7 @@ void checkOncWifiContext(api.OncWifiContext o) { buildCounterOncWifiContext--; } -core.Map buildUnnamed69() => { +core.Map buildUnnamed71() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2719,7 +2782,7 @@ core.Map buildUnnamed69() => { }, }; -void checkUnnamed69(core.Map o) { +void checkUnnamed71(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o['x']!) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -2733,7 +2796,7 @@ void checkUnnamed69(core.Map o) { unittest.expect(casted6['string'], unittest.equals('foo')); } -core.Map buildUnnamed70() => { +core.Map buildUnnamed72() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2746,7 +2809,7 @@ core.Map buildUnnamed70() => { }, }; -void checkUnnamed70(core.Map o) { +void checkUnnamed72(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o['x']!) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -2767,9 +2830,9 @@ api.Operation buildOperation() { if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed69(); + o.metadata = buildUnnamed71(); o.name = 'foo'; - o.response = buildUnnamed70(); + o.response = buildUnnamed72(); } buildCounterOperation--; return o; @@ -2780,16 +2843,16 @@ void checkOperation(api.Operation o) { if (buildCounterOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkStatus(o.error!); - checkUnnamed69(o.metadata!); + checkUnnamed71(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed70(o.response!); + checkUnnamed72(o.response!); } buildCounterOperation--; } -core.List buildUnnamed71() => ['foo', 'foo']; +core.List buildUnnamed73() => ['foo', 'foo']; -void checkUnnamed71(core.List o) { +void checkUnnamed73(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2800,7 +2863,7 @@ api.PackageNameList buildPackageNameList() { final o = api.PackageNameList(); buildCounterPackageNameList++; if (buildCounterPackageNameList < 3) { - o.packageNames = buildUnnamed71(); + o.packageNames = buildUnnamed73(); } buildCounterPackageNameList--; return o; @@ -2809,7 +2872,7 @@ api.PackageNameList buildPackageNameList() { void checkPackageNameList(api.PackageNameList o) { buildCounterPackageNameList++; if (buildCounterPackageNameList < 3) { - checkUnnamed71(o.packageNames!); + checkUnnamed73(o.packageNames!); } buildCounterPackageNameList--; } @@ -2918,17 +2981,17 @@ void checkPermissionGrant(api.PermissionGrant o) { buildCounterPermissionGrant--; } -core.List buildUnnamed72() => ['foo', 'foo']; +core.List buildUnnamed74() => ['foo', 'foo']; -void checkUnnamed72(core.List o) { +void checkUnnamed74(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed73() => ['foo', 'foo']; +core.List buildUnnamed75() => ['foo', 'foo']; -void checkUnnamed73(core.List o) { +void checkUnnamed75(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2939,8 +3002,8 @@ api.PersistentPreferredActivity buildPersistentPreferredActivity() { final o = api.PersistentPreferredActivity(); buildCounterPersistentPreferredActivity++; if (buildCounterPersistentPreferredActivity < 3) { - o.actions = buildUnnamed72(); - o.categories = buildUnnamed73(); + o.actions = buildUnnamed74(); + o.categories = buildUnnamed75(); o.receiverActivity = 'foo'; } buildCounterPersistentPreferredActivity--; @@ -2950,8 +3013,8 @@ api.PersistentPreferredActivity buildPersistentPreferredActivity() { void checkPersistentPreferredActivity(api.PersistentPreferredActivity o) { buildCounterPersistentPreferredActivity++; if (buildCounterPersistentPreferredActivity < 3) { - checkUnnamed72(o.actions!); - checkUnnamed73(o.categories!); + checkUnnamed74(o.actions!); + checkUnnamed75(o.categories!); unittest.expect(o.receiverActivity!, unittest.equals('foo')); } buildCounterPersistentPreferredActivity--; @@ -2978,20 +3041,20 @@ void checkPersonalApplicationPolicy(api.PersonalApplicationPolicy o) { buildCounterPersonalApplicationPolicy--; } -core.List buildUnnamed74() => ['foo', 'foo']; +core.List buildUnnamed76() => ['foo', 'foo']; -void checkUnnamed74(core.List o) { +void checkUnnamed76(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed75() => [ +core.List buildUnnamed77() => [ buildPersonalApplicationPolicy(), buildPersonalApplicationPolicy(), ]; -void checkUnnamed75(core.List o) { +void checkUnnamed77(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPersonalApplicationPolicy(o[0]); checkPersonalApplicationPolicy(o[1]); @@ -3002,11 +3065,11 @@ api.PersonalUsagePolicies buildPersonalUsagePolicies() { final o = api.PersonalUsagePolicies(); buildCounterPersonalUsagePolicies++; if (buildCounterPersonalUsagePolicies < 3) { - o.accountTypesWithManagementDisabled = buildUnnamed74(); + o.accountTypesWithManagementDisabled = buildUnnamed76(); o.bluetoothSharing = 'foo'; o.cameraDisabled = true; o.maxDaysWithWorkOff = 42; - o.personalApplications = buildUnnamed75(); + o.personalApplications = buildUnnamed77(); o.personalPlayStoreMode = 'foo'; o.privateSpacePolicy = 'foo'; o.screenCaptureDisabled = true; @@ -3018,11 +3081,11 @@ api.PersonalUsagePolicies buildPersonalUsagePolicies() { void checkPersonalUsagePolicies(api.PersonalUsagePolicies o) { buildCounterPersonalUsagePolicies++; if (buildCounterPersonalUsagePolicies < 3) { - checkUnnamed74(o.accountTypesWithManagementDisabled!); + checkUnnamed76(o.accountTypesWithManagementDisabled!); unittest.expect(o.bluetoothSharing!, unittest.equals('foo')); unittest.expect(o.cameraDisabled!, unittest.isTrue); unittest.expect(o.maxDaysWithWorkOff!, unittest.equals(42)); - checkUnnamed75(o.personalApplications!); + checkUnnamed77(o.personalApplications!); unittest.expect(o.personalPlayStoreMode!, unittest.equals('foo')); unittest.expect(o.privateSpacePolicy!, unittest.equals('foo')); unittest.expect(o.screenCaptureDisabled!, unittest.isTrue); @@ -3030,83 +3093,83 @@ void checkPersonalUsagePolicies(api.PersonalUsagePolicies o) { buildCounterPersonalUsagePolicies--; } -core.List buildUnnamed76() => ['foo', 'foo']; +core.List buildUnnamed78() => ['foo', 'foo']; -void checkUnnamed76(core.List o) { +void checkUnnamed78(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed77() => ['foo', 'foo']; +core.List buildUnnamed79() => ['foo', 'foo']; -void checkUnnamed77(core.List o) { +void checkUnnamed79(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed78() => [ +core.List buildUnnamed80() => [ buildApplicationPolicy(), buildApplicationPolicy(), ]; -void checkUnnamed78(core.List o) { +void checkUnnamed80(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationPolicy(o[0]); checkApplicationPolicy(o[1]); } -core.List buildUnnamed79() => [ +core.List buildUnnamed81() => [ buildChoosePrivateKeyRule(), buildChoosePrivateKeyRule(), ]; -void checkUnnamed79(core.List o) { +void checkUnnamed81(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkChoosePrivateKeyRule(o[0]); checkChoosePrivateKeyRule(o[1]); } -core.List buildUnnamed80() => [ +core.List buildUnnamed82() => [ buildComplianceRule(), buildComplianceRule(), ]; -void checkUnnamed80(core.List o) { +void checkUnnamed82(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkComplianceRule(o[0]); checkComplianceRule(o[1]); } -core.List buildUnnamed81() => ['foo', 'foo']; +core.List buildUnnamed83() => ['foo', 'foo']; -void checkUnnamed81(core.List o) { +void checkUnnamed83(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed82() => ['foo', 'foo']; +core.List buildUnnamed84() => ['foo', 'foo']; -void checkUnnamed82(core.List o) { +void checkUnnamed84(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed83() => [ +core.List buildUnnamed85() => [ buildOncCertificateProvider(), buildOncCertificateProvider(), ]; -void checkUnnamed83(core.List o) { +void checkUnnamed85(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOncCertificateProvider(o[0]); checkOncCertificateProvider(o[1]); } -core.Map buildUnnamed84() => { +core.Map buildUnnamed86() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -3119,7 +3182,7 @@ core.Map buildUnnamed84() => { }, }; -void checkUnnamed84(core.Map o) { +void checkUnnamed86(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o['x']!) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); @@ -3133,72 +3196,72 @@ void checkUnnamed84(core.Map o) { unittest.expect(casted10['string'], unittest.equals('foo')); } -core.List buildUnnamed85() => [ +core.List buildUnnamed87() => [ buildPasswordRequirements(), buildPasswordRequirements(), ]; -void checkUnnamed85(core.List o) { +void checkUnnamed87(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPasswordRequirements(o[0]); checkPasswordRequirements(o[1]); } -core.List buildUnnamed86() => [ +core.List buildUnnamed88() => [ buildPermissionGrant(), buildPermissionGrant(), ]; -void checkUnnamed86(core.List o) { +void checkUnnamed88(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionGrant(o[0]); checkPermissionGrant(o[1]); } -core.List buildUnnamed87() => [ +core.List buildUnnamed89() => [ buildPersistentPreferredActivity(), buildPersistentPreferredActivity(), ]; -void checkUnnamed87(core.List o) { +void checkUnnamed89(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPersistentPreferredActivity(o[0]); checkPersistentPreferredActivity(o[1]); } -core.List buildUnnamed88() => [ +core.List buildUnnamed90() => [ buildPolicyEnforcementRule(), buildPolicyEnforcementRule(), ]; -void checkUnnamed88(core.List o) { +void checkUnnamed90(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPolicyEnforcementRule(o[0]); checkPolicyEnforcementRule(o[1]); } -core.List buildUnnamed89() => [ +core.List buildUnnamed91() => [ buildSetupAction(), buildSetupAction(), ]; -void checkUnnamed89(core.List o) { +void checkUnnamed91(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSetupAction(o[0]); checkSetupAction(o[1]); } -core.List buildUnnamed90() => ['foo', 'foo']; +core.List buildUnnamed92() => ['foo', 'foo']; -void checkUnnamed90(core.List o) { +void checkUnnamed92(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed91() => ['foo', 'foo']; +core.List buildUnnamed93() => ['foo', 'foo']; -void checkUnnamed91(core.List o) { +void checkUnnamed93(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3209,15 +3272,15 @@ api.Policy buildPolicy() { final o = api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.accountTypesWithManagementDisabled = buildUnnamed76(); + o.accountTypesWithManagementDisabled = buildUnnamed78(); o.addUserDisabled = true; o.adjustVolumeDisabled = true; o.advancedSecurityOverrides = buildAdvancedSecurityOverrides(); o.alwaysOnVpnPackage = buildAlwaysOnVpnPackage(); - o.androidDevicePolicyTracks = buildUnnamed77(); + o.androidDevicePolicyTracks = buildUnnamed79(); o.appAutoUpdatePolicy = 'foo'; o.appFunctions = 'foo'; - o.applications = buildUnnamed78(); + o.applications = buildUnnamed80(); o.assistContentPolicy = 'foo'; o.autoDateAndTimeZone = 'foo'; o.autoTimeRequired = true; @@ -3228,8 +3291,8 @@ api.Policy buildPolicy() { o.cameraAccess = 'foo'; o.cameraDisabled = true; o.cellBroadcastsConfigDisabled = true; - o.choosePrivateKeyRules = buildUnnamed79(); - o.complianceRules = buildUnnamed80(); + o.choosePrivateKeyRules = buildUnnamed81(); + o.complianceRules = buildUnnamed82(); o.createWindowsDisabled = true; o.credentialProviderPolicyDefault = 'foo'; o.credentialsConfigDisabled = true; @@ -3245,12 +3308,12 @@ api.Policy buildPolicy() { o.ensureVerifyAppsEnabled = true; o.enterpriseDisplayNameVisibility = 'foo'; o.factoryResetDisabled = true; - o.frpAdminEmails = buildUnnamed81(); + o.frpAdminEmails = buildUnnamed83(); o.funDisabled = true; o.installAppsDisabled = true; o.installUnknownSourcesAllowed = true; o.keyguardDisabled = true; - o.keyguardDisabledFeatures = buildUnnamed82(); + o.keyguardDisabledFeatures = buildUnnamed84(); o.kioskCustomLauncherEnabled = true; o.kioskCustomization = buildKioskCustomization(); o.locationMode = 'foo'; @@ -3264,19 +3327,19 @@ api.Policy buildPolicy() { o.name = 'foo'; o.networkEscapeHatchEnabled = true; o.networkResetDisabled = true; - o.oncCertificateProviders = buildUnnamed83(); - o.openNetworkConfiguration = buildUnnamed84(); + o.oncCertificateProviders = buildUnnamed85(); + o.openNetworkConfiguration = buildUnnamed86(); o.outgoingBeamDisabled = true; o.outgoingCallsDisabled = true; - o.passwordPolicies = buildUnnamed85(); + o.passwordPolicies = buildUnnamed87(); o.passwordRequirements = buildPasswordRequirements(); - o.permissionGrants = buildUnnamed86(); + o.permissionGrants = buildUnnamed88(); o.permittedAccessibilityServices = buildPackageNameList(); o.permittedInputMethods = buildPackageNameList(); - o.persistentPreferredActivities = buildUnnamed87(); + o.persistentPreferredActivities = buildUnnamed89(); o.personalUsagePolicies = buildPersonalUsagePolicies(); o.playStoreMode = 'foo'; - o.policyEnforcementRules = buildUnnamed88(); + o.policyEnforcementRules = buildUnnamed90(); o.preferentialNetworkService = 'foo'; o.printingPolicy = 'foo'; o.privateKeySelectionEnabled = true; @@ -3286,14 +3349,14 @@ api.Policy buildPolicy() { o.screenCaptureDisabled = true; o.setUserIconDisabled = true; o.setWallpaperDisabled = true; - o.setupActions = buildUnnamed89(); + o.setupActions = buildUnnamed91(); o.shareLocationDisabled = true; o.shortSupportMessage = buildUserFacingMessage(); o.skipFirstUseHintsEnabled = true; o.smsDisabled = true; o.statusBarDisabled = true; o.statusReportingSettings = buildStatusReportingSettings(); - o.stayOnPluggedModes = buildUnnamed90(); + o.stayOnPluggedModes = buildUnnamed92(); o.systemUpdate = buildSystemUpdate(); o.tetheringConfigDisabled = true; o.uninstallAppsDisabled = true; @@ -3305,7 +3368,7 @@ api.Policy buildPolicy() { o.vpnConfigDisabled = true; o.wifiConfigDisabled = true; o.wifiConfigsLockdownEnabled = true; - o.wipeDataFlags = buildUnnamed91(); + o.wipeDataFlags = buildUnnamed93(); o.workAccountSetupConfig = buildWorkAccountSetupConfig(); } buildCounterPolicy--; @@ -3315,15 +3378,15 @@ api.Policy buildPolicy() { void checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed76(o.accountTypesWithManagementDisabled!); + checkUnnamed78(o.accountTypesWithManagementDisabled!); unittest.expect(o.addUserDisabled!, unittest.isTrue); unittest.expect(o.adjustVolumeDisabled!, unittest.isTrue); checkAdvancedSecurityOverrides(o.advancedSecurityOverrides!); checkAlwaysOnVpnPackage(o.alwaysOnVpnPackage!); - checkUnnamed77(o.androidDevicePolicyTracks!); + checkUnnamed79(o.androidDevicePolicyTracks!); unittest.expect(o.appAutoUpdatePolicy!, unittest.equals('foo')); unittest.expect(o.appFunctions!, unittest.equals('foo')); - checkUnnamed78(o.applications!); + checkUnnamed80(o.applications!); unittest.expect(o.assistContentPolicy!, unittest.equals('foo')); unittest.expect(o.autoDateAndTimeZone!, unittest.equals('foo')); unittest.expect(o.autoTimeRequired!, unittest.isTrue); @@ -3334,8 +3397,8 @@ void checkPolicy(api.Policy o) { unittest.expect(o.cameraAccess!, unittest.equals('foo')); unittest.expect(o.cameraDisabled!, unittest.isTrue); unittest.expect(o.cellBroadcastsConfigDisabled!, unittest.isTrue); - checkUnnamed79(o.choosePrivateKeyRules!); - checkUnnamed80(o.complianceRules!); + checkUnnamed81(o.choosePrivateKeyRules!); + checkUnnamed82(o.complianceRules!); unittest.expect(o.createWindowsDisabled!, unittest.isTrue); unittest.expect(o.credentialProviderPolicyDefault!, unittest.equals('foo')); unittest.expect(o.credentialsConfigDisabled!, unittest.isTrue); @@ -3351,12 +3414,12 @@ void checkPolicy(api.Policy o) { unittest.expect(o.ensureVerifyAppsEnabled!, unittest.isTrue); unittest.expect(o.enterpriseDisplayNameVisibility!, unittest.equals('foo')); unittest.expect(o.factoryResetDisabled!, unittest.isTrue); - checkUnnamed81(o.frpAdminEmails!); + checkUnnamed83(o.frpAdminEmails!); unittest.expect(o.funDisabled!, unittest.isTrue); unittest.expect(o.installAppsDisabled!, unittest.isTrue); unittest.expect(o.installUnknownSourcesAllowed!, unittest.isTrue); unittest.expect(o.keyguardDisabled!, unittest.isTrue); - checkUnnamed82(o.keyguardDisabledFeatures!); + checkUnnamed84(o.keyguardDisabledFeatures!); unittest.expect(o.kioskCustomLauncherEnabled!, unittest.isTrue); checkKioskCustomization(o.kioskCustomization!); unittest.expect(o.locationMode!, unittest.equals('foo')); @@ -3370,19 +3433,19 @@ void checkPolicy(api.Policy o) { unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.networkEscapeHatchEnabled!, unittest.isTrue); unittest.expect(o.networkResetDisabled!, unittest.isTrue); - checkUnnamed83(o.oncCertificateProviders!); - checkUnnamed84(o.openNetworkConfiguration!); + checkUnnamed85(o.oncCertificateProviders!); + checkUnnamed86(o.openNetworkConfiguration!); unittest.expect(o.outgoingBeamDisabled!, unittest.isTrue); unittest.expect(o.outgoingCallsDisabled!, unittest.isTrue); - checkUnnamed85(o.passwordPolicies!); + checkUnnamed87(o.passwordPolicies!); checkPasswordRequirements(o.passwordRequirements!); - checkUnnamed86(o.permissionGrants!); + checkUnnamed88(o.permissionGrants!); checkPackageNameList(o.permittedAccessibilityServices!); checkPackageNameList(o.permittedInputMethods!); - checkUnnamed87(o.persistentPreferredActivities!); + checkUnnamed89(o.persistentPreferredActivities!); checkPersonalUsagePolicies(o.personalUsagePolicies!); unittest.expect(o.playStoreMode!, unittest.equals('foo')); - checkUnnamed88(o.policyEnforcementRules!); + checkUnnamed90(o.policyEnforcementRules!); unittest.expect(o.preferentialNetworkService!, unittest.equals('foo')); unittest.expect(o.printingPolicy!, unittest.equals('foo')); unittest.expect(o.privateKeySelectionEnabled!, unittest.isTrue); @@ -3392,14 +3455,14 @@ void checkPolicy(api.Policy o) { unittest.expect(o.screenCaptureDisabled!, unittest.isTrue); unittest.expect(o.setUserIconDisabled!, unittest.isTrue); unittest.expect(o.setWallpaperDisabled!, unittest.isTrue); - checkUnnamed89(o.setupActions!); + checkUnnamed91(o.setupActions!); unittest.expect(o.shareLocationDisabled!, unittest.isTrue); checkUserFacingMessage(o.shortSupportMessage!); unittest.expect(o.skipFirstUseHintsEnabled!, unittest.isTrue); unittest.expect(o.smsDisabled!, unittest.isTrue); unittest.expect(o.statusBarDisabled!, unittest.isTrue); checkStatusReportingSettings(o.statusReportingSettings!); - checkUnnamed90(o.stayOnPluggedModes!); + checkUnnamed92(o.stayOnPluggedModes!); checkSystemUpdate(o.systemUpdate!); unittest.expect(o.tetheringConfigDisabled!, unittest.isTrue); unittest.expect(o.uninstallAppsDisabled!, unittest.isTrue); @@ -3411,7 +3474,7 @@ void checkPolicy(api.Policy o) { unittest.expect(o.vpnConfigDisabled!, unittest.isTrue); unittest.expect(o.wifiConfigDisabled!, unittest.isTrue); unittest.expect(o.wifiConfigsLockdownEnabled!, unittest.isTrue); - checkUnnamed91(o.wipeDataFlags!); + checkUnnamed93(o.wipeDataFlags!); checkWorkAccountSetupConfig(o.workAccountSetupConfig!); } buildCounterPolicy--; @@ -3440,12 +3503,12 @@ void checkPolicyEnforcementRule(api.PolicyEnforcementRule o) { buildCounterPolicyEnforcementRule--; } -core.List buildUnnamed92() => [ +core.List buildUnnamed94() => [ buildUserFacingMessage(), buildUserFacingMessage(), ]; -void checkUnnamed92(core.List o) { +void checkUnnamed94(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkUserFacingMessage(o[0]); checkUserFacingMessage(o[1]); @@ -3456,7 +3519,7 @@ api.PostureDetail buildPostureDetail() { final o = api.PostureDetail(); buildCounterPostureDetail++; if (buildCounterPostureDetail < 3) { - o.advice = buildUnnamed92(); + o.advice = buildUnnamed94(); o.securityRisk = 'foo'; } buildCounterPostureDetail--; @@ -3466,7 +3529,7 @@ api.PostureDetail buildPostureDetail() { void checkPostureDetail(api.PostureDetail o) { buildCounterPostureDetail++; if (buildCounterPostureDetail < 3) { - checkUnnamed92(o.advice!); + checkUnnamed94(o.advice!); unittest.expect(o.securityRisk!, unittest.equals('foo')); } buildCounterPostureDetail--; @@ -3520,12 +3583,12 @@ void checkPreferentialNetworkServiceConfig( buildCounterPreferentialNetworkServiceConfig--; } -core.List buildUnnamed93() => [ +core.List buildUnnamed95() => [ buildPreferentialNetworkServiceConfig(), buildPreferentialNetworkServiceConfig(), ]; -void checkUnnamed93(core.List o) { +void checkUnnamed95(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPreferentialNetworkServiceConfig(o[0]); checkPreferentialNetworkServiceConfig(o[1]); @@ -3538,7 +3601,7 @@ buildPreferentialNetworkServiceSettings() { buildCounterPreferentialNetworkServiceSettings++; if (buildCounterPreferentialNetworkServiceSettings < 3) { o.defaultPreferentialNetworkId = 'foo'; - o.preferentialNetworkServiceConfigs = buildUnnamed93(); + o.preferentialNetworkServiceConfigs = buildUnnamed95(); } buildCounterPreferentialNetworkServiceSettings--; return o; @@ -3550,7 +3613,7 @@ void checkPreferentialNetworkServiceSettings( buildCounterPreferentialNetworkServiceSettings++; if (buildCounterPreferentialNetworkServiceSettings < 3) { unittest.expect(o.defaultPreferentialNetworkId!, unittest.equals('foo')); - checkUnnamed93(o.preferentialNetworkServiceConfigs!); + checkUnnamed95(o.preferentialNetworkServiceConfigs!); } buildCounterPreferentialNetworkServiceSettings--; } @@ -3594,9 +3657,9 @@ void checkProvisioningInfo(api.ProvisioningInfo o) { buildCounterProvisioningInfo--; } -core.List buildUnnamed94() => ['foo', 'foo']; +core.List buildUnnamed96() => ['foo', 'foo']; -void checkUnnamed94(core.List o) { +void checkUnnamed96(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3607,7 +3670,7 @@ api.ProxyInfo buildProxyInfo() { final o = api.ProxyInfo(); buildCounterProxyInfo++; if (buildCounterProxyInfo < 3) { - o.excludedHosts = buildUnnamed94(); + o.excludedHosts = buildUnnamed96(); o.host = 'foo'; o.pacUri = 'foo'; o.port = 42; @@ -3619,7 +3682,7 @@ api.ProxyInfo buildProxyInfo() { void checkProxyInfo(api.ProxyInfo o) { buildCounterProxyInfo++; if (buildCounterProxyInfo < 3) { - checkUnnamed94(o.excludedHosts!); + checkUnnamed96(o.excludedHosts!); unittest.expect(o.host!, unittest.equals('foo')); unittest.expect(o.pacUri!, unittest.equals('foo')); unittest.expect(o.port!, unittest.equals(42)); @@ -3646,9 +3709,9 @@ void checkRemoveEsimParams(api.RemoveEsimParams o) { buildCounterRemoveEsimParams--; } -core.List buildUnnamed95() => ['foo', 'foo']; +core.List buildUnnamed97() => ['foo', 'foo']; -void checkUnnamed95(core.List o) { +void checkUnnamed97(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3659,7 +3722,7 @@ api.RemovePolicyApplicationsRequest buildRemovePolicyApplicationsRequest() { final o = api.RemovePolicyApplicationsRequest(); buildCounterRemovePolicyApplicationsRequest++; if (buildCounterRemovePolicyApplicationsRequest < 3) { - o.packageNames = buildUnnamed95(); + o.packageNames = buildUnnamed97(); } buildCounterRemovePolicyApplicationsRequest--; return o; @@ -3670,7 +3733,7 @@ void checkRemovePolicyApplicationsRequest( ) { buildCounterRemovePolicyApplicationsRequest++; if (buildCounterRemovePolicyApplicationsRequest < 3) { - checkUnnamed95(o.packageNames!); + checkUnnamed97(o.packageNames!); } buildCounterRemovePolicyApplicationsRequest--; } @@ -3736,6 +3799,25 @@ void checkRequestDeviceInfoStatus(api.RequestDeviceInfoStatus o) { buildCounterRequestDeviceInfoStatus--; } +core.int buildCounterRole = 0; +api.Role buildRole() { + final o = api.Role(); + buildCounterRole++; + if (buildCounterRole < 3) { + o.roleType = 'foo'; + } + buildCounterRole--; + return o; +} + +void checkRole(api.Role o) { + buildCounterRole++; + if (buildCounterRole < 3) { + unittest.expect(o.roleType!, unittest.equals('foo')); + } + buildCounterRole--; +} + core.int buildCounterScreenBrightnessSettings = 0; api.ScreenBrightnessSettings buildScreenBrightnessSettings() { final o = api.ScreenBrightnessSettings(); @@ -3778,12 +3860,12 @@ void checkScreenTimeoutSettings(api.ScreenTimeoutSettings o) { buildCounterScreenTimeoutSettings--; } -core.List buildUnnamed96() => [ +core.List buildUnnamed98() => [ buildPostureDetail(), buildPostureDetail(), ]; -void checkUnnamed96(core.List o) { +void checkUnnamed98(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPostureDetail(o[0]); checkPostureDetail(o[1]); @@ -3795,7 +3877,7 @@ api.SecurityPosture buildSecurityPosture() { buildCounterSecurityPosture++; if (buildCounterSecurityPosture < 3) { o.devicePosture = 'foo'; - o.postureDetails = buildUnnamed96(); + o.postureDetails = buildUnnamed98(); } buildCounterSecurityPosture--; return o; @@ -3805,7 +3887,7 @@ void checkSecurityPosture(api.SecurityPosture o) { buildCounterSecurityPosture++; if (buildCounterSecurityPosture < 3) { unittest.expect(o.devicePosture!, unittest.equals('foo')); - checkUnnamed96(o.postureDetails!); + checkUnnamed98(o.postureDetails!); } buildCounterSecurityPosture--; } @@ -3989,7 +4071,7 @@ void checkStartLostModeStatus(api.StartLostModeStatus o) { buildCounterStartLostModeStatus--; } -core.Map buildUnnamed97() => { +core.Map buildUnnamed99() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -4002,7 +4084,7 @@ core.Map buildUnnamed97() => { }, }; -void checkUnnamed97(core.Map o) { +void checkUnnamed99(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted11 = (o['x']!) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); @@ -4016,15 +4098,15 @@ void checkUnnamed97(core.Map o) { unittest.expect(casted12['string'], unittest.equals('foo')); } -core.List> buildUnnamed98() => [ - buildUnnamed97(), - buildUnnamed97(), +core.List> buildUnnamed100() => [ + buildUnnamed99(), + buildUnnamed99(), ]; -void checkUnnamed98(core.List> o) { +void checkUnnamed100(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed97(o[0]); - checkUnnamed97(o[1]); + checkUnnamed99(o[0]); + checkUnnamed99(o[1]); } core.int buildCounterStatus = 0; @@ -4033,7 +4115,7 @@ api.Status buildStatus() { buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed98(); + o.details = buildUnnamed100(); o.message = 'foo'; } buildCounterStatus--; @@ -4044,7 +4126,7 @@ void checkStatus(api.Status o) { buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed98(o.details!); + checkUnnamed100(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStatus--; @@ -4123,12 +4205,12 @@ void checkStopLostModeStatus(api.StopLostModeStatus o) { buildCounterStopLostModeStatus--; } -core.List buildUnnamed99() => [ +core.List buildUnnamed101() => [ buildFreezePeriod(), buildFreezePeriod(), ]; -void checkUnnamed99(core.List o) { +void checkUnnamed101(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFreezePeriod(o[0]); checkFreezePeriod(o[1]); @@ -4140,7 +4222,7 @@ api.SystemUpdate buildSystemUpdate() { buildCounterSystemUpdate++; if (buildCounterSystemUpdate < 3) { o.endMinutes = 42; - o.freezePeriods = buildUnnamed99(); + o.freezePeriods = buildUnnamed101(); o.startMinutes = 42; o.type = 'foo'; } @@ -4152,7 +4234,7 @@ void checkSystemUpdate(api.SystemUpdate o) { buildCounterSystemUpdate++; if (buildCounterSystemUpdate < 3) { unittest.expect(o.endMinutes!, unittest.equals(42)); - checkUnnamed99(o.freezePeriods!); + checkUnnamed101(o.freezePeriods!); unittest.expect(o.startMinutes!, unittest.equals(42)); unittest.expect(o.type!, unittest.equals('foo')); } @@ -4228,17 +4310,17 @@ void checkTermsAndConditions(api.TermsAndConditions o) { buildCounterTermsAndConditions--; } -core.List buildUnnamed100() => ['foo', 'foo']; +core.List buildUnnamed102() => ['foo', 'foo']; -void checkUnnamed100(core.List o) { +void checkUnnamed102(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed101() => ['foo', 'foo']; +core.List buildUnnamed103() => ['foo', 'foo']; -void checkUnnamed101(core.List o) { +void checkUnnamed103(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4249,8 +4331,8 @@ api.UsageLog buildUsageLog() { final o = api.UsageLog(); buildCounterUsageLog++; if (buildCounterUsageLog < 3) { - o.enabledLogTypes = buildUnnamed100(); - o.uploadOnCellularAllowed = buildUnnamed101(); + o.enabledLogTypes = buildUnnamed102(); + o.uploadOnCellularAllowed = buildUnnamed103(); } buildCounterUsageLog--; return o; @@ -4259,8 +4341,8 @@ api.UsageLog buildUsageLog() { void checkUsageLog(api.UsageLog o) { buildCounterUsageLog++; if (buildCounterUsageLog < 3) { - checkUnnamed100(o.enabledLogTypes!); - checkUnnamed101(o.uploadOnCellularAllowed!); + checkUnnamed102(o.enabledLogTypes!); + checkUnnamed103(o.uploadOnCellularAllowed!); } buildCounterUsageLog--; } @@ -4284,12 +4366,12 @@ void checkUser(api.User o) { buildCounterUser--; } -core.Map buildUnnamed102() => { +core.Map buildUnnamed104() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed102(core.Map o) { +void checkUnnamed104(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -4301,7 +4383,7 @@ api.UserFacingMessage buildUserFacingMessage() { buildCounterUserFacingMessage++; if (buildCounterUserFacingMessage < 3) { o.defaultMessage = 'foo'; - o.localizedMessages = buildUnnamed102(); + o.localizedMessages = buildUnnamed104(); } buildCounterUserFacingMessage--; return o; @@ -4311,17 +4393,17 @@ void checkUserFacingMessage(api.UserFacingMessage o) { buildCounterUserFacingMessage++; if (buildCounterUserFacingMessage < 3) { unittest.expect(o.defaultMessage!, unittest.equals('foo')); - checkUnnamed102(o.localizedMessages!); + checkUnnamed104(o.localizedMessages!); } buildCounterUserFacingMessage--; } -core.List buildUnnamed103() => [ +core.List buildUnnamed105() => [ buildWebAppIcon(), buildWebAppIcon(), ]; -void checkUnnamed103(core.List o) { +void checkUnnamed105(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkWebAppIcon(o[0]); checkWebAppIcon(o[1]); @@ -4333,7 +4415,7 @@ api.WebApp buildWebApp() { buildCounterWebApp++; if (buildCounterWebApp < 3) { o.displayMode = 'foo'; - o.icons = buildUnnamed103(); + o.icons = buildUnnamed105(); o.name = 'foo'; o.startUrl = 'foo'; o.title = 'foo'; @@ -4347,7 +4429,7 @@ void checkWebApp(api.WebApp o) { buildCounterWebApp++; if (buildCounterWebApp < 3) { unittest.expect(o.displayMode!, unittest.equals('foo')); - checkUnnamed103(o.icons!); + checkUnnamed105(o.icons!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.startUrl!, unittest.equals('foo')); unittest.expect(o.title!, unittest.equals('foo')); @@ -4375,17 +4457,17 @@ void checkWebAppIcon(api.WebAppIcon o) { buildCounterWebAppIcon--; } -core.List buildUnnamed104() => ['foo', 'foo']; +core.List buildUnnamed106() => ['foo', 'foo']; -void checkUnnamed104(core.List o) { +void checkUnnamed106(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed105() => ['foo', 'foo']; +core.List buildUnnamed107() => ['foo', 'foo']; -void checkUnnamed105(core.List o) { +void checkUnnamed107(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4396,10 +4478,10 @@ api.WebToken buildWebToken() { final o = api.WebToken(); buildCounterWebToken++; if (buildCounterWebToken < 3) { - o.enabledFeatures = buildUnnamed104(); + o.enabledFeatures = buildUnnamed106(); o.name = 'foo'; o.parentFrameUrl = 'foo'; - o.permissions = buildUnnamed105(); + o.permissions = buildUnnamed107(); o.value = 'foo'; } buildCounterWebToken--; @@ -4409,21 +4491,21 @@ api.WebToken buildWebToken() { void checkWebToken(api.WebToken o) { buildCounterWebToken++; if (buildCounterWebToken < 3) { - checkUnnamed104(o.enabledFeatures!); + checkUnnamed106(o.enabledFeatures!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.parentFrameUrl!, unittest.equals('foo')); - checkUnnamed105(o.permissions!); + checkUnnamed107(o.permissions!); unittest.expect(o.value!, unittest.equals('foo')); } buildCounterWebToken--; } -core.List buildUnnamed106() => [ +core.List buildUnnamed108() => [ buildWifiRoamingSetting(), buildWifiRoamingSetting(), ]; -void checkUnnamed106(core.List o) { +void checkUnnamed108(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkWifiRoamingSetting(o[0]); checkWifiRoamingSetting(o[1]); @@ -4434,7 +4516,7 @@ api.WifiRoamingPolicy buildWifiRoamingPolicy() { final o = api.WifiRoamingPolicy(); buildCounterWifiRoamingPolicy++; if (buildCounterWifiRoamingPolicy < 3) { - o.wifiRoamingSettings = buildUnnamed106(); + o.wifiRoamingSettings = buildUnnamed108(); } buildCounterWifiRoamingPolicy--; return o; @@ -4443,7 +4525,7 @@ api.WifiRoamingPolicy buildWifiRoamingPolicy() { void checkWifiRoamingPolicy(api.WifiRoamingPolicy o) { buildCounterWifiRoamingPolicy++; if (buildCounterWifiRoamingPolicy < 3) { - checkUnnamed106(o.wifiRoamingSettings!); + checkUnnamed108(o.wifiRoamingSettings!); } buildCounterWifiRoamingPolicy--; } @@ -4488,9 +4570,9 @@ void checkWifiSsid(api.WifiSsid o) { buildCounterWifiSsid--; } -core.List buildUnnamed107() => [buildWifiSsid(), buildWifiSsid()]; +core.List buildUnnamed109() => [buildWifiSsid(), buildWifiSsid()]; -void checkUnnamed107(core.List o) { +void checkUnnamed109(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkWifiSsid(o[0]); checkWifiSsid(o[1]); @@ -4502,7 +4584,7 @@ api.WifiSsidPolicy buildWifiSsidPolicy() { buildCounterWifiSsidPolicy++; if (buildCounterWifiSsidPolicy < 3) { o.wifiSsidPolicyType = 'foo'; - o.wifiSsids = buildUnnamed107(); + o.wifiSsids = buildUnnamed109(); } buildCounterWifiSsidPolicy--; return o; @@ -4512,7 +4594,7 @@ void checkWifiSsidPolicy(api.WifiSsidPolicy o) { buildCounterWifiSsidPolicy++; if (buildCounterWifiSsidPolicy < 3) { unittest.expect(o.wifiSsidPolicyType!, unittest.equals('foo')); - checkUnnamed107(o.wifiSsids!); + checkUnnamed109(o.wifiSsids!); } buildCounterWifiSsidPolicy--; } @@ -4538,9 +4620,9 @@ void checkWipeAction(api.WipeAction o) { buildCounterWipeAction--; } -core.List buildUnnamed108() => ['foo', 'foo']; +core.List buildUnnamed110() => ['foo', 'foo']; -void checkUnnamed108(core.List o) { +void checkUnnamed110(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4551,7 +4633,7 @@ api.WipeParams buildWipeParams() { final o = api.WipeParams(); buildCounterWipeParams++; if (buildCounterWipeParams < 3) { - o.wipeDataFlags = buildUnnamed108(); + o.wipeDataFlags = buildUnnamed110(); o.wipeReason = buildUserFacingMessage(); } buildCounterWipeParams--; @@ -4561,7 +4643,7 @@ api.WipeParams buildWipeParams() { void checkWipeParams(api.WipeParams o) { buildCounterWipeParams++; if (buildCounterWipeParams < 3) { - checkUnnamed108(o.wipeDataFlags!); + checkUnnamed110(o.wipeDataFlags!); checkUserFacingMessage(o.wipeReason!); } buildCounterWipeParams--; @@ -4588,17 +4670,17 @@ void checkWorkAccountSetupConfig(api.WorkAccountSetupConfig o) { buildCounterWorkAccountSetupConfig--; } -core.List buildUnnamed109() => ['foo', 'foo']; +core.List buildUnnamed111() => ['foo', 'foo']; -void checkUnnamed109(core.List o) { +void checkUnnamed111(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed110() => ['foo', 'foo']; +core.List buildUnnamed112() => ['foo', 'foo']; -void checkUnnamed110(core.List o) { +void checkUnnamed112(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4770,6 +4852,17 @@ void main() { }); }); + unittest.group('obj-schema-ApplicationSigningKeyCert', () { + unittest.test('to-json--from-json', () async { + final o = buildApplicationSigningKeyCert(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ApplicationSigningKeyCert.fromJson( + oJson as core.Map, + ); + checkApplicationSigningKeyCert(od); + }); + }); + unittest.group('obj-schema-BlockAction', () { unittest.test('to-json--from-json', () async { final o = buildBlockAction(); @@ -4880,6 +4973,17 @@ void main() { }); }); + unittest.group('obj-schema-CustomAppConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildCustomAppConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.CustomAppConfig.fromJson( + oJson as core.Map, + ); + checkCustomAppConfig(od); + }); + }); + unittest.group('obj-schema-Date', () { unittest.test('to-json--from-json', () async { final o = buildDate(); @@ -5659,6 +5763,17 @@ void main() { }); }); + unittest.group('obj-schema-Role', () { + unittest.test('to-json--from-json', () async { + final o = buildRole(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Role.fromJson( + oJson as core.Map, + ); + checkRole(od); + }); + }); + unittest.group('obj-schema-ScreenBrightnessSettings', () { unittest.test('to-json--from-json', () async { final o = buildScreenBrightnessSettings(); @@ -6471,7 +6586,7 @@ void main() { final mock = HttpServerMock(); final res = api.AndroidManagementApi(mock).enterprises.devices; final arg_name = 'foo'; - final arg_wipeDataFlags = buildUnnamed109(); + final arg_wipeDataFlags = buildUnnamed111(); final arg_wipeReasonMessage = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -8212,7 +8327,7 @@ void main() { final mock = HttpServerMock(); final res = api.AndroidManagementApi(mock).signupUrls; final arg_adminEmail = 'foo'; - final arg_allowedDomains = buildUnnamed110(); + final arg_allowedDomains = buildUnnamed112(); final arg_callbackUrl = 'foo'; final arg_projectId = 'foo'; final arg_$fields = 'foo'; diff --git a/generated/googleapis/test/androidpublisher/v3_test.dart b/generated/googleapis/test/androidpublisher/v3_test.dart index 1d5ca3d4a..b03e68ce2 100644 --- a/generated/googleapis/test/androidpublisher/v3_test.dart +++ b/generated/googleapis/test/androidpublisher/v3_test.dart @@ -731,6 +731,7 @@ api.AutoRenewingPlan buildAutoRenewingPlan() { o.autoRenewEnabled = true; o.installmentDetails = buildInstallmentPlan(); o.priceChangeDetails = buildSubscriptionItemPriceChangeDetails(); + o.priceStepUpConsentDetails = buildPriceStepUpConsentDetails(); o.recurringPrice = buildMoney(); } buildCounterAutoRenewingPlan--; @@ -743,6 +744,7 @@ void checkAutoRenewingPlan(api.AutoRenewingPlan o) { unittest.expect(o.autoRenewEnabled!, unittest.isTrue); checkInstallmentPlan(o.installmentDetails!); checkSubscriptionItemPriceChangeDetails(o.priceChangeDetails!); + checkPriceStepUpConsentDetails(o.priceStepUpConsentDetails!); checkMoney(o.recurringPrice!); } buildCounterAutoRenewingPlan--; @@ -1839,6 +1841,45 @@ void checkCancelOneTimeProductOfferRequest( buildCounterCancelOneTimeProductOfferRequest--; } +core.int buildCounterCancelSubscriptionPurchaseRequest = 0; +api.CancelSubscriptionPurchaseRequest buildCancelSubscriptionPurchaseRequest() { + final o = api.CancelSubscriptionPurchaseRequest(); + buildCounterCancelSubscriptionPurchaseRequest++; + if (buildCounterCancelSubscriptionPurchaseRequest < 3) { + o.cancellationContext = buildCancellationContext(); + } + buildCounterCancelSubscriptionPurchaseRequest--; + return o; +} + +void checkCancelSubscriptionPurchaseRequest( + api.CancelSubscriptionPurchaseRequest o, +) { + buildCounterCancelSubscriptionPurchaseRequest++; + if (buildCounterCancelSubscriptionPurchaseRequest < 3) { + checkCancellationContext(o.cancellationContext!); + } + buildCounterCancelSubscriptionPurchaseRequest--; +} + +core.int buildCounterCancelSubscriptionPurchaseResponse = 0; +api.CancelSubscriptionPurchaseResponse +buildCancelSubscriptionPurchaseResponse() { + final o = api.CancelSubscriptionPurchaseResponse(); + buildCounterCancelSubscriptionPurchaseResponse++; + if (buildCounterCancelSubscriptionPurchaseResponse < 3) {} + buildCounterCancelSubscriptionPurchaseResponse--; + return o; +} + +void checkCancelSubscriptionPurchaseResponse( + api.CancelSubscriptionPurchaseResponse o, +) { + buildCounterCancelSubscriptionPurchaseResponse++; + if (buildCounterCancelSubscriptionPurchaseResponse < 3) {} + buildCounterCancelSubscriptionPurchaseResponse--; +} + core.int buildCounterCancelSurveyResult = 0; api.CancelSurveyResult buildCancelSurveyResult() { final o = api.CancelSurveyResult(); @@ -1885,6 +1926,25 @@ void checkCanceledStateContext(api.CanceledStateContext o) { buildCounterCanceledStateContext--; } +core.int buildCounterCancellationContext = 0; +api.CancellationContext buildCancellationContext() { + final o = api.CancellationContext(); + buildCounterCancellationContext++; + if (buildCounterCancellationContext < 3) { + o.cancellationType = 'foo'; + } + buildCounterCancellationContext--; + return o; +} + +void checkCancellationContext(api.CancellationContext o) { + buildCounterCancellationContext++; + if (buildCounterCancellationContext < 3) { + unittest.expect(o.cancellationType!, unittest.equals('foo')); + } + buildCounterCancellationContext--; +} + core.int buildCounterCancellationEvent = 0; api.CancellationEvent buildCancellationEvent() { final o = api.CancellationEvent(); @@ -2184,6 +2244,21 @@ void checkDeactivateSubscriptionOfferRequest( buildCounterDeactivateSubscriptionOfferRequest--; } +core.int buildCounterDeferredItemRemoval = 0; +api.DeferredItemRemoval buildDeferredItemRemoval() { + final o = api.DeferredItemRemoval(); + buildCounterDeferredItemRemoval++; + if (buildCounterDeferredItemRemoval < 3) {} + buildCounterDeferredItemRemoval--; + return o; +} + +void checkDeferredItemRemoval(api.DeferredItemRemoval o) { + buildCounterDeferredItemRemoval++; + if (buildCounterDeferredItemRemoval < 3) {} + buildCounterDeferredItemRemoval--; +} + core.int buildCounterDeferredItemReplacement = 0; api.DeferredItemReplacement buildDeferredItemReplacement() { final o = api.DeferredItemReplacement(); @@ -5448,6 +5523,29 @@ void checkPrice(api.Price o) { buildCounterPrice--; } +core.int buildCounterPriceStepUpConsentDetails = 0; +api.PriceStepUpConsentDetails buildPriceStepUpConsentDetails() { + final o = api.PriceStepUpConsentDetails(); + buildCounterPriceStepUpConsentDetails++; + if (buildCounterPriceStepUpConsentDetails < 3) { + o.consentDeadlineTime = 'foo'; + o.newPrice = buildMoney(); + o.state = 'foo'; + } + buildCounterPriceStepUpConsentDetails--; + return o; +} + +void checkPriceStepUpConsentDetails(api.PriceStepUpConsentDetails o) { + buildCounterPriceStepUpConsentDetails++; + if (buildCounterPriceStepUpConsentDetails < 3) { + unittest.expect(o.consentDeadlineTime!, unittest.equals('foo')); + checkMoney(o.newPrice!); + unittest.expect(o.state!, unittest.equals('foo')); + } + buildCounterPriceStepUpConsentDetails--; +} + core.int buildCounterProcessedEvent = 0; api.ProcessedEvent buildProcessedEvent() { final o = api.ProcessedEvent(); @@ -7067,6 +7165,7 @@ api.SubscriptionPurchaseLineItem buildSubscriptionPurchaseLineItem() { buildCounterSubscriptionPurchaseLineItem++; if (buildCounterSubscriptionPurchaseLineItem < 3) { o.autoRenewingPlan = buildAutoRenewingPlan(); + o.deferredItemRemoval = buildDeferredItemRemoval(); o.deferredItemReplacement = buildDeferredItemReplacement(); o.expiryTime = 'foo'; o.latestSuccessfulOrderId = 'foo'; @@ -7083,6 +7182,7 @@ void checkSubscriptionPurchaseLineItem(api.SubscriptionPurchaseLineItem o) { buildCounterSubscriptionPurchaseLineItem++; if (buildCounterSubscriptionPurchaseLineItem < 3) { checkAutoRenewingPlan(o.autoRenewingPlan!); + checkDeferredItemRemoval(o.deferredItemRemoval!); checkDeferredItemReplacement(o.deferredItemReplacement!); unittest.expect(o.expiryTime!, unittest.equals('foo')); unittest.expect(o.latestSuccessfulOrderId!, unittest.equals('foo')); @@ -9161,6 +9261,28 @@ void main() { }); }); + unittest.group('obj-schema-CancelSubscriptionPurchaseRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildCancelSubscriptionPurchaseRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.CancelSubscriptionPurchaseRequest.fromJson( + oJson as core.Map, + ); + checkCancelSubscriptionPurchaseRequest(od); + }); + }); + + unittest.group('obj-schema-CancelSubscriptionPurchaseResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildCancelSubscriptionPurchaseResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.CancelSubscriptionPurchaseResponse.fromJson( + oJson as core.Map, + ); + checkCancelSubscriptionPurchaseResponse(od); + }); + }); + unittest.group('obj-schema-CancelSurveyResult', () { unittest.test('to-json--from-json', () async { final o = buildCancelSurveyResult(); @@ -9183,6 +9305,17 @@ void main() { }); }); + unittest.group('obj-schema-CancellationContext', () { + unittest.test('to-json--from-json', () async { + final o = buildCancellationContext(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.CancellationContext.fromJson( + oJson as core.Map, + ); + checkCancellationContext(od); + }); + }); + unittest.group('obj-schema-CancellationEvent', () { unittest.test('to-json--from-json', () async { final o = buildCancellationEvent(); @@ -9315,6 +9448,17 @@ void main() { }); }); + unittest.group('obj-schema-DeferredItemRemoval', () { + unittest.test('to-json--from-json', () async { + final o = buildDeferredItemRemoval(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.DeferredItemRemoval.fromJson( + oJson as core.Map, + ); + checkDeferredItemRemoval(od); + }); + }); + unittest.group('obj-schema-DeferredItemReplacement', () { unittest.test('to-json--from-json', () async { final o = buildDeferredItemReplacement(); @@ -10585,6 +10729,17 @@ void main() { }); }); + unittest.group('obj-schema-PriceStepUpConsentDetails', () { + unittest.test('to-json--from-json', () async { + final o = buildPriceStepUpConsentDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.PriceStepUpConsentDetails.fromJson( + oJson as core.Map, + ); + checkPriceStepUpConsentDetails(od); + }); + }); + unittest.group('obj-schema-ProcessedEvent', () { unittest.test('to-json--from-json', () async { final o = buildProcessedEvent(); @@ -22596,6 +22751,101 @@ void main() { }); unittest.group('resource-PurchasesSubscriptionsv2Resource', () { + unittest.test('method--cancel', () async { + final mock = HttpServerMock(); + final res = api.AndroidPublisherApi(mock).purchases.subscriptionsv2; + final arg_request = buildCancelSubscriptionPurchaseRequest(); + final arg_packageName = 'foo'; + final arg_token = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.CancelSubscriptionPurchaseRequest.fromJson( + json as core.Map, + ); + checkCancelSubscriptionPurchaseRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 33), + unittest.equals('androidpublisher/v3/applications/'), + ); + pathOffset += 33; + index = path.indexOf( + '/purchases/subscriptionsv2/tokens/', + pathOffset, + ); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_packageName')); + unittest.expect( + path.substring(pathOffset, pathOffset + 34), + unittest.equals('/purchases/subscriptionsv2/tokens/'), + ); + pathOffset += 34; + index = path.indexOf(':cancel', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_token')); + unittest.expect( + path.substring(pathOffset, pathOffset + 7), + unittest.equals(':cancel'), + ); + pathOffset += 7; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildCancelSubscriptionPurchaseResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.cancel( + arg_request, + arg_packageName, + arg_token, + $fields: arg_$fields, + ); + checkCancelSubscriptionPurchaseResponse( + response as api.CancelSubscriptionPurchaseResponse, + ); + }); + unittest.test('method--get', () async { final mock = HttpServerMock(); final res = api.AndroidPublisherApi(mock).purchases.subscriptionsv2; diff --git a/generated/googleapis/test/apigee/v1_test.dart b/generated/googleapis/test/apigee/v1_test.dart index 7b9926791..773d39f09 100644 --- a/generated/googleapis/test/apigee/v1_test.dart +++ b/generated/googleapis/test/apigee/v1_test.dart @@ -6150,12 +6150,47 @@ void checkGoogleCloudApigeeV1ListSecurityActionsResponse( buildCounterGoogleCloudApigeeV1ListSecurityActionsResponse--; } -core.List buildUnnamed148() => [ +core.List buildUnnamed148() => [ + buildGoogleCloudApigeeV1SecurityFeedback(), + buildGoogleCloudApigeeV1SecurityFeedback(), +]; + +void checkUnnamed148(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1SecurityFeedback(o[0]); + checkGoogleCloudApigeeV1SecurityFeedback(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1ListSecurityFeedbackResponse = 0; +api.GoogleCloudApigeeV1ListSecurityFeedbackResponse +buildGoogleCloudApigeeV1ListSecurityFeedbackResponse() { + final o = api.GoogleCloudApigeeV1ListSecurityFeedbackResponse(); + buildCounterGoogleCloudApigeeV1ListSecurityFeedbackResponse++; + if (buildCounterGoogleCloudApigeeV1ListSecurityFeedbackResponse < 3) { + o.nextPageToken = 'foo'; + o.securityFeedback = buildUnnamed148(); + } + buildCounterGoogleCloudApigeeV1ListSecurityFeedbackResponse--; + return o; +} + +void checkGoogleCloudApigeeV1ListSecurityFeedbackResponse( + api.GoogleCloudApigeeV1ListSecurityFeedbackResponse o, +) { + buildCounterGoogleCloudApigeeV1ListSecurityFeedbackResponse++; + if (buildCounterGoogleCloudApigeeV1ListSecurityFeedbackResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed148(o.securityFeedback!); + } + buildCounterGoogleCloudApigeeV1ListSecurityFeedbackResponse--; +} + +core.List buildUnnamed149() => [ buildGoogleCloudApigeeV1SecurityIncident(), buildGoogleCloudApigeeV1SecurityIncident(), ]; -void checkUnnamed148(core.List o) { +void checkUnnamed149(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1SecurityIncident(o[0]); checkGoogleCloudApigeeV1SecurityIncident(o[1]); @@ -6168,7 +6203,7 @@ buildGoogleCloudApigeeV1ListSecurityIncidentsResponse() { buildCounterGoogleCloudApigeeV1ListSecurityIncidentsResponse++; if (buildCounterGoogleCloudApigeeV1ListSecurityIncidentsResponse < 3) { o.nextPageToken = 'foo'; - o.securityIncidents = buildUnnamed148(); + o.securityIncidents = buildUnnamed149(); } buildCounterGoogleCloudApigeeV1ListSecurityIncidentsResponse--; return o; @@ -6180,18 +6215,18 @@ void checkGoogleCloudApigeeV1ListSecurityIncidentsResponse( buildCounterGoogleCloudApigeeV1ListSecurityIncidentsResponse++; if (buildCounterGoogleCloudApigeeV1ListSecurityIncidentsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed148(o.securityIncidents!); + checkUnnamed149(o.securityIncidents!); } buildCounterGoogleCloudApigeeV1ListSecurityIncidentsResponse--; } core.List -buildUnnamed149() => [ +buildUnnamed150() => [ buildGoogleCloudApigeeV1SecurityMonitoringCondition(), buildGoogleCloudApigeeV1SecurityMonitoringCondition(), ]; -void checkUnnamed149( +void checkUnnamed150( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -6208,7 +6243,7 @@ buildGoogleCloudApigeeV1ListSecurityMonitoringConditionsResponse() { if (buildCounterGoogleCloudApigeeV1ListSecurityMonitoringConditionsResponse < 3) { o.nextPageToken = 'foo'; - o.securityMonitoringConditions = buildUnnamed149(); + o.securityMonitoringConditions = buildUnnamed150(); } buildCounterGoogleCloudApigeeV1ListSecurityMonitoringConditionsResponse--; return o; @@ -6221,17 +6256,17 @@ void checkGoogleCloudApigeeV1ListSecurityMonitoringConditionsResponse( if (buildCounterGoogleCloudApigeeV1ListSecurityMonitoringConditionsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed149(o.securityMonitoringConditions!); + checkUnnamed150(o.securityMonitoringConditions!); } buildCounterGoogleCloudApigeeV1ListSecurityMonitoringConditionsResponse--; } -core.List buildUnnamed150() => [ +core.List buildUnnamed151() => [ buildGoogleCloudApigeeV1SecurityProfile(), buildGoogleCloudApigeeV1SecurityProfile(), ]; -void checkUnnamed150(core.List o) { +void checkUnnamed151(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1SecurityProfile(o[0]); checkGoogleCloudApigeeV1SecurityProfile(o[1]); @@ -6245,7 +6280,7 @@ buildGoogleCloudApigeeV1ListSecurityProfileRevisionsResponse() { buildCounterGoogleCloudApigeeV1ListSecurityProfileRevisionsResponse++; if (buildCounterGoogleCloudApigeeV1ListSecurityProfileRevisionsResponse < 3) { o.nextPageToken = 'foo'; - o.securityProfiles = buildUnnamed150(); + o.securityProfiles = buildUnnamed151(); } buildCounterGoogleCloudApigeeV1ListSecurityProfileRevisionsResponse--; return o; @@ -6257,17 +6292,17 @@ void checkGoogleCloudApigeeV1ListSecurityProfileRevisionsResponse( buildCounterGoogleCloudApigeeV1ListSecurityProfileRevisionsResponse++; if (buildCounterGoogleCloudApigeeV1ListSecurityProfileRevisionsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed150(o.securityProfiles!); + checkUnnamed151(o.securityProfiles!); } buildCounterGoogleCloudApigeeV1ListSecurityProfileRevisionsResponse--; } -core.List buildUnnamed151() => [ +core.List buildUnnamed152() => [ buildGoogleCloudApigeeV1SecurityProfile(), buildGoogleCloudApigeeV1SecurityProfile(), ]; -void checkUnnamed151(core.List o) { +void checkUnnamed152(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1SecurityProfile(o[0]); checkGoogleCloudApigeeV1SecurityProfile(o[1]); @@ -6280,7 +6315,7 @@ buildGoogleCloudApigeeV1ListSecurityProfilesResponse() { buildCounterGoogleCloudApigeeV1ListSecurityProfilesResponse++; if (buildCounterGoogleCloudApigeeV1ListSecurityProfilesResponse < 3) { o.nextPageToken = 'foo'; - o.securityProfiles = buildUnnamed151(); + o.securityProfiles = buildUnnamed152(); } buildCounterGoogleCloudApigeeV1ListSecurityProfilesResponse--; return o; @@ -6292,17 +6327,17 @@ void checkGoogleCloudApigeeV1ListSecurityProfilesResponse( buildCounterGoogleCloudApigeeV1ListSecurityProfilesResponse++; if (buildCounterGoogleCloudApigeeV1ListSecurityProfilesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed151(o.securityProfiles!); + checkUnnamed152(o.securityProfiles!); } buildCounterGoogleCloudApigeeV1ListSecurityProfilesResponse--; } -core.List buildUnnamed152() => [ +core.List buildUnnamed153() => [ buildGoogleCloudApigeeV1SecurityProfileV2(), buildGoogleCloudApigeeV1SecurityProfileV2(), ]; -void checkUnnamed152(core.List o) { +void checkUnnamed153(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1SecurityProfileV2(o[0]); checkGoogleCloudApigeeV1SecurityProfileV2(o[1]); @@ -6315,7 +6350,7 @@ buildGoogleCloudApigeeV1ListSecurityProfilesV2Response() { buildCounterGoogleCloudApigeeV1ListSecurityProfilesV2Response++; if (buildCounterGoogleCloudApigeeV1ListSecurityProfilesV2Response < 3) { o.nextPageToken = 'foo'; - o.securityProfilesV2 = buildUnnamed152(); + o.securityProfilesV2 = buildUnnamed153(); } buildCounterGoogleCloudApigeeV1ListSecurityProfilesV2Response--; return o; @@ -6327,17 +6362,17 @@ void checkGoogleCloudApigeeV1ListSecurityProfilesV2Response( buildCounterGoogleCloudApigeeV1ListSecurityProfilesV2Response++; if (buildCounterGoogleCloudApigeeV1ListSecurityProfilesV2Response < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed152(o.securityProfilesV2!); + checkUnnamed153(o.securityProfilesV2!); } buildCounterGoogleCloudApigeeV1ListSecurityProfilesV2Response--; } -core.List buildUnnamed153() => [ +core.List buildUnnamed154() => [ buildGoogleCloudApigeeV1SecurityReport(), buildGoogleCloudApigeeV1SecurityReport(), ]; -void checkUnnamed153(core.List o) { +void checkUnnamed154(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1SecurityReport(o[0]); checkGoogleCloudApigeeV1SecurityReport(o[1]); @@ -6350,7 +6385,7 @@ buildGoogleCloudApigeeV1ListSecurityReportsResponse() { buildCounterGoogleCloudApigeeV1ListSecurityReportsResponse++; if (buildCounterGoogleCloudApigeeV1ListSecurityReportsResponse < 3) { o.nextPageToken = 'foo'; - o.securityReports = buildUnnamed153(); + o.securityReports = buildUnnamed154(); } buildCounterGoogleCloudApigeeV1ListSecurityReportsResponse--; return o; @@ -6362,17 +6397,17 @@ void checkGoogleCloudApigeeV1ListSecurityReportsResponse( buildCounterGoogleCloudApigeeV1ListSecurityReportsResponse++; if (buildCounterGoogleCloudApigeeV1ListSecurityReportsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed153(o.securityReports!); + checkUnnamed154(o.securityReports!); } buildCounterGoogleCloudApigeeV1ListSecurityReportsResponse--; } -core.List buildUnnamed154() => [ +core.List buildUnnamed155() => [ buildGoogleCloudApigeeV1SharedFlow(), buildGoogleCloudApigeeV1SharedFlow(), ]; -void checkUnnamed154(core.List o) { +void checkUnnamed155(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1SharedFlow(o[0]); checkGoogleCloudApigeeV1SharedFlow(o[1]); @@ -6384,7 +6419,7 @@ buildGoogleCloudApigeeV1ListSharedFlowsResponse() { final o = api.GoogleCloudApigeeV1ListSharedFlowsResponse(); buildCounterGoogleCloudApigeeV1ListSharedFlowsResponse++; if (buildCounterGoogleCloudApigeeV1ListSharedFlowsResponse < 3) { - o.sharedFlows = buildUnnamed154(); + o.sharedFlows = buildUnnamed155(); } buildCounterGoogleCloudApigeeV1ListSharedFlowsResponse--; return o; @@ -6395,17 +6430,17 @@ void checkGoogleCloudApigeeV1ListSharedFlowsResponse( ) { buildCounterGoogleCloudApigeeV1ListSharedFlowsResponse++; if (buildCounterGoogleCloudApigeeV1ListSharedFlowsResponse < 3) { - checkUnnamed154(o.sharedFlows!); + checkUnnamed155(o.sharedFlows!); } buildCounterGoogleCloudApigeeV1ListSharedFlowsResponse--; } -core.List buildUnnamed155() => [ +core.List buildUnnamed156() => [ buildGoogleCloudApigeeV1Space(), buildGoogleCloudApigeeV1Space(), ]; -void checkUnnamed155(core.List o) { +void checkUnnamed156(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Space(o[0]); checkGoogleCloudApigeeV1Space(o[1]); @@ -6418,7 +6453,7 @@ buildGoogleCloudApigeeV1ListSpacesResponse() { buildCounterGoogleCloudApigeeV1ListSpacesResponse++; if (buildCounterGoogleCloudApigeeV1ListSpacesResponse < 3) { o.nextPageToken = 'foo'; - o.spaces = buildUnnamed155(); + o.spaces = buildUnnamed156(); } buildCounterGoogleCloudApigeeV1ListSpacesResponse--; return o; @@ -6430,17 +6465,17 @@ void checkGoogleCloudApigeeV1ListSpacesResponse( buildCounterGoogleCloudApigeeV1ListSpacesResponse++; if (buildCounterGoogleCloudApigeeV1ListSpacesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed155(o.spaces!); + checkUnnamed156(o.spaces!); } buildCounterGoogleCloudApigeeV1ListSpacesResponse--; } -core.List buildUnnamed156() => [ +core.List buildUnnamed157() => [ buildGoogleCloudApigeeV1TraceConfigOverride(), buildGoogleCloudApigeeV1TraceConfigOverride(), ]; -void checkUnnamed156(core.List o) { +void checkUnnamed157(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1TraceConfigOverride(o[0]); checkGoogleCloudApigeeV1TraceConfigOverride(o[1]); @@ -6453,7 +6488,7 @@ buildGoogleCloudApigeeV1ListTraceConfigOverridesResponse() { buildCounterGoogleCloudApigeeV1ListTraceConfigOverridesResponse++; if (buildCounterGoogleCloudApigeeV1ListTraceConfigOverridesResponse < 3) { o.nextPageToken = 'foo'; - o.traceConfigOverrides = buildUnnamed156(); + o.traceConfigOverrides = buildUnnamed157(); } buildCounterGoogleCloudApigeeV1ListTraceConfigOverridesResponse--; return o; @@ -6465,22 +6500,22 @@ void checkGoogleCloudApigeeV1ListTraceConfigOverridesResponse( buildCounterGoogleCloudApigeeV1ListTraceConfigOverridesResponse++; if (buildCounterGoogleCloudApigeeV1ListTraceConfigOverridesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed156(o.traceConfigOverrides!); + checkUnnamed157(o.traceConfigOverrides!); } buildCounterGoogleCloudApigeeV1ListTraceConfigOverridesResponse--; } -core.List buildUnnamed157() => ['foo', 'foo']; +core.List buildUnnamed158() => ['foo', 'foo']; -void checkUnnamed157(core.List o) { +void checkUnnamed158(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed158() => ['foo', 'foo']; +core.List buildUnnamed159() => ['foo', 'foo']; -void checkUnnamed158(core.List o) { +void checkUnnamed159(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6491,8 +6526,8 @@ api.GoogleCloudApigeeV1Metadata buildGoogleCloudApigeeV1Metadata() { final o = api.GoogleCloudApigeeV1Metadata(); buildCounterGoogleCloudApigeeV1Metadata++; if (buildCounterGoogleCloudApigeeV1Metadata < 3) { - o.errors = buildUnnamed157(); - o.notices = buildUnnamed158(); + o.errors = buildUnnamed158(); + o.notices = buildUnnamed159(); } buildCounterGoogleCloudApigeeV1Metadata--; return o; @@ -6501,13 +6536,13 @@ api.GoogleCloudApigeeV1Metadata buildGoogleCloudApigeeV1Metadata() { void checkGoogleCloudApigeeV1Metadata(api.GoogleCloudApigeeV1Metadata o) { buildCounterGoogleCloudApigeeV1Metadata++; if (buildCounterGoogleCloudApigeeV1Metadata < 3) { - checkUnnamed157(o.errors!); - checkUnnamed158(o.notices!); + checkUnnamed158(o.errors!); + checkUnnamed159(o.notices!); } buildCounterGoogleCloudApigeeV1Metadata--; } -core.List buildUnnamed159() => [ +core.List buildUnnamed160() => [ { 'list': [1, 2, 3], 'bool': true, @@ -6520,7 +6555,7 @@ core.List buildUnnamed159() => [ }, ]; -void checkUnnamed159(core.List o) { +void checkUnnamed160(core.List o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -6540,7 +6575,7 @@ api.GoogleCloudApigeeV1Metric buildGoogleCloudApigeeV1Metric() { buildCounterGoogleCloudApigeeV1Metric++; if (buildCounterGoogleCloudApigeeV1Metric < 3) { o.name = 'foo'; - o.values = buildUnnamed159(); + o.values = buildUnnamed160(); } buildCounterGoogleCloudApigeeV1Metric--; return o; @@ -6550,7 +6585,7 @@ void checkGoogleCloudApigeeV1Metric(api.GoogleCloudApigeeV1Metric o) { buildCounterGoogleCloudApigeeV1Metric++; if (buildCounterGoogleCloudApigeeV1Metric < 3) { unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed159(o.values!); + checkUnnamed160(o.values!); } buildCounterGoogleCloudApigeeV1Metric--; } @@ -6739,9 +6774,9 @@ void checkGoogleCloudApigeeV1OASDocumentation( buildCounterGoogleCloudApigeeV1OASDocumentation--; } -core.List buildUnnamed160() => ['foo', 'foo']; +core.List buildUnnamed161() => ['foo', 'foo']; -void checkUnnamed160(core.List o) { +void checkUnnamed161(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6752,7 +6787,7 @@ api.GoogleCloudApigeeV1Operation buildGoogleCloudApigeeV1Operation() { final o = api.GoogleCloudApigeeV1Operation(); buildCounterGoogleCloudApigeeV1Operation++; if (buildCounterGoogleCloudApigeeV1Operation < 3) { - o.methods = buildUnnamed160(); + o.methods = buildUnnamed161(); o.resource = 'foo'; } buildCounterGoogleCloudApigeeV1Operation--; @@ -6762,29 +6797,29 @@ api.GoogleCloudApigeeV1Operation buildGoogleCloudApigeeV1Operation() { void checkGoogleCloudApigeeV1Operation(api.GoogleCloudApigeeV1Operation o) { buildCounterGoogleCloudApigeeV1Operation++; if (buildCounterGoogleCloudApigeeV1Operation < 3) { - checkUnnamed160(o.methods!); + checkUnnamed161(o.methods!); unittest.expect(o.resource!, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1Operation--; } -core.List buildUnnamed161() => [ +core.List buildUnnamed162() => [ buildGoogleCloudApigeeV1Attribute(), buildGoogleCloudApigeeV1Attribute(), ]; -void checkUnnamed161(core.List o) { +void checkUnnamed162(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Attribute(o[0]); checkGoogleCloudApigeeV1Attribute(o[1]); } -core.List buildUnnamed162() => [ +core.List buildUnnamed163() => [ buildGoogleCloudApigeeV1Operation(), buildGoogleCloudApigeeV1Operation(), ]; -void checkUnnamed162(core.List o) { +void checkUnnamed163(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Operation(o[0]); checkGoogleCloudApigeeV1Operation(o[1]); @@ -6797,8 +6832,8 @@ buildGoogleCloudApigeeV1OperationConfig() { buildCounterGoogleCloudApigeeV1OperationConfig++; if (buildCounterGoogleCloudApigeeV1OperationConfig < 3) { o.apiSource = 'foo'; - o.attributes = buildUnnamed161(); - o.operations = buildUnnamed162(); + o.attributes = buildUnnamed162(); + o.operations = buildUnnamed163(); o.quota = buildGoogleCloudApigeeV1Quota(); } buildCounterGoogleCloudApigeeV1OperationConfig--; @@ -6811,19 +6846,19 @@ void checkGoogleCloudApigeeV1OperationConfig( buildCounterGoogleCloudApigeeV1OperationConfig++; if (buildCounterGoogleCloudApigeeV1OperationConfig < 3) { unittest.expect(o.apiSource!, unittest.equals('foo')); - checkUnnamed161(o.attributes!); - checkUnnamed162(o.operations!); + checkUnnamed162(o.attributes!); + checkUnnamed163(o.operations!); checkGoogleCloudApigeeV1Quota(o.quota!); } buildCounterGoogleCloudApigeeV1OperationConfig--; } -core.List buildUnnamed163() => [ +core.List buildUnnamed164() => [ buildGoogleCloudApigeeV1OperationConfig(), buildGoogleCloudApigeeV1OperationConfig(), ]; -void checkUnnamed163(core.List o) { +void checkUnnamed164(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1OperationConfig(o[0]); checkGoogleCloudApigeeV1OperationConfig(o[1]); @@ -6835,7 +6870,7 @@ api.GoogleCloudApigeeV1OperationGroup buildGoogleCloudApigeeV1OperationGroup() { buildCounterGoogleCloudApigeeV1OperationGroup++; if (buildCounterGoogleCloudApigeeV1OperationGroup < 3) { o.operationConfigType = 'foo'; - o.operationConfigs = buildUnnamed163(); + o.operationConfigs = buildUnnamed164(); } buildCounterGoogleCloudApigeeV1OperationGroup--; return o; @@ -6847,7 +6882,7 @@ void checkGoogleCloudApigeeV1OperationGroup( buildCounterGoogleCloudApigeeV1OperationGroup++; if (buildCounterGoogleCloudApigeeV1OperationGroup < 3) { unittest.expect(o.operationConfigType!, unittest.equals('foo')); - checkUnnamed163(o.operationConfigs!); + checkUnnamed164(o.operationConfigs!); } buildCounterGoogleCloudApigeeV1OperationGroup--; } @@ -6873,7 +6908,7 @@ void checkGoogleCloudApigeeV1OptimizedStats( buildCounterGoogleCloudApigeeV1OptimizedStats--; } -core.List buildUnnamed164() => [ +core.List buildUnnamed165() => [ { 'list': [1, 2, 3], 'bool': true, @@ -6886,7 +6921,7 @@ core.List buildUnnamed164() => [ }, ]; -void checkUnnamed164(core.List o) { +void checkUnnamed165(core.List o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o[0]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); @@ -6906,7 +6941,7 @@ buildGoogleCloudApigeeV1OptimizedStatsNode() { final o = api.GoogleCloudApigeeV1OptimizedStatsNode(); buildCounterGoogleCloudApigeeV1OptimizedStatsNode++; if (buildCounterGoogleCloudApigeeV1OptimizedStatsNode < 3) { - o.data = buildUnnamed164(); + o.data = buildUnnamed165(); } buildCounterGoogleCloudApigeeV1OptimizedStatsNode--; return o; @@ -6917,14 +6952,14 @@ void checkGoogleCloudApigeeV1OptimizedStatsNode( ) { buildCounterGoogleCloudApigeeV1OptimizedStatsNode++; if (buildCounterGoogleCloudApigeeV1OptimizedStatsNode < 3) { - checkUnnamed164(o.data!); + checkUnnamed165(o.data!); } buildCounterGoogleCloudApigeeV1OptimizedStatsNode--; } -core.List buildUnnamed165() => ['foo', 'foo']; +core.List buildUnnamed166() => ['foo', 'foo']; -void checkUnnamed165(core.List o) { +void checkUnnamed166(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6936,7 +6971,7 @@ buildGoogleCloudApigeeV1OptimizedStatsResponse() { final o = api.GoogleCloudApigeeV1OptimizedStatsResponse(); buildCounterGoogleCloudApigeeV1OptimizedStatsResponse++; if (buildCounterGoogleCloudApigeeV1OptimizedStatsResponse < 3) { - o.TimeUnit = buildUnnamed165(); + o.TimeUnit = buildUnnamed166(); o.metaData = buildGoogleCloudApigeeV1Metadata(); o.resultTruncated = true; o.stats = buildGoogleCloudApigeeV1OptimizedStatsNode(); @@ -6950,7 +6985,7 @@ void checkGoogleCloudApigeeV1OptimizedStatsResponse( ) { buildCounterGoogleCloudApigeeV1OptimizedStatsResponse++; if (buildCounterGoogleCloudApigeeV1OptimizedStatsResponse < 3) { - checkUnnamed165(o.TimeUnit!); + checkUnnamed166(o.TimeUnit!); checkGoogleCloudApigeeV1Metadata(o.metaData!); unittest.expect(o.resultTruncated!, unittest.isTrue); checkGoogleCloudApigeeV1OptimizedStatsNode(o.stats!); @@ -6958,17 +6993,17 @@ void checkGoogleCloudApigeeV1OptimizedStatsResponse( buildCounterGoogleCloudApigeeV1OptimizedStatsResponse--; } -core.List buildUnnamed166() => ['foo', 'foo']; +core.List buildUnnamed167() => ['foo', 'foo']; -void checkUnnamed166(core.List o) { +void checkUnnamed167(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed167() => ['foo', 'foo']; +core.List buildUnnamed168() => ['foo', 'foo']; -void checkUnnamed167(core.List o) { +void checkUnnamed168(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6984,7 +7019,7 @@ api.GoogleCloudApigeeV1Organization buildGoogleCloudApigeeV1Organization() { o.apiConsumerDataEncryptionKeyName = 'foo'; o.apiConsumerDataLocation = 'foo'; o.apigeeProjectId = 'foo'; - o.attributes = buildUnnamed166(); + o.attributes = buildUnnamed167(); o.authorizedNetwork = 'foo'; o.billingType = 'foo'; o.caCertificate = 'foo'; @@ -6994,7 +7029,7 @@ api.GoogleCloudApigeeV1Organization buildGoogleCloudApigeeV1Organization() { o.description = 'foo'; o.disableVpcPeering = true; o.displayName = 'foo'; - o.environments = buildUnnamed167(); + o.environments = buildUnnamed168(); o.expiresAt = 'foo'; o.lastModifiedAt = 'foo'; o.name = 'foo'; @@ -7026,7 +7061,7 @@ void checkGoogleCloudApigeeV1Organization( ); unittest.expect(o.apiConsumerDataLocation!, unittest.equals('foo')); unittest.expect(o.apigeeProjectId!, unittest.equals('foo')); - checkUnnamed166(o.attributes!); + checkUnnamed167(o.attributes!); unittest.expect(o.authorizedNetwork!, unittest.equals('foo')); unittest.expect(o.billingType!, unittest.equals('foo')); unittest.expect(o.caCertificate!, unittest.equals('foo')); @@ -7036,7 +7071,7 @@ void checkGoogleCloudApigeeV1Organization( unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.disableVpcPeering!, unittest.isTrue); unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed167(o.environments!); + checkUnnamed168(o.environments!); unittest.expect(o.expiresAt!, unittest.equals('foo')); unittest.expect(o.lastModifiedAt!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); @@ -7057,9 +7092,9 @@ void checkGoogleCloudApigeeV1Organization( buildCounterGoogleCloudApigeeV1Organization--; } -core.List buildUnnamed168() => ['foo', 'foo']; +core.List buildUnnamed169() => ['foo', 'foo']; -void checkUnnamed168(core.List o) { +void checkUnnamed169(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7074,7 +7109,7 @@ buildGoogleCloudApigeeV1OrganizationProjectMapping() { o.location = 'foo'; o.organization = 'foo'; o.projectId = 'foo'; - o.projectIds = buildUnnamed168(); + o.projectIds = buildUnnamed169(); } buildCounterGoogleCloudApigeeV1OrganizationProjectMapping--; return o; @@ -7088,7 +7123,7 @@ void checkGoogleCloudApigeeV1OrganizationProjectMapping( unittest.expect(o.location!, unittest.equals('foo')); unittest.expect(o.organization!, unittest.equals('foo')); unittest.expect(o.projectId!, unittest.equals('foo')); - checkUnnamed168(o.projectIds!); + checkUnnamed169(o.projectIds!); } buildCounterGoogleCloudApigeeV1OrganizationProjectMapping--; } @@ -7128,12 +7163,12 @@ void checkGoogleCloudApigeeV1PodStatus(api.GoogleCloudApigeeV1PodStatus o) { buildCounterGoogleCloudApigeeV1PodStatus--; } -core.List buildUnnamed169() => [ +core.List buildUnnamed170() => [ buildGoogleCloudApigeeV1Result(), buildGoogleCloudApigeeV1Result(), ]; -void checkUnnamed169(core.List o) { +void checkUnnamed170(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Result(o[0]); checkGoogleCloudApigeeV1Result(o[1]); @@ -7145,7 +7180,7 @@ api.GoogleCloudApigeeV1Point buildGoogleCloudApigeeV1Point() { buildCounterGoogleCloudApigeeV1Point++; if (buildCounterGoogleCloudApigeeV1Point < 3) { o.id = 'foo'; - o.results = buildUnnamed169(); + o.results = buildUnnamed170(); } buildCounterGoogleCloudApigeeV1Point--; return o; @@ -7155,17 +7190,17 @@ void checkGoogleCloudApigeeV1Point(api.GoogleCloudApigeeV1Point o) { buildCounterGoogleCloudApigeeV1Point++; if (buildCounterGoogleCloudApigeeV1Point < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed169(o.results!); + checkUnnamed170(o.results!); } buildCounterGoogleCloudApigeeV1Point--; } -core.List buildUnnamed170() => [ +core.List buildUnnamed171() => [ buildGoogleCloudApigeeV1ProfileConfigCategory(), buildGoogleCloudApigeeV1ProfileConfigCategory(), ]; -void checkUnnamed170( +void checkUnnamed171( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -7178,7 +7213,7 @@ api.GoogleCloudApigeeV1ProfileConfig buildGoogleCloudApigeeV1ProfileConfig() { final o = api.GoogleCloudApigeeV1ProfileConfig(); buildCounterGoogleCloudApigeeV1ProfileConfig++; if (buildCounterGoogleCloudApigeeV1ProfileConfig < 3) { - o.categories = buildUnnamed170(); + o.categories = buildUnnamed171(); } buildCounterGoogleCloudApigeeV1ProfileConfig--; return o; @@ -7189,7 +7224,7 @@ void checkGoogleCloudApigeeV1ProfileConfig( ) { buildCounterGoogleCloudApigeeV1ProfileConfig++; if (buildCounterGoogleCloudApigeeV1ProfileConfig < 3) { - checkUnnamed170(o.categories!); + checkUnnamed171(o.categories!); } buildCounterGoogleCloudApigeeV1ProfileConfig--; } @@ -7334,12 +7369,12 @@ void checkGoogleCloudApigeeV1ProfileConfigThreat( buildCounterGoogleCloudApigeeV1ProfileConfigThreat--; } -core.List buildUnnamed171() => [ +core.List buildUnnamed172() => [ buildGoogleCloudApigeeV1Property(), buildGoogleCloudApigeeV1Property(), ]; -void checkUnnamed171(core.List o) { +void checkUnnamed172(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Property(o[0]); checkGoogleCloudApigeeV1Property(o[1]); @@ -7350,7 +7385,7 @@ api.GoogleCloudApigeeV1Properties buildGoogleCloudApigeeV1Properties() { final o = api.GoogleCloudApigeeV1Properties(); buildCounterGoogleCloudApigeeV1Properties++; if (buildCounterGoogleCloudApigeeV1Properties < 3) { - o.property = buildUnnamed171(); + o.property = buildUnnamed172(); } buildCounterGoogleCloudApigeeV1Properties--; return o; @@ -7359,7 +7394,7 @@ api.GoogleCloudApigeeV1Properties buildGoogleCloudApigeeV1Properties() { void checkGoogleCloudApigeeV1Properties(api.GoogleCloudApigeeV1Properties o) { buildCounterGoogleCloudApigeeV1Properties++; if (buildCounterGoogleCloudApigeeV1Properties < 3) { - checkUnnamed171(o.property!); + checkUnnamed172(o.property!); } buildCounterGoogleCloudApigeeV1Properties--; } @@ -7413,20 +7448,20 @@ void checkGoogleCloudApigeeV1ProvisionOrganizationRequest( buildCounterGoogleCloudApigeeV1ProvisionOrganizationRequest--; } -core.List buildUnnamed172() => ['foo', 'foo']; +core.List buildUnnamed173() => ['foo', 'foo']; -void checkUnnamed172(core.List o) { +void checkUnnamed173(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed173() => [ +core.List buildUnnamed174() => [ buildGoogleCloudApigeeV1QueryMetric(), buildGoogleCloudApigeeV1QueryMetric(), ]; -void checkUnnamed173(core.List o) { +void checkUnnamed174(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1QueryMetric(o[0]); checkGoogleCloudApigeeV1QueryMetric(o[1]); @@ -7438,12 +7473,12 @@ api.GoogleCloudApigeeV1Query buildGoogleCloudApigeeV1Query() { buildCounterGoogleCloudApigeeV1Query++; if (buildCounterGoogleCloudApigeeV1Query < 3) { o.csvDelimiter = 'foo'; - o.dimensions = buildUnnamed172(); + o.dimensions = buildUnnamed173(); o.envgroupHostname = 'foo'; o.filter = 'foo'; o.groupByTimeUnit = 'foo'; o.limit = 42; - o.metrics = buildUnnamed173(); + o.metrics = buildUnnamed174(); o.name = 'foo'; o.outputFormat = 'foo'; o.reportDefinitionId = 'foo'; @@ -7461,12 +7496,12 @@ void checkGoogleCloudApigeeV1Query(api.GoogleCloudApigeeV1Query o) { buildCounterGoogleCloudApigeeV1Query++; if (buildCounterGoogleCloudApigeeV1Query < 3) { unittest.expect(o.csvDelimiter!, unittest.equals('foo')); - checkUnnamed172(o.dimensions!); + checkUnnamed173(o.dimensions!); unittest.expect(o.envgroupHostname!, unittest.equals('foo')); unittest.expect(o.filter!, unittest.equals('foo')); unittest.expect(o.groupByTimeUnit!, unittest.equals('foo')); unittest.expect(o.limit!, unittest.equals(42)); - checkUnnamed173(o.metrics!); + checkUnnamed174(o.metrics!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.outputFormat!, unittest.equals('foo')); unittest.expect(o.reportDefinitionId!, unittest.equals('foo')); @@ -7479,17 +7514,17 @@ void checkGoogleCloudApigeeV1Query(api.GoogleCloudApigeeV1Query o) { buildCounterGoogleCloudApigeeV1Query--; } -core.List buildUnnamed174() => ['foo', 'foo']; +core.List buildUnnamed175() => ['foo', 'foo']; -void checkUnnamed174(core.List o) { +void checkUnnamed175(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed175() => ['foo', 'foo']; +core.List buildUnnamed176() => ['foo', 'foo']; -void checkUnnamed175(core.List o) { +void checkUnnamed176(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7500,9 +7535,9 @@ api.GoogleCloudApigeeV1QueryMetadata buildGoogleCloudApigeeV1QueryMetadata() { final o = api.GoogleCloudApigeeV1QueryMetadata(); buildCounterGoogleCloudApigeeV1QueryMetadata++; if (buildCounterGoogleCloudApigeeV1QueryMetadata < 3) { - o.dimensions = buildUnnamed174(); + o.dimensions = buildUnnamed175(); o.endTimestamp = 'foo'; - o.metrics = buildUnnamed175(); + o.metrics = buildUnnamed176(); o.outputFormat = 'foo'; o.startTimestamp = 'foo'; o.timeUnit = 'foo'; @@ -7516,9 +7551,9 @@ void checkGoogleCloudApigeeV1QueryMetadata( ) { buildCounterGoogleCloudApigeeV1QueryMetadata++; if (buildCounterGoogleCloudApigeeV1QueryMetadata < 3) { - checkUnnamed174(o.dimensions!); + checkUnnamed175(o.dimensions!); unittest.expect(o.endTimestamp!, unittest.equals('foo')); - checkUnnamed175(o.metrics!); + checkUnnamed176(o.metrics!); unittest.expect(o.outputFormat!, unittest.equals('foo')); unittest.expect(o.startTimestamp!, unittest.equals('foo')); unittest.expect(o.timeUnit!, unittest.equals('foo')); @@ -7553,20 +7588,20 @@ void checkGoogleCloudApigeeV1QueryMetric(api.GoogleCloudApigeeV1QueryMetric o) { buildCounterGoogleCloudApigeeV1QueryMetric--; } -core.List buildUnnamed176() => ['foo', 'foo']; +core.List buildUnnamed177() => ['foo', 'foo']; -void checkUnnamed176(core.List o) { +void checkUnnamed177(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed177() => [ +core.List buildUnnamed178() => [ buildGoogleCloudApigeeV1MetricAggregation(), buildGoogleCloudApigeeV1MetricAggregation(), ]; -void checkUnnamed177(core.List o) { +void checkUnnamed178(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1MetricAggregation(o[0]); checkGoogleCloudApigeeV1MetricAggregation(o[1]); @@ -7578,9 +7613,9 @@ buildGoogleCloudApigeeV1QueryTabularStatsRequest() { final o = api.GoogleCloudApigeeV1QueryTabularStatsRequest(); buildCounterGoogleCloudApigeeV1QueryTabularStatsRequest++; if (buildCounterGoogleCloudApigeeV1QueryTabularStatsRequest < 3) { - o.dimensions = buildUnnamed176(); + o.dimensions = buildUnnamed177(); o.filter = 'foo'; - o.metrics = buildUnnamed177(); + o.metrics = buildUnnamed178(); o.pageSize = 42; o.pageToken = 'foo'; o.timeRange = buildGoogleTypeInterval(); @@ -7594,9 +7629,9 @@ void checkGoogleCloudApigeeV1QueryTabularStatsRequest( ) { buildCounterGoogleCloudApigeeV1QueryTabularStatsRequest++; if (buildCounterGoogleCloudApigeeV1QueryTabularStatsRequest < 3) { - checkUnnamed176(o.dimensions!); + checkUnnamed177(o.dimensions!); unittest.expect(o.filter!, unittest.equals('foo')); - checkUnnamed177(o.metrics!); + checkUnnamed178(o.metrics!); unittest.expect(o.pageSize!, unittest.equals(42)); unittest.expect(o.pageToken!, unittest.equals('foo')); checkGoogleTypeInterval(o.timeRange!); @@ -7604,15 +7639,15 @@ void checkGoogleCloudApigeeV1QueryTabularStatsRequest( buildCounterGoogleCloudApigeeV1QueryTabularStatsRequest--; } -core.List buildUnnamed178() => ['foo', 'foo']; +core.List buildUnnamed179() => ['foo', 'foo']; -void checkUnnamed178(core.List o) { +void checkUnnamed179(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed179() => [ +core.List buildUnnamed180() => [ { 'list': [1, 2, 3], 'bool': true, @@ -7625,7 +7660,7 @@ core.List buildUnnamed179() => [ }, ]; -void checkUnnamed179(core.List o) { +void checkUnnamed180(core.List o) { unittest.expect(o, unittest.hasLength(2)); var casted12 = (o[0]) as core.Map; unittest.expect(casted12, unittest.hasLength(3)); @@ -7639,15 +7674,15 @@ void checkUnnamed179(core.List o) { unittest.expect(casted13['string'], unittest.equals('foo')); } -core.List> buildUnnamed180() => [ - buildUnnamed179(), - buildUnnamed179(), +core.List> buildUnnamed181() => [ + buildUnnamed180(), + buildUnnamed180(), ]; -void checkUnnamed180(core.List> o) { +void checkUnnamed181(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed179(o[0]); - checkUnnamed179(o[1]); + checkUnnamed180(o[0]); + checkUnnamed180(o[1]); } core.int buildCounterGoogleCloudApigeeV1QueryTabularStatsResponse = 0; @@ -7656,9 +7691,9 @@ buildGoogleCloudApigeeV1QueryTabularStatsResponse() { final o = api.GoogleCloudApigeeV1QueryTabularStatsResponse(); buildCounterGoogleCloudApigeeV1QueryTabularStatsResponse++; if (buildCounterGoogleCloudApigeeV1QueryTabularStatsResponse < 3) { - o.columns = buildUnnamed178(); + o.columns = buildUnnamed179(); o.nextPageToken = 'foo'; - o.values = buildUnnamed180(); + o.values = buildUnnamed181(); } buildCounterGoogleCloudApigeeV1QueryTabularStatsResponse--; return o; @@ -7669,27 +7704,27 @@ void checkGoogleCloudApigeeV1QueryTabularStatsResponse( ) { buildCounterGoogleCloudApigeeV1QueryTabularStatsResponse++; if (buildCounterGoogleCloudApigeeV1QueryTabularStatsResponse < 3) { - checkUnnamed178(o.columns!); + checkUnnamed179(o.columns!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed180(o.values!); + checkUnnamed181(o.values!); } buildCounterGoogleCloudApigeeV1QueryTabularStatsResponse--; } -core.List buildUnnamed181() => ['foo', 'foo']; +core.List buildUnnamed182() => ['foo', 'foo']; -void checkUnnamed181(core.List o) { +void checkUnnamed182(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed182() => [ +core.List buildUnnamed183() => [ buildGoogleCloudApigeeV1MetricAggregation(), buildGoogleCloudApigeeV1MetricAggregation(), ]; -void checkUnnamed182(core.List o) { +void checkUnnamed183(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1MetricAggregation(o[0]); checkGoogleCloudApigeeV1MetricAggregation(o[1]); @@ -7701,9 +7736,9 @@ buildGoogleCloudApigeeV1QueryTimeSeriesStatsRequest() { final o = api.GoogleCloudApigeeV1QueryTimeSeriesStatsRequest(); buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsRequest++; if (buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsRequest < 3) { - o.dimensions = buildUnnamed181(); + o.dimensions = buildUnnamed182(); o.filter = 'foo'; - o.metrics = buildUnnamed182(); + o.metrics = buildUnnamed183(); o.pageSize = 42; o.pageToken = 'foo'; o.timeRange = buildGoogleTypeInterval(); @@ -7719,9 +7754,9 @@ void checkGoogleCloudApigeeV1QueryTimeSeriesStatsRequest( ) { buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsRequest++; if (buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsRequest < 3) { - checkUnnamed181(o.dimensions!); + checkUnnamed182(o.dimensions!); unittest.expect(o.filter!, unittest.equals('foo')); - checkUnnamed182(o.metrics!); + checkUnnamed183(o.metrics!); unittest.expect(o.pageSize!, unittest.equals(42)); unittest.expect(o.pageToken!, unittest.equals('foo')); checkGoogleTypeInterval(o.timeRange!); @@ -7731,21 +7766,21 @@ void checkGoogleCloudApigeeV1QueryTimeSeriesStatsRequest( buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsRequest--; } -core.List buildUnnamed183() => ['foo', 'foo']; +core.List buildUnnamed184() => ['foo', 'foo']; -void checkUnnamed183(core.List o) { +void checkUnnamed184(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } core.List -buildUnnamed184() => [ +buildUnnamed185() => [ buildGoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence(), buildGoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence(), ]; -void checkUnnamed184( +void checkUnnamed185( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -7759,9 +7794,9 @@ buildGoogleCloudApigeeV1QueryTimeSeriesStatsResponse() { final o = api.GoogleCloudApigeeV1QueryTimeSeriesStatsResponse(); buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsResponse++; if (buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsResponse < 3) { - o.columns = buildUnnamed183(); + o.columns = buildUnnamed184(); o.nextPageToken = 'foo'; - o.values = buildUnnamed184(); + o.values = buildUnnamed185(); } buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsResponse--; return o; @@ -7772,25 +7807,25 @@ void checkGoogleCloudApigeeV1QueryTimeSeriesStatsResponse( ) { buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsResponse++; if (buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsResponse < 3) { - checkUnnamed183(o.columns!); + checkUnnamed184(o.columns!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed184(o.values!); + checkUnnamed185(o.values!); } buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsResponse--; } -core.Map buildUnnamed185() => { +core.Map buildUnnamed186() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed185(core.Map o) { +void checkUnnamed186(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed186() => [ +core.List buildUnnamed187() => [ { 'list': [1, 2, 3], 'bool': true, @@ -7803,7 +7838,7 @@ core.List buildUnnamed186() => [ }, ]; -void checkUnnamed186(core.List o) { +void checkUnnamed187(core.List o) { unittest.expect(o, unittest.hasLength(2)); var casted14 = (o[0]) as core.Map; unittest.expect(casted14, unittest.hasLength(3)); @@ -7817,15 +7852,15 @@ void checkUnnamed186(core.List o) { unittest.expect(casted15['string'], unittest.equals('foo')); } -core.List> buildUnnamed187() => [ - buildUnnamed186(), - buildUnnamed186(), +core.List> buildUnnamed188() => [ + buildUnnamed187(), + buildUnnamed187(), ]; -void checkUnnamed187(core.List> o) { +void checkUnnamed188(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed186(o[0]); - checkUnnamed186(o[1]); + checkUnnamed187(o[0]); + checkUnnamed187(o[1]); } core.int buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence = @@ -7835,8 +7870,8 @@ buildGoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence() { final o = api.GoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence(); buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence++; if (buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence < 3) { - o.dimensions = buildUnnamed185(); - o.points = buildUnnamed187(); + o.dimensions = buildUnnamed186(); + o.points = buildUnnamed188(); } buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence--; return o; @@ -7847,8 +7882,8 @@ void checkGoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence( ) { buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence++; if (buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence < 3) { - checkUnnamed185(o.dimensions!); - checkUnnamed187(o.points!); + checkUnnamed186(o.dimensions!); + checkUnnamed188(o.points!); } buildCounterGoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence--; } @@ -7876,23 +7911,23 @@ void checkGoogleCloudApigeeV1Quota(api.GoogleCloudApigeeV1Quota o) { buildCounterGoogleCloudApigeeV1Quota--; } -core.List buildUnnamed188() => [ +core.List buildUnnamed189() => [ buildGoogleCloudApigeeV1RateRange(), buildGoogleCloudApigeeV1RateRange(), ]; -void checkUnnamed188(core.List o) { +void checkUnnamed189(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1RateRange(o[0]); checkGoogleCloudApigeeV1RateRange(o[1]); } -core.List buildUnnamed189() => [ +core.List buildUnnamed190() => [ buildGoogleCloudApigeeV1RevenueShareRange(), buildGoogleCloudApigeeV1RevenueShareRange(), ]; -void checkUnnamed189(core.List o) { +void checkUnnamed190(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1RevenueShareRange(o[0]); checkGoogleCloudApigeeV1RevenueShareRange(o[1]); @@ -7905,7 +7940,7 @@ api.GoogleCloudApigeeV1RatePlan buildGoogleCloudApigeeV1RatePlan() { if (buildCounterGoogleCloudApigeeV1RatePlan < 3) { o.apiproduct = 'foo'; o.billingPeriod = 'foo'; - o.consumptionPricingRates = buildUnnamed188(); + o.consumptionPricingRates = buildUnnamed189(); o.consumptionPricingType = 'foo'; o.createdAt = 'foo'; o.currencyCode = 'foo'; @@ -7917,7 +7952,7 @@ api.GoogleCloudApigeeV1RatePlan buildGoogleCloudApigeeV1RatePlan() { o.lastModifiedAt = 'foo'; o.name = 'foo'; o.paymentFundingModel = 'foo'; - o.revenueShareRates = buildUnnamed189(); + o.revenueShareRates = buildUnnamed190(); o.revenueShareType = 'foo'; o.setupFee = buildGoogleTypeMoney(); o.startTime = 'foo'; @@ -7932,7 +7967,7 @@ void checkGoogleCloudApigeeV1RatePlan(api.GoogleCloudApigeeV1RatePlan o) { if (buildCounterGoogleCloudApigeeV1RatePlan < 3) { unittest.expect(o.apiproduct!, unittest.equals('foo')); unittest.expect(o.billingPeriod!, unittest.equals('foo')); - checkUnnamed188(o.consumptionPricingRates!); + checkUnnamed189(o.consumptionPricingRates!); unittest.expect(o.consumptionPricingType!, unittest.equals('foo')); unittest.expect(o.createdAt!, unittest.equals('foo')); unittest.expect(o.currencyCode!, unittest.equals('foo')); @@ -7944,7 +7979,7 @@ void checkGoogleCloudApigeeV1RatePlan(api.GoogleCloudApigeeV1RatePlan o) { unittest.expect(o.lastModifiedAt!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.paymentFundingModel!, unittest.equals('foo')); - checkUnnamed189(o.revenueShareRates!); + checkUnnamed190(o.revenueShareRates!); unittest.expect(o.revenueShareType!, unittest.equals('foo')); checkGoogleTypeMoney(o.setupFee!); unittest.expect(o.startTime!, unittest.equals('foo')); @@ -8025,12 +8060,12 @@ void checkGoogleCloudApigeeV1ReferenceConfig( buildCounterGoogleCloudApigeeV1ReferenceConfig--; } -core.List buildUnnamed190() => [ +core.List buildUnnamed191() => [ buildGoogleCloudApigeeV1ResourceStatus(), buildGoogleCloudApigeeV1ResourceStatus(), ]; -void checkUnnamed190(core.List o) { +void checkUnnamed191(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1ResourceStatus(o[0]); checkGoogleCloudApigeeV1ResourceStatus(o[1]); @@ -8044,7 +8079,7 @@ buildGoogleCloudApigeeV1ReportInstanceStatusRequest() { if (buildCounterGoogleCloudApigeeV1ReportInstanceStatusRequest < 3) { o.instanceUid = 'foo'; o.reportTime = 'foo'; - o.resources = buildUnnamed190(); + o.resources = buildUnnamed191(); } buildCounterGoogleCloudApigeeV1ReportInstanceStatusRequest--; return o; @@ -8057,7 +8092,7 @@ void checkGoogleCloudApigeeV1ReportInstanceStatusRequest( if (buildCounterGoogleCloudApigeeV1ReportInstanceStatusRequest < 3) { unittest.expect(o.instanceUid!, unittest.equals('foo')); unittest.expect(o.reportTime!, unittest.equals('foo')); - checkUnnamed190(o.resources!); + checkUnnamed191(o.resources!); } buildCounterGoogleCloudApigeeV1ReportInstanceStatusRequest--; } @@ -8080,12 +8115,12 @@ void checkGoogleCloudApigeeV1ReportInstanceStatusResponse( buildCounterGoogleCloudApigeeV1ReportInstanceStatusResponse--; } -core.List buildUnnamed191() => [ +core.List buildUnnamed192() => [ buildGoogleCloudApigeeV1Attribute(), buildGoogleCloudApigeeV1Attribute(), ]; -void checkUnnamed191(core.List o) { +void checkUnnamed192(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Attribute(o[0]); checkGoogleCloudApigeeV1Attribute(o[1]); @@ -8097,7 +8132,7 @@ api.GoogleCloudApigeeV1ReportProperty buildGoogleCloudApigeeV1ReportProperty() { buildCounterGoogleCloudApigeeV1ReportProperty++; if (buildCounterGoogleCloudApigeeV1ReportProperty < 3) { o.property = 'foo'; - o.value = buildUnnamed191(); + o.value = buildUnnamed192(); } buildCounterGoogleCloudApigeeV1ReportProperty--; return o; @@ -8109,7 +8144,7 @@ void checkGoogleCloudApigeeV1ReportProperty( buildCounterGoogleCloudApigeeV1ReportProperty++; if (buildCounterGoogleCloudApigeeV1ReportProperty < 3) { unittest.expect(o.property!, unittest.equals('foo')); - checkUnnamed191(o.value!); + checkUnnamed192(o.value!); } buildCounterGoogleCloudApigeeV1ReportProperty--; } @@ -8160,12 +8195,12 @@ void checkGoogleCloudApigeeV1ResourceFile( buildCounterGoogleCloudApigeeV1ResourceFile--; } -core.List buildUnnamed192() => [ +core.List buildUnnamed193() => [ buildGoogleCloudApigeeV1ResourceFile(), buildGoogleCloudApigeeV1ResourceFile(), ]; -void checkUnnamed192(core.List o) { +void checkUnnamed193(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1ResourceFile(o[0]); checkGoogleCloudApigeeV1ResourceFile(o[1]); @@ -8176,7 +8211,7 @@ api.GoogleCloudApigeeV1ResourceFiles buildGoogleCloudApigeeV1ResourceFiles() { final o = api.GoogleCloudApigeeV1ResourceFiles(); buildCounterGoogleCloudApigeeV1ResourceFiles++; if (buildCounterGoogleCloudApigeeV1ResourceFiles < 3) { - o.resourceFile = buildUnnamed192(); + o.resourceFile = buildUnnamed193(); } buildCounterGoogleCloudApigeeV1ResourceFiles--; return o; @@ -8187,17 +8222,17 @@ void checkGoogleCloudApigeeV1ResourceFiles( ) { buildCounterGoogleCloudApigeeV1ResourceFiles++; if (buildCounterGoogleCloudApigeeV1ResourceFiles < 3) { - checkUnnamed192(o.resourceFile!); + checkUnnamed193(o.resourceFile!); } buildCounterGoogleCloudApigeeV1ResourceFiles--; } -core.List buildUnnamed193() => [ +core.List buildUnnamed194() => [ buildGoogleCloudApigeeV1RevisionStatus(), buildGoogleCloudApigeeV1RevisionStatus(), ]; -void checkUnnamed193(core.List o) { +void checkUnnamed194(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1RevisionStatus(o[0]); checkGoogleCloudApigeeV1RevisionStatus(o[1]); @@ -8209,7 +8244,7 @@ api.GoogleCloudApigeeV1ResourceStatus buildGoogleCloudApigeeV1ResourceStatus() { buildCounterGoogleCloudApigeeV1ResourceStatus++; if (buildCounterGoogleCloudApigeeV1ResourceStatus < 3) { o.resource = 'foo'; - o.revisions = buildUnnamed193(); + o.revisions = buildUnnamed194(); o.totalReplicas = 42; o.uid = 'foo'; } @@ -8223,30 +8258,30 @@ void checkGoogleCloudApigeeV1ResourceStatus( buildCounterGoogleCloudApigeeV1ResourceStatus++; if (buildCounterGoogleCloudApigeeV1ResourceStatus < 3) { unittest.expect(o.resource!, unittest.equals('foo')); - checkUnnamed193(o.revisions!); + checkUnnamed194(o.revisions!); unittest.expect(o.totalReplicas!, unittest.equals(42)); unittest.expect(o.uid!, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1ResourceStatus--; } -core.List buildUnnamed194() => [ +core.List buildUnnamed195() => [ buildGoogleCloudApigeeV1Access(), buildGoogleCloudApigeeV1Access(), ]; -void checkUnnamed194(core.List o) { +void checkUnnamed195(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Access(o[0]); checkGoogleCloudApigeeV1Access(o[1]); } -core.List buildUnnamed195() => [ +core.List buildUnnamed196() => [ buildGoogleCloudApigeeV1Property(), buildGoogleCloudApigeeV1Property(), ]; -void checkUnnamed195(core.List o) { +void checkUnnamed196(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Property(o[0]); checkGoogleCloudApigeeV1Property(o[1]); @@ -8258,9 +8293,9 @@ api.GoogleCloudApigeeV1Result buildGoogleCloudApigeeV1Result() { buildCounterGoogleCloudApigeeV1Result++; if (buildCounterGoogleCloudApigeeV1Result < 3) { o.ActionResult = 'foo'; - o.accessList = buildUnnamed194(); + o.accessList = buildUnnamed195(); o.content = 'foo'; - o.headers = buildUnnamed195(); + o.headers = buildUnnamed196(); o.properties = buildGoogleCloudApigeeV1Properties(); o.reasonPhrase = 'foo'; o.statusCode = 'foo'; @@ -8276,9 +8311,9 @@ void checkGoogleCloudApigeeV1Result(api.GoogleCloudApigeeV1Result o) { buildCounterGoogleCloudApigeeV1Result++; if (buildCounterGoogleCloudApigeeV1Result < 3) { unittest.expect(o.ActionResult!, unittest.equals('foo')); - checkUnnamed194(o.accessList!); + checkUnnamed195(o.accessList!); unittest.expect(o.content!, unittest.equals('foo')); - checkUnnamed195(o.headers!); + checkUnnamed196(o.headers!); checkGoogleCloudApigeeV1Properties(o.properties!); unittest.expect(o.reasonPhrase!, unittest.equals('foo')); unittest.expect(o.statusCode!, unittest.equals('foo')); @@ -8315,12 +8350,12 @@ void checkGoogleCloudApigeeV1RevenueShareRange( buildCounterGoogleCloudApigeeV1RevenueShareRange--; } -core.List buildUnnamed196() => [ +core.List buildUnnamed197() => [ buildGoogleCloudApigeeV1UpdateError(), buildGoogleCloudApigeeV1UpdateError(), ]; -void checkUnnamed196(core.List o) { +void checkUnnamed197(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1UpdateError(o[0]); checkGoogleCloudApigeeV1UpdateError(o[1]); @@ -8331,7 +8366,7 @@ api.GoogleCloudApigeeV1RevisionStatus buildGoogleCloudApigeeV1RevisionStatus() { final o = api.GoogleCloudApigeeV1RevisionStatus(); buildCounterGoogleCloudApigeeV1RevisionStatus++; if (buildCounterGoogleCloudApigeeV1RevisionStatus < 3) { - o.errors = buildUnnamed196(); + o.errors = buildUnnamed197(); o.jsonSpec = 'foo'; o.replicas = 42; o.revisionId = 'foo'; @@ -8345,7 +8380,7 @@ void checkGoogleCloudApigeeV1RevisionStatus( ) { buildCounterGoogleCloudApigeeV1RevisionStatus++; if (buildCounterGoogleCloudApigeeV1RevisionStatus < 3) { - checkUnnamed196(o.errors!); + checkUnnamed197(o.errors!); unittest.expect(o.jsonSpec!, unittest.equals('foo')); unittest.expect(o.replicas!, unittest.equals(42)); unittest.expect(o.revisionId!, unittest.equals('foo')); @@ -8353,9 +8388,9 @@ void checkGoogleCloudApigeeV1RevisionStatus( buildCounterGoogleCloudApigeeV1RevisionStatus--; } -core.List buildUnnamed197() => ['foo', 'foo']; +core.List buildUnnamed198() => ['foo', 'foo']; -void checkUnnamed197(core.List o) { +void checkUnnamed198(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8370,7 +8405,7 @@ api.GoogleCloudApigeeV1RoutingRule buildGoogleCloudApigeeV1RoutingRule() { o.deploymentGroup = 'foo'; o.envGroupRevision = 'foo'; o.environment = 'foo'; - o.otherTargets = buildUnnamed197(); + o.otherTargets = buildUnnamed198(); o.receiver = 'foo'; o.updateTime = 'foo'; } @@ -8385,7 +8420,7 @@ void checkGoogleCloudApigeeV1RoutingRule(api.GoogleCloudApigeeV1RoutingRule o) { unittest.expect(o.deploymentGroup!, unittest.equals('foo')); unittest.expect(o.envGroupRevision!, unittest.equals('foo')); unittest.expect(o.environment!, unittest.equals('foo')); - checkUnnamed197(o.otherTargets!); + checkUnnamed198(o.otherTargets!); unittest.expect(o.receiver!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); } @@ -8496,12 +8531,12 @@ void checkGoogleCloudApigeeV1RuntimeConfig( } core.List -buildUnnamed198() => [ +buildUnnamed199() => [ buildGoogleCloudApigeeV1RuntimeTraceConfigOverride(), buildGoogleCloudApigeeV1RuntimeTraceConfigOverride(), ]; -void checkUnnamed198( +void checkUnnamed199( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -8518,7 +8553,7 @@ buildGoogleCloudApigeeV1RuntimeTraceConfig() { o.endpoint = 'foo'; o.exporter = 'foo'; o.name = 'foo'; - o.overrides = buildUnnamed198(); + o.overrides = buildUnnamed199(); o.revisionCreateTime = 'foo'; o.revisionId = 'foo'; o.samplingConfig = buildGoogleCloudApigeeV1RuntimeTraceSamplingConfig(); @@ -8535,7 +8570,7 @@ void checkGoogleCloudApigeeV1RuntimeTraceConfig( unittest.expect(o.endpoint!, unittest.equals('foo')); unittest.expect(o.exporter!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed198(o.overrides!); + checkUnnamed199(o.overrides!); unittest.expect(o.revisionCreateTime!, unittest.equals('foo')); unittest.expect(o.revisionId!, unittest.equals('foo')); checkGoogleCloudApigeeV1RuntimeTraceSamplingConfig(o.samplingConfig!); @@ -8599,31 +8634,31 @@ void checkGoogleCloudApigeeV1RuntimeTraceSamplingConfig( buildCounterGoogleCloudApigeeV1RuntimeTraceSamplingConfig--; } -core.List buildUnnamed199() => [ +core.List buildUnnamed200() => [ buildGoogleCloudApigeeV1SchemaSchemaElement(), buildGoogleCloudApigeeV1SchemaSchemaElement(), ]; -void checkUnnamed199(core.List o) { +void checkUnnamed200(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1SchemaSchemaElement(o[0]); checkGoogleCloudApigeeV1SchemaSchemaElement(o[1]); } -core.List buildUnnamed200() => ['foo', 'foo']; +core.List buildUnnamed201() => ['foo', 'foo']; -void checkUnnamed200(core.List o) { +void checkUnnamed201(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed201() => [ +core.List buildUnnamed202() => [ buildGoogleCloudApigeeV1SchemaSchemaElement(), buildGoogleCloudApigeeV1SchemaSchemaElement(), ]; -void checkUnnamed201(core.List o) { +void checkUnnamed202(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1SchemaSchemaElement(o[0]); checkGoogleCloudApigeeV1SchemaSchemaElement(o[1]); @@ -8634,9 +8669,9 @@ api.GoogleCloudApigeeV1Schema buildGoogleCloudApigeeV1Schema() { final o = api.GoogleCloudApigeeV1Schema(); buildCounterGoogleCloudApigeeV1Schema++; if (buildCounterGoogleCloudApigeeV1Schema < 3) { - o.dimensions = buildUnnamed199(); - o.meta = buildUnnamed200(); - o.metrics = buildUnnamed201(); + o.dimensions = buildUnnamed200(); + o.meta = buildUnnamed201(); + o.metrics = buildUnnamed202(); } buildCounterGoogleCloudApigeeV1Schema--; return o; @@ -8645,9 +8680,9 @@ api.GoogleCloudApigeeV1Schema buildGoogleCloudApigeeV1Schema() { void checkGoogleCloudApigeeV1Schema(api.GoogleCloudApigeeV1Schema o) { buildCounterGoogleCloudApigeeV1Schema++; if (buildCounterGoogleCloudApigeeV1Schema < 3) { - checkUnnamed199(o.dimensions!); - checkUnnamed200(o.meta!); - checkUnnamed201(o.metrics!); + checkUnnamed200(o.dimensions!); + checkUnnamed201(o.meta!); + checkUnnamed202(o.metrics!); } buildCounterGoogleCloudApigeeV1Schema--; } @@ -8702,12 +8737,12 @@ void checkGoogleCloudApigeeV1SchemaSchemaProperty( buildCounterGoogleCloudApigeeV1SchemaSchemaProperty--; } -core.List buildUnnamed202() => [ +core.List buildUnnamed203() => [ buildGoogleCloudApigeeV1ScoreComponent(), buildGoogleCloudApigeeV1ScoreComponent(), ]; -void checkUnnamed202(core.List o) { +void checkUnnamed203(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1ScoreComponent(o[0]); checkGoogleCloudApigeeV1ScoreComponent(o[1]); @@ -8719,7 +8754,7 @@ api.GoogleCloudApigeeV1Score buildGoogleCloudApigeeV1Score() { buildCounterGoogleCloudApigeeV1Score++; if (buildCounterGoogleCloudApigeeV1Score < 3) { o.component = buildGoogleCloudApigeeV1ScoreComponent(); - o.subcomponents = buildUnnamed202(); + o.subcomponents = buildUnnamed203(); o.timeRange = buildGoogleTypeInterval(); } buildCounterGoogleCloudApigeeV1Score--; @@ -8730,27 +8765,27 @@ void checkGoogleCloudApigeeV1Score(api.GoogleCloudApigeeV1Score o) { buildCounterGoogleCloudApigeeV1Score++; if (buildCounterGoogleCloudApigeeV1Score < 3) { checkGoogleCloudApigeeV1ScoreComponent(o.component!); - checkUnnamed202(o.subcomponents!); + checkUnnamed203(o.subcomponents!); checkGoogleTypeInterval(o.timeRange!); } buildCounterGoogleCloudApigeeV1Score--; } -core.List buildUnnamed203() => ['foo', 'foo']; +core.List buildUnnamed204() => ['foo', 'foo']; -void checkUnnamed203(core.List o) { +void checkUnnamed204(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } core.List -buildUnnamed204() => [ +buildUnnamed205() => [ buildGoogleCloudApigeeV1ScoreComponentRecommendation(), buildGoogleCloudApigeeV1ScoreComponentRecommendation(), ]; -void checkUnnamed204( +void checkUnnamed205( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -8765,8 +8800,8 @@ api.GoogleCloudApigeeV1ScoreComponent buildGoogleCloudApigeeV1ScoreComponent() { if (buildCounterGoogleCloudApigeeV1ScoreComponent < 3) { o.calculateTime = 'foo'; o.dataCaptureTime = 'foo'; - o.drilldownPaths = buildUnnamed203(); - o.recommendations = buildUnnamed204(); + o.drilldownPaths = buildUnnamed204(); + o.recommendations = buildUnnamed205(); o.score = 42; o.scorePath = 'foo'; } @@ -8781,8 +8816,8 @@ void checkGoogleCloudApigeeV1ScoreComponent( if (buildCounterGoogleCloudApigeeV1ScoreComponent < 3) { unittest.expect(o.calculateTime!, unittest.equals('foo')); unittest.expect(o.dataCaptureTime!, unittest.equals('foo')); - checkUnnamed203(o.drilldownPaths!); - checkUnnamed204(o.recommendations!); + checkUnnamed204(o.drilldownPaths!); + checkUnnamed205(o.recommendations!); unittest.expect(o.score!, unittest.equals(42)); unittest.expect(o.scorePath!, unittest.equals('foo')); } @@ -8790,12 +8825,12 @@ void checkGoogleCloudApigeeV1ScoreComponent( } core.List -buildUnnamed205() => [ +buildUnnamed206() => [ buildGoogleCloudApigeeV1ScoreComponentRecommendationAction(), buildGoogleCloudApigeeV1ScoreComponentRecommendationAction(), ]; -void checkUnnamed205( +void checkUnnamed206( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -8809,7 +8844,7 @@ buildGoogleCloudApigeeV1ScoreComponentRecommendation() { final o = api.GoogleCloudApigeeV1ScoreComponentRecommendation(); buildCounterGoogleCloudApigeeV1ScoreComponentRecommendation++; if (buildCounterGoogleCloudApigeeV1ScoreComponentRecommendation < 3) { - o.actions = buildUnnamed205(); + o.actions = buildUnnamed206(); o.description = 'foo'; o.impact = 42; o.title = 'foo'; @@ -8823,7 +8858,7 @@ void checkGoogleCloudApigeeV1ScoreComponentRecommendation( ) { buildCounterGoogleCloudApigeeV1ScoreComponentRecommendation++; if (buildCounterGoogleCloudApigeeV1ScoreComponentRecommendation < 3) { - checkUnnamed205(o.actions!); + checkUnnamed206(o.actions!); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.impact!, unittest.equals(42)); unittest.expect(o.title!, unittest.equals('foo')); @@ -8885,9 +8920,9 @@ void checkGoogleCloudApigeeV1ScoreComponentRecommendationActionActionContext( buildCounterGoogleCloudApigeeV1ScoreComponentRecommendationActionActionContext--; } -core.List buildUnnamed206() => ['foo', 'foo']; +core.List buildUnnamed207() => ['foo', 'foo']; -void checkUnnamed206(core.List o) { +void checkUnnamed207(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8899,7 +8934,7 @@ api.GoogleCloudApigeeV1SecurityAction buildGoogleCloudApigeeV1SecurityAction() { buildCounterGoogleCloudApigeeV1SecurityAction++; if (buildCounterGoogleCloudApigeeV1SecurityAction < 3) { o.allow = buildGoogleCloudApigeeV1SecurityActionAllow(); - o.apiProxies = buildUnnamed206(); + o.apiProxies = buildUnnamed207(); o.conditionConfig = buildGoogleCloudApigeeV1SecurityActionConditionConfig(); o.createTime = 'foo'; o.deny = buildGoogleCloudApigeeV1SecurityActionDeny(); @@ -8921,7 +8956,7 @@ void checkGoogleCloudApigeeV1SecurityAction( buildCounterGoogleCloudApigeeV1SecurityAction++; if (buildCounterGoogleCloudApigeeV1SecurityAction < 3) { checkGoogleCloudApigeeV1SecurityActionAllow(o.allow!); - checkUnnamed206(o.apiProxies!); + checkUnnamed207(o.apiProxies!); checkGoogleCloudApigeeV1SecurityActionConditionConfig(o.conditionConfig!); unittest.expect(o.createTime!, unittest.equals('foo')); checkGoogleCloudApigeeV1SecurityActionDeny(o.deny!); @@ -8954,14 +8989,6 @@ void checkGoogleCloudApigeeV1SecurityActionAllow( buildCounterGoogleCloudApigeeV1SecurityActionAllow--; } -core.List buildUnnamed207() => ['foo', 'foo']; - -void checkUnnamed207(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - core.List buildUnnamed208() => ['foo', 'foo']; void checkUnnamed208(core.List o) { @@ -9042,23 +9069,31 @@ void checkUnnamed217(core.List o) { unittest.expect(o[1], unittest.equals('foo')); } +core.List buildUnnamed218() => ['foo', 'foo']; + +void checkUnnamed218(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterGoogleCloudApigeeV1SecurityActionConditionConfig = 0; api.GoogleCloudApigeeV1SecurityActionConditionConfig buildGoogleCloudApigeeV1SecurityActionConditionConfig() { final o = api.GoogleCloudApigeeV1SecurityActionConditionConfig(); buildCounterGoogleCloudApigeeV1SecurityActionConditionConfig++; if (buildCounterGoogleCloudApigeeV1SecurityActionConditionConfig < 3) { - o.accessTokens = buildUnnamed207(); - o.apiKeys = buildUnnamed208(); - o.apiProducts = buildUnnamed209(); - o.asns = buildUnnamed210(); - o.botReasons = buildUnnamed211(); - o.developerApps = buildUnnamed212(); - o.developers = buildUnnamed213(); - o.httpMethods = buildUnnamed214(); - o.ipAddressRanges = buildUnnamed215(); - o.regionCodes = buildUnnamed216(); - o.userAgents = buildUnnamed217(); + o.accessTokens = buildUnnamed208(); + o.apiKeys = buildUnnamed209(); + o.apiProducts = buildUnnamed210(); + o.asns = buildUnnamed211(); + o.botReasons = buildUnnamed212(); + o.developerApps = buildUnnamed213(); + o.developers = buildUnnamed214(); + o.httpMethods = buildUnnamed215(); + o.ipAddressRanges = buildUnnamed216(); + o.regionCodes = buildUnnamed217(); + o.userAgents = buildUnnamed218(); } buildCounterGoogleCloudApigeeV1SecurityActionConditionConfig--; return o; @@ -9069,17 +9104,17 @@ void checkGoogleCloudApigeeV1SecurityActionConditionConfig( ) { buildCounterGoogleCloudApigeeV1SecurityActionConditionConfig++; if (buildCounterGoogleCloudApigeeV1SecurityActionConditionConfig < 3) { - checkUnnamed207(o.accessTokens!); - checkUnnamed208(o.apiKeys!); - checkUnnamed209(o.apiProducts!); - checkUnnamed210(o.asns!); - checkUnnamed211(o.botReasons!); - checkUnnamed212(o.developerApps!); - checkUnnamed213(o.developers!); - checkUnnamed214(o.httpMethods!); - checkUnnamed215(o.ipAddressRanges!); - checkUnnamed216(o.regionCodes!); - checkUnnamed217(o.userAgents!); + checkUnnamed208(o.accessTokens!); + checkUnnamed209(o.apiKeys!); + checkUnnamed210(o.apiProducts!); + checkUnnamed211(o.asns!); + checkUnnamed212(o.botReasons!); + checkUnnamed213(o.developerApps!); + checkUnnamed214(o.developers!); + checkUnnamed215(o.httpMethods!); + checkUnnamed216(o.ipAddressRanges!); + checkUnnamed217(o.regionCodes!); + checkUnnamed218(o.userAgents!); } buildCounterGoogleCloudApigeeV1SecurityActionConditionConfig--; } @@ -9106,13 +9141,13 @@ void checkGoogleCloudApigeeV1SecurityActionDeny( buildCounterGoogleCloudApigeeV1SecurityActionDeny--; } -core.List buildUnnamed218() => +core.List buildUnnamed219() => [ buildGoogleCloudApigeeV1SecurityActionHttpHeader(), buildGoogleCloudApigeeV1SecurityActionHttpHeader(), ]; -void checkUnnamed218( +void checkUnnamed219( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -9126,7 +9161,7 @@ buildGoogleCloudApigeeV1SecurityActionFlag() { final o = api.GoogleCloudApigeeV1SecurityActionFlag(); buildCounterGoogleCloudApigeeV1SecurityActionFlag++; if (buildCounterGoogleCloudApigeeV1SecurityActionFlag < 3) { - o.headers = buildUnnamed218(); + o.headers = buildUnnamed219(); } buildCounterGoogleCloudApigeeV1SecurityActionFlag--; return o; @@ -9137,7 +9172,7 @@ void checkGoogleCloudApigeeV1SecurityActionFlag( ) { buildCounterGoogleCloudApigeeV1SecurityActionFlag++; if (buildCounterGoogleCloudApigeeV1SecurityActionFlag < 3) { - checkUnnamed218(o.headers!); + checkUnnamed219(o.headers!); } buildCounterGoogleCloudApigeeV1SecurityActionFlag--; } @@ -9253,14 +9288,14 @@ core.Map< core.String, api.GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation > -buildUnnamed219() => { +buildUnnamed220() => { 'x': buildGoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation(), 'y': buildGoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation(), }; -void checkUnnamed219( +void checkUnnamed220( core.Map< core.String, api.GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation @@ -9276,9 +9311,9 @@ void checkUnnamed219( ); } -core.Map buildUnnamed220() => {'x': 42, 'y': 42}; +core.Map buildUnnamed221() => {'x': 42, 'y': 42}; -void checkUnnamed220(core.Map o) { +void checkUnnamed221(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals(42)); unittest.expect(o['y']!, unittest.equals(42)); @@ -9292,9 +9327,9 @@ buildGoogleCloudApigeeV1SecurityAssessmentResultScoringResult() { buildCounterGoogleCloudApigeeV1SecurityAssessmentResultScoringResult++; if (buildCounterGoogleCloudApigeeV1SecurityAssessmentResultScoringResult < 3) { - o.assessmentRecommendations = buildUnnamed219(); + o.assessmentRecommendations = buildUnnamed220(); o.dataUpdateTime = 'foo'; - o.failedAssessmentPerWeight = buildUnnamed220(); + o.failedAssessmentPerWeight = buildUnnamed221(); o.score = 42; o.severity = 'foo'; } @@ -9308,9 +9343,9 @@ void checkGoogleCloudApigeeV1SecurityAssessmentResultScoringResult( buildCounterGoogleCloudApigeeV1SecurityAssessmentResultScoringResult++; if (buildCounterGoogleCloudApigeeV1SecurityAssessmentResultScoringResult < 3) { - checkUnnamed219(o.assessmentRecommendations!); + checkUnnamed220(o.assessmentRecommendations!); unittest.expect(o.dataUpdateTime!, unittest.equals('foo')); - checkUnnamed220(o.failedAssessmentPerWeight!); + checkUnnamed221(o.failedAssessmentPerWeight!); unittest.expect(o.score!, unittest.equals(42)); unittest.expect(o.severity!, unittest.equals('foo')); } @@ -9320,12 +9355,12 @@ void checkGoogleCloudApigeeV1SecurityAssessmentResultScoringResult( core.List< api.GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendation > -buildUnnamed221() => [ +buildUnnamed222() => [ buildGoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendation(), buildGoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendation(), ]; -void checkUnnamed221( +void checkUnnamed222( core.List< api.GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendation > @@ -9351,7 +9386,7 @@ buildGoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommend if (buildCounterGoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation < 3) { o.displayName = 'foo'; - o.recommendations = buildUnnamed221(); + o.recommendations = buildUnnamed222(); o.scoreImpact = 42; o.verdict = 'foo'; o.weight = 'foo'; @@ -9369,7 +9404,7 @@ checkGoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommend if (buildCounterGoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed221(o.recommendations!); + checkUnnamed222(o.recommendations!); unittest.expect(o.scoreImpact!, unittest.equals(42)); unittest.expect(o.verdict!, unittest.equals('foo')); unittest.expect(o.weight!, unittest.equals('foo')); @@ -9442,9 +9477,91 @@ checkGoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommend buildCounterGoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendationLink--; } -core.List buildUnnamed222() => ['foo', 'foo']; +core.List +buildUnnamed223() => [ + buildGoogleCloudApigeeV1SecurityFeedbackFeedbackContext(), + buildGoogleCloudApigeeV1SecurityFeedbackFeedbackContext(), +]; + +void checkUnnamed223( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1SecurityFeedbackFeedbackContext(o[0]); + checkGoogleCloudApigeeV1SecurityFeedbackFeedbackContext(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1SecurityFeedback = 0; +api.GoogleCloudApigeeV1SecurityFeedback +buildGoogleCloudApigeeV1SecurityFeedback() { + final o = api.GoogleCloudApigeeV1SecurityFeedback(); + buildCounterGoogleCloudApigeeV1SecurityFeedback++; + if (buildCounterGoogleCloudApigeeV1SecurityFeedback < 3) { + o.comment = 'foo'; + o.createTime = 'foo'; + o.displayName = 'foo'; + o.feedbackContexts = buildUnnamed223(); + o.feedbackType = 'foo'; + o.name = 'foo'; + o.reason = 'foo'; + o.updateTime = 'foo'; + } + buildCounterGoogleCloudApigeeV1SecurityFeedback--; + return o; +} + +void checkGoogleCloudApigeeV1SecurityFeedback( + api.GoogleCloudApigeeV1SecurityFeedback o, +) { + buildCounterGoogleCloudApigeeV1SecurityFeedback++; + if (buildCounterGoogleCloudApigeeV1SecurityFeedback < 3) { + unittest.expect(o.comment!, unittest.equals('foo')); + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkUnnamed223(o.feedbackContexts!); + unittest.expect(o.feedbackType!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.reason!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1SecurityFeedback--; +} + +core.List buildUnnamed224() => ['foo', 'foo']; + +void checkUnnamed224(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudApigeeV1SecurityFeedbackFeedbackContext = 0; +api.GoogleCloudApigeeV1SecurityFeedbackFeedbackContext +buildGoogleCloudApigeeV1SecurityFeedbackFeedbackContext() { + final o = api.GoogleCloudApigeeV1SecurityFeedbackFeedbackContext(); + buildCounterGoogleCloudApigeeV1SecurityFeedbackFeedbackContext++; + if (buildCounterGoogleCloudApigeeV1SecurityFeedbackFeedbackContext < 3) { + o.attribute = 'foo'; + o.values = buildUnnamed224(); + } + buildCounterGoogleCloudApigeeV1SecurityFeedbackFeedbackContext--; + return o; +} + +void checkGoogleCloudApigeeV1SecurityFeedbackFeedbackContext( + api.GoogleCloudApigeeV1SecurityFeedbackFeedbackContext o, +) { + buildCounterGoogleCloudApigeeV1SecurityFeedbackFeedbackContext++; + if (buildCounterGoogleCloudApigeeV1SecurityFeedbackFeedbackContext < 3) { + unittest.expect(o.attribute!, unittest.equals('foo')); + checkUnnamed224(o.values!); + } + buildCounterGoogleCloudApigeeV1SecurityFeedbackFeedbackContext--; +} + +core.List buildUnnamed225() => ['foo', 'foo']; -void checkUnnamed222(core.List o) { +void checkUnnamed225(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9456,7 +9573,7 @@ buildGoogleCloudApigeeV1SecurityIncident() { final o = api.GoogleCloudApigeeV1SecurityIncident(); buildCounterGoogleCloudApigeeV1SecurityIncident++; if (buildCounterGoogleCloudApigeeV1SecurityIncident < 3) { - o.detectionTypes = buildUnnamed222(); + o.detectionTypes = buildUnnamed225(); o.displayName = 'foo'; o.firstDetectedTime = 'foo'; o.lastDetectedTime = 'foo'; @@ -9475,7 +9592,7 @@ void checkGoogleCloudApigeeV1SecurityIncident( ) { buildCounterGoogleCloudApigeeV1SecurityIncident++; if (buildCounterGoogleCloudApigeeV1SecurityIncident < 3) { - checkUnnamed222(o.detectionTypes!); + checkUnnamed225(o.detectionTypes!); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.firstDetectedTime!, unittest.equals('foo')); unittest.expect(o.lastDetectedTime!, unittest.equals('foo')); @@ -9533,12 +9650,12 @@ void checkGoogleCloudApigeeV1SecurityMonitoringCondition( } core.List -buildUnnamed223() => [ +buildUnnamed226() => [ buildGoogleCloudApigeeV1SecurityProfileEnvironment(), buildGoogleCloudApigeeV1SecurityProfileEnvironment(), ]; -void checkUnnamed223( +void checkUnnamed226( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -9547,12 +9664,12 @@ void checkUnnamed223( } core.List -buildUnnamed224() => [ +buildUnnamed227() => [ buildGoogleCloudApigeeV1SecurityProfileScoringConfig(), buildGoogleCloudApigeeV1SecurityProfileScoringConfig(), ]; -void checkUnnamed224( +void checkUnnamed227( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -9568,7 +9685,7 @@ buildGoogleCloudApigeeV1SecurityProfile() { if (buildCounterGoogleCloudApigeeV1SecurityProfile < 3) { o.description = 'foo'; o.displayName = 'foo'; - o.environments = buildUnnamed223(); + o.environments = buildUnnamed226(); o.maxScore = 42; o.minScore = 42; o.name = 'foo'; @@ -9577,7 +9694,7 @@ buildGoogleCloudApigeeV1SecurityProfile() { o.revisionId = 'foo'; o.revisionPublishTime = 'foo'; o.revisionUpdateTime = 'foo'; - o.scoringConfigs = buildUnnamed224(); + o.scoringConfigs = buildUnnamed227(); } buildCounterGoogleCloudApigeeV1SecurityProfile--; return o; @@ -9590,7 +9707,7 @@ void checkGoogleCloudApigeeV1SecurityProfile( if (buildCounterGoogleCloudApigeeV1SecurityProfile < 3) { unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed223(o.environments!); + checkUnnamed226(o.environments!); unittest.expect(o.maxScore!, unittest.equals(42)); unittest.expect(o.minScore!, unittest.equals(42)); unittest.expect(o.name!, unittest.equals('foo')); @@ -9599,7 +9716,7 @@ void checkGoogleCloudApigeeV1SecurityProfile( unittest.expect(o.revisionId!, unittest.equals('foo')); unittest.expect(o.revisionPublishTime!, unittest.equals('foo')); unittest.expect(o.revisionUpdateTime!, unittest.equals('foo')); - checkUnnamed224(o.scoringConfigs!); + checkUnnamed227(o.scoringConfigs!); } buildCounterGoogleCloudApigeeV1SecurityProfile--; } @@ -9687,12 +9804,12 @@ core.Map< core.String, api.GoogleCloudApigeeV1SecurityProfileV2ProfileAssessmentConfig > -buildUnnamed225() => { +buildUnnamed228() => { 'x': buildGoogleCloudApigeeV1SecurityProfileV2ProfileAssessmentConfig(), 'y': buildGoogleCloudApigeeV1SecurityProfileV2ProfileAssessmentConfig(), }; -void checkUnnamed225( +void checkUnnamed228( core.Map< core.String, api.GoogleCloudApigeeV1SecurityProfileV2ProfileAssessmentConfig @@ -9714,7 +9831,7 @@ buildGoogleCloudApigeeV1SecurityProfileV2() { o.description = 'foo'; o.googleDefined = true; o.name = 'foo'; - o.profileAssessmentConfigs = buildUnnamed225(); + o.profileAssessmentConfigs = buildUnnamed228(); o.updateTime = 'foo'; } buildCounterGoogleCloudApigeeV1SecurityProfileV2--; @@ -9730,7 +9847,7 @@ void checkGoogleCloudApigeeV1SecurityProfileV2( unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.googleDefined!, unittest.isTrue); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed225(o.profileAssessmentConfigs!); + checkUnnamed228(o.profileAssessmentConfigs!); unittest.expect(o.updateTime!, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1SecurityProfileV2--; @@ -9806,17 +9923,17 @@ void checkGoogleCloudApigeeV1SecurityReport( buildCounterGoogleCloudApigeeV1SecurityReport--; } -core.List buildUnnamed226() => ['foo', 'foo']; +core.List buildUnnamed229() => ['foo', 'foo']; -void checkUnnamed226(core.List o) { +void checkUnnamed229(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed227() => ['foo', 'foo']; +core.List buildUnnamed230() => ['foo', 'foo']; -void checkUnnamed227(core.List o) { +void checkUnnamed230(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9828,9 +9945,9 @@ buildGoogleCloudApigeeV1SecurityReportMetadata() { final o = api.GoogleCloudApigeeV1SecurityReportMetadata(); buildCounterGoogleCloudApigeeV1SecurityReportMetadata++; if (buildCounterGoogleCloudApigeeV1SecurityReportMetadata < 3) { - o.dimensions = buildUnnamed226(); + o.dimensions = buildUnnamed229(); o.endTimestamp = 'foo'; - o.metrics = buildUnnamed227(); + o.metrics = buildUnnamed230(); o.mimeType = 'foo'; o.startTimestamp = 'foo'; o.timeUnit = 'foo'; @@ -9844,9 +9961,9 @@ void checkGoogleCloudApigeeV1SecurityReportMetadata( ) { buildCounterGoogleCloudApigeeV1SecurityReportMetadata++; if (buildCounterGoogleCloudApigeeV1SecurityReportMetadata < 3) { - checkUnnamed226(o.dimensions!); + checkUnnamed229(o.dimensions!); unittest.expect(o.endTimestamp!, unittest.equals('foo')); - checkUnnamed227(o.metrics!); + checkUnnamed230(o.metrics!); unittest.expect(o.mimeType!, unittest.equals('foo')); unittest.expect(o.startTimestamp!, unittest.equals('foo')); unittest.expect(o.timeUnit!, unittest.equals('foo')); @@ -9854,21 +9971,21 @@ void checkGoogleCloudApigeeV1SecurityReportMetadata( buildCounterGoogleCloudApigeeV1SecurityReportMetadata--; } -core.List buildUnnamed228() => ['foo', 'foo']; +core.List buildUnnamed231() => ['foo', 'foo']; -void checkUnnamed228(core.List o) { +void checkUnnamed231(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed229() => +core.List buildUnnamed232() => [ buildGoogleCloudApigeeV1SecurityReportQueryMetric(), buildGoogleCloudApigeeV1SecurityReportQueryMetric(), ]; -void checkUnnamed229( +void checkUnnamed232( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -9883,13 +10000,13 @@ buildGoogleCloudApigeeV1SecurityReportQuery() { buildCounterGoogleCloudApigeeV1SecurityReportQuery++; if (buildCounterGoogleCloudApigeeV1SecurityReportQuery < 3) { o.csvDelimiter = 'foo'; - o.dimensions = buildUnnamed228(); + o.dimensions = buildUnnamed231(); o.displayName = 'foo'; o.envgroupHostname = 'foo'; o.filter = 'foo'; o.groupByTimeUnit = 'foo'; o.limit = 42; - o.metrics = buildUnnamed229(); + o.metrics = buildUnnamed232(); o.mimeType = 'foo'; o.reportDefinitionId = 'foo'; o.timeRange = { @@ -9908,13 +10025,13 @@ void checkGoogleCloudApigeeV1SecurityReportQuery( buildCounterGoogleCloudApigeeV1SecurityReportQuery++; if (buildCounterGoogleCloudApigeeV1SecurityReportQuery < 3) { unittest.expect(o.csvDelimiter!, unittest.equals('foo')); - checkUnnamed228(o.dimensions!); + checkUnnamed231(o.dimensions!); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.envgroupHostname!, unittest.equals('foo')); unittest.expect(o.filter!, unittest.equals('foo')); unittest.expect(o.groupByTimeUnit!, unittest.equals('foo')); unittest.expect(o.limit!, unittest.equals(42)); - checkUnnamed229(o.metrics!); + checkUnnamed232(o.metrics!); unittest.expect(o.mimeType!, unittest.equals('foo')); unittest.expect(o.reportDefinitionId!, unittest.equals('foo')); var casted16 = (o.timeRange!) as core.Map; @@ -9980,7 +10097,7 @@ void checkGoogleCloudApigeeV1SecurityReportResultMetadata( buildCounterGoogleCloudApigeeV1SecurityReportResultMetadata--; } -core.List buildUnnamed230() => [ +core.List buildUnnamed233() => [ { 'list': [1, 2, 3], 'bool': true, @@ -9993,7 +10110,7 @@ core.List buildUnnamed230() => [ }, ]; -void checkUnnamed230(core.List o) { +void checkUnnamed233(core.List o) { unittest.expect(o, unittest.hasLength(2)); var casted17 = (o[0]) as core.Map; unittest.expect(casted17, unittest.hasLength(3)); @@ -10016,7 +10133,7 @@ buildGoogleCloudApigeeV1SecurityReportResultView() { o.code = 42; o.error = 'foo'; o.metadata = buildGoogleCloudApigeeV1SecurityReportMetadata(); - o.rows = buildUnnamed230(); + o.rows = buildUnnamed233(); o.state = 'foo'; } buildCounterGoogleCloudApigeeV1SecurityReportResultView--; @@ -10031,7 +10148,7 @@ void checkGoogleCloudApigeeV1SecurityReportResultView( unittest.expect(o.code!, unittest.equals(42)); unittest.expect(o.error!, unittest.equals('foo')); checkGoogleCloudApigeeV1SecurityReportMetadata(o.metadata!); - checkUnnamed230(o.rows!); + checkUnnamed233(o.rows!); unittest.expect(o.state!, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1SecurityReportResultView--; @@ -10061,9 +10178,9 @@ void checkGoogleCloudApigeeV1SecuritySettings( buildCounterGoogleCloudApigeeV1SecuritySettings--; } -core.List buildUnnamed231() => ['foo', 'foo']; +core.List buildUnnamed234() => ['foo', 'foo']; -void checkUnnamed231(core.List o) { +void checkUnnamed234(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -10075,7 +10192,7 @@ buildGoogleCloudApigeeV1ServiceIssuersMapping() { final o = api.GoogleCloudApigeeV1ServiceIssuersMapping(); buildCounterGoogleCloudApigeeV1ServiceIssuersMapping++; if (buildCounterGoogleCloudApigeeV1ServiceIssuersMapping < 3) { - o.emailIds = buildUnnamed231(); + o.emailIds = buildUnnamed234(); o.service = 'foo'; } buildCounterGoogleCloudApigeeV1ServiceIssuersMapping--; @@ -10087,7 +10204,7 @@ void checkGoogleCloudApigeeV1ServiceIssuersMapping( ) { buildCounterGoogleCloudApigeeV1ServiceIssuersMapping++; if (buildCounterGoogleCloudApigeeV1ServiceIssuersMapping < 3) { - checkUnnamed231(o.emailIds!); + checkUnnamed234(o.emailIds!); unittest.expect(o.service!, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1ServiceIssuersMapping--; @@ -10160,9 +10277,9 @@ void checkGoogleCloudApigeeV1SetAddonsRequest( buildCounterGoogleCloudApigeeV1SetAddonsRequest--; } -core.List buildUnnamed232() => ['foo', 'foo']; +core.List buildUnnamed235() => ['foo', 'foo']; -void checkUnnamed232(core.List o) { +void checkUnnamed235(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -10176,7 +10293,7 @@ api.GoogleCloudApigeeV1SharedFlow buildGoogleCloudApigeeV1SharedFlow() { o.latestRevisionId = 'foo'; o.metaData = buildGoogleCloudApigeeV1EntityMetadata(); o.name = 'foo'; - o.revision = buildUnnamed232(); + o.revision = buildUnnamed235(); o.space = 'foo'; } buildCounterGoogleCloudApigeeV1SharedFlow--; @@ -10189,42 +10306,42 @@ void checkGoogleCloudApigeeV1SharedFlow(api.GoogleCloudApigeeV1SharedFlow o) { unittest.expect(o.latestRevisionId!, unittest.equals('foo')); checkGoogleCloudApigeeV1EntityMetadata(o.metaData!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed232(o.revision!); + checkUnnamed235(o.revision!); unittest.expect(o.space!, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1SharedFlow--; } -core.Map buildUnnamed233() => { +core.Map buildUnnamed236() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed233(core.Map o) { +void checkUnnamed236(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed234() => ['foo', 'foo']; +core.List buildUnnamed237() => ['foo', 'foo']; -void checkUnnamed234(core.List o) { +void checkUnnamed237(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed235() => ['foo', 'foo']; +core.List buildUnnamed238() => ['foo', 'foo']; -void checkUnnamed235(core.List o) { +void checkUnnamed238(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed236() => ['foo', 'foo']; +core.List buildUnnamed239() => ['foo', 'foo']; -void checkUnnamed236(core.List o) { +void checkUnnamed239(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -10241,14 +10358,14 @@ buildGoogleCloudApigeeV1SharedFlowRevision() { o.createdAt = 'foo'; o.description = 'foo'; o.displayName = 'foo'; - o.entityMetaDataAsProperties = buildUnnamed233(); + o.entityMetaDataAsProperties = buildUnnamed236(); o.lastModifiedAt = 'foo'; o.name = 'foo'; - o.policies = buildUnnamed234(); + o.policies = buildUnnamed237(); o.resourceFiles = buildGoogleCloudApigeeV1ResourceFiles(); - o.resources = buildUnnamed235(); + o.resources = buildUnnamed238(); o.revision = 'foo'; - o.sharedFlows = buildUnnamed236(); + o.sharedFlows = buildUnnamed239(); o.type = 'foo'; } buildCounterGoogleCloudApigeeV1SharedFlowRevision--; @@ -10265,14 +10382,14 @@ void checkGoogleCloudApigeeV1SharedFlowRevision( unittest.expect(o.createdAt!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed233(o.entityMetaDataAsProperties!); + checkUnnamed236(o.entityMetaDataAsProperties!); unittest.expect(o.lastModifiedAt!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed234(o.policies!); + checkUnnamed237(o.policies!); checkGoogleCloudApigeeV1ResourceFiles(o.resourceFiles!); - checkUnnamed235(o.resources!); + checkUnnamed238(o.resources!); unittest.expect(o.revision!, unittest.equals('foo')); - checkUnnamed236(o.sharedFlows!); + checkUnnamed239(o.sharedFlows!); unittest.expect(o.type!, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1SharedFlowRevision--; @@ -10303,12 +10420,12 @@ void checkGoogleCloudApigeeV1Space(api.GoogleCloudApigeeV1Space o) { buildCounterGoogleCloudApigeeV1Space--; } -core.List buildUnnamed237() => [ +core.List buildUnnamed240() => [ buildGoogleCloudApigeeV1StatsEnvironmentStats(), buildGoogleCloudApigeeV1StatsEnvironmentStats(), ]; -void checkUnnamed237( +void checkUnnamed240( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -10316,12 +10433,12 @@ void checkUnnamed237( checkGoogleCloudApigeeV1StatsEnvironmentStats(o[1]); } -core.List buildUnnamed238() => [ +core.List buildUnnamed241() => [ buildGoogleCloudApigeeV1StatsHostStats(), buildGoogleCloudApigeeV1StatsHostStats(), ]; -void checkUnnamed238(core.List o) { +void checkUnnamed241(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1StatsHostStats(o[0]); checkGoogleCloudApigeeV1StatsHostStats(o[1]); @@ -10332,8 +10449,8 @@ api.GoogleCloudApigeeV1Stats buildGoogleCloudApigeeV1Stats() { final o = api.GoogleCloudApigeeV1Stats(); buildCounterGoogleCloudApigeeV1Stats++; if (buildCounterGoogleCloudApigeeV1Stats < 3) { - o.environments = buildUnnamed237(); - o.hosts = buildUnnamed238(); + o.environments = buildUnnamed240(); + o.hosts = buildUnnamed241(); o.metaData = buildGoogleCloudApigeeV1Metadata(); } buildCounterGoogleCloudApigeeV1Stats--; @@ -10343,30 +10460,30 @@ api.GoogleCloudApigeeV1Stats buildGoogleCloudApigeeV1Stats() { void checkGoogleCloudApigeeV1Stats(api.GoogleCloudApigeeV1Stats o) { buildCounterGoogleCloudApigeeV1Stats++; if (buildCounterGoogleCloudApigeeV1Stats < 3) { - checkUnnamed237(o.environments!); - checkUnnamed238(o.hosts!); + checkUnnamed240(o.environments!); + checkUnnamed241(o.hosts!); checkGoogleCloudApigeeV1Metadata(o.metaData!); } buildCounterGoogleCloudApigeeV1Stats--; } -core.List buildUnnamed239() => [ +core.List buildUnnamed242() => [ buildGoogleCloudApigeeV1DimensionMetric(), buildGoogleCloudApigeeV1DimensionMetric(), ]; -void checkUnnamed239(core.List o) { +void checkUnnamed242(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1DimensionMetric(o[0]); checkGoogleCloudApigeeV1DimensionMetric(o[1]); } -core.List buildUnnamed240() => [ +core.List buildUnnamed243() => [ buildGoogleCloudApigeeV1Metric(), buildGoogleCloudApigeeV1Metric(), ]; -void checkUnnamed240(core.List o) { +void checkUnnamed243(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Metric(o[0]); checkGoogleCloudApigeeV1Metric(o[1]); @@ -10378,8 +10495,8 @@ buildGoogleCloudApigeeV1StatsEnvironmentStats() { final o = api.GoogleCloudApigeeV1StatsEnvironmentStats(); buildCounterGoogleCloudApigeeV1StatsEnvironmentStats++; if (buildCounterGoogleCloudApigeeV1StatsEnvironmentStats < 3) { - o.dimensions = buildUnnamed239(); - o.metrics = buildUnnamed240(); + o.dimensions = buildUnnamed242(); + o.metrics = buildUnnamed243(); o.name = 'foo'; } buildCounterGoogleCloudApigeeV1StatsEnvironmentStats--; @@ -10391,30 +10508,30 @@ void checkGoogleCloudApigeeV1StatsEnvironmentStats( ) { buildCounterGoogleCloudApigeeV1StatsEnvironmentStats++; if (buildCounterGoogleCloudApigeeV1StatsEnvironmentStats < 3) { - checkUnnamed239(o.dimensions!); - checkUnnamed240(o.metrics!); + checkUnnamed242(o.dimensions!); + checkUnnamed243(o.metrics!); unittest.expect(o.name!, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1StatsEnvironmentStats--; } -core.List buildUnnamed241() => [ +core.List buildUnnamed244() => [ buildGoogleCloudApigeeV1DimensionMetric(), buildGoogleCloudApigeeV1DimensionMetric(), ]; -void checkUnnamed241(core.List o) { +void checkUnnamed244(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1DimensionMetric(o[0]); checkGoogleCloudApigeeV1DimensionMetric(o[1]); } -core.List buildUnnamed242() => [ +core.List buildUnnamed245() => [ buildGoogleCloudApigeeV1Metric(), buildGoogleCloudApigeeV1Metric(), ]; -void checkUnnamed242(core.List o) { +void checkUnnamed245(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Metric(o[0]); checkGoogleCloudApigeeV1Metric(o[1]); @@ -10425,8 +10542,8 @@ api.GoogleCloudApigeeV1StatsHostStats buildGoogleCloudApigeeV1StatsHostStats() { final o = api.GoogleCloudApigeeV1StatsHostStats(); buildCounterGoogleCloudApigeeV1StatsHostStats++; if (buildCounterGoogleCloudApigeeV1StatsHostStats < 3) { - o.dimensions = buildUnnamed241(); - o.metrics = buildUnnamed242(); + o.dimensions = buildUnnamed244(); + o.metrics = buildUnnamed245(); o.name = 'foo'; } buildCounterGoogleCloudApigeeV1StatsHostStats--; @@ -10438,8 +10555,8 @@ void checkGoogleCloudApigeeV1StatsHostStats( ) { buildCounterGoogleCloudApigeeV1StatsHostStats++; if (buildCounterGoogleCloudApigeeV1StatsHostStats < 3) { - checkUnnamed241(o.dimensions!); - checkUnnamed242(o.metrics!); + checkUnnamed244(o.dimensions!); + checkUnnamed245(o.metrics!); unittest.expect(o.name!, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1StatsHostStats--; @@ -10466,9 +10583,9 @@ void checkGoogleCloudApigeeV1Subscription( buildCounterGoogleCloudApigeeV1Subscription--; } -core.List buildUnnamed243() => ['foo', 'foo']; +core.List buildUnnamed246() => ['foo', 'foo']; -void checkUnnamed243(core.List o) { +void checkUnnamed246(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -10481,7 +10598,7 @@ buildGoogleCloudApigeeV1SyncAuthorization() { buildCounterGoogleCloudApigeeV1SyncAuthorization++; if (buildCounterGoogleCloudApigeeV1SyncAuthorization < 3) { o.etag = 'foo'; - o.identities = buildUnnamed243(); + o.identities = buildUnnamed246(); } buildCounterGoogleCloudApigeeV1SyncAuthorization--; return o; @@ -10493,7 +10610,7 @@ void checkGoogleCloudApigeeV1SyncAuthorization( buildCounterGoogleCloudApigeeV1SyncAuthorization++; if (buildCounterGoogleCloudApigeeV1SyncAuthorization < 3) { unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed243(o.identities!); + checkUnnamed246(o.identities!); } buildCounterGoogleCloudApigeeV1SyncAuthorization--; } @@ -10587,17 +10704,17 @@ void checkGoogleCloudApigeeV1TestDatastoreResponse( buildCounterGoogleCloudApigeeV1TestDatastoreResponse--; } -core.List buildUnnamed244() => ['foo', 'foo']; +core.List buildUnnamed247() => ['foo', 'foo']; -void checkUnnamed244(core.List o) { +void checkUnnamed247(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed245() => ['foo', 'foo']; +core.List buildUnnamed248() => ['foo', 'foo']; -void checkUnnamed245(core.List o) { +void checkUnnamed248(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -10608,7 +10725,7 @@ api.GoogleCloudApigeeV1TlsInfo buildGoogleCloudApigeeV1TlsInfo() { final o = api.GoogleCloudApigeeV1TlsInfo(); buildCounterGoogleCloudApigeeV1TlsInfo++; if (buildCounterGoogleCloudApigeeV1TlsInfo < 3) { - o.ciphers = buildUnnamed244(); + o.ciphers = buildUnnamed247(); o.clientAuthEnabled = true; o.commonName = buildGoogleCloudApigeeV1TlsInfoCommonName(); o.enabled = true; @@ -10616,7 +10733,7 @@ api.GoogleCloudApigeeV1TlsInfo buildGoogleCloudApigeeV1TlsInfo() { o.ignoreValidationErrors = true; o.keyAlias = 'foo'; o.keyStore = 'foo'; - o.protocols = buildUnnamed245(); + o.protocols = buildUnnamed248(); o.trustStore = 'foo'; } buildCounterGoogleCloudApigeeV1TlsInfo--; @@ -10626,7 +10743,7 @@ api.GoogleCloudApigeeV1TlsInfo buildGoogleCloudApigeeV1TlsInfo() { void checkGoogleCloudApigeeV1TlsInfo(api.GoogleCloudApigeeV1TlsInfo o) { buildCounterGoogleCloudApigeeV1TlsInfo++; if (buildCounterGoogleCloudApigeeV1TlsInfo < 3) { - checkUnnamed244(o.ciphers!); + checkUnnamed247(o.ciphers!); unittest.expect(o.clientAuthEnabled!, unittest.isTrue); checkGoogleCloudApigeeV1TlsInfoCommonName(o.commonName!); unittest.expect(o.enabled!, unittest.isTrue); @@ -10634,7 +10751,7 @@ void checkGoogleCloudApigeeV1TlsInfo(api.GoogleCloudApigeeV1TlsInfo o) { unittest.expect(o.ignoreValidationErrors!, unittest.isTrue); unittest.expect(o.keyAlias!, unittest.equals('foo')); unittest.expect(o.keyStore!, unittest.equals('foo')); - checkUnnamed245(o.protocols!); + checkUnnamed248(o.protocols!); unittest.expect(o.trustStore!, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1TlsInfo--; @@ -10664,17 +10781,17 @@ void checkGoogleCloudApigeeV1TlsInfoCommonName( buildCounterGoogleCloudApigeeV1TlsInfoCommonName--; } -core.List buildUnnamed246() => ['foo', 'foo']; +core.List buildUnnamed249() => ['foo', 'foo']; -void checkUnnamed246(core.List o) { +void checkUnnamed249(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed247() => ['foo', 'foo']; +core.List buildUnnamed250() => ['foo', 'foo']; -void checkUnnamed247(core.List o) { +void checkUnnamed250(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -10685,7 +10802,7 @@ api.GoogleCloudApigeeV1TlsInfoConfig buildGoogleCloudApigeeV1TlsInfoConfig() { final o = api.GoogleCloudApigeeV1TlsInfoConfig(); buildCounterGoogleCloudApigeeV1TlsInfoConfig++; if (buildCounterGoogleCloudApigeeV1TlsInfoConfig < 3) { - o.ciphers = buildUnnamed246(); + o.ciphers = buildUnnamed249(); o.clientAuthEnabled = true; o.commonName = buildGoogleCloudApigeeV1CommonNameConfig(); o.enabled = true; @@ -10693,7 +10810,7 @@ api.GoogleCloudApigeeV1TlsInfoConfig buildGoogleCloudApigeeV1TlsInfoConfig() { o.ignoreValidationErrors = true; o.keyAlias = 'foo'; o.keyAliasReference = buildGoogleCloudApigeeV1KeyAliasReference(); - o.protocols = buildUnnamed247(); + o.protocols = buildUnnamed250(); o.trustStore = 'foo'; } buildCounterGoogleCloudApigeeV1TlsInfoConfig--; @@ -10705,7 +10822,7 @@ void checkGoogleCloudApigeeV1TlsInfoConfig( ) { buildCounterGoogleCloudApigeeV1TlsInfoConfig++; if (buildCounterGoogleCloudApigeeV1TlsInfoConfig < 3) { - checkUnnamed246(o.ciphers!); + checkUnnamed249(o.ciphers!); unittest.expect(o.clientAuthEnabled!, unittest.isTrue); checkGoogleCloudApigeeV1CommonNameConfig(o.commonName!); unittest.expect(o.enabled!, unittest.isTrue); @@ -10713,7 +10830,7 @@ void checkGoogleCloudApigeeV1TlsInfoConfig( unittest.expect(o.ignoreValidationErrors!, unittest.isTrue); unittest.expect(o.keyAlias!, unittest.equals('foo')); checkGoogleCloudApigeeV1KeyAliasReference(o.keyAliasReference!); - checkUnnamed247(o.protocols!); + checkUnnamed250(o.protocols!); unittest.expect(o.trustStore!, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1TlsInfoConfig--; @@ -10792,9 +10909,9 @@ void checkGoogleCloudApigeeV1TraceSamplingConfig( buildCounterGoogleCloudApigeeV1TraceSamplingConfig--; } -core.List buildUnnamed248() => ['foo', 'foo']; +core.List buildUnnamed251() => ['foo', 'foo']; -void checkUnnamed248(core.List o) { +void checkUnnamed251(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -10807,7 +10924,7 @@ buildGoogleCloudApigeeV1UpdateAppGroupAppKeyRequest() { buildCounterGoogleCloudApigeeV1UpdateAppGroupAppKeyRequest++; if (buildCounterGoogleCloudApigeeV1UpdateAppGroupAppKeyRequest < 3) { o.action = 'foo'; - o.apiProducts = buildUnnamed248(); + o.apiProducts = buildUnnamed251(); o.appGroupAppKey = buildGoogleCloudApigeeV1AppGroupAppKey(); } buildCounterGoogleCloudApigeeV1UpdateAppGroupAppKeyRequest--; @@ -10820,7 +10937,7 @@ void checkGoogleCloudApigeeV1UpdateAppGroupAppKeyRequest( buildCounterGoogleCloudApigeeV1UpdateAppGroupAppKeyRequest++; if (buildCounterGoogleCloudApigeeV1UpdateAppGroupAppKeyRequest < 3) { unittest.expect(o.action!, unittest.equals('foo')); - checkUnnamed248(o.apiProducts!); + checkUnnamed251(o.apiProducts!); checkGoogleCloudApigeeV1AppGroupAppKey(o.appGroupAppKey!); } buildCounterGoogleCloudApigeeV1UpdateAppGroupAppKeyRequest--; @@ -10875,12 +10992,12 @@ void checkGoogleCloudApigeeV1UpdateSecurityIncidentRequest( buildCounterGoogleCloudApigeeV1UpdateSecurityIncidentRequest--; } -core.List buildUnnamed249() => [ +core.List buildUnnamed252() => [ buildGoogleIamV1AuditLogConfig(), buildGoogleIamV1AuditLogConfig(), ]; -void checkUnnamed249(core.List o) { +void checkUnnamed252(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleIamV1AuditLogConfig(o[0]); checkGoogleIamV1AuditLogConfig(o[1]); @@ -10891,7 +11008,7 @@ api.GoogleIamV1AuditConfig buildGoogleIamV1AuditConfig() { final o = api.GoogleIamV1AuditConfig(); buildCounterGoogleIamV1AuditConfig++; if (buildCounterGoogleIamV1AuditConfig < 3) { - o.auditLogConfigs = buildUnnamed249(); + o.auditLogConfigs = buildUnnamed252(); o.service = 'foo'; } buildCounterGoogleIamV1AuditConfig--; @@ -10901,15 +11018,15 @@ api.GoogleIamV1AuditConfig buildGoogleIamV1AuditConfig() { void checkGoogleIamV1AuditConfig(api.GoogleIamV1AuditConfig o) { buildCounterGoogleIamV1AuditConfig++; if (buildCounterGoogleIamV1AuditConfig < 3) { - checkUnnamed249(o.auditLogConfigs!); + checkUnnamed252(o.auditLogConfigs!); unittest.expect(o.service!, unittest.equals('foo')); } buildCounterGoogleIamV1AuditConfig--; } -core.List buildUnnamed250() => ['foo', 'foo']; +core.List buildUnnamed253() => ['foo', 'foo']; -void checkUnnamed250(core.List o) { +void checkUnnamed253(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -10920,7 +11037,7 @@ api.GoogleIamV1AuditLogConfig buildGoogleIamV1AuditLogConfig() { final o = api.GoogleIamV1AuditLogConfig(); buildCounterGoogleIamV1AuditLogConfig++; if (buildCounterGoogleIamV1AuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed250(); + o.exemptedMembers = buildUnnamed253(); o.logType = 'foo'; } buildCounterGoogleIamV1AuditLogConfig--; @@ -10930,15 +11047,15 @@ api.GoogleIamV1AuditLogConfig buildGoogleIamV1AuditLogConfig() { void checkGoogleIamV1AuditLogConfig(api.GoogleIamV1AuditLogConfig o) { buildCounterGoogleIamV1AuditLogConfig++; if (buildCounterGoogleIamV1AuditLogConfig < 3) { - checkUnnamed250(o.exemptedMembers!); + checkUnnamed253(o.exemptedMembers!); unittest.expect(o.logType!, unittest.equals('foo')); } buildCounterGoogleIamV1AuditLogConfig--; } -core.List buildUnnamed251() => ['foo', 'foo']; +core.List buildUnnamed254() => ['foo', 'foo']; -void checkUnnamed251(core.List o) { +void checkUnnamed254(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -10950,7 +11067,7 @@ api.GoogleIamV1Binding buildGoogleIamV1Binding() { buildCounterGoogleIamV1Binding++; if (buildCounterGoogleIamV1Binding < 3) { o.condition = buildGoogleTypeExpr(); - o.members = buildUnnamed251(); + o.members = buildUnnamed254(); o.role = 'foo'; } buildCounterGoogleIamV1Binding--; @@ -10961,29 +11078,29 @@ void checkGoogleIamV1Binding(api.GoogleIamV1Binding o) { buildCounterGoogleIamV1Binding++; if (buildCounterGoogleIamV1Binding < 3) { checkGoogleTypeExpr(o.condition!); - checkUnnamed251(o.members!); + checkUnnamed254(o.members!); unittest.expect(o.role!, unittest.equals('foo')); } buildCounterGoogleIamV1Binding--; } -core.List buildUnnamed252() => [ +core.List buildUnnamed255() => [ buildGoogleIamV1AuditConfig(), buildGoogleIamV1AuditConfig(), ]; -void checkUnnamed252(core.List o) { +void checkUnnamed255(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleIamV1AuditConfig(o[0]); checkGoogleIamV1AuditConfig(o[1]); } -core.List buildUnnamed253() => [ +core.List buildUnnamed256() => [ buildGoogleIamV1Binding(), buildGoogleIamV1Binding(), ]; -void checkUnnamed253(core.List o) { +void checkUnnamed256(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleIamV1Binding(o[0]); checkGoogleIamV1Binding(o[1]); @@ -10994,8 +11111,8 @@ api.GoogleIamV1Policy buildGoogleIamV1Policy() { final o = api.GoogleIamV1Policy(); buildCounterGoogleIamV1Policy++; if (buildCounterGoogleIamV1Policy < 3) { - o.auditConfigs = buildUnnamed252(); - o.bindings = buildUnnamed253(); + o.auditConfigs = buildUnnamed255(); + o.bindings = buildUnnamed256(); o.etag = 'foo'; o.version = 42; } @@ -11006,8 +11123,8 @@ api.GoogleIamV1Policy buildGoogleIamV1Policy() { void checkGoogleIamV1Policy(api.GoogleIamV1Policy o) { buildCounterGoogleIamV1Policy++; if (buildCounterGoogleIamV1Policy < 3) { - checkUnnamed252(o.auditConfigs!); - checkUnnamed253(o.bindings!); + checkUnnamed255(o.auditConfigs!); + checkUnnamed256(o.bindings!); unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.version!, unittest.equals(42)); } @@ -11035,9 +11152,9 @@ void checkGoogleIamV1SetIamPolicyRequest(api.GoogleIamV1SetIamPolicyRequest o) { buildCounterGoogleIamV1SetIamPolicyRequest--; } -core.List buildUnnamed254() => ['foo', 'foo']; +core.List buildUnnamed257() => ['foo', 'foo']; -void checkUnnamed254(core.List o) { +void checkUnnamed257(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -11049,7 +11166,7 @@ buildGoogleIamV1TestIamPermissionsRequest() { final o = api.GoogleIamV1TestIamPermissionsRequest(); buildCounterGoogleIamV1TestIamPermissionsRequest++; if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed254(); + o.permissions = buildUnnamed257(); } buildCounterGoogleIamV1TestIamPermissionsRequest--; return o; @@ -11060,14 +11177,14 @@ void checkGoogleIamV1TestIamPermissionsRequest( ) { buildCounterGoogleIamV1TestIamPermissionsRequest++; if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) { - checkUnnamed254(o.permissions!); + checkUnnamed257(o.permissions!); } buildCounterGoogleIamV1TestIamPermissionsRequest--; } -core.List buildUnnamed255() => ['foo', 'foo']; +core.List buildUnnamed258() => ['foo', 'foo']; -void checkUnnamed255(core.List o) { +void checkUnnamed258(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -11079,7 +11196,7 @@ buildGoogleIamV1TestIamPermissionsResponse() { final o = api.GoogleIamV1TestIamPermissionsResponse(); buildCounterGoogleIamV1TestIamPermissionsResponse++; if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed255(); + o.permissions = buildUnnamed258(); } buildCounterGoogleIamV1TestIamPermissionsResponse--; return o; @@ -11090,17 +11207,17 @@ void checkGoogleIamV1TestIamPermissionsResponse( ) { buildCounterGoogleIamV1TestIamPermissionsResponse++; if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) { - checkUnnamed255(o.permissions!); + checkUnnamed258(o.permissions!); } buildCounterGoogleIamV1TestIamPermissionsResponse--; } -core.List buildUnnamed256() => [ +core.List buildUnnamed259() => [ buildGoogleLongrunningOperation(), buildGoogleLongrunningOperation(), ]; -void checkUnnamed256(core.List o) { +void checkUnnamed259(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0]); checkGoogleLongrunningOperation(o[1]); @@ -11113,7 +11230,7 @@ buildGoogleLongrunningListOperationsResponse() { buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = 'foo'; - o.operations = buildUnnamed256(); + o.operations = buildUnnamed259(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; @@ -11125,12 +11242,12 @@ void checkGoogleLongrunningListOperationsResponse( buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed256(o.operations!); + checkUnnamed259(o.operations!); } buildCounterGoogleLongrunningListOperationsResponse--; } -core.Map buildUnnamed257() => { +core.Map buildUnnamed260() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -11143,7 +11260,7 @@ core.Map buildUnnamed257() => { }, }; -void checkUnnamed257(core.Map o) { +void checkUnnamed260(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted19 = (o['x']!) as core.Map; unittest.expect(casted19, unittest.hasLength(3)); @@ -11157,7 +11274,7 @@ void checkUnnamed257(core.Map o) { unittest.expect(casted20['string'], unittest.equals('foo')); } -core.Map buildUnnamed258() => { +core.Map buildUnnamed261() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -11170,7 +11287,7 @@ core.Map buildUnnamed258() => { }, }; -void checkUnnamed258(core.Map o) { +void checkUnnamed261(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted21 = (o['x']!) as core.Map; unittest.expect(casted21, unittest.hasLength(3)); @@ -11191,9 +11308,9 @@ api.GoogleLongrunningOperation buildGoogleLongrunningOperation() { if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed257(); + o.metadata = buildUnnamed260(); o.name = 'foo'; - o.response = buildUnnamed258(); + o.response = buildUnnamed261(); } buildCounterGoogleLongrunningOperation--; return o; @@ -11204,9 +11321,9 @@ void checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkGoogleRpcStatus(o.error!); - checkUnnamed257(o.metadata!); + checkUnnamed260(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed258(o.response!); + checkUnnamed261(o.response!); } buildCounterGoogleLongrunningOperation--; } @@ -11226,12 +11343,12 @@ void checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { buildCounterGoogleProtobufEmpty--; } -core.List buildUnnamed259() => [ +core.List buildUnnamed262() => [ buildGoogleRpcPreconditionFailureViolation(), buildGoogleRpcPreconditionFailureViolation(), ]; -void checkUnnamed259(core.List o) { +void checkUnnamed262(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleRpcPreconditionFailureViolation(o[0]); checkGoogleRpcPreconditionFailureViolation(o[1]); @@ -11242,7 +11359,7 @@ api.GoogleRpcPreconditionFailure buildGoogleRpcPreconditionFailure() { final o = api.GoogleRpcPreconditionFailure(); buildCounterGoogleRpcPreconditionFailure++; if (buildCounterGoogleRpcPreconditionFailure < 3) { - o.violations = buildUnnamed259(); + o.violations = buildUnnamed262(); } buildCounterGoogleRpcPreconditionFailure--; return o; @@ -11251,7 +11368,7 @@ api.GoogleRpcPreconditionFailure buildGoogleRpcPreconditionFailure() { void checkGoogleRpcPreconditionFailure(api.GoogleRpcPreconditionFailure o) { buildCounterGoogleRpcPreconditionFailure++; if (buildCounterGoogleRpcPreconditionFailure < 3) { - checkUnnamed259(o.violations!); + checkUnnamed262(o.violations!); } buildCounterGoogleRpcPreconditionFailure--; } @@ -11282,7 +11399,7 @@ void checkGoogleRpcPreconditionFailureViolation( buildCounterGoogleRpcPreconditionFailureViolation--; } -core.Map buildUnnamed260() => { +core.Map buildUnnamed263() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -11295,7 +11412,7 @@ core.Map buildUnnamed260() => { }, }; -void checkUnnamed260(core.Map o) { +void checkUnnamed263(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted23 = (o['x']!) as core.Map; unittest.expect(casted23, unittest.hasLength(3)); @@ -11309,15 +11426,15 @@ void checkUnnamed260(core.Map o) { unittest.expect(casted24['string'], unittest.equals('foo')); } -core.List> buildUnnamed261() => [ - buildUnnamed260(), - buildUnnamed260(), +core.List> buildUnnamed264() => [ + buildUnnamed263(), + buildUnnamed263(), ]; -void checkUnnamed261(core.List> o) { +void checkUnnamed264(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed260(o[0]); - checkUnnamed260(o[1]); + checkUnnamed263(o[0]); + checkUnnamed263(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -11326,7 +11443,7 @@ api.GoogleRpcStatus buildGoogleRpcStatus() { buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed261(); + o.details = buildUnnamed264(); o.message = 'foo'; } buildCounterGoogleRpcStatus--; @@ -11337,7 +11454,7 @@ void checkGoogleRpcStatus(api.GoogleRpcStatus o) { buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed261(o.details!); + checkUnnamed264(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; @@ -13402,6 +13519,20 @@ void main() { }, ); + unittest.group( + 'obj-schema-GoogleCloudApigeeV1ListSecurityFeedbackResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudApigeeV1ListSecurityFeedbackResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudApigeeV1ListSecurityFeedbackResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudApigeeV1ListSecurityFeedbackResponse(od); + }); + }, + ); + unittest.group( 'obj-schema-GoogleCloudApigeeV1ListSecurityIncidentsResponse', () { @@ -14522,6 +14653,32 @@ void main() { }, ); + unittest.group('obj-schema-GoogleCloudApigeeV1SecurityFeedback', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudApigeeV1SecurityFeedback(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudApigeeV1SecurityFeedback.fromJson( + oJson as core.Map, + ); + checkGoogleCloudApigeeV1SecurityFeedback(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudApigeeV1SecurityFeedbackFeedbackContext', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudApigeeV1SecurityFeedbackFeedbackContext(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudApigeeV1SecurityFeedbackFeedbackContext.fromJson( + oJson as core.Map, + ); + checkGoogleCloudApigeeV1SecurityFeedbackFeedbackContext(od); + }); + }, + ); + unittest.group('obj-schema-GoogleCloudApigeeV1SecurityIncident', () { unittest.test('to-json--from-json', () async { final o = buildGoogleCloudApigeeV1SecurityIncident(); @@ -34787,6 +34944,336 @@ void main() { }); }); + unittest.group('resource-OrganizationsSecurityFeedbackResource', () { + unittest.test('method--create', () async { + final mock = HttpServerMock(); + final res = api.ApigeeApi(mock).organizations.securityFeedback; + final arg_request = buildGoogleCloudApigeeV1SecurityFeedback(); + final arg_parent = 'foo'; + final arg_securityFeedbackId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudApigeeV1SecurityFeedback.fromJson( + json as core.Map, + ); + checkGoogleCloudApigeeV1SecurityFeedback(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['securityFeedbackId']!.first, + unittest.equals(arg_securityFeedbackId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudApigeeV1SecurityFeedback(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.create( + arg_request, + arg_parent, + securityFeedbackId: arg_securityFeedbackId, + $fields: arg_$fields, + ); + checkGoogleCloudApigeeV1SecurityFeedback( + response as api.GoogleCloudApigeeV1SecurityFeedback, + ); + }); + + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = api.ApigeeApi(mock).organizations.securityFeedback; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleProtobufEmpty()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); + }); + + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = api.ApigeeApi(mock).organizations.securityFeedback; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudApigeeV1SecurityFeedback(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleCloudApigeeV1SecurityFeedback( + response as api.GoogleCloudApigeeV1SecurityFeedback, + ); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = api.ApigeeApi(mock).organizations.securityFeedback; + final arg_parent = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudApigeeV1ListSecurityFeedbackResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkGoogleCloudApigeeV1ListSecurityFeedbackResponse( + response as api.GoogleCloudApigeeV1ListSecurityFeedbackResponse, + ); + }); + + unittest.test('method--patch', () async { + final mock = HttpServerMock(); + final res = api.ApigeeApi(mock).organizations.securityFeedback; + final arg_request = buildGoogleCloudApigeeV1SecurityFeedback(); + final arg_name = 'foo'; + final arg_updateMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudApigeeV1SecurityFeedback.fromJson( + json as core.Map, + ); + checkGoogleCloudApigeeV1SecurityFeedback(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudApigeeV1SecurityFeedback(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.patch( + arg_request, + arg_name, + updateMask: arg_updateMask, + $fields: arg_$fields, + ); + checkGoogleCloudApigeeV1SecurityFeedback( + response as api.GoogleCloudApigeeV1SecurityFeedback, + ); + }); + }); + unittest.group('resource-OrganizationsSecurityMonitoringConditionsResource', () { unittest.test('method--create', () async { final mock = HttpServerMock(); diff --git a/generated/googleapis/test/apihub/v1_test.dart b/generated/googleapis/test/apihub/v1_test.dart index e1de6f97e..cfc9c2486 100644 --- a/generated/googleapis/test/apihub/v1_test.dart +++ b/generated/googleapis/test/apihub/v1_test.dart @@ -2523,6 +2523,58 @@ void checkGoogleCloudApihubV1LookupRuntimeProjectAttachmentResponse( buildCounterGoogleCloudApihubV1LookupRuntimeProjectAttachmentResponse--; } +core.int buildCounterGoogleCloudApihubV1ManagePluginInstanceSourceDataRequest = + 0; +api.GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest +buildGoogleCloudApihubV1ManagePluginInstanceSourceDataRequest() { + final o = api.GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest(); + buildCounterGoogleCloudApihubV1ManagePluginInstanceSourceDataRequest++; + if (buildCounterGoogleCloudApihubV1ManagePluginInstanceSourceDataRequest < + 3) { + o.action = 'foo'; + o.data = 'foo'; + o.dataType = 'foo'; + o.relativePath = 'foo'; + } + buildCounterGoogleCloudApihubV1ManagePluginInstanceSourceDataRequest--; + return o; +} + +void checkGoogleCloudApihubV1ManagePluginInstanceSourceDataRequest( + api.GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest o, +) { + buildCounterGoogleCloudApihubV1ManagePluginInstanceSourceDataRequest++; + if (buildCounterGoogleCloudApihubV1ManagePluginInstanceSourceDataRequest < + 3) { + unittest.expect(o.action!, unittest.equals('foo')); + unittest.expect(o.data!, unittest.equals('foo')); + unittest.expect(o.dataType!, unittest.equals('foo')); + unittest.expect(o.relativePath!, unittest.equals('foo')); + } + buildCounterGoogleCloudApihubV1ManagePluginInstanceSourceDataRequest--; +} + +core.int buildCounterGoogleCloudApihubV1ManagePluginInstanceSourceDataResponse = + 0; +api.GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse +buildGoogleCloudApihubV1ManagePluginInstanceSourceDataResponse() { + final o = api.GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse(); + buildCounterGoogleCloudApihubV1ManagePluginInstanceSourceDataResponse++; + if (buildCounterGoogleCloudApihubV1ManagePluginInstanceSourceDataResponse < + 3) {} + buildCounterGoogleCloudApihubV1ManagePluginInstanceSourceDataResponse--; + return o; +} + +void checkGoogleCloudApihubV1ManagePluginInstanceSourceDataResponse( + api.GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse o, +) { + buildCounterGoogleCloudApihubV1ManagePluginInstanceSourceDataResponse++; + if (buildCounterGoogleCloudApihubV1ManagePluginInstanceSourceDataResponse < + 3) {} + buildCounterGoogleCloudApihubV1ManagePluginInstanceSourceDataResponse--; +} + core.int buildCounterGoogleCloudApihubV1MatchResult = 0; api.GoogleCloudApihubV1MatchResult buildGoogleCloudApihubV1MatchResult() { final o = api.GoogleCloudApihubV1MatchResult(); @@ -4843,6 +4895,38 @@ void main() { }, ); + unittest.group( + 'obj-schema-GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudApihubV1ManagePluginInstanceSourceDataRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudApihubV1ManagePluginInstanceSourceDataRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudApihubV1ManagePluginInstanceSourceDataResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudApihubV1ManagePluginInstanceSourceDataResponse(od); + }); + }, + ); + unittest.group('obj-schema-GoogleCloudApihubV1MatchResult', () { unittest.test('to-json--from-json', () async { final o = buildGoogleCloudApihubV1MatchResult(); @@ -10811,6 +10895,76 @@ void main() { ); }); + unittest.test('method--manageSourceData', () async { + final mock = HttpServerMock(); + final res = api.APIHubApi(mock).projects.locations.plugins.instances; + final arg_request = + buildGoogleCloudApihubV1ManagePluginInstanceSourceDataRequest(); + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudApihubV1ManagePluginInstanceSourceDataRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudApihubV1ManagePluginInstanceSourceDataResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.manageSourceData( + arg_request, + arg_name, + $fields: arg_$fields, + ); + checkGoogleCloudApihubV1ManagePluginInstanceSourceDataResponse( + response + as api.GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse, + ); + }); + unittest.test('method--patch', () async { final mock = HttpServerMock(); final res = api.APIHubApi(mock).projects.locations.plugins.instances; diff --git a/generated/googleapis/test/backupdr/v1_test.dart b/generated/googleapis/test/backupdr/v1_test.dart index 71569dea5..46be8b2d4 100644 --- a/generated/googleapis/test/backupdr/v1_test.dart +++ b/generated/googleapis/test/backupdr/v1_test.dart @@ -1663,12 +1663,12 @@ void checkUnnamed29(core.List o) { checkGuestOsFeature(o[1]); } -core.List buildUnnamed30() => ['foo', 'foo']; +core.Map buildUnnamed30() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed30(core.List o) { +void checkUnnamed30(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); } core.List buildUnnamed31() => ['foo', 'foo']; @@ -1679,19 +1679,34 @@ void checkUnnamed31(core.List o) { unittest.expect(o[1], unittest.equals('foo')); } +core.List buildUnnamed32() => ['foo', 'foo']; + +void checkUnnamed32(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterDiskBackupProperties = 0; api.DiskBackupProperties buildDiskBackupProperties() { final o = api.DiskBackupProperties(); buildCounterDiskBackupProperties++; if (buildCounterDiskBackupProperties < 3) { + o.accessMode = 'foo'; o.architecture = 'foo'; o.description = 'foo'; + o.enableConfidentialCompute = true; o.guestOsFeature = buildUnnamed29(); - o.licenses = buildUnnamed30(); + o.labels = buildUnnamed30(); + o.licenses = buildUnnamed31(); + o.physicalBlockSizeBytes = 'foo'; + o.provisionedIops = 'foo'; + o.provisionedThroughput = 'foo'; o.region = 'foo'; - o.replicaZones = buildUnnamed31(); + o.replicaZones = buildUnnamed32(); o.sizeGb = 'foo'; o.sourceDisk = 'foo'; + o.storagePool = 'foo'; o.type = 'foo'; o.zone = 'foo'; } @@ -1702,14 +1717,21 @@ api.DiskBackupProperties buildDiskBackupProperties() { void checkDiskBackupProperties(api.DiskBackupProperties o) { buildCounterDiskBackupProperties++; if (buildCounterDiskBackupProperties < 3) { + unittest.expect(o.accessMode!, unittest.equals('foo')); unittest.expect(o.architecture!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.enableConfidentialCompute!, unittest.isTrue); checkUnnamed29(o.guestOsFeature!); - checkUnnamed30(o.licenses!); + checkUnnamed30(o.labels!); + checkUnnamed31(o.licenses!); + unittest.expect(o.physicalBlockSizeBytes!, unittest.equals('foo')); + unittest.expect(o.provisionedIops!, unittest.equals('foo')); + unittest.expect(o.provisionedThroughput!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); - checkUnnamed31(o.replicaZones!); + checkUnnamed32(o.replicaZones!); unittest.expect(o.sizeGb!, unittest.equals('foo')); unittest.expect(o.sourceDisk!, unittest.equals('foo')); + unittest.expect(o.storagePool!, unittest.equals('foo')); unittest.expect(o.type!, unittest.equals('foo')); unittest.expect(o.zone!, unittest.equals('foo')); } @@ -1741,44 +1763,44 @@ void checkDiskDataSourceProperties(api.DiskDataSourceProperties o) { buildCounterDiskDataSourceProperties--; } -core.List buildUnnamed32() => [ +core.List buildUnnamed33() => [ buildGuestOsFeature(), buildGuestOsFeature(), ]; -void checkUnnamed32(core.List o) { +void checkUnnamed33(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGuestOsFeature(o[0]); checkGuestOsFeature(o[1]); } -core.Map buildUnnamed33() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed34() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed33(core.Map o) { +void checkUnnamed34(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed34() => ['foo', 'foo']; +core.List buildUnnamed35() => ['foo', 'foo']; -void checkUnnamed34(core.List o) { +void checkUnnamed35(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed35() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed36() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed35(core.Map o) { +void checkUnnamed36(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed36() => ['foo', 'foo']; +core.List buildUnnamed37() => ['foo', 'foo']; -void checkUnnamed36(core.List o) { +void checkUnnamed37(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1794,15 +1816,15 @@ api.DiskRestoreProperties buildDiskRestoreProperties() { o.description = 'foo'; o.diskEncryptionKey = buildCustomerEncryptionKey(); o.enableConfidentialCompute = true; - o.guestOsFeature = buildUnnamed32(); - o.labels = buildUnnamed33(); - o.licenses = buildUnnamed34(); + o.guestOsFeature = buildUnnamed33(); + o.labels = buildUnnamed34(); + o.licenses = buildUnnamed35(); o.name = 'foo'; o.physicalBlockSizeBytes = 'foo'; o.provisionedIops = 'foo'; o.provisionedThroughput = 'foo'; - o.resourceManagerTags = buildUnnamed35(); - o.resourcePolicy = buildUnnamed36(); + o.resourceManagerTags = buildUnnamed36(); + o.resourcePolicy = buildUnnamed37(); o.sizeGb = 'foo'; o.storagePool = 'foo'; o.type = 'foo'; @@ -1819,15 +1841,15 @@ void checkDiskRestoreProperties(api.DiskRestoreProperties o) { unittest.expect(o.description!, unittest.equals('foo')); checkCustomerEncryptionKey(o.diskEncryptionKey!); unittest.expect(o.enableConfidentialCompute!, unittest.isTrue); - checkUnnamed32(o.guestOsFeature!); - checkUnnamed33(o.labels!); - checkUnnamed34(o.licenses!); + checkUnnamed33(o.guestOsFeature!); + checkUnnamed34(o.labels!); + checkUnnamed35(o.licenses!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.physicalBlockSizeBytes!, unittest.equals('foo')); unittest.expect(o.provisionedIops!, unittest.equals('foo')); unittest.expect(o.provisionedThroughput!, unittest.equals('foo')); - checkUnnamed35(o.resourceManagerTags!); - checkUnnamed36(o.resourcePolicy!); + checkUnnamed36(o.resourceManagerTags!); + checkUnnamed37(o.resourcePolicy!); unittest.expect(o.sizeGb!, unittest.equals('foo')); unittest.expect(o.storagePool!, unittest.equals('foo')); unittest.expect(o.type!, unittest.equals('foo')); @@ -1980,12 +2002,12 @@ void checkFetchAccessTokenResponse(api.FetchAccessTokenResponse o) { buildCounterFetchAccessTokenResponse--; } -core.List buildUnnamed37() => [ +core.List buildUnnamed38() => [ buildBackupPlanAssociation(), buildBackupPlanAssociation(), ]; -void checkUnnamed37(core.List o) { +void checkUnnamed38(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackupPlanAssociation(o[0]); checkBackupPlanAssociation(o[1]); @@ -1997,7 +2019,7 @@ buildFetchBackupPlanAssociationsForResourceTypeResponse() { final o = api.FetchBackupPlanAssociationsForResourceTypeResponse(); buildCounterFetchBackupPlanAssociationsForResourceTypeResponse++; if (buildCounterFetchBackupPlanAssociationsForResourceTypeResponse < 3) { - o.backupPlanAssociations = buildUnnamed37(); + o.backupPlanAssociations = buildUnnamed38(); o.nextPageToken = 'foo'; } buildCounterFetchBackupPlanAssociationsForResourceTypeResponse--; @@ -2009,18 +2031,18 @@ void checkFetchBackupPlanAssociationsForResourceTypeResponse( ) { buildCounterFetchBackupPlanAssociationsForResourceTypeResponse++; if (buildCounterFetchBackupPlanAssociationsForResourceTypeResponse < 3) { - checkUnnamed37(o.backupPlanAssociations!); + checkUnnamed38(o.backupPlanAssociations!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterFetchBackupPlanAssociationsForResourceTypeResponse--; } -core.List buildUnnamed38() => [ +core.List buildUnnamed39() => [ buildDataSourceReference(), buildDataSourceReference(), ]; -void checkUnnamed38(core.List o) { +void checkUnnamed39(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDataSourceReference(o[0]); checkDataSourceReference(o[1]); @@ -2032,7 +2054,7 @@ buildFetchDataSourceReferencesForResourceTypeResponse() { final o = api.FetchDataSourceReferencesForResourceTypeResponse(); buildCounterFetchDataSourceReferencesForResourceTypeResponse++; if (buildCounterFetchDataSourceReferencesForResourceTypeResponse < 3) { - o.dataSourceReferences = buildUnnamed38(); + o.dataSourceReferences = buildUnnamed39(); o.nextPageToken = 'foo'; } buildCounterFetchDataSourceReferencesForResourceTypeResponse--; @@ -2044,7 +2066,7 @@ void checkFetchDataSourceReferencesForResourceTypeResponse( ) { buildCounterFetchDataSourceReferencesForResourceTypeResponse++; if (buildCounterFetchDataSourceReferencesForResourceTypeResponse < 3) { - checkUnnamed38(o.dataSourceReferences!); + checkUnnamed39(o.dataSourceReferences!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterFetchDataSourceReferencesForResourceTypeResponse--; @@ -2092,20 +2114,20 @@ void checkFetchMsComplianceMetadataResponse( buildCounterFetchMsComplianceMetadataResponse--; } -core.List buildUnnamed39() => [ +core.List buildUnnamed40() => [ buildBackupVault(), buildBackupVault(), ]; -void checkUnnamed39(core.List o) { +void checkUnnamed40(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackupVault(o[0]); checkBackupVault(o[1]); } -core.List buildUnnamed40() => ['foo', 'foo']; +core.List buildUnnamed41() => ['foo', 'foo']; -void checkUnnamed40(core.List o) { +void checkUnnamed41(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2116,9 +2138,9 @@ api.FetchUsableBackupVaultsResponse buildFetchUsableBackupVaultsResponse() { final o = api.FetchUsableBackupVaultsResponse(); buildCounterFetchUsableBackupVaultsResponse++; if (buildCounterFetchUsableBackupVaultsResponse < 3) { - o.backupVaults = buildUnnamed39(); + o.backupVaults = buildUnnamed40(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed40(); + o.unreachable = buildUnnamed41(); } buildCounterFetchUsableBackupVaultsResponse--; return o; @@ -2129,9 +2151,9 @@ void checkFetchUsableBackupVaultsResponse( ) { buildCounterFetchUsableBackupVaultsResponse++; if (buildCounterFetchUsableBackupVaultsResponse < 3) { - checkUnnamed39(o.backupVaults!); + checkUnnamed40(o.backupVaults!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed40(o.unreachable!); + checkUnnamed41(o.unreachable!); } buildCounterFetchUsableBackupVaultsResponse--; } @@ -2192,9 +2214,9 @@ void checkGCPBackupPlanInfo(api.GCPBackupPlanInfo o) { buildCounterGCPBackupPlanInfo--; } -core.List buildUnnamed41() => ['foo', 'foo']; +core.List buildUnnamed42() => ['foo', 'foo']; -void checkUnnamed41(core.List o) { +void checkUnnamed42(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2210,7 +2232,7 @@ api.GcpBackupConfig buildGcpBackupConfig() { o.backupPlanDescription = 'foo'; o.backupPlanRevisionId = 'foo'; o.backupPlanRevisionName = 'foo'; - o.backupPlanRules = buildUnnamed41(); + o.backupPlanRules = buildUnnamed42(); } buildCounterGcpBackupConfig--; return o; @@ -2224,7 +2246,7 @@ void checkGcpBackupConfig(api.GcpBackupConfig o) { unittest.expect(o.backupPlanDescription!, unittest.equals('foo')); unittest.expect(o.backupPlanRevisionId!, unittest.equals('foo')); unittest.expect(o.backupPlanRevisionName!, unittest.equals('foo')); - checkUnnamed41(o.backupPlanRules!); + checkUnnamed42(o.backupPlanRules!); } buildCounterGcpBackupConfig--; } @@ -2248,9 +2270,9 @@ void checkGuestOsFeature(api.GuestOsFeature o) { buildCounterGuestOsFeature--; } -core.List buildUnnamed42() => ['foo', 'foo']; +core.List buildUnnamed43() => ['foo', 'foo']; -void checkUnnamed42(core.List o) { +void checkUnnamed43(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2262,7 +2284,7 @@ api.InitializeParams buildInitializeParams() { buildCounterInitializeParams++; if (buildCounterInitializeParams < 3) { o.diskName = 'foo'; - o.replicaZones = buildUnnamed42(); + o.replicaZones = buildUnnamed43(); } buildCounterInitializeParams--; return o; @@ -2272,7 +2294,7 @@ void checkInitializeParams(api.InitializeParams o) { buildCounterInitializeParams++; if (buildCounterInitializeParams < 3) { unittest.expect(o.diskName!, unittest.equals('foo')); - checkUnnamed42(o.replicaZones!); + checkUnnamed43(o.replicaZones!); } buildCounterInitializeParams--; } @@ -2347,9 +2369,9 @@ void checkInitiateBackupResponse(api.InitiateBackupResponse o) { buildCounterInitiateBackupResponse--; } -core.Map buildUnnamed43() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed44() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed43(core.Map o) { +void checkUnnamed44(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2360,7 +2382,7 @@ api.InstanceParams buildInstanceParams() { final o = api.InstanceParams(); buildCounterInstanceParams++; if (buildCounterInstanceParams < 3) { - o.resourceManagerTags = buildUnnamed43(); + o.resourceManagerTags = buildUnnamed44(); } buildCounterInstanceParams--; return o; @@ -2369,25 +2391,25 @@ api.InstanceParams buildInstanceParams() { void checkInstanceParams(api.InstanceParams o) { buildCounterInstanceParams++; if (buildCounterInstanceParams < 3) { - checkUnnamed43(o.resourceManagerTags!); + checkUnnamed44(o.resourceManagerTags!); } buildCounterInstanceParams--; } -core.List buildUnnamed44() => [ +core.List buildUnnamed45() => [ buildBackupPlanAssociation(), buildBackupPlanAssociation(), ]; -void checkUnnamed44(core.List o) { +void checkUnnamed45(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackupPlanAssociation(o[0]); checkBackupPlanAssociation(o[1]); } -core.List buildUnnamed45() => ['foo', 'foo']; +core.List buildUnnamed46() => ['foo', 'foo']; -void checkUnnamed45(core.List o) { +void checkUnnamed46(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2399,9 +2421,9 @@ buildListBackupPlanAssociationsResponse() { final o = api.ListBackupPlanAssociationsResponse(); buildCounterListBackupPlanAssociationsResponse++; if (buildCounterListBackupPlanAssociationsResponse < 3) { - o.backupPlanAssociations = buildUnnamed44(); + o.backupPlanAssociations = buildUnnamed45(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed45(); + o.unreachable = buildUnnamed46(); } buildCounterListBackupPlanAssociationsResponse--; return o; @@ -2412,27 +2434,27 @@ void checkListBackupPlanAssociationsResponse( ) { buildCounterListBackupPlanAssociationsResponse++; if (buildCounterListBackupPlanAssociationsResponse < 3) { - checkUnnamed44(o.backupPlanAssociations!); + checkUnnamed45(o.backupPlanAssociations!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed45(o.unreachable!); + checkUnnamed46(o.unreachable!); } buildCounterListBackupPlanAssociationsResponse--; } -core.List buildUnnamed46() => [ +core.List buildUnnamed47() => [ buildBackupPlanRevision(), buildBackupPlanRevision(), ]; -void checkUnnamed46(core.List o) { +void checkUnnamed47(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackupPlanRevision(o[0]); checkBackupPlanRevision(o[1]); } -core.List buildUnnamed47() => ['foo', 'foo']; +core.List buildUnnamed48() => ['foo', 'foo']; -void checkUnnamed47(core.List o) { +void checkUnnamed48(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2443,9 +2465,9 @@ api.ListBackupPlanRevisionsResponse buildListBackupPlanRevisionsResponse() { final o = api.ListBackupPlanRevisionsResponse(); buildCounterListBackupPlanRevisionsResponse++; if (buildCounterListBackupPlanRevisionsResponse < 3) { - o.backupPlanRevisions = buildUnnamed46(); + o.backupPlanRevisions = buildUnnamed47(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed47(); + o.unreachable = buildUnnamed48(); } buildCounterListBackupPlanRevisionsResponse--; return o; @@ -2456,27 +2478,27 @@ void checkListBackupPlanRevisionsResponse( ) { buildCounterListBackupPlanRevisionsResponse++; if (buildCounterListBackupPlanRevisionsResponse < 3) { - checkUnnamed46(o.backupPlanRevisions!); + checkUnnamed47(o.backupPlanRevisions!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed47(o.unreachable!); + checkUnnamed48(o.unreachable!); } buildCounterListBackupPlanRevisionsResponse--; } -core.List buildUnnamed48() => [ +core.List buildUnnamed49() => [ buildBackupPlan(), buildBackupPlan(), ]; -void checkUnnamed48(core.List o) { +void checkUnnamed49(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackupPlan(o[0]); checkBackupPlan(o[1]); } -core.List buildUnnamed49() => ['foo', 'foo']; +core.List buildUnnamed50() => ['foo', 'foo']; -void checkUnnamed49(core.List o) { +void checkUnnamed50(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2487,9 +2509,9 @@ api.ListBackupPlansResponse buildListBackupPlansResponse() { final o = api.ListBackupPlansResponse(); buildCounterListBackupPlansResponse++; if (buildCounterListBackupPlansResponse < 3) { - o.backupPlans = buildUnnamed48(); + o.backupPlans = buildUnnamed49(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed49(); + o.unreachable = buildUnnamed50(); } buildCounterListBackupPlansResponse--; return o; @@ -2498,27 +2520,27 @@ api.ListBackupPlansResponse buildListBackupPlansResponse() { void checkListBackupPlansResponse(api.ListBackupPlansResponse o) { buildCounterListBackupPlansResponse++; if (buildCounterListBackupPlansResponse < 3) { - checkUnnamed48(o.backupPlans!); + checkUnnamed49(o.backupPlans!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed49(o.unreachable!); + checkUnnamed50(o.unreachable!); } buildCounterListBackupPlansResponse--; } -core.List buildUnnamed50() => [ +core.List buildUnnamed51() => [ buildBackupVault(), buildBackupVault(), ]; -void checkUnnamed50(core.List o) { +void checkUnnamed51(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackupVault(o[0]); checkBackupVault(o[1]); } -core.List buildUnnamed51() => ['foo', 'foo']; +core.List buildUnnamed52() => ['foo', 'foo']; -void checkUnnamed51(core.List o) { +void checkUnnamed52(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2529,9 +2551,9 @@ api.ListBackupVaultsResponse buildListBackupVaultsResponse() { final o = api.ListBackupVaultsResponse(); buildCounterListBackupVaultsResponse++; if (buildCounterListBackupVaultsResponse < 3) { - o.backupVaults = buildUnnamed50(); + o.backupVaults = buildUnnamed51(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed51(); + o.unreachable = buildUnnamed52(); } buildCounterListBackupVaultsResponse--; return o; @@ -2540,24 +2562,24 @@ api.ListBackupVaultsResponse buildListBackupVaultsResponse() { void checkListBackupVaultsResponse(api.ListBackupVaultsResponse o) { buildCounterListBackupVaultsResponse++; if (buildCounterListBackupVaultsResponse < 3) { - checkUnnamed50(o.backupVaults!); + checkUnnamed51(o.backupVaults!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed51(o.unreachable!); + checkUnnamed52(o.unreachable!); } buildCounterListBackupVaultsResponse--; } -core.List buildUnnamed52() => [buildBackup(), buildBackup()]; +core.List buildUnnamed53() => [buildBackup(), buildBackup()]; -void checkUnnamed52(core.List o) { +void checkUnnamed53(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackup(o[0]); checkBackup(o[1]); } -core.List buildUnnamed53() => ['foo', 'foo']; +core.List buildUnnamed54() => ['foo', 'foo']; -void checkUnnamed53(core.List o) { +void checkUnnamed54(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2568,9 +2590,9 @@ api.ListBackupsResponse buildListBackupsResponse() { final o = api.ListBackupsResponse(); buildCounterListBackupsResponse++; if (buildCounterListBackupsResponse < 3) { - o.backups = buildUnnamed52(); + o.backups = buildUnnamed53(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed53(); + o.unreachable = buildUnnamed54(); } buildCounterListBackupsResponse--; return o; @@ -2579,27 +2601,27 @@ api.ListBackupsResponse buildListBackupsResponse() { void checkListBackupsResponse(api.ListBackupsResponse o) { buildCounterListBackupsResponse++; if (buildCounterListBackupsResponse < 3) { - checkUnnamed52(o.backups!); + checkUnnamed53(o.backups!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed53(o.unreachable!); + checkUnnamed54(o.unreachable!); } buildCounterListBackupsResponse--; } -core.List buildUnnamed54() => [ +core.List buildUnnamed55() => [ buildDataSource(), buildDataSource(), ]; -void checkUnnamed54(core.List o) { +void checkUnnamed55(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDataSource(o[0]); checkDataSource(o[1]); } -core.List buildUnnamed55() => ['foo', 'foo']; +core.List buildUnnamed56() => ['foo', 'foo']; -void checkUnnamed55(core.List o) { +void checkUnnamed56(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2610,9 +2632,9 @@ api.ListDataSourcesResponse buildListDataSourcesResponse() { final o = api.ListDataSourcesResponse(); buildCounterListDataSourcesResponse++; if (buildCounterListDataSourcesResponse < 3) { - o.dataSources = buildUnnamed54(); + o.dataSources = buildUnnamed55(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed55(); + o.unreachable = buildUnnamed56(); } buildCounterListDataSourcesResponse--; return o; @@ -2621,16 +2643,16 @@ api.ListDataSourcesResponse buildListDataSourcesResponse() { void checkListDataSourcesResponse(api.ListDataSourcesResponse o) { buildCounterListDataSourcesResponse++; if (buildCounterListDataSourcesResponse < 3) { - checkUnnamed54(o.dataSources!); + checkUnnamed55(o.dataSources!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed55(o.unreachable!); + checkUnnamed56(o.unreachable!); } buildCounterListDataSourcesResponse--; } -core.List buildUnnamed56() => [buildLocation(), buildLocation()]; +core.List buildUnnamed57() => [buildLocation(), buildLocation()]; -void checkUnnamed56(core.List o) { +void checkUnnamed57(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -2641,7 +2663,7 @@ api.ListLocationsResponse buildListLocationsResponse() { final o = api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed56(); + o.locations = buildUnnamed57(); o.nextPageToken = 'foo'; } buildCounterListLocationsResponse--; @@ -2651,26 +2673,26 @@ api.ListLocationsResponse buildListLocationsResponse() { void checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed56(o.locations!); + checkUnnamed57(o.locations!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -core.List buildUnnamed57() => [ +core.List buildUnnamed58() => [ buildManagementServer(), buildManagementServer(), ]; -void checkUnnamed57(core.List o) { +void checkUnnamed58(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkManagementServer(o[0]); checkManagementServer(o[1]); } -core.List buildUnnamed58() => ['foo', 'foo']; +core.List buildUnnamed59() => ['foo', 'foo']; -void checkUnnamed58(core.List o) { +void checkUnnamed59(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2681,9 +2703,9 @@ api.ListManagementServersResponse buildListManagementServersResponse() { final o = api.ListManagementServersResponse(); buildCounterListManagementServersResponse++; if (buildCounterListManagementServersResponse < 3) { - o.managementServers = buildUnnamed57(); + o.managementServers = buildUnnamed58(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed58(); + o.unreachable = buildUnnamed59(); } buildCounterListManagementServersResponse--; return o; @@ -2692,19 +2714,19 @@ api.ListManagementServersResponse buildListManagementServersResponse() { void checkListManagementServersResponse(api.ListManagementServersResponse o) { buildCounterListManagementServersResponse++; if (buildCounterListManagementServersResponse < 3) { - checkUnnamed57(o.managementServers!); + checkUnnamed58(o.managementServers!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed58(o.unreachable!); + checkUnnamed59(o.unreachable!); } buildCounterListManagementServersResponse--; } -core.List buildUnnamed59() => [ +core.List buildUnnamed60() => [ buildOperation(), buildOperation(), ]; -void checkUnnamed59(core.List o) { +void checkUnnamed60(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -2716,7 +2738,7 @@ api.ListOperationsResponse buildListOperationsResponse() { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = 'foo'; - o.operations = buildUnnamed59(); + o.operations = buildUnnamed60(); } buildCounterListOperationsResponse--; return o; @@ -2726,17 +2748,17 @@ void checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed59(o.operations!); + checkUnnamed60(o.operations!); } buildCounterListOperationsResponse--; } -core.List buildUnnamed60() => [ +core.List buildUnnamed61() => [ buildResourceBackupConfig(), buildResourceBackupConfig(), ]; -void checkUnnamed60(core.List o) { +void checkUnnamed61(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkResourceBackupConfig(o[0]); checkResourceBackupConfig(o[1]); @@ -2748,7 +2770,7 @@ api.ListResourceBackupConfigsResponse buildListResourceBackupConfigsResponse() { buildCounterListResourceBackupConfigsResponse++; if (buildCounterListResourceBackupConfigsResponse < 3) { o.nextPageToken = 'foo'; - o.resourceBackupConfigs = buildUnnamed60(); + o.resourceBackupConfigs = buildUnnamed61(); } buildCounterListResourceBackupConfigsResponse--; return o; @@ -2760,20 +2782,20 @@ void checkListResourceBackupConfigsResponse( buildCounterListResourceBackupConfigsResponse++; if (buildCounterListResourceBackupConfigsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed60(o.resourceBackupConfigs!); + checkUnnamed61(o.resourceBackupConfigs!); } buildCounterListResourceBackupConfigsResponse--; } -core.Map buildUnnamed61() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed62() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed61(core.Map o) { +void checkUnnamed62(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed62() => { +core.Map buildUnnamed63() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2786,7 +2808,7 @@ core.Map buildUnnamed62() => { }, }; -void checkUnnamed62(core.Map o) { +void checkUnnamed63(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o['x']!) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -2806,9 +2828,9 @@ api.Location buildLocation() { buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = 'foo'; - o.labels = buildUnnamed61(); + o.labels = buildUnnamed62(); o.locationId = 'foo'; - o.metadata = buildUnnamed62(); + o.metadata = buildUnnamed63(); o.name = 'foo'; } buildCounterLocation--; @@ -2819,36 +2841,36 @@ void checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed61(o.labels!); + checkUnnamed62(o.labels!); unittest.expect(o.locationId!, unittest.equals('foo')); - checkUnnamed62(o.metadata!); + checkUnnamed63(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); } buildCounterLocation--; } -core.List buildUnnamed63() => ['foo', 'foo']; +core.List buildUnnamed64() => ['foo', 'foo']; -void checkUnnamed63(core.List o) { +void checkUnnamed64(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed64() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed65() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed64(core.Map o) { +void checkUnnamed65(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed65() => [ +core.List buildUnnamed66() => [ buildNetworkConfig(), buildNetworkConfig(), ]; -void checkUnnamed65(core.List o) { +void checkUnnamed66(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkConfig(o[0]); checkNetworkConfig(o[1]); @@ -2859,14 +2881,14 @@ api.ManagementServer buildManagementServer() { final o = api.ManagementServer(); buildCounterManagementServer++; if (buildCounterManagementServer < 3) { - o.baProxyUri = buildUnnamed63(); + o.baProxyUri = buildUnnamed64(); o.createTime = 'foo'; o.description = 'foo'; o.etag = 'foo'; - o.labels = buildUnnamed64(); + o.labels = buildUnnamed65(); o.managementUri = buildManagementURI(); o.name = 'foo'; - o.networks = buildUnnamed65(); + o.networks = buildUnnamed66(); o.oauth2ClientId = 'foo'; o.satisfiesPzi = true; o.satisfiesPzs = true; @@ -2885,14 +2907,14 @@ api.ManagementServer buildManagementServer() { void checkManagementServer(api.ManagementServer o) { buildCounterManagementServer++; if (buildCounterManagementServer < 3) { - checkUnnamed63(o.baProxyUri!); + checkUnnamed64(o.baProxyUri!); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed64(o.labels!); + checkUnnamed65(o.labels!); checkManagementURI(o.managementUri!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed65(o.networks!); + checkUnnamed66(o.networks!); unittest.expect(o.oauth2ClientId!, unittest.equals('foo')); unittest.expect(o.satisfiesPzi!, unittest.isTrue); unittest.expect(o.satisfiesPzs!, unittest.isTrue); @@ -2930,9 +2952,9 @@ void checkManagementURI(api.ManagementURI o) { buildCounterManagementURI--; } -core.List buildUnnamed66() => [buildEntry(), buildEntry()]; +core.List buildUnnamed67() => [buildEntry(), buildEntry()]; -void checkUnnamed66(core.List o) { +void checkUnnamed67(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkEntry(o[0]); checkEntry(o[1]); @@ -2943,7 +2965,7 @@ api.Metadata buildMetadata() { final o = api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.items = buildUnnamed66(); + o.items = buildUnnamed67(); } buildCounterMetadata--; return o; @@ -2952,7 +2974,7 @@ api.Metadata buildMetadata() { void checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed66(o.items!); + checkUnnamed67(o.items!); } buildCounterMetadata--; } @@ -2978,34 +3000,34 @@ void checkNetworkConfig(api.NetworkConfig o) { buildCounterNetworkConfig--; } -core.List buildUnnamed67() => [ +core.List buildUnnamed68() => [ buildAccessConfig(), buildAccessConfig(), ]; -void checkUnnamed67(core.List o) { +void checkUnnamed68(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAccessConfig(o[0]); checkAccessConfig(o[1]); } -core.List buildUnnamed68() => [ +core.List buildUnnamed69() => [ buildAliasIpRange(), buildAliasIpRange(), ]; -void checkUnnamed68(core.List o) { +void checkUnnamed69(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAliasIpRange(o[0]); checkAliasIpRange(o[1]); } -core.List buildUnnamed69() => [ +core.List buildUnnamed70() => [ buildAccessConfig(), buildAccessConfig(), ]; -void checkUnnamed69(core.List o) { +void checkUnnamed70(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAccessConfig(o[0]); checkAccessConfig(o[1]); @@ -3016,10 +3038,10 @@ api.NetworkInterface buildNetworkInterface() { final o = api.NetworkInterface(); buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - o.accessConfigs = buildUnnamed67(); - o.aliasIpRanges = buildUnnamed68(); + o.accessConfigs = buildUnnamed68(); + o.aliasIpRanges = buildUnnamed69(); o.internalIpv6PrefixLength = 42; - o.ipv6AccessConfigs = buildUnnamed69(); + o.ipv6AccessConfigs = buildUnnamed70(); o.ipv6AccessType = 'foo'; o.ipv6Address = 'foo'; o.name = 'foo'; @@ -3038,10 +3060,10 @@ api.NetworkInterface buildNetworkInterface() { void checkNetworkInterface(api.NetworkInterface o) { buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - checkUnnamed67(o.accessConfigs!); - checkUnnamed68(o.aliasIpRanges!); + checkUnnamed68(o.accessConfigs!); + checkUnnamed69(o.aliasIpRanges!); unittest.expect(o.internalIpv6PrefixLength!, unittest.equals(42)); - checkUnnamed69(o.ipv6AccessConfigs!); + checkUnnamed70(o.ipv6AccessConfigs!); unittest.expect(o.ipv6AccessType!, unittest.equals('foo')); unittest.expect(o.ipv6Address!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); @@ -3075,9 +3097,9 @@ void checkNetworkPerformanceConfig(api.NetworkPerformanceConfig o) { buildCounterNetworkPerformanceConfig--; } -core.List buildUnnamed70() => ['foo', 'foo']; +core.List buildUnnamed71() => ['foo', 'foo']; -void checkUnnamed70(core.List o) { +void checkUnnamed71(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3090,7 +3112,7 @@ api.NodeAffinity buildNodeAffinity() { if (buildCounterNodeAffinity < 3) { o.key = 'foo'; o.operator = 'foo'; - o.values = buildUnnamed70(); + o.values = buildUnnamed71(); } buildCounterNodeAffinity--; return o; @@ -3101,12 +3123,12 @@ void checkNodeAffinity(api.NodeAffinity o) { if (buildCounterNodeAffinity < 3) { unittest.expect(o.key!, unittest.equals('foo')); unittest.expect(o.operator!, unittest.equals('foo')); - checkUnnamed70(o.values!); + checkUnnamed71(o.values!); } buildCounterNodeAffinity--; } -core.Map buildUnnamed71() => { +core.Map buildUnnamed72() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -3119,7 +3141,7 @@ core.Map buildUnnamed71() => { }, }; -void checkUnnamed71(core.Map o) { +void checkUnnamed72(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o['x']!) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -3133,7 +3155,7 @@ void checkUnnamed71(core.Map o) { unittest.expect(casted4['string'], unittest.equals('foo')); } -core.Map buildUnnamed72() => { +core.Map buildUnnamed73() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -3146,7 +3168,7 @@ core.Map buildUnnamed72() => { }, }; -void checkUnnamed72(core.Map o) { +void checkUnnamed73(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o['x']!) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -3167,9 +3189,9 @@ api.Operation buildOperation() { if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed71(); + o.metadata = buildUnnamed72(); o.name = 'foo'; - o.response = buildUnnamed72(); + o.response = buildUnnamed73(); } buildCounterOperation--; return o; @@ -3180,9 +3202,9 @@ void checkOperation(api.Operation o) { if (buildCounterOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkStatus(o.error!); - checkUnnamed71(o.metadata!); + checkUnnamed72(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed72(o.response!); + checkUnnamed73(o.response!); } buildCounterOperation--; } @@ -3206,20 +3228,20 @@ void checkPitrSettings(api.PitrSettings o) { buildCounterPitrSettings--; } -core.List buildUnnamed73() => [ +core.List buildUnnamed74() => [ buildAuditConfig(), buildAuditConfig(), ]; -void checkUnnamed73(core.List o) { +void checkUnnamed74(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -core.List buildUnnamed74() => [buildBinding(), buildBinding()]; +core.List buildUnnamed75() => [buildBinding(), buildBinding()]; -void checkUnnamed74(core.List o) { +void checkUnnamed75(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -3230,8 +3252,8 @@ api.Policy buildPolicy() { final o = api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed73(); - o.bindings = buildUnnamed74(); + o.auditConfigs = buildUnnamed74(); + o.bindings = buildUnnamed75(); o.etag = 'foo'; o.version = 42; } @@ -3242,17 +3264,17 @@ api.Policy buildPolicy() { void checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed73(o.auditConfigs!); - checkUnnamed74(o.bindings!); + checkUnnamed74(o.auditConfigs!); + checkUnnamed75(o.bindings!); unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.version!, unittest.equals(42)); } buildCounterPolicy--; } -core.List buildUnnamed75() => ['foo', 'foo']; +core.List buildUnnamed76() => ['foo', 'foo']; -void checkUnnamed75(core.List o) { +void checkUnnamed76(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3265,7 +3287,7 @@ api.RegionDiskTargetEnvironment buildRegionDiskTargetEnvironment() { if (buildCounterRegionDiskTargetEnvironment < 3) { o.project = 'foo'; o.region = 'foo'; - o.replicaZones = buildUnnamed75(); + o.replicaZones = buildUnnamed76(); } buildCounterRegionDiskTargetEnvironment--; return o; @@ -3276,7 +3298,7 @@ void checkRegionDiskTargetEnvironment(api.RegionDiskTargetEnvironment o) { if (buildCounterRegionDiskTargetEnvironment < 3) { unittest.expect(o.project!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); - checkUnnamed75(o.replicaZones!); + checkUnnamed76(o.replicaZones!); } buildCounterRegionDiskTargetEnvironment--; } @@ -3300,20 +3322,20 @@ void checkRemoveDataSourceRequest(api.RemoveDataSourceRequest o) { buildCounterRemoveDataSourceRequest--; } -core.List buildUnnamed76() => [ +core.List buildUnnamed77() => [ buildBackupConfigDetails(), buildBackupConfigDetails(), ]; -void checkUnnamed76(core.List o) { +void checkUnnamed77(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackupConfigDetails(o[0]); checkBackupConfigDetails(o[1]); } -core.Map buildUnnamed77() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed78() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed77(core.Map o) { +void checkUnnamed78(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -3324,12 +3346,12 @@ api.ResourceBackupConfig buildResourceBackupConfig() { final o = api.ResourceBackupConfig(); buildCounterResourceBackupConfig++; if (buildCounterResourceBackupConfig < 3) { - o.backupConfigsDetails = buildUnnamed76(); + o.backupConfigsDetails = buildUnnamed77(); o.backupConfigured = true; o.name = 'foo'; o.targetResource = 'foo'; o.targetResourceDisplayName = 'foo'; - o.targetResourceLabels = buildUnnamed77(); + o.targetResourceLabels = buildUnnamed78(); o.targetResourceType = 'foo'; o.uid = 'foo'; o.vaulted = true; @@ -3341,12 +3363,12 @@ api.ResourceBackupConfig buildResourceBackupConfig() { void checkResourceBackupConfig(api.ResourceBackupConfig o) { buildCounterResourceBackupConfig++; if (buildCounterResourceBackupConfig < 3) { - checkUnnamed76(o.backupConfigsDetails!); + checkUnnamed77(o.backupConfigsDetails!); unittest.expect(o.backupConfigured!, unittest.isTrue); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.targetResource!, unittest.equals('foo')); unittest.expect(o.targetResourceDisplayName!, unittest.equals('foo')); - checkUnnamed77(o.targetResourceLabels!); + checkUnnamed78(o.targetResourceLabels!); unittest.expect(o.targetResourceType!, unittest.equals('foo')); unittest.expect(o.uid!, unittest.equals('foo')); unittest.expect(o.vaulted!, unittest.isTrue); @@ -3413,12 +3435,12 @@ void checkRuleConfigInfo(api.RuleConfigInfo o) { buildCounterRuleConfigInfo--; } -core.List buildUnnamed78() => [ +core.List buildUnnamed79() => [ buildNodeAffinity(), buildNodeAffinity(), ]; -void checkUnnamed78(core.List o) { +void checkUnnamed79(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeAffinity(o[0]); checkNodeAffinity(o[1]); @@ -3433,7 +3455,7 @@ api.Scheduling buildScheduling() { o.instanceTerminationAction = 'foo'; o.localSsdRecoveryTimeout = buildSchedulingDuration(); o.minNodeCpus = 42; - o.nodeAffinities = buildUnnamed78(); + o.nodeAffinities = buildUnnamed79(); o.onHostMaintenance = 'foo'; o.preemptible = true; o.provisioningModel = 'foo'; @@ -3449,7 +3471,7 @@ void checkScheduling(api.Scheduling o) { unittest.expect(o.instanceTerminationAction!, unittest.equals('foo')); checkSchedulingDuration(o.localSsdRecoveryTimeout!); unittest.expect(o.minNodeCpus!, unittest.equals(42)); - checkUnnamed78(o.nodeAffinities!); + checkUnnamed79(o.nodeAffinities!); unittest.expect(o.onHostMaintenance!, unittest.equals('foo')); unittest.expect(o.preemptible!, unittest.isTrue); unittest.expect(o.provisioningModel!, unittest.equals('foo')); @@ -3478,9 +3500,9 @@ void checkSchedulingDuration(api.SchedulingDuration o) { buildCounterSchedulingDuration--; } -core.List buildUnnamed79() => ['foo', 'foo']; +core.List buildUnnamed80() => ['foo', 'foo']; -void checkUnnamed79(core.List o) { +void checkUnnamed80(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3492,7 +3514,7 @@ api.ServiceAccount buildServiceAccount() { buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { o.email = 'foo'; - o.scopes = buildUnnamed79(); + o.scopes = buildUnnamed80(); } buildCounterServiceAccount--; return o; @@ -3502,7 +3524,7 @@ void checkServiceAccount(api.ServiceAccount o) { buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { unittest.expect(o.email!, unittest.equals('foo')); - checkUnnamed79(o.scopes!); + checkUnnamed80(o.scopes!); } buildCounterServiceAccount--; } @@ -3570,25 +3592,25 @@ void checkSetInternalStatusRequest(api.SetInternalStatusRequest o) { buildCounterSetInternalStatusRequest--; } -core.List buildUnnamed80() => [42, 42]; +core.List buildUnnamed81() => [42, 42]; -void checkUnnamed80(core.List o) { +void checkUnnamed81(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -core.List buildUnnamed81() => ['foo', 'foo']; +core.List buildUnnamed82() => ['foo', 'foo']; -void checkUnnamed81(core.List o) { +void checkUnnamed82(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed82() => ['foo', 'foo']; +core.List buildUnnamed83() => ['foo', 'foo']; -void checkUnnamed82(core.List o) { +void checkUnnamed83(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3600,10 +3622,10 @@ api.StandardSchedule buildStandardSchedule() { buildCounterStandardSchedule++; if (buildCounterStandardSchedule < 3) { o.backupWindow = buildBackupWindow(); - o.daysOfMonth = buildUnnamed80(); - o.daysOfWeek = buildUnnamed81(); + o.daysOfMonth = buildUnnamed81(); + o.daysOfWeek = buildUnnamed82(); o.hourlyFrequency = 42; - o.months = buildUnnamed82(); + o.months = buildUnnamed83(); o.recurrenceType = 'foo'; o.timeZone = 'foo'; o.weekDayOfMonth = buildWeekDayOfMonth(); @@ -3616,10 +3638,10 @@ void checkStandardSchedule(api.StandardSchedule o) { buildCounterStandardSchedule++; if (buildCounterStandardSchedule < 3) { checkBackupWindow(o.backupWindow!); - checkUnnamed80(o.daysOfMonth!); - checkUnnamed81(o.daysOfWeek!); + checkUnnamed81(o.daysOfMonth!); + checkUnnamed82(o.daysOfWeek!); unittest.expect(o.hourlyFrequency!, unittest.equals(42)); - checkUnnamed82(o.months!); + checkUnnamed83(o.months!); unittest.expect(o.recurrenceType!, unittest.equals('foo')); unittest.expect(o.timeZone!, unittest.equals('foo')); checkWeekDayOfMonth(o.weekDayOfMonth!); @@ -3627,7 +3649,7 @@ void checkStandardSchedule(api.StandardSchedule o) { buildCounterStandardSchedule--; } -core.Map buildUnnamed83() => { +core.Map buildUnnamed84() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -3640,7 +3662,7 @@ core.Map buildUnnamed83() => { }, }; -void checkUnnamed83(core.Map o) { +void checkUnnamed84(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o['x']!) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -3654,15 +3676,15 @@ void checkUnnamed83(core.Map o) { unittest.expect(casted8['string'], unittest.equals('foo')); } -core.List> buildUnnamed84() => [ - buildUnnamed83(), - buildUnnamed83(), +core.List> buildUnnamed85() => [ + buildUnnamed84(), + buildUnnamed84(), ]; -void checkUnnamed84(core.List> o) { +void checkUnnamed85(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed83(o[0]); - checkUnnamed83(o[1]); + checkUnnamed84(o[0]); + checkUnnamed84(o[1]); } core.int buildCounterStatus = 0; @@ -3671,7 +3693,7 @@ api.Status buildStatus() { buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed84(); + o.details = buildUnnamed85(); o.message = 'foo'; } buildCounterStatus--; @@ -3682,15 +3704,30 @@ void checkStatus(api.Status o) { buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed84(o.details!); + checkUnnamed85(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStatus--; } -core.List buildUnnamed85() => ['foo', 'foo']; +core.int buildCounterSubscribeTrialRequest = 0; +api.SubscribeTrialRequest buildSubscribeTrialRequest() { + final o = api.SubscribeTrialRequest(); + buildCounterSubscribeTrialRequest++; + if (buildCounterSubscribeTrialRequest < 3) {} + buildCounterSubscribeTrialRequest--; + return o; +} + +void checkSubscribeTrialRequest(api.SubscribeTrialRequest o) { + buildCounterSubscribeTrialRequest++; + if (buildCounterSubscribeTrialRequest < 3) {} + buildCounterSubscribeTrialRequest--; +} + +core.List buildUnnamed86() => ['foo', 'foo']; -void checkUnnamed85(core.List o) { +void checkUnnamed86(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3701,7 +3738,7 @@ api.Tags buildTags() { final o = api.Tags(); buildCounterTags++; if (buildCounterTags < 3) { - o.items = buildUnnamed85(); + o.items = buildUnnamed86(); } buildCounterTags--; return o; @@ -3710,14 +3747,14 @@ api.Tags buildTags() { void checkTags(api.Tags o) { buildCounterTags++; if (buildCounterTags < 3) { - checkUnnamed85(o.items!); + checkUnnamed86(o.items!); } buildCounterTags--; } -core.List buildUnnamed86() => ['foo', 'foo']; +core.List buildUnnamed87() => ['foo', 'foo']; -void checkUnnamed86(core.List o) { +void checkUnnamed87(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3728,7 +3765,7 @@ api.TestIamPermissionsRequest buildTestIamPermissionsRequest() { final o = api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed86(); + o.permissions = buildUnnamed87(); } buildCounterTestIamPermissionsRequest--; return o; @@ -3737,14 +3774,14 @@ api.TestIamPermissionsRequest buildTestIamPermissionsRequest() { void checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed86(o.permissions!); + checkUnnamed87(o.permissions!); } buildCounterTestIamPermissionsRequest--; } -core.List buildUnnamed87() => ['foo', 'foo']; +core.List buildUnnamed88() => ['foo', 'foo']; -void checkUnnamed87(core.List o) { +void checkUnnamed88(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3755,7 +3792,7 @@ api.TestIamPermissionsResponse buildTestIamPermissionsResponse() { final o = api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed87(); + o.permissions = buildUnnamed88(); } buildCounterTestIamPermissionsResponse--; return o; @@ -3764,11 +3801,38 @@ api.TestIamPermissionsResponse buildTestIamPermissionsResponse() { void checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed87(o.permissions!); + checkUnnamed88(o.permissions!); } buildCounterTestIamPermissionsResponse--; } +core.int buildCounterTrial = 0; +api.Trial buildTrial() { + final o = api.Trial(); + buildCounterTrial++; + if (buildCounterTrial < 3) { + o.endReason = 'foo'; + o.endTime = 'foo'; + o.name = 'foo'; + o.startTime = 'foo'; + o.state = 'foo'; + } + buildCounterTrial--; + return o; +} + +void checkTrial(api.Trial o) { + buildCounterTrial++; + if (buildCounterTrial < 3) { + unittest.expect(o.endReason!, unittest.equals('foo')); + unittest.expect(o.endTime!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.startTime!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + } + buildCounterTrial--; +} + core.int buildCounterTriggerBackupRequest = 0; api.TriggerBackupRequest buildTriggerBackupRequest() { final o = api.TriggerBackupRequest(); @@ -3859,9 +3923,9 @@ void checkWorkforceIdentityBasedOAuth2ClientID( buildCounterWorkforceIdentityBasedOAuth2ClientID--; } -core.List buildUnnamed88() => ['foo', 'foo']; +core.List buildUnnamed89() => ['foo', 'foo']; -void checkUnnamed88(core.List o) { +void checkUnnamed89(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5015,6 +5079,17 @@ void main() { }); }); + unittest.group('obj-schema-SubscribeTrialRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildSubscribeTrialRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.SubscribeTrialRequest.fromJson( + oJson as core.Map, + ); + checkSubscribeTrialRequest(od); + }); + }); + unittest.group('obj-schema-Tags', () { unittest.test('to-json--from-json', () async { final o = buildTags(); @@ -5048,6 +5123,17 @@ void main() { }); }); + unittest.group('obj-schema-Trial', () { + unittest.test('to-json--from-json', () async { + final o = buildTrial(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Trial.fromJson( + oJson as core.Map, + ); + checkTrial(od); + }); + }); + unittest.group('obj-schema-TriggerBackupRequest', () { unittest.test('to-json--from-json', () async { final o = buildTriggerBackupRequest(); @@ -5146,11 +5232,64 @@ void main() { checkLocation(response as api.Location); }); + unittest.test('method--getTrial', () async { + final mock = HttpServerMock(); + final res = api.BackupdrApi(mock).projects.locations; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildTrial()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.getTrial(arg_name, $fields: arg_$fields); + checkTrial(response as api.Trial); + }); + unittest.test('method--list', () async { final mock = HttpServerMock(); final res = api.BackupdrApi(mock).projects.locations; final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed88(); + final arg_extraLocationTypes = buildUnnamed89(); final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; @@ -8800,4 +8939,69 @@ void main() { checkOperation(response as api.Operation); }); }); + + unittest.group('resource-ProjectsLocationsTrialResource', () { + unittest.test('method--subscribe', () async { + final mock = HttpServerMock(); + final res = api.BackupdrApi(mock).projects.locations.trial; + final arg_request = buildSubscribeTrialRequest(); + final arg_parent = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.SubscribeTrialRequest.fromJson( + json as core.Map, + ); + checkSubscribeTrialRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildTrial()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.subscribe( + arg_request, + arg_parent, + $fields: arg_$fields, + ); + checkTrial(response as api.Trial); + }); + }); } diff --git a/generated/googleapis/test/bigquery/v2_test.dart b/generated/googleapis/test/bigquery/v2_test.dart index ed3535dc3..1dbbc868c 100644 --- a/generated/googleapis/test/bigquery/v2_test.dart +++ b/generated/googleapis/test/bigquery/v2_test.dart @@ -3010,6 +3010,7 @@ api.JobConfiguration buildJobConfiguration() { o.jobType = 'foo'; o.labels = buildUnnamed56(); o.load = buildJobConfigurationLoad(); + o.maxSlots = 42; o.query = buildJobConfigurationQuery(); o.reservation = 'foo'; } @@ -3027,6 +3028,7 @@ void checkJobConfiguration(api.JobConfiguration o) { unittest.expect(o.jobType!, unittest.equals('foo')); checkUnnamed56(o.labels!); checkJobConfigurationLoad(o.load!); + unittest.expect(o.maxSlots!, unittest.equals(42)); checkJobConfigurationQuery(o.query!); unittest.expect(o.reservation!, unittest.equals('foo')); } @@ -5241,6 +5243,7 @@ api.QueryRequest buildQueryRequest() { o.labels = buildUnnamed116(); o.location = 'foo'; o.maxResults = 42; + o.maxSlots = 42; o.maximumBytesBilled = 'foo'; o.parameterMode = 'foo'; o.preserveNulls = true; @@ -5273,6 +5276,7 @@ void checkQueryRequest(api.QueryRequest o) { checkUnnamed116(o.labels!); unittest.expect(o.location!, unittest.equals('foo')); unittest.expect(o.maxResults!, unittest.equals(42)); + unittest.expect(o.maxSlots!, unittest.equals(42)); unittest.expect(o.maximumBytesBilled!, unittest.equals('foo')); unittest.expect(o.parameterMode!, unittest.equals('foo')); unittest.expect(o.preserveNulls!, unittest.isTrue); diff --git a/generated/googleapis/test/bigquerydatatransfer/v1_test.dart b/generated/googleapis/test/bigquerydatatransfer/v1_test.dart index 9c4f42742..c3c34fb04 100644 --- a/generated/googleapis/test/bigquerydatatransfer/v1_test.dart +++ b/generated/googleapis/test/bigquerydatatransfer/v1_test.dart @@ -162,6 +162,7 @@ api.DataSourceParameter buildDataSourceParameter() { o.displayName = 'foo'; o.fields = buildUnnamed3(); o.immutable = true; + o.maxListSize = 'foo'; o.maxValue = 42.0; o.minValue = 42.0; o.paramId = 'foo'; @@ -186,6 +187,7 @@ void checkDataSourceParameter(api.DataSourceParameter o) { unittest.expect(o.displayName!, unittest.equals('foo')); checkUnnamed3(o.fields!); unittest.expect(o.immutable!, unittest.isTrue); + unittest.expect(o.maxListSize!, unittest.equals('foo')); unittest.expect(o.maxValue!, unittest.equals(42.0)); unittest.expect(o.minValue!, unittest.equals(42.0)); unittest.expect(o.paramId!, unittest.equals('foo')); diff --git a/generated/googleapis/test/bigtableadmin/v2_test.dart b/generated/googleapis/test/bigtableadmin/v2_test.dart index 8c2ae8490..ea66d01d3 100644 --- a/generated/googleapis/test/bigtableadmin/v2_test.dart +++ b/generated/googleapis/test/bigtableadmin/v2_test.dart @@ -1660,6 +1660,14 @@ void checkUnnamed11(core.Map o) { unittest.expect(o['y']!, unittest.equals('foo')); } +core.Map buildUnnamed12() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed12(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + core.int buildCounterInstance = 0; api.Instance buildInstance() { final o = api.Instance(); @@ -1672,6 +1680,7 @@ api.Instance buildInstance() { o.satisfiesPzi = true; o.satisfiesPzs = true; o.state = 'foo'; + o.tags = buildUnnamed12(); o.type = 'foo'; } buildCounterInstance--; @@ -1688,14 +1697,15 @@ void checkInstance(api.Instance o) { unittest.expect(o.satisfiesPzi!, unittest.isTrue); unittest.expect(o.satisfiesPzs!, unittest.isTrue); unittest.expect(o.state!, unittest.equals('foo')); + checkUnnamed12(o.tags!); unittest.expect(o.type!, unittest.equals('foo')); } buildCounterInstance--; } -core.List buildUnnamed12() => [buildGcRule(), buildGcRule()]; +core.List buildUnnamed13() => [buildGcRule(), buildGcRule()]; -void checkUnnamed12(core.List o) { +void checkUnnamed13(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGcRule(o[0]); checkGcRule(o[1]); @@ -1706,7 +1716,7 @@ api.Intersection buildIntersection() { final o = api.Intersection(); buildCounterIntersection++; if (buildCounterIntersection < 3) { - o.rules = buildUnnamed12(); + o.rules = buildUnnamed13(); } buildCounterIntersection--; return o; @@ -1715,25 +1725,25 @@ api.Intersection buildIntersection() { void checkIntersection(api.Intersection o) { buildCounterIntersection++; if (buildCounterIntersection < 3) { - checkUnnamed12(o.rules!); + checkUnnamed13(o.rules!); } buildCounterIntersection--; } -core.List buildUnnamed13() => [ +core.List buildUnnamed14() => [ buildAppProfile(), buildAppProfile(), ]; -void checkUnnamed13(core.List o) { +void checkUnnamed14(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAppProfile(o[0]); checkAppProfile(o[1]); } -core.List buildUnnamed14() => ['foo', 'foo']; +core.List buildUnnamed15() => ['foo', 'foo']; -void checkUnnamed14(core.List o) { +void checkUnnamed15(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1744,8 +1754,8 @@ api.ListAppProfilesResponse buildListAppProfilesResponse() { final o = api.ListAppProfilesResponse(); buildCounterListAppProfilesResponse++; if (buildCounterListAppProfilesResponse < 3) { - o.appProfiles = buildUnnamed13(); - o.failedLocations = buildUnnamed14(); + o.appProfiles = buildUnnamed14(); + o.failedLocations = buildUnnamed15(); o.nextPageToken = 'foo'; } buildCounterListAppProfilesResponse--; @@ -1755,19 +1765,19 @@ api.ListAppProfilesResponse buildListAppProfilesResponse() { void checkListAppProfilesResponse(api.ListAppProfilesResponse o) { buildCounterListAppProfilesResponse++; if (buildCounterListAppProfilesResponse < 3) { - checkUnnamed13(o.appProfiles!); - checkUnnamed14(o.failedLocations!); + checkUnnamed14(o.appProfiles!); + checkUnnamed15(o.failedLocations!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListAppProfilesResponse--; } -core.List buildUnnamed15() => [ +core.List buildUnnamed16() => [ buildAuthorizedView(), buildAuthorizedView(), ]; -void checkUnnamed15(core.List o) { +void checkUnnamed16(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAuthorizedView(o[0]); checkAuthorizedView(o[1]); @@ -1778,7 +1788,7 @@ api.ListAuthorizedViewsResponse buildListAuthorizedViewsResponse() { final o = api.ListAuthorizedViewsResponse(); buildCounterListAuthorizedViewsResponse++; if (buildCounterListAuthorizedViewsResponse < 3) { - o.authorizedViews = buildUnnamed15(); + o.authorizedViews = buildUnnamed16(); o.nextPageToken = 'foo'; } buildCounterListAuthorizedViewsResponse--; @@ -1788,15 +1798,15 @@ api.ListAuthorizedViewsResponse buildListAuthorizedViewsResponse() { void checkListAuthorizedViewsResponse(api.ListAuthorizedViewsResponse o) { buildCounterListAuthorizedViewsResponse++; if (buildCounterListAuthorizedViewsResponse < 3) { - checkUnnamed15(o.authorizedViews!); + checkUnnamed16(o.authorizedViews!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListAuthorizedViewsResponse--; } -core.List buildUnnamed16() => [buildBackup(), buildBackup()]; +core.List buildUnnamed17() => [buildBackup(), buildBackup()]; -void checkUnnamed16(core.List o) { +void checkUnnamed17(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackup(o[0]); checkBackup(o[1]); @@ -1807,7 +1817,7 @@ api.ListBackupsResponse buildListBackupsResponse() { final o = api.ListBackupsResponse(); buildCounterListBackupsResponse++; if (buildCounterListBackupsResponse < 3) { - o.backups = buildUnnamed16(); + o.backups = buildUnnamed17(); o.nextPageToken = 'foo'; } buildCounterListBackupsResponse--; @@ -1817,23 +1827,23 @@ api.ListBackupsResponse buildListBackupsResponse() { void checkListBackupsResponse(api.ListBackupsResponse o) { buildCounterListBackupsResponse++; if (buildCounterListBackupsResponse < 3) { - checkUnnamed16(o.backups!); + checkUnnamed17(o.backups!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListBackupsResponse--; } -core.List buildUnnamed17() => [buildCluster(), buildCluster()]; +core.List buildUnnamed18() => [buildCluster(), buildCluster()]; -void checkUnnamed17(core.List o) { +void checkUnnamed18(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); } -core.List buildUnnamed18() => ['foo', 'foo']; +core.List buildUnnamed19() => ['foo', 'foo']; -void checkUnnamed18(core.List o) { +void checkUnnamed19(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1844,8 +1854,8 @@ api.ListClustersResponse buildListClustersResponse() { final o = api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed17(); - o.failedLocations = buildUnnamed18(); + o.clusters = buildUnnamed18(); + o.failedLocations = buildUnnamed19(); o.nextPageToken = 'foo'; } buildCounterListClustersResponse--; @@ -1855,19 +1865,19 @@ api.ListClustersResponse buildListClustersResponse() { void checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed17(o.clusters!); - checkUnnamed18(o.failedLocations!); + checkUnnamed18(o.clusters!); + checkUnnamed19(o.failedLocations!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListClustersResponse--; } -core.List buildUnnamed19() => [ +core.List buildUnnamed20() => [ buildHotTablet(), buildHotTablet(), ]; -void checkUnnamed19(core.List o) { +void checkUnnamed20(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHotTablet(o[0]); checkHotTablet(o[1]); @@ -1878,7 +1888,7 @@ api.ListHotTabletsResponse buildListHotTabletsResponse() { final o = api.ListHotTabletsResponse(); buildCounterListHotTabletsResponse++; if (buildCounterListHotTabletsResponse < 3) { - o.hotTablets = buildUnnamed19(); + o.hotTablets = buildUnnamed20(); o.nextPageToken = 'foo'; } buildCounterListHotTabletsResponse--; @@ -1888,23 +1898,23 @@ api.ListHotTabletsResponse buildListHotTabletsResponse() { void checkListHotTabletsResponse(api.ListHotTabletsResponse o) { buildCounterListHotTabletsResponse++; if (buildCounterListHotTabletsResponse < 3) { - checkUnnamed19(o.hotTablets!); + checkUnnamed20(o.hotTablets!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListHotTabletsResponse--; } -core.List buildUnnamed20() => ['foo', 'foo']; +core.List buildUnnamed21() => ['foo', 'foo']; -void checkUnnamed20(core.List o) { +void checkUnnamed21(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed21() => [buildInstance(), buildInstance()]; +core.List buildUnnamed22() => [buildInstance(), buildInstance()]; -void checkUnnamed21(core.List o) { +void checkUnnamed22(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -1915,8 +1925,8 @@ api.ListInstancesResponse buildListInstancesResponse() { final o = api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.failedLocations = buildUnnamed20(); - o.instances = buildUnnamed21(); + o.failedLocations = buildUnnamed21(); + o.instances = buildUnnamed22(); o.nextPageToken = 'foo'; } buildCounterListInstancesResponse--; @@ -1926,16 +1936,16 @@ api.ListInstancesResponse buildListInstancesResponse() { void checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed20(o.failedLocations!); - checkUnnamed21(o.instances!); + checkUnnamed21(o.failedLocations!); + checkUnnamed22(o.instances!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -core.List buildUnnamed22() => [buildLocation(), buildLocation()]; +core.List buildUnnamed23() => [buildLocation(), buildLocation()]; -void checkUnnamed22(core.List o) { +void checkUnnamed23(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -1946,7 +1956,7 @@ api.ListLocationsResponse buildListLocationsResponse() { final o = api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed22(); + o.locations = buildUnnamed23(); o.nextPageToken = 'foo'; } buildCounterListLocationsResponse--; @@ -1956,18 +1966,18 @@ api.ListLocationsResponse buildListLocationsResponse() { void checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed22(o.locations!); + checkUnnamed23(o.locations!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -core.List buildUnnamed23() => [ +core.List buildUnnamed24() => [ buildLogicalView(), buildLogicalView(), ]; -void checkUnnamed23(core.List o) { +void checkUnnamed24(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLogicalView(o[0]); checkLogicalView(o[1]); @@ -1978,7 +1988,7 @@ api.ListLogicalViewsResponse buildListLogicalViewsResponse() { final o = api.ListLogicalViewsResponse(); buildCounterListLogicalViewsResponse++; if (buildCounterListLogicalViewsResponse < 3) { - o.logicalViews = buildUnnamed23(); + o.logicalViews = buildUnnamed24(); o.nextPageToken = 'foo'; } buildCounterListLogicalViewsResponse--; @@ -1988,18 +1998,18 @@ api.ListLogicalViewsResponse buildListLogicalViewsResponse() { void checkListLogicalViewsResponse(api.ListLogicalViewsResponse o) { buildCounterListLogicalViewsResponse++; if (buildCounterListLogicalViewsResponse < 3) { - checkUnnamed23(o.logicalViews!); + checkUnnamed24(o.logicalViews!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListLogicalViewsResponse--; } -core.List buildUnnamed24() => [ +core.List buildUnnamed25() => [ buildMaterializedView(), buildMaterializedView(), ]; -void checkUnnamed24(core.List o) { +void checkUnnamed25(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMaterializedView(o[0]); checkMaterializedView(o[1]); @@ -2010,7 +2020,7 @@ api.ListMaterializedViewsResponse buildListMaterializedViewsResponse() { final o = api.ListMaterializedViewsResponse(); buildCounterListMaterializedViewsResponse++; if (buildCounterListMaterializedViewsResponse < 3) { - o.materializedViews = buildUnnamed24(); + o.materializedViews = buildUnnamed25(); o.nextPageToken = 'foo'; } buildCounterListMaterializedViewsResponse--; @@ -2020,18 +2030,18 @@ api.ListMaterializedViewsResponse buildListMaterializedViewsResponse() { void checkListMaterializedViewsResponse(api.ListMaterializedViewsResponse o) { buildCounterListMaterializedViewsResponse++; if (buildCounterListMaterializedViewsResponse < 3) { - checkUnnamed24(o.materializedViews!); + checkUnnamed25(o.materializedViews!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListMaterializedViewsResponse--; } -core.List buildUnnamed25() => [ +core.List buildUnnamed26() => [ buildOperation(), buildOperation(), ]; -void checkUnnamed25(core.List o) { +void checkUnnamed26(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -2043,7 +2053,7 @@ api.ListOperationsResponse buildListOperationsResponse() { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = 'foo'; - o.operations = buildUnnamed25(); + o.operations = buildUnnamed26(); } buildCounterListOperationsResponse--; return o; @@ -2053,17 +2063,17 @@ void checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed25(o.operations!); + checkUnnamed26(o.operations!); } buildCounterListOperationsResponse--; } -core.List buildUnnamed26() => [ +core.List buildUnnamed27() => [ buildSchemaBundle(), buildSchemaBundle(), ]; -void checkUnnamed26(core.List o) { +void checkUnnamed27(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSchemaBundle(o[0]); checkSchemaBundle(o[1]); @@ -2075,7 +2085,7 @@ api.ListSchemaBundlesResponse buildListSchemaBundlesResponse() { buildCounterListSchemaBundlesResponse++; if (buildCounterListSchemaBundlesResponse < 3) { o.nextPageToken = 'foo'; - o.schemaBundles = buildUnnamed26(); + o.schemaBundles = buildUnnamed27(); } buildCounterListSchemaBundlesResponse--; return o; @@ -2085,14 +2095,14 @@ void checkListSchemaBundlesResponse(api.ListSchemaBundlesResponse o) { buildCounterListSchemaBundlesResponse++; if (buildCounterListSchemaBundlesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed26(o.schemaBundles!); + checkUnnamed27(o.schemaBundles!); } buildCounterListSchemaBundlesResponse--; } -core.List buildUnnamed27() => [buildTable(), buildTable()]; +core.List buildUnnamed28() => [buildTable(), buildTable()]; -void checkUnnamed27(core.List o) { +void checkUnnamed28(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -2104,7 +2114,7 @@ api.ListTablesResponse buildListTablesResponse() { buildCounterListTablesResponse++; if (buildCounterListTablesResponse < 3) { o.nextPageToken = 'foo'; - o.tables = buildUnnamed27(); + o.tables = buildUnnamed28(); } buildCounterListTablesResponse--; return o; @@ -2114,20 +2124,20 @@ void checkListTablesResponse(api.ListTablesResponse o) { buildCounterListTablesResponse++; if (buildCounterListTablesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed27(o.tables!); + checkUnnamed28(o.tables!); } buildCounterListTablesResponse--; } -core.Map buildUnnamed28() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed29() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed28(core.Map o) { +void checkUnnamed29(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed29() => { +core.Map buildUnnamed30() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2140,7 +2150,7 @@ core.Map buildUnnamed29() => { }, }; -void checkUnnamed29(core.Map o) { +void checkUnnamed30(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o['x']!) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -2160,9 +2170,9 @@ api.Location buildLocation() { buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = 'foo'; - o.labels = buildUnnamed28(); + o.labels = buildUnnamed29(); o.locationId = 'foo'; - o.metadata = buildUnnamed29(); + o.metadata = buildUnnamed30(); o.name = 'foo'; } buildCounterLocation--; @@ -2173,9 +2183,9 @@ void checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed28(o.labels!); + checkUnnamed29(o.labels!); unittest.expect(o.locationId!, unittest.equals('foo')); - checkUnnamed29(o.metadata!); + checkUnnamed30(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); } buildCounterLocation--; @@ -2258,12 +2268,12 @@ void checkModification(api.Modification o) { buildCounterModification--; } -core.List buildUnnamed30() => [ +core.List buildUnnamed31() => [ buildModification(), buildModification(), ]; -void checkUnnamed30(core.List o) { +void checkUnnamed31(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkModification(o[0]); checkModification(o[1]); @@ -2275,7 +2285,7 @@ api.ModifyColumnFamiliesRequest buildModifyColumnFamiliesRequest() { buildCounterModifyColumnFamiliesRequest++; if (buildCounterModifyColumnFamiliesRequest < 3) { o.ignoreWarnings = true; - o.modifications = buildUnnamed30(); + o.modifications = buildUnnamed31(); } buildCounterModifyColumnFamiliesRequest--; return o; @@ -2285,14 +2295,14 @@ void checkModifyColumnFamiliesRequest(api.ModifyColumnFamiliesRequest o) { buildCounterModifyColumnFamiliesRequest++; if (buildCounterModifyColumnFamiliesRequest < 3) { unittest.expect(o.ignoreWarnings!, unittest.isTrue); - checkUnnamed30(o.modifications!); + checkUnnamed31(o.modifications!); } buildCounterModifyColumnFamiliesRequest--; } -core.List buildUnnamed31() => ['foo', 'foo']; +core.List buildUnnamed32() => ['foo', 'foo']; -void checkUnnamed31(core.List o) { +void checkUnnamed32(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2303,7 +2313,7 @@ api.MultiClusterRoutingUseAny buildMultiClusterRoutingUseAny() { final o = api.MultiClusterRoutingUseAny(); buildCounterMultiClusterRoutingUseAny++; if (buildCounterMultiClusterRoutingUseAny < 3) { - o.clusterIds = buildUnnamed31(); + o.clusterIds = buildUnnamed32(); o.rowAffinity = buildRowAffinity(); } buildCounterMultiClusterRoutingUseAny--; @@ -2313,13 +2323,13 @@ api.MultiClusterRoutingUseAny buildMultiClusterRoutingUseAny() { void checkMultiClusterRoutingUseAny(api.MultiClusterRoutingUseAny o) { buildCounterMultiClusterRoutingUseAny++; if (buildCounterMultiClusterRoutingUseAny < 3) { - checkUnnamed31(o.clusterIds!); + checkUnnamed32(o.clusterIds!); checkRowAffinity(o.rowAffinity!); } buildCounterMultiClusterRoutingUseAny--; } -core.Map buildUnnamed32() => { +core.Map buildUnnamed33() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2332,7 +2342,7 @@ core.Map buildUnnamed32() => { }, }; -void checkUnnamed32(core.Map o) { +void checkUnnamed33(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o['x']!) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -2346,7 +2356,7 @@ void checkUnnamed32(core.Map o) { unittest.expect(casted4['string'], unittest.equals('foo')); } -core.Map buildUnnamed33() => { +core.Map buildUnnamed34() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2359,7 +2369,7 @@ core.Map buildUnnamed33() => { }, }; -void checkUnnamed33(core.Map o) { +void checkUnnamed34(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o['x']!) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -2380,9 +2390,9 @@ api.Operation buildOperation() { if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed32(); + o.metadata = buildUnnamed33(); o.name = 'foo'; - o.response = buildUnnamed33(); + o.response = buildUnnamed34(); } buildCounterOperation--; return o; @@ -2393,27 +2403,27 @@ void checkOperation(api.Operation o) { if (buildCounterOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkStatus(o.error!); - checkUnnamed32(o.metadata!); + checkUnnamed33(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed33(o.response!); + checkUnnamed34(o.response!); } buildCounterOperation--; } -core.List buildUnnamed34() => [ +core.List buildUnnamed35() => [ buildAuditConfig(), buildAuditConfig(), ]; -void checkUnnamed34(core.List o) { +void checkUnnamed35(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -core.List buildUnnamed35() => [buildBinding(), buildBinding()]; +core.List buildUnnamed36() => [buildBinding(), buildBinding()]; -void checkUnnamed35(core.List o) { +void checkUnnamed36(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -2424,8 +2434,8 @@ api.Policy buildPolicy() { final o = api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed34(); - o.bindings = buildUnnamed35(); + o.auditConfigs = buildUnnamed35(); + o.bindings = buildUnnamed36(); o.etag = 'foo'; o.version = 42; } @@ -2436,8 +2446,8 @@ api.Policy buildPolicy() { void checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed34(o.auditConfigs!); - checkUnnamed35(o.bindings!); + checkUnnamed35(o.auditConfigs!); + checkUnnamed36(o.bindings!); unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.version!, unittest.equals(42)); } @@ -2638,7 +2648,7 @@ void checkStandardReadRemoteWrites(api.StandardReadRemoteWrites o) { buildCounterStandardReadRemoteWrites--; } -core.Map buildUnnamed36() => { +core.Map buildUnnamed37() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2651,7 +2661,7 @@ core.Map buildUnnamed36() => { }, }; -void checkUnnamed36(core.Map o) { +void checkUnnamed37(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o['x']!) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -2665,15 +2675,15 @@ void checkUnnamed36(core.Map o) { unittest.expect(casted8['string'], unittest.equals('foo')); } -core.List> buildUnnamed37() => [ - buildUnnamed36(), - buildUnnamed36(), +core.List> buildUnnamed38() => [ + buildUnnamed37(), + buildUnnamed37(), ]; -void checkUnnamed37(core.List> o) { +void checkUnnamed38(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed36(o[0]); - checkUnnamed36(o[1]); + checkUnnamed37(o[0]); + checkUnnamed37(o[1]); } core.int buildCounterStatus = 0; @@ -2682,7 +2692,7 @@ api.Status buildStatus() { buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed37(); + o.details = buildUnnamed38(); o.message = 'foo'; } buildCounterStatus--; @@ -2693,29 +2703,29 @@ void checkStatus(api.Status o) { buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed37(o.details!); + checkUnnamed38(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStatus--; } -core.Map buildUnnamed38() => { +core.Map buildUnnamed39() => { 'x': buildClusterState(), 'y': buildClusterState(), }; -void checkUnnamed38(core.Map o) { +void checkUnnamed39(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkClusterState(o['x']!); checkClusterState(o['y']!); } -core.Map buildUnnamed39() => { +core.Map buildUnnamed40() => { 'x': buildColumnFamily(), 'y': buildColumnFamily(), }; -void checkUnnamed39(core.Map o) { +void checkUnnamed40(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkColumnFamily(o['x']!); checkColumnFamily(o['y']!); @@ -2728,8 +2738,8 @@ api.Table buildTable() { if (buildCounterTable < 3) { o.automatedBackupPolicy = buildAutomatedBackupPolicy(); o.changeStreamConfig = buildChangeStreamConfig(); - o.clusterStates = buildUnnamed38(); - o.columnFamilies = buildUnnamed39(); + o.clusterStates = buildUnnamed39(); + o.columnFamilies = buildUnnamed40(); o.deletionProtection = true; o.granularity = 'foo'; o.name = 'foo'; @@ -2747,8 +2757,8 @@ void checkTable(api.Table o) { if (buildCounterTable < 3) { checkAutomatedBackupPolicy(o.automatedBackupPolicy!); checkChangeStreamConfig(o.changeStreamConfig!); - checkUnnamed38(o.clusterStates!); - checkUnnamed39(o.columnFamilies!); + checkUnnamed39(o.clusterStates!); + checkUnnamed40(o.columnFamilies!); unittest.expect(o.deletionProtection!, unittest.isTrue); unittest.expect(o.granularity!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); @@ -2785,9 +2795,9 @@ void checkTableStats(api.TableStats o) { buildCounterTableStats--; } -core.List buildUnnamed40() => ['foo', 'foo']; +core.List buildUnnamed41() => ['foo', 'foo']; -void checkUnnamed40(core.List o) { +void checkUnnamed41(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2798,7 +2808,7 @@ api.TestIamPermissionsRequest buildTestIamPermissionsRequest() { final o = api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed40(); + o.permissions = buildUnnamed41(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2807,14 +2817,14 @@ api.TestIamPermissionsRequest buildTestIamPermissionsRequest() { void checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed40(o.permissions!); + checkUnnamed41(o.permissions!); } buildCounterTestIamPermissionsRequest--; } -core.List buildUnnamed41() => ['foo', 'foo']; +core.List buildUnnamed42() => ['foo', 'foo']; -void checkUnnamed41(core.List o) { +void checkUnnamed42(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2825,7 +2835,7 @@ api.TestIamPermissionsResponse buildTestIamPermissionsResponse() { final o = api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed41(); + o.permissions = buildUnnamed42(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2834,7 +2844,7 @@ api.TestIamPermissionsResponse buildTestIamPermissionsResponse() { void checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed41(o.permissions!); + checkUnnamed42(o.permissions!); } buildCounterTestIamPermissionsResponse--; } @@ -2937,9 +2947,9 @@ void checkUndeleteTableRequest(api.UndeleteTableRequest o) { buildCounterUndeleteTableRequest--; } -core.List buildUnnamed42() => [buildGcRule(), buildGcRule()]; +core.List buildUnnamed43() => [buildGcRule(), buildGcRule()]; -void checkUnnamed42(core.List o) { +void checkUnnamed43(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGcRule(o[0]); checkGcRule(o[1]); @@ -2950,7 +2960,7 @@ api.Union buildUnion() { final o = api.Union(); buildCounterUnion++; if (buildCounterUnion < 3) { - o.rules = buildUnnamed42(); + o.rules = buildUnnamed43(); } buildCounterUnion--; return o; @@ -2959,14 +2969,14 @@ api.Union buildUnion() { void checkUnion(api.Union o) { buildCounterUnion++; if (buildCounterUnion < 3) { - checkUnnamed42(o.rules!); + checkUnnamed43(o.rules!); } buildCounterUnion--; } -core.List buildUnnamed43() => ['foo', 'foo']; +core.List buildUnnamed44() => ['foo', 'foo']; -void checkUnnamed43(core.List o) { +void checkUnnamed44(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4237,112 +4247,6 @@ void main() { }); unittest.group('resource-OperationsResource', () { - unittest.test('method--cancel', () async { - final mock = HttpServerMock(); - final res = api.BigtableAdminApi(mock).operations; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v2/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildEmpty()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.cancel(arg_name, $fields: arg_$fields); - checkEmpty(response as api.Empty); - }); - - unittest.test('method--delete', () async { - final mock = HttpServerMock(); - final res = api.BigtableAdminApi(mock).operations; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v2/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildEmpty()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.delete(arg_name, $fields: arg_$fields); - checkEmpty(response as api.Empty); - }); - unittest.test('method--get', () async { final mock = HttpServerMock(); final res = api.BigtableAdminApi(mock).operations; @@ -9402,64 +9306,11 @@ void main() { }); unittest.group('resource-ProjectsLocationsResource', () { - unittest.test('method--get', () async { - final mock = HttpServerMock(); - final res = api.BigtableAdminApi(mock).projects.locations; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v2/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildLocation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkLocation(response as api.Location); - }); - unittest.test('method--list', () async { final mock = HttpServerMock(); final res = api.BigtableAdminApi(mock).projects.locations; final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed43(); + final arg_extraLocationTypes = buildUnnamed44(); final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; diff --git a/generated/googleapis/test/chat/v1_test.dart b/generated/googleapis/test/chat/v1_test.dart index 4457ded8e..261116c58 100644 --- a/generated/googleapis/test/chat/v1_test.dart +++ b/generated/googleapis/test/chat/v1_test.dart @@ -917,12 +917,23 @@ void checkUnnamed6(core.List o) { checkGoogleAppsCardV1CardAction(o[1]); } -core.List buildUnnamed7() => [ +core.List buildUnnamed7() => [ + buildGoogleAppsCardV1ExpressionData(), + buildGoogleAppsCardV1ExpressionData(), +]; + +void checkUnnamed7(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleAppsCardV1ExpressionData(o[0]); + checkGoogleAppsCardV1ExpressionData(o[1]); +} + +core.List buildUnnamed8() => [ buildGoogleAppsCardV1Section(), buildGoogleAppsCardV1Section(), ]; -void checkUnnamed7(core.List o) { +void checkUnnamed8(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsCardV1Section(o[0]); checkGoogleAppsCardV1Section(o[1]); @@ -935,12 +946,13 @@ api.GoogleAppsCardV1Card buildGoogleAppsCardV1Card() { if (buildCounterGoogleAppsCardV1Card < 3) { o.cardActions = buildUnnamed6(); o.displayStyle = 'foo'; + o.expressionData = buildUnnamed7(); o.fixedFooter = buildGoogleAppsCardV1CardFixedFooter(); o.header = buildGoogleAppsCardV1CardHeader(); o.name = 'foo'; o.peekCardHeader = buildGoogleAppsCardV1CardHeader(); o.sectionDividerStyle = 'foo'; - o.sections = buildUnnamed7(); + o.sections = buildUnnamed8(); } buildCounterGoogleAppsCardV1Card--; return o; @@ -951,12 +963,13 @@ void checkGoogleAppsCardV1Card(api.GoogleAppsCardV1Card o) { if (buildCounterGoogleAppsCardV1Card < 3) { checkUnnamed6(o.cardActions!); unittest.expect(o.displayStyle!, unittest.equals('foo')); + checkUnnamed7(o.expressionData!); checkGoogleAppsCardV1CardFixedFooter(o.fixedFooter!); checkGoogleAppsCardV1CardHeader(o.header!); unittest.expect(o.name!, unittest.equals('foo')); checkGoogleAppsCardV1CardHeader(o.peekCardHeader!); unittest.expect(o.sectionDividerStyle!, unittest.equals('foo')); - checkUnnamed7(o.sections!); + checkUnnamed8(o.sections!); } buildCounterGoogleAppsCardV1Card--; } @@ -1032,12 +1045,12 @@ void checkGoogleAppsCardV1CardHeader(api.GoogleAppsCardV1CardHeader o) { buildCounterGoogleAppsCardV1CardHeader--; } -core.List buildUnnamed8() => [ +core.List buildUnnamed9() => [ buildGoogleAppsCardV1CarouselCard(), buildGoogleAppsCardV1CarouselCard(), ]; -void checkUnnamed8(core.List o) { +void checkUnnamed9(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsCardV1CarouselCard(o[0]); checkGoogleAppsCardV1CarouselCard(o[1]); @@ -1048,7 +1061,7 @@ api.GoogleAppsCardV1Carousel buildGoogleAppsCardV1Carousel() { final o = api.GoogleAppsCardV1Carousel(); buildCounterGoogleAppsCardV1Carousel++; if (buildCounterGoogleAppsCardV1Carousel < 3) { - o.carouselCards = buildUnnamed8(); + o.carouselCards = buildUnnamed9(); } buildCounterGoogleAppsCardV1Carousel--; return o; @@ -1057,28 +1070,28 @@ api.GoogleAppsCardV1Carousel buildGoogleAppsCardV1Carousel() { void checkGoogleAppsCardV1Carousel(api.GoogleAppsCardV1Carousel o) { buildCounterGoogleAppsCardV1Carousel++; if (buildCounterGoogleAppsCardV1Carousel < 3) { - checkUnnamed8(o.carouselCards!); + checkUnnamed9(o.carouselCards!); } buildCounterGoogleAppsCardV1Carousel--; } -core.List buildUnnamed9() => [ +core.List buildUnnamed10() => [ buildGoogleAppsCardV1NestedWidget(), buildGoogleAppsCardV1NestedWidget(), ]; -void checkUnnamed9(core.List o) { +void checkUnnamed10(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsCardV1NestedWidget(o[0]); checkGoogleAppsCardV1NestedWidget(o[1]); } -core.List buildUnnamed10() => [ +core.List buildUnnamed11() => [ buildGoogleAppsCardV1NestedWidget(), buildGoogleAppsCardV1NestedWidget(), ]; -void checkUnnamed10(core.List o) { +void checkUnnamed11(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsCardV1NestedWidget(o[0]); checkGoogleAppsCardV1NestedWidget(o[1]); @@ -1089,8 +1102,8 @@ api.GoogleAppsCardV1CarouselCard buildGoogleAppsCardV1CarouselCard() { final o = api.GoogleAppsCardV1CarouselCard(); buildCounterGoogleAppsCardV1CarouselCard++; if (buildCounterGoogleAppsCardV1CarouselCard < 3) { - o.footerWidgets = buildUnnamed9(); - o.widgets = buildUnnamed10(); + o.footerWidgets = buildUnnamed10(); + o.widgets = buildUnnamed11(); } buildCounterGoogleAppsCardV1CarouselCard--; return o; @@ -1099,8 +1112,8 @@ api.GoogleAppsCardV1CarouselCard buildGoogleAppsCardV1CarouselCard() { void checkGoogleAppsCardV1CarouselCard(api.GoogleAppsCardV1CarouselCard o) { buildCounterGoogleAppsCardV1CarouselCard++; if (buildCounterGoogleAppsCardV1CarouselCard < 3) { - checkUnnamed9(o.footerWidgets!); - checkUnnamed10(o.widgets!); + checkUnnamed10(o.footerWidgets!); + checkUnnamed11(o.widgets!); } buildCounterGoogleAppsCardV1CarouselCard--; } @@ -1134,12 +1147,12 @@ void checkGoogleAppsCardV1Chip(api.GoogleAppsCardV1Chip o) { buildCounterGoogleAppsCardV1Chip--; } -core.List buildUnnamed11() => [ +core.List buildUnnamed12() => [ buildGoogleAppsCardV1Chip(), buildGoogleAppsCardV1Chip(), ]; -void checkUnnamed11(core.List o) { +void checkUnnamed12(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsCardV1Chip(o[0]); checkGoogleAppsCardV1Chip(o[1]); @@ -1150,7 +1163,7 @@ api.GoogleAppsCardV1ChipList buildGoogleAppsCardV1ChipList() { final o = api.GoogleAppsCardV1ChipList(); buildCounterGoogleAppsCardV1ChipList++; if (buildCounterGoogleAppsCardV1ChipList < 3) { - o.chips = buildUnnamed11(); + o.chips = buildUnnamed12(); o.layout = 'foo'; } buildCounterGoogleAppsCardV1ChipList--; @@ -1160,7 +1173,7 @@ api.GoogleAppsCardV1ChipList buildGoogleAppsCardV1ChipList() { void checkGoogleAppsCardV1ChipList(api.GoogleAppsCardV1ChipList o) { buildCounterGoogleAppsCardV1ChipList++; if (buildCounterGoogleAppsCardV1ChipList < 3) { - checkUnnamed11(o.chips!); + checkUnnamed12(o.chips!); unittest.expect(o.layout!, unittest.equals('foo')); } buildCounterGoogleAppsCardV1ChipList--; @@ -1191,12 +1204,12 @@ void checkGoogleAppsCardV1CollapseControl( buildCounterGoogleAppsCardV1CollapseControl--; } -core.List buildUnnamed12() => [ +core.List buildUnnamed13() => [ buildGoogleAppsCardV1Widgets(), buildGoogleAppsCardV1Widgets(), ]; -void checkUnnamed12(core.List o) { +void checkUnnamed13(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsCardV1Widgets(o[0]); checkGoogleAppsCardV1Widgets(o[1]); @@ -1210,7 +1223,7 @@ api.GoogleAppsCardV1Column buildGoogleAppsCardV1Column() { o.horizontalAlignment = 'foo'; o.horizontalSizeStyle = 'foo'; o.verticalAlignment = 'foo'; - o.widgets = buildUnnamed12(); + o.widgets = buildUnnamed13(); } buildCounterGoogleAppsCardV1Column--; return o; @@ -1222,17 +1235,17 @@ void checkGoogleAppsCardV1Column(api.GoogleAppsCardV1Column o) { unittest.expect(o.horizontalAlignment!, unittest.equals('foo')); unittest.expect(o.horizontalSizeStyle!, unittest.equals('foo')); unittest.expect(o.verticalAlignment!, unittest.equals('foo')); - checkUnnamed12(o.widgets!); + checkUnnamed13(o.widgets!); } buildCounterGoogleAppsCardV1Column--; } -core.List buildUnnamed13() => [ +core.List buildUnnamed14() => [ buildGoogleAppsCardV1Column(), buildGoogleAppsCardV1Column(), ]; -void checkUnnamed13(core.List o) { +void checkUnnamed14(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsCardV1Column(o[0]); checkGoogleAppsCardV1Column(o[1]); @@ -1243,7 +1256,7 @@ api.GoogleAppsCardV1Columns buildGoogleAppsCardV1Columns() { final o = api.GoogleAppsCardV1Columns(); buildCounterGoogleAppsCardV1Columns++; if (buildCounterGoogleAppsCardV1Columns < 3) { - o.columnItems = buildUnnamed13(); + o.columnItems = buildUnnamed14(); } buildCounterGoogleAppsCardV1Columns--; return o; @@ -1252,16 +1265,83 @@ api.GoogleAppsCardV1Columns buildGoogleAppsCardV1Columns() { void checkGoogleAppsCardV1Columns(api.GoogleAppsCardV1Columns o) { buildCounterGoogleAppsCardV1Columns++; if (buildCounterGoogleAppsCardV1Columns < 3) { - checkUnnamed13(o.columnItems!); + checkUnnamed14(o.columnItems!); } buildCounterGoogleAppsCardV1Columns--; } +core.int buildCounterGoogleAppsCardV1CommonWidgetAction = 0; +api.GoogleAppsCardV1CommonWidgetAction +buildGoogleAppsCardV1CommonWidgetAction() { + final o = api.GoogleAppsCardV1CommonWidgetAction(); + buildCounterGoogleAppsCardV1CommonWidgetAction++; + if (buildCounterGoogleAppsCardV1CommonWidgetAction < 3) { + o.updateVisibilityAction = buildGoogleAppsCardV1UpdateVisibilityAction(); + } + buildCounterGoogleAppsCardV1CommonWidgetAction--; + return o; +} + +void checkGoogleAppsCardV1CommonWidgetAction( + api.GoogleAppsCardV1CommonWidgetAction o, +) { + buildCounterGoogleAppsCardV1CommonWidgetAction++; + if (buildCounterGoogleAppsCardV1CommonWidgetAction < 3) { + checkGoogleAppsCardV1UpdateVisibilityAction(o.updateVisibilityAction!); + } + buildCounterGoogleAppsCardV1CommonWidgetAction--; +} + +core.int buildCounterGoogleAppsCardV1Condition = 0; +api.GoogleAppsCardV1Condition buildGoogleAppsCardV1Condition() { + final o = api.GoogleAppsCardV1Condition(); + buildCounterGoogleAppsCardV1Condition++; + if (buildCounterGoogleAppsCardV1Condition < 3) { + o.actionRuleId = 'foo'; + o.expressionDataCondition = buildGoogleAppsCardV1ExpressionDataCondition(); + } + buildCounterGoogleAppsCardV1Condition--; + return o; +} + +void checkGoogleAppsCardV1Condition(api.GoogleAppsCardV1Condition o) { + buildCounterGoogleAppsCardV1Condition++; + if (buildCounterGoogleAppsCardV1Condition < 3) { + unittest.expect(o.actionRuleId!, unittest.equals('foo')); + checkGoogleAppsCardV1ExpressionDataCondition(o.expressionDataCondition!); + } + buildCounterGoogleAppsCardV1Condition--; +} + +core.int buildCounterGoogleAppsCardV1DataSourceConfig = 0; +api.GoogleAppsCardV1DataSourceConfig buildGoogleAppsCardV1DataSourceConfig() { + final o = api.GoogleAppsCardV1DataSourceConfig(); + buildCounterGoogleAppsCardV1DataSourceConfig++; + if (buildCounterGoogleAppsCardV1DataSourceConfig < 3) { + o.platformDataSource = buildGoogleAppsCardV1PlatformDataSource(); + o.remoteDataSource = buildGoogleAppsCardV1Action(); + } + buildCounterGoogleAppsCardV1DataSourceConfig--; + return o; +} + +void checkGoogleAppsCardV1DataSourceConfig( + api.GoogleAppsCardV1DataSourceConfig o, +) { + buildCounterGoogleAppsCardV1DataSourceConfig++; + if (buildCounterGoogleAppsCardV1DataSourceConfig < 3) { + checkGoogleAppsCardV1PlatformDataSource(o.platformDataSource!); + checkGoogleAppsCardV1Action(o.remoteDataSource!); + } + buildCounterGoogleAppsCardV1DataSourceConfig--; +} + core.int buildCounterGoogleAppsCardV1DateTimePicker = 0; api.GoogleAppsCardV1DateTimePicker buildGoogleAppsCardV1DateTimePicker() { final o = api.GoogleAppsCardV1DateTimePicker(); buildCounterGoogleAppsCardV1DateTimePicker++; if (buildCounterGoogleAppsCardV1DateTimePicker < 3) { + o.hostAppDataSource = buildHostAppDataSourceMarkup(); o.label = 'foo'; o.name = 'foo'; o.onChangeAction = buildGoogleAppsCardV1Action(); @@ -1276,6 +1356,7 @@ api.GoogleAppsCardV1DateTimePicker buildGoogleAppsCardV1DateTimePicker() { void checkGoogleAppsCardV1DateTimePicker(api.GoogleAppsCardV1DateTimePicker o) { buildCounterGoogleAppsCardV1DateTimePicker++; if (buildCounterGoogleAppsCardV1DateTimePicker < 3) { + checkHostAppDataSourceMarkup(o.hostAppDataSource!); unittest.expect(o.label!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); checkGoogleAppsCardV1Action(o.onChangeAction!); @@ -1338,12 +1419,115 @@ void checkGoogleAppsCardV1Divider(api.GoogleAppsCardV1Divider o) { buildCounterGoogleAppsCardV1Divider--; } -core.List buildUnnamed14() => [ +core.List buildUnnamed15() => [ + buildGoogleAppsCardV1Trigger(), + buildGoogleAppsCardV1Trigger(), +]; + +void checkUnnamed15(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleAppsCardV1Trigger(o[0]); + checkGoogleAppsCardV1Trigger(o[1]); +} + +core.int buildCounterGoogleAppsCardV1EventAction = 0; +api.GoogleAppsCardV1EventAction buildGoogleAppsCardV1EventAction() { + final o = api.GoogleAppsCardV1EventAction(); + buildCounterGoogleAppsCardV1EventAction++; + if (buildCounterGoogleAppsCardV1EventAction < 3) { + o.actionRuleId = 'foo'; + o.commonWidgetAction = buildGoogleAppsCardV1CommonWidgetAction(); + o.postEventTriggers = buildUnnamed15(); + } + buildCounterGoogleAppsCardV1EventAction--; + return o; +} + +void checkGoogleAppsCardV1EventAction(api.GoogleAppsCardV1EventAction o) { + buildCounterGoogleAppsCardV1EventAction++; + if (buildCounterGoogleAppsCardV1EventAction < 3) { + unittest.expect(o.actionRuleId!, unittest.equals('foo')); + checkGoogleAppsCardV1CommonWidgetAction(o.commonWidgetAction!); + checkUnnamed15(o.postEventTriggers!); + } + buildCounterGoogleAppsCardV1EventAction--; +} + +core.List buildUnnamed16() => [ + buildGoogleAppsCardV1Condition(), + buildGoogleAppsCardV1Condition(), +]; + +void checkUnnamed16(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleAppsCardV1Condition(o[0]); + checkGoogleAppsCardV1Condition(o[1]); +} + +core.List buildUnnamed17() => [ + buildGoogleAppsCardV1EventAction(), + buildGoogleAppsCardV1EventAction(), +]; + +void checkUnnamed17(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleAppsCardV1EventAction(o[0]); + checkGoogleAppsCardV1EventAction(o[1]); +} + +core.int buildCounterGoogleAppsCardV1ExpressionData = 0; +api.GoogleAppsCardV1ExpressionData buildGoogleAppsCardV1ExpressionData() { + final o = api.GoogleAppsCardV1ExpressionData(); + buildCounterGoogleAppsCardV1ExpressionData++; + if (buildCounterGoogleAppsCardV1ExpressionData < 3) { + o.conditions = buildUnnamed16(); + o.eventActions = buildUnnamed17(); + o.expression = 'foo'; + o.id = 'foo'; + } + buildCounterGoogleAppsCardV1ExpressionData--; + return o; +} + +void checkGoogleAppsCardV1ExpressionData(api.GoogleAppsCardV1ExpressionData o) { + buildCounterGoogleAppsCardV1ExpressionData++; + if (buildCounterGoogleAppsCardV1ExpressionData < 3) { + checkUnnamed16(o.conditions!); + checkUnnamed17(o.eventActions!); + unittest.expect(o.expression!, unittest.equals('foo')); + unittest.expect(o.id!, unittest.equals('foo')); + } + buildCounterGoogleAppsCardV1ExpressionData--; +} + +core.int buildCounterGoogleAppsCardV1ExpressionDataCondition = 0; +api.GoogleAppsCardV1ExpressionDataCondition +buildGoogleAppsCardV1ExpressionDataCondition() { + final o = api.GoogleAppsCardV1ExpressionDataCondition(); + buildCounterGoogleAppsCardV1ExpressionDataCondition++; + if (buildCounterGoogleAppsCardV1ExpressionDataCondition < 3) { + o.conditionType = 'foo'; + } + buildCounterGoogleAppsCardV1ExpressionDataCondition--; + return o; +} + +void checkGoogleAppsCardV1ExpressionDataCondition( + api.GoogleAppsCardV1ExpressionDataCondition o, +) { + buildCounterGoogleAppsCardV1ExpressionDataCondition++; + if (buildCounterGoogleAppsCardV1ExpressionDataCondition < 3) { + unittest.expect(o.conditionType!, unittest.equals('foo')); + } + buildCounterGoogleAppsCardV1ExpressionDataCondition--; +} + +core.List buildUnnamed18() => [ buildGoogleAppsCardV1GridItem(), buildGoogleAppsCardV1GridItem(), ]; -void checkUnnamed14(core.List o) { +void checkUnnamed18(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsCardV1GridItem(o[0]); checkGoogleAppsCardV1GridItem(o[1]); @@ -1356,7 +1540,7 @@ api.GoogleAppsCardV1Grid buildGoogleAppsCardV1Grid() { if (buildCounterGoogleAppsCardV1Grid < 3) { o.borderStyle = buildGoogleAppsCardV1BorderStyle(); o.columnCount = 42; - o.items = buildUnnamed14(); + o.items = buildUnnamed18(); o.onClick = buildGoogleAppsCardV1OnClick(); o.title = 'foo'; } @@ -1369,7 +1553,7 @@ void checkGoogleAppsCardV1Grid(api.GoogleAppsCardV1Grid o) { if (buildCounterGoogleAppsCardV1Grid < 3) { checkGoogleAppsCardV1BorderStyle(o.borderStyle!); unittest.expect(o.columnCount!, unittest.equals(42)); - checkUnnamed14(o.items!); + checkUnnamed18(o.items!); checkGoogleAppsCardV1OnClick(o.onClick!); unittest.expect(o.title!, unittest.equals('foo')); } @@ -1597,12 +1781,12 @@ void checkGoogleAppsCardV1OpenLink(api.GoogleAppsCardV1OpenLink o) { buildCounterGoogleAppsCardV1OpenLink--; } -core.List buildUnnamed15() => [ +core.List buildUnnamed19() => [ buildGoogleAppsCardV1OverflowMenuItem(), buildGoogleAppsCardV1OverflowMenuItem(), ]; -void checkUnnamed15(core.List o) { +void checkUnnamed19(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsCardV1OverflowMenuItem(o[0]); checkGoogleAppsCardV1OverflowMenuItem(o[1]); @@ -1613,7 +1797,7 @@ api.GoogleAppsCardV1OverflowMenu buildGoogleAppsCardV1OverflowMenu() { final o = api.GoogleAppsCardV1OverflowMenu(); buildCounterGoogleAppsCardV1OverflowMenu++; if (buildCounterGoogleAppsCardV1OverflowMenu < 3) { - o.items = buildUnnamed15(); + o.items = buildUnnamed19(); } buildCounterGoogleAppsCardV1OverflowMenu--; return o; @@ -1622,7 +1806,7 @@ api.GoogleAppsCardV1OverflowMenu buildGoogleAppsCardV1OverflowMenu() { void checkGoogleAppsCardV1OverflowMenu(api.GoogleAppsCardV1OverflowMenu o) { buildCounterGoogleAppsCardV1OverflowMenu++; if (buildCounterGoogleAppsCardV1OverflowMenu < 3) { - checkUnnamed15(o.items!); + checkUnnamed19(o.items!); } buildCounterGoogleAppsCardV1OverflowMenu--; } @@ -1678,12 +1862,12 @@ void checkGoogleAppsCardV1PlatformDataSource( buildCounterGoogleAppsCardV1PlatformDataSource--; } -core.List buildUnnamed16() => [ +core.List buildUnnamed20() => [ buildGoogleAppsCardV1Widget(), buildGoogleAppsCardV1Widget(), ]; -void checkUnnamed16(core.List o) { +void checkUnnamed20(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsCardV1Widget(o[0]); checkGoogleAppsCardV1Widget(o[1]); @@ -1697,8 +1881,9 @@ api.GoogleAppsCardV1Section buildGoogleAppsCardV1Section() { o.collapseControl = buildGoogleAppsCardV1CollapseControl(); o.collapsible = true; o.header = 'foo'; + o.id = 'foo'; o.uncollapsibleWidgetsCount = 42; - o.widgets = buildUnnamed16(); + o.widgets = buildUnnamed20(); } buildCounterGoogleAppsCardV1Section--; return o; @@ -1710,18 +1895,30 @@ void checkGoogleAppsCardV1Section(api.GoogleAppsCardV1Section o) { checkGoogleAppsCardV1CollapseControl(o.collapseControl!); unittest.expect(o.collapsible!, unittest.isTrue); unittest.expect(o.header!, unittest.equals('foo')); + unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.uncollapsibleWidgetsCount!, unittest.equals(42)); - checkUnnamed16(o.widgets!); + checkUnnamed20(o.widgets!); } buildCounterGoogleAppsCardV1Section--; } -core.List buildUnnamed17() => [ +core.List buildUnnamed21() => [ + buildGoogleAppsCardV1DataSourceConfig(), + buildGoogleAppsCardV1DataSourceConfig(), +]; + +void checkUnnamed21(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleAppsCardV1DataSourceConfig(o[0]); + checkGoogleAppsCardV1DataSourceConfig(o[1]); +} + +core.List buildUnnamed22() => [ buildGoogleAppsCardV1SelectionItem(), buildGoogleAppsCardV1SelectionItem(), ]; -void checkUnnamed17(core.List o) { +void checkUnnamed22(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsCardV1SelectionItem(o[0]); checkGoogleAppsCardV1SelectionItem(o[1]); @@ -1732,9 +1929,10 @@ api.GoogleAppsCardV1SelectionInput buildGoogleAppsCardV1SelectionInput() { final o = api.GoogleAppsCardV1SelectionInput(); buildCounterGoogleAppsCardV1SelectionInput++; if (buildCounterGoogleAppsCardV1SelectionInput < 3) { + o.dataSourceConfigs = buildUnnamed21(); o.externalDataSource = buildGoogleAppsCardV1Action(); o.hintText = 'foo'; - o.items = buildUnnamed17(); + o.items = buildUnnamed22(); o.label = 'foo'; o.multiSelectMaxSelectedItems = 42; o.multiSelectMinQueryLength = 42; @@ -1750,9 +1948,10 @@ api.GoogleAppsCardV1SelectionInput buildGoogleAppsCardV1SelectionInput() { void checkGoogleAppsCardV1SelectionInput(api.GoogleAppsCardV1SelectionInput o) { buildCounterGoogleAppsCardV1SelectionInput++; if (buildCounterGoogleAppsCardV1SelectionInput < 3) { + checkUnnamed21(o.dataSourceConfigs!); checkGoogleAppsCardV1Action(o.externalDataSource!); unittest.expect(o.hintText!, unittest.equals('foo')); - checkUnnamed17(o.items!); + checkUnnamed22(o.items!); unittest.expect(o.label!, unittest.equals('foo')); unittest.expect(o.multiSelectMaxSelectedItems!, unittest.equals(42)); unittest.expect(o.multiSelectMinQueryLength!, unittest.equals(42)); @@ -1810,12 +2009,12 @@ void checkGoogleAppsCardV1SuggestionItem(api.GoogleAppsCardV1SuggestionItem o) { buildCounterGoogleAppsCardV1SuggestionItem--; } -core.List buildUnnamed18() => [ +core.List buildUnnamed23() => [ buildGoogleAppsCardV1SuggestionItem(), buildGoogleAppsCardV1SuggestionItem(), ]; -void checkUnnamed18(core.List o) { +void checkUnnamed23(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsCardV1SuggestionItem(o[0]); checkGoogleAppsCardV1SuggestionItem(o[1]); @@ -1826,7 +2025,7 @@ api.GoogleAppsCardV1Suggestions buildGoogleAppsCardV1Suggestions() { final o = api.GoogleAppsCardV1Suggestions(); buildCounterGoogleAppsCardV1Suggestions++; if (buildCounterGoogleAppsCardV1Suggestions < 3) { - o.items = buildUnnamed18(); + o.items = buildUnnamed23(); } buildCounterGoogleAppsCardV1Suggestions--; return o; @@ -1835,7 +2034,7 @@ api.GoogleAppsCardV1Suggestions buildGoogleAppsCardV1Suggestions() { void checkGoogleAppsCardV1Suggestions(api.GoogleAppsCardV1Suggestions o) { buildCounterGoogleAppsCardV1Suggestions++; if (buildCounterGoogleAppsCardV1Suggestions < 3) { - checkUnnamed18(o.items!); + checkUnnamed23(o.items!); } buildCounterGoogleAppsCardV1Suggestions--; } @@ -1874,6 +2073,7 @@ api.GoogleAppsCardV1TextInput buildGoogleAppsCardV1TextInput() { if (buildCounterGoogleAppsCardV1TextInput < 3) { o.autoCompleteAction = buildGoogleAppsCardV1Action(); o.hintText = 'foo'; + o.hostAppDataSource = buildHostAppDataSourceMarkup(); o.initialSuggestions = buildGoogleAppsCardV1Suggestions(); o.label = 'foo'; o.name = 'foo'; @@ -1892,6 +2092,7 @@ void checkGoogleAppsCardV1TextInput(api.GoogleAppsCardV1TextInput o) { if (buildCounterGoogleAppsCardV1TextInput < 3) { checkGoogleAppsCardV1Action(o.autoCompleteAction!); unittest.expect(o.hintText!, unittest.equals('foo')); + checkHostAppDataSourceMarkup(o.hostAppDataSource!); checkGoogleAppsCardV1Suggestions(o.initialSuggestions!); unittest.expect(o.label!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); @@ -1925,6 +2126,47 @@ void checkGoogleAppsCardV1TextParagraph(api.GoogleAppsCardV1TextParagraph o) { buildCounterGoogleAppsCardV1TextParagraph--; } +core.int buildCounterGoogleAppsCardV1Trigger = 0; +api.GoogleAppsCardV1Trigger buildGoogleAppsCardV1Trigger() { + final o = api.GoogleAppsCardV1Trigger(); + buildCounterGoogleAppsCardV1Trigger++; + if (buildCounterGoogleAppsCardV1Trigger < 3) { + o.actionRuleId = 'foo'; + } + buildCounterGoogleAppsCardV1Trigger--; + return o; +} + +void checkGoogleAppsCardV1Trigger(api.GoogleAppsCardV1Trigger o) { + buildCounterGoogleAppsCardV1Trigger++; + if (buildCounterGoogleAppsCardV1Trigger < 3) { + unittest.expect(o.actionRuleId!, unittest.equals('foo')); + } + buildCounterGoogleAppsCardV1Trigger--; +} + +core.int buildCounterGoogleAppsCardV1UpdateVisibilityAction = 0; +api.GoogleAppsCardV1UpdateVisibilityAction +buildGoogleAppsCardV1UpdateVisibilityAction() { + final o = api.GoogleAppsCardV1UpdateVisibilityAction(); + buildCounterGoogleAppsCardV1UpdateVisibilityAction++; + if (buildCounterGoogleAppsCardV1UpdateVisibilityAction < 3) { + o.visibility = 'foo'; + } + buildCounterGoogleAppsCardV1UpdateVisibilityAction--; + return o; +} + +void checkGoogleAppsCardV1UpdateVisibilityAction( + api.GoogleAppsCardV1UpdateVisibilityAction o, +) { + buildCounterGoogleAppsCardV1UpdateVisibilityAction++; + if (buildCounterGoogleAppsCardV1UpdateVisibilityAction < 3) { + unittest.expect(o.visibility!, unittest.equals('foo')); + } + buildCounterGoogleAppsCardV1UpdateVisibilityAction--; +} + core.int buildCounterGoogleAppsCardV1Validation = 0; api.GoogleAppsCardV1Validation buildGoogleAppsCardV1Validation() { final o = api.GoogleAppsCardV1Validation(); @@ -1946,6 +2188,17 @@ void checkGoogleAppsCardV1Validation(api.GoogleAppsCardV1Validation o) { buildCounterGoogleAppsCardV1Validation--; } +core.List buildUnnamed24() => [ + buildGoogleAppsCardV1EventAction(), + buildGoogleAppsCardV1EventAction(), +]; + +void checkUnnamed24(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleAppsCardV1EventAction(o[0]); + checkGoogleAppsCardV1EventAction(o[1]); +} + core.int buildCounterGoogleAppsCardV1Widget = 0; api.GoogleAppsCardV1Widget buildGoogleAppsCardV1Widget() { final o = api.GoogleAppsCardV1Widget(); @@ -1958,12 +2211,15 @@ api.GoogleAppsCardV1Widget buildGoogleAppsCardV1Widget() { o.dateTimePicker = buildGoogleAppsCardV1DateTimePicker(); o.decoratedText = buildGoogleAppsCardV1DecoratedText(); o.divider = buildGoogleAppsCardV1Divider(); + o.eventActions = buildUnnamed24(); o.grid = buildGoogleAppsCardV1Grid(); o.horizontalAlignment = 'foo'; + o.id = 'foo'; o.image = buildGoogleAppsCardV1Image(); o.selectionInput = buildGoogleAppsCardV1SelectionInput(); o.textInput = buildGoogleAppsCardV1TextInput(); o.textParagraph = buildGoogleAppsCardV1TextParagraph(); + o.visibility = 'foo'; } buildCounterGoogleAppsCardV1Widget--; return o; @@ -1979,12 +2235,15 @@ void checkGoogleAppsCardV1Widget(api.GoogleAppsCardV1Widget o) { checkGoogleAppsCardV1DateTimePicker(o.dateTimePicker!); checkGoogleAppsCardV1DecoratedText(o.decoratedText!); checkGoogleAppsCardV1Divider(o.divider!); + checkUnnamed24(o.eventActions!); checkGoogleAppsCardV1Grid(o.grid!); unittest.expect(o.horizontalAlignment!, unittest.equals('foo')); + unittest.expect(o.id!, unittest.equals('foo')); checkGoogleAppsCardV1Image(o.image!); checkGoogleAppsCardV1SelectionInput(o.selectionInput!); checkGoogleAppsCardV1TextInput(o.textInput!); checkGoogleAppsCardV1TextParagraph(o.textParagraph!); + unittest.expect(o.visibility!, unittest.equals('foo')); } buildCounterGoogleAppsCardV1Widget--; } @@ -2047,6 +2306,7 @@ api.HostAppDataSourceMarkup buildHostAppDataSourceMarkup() { buildCounterHostAppDataSourceMarkup++; if (buildCounterHostAppDataSourceMarkup < 3) { o.chatDataSource = buildChatClientDataSourceMarkup(); + o.workflowDataSource = buildWorkflowDataSourceMarkup(); } buildCounterHostAppDataSourceMarkup--; return o; @@ -2056,6 +2316,7 @@ void checkHostAppDataSourceMarkup(api.HostAppDataSourceMarkup o) { buildCounterHostAppDataSourceMarkup++; if (buildCounterHostAppDataSourceMarkup < 3) { checkChatClientDataSourceMarkup(o.chatDataSource!); + checkWorkflowDataSourceMarkup(o.workflowDataSource!); } buildCounterHostAppDataSourceMarkup--; } @@ -2141,12 +2402,12 @@ void checkKeyValue(api.KeyValue o) { buildCounterKeyValue--; } -core.List buildUnnamed19() => [ +core.List buildUnnamed25() => [ buildCustomEmoji(), buildCustomEmoji(), ]; -void checkUnnamed19(core.List o) { +void checkUnnamed25(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCustomEmoji(o[0]); checkCustomEmoji(o[1]); @@ -2157,7 +2418,7 @@ api.ListCustomEmojisResponse buildListCustomEmojisResponse() { final o = api.ListCustomEmojisResponse(); buildCounterListCustomEmojisResponse++; if (buildCounterListCustomEmojisResponse < 3) { - o.customEmojis = buildUnnamed19(); + o.customEmojis = buildUnnamed25(); o.nextPageToken = 'foo'; } buildCounterListCustomEmojisResponse--; @@ -2167,18 +2428,18 @@ api.ListCustomEmojisResponse buildListCustomEmojisResponse() { void checkListCustomEmojisResponse(api.ListCustomEmojisResponse o) { buildCounterListCustomEmojisResponse++; if (buildCounterListCustomEmojisResponse < 3) { - checkUnnamed19(o.customEmojis!); + checkUnnamed25(o.customEmojis!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListCustomEmojisResponse--; } -core.List buildUnnamed20() => [ +core.List buildUnnamed26() => [ buildMembership(), buildMembership(), ]; -void checkUnnamed20(core.List o) { +void checkUnnamed26(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMembership(o[0]); checkMembership(o[1]); @@ -2189,7 +2450,7 @@ api.ListMembershipsResponse buildListMembershipsResponse() { final o = api.ListMembershipsResponse(); buildCounterListMembershipsResponse++; if (buildCounterListMembershipsResponse < 3) { - o.memberships = buildUnnamed20(); + o.memberships = buildUnnamed26(); o.nextPageToken = 'foo'; } buildCounterListMembershipsResponse--; @@ -2199,15 +2460,15 @@ api.ListMembershipsResponse buildListMembershipsResponse() { void checkListMembershipsResponse(api.ListMembershipsResponse o) { buildCounterListMembershipsResponse++; if (buildCounterListMembershipsResponse < 3) { - checkUnnamed20(o.memberships!); + checkUnnamed26(o.memberships!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListMembershipsResponse--; } -core.List buildUnnamed21() => [buildMessage(), buildMessage()]; +core.List buildUnnamed27() => [buildMessage(), buildMessage()]; -void checkUnnamed21(core.List o) { +void checkUnnamed27(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMessage(o[0]); checkMessage(o[1]); @@ -2218,7 +2479,7 @@ api.ListMessagesResponse buildListMessagesResponse() { final o = api.ListMessagesResponse(); buildCounterListMessagesResponse++; if (buildCounterListMessagesResponse < 3) { - o.messages = buildUnnamed21(); + o.messages = buildUnnamed27(); o.nextPageToken = 'foo'; } buildCounterListMessagesResponse--; @@ -2228,15 +2489,15 @@ api.ListMessagesResponse buildListMessagesResponse() { void checkListMessagesResponse(api.ListMessagesResponse o) { buildCounterListMessagesResponse++; if (buildCounterListMessagesResponse < 3) { - checkUnnamed21(o.messages!); + checkUnnamed27(o.messages!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListMessagesResponse--; } -core.List buildUnnamed22() => [buildReaction(), buildReaction()]; +core.List buildUnnamed28() => [buildReaction(), buildReaction()]; -void checkUnnamed22(core.List o) { +void checkUnnamed28(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkReaction(o[0]); checkReaction(o[1]); @@ -2248,7 +2509,7 @@ api.ListReactionsResponse buildListReactionsResponse() { buildCounterListReactionsResponse++; if (buildCounterListReactionsResponse < 3) { o.nextPageToken = 'foo'; - o.reactions = buildUnnamed22(); + o.reactions = buildUnnamed28(); } buildCounterListReactionsResponse--; return o; @@ -2258,17 +2519,17 @@ void checkListReactionsResponse(api.ListReactionsResponse o) { buildCounterListReactionsResponse++; if (buildCounterListReactionsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed22(o.reactions!); + checkUnnamed28(o.reactions!); } buildCounterListReactionsResponse--; } -core.List buildUnnamed23() => [ +core.List buildUnnamed29() => [ buildSpaceEvent(), buildSpaceEvent(), ]; -void checkUnnamed23(core.List o) { +void checkUnnamed29(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSpaceEvent(o[0]); checkSpaceEvent(o[1]); @@ -2280,7 +2541,7 @@ api.ListSpaceEventsResponse buildListSpaceEventsResponse() { buildCounterListSpaceEventsResponse++; if (buildCounterListSpaceEventsResponse < 3) { o.nextPageToken = 'foo'; - o.spaceEvents = buildUnnamed23(); + o.spaceEvents = buildUnnamed29(); } buildCounterListSpaceEventsResponse--; return o; @@ -2290,14 +2551,14 @@ void checkListSpaceEventsResponse(api.ListSpaceEventsResponse o) { buildCounterListSpaceEventsResponse++; if (buildCounterListSpaceEventsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed23(o.spaceEvents!); + checkUnnamed29(o.spaceEvents!); } buildCounterListSpaceEventsResponse--; } -core.List buildUnnamed24() => [buildSpace(), buildSpace()]; +core.List buildUnnamed30() => [buildSpace(), buildSpace()]; -void checkUnnamed24(core.List o) { +void checkUnnamed30(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSpace(o[0]); checkSpace(o[1]); @@ -2309,7 +2570,7 @@ api.ListSpacesResponse buildListSpacesResponse() { buildCounterListSpacesResponse++; if (buildCounterListSpacesResponse < 3) { o.nextPageToken = 'foo'; - o.spaces = buildUnnamed24(); + o.spaces = buildUnnamed30(); } buildCounterListSpacesResponse--; return o; @@ -2319,7 +2580,7 @@ void checkListSpacesResponse(api.ListSpacesResponse o) { buildCounterListSpacesResponse++; if (buildCounterListSpacesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed24(o.spaces!); + checkUnnamed30(o.spaces!); } buildCounterListSpacesResponse--; } @@ -2416,12 +2677,12 @@ void checkMembership(api.Membership o) { buildCounterMembership--; } -core.List buildUnnamed25() => [ +core.List buildUnnamed31() => [ buildMembershipCreatedEventData(), buildMembershipCreatedEventData(), ]; -void checkUnnamed25(core.List o) { +void checkUnnamed31(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMembershipCreatedEventData(o[0]); checkMembershipCreatedEventData(o[1]); @@ -2432,7 +2693,7 @@ api.MembershipBatchCreatedEventData buildMembershipBatchCreatedEventData() { final o = api.MembershipBatchCreatedEventData(); buildCounterMembershipBatchCreatedEventData++; if (buildCounterMembershipBatchCreatedEventData < 3) { - o.memberships = buildUnnamed25(); + o.memberships = buildUnnamed31(); } buildCounterMembershipBatchCreatedEventData--; return o; @@ -2443,17 +2704,17 @@ void checkMembershipBatchCreatedEventData( ) { buildCounterMembershipBatchCreatedEventData++; if (buildCounterMembershipBatchCreatedEventData < 3) { - checkUnnamed25(o.memberships!); + checkUnnamed31(o.memberships!); } buildCounterMembershipBatchCreatedEventData--; } -core.List buildUnnamed26() => [ +core.List buildUnnamed32() => [ buildMembershipDeletedEventData(), buildMembershipDeletedEventData(), ]; -void checkUnnamed26(core.List o) { +void checkUnnamed32(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMembershipDeletedEventData(o[0]); checkMembershipDeletedEventData(o[1]); @@ -2464,7 +2725,7 @@ api.MembershipBatchDeletedEventData buildMembershipBatchDeletedEventData() { final o = api.MembershipBatchDeletedEventData(); buildCounterMembershipBatchDeletedEventData++; if (buildCounterMembershipBatchDeletedEventData < 3) { - o.memberships = buildUnnamed26(); + o.memberships = buildUnnamed32(); } buildCounterMembershipBatchDeletedEventData--; return o; @@ -2475,17 +2736,17 @@ void checkMembershipBatchDeletedEventData( ) { buildCounterMembershipBatchDeletedEventData++; if (buildCounterMembershipBatchDeletedEventData < 3) { - checkUnnamed26(o.memberships!); + checkUnnamed32(o.memberships!); } buildCounterMembershipBatchDeletedEventData--; } -core.List buildUnnamed27() => [ +core.List buildUnnamed33() => [ buildMembershipUpdatedEventData(), buildMembershipUpdatedEventData(), ]; -void checkUnnamed27(core.List o) { +void checkUnnamed33(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMembershipUpdatedEventData(o[0]); checkMembershipUpdatedEventData(o[1]); @@ -2496,7 +2757,7 @@ api.MembershipBatchUpdatedEventData buildMembershipBatchUpdatedEventData() { final o = api.MembershipBatchUpdatedEventData(); buildCounterMembershipBatchUpdatedEventData++; if (buildCounterMembershipBatchUpdatedEventData < 3) { - o.memberships = buildUnnamed27(); + o.memberships = buildUnnamed33(); } buildCounterMembershipBatchUpdatedEventData--; return o; @@ -2507,7 +2768,7 @@ void checkMembershipBatchUpdatedEventData( ) { buildCounterMembershipBatchUpdatedEventData++; if (buildCounterMembershipBatchUpdatedEventData < 3) { - checkUnnamed27(o.memberships!); + checkUnnamed33(o.memberships!); } buildCounterMembershipBatchUpdatedEventData--; } @@ -2590,75 +2851,75 @@ void checkMembershipUpdatedEventData(api.MembershipUpdatedEventData o) { buildCounterMembershipUpdatedEventData--; } -core.List buildUnnamed28() => [ +core.List buildUnnamed34() => [ buildAccessoryWidget(), buildAccessoryWidget(), ]; -void checkUnnamed28(core.List o) { +void checkUnnamed34(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAccessoryWidget(o[0]); checkAccessoryWidget(o[1]); } -core.List buildUnnamed29() => [ +core.List buildUnnamed35() => [ buildAnnotation(), buildAnnotation(), ]; -void checkUnnamed29(core.List o) { +void checkUnnamed35(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); } -core.List buildUnnamed30() => [ +core.List buildUnnamed36() => [ buildAttachedGif(), buildAttachedGif(), ]; -void checkUnnamed30(core.List o) { +void checkUnnamed36(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedGif(o[0]); checkAttachedGif(o[1]); } -core.List buildUnnamed31() => [ +core.List buildUnnamed37() => [ buildAttachment(), buildAttachment(), ]; -void checkUnnamed31(core.List o) { +void checkUnnamed37(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); } -core.List buildUnnamed32() => [buildCard(), buildCard()]; +core.List buildUnnamed38() => [buildCard(), buildCard()]; -void checkUnnamed32(core.List o) { +void checkUnnamed38(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCard(o[0]); checkCard(o[1]); } -core.List buildUnnamed33() => [ +core.List buildUnnamed39() => [ buildCardWithId(), buildCardWithId(), ]; -void checkUnnamed33(core.List o) { +void checkUnnamed39(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCardWithId(o[0]); checkCardWithId(o[1]); } -core.List buildUnnamed34() => [ +core.List buildUnnamed40() => [ buildEmojiReactionSummary(), buildEmojiReactionSummary(), ]; -void checkUnnamed34(core.List o) { +void checkUnnamed40(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkEmojiReactionSummary(o[0]); checkEmojiReactionSummary(o[1]); @@ -2669,19 +2930,19 @@ api.Message buildMessage() { final o = api.Message(); buildCounterMessage++; if (buildCounterMessage < 3) { - o.accessoryWidgets = buildUnnamed28(); + o.accessoryWidgets = buildUnnamed34(); o.actionResponse = buildActionResponse(); - o.annotations = buildUnnamed29(); + o.annotations = buildUnnamed35(); o.argumentText = 'foo'; - o.attachedGifs = buildUnnamed30(); - o.attachment = buildUnnamed31(); - o.cards = buildUnnamed32(); - o.cardsV2 = buildUnnamed33(); + o.attachedGifs = buildUnnamed36(); + o.attachment = buildUnnamed37(); + o.cards = buildUnnamed38(); + o.cardsV2 = buildUnnamed39(); o.clientAssignedMessageId = 'foo'; o.createTime = 'foo'; o.deleteTime = 'foo'; o.deletionMetadata = buildDeletionMetadata(); - o.emojiReactionSummaries = buildUnnamed34(); + o.emojiReactionSummaries = buildUnnamed40(); o.fallbackText = 'foo'; o.formattedText = 'foo'; o.lastUpdateTime = 'foo'; @@ -2703,19 +2964,19 @@ api.Message buildMessage() { void checkMessage(api.Message o) { buildCounterMessage++; if (buildCounterMessage < 3) { - checkUnnamed28(o.accessoryWidgets!); + checkUnnamed34(o.accessoryWidgets!); checkActionResponse(o.actionResponse!); - checkUnnamed29(o.annotations!); + checkUnnamed35(o.annotations!); unittest.expect(o.argumentText!, unittest.equals('foo')); - checkUnnamed30(o.attachedGifs!); - checkUnnamed31(o.attachment!); - checkUnnamed32(o.cards!); - checkUnnamed33(o.cardsV2!); + checkUnnamed36(o.attachedGifs!); + checkUnnamed37(o.attachment!); + checkUnnamed38(o.cards!); + checkUnnamed39(o.cardsV2!); unittest.expect(o.clientAssignedMessageId!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.deleteTime!, unittest.equals('foo')); checkDeletionMetadata(o.deletionMetadata!); - checkUnnamed34(o.emojiReactionSummaries!); + checkUnnamed40(o.emojiReactionSummaries!); unittest.expect(o.fallbackText!, unittest.equals('foo')); unittest.expect(o.formattedText!, unittest.equals('foo')); unittest.expect(o.lastUpdateTime!, unittest.equals('foo')); @@ -2733,12 +2994,12 @@ void checkMessage(api.Message o) { buildCounterMessage--; } -core.List buildUnnamed35() => [ +core.List buildUnnamed41() => [ buildMessageCreatedEventData(), buildMessageCreatedEventData(), ]; -void checkUnnamed35(core.List o) { +void checkUnnamed41(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMessageCreatedEventData(o[0]); checkMessageCreatedEventData(o[1]); @@ -2749,7 +3010,7 @@ api.MessageBatchCreatedEventData buildMessageBatchCreatedEventData() { final o = api.MessageBatchCreatedEventData(); buildCounterMessageBatchCreatedEventData++; if (buildCounterMessageBatchCreatedEventData < 3) { - o.messages = buildUnnamed35(); + o.messages = buildUnnamed41(); } buildCounterMessageBatchCreatedEventData--; return o; @@ -2758,17 +3019,17 @@ api.MessageBatchCreatedEventData buildMessageBatchCreatedEventData() { void checkMessageBatchCreatedEventData(api.MessageBatchCreatedEventData o) { buildCounterMessageBatchCreatedEventData++; if (buildCounterMessageBatchCreatedEventData < 3) { - checkUnnamed35(o.messages!); + checkUnnamed41(o.messages!); } buildCounterMessageBatchCreatedEventData--; } -core.List buildUnnamed36() => [ +core.List buildUnnamed42() => [ buildMessageDeletedEventData(), buildMessageDeletedEventData(), ]; -void checkUnnamed36(core.List o) { +void checkUnnamed42(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMessageDeletedEventData(o[0]); checkMessageDeletedEventData(o[1]); @@ -2779,7 +3040,7 @@ api.MessageBatchDeletedEventData buildMessageBatchDeletedEventData() { final o = api.MessageBatchDeletedEventData(); buildCounterMessageBatchDeletedEventData++; if (buildCounterMessageBatchDeletedEventData < 3) { - o.messages = buildUnnamed36(); + o.messages = buildUnnamed42(); } buildCounterMessageBatchDeletedEventData--; return o; @@ -2788,17 +3049,17 @@ api.MessageBatchDeletedEventData buildMessageBatchDeletedEventData() { void checkMessageBatchDeletedEventData(api.MessageBatchDeletedEventData o) { buildCounterMessageBatchDeletedEventData++; if (buildCounterMessageBatchDeletedEventData < 3) { - checkUnnamed36(o.messages!); + checkUnnamed42(o.messages!); } buildCounterMessageBatchDeletedEventData--; } -core.List buildUnnamed37() => [ +core.List buildUnnamed43() => [ buildMessageUpdatedEventData(), buildMessageUpdatedEventData(), ]; -void checkUnnamed37(core.List o) { +void checkUnnamed43(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMessageUpdatedEventData(o[0]); checkMessageUpdatedEventData(o[1]); @@ -2809,7 +3070,7 @@ api.MessageBatchUpdatedEventData buildMessageBatchUpdatedEventData() { final o = api.MessageBatchUpdatedEventData(); buildCounterMessageBatchUpdatedEventData++; if (buildCounterMessageBatchUpdatedEventData < 3) { - o.messages = buildUnnamed37(); + o.messages = buildUnnamed43(); } buildCounterMessageBatchUpdatedEventData--; return o; @@ -2818,7 +3079,7 @@ api.MessageBatchUpdatedEventData buildMessageBatchUpdatedEventData() { void checkMessageBatchUpdatedEventData(api.MessageBatchUpdatedEventData o) { buildCounterMessageBatchUpdatedEventData++; if (buildCounterMessageBatchUpdatedEventData < 3) { - checkUnnamed37(o.messages!); + checkUnnamed43(o.messages!); } buildCounterMessageBatchUpdatedEventData--; } @@ -3018,12 +3279,12 @@ void checkReaction(api.Reaction o) { buildCounterReaction--; } -core.List buildUnnamed38() => [ +core.List buildUnnamed44() => [ buildReactionCreatedEventData(), buildReactionCreatedEventData(), ]; -void checkUnnamed38(core.List o) { +void checkUnnamed44(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkReactionCreatedEventData(o[0]); checkReactionCreatedEventData(o[1]); @@ -3034,7 +3295,7 @@ api.ReactionBatchCreatedEventData buildReactionBatchCreatedEventData() { final o = api.ReactionBatchCreatedEventData(); buildCounterReactionBatchCreatedEventData++; if (buildCounterReactionBatchCreatedEventData < 3) { - o.reactions = buildUnnamed38(); + o.reactions = buildUnnamed44(); } buildCounterReactionBatchCreatedEventData--; return o; @@ -3043,17 +3304,17 @@ api.ReactionBatchCreatedEventData buildReactionBatchCreatedEventData() { void checkReactionBatchCreatedEventData(api.ReactionBatchCreatedEventData o) { buildCounterReactionBatchCreatedEventData++; if (buildCounterReactionBatchCreatedEventData < 3) { - checkUnnamed38(o.reactions!); + checkUnnamed44(o.reactions!); } buildCounterReactionBatchCreatedEventData--; } -core.List buildUnnamed39() => [ +core.List buildUnnamed45() => [ buildReactionDeletedEventData(), buildReactionDeletedEventData(), ]; -void checkUnnamed39(core.List o) { +void checkUnnamed45(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkReactionDeletedEventData(o[0]); checkReactionDeletedEventData(o[1]); @@ -3064,7 +3325,7 @@ api.ReactionBatchDeletedEventData buildReactionBatchDeletedEventData() { final o = api.ReactionBatchDeletedEventData(); buildCounterReactionBatchDeletedEventData++; if (buildCounterReactionBatchDeletedEventData < 3) { - o.reactions = buildUnnamed39(); + o.reactions = buildUnnamed45(); } buildCounterReactionBatchDeletedEventData--; return o; @@ -3073,7 +3334,7 @@ api.ReactionBatchDeletedEventData buildReactionBatchDeletedEventData() { void checkReactionBatchDeletedEventData(api.ReactionBatchDeletedEventData o) { buildCounterReactionBatchDeletedEventData++; if (buildCounterReactionBatchDeletedEventData < 3) { - checkUnnamed39(o.reactions!); + checkUnnamed45(o.reactions!); } buildCounterReactionBatchDeletedEventData--; } @@ -3145,9 +3406,9 @@ void checkRichLinkMetadata(api.RichLinkMetadata o) { buildCounterRichLinkMetadata--; } -core.List buildUnnamed40() => [buildSpace(), buildSpace()]; +core.List buildUnnamed46() => [buildSpace(), buildSpace()]; -void checkUnnamed40(core.List o) { +void checkUnnamed46(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSpace(o[0]); checkSpace(o[1]); @@ -3159,7 +3420,7 @@ api.SearchSpacesResponse buildSearchSpacesResponse() { buildCounterSearchSpacesResponse++; if (buildCounterSearchSpacesResponse < 3) { o.nextPageToken = 'foo'; - o.spaces = buildUnnamed40(); + o.spaces = buildUnnamed46(); o.totalSize = 42; } buildCounterSearchSpacesResponse--; @@ -3170,18 +3431,18 @@ void checkSearchSpacesResponse(api.SearchSpacesResponse o) { buildCounterSearchSpacesResponse++; if (buildCounterSearchSpacesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed40(o.spaces!); + checkUnnamed46(o.spaces!); unittest.expect(o.totalSize!, unittest.equals(42)); } buildCounterSearchSpacesResponse--; } -core.List buildUnnamed41() => [ +core.List buildUnnamed47() => [ buildWidgetMarkup(), buildWidgetMarkup(), ]; -void checkUnnamed41(core.List o) { +void checkUnnamed47(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkWidgetMarkup(o[0]); checkWidgetMarkup(o[1]); @@ -3193,7 +3454,7 @@ api.Section buildSection() { buildCounterSection++; if (buildCounterSection < 3) { o.header = 'foo'; - o.widgets = buildUnnamed41(); + o.widgets = buildUnnamed47(); } buildCounterSection--; return o; @@ -3203,17 +3464,17 @@ void checkSection(api.Section o) { buildCounterSection++; if (buildCounterSection < 3) { unittest.expect(o.header!, unittest.equals('foo')); - checkUnnamed41(o.widgets!); + checkUnnamed47(o.widgets!); } buildCounterSection--; } -core.List buildUnnamed42() => [ +core.List buildUnnamed48() => [ buildGoogleAppsCardV1SelectionItem(), buildGoogleAppsCardV1SelectionItem(), ]; -void checkUnnamed42(core.List o) { +void checkUnnamed48(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsCardV1SelectionItem(o[0]); checkGoogleAppsCardV1SelectionItem(o[1]); @@ -3224,7 +3485,7 @@ api.SelectionItems buildSelectionItems() { final o = api.SelectionItems(); buildCounterSelectionItems++; if (buildCounterSelectionItems < 3) { - o.items = buildUnnamed42(); + o.items = buildUnnamed48(); } buildCounterSelectionItems--; return o; @@ -3233,17 +3494,17 @@ api.SelectionItems buildSelectionItems() { void checkSelectionItems(api.SelectionItems o) { buildCounterSelectionItems++; if (buildCounterSelectionItems < 3) { - checkUnnamed42(o.items!); + checkUnnamed48(o.items!); } buildCounterSelectionItems--; } -core.List buildUnnamed43() => [ +core.List buildUnnamed49() => [ buildMembership(), buildMembership(), ]; -void checkUnnamed43(core.List o) { +void checkUnnamed49(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMembership(o[0]); checkMembership(o[1]); @@ -3254,7 +3515,7 @@ api.SetUpSpaceRequest buildSetUpSpaceRequest() { final o = api.SetUpSpaceRequest(); buildCounterSetUpSpaceRequest++; if (buildCounterSetUpSpaceRequest < 3) { - o.memberships = buildUnnamed43(); + o.memberships = buildUnnamed49(); o.requestId = 'foo'; o.space = buildSpace(); } @@ -3265,7 +3526,7 @@ api.SetUpSpaceRequest buildSetUpSpaceRequest() { void checkSetUpSpaceRequest(api.SetUpSpaceRequest o) { buildCounterSetUpSpaceRequest++; if (buildCounterSetUpSpaceRequest < 3) { - checkUnnamed43(o.memberships!); + checkUnnamed49(o.memberships!); unittest.expect(o.requestId!, unittest.equals('foo')); checkSpace(o.space!); } @@ -3377,12 +3638,12 @@ void checkSpace(api.Space o) { buildCounterSpace--; } -core.List buildUnnamed44() => [ +core.List buildUnnamed50() => [ buildSpaceUpdatedEventData(), buildSpaceUpdatedEventData(), ]; -void checkUnnamed44(core.List o) { +void checkUnnamed50(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSpaceUpdatedEventData(o[0]); checkSpaceUpdatedEventData(o[1]); @@ -3393,7 +3654,7 @@ api.SpaceBatchUpdatedEventData buildSpaceBatchUpdatedEventData() { final o = api.SpaceBatchUpdatedEventData(); buildCounterSpaceBatchUpdatedEventData++; if (buildCounterSpaceBatchUpdatedEventData < 3) { - o.spaces = buildUnnamed44(); + o.spaces = buildUnnamed50(); } buildCounterSpaceBatchUpdatedEventData--; return o; @@ -3402,7 +3663,7 @@ api.SpaceBatchUpdatedEventData buildSpaceBatchUpdatedEventData() { void checkSpaceBatchUpdatedEventData(api.SpaceBatchUpdatedEventData o) { buildCounterSpaceBatchUpdatedEventData++; if (buildCounterSpaceBatchUpdatedEventData < 3) { - checkUnnamed44(o.spaces!); + checkUnnamed50(o.spaces!); } buildCounterSpaceBatchUpdatedEventData--; } @@ -3758,9 +4019,9 @@ void checkUserMentionMetadata(api.UserMentionMetadata o) { buildCounterUserMentionMetadata--; } -core.List buildUnnamed45() => [buildButton(), buildButton()]; +core.List buildUnnamed51() => [buildButton(), buildButton()]; -void checkUnnamed45(core.List o) { +void checkUnnamed51(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkButton(o[0]); checkButton(o[1]); @@ -3771,7 +4032,7 @@ api.WidgetMarkup buildWidgetMarkup() { final o = api.WidgetMarkup(); buildCounterWidgetMarkup++; if (buildCounterWidgetMarkup < 3) { - o.buttons = buildUnnamed45(); + o.buttons = buildUnnamed51(); o.image = buildImage(); o.keyValue = buildKeyValue(); o.textParagraph = buildTextParagraph(); @@ -3783,7 +4044,7 @@ api.WidgetMarkup buildWidgetMarkup() { void checkWidgetMarkup(api.WidgetMarkup o) { buildCounterWidgetMarkup++; if (buildCounterWidgetMarkup < 3) { - checkUnnamed45(o.buttons!); + checkUnnamed51(o.buttons!); checkImage(o.image!); checkKeyValue(o.keyValue!); checkTextParagraph(o.textParagraph!); @@ -3791,6 +4052,27 @@ void checkWidgetMarkup(api.WidgetMarkup o) { buildCounterWidgetMarkup--; } +core.int buildCounterWorkflowDataSourceMarkup = 0; +api.WorkflowDataSourceMarkup buildWorkflowDataSourceMarkup() { + final o = api.WorkflowDataSourceMarkup(); + buildCounterWorkflowDataSourceMarkup++; + if (buildCounterWorkflowDataSourceMarkup < 3) { + o.includeVariables = true; + o.type = 'foo'; + } + buildCounterWorkflowDataSourceMarkup--; + return o; +} + +void checkWorkflowDataSourceMarkup(api.WorkflowDataSourceMarkup o) { + buildCounterWorkflowDataSourceMarkup++; + if (buildCounterWorkflowDataSourceMarkup < 3) { + unittest.expect(o.includeVariables!, unittest.isTrue); + unittest.expect(o.type!, unittest.equals('foo')); + } + buildCounterWorkflowDataSourceMarkup--; +} + void main() { unittest.group('obj-schema-AccessSettings', () { unittest.test('to-json--from-json', () async { @@ -4320,6 +4602,39 @@ void main() { }); }); + unittest.group('obj-schema-GoogleAppsCardV1CommonWidgetAction', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleAppsCardV1CommonWidgetAction(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleAppsCardV1CommonWidgetAction.fromJson( + oJson as core.Map, + ); + checkGoogleAppsCardV1CommonWidgetAction(od); + }); + }); + + unittest.group('obj-schema-GoogleAppsCardV1Condition', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleAppsCardV1Condition(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleAppsCardV1Condition.fromJson( + oJson as core.Map, + ); + checkGoogleAppsCardV1Condition(od); + }); + }); + + unittest.group('obj-schema-GoogleAppsCardV1DataSourceConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleAppsCardV1DataSourceConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleAppsCardV1DataSourceConfig.fromJson( + oJson as core.Map, + ); + checkGoogleAppsCardV1DataSourceConfig(od); + }); + }); + unittest.group('obj-schema-GoogleAppsCardV1DateTimePicker', () { unittest.test('to-json--from-json', () async { final o = buildGoogleAppsCardV1DateTimePicker(); @@ -4353,6 +4668,39 @@ void main() { }); }); + unittest.group('obj-schema-GoogleAppsCardV1EventAction', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleAppsCardV1EventAction(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleAppsCardV1EventAction.fromJson( + oJson as core.Map, + ); + checkGoogleAppsCardV1EventAction(od); + }); + }); + + unittest.group('obj-schema-GoogleAppsCardV1ExpressionData', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleAppsCardV1ExpressionData(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleAppsCardV1ExpressionData.fromJson( + oJson as core.Map, + ); + checkGoogleAppsCardV1ExpressionData(od); + }); + }); + + unittest.group('obj-schema-GoogleAppsCardV1ExpressionDataCondition', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleAppsCardV1ExpressionDataCondition(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleAppsCardV1ExpressionDataCondition.fromJson( + oJson as core.Map, + ); + checkGoogleAppsCardV1ExpressionDataCondition(od); + }); + }); + unittest.group('obj-schema-GoogleAppsCardV1Grid', () { unittest.test('to-json--from-json', () async { final o = buildGoogleAppsCardV1Grid(); @@ -4584,6 +4932,28 @@ void main() { }); }); + unittest.group('obj-schema-GoogleAppsCardV1Trigger', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleAppsCardV1Trigger(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleAppsCardV1Trigger.fromJson( + oJson as core.Map, + ); + checkGoogleAppsCardV1Trigger(od); + }); + }); + + unittest.group('obj-schema-GoogleAppsCardV1UpdateVisibilityAction', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleAppsCardV1UpdateVisibilityAction(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleAppsCardV1UpdateVisibilityAction.fromJson( + oJson as core.Map, + ); + checkGoogleAppsCardV1UpdateVisibilityAction(od); + }); + }); + unittest.group('obj-schema-GoogleAppsCardV1Validation', () { unittest.test('to-json--from-json', () async { final o = buildGoogleAppsCardV1Validation(); @@ -5321,6 +5691,17 @@ void main() { }); }); + unittest.group('obj-schema-WorkflowDataSourceMarkup', () { + unittest.test('to-json--from-json', () async { + final o = buildWorkflowDataSourceMarkup(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.WorkflowDataSourceMarkup.fromJson( + oJson as core.Map, + ); + checkWorkflowDataSourceMarkup(od); + }); + }); + unittest.group('resource-CustomEmojisResource', () { unittest.test('method--create', () async { final mock = HttpServerMock(); diff --git a/generated/googleapis/test/cloudbuild/v1_test.dart b/generated/googleapis/test/cloudbuild/v1_test.dart index cae3279b0..ff6e34768 100644 --- a/generated/googleapis/test/cloudbuild/v1_test.dart +++ b/generated/googleapis/test/cloudbuild/v1_test.dart @@ -3121,6 +3121,7 @@ api.WorkerConfig buildWorkerConfig() { buildCounterWorkerConfig++; if (buildCounterWorkerConfig < 3) { o.diskSizeGb = 'foo'; + o.enableNestedVirtualization = true; o.machineType = 'foo'; } buildCounterWorkerConfig--; @@ -3131,6 +3132,7 @@ void checkWorkerConfig(api.WorkerConfig o) { buildCounterWorkerConfig++; if (buildCounterWorkerConfig < 3) { unittest.expect(o.diskSizeGb!, unittest.equals('foo')); + unittest.expect(o.enableNestedVirtualization!, unittest.isTrue); unittest.expect(o.machineType!, unittest.equals('foo')); } buildCounterWorkerConfig--; diff --git a/generated/googleapis/test/cloudchannel/v1_test.dart b/generated/googleapis/test/cloudchannel/v1_test.dart index f3ccb24b4..cde77b32d 100644 --- a/generated/googleapis/test/cloudchannel/v1_test.dart +++ b/generated/googleapis/test/cloudchannel/v1_test.dart @@ -794,6 +794,32 @@ void checkGoogleCloudChannelV1DateRange(api.GoogleCloudChannelV1DateRange o) { buildCounterGoogleCloudChannelV1DateRange--; } +core.int buildCounterGoogleCloudChannelV1DiscountComponent = 0; +api.GoogleCloudChannelV1DiscountComponent +buildGoogleCloudChannelV1DiscountComponent() { + final o = api.GoogleCloudChannelV1DiscountComponent(); + buildCounterGoogleCloudChannelV1DiscountComponent++; + if (buildCounterGoogleCloudChannelV1DiscountComponent < 3) { + o.discountAbsolute = buildGoogleTypeMoney(); + o.discountPercentage = 42.0; + o.discountType = 'foo'; + } + buildCounterGoogleCloudChannelV1DiscountComponent--; + return o; +} + +void checkGoogleCloudChannelV1DiscountComponent( + api.GoogleCloudChannelV1DiscountComponent o, +) { + buildCounterGoogleCloudChannelV1DiscountComponent++; + if (buildCounterGoogleCloudChannelV1DiscountComponent < 3) { + checkGoogleTypeMoney(o.discountAbsolute!); + unittest.expect(o.discountPercentage!, unittest.equals(42.0)); + unittest.expect(o.discountType!, unittest.equals('foo')); + } + buildCounterGoogleCloudChannelV1DiscountComponent--; +} + core.int buildCounterGoogleCloudChannelV1EduData = 0; api.GoogleCloudChannelV1EduData buildGoogleCloudChannelV1EduData() { final o = api.GoogleCloudChannelV1EduData(); @@ -1958,6 +1984,17 @@ void checkGoogleCloudChannelV1Plan(api.GoogleCloudChannelV1Plan o) { buildCounterGoogleCloudChannelV1Plan--; } +core.List buildUnnamed31() => [ + buildGoogleCloudChannelV1DiscountComponent(), + buildGoogleCloudChannelV1DiscountComponent(), +]; + +void checkUnnamed31(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudChannelV1DiscountComponent(o[0]); + checkGoogleCloudChannelV1DiscountComponent(o[1]); +} + core.int buildCounterGoogleCloudChannelV1Price = 0; api.GoogleCloudChannelV1Price buildGoogleCloudChannelV1Price() { final o = api.GoogleCloudChannelV1Price(); @@ -1965,8 +2002,10 @@ api.GoogleCloudChannelV1Price buildGoogleCloudChannelV1Price() { if (buildCounterGoogleCloudChannelV1Price < 3) { o.basePrice = buildGoogleTypeMoney(); o.discount = 42.0; + o.discountComponents = buildUnnamed31(); o.effectivePrice = buildGoogleTypeMoney(); o.externalPriceUri = 'foo'; + o.pricePeriod = buildGoogleCloudChannelV1Period(); } buildCounterGoogleCloudChannelV1Price--; return o; @@ -1977,18 +2016,20 @@ void checkGoogleCloudChannelV1Price(api.GoogleCloudChannelV1Price o) { if (buildCounterGoogleCloudChannelV1Price < 3) { checkGoogleTypeMoney(o.basePrice!); unittest.expect(o.discount!, unittest.equals(42.0)); + checkUnnamed31(o.discountComponents!); checkGoogleTypeMoney(o.effectivePrice!); unittest.expect(o.externalPriceUri!, unittest.equals('foo')); + checkGoogleCloudChannelV1Period(o.pricePeriod!); } buildCounterGoogleCloudChannelV1Price--; } -core.List buildUnnamed31() => [ +core.List buildUnnamed32() => [ buildGoogleCloudChannelV1PricePhase(), buildGoogleCloudChannelV1PricePhase(), ]; -void checkUnnamed31(core.List o) { +void checkUnnamed32(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudChannelV1PricePhase(o[0]); checkGoogleCloudChannelV1PricePhase(o[1]); @@ -2001,7 +2042,7 @@ buildGoogleCloudChannelV1PriceByResource() { buildCounterGoogleCloudChannelV1PriceByResource++; if (buildCounterGoogleCloudChannelV1PriceByResource < 3) { o.price = buildGoogleCloudChannelV1Price(); - o.pricePhases = buildUnnamed31(); + o.pricePhases = buildUnnamed32(); o.resourceType = 'foo'; } buildCounterGoogleCloudChannelV1PriceByResource--; @@ -2014,18 +2055,18 @@ void checkGoogleCloudChannelV1PriceByResource( buildCounterGoogleCloudChannelV1PriceByResource++; if (buildCounterGoogleCloudChannelV1PriceByResource < 3) { checkGoogleCloudChannelV1Price(o.price!); - checkUnnamed31(o.pricePhases!); + checkUnnamed32(o.pricePhases!); unittest.expect(o.resourceType!, unittest.equals('foo')); } buildCounterGoogleCloudChannelV1PriceByResource--; } -core.List buildUnnamed32() => [ +core.List buildUnnamed33() => [ buildGoogleCloudChannelV1PriceTier(), buildGoogleCloudChannelV1PriceTier(), ]; -void checkUnnamed32(core.List o) { +void checkUnnamed33(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudChannelV1PriceTier(o[0]); checkGoogleCloudChannelV1PriceTier(o[1]); @@ -2040,7 +2081,7 @@ api.GoogleCloudChannelV1PricePhase buildGoogleCloudChannelV1PricePhase() { o.lastPeriod = 42; o.periodType = 'foo'; o.price = buildGoogleCloudChannelV1Price(); - o.priceTiers = buildUnnamed32(); + o.priceTiers = buildUnnamed33(); } buildCounterGoogleCloudChannelV1PricePhase--; return o; @@ -2053,7 +2094,7 @@ void checkGoogleCloudChannelV1PricePhase(api.GoogleCloudChannelV1PricePhase o) { unittest.expect(o.lastPeriod!, unittest.equals(42)); unittest.expect(o.periodType!, unittest.equals('foo')); checkGoogleCloudChannelV1Price(o.price!); - checkUnnamed32(o.priceTiers!); + checkUnnamed33(o.priceTiers!); } buildCounterGoogleCloudChannelV1PricePhase--; } @@ -2200,12 +2241,12 @@ void checkGoogleCloudChannelV1PurchasableSku( buildCounterGoogleCloudChannelV1PurchasableSku--; } -core.List buildUnnamed33() => [ +core.List buildUnnamed34() => [ buildGoogleCloudChannelV1SkuPurchaseGroup(), buildGoogleCloudChannelV1SkuPurchaseGroup(), ]; -void checkUnnamed33(core.List o) { +void checkUnnamed34(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudChannelV1SkuPurchaseGroup(o[0]); checkGoogleCloudChannelV1SkuPurchaseGroup(o[1]); @@ -2219,7 +2260,7 @@ buildGoogleCloudChannelV1QueryEligibleBillingAccountsResponse() { buildCounterGoogleCloudChannelV1QueryEligibleBillingAccountsResponse++; if (buildCounterGoogleCloudChannelV1QueryEligibleBillingAccountsResponse < 3) { - o.skuPurchaseGroups = buildUnnamed33(); + o.skuPurchaseGroups = buildUnnamed34(); } buildCounterGoogleCloudChannelV1QueryEligibleBillingAccountsResponse--; return o; @@ -2231,7 +2272,7 @@ void checkGoogleCloudChannelV1QueryEligibleBillingAccountsResponse( buildCounterGoogleCloudChannelV1QueryEligibleBillingAccountsResponse++; if (buildCounterGoogleCloudChannelV1QueryEligibleBillingAccountsResponse < 3) { - checkUnnamed33(o.skuPurchaseGroups!); + checkUnnamed34(o.skuPurchaseGroups!); } buildCounterGoogleCloudChannelV1QueryEligibleBillingAccountsResponse--; } @@ -2312,12 +2353,12 @@ void checkGoogleCloudChannelV1RenewalSettings( buildCounterGoogleCloudChannelV1RenewalSettings--; } -core.List buildUnnamed34() => [ +core.List buildUnnamed35() => [ buildGoogleCloudChannelV1Column(), buildGoogleCloudChannelV1Column(), ]; -void checkUnnamed34(core.List o) { +void checkUnnamed35(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudChannelV1Column(o[0]); checkGoogleCloudChannelV1Column(o[1]); @@ -2328,7 +2369,7 @@ api.GoogleCloudChannelV1Report buildGoogleCloudChannelV1Report() { final o = api.GoogleCloudChannelV1Report(); buildCounterGoogleCloudChannelV1Report++; if (buildCounterGoogleCloudChannelV1Report < 3) { - o.columns = buildUnnamed34(); + o.columns = buildUnnamed35(); o.description = 'foo'; o.displayName = 'foo'; o.name = 'foo'; @@ -2340,7 +2381,7 @@ api.GoogleCloudChannelV1Report buildGoogleCloudChannelV1Report() { void checkGoogleCloudChannelV1Report(api.GoogleCloudChannelV1Report o) { buildCounterGoogleCloudChannelV1Report++; if (buildCounterGoogleCloudChannelV1Report < 3) { - checkUnnamed34(o.columns!); + checkUnnamed35(o.columns!); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); @@ -2451,12 +2492,12 @@ void checkGoogleCloudChannelV1RepricingCondition( buildCounterGoogleCloudChannelV1RepricingCondition--; } -core.List buildUnnamed35() => [ +core.List buildUnnamed36() => [ buildGoogleCloudChannelV1ConditionalOverride(), buildGoogleCloudChannelV1ConditionalOverride(), ]; -void checkUnnamed35(core.List o) { +void checkUnnamed36(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudChannelV1ConditionalOverride(o[0]); checkGoogleCloudChannelV1ConditionalOverride(o[1]); @@ -2471,7 +2512,7 @@ buildGoogleCloudChannelV1RepricingConfig() { o.adjustment = buildGoogleCloudChannelV1RepricingAdjustment(); o.channelPartnerGranularity = buildGoogleCloudChannelV1RepricingConfigChannelPartnerGranularity(); - o.conditionalOverrides = buildUnnamed35(); + o.conditionalOverrides = buildUnnamed36(); o.effectiveInvoiceMonth = buildGoogleTypeDate(); o.entitlementGranularity = buildGoogleCloudChannelV1RepricingConfigEntitlementGranularity(); @@ -2490,7 +2531,7 @@ void checkGoogleCloudChannelV1RepricingConfig( checkGoogleCloudChannelV1RepricingConfigChannelPartnerGranularity( o.channelPartnerGranularity!, ); - checkUnnamed35(o.conditionalOverrides!); + checkUnnamed36(o.conditionalOverrides!); checkGoogleTypeDate(o.effectiveInvoiceMonth!); checkGoogleCloudChannelV1RepricingConfigEntitlementGranularity( o.entitlementGranularity!, @@ -2546,12 +2587,12 @@ void checkGoogleCloudChannelV1RepricingConfigEntitlementGranularity( buildCounterGoogleCloudChannelV1RepricingConfigEntitlementGranularity--; } -core.List buildUnnamed36() => [ +core.List buildUnnamed37() => [ buildGoogleCloudChannelV1ReportValue(), buildGoogleCloudChannelV1ReportValue(), ]; -void checkUnnamed36(core.List o) { +void checkUnnamed37(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudChannelV1ReportValue(o[0]); checkGoogleCloudChannelV1ReportValue(o[1]); @@ -2563,7 +2604,7 @@ api.GoogleCloudChannelV1Row buildGoogleCloudChannelV1Row() { buildCounterGoogleCloudChannelV1Row++; if (buildCounterGoogleCloudChannelV1Row < 3) { o.partitionKey = 'foo'; - o.values = buildUnnamed36(); + o.values = buildUnnamed37(); } buildCounterGoogleCloudChannelV1Row--; return o; @@ -2573,7 +2614,7 @@ void checkGoogleCloudChannelV1Row(api.GoogleCloudChannelV1Row o) { buildCounterGoogleCloudChannelV1Row++; if (buildCounterGoogleCloudChannelV1Row < 3) { unittest.expect(o.partitionKey!, unittest.equals('foo')); - checkUnnamed36(o.values!); + checkUnnamed37(o.values!); } buildCounterGoogleCloudChannelV1Row--; } @@ -2671,12 +2712,12 @@ void checkGoogleCloudChannelV1SkuGroupCondition( } core.List -buildUnnamed37() => [ +buildUnnamed38() => [ buildGoogleCloudChannelV1BillingAccountPurchaseInfo(), buildGoogleCloudChannelV1BillingAccountPurchaseInfo(), ]; -void checkUnnamed37( +void checkUnnamed38( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -2684,9 +2725,9 @@ void checkUnnamed37( checkGoogleCloudChannelV1BillingAccountPurchaseInfo(o[1]); } -core.List buildUnnamed38() => ['foo', 'foo']; +core.List buildUnnamed39() => ['foo', 'foo']; -void checkUnnamed38(core.List o) { +void checkUnnamed39(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2698,8 +2739,8 @@ buildGoogleCloudChannelV1SkuPurchaseGroup() { final o = api.GoogleCloudChannelV1SkuPurchaseGroup(); buildCounterGoogleCloudChannelV1SkuPurchaseGroup++; if (buildCounterGoogleCloudChannelV1SkuPurchaseGroup < 3) { - o.billingAccountPurchaseInfos = buildUnnamed37(); - o.skus = buildUnnamed38(); + o.billingAccountPurchaseInfos = buildUnnamed38(); + o.skus = buildUnnamed39(); } buildCounterGoogleCloudChannelV1SkuPurchaseGroup--; return o; @@ -2710,8 +2751,8 @@ void checkGoogleCloudChannelV1SkuPurchaseGroup( ) { buildCounterGoogleCloudChannelV1SkuPurchaseGroup++; if (buildCounterGoogleCloudChannelV1SkuPurchaseGroup < 3) { - checkUnnamed37(o.billingAccountPurchaseInfos!); - checkUnnamed38(o.skus!); + checkUnnamed38(o.billingAccountPurchaseInfos!); + checkUnnamed39(o.skus!); } buildCounterGoogleCloudChannelV1SkuPurchaseGroup--; } @@ -2786,12 +2827,12 @@ void checkGoogleCloudChannelV1TransferEligibility( buildCounterGoogleCloudChannelV1TransferEligibility--; } -core.List buildUnnamed39() => [ +core.List buildUnnamed40() => [ buildGoogleCloudChannelV1Entitlement(), buildGoogleCloudChannelV1Entitlement(), ]; -void checkUnnamed39(core.List o) { +void checkUnnamed40(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudChannelV1Entitlement(o[0]); checkGoogleCloudChannelV1Entitlement(o[1]); @@ -2804,7 +2845,7 @@ buildGoogleCloudChannelV1TransferEntitlementsRequest() { buildCounterGoogleCloudChannelV1TransferEntitlementsRequest++; if (buildCounterGoogleCloudChannelV1TransferEntitlementsRequest < 3) { o.authToken = 'foo'; - o.entitlements = buildUnnamed39(); + o.entitlements = buildUnnamed40(); o.requestId = 'foo'; } buildCounterGoogleCloudChannelV1TransferEntitlementsRequest--; @@ -2817,18 +2858,18 @@ void checkGoogleCloudChannelV1TransferEntitlementsRequest( buildCounterGoogleCloudChannelV1TransferEntitlementsRequest++; if (buildCounterGoogleCloudChannelV1TransferEntitlementsRequest < 3) { unittest.expect(o.authToken!, unittest.equals('foo')); - checkUnnamed39(o.entitlements!); + checkUnnamed40(o.entitlements!); unittest.expect(o.requestId!, unittest.equals('foo')); } buildCounterGoogleCloudChannelV1TransferEntitlementsRequest--; } -core.List buildUnnamed40() => [ +core.List buildUnnamed41() => [ buildGoogleCloudChannelV1Entitlement(), buildGoogleCloudChannelV1Entitlement(), ]; -void checkUnnamed40(core.List o) { +void checkUnnamed41(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudChannelV1Entitlement(o[0]); checkGoogleCloudChannelV1Entitlement(o[1]); @@ -2841,7 +2882,7 @@ buildGoogleCloudChannelV1TransferEntitlementsToGoogleRequest() { final o = api.GoogleCloudChannelV1TransferEntitlementsToGoogleRequest(); buildCounterGoogleCloudChannelV1TransferEntitlementsToGoogleRequest++; if (buildCounterGoogleCloudChannelV1TransferEntitlementsToGoogleRequest < 3) { - o.entitlements = buildUnnamed40(); + o.entitlements = buildUnnamed41(); o.requestId = 'foo'; } buildCounterGoogleCloudChannelV1TransferEntitlementsToGoogleRequest--; @@ -2853,7 +2894,7 @@ void checkGoogleCloudChannelV1TransferEntitlementsToGoogleRequest( ) { buildCounterGoogleCloudChannelV1TransferEntitlementsToGoogleRequest++; if (buildCounterGoogleCloudChannelV1TransferEntitlementsToGoogleRequest < 3) { - checkUnnamed40(o.entitlements!); + checkUnnamed41(o.entitlements!); unittest.expect(o.requestId!, unittest.equals('foo')); } buildCounterGoogleCloudChannelV1TransferEntitlementsToGoogleRequest--; @@ -3004,7 +3045,7 @@ void checkGoogleCloudChannelV1UpdateChannelPartnerLinkRequest( buildCounterGoogleCloudChannelV1UpdateChannelPartnerLinkRequest--; } -core.Map buildUnnamed41() => { +core.Map buildUnnamed42() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -3017,7 +3058,7 @@ core.Map buildUnnamed41() => { }, }; -void checkUnnamed41(core.Map o) { +void checkUnnamed42(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o['x']!) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -3039,7 +3080,7 @@ api.GoogleCloudChannelV1Value buildGoogleCloudChannelV1Value() { o.boolValue = true; o.doubleValue = 42.0; o.int64Value = 'foo'; - o.protoValue = buildUnnamed41(); + o.protoValue = buildUnnamed42(); o.stringValue = 'foo'; } buildCounterGoogleCloudChannelV1Value--; @@ -3052,7 +3093,7 @@ void checkGoogleCloudChannelV1Value(api.GoogleCloudChannelV1Value o) { unittest.expect(o.boolValue!, unittest.isTrue); unittest.expect(o.doubleValue!, unittest.equals(42.0)); unittest.expect(o.int64Value!, unittest.equals('foo')); - checkUnnamed41(o.protoValue!); + checkUnnamed42(o.protoValue!); unittest.expect(o.stringValue!, unittest.equals('foo')); } buildCounterGoogleCloudChannelV1Value--; @@ -3076,12 +3117,12 @@ void checkGoogleLongrunningCancelOperationRequest( buildCounterGoogleLongrunningCancelOperationRequest--; } -core.List buildUnnamed42() => [ +core.List buildUnnamed43() => [ buildGoogleLongrunningOperation(), buildGoogleLongrunningOperation(), ]; -void checkUnnamed42(core.List o) { +void checkUnnamed43(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0]); checkGoogleLongrunningOperation(o[1]); @@ -3094,7 +3135,7 @@ buildGoogleLongrunningListOperationsResponse() { buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = 'foo'; - o.operations = buildUnnamed42(); + o.operations = buildUnnamed43(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; @@ -3106,12 +3147,12 @@ void checkGoogleLongrunningListOperationsResponse( buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed42(o.operations!); + checkUnnamed43(o.operations!); } buildCounterGoogleLongrunningListOperationsResponse--; } -core.Map buildUnnamed43() => { +core.Map buildUnnamed44() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -3124,7 +3165,7 @@ core.Map buildUnnamed43() => { }, }; -void checkUnnamed43(core.Map o) { +void checkUnnamed44(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o['x']!) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -3138,7 +3179,7 @@ void checkUnnamed43(core.Map o) { unittest.expect(casted4['string'], unittest.equals('foo')); } -core.Map buildUnnamed44() => { +core.Map buildUnnamed45() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -3151,7 +3192,7 @@ core.Map buildUnnamed44() => { }, }; -void checkUnnamed44(core.Map o) { +void checkUnnamed45(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o['x']!) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -3172,9 +3213,9 @@ api.GoogleLongrunningOperation buildGoogleLongrunningOperation() { if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed43(); + o.metadata = buildUnnamed44(); o.name = 'foo'; - o.response = buildUnnamed44(); + o.response = buildUnnamed45(); } buildCounterGoogleLongrunningOperation--; return o; @@ -3185,9 +3226,9 @@ void checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkGoogleRpcStatus(o.error!); - checkUnnamed43(o.metadata!); + checkUnnamed44(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed44(o.response!); + checkUnnamed45(o.response!); } buildCounterGoogleLongrunningOperation--; } @@ -3207,7 +3248,7 @@ void checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { buildCounterGoogleProtobufEmpty--; } -core.Map buildUnnamed45() => { +core.Map buildUnnamed46() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -3220,7 +3261,7 @@ core.Map buildUnnamed45() => { }, }; -void checkUnnamed45(core.Map o) { +void checkUnnamed46(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o['x']!) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -3234,15 +3275,15 @@ void checkUnnamed45(core.Map o) { unittest.expect(casted8['string'], unittest.equals('foo')); } -core.List> buildUnnamed46() => [ - buildUnnamed45(), - buildUnnamed45(), +core.List> buildUnnamed47() => [ + buildUnnamed46(), + buildUnnamed46(), ]; -void checkUnnamed46(core.List> o) { +void checkUnnamed47(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed45(o[0]); - checkUnnamed45(o[1]); + checkUnnamed46(o[0]); + checkUnnamed46(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -3251,7 +3292,7 @@ api.GoogleRpcStatus buildGoogleRpcStatus() { buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed46(); + o.details = buildUnnamed47(); o.message = 'foo'; } buildCounterGoogleRpcStatus--; @@ -3262,7 +3303,7 @@ void checkGoogleRpcStatus(api.GoogleRpcStatus o) { buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed46(o.details!); + checkUnnamed47(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; @@ -3368,17 +3409,17 @@ void checkGoogleTypeMoney(api.GoogleTypeMoney o) { buildCounterGoogleTypeMoney--; } -core.List buildUnnamed47() => ['foo', 'foo']; +core.List buildUnnamed48() => ['foo', 'foo']; -void checkUnnamed47(core.List o) { +void checkUnnamed48(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed48() => ['foo', 'foo']; +core.List buildUnnamed49() => ['foo', 'foo']; -void checkUnnamed48(core.List o) { +void checkUnnamed49(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3389,13 +3430,13 @@ api.GoogleTypePostalAddress buildGoogleTypePostalAddress() { final o = api.GoogleTypePostalAddress(); buildCounterGoogleTypePostalAddress++; if (buildCounterGoogleTypePostalAddress < 3) { - o.addressLines = buildUnnamed47(); + o.addressLines = buildUnnamed48(); o.administrativeArea = 'foo'; o.languageCode = 'foo'; o.locality = 'foo'; o.organization = 'foo'; o.postalCode = 'foo'; - o.recipients = buildUnnamed48(); + o.recipients = buildUnnamed49(); o.regionCode = 'foo'; o.revision = 42; o.sortingCode = 'foo'; @@ -3408,13 +3449,13 @@ api.GoogleTypePostalAddress buildGoogleTypePostalAddress() { void checkGoogleTypePostalAddress(api.GoogleTypePostalAddress o) { buildCounterGoogleTypePostalAddress++; if (buildCounterGoogleTypePostalAddress < 3) { - checkUnnamed47(o.addressLines!); + checkUnnamed48(o.addressLines!); unittest.expect(o.administrativeArea!, unittest.equals('foo')); unittest.expect(o.languageCode!, unittest.equals('foo')); unittest.expect(o.locality!, unittest.equals('foo')); unittest.expect(o.organization!, unittest.equals('foo')); unittest.expect(o.postalCode!, unittest.equals('foo')); - checkUnnamed48(o.recipients!); + checkUnnamed49(o.recipients!); unittest.expect(o.regionCode!, unittest.equals('foo')); unittest.expect(o.revision!, unittest.equals(42)); unittest.expect(o.sortingCode!, unittest.equals('foo')); @@ -3444,9 +3485,9 @@ void checkGoogleTypeTimeZone(api.GoogleTypeTimeZone o) { buildCounterGoogleTypeTimeZone--; } -core.List buildUnnamed49() => ['foo', 'foo']; +core.List buildUnnamed50() => ['foo', 'foo']; -void checkUnnamed49(core.List o) { +void checkUnnamed50(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3767,6 +3808,17 @@ void main() { }); }); + unittest.group('obj-schema-GoogleCloudChannelV1DiscountComponent', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudChannelV1DiscountComponent(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudChannelV1DiscountComponent.fromJson( + oJson as core.Map, + ); + checkGoogleCloudChannelV1DiscountComponent(od); + }); + }); + unittest.group('obj-schema-GoogleCloudChannelV1EduData', () { unittest.test('to-json--from-json', () async { final o = buildGoogleCloudChannelV1EduData(); @@ -6886,7 +6938,7 @@ void main() { final mock = HttpServerMock(); final res = api.CloudchannelApi(mock).accounts.customers; final arg_customer = 'foo'; - final arg_skus = buildUnnamed49(); + final arg_skus = buildUnnamed50(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { diff --git a/generated/googleapis/test/cloudidentity/v1_test.dart b/generated/googleapis/test/cloudidentity/v1_test.dart index 2e181fc2f..db636d0fe 100644 --- a/generated/googleapis/test/cloudidentity/v1_test.dart +++ b/generated/googleapis/test/cloudidentity/v1_test.dart @@ -1143,6 +1143,33 @@ void checkIdpCredential(api.IdpCredential o) { buildCounterIdpCredential--; } +core.int buildCounterInboundOidcSsoProfile = 0; +api.InboundOidcSsoProfile buildInboundOidcSsoProfile() { + final o = api.InboundOidcSsoProfile(); + buildCounterInboundOidcSsoProfile++; + if (buildCounterInboundOidcSsoProfile < 3) { + o.customer = 'foo'; + o.displayName = 'foo'; + o.idpConfig = buildOidcIdpConfig(); + o.name = 'foo'; + o.rpConfig = buildOidcRpConfig(); + } + buildCounterInboundOidcSsoProfile--; + return o; +} + +void checkInboundOidcSsoProfile(api.InboundOidcSsoProfile o) { + buildCounterInboundOidcSsoProfile++; + if (buildCounterInboundOidcSsoProfile < 3) { + unittest.expect(o.customer!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + checkOidcIdpConfig(o.idpConfig!); + unittest.expect(o.name!, unittest.equals('foo')); + checkOidcRpConfig(o.rpConfig!); + } + buildCounterInboundOidcSsoProfile--; +} + core.int buildCounterInboundSamlSsoProfile = 0; api.InboundSamlSsoProfile buildInboundSamlSsoProfile() { final o = api.InboundSamlSsoProfile(); @@ -1177,6 +1204,7 @@ api.InboundSsoAssignment buildInboundSsoAssignment() { if (buildCounterInboundSsoAssignment < 3) { o.customer = 'foo'; o.name = 'foo'; + o.oidcSsoInfo = buildOidcSsoInfo(); o.rank = 42; o.samlSsoInfo = buildSamlSsoInfo(); o.signInBehavior = buildSignInBehavior(); @@ -1193,6 +1221,7 @@ void checkInboundSsoAssignment(api.InboundSsoAssignment o) { if (buildCounterInboundSsoAssignment < 3) { unittest.expect(o.customer!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); + checkOidcSsoInfo(o.oidcSsoInfo!); unittest.expect(o.rank!, unittest.equals(42)); checkSamlSsoInfo(o.samlSsoInfo!); checkSignInBehavior(o.signInBehavior!); @@ -1283,12 +1312,47 @@ void checkListIdpCredentialsResponse(api.ListIdpCredentialsResponse o) { buildCounterListIdpCredentialsResponse--; } -core.List buildUnnamed18() => [ +core.List buildUnnamed18() => [ + buildInboundOidcSsoProfile(), + buildInboundOidcSsoProfile(), +]; + +void checkUnnamed18(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkInboundOidcSsoProfile(o[0]); + checkInboundOidcSsoProfile(o[1]); +} + +core.int buildCounterListInboundOidcSsoProfilesResponse = 0; +api.ListInboundOidcSsoProfilesResponse +buildListInboundOidcSsoProfilesResponse() { + final o = api.ListInboundOidcSsoProfilesResponse(); + buildCounterListInboundOidcSsoProfilesResponse++; + if (buildCounterListInboundOidcSsoProfilesResponse < 3) { + o.inboundOidcSsoProfiles = buildUnnamed18(); + o.nextPageToken = 'foo'; + } + buildCounterListInboundOidcSsoProfilesResponse--; + return o; +} + +void checkListInboundOidcSsoProfilesResponse( + api.ListInboundOidcSsoProfilesResponse o, +) { + buildCounterListInboundOidcSsoProfilesResponse++; + if (buildCounterListInboundOidcSsoProfilesResponse < 3) { + checkUnnamed18(o.inboundOidcSsoProfiles!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + } + buildCounterListInboundOidcSsoProfilesResponse--; +} + +core.List buildUnnamed19() => [ buildInboundSamlSsoProfile(), buildInboundSamlSsoProfile(), ]; -void checkUnnamed18(core.List o) { +void checkUnnamed19(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInboundSamlSsoProfile(o[0]); checkInboundSamlSsoProfile(o[1]); @@ -1300,7 +1364,7 @@ buildListInboundSamlSsoProfilesResponse() { final o = api.ListInboundSamlSsoProfilesResponse(); buildCounterListInboundSamlSsoProfilesResponse++; if (buildCounterListInboundSamlSsoProfilesResponse < 3) { - o.inboundSamlSsoProfiles = buildUnnamed18(); + o.inboundSamlSsoProfiles = buildUnnamed19(); o.nextPageToken = 'foo'; } buildCounterListInboundSamlSsoProfilesResponse--; @@ -1312,18 +1376,18 @@ void checkListInboundSamlSsoProfilesResponse( ) { buildCounterListInboundSamlSsoProfilesResponse++; if (buildCounterListInboundSamlSsoProfilesResponse < 3) { - checkUnnamed18(o.inboundSamlSsoProfiles!); + checkUnnamed19(o.inboundSamlSsoProfiles!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListInboundSamlSsoProfilesResponse--; } -core.List buildUnnamed19() => [ +core.List buildUnnamed20() => [ buildInboundSsoAssignment(), buildInboundSsoAssignment(), ]; -void checkUnnamed19(core.List o) { +void checkUnnamed20(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInboundSsoAssignment(o[0]); checkInboundSsoAssignment(o[1]); @@ -1334,7 +1398,7 @@ api.ListInboundSsoAssignmentsResponse buildListInboundSsoAssignmentsResponse() { final o = api.ListInboundSsoAssignmentsResponse(); buildCounterListInboundSsoAssignmentsResponse++; if (buildCounterListInboundSsoAssignmentsResponse < 3) { - o.inboundSsoAssignments = buildUnnamed19(); + o.inboundSsoAssignments = buildUnnamed20(); o.nextPageToken = 'foo'; } buildCounterListInboundSsoAssignmentsResponse--; @@ -1346,18 +1410,18 @@ void checkListInboundSsoAssignmentsResponse( ) { buildCounterListInboundSsoAssignmentsResponse++; if (buildCounterListInboundSsoAssignmentsResponse < 3) { - checkUnnamed19(o.inboundSsoAssignments!); + checkUnnamed20(o.inboundSsoAssignments!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListInboundSsoAssignmentsResponse--; } -core.List buildUnnamed20() => [ +core.List buildUnnamed21() => [ buildMembership(), buildMembership(), ]; -void checkUnnamed20(core.List o) { +void checkUnnamed21(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMembership(o[0]); checkMembership(o[1]); @@ -1368,7 +1432,7 @@ api.ListMembershipsResponse buildListMembershipsResponse() { final o = api.ListMembershipsResponse(); buildCounterListMembershipsResponse++; if (buildCounterListMembershipsResponse < 3) { - o.memberships = buildUnnamed20(); + o.memberships = buildUnnamed21(); o.nextPageToken = 'foo'; } buildCounterListMembershipsResponse--; @@ -1378,15 +1442,15 @@ api.ListMembershipsResponse buildListMembershipsResponse() { void checkListMembershipsResponse(api.ListMembershipsResponse o) { buildCounterListMembershipsResponse++; if (buildCounterListMembershipsResponse < 3) { - checkUnnamed20(o.memberships!); + checkUnnamed21(o.memberships!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListMembershipsResponse--; } -core.List buildUnnamed21() => [buildPolicy(), buildPolicy()]; +core.List buildUnnamed22() => [buildPolicy(), buildPolicy()]; -void checkUnnamed21(core.List o) { +void checkUnnamed22(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPolicy(o[0]); checkPolicy(o[1]); @@ -1398,7 +1462,7 @@ api.ListPoliciesResponse buildListPoliciesResponse() { buildCounterListPoliciesResponse++; if (buildCounterListPoliciesResponse < 3) { o.nextPageToken = 'foo'; - o.policies = buildUnnamed21(); + o.policies = buildUnnamed22(); } buildCounterListPoliciesResponse--; return o; @@ -1408,17 +1472,17 @@ void checkListPoliciesResponse(api.ListPoliciesResponse o) { buildCounterListPoliciesResponse++; if (buildCounterListPoliciesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed21(o.policies!); + checkUnnamed22(o.policies!); } buildCounterListPoliciesResponse--; } -core.List buildUnnamed22() => [ +core.List buildUnnamed23() => [ buildUserInvitation(), buildUserInvitation(), ]; -void checkUnnamed22(core.List o) { +void checkUnnamed23(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkUserInvitation(o[0]); checkUserInvitation(o[1]); @@ -1430,7 +1494,7 @@ api.ListUserInvitationsResponse buildListUserInvitationsResponse() { buildCounterListUserInvitationsResponse++; if (buildCounterListUserInvitationsResponse < 3) { o.nextPageToken = 'foo'; - o.userInvitations = buildUnnamed22(); + o.userInvitations = buildUnnamed23(); } buildCounterListUserInvitationsResponse--; return o; @@ -1440,7 +1504,7 @@ void checkListUserInvitationsResponse(api.ListUserInvitationsResponse o) { buildCounterListUserInvitationsResponse++; if (buildCounterListUserInvitationsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed22(o.userInvitations!); + checkUnnamed23(o.userInvitations!); } buildCounterListUserInvitationsResponse--; } @@ -1483,23 +1547,23 @@ void checkLookupMembershipNameResponse(api.LookupMembershipNameResponse o) { buildCounterLookupMembershipNameResponse--; } -core.List buildUnnamed23() => [ +core.List buildUnnamed24() => [ buildEntityKey(), buildEntityKey(), ]; -void checkUnnamed23(core.List o) { +void checkUnnamed24(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkEntityKey(o[0]); checkEntityKey(o[1]); } -core.List buildUnnamed24() => [ +core.List buildUnnamed25() => [ buildTransitiveMembershipRole(), buildTransitiveMembershipRole(), ]; -void checkUnnamed24(core.List o) { +void checkUnnamed25(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTransitiveMembershipRole(o[0]); checkTransitiveMembershipRole(o[1]); @@ -1511,9 +1575,9 @@ api.MemberRelation buildMemberRelation() { buildCounterMemberRelation++; if (buildCounterMemberRelation < 3) { o.member = 'foo'; - o.preferredMemberKey = buildUnnamed23(); + o.preferredMemberKey = buildUnnamed24(); o.relationType = 'foo'; - o.roles = buildUnnamed24(); + o.roles = buildUnnamed25(); } buildCounterMemberRelation--; return o; @@ -1523,9 +1587,9 @@ void checkMemberRelation(api.MemberRelation o) { buildCounterMemberRelation++; if (buildCounterMemberRelation < 3) { unittest.expect(o.member!, unittest.equals('foo')); - checkUnnamed23(o.preferredMemberKey!); + checkUnnamed24(o.preferredMemberKey!); unittest.expect(o.relationType!, unittest.equals('foo')); - checkUnnamed24(o.roles!); + checkUnnamed25(o.roles!); } buildCounterMemberRelation--; } @@ -1551,12 +1615,12 @@ void checkMemberRestriction(api.MemberRestriction o) { buildCounterMemberRestriction--; } -core.List buildUnnamed25() => [ +core.List buildUnnamed26() => [ buildMembershipRole(), buildMembershipRole(), ]; -void checkUnnamed25(core.List o) { +void checkUnnamed26(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMembershipRole(o[0]); checkMembershipRole(o[1]); @@ -1571,7 +1635,7 @@ api.Membership buildMembership() { o.deliverySetting = 'foo'; o.name = 'foo'; o.preferredMemberKey = buildEntityKey(); - o.roles = buildUnnamed25(); + o.roles = buildUnnamed26(); o.type = 'foo'; o.updateTime = 'foo'; } @@ -1586,27 +1650,27 @@ void checkMembership(api.Membership o) { unittest.expect(o.deliverySetting!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); checkEntityKey(o.preferredMemberKey!); - checkUnnamed25(o.roles!); + checkUnnamed26(o.roles!); unittest.expect(o.type!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); } buildCounterMembership--; } -core.Map buildUnnamed26() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed27() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed26(core.Map o) { +void checkUnnamed27(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed27() => [ +core.List buildUnnamed28() => [ buildMembershipRole(), buildMembershipRole(), ]; -void checkUnnamed27(core.List o) { +void checkUnnamed28(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMembershipRole(o[0]); checkMembershipRole(o[1]); @@ -1621,9 +1685,9 @@ api.MembershipRelation buildMembershipRelation() { o.displayName = 'foo'; o.group = 'foo'; o.groupKey = buildEntityKey(); - o.labels = buildUnnamed26(); + o.labels = buildUnnamed27(); o.membership = 'foo'; - o.roles = buildUnnamed27(); + o.roles = buildUnnamed28(); } buildCounterMembershipRelation--; return o; @@ -1636,9 +1700,9 @@ void checkMembershipRelation(api.MembershipRelation o) { unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.group!, unittest.equals('foo')); checkEntityKey(o.groupKey!); - checkUnnamed26(o.labels!); + checkUnnamed27(o.labels!); unittest.expect(o.membership!, unittest.equals('foo')); - checkUnnamed27(o.roles!); + checkUnnamed28(o.roles!); } buildCounterMembershipRelation--; } @@ -1688,31 +1752,31 @@ void checkMembershipRoleRestrictionEvaluation( buildCounterMembershipRoleRestrictionEvaluation--; } -core.List buildUnnamed28() => [ +core.List buildUnnamed29() => [ buildMembershipRole(), buildMembershipRole(), ]; -void checkUnnamed28(core.List o) { +void checkUnnamed29(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMembershipRole(o[0]); checkMembershipRole(o[1]); } -core.List buildUnnamed29() => ['foo', 'foo']; +core.List buildUnnamed30() => ['foo', 'foo']; -void checkUnnamed29(core.List o) { +void checkUnnamed30(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed30() => [ +core.List buildUnnamed31() => [ buildUpdateMembershipRolesParams(), buildUpdateMembershipRolesParams(), ]; -void checkUnnamed30(core.List o) { +void checkUnnamed31(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkUpdateMembershipRolesParams(o[0]); checkUpdateMembershipRolesParams(o[1]); @@ -1723,9 +1787,9 @@ api.ModifyMembershipRolesRequest buildModifyMembershipRolesRequest() { final o = api.ModifyMembershipRolesRequest(); buildCounterModifyMembershipRolesRequest++; if (buildCounterModifyMembershipRolesRequest < 3) { - o.addRoles = buildUnnamed28(); - o.removeRoles = buildUnnamed29(); - o.updateRolesParams = buildUnnamed30(); + o.addRoles = buildUnnamed29(); + o.removeRoles = buildUnnamed30(); + o.updateRolesParams = buildUnnamed31(); } buildCounterModifyMembershipRolesRequest--; return o; @@ -1734,9 +1798,9 @@ api.ModifyMembershipRolesRequest buildModifyMembershipRolesRequest() { void checkModifyMembershipRolesRequest(api.ModifyMembershipRolesRequest o) { buildCounterModifyMembershipRolesRequest++; if (buildCounterModifyMembershipRolesRequest < 3) { - checkUnnamed28(o.addRoles!); - checkUnnamed29(o.removeRoles!); - checkUnnamed30(o.updateRolesParams!); + checkUnnamed29(o.addRoles!); + checkUnnamed30(o.removeRoles!); + checkUnnamed31(o.updateRolesParams!); } buildCounterModifyMembershipRolesRequest--; } @@ -1760,7 +1824,78 @@ void checkModifyMembershipRolesResponse(api.ModifyMembershipRolesResponse o) { buildCounterModifyMembershipRolesResponse--; } -core.Map buildUnnamed31() => { +core.int buildCounterOidcIdpConfig = 0; +api.OidcIdpConfig buildOidcIdpConfig() { + final o = api.OidcIdpConfig(); + buildCounterOidcIdpConfig++; + if (buildCounterOidcIdpConfig < 3) { + o.changePasswordUri = 'foo'; + o.issuerUri = 'foo'; + } + buildCounterOidcIdpConfig--; + return o; +} + +void checkOidcIdpConfig(api.OidcIdpConfig o) { + buildCounterOidcIdpConfig++; + if (buildCounterOidcIdpConfig < 3) { + unittest.expect(o.changePasswordUri!, unittest.equals('foo')); + unittest.expect(o.issuerUri!, unittest.equals('foo')); + } + buildCounterOidcIdpConfig--; +} + +core.List buildUnnamed32() => ['foo', 'foo']; + +void checkUnnamed32(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterOidcRpConfig = 0; +api.OidcRpConfig buildOidcRpConfig() { + final o = api.OidcRpConfig(); + buildCounterOidcRpConfig++; + if (buildCounterOidcRpConfig < 3) { + o.clientId = 'foo'; + o.clientSecret = 'foo'; + o.redirectUris = buildUnnamed32(); + } + buildCounterOidcRpConfig--; + return o; +} + +void checkOidcRpConfig(api.OidcRpConfig o) { + buildCounterOidcRpConfig++; + if (buildCounterOidcRpConfig < 3) { + unittest.expect(o.clientId!, unittest.equals('foo')); + unittest.expect(o.clientSecret!, unittest.equals('foo')); + checkUnnamed32(o.redirectUris!); + } + buildCounterOidcRpConfig--; +} + +core.int buildCounterOidcSsoInfo = 0; +api.OidcSsoInfo buildOidcSsoInfo() { + final o = api.OidcSsoInfo(); + buildCounterOidcSsoInfo++; + if (buildCounterOidcSsoInfo < 3) { + o.inboundOidcSsoProfile = 'foo'; + } + buildCounterOidcSsoInfo--; + return o; +} + +void checkOidcSsoInfo(api.OidcSsoInfo o) { + buildCounterOidcSsoInfo++; + if (buildCounterOidcSsoInfo < 3) { + unittest.expect(o.inboundOidcSsoProfile!, unittest.equals('foo')); + } + buildCounterOidcSsoInfo--; +} + +core.Map buildUnnamed33() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1773,7 +1908,7 @@ core.Map buildUnnamed31() => { }, }; -void checkUnnamed31(core.Map o) { +void checkUnnamed33(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o['x']!) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -1787,7 +1922,7 @@ void checkUnnamed31(core.Map o) { unittest.expect(casted4['string'], unittest.equals('foo')); } -core.Map buildUnnamed32() => { +core.Map buildUnnamed34() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1800,7 +1935,7 @@ core.Map buildUnnamed32() => { }, }; -void checkUnnamed32(core.Map o) { +void checkUnnamed34(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o['x']!) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -1821,9 +1956,9 @@ api.Operation buildOperation() { if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed31(); + o.metadata = buildUnnamed33(); o.name = 'foo'; - o.response = buildUnnamed32(); + o.response = buildUnnamed34(); } buildCounterOperation--; return o; @@ -1834,9 +1969,9 @@ void checkOperation(api.Operation o) { if (buildCounterOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkStatus(o.error!); - checkUnnamed31(o.metadata!); + checkUnnamed33(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed32(o.response!); + checkUnnamed34(o.response!); } buildCounterOperation--; } @@ -2015,12 +2150,12 @@ void checkSamlSsoInfo(api.SamlSsoInfo o) { buildCounterSamlSsoInfo--; } -core.List buildUnnamed33() => [ +core.List buildUnnamed35() => [ buildMembershipRelation(), buildMembershipRelation(), ]; -void checkUnnamed33(core.List o) { +void checkUnnamed35(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMembershipRelation(o[0]); checkMembershipRelation(o[1]); @@ -2031,7 +2166,7 @@ api.SearchDirectGroupsResponse buildSearchDirectGroupsResponse() { final o = api.SearchDirectGroupsResponse(); buildCounterSearchDirectGroupsResponse++; if (buildCounterSearchDirectGroupsResponse < 3) { - o.memberships = buildUnnamed33(); + o.memberships = buildUnnamed35(); o.nextPageToken = 'foo'; } buildCounterSearchDirectGroupsResponse--; @@ -2041,15 +2176,15 @@ api.SearchDirectGroupsResponse buildSearchDirectGroupsResponse() { void checkSearchDirectGroupsResponse(api.SearchDirectGroupsResponse o) { buildCounterSearchDirectGroupsResponse++; if (buildCounterSearchDirectGroupsResponse < 3) { - checkUnnamed33(o.memberships!); + checkUnnamed35(o.memberships!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterSearchDirectGroupsResponse--; } -core.List buildUnnamed34() => [buildGroup(), buildGroup()]; +core.List buildUnnamed36() => [buildGroup(), buildGroup()]; -void checkUnnamed34(core.List o) { +void checkUnnamed36(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -2060,7 +2195,7 @@ api.SearchGroupsResponse buildSearchGroupsResponse() { final o = api.SearchGroupsResponse(); buildCounterSearchGroupsResponse++; if (buildCounterSearchGroupsResponse < 3) { - o.groups = buildUnnamed34(); + o.groups = buildUnnamed36(); o.nextPageToken = 'foo'; } buildCounterSearchGroupsResponse--; @@ -2070,18 +2205,18 @@ api.SearchGroupsResponse buildSearchGroupsResponse() { void checkSearchGroupsResponse(api.SearchGroupsResponse o) { buildCounterSearchGroupsResponse++; if (buildCounterSearchGroupsResponse < 3) { - checkUnnamed34(o.groups!); + checkUnnamed36(o.groups!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterSearchGroupsResponse--; } -core.List buildUnnamed35() => [ +core.List buildUnnamed37() => [ buildGroupRelation(), buildGroupRelation(), ]; -void checkUnnamed35(core.List o) { +void checkUnnamed37(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGroupRelation(o[0]); checkGroupRelation(o[1]); @@ -2092,7 +2227,7 @@ api.SearchTransitiveGroupsResponse buildSearchTransitiveGroupsResponse() { final o = api.SearchTransitiveGroupsResponse(); buildCounterSearchTransitiveGroupsResponse++; if (buildCounterSearchTransitiveGroupsResponse < 3) { - o.memberships = buildUnnamed35(); + o.memberships = buildUnnamed37(); o.nextPageToken = 'foo'; } buildCounterSearchTransitiveGroupsResponse--; @@ -2102,18 +2237,18 @@ api.SearchTransitiveGroupsResponse buildSearchTransitiveGroupsResponse() { void checkSearchTransitiveGroupsResponse(api.SearchTransitiveGroupsResponse o) { buildCounterSearchTransitiveGroupsResponse++; if (buildCounterSearchTransitiveGroupsResponse < 3) { - checkUnnamed35(o.memberships!); + checkUnnamed37(o.memberships!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterSearchTransitiveGroupsResponse--; } -core.List buildUnnamed36() => [ +core.List buildUnnamed38() => [ buildMemberRelation(), buildMemberRelation(), ]; -void checkUnnamed36(core.List o) { +void checkUnnamed38(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMemberRelation(o[0]); checkMemberRelation(o[1]); @@ -2125,7 +2260,7 @@ buildSearchTransitiveMembershipsResponse() { final o = api.SearchTransitiveMembershipsResponse(); buildCounterSearchTransitiveMembershipsResponse++; if (buildCounterSearchTransitiveMembershipsResponse < 3) { - o.memberships = buildUnnamed36(); + o.memberships = buildUnnamed38(); o.nextPageToken = 'foo'; } buildCounterSearchTransitiveMembershipsResponse--; @@ -2137,7 +2272,7 @@ void checkSearchTransitiveMembershipsResponse( ) { buildCounterSearchTransitiveMembershipsResponse++; if (buildCounterSearchTransitiveMembershipsResponse < 3) { - checkUnnamed36(o.memberships!); + checkUnnamed38(o.memberships!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterSearchTransitiveMembershipsResponse--; @@ -2179,7 +2314,7 @@ void checkSendUserInvitationRequest(api.SendUserInvitationRequest o) { buildCounterSendUserInvitationRequest--; } -core.Map buildUnnamed37() => { +core.Map buildUnnamed39() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2192,7 +2327,7 @@ core.Map buildUnnamed37() => { }, }; -void checkUnnamed37(core.Map o) { +void checkUnnamed39(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o['x']!) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -2212,7 +2347,7 @@ api.Setting buildSetting() { buildCounterSetting++; if (buildCounterSetting < 3) { o.type = 'foo'; - o.value = buildUnnamed37(); + o.value = buildUnnamed39(); } buildCounterSetting--; return o; @@ -2222,7 +2357,7 @@ void checkSetting(api.Setting o) { buildCounterSetting++; if (buildCounterSetting < 3) { unittest.expect(o.type!, unittest.equals('foo')); - checkUnnamed37(o.value!); + checkUnnamed39(o.value!); } buildCounterSetting--; } @@ -2246,7 +2381,7 @@ void checkSignInBehavior(api.SignInBehavior o) { buildCounterSignInBehavior--; } -core.Map buildUnnamed38() => { +core.Map buildUnnamed40() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2259,7 +2394,7 @@ core.Map buildUnnamed38() => { }, }; -void checkUnnamed38(core.Map o) { +void checkUnnamed40(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o['x']!) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); @@ -2273,15 +2408,15 @@ void checkUnnamed38(core.Map o) { unittest.expect(casted10['string'], unittest.equals('foo')); } -core.List> buildUnnamed39() => [ - buildUnnamed38(), - buildUnnamed38(), +core.List> buildUnnamed41() => [ + buildUnnamed40(), + buildUnnamed40(), ]; -void checkUnnamed39(core.List> o) { +void checkUnnamed41(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed38(o[0]); - checkUnnamed38(o[1]); + checkUnnamed40(o[0]); + checkUnnamed40(o[1]); } core.int buildCounterStatus = 0; @@ -2290,7 +2425,7 @@ api.Status buildStatus() { buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed39(); + o.details = buildUnnamed41(); o.message = 'foo'; } buildCounterStatus--; @@ -2301,7 +2436,7 @@ void checkStatus(api.Status o) { buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed39(o.details!); + checkUnnamed41(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStatus--; @@ -2798,6 +2933,17 @@ void main() { }); }); + unittest.group('obj-schema-InboundOidcSsoProfile', () { + unittest.test('to-json--from-json', () async { + final o = buildInboundOidcSsoProfile(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.InboundOidcSsoProfile.fromJson( + oJson as core.Map, + ); + checkInboundOidcSsoProfile(od); + }); + }); + unittest.group('obj-schema-InboundSamlSsoProfile', () { unittest.test('to-json--from-json', () async { final o = buildInboundSamlSsoProfile(); @@ -2853,6 +2999,17 @@ void main() { }); }); + unittest.group('obj-schema-ListInboundOidcSsoProfilesResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListInboundOidcSsoProfilesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListInboundOidcSsoProfilesResponse.fromJson( + oJson as core.Map, + ); + checkListInboundOidcSsoProfilesResponse(od); + }); + }); + unittest.group('obj-schema-ListInboundSamlSsoProfilesResponse', () { unittest.test('to-json--from-json', () async { final o = buildListInboundSamlSsoProfilesResponse(); @@ -3018,6 +3175,39 @@ void main() { }); }); + unittest.group('obj-schema-OidcIdpConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildOidcIdpConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.OidcIdpConfig.fromJson( + oJson as core.Map, + ); + checkOidcIdpConfig(od); + }); + }); + + unittest.group('obj-schema-OidcRpConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildOidcRpConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.OidcRpConfig.fromJson( + oJson as core.Map, + ); + checkOidcRpConfig(od); + }); + }); + + unittest.group('obj-schema-OidcSsoInfo', () { + unittest.test('to-json--from-json', () async { + final o = buildOidcSsoInfo(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.OidcSsoInfo.fromJson( + oJson as core.Map, + ); + checkOidcSsoInfo(od); + }); + }); + unittest.group('obj-schema-Operation', () { unittest.test('to-json--from-json', () async { final o = buildOperation(); @@ -6094,6 +6284,315 @@ void main() { }); }); + unittest.group('resource-InboundOidcSsoProfilesResource', () { + unittest.test('method--create', () async { + final mock = HttpServerMock(); + final res = api.CloudIdentityApi(mock).inboundOidcSsoProfiles; + final arg_request = buildInboundOidcSsoProfile(); + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.InboundOidcSsoProfile.fromJson( + json as core.Map, + ); + checkInboundOidcSsoProfile(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 25), + unittest.equals('v1/inboundOidcSsoProfiles'), + ); + pathOffset += 25; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.create(arg_request, $fields: arg_$fields); + checkOperation(response as api.Operation); + }); + + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = api.CloudIdentityApi(mock).inboundOidcSsoProfiles; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkOperation(response as api.Operation); + }); + + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = api.CloudIdentityApi(mock).inboundOidcSsoProfiles; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildInboundOidcSsoProfile()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkInboundOidcSsoProfile(response as api.InboundOidcSsoProfile); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = api.CloudIdentityApi(mock).inboundOidcSsoProfiles; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 25), + unittest.equals('v1/inboundOidcSsoProfiles'), + ); + pathOffset += 25; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildListInboundOidcSsoProfilesResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkListInboundOidcSsoProfilesResponse( + response as api.ListInboundOidcSsoProfilesResponse, + ); + }); + + unittest.test('method--patch', () async { + final mock = HttpServerMock(); + final res = api.CloudIdentityApi(mock).inboundOidcSsoProfiles; + final arg_request = buildInboundOidcSsoProfile(); + final arg_name = 'foo'; + final arg_updateMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.InboundOidcSsoProfile.fromJson( + json as core.Map, + ); + checkInboundOidcSsoProfile(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.patch( + arg_request, + arg_name, + updateMask: arg_updateMask, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); + }); + }); + unittest.group('resource-InboundSamlSsoProfilesResource', () { unittest.test('method--create', () async { final mock = HttpServerMock(); diff --git a/generated/googleapis/test/cloudkms/v1_test.dart b/generated/googleapis/test/cloudkms/v1_test.dart index 280e83ff9..4e5e0e941 100644 --- a/generated/googleapis/test/cloudkms/v1_test.dart +++ b/generated/googleapis/test/cloudkms/v1_test.dart @@ -476,6 +476,54 @@ void checkCryptoKeyVersionTemplate(api.CryptoKeyVersionTemplate o) { buildCounterCryptoKeyVersionTemplate--; } +core.int buildCounterDecapsulateRequest = 0; +api.DecapsulateRequest buildDecapsulateRequest() { + final o = api.DecapsulateRequest(); + buildCounterDecapsulateRequest++; + if (buildCounterDecapsulateRequest < 3) { + o.ciphertext = 'foo'; + o.ciphertextCrc32c = 'foo'; + } + buildCounterDecapsulateRequest--; + return o; +} + +void checkDecapsulateRequest(api.DecapsulateRequest o) { + buildCounterDecapsulateRequest++; + if (buildCounterDecapsulateRequest < 3) { + unittest.expect(o.ciphertext!, unittest.equals('foo')); + unittest.expect(o.ciphertextCrc32c!, unittest.equals('foo')); + } + buildCounterDecapsulateRequest--; +} + +core.int buildCounterDecapsulateResponse = 0; +api.DecapsulateResponse buildDecapsulateResponse() { + final o = api.DecapsulateResponse(); + buildCounterDecapsulateResponse++; + if (buildCounterDecapsulateResponse < 3) { + o.name = 'foo'; + o.protectionLevel = 'foo'; + o.sharedSecret = 'foo'; + o.sharedSecretCrc32c = 'foo'; + o.verifiedCiphertextCrc32c = true; + } + buildCounterDecapsulateResponse--; + return o; +} + +void checkDecapsulateResponse(api.DecapsulateResponse o) { + buildCounterDecapsulateResponse++; + if (buildCounterDecapsulateResponse < 3) { + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.protectionLevel!, unittest.equals('foo')); + unittest.expect(o.sharedSecret!, unittest.equals('foo')); + unittest.expect(o.sharedSecretCrc32c!, unittest.equals('foo')); + unittest.expect(o.verifiedCiphertextCrc32c!, unittest.isTrue); + } + buildCounterDecapsulateResponse--; +} + core.int buildCounterDecryptRequest = 0; api.DecryptRequest buildDecryptRequest() { final o = api.DecryptRequest(); @@ -2151,6 +2199,28 @@ void main() { }); }); + unittest.group('obj-schema-DecapsulateRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildDecapsulateRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.DecapsulateRequest.fromJson( + oJson as core.Map, + ); + checkDecapsulateRequest(od); + }); + }); + + unittest.group('obj-schema-DecapsulateResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildDecapsulateResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.DecapsulateResponse.fromJson( + oJson as core.Map, + ); + checkDecapsulateResponse(od); + }); + }); + unittest.group('obj-schema-DecryptRequest', () { unittest.test('to-json--from-json', () async { final o = buildDecryptRequest(); @@ -5934,6 +6004,72 @@ void main() { checkCryptoKeyVersion(response as api.CryptoKeyVersion); }); + unittest.test('method--decapsulate', () async { + final mock = HttpServerMock(); + final res = + api.CloudKMSApi( + mock, + ).projects.locations.keyRings.cryptoKeys.cryptoKeyVersions; + final arg_request = buildDecapsulateRequest(); + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.DecapsulateRequest.fromJson( + json as core.Map, + ); + checkDecapsulateRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildDecapsulateResponse()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.decapsulate( + arg_request, + arg_name, + $fields: arg_$fields, + ); + checkDecapsulateResponse(response as api.DecapsulateResponse); + }); + unittest.test('method--destroy', () async { final mock = HttpServerMock(); final res = diff --git a/generated/googleapis/test/compute/v1_test.dart b/generated/googleapis/test/compute/v1_test.dart index b6d9a407e..bce9a98b3 100644 --- a/generated/googleapis/test/compute/v1_test.dart +++ b/generated/googleapis/test/compute/v1_test.dart @@ -2082,6 +2082,7 @@ api.BackendBucket buildBackendBucket() { o.kind = 'foo'; o.loadBalancingScheme = 'foo'; o.name = 'foo'; + o.params = buildBackendBucketParams(); o.selfLink = 'foo'; o.usedBy = buildUnnamed43(); } @@ -2104,6 +2105,7 @@ void checkBackendBucket(api.BackendBucket o) { unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.loadBalancingScheme!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); + checkBackendBucketParams(o.params!); unittest.expect(o.selfLink!, unittest.equals('foo')); checkUnnamed43(o.usedBy!); } @@ -2367,6 +2369,33 @@ void checkBackendBucketList(api.BackendBucketList o) { buildCounterBackendBucketList--; } +core.Map buildUnnamed51() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed51(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterBackendBucketParams = 0; +api.BackendBucketParams buildBackendBucketParams() { + final o = api.BackendBucketParams(); + buildCounterBackendBucketParams++; + if (buildCounterBackendBucketParams < 3) { + o.resourceManagerTags = buildUnnamed51(); + } + buildCounterBackendBucketParams--; + return o; +} + +void checkBackendBucketParams(api.BackendBucketParams o) { + buildCounterBackendBucketParams++; + if (buildCounterBackendBucketParams < 3) { + checkUnnamed51(o.resourceManagerTags!); + } + buildCounterBackendBucketParams--; +} + core.int buildCounterBackendBucketUsedBy = 0; api.BackendBucketUsedBy buildBackendBucketUsedBy() { final o = api.BackendBucketUsedBy(); @@ -2409,56 +2438,56 @@ void checkBackendCustomMetric(api.BackendCustomMetric o) { buildCounterBackendCustomMetric--; } -core.List buildUnnamed51() => [buildBackend(), buildBackend()]; +core.List buildUnnamed52() => [buildBackend(), buildBackend()]; -void checkUnnamed51(core.List o) { +void checkUnnamed52(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackend(o[0]); checkBackend(o[1]); } -core.List buildUnnamed52() => [ +core.List buildUnnamed53() => [ buildBackendServiceCustomMetric(), buildBackendServiceCustomMetric(), ]; -void checkUnnamed52(core.List o) { +void checkUnnamed53(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServiceCustomMetric(o[0]); checkBackendServiceCustomMetric(o[1]); } -core.List buildUnnamed53() => ['foo', 'foo']; +core.List buildUnnamed54() => ['foo', 'foo']; -void checkUnnamed53(core.List o) { +void checkUnnamed54(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed54() => ['foo', 'foo']; +core.List buildUnnamed55() => ['foo', 'foo']; -void checkUnnamed54(core.List o) { +void checkUnnamed55(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed55() => ['foo', 'foo']; +core.List buildUnnamed56() => ['foo', 'foo']; -void checkUnnamed55(core.List o) { +void checkUnnamed56(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } core.List -buildUnnamed56() => [ +buildUnnamed57() => [ buildBackendServiceLocalityLoadBalancingPolicyConfig(), buildBackendServiceLocalityLoadBalancingPolicyConfig(), ]; -void checkUnnamed56( +void checkUnnamed57( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -2466,28 +2495,28 @@ void checkUnnamed56( checkBackendServiceLocalityLoadBalancingPolicyConfig(o[1]); } -core.Map buildUnnamed57() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed58() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed57(core.Map o) { +void checkUnnamed58(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed58() => ['foo', 'foo']; +core.List buildUnnamed59() => ['foo', 'foo']; -void checkUnnamed58(core.List o) { +void checkUnnamed59(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed59() => [ +core.List buildUnnamed60() => [ buildBackendServiceUsedBy(), buildBackendServiceUsedBy(), ]; -void checkUnnamed59(core.List o) { +void checkUnnamed60(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServiceUsedBy(o[0]); checkBackendServiceUsedBy(o[1]); @@ -2499,7 +2528,7 @@ api.BackendService buildBackendService() { buildCounterBackendService++; if (buildCounterBackendService < 3) { o.affinityCookieTtlSec = 42; - o.backends = buildUnnamed51(); + o.backends = buildUnnamed52(); o.cdnPolicy = buildBackendServiceCdnPolicy(); o.circuitBreakers = buildCircuitBreakers(); o.compressionMode = 'foo'; @@ -2507,9 +2536,9 @@ api.BackendService buildBackendService() { o.connectionTrackingPolicy = buildBackendServiceConnectionTrackingPolicy(); o.consistentHash = buildConsistentHashLoadBalancerSettings(); o.creationTimestamp = 'foo'; - o.customMetrics = buildUnnamed52(); - o.customRequestHeaders = buildUnnamed53(); - o.customResponseHeaders = buildUnnamed54(); + o.customMetrics = buildUnnamed53(); + o.customRequestHeaders = buildUnnamed54(); + o.customResponseHeaders = buildUnnamed55(); o.description = 'foo'; o.edgeSecurityPolicy = 'foo'; o.enableCDN = true; @@ -2518,20 +2547,21 @@ api.BackendService buildBackendService() { o.failoverPolicy = buildBackendServiceFailoverPolicy(); o.fingerprint = 'foo'; o.haPolicy = buildBackendServiceHAPolicy(); - o.healthChecks = buildUnnamed55(); + o.healthChecks = buildUnnamed56(); o.iap = buildBackendServiceIAP(); o.id = 'foo'; o.ipAddressSelectionPolicy = 'foo'; o.kind = 'foo'; o.loadBalancingScheme = 'foo'; - o.localityLbPolicies = buildUnnamed56(); + o.localityLbPolicies = buildUnnamed57(); o.localityLbPolicy = 'foo'; o.logConfig = buildBackendServiceLogConfig(); o.maxStreamDuration = buildDuration(); - o.metadatas = buildUnnamed57(); + o.metadatas = buildUnnamed58(); o.name = 'foo'; o.network = 'foo'; o.outlierDetection = buildOutlierDetection(); + o.params = buildBackendServiceParams(); o.port = 42; o.portName = 'foo'; o.protocol = 'foo'; @@ -2539,14 +2569,14 @@ api.BackendService buildBackendService() { o.securityPolicy = 'foo'; o.securitySettings = buildSecuritySettings(); o.selfLink = 'foo'; - o.serviceBindings = buildUnnamed58(); + o.serviceBindings = buildUnnamed59(); o.serviceLbPolicy = 'foo'; o.sessionAffinity = 'foo'; o.strongSessionAffinityCookie = buildBackendServiceHttpCookie(); o.subsetting = buildSubsetting(); o.timeoutSec = 42; o.tlsSettings = buildBackendServiceTlsSettings(); - o.usedBy = buildUnnamed59(); + o.usedBy = buildUnnamed60(); } buildCounterBackendService--; return o; @@ -2556,7 +2586,7 @@ void checkBackendService(api.BackendService o) { buildCounterBackendService++; if (buildCounterBackendService < 3) { unittest.expect(o.affinityCookieTtlSec!, unittest.equals(42)); - checkUnnamed51(o.backends!); + checkUnnamed52(o.backends!); checkBackendServiceCdnPolicy(o.cdnPolicy!); checkCircuitBreakers(o.circuitBreakers!); unittest.expect(o.compressionMode!, unittest.equals('foo')); @@ -2564,9 +2594,9 @@ void checkBackendService(api.BackendService o) { checkBackendServiceConnectionTrackingPolicy(o.connectionTrackingPolicy!); checkConsistentHashLoadBalancerSettings(o.consistentHash!); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); - checkUnnamed52(o.customMetrics!); - checkUnnamed53(o.customRequestHeaders!); - checkUnnamed54(o.customResponseHeaders!); + checkUnnamed53(o.customMetrics!); + checkUnnamed54(o.customRequestHeaders!); + checkUnnamed55(o.customResponseHeaders!); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.edgeSecurityPolicy!, unittest.equals('foo')); unittest.expect(o.enableCDN!, unittest.isTrue); @@ -2578,20 +2608,21 @@ void checkBackendService(api.BackendService o) { checkBackendServiceFailoverPolicy(o.failoverPolicy!); unittest.expect(o.fingerprint!, unittest.equals('foo')); checkBackendServiceHAPolicy(o.haPolicy!); - checkUnnamed55(o.healthChecks!); + checkUnnamed56(o.healthChecks!); checkBackendServiceIAP(o.iap!); unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.ipAddressSelectionPolicy!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.loadBalancingScheme!, unittest.equals('foo')); - checkUnnamed56(o.localityLbPolicies!); + checkUnnamed57(o.localityLbPolicies!); unittest.expect(o.localityLbPolicy!, unittest.equals('foo')); checkBackendServiceLogConfig(o.logConfig!); checkDuration(o.maxStreamDuration!); - checkUnnamed57(o.metadatas!); + checkUnnamed58(o.metadatas!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); checkOutlierDetection(o.outlierDetection!); + checkBackendServiceParams(o.params!); unittest.expect(o.port!, unittest.equals(42)); unittest.expect(o.portName!, unittest.equals('foo')); unittest.expect(o.protocol!, unittest.equals('foo')); @@ -2599,32 +2630,32 @@ void checkBackendService(api.BackendService o) { unittest.expect(o.securityPolicy!, unittest.equals('foo')); checkSecuritySettings(o.securitySettings!); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed58(o.serviceBindings!); + checkUnnamed59(o.serviceBindings!); unittest.expect(o.serviceLbPolicy!, unittest.equals('foo')); unittest.expect(o.sessionAffinity!, unittest.equals('foo')); checkBackendServiceHttpCookie(o.strongSessionAffinityCookie!); checkSubsetting(o.subsetting!); unittest.expect(o.timeoutSec!, unittest.equals(42)); checkBackendServiceTlsSettings(o.tlsSettings!); - checkUnnamed59(o.usedBy!); + checkUnnamed60(o.usedBy!); } buildCounterBackendService--; } -core.Map buildUnnamed60() => { +core.Map buildUnnamed61() => { 'x': buildBackendServicesScopedList(), 'y': buildBackendServicesScopedList(), }; -void checkUnnamed60(core.Map o) { +void checkUnnamed61(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServicesScopedList(o['x']!); checkBackendServicesScopedList(o['y']!); } -core.List buildUnnamed61() => ['foo', 'foo']; +core.List buildUnnamed62() => ['foo', 'foo']; -void checkUnnamed61(core.List o) { +void checkUnnamed62(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2654,12 +2685,12 @@ void checkBackendServiceAggregatedListWarningData( buildCounterBackendServiceAggregatedListWarningData--; } -core.List buildUnnamed62() => [ +core.List buildUnnamed63() => [ buildBackendServiceAggregatedListWarningData(), buildBackendServiceAggregatedListWarningData(), ]; -void checkUnnamed62(core.List o) { +void checkUnnamed63(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServiceAggregatedListWarningData(o[0]); checkBackendServiceAggregatedListWarningData(o[1]); @@ -2672,7 +2703,7 @@ buildBackendServiceAggregatedListWarning() { buildCounterBackendServiceAggregatedListWarning++; if (buildCounterBackendServiceAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed62(); + o.data = buildUnnamed63(); o.message = 'foo'; } buildCounterBackendServiceAggregatedListWarning--; @@ -2685,7 +2716,7 @@ void checkBackendServiceAggregatedListWarning( buildCounterBackendServiceAggregatedListWarning++; if (buildCounterBackendServiceAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed62(o.data!); + checkUnnamed63(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterBackendServiceAggregatedListWarning--; @@ -2697,11 +2728,11 @@ api.BackendServiceAggregatedList buildBackendServiceAggregatedList() { buildCounterBackendServiceAggregatedList++; if (buildCounterBackendServiceAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed60(); + o.items = buildUnnamed61(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed61(); + o.unreachables = buildUnnamed62(); o.warning = buildBackendServiceAggregatedListWarning(); } buildCounterBackendServiceAggregatedList--; @@ -2712,23 +2743,23 @@ void checkBackendServiceAggregatedList(api.BackendServiceAggregatedList o) { buildCounterBackendServiceAggregatedList++; if (buildCounterBackendServiceAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed60(o.items!); + checkUnnamed61(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed61(o.unreachables!); + checkUnnamed62(o.unreachables!); checkBackendServiceAggregatedListWarning(o.warning!); } buildCounterBackendServiceAggregatedList--; } core.List -buildUnnamed63() => [ +buildUnnamed64() => [ buildBackendServiceCdnPolicyBypassCacheOnRequestHeader(), buildBackendServiceCdnPolicyBypassCacheOnRequestHeader(), ]; -void checkUnnamed63( +void checkUnnamed64( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -2736,13 +2767,13 @@ void checkUnnamed63( checkBackendServiceCdnPolicyBypassCacheOnRequestHeader(o[1]); } -core.List buildUnnamed64() => +core.List buildUnnamed65() => [ buildBackendServiceCdnPolicyNegativeCachingPolicy(), buildBackendServiceCdnPolicyNegativeCachingPolicy(), ]; -void checkUnnamed64( +void checkUnnamed65( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -2750,9 +2781,9 @@ void checkUnnamed64( checkBackendServiceCdnPolicyNegativeCachingPolicy(o[1]); } -core.List buildUnnamed65() => ['foo', 'foo']; +core.List buildUnnamed66() => ['foo', 'foo']; -void checkUnnamed65(core.List o) { +void checkUnnamed66(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2763,18 +2794,18 @@ api.BackendServiceCdnPolicy buildBackendServiceCdnPolicy() { final o = api.BackendServiceCdnPolicy(); buildCounterBackendServiceCdnPolicy++; if (buildCounterBackendServiceCdnPolicy < 3) { - o.bypassCacheOnRequestHeaders = buildUnnamed63(); + o.bypassCacheOnRequestHeaders = buildUnnamed64(); o.cacheKeyPolicy = buildCacheKeyPolicy(); o.cacheMode = 'foo'; o.clientTtl = 42; o.defaultTtl = 42; o.maxTtl = 42; o.negativeCaching = true; - o.negativeCachingPolicy = buildUnnamed64(); + o.negativeCachingPolicy = buildUnnamed65(); o.requestCoalescing = true; o.serveWhileStale = 42; o.signedUrlCacheMaxAgeSec = 'foo'; - o.signedUrlKeyNames = buildUnnamed65(); + o.signedUrlKeyNames = buildUnnamed66(); } buildCounterBackendServiceCdnPolicy--; return o; @@ -2783,18 +2814,18 @@ api.BackendServiceCdnPolicy buildBackendServiceCdnPolicy() { void checkBackendServiceCdnPolicy(api.BackendServiceCdnPolicy o) { buildCounterBackendServiceCdnPolicy++; if (buildCounterBackendServiceCdnPolicy < 3) { - checkUnnamed63(o.bypassCacheOnRequestHeaders!); + checkUnnamed64(o.bypassCacheOnRequestHeaders!); checkCacheKeyPolicy(o.cacheKeyPolicy!); unittest.expect(o.cacheMode!, unittest.equals('foo')); unittest.expect(o.clientTtl!, unittest.equals(42)); unittest.expect(o.defaultTtl!, unittest.equals(42)); unittest.expect(o.maxTtl!, unittest.equals(42)); unittest.expect(o.negativeCaching!, unittest.isTrue); - checkUnnamed64(o.negativeCachingPolicy!); + checkUnnamed65(o.negativeCachingPolicy!); unittest.expect(o.requestCoalescing!, unittest.isTrue); unittest.expect(o.serveWhileStale!, unittest.equals(42)); unittest.expect(o.signedUrlCacheMaxAgeSec!, unittest.equals('foo')); - checkUnnamed65(o.signedUrlKeyNames!); + checkUnnamed66(o.signedUrlKeyNames!); } buildCounterBackendServiceCdnPolicy--; } @@ -2920,20 +2951,20 @@ void checkBackendServiceFailoverPolicy(api.BackendServiceFailoverPolicy o) { buildCounterBackendServiceFailoverPolicy--; } -core.Map buildUnnamed66() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed67() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed66(core.Map o) { +void checkUnnamed67(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed67() => [ +core.List buildUnnamed68() => [ buildHealthStatus(), buildHealthStatus(), ]; -void checkUnnamed67(core.List o) { +void checkUnnamed68(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -2944,8 +2975,8 @@ api.BackendServiceGroupHealth buildBackendServiceGroupHealth() { final o = api.BackendServiceGroupHealth(); buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - o.annotations = buildUnnamed66(); - o.healthStatus = buildUnnamed67(); + o.annotations = buildUnnamed67(); + o.healthStatus = buildUnnamed68(); o.kind = 'foo'; } buildCounterBackendServiceGroupHealth--; @@ -2955,8 +2986,8 @@ api.BackendServiceGroupHealth buildBackendServiceGroupHealth() { void checkBackendServiceGroupHealth(api.BackendServiceGroupHealth o) { buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - checkUnnamed66(o.annotations!); - checkUnnamed67(o.healthStatus!); + checkUnnamed67(o.annotations!); + checkUnnamed68(o.healthStatus!); unittest.expect(o.kind!, unittest.equals('foo')); } buildCounterBackendServiceGroupHealth--; @@ -3074,12 +3105,12 @@ void checkBackendServiceIAP(api.BackendServiceIAP o) { buildCounterBackendServiceIAP--; } -core.List buildUnnamed68() => [ +core.List buildUnnamed69() => [ buildBackendService(), buildBackendService(), ]; -void checkUnnamed68(core.List o) { +void checkUnnamed69(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackendService(o[0]); checkBackendService(o[1]); @@ -3106,12 +3137,12 @@ void checkBackendServiceListWarningData(api.BackendServiceListWarningData o) { buildCounterBackendServiceListWarningData--; } -core.List buildUnnamed69() => [ +core.List buildUnnamed70() => [ buildBackendServiceListWarningData(), buildBackendServiceListWarningData(), ]; -void checkUnnamed69(core.List o) { +void checkUnnamed70(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServiceListWarningData(o[0]); checkBackendServiceListWarningData(o[1]); @@ -3123,7 +3154,7 @@ api.BackendServiceListWarning buildBackendServiceListWarning() { buildCounterBackendServiceListWarning++; if (buildCounterBackendServiceListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed69(); + o.data = buildUnnamed70(); o.message = 'foo'; } buildCounterBackendServiceListWarning--; @@ -3134,7 +3165,7 @@ void checkBackendServiceListWarning(api.BackendServiceListWarning o) { buildCounterBackendServiceListWarning++; if (buildCounterBackendServiceListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed69(o.data!); + checkUnnamed70(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterBackendServiceListWarning--; @@ -3146,7 +3177,7 @@ api.BackendServiceList buildBackendServiceList() { buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { o.id = 'foo'; - o.items = buildUnnamed68(); + o.items = buildUnnamed69(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -3160,7 +3191,7 @@ void checkBackendServiceList(api.BackendServiceList o) { buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed68(o.items!); + checkUnnamed69(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -3169,12 +3200,12 @@ void checkBackendServiceList(api.BackendServiceList o) { buildCounterBackendServiceList--; } -core.List buildUnnamed70() => [ +core.List buildUnnamed71() => [ buildBackendService(), buildBackendService(), ]; -void checkUnnamed70(core.List o) { +void checkUnnamed71(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackendService(o[0]); checkBackendService(o[1]); @@ -3204,12 +3235,12 @@ void checkBackendServiceListUsableWarningData( buildCounterBackendServiceListUsableWarningData--; } -core.List buildUnnamed71() => [ +core.List buildUnnamed72() => [ buildBackendServiceListUsableWarningData(), buildBackendServiceListUsableWarningData(), ]; -void checkUnnamed71(core.List o) { +void checkUnnamed72(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServiceListUsableWarningData(o[0]); checkBackendServiceListUsableWarningData(o[1]); @@ -3221,7 +3252,7 @@ api.BackendServiceListUsableWarning buildBackendServiceListUsableWarning() { buildCounterBackendServiceListUsableWarning++; if (buildCounterBackendServiceListUsableWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed71(); + o.data = buildUnnamed72(); o.message = 'foo'; } buildCounterBackendServiceListUsableWarning--; @@ -3234,7 +3265,7 @@ void checkBackendServiceListUsableWarning( buildCounterBackendServiceListUsableWarning++; if (buildCounterBackendServiceListUsableWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed71(o.data!); + checkUnnamed72(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterBackendServiceListUsableWarning--; @@ -3246,7 +3277,7 @@ api.BackendServiceListUsable buildBackendServiceListUsable() { buildCounterBackendServiceListUsable++; if (buildCounterBackendServiceListUsable < 3) { o.id = 'foo'; - o.items = buildUnnamed70(); + o.items = buildUnnamed71(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -3260,7 +3291,7 @@ void checkBackendServiceListUsable(api.BackendServiceListUsable o) { buildCounterBackendServiceListUsable++; if (buildCounterBackendServiceListUsable < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed70(o.items!); + checkUnnamed71(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -3345,9 +3376,9 @@ void checkBackendServiceLocalityLoadBalancingPolicyConfigPolicy( buildCounterBackendServiceLocalityLoadBalancingPolicyConfigPolicy--; } -core.List buildUnnamed72() => ['foo', 'foo']; +core.List buildUnnamed73() => ['foo', 'foo']; -void checkUnnamed72(core.List o) { +void checkUnnamed73(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3359,7 +3390,7 @@ api.BackendServiceLogConfig buildBackendServiceLogConfig() { buildCounterBackendServiceLogConfig++; if (buildCounterBackendServiceLogConfig < 3) { o.enable = true; - o.optionalFields = buildUnnamed72(); + o.optionalFields = buildUnnamed73(); o.optionalMode = 'foo'; o.sampleRate = 42.0; } @@ -3371,13 +3402,40 @@ void checkBackendServiceLogConfig(api.BackendServiceLogConfig o) { buildCounterBackendServiceLogConfig++; if (buildCounterBackendServiceLogConfig < 3) { unittest.expect(o.enable!, unittest.isTrue); - checkUnnamed72(o.optionalFields!); + checkUnnamed73(o.optionalFields!); unittest.expect(o.optionalMode!, unittest.equals('foo')); unittest.expect(o.sampleRate!, unittest.equals(42.0)); } buildCounterBackendServiceLogConfig--; } +core.Map buildUnnamed74() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed74(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterBackendServiceParams = 0; +api.BackendServiceParams buildBackendServiceParams() { + final o = api.BackendServiceParams(); + buildCounterBackendServiceParams++; + if (buildCounterBackendServiceParams < 3) { + o.resourceManagerTags = buildUnnamed74(); + } + buildCounterBackendServiceParams--; + return o; +} + +void checkBackendServiceParams(api.BackendServiceParams o) { + buildCounterBackendServiceParams++; + if (buildCounterBackendServiceParams < 3) { + checkUnnamed74(o.resourceManagerTags!); + } + buildCounterBackendServiceParams--; +} + core.int buildCounterBackendServiceReference = 0; api.BackendServiceReference buildBackendServiceReference() { final o = api.BackendServiceReference(); @@ -3397,12 +3455,12 @@ void checkBackendServiceReference(api.BackendServiceReference o) { buildCounterBackendServiceReference--; } -core.List buildUnnamed73() => [ +core.List buildUnnamed75() => [ buildBackendServiceTlsSettingsSubjectAltName(), buildBackendServiceTlsSettingsSubjectAltName(), ]; -void checkUnnamed73(core.List o) { +void checkUnnamed75(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServiceTlsSettingsSubjectAltName(o[0]); checkBackendServiceTlsSettingsSubjectAltName(o[1]); @@ -3415,7 +3473,7 @@ api.BackendServiceTlsSettings buildBackendServiceTlsSettings() { if (buildCounterBackendServiceTlsSettings < 3) { o.authenticationConfig = 'foo'; o.sni = 'foo'; - o.subjectAltNames = buildUnnamed73(); + o.subjectAltNames = buildUnnamed75(); } buildCounterBackendServiceTlsSettings--; return o; @@ -3426,7 +3484,7 @@ void checkBackendServiceTlsSettings(api.BackendServiceTlsSettings o) { if (buildCounterBackendServiceTlsSettings < 3) { unittest.expect(o.authenticationConfig!, unittest.equals('foo')); unittest.expect(o.sni!, unittest.equals('foo')); - checkUnnamed73(o.subjectAltNames!); + checkUnnamed75(o.subjectAltNames!); } buildCounterBackendServiceTlsSettings--; } @@ -3474,12 +3532,12 @@ void checkBackendServiceUsedBy(api.BackendServiceUsedBy o) { buildCounterBackendServiceUsedBy--; } -core.List buildUnnamed74() => [ +core.List buildUnnamed76() => [ buildBackendService(), buildBackendService(), ]; -void checkUnnamed74(core.List o) { +void checkUnnamed76(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackendService(o[0]); checkBackendService(o[1]); @@ -3509,12 +3567,12 @@ void checkBackendServicesScopedListWarningData( buildCounterBackendServicesScopedListWarningData--; } -core.List buildUnnamed75() => [ +core.List buildUnnamed77() => [ buildBackendServicesScopedListWarningData(), buildBackendServicesScopedListWarningData(), ]; -void checkUnnamed75(core.List o) { +void checkUnnamed77(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServicesScopedListWarningData(o[0]); checkBackendServicesScopedListWarningData(o[1]); @@ -3526,7 +3584,7 @@ api.BackendServicesScopedListWarning buildBackendServicesScopedListWarning() { buildCounterBackendServicesScopedListWarning++; if (buildCounterBackendServicesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed75(); + o.data = buildUnnamed77(); o.message = 'foo'; } buildCounterBackendServicesScopedListWarning--; @@ -3539,7 +3597,7 @@ void checkBackendServicesScopedListWarning( buildCounterBackendServicesScopedListWarning++; if (buildCounterBackendServicesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed75(o.data!); + checkUnnamed77(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterBackendServicesScopedListWarning--; @@ -3550,7 +3608,7 @@ api.BackendServicesScopedList buildBackendServicesScopedList() { final o = api.BackendServicesScopedList(); buildCounterBackendServicesScopedList++; if (buildCounterBackendServicesScopedList < 3) { - o.backendServices = buildUnnamed74(); + o.backendServices = buildUnnamed76(); o.warning = buildBackendServicesScopedListWarning(); } buildCounterBackendServicesScopedList--; @@ -3560,7 +3618,7 @@ api.BackendServicesScopedList buildBackendServicesScopedList() { void checkBackendServicesScopedList(api.BackendServicesScopedList o) { buildCounterBackendServicesScopedList++; if (buildCounterBackendServicesScopedList < 3) { - checkUnnamed74(o.backendServices!); + checkUnnamed76(o.backendServices!); checkBackendServicesScopedListWarning(o.warning!); } buildCounterBackendServicesScopedList--; @@ -3615,12 +3673,12 @@ void checkBfdPacket(api.BfdPacket o) { buildCounterBfdPacket--; } -core.List buildUnnamed76() => [ +core.List buildUnnamed78() => [ buildPacketIntervals(), buildPacketIntervals(), ]; -void checkUnnamed76(core.List o) { +void checkUnnamed78(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPacketIntervals(o[0]); checkPacketIntervals(o[1]); @@ -3634,7 +3692,7 @@ api.BfdStatus buildBfdStatus() { o.bfdSessionInitializationMode = 'foo'; o.configUpdateTimestampMicros = 'foo'; o.controlPacketCounts = buildBfdStatusPacketCounts(); - o.controlPacketIntervals = buildUnnamed76(); + o.controlPacketIntervals = buildUnnamed78(); o.localDiagnostic = 'foo'; o.localState = 'foo'; o.negotiatedLocalControlTxIntervalMs = 42; @@ -3652,7 +3710,7 @@ void checkBfdStatus(api.BfdStatus o) { unittest.expect(o.bfdSessionInitializationMode!, unittest.equals('foo')); unittest.expect(o.configUpdateTimestampMicros!, unittest.equals('foo')); checkBfdStatusPacketCounts(o.controlPacketCounts!); - checkUnnamed76(o.controlPacketIntervals!); + checkUnnamed78(o.controlPacketIntervals!); unittest.expect(o.localDiagnostic!, unittest.equals('foo')); unittest.expect(o.localState!, unittest.equals('foo')); unittest.expect(o.negotiatedLocalControlTxIntervalMs!, unittest.equals(42)); @@ -3688,20 +3746,20 @@ void checkBfdStatusPacketCounts(api.BfdStatusPacketCounts o) { buildCounterBfdStatusPacketCounts--; } -core.List buildUnnamed77() => [ +core.List buildUnnamed79() => [ buildBgpRouteAsPath(), buildBgpRouteAsPath(), ]; -void checkUnnamed77(core.List o) { +void checkUnnamed79(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBgpRouteAsPath(o[0]); checkBgpRouteAsPath(o[1]); } -core.List buildUnnamed78() => ['foo', 'foo']; +core.List buildUnnamed80() => ['foo', 'foo']; -void checkUnnamed78(core.List o) { +void checkUnnamed80(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3712,8 +3770,8 @@ api.BgpRoute buildBgpRoute() { final o = api.BgpRoute(); buildCounterBgpRoute++; if (buildCounterBgpRoute < 3) { - o.asPaths = buildUnnamed77(); - o.communities = buildUnnamed78(); + o.asPaths = buildUnnamed79(); + o.communities = buildUnnamed80(); o.destination = buildBgpRouteNetworkLayerReachabilityInformation(); o.med = 42; o.origin = 'foo'; @@ -3725,8 +3783,8 @@ api.BgpRoute buildBgpRoute() { void checkBgpRoute(api.BgpRoute o) { buildCounterBgpRoute++; if (buildCounterBgpRoute < 3) { - checkUnnamed77(o.asPaths!); - checkUnnamed78(o.communities!); + checkUnnamed79(o.asPaths!); + checkUnnamed80(o.communities!); checkBgpRouteNetworkLayerReachabilityInformation(o.destination!); unittest.expect(o.med!, unittest.equals(42)); unittest.expect(o.origin!, unittest.equals('foo')); @@ -3734,9 +3792,9 @@ void checkBgpRoute(api.BgpRoute o) { buildCounterBgpRoute--; } -core.List buildUnnamed79() => [42, 42]; +core.List buildUnnamed81() => [42, 42]; -void checkUnnamed79(core.List o) { +void checkUnnamed81(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -3747,7 +3805,7 @@ api.BgpRouteAsPath buildBgpRouteAsPath() { final o = api.BgpRouteAsPath(); buildCounterBgpRouteAsPath++; if (buildCounterBgpRouteAsPath < 3) { - o.asns = buildUnnamed79(); + o.asns = buildUnnamed81(); o.type = 'foo'; } buildCounterBgpRouteAsPath--; @@ -3757,7 +3815,7 @@ api.BgpRouteAsPath buildBgpRouteAsPath() { void checkBgpRouteAsPath(api.BgpRouteAsPath o) { buildCounterBgpRouteAsPath++; if (buildCounterBgpRouteAsPath < 3) { - checkUnnamed79(o.asns!); + checkUnnamed81(o.asns!); unittest.expect(o.type!, unittest.equals('foo')); } buildCounterBgpRouteAsPath--; @@ -3787,9 +3845,9 @@ void checkBgpRouteNetworkLayerReachabilityInformation( buildCounterBgpRouteNetworkLayerReachabilityInformation--; } -core.List buildUnnamed80() => ['foo', 'foo']; +core.List buildUnnamed82() => ['foo', 'foo']; -void checkUnnamed80(core.List o) { +void checkUnnamed82(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3801,7 +3859,7 @@ api.Binding buildBinding() { buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed80(); + o.members = buildUnnamed82(); o.role = 'foo'; } buildCounterBinding--; @@ -3812,7 +3870,7 @@ void checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition!); - checkUnnamed80(o.members!); + checkUnnamed82(o.members!); unittest.expect(o.role!, unittest.equals('foo')); } buildCounterBinding--; @@ -3838,12 +3896,12 @@ void checkBulkInsertDiskResource(api.BulkInsertDiskResource o) { } core.Map -buildUnnamed81() => { +buildUnnamed83() => { 'x': buildBulkInsertInstanceResourcePerInstanceProperties(), 'y': buildBulkInsertInstanceResourcePerInstanceProperties(), }; -void checkUnnamed81( +void checkUnnamed83( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3861,7 +3919,7 @@ api.BulkInsertInstanceResource buildBulkInsertInstanceResource() { o.locationPolicy = buildLocationPolicy(); o.minCount = 'foo'; o.namePattern = 'foo'; - o.perInstanceProperties = buildUnnamed81(); + o.perInstanceProperties = buildUnnamed83(); o.sourceInstanceTemplate = 'foo'; } buildCounterBulkInsertInstanceResource--; @@ -3876,7 +3934,7 @@ void checkBulkInsertInstanceResource(api.BulkInsertInstanceResource o) { checkLocationPolicy(o.locationPolicy!); unittest.expect(o.minCount!, unittest.equals('foo')); unittest.expect(o.namePattern!, unittest.equals('foo')); - checkUnnamed81(o.perInstanceProperties!); + checkUnnamed83(o.perInstanceProperties!); unittest.expect(o.sourceInstanceTemplate!, unittest.equals('foo')); } buildCounterBulkInsertInstanceResource--; @@ -3933,9 +3991,9 @@ void checkBulkInsertOperationStatus(api.BulkInsertOperationStatus o) { buildCounterBulkInsertOperationStatus--; } -core.Map buildUnnamed82() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed84() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed82(core.Map o) { +void checkUnnamed84(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -3947,7 +4005,7 @@ api.BulkSetLabelsRequest buildBulkSetLabelsRequest() { buildCounterBulkSetLabelsRequest++; if (buildCounterBulkSetLabelsRequest < 3) { o.labelFingerprint = 'foo'; - o.labels = buildUnnamed82(); + o.labels = buildUnnamed84(); } buildCounterBulkSetLabelsRequest--; return o; @@ -3957,17 +4015,17 @@ void checkBulkSetLabelsRequest(api.BulkSetLabelsRequest o) { buildCounterBulkSetLabelsRequest++; if (buildCounterBulkSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed82(o.labels!); + checkUnnamed84(o.labels!); } buildCounterBulkSetLabelsRequest--; } -core.List buildUnnamed83() => [ +core.List buildUnnamed85() => [ buildBulkSetLabelsRequest(), buildBulkSetLabelsRequest(), ]; -void checkUnnamed83(core.List o) { +void checkUnnamed85(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBulkSetLabelsRequest(o[0]); checkBulkSetLabelsRequest(o[1]); @@ -3978,7 +4036,7 @@ api.BulkZoneSetLabelsRequest buildBulkZoneSetLabelsRequest() { final o = api.BulkZoneSetLabelsRequest(); buildCounterBulkZoneSetLabelsRequest++; if (buildCounterBulkZoneSetLabelsRequest < 3) { - o.requests = buildUnnamed83(); + o.requests = buildUnnamed85(); } buildCounterBulkZoneSetLabelsRequest--; return o; @@ -3987,14 +4045,14 @@ api.BulkZoneSetLabelsRequest buildBulkZoneSetLabelsRequest() { void checkBulkZoneSetLabelsRequest(api.BulkZoneSetLabelsRequest o) { buildCounterBulkZoneSetLabelsRequest++; if (buildCounterBulkZoneSetLabelsRequest < 3) { - checkUnnamed83(o.requests!); + checkUnnamed85(o.requests!); } buildCounterBulkZoneSetLabelsRequest--; } -core.List buildUnnamed84() => ['foo', 'foo']; +core.List buildUnnamed86() => ['foo', 'foo']; -void checkUnnamed84(core.List o) { +void checkUnnamed86(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4005,7 +4063,7 @@ api.CacheInvalidationRule buildCacheInvalidationRule() { final o = api.CacheInvalidationRule(); buildCounterCacheInvalidationRule++; if (buildCounterCacheInvalidationRule < 3) { - o.cacheTags = buildUnnamed84(); + o.cacheTags = buildUnnamed86(); o.host = 'foo'; o.path = 'foo'; } @@ -4016,40 +4074,40 @@ api.CacheInvalidationRule buildCacheInvalidationRule() { void checkCacheInvalidationRule(api.CacheInvalidationRule o) { buildCounterCacheInvalidationRule++; if (buildCounterCacheInvalidationRule < 3) { - checkUnnamed84(o.cacheTags!); + checkUnnamed86(o.cacheTags!); unittest.expect(o.host!, unittest.equals('foo')); unittest.expect(o.path!, unittest.equals('foo')); } buildCounterCacheInvalidationRule--; } -core.List buildUnnamed85() => ['foo', 'foo']; +core.List buildUnnamed87() => ['foo', 'foo']; -void checkUnnamed85(core.List o) { +void checkUnnamed87(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed86() => ['foo', 'foo']; +core.List buildUnnamed88() => ['foo', 'foo']; -void checkUnnamed86(core.List o) { +void checkUnnamed88(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed87() => ['foo', 'foo']; +core.List buildUnnamed89() => ['foo', 'foo']; -void checkUnnamed87(core.List o) { +void checkUnnamed89(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed88() => ['foo', 'foo']; +core.List buildUnnamed90() => ['foo', 'foo']; -void checkUnnamed88(core.List o) { +void checkUnnamed90(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4061,12 +4119,12 @@ api.CacheKeyPolicy buildCacheKeyPolicy() { buildCounterCacheKeyPolicy++; if (buildCounterCacheKeyPolicy < 3) { o.includeHost = true; - o.includeHttpHeaders = buildUnnamed85(); - o.includeNamedCookies = buildUnnamed86(); + o.includeHttpHeaders = buildUnnamed87(); + o.includeNamedCookies = buildUnnamed88(); o.includeProtocol = true; o.includeQueryString = true; - o.queryStringBlacklist = buildUnnamed87(); - o.queryStringWhitelist = buildUnnamed88(); + o.queryStringBlacklist = buildUnnamed89(); + o.queryStringWhitelist = buildUnnamed90(); } buildCounterCacheKeyPolicy--; return o; @@ -4076,12 +4134,12 @@ void checkCacheKeyPolicy(api.CacheKeyPolicy o) { buildCounterCacheKeyPolicy++; if (buildCounterCacheKeyPolicy < 3) { unittest.expect(o.includeHost!, unittest.isTrue); - checkUnnamed85(o.includeHttpHeaders!); - checkUnnamed86(o.includeNamedCookies!); + checkUnnamed87(o.includeHttpHeaders!); + checkUnnamed88(o.includeNamedCookies!); unittest.expect(o.includeProtocol!, unittest.isTrue); unittest.expect(o.includeQueryString!, unittest.isTrue); - checkUnnamed87(o.queryStringBlacklist!); - checkUnnamed88(o.queryStringWhitelist!); + checkUnnamed89(o.queryStringBlacklist!); + checkUnnamed90(o.queryStringWhitelist!); } buildCounterCacheKeyPolicy--; } @@ -4113,39 +4171,39 @@ void checkCircuitBreakers(api.CircuitBreakers o) { buildCounterCircuitBreakers--; } -core.List buildUnnamed89() => ['foo', 'foo']; +core.List buildUnnamed91() => ['foo', 'foo']; -void checkUnnamed89(core.List o) { +void checkUnnamed91(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed90() => ['foo', 'foo']; +core.List buildUnnamed92() => ['foo', 'foo']; -void checkUnnamed90(core.List o) { +void checkUnnamed92(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed91() => [ +core.List buildUnnamed93() => [ buildReservation(), buildReservation(), ]; -void checkUnnamed91(core.List o) { +void checkUnnamed93(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkReservation(o[0]); checkReservation(o[1]); } -core.List buildUnnamed92() => [ +core.List buildUnnamed94() => [ buildResourceCommitment(), buildResourceCommitment(), ]; -void checkUnnamed92(core.List o) { +void checkUnnamed94(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkResourceCommitment(o[0]); checkResourceCommitment(o[1]); @@ -4162,17 +4220,17 @@ api.Commitment buildCommitment() { o.customEndTimestamp = 'foo'; o.description = 'foo'; o.endTimestamp = 'foo'; - o.existingReservations = buildUnnamed89(); + o.existingReservations = buildUnnamed91(); o.id = 'foo'; o.kind = 'foo'; o.licenseResource = buildLicenseResourceCommitment(); - o.mergeSourceCommitments = buildUnnamed90(); + o.mergeSourceCommitments = buildUnnamed92(); o.name = 'foo'; o.plan = 'foo'; o.region = 'foo'; - o.reservations = buildUnnamed91(); + o.reservations = buildUnnamed93(); o.resourceStatus = buildCommitmentResourceStatus(); - o.resources = buildUnnamed92(); + o.resources = buildUnnamed94(); o.selfLink = 'foo'; o.splitSourceCommitment = 'foo'; o.startTimestamp = 'foo'; @@ -4193,17 +4251,17 @@ void checkCommitment(api.Commitment o) { unittest.expect(o.customEndTimestamp!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.endTimestamp!, unittest.equals('foo')); - checkUnnamed89(o.existingReservations!); + checkUnnamed91(o.existingReservations!); unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); checkLicenseResourceCommitment(o.licenseResource!); - checkUnnamed90(o.mergeSourceCommitments!); + checkUnnamed92(o.mergeSourceCommitments!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.plan!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); - checkUnnamed91(o.reservations!); + checkUnnamed93(o.reservations!); checkCommitmentResourceStatus(o.resourceStatus!); - checkUnnamed92(o.resources!); + checkUnnamed94(o.resources!); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.splitSourceCommitment!, unittest.equals('foo')); unittest.expect(o.startTimestamp!, unittest.equals('foo')); @@ -4214,20 +4272,20 @@ void checkCommitment(api.Commitment o) { buildCounterCommitment--; } -core.Map buildUnnamed93() => { +core.Map buildUnnamed95() => { 'x': buildCommitmentsScopedList(), 'y': buildCommitmentsScopedList(), }; -void checkUnnamed93(core.Map o) { +void checkUnnamed95(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkCommitmentsScopedList(o['x']!); checkCommitmentsScopedList(o['y']!); } -core.List buildUnnamed94() => ['foo', 'foo']; +core.List buildUnnamed96() => ['foo', 'foo']; -void checkUnnamed94(core.List o) { +void checkUnnamed96(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4257,12 +4315,12 @@ void checkCommitmentAggregatedListWarningData( buildCounterCommitmentAggregatedListWarningData--; } -core.List buildUnnamed95() => [ +core.List buildUnnamed97() => [ buildCommitmentAggregatedListWarningData(), buildCommitmentAggregatedListWarningData(), ]; -void checkUnnamed95(core.List o) { +void checkUnnamed97(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCommitmentAggregatedListWarningData(o[0]); checkCommitmentAggregatedListWarningData(o[1]); @@ -4274,7 +4332,7 @@ api.CommitmentAggregatedListWarning buildCommitmentAggregatedListWarning() { buildCounterCommitmentAggregatedListWarning++; if (buildCounterCommitmentAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed95(); + o.data = buildUnnamed97(); o.message = 'foo'; } buildCounterCommitmentAggregatedListWarning--; @@ -4287,7 +4345,7 @@ void checkCommitmentAggregatedListWarning( buildCounterCommitmentAggregatedListWarning++; if (buildCounterCommitmentAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed95(o.data!); + checkUnnamed97(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterCommitmentAggregatedListWarning--; @@ -4299,11 +4357,11 @@ api.CommitmentAggregatedList buildCommitmentAggregatedList() { buildCounterCommitmentAggregatedList++; if (buildCounterCommitmentAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed93(); + o.items = buildUnnamed95(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed94(); + o.unreachables = buildUnnamed96(); o.warning = buildCommitmentAggregatedListWarning(); } buildCounterCommitmentAggregatedList--; @@ -4314,22 +4372,22 @@ void checkCommitmentAggregatedList(api.CommitmentAggregatedList o) { buildCounterCommitmentAggregatedList++; if (buildCounterCommitmentAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed93(o.items!); + checkUnnamed95(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed94(o.unreachables!); + checkUnnamed96(o.unreachables!); checkCommitmentAggregatedListWarning(o.warning!); } buildCounterCommitmentAggregatedList--; } -core.List buildUnnamed96() => [ +core.List buildUnnamed98() => [ buildCommitment(), buildCommitment(), ]; -void checkUnnamed96(core.List o) { +void checkUnnamed98(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCommitment(o[0]); checkCommitment(o[1]); @@ -4356,12 +4414,12 @@ void checkCommitmentListWarningData(api.CommitmentListWarningData o) { buildCounterCommitmentListWarningData--; } -core.List buildUnnamed97() => [ +core.List buildUnnamed99() => [ buildCommitmentListWarningData(), buildCommitmentListWarningData(), ]; -void checkUnnamed97(core.List o) { +void checkUnnamed99(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCommitmentListWarningData(o[0]); checkCommitmentListWarningData(o[1]); @@ -4373,7 +4431,7 @@ api.CommitmentListWarning buildCommitmentListWarning() { buildCounterCommitmentListWarning++; if (buildCounterCommitmentListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed97(); + o.data = buildUnnamed99(); o.message = 'foo'; } buildCounterCommitmentListWarning--; @@ -4384,7 +4442,7 @@ void checkCommitmentListWarning(api.CommitmentListWarning o) { buildCounterCommitmentListWarning++; if (buildCounterCommitmentListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed97(o.data!); + checkUnnamed99(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterCommitmentListWarning--; @@ -4396,7 +4454,7 @@ api.CommitmentList buildCommitmentList() { buildCounterCommitmentList++; if (buildCounterCommitmentList < 3) { o.id = 'foo'; - o.items = buildUnnamed96(); + o.items = buildUnnamed98(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -4410,7 +4468,7 @@ void checkCommitmentList(api.CommitmentList o) { buildCounterCommitmentList++; if (buildCounterCommitmentList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed96(o.items!); + checkUnnamed98(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -4441,12 +4499,12 @@ void checkCommitmentResourceStatus(api.CommitmentResourceStatus o) { buildCounterCommitmentResourceStatus--; } -core.List buildUnnamed98() => [ +core.List buildUnnamed100() => [ buildCommitment(), buildCommitment(), ]; -void checkUnnamed98(core.List o) { +void checkUnnamed100(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCommitment(o[0]); checkCommitment(o[1]); @@ -4475,12 +4533,12 @@ void checkCommitmentsScopedListWarningData( buildCounterCommitmentsScopedListWarningData--; } -core.List buildUnnamed99() => [ +core.List buildUnnamed101() => [ buildCommitmentsScopedListWarningData(), buildCommitmentsScopedListWarningData(), ]; -void checkUnnamed99(core.List o) { +void checkUnnamed101(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCommitmentsScopedListWarningData(o[0]); checkCommitmentsScopedListWarningData(o[1]); @@ -4492,7 +4550,7 @@ api.CommitmentsScopedListWarning buildCommitmentsScopedListWarning() { buildCounterCommitmentsScopedListWarning++; if (buildCounterCommitmentsScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed99(); + o.data = buildUnnamed101(); o.message = 'foo'; } buildCounterCommitmentsScopedListWarning--; @@ -4503,7 +4561,7 @@ void checkCommitmentsScopedListWarning(api.CommitmentsScopedListWarning o) { buildCounterCommitmentsScopedListWarning++; if (buildCounterCommitmentsScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed99(o.data!); + checkUnnamed101(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterCommitmentsScopedListWarning--; @@ -4514,7 +4572,7 @@ api.CommitmentsScopedList buildCommitmentsScopedList() { final o = api.CommitmentsScopedList(); buildCounterCommitmentsScopedList++; if (buildCounterCommitmentsScopedList < 3) { - o.commitments = buildUnnamed98(); + o.commitments = buildUnnamed100(); o.warning = buildCommitmentsScopedListWarning(); } buildCounterCommitmentsScopedList--; @@ -4524,7 +4582,7 @@ api.CommitmentsScopedList buildCommitmentsScopedList() { void checkCommitmentsScopedList(api.CommitmentsScopedList o) { buildCounterCommitmentsScopedList++; if (buildCounterCommitmentsScopedList < 3) { - checkUnnamed98(o.commitments!); + checkUnnamed100(o.commitments!); checkCommitmentsScopedListWarning(o.warning!); } buildCounterCommitmentsScopedList--; @@ -4622,41 +4680,41 @@ void checkConsistentHashLoadBalancerSettingsHttpCookie( buildCounterConsistentHashLoadBalancerSettingsHttpCookie--; } -core.List buildUnnamed100() => ['foo', 'foo']; +core.List buildUnnamed102() => ['foo', 'foo']; -void checkUnnamed100(core.List o) { +void checkUnnamed102(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed101() => ['foo', 'foo']; +core.List buildUnnamed103() => ['foo', 'foo']; -void checkUnnamed101(core.List o) { +void checkUnnamed103(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed102() => ['foo', 'foo']; +core.List buildUnnamed104() => ['foo', 'foo']; -void checkUnnamed102(core.List o) { +void checkUnnamed104(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed103() => ['foo', 'foo']; +core.List buildUnnamed105() => ['foo', 'foo']; -void checkUnnamed103(core.List o) { +void checkUnnamed105(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed104() => ['foo', 'foo']; +core.List buildUnnamed106() => ['foo', 'foo']; -void checkUnnamed104(core.List o) { +void checkUnnamed106(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4668,12 +4726,12 @@ api.CorsPolicy buildCorsPolicy() { buildCounterCorsPolicy++; if (buildCounterCorsPolicy < 3) { o.allowCredentials = true; - o.allowHeaders = buildUnnamed100(); - o.allowMethods = buildUnnamed101(); - o.allowOriginRegexes = buildUnnamed102(); - o.allowOrigins = buildUnnamed103(); + o.allowHeaders = buildUnnamed102(); + o.allowMethods = buildUnnamed103(); + o.allowOriginRegexes = buildUnnamed104(); + o.allowOrigins = buildUnnamed105(); o.disabled = true; - o.exposeHeaders = buildUnnamed104(); + o.exposeHeaders = buildUnnamed106(); o.maxAge = 42; } buildCounterCorsPolicy--; @@ -4684,24 +4742,24 @@ void checkCorsPolicy(api.CorsPolicy o) { buildCounterCorsPolicy++; if (buildCounterCorsPolicy < 3) { unittest.expect(o.allowCredentials!, unittest.isTrue); - checkUnnamed100(o.allowHeaders!); - checkUnnamed101(o.allowMethods!); - checkUnnamed102(o.allowOriginRegexes!); - checkUnnamed103(o.allowOrigins!); + checkUnnamed102(o.allowHeaders!); + checkUnnamed103(o.allowMethods!); + checkUnnamed104(o.allowOriginRegexes!); + checkUnnamed105(o.allowOrigins!); unittest.expect(o.disabled!, unittest.isTrue); - checkUnnamed104(o.exposeHeaders!); + checkUnnamed106(o.exposeHeaders!); unittest.expect(o.maxAge!, unittest.equals(42)); } buildCounterCorsPolicy--; } core.List -buildUnnamed105() => [ +buildUnnamed107() => [ buildCustomErrorResponsePolicyCustomErrorResponseRule(), buildCustomErrorResponsePolicyCustomErrorResponseRule(), ]; -void checkUnnamed105( +void checkUnnamed107( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4714,7 +4772,7 @@ api.CustomErrorResponsePolicy buildCustomErrorResponsePolicy() { final o = api.CustomErrorResponsePolicy(); buildCounterCustomErrorResponsePolicy++; if (buildCounterCustomErrorResponsePolicy < 3) { - o.errorResponseRules = buildUnnamed105(); + o.errorResponseRules = buildUnnamed107(); o.errorService = 'foo'; } buildCounterCustomErrorResponsePolicy--; @@ -4724,15 +4782,15 @@ api.CustomErrorResponsePolicy buildCustomErrorResponsePolicy() { void checkCustomErrorResponsePolicy(api.CustomErrorResponsePolicy o) { buildCounterCustomErrorResponsePolicy++; if (buildCounterCustomErrorResponsePolicy < 3) { - checkUnnamed105(o.errorResponseRules!); + checkUnnamed107(o.errorResponseRules!); unittest.expect(o.errorService!, unittest.equals('foo')); } buildCounterCustomErrorResponsePolicy--; } -core.List buildUnnamed106() => ['foo', 'foo']; +core.List buildUnnamed108() => ['foo', 'foo']; -void checkUnnamed106(core.List o) { +void checkUnnamed108(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4744,7 +4802,7 @@ buildCustomErrorResponsePolicyCustomErrorResponseRule() { final o = api.CustomErrorResponsePolicyCustomErrorResponseRule(); buildCounterCustomErrorResponsePolicyCustomErrorResponseRule++; if (buildCounterCustomErrorResponsePolicyCustomErrorResponseRule < 3) { - o.matchResponseCodes = buildUnnamed106(); + o.matchResponseCodes = buildUnnamed108(); o.overrideResponseCode = 42; o.path = 'foo'; } @@ -4757,7 +4815,7 @@ void checkCustomErrorResponsePolicyCustomErrorResponseRule( ) { buildCounterCustomErrorResponsePolicyCustomErrorResponseRule++; if (buildCounterCustomErrorResponsePolicyCustomErrorResponseRule < 3) { - checkUnnamed106(o.matchResponseCodes!); + checkUnnamed108(o.matchResponseCodes!); unittest.expect(o.overrideResponseCode!, unittest.equals(42)); unittest.expect(o.path!, unittest.equals('foo')); } @@ -4842,74 +4900,74 @@ void checkDeprecationStatus(api.DeprecationStatus o) { buildCounterDeprecationStatus--; } -core.Map buildUnnamed107() => { +core.Map buildUnnamed109() => { 'x': buildDiskAsyncReplicationList(), 'y': buildDiskAsyncReplicationList(), }; -void checkUnnamed107(core.Map o) { +void checkUnnamed109(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkDiskAsyncReplicationList(o['x']!); checkDiskAsyncReplicationList(o['y']!); } -core.List buildUnnamed108() => [ +core.List buildUnnamed110() => [ buildGuestOsFeature(), buildGuestOsFeature(), ]; -void checkUnnamed108(core.List o) { +void checkUnnamed110(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGuestOsFeature(o[0]); checkGuestOsFeature(o[1]); } -core.Map buildUnnamed109() => { +core.Map buildUnnamed111() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed109(core.Map o) { +void checkUnnamed111(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed110() => ['foo', 'foo']; +core.List buildUnnamed112() => ['foo', 'foo']; -void checkUnnamed110(core.List o) { +void checkUnnamed112(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed111() => ['foo', 'foo']; +core.List buildUnnamed113() => ['foo', 'foo']; -void checkUnnamed111(core.List o) { +void checkUnnamed113(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed112() => ['foo', 'foo']; +core.List buildUnnamed114() => ['foo', 'foo']; -void checkUnnamed112(core.List o) { +void checkUnnamed114(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed113() => ['foo', 'foo']; +core.List buildUnnamed115() => ['foo', 'foo']; -void checkUnnamed113(core.List o) { +void checkUnnamed115(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed114() => ['foo', 'foo']; +core.List buildUnnamed116() => ['foo', 'foo']; -void checkUnnamed114(core.List o) { +void checkUnnamed116(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4923,20 +4981,20 @@ api.Disk buildDisk() { o.accessMode = 'foo'; o.architecture = 'foo'; o.asyncPrimaryDisk = buildDiskAsyncReplication(); - o.asyncSecondaryDisks = buildUnnamed107(); + o.asyncSecondaryDisks = buildUnnamed109(); o.creationTimestamp = 'foo'; o.description = 'foo'; o.diskEncryptionKey = buildCustomerEncryptionKey(); o.enableConfidentialCompute = true; - o.guestOsFeatures = buildUnnamed108(); + o.guestOsFeatures = buildUnnamed110(); o.id = 'foo'; o.kind = 'foo'; o.labelFingerprint = 'foo'; - o.labels = buildUnnamed109(); + o.labels = buildUnnamed111(); o.lastAttachTimestamp = 'foo'; o.lastDetachTimestamp = 'foo'; - o.licenseCodes = buildUnnamed110(); - o.licenses = buildUnnamed111(); + o.licenseCodes = buildUnnamed112(); + o.licenses = buildUnnamed113(); o.locationHint = 'foo'; o.name = 'foo'; o.options = 'foo'; @@ -4945,8 +5003,8 @@ api.Disk buildDisk() { o.provisionedIops = 'foo'; o.provisionedThroughput = 'foo'; o.region = 'foo'; - o.replicaZones = buildUnnamed112(); - o.resourcePolicies = buildUnnamed113(); + o.replicaZones = buildUnnamed114(); + o.resourcePolicies = buildUnnamed115(); o.resourceStatus = buildDiskResourceStatus(); o.satisfiesPzi = true; o.satisfiesPzs = true; @@ -4968,7 +5026,7 @@ api.Disk buildDisk() { o.status = 'foo'; o.storagePool = 'foo'; o.type = 'foo'; - o.users = buildUnnamed114(); + o.users = buildUnnamed116(); o.zone = 'foo'; } buildCounterDisk--; @@ -4981,20 +5039,20 @@ void checkDisk(api.Disk o) { unittest.expect(o.accessMode!, unittest.equals('foo')); unittest.expect(o.architecture!, unittest.equals('foo')); checkDiskAsyncReplication(o.asyncPrimaryDisk!); - checkUnnamed107(o.asyncSecondaryDisks!); + checkUnnamed109(o.asyncSecondaryDisks!); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); checkCustomerEncryptionKey(o.diskEncryptionKey!); unittest.expect(o.enableConfidentialCompute!, unittest.isTrue); - checkUnnamed108(o.guestOsFeatures!); + checkUnnamed110(o.guestOsFeatures!); unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed109(o.labels!); + checkUnnamed111(o.labels!); unittest.expect(o.lastAttachTimestamp!, unittest.equals('foo')); unittest.expect(o.lastDetachTimestamp!, unittest.equals('foo')); - checkUnnamed110(o.licenseCodes!); - checkUnnamed111(o.licenses!); + checkUnnamed112(o.licenseCodes!); + checkUnnamed113(o.licenses!); unittest.expect(o.locationHint!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.options!, unittest.equals('foo')); @@ -5003,8 +5061,8 @@ void checkDisk(api.Disk o) { unittest.expect(o.provisionedIops!, unittest.equals('foo')); unittest.expect(o.provisionedThroughput!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); - checkUnnamed112(o.replicaZones!); - checkUnnamed113(o.resourcePolicies!); + checkUnnamed114(o.replicaZones!); + checkUnnamed115(o.resourcePolicies!); checkDiskResourceStatus(o.resourceStatus!); unittest.expect(o.satisfiesPzi!, unittest.isTrue); unittest.expect(o.satisfiesPzs!, unittest.isTrue); @@ -5026,26 +5084,26 @@ void checkDisk(api.Disk o) { unittest.expect(o.status!, unittest.equals('foo')); unittest.expect(o.storagePool!, unittest.equals('foo')); unittest.expect(o.type!, unittest.equals('foo')); - checkUnnamed114(o.users!); + checkUnnamed116(o.users!); unittest.expect(o.zone!, unittest.equals('foo')); } buildCounterDisk--; } -core.Map buildUnnamed115() => { +core.Map buildUnnamed117() => { 'x': buildDisksScopedList(), 'y': buildDisksScopedList(), }; -void checkUnnamed115(core.Map o) { +void checkUnnamed117(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedList(o['x']!); checkDisksScopedList(o['y']!); } -core.List buildUnnamed116() => ['foo', 'foo']; +core.List buildUnnamed118() => ['foo', 'foo']; -void checkUnnamed116(core.List o) { +void checkUnnamed118(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5072,12 +5130,12 @@ void checkDiskAggregatedListWarningData(api.DiskAggregatedListWarningData o) { buildCounterDiskAggregatedListWarningData--; } -core.List buildUnnamed117() => [ +core.List buildUnnamed119() => [ buildDiskAggregatedListWarningData(), buildDiskAggregatedListWarningData(), ]; -void checkUnnamed117(core.List o) { +void checkUnnamed119(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDiskAggregatedListWarningData(o[0]); checkDiskAggregatedListWarningData(o[1]); @@ -5089,7 +5147,7 @@ api.DiskAggregatedListWarning buildDiskAggregatedListWarning() { buildCounterDiskAggregatedListWarning++; if (buildCounterDiskAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed117(); + o.data = buildUnnamed119(); o.message = 'foo'; } buildCounterDiskAggregatedListWarning--; @@ -5100,7 +5158,7 @@ void checkDiskAggregatedListWarning(api.DiskAggregatedListWarning o) { buildCounterDiskAggregatedListWarning++; if (buildCounterDiskAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed117(o.data!); + checkUnnamed119(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterDiskAggregatedListWarning--; @@ -5112,11 +5170,11 @@ api.DiskAggregatedList buildDiskAggregatedList() { buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed115(); + o.items = buildUnnamed117(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed116(); + o.unreachables = buildUnnamed118(); o.warning = buildDiskAggregatedListWarning(); } buildCounterDiskAggregatedList--; @@ -5127,11 +5185,11 @@ void checkDiskAggregatedList(api.DiskAggregatedList o) { buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed115(o.items!); + checkUnnamed117(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed116(o.unreachables!); + checkUnnamed118(o.unreachables!); checkDiskAggregatedListWarning(o.warning!); } buildCounterDiskAggregatedList--; @@ -5206,9 +5264,9 @@ void checkDiskInstantiationConfig(api.DiskInstantiationConfig o) { buildCounterDiskInstantiationConfig--; } -core.List buildUnnamed118() => [buildDisk(), buildDisk()]; +core.List buildUnnamed120() => [buildDisk(), buildDisk()]; -void checkUnnamed118(core.List o) { +void checkUnnamed120(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -5235,12 +5293,12 @@ void checkDiskListWarningData(api.DiskListWarningData o) { buildCounterDiskListWarningData--; } -core.List buildUnnamed119() => [ +core.List buildUnnamed121() => [ buildDiskListWarningData(), buildDiskListWarningData(), ]; -void checkUnnamed119(core.List o) { +void checkUnnamed121(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDiskListWarningData(o[0]); checkDiskListWarningData(o[1]); @@ -5252,7 +5310,7 @@ api.DiskListWarning buildDiskListWarning() { buildCounterDiskListWarning++; if (buildCounterDiskListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed119(); + o.data = buildUnnamed121(); o.message = 'foo'; } buildCounterDiskListWarning--; @@ -5263,7 +5321,7 @@ void checkDiskListWarning(api.DiskListWarning o) { buildCounterDiskListWarning++; if (buildCounterDiskListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed119(o.data!); + checkUnnamed121(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterDiskListWarning--; @@ -5275,7 +5333,7 @@ api.DiskList buildDiskList() { buildCounterDiskList++; if (buildCounterDiskList < 3) { o.id = 'foo'; - o.items = buildUnnamed118(); + o.items = buildUnnamed120(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -5289,7 +5347,7 @@ void checkDiskList(api.DiskList o) { buildCounterDiskList++; if (buildCounterDiskList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed118(o.items!); + checkUnnamed120(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -5319,12 +5377,12 @@ void checkDiskMoveRequest(api.DiskMoveRequest o) { buildCounterDiskMoveRequest--; } -core.Map buildUnnamed120() => { +core.Map buildUnnamed122() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed120(core.Map o) { +void checkUnnamed122(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -5335,7 +5393,7 @@ api.DiskParams buildDiskParams() { final o = api.DiskParams(); buildCounterDiskParams++; if (buildCounterDiskParams < 3) { - o.resourceManagerTags = buildUnnamed120(); + o.resourceManagerTags = buildUnnamed122(); } buildCounterDiskParams--; return o; @@ -5344,18 +5402,18 @@ api.DiskParams buildDiskParams() { void checkDiskParams(api.DiskParams o) { buildCounterDiskParams++; if (buildCounterDiskParams < 3) { - checkUnnamed120(o.resourceManagerTags!); + checkUnnamed122(o.resourceManagerTags!); } buildCounterDiskParams--; } core.Map -buildUnnamed121() => { +buildUnnamed123() => { 'x': buildDiskResourceStatusAsyncReplicationStatus(), 'y': buildDiskResourceStatusAsyncReplicationStatus(), }; -void checkUnnamed121( +void checkUnnamed123( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -5369,7 +5427,7 @@ api.DiskResourceStatus buildDiskResourceStatus() { buildCounterDiskResourceStatus++; if (buildCounterDiskResourceStatus < 3) { o.asyncPrimaryDisk = buildDiskResourceStatusAsyncReplicationStatus(); - o.asyncSecondaryDisks = buildUnnamed121(); + o.asyncSecondaryDisks = buildUnnamed123(); } buildCounterDiskResourceStatus--; return o; @@ -5379,7 +5437,7 @@ void checkDiskResourceStatus(api.DiskResourceStatus o) { buildCounterDiskResourceStatus++; if (buildCounterDiskResourceStatus < 3) { checkDiskResourceStatusAsyncReplicationStatus(o.asyncPrimaryDisk!); - checkUnnamed121(o.asyncSecondaryDisks!); + checkUnnamed123(o.asyncSecondaryDisks!); } buildCounterDiskResourceStatus--; } @@ -5445,20 +5503,20 @@ void checkDiskType(api.DiskType o) { buildCounterDiskType--; } -core.Map buildUnnamed122() => { +core.Map buildUnnamed124() => { 'x': buildDiskTypesScopedList(), 'y': buildDiskTypesScopedList(), }; -void checkUnnamed122(core.Map o) { +void checkUnnamed124(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedList(o['x']!); checkDiskTypesScopedList(o['y']!); } -core.List buildUnnamed123() => ['foo', 'foo']; +core.List buildUnnamed125() => ['foo', 'foo']; -void checkUnnamed123(core.List o) { +void checkUnnamed125(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5487,12 +5545,12 @@ void checkDiskTypeAggregatedListWarningData( buildCounterDiskTypeAggregatedListWarningData--; } -core.List buildUnnamed124() => [ +core.List buildUnnamed126() => [ buildDiskTypeAggregatedListWarningData(), buildDiskTypeAggregatedListWarningData(), ]; -void checkUnnamed124(core.List o) { +void checkUnnamed126(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypeAggregatedListWarningData(o[0]); checkDiskTypeAggregatedListWarningData(o[1]); @@ -5504,7 +5562,7 @@ api.DiskTypeAggregatedListWarning buildDiskTypeAggregatedListWarning() { buildCounterDiskTypeAggregatedListWarning++; if (buildCounterDiskTypeAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed124(); + o.data = buildUnnamed126(); o.message = 'foo'; } buildCounterDiskTypeAggregatedListWarning--; @@ -5515,7 +5573,7 @@ void checkDiskTypeAggregatedListWarning(api.DiskTypeAggregatedListWarning o) { buildCounterDiskTypeAggregatedListWarning++; if (buildCounterDiskTypeAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed124(o.data!); + checkUnnamed126(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterDiskTypeAggregatedListWarning--; @@ -5527,11 +5585,11 @@ api.DiskTypeAggregatedList buildDiskTypeAggregatedList() { buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed122(); + o.items = buildUnnamed124(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed123(); + o.unreachables = buildUnnamed125(); o.warning = buildDiskTypeAggregatedListWarning(); } buildCounterDiskTypeAggregatedList--; @@ -5542,19 +5600,19 @@ void checkDiskTypeAggregatedList(api.DiskTypeAggregatedList o) { buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed122(o.items!); + checkUnnamed124(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed123(o.unreachables!); + checkUnnamed125(o.unreachables!); checkDiskTypeAggregatedListWarning(o.warning!); } buildCounterDiskTypeAggregatedList--; } -core.List buildUnnamed125() => [buildDiskType(), buildDiskType()]; +core.List buildUnnamed127() => [buildDiskType(), buildDiskType()]; -void checkUnnamed125(core.List o) { +void checkUnnamed127(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -5581,12 +5639,12 @@ void checkDiskTypeListWarningData(api.DiskTypeListWarningData o) { buildCounterDiskTypeListWarningData--; } -core.List buildUnnamed126() => [ +core.List buildUnnamed128() => [ buildDiskTypeListWarningData(), buildDiskTypeListWarningData(), ]; -void checkUnnamed126(core.List o) { +void checkUnnamed128(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypeListWarningData(o[0]); checkDiskTypeListWarningData(o[1]); @@ -5598,7 +5656,7 @@ api.DiskTypeListWarning buildDiskTypeListWarning() { buildCounterDiskTypeListWarning++; if (buildCounterDiskTypeListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed126(); + o.data = buildUnnamed128(); o.message = 'foo'; } buildCounterDiskTypeListWarning--; @@ -5609,7 +5667,7 @@ void checkDiskTypeListWarning(api.DiskTypeListWarning o) { buildCounterDiskTypeListWarning++; if (buildCounterDiskTypeListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed126(o.data!); + checkUnnamed128(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterDiskTypeListWarning--; @@ -5621,7 +5679,7 @@ api.DiskTypeList buildDiskTypeList() { buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { o.id = 'foo'; - o.items = buildUnnamed125(); + o.items = buildUnnamed127(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -5635,7 +5693,7 @@ void checkDiskTypeList(api.DiskTypeList o) { buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed125(o.items!); + checkUnnamed127(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -5644,9 +5702,9 @@ void checkDiskTypeList(api.DiskTypeList o) { buildCounterDiskTypeList--; } -core.List buildUnnamed127() => [buildDiskType(), buildDiskType()]; +core.List buildUnnamed129() => [buildDiskType(), buildDiskType()]; -void checkUnnamed127(core.List o) { +void checkUnnamed129(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -5673,12 +5731,12 @@ void checkDiskTypesScopedListWarningData(api.DiskTypesScopedListWarningData o) { buildCounterDiskTypesScopedListWarningData--; } -core.List buildUnnamed128() => [ +core.List buildUnnamed130() => [ buildDiskTypesScopedListWarningData(), buildDiskTypesScopedListWarningData(), ]; -void checkUnnamed128(core.List o) { +void checkUnnamed130(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedListWarningData(o[0]); checkDiskTypesScopedListWarningData(o[1]); @@ -5690,7 +5748,7 @@ api.DiskTypesScopedListWarning buildDiskTypesScopedListWarning() { buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed128(); + o.data = buildUnnamed130(); o.message = 'foo'; } buildCounterDiskTypesScopedListWarning--; @@ -5701,7 +5759,7 @@ void checkDiskTypesScopedListWarning(api.DiskTypesScopedListWarning o) { buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed128(o.data!); + checkUnnamed130(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterDiskTypesScopedListWarning--; @@ -5712,7 +5770,7 @@ api.DiskTypesScopedList buildDiskTypesScopedList() { final o = api.DiskTypesScopedList(); buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - o.diskTypes = buildUnnamed127(); + o.diskTypes = buildUnnamed129(); o.warning = buildDiskTypesScopedListWarning(); } buildCounterDiskTypesScopedList--; @@ -5722,15 +5780,15 @@ api.DiskTypesScopedList buildDiskTypesScopedList() { void checkDiskTypesScopedList(api.DiskTypesScopedList o) { buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - checkUnnamed127(o.diskTypes!); + checkUnnamed129(o.diskTypes!); checkDiskTypesScopedListWarning(o.warning!); } buildCounterDiskTypesScopedList--; } -core.List buildUnnamed129() => ['foo', 'foo']; +core.List buildUnnamed131() => ['foo', 'foo']; -void checkUnnamed129(core.List o) { +void checkUnnamed131(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5741,7 +5799,7 @@ api.DisksAddResourcePoliciesRequest buildDisksAddResourcePoliciesRequest() { final o = api.DisksAddResourcePoliciesRequest(); buildCounterDisksAddResourcePoliciesRequest++; if (buildCounterDisksAddResourcePoliciesRequest < 3) { - o.resourcePolicies = buildUnnamed129(); + o.resourcePolicies = buildUnnamed131(); } buildCounterDisksAddResourcePoliciesRequest--; return o; @@ -5752,14 +5810,14 @@ void checkDisksAddResourcePoliciesRequest( ) { buildCounterDisksAddResourcePoliciesRequest++; if (buildCounterDisksAddResourcePoliciesRequest < 3) { - checkUnnamed129(o.resourcePolicies!); + checkUnnamed131(o.resourcePolicies!); } buildCounterDisksAddResourcePoliciesRequest--; } -core.List buildUnnamed130() => ['foo', 'foo']; +core.List buildUnnamed132() => ['foo', 'foo']; -void checkUnnamed130(core.List o) { +void checkUnnamed132(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5771,7 +5829,7 @@ buildDisksRemoveResourcePoliciesRequest() { final o = api.DisksRemoveResourcePoliciesRequest(); buildCounterDisksRemoveResourcePoliciesRequest++; if (buildCounterDisksRemoveResourcePoliciesRequest < 3) { - o.resourcePolicies = buildUnnamed130(); + o.resourcePolicies = buildUnnamed132(); } buildCounterDisksRemoveResourcePoliciesRequest--; return o; @@ -5782,7 +5840,7 @@ void checkDisksRemoveResourcePoliciesRequest( ) { buildCounterDisksRemoveResourcePoliciesRequest++; if (buildCounterDisksRemoveResourcePoliciesRequest < 3) { - checkUnnamed130(o.resourcePolicies!); + checkUnnamed132(o.resourcePolicies!); } buildCounterDisksRemoveResourcePoliciesRequest--; } @@ -5806,9 +5864,9 @@ void checkDisksResizeRequest(api.DisksResizeRequest o) { buildCounterDisksResizeRequest--; } -core.List buildUnnamed131() => [buildDisk(), buildDisk()]; +core.List buildUnnamed133() => [buildDisk(), buildDisk()]; -void checkUnnamed131(core.List o) { +void checkUnnamed133(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -5835,12 +5893,12 @@ void checkDisksScopedListWarningData(api.DisksScopedListWarningData o) { buildCounterDisksScopedListWarningData--; } -core.List buildUnnamed132() => [ +core.List buildUnnamed134() => [ buildDisksScopedListWarningData(), buildDisksScopedListWarningData(), ]; -void checkUnnamed132(core.List o) { +void checkUnnamed134(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedListWarningData(o[0]); checkDisksScopedListWarningData(o[1]); @@ -5852,7 +5910,7 @@ api.DisksScopedListWarning buildDisksScopedListWarning() { buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed132(); + o.data = buildUnnamed134(); o.message = 'foo'; } buildCounterDisksScopedListWarning--; @@ -5863,7 +5921,7 @@ void checkDisksScopedListWarning(api.DisksScopedListWarning o) { buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed132(o.data!); + checkUnnamed134(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterDisksScopedListWarning--; @@ -5874,7 +5932,7 @@ api.DisksScopedList buildDisksScopedList() { final o = api.DisksScopedList(); buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - o.disks = buildUnnamed131(); + o.disks = buildUnnamed133(); o.warning = buildDisksScopedListWarning(); } buildCounterDisksScopedList--; @@ -5884,7 +5942,7 @@ api.DisksScopedList buildDisksScopedList() { void checkDisksScopedList(api.DisksScopedList o) { buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - checkUnnamed131(o.disks!); + checkUnnamed133(o.disks!); checkDisksScopedListWarning(o.warning!); } buildCounterDisksScopedList--; @@ -5952,12 +6010,12 @@ void checkDisplayDevice(api.DisplayDevice o) { buildCounterDisplayDevice--; } -core.List buildUnnamed133() => [ +core.List buildUnnamed135() => [ buildDistributionPolicyZoneConfiguration(), buildDistributionPolicyZoneConfiguration(), ]; -void checkUnnamed133(core.List o) { +void checkUnnamed135(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDistributionPolicyZoneConfiguration(o[0]); checkDistributionPolicyZoneConfiguration(o[1]); @@ -5969,7 +6027,7 @@ api.DistributionPolicy buildDistributionPolicy() { buildCounterDistributionPolicy++; if (buildCounterDistributionPolicy < 3) { o.targetShape = 'foo'; - o.zones = buildUnnamed133(); + o.zones = buildUnnamed135(); } buildCounterDistributionPolicy--; return o; @@ -5979,7 +6037,7 @@ void checkDistributionPolicy(api.DistributionPolicy o) { buildCounterDistributionPolicy++; if (buildCounterDistributionPolicy < 3) { unittest.expect(o.targetShape!, unittest.equals('foo')); - checkUnnamed133(o.zones!); + checkUnnamed135(o.zones!); } buildCounterDistributionPolicy--; } @@ -6027,12 +6085,12 @@ void checkDuration(api.Duration o) { buildCounterDuration--; } -core.Map buildUnnamed134() => { +core.Map buildUnnamed136() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed134(core.Map o) { +void checkUnnamed136(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -6044,7 +6102,7 @@ api.ErrorInfo buildErrorInfo() { buildCounterErrorInfo++; if (buildCounterErrorInfo < 3) { o.domain = 'foo'; - o.metadatas = buildUnnamed134(); + o.metadatas = buildUnnamed136(); o.reason = 'foo'; } buildCounterErrorInfo--; @@ -6055,7 +6113,7 @@ void checkErrorInfo(api.ErrorInfo o) { buildCounterErrorInfo++; if (buildCounterErrorInfo < 3) { unittest.expect(o.domain!, unittest.equals('foo')); - checkUnnamed134(o.metadatas!); + checkUnnamed136(o.metadatas!); unittest.expect(o.reason!, unittest.equals('foo')); } buildCounterErrorInfo--; @@ -6088,12 +6146,12 @@ void checkExchangedPeeringRoute(api.ExchangedPeeringRoute o) { buildCounterExchangedPeeringRoute--; } -core.List buildUnnamed135() => [ +core.List buildUnnamed137() => [ buildExchangedPeeringRoute(), buildExchangedPeeringRoute(), ]; -void checkUnnamed135(core.List o) { +void checkUnnamed137(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkExchangedPeeringRoute(o[0]); checkExchangedPeeringRoute(o[1]); @@ -6123,12 +6181,12 @@ void checkExchangedPeeringRoutesListWarningData( buildCounterExchangedPeeringRoutesListWarningData--; } -core.List buildUnnamed136() => [ +core.List buildUnnamed138() => [ buildExchangedPeeringRoutesListWarningData(), buildExchangedPeeringRoutesListWarningData(), ]; -void checkUnnamed136(core.List o) { +void checkUnnamed138(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkExchangedPeeringRoutesListWarningData(o[0]); checkExchangedPeeringRoutesListWarningData(o[1]); @@ -6140,7 +6198,7 @@ api.ExchangedPeeringRoutesListWarning buildExchangedPeeringRoutesListWarning() { buildCounterExchangedPeeringRoutesListWarning++; if (buildCounterExchangedPeeringRoutesListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed136(); + o.data = buildUnnamed138(); o.message = 'foo'; } buildCounterExchangedPeeringRoutesListWarning--; @@ -6153,7 +6211,7 @@ void checkExchangedPeeringRoutesListWarning( buildCounterExchangedPeeringRoutesListWarning++; if (buildCounterExchangedPeeringRoutesListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed136(o.data!); + checkUnnamed138(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterExchangedPeeringRoutesListWarning--; @@ -6165,7 +6223,7 @@ api.ExchangedPeeringRoutesList buildExchangedPeeringRoutesList() { buildCounterExchangedPeeringRoutesList++; if (buildCounterExchangedPeeringRoutesList < 3) { o.id = 'foo'; - o.items = buildUnnamed135(); + o.items = buildUnnamed137(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -6179,7 +6237,7 @@ void checkExchangedPeeringRoutesList(api.ExchangedPeeringRoutesList o) { buildCounterExchangedPeeringRoutesList++; if (buildCounterExchangedPeeringRoutesList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed135(o.items!); + checkUnnamed137(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -6213,23 +6271,23 @@ void checkExpr(api.Expr o) { buildCounterExpr--; } -core.List buildUnnamed137() => [ +core.List buildUnnamed139() => [ buildExternalVpnGatewayInterface(), buildExternalVpnGatewayInterface(), ]; -void checkUnnamed137(core.List o) { +void checkUnnamed139(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkExternalVpnGatewayInterface(o[0]); checkExternalVpnGatewayInterface(o[1]); } -core.Map buildUnnamed138() => { +core.Map buildUnnamed140() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed138(core.Map o) { +void checkUnnamed140(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -6243,10 +6301,10 @@ api.ExternalVpnGateway buildExternalVpnGateway() { o.creationTimestamp = 'foo'; o.description = 'foo'; o.id = 'foo'; - o.interfaces = buildUnnamed137(); + o.interfaces = buildUnnamed139(); o.kind = 'foo'; o.labelFingerprint = 'foo'; - o.labels = buildUnnamed138(); + o.labels = buildUnnamed140(); o.name = 'foo'; o.redundancyType = 'foo'; o.selfLink = 'foo'; @@ -6261,10 +6319,10 @@ void checkExternalVpnGateway(api.ExternalVpnGateway o) { unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed137(o.interfaces!); + checkUnnamed139(o.interfaces!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed138(o.labels!); + checkUnnamed140(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.redundancyType!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -6295,12 +6353,12 @@ void checkExternalVpnGatewayInterface(api.ExternalVpnGatewayInterface o) { buildCounterExternalVpnGatewayInterface--; } -core.List buildUnnamed139() => [ +core.List buildUnnamed141() => [ buildExternalVpnGateway(), buildExternalVpnGateway(), ]; -void checkUnnamed139(core.List o) { +void checkUnnamed141(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkExternalVpnGateway(o[0]); checkExternalVpnGateway(o[1]); @@ -6329,12 +6387,12 @@ void checkExternalVpnGatewayListWarningData( buildCounterExternalVpnGatewayListWarningData--; } -core.List buildUnnamed140() => [ +core.List buildUnnamed142() => [ buildExternalVpnGatewayListWarningData(), buildExternalVpnGatewayListWarningData(), ]; -void checkUnnamed140(core.List o) { +void checkUnnamed142(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkExternalVpnGatewayListWarningData(o[0]); checkExternalVpnGatewayListWarningData(o[1]); @@ -6346,7 +6404,7 @@ api.ExternalVpnGatewayListWarning buildExternalVpnGatewayListWarning() { buildCounterExternalVpnGatewayListWarning++; if (buildCounterExternalVpnGatewayListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed140(); + o.data = buildUnnamed142(); o.message = 'foo'; } buildCounterExternalVpnGatewayListWarning--; @@ -6357,7 +6415,7 @@ void checkExternalVpnGatewayListWarning(api.ExternalVpnGatewayListWarning o) { buildCounterExternalVpnGatewayListWarning++; if (buildCounterExternalVpnGatewayListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed140(o.data!); + checkUnnamed142(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterExternalVpnGatewayListWarning--; @@ -6370,7 +6428,7 @@ api.ExternalVpnGatewayList buildExternalVpnGatewayList() { if (buildCounterExternalVpnGatewayList < 3) { o.etag = 'foo'; o.id = 'foo'; - o.items = buildUnnamed139(); + o.items = buildUnnamed141(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -6385,7 +6443,7 @@ void checkExternalVpnGatewayList(api.ExternalVpnGatewayList o) { if (buildCounterExternalVpnGatewayList < 3) { unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed139(o.items!); + checkUnnamed141(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -6415,9 +6473,9 @@ void checkFileContentBuffer(api.FileContentBuffer o) { buildCounterFileContentBuffer--; } -core.List buildUnnamed141() => ['foo', 'foo']; +core.List buildUnnamed143() => ['foo', 'foo']; -void checkUnnamed141(core.List o) { +void checkUnnamed143(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6429,7 +6487,7 @@ api.FirewallAllowed buildFirewallAllowed() { buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { o.IPProtocol = 'foo'; - o.ports = buildUnnamed141(); + o.ports = buildUnnamed143(); } buildCounterFirewallAllowed--; return o; @@ -6439,25 +6497,25 @@ void checkFirewallAllowed(api.FirewallAllowed o) { buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { unittest.expect(o.IPProtocol!, unittest.equals('foo')); - checkUnnamed141(o.ports!); + checkUnnamed143(o.ports!); } buildCounterFirewallAllowed--; } -core.List buildUnnamed142() => [ +core.List buildUnnamed144() => [ buildFirewallAllowed(), buildFirewallAllowed(), ]; -void checkUnnamed142(core.List o) { +void checkUnnamed144(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallAllowed(o[0]); checkFirewallAllowed(o[1]); } -core.List buildUnnamed143() => ['foo', 'foo']; +core.List buildUnnamed145() => ['foo', 'foo']; -void checkUnnamed143(core.List o) { +void checkUnnamed145(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6469,7 +6527,7 @@ api.FirewallDenied buildFirewallDenied() { buildCounterFirewallDenied++; if (buildCounterFirewallDenied < 3) { o.IPProtocol = 'foo'; - o.ports = buildUnnamed143(); + o.ports = buildUnnamed145(); } buildCounterFirewallDenied--; return o; @@ -6479,65 +6537,65 @@ void checkFirewallDenied(api.FirewallDenied o) { buildCounterFirewallDenied++; if (buildCounterFirewallDenied < 3) { unittest.expect(o.IPProtocol!, unittest.equals('foo')); - checkUnnamed143(o.ports!); + checkUnnamed145(o.ports!); } buildCounterFirewallDenied--; } -core.List buildUnnamed144() => [ +core.List buildUnnamed146() => [ buildFirewallDenied(), buildFirewallDenied(), ]; -void checkUnnamed144(core.List o) { +void checkUnnamed146(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallDenied(o[0]); checkFirewallDenied(o[1]); } -core.List buildUnnamed145() => ['foo', 'foo']; +core.List buildUnnamed147() => ['foo', 'foo']; -void checkUnnamed145(core.List o) { +void checkUnnamed147(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed146() => ['foo', 'foo']; +core.List buildUnnamed148() => ['foo', 'foo']; -void checkUnnamed146(core.List o) { +void checkUnnamed148(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed147() => ['foo', 'foo']; +core.List buildUnnamed149() => ['foo', 'foo']; -void checkUnnamed147(core.List o) { +void checkUnnamed149(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed148() => ['foo', 'foo']; +core.List buildUnnamed150() => ['foo', 'foo']; -void checkUnnamed148(core.List o) { +void checkUnnamed150(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed149() => ['foo', 'foo']; +core.List buildUnnamed151() => ['foo', 'foo']; -void checkUnnamed149(core.List o) { +void checkUnnamed151(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed150() => ['foo', 'foo']; +core.List buildUnnamed152() => ['foo', 'foo']; -void checkUnnamed150(core.List o) { +void checkUnnamed152(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6548,11 +6606,11 @@ api.Firewall buildFirewall() { final o = api.Firewall(); buildCounterFirewall++; if (buildCounterFirewall < 3) { - o.allowed = buildUnnamed142(); + o.allowed = buildUnnamed144(); o.creationTimestamp = 'foo'; - o.denied = buildUnnamed144(); + o.denied = buildUnnamed146(); o.description = 'foo'; - o.destinationRanges = buildUnnamed145(); + o.destinationRanges = buildUnnamed147(); o.direction = 'foo'; o.disabled = true; o.id = 'foo'; @@ -6563,11 +6621,11 @@ api.Firewall buildFirewall() { o.params = buildFirewallParams(); o.priority = 42; o.selfLink = 'foo'; - o.sourceRanges = buildUnnamed146(); - o.sourceServiceAccounts = buildUnnamed147(); - o.sourceTags = buildUnnamed148(); - o.targetServiceAccounts = buildUnnamed149(); - o.targetTags = buildUnnamed150(); + o.sourceRanges = buildUnnamed148(); + o.sourceServiceAccounts = buildUnnamed149(); + o.sourceTags = buildUnnamed150(); + o.targetServiceAccounts = buildUnnamed151(); + o.targetTags = buildUnnamed152(); } buildCounterFirewall--; return o; @@ -6576,11 +6634,11 @@ api.Firewall buildFirewall() { void checkFirewall(api.Firewall o) { buildCounterFirewall++; if (buildCounterFirewall < 3) { - checkUnnamed142(o.allowed!); + checkUnnamed144(o.allowed!); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); - checkUnnamed144(o.denied!); + checkUnnamed146(o.denied!); unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed145(o.destinationRanges!); + checkUnnamed147(o.destinationRanges!); unittest.expect(o.direction!, unittest.equals('foo')); unittest.expect(o.disabled!, unittest.isTrue); unittest.expect(o.id!, unittest.equals('foo')); @@ -6591,18 +6649,18 @@ void checkFirewall(api.Firewall o) { checkFirewallParams(o.params!); unittest.expect(o.priority!, unittest.equals(42)); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed146(o.sourceRanges!); - checkUnnamed147(o.sourceServiceAccounts!); - checkUnnamed148(o.sourceTags!); - checkUnnamed149(o.targetServiceAccounts!); - checkUnnamed150(o.targetTags!); + checkUnnamed148(o.sourceRanges!); + checkUnnamed149(o.sourceServiceAccounts!); + checkUnnamed150(o.sourceTags!); + checkUnnamed151(o.targetServiceAccounts!); + checkUnnamed152(o.targetTags!); } buildCounterFirewall--; } -core.List buildUnnamed151() => [buildFirewall(), buildFirewall()]; +core.List buildUnnamed153() => [buildFirewall(), buildFirewall()]; -void checkUnnamed151(core.List o) { +void checkUnnamed153(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewall(o[0]); checkFirewall(o[1]); @@ -6629,12 +6687,12 @@ void checkFirewallListWarningData(api.FirewallListWarningData o) { buildCounterFirewallListWarningData--; } -core.List buildUnnamed152() => [ +core.List buildUnnamed154() => [ buildFirewallListWarningData(), buildFirewallListWarningData(), ]; -void checkUnnamed152(core.List o) { +void checkUnnamed154(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallListWarningData(o[0]); checkFirewallListWarningData(o[1]); @@ -6646,7 +6704,7 @@ api.FirewallListWarning buildFirewallListWarning() { buildCounterFirewallListWarning++; if (buildCounterFirewallListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed152(); + o.data = buildUnnamed154(); o.message = 'foo'; } buildCounterFirewallListWarning--; @@ -6657,7 +6715,7 @@ void checkFirewallListWarning(api.FirewallListWarning o) { buildCounterFirewallListWarning++; if (buildCounterFirewallListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed152(o.data!); + checkUnnamed154(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterFirewallListWarning--; @@ -6669,7 +6727,7 @@ api.FirewallList buildFirewallList() { buildCounterFirewallList++; if (buildCounterFirewallList < 3) { o.id = 'foo'; - o.items = buildUnnamed151(); + o.items = buildUnnamed153(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -6683,7 +6741,7 @@ void checkFirewallList(api.FirewallList o) { buildCounterFirewallList++; if (buildCounterFirewallList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed151(o.items!); + checkUnnamed153(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -6713,12 +6771,12 @@ void checkFirewallLogConfig(api.FirewallLogConfig o) { buildCounterFirewallLogConfig--; } -core.Map buildUnnamed153() => { +core.Map buildUnnamed155() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed153(core.Map o) { +void checkUnnamed155(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -6729,7 +6787,7 @@ api.FirewallParams buildFirewallParams() { final o = api.FirewallParams(); buildCounterFirewallParams++; if (buildCounterFirewallParams < 3) { - o.resourceManagerTags = buildUnnamed153(); + o.resourceManagerTags = buildUnnamed155(); } buildCounterFirewallParams--; return o; @@ -6738,17 +6796,17 @@ api.FirewallParams buildFirewallParams() { void checkFirewallParams(api.FirewallParams o) { buildCounterFirewallParams++; if (buildCounterFirewallParams < 3) { - checkUnnamed153(o.resourceManagerTags!); + checkUnnamed155(o.resourceManagerTags!); } buildCounterFirewallParams--; } -core.List buildUnnamed154() => [ +core.List buildUnnamed156() => [ buildFirewallPolicyAssociation(), buildFirewallPolicyAssociation(), ]; -void checkUnnamed154(core.List o) { +void checkUnnamed156(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicyAssociation(o[0]); checkFirewallPolicyAssociation(o[1]); @@ -6760,7 +6818,7 @@ buildFirewallPoliciesListAssociationsResponse() { final o = api.FirewallPoliciesListAssociationsResponse(); buildCounterFirewallPoliciesListAssociationsResponse++; if (buildCounterFirewallPoliciesListAssociationsResponse < 3) { - o.associations = buildUnnamed154(); + o.associations = buildUnnamed156(); o.kind = 'foo'; } buildCounterFirewallPoliciesListAssociationsResponse--; @@ -6772,18 +6830,18 @@ void checkFirewallPoliciesListAssociationsResponse( ) { buildCounterFirewallPoliciesListAssociationsResponse++; if (buildCounterFirewallPoliciesListAssociationsResponse < 3) { - checkUnnamed154(o.associations!); + checkUnnamed156(o.associations!); unittest.expect(o.kind!, unittest.equals('foo')); } buildCounterFirewallPoliciesListAssociationsResponse--; } -core.List buildUnnamed155() => [ +core.List buildUnnamed157() => [ buildFirewallPolicy(), buildFirewallPolicy(), ]; -void checkUnnamed155(core.List o) { +void checkUnnamed157(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicy(o[0]); checkFirewallPolicy(o[1]); @@ -6813,12 +6871,12 @@ void checkFirewallPoliciesScopedListWarningData( buildCounterFirewallPoliciesScopedListWarningData--; } -core.List buildUnnamed156() => [ +core.List buildUnnamed158() => [ buildFirewallPoliciesScopedListWarningData(), buildFirewallPoliciesScopedListWarningData(), ]; -void checkUnnamed156(core.List o) { +void checkUnnamed158(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPoliciesScopedListWarningData(o[0]); checkFirewallPoliciesScopedListWarningData(o[1]); @@ -6830,7 +6888,7 @@ api.FirewallPoliciesScopedListWarning buildFirewallPoliciesScopedListWarning() { buildCounterFirewallPoliciesScopedListWarning++; if (buildCounterFirewallPoliciesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed156(); + o.data = buildUnnamed158(); o.message = 'foo'; } buildCounterFirewallPoliciesScopedListWarning--; @@ -6843,7 +6901,7 @@ void checkFirewallPoliciesScopedListWarning( buildCounterFirewallPoliciesScopedListWarning++; if (buildCounterFirewallPoliciesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed156(o.data!); + checkUnnamed158(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterFirewallPoliciesScopedListWarning--; @@ -6854,7 +6912,7 @@ api.FirewallPoliciesScopedList buildFirewallPoliciesScopedList() { final o = api.FirewallPoliciesScopedList(); buildCounterFirewallPoliciesScopedList++; if (buildCounterFirewallPoliciesScopedList < 3) { - o.firewallPolicies = buildUnnamed155(); + o.firewallPolicies = buildUnnamed157(); o.warning = buildFirewallPoliciesScopedListWarning(); } buildCounterFirewallPoliciesScopedList--; @@ -6864,40 +6922,40 @@ api.FirewallPoliciesScopedList buildFirewallPoliciesScopedList() { void checkFirewallPoliciesScopedList(api.FirewallPoliciesScopedList o) { buildCounterFirewallPoliciesScopedList++; if (buildCounterFirewallPoliciesScopedList < 3) { - checkUnnamed155(o.firewallPolicies!); + checkUnnamed157(o.firewallPolicies!); checkFirewallPoliciesScopedListWarning(o.warning!); } buildCounterFirewallPoliciesScopedList--; } -core.List buildUnnamed157() => [ +core.List buildUnnamed159() => [ buildFirewallPolicyAssociation(), buildFirewallPolicyAssociation(), ]; -void checkUnnamed157(core.List o) { +void checkUnnamed159(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicyAssociation(o[0]); checkFirewallPolicyAssociation(o[1]); } -core.List buildUnnamed158() => [ +core.List buildUnnamed160() => [ buildFirewallPolicyRule(), buildFirewallPolicyRule(), ]; -void checkUnnamed158(core.List o) { +void checkUnnamed160(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicyRule(o[0]); checkFirewallPolicyRule(o[1]); } -core.List buildUnnamed159() => [ +core.List buildUnnamed161() => [ buildFirewallPolicyRule(), buildFirewallPolicyRule(), ]; -void checkUnnamed159(core.List o) { +void checkUnnamed161(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicyRule(o[0]); checkFirewallPolicyRule(o[1]); @@ -6908,7 +6966,7 @@ api.FirewallPolicy buildFirewallPolicy() { final o = api.FirewallPolicy(); buildCounterFirewallPolicy++; if (buildCounterFirewallPolicy < 3) { - o.associations = buildUnnamed157(); + o.associations = buildUnnamed159(); o.creationTimestamp = 'foo'; o.description = 'foo'; o.displayName = 'foo'; @@ -6916,11 +6974,11 @@ api.FirewallPolicy buildFirewallPolicy() { o.id = 'foo'; o.kind = 'foo'; o.name = 'foo'; - o.packetMirroringRules = buildUnnamed158(); + o.packetMirroringRules = buildUnnamed160(); o.parent = 'foo'; o.region = 'foo'; o.ruleTupleCount = 42; - o.rules = buildUnnamed159(); + o.rules = buildUnnamed161(); o.selfLink = 'foo'; o.selfLinkWithId = 'foo'; o.shortName = 'foo'; @@ -6932,7 +6990,7 @@ api.FirewallPolicy buildFirewallPolicy() { void checkFirewallPolicy(api.FirewallPolicy o) { buildCounterFirewallPolicy++; if (buildCounterFirewallPolicy < 3) { - checkUnnamed157(o.associations!); + checkUnnamed159(o.associations!); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); @@ -6940,11 +6998,11 @@ void checkFirewallPolicy(api.FirewallPolicy o) { unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed158(o.packetMirroringRules!); + checkUnnamed160(o.packetMirroringRules!); unittest.expect(o.parent!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.ruleTupleCount!, unittest.equals(42)); - checkUnnamed159(o.rules!); + checkUnnamed161(o.rules!); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.selfLinkWithId!, unittest.equals('foo')); unittest.expect(o.shortName!, unittest.equals('foo')); @@ -6979,12 +7037,12 @@ void checkFirewallPolicyAssociation(api.FirewallPolicyAssociation o) { buildCounterFirewallPolicyAssociation--; } -core.List buildUnnamed160() => [ +core.List buildUnnamed162() => [ buildFirewallPolicy(), buildFirewallPolicy(), ]; -void checkUnnamed160(core.List o) { +void checkUnnamed162(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicy(o[0]); checkFirewallPolicy(o[1]); @@ -7011,12 +7069,12 @@ void checkFirewallPolicyListWarningData(api.FirewallPolicyListWarningData o) { buildCounterFirewallPolicyListWarningData--; } -core.List buildUnnamed161() => [ +core.List buildUnnamed163() => [ buildFirewallPolicyListWarningData(), buildFirewallPolicyListWarningData(), ]; -void checkUnnamed161(core.List o) { +void checkUnnamed163(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicyListWarningData(o[0]); checkFirewallPolicyListWarningData(o[1]); @@ -7028,7 +7086,7 @@ api.FirewallPolicyListWarning buildFirewallPolicyListWarning() { buildCounterFirewallPolicyListWarning++; if (buildCounterFirewallPolicyListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed161(); + o.data = buildUnnamed163(); o.message = 'foo'; } buildCounterFirewallPolicyListWarning--; @@ -7039,7 +7097,7 @@ void checkFirewallPolicyListWarning(api.FirewallPolicyListWarning o) { buildCounterFirewallPolicyListWarning++; if (buildCounterFirewallPolicyListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed161(o.data!); + checkUnnamed163(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterFirewallPolicyListWarning--; @@ -7051,7 +7109,7 @@ api.FirewallPolicyList buildFirewallPolicyList() { buildCounterFirewallPolicyList++; if (buildCounterFirewallPolicyList < 3) { o.id = 'foo'; - o.items = buildUnnamed160(); + o.items = buildUnnamed162(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.warning = buildFirewallPolicyListWarning(); @@ -7064,7 +7122,7 @@ void checkFirewallPolicyList(api.FirewallPolicyList o) { buildCounterFirewallPolicyList++; if (buildCounterFirewallPolicyList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed160(o.items!); + checkUnnamed162(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); checkFirewallPolicyListWarning(o.warning!); @@ -7072,28 +7130,28 @@ void checkFirewallPolicyList(api.FirewallPolicyList o) { buildCounterFirewallPolicyList--; } -core.List buildUnnamed162() => ['foo', 'foo']; +core.List buildUnnamed164() => ['foo', 'foo']; -void checkUnnamed162(core.List o) { +void checkUnnamed164(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed163() => [ +core.List buildUnnamed165() => [ buildFirewallPolicyRuleSecureTag(), buildFirewallPolicyRuleSecureTag(), ]; -void checkUnnamed163(core.List o) { +void checkUnnamed165(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicyRuleSecureTag(o[0]); checkFirewallPolicyRuleSecureTag(o[1]); } -core.List buildUnnamed164() => ['foo', 'foo']; +core.List buildUnnamed166() => ['foo', 'foo']; -void checkUnnamed164(core.List o) { +void checkUnnamed166(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7115,9 +7173,9 @@ api.FirewallPolicyRule buildFirewallPolicyRule() { o.ruleName = 'foo'; o.ruleTupleCount = 42; o.securityProfileGroup = 'foo'; - o.targetResources = buildUnnamed162(); - o.targetSecureTags = buildUnnamed163(); - o.targetServiceAccounts = buildUnnamed164(); + o.targetResources = buildUnnamed164(); + o.targetSecureTags = buildUnnamed165(); + o.targetServiceAccounts = buildUnnamed166(); o.tlsInspect = true; } buildCounterFirewallPolicyRule--; @@ -7138,119 +7196,119 @@ void checkFirewallPolicyRule(api.FirewallPolicyRule o) { unittest.expect(o.ruleName!, unittest.equals('foo')); unittest.expect(o.ruleTupleCount!, unittest.equals(42)); unittest.expect(o.securityProfileGroup!, unittest.equals('foo')); - checkUnnamed162(o.targetResources!); - checkUnnamed163(o.targetSecureTags!); - checkUnnamed164(o.targetServiceAccounts!); + checkUnnamed164(o.targetResources!); + checkUnnamed165(o.targetSecureTags!); + checkUnnamed166(o.targetServiceAccounts!); unittest.expect(o.tlsInspect!, unittest.isTrue); } buildCounterFirewallPolicyRule--; } -core.List buildUnnamed165() => ['foo', 'foo']; +core.List buildUnnamed167() => ['foo', 'foo']; -void checkUnnamed165(core.List o) { +void checkUnnamed167(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed166() => ['foo', 'foo']; +core.List buildUnnamed168() => ['foo', 'foo']; -void checkUnnamed166(core.List o) { +void checkUnnamed168(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed167() => ['foo', 'foo']; +core.List buildUnnamed169() => ['foo', 'foo']; -void checkUnnamed167(core.List o) { +void checkUnnamed169(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed168() => ['foo', 'foo']; +core.List buildUnnamed170() => ['foo', 'foo']; -void checkUnnamed168(core.List o) { +void checkUnnamed170(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed169() => ['foo', 'foo']; +core.List buildUnnamed171() => ['foo', 'foo']; -void checkUnnamed169(core.List o) { +void checkUnnamed171(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed170() => [ +core.List buildUnnamed172() => [ buildFirewallPolicyRuleMatcherLayer4Config(), buildFirewallPolicyRuleMatcherLayer4Config(), ]; -void checkUnnamed170(core.List o) { +void checkUnnamed172(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicyRuleMatcherLayer4Config(o[0]); checkFirewallPolicyRuleMatcherLayer4Config(o[1]); } -core.List buildUnnamed171() => ['foo', 'foo']; +core.List buildUnnamed173() => ['foo', 'foo']; -void checkUnnamed171(core.List o) { +void checkUnnamed173(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed172() => ['foo', 'foo']; +core.List buildUnnamed174() => ['foo', 'foo']; -void checkUnnamed172(core.List o) { +void checkUnnamed174(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed173() => ['foo', 'foo']; +core.List buildUnnamed175() => ['foo', 'foo']; -void checkUnnamed173(core.List o) { +void checkUnnamed175(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed174() => ['foo', 'foo']; +core.List buildUnnamed176() => ['foo', 'foo']; -void checkUnnamed174(core.List o) { +void checkUnnamed176(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed175() => ['foo', 'foo']; +core.List buildUnnamed177() => ['foo', 'foo']; -void checkUnnamed175(core.List o) { +void checkUnnamed177(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed176() => [ +core.List buildUnnamed178() => [ buildFirewallPolicyRuleSecureTag(), buildFirewallPolicyRuleSecureTag(), ]; -void checkUnnamed176(core.List o) { +void checkUnnamed178(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicyRuleSecureTag(o[0]); checkFirewallPolicyRuleSecureTag(o[1]); } -core.List buildUnnamed177() => ['foo', 'foo']; +core.List buildUnnamed179() => ['foo', 'foo']; -void checkUnnamed177(core.List o) { +void checkUnnamed179(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7261,21 +7319,21 @@ api.FirewallPolicyRuleMatcher buildFirewallPolicyRuleMatcher() { final o = api.FirewallPolicyRuleMatcher(); buildCounterFirewallPolicyRuleMatcher++; if (buildCounterFirewallPolicyRuleMatcher < 3) { - o.destAddressGroups = buildUnnamed165(); - o.destFqdns = buildUnnamed166(); - o.destIpRanges = buildUnnamed167(); + o.destAddressGroups = buildUnnamed167(); + o.destFqdns = buildUnnamed168(); + o.destIpRanges = buildUnnamed169(); o.destNetworkType = 'foo'; - o.destRegionCodes = buildUnnamed168(); - o.destThreatIntelligences = buildUnnamed169(); - o.layer4Configs = buildUnnamed170(); - o.srcAddressGroups = buildUnnamed171(); - o.srcFqdns = buildUnnamed172(); - o.srcIpRanges = buildUnnamed173(); + o.destRegionCodes = buildUnnamed170(); + o.destThreatIntelligences = buildUnnamed171(); + o.layer4Configs = buildUnnamed172(); + o.srcAddressGroups = buildUnnamed173(); + o.srcFqdns = buildUnnamed174(); + o.srcIpRanges = buildUnnamed175(); o.srcNetworkType = 'foo'; - o.srcNetworks = buildUnnamed174(); - o.srcRegionCodes = buildUnnamed175(); - o.srcSecureTags = buildUnnamed176(); - o.srcThreatIntelligences = buildUnnamed177(); + o.srcNetworks = buildUnnamed176(); + o.srcRegionCodes = buildUnnamed177(); + o.srcSecureTags = buildUnnamed178(); + o.srcThreatIntelligences = buildUnnamed179(); } buildCounterFirewallPolicyRuleMatcher--; return o; @@ -7284,28 +7342,28 @@ api.FirewallPolicyRuleMatcher buildFirewallPolicyRuleMatcher() { void checkFirewallPolicyRuleMatcher(api.FirewallPolicyRuleMatcher o) { buildCounterFirewallPolicyRuleMatcher++; if (buildCounterFirewallPolicyRuleMatcher < 3) { - checkUnnamed165(o.destAddressGroups!); - checkUnnamed166(o.destFqdns!); - checkUnnamed167(o.destIpRanges!); + checkUnnamed167(o.destAddressGroups!); + checkUnnamed168(o.destFqdns!); + checkUnnamed169(o.destIpRanges!); unittest.expect(o.destNetworkType!, unittest.equals('foo')); - checkUnnamed168(o.destRegionCodes!); - checkUnnamed169(o.destThreatIntelligences!); - checkUnnamed170(o.layer4Configs!); - checkUnnamed171(o.srcAddressGroups!); - checkUnnamed172(o.srcFqdns!); - checkUnnamed173(o.srcIpRanges!); + checkUnnamed170(o.destRegionCodes!); + checkUnnamed171(o.destThreatIntelligences!); + checkUnnamed172(o.layer4Configs!); + checkUnnamed173(o.srcAddressGroups!); + checkUnnamed174(o.srcFqdns!); + checkUnnamed175(o.srcIpRanges!); unittest.expect(o.srcNetworkType!, unittest.equals('foo')); - checkUnnamed174(o.srcNetworks!); - checkUnnamed175(o.srcRegionCodes!); - checkUnnamed176(o.srcSecureTags!); - checkUnnamed177(o.srcThreatIntelligences!); + checkUnnamed176(o.srcNetworks!); + checkUnnamed177(o.srcRegionCodes!); + checkUnnamed178(o.srcSecureTags!); + checkUnnamed179(o.srcThreatIntelligences!); } buildCounterFirewallPolicyRuleMatcher--; } -core.List buildUnnamed178() => ['foo', 'foo']; +core.List buildUnnamed180() => ['foo', 'foo']; -void checkUnnamed178(core.List o) { +void checkUnnamed180(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7318,7 +7376,7 @@ buildFirewallPolicyRuleMatcherLayer4Config() { buildCounterFirewallPolicyRuleMatcherLayer4Config++; if (buildCounterFirewallPolicyRuleMatcherLayer4Config < 3) { o.ipProtocol = 'foo'; - o.ports = buildUnnamed178(); + o.ports = buildUnnamed180(); } buildCounterFirewallPolicyRuleMatcherLayer4Config--; return o; @@ -7330,7 +7388,7 @@ void checkFirewallPolicyRuleMatcherLayer4Config( buildCounterFirewallPolicyRuleMatcherLayer4Config++; if (buildCounterFirewallPolicyRuleMatcherLayer4Config < 3) { unittest.expect(o.ipProtocol!, unittest.equals('foo')); - checkUnnamed178(o.ports!); + checkUnnamed180(o.ports!); } buildCounterFirewallPolicyRuleMatcherLayer4Config--; } @@ -7379,42 +7437,42 @@ void checkFixedOrPercent(api.FixedOrPercent o) { buildCounterFixedOrPercent--; } -core.Map buildUnnamed179() => { +core.Map buildUnnamed181() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed179(core.Map o) { +void checkUnnamed181(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed180() => [ +core.List buildUnnamed182() => [ buildMetadataFilter(), buildMetadataFilter(), ]; -void checkUnnamed180(core.List o) { +void checkUnnamed182(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataFilter(o[0]); checkMetadataFilter(o[1]); } -core.List buildUnnamed181() => ['foo', 'foo']; +core.List buildUnnamed183() => ['foo', 'foo']; -void checkUnnamed181(core.List o) { +void checkUnnamed183(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed182() => [ +core.List buildUnnamed184() => [ buildForwardingRuleServiceDirectoryRegistration(), buildForwardingRuleServiceDirectoryRegistration(), ]; -void checkUnnamed182( +void checkUnnamed184( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -7422,9 +7480,9 @@ void checkUnnamed182( checkForwardingRuleServiceDirectoryRegistration(o[1]); } -core.List buildUnnamed183() => ['foo', 'foo']; +core.List buildUnnamed185() => ['foo', 'foo']; -void checkUnnamed183(core.List o) { +void checkUnnamed185(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7453,24 +7511,24 @@ api.ForwardingRule buildForwardingRule() { o.isMirroringCollector = true; o.kind = 'foo'; o.labelFingerprint = 'foo'; - o.labels = buildUnnamed179(); + o.labels = buildUnnamed181(); o.loadBalancingScheme = 'foo'; - o.metadataFilters = buildUnnamed180(); + o.metadataFilters = buildUnnamed182(); o.name = 'foo'; o.network = 'foo'; o.networkTier = 'foo'; o.noAutomateDnsZone = true; o.portRange = 'foo'; - o.ports = buildUnnamed181(); + o.ports = buildUnnamed183(); o.pscConnectionId = 'foo'; o.pscConnectionStatus = 'foo'; o.region = 'foo'; o.selfLink = 'foo'; o.selfLinkWithId = 'foo'; - o.serviceDirectoryRegistrations = buildUnnamed182(); + o.serviceDirectoryRegistrations = buildUnnamed184(); o.serviceLabel = 'foo'; o.serviceName = 'foo'; - o.sourceIpRanges = buildUnnamed183(); + o.sourceIpRanges = buildUnnamed185(); o.subnetwork = 'foo'; o.target = 'foo'; } @@ -7505,44 +7563,44 @@ void checkForwardingRule(api.ForwardingRule o) { unittest.expect(o.isMirroringCollector!, unittest.isTrue); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed179(o.labels!); + checkUnnamed181(o.labels!); unittest.expect(o.loadBalancingScheme!, unittest.equals('foo')); - checkUnnamed180(o.metadataFilters!); + checkUnnamed182(o.metadataFilters!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); unittest.expect(o.networkTier!, unittest.equals('foo')); unittest.expect(o.noAutomateDnsZone!, unittest.isTrue); unittest.expect(o.portRange!, unittest.equals('foo')); - checkUnnamed181(o.ports!); + checkUnnamed183(o.ports!); unittest.expect(o.pscConnectionId!, unittest.equals('foo')); unittest.expect(o.pscConnectionStatus!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.selfLinkWithId!, unittest.equals('foo')); - checkUnnamed182(o.serviceDirectoryRegistrations!); + checkUnnamed184(o.serviceDirectoryRegistrations!); unittest.expect(o.serviceLabel!, unittest.equals('foo')); unittest.expect(o.serviceName!, unittest.equals('foo')); - checkUnnamed183(o.sourceIpRanges!); + checkUnnamed185(o.sourceIpRanges!); unittest.expect(o.subnetwork!, unittest.equals('foo')); unittest.expect(o.target!, unittest.equals('foo')); } buildCounterForwardingRule--; } -core.Map buildUnnamed184() => { +core.Map buildUnnamed186() => { 'x': buildForwardingRulesScopedList(), 'y': buildForwardingRulesScopedList(), }; -void checkUnnamed184(core.Map o) { +void checkUnnamed186(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedList(o['x']!); checkForwardingRulesScopedList(o['y']!); } -core.List buildUnnamed185() => ['foo', 'foo']; +core.List buildUnnamed187() => ['foo', 'foo']; -void checkUnnamed185(core.List o) { +void checkUnnamed187(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7572,12 +7630,12 @@ void checkForwardingRuleAggregatedListWarningData( buildCounterForwardingRuleAggregatedListWarningData--; } -core.List buildUnnamed186() => [ +core.List buildUnnamed188() => [ buildForwardingRuleAggregatedListWarningData(), buildForwardingRuleAggregatedListWarningData(), ]; -void checkUnnamed186(core.List o) { +void checkUnnamed188(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRuleAggregatedListWarningData(o[0]); checkForwardingRuleAggregatedListWarningData(o[1]); @@ -7590,7 +7648,7 @@ buildForwardingRuleAggregatedListWarning() { buildCounterForwardingRuleAggregatedListWarning++; if (buildCounterForwardingRuleAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed186(); + o.data = buildUnnamed188(); o.message = 'foo'; } buildCounterForwardingRuleAggregatedListWarning--; @@ -7603,7 +7661,7 @@ void checkForwardingRuleAggregatedListWarning( buildCounterForwardingRuleAggregatedListWarning++; if (buildCounterForwardingRuleAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed186(o.data!); + checkUnnamed188(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterForwardingRuleAggregatedListWarning--; @@ -7615,11 +7673,11 @@ api.ForwardingRuleAggregatedList buildForwardingRuleAggregatedList() { buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed184(); + o.items = buildUnnamed186(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed185(); + o.unreachables = buildUnnamed187(); o.warning = buildForwardingRuleAggregatedListWarning(); } buildCounterForwardingRuleAggregatedList--; @@ -7630,22 +7688,22 @@ void checkForwardingRuleAggregatedList(api.ForwardingRuleAggregatedList o) { buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed184(o.items!); + checkUnnamed186(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed185(o.unreachables!); + checkUnnamed187(o.unreachables!); checkForwardingRuleAggregatedListWarning(o.warning!); } buildCounterForwardingRuleAggregatedList--; } -core.List buildUnnamed187() => [ +core.List buildUnnamed189() => [ buildForwardingRule(), buildForwardingRule(), ]; -void checkUnnamed187(core.List o) { +void checkUnnamed189(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -7672,12 +7730,12 @@ void checkForwardingRuleListWarningData(api.ForwardingRuleListWarningData o) { buildCounterForwardingRuleListWarningData--; } -core.List buildUnnamed188() => [ +core.List buildUnnamed190() => [ buildForwardingRuleListWarningData(), buildForwardingRuleListWarningData(), ]; -void checkUnnamed188(core.List o) { +void checkUnnamed190(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRuleListWarningData(o[0]); checkForwardingRuleListWarningData(o[1]); @@ -7689,7 +7747,7 @@ api.ForwardingRuleListWarning buildForwardingRuleListWarning() { buildCounterForwardingRuleListWarning++; if (buildCounterForwardingRuleListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed188(); + o.data = buildUnnamed190(); o.message = 'foo'; } buildCounterForwardingRuleListWarning--; @@ -7700,7 +7758,7 @@ void checkForwardingRuleListWarning(api.ForwardingRuleListWarning o) { buildCounterForwardingRuleListWarning++; if (buildCounterForwardingRuleListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed188(o.data!); + checkUnnamed190(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterForwardingRuleListWarning--; @@ -7712,7 +7770,7 @@ api.ForwardingRuleList buildForwardingRuleList() { buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { o.id = 'foo'; - o.items = buildUnnamed187(); + o.items = buildUnnamed189(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -7726,7 +7784,7 @@ void checkForwardingRuleList(api.ForwardingRuleList o) { buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed187(o.items!); + checkUnnamed189(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -7780,12 +7838,12 @@ void checkForwardingRuleServiceDirectoryRegistration( buildCounterForwardingRuleServiceDirectoryRegistration--; } -core.List buildUnnamed189() => [ +core.List buildUnnamed191() => [ buildForwardingRule(), buildForwardingRule(), ]; -void checkUnnamed189(core.List o) { +void checkUnnamed191(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -7815,12 +7873,12 @@ void checkForwardingRulesScopedListWarningData( buildCounterForwardingRulesScopedListWarningData--; } -core.List buildUnnamed190() => [ +core.List buildUnnamed192() => [ buildForwardingRulesScopedListWarningData(), buildForwardingRulesScopedListWarningData(), ]; -void checkUnnamed190(core.List o) { +void checkUnnamed192(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedListWarningData(o[0]); checkForwardingRulesScopedListWarningData(o[1]); @@ -7832,7 +7890,7 @@ api.ForwardingRulesScopedListWarning buildForwardingRulesScopedListWarning() { buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed190(); + o.data = buildUnnamed192(); o.message = 'foo'; } buildCounterForwardingRulesScopedListWarning--; @@ -7845,7 +7903,7 @@ void checkForwardingRulesScopedListWarning( buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed190(o.data!); + checkUnnamed192(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterForwardingRulesScopedListWarning--; @@ -7856,7 +7914,7 @@ api.ForwardingRulesScopedList buildForwardingRulesScopedList() { final o = api.ForwardingRulesScopedList(); buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - o.forwardingRules = buildUnnamed189(); + o.forwardingRules = buildUnnamed191(); o.warning = buildForwardingRulesScopedListWarning(); } buildCounterForwardingRulesScopedList--; @@ -7866,7 +7924,7 @@ api.ForwardingRulesScopedList buildForwardingRulesScopedList() { void checkForwardingRulesScopedList(api.ForwardingRulesScopedList o) { buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - checkUnnamed189(o.forwardingRules!); + checkUnnamed191(o.forwardingRules!); checkForwardingRulesScopedListWarning(o.warning!); } buildCounterForwardingRulesScopedList--; @@ -7918,12 +7976,12 @@ void checkGlobalAddressesMoveRequest(api.GlobalAddressesMoveRequest o) { buildCounterGlobalAddressesMoveRequest--; } -core.List buildUnnamed191() => [ +core.List buildUnnamed193() => [ buildNetworkEndpoint(), buildNetworkEndpoint(), ]; -void checkUnnamed191(core.List o) { +void checkUnnamed193(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpoint(o[0]); checkNetworkEndpoint(o[1]); @@ -7935,7 +7993,7 @@ buildGlobalNetworkEndpointGroupsAttachEndpointsRequest() { final o = api.GlobalNetworkEndpointGroupsAttachEndpointsRequest(); buildCounterGlobalNetworkEndpointGroupsAttachEndpointsRequest++; if (buildCounterGlobalNetworkEndpointGroupsAttachEndpointsRequest < 3) { - o.networkEndpoints = buildUnnamed191(); + o.networkEndpoints = buildUnnamed193(); } buildCounterGlobalNetworkEndpointGroupsAttachEndpointsRequest--; return o; @@ -7946,17 +8004,17 @@ void checkGlobalNetworkEndpointGroupsAttachEndpointsRequest( ) { buildCounterGlobalNetworkEndpointGroupsAttachEndpointsRequest++; if (buildCounterGlobalNetworkEndpointGroupsAttachEndpointsRequest < 3) { - checkUnnamed191(o.networkEndpoints!); + checkUnnamed193(o.networkEndpoints!); } buildCounterGlobalNetworkEndpointGroupsAttachEndpointsRequest--; } -core.List buildUnnamed192() => [ +core.List buildUnnamed194() => [ buildNetworkEndpoint(), buildNetworkEndpoint(), ]; -void checkUnnamed192(core.List o) { +void checkUnnamed194(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpoint(o[0]); checkNetworkEndpoint(o[1]); @@ -7968,7 +8026,7 @@ buildGlobalNetworkEndpointGroupsDetachEndpointsRequest() { final o = api.GlobalNetworkEndpointGroupsDetachEndpointsRequest(); buildCounterGlobalNetworkEndpointGroupsDetachEndpointsRequest++; if (buildCounterGlobalNetworkEndpointGroupsDetachEndpointsRequest < 3) { - o.networkEndpoints = buildUnnamed192(); + o.networkEndpoints = buildUnnamed194(); } buildCounterGlobalNetworkEndpointGroupsDetachEndpointsRequest--; return o; @@ -7979,14 +8037,14 @@ void checkGlobalNetworkEndpointGroupsDetachEndpointsRequest( ) { buildCounterGlobalNetworkEndpointGroupsDetachEndpointsRequest++; if (buildCounterGlobalNetworkEndpointGroupsDetachEndpointsRequest < 3) { - checkUnnamed192(o.networkEndpoints!); + checkUnnamed194(o.networkEndpoints!); } buildCounterGlobalNetworkEndpointGroupsDetachEndpointsRequest--; } -core.List buildUnnamed193() => [buildBinding(), buildBinding()]; +core.List buildUnnamed195() => [buildBinding(), buildBinding()]; -void checkUnnamed193(core.List o) { +void checkUnnamed195(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -7998,7 +8056,7 @@ buildGlobalOrganizationSetPolicyRequest() { final o = api.GlobalOrganizationSetPolicyRequest(); buildCounterGlobalOrganizationSetPolicyRequest++; if (buildCounterGlobalOrganizationSetPolicyRequest < 3) { - o.bindings = buildUnnamed193(); + o.bindings = buildUnnamed195(); o.etag = 'foo'; o.policy = buildPolicy(); } @@ -8011,19 +8069,19 @@ void checkGlobalOrganizationSetPolicyRequest( ) { buildCounterGlobalOrganizationSetPolicyRequest++; if (buildCounterGlobalOrganizationSetPolicyRequest < 3) { - checkUnnamed193(o.bindings!); + checkUnnamed195(o.bindings!); unittest.expect(o.etag!, unittest.equals('foo')); checkPolicy(o.policy!); } buildCounterGlobalOrganizationSetPolicyRequest--; } -core.Map buildUnnamed194() => { +core.Map buildUnnamed196() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed194(core.Map o) { +void checkUnnamed196(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -8035,7 +8093,7 @@ api.GlobalSetLabelsRequest buildGlobalSetLabelsRequest() { buildCounterGlobalSetLabelsRequest++; if (buildCounterGlobalSetLabelsRequest < 3) { o.labelFingerprint = 'foo'; - o.labels = buildUnnamed194(); + o.labels = buildUnnamed196(); } buildCounterGlobalSetLabelsRequest--; return o; @@ -8045,14 +8103,14 @@ void checkGlobalSetLabelsRequest(api.GlobalSetLabelsRequest o) { buildCounterGlobalSetLabelsRequest++; if (buildCounterGlobalSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed194(o.labels!); + checkUnnamed196(o.labels!); } buildCounterGlobalSetLabelsRequest--; } -core.List buildUnnamed195() => [buildBinding(), buildBinding()]; +core.List buildUnnamed197() => [buildBinding(), buildBinding()]; -void checkUnnamed195(core.List o) { +void checkUnnamed197(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -8063,7 +8121,7 @@ api.GlobalSetPolicyRequest buildGlobalSetPolicyRequest() { final o = api.GlobalSetPolicyRequest(); buildCounterGlobalSetPolicyRequest++; if (buildCounterGlobalSetPolicyRequest < 3) { - o.bindings = buildUnnamed195(); + o.bindings = buildUnnamed197(); o.etag = 'foo'; o.policy = buildPolicy(); } @@ -8074,7 +8132,7 @@ api.GlobalSetPolicyRequest buildGlobalSetPolicyRequest() { void checkGlobalSetPolicyRequest(api.GlobalSetPolicyRequest o) { buildCounterGlobalSetPolicyRequest++; if (buildCounterGlobalSetPolicyRequest < 3) { - checkUnnamed195(o.bindings!); + checkUnnamed197(o.bindings!); unittest.expect(o.etag!, unittest.equals('foo')); checkPolicy(o.policy!); } @@ -8172,12 +8230,12 @@ void checkGuestAttributesEntry(api.GuestAttributesEntry o) { buildCounterGuestAttributesEntry--; } -core.List buildUnnamed196() => [ +core.List buildUnnamed198() => [ buildGuestAttributesEntry(), buildGuestAttributesEntry(), ]; -void checkUnnamed196(core.List o) { +void checkUnnamed198(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGuestAttributesEntry(o[0]); checkGuestAttributesEntry(o[1]); @@ -8188,7 +8246,7 @@ api.GuestAttributesValue buildGuestAttributesValue() { final o = api.GuestAttributesValue(); buildCounterGuestAttributesValue++; if (buildCounterGuestAttributesValue < 3) { - o.items = buildUnnamed196(); + o.items = buildUnnamed198(); } buildCounterGuestAttributesValue--; return o; @@ -8197,7 +8255,7 @@ api.GuestAttributesValue buildGuestAttributesValue() { void checkGuestAttributesValue(api.GuestAttributesValue o) { buildCounterGuestAttributesValue++; if (buildCounterGuestAttributesValue < 3) { - checkUnnamed196(o.items!); + checkUnnamed198(o.items!); } buildCounterGuestAttributesValue--; } @@ -8314,9 +8372,9 @@ void checkHTTPSHealthCheck(api.HTTPSHealthCheck o) { buildCounterHTTPSHealthCheck--; } -core.List buildUnnamed197() => ['foo', 'foo']; +core.List buildUnnamed199() => ['foo', 'foo']; -void checkUnnamed197(core.List o) { +void checkUnnamed199(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8341,7 +8399,7 @@ api.HealthCheck buildHealthCheck() { o.name = 'foo'; o.region = 'foo'; o.selfLink = 'foo'; - o.sourceRegions = buildUnnamed197(); + o.sourceRegions = buildUnnamed199(); o.sslHealthCheck = buildSSLHealthCheck(); o.tcpHealthCheck = buildTCPHealthCheck(); o.timeoutSec = 42; @@ -8369,7 +8427,7 @@ void checkHealthCheck(api.HealthCheck o) { unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed197(o.sourceRegions!); + checkUnnamed199(o.sourceRegions!); checkSSLHealthCheck(o.sslHealthCheck!); checkTCPHealthCheck(o.tcpHealthCheck!); unittest.expect(o.timeoutSec!, unittest.equals(42)); @@ -8379,12 +8437,12 @@ void checkHealthCheck(api.HealthCheck o) { buildCounterHealthCheck--; } -core.List buildUnnamed198() => [ +core.List buildUnnamed200() => [ buildHealthCheck(), buildHealthCheck(), ]; -void checkUnnamed198(core.List o) { +void checkUnnamed200(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheck(o[0]); checkHealthCheck(o[1]); @@ -8411,12 +8469,12 @@ void checkHealthCheckListWarningData(api.HealthCheckListWarningData o) { buildCounterHealthCheckListWarningData--; } -core.List buildUnnamed199() => [ +core.List buildUnnamed201() => [ buildHealthCheckListWarningData(), buildHealthCheckListWarningData(), ]; -void checkUnnamed199(core.List o) { +void checkUnnamed201(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckListWarningData(o[0]); checkHealthCheckListWarningData(o[1]); @@ -8428,7 +8486,7 @@ api.HealthCheckListWarning buildHealthCheckListWarning() { buildCounterHealthCheckListWarning++; if (buildCounterHealthCheckListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed199(); + o.data = buildUnnamed201(); o.message = 'foo'; } buildCounterHealthCheckListWarning--; @@ -8439,7 +8497,7 @@ void checkHealthCheckListWarning(api.HealthCheckListWarning o) { buildCounterHealthCheckListWarning++; if (buildCounterHealthCheckListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed199(o.data!); + checkUnnamed201(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterHealthCheckListWarning--; @@ -8451,7 +8509,7 @@ api.HealthCheckList buildHealthCheckList() { buildCounterHealthCheckList++; if (buildCounterHealthCheckList < 3) { o.id = 'foo'; - o.items = buildUnnamed198(); + o.items = buildUnnamed200(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -8465,7 +8523,7 @@ void checkHealthCheckList(api.HealthCheckList o) { buildCounterHealthCheckList++; if (buildCounterHealthCheckList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed198(o.items!); + checkUnnamed200(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -8512,25 +8570,25 @@ void checkHealthCheckReference(api.HealthCheckReference o) { buildCounterHealthCheckReference--; } -core.List buildUnnamed200() => ['foo', 'foo']; +core.List buildUnnamed202() => ['foo', 'foo']; -void checkUnnamed200(core.List o) { +void checkUnnamed202(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed201() => ['foo', 'foo']; +core.List buildUnnamed203() => ['foo', 'foo']; -void checkUnnamed201(core.List o) { +void checkUnnamed203(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed202() => ['foo', 'foo']; +core.List buildUnnamed204() => ['foo', 'foo']; -void checkUnnamed202(core.List o) { +void checkUnnamed204(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8544,13 +8602,13 @@ api.HealthCheckService buildHealthCheckService() { o.creationTimestamp = 'foo'; o.description = 'foo'; o.fingerprint = 'foo'; - o.healthChecks = buildUnnamed200(); + o.healthChecks = buildUnnamed202(); o.healthStatusAggregationPolicy = 'foo'; o.id = 'foo'; o.kind = 'foo'; o.name = 'foo'; - o.networkEndpointGroups = buildUnnamed201(); - o.notificationEndpoints = buildUnnamed202(); + o.networkEndpointGroups = buildUnnamed203(); + o.notificationEndpoints = buildUnnamed204(); o.region = 'foo'; o.selfLink = 'foo'; } @@ -8564,13 +8622,13 @@ void checkHealthCheckService(api.HealthCheckService o) { unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.fingerprint!, unittest.equals('foo')); - checkUnnamed200(o.healthChecks!); + checkUnnamed202(o.healthChecks!); unittest.expect(o.healthStatusAggregationPolicy!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed201(o.networkEndpointGroups!); - checkUnnamed202(o.notificationEndpoints!); + checkUnnamed203(o.networkEndpointGroups!); + checkUnnamed204(o.notificationEndpoints!); unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); } @@ -8596,12 +8654,12 @@ void checkHealthCheckServiceReference(api.HealthCheckServiceReference o) { buildCounterHealthCheckServiceReference--; } -core.List buildUnnamed203() => [ +core.List buildUnnamed205() => [ buildHealthCheckService(), buildHealthCheckService(), ]; -void checkUnnamed203(core.List o) { +void checkUnnamed205(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckService(o[0]); checkHealthCheckService(o[1]); @@ -8631,12 +8689,12 @@ void checkHealthCheckServicesListWarningData( buildCounterHealthCheckServicesListWarningData--; } -core.List buildUnnamed204() => [ +core.List buildUnnamed206() => [ buildHealthCheckServicesListWarningData(), buildHealthCheckServicesListWarningData(), ]; -void checkUnnamed204(core.List o) { +void checkUnnamed206(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckServicesListWarningData(o[0]); checkHealthCheckServicesListWarningData(o[1]); @@ -8648,7 +8706,7 @@ api.HealthCheckServicesListWarning buildHealthCheckServicesListWarning() { buildCounterHealthCheckServicesListWarning++; if (buildCounterHealthCheckServicesListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed204(); + o.data = buildUnnamed206(); o.message = 'foo'; } buildCounterHealthCheckServicesListWarning--; @@ -8659,7 +8717,7 @@ void checkHealthCheckServicesListWarning(api.HealthCheckServicesListWarning o) { buildCounterHealthCheckServicesListWarning++; if (buildCounterHealthCheckServicesListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed204(o.data!); + checkUnnamed206(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterHealthCheckServicesListWarning--; @@ -8671,7 +8729,7 @@ api.HealthCheckServicesList buildHealthCheckServicesList() { buildCounterHealthCheckServicesList++; if (buildCounterHealthCheckServicesList < 3) { o.id = 'foo'; - o.items = buildUnnamed203(); + o.items = buildUnnamed205(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -8685,7 +8743,7 @@ void checkHealthCheckServicesList(api.HealthCheckServicesList o) { buildCounterHealthCheckServicesList++; if (buildCounterHealthCheckServicesList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed203(o.items!); + checkUnnamed205(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -8694,20 +8752,20 @@ void checkHealthCheckServicesList(api.HealthCheckServicesList o) { buildCounterHealthCheckServicesList--; } -core.Map buildUnnamed205() => { +core.Map buildUnnamed207() => { 'x': buildHealthChecksScopedList(), 'y': buildHealthChecksScopedList(), }; -void checkUnnamed205(core.Map o) { +void checkUnnamed207(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkHealthChecksScopedList(o['x']!); checkHealthChecksScopedList(o['y']!); } -core.List buildUnnamed206() => ['foo', 'foo']; +core.List buildUnnamed208() => ['foo', 'foo']; -void checkUnnamed206(core.List o) { +void checkUnnamed208(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8737,12 +8795,12 @@ void checkHealthChecksAggregatedListWarningData( buildCounterHealthChecksAggregatedListWarningData--; } -core.List buildUnnamed207() => [ +core.List buildUnnamed209() => [ buildHealthChecksAggregatedListWarningData(), buildHealthChecksAggregatedListWarningData(), ]; -void checkUnnamed207(core.List o) { +void checkUnnamed209(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHealthChecksAggregatedListWarningData(o[0]); checkHealthChecksAggregatedListWarningData(o[1]); @@ -8754,7 +8812,7 @@ api.HealthChecksAggregatedListWarning buildHealthChecksAggregatedListWarning() { buildCounterHealthChecksAggregatedListWarning++; if (buildCounterHealthChecksAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed207(); + o.data = buildUnnamed209(); o.message = 'foo'; } buildCounterHealthChecksAggregatedListWarning--; @@ -8767,7 +8825,7 @@ void checkHealthChecksAggregatedListWarning( buildCounterHealthChecksAggregatedListWarning++; if (buildCounterHealthChecksAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed207(o.data!); + checkUnnamed209(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterHealthChecksAggregatedListWarning--; @@ -8779,11 +8837,11 @@ api.HealthChecksAggregatedList buildHealthChecksAggregatedList() { buildCounterHealthChecksAggregatedList++; if (buildCounterHealthChecksAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed205(); + o.items = buildUnnamed207(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed206(); + o.unreachables = buildUnnamed208(); o.warning = buildHealthChecksAggregatedListWarning(); } buildCounterHealthChecksAggregatedList--; @@ -8794,22 +8852,22 @@ void checkHealthChecksAggregatedList(api.HealthChecksAggregatedList o) { buildCounterHealthChecksAggregatedList++; if (buildCounterHealthChecksAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed205(o.items!); + checkUnnamed207(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed206(o.unreachables!); + checkUnnamed208(o.unreachables!); checkHealthChecksAggregatedListWarning(o.warning!); } buildCounterHealthChecksAggregatedList--; } -core.List buildUnnamed208() => [ +core.List buildUnnamed210() => [ buildHealthCheck(), buildHealthCheck(), ]; -void checkUnnamed208(core.List o) { +void checkUnnamed210(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheck(o[0]); checkHealthCheck(o[1]); @@ -8838,12 +8896,12 @@ void checkHealthChecksScopedListWarningData( buildCounterHealthChecksScopedListWarningData--; } -core.List buildUnnamed209() => [ +core.List buildUnnamed211() => [ buildHealthChecksScopedListWarningData(), buildHealthChecksScopedListWarningData(), ]; -void checkUnnamed209(core.List o) { +void checkUnnamed211(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHealthChecksScopedListWarningData(o[0]); checkHealthChecksScopedListWarningData(o[1]); @@ -8855,7 +8913,7 @@ api.HealthChecksScopedListWarning buildHealthChecksScopedListWarning() { buildCounterHealthChecksScopedListWarning++; if (buildCounterHealthChecksScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed209(); + o.data = buildUnnamed211(); o.message = 'foo'; } buildCounterHealthChecksScopedListWarning--; @@ -8866,7 +8924,7 @@ void checkHealthChecksScopedListWarning(api.HealthChecksScopedListWarning o) { buildCounterHealthChecksScopedListWarning++; if (buildCounterHealthChecksScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed209(o.data!); + checkUnnamed211(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterHealthChecksScopedListWarning--; @@ -8877,7 +8935,7 @@ api.HealthChecksScopedList buildHealthChecksScopedList() { final o = api.HealthChecksScopedList(); buildCounterHealthChecksScopedList++; if (buildCounterHealthChecksScopedList < 3) { - o.healthChecks = buildUnnamed208(); + o.healthChecks = buildUnnamed210(); o.warning = buildHealthChecksScopedListWarning(); } buildCounterHealthChecksScopedList--; @@ -8887,18 +8945,18 @@ api.HealthChecksScopedList buildHealthChecksScopedList() { void checkHealthChecksScopedList(api.HealthChecksScopedList o) { buildCounterHealthChecksScopedList++; if (buildCounterHealthChecksScopedList < 3) { - checkUnnamed208(o.healthChecks!); + checkUnnamed210(o.healthChecks!); checkHealthChecksScopedListWarning(o.warning!); } buildCounterHealthChecksScopedList--; } -core.Map buildUnnamed210() => { +core.Map buildUnnamed212() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed210(core.Map o) { +void checkUnnamed212(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -8909,7 +8967,7 @@ api.HealthStatus buildHealthStatus() { final o = api.HealthStatus(); buildCounterHealthStatus++; if (buildCounterHealthStatus < 3) { - o.annotations = buildUnnamed210(); + o.annotations = buildUnnamed212(); o.forwardingRule = 'foo'; o.forwardingRuleIp = 'foo'; o.healthState = 'foo'; @@ -8928,7 +8986,7 @@ api.HealthStatus buildHealthStatus() { void checkHealthStatus(api.HealthStatus o) { buildCounterHealthStatus++; if (buildCounterHealthStatus < 3) { - checkUnnamed210(o.annotations!); + checkUnnamed212(o.annotations!); unittest.expect(o.forwardingRule!, unittest.equals('foo')); unittest.expect(o.forwardingRuleIp!, unittest.equals('foo')); unittest.expect(o.healthState!, unittest.equals('foo')); @@ -8972,9 +9030,9 @@ void checkHealthStatusForNetworkEndpoint(api.HealthStatusForNetworkEndpoint o) { buildCounterHealthStatusForNetworkEndpoint--; } -core.List buildUnnamed211() => [buildHelpLink(), buildHelpLink()]; +core.List buildUnnamed213() => [buildHelpLink(), buildHelpLink()]; -void checkUnnamed211(core.List o) { +void checkUnnamed213(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHelpLink(o[0]); checkHelpLink(o[1]); @@ -8985,7 +9043,7 @@ api.Help buildHelp() { final o = api.Help(); buildCounterHelp++; if (buildCounterHelp < 3) { - o.links = buildUnnamed211(); + o.links = buildUnnamed213(); } buildCounterHelp--; return o; @@ -8994,7 +9052,7 @@ api.Help buildHelp() { void checkHelp(api.Help o) { buildCounterHelp++; if (buildCounterHelp < 3) { - checkUnnamed211(o.links!); + checkUnnamed213(o.links!); } buildCounterHelp--; } @@ -9020,9 +9078,9 @@ void checkHelpLink(api.HelpLink o) { buildCounterHelpLink--; } -core.List buildUnnamed212() => ['foo', 'foo']; +core.List buildUnnamed214() => ['foo', 'foo']; -void checkUnnamed212(core.List o) { +void checkUnnamed214(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9034,7 +9092,7 @@ api.HostRule buildHostRule() { buildCounterHostRule++; if (buildCounterHostRule < 3) { o.description = 'foo'; - o.hosts = buildUnnamed212(); + o.hosts = buildUnnamed214(); o.pathMatcher = 'foo'; } buildCounterHostRule--; @@ -9045,7 +9103,7 @@ void checkHostRule(api.HostRule o) { buildCounterHostRule++; if (buildCounterHostRule < 3) { unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed212(o.hosts!); + checkUnnamed214(o.hosts!); unittest.expect(o.pathMatcher!, unittest.equals('foo')); } buildCounterHostRule--; @@ -9114,39 +9172,39 @@ void checkHttpFaultInjection(api.HttpFaultInjection o) { buildCounterHttpFaultInjection--; } -core.List buildUnnamed213() => [ +core.List buildUnnamed215() => [ buildHttpHeaderOption(), buildHttpHeaderOption(), ]; -void checkUnnamed213(core.List o) { +void checkUnnamed215(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHeaderOption(o[0]); checkHttpHeaderOption(o[1]); } -core.List buildUnnamed214() => ['foo', 'foo']; +core.List buildUnnamed216() => ['foo', 'foo']; -void checkUnnamed214(core.List o) { +void checkUnnamed216(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed215() => [ +core.List buildUnnamed217() => [ buildHttpHeaderOption(), buildHttpHeaderOption(), ]; -void checkUnnamed215(core.List o) { +void checkUnnamed217(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHeaderOption(o[0]); checkHttpHeaderOption(o[1]); } -core.List buildUnnamed216() => ['foo', 'foo']; +core.List buildUnnamed218() => ['foo', 'foo']; -void checkUnnamed216(core.List o) { +void checkUnnamed218(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9157,10 +9215,10 @@ api.HttpHeaderAction buildHttpHeaderAction() { final o = api.HttpHeaderAction(); buildCounterHttpHeaderAction++; if (buildCounterHttpHeaderAction < 3) { - o.requestHeadersToAdd = buildUnnamed213(); - o.requestHeadersToRemove = buildUnnamed214(); - o.responseHeadersToAdd = buildUnnamed215(); - o.responseHeadersToRemove = buildUnnamed216(); + o.requestHeadersToAdd = buildUnnamed215(); + o.requestHeadersToRemove = buildUnnamed216(); + o.responseHeadersToAdd = buildUnnamed217(); + o.responseHeadersToRemove = buildUnnamed218(); } buildCounterHttpHeaderAction--; return o; @@ -9169,10 +9227,10 @@ api.HttpHeaderAction buildHttpHeaderAction() { void checkHttpHeaderAction(api.HttpHeaderAction o) { buildCounterHttpHeaderAction++; if (buildCounterHttpHeaderAction < 3) { - checkUnnamed213(o.requestHeadersToAdd!); - checkUnnamed214(o.requestHeadersToRemove!); - checkUnnamed215(o.responseHeadersToAdd!); - checkUnnamed216(o.responseHeadersToRemove!); + checkUnnamed215(o.requestHeadersToAdd!); + checkUnnamed216(o.requestHeadersToRemove!); + checkUnnamed217(o.responseHeadersToAdd!); + checkUnnamed218(o.responseHeadersToRemove!); } buildCounterHttpHeaderAction--; } @@ -9276,12 +9334,12 @@ void checkHttpHealthCheck(api.HttpHealthCheck o) { buildCounterHttpHealthCheck--; } -core.List buildUnnamed217() => [ +core.List buildUnnamed219() => [ buildHttpHealthCheck(), buildHttpHealthCheck(), ]; -void checkUnnamed217(core.List o) { +void checkUnnamed219(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHealthCheck(o[0]); checkHttpHealthCheck(o[1]); @@ -9308,12 +9366,12 @@ void checkHttpHealthCheckListWarningData(api.HttpHealthCheckListWarningData o) { buildCounterHttpHealthCheckListWarningData--; } -core.List buildUnnamed218() => [ +core.List buildUnnamed220() => [ buildHttpHealthCheckListWarningData(), buildHttpHealthCheckListWarningData(), ]; -void checkUnnamed218(core.List o) { +void checkUnnamed220(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHealthCheckListWarningData(o[0]); checkHttpHealthCheckListWarningData(o[1]); @@ -9325,7 +9383,7 @@ api.HttpHealthCheckListWarning buildHttpHealthCheckListWarning() { buildCounterHttpHealthCheckListWarning++; if (buildCounterHttpHealthCheckListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed218(); + o.data = buildUnnamed220(); o.message = 'foo'; } buildCounterHttpHealthCheckListWarning--; @@ -9336,7 +9394,7 @@ void checkHttpHealthCheckListWarning(api.HttpHealthCheckListWarning o) { buildCounterHttpHealthCheckListWarning++; if (buildCounterHttpHealthCheckListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed218(o.data!); + checkUnnamed220(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterHttpHealthCheckListWarning--; @@ -9348,7 +9406,7 @@ api.HttpHealthCheckList buildHttpHealthCheckList() { buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { o.id = 'foo'; - o.items = buildUnnamed217(); + o.items = buildUnnamed219(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -9362,7 +9420,7 @@ void checkHttpHealthCheckList(api.HttpHealthCheckList o) { buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed217(o.items!); + checkUnnamed219(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -9425,9 +9483,9 @@ void checkHttpRedirectAction(api.HttpRedirectAction o) { buildCounterHttpRedirectAction--; } -core.List buildUnnamed219() => ['foo', 'foo']; +core.List buildUnnamed221() => ['foo', 'foo']; -void checkUnnamed219(core.List o) { +void checkUnnamed221(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9440,7 +9498,7 @@ api.HttpRetryPolicy buildHttpRetryPolicy() { if (buildCounterHttpRetryPolicy < 3) { o.numRetries = 42; o.perTryTimeout = buildDuration(); - o.retryConditions = buildUnnamed219(); + o.retryConditions = buildUnnamed221(); } buildCounterHttpRetryPolicy--; return o; @@ -9451,17 +9509,17 @@ void checkHttpRetryPolicy(api.HttpRetryPolicy o) { if (buildCounterHttpRetryPolicy < 3) { unittest.expect(o.numRetries!, unittest.equals(42)); checkDuration(o.perTryTimeout!); - checkUnnamed219(o.retryConditions!); + checkUnnamed221(o.retryConditions!); } buildCounterHttpRetryPolicy--; } -core.List buildUnnamed220() => [ +core.List buildUnnamed222() => [ buildWeightedBackendService(), buildWeightedBackendService(), ]; -void checkUnnamed220(core.List o) { +void checkUnnamed222(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkWeightedBackendService(o[0]); checkWeightedBackendService(o[1]); @@ -9479,7 +9537,7 @@ api.HttpRouteAction buildHttpRouteAction() { o.retryPolicy = buildHttpRetryPolicy(); o.timeout = buildDuration(); o.urlRewrite = buildUrlRewrite(); - o.weightedBackendServices = buildUnnamed220(); + o.weightedBackendServices = buildUnnamed222(); } buildCounterHttpRouteAction--; return o; @@ -9495,17 +9553,17 @@ void checkHttpRouteAction(api.HttpRouteAction o) { checkHttpRetryPolicy(o.retryPolicy!); checkDuration(o.timeout!); checkUrlRewrite(o.urlRewrite!); - checkUnnamed220(o.weightedBackendServices!); + checkUnnamed222(o.weightedBackendServices!); } buildCounterHttpRouteAction--; } -core.List buildUnnamed221() => [ +core.List buildUnnamed223() => [ buildHttpRouteRuleMatch(), buildHttpRouteRuleMatch(), ]; -void checkUnnamed221(core.List o) { +void checkUnnamed223(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRouteRuleMatch(o[0]); checkHttpRouteRuleMatch(o[1]); @@ -9519,7 +9577,7 @@ api.HttpRouteRule buildHttpRouteRule() { o.customErrorResponsePolicy = buildCustomErrorResponsePolicy(); o.description = 'foo'; o.headerAction = buildHttpHeaderAction(); - o.matchRules = buildUnnamed221(); + o.matchRules = buildUnnamed223(); o.priority = 42; o.routeAction = buildHttpRouteAction(); o.service = 'foo'; @@ -9535,7 +9593,7 @@ void checkHttpRouteRule(api.HttpRouteRule o) { checkCustomErrorResponsePolicy(o.customErrorResponsePolicy!); unittest.expect(o.description!, unittest.equals('foo')); checkHttpHeaderAction(o.headerAction!); - checkUnnamed221(o.matchRules!); + checkUnnamed223(o.matchRules!); unittest.expect(o.priority!, unittest.equals(42)); checkHttpRouteAction(o.routeAction!); unittest.expect(o.service!, unittest.equals('foo')); @@ -9544,34 +9602,34 @@ void checkHttpRouteRule(api.HttpRouteRule o) { buildCounterHttpRouteRule--; } -core.List buildUnnamed222() => [ +core.List buildUnnamed224() => [ buildHttpHeaderMatch(), buildHttpHeaderMatch(), ]; -void checkUnnamed222(core.List o) { +void checkUnnamed224(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHeaderMatch(o[0]); checkHttpHeaderMatch(o[1]); } -core.List buildUnnamed223() => [ +core.List buildUnnamed225() => [ buildMetadataFilter(), buildMetadataFilter(), ]; -void checkUnnamed223(core.List o) { +void checkUnnamed225(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataFilter(o[0]); checkMetadataFilter(o[1]); } -core.List buildUnnamed224() => [ +core.List buildUnnamed226() => [ buildHttpQueryParameterMatch(), buildHttpQueryParameterMatch(), ]; -void checkUnnamed224(core.List o) { +void checkUnnamed226(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHttpQueryParameterMatch(o[0]); checkHttpQueryParameterMatch(o[1]); @@ -9583,12 +9641,12 @@ api.HttpRouteRuleMatch buildHttpRouteRuleMatch() { buildCounterHttpRouteRuleMatch++; if (buildCounterHttpRouteRuleMatch < 3) { o.fullPathMatch = 'foo'; - o.headerMatches = buildUnnamed222(); + o.headerMatches = buildUnnamed224(); o.ignoreCase = true; - o.metadataFilters = buildUnnamed223(); + o.metadataFilters = buildUnnamed225(); o.pathTemplateMatch = 'foo'; o.prefixMatch = 'foo'; - o.queryParameterMatches = buildUnnamed224(); + o.queryParameterMatches = buildUnnamed226(); o.regexMatch = 'foo'; } buildCounterHttpRouteRuleMatch--; @@ -9599,12 +9657,12 @@ void checkHttpRouteRuleMatch(api.HttpRouteRuleMatch o) { buildCounterHttpRouteRuleMatch++; if (buildCounterHttpRouteRuleMatch < 3) { unittest.expect(o.fullPathMatch!, unittest.equals('foo')); - checkUnnamed222(o.headerMatches!); + checkUnnamed224(o.headerMatches!); unittest.expect(o.ignoreCase!, unittest.isTrue); - checkUnnamed223(o.metadataFilters!); + checkUnnamed225(o.metadataFilters!); unittest.expect(o.pathTemplateMatch!, unittest.equals('foo')); unittest.expect(o.prefixMatch!, unittest.equals('foo')); - checkUnnamed224(o.queryParameterMatches!); + checkUnnamed226(o.queryParameterMatches!); unittest.expect(o.regexMatch!, unittest.equals('foo')); } buildCounterHttpRouteRuleMatch--; @@ -9653,12 +9711,12 @@ void checkHttpsHealthCheck(api.HttpsHealthCheck o) { buildCounterHttpsHealthCheck--; } -core.List buildUnnamed225() => [ +core.List buildUnnamed227() => [ buildHttpsHealthCheck(), buildHttpsHealthCheck(), ]; -void checkUnnamed225(core.List o) { +void checkUnnamed227(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHttpsHealthCheck(o[0]); checkHttpsHealthCheck(o[1]); @@ -9687,12 +9745,12 @@ void checkHttpsHealthCheckListWarningData( buildCounterHttpsHealthCheckListWarningData--; } -core.List buildUnnamed226() => [ +core.List buildUnnamed228() => [ buildHttpsHealthCheckListWarningData(), buildHttpsHealthCheckListWarningData(), ]; -void checkUnnamed226(core.List o) { +void checkUnnamed228(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHttpsHealthCheckListWarningData(o[0]); checkHttpsHealthCheckListWarningData(o[1]); @@ -9704,7 +9762,7 @@ api.HttpsHealthCheckListWarning buildHttpsHealthCheckListWarning() { buildCounterHttpsHealthCheckListWarning++; if (buildCounterHttpsHealthCheckListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed226(); + o.data = buildUnnamed228(); o.message = 'foo'; } buildCounterHttpsHealthCheckListWarning--; @@ -9715,7 +9773,7 @@ void checkHttpsHealthCheckListWarning(api.HttpsHealthCheckListWarning o) { buildCounterHttpsHealthCheckListWarning++; if (buildCounterHttpsHealthCheckListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed226(o.data!); + checkUnnamed228(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterHttpsHealthCheckListWarning--; @@ -9727,7 +9785,7 @@ api.HttpsHealthCheckList buildHttpsHealthCheckList() { buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { o.id = 'foo'; - o.items = buildUnnamed225(); + o.items = buildUnnamed227(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -9741,7 +9799,7 @@ void checkHttpsHealthCheckList(api.HttpsHealthCheckList o) { buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed225(o.items!); + checkUnnamed227(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -9750,39 +9808,39 @@ void checkHttpsHealthCheckList(api.HttpsHealthCheckList o) { buildCounterHttpsHealthCheckList--; } -core.List buildUnnamed227() => [ +core.List buildUnnamed229() => [ buildGuestOsFeature(), buildGuestOsFeature(), ]; -void checkUnnamed227(core.List o) { +void checkUnnamed229(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGuestOsFeature(o[0]); checkGuestOsFeature(o[1]); } -core.Map buildUnnamed228() => { +core.Map buildUnnamed230() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed228(core.Map o) { +void checkUnnamed230(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed229() => ['foo', 'foo']; +core.List buildUnnamed231() => ['foo', 'foo']; -void checkUnnamed229(core.List o) { +void checkUnnamed231(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed230() => ['foo', 'foo']; +core.List buildUnnamed232() => ['foo', 'foo']; -void checkUnnamed230(core.List o) { +void checkUnnamed232(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9811,9 +9869,9 @@ void checkImageRawDisk(api.ImageRawDisk o) { buildCounterImageRawDisk--; } -core.List buildUnnamed231() => ['foo', 'foo']; +core.List buildUnnamed233() => ['foo', 'foo']; -void checkUnnamed231(core.List o) { +void checkUnnamed233(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9832,14 +9890,14 @@ api.Image buildImage() { o.diskSizeGb = 'foo'; o.enableConfidentialCompute = true; o.family = 'foo'; - o.guestOsFeatures = buildUnnamed227(); + o.guestOsFeatures = buildUnnamed229(); o.id = 'foo'; o.imageEncryptionKey = buildCustomerEncryptionKey(); o.kind = 'foo'; o.labelFingerprint = 'foo'; - o.labels = buildUnnamed228(); - o.licenseCodes = buildUnnamed229(); - o.licenses = buildUnnamed230(); + o.labels = buildUnnamed230(); + o.licenseCodes = buildUnnamed231(); + o.licenses = buildUnnamed232(); o.name = 'foo'; o.rawDisk = buildImageRawDisk(); o.satisfiesPzi = true; @@ -9857,7 +9915,7 @@ api.Image buildImage() { o.sourceSnapshotId = 'foo'; o.sourceType = 'foo'; o.status = 'foo'; - o.storageLocations = buildUnnamed231(); + o.storageLocations = buildUnnamed233(); } buildCounterImage--; return o; @@ -9874,14 +9932,14 @@ void checkImage(api.Image o) { unittest.expect(o.diskSizeGb!, unittest.equals('foo')); unittest.expect(o.enableConfidentialCompute!, unittest.isTrue); unittest.expect(o.family!, unittest.equals('foo')); - checkUnnamed227(o.guestOsFeatures!); + checkUnnamed229(o.guestOsFeatures!); unittest.expect(o.id!, unittest.equals('foo')); checkCustomerEncryptionKey(o.imageEncryptionKey!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed228(o.labels!); - checkUnnamed229(o.licenseCodes!); - checkUnnamed230(o.licenses!); + checkUnnamed230(o.labels!); + checkUnnamed231(o.licenseCodes!); + checkUnnamed232(o.licenses!); unittest.expect(o.name!, unittest.equals('foo')); checkImageRawDisk(o.rawDisk!); unittest.expect(o.satisfiesPzi!, unittest.isTrue); @@ -9899,7 +9957,7 @@ void checkImage(api.Image o) { unittest.expect(o.sourceSnapshotId!, unittest.equals('foo')); unittest.expect(o.sourceType!, unittest.equals('foo')); unittest.expect(o.status!, unittest.equals('foo')); - checkUnnamed231(o.storageLocations!); + checkUnnamed233(o.storageLocations!); } buildCounterImage--; } @@ -9923,9 +9981,9 @@ void checkImageFamilyView(api.ImageFamilyView o) { buildCounterImageFamilyView--; } -core.List buildUnnamed232() => [buildImage(), buildImage()]; +core.List buildUnnamed234() => [buildImage(), buildImage()]; -void checkUnnamed232(core.List o) { +void checkUnnamed234(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -9952,12 +10010,12 @@ void checkImageListWarningData(api.ImageListWarningData o) { buildCounterImageListWarningData--; } -core.List buildUnnamed233() => [ +core.List buildUnnamed235() => [ buildImageListWarningData(), buildImageListWarningData(), ]; -void checkUnnamed233(core.List o) { +void checkUnnamed235(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkImageListWarningData(o[0]); checkImageListWarningData(o[1]); @@ -9969,7 +10027,7 @@ api.ImageListWarning buildImageListWarning() { buildCounterImageListWarning++; if (buildCounterImageListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed233(); + o.data = buildUnnamed235(); o.message = 'foo'; } buildCounterImageListWarning--; @@ -9980,7 +10038,7 @@ void checkImageListWarning(api.ImageListWarning o) { buildCounterImageListWarning++; if (buildCounterImageListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed233(o.data!); + checkUnnamed235(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterImageListWarning--; @@ -9992,7 +10050,7 @@ api.ImageList buildImageList() { buildCounterImageList++; if (buildCounterImageList < 3) { o.id = 'foo'; - o.items = buildUnnamed232(); + o.items = buildUnnamed234(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -10006,7 +10064,7 @@ void checkImageList(api.ImageList o) { buildCounterImageList++; if (buildCounterImageList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed232(o.items!); + checkUnnamed234(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -10015,34 +10073,34 @@ void checkImageList(api.ImageList o) { buildCounterImageList--; } -core.List buildUnnamed234() => [ +core.List buildUnnamed236() => [ buildFileContentBuffer(), buildFileContentBuffer(), ]; -void checkUnnamed234(core.List o) { +void checkUnnamed236(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFileContentBuffer(o[0]); checkFileContentBuffer(o[1]); } -core.List buildUnnamed235() => [ +core.List buildUnnamed237() => [ buildFileContentBuffer(), buildFileContentBuffer(), ]; -void checkUnnamed235(core.List o) { +void checkUnnamed237(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFileContentBuffer(o[0]); checkFileContentBuffer(o[1]); } -core.List buildUnnamed236() => [ +core.List buildUnnamed238() => [ buildFileContentBuffer(), buildFileContentBuffer(), ]; -void checkUnnamed236(core.List o) { +void checkUnnamed238(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFileContentBuffer(o[0]); checkFileContentBuffer(o[1]); @@ -10053,9 +10111,9 @@ api.InitialStateConfig buildInitialStateConfig() { final o = api.InitialStateConfig(); buildCounterInitialStateConfig++; if (buildCounterInitialStateConfig < 3) { - o.dbs = buildUnnamed234(); - o.dbxs = buildUnnamed235(); - o.keks = buildUnnamed236(); + o.dbs = buildUnnamed236(); + o.dbxs = buildUnnamed237(); + o.keks = buildUnnamed238(); o.pk = buildFileContentBuffer(); } buildCounterInitialStateConfig--; @@ -10065,72 +10123,72 @@ api.InitialStateConfig buildInitialStateConfig() { void checkInitialStateConfig(api.InitialStateConfig o) { buildCounterInitialStateConfig++; if (buildCounterInitialStateConfig < 3) { - checkUnnamed234(o.dbs!); - checkUnnamed235(o.dbxs!); - checkUnnamed236(o.keks!); + checkUnnamed236(o.dbs!); + checkUnnamed237(o.dbxs!); + checkUnnamed238(o.keks!); checkFileContentBuffer(o.pk!); } buildCounterInitialStateConfig--; } -core.List buildUnnamed237() => [ +core.List buildUnnamed239() => [ buildAttachedDisk(), buildAttachedDisk(), ]; -void checkUnnamed237(core.List o) { +void checkUnnamed239(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -core.List buildUnnamed238() => [ +core.List buildUnnamed240() => [ buildAcceleratorConfig(), buildAcceleratorConfig(), ]; -void checkUnnamed238(core.List o) { +void checkUnnamed240(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -core.Map buildUnnamed239() => { +core.Map buildUnnamed241() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed239(core.Map o) { +void checkUnnamed241(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed240() => [ +core.List buildUnnamed242() => [ buildNetworkInterface(), buildNetworkInterface(), ]; -void checkUnnamed240(core.List o) { +void checkUnnamed242(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -core.List buildUnnamed241() => ['foo', 'foo']; +core.List buildUnnamed243() => ['foo', 'foo']; -void checkUnnamed241(core.List o) { +void checkUnnamed243(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed242() => [ +core.List buildUnnamed244() => [ buildServiceAccount(), buildServiceAccount(), ]; -void checkUnnamed242(core.List o) { +void checkUnnamed244(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -10148,17 +10206,17 @@ api.Instance buildInstance() { o.creationTimestamp = 'foo'; o.deletionProtection = true; o.description = 'foo'; - o.disks = buildUnnamed237(); + o.disks = buildUnnamed239(); o.displayDevice = buildDisplayDevice(); o.fingerprint = 'foo'; - o.guestAccelerators = buildUnnamed238(); + o.guestAccelerators = buildUnnamed240(); o.hostname = 'foo'; o.id = 'foo'; o.instanceEncryptionKey = buildCustomerEncryptionKey(); o.keyRevocationActionType = 'foo'; o.kind = 'foo'; o.labelFingerprint = 'foo'; - o.labels = buildUnnamed239(); + o.labels = buildUnnamed241(); o.lastStartTimestamp = 'foo'; o.lastStopTimestamp = 'foo'; o.lastSuspendedTimestamp = 'foo'; @@ -10166,18 +10224,18 @@ api.Instance buildInstance() { o.metadata = buildMetadata(); o.minCpuPlatform = 'foo'; o.name = 'foo'; - o.networkInterfaces = buildUnnamed240(); + o.networkInterfaces = buildUnnamed242(); o.networkPerformanceConfig = buildNetworkPerformanceConfig(); o.params = buildInstanceParams(); o.privateIpv6GoogleAccess = 'foo'; o.reservationAffinity = buildReservationAffinity(); - o.resourcePolicies = buildUnnamed241(); + o.resourcePolicies = buildUnnamed243(); o.resourceStatus = buildResourceStatus(); o.satisfiesPzi = true; o.satisfiesPzs = true; o.scheduling = buildScheduling(); o.selfLink = 'foo'; - o.serviceAccounts = buildUnnamed242(); + o.serviceAccounts = buildUnnamed244(); o.shieldedInstanceConfig = buildShieldedInstanceConfig(); o.shieldedInstanceIntegrityPolicy = buildShieldedInstanceIntegrityPolicy(); o.sourceMachineImage = 'foo'; @@ -10202,17 +10260,17 @@ void checkInstance(api.Instance o) { unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.deletionProtection!, unittest.isTrue); unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed237(o.disks!); + checkUnnamed239(o.disks!); checkDisplayDevice(o.displayDevice!); unittest.expect(o.fingerprint!, unittest.equals('foo')); - checkUnnamed238(o.guestAccelerators!); + checkUnnamed240(o.guestAccelerators!); unittest.expect(o.hostname!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); checkCustomerEncryptionKey(o.instanceEncryptionKey!); unittest.expect(o.keyRevocationActionType!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed239(o.labels!); + checkUnnamed241(o.labels!); unittest.expect(o.lastStartTimestamp!, unittest.equals('foo')); unittest.expect(o.lastStopTimestamp!, unittest.equals('foo')); unittest.expect(o.lastSuspendedTimestamp!, unittest.equals('foo')); @@ -10220,18 +10278,18 @@ void checkInstance(api.Instance o) { checkMetadata(o.metadata!); unittest.expect(o.minCpuPlatform!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed240(o.networkInterfaces!); + checkUnnamed242(o.networkInterfaces!); checkNetworkPerformanceConfig(o.networkPerformanceConfig!); checkInstanceParams(o.params!); unittest.expect(o.privateIpv6GoogleAccess!, unittest.equals('foo')); checkReservationAffinity(o.reservationAffinity!); - checkUnnamed241(o.resourcePolicies!); + checkUnnamed243(o.resourcePolicies!); checkResourceStatus(o.resourceStatus!); unittest.expect(o.satisfiesPzi!, unittest.isTrue); unittest.expect(o.satisfiesPzs!, unittest.isTrue); checkScheduling(o.scheduling!); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed242(o.serviceAccounts!); + checkUnnamed244(o.serviceAccounts!); checkShieldedInstanceConfig(o.shieldedInstanceConfig!); checkShieldedInstanceIntegrityPolicy(o.shieldedInstanceIntegrityPolicy!); unittest.expect(o.sourceMachineImage!, unittest.equals('foo')); @@ -10245,20 +10303,20 @@ void checkInstance(api.Instance o) { buildCounterInstance--; } -core.Map buildUnnamed243() => { +core.Map buildUnnamed245() => { 'x': buildInstancesScopedList(), 'y': buildInstancesScopedList(), }; -void checkUnnamed243(core.Map o) { +void checkUnnamed245(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedList(o['x']!); checkInstancesScopedList(o['y']!); } -core.List buildUnnamed244() => ['foo', 'foo']; +core.List buildUnnamed246() => ['foo', 'foo']; -void checkUnnamed244(core.List o) { +void checkUnnamed246(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -10287,12 +10345,12 @@ void checkInstanceAggregatedListWarningData( buildCounterInstanceAggregatedListWarningData--; } -core.List buildUnnamed245() => [ +core.List buildUnnamed247() => [ buildInstanceAggregatedListWarningData(), buildInstanceAggregatedListWarningData(), ]; -void checkUnnamed245(core.List o) { +void checkUnnamed247(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceAggregatedListWarningData(o[0]); checkInstanceAggregatedListWarningData(o[1]); @@ -10304,7 +10362,7 @@ api.InstanceAggregatedListWarning buildInstanceAggregatedListWarning() { buildCounterInstanceAggregatedListWarning++; if (buildCounterInstanceAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed245(); + o.data = buildUnnamed247(); o.message = 'foo'; } buildCounterInstanceAggregatedListWarning--; @@ -10315,7 +10373,7 @@ void checkInstanceAggregatedListWarning(api.InstanceAggregatedListWarning o) { buildCounterInstanceAggregatedListWarning++; if (buildCounterInstanceAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed245(o.data!); + checkUnnamed247(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstanceAggregatedListWarning--; @@ -10327,11 +10385,11 @@ api.InstanceAggregatedList buildInstanceAggregatedList() { buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed243(); + o.items = buildUnnamed245(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed244(); + o.unreachables = buildUnnamed246(); o.warning = buildInstanceAggregatedListWarning(); } buildCounterInstanceAggregatedList--; @@ -10342,11 +10400,11 @@ void checkInstanceAggregatedList(api.InstanceAggregatedList o) { buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed243(o.items!); + checkUnnamed245(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed244(o.unreachables!); + checkUnnamed246(o.unreachables!); checkInstanceAggregatedListWarning(o.warning!); } buildCounterInstanceAggregatedList--; @@ -10398,12 +10456,12 @@ void checkInstanceConsumptionInfo(api.InstanceConsumptionInfo o) { buildCounterInstanceConsumptionInfo--; } -core.List buildUnnamed246() => [ +core.List buildUnnamed248() => [ buildNamedPort(), buildNamedPort(), ]; -void checkUnnamed246(core.List o) { +void checkUnnamed248(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -10420,7 +10478,7 @@ api.InstanceGroup buildInstanceGroup() { o.id = 'foo'; o.kind = 'foo'; o.name = 'foo'; - o.namedPorts = buildUnnamed246(); + o.namedPorts = buildUnnamed248(); o.network = 'foo'; o.region = 'foo'; o.selfLink = 'foo'; @@ -10441,7 +10499,7 @@ void checkInstanceGroup(api.InstanceGroup o) { unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed246(o.namedPorts!); + checkUnnamed248(o.namedPorts!); unittest.expect(o.network!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -10452,20 +10510,20 @@ void checkInstanceGroup(api.InstanceGroup o) { buildCounterInstanceGroup--; } -core.Map buildUnnamed247() => { +core.Map buildUnnamed249() => { 'x': buildInstanceGroupsScopedList(), 'y': buildInstanceGroupsScopedList(), }; -void checkUnnamed247(core.Map o) { +void checkUnnamed249(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedList(o['x']!); checkInstanceGroupsScopedList(o['y']!); } -core.List buildUnnamed248() => ['foo', 'foo']; +core.List buildUnnamed250() => ['foo', 'foo']; -void checkUnnamed248(core.List o) { +void checkUnnamed250(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -10495,12 +10553,12 @@ void checkInstanceGroupAggregatedListWarningData( buildCounterInstanceGroupAggregatedListWarningData--; } -core.List buildUnnamed249() => [ +core.List buildUnnamed251() => [ buildInstanceGroupAggregatedListWarningData(), buildInstanceGroupAggregatedListWarningData(), ]; -void checkUnnamed249(core.List o) { +void checkUnnamed251(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupAggregatedListWarningData(o[0]); checkInstanceGroupAggregatedListWarningData(o[1]); @@ -10513,7 +10571,7 @@ buildInstanceGroupAggregatedListWarning() { buildCounterInstanceGroupAggregatedListWarning++; if (buildCounterInstanceGroupAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed249(); + o.data = buildUnnamed251(); o.message = 'foo'; } buildCounterInstanceGroupAggregatedListWarning--; @@ -10526,7 +10584,7 @@ void checkInstanceGroupAggregatedListWarning( buildCounterInstanceGroupAggregatedListWarning++; if (buildCounterInstanceGroupAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed249(o.data!); + checkUnnamed251(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstanceGroupAggregatedListWarning--; @@ -10538,11 +10596,11 @@ api.InstanceGroupAggregatedList buildInstanceGroupAggregatedList() { buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed247(); + o.items = buildUnnamed249(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed248(); + o.unreachables = buildUnnamed250(); o.warning = buildInstanceGroupAggregatedListWarning(); } buildCounterInstanceGroupAggregatedList--; @@ -10553,22 +10611,22 @@ void checkInstanceGroupAggregatedList(api.InstanceGroupAggregatedList o) { buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed247(o.items!); + checkUnnamed249(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed248(o.unreachables!); + checkUnnamed250(o.unreachables!); checkInstanceGroupAggregatedListWarning(o.warning!); } buildCounterInstanceGroupAggregatedList--; } -core.List buildUnnamed250() => [ +core.List buildUnnamed252() => [ buildInstanceGroup(), buildInstanceGroup(), ]; -void checkUnnamed250(core.List o) { +void checkUnnamed252(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -10595,12 +10653,12 @@ void checkInstanceGroupListWarningData(api.InstanceGroupListWarningData o) { buildCounterInstanceGroupListWarningData--; } -core.List buildUnnamed251() => [ +core.List buildUnnamed253() => [ buildInstanceGroupListWarningData(), buildInstanceGroupListWarningData(), ]; -void checkUnnamed251(core.List o) { +void checkUnnamed253(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupListWarningData(o[0]); checkInstanceGroupListWarningData(o[1]); @@ -10612,7 +10670,7 @@ api.InstanceGroupListWarning buildInstanceGroupListWarning() { buildCounterInstanceGroupListWarning++; if (buildCounterInstanceGroupListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed251(); + o.data = buildUnnamed253(); o.message = 'foo'; } buildCounterInstanceGroupListWarning--; @@ -10623,7 +10681,7 @@ void checkInstanceGroupListWarning(api.InstanceGroupListWarning o) { buildCounterInstanceGroupListWarning++; if (buildCounterInstanceGroupListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed251(o.data!); + checkUnnamed253(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstanceGroupListWarning--; @@ -10635,7 +10693,7 @@ api.InstanceGroupList buildInstanceGroupList() { buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { o.id = 'foo'; - o.items = buildUnnamed250(); + o.items = buildUnnamed252(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -10649,7 +10707,7 @@ void checkInstanceGroupList(api.InstanceGroupList o) { buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed250(o.items!); + checkUnnamed252(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -10658,42 +10716,42 @@ void checkInstanceGroupList(api.InstanceGroupList o) { buildCounterInstanceGroupList--; } -core.List buildUnnamed252() => [ +core.List buildUnnamed254() => [ buildInstanceGroupManagerAutoHealingPolicy(), buildInstanceGroupManagerAutoHealingPolicy(), ]; -void checkUnnamed252(core.List o) { +void checkUnnamed254(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagerAutoHealingPolicy(o[0]); checkInstanceGroupManagerAutoHealingPolicy(o[1]); } -core.List buildUnnamed253() => [ +core.List buildUnnamed255() => [ buildNamedPort(), buildNamedPort(), ]; -void checkUnnamed253(core.List o) { +void checkUnnamed255(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); } -core.List buildUnnamed254() => ['foo', 'foo']; +core.List buildUnnamed256() => ['foo', 'foo']; -void checkUnnamed254(core.List o) { +void checkUnnamed256(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed255() => [ +core.List buildUnnamed257() => [ buildInstanceGroupManagerVersion(), buildInstanceGroupManagerVersion(), ]; -void checkUnnamed255(core.List o) { +void checkUnnamed257(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagerVersion(o[0]); checkInstanceGroupManagerVersion(o[1]); @@ -10705,7 +10763,7 @@ api.InstanceGroupManager buildInstanceGroupManager() { buildCounterInstanceGroupManager++; if (buildCounterInstanceGroupManager < 3) { o.allInstancesConfig = buildInstanceGroupManagerAllInstancesConfig(); - o.autoHealingPolicies = buildUnnamed252(); + o.autoHealingPolicies = buildUnnamed254(); o.baseInstanceName = 'foo'; o.creationTimestamp = 'foo'; o.currentActions = buildInstanceGroupManagerActionsSummary(); @@ -10722,7 +10780,7 @@ api.InstanceGroupManager buildInstanceGroupManager() { o.kind = 'foo'; o.listManagedInstancesResults = 'foo'; o.name = 'foo'; - o.namedPorts = buildUnnamed253(); + o.namedPorts = buildUnnamed255(); o.region = 'foo'; o.resourcePolicies = buildInstanceGroupManagerResourcePolicies(); o.satisfiesPzi = true; @@ -10731,12 +10789,12 @@ api.InstanceGroupManager buildInstanceGroupManager() { o.standbyPolicy = buildInstanceGroupManagerStandbyPolicy(); o.statefulPolicy = buildStatefulPolicy(); o.status = buildInstanceGroupManagerStatus(); - o.targetPools = buildUnnamed254(); + o.targetPools = buildUnnamed256(); o.targetSize = 42; o.targetStoppedSize = 42; o.targetSuspendedSize = 42; o.updatePolicy = buildInstanceGroupManagerUpdatePolicy(); - o.versions = buildUnnamed255(); + o.versions = buildUnnamed257(); o.zone = 'foo'; } buildCounterInstanceGroupManager--; @@ -10747,7 +10805,7 @@ void checkInstanceGroupManager(api.InstanceGroupManager o) { buildCounterInstanceGroupManager++; if (buildCounterInstanceGroupManager < 3) { checkInstanceGroupManagerAllInstancesConfig(o.allInstancesConfig!); - checkUnnamed252(o.autoHealingPolicies!); + checkUnnamed254(o.autoHealingPolicies!); unittest.expect(o.baseInstanceName!, unittest.equals('foo')); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); checkInstanceGroupManagerActionsSummary(o.currentActions!); @@ -10766,7 +10824,7 @@ void checkInstanceGroupManager(api.InstanceGroupManager o) { unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.listManagedInstancesResults!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed253(o.namedPorts!); + checkUnnamed255(o.namedPorts!); unittest.expect(o.region!, unittest.equals('foo')); checkInstanceGroupManagerResourcePolicies(o.resourcePolicies!); unittest.expect(o.satisfiesPzi!, unittest.isTrue); @@ -10775,12 +10833,12 @@ void checkInstanceGroupManager(api.InstanceGroupManager o) { checkInstanceGroupManagerStandbyPolicy(o.standbyPolicy!); checkStatefulPolicy(o.statefulPolicy!); checkInstanceGroupManagerStatus(o.status!); - checkUnnamed254(o.targetPools!); + checkUnnamed256(o.targetPools!); unittest.expect(o.targetSize!, unittest.equals(42)); unittest.expect(o.targetStoppedSize!, unittest.equals(42)); unittest.expect(o.targetSuspendedSize!, unittest.equals(42)); checkInstanceGroupManagerUpdatePolicy(o.updatePolicy!); - checkUnnamed255(o.versions!); + checkUnnamed257(o.versions!); unittest.expect(o.zone!, unittest.equals('foo')); } buildCounterInstanceGroupManager--; @@ -10832,13 +10890,13 @@ void checkInstanceGroupManagerActionsSummary( buildCounterInstanceGroupManagerActionsSummary--; } -core.Map buildUnnamed256() => +core.Map buildUnnamed258() => { 'x': buildInstanceGroupManagersScopedList(), 'y': buildInstanceGroupManagersScopedList(), }; -void checkUnnamed256( +void checkUnnamed258( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -10846,9 +10904,9 @@ void checkUnnamed256( checkInstanceGroupManagersScopedList(o['y']!); } -core.List buildUnnamed257() => ['foo', 'foo']; +core.List buildUnnamed259() => ['foo', 'foo']; -void checkUnnamed257(core.List o) { +void checkUnnamed259(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -10879,12 +10937,12 @@ void checkInstanceGroupManagerAggregatedListWarningData( } core.List -buildUnnamed258() => [ +buildUnnamed260() => [ buildInstanceGroupManagerAggregatedListWarningData(), buildInstanceGroupManagerAggregatedListWarningData(), ]; -void checkUnnamed258( +void checkUnnamed260( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -10899,7 +10957,7 @@ buildInstanceGroupManagerAggregatedListWarning() { buildCounterInstanceGroupManagerAggregatedListWarning++; if (buildCounterInstanceGroupManagerAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed258(); + o.data = buildUnnamed260(); o.message = 'foo'; } buildCounterInstanceGroupManagerAggregatedListWarning--; @@ -10912,7 +10970,7 @@ void checkInstanceGroupManagerAggregatedListWarning( buildCounterInstanceGroupManagerAggregatedListWarning++; if (buildCounterInstanceGroupManagerAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed258(o.data!); + checkUnnamed260(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstanceGroupManagerAggregatedListWarning--; @@ -10925,11 +10983,11 @@ buildInstanceGroupManagerAggregatedList() { buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed256(); + o.items = buildUnnamed258(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed257(); + o.unreachables = buildUnnamed259(); o.warning = buildInstanceGroupManagerAggregatedListWarning(); } buildCounterInstanceGroupManagerAggregatedList--; @@ -10942,11 +11000,11 @@ void checkInstanceGroupManagerAggregatedList( buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed256(o.items!); + checkUnnamed258(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed257(o.unreachables!); + checkUnnamed259(o.unreachables!); checkInstanceGroupManagerAggregatedListWarning(o.warning!); } buildCounterInstanceGroupManagerAggregatedList--; @@ -11002,12 +11060,12 @@ core.Map< core.String, api.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection > -buildUnnamed259() => { +buildUnnamed261() => { 'x': buildInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection(), 'y': buildInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection(), }; -void checkUnnamed259( +void checkUnnamed261( core.Map< core.String, api.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection @@ -11025,7 +11083,7 @@ buildInstanceGroupManagerInstanceFlexibilityPolicy() { final o = api.InstanceGroupManagerInstanceFlexibilityPolicy(); buildCounterInstanceGroupManagerInstanceFlexibilityPolicy++; if (buildCounterInstanceGroupManagerInstanceFlexibilityPolicy < 3) { - o.instanceSelections = buildUnnamed259(); + o.instanceSelections = buildUnnamed261(); } buildCounterInstanceGroupManagerInstanceFlexibilityPolicy--; return o; @@ -11036,14 +11094,14 @@ void checkInstanceGroupManagerInstanceFlexibilityPolicy( ) { buildCounterInstanceGroupManagerInstanceFlexibilityPolicy++; if (buildCounterInstanceGroupManagerInstanceFlexibilityPolicy < 3) { - checkUnnamed259(o.instanceSelections!); + checkUnnamed261(o.instanceSelections!); } buildCounterInstanceGroupManagerInstanceFlexibilityPolicy--; } -core.List buildUnnamed260() => ['foo', 'foo']; +core.List buildUnnamed262() => ['foo', 'foo']; -void checkUnnamed260(core.List o) { +void checkUnnamed262(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -11058,7 +11116,7 @@ buildInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection() { buildCounterInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection++; if (buildCounterInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection < 3) { - o.machineTypes = buildUnnamed260(); + o.machineTypes = buildUnnamed262(); o.rank = 42; } buildCounterInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection--; @@ -11071,7 +11129,7 @@ void checkInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection( buildCounterInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection++; if (buildCounterInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection < 3) { - checkUnnamed260(o.machineTypes!); + checkUnnamed262(o.machineTypes!); unittest.expect(o.rank!, unittest.equals(42)); } buildCounterInstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection--; @@ -11101,12 +11159,12 @@ void checkInstanceGroupManagerInstanceLifecyclePolicy( buildCounterInstanceGroupManagerInstanceLifecyclePolicy--; } -core.List buildUnnamed261() => [ +core.List buildUnnamed263() => [ buildInstanceGroupManager(), buildInstanceGroupManager(), ]; -void checkUnnamed261(core.List o) { +void checkUnnamed263(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -11136,12 +11194,12 @@ void checkInstanceGroupManagerListWarningData( buildCounterInstanceGroupManagerListWarningData--; } -core.List buildUnnamed262() => [ +core.List buildUnnamed264() => [ buildInstanceGroupManagerListWarningData(), buildInstanceGroupManagerListWarningData(), ]; -void checkUnnamed262(core.List o) { +void checkUnnamed264(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagerListWarningData(o[0]); checkInstanceGroupManagerListWarningData(o[1]); @@ -11153,7 +11211,7 @@ api.InstanceGroupManagerListWarning buildInstanceGroupManagerListWarning() { buildCounterInstanceGroupManagerListWarning++; if (buildCounterInstanceGroupManagerListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed262(); + o.data = buildUnnamed264(); o.message = 'foo'; } buildCounterInstanceGroupManagerListWarning--; @@ -11166,7 +11224,7 @@ void checkInstanceGroupManagerListWarning( buildCounterInstanceGroupManagerListWarning++; if (buildCounterInstanceGroupManagerListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed262(o.data!); + checkUnnamed264(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstanceGroupManagerListWarning--; @@ -11178,7 +11236,7 @@ api.InstanceGroupManagerList buildInstanceGroupManagerList() { buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { o.id = 'foo'; - o.items = buildUnnamed261(); + o.items = buildUnnamed263(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -11192,7 +11250,7 @@ void checkInstanceGroupManagerList(api.InstanceGroupManagerList o) { buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed261(o.items!); + checkUnnamed263(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -11277,12 +11335,12 @@ void checkInstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails( } core.List -buildUnnamed263() => [ +buildUnnamed265() => [ buildInstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails(), buildInstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails(), ]; -void checkUnnamed263( +void checkUnnamed265( core.List o, ) { @@ -11298,7 +11356,7 @@ buildInstanceGroupManagerResizeRequestStatusErrorErrors() { buildCounterInstanceGroupManagerResizeRequestStatusErrorErrors++; if (buildCounterInstanceGroupManagerResizeRequestStatusErrorErrors < 3) { o.code = 'foo'; - o.errorDetails = buildUnnamed263(); + o.errorDetails = buildUnnamed265(); o.location = 'foo'; o.message = 'foo'; } @@ -11312,7 +11370,7 @@ void checkInstanceGroupManagerResizeRequestStatusErrorErrors( buildCounterInstanceGroupManagerResizeRequestStatusErrorErrors++; if (buildCounterInstanceGroupManagerResizeRequestStatusErrorErrors < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed263(o.errorDetails!); + checkUnnamed265(o.errorDetails!); unittest.expect(o.location!, unittest.equals('foo')); unittest.expect(o.message!, unittest.equals('foo')); } @@ -11320,12 +11378,12 @@ void checkInstanceGroupManagerResizeRequestStatusErrorErrors( } core.List -buildUnnamed264() => [ +buildUnnamed266() => [ buildInstanceGroupManagerResizeRequestStatusErrorErrors(), buildInstanceGroupManagerResizeRequestStatusErrorErrors(), ]; -void checkUnnamed264( +void checkUnnamed266( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -11339,7 +11397,7 @@ buildInstanceGroupManagerResizeRequestStatusError() { final o = api.InstanceGroupManagerResizeRequestStatusError(); buildCounterInstanceGroupManagerResizeRequestStatusError++; if (buildCounterInstanceGroupManagerResizeRequestStatusError < 3) { - o.errors = buildUnnamed264(); + o.errors = buildUnnamed266(); } buildCounterInstanceGroupManagerResizeRequestStatusError--; return o; @@ -11350,7 +11408,7 @@ void checkInstanceGroupManagerResizeRequestStatusError( ) { buildCounterInstanceGroupManagerResizeRequestStatusError++; if (buildCounterInstanceGroupManagerResizeRequestStatusError < 3) { - checkUnnamed264(o.errors!); + checkUnnamed266(o.errors!); } buildCounterInstanceGroupManagerResizeRequestStatusError--; } @@ -11417,12 +11475,12 @@ checkInstanceGroupManagerResizeRequestStatusLastAttemptErrorErrorsErrorDetails( core.List< api.InstanceGroupManagerResizeRequestStatusLastAttemptErrorErrorsErrorDetails > -buildUnnamed265() => [ +buildUnnamed267() => [ buildInstanceGroupManagerResizeRequestStatusLastAttemptErrorErrorsErrorDetails(), buildInstanceGroupManagerResizeRequestStatusLastAttemptErrorErrorsErrorDetails(), ]; -void checkUnnamed265( +void checkUnnamed267( core.List< api.InstanceGroupManagerResizeRequestStatusLastAttemptErrorErrorsErrorDetails > @@ -11446,7 +11504,7 @@ buildInstanceGroupManagerResizeRequestStatusLastAttemptErrorErrors() { if (buildCounterInstanceGroupManagerResizeRequestStatusLastAttemptErrorErrors < 3) { o.code = 'foo'; - o.errorDetails = buildUnnamed265(); + o.errorDetails = buildUnnamed267(); o.location = 'foo'; o.message = 'foo'; } @@ -11461,7 +11519,7 @@ void checkInstanceGroupManagerResizeRequestStatusLastAttemptErrorErrors( if (buildCounterInstanceGroupManagerResizeRequestStatusLastAttemptErrorErrors < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed265(o.errorDetails!); + checkUnnamed267(o.errorDetails!); unittest.expect(o.location!, unittest.equals('foo')); unittest.expect(o.message!, unittest.equals('foo')); } @@ -11469,12 +11527,12 @@ void checkInstanceGroupManagerResizeRequestStatusLastAttemptErrorErrors( } core.List -buildUnnamed266() => [ +buildUnnamed268() => [ buildInstanceGroupManagerResizeRequestStatusLastAttemptErrorErrors(), buildInstanceGroupManagerResizeRequestStatusLastAttemptErrorErrors(), ]; -void checkUnnamed266( +void checkUnnamed268( core.List o, ) { @@ -11490,7 +11548,7 @@ buildInstanceGroupManagerResizeRequestStatusLastAttemptError() { final o = api.InstanceGroupManagerResizeRequestStatusLastAttemptError(); buildCounterInstanceGroupManagerResizeRequestStatusLastAttemptError++; if (buildCounterInstanceGroupManagerResizeRequestStatusLastAttemptError < 3) { - o.errors = buildUnnamed266(); + o.errors = buildUnnamed268(); } buildCounterInstanceGroupManagerResizeRequestStatusLastAttemptError--; return o; @@ -11501,7 +11559,7 @@ void checkInstanceGroupManagerResizeRequestStatusLastAttemptError( ) { buildCounterInstanceGroupManagerResizeRequestStatusLastAttemptError++; if (buildCounterInstanceGroupManagerResizeRequestStatusLastAttemptError < 3) { - checkUnnamed266(o.errors!); + checkUnnamed268(o.errors!); } buildCounterInstanceGroupManagerResizeRequestStatusLastAttemptError--; } @@ -11528,12 +11586,12 @@ void checkInstanceGroupManagerResizeRequestStatusLastAttempt( buildCounterInstanceGroupManagerResizeRequestStatusLastAttempt--; } -core.List buildUnnamed267() => [ +core.List buildUnnamed269() => [ buildInstanceGroupManagerResizeRequest(), buildInstanceGroupManagerResizeRequest(), ]; -void checkUnnamed267(core.List o) { +void checkUnnamed269(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagerResizeRequest(o[0]); checkInstanceGroupManagerResizeRequest(o[1]); @@ -11567,12 +11625,12 @@ void checkInstanceGroupManagerResizeRequestsListResponseWarningData( } core.List -buildUnnamed268() => [ +buildUnnamed270() => [ buildInstanceGroupManagerResizeRequestsListResponseWarningData(), buildInstanceGroupManagerResizeRequestsListResponseWarningData(), ]; -void checkUnnamed268( +void checkUnnamed270( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -11587,7 +11645,7 @@ buildInstanceGroupManagerResizeRequestsListResponseWarning() { buildCounterInstanceGroupManagerResizeRequestsListResponseWarning++; if (buildCounterInstanceGroupManagerResizeRequestsListResponseWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed268(); + o.data = buildUnnamed270(); o.message = 'foo'; } buildCounterInstanceGroupManagerResizeRequestsListResponseWarning--; @@ -11600,7 +11658,7 @@ void checkInstanceGroupManagerResizeRequestsListResponseWarning( buildCounterInstanceGroupManagerResizeRequestsListResponseWarning++; if (buildCounterInstanceGroupManagerResizeRequestsListResponseWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed268(o.data!); + checkUnnamed270(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstanceGroupManagerResizeRequestsListResponseWarning--; @@ -11613,7 +11671,7 @@ buildInstanceGroupManagerResizeRequestsListResponse() { buildCounterInstanceGroupManagerResizeRequestsListResponse++; if (buildCounterInstanceGroupManagerResizeRequestsListResponse < 3) { o.id = 'foo'; - o.items = buildUnnamed267(); + o.items = buildUnnamed269(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -11629,7 +11687,7 @@ void checkInstanceGroupManagerResizeRequestsListResponse( buildCounterInstanceGroupManagerResizeRequestsListResponse++; if (buildCounterInstanceGroupManagerResizeRequestsListResponse < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed267(o.items!); + checkUnnamed269(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -11861,9 +11919,9 @@ void checkInstanceGroupManagerVersion(api.InstanceGroupManagerVersion o) { buildCounterInstanceGroupManagerVersion--; } -core.List buildUnnamed269() => ['foo', 'foo']; +core.List buildUnnamed271() => ['foo', 'foo']; -void checkUnnamed269(core.List o) { +void checkUnnamed271(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -11875,7 +11933,7 @@ buildInstanceGroupManagersAbandonInstancesRequest() { final o = api.InstanceGroupManagersAbandonInstancesRequest(); buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed269(); + o.instances = buildUnnamed271(); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; return o; @@ -11886,14 +11944,14 @@ void checkInstanceGroupManagersAbandonInstancesRequest( ) { buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed269(o.instances!); + checkUnnamed271(o.instances!); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; } -core.List buildUnnamed270() => ['foo', 'foo']; +core.List buildUnnamed272() => ['foo', 'foo']; -void checkUnnamed270(core.List o) { +void checkUnnamed272(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -11906,7 +11964,7 @@ buildInstanceGroupManagersApplyUpdatesRequest() { buildCounterInstanceGroupManagersApplyUpdatesRequest++; if (buildCounterInstanceGroupManagersApplyUpdatesRequest < 3) { o.allInstances = true; - o.instances = buildUnnamed270(); + o.instances = buildUnnamed272(); o.minimalAction = 'foo'; o.mostDisruptiveAllowedAction = 'foo'; } @@ -11920,19 +11978,19 @@ void checkInstanceGroupManagersApplyUpdatesRequest( buildCounterInstanceGroupManagersApplyUpdatesRequest++; if (buildCounterInstanceGroupManagersApplyUpdatesRequest < 3) { unittest.expect(o.allInstances!, unittest.isTrue); - checkUnnamed270(o.instances!); + checkUnnamed272(o.instances!); unittest.expect(o.minimalAction!, unittest.equals('foo')); unittest.expect(o.mostDisruptiveAllowedAction!, unittest.equals('foo')); } buildCounterInstanceGroupManagersApplyUpdatesRequest--; } -core.List buildUnnamed271() => [ +core.List buildUnnamed273() => [ buildPerInstanceConfig(), buildPerInstanceConfig(), ]; -void checkUnnamed271(core.List o) { +void checkUnnamed273(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPerInstanceConfig(o[0]); checkPerInstanceConfig(o[1]); @@ -11944,7 +12002,7 @@ buildInstanceGroupManagersCreateInstancesRequest() { final o = api.InstanceGroupManagersCreateInstancesRequest(); buildCounterInstanceGroupManagersCreateInstancesRequest++; if (buildCounterInstanceGroupManagersCreateInstancesRequest < 3) { - o.instances = buildUnnamed271(); + o.instances = buildUnnamed273(); } buildCounterInstanceGroupManagersCreateInstancesRequest--; return o; @@ -11955,14 +12013,14 @@ void checkInstanceGroupManagersCreateInstancesRequest( ) { buildCounterInstanceGroupManagersCreateInstancesRequest++; if (buildCounterInstanceGroupManagersCreateInstancesRequest < 3) { - checkUnnamed271(o.instances!); + checkUnnamed273(o.instances!); } buildCounterInstanceGroupManagersCreateInstancesRequest--; } -core.List buildUnnamed272() => ['foo', 'foo']; +core.List buildUnnamed274() => ['foo', 'foo']; -void checkUnnamed272(core.List o) { +void checkUnnamed274(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -11974,7 +12032,7 @@ buildInstanceGroupManagersDeleteInstancesRequest() { final o = api.InstanceGroupManagersDeleteInstancesRequest(); buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed272(); + o.instances = buildUnnamed274(); o.skipInstancesOnValidationError = true; } buildCounterInstanceGroupManagersDeleteInstancesRequest--; @@ -11986,15 +12044,15 @@ void checkInstanceGroupManagersDeleteInstancesRequest( ) { buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed272(o.instances!); + checkUnnamed274(o.instances!); unittest.expect(o.skipInstancesOnValidationError!, unittest.isTrue); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; } -core.List buildUnnamed273() => ['foo', 'foo']; +core.List buildUnnamed275() => ['foo', 'foo']; -void checkUnnamed273(core.List o) { +void checkUnnamed275(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -12006,7 +12064,7 @@ buildInstanceGroupManagersDeletePerInstanceConfigsReq() { final o = api.InstanceGroupManagersDeletePerInstanceConfigsReq(); buildCounterInstanceGroupManagersDeletePerInstanceConfigsReq++; if (buildCounterInstanceGroupManagersDeletePerInstanceConfigsReq < 3) { - o.names = buildUnnamed273(); + o.names = buildUnnamed275(); } buildCounterInstanceGroupManagersDeletePerInstanceConfigsReq--; return o; @@ -12017,17 +12075,17 @@ void checkInstanceGroupManagersDeletePerInstanceConfigsReq( ) { buildCounterInstanceGroupManagersDeletePerInstanceConfigsReq++; if (buildCounterInstanceGroupManagersDeletePerInstanceConfigsReq < 3) { - checkUnnamed273(o.names!); + checkUnnamed275(o.names!); } buildCounterInstanceGroupManagersDeletePerInstanceConfigsReq--; } -core.List buildUnnamed274() => [ +core.List buildUnnamed276() => [ buildInstanceManagedByIgmError(), buildInstanceManagedByIgmError(), ]; -void checkUnnamed274(core.List o) { +void checkUnnamed276(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceManagedByIgmError(o[0]); checkInstanceManagedByIgmError(o[1]); @@ -12039,7 +12097,7 @@ buildInstanceGroupManagersListErrorsResponse() { final o = api.InstanceGroupManagersListErrorsResponse(); buildCounterInstanceGroupManagersListErrorsResponse++; if (buildCounterInstanceGroupManagersListErrorsResponse < 3) { - o.items = buildUnnamed274(); + o.items = buildUnnamed276(); o.nextPageToken = 'foo'; } buildCounterInstanceGroupManagersListErrorsResponse--; @@ -12051,18 +12109,18 @@ void checkInstanceGroupManagersListErrorsResponse( ) { buildCounterInstanceGroupManagersListErrorsResponse++; if (buildCounterInstanceGroupManagersListErrorsResponse < 3) { - checkUnnamed274(o.items!); + checkUnnamed276(o.items!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterInstanceGroupManagersListErrorsResponse--; } -core.List buildUnnamed275() => [ +core.List buildUnnamed277() => [ buildManagedInstance(), buildManagedInstance(), ]; -void checkUnnamed275(core.List o) { +void checkUnnamed277(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstance(o[0]); checkManagedInstance(o[1]); @@ -12074,7 +12132,7 @@ buildInstanceGroupManagersListManagedInstancesResponse() { final o = api.InstanceGroupManagersListManagedInstancesResponse(); buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - o.managedInstances = buildUnnamed275(); + o.managedInstances = buildUnnamed277(); o.nextPageToken = 'foo'; } buildCounterInstanceGroupManagersListManagedInstancesResponse--; @@ -12086,18 +12144,18 @@ void checkInstanceGroupManagersListManagedInstancesResponse( ) { buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - checkUnnamed275(o.managedInstances!); + checkUnnamed277(o.managedInstances!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterInstanceGroupManagersListManagedInstancesResponse--; } -core.List buildUnnamed276() => [ +core.List buildUnnamed278() => [ buildPerInstanceConfig(), buildPerInstanceConfig(), ]; -void checkUnnamed276(core.List o) { +void checkUnnamed278(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPerInstanceConfig(o[0]); checkPerInstanceConfig(o[1]); @@ -12131,12 +12189,12 @@ void checkInstanceGroupManagersListPerInstanceConfigsRespWarningData( } core.List -buildUnnamed277() => [ +buildUnnamed279() => [ buildInstanceGroupManagersListPerInstanceConfigsRespWarningData(), buildInstanceGroupManagersListPerInstanceConfigsRespWarningData(), ]; -void checkUnnamed277( +void checkUnnamed279( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -12151,7 +12209,7 @@ buildInstanceGroupManagersListPerInstanceConfigsRespWarning() { buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarning++; if (buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed277(); + o.data = buildUnnamed279(); o.message = 'foo'; } buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarning--; @@ -12164,7 +12222,7 @@ void checkInstanceGroupManagersListPerInstanceConfigsRespWarning( buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarning++; if (buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed277(o.data!); + checkUnnamed279(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarning--; @@ -12176,7 +12234,7 @@ buildInstanceGroupManagersListPerInstanceConfigsResp() { final o = api.InstanceGroupManagersListPerInstanceConfigsResp(); buildCounterInstanceGroupManagersListPerInstanceConfigsResp++; if (buildCounterInstanceGroupManagersListPerInstanceConfigsResp < 3) { - o.items = buildUnnamed276(); + o.items = buildUnnamed278(); o.nextPageToken = 'foo'; o.warning = buildInstanceGroupManagersListPerInstanceConfigsRespWarning(); } @@ -12189,19 +12247,19 @@ void checkInstanceGroupManagersListPerInstanceConfigsResp( ) { buildCounterInstanceGroupManagersListPerInstanceConfigsResp++; if (buildCounterInstanceGroupManagersListPerInstanceConfigsResp < 3) { - checkUnnamed276(o.items!); + checkUnnamed278(o.items!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); checkInstanceGroupManagersListPerInstanceConfigsRespWarning(o.warning!); } buildCounterInstanceGroupManagersListPerInstanceConfigsResp--; } -core.List buildUnnamed278() => [ +core.List buildUnnamed280() => [ buildPerInstanceConfig(), buildPerInstanceConfig(), ]; -void checkUnnamed278(core.List o) { +void checkUnnamed280(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPerInstanceConfig(o[0]); checkPerInstanceConfig(o[1]); @@ -12213,7 +12271,7 @@ buildInstanceGroupManagersPatchPerInstanceConfigsReq() { final o = api.InstanceGroupManagersPatchPerInstanceConfigsReq(); buildCounterInstanceGroupManagersPatchPerInstanceConfigsReq++; if (buildCounterInstanceGroupManagersPatchPerInstanceConfigsReq < 3) { - o.perInstanceConfigs = buildUnnamed278(); + o.perInstanceConfigs = buildUnnamed280(); } buildCounterInstanceGroupManagersPatchPerInstanceConfigsReq--; return o; @@ -12224,14 +12282,14 @@ void checkInstanceGroupManagersPatchPerInstanceConfigsReq( ) { buildCounterInstanceGroupManagersPatchPerInstanceConfigsReq++; if (buildCounterInstanceGroupManagersPatchPerInstanceConfigsReq < 3) { - checkUnnamed278(o.perInstanceConfigs!); + checkUnnamed280(o.perInstanceConfigs!); } buildCounterInstanceGroupManagersPatchPerInstanceConfigsReq--; } -core.List buildUnnamed279() => ['foo', 'foo']; +core.List buildUnnamed281() => ['foo', 'foo']; -void checkUnnamed279(core.List o) { +void checkUnnamed281(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -12243,7 +12301,7 @@ buildInstanceGroupManagersRecreateInstancesRequest() { final o = api.InstanceGroupManagersRecreateInstancesRequest(); buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - o.instances = buildUnnamed279(); + o.instances = buildUnnamed281(); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; return o; @@ -12254,14 +12312,14 @@ void checkInstanceGroupManagersRecreateInstancesRequest( ) { buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - checkUnnamed279(o.instances!); + checkUnnamed281(o.instances!); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; } -core.List buildUnnamed280() => ['foo', 'foo']; +core.List buildUnnamed282() => ['foo', 'foo']; -void checkUnnamed280(core.List o) { +void checkUnnamed282(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -12273,7 +12331,7 @@ buildInstanceGroupManagersResumeInstancesRequest() { final o = api.InstanceGroupManagersResumeInstancesRequest(); buildCounterInstanceGroupManagersResumeInstancesRequest++; if (buildCounterInstanceGroupManagersResumeInstancesRequest < 3) { - o.instances = buildUnnamed280(); + o.instances = buildUnnamed282(); } buildCounterInstanceGroupManagersResumeInstancesRequest--; return o; @@ -12284,17 +12342,17 @@ void checkInstanceGroupManagersResumeInstancesRequest( ) { buildCounterInstanceGroupManagersResumeInstancesRequest++; if (buildCounterInstanceGroupManagersResumeInstancesRequest < 3) { - checkUnnamed280(o.instances!); + checkUnnamed282(o.instances!); } buildCounterInstanceGroupManagersResumeInstancesRequest--; } -core.List buildUnnamed281() => [ +core.List buildUnnamed283() => [ buildInstanceGroupManager(), buildInstanceGroupManager(), ]; -void checkUnnamed281(core.List o) { +void checkUnnamed283(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -12324,12 +12382,12 @@ void checkInstanceGroupManagersScopedListWarningData( buildCounterInstanceGroupManagersScopedListWarningData--; } -core.List buildUnnamed282() => [ +core.List buildUnnamed284() => [ buildInstanceGroupManagersScopedListWarningData(), buildInstanceGroupManagersScopedListWarningData(), ]; -void checkUnnamed282( +void checkUnnamed284( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -12344,7 +12402,7 @@ buildInstanceGroupManagersScopedListWarning() { buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed282(); + o.data = buildUnnamed284(); o.message = 'foo'; } buildCounterInstanceGroupManagersScopedListWarning--; @@ -12357,7 +12415,7 @@ void checkInstanceGroupManagersScopedListWarning( buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed282(o.data!); + checkUnnamed284(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstanceGroupManagersScopedListWarning--; @@ -12368,7 +12426,7 @@ api.InstanceGroupManagersScopedList buildInstanceGroupManagersScopedList() { final o = api.InstanceGroupManagersScopedList(); buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - o.instanceGroupManagers = buildUnnamed281(); + o.instanceGroupManagers = buildUnnamed283(); o.warning = buildInstanceGroupManagersScopedListWarning(); } buildCounterInstanceGroupManagersScopedList--; @@ -12380,7 +12438,7 @@ void checkInstanceGroupManagersScopedList( ) { buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - checkUnnamed281(o.instanceGroupManagers!); + checkUnnamed283(o.instanceGroupManagers!); checkInstanceGroupManagersScopedListWarning(o.warning!); } buildCounterInstanceGroupManagersScopedList--; @@ -12408,9 +12466,9 @@ void checkInstanceGroupManagersSetInstanceTemplateRequest( buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; } -core.List buildUnnamed283() => ['foo', 'foo']; +core.List buildUnnamed285() => ['foo', 'foo']; -void checkUnnamed283(core.List o) { +void checkUnnamed285(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -12423,7 +12481,7 @@ buildInstanceGroupManagersSetTargetPoolsRequest() { buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = 'foo'; - o.targetPools = buildUnnamed283(); + o.targetPools = buildUnnamed285(); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -12435,14 +12493,14 @@ void checkInstanceGroupManagersSetTargetPoolsRequest( buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint!, unittest.equals('foo')); - checkUnnamed283(o.targetPools!); + checkUnnamed285(o.targetPools!); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; } -core.List buildUnnamed284() => ['foo', 'foo']; +core.List buildUnnamed286() => ['foo', 'foo']; -void checkUnnamed284(core.List o) { +void checkUnnamed286(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -12454,7 +12512,7 @@ buildInstanceGroupManagersStartInstancesRequest() { final o = api.InstanceGroupManagersStartInstancesRequest(); buildCounterInstanceGroupManagersStartInstancesRequest++; if (buildCounterInstanceGroupManagersStartInstancesRequest < 3) { - o.instances = buildUnnamed284(); + o.instances = buildUnnamed286(); } buildCounterInstanceGroupManagersStartInstancesRequest--; return o; @@ -12465,14 +12523,14 @@ void checkInstanceGroupManagersStartInstancesRequest( ) { buildCounterInstanceGroupManagersStartInstancesRequest++; if (buildCounterInstanceGroupManagersStartInstancesRequest < 3) { - checkUnnamed284(o.instances!); + checkUnnamed286(o.instances!); } buildCounterInstanceGroupManagersStartInstancesRequest--; } -core.List buildUnnamed285() => ['foo', 'foo']; +core.List buildUnnamed287() => ['foo', 'foo']; -void checkUnnamed285(core.List o) { +void checkUnnamed287(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -12485,7 +12543,7 @@ buildInstanceGroupManagersStopInstancesRequest() { buildCounterInstanceGroupManagersStopInstancesRequest++; if (buildCounterInstanceGroupManagersStopInstancesRequest < 3) { o.forceStop = true; - o.instances = buildUnnamed285(); + o.instances = buildUnnamed287(); } buildCounterInstanceGroupManagersStopInstancesRequest--; return o; @@ -12497,14 +12555,14 @@ void checkInstanceGroupManagersStopInstancesRequest( buildCounterInstanceGroupManagersStopInstancesRequest++; if (buildCounterInstanceGroupManagersStopInstancesRequest < 3) { unittest.expect(o.forceStop!, unittest.isTrue); - checkUnnamed285(o.instances!); + checkUnnamed287(o.instances!); } buildCounterInstanceGroupManagersStopInstancesRequest--; } -core.List buildUnnamed286() => ['foo', 'foo']; +core.List buildUnnamed288() => ['foo', 'foo']; -void checkUnnamed286(core.List o) { +void checkUnnamed288(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -12517,7 +12575,7 @@ buildInstanceGroupManagersSuspendInstancesRequest() { buildCounterInstanceGroupManagersSuspendInstancesRequest++; if (buildCounterInstanceGroupManagersSuspendInstancesRequest < 3) { o.forceSuspend = true; - o.instances = buildUnnamed286(); + o.instances = buildUnnamed288(); } buildCounterInstanceGroupManagersSuspendInstancesRequest--; return o; @@ -12529,17 +12587,17 @@ void checkInstanceGroupManagersSuspendInstancesRequest( buildCounterInstanceGroupManagersSuspendInstancesRequest++; if (buildCounterInstanceGroupManagersSuspendInstancesRequest < 3) { unittest.expect(o.forceSuspend!, unittest.isTrue); - checkUnnamed286(o.instances!); + checkUnnamed288(o.instances!); } buildCounterInstanceGroupManagersSuspendInstancesRequest--; } -core.List buildUnnamed287() => [ +core.List buildUnnamed289() => [ buildPerInstanceConfig(), buildPerInstanceConfig(), ]; -void checkUnnamed287(core.List o) { +void checkUnnamed289(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPerInstanceConfig(o[0]); checkPerInstanceConfig(o[1]); @@ -12551,7 +12609,7 @@ buildInstanceGroupManagersUpdatePerInstanceConfigsReq() { final o = api.InstanceGroupManagersUpdatePerInstanceConfigsReq(); buildCounterInstanceGroupManagersUpdatePerInstanceConfigsReq++; if (buildCounterInstanceGroupManagersUpdatePerInstanceConfigsReq < 3) { - o.perInstanceConfigs = buildUnnamed287(); + o.perInstanceConfigs = buildUnnamed289(); } buildCounterInstanceGroupManagersUpdatePerInstanceConfigsReq--; return o; @@ -12562,17 +12620,17 @@ void checkInstanceGroupManagersUpdatePerInstanceConfigsReq( ) { buildCounterInstanceGroupManagersUpdatePerInstanceConfigsReq++; if (buildCounterInstanceGroupManagersUpdatePerInstanceConfigsReq < 3) { - checkUnnamed287(o.perInstanceConfigs!); + checkUnnamed289(o.perInstanceConfigs!); } buildCounterInstanceGroupManagersUpdatePerInstanceConfigsReq--; } -core.List buildUnnamed288() => [ +core.List buildUnnamed290() => [ buildInstanceReference(), buildInstanceReference(), ]; -void checkUnnamed288(core.List o) { +void checkUnnamed290(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -12583,7 +12641,7 @@ api.InstanceGroupsAddInstancesRequest buildInstanceGroupsAddInstancesRequest() { final o = api.InstanceGroupsAddInstancesRequest(); buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - o.instances = buildUnnamed288(); + o.instances = buildUnnamed290(); } buildCounterInstanceGroupsAddInstancesRequest--; return o; @@ -12594,17 +12652,17 @@ void checkInstanceGroupsAddInstancesRequest( ) { buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - checkUnnamed288(o.instances!); + checkUnnamed290(o.instances!); } buildCounterInstanceGroupsAddInstancesRequest--; } -core.List buildUnnamed289() => [ +core.List buildUnnamed291() => [ buildInstanceWithNamedPorts(), buildInstanceWithNamedPorts(), ]; -void checkUnnamed289(core.List o) { +void checkUnnamed291(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceWithNamedPorts(o[0]); checkInstanceWithNamedPorts(o[1]); @@ -12634,12 +12692,12 @@ void checkInstanceGroupsListInstancesWarningData( buildCounterInstanceGroupsListInstancesWarningData--; } -core.List buildUnnamed290() => [ +core.List buildUnnamed292() => [ buildInstanceGroupsListInstancesWarningData(), buildInstanceGroupsListInstancesWarningData(), ]; -void checkUnnamed290(core.List o) { +void checkUnnamed292(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsListInstancesWarningData(o[0]); checkInstanceGroupsListInstancesWarningData(o[1]); @@ -12652,7 +12710,7 @@ buildInstanceGroupsListInstancesWarning() { buildCounterInstanceGroupsListInstancesWarning++; if (buildCounterInstanceGroupsListInstancesWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed290(); + o.data = buildUnnamed292(); o.message = 'foo'; } buildCounterInstanceGroupsListInstancesWarning--; @@ -12665,7 +12723,7 @@ void checkInstanceGroupsListInstancesWarning( buildCounterInstanceGroupsListInstancesWarning++; if (buildCounterInstanceGroupsListInstancesWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed290(o.data!); + checkUnnamed292(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstanceGroupsListInstancesWarning--; @@ -12677,7 +12735,7 @@ api.InstanceGroupsListInstances buildInstanceGroupsListInstances() { buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { o.id = 'foo'; - o.items = buildUnnamed289(); + o.items = buildUnnamed291(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -12691,7 +12749,7 @@ void checkInstanceGroupsListInstances(api.InstanceGroupsListInstances o) { buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed289(o.items!); + checkUnnamed291(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -12722,12 +12780,12 @@ void checkInstanceGroupsListInstancesRequest( buildCounterInstanceGroupsListInstancesRequest--; } -core.List buildUnnamed291() => [ +core.List buildUnnamed293() => [ buildInstanceReference(), buildInstanceReference(), ]; -void checkUnnamed291(core.List o) { +void checkUnnamed293(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -12739,7 +12797,7 @@ buildInstanceGroupsRemoveInstancesRequest() { final o = api.InstanceGroupsRemoveInstancesRequest(); buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - o.instances = buildUnnamed291(); + o.instances = buildUnnamed293(); } buildCounterInstanceGroupsRemoveInstancesRequest--; return o; @@ -12750,17 +12808,17 @@ void checkInstanceGroupsRemoveInstancesRequest( ) { buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - checkUnnamed291(o.instances!); + checkUnnamed293(o.instances!); } buildCounterInstanceGroupsRemoveInstancesRequest--; } -core.List buildUnnamed292() => [ +core.List buildUnnamed294() => [ buildInstanceGroup(), buildInstanceGroup(), ]; -void checkUnnamed292(core.List o) { +void checkUnnamed294(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -12790,12 +12848,12 @@ void checkInstanceGroupsScopedListWarningData( buildCounterInstanceGroupsScopedListWarningData--; } -core.List buildUnnamed293() => [ +core.List buildUnnamed295() => [ buildInstanceGroupsScopedListWarningData(), buildInstanceGroupsScopedListWarningData(), ]; -void checkUnnamed293(core.List o) { +void checkUnnamed295(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedListWarningData(o[0]); checkInstanceGroupsScopedListWarningData(o[1]); @@ -12807,7 +12865,7 @@ api.InstanceGroupsScopedListWarning buildInstanceGroupsScopedListWarning() { buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed293(); + o.data = buildUnnamed295(); o.message = 'foo'; } buildCounterInstanceGroupsScopedListWarning--; @@ -12820,7 +12878,7 @@ void checkInstanceGroupsScopedListWarning( buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed293(o.data!); + checkUnnamed295(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstanceGroupsScopedListWarning--; @@ -12831,7 +12889,7 @@ api.InstanceGroupsScopedList buildInstanceGroupsScopedList() { final o = api.InstanceGroupsScopedList(); buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - o.instanceGroups = buildUnnamed292(); + o.instanceGroups = buildUnnamed294(); o.warning = buildInstanceGroupsScopedListWarning(); } buildCounterInstanceGroupsScopedList--; @@ -12841,18 +12899,18 @@ api.InstanceGroupsScopedList buildInstanceGroupsScopedList() { void checkInstanceGroupsScopedList(api.InstanceGroupsScopedList o) { buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - checkUnnamed292(o.instanceGroups!); + checkUnnamed294(o.instanceGroups!); checkInstanceGroupsScopedListWarning(o.warning!); } buildCounterInstanceGroupsScopedList--; } -core.List buildUnnamed294() => [ +core.List buildUnnamed296() => [ buildNamedPort(), buildNamedPort(), ]; -void checkUnnamed294(core.List o) { +void checkUnnamed296(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -12865,7 +12923,7 @@ buildInstanceGroupsSetNamedPortsRequest() { buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { o.fingerprint = 'foo'; - o.namedPorts = buildUnnamed294(); + o.namedPorts = buildUnnamed296(); } buildCounterInstanceGroupsSetNamedPortsRequest--; return o; @@ -12877,14 +12935,14 @@ void checkInstanceGroupsSetNamedPortsRequest( buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { unittest.expect(o.fingerprint!, unittest.equals('foo')); - checkUnnamed294(o.namedPorts!); + checkUnnamed296(o.namedPorts!); } buildCounterInstanceGroupsSetNamedPortsRequest--; } -core.List buildUnnamed295() => [buildInstance(), buildInstance()]; +core.List buildUnnamed297() => [buildInstance(), buildInstance()]; -void checkUnnamed295(core.List o) { +void checkUnnamed297(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -12911,12 +12969,12 @@ void checkInstanceListWarningData(api.InstanceListWarningData o) { buildCounterInstanceListWarningData--; } -core.List buildUnnamed296() => [ +core.List buildUnnamed298() => [ buildInstanceListWarningData(), buildInstanceListWarningData(), ]; -void checkUnnamed296(core.List o) { +void checkUnnamed298(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceListWarningData(o[0]); checkInstanceListWarningData(o[1]); @@ -12928,7 +12986,7 @@ api.InstanceListWarning buildInstanceListWarning() { buildCounterInstanceListWarning++; if (buildCounterInstanceListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed296(); + o.data = buildUnnamed298(); o.message = 'foo'; } buildCounterInstanceListWarning--; @@ -12939,7 +12997,7 @@ void checkInstanceListWarning(api.InstanceListWarning o) { buildCounterInstanceListWarning++; if (buildCounterInstanceListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed296(o.data!); + checkUnnamed298(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstanceListWarning--; @@ -12951,7 +13009,7 @@ api.InstanceList buildInstanceList() { buildCounterInstanceList++; if (buildCounterInstanceList < 3) { o.id = 'foo'; - o.items = buildUnnamed295(); + o.items = buildUnnamed297(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -12965,7 +13023,7 @@ void checkInstanceList(api.InstanceList o) { buildCounterInstanceList++; if (buildCounterInstanceList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed295(o.items!); + checkUnnamed297(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -12974,12 +13032,12 @@ void checkInstanceList(api.InstanceList o) { buildCounterInstanceList--; } -core.List buildUnnamed297() => [ +core.List buildUnnamed299() => [ buildReference(), buildReference(), ]; -void checkUnnamed297(core.List o) { +void checkUnnamed299(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkReference(o[0]); checkReference(o[1]); @@ -13008,12 +13066,12 @@ void checkInstanceListReferrersWarningData( buildCounterInstanceListReferrersWarningData--; } -core.List buildUnnamed298() => [ +core.List buildUnnamed300() => [ buildInstanceListReferrersWarningData(), buildInstanceListReferrersWarningData(), ]; -void checkUnnamed298(core.List o) { +void checkUnnamed300(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceListReferrersWarningData(o[0]); checkInstanceListReferrersWarningData(o[1]); @@ -13025,7 +13083,7 @@ api.InstanceListReferrersWarning buildInstanceListReferrersWarning() { buildCounterInstanceListReferrersWarning++; if (buildCounterInstanceListReferrersWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed298(); + o.data = buildUnnamed300(); o.message = 'foo'; } buildCounterInstanceListReferrersWarning--; @@ -13036,7 +13094,7 @@ void checkInstanceListReferrersWarning(api.InstanceListReferrersWarning o) { buildCounterInstanceListReferrersWarning++; if (buildCounterInstanceListReferrersWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed298(o.data!); + checkUnnamed300(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstanceListReferrersWarning--; @@ -13048,7 +13106,7 @@ api.InstanceListReferrers buildInstanceListReferrers() { buildCounterInstanceListReferrers++; if (buildCounterInstanceListReferrers < 3) { o.id = 'foo'; - o.items = buildUnnamed297(); + o.items = buildUnnamed299(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -13062,7 +13120,7 @@ void checkInstanceListReferrers(api.InstanceListReferrers o) { buildCounterInstanceListReferrers++; if (buildCounterInstanceListReferrers < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed297(o.items!); + checkUnnamed299(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -13168,12 +13226,12 @@ void checkInstanceMoveRequest(api.InstanceMoveRequest o) { buildCounterInstanceMoveRequest--; } -core.Map buildUnnamed299() => { +core.Map buildUnnamed301() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed299(core.Map o) { +void checkUnnamed301(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -13184,7 +13242,8 @@ api.InstanceParams buildInstanceParams() { final o = api.InstanceParams(); buildCounterInstanceParams++; if (buildCounterInstanceParams < 3) { - o.resourceManagerTags = buildUnnamed299(); + o.requestValidForDuration = buildDuration(); + o.resourceManagerTags = buildUnnamed301(); } buildCounterInstanceParams--; return o; @@ -13193,80 +13252,81 @@ api.InstanceParams buildInstanceParams() { void checkInstanceParams(api.InstanceParams o) { buildCounterInstanceParams++; if (buildCounterInstanceParams < 3) { - checkUnnamed299(o.resourceManagerTags!); + checkDuration(o.requestValidForDuration!); + checkUnnamed301(o.resourceManagerTags!); } buildCounterInstanceParams--; } -core.List buildUnnamed300() => [ +core.List buildUnnamed302() => [ buildAttachedDisk(), buildAttachedDisk(), ]; -void checkUnnamed300(core.List o) { +void checkUnnamed302(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -core.List buildUnnamed301() => [ +core.List buildUnnamed303() => [ buildAcceleratorConfig(), buildAcceleratorConfig(), ]; -void checkUnnamed301(core.List o) { +void checkUnnamed303(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -core.Map buildUnnamed302() => { +core.Map buildUnnamed304() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed302(core.Map o) { +void checkUnnamed304(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed303() => [ +core.List buildUnnamed305() => [ buildNetworkInterface(), buildNetworkInterface(), ]; -void checkUnnamed303(core.List o) { +void checkUnnamed305(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -core.Map buildUnnamed304() => { +core.Map buildUnnamed306() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed304(core.Map o) { +void checkUnnamed306(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed305() => ['foo', 'foo']; +core.List buildUnnamed307() => ['foo', 'foo']; -void checkUnnamed305(core.List o) { +void checkUnnamed307(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed306() => [ +core.List buildUnnamed308() => [ buildServiceAccount(), buildServiceAccount(), ]; -void checkUnnamed306(core.List o) { +void checkUnnamed308(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -13281,21 +13341,21 @@ api.InstanceProperties buildInstanceProperties() { o.canIpForward = true; o.confidentialInstanceConfig = buildConfidentialInstanceConfig(); o.description = 'foo'; - o.disks = buildUnnamed300(); - o.guestAccelerators = buildUnnamed301(); + o.disks = buildUnnamed302(); + o.guestAccelerators = buildUnnamed303(); o.keyRevocationActionType = 'foo'; - o.labels = buildUnnamed302(); + o.labels = buildUnnamed304(); o.machineType = 'foo'; o.metadata = buildMetadata(); o.minCpuPlatform = 'foo'; - o.networkInterfaces = buildUnnamed303(); + o.networkInterfaces = buildUnnamed305(); o.networkPerformanceConfig = buildNetworkPerformanceConfig(); o.privateIpv6GoogleAccess = 'foo'; o.reservationAffinity = buildReservationAffinity(); - o.resourceManagerTags = buildUnnamed304(); - o.resourcePolicies = buildUnnamed305(); + o.resourceManagerTags = buildUnnamed306(); + o.resourcePolicies = buildUnnamed307(); o.scheduling = buildScheduling(); - o.serviceAccounts = buildUnnamed306(); + o.serviceAccounts = buildUnnamed308(); o.shieldedInstanceConfig = buildShieldedInstanceConfig(); o.tags = buildTags(); } @@ -13310,44 +13370,44 @@ void checkInstanceProperties(api.InstanceProperties o) { unittest.expect(o.canIpForward!, unittest.isTrue); checkConfidentialInstanceConfig(o.confidentialInstanceConfig!); unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed300(o.disks!); - checkUnnamed301(o.guestAccelerators!); + checkUnnamed302(o.disks!); + checkUnnamed303(o.guestAccelerators!); unittest.expect(o.keyRevocationActionType!, unittest.equals('foo')); - checkUnnamed302(o.labels!); + checkUnnamed304(o.labels!); unittest.expect(o.machineType!, unittest.equals('foo')); checkMetadata(o.metadata!); unittest.expect(o.minCpuPlatform!, unittest.equals('foo')); - checkUnnamed303(o.networkInterfaces!); + checkUnnamed305(o.networkInterfaces!); checkNetworkPerformanceConfig(o.networkPerformanceConfig!); unittest.expect(o.privateIpv6GoogleAccess!, unittest.equals('foo')); checkReservationAffinity(o.reservationAffinity!); - checkUnnamed304(o.resourceManagerTags!); - checkUnnamed305(o.resourcePolicies!); + checkUnnamed306(o.resourceManagerTags!); + checkUnnamed307(o.resourcePolicies!); checkScheduling(o.scheduling!); - checkUnnamed306(o.serviceAccounts!); + checkUnnamed308(o.serviceAccounts!); checkShieldedInstanceConfig(o.shieldedInstanceConfig!); checkTags(o.tags!); } buildCounterInstanceProperties--; } -core.Map buildUnnamed307() => { +core.Map buildUnnamed309() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed307(core.Map o) { +void checkUnnamed309(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed308() => { +core.Map buildUnnamed310() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed308(core.Map o) { +void checkUnnamed310(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -13358,8 +13418,8 @@ api.InstancePropertiesPatch buildInstancePropertiesPatch() { final o = api.InstancePropertiesPatch(); buildCounterInstancePropertiesPatch++; if (buildCounterInstancePropertiesPatch < 3) { - o.labels = buildUnnamed307(); - o.metadata = buildUnnamed308(); + o.labels = buildUnnamed309(); + o.metadata = buildUnnamed310(); } buildCounterInstancePropertiesPatch--; return o; @@ -13368,8 +13428,8 @@ api.InstancePropertiesPatch buildInstancePropertiesPatch() { void checkInstancePropertiesPatch(api.InstancePropertiesPatch o) { buildCounterInstancePropertiesPatch++; if (buildCounterInstancePropertiesPatch < 3) { - checkUnnamed307(o.labels!); - checkUnnamed308(o.metadata!); + checkUnnamed309(o.labels!); + checkUnnamed310(o.metadata!); } buildCounterInstancePropertiesPatch--; } @@ -13418,12 +13478,12 @@ void checkInstanceSettings(api.InstanceSettings o) { buildCounterInstanceSettings--; } -core.Map buildUnnamed309() => { +core.Map buildUnnamed311() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed309(core.Map o) { +void checkUnnamed311(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -13434,7 +13494,7 @@ api.InstanceSettingsMetadata buildInstanceSettingsMetadata() { final o = api.InstanceSettingsMetadata(); buildCounterInstanceSettingsMetadata++; if (buildCounterInstanceSettingsMetadata < 3) { - o.items = buildUnnamed309(); + o.items = buildUnnamed311(); o.kind = 'foo'; } buildCounterInstanceSettingsMetadata--; @@ -13444,7 +13504,7 @@ api.InstanceSettingsMetadata buildInstanceSettingsMetadata() { void checkInstanceSettingsMetadata(api.InstanceSettingsMetadata o) { buildCounterInstanceSettingsMetadata++; if (buildCounterInstanceSettingsMetadata < 3) { - checkUnnamed309(o.items!); + checkUnnamed311(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); } buildCounterInstanceSettingsMetadata--; @@ -13487,12 +13547,12 @@ void checkInstanceTemplate(api.InstanceTemplate o) { buildCounterInstanceTemplate--; } -core.Map buildUnnamed310() => { +core.Map buildUnnamed312() => { 'x': buildInstanceTemplatesScopedList(), 'y': buildInstanceTemplatesScopedList(), }; -void checkUnnamed310(core.Map o) { +void checkUnnamed312(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceTemplatesScopedList(o['x']!); checkInstanceTemplatesScopedList(o['y']!); @@ -13522,12 +13582,12 @@ void checkInstanceTemplateAggregatedListWarningData( buildCounterInstanceTemplateAggregatedListWarningData--; } -core.List buildUnnamed311() => [ +core.List buildUnnamed313() => [ buildInstanceTemplateAggregatedListWarningData(), buildInstanceTemplateAggregatedListWarningData(), ]; -void checkUnnamed311( +void checkUnnamed313( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -13542,7 +13602,7 @@ buildInstanceTemplateAggregatedListWarning() { buildCounterInstanceTemplateAggregatedListWarning++; if (buildCounterInstanceTemplateAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed311(); + o.data = buildUnnamed313(); o.message = 'foo'; } buildCounterInstanceTemplateAggregatedListWarning--; @@ -13555,7 +13615,7 @@ void checkInstanceTemplateAggregatedListWarning( buildCounterInstanceTemplateAggregatedListWarning++; if (buildCounterInstanceTemplateAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed311(o.data!); + checkUnnamed313(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstanceTemplateAggregatedListWarning--; @@ -13567,7 +13627,7 @@ api.InstanceTemplateAggregatedList buildInstanceTemplateAggregatedList() { buildCounterInstanceTemplateAggregatedList++; if (buildCounterInstanceTemplateAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed310(); + o.items = buildUnnamed312(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -13581,7 +13641,7 @@ void checkInstanceTemplateAggregatedList(api.InstanceTemplateAggregatedList o) { buildCounterInstanceTemplateAggregatedList++; if (buildCounterInstanceTemplateAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed310(o.items!); + checkUnnamed312(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -13590,12 +13650,12 @@ void checkInstanceTemplateAggregatedList(api.InstanceTemplateAggregatedList o) { buildCounterInstanceTemplateAggregatedList--; } -core.List buildUnnamed312() => [ +core.List buildUnnamed314() => [ buildInstanceTemplate(), buildInstanceTemplate(), ]; -void checkUnnamed312(core.List o) { +void checkUnnamed314(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceTemplate(o[0]); checkInstanceTemplate(o[1]); @@ -13624,12 +13684,12 @@ void checkInstanceTemplateListWarningData( buildCounterInstanceTemplateListWarningData--; } -core.List buildUnnamed313() => [ +core.List buildUnnamed315() => [ buildInstanceTemplateListWarningData(), buildInstanceTemplateListWarningData(), ]; -void checkUnnamed313(core.List o) { +void checkUnnamed315(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceTemplateListWarningData(o[0]); checkInstanceTemplateListWarningData(o[1]); @@ -13641,7 +13701,7 @@ api.InstanceTemplateListWarning buildInstanceTemplateListWarning() { buildCounterInstanceTemplateListWarning++; if (buildCounterInstanceTemplateListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed313(); + o.data = buildUnnamed315(); o.message = 'foo'; } buildCounterInstanceTemplateListWarning--; @@ -13652,7 +13712,7 @@ void checkInstanceTemplateListWarning(api.InstanceTemplateListWarning o) { buildCounterInstanceTemplateListWarning++; if (buildCounterInstanceTemplateListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed313(o.data!); + checkUnnamed315(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstanceTemplateListWarning--; @@ -13664,7 +13724,7 @@ api.InstanceTemplateList buildInstanceTemplateList() { buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { o.id = 'foo'; - o.items = buildUnnamed312(); + o.items = buildUnnamed314(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -13678,7 +13738,7 @@ void checkInstanceTemplateList(api.InstanceTemplateList o) { buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed312(o.items!); + checkUnnamed314(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -13687,12 +13747,12 @@ void checkInstanceTemplateList(api.InstanceTemplateList o) { buildCounterInstanceTemplateList--; } -core.List buildUnnamed314() => [ +core.List buildUnnamed316() => [ buildInstanceTemplate(), buildInstanceTemplate(), ]; -void checkUnnamed314(core.List o) { +void checkUnnamed316(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceTemplate(o[0]); checkInstanceTemplate(o[1]); @@ -13722,12 +13782,12 @@ void checkInstanceTemplatesScopedListWarningData( buildCounterInstanceTemplatesScopedListWarningData--; } -core.List buildUnnamed315() => [ +core.List buildUnnamed317() => [ buildInstanceTemplatesScopedListWarningData(), buildInstanceTemplatesScopedListWarningData(), ]; -void checkUnnamed315(core.List o) { +void checkUnnamed317(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceTemplatesScopedListWarningData(o[0]); checkInstanceTemplatesScopedListWarningData(o[1]); @@ -13740,7 +13800,7 @@ buildInstanceTemplatesScopedListWarning() { buildCounterInstanceTemplatesScopedListWarning++; if (buildCounterInstanceTemplatesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed315(); + o.data = buildUnnamed317(); o.message = 'foo'; } buildCounterInstanceTemplatesScopedListWarning--; @@ -13753,7 +13813,7 @@ void checkInstanceTemplatesScopedListWarning( buildCounterInstanceTemplatesScopedListWarning++; if (buildCounterInstanceTemplatesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed315(o.data!); + checkUnnamed317(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstanceTemplatesScopedListWarning--; @@ -13764,7 +13824,7 @@ api.InstanceTemplatesScopedList buildInstanceTemplatesScopedList() { final o = api.InstanceTemplatesScopedList(); buildCounterInstanceTemplatesScopedList++; if (buildCounterInstanceTemplatesScopedList < 3) { - o.instanceTemplates = buildUnnamed314(); + o.instanceTemplates = buildUnnamed316(); o.warning = buildInstanceTemplatesScopedListWarning(); } buildCounterInstanceTemplatesScopedList--; @@ -13774,18 +13834,18 @@ api.InstanceTemplatesScopedList buildInstanceTemplatesScopedList() { void checkInstanceTemplatesScopedList(api.InstanceTemplatesScopedList o) { buildCounterInstanceTemplatesScopedList++; if (buildCounterInstanceTemplatesScopedList < 3) { - checkUnnamed314(o.instanceTemplates!); + checkUnnamed316(o.instanceTemplates!); checkInstanceTemplatesScopedListWarning(o.warning!); } buildCounterInstanceTemplatesScopedList--; } -core.List buildUnnamed316() => [ +core.List buildUnnamed318() => [ buildNamedPort(), buildNamedPort(), ]; -void checkUnnamed316(core.List o) { +void checkUnnamed318(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -13797,7 +13857,7 @@ api.InstanceWithNamedPorts buildInstanceWithNamedPorts() { buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { o.instance = 'foo'; - o.namedPorts = buildUnnamed316(); + o.namedPorts = buildUnnamed318(); o.status = 'foo'; } buildCounterInstanceWithNamedPorts--; @@ -13808,15 +13868,15 @@ void checkInstanceWithNamedPorts(api.InstanceWithNamedPorts o) { buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { unittest.expect(o.instance!, unittest.equals('foo')); - checkUnnamed316(o.namedPorts!); + checkUnnamed318(o.namedPorts!); unittest.expect(o.status!, unittest.equals('foo')); } buildCounterInstanceWithNamedPorts--; } -core.List buildUnnamed317() => ['foo', 'foo']; +core.List buildUnnamed319() => ['foo', 'foo']; -void checkUnnamed317(core.List o) { +void checkUnnamed319(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -13828,7 +13888,7 @@ buildInstancesAddResourcePoliciesRequest() { final o = api.InstancesAddResourcePoliciesRequest(); buildCounterInstancesAddResourcePoliciesRequest++; if (buildCounterInstancesAddResourcePoliciesRequest < 3) { - o.resourcePolicies = buildUnnamed317(); + o.resourcePolicies = buildUnnamed319(); } buildCounterInstancesAddResourcePoliciesRequest--; return o; @@ -13839,17 +13899,17 @@ void checkInstancesAddResourcePoliciesRequest( ) { buildCounterInstancesAddResourcePoliciesRequest++; if (buildCounterInstancesAddResourcePoliciesRequest < 3) { - checkUnnamed317(o.resourcePolicies!); + checkUnnamed319(o.resourcePolicies!); } buildCounterInstancesAddResourcePoliciesRequest--; } -core.Map buildUnnamed318() => { +core.Map buildUnnamed320() => { 'x': buildBulkInsertOperationStatus(), 'y': buildBulkInsertOperationStatus(), }; -void checkUnnamed318(core.Map o) { +void checkUnnamed320(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkBulkInsertOperationStatus(o['x']!); checkBulkInsertOperationStatus(o['y']!); @@ -13861,7 +13921,7 @@ buildInstancesBulkInsertOperationMetadata() { final o = api.InstancesBulkInsertOperationMetadata(); buildCounterInstancesBulkInsertOperationMetadata++; if (buildCounterInstancesBulkInsertOperationMetadata < 3) { - o.perLocationStatus = buildUnnamed318(); + o.perLocationStatus = buildUnnamed320(); } buildCounterInstancesBulkInsertOperationMetadata--; return o; @@ -13872,18 +13932,18 @@ void checkInstancesBulkInsertOperationMetadata( ) { buildCounterInstancesBulkInsertOperationMetadata++; if (buildCounterInstancesBulkInsertOperationMetadata < 3) { - checkUnnamed318(o.perLocationStatus!); + checkUnnamed320(o.perLocationStatus!); } buildCounterInstancesBulkInsertOperationMetadata--; } core.List -buildUnnamed319() => [ +buildUnnamed321() => [ buildInstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy(), buildInstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy(), ]; -void checkUnnamed319( +void checkUnnamed321( core.List o, ) { @@ -13892,9 +13952,9 @@ void checkUnnamed319( checkInstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy(o[1]); } -core.List buildUnnamed320() => [buildFirewall(), buildFirewall()]; +core.List buildUnnamed322() => [buildFirewall(), buildFirewall()]; -void checkUnnamed320(core.List o) { +void checkUnnamed322(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewall(o[0]); checkFirewall(o[1]); @@ -13906,8 +13966,8 @@ buildInstancesGetEffectiveFirewallsResponse() { final o = api.InstancesGetEffectiveFirewallsResponse(); buildCounterInstancesGetEffectiveFirewallsResponse++; if (buildCounterInstancesGetEffectiveFirewallsResponse < 3) { - o.firewallPolicys = buildUnnamed319(); - o.firewalls = buildUnnamed320(); + o.firewallPolicys = buildUnnamed321(); + o.firewalls = buildUnnamed322(); } buildCounterInstancesGetEffectiveFirewallsResponse--; return o; @@ -13918,29 +13978,29 @@ void checkInstancesGetEffectiveFirewallsResponse( ) { buildCounterInstancesGetEffectiveFirewallsResponse++; if (buildCounterInstancesGetEffectiveFirewallsResponse < 3) { - checkUnnamed319(o.firewallPolicys!); - checkUnnamed320(o.firewalls!); + checkUnnamed321(o.firewallPolicys!); + checkUnnamed322(o.firewalls!); } buildCounterInstancesGetEffectiveFirewallsResponse--; } -core.List buildUnnamed321() => [ +core.List buildUnnamed323() => [ buildFirewallPolicyRule(), buildFirewallPolicyRule(), ]; -void checkUnnamed321(core.List o) { +void checkUnnamed323(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicyRule(o[0]); checkFirewallPolicyRule(o[1]); } -core.List buildUnnamed322() => [ +core.List buildUnnamed324() => [ buildFirewallPolicyRule(), buildFirewallPolicyRule(), ]; -void checkUnnamed322(core.List o) { +void checkUnnamed324(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicyRule(o[0]); checkFirewallPolicyRule(o[1]); @@ -13956,9 +14016,9 @@ buildInstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy() { 3) { o.displayName = 'foo'; o.name = 'foo'; - o.packetMirroringRules = buildUnnamed321(); + o.packetMirroringRules = buildUnnamed323(); o.priority = 42; - o.rules = buildUnnamed322(); + o.rules = buildUnnamed324(); o.shortName = 'foo'; o.type = 'foo'; } @@ -13974,18 +14034,18 @@ void checkInstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy( 3) { unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed321(o.packetMirroringRules!); + checkUnnamed323(o.packetMirroringRules!); unittest.expect(o.priority!, unittest.equals(42)); - checkUnnamed322(o.rules!); + checkUnnamed324(o.rules!); unittest.expect(o.shortName!, unittest.equals('foo')); unittest.expect(o.type!, unittest.equals('foo')); } buildCounterInstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy--; } -core.List buildUnnamed323() => ['foo', 'foo']; +core.List buildUnnamed325() => ['foo', 'foo']; -void checkUnnamed323(core.List o) { +void checkUnnamed325(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -13997,7 +14057,7 @@ buildInstancesRemoveResourcePoliciesRequest() { final o = api.InstancesRemoveResourcePoliciesRequest(); buildCounterInstancesRemoveResourcePoliciesRequest++; if (buildCounterInstancesRemoveResourcePoliciesRequest < 3) { - o.resourcePolicies = buildUnnamed323(); + o.resourcePolicies = buildUnnamed325(); } buildCounterInstancesRemoveResourcePoliciesRequest--; return o; @@ -14008,18 +14068,18 @@ void checkInstancesRemoveResourcePoliciesRequest( ) { buildCounterInstancesRemoveResourcePoliciesRequest++; if (buildCounterInstancesRemoveResourcePoliciesRequest < 3) { - checkUnnamed323(o.resourcePolicies!); + checkUnnamed325(o.resourcePolicies!); } buildCounterInstancesRemoveResourcePoliciesRequest--; } core.List -buildUnnamed324() => [ +buildUnnamed326() => [ buildInstancesReportHostAsFaultyRequestFaultReason(), buildInstancesReportHostAsFaultyRequestFaultReason(), ]; -void checkUnnamed324( +void checkUnnamed326( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -14034,7 +14094,7 @@ buildInstancesReportHostAsFaultyRequest() { buildCounterInstancesReportHostAsFaultyRequest++; if (buildCounterInstancesReportHostAsFaultyRequest < 3) { o.disruptionSchedule = 'foo'; - o.faultReasons = buildUnnamed324(); + o.faultReasons = buildUnnamed326(); } buildCounterInstancesReportHostAsFaultyRequest--; return o; @@ -14046,7 +14106,7 @@ void checkInstancesReportHostAsFaultyRequest( buildCounterInstancesReportHostAsFaultyRequest++; if (buildCounterInstancesReportHostAsFaultyRequest < 3) { unittest.expect(o.disruptionSchedule!, unittest.equals('foo')); - checkUnnamed324(o.faultReasons!); + checkUnnamed326(o.faultReasons!); } buildCounterInstancesReportHostAsFaultyRequest--; } @@ -14075,9 +14135,9 @@ void checkInstancesReportHostAsFaultyRequestFaultReason( buildCounterInstancesReportHostAsFaultyRequestFaultReason--; } -core.List buildUnnamed325() => [buildInstance(), buildInstance()]; +core.List buildUnnamed327() => [buildInstance(), buildInstance()]; -void checkUnnamed325(core.List o) { +void checkUnnamed327(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -14104,12 +14164,12 @@ void checkInstancesScopedListWarningData(api.InstancesScopedListWarningData o) { buildCounterInstancesScopedListWarningData--; } -core.List buildUnnamed326() => [ +core.List buildUnnamed328() => [ buildInstancesScopedListWarningData(), buildInstancesScopedListWarningData(), ]; -void checkUnnamed326(core.List o) { +void checkUnnamed328(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedListWarningData(o[0]); checkInstancesScopedListWarningData(o[1]); @@ -14121,7 +14181,7 @@ api.InstancesScopedListWarning buildInstancesScopedListWarning() { buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed326(); + o.data = buildUnnamed328(); o.message = 'foo'; } buildCounterInstancesScopedListWarning--; @@ -14132,7 +14192,7 @@ void checkInstancesScopedListWarning(api.InstancesScopedListWarning o) { buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed326(o.data!); + checkUnnamed328(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstancesScopedListWarning--; @@ -14143,7 +14203,7 @@ api.InstancesScopedList buildInstancesScopedList() { final o = api.InstancesScopedList(); buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - o.instances = buildUnnamed325(); + o.instances = buildUnnamed327(); o.warning = buildInstancesScopedListWarning(); } buildCounterInstancesScopedList--; @@ -14153,18 +14213,18 @@ api.InstancesScopedList buildInstancesScopedList() { void checkInstancesScopedList(api.InstancesScopedList o) { buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - checkUnnamed325(o.instances!); + checkUnnamed327(o.instances!); checkInstancesScopedListWarning(o.warning!); } buildCounterInstancesScopedList--; } -core.Map buildUnnamed327() => { +core.Map buildUnnamed329() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed327(core.Map o) { +void checkUnnamed329(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -14176,7 +14236,7 @@ api.InstancesSetLabelsRequest buildInstancesSetLabelsRequest() { buildCounterInstancesSetLabelsRequest++; if (buildCounterInstancesSetLabelsRequest < 3) { o.labelFingerprint = 'foo'; - o.labels = buildUnnamed327(); + o.labels = buildUnnamed329(); } buildCounterInstancesSetLabelsRequest--; return o; @@ -14186,17 +14246,17 @@ void checkInstancesSetLabelsRequest(api.InstancesSetLabelsRequest o) { buildCounterInstancesSetLabelsRequest++; if (buildCounterInstancesSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed327(o.labels!); + checkUnnamed329(o.labels!); } buildCounterInstancesSetLabelsRequest--; } -core.List buildUnnamed328() => [ +core.List buildUnnamed330() => [ buildAcceleratorConfig(), buildAcceleratorConfig(), ]; -void checkUnnamed328(core.List o) { +void checkUnnamed330(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); @@ -14208,7 +14268,7 @@ buildInstancesSetMachineResourcesRequest() { final o = api.InstancesSetMachineResourcesRequest(); buildCounterInstancesSetMachineResourcesRequest++; if (buildCounterInstancesSetMachineResourcesRequest < 3) { - o.guestAccelerators = buildUnnamed328(); + o.guestAccelerators = buildUnnamed330(); } buildCounterInstancesSetMachineResourcesRequest--; return o; @@ -14219,7 +14279,7 @@ void checkInstancesSetMachineResourcesRequest( ) { buildCounterInstancesSetMachineResourcesRequest++; if (buildCounterInstancesSetMachineResourcesRequest < 3) { - checkUnnamed328(o.guestAccelerators!); + checkUnnamed330(o.guestAccelerators!); } buildCounterInstancesSetMachineResourcesRequest--; } @@ -14285,9 +14345,9 @@ void checkInstancesSetNameRequest(api.InstancesSetNameRequest o) { buildCounterInstancesSetNameRequest--; } -core.List buildUnnamed329() => ['foo', 'foo']; +core.List buildUnnamed331() => ['foo', 'foo']; -void checkUnnamed329(core.List o) { +void checkUnnamed331(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -14298,7 +14358,7 @@ api.InstancesSetSecurityPolicyRequest buildInstancesSetSecurityPolicyRequest() { final o = api.InstancesSetSecurityPolicyRequest(); buildCounterInstancesSetSecurityPolicyRequest++; if (buildCounterInstancesSetSecurityPolicyRequest < 3) { - o.networkInterfaces = buildUnnamed329(); + o.networkInterfaces = buildUnnamed331(); o.securityPolicy = 'foo'; } buildCounterInstancesSetSecurityPolicyRequest--; @@ -14310,15 +14370,15 @@ void checkInstancesSetSecurityPolicyRequest( ) { buildCounterInstancesSetSecurityPolicyRequest++; if (buildCounterInstancesSetSecurityPolicyRequest < 3) { - checkUnnamed329(o.networkInterfaces!); + checkUnnamed331(o.networkInterfaces!); unittest.expect(o.securityPolicy!, unittest.equals('foo')); } buildCounterInstancesSetSecurityPolicyRequest--; } -core.List buildUnnamed330() => ['foo', 'foo']; +core.List buildUnnamed332() => ['foo', 'foo']; -void checkUnnamed330(core.List o) { +void checkUnnamed332(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -14330,7 +14390,7 @@ api.InstancesSetServiceAccountRequest buildInstancesSetServiceAccountRequest() { buildCounterInstancesSetServiceAccountRequest++; if (buildCounterInstancesSetServiceAccountRequest < 3) { o.email = 'foo'; - o.scopes = buildUnnamed330(); + o.scopes = buildUnnamed332(); } buildCounterInstancesSetServiceAccountRequest--; return o; @@ -14342,17 +14402,17 @@ void checkInstancesSetServiceAccountRequest( buildCounterInstancesSetServiceAccountRequest++; if (buildCounterInstancesSetServiceAccountRequest < 3) { unittest.expect(o.email!, unittest.equals('foo')); - checkUnnamed330(o.scopes!); + checkUnnamed332(o.scopes!); } buildCounterInstancesSetServiceAccountRequest--; } -core.List buildUnnamed331() => [ +core.List buildUnnamed333() => [ buildCustomerEncryptionKeyProtectedDisk(), buildCustomerEncryptionKeyProtectedDisk(), ]; -void checkUnnamed331(core.List o) { +void checkUnnamed333(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCustomerEncryptionKeyProtectedDisk(o[0]); checkCustomerEncryptionKeyProtectedDisk(o[1]); @@ -14364,7 +14424,7 @@ buildInstancesStartWithEncryptionKeyRequest() { final o = api.InstancesStartWithEncryptionKeyRequest(); buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - o.disks = buildUnnamed331(); + o.disks = buildUnnamed333(); } buildCounterInstancesStartWithEncryptionKeyRequest--; return o; @@ -14375,17 +14435,17 @@ void checkInstancesStartWithEncryptionKeyRequest( ) { buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - checkUnnamed331(o.disks!); + checkUnnamed333(o.disks!); } buildCounterInstancesStartWithEncryptionKeyRequest--; } -core.Map buildUnnamed332() => { +core.Map buildUnnamed334() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed332(core.Map o) { +void checkUnnamed334(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -14403,7 +14463,7 @@ api.InstantSnapshot buildInstantSnapshot() { o.id = 'foo'; o.kind = 'foo'; o.labelFingerprint = 'foo'; - o.labels = buildUnnamed332(); + o.labels = buildUnnamed334(); o.name = 'foo'; o.region = 'foo'; o.resourceStatus = buildInstantSnapshotResourceStatus(); @@ -14430,7 +14490,7 @@ void checkInstantSnapshot(api.InstantSnapshot o) { unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed332(o.labels!); + checkUnnamed334(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); checkInstantSnapshotResourceStatus(o.resourceStatus!); @@ -14446,20 +14506,20 @@ void checkInstantSnapshot(api.InstantSnapshot o) { buildCounterInstantSnapshot--; } -core.Map buildUnnamed333() => { +core.Map buildUnnamed335() => { 'x': buildInstantSnapshotsScopedList(), 'y': buildInstantSnapshotsScopedList(), }; -void checkUnnamed333(core.Map o) { +void checkUnnamed335(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkInstantSnapshotsScopedList(o['x']!); checkInstantSnapshotsScopedList(o['y']!); } -core.List buildUnnamed334() => ['foo', 'foo']; +core.List buildUnnamed336() => ['foo', 'foo']; -void checkUnnamed334(core.List o) { +void checkUnnamed336(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -14489,12 +14549,12 @@ void checkInstantSnapshotAggregatedListWarningData( buildCounterInstantSnapshotAggregatedListWarningData--; } -core.List buildUnnamed335() => [ +core.List buildUnnamed337() => [ buildInstantSnapshotAggregatedListWarningData(), buildInstantSnapshotAggregatedListWarningData(), ]; -void checkUnnamed335( +void checkUnnamed337( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -14509,7 +14569,7 @@ buildInstantSnapshotAggregatedListWarning() { buildCounterInstantSnapshotAggregatedListWarning++; if (buildCounterInstantSnapshotAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed335(); + o.data = buildUnnamed337(); o.message = 'foo'; } buildCounterInstantSnapshotAggregatedListWarning--; @@ -14522,7 +14582,7 @@ void checkInstantSnapshotAggregatedListWarning( buildCounterInstantSnapshotAggregatedListWarning++; if (buildCounterInstantSnapshotAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed335(o.data!); + checkUnnamed337(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstantSnapshotAggregatedListWarning--; @@ -14534,11 +14594,11 @@ api.InstantSnapshotAggregatedList buildInstantSnapshotAggregatedList() { buildCounterInstantSnapshotAggregatedList++; if (buildCounterInstantSnapshotAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed333(); + o.items = buildUnnamed335(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed334(); + o.unreachables = buildUnnamed336(); o.warning = buildInstantSnapshotAggregatedListWarning(); } buildCounterInstantSnapshotAggregatedList--; @@ -14549,22 +14609,22 @@ void checkInstantSnapshotAggregatedList(api.InstantSnapshotAggregatedList o) { buildCounterInstantSnapshotAggregatedList++; if (buildCounterInstantSnapshotAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed333(o.items!); + checkUnnamed335(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed334(o.unreachables!); + checkUnnamed336(o.unreachables!); checkInstantSnapshotAggregatedListWarning(o.warning!); } buildCounterInstantSnapshotAggregatedList--; } -core.List buildUnnamed336() => [ +core.List buildUnnamed338() => [ buildInstantSnapshot(), buildInstantSnapshot(), ]; -void checkUnnamed336(core.List o) { +void checkUnnamed338(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstantSnapshot(o[0]); checkInstantSnapshot(o[1]); @@ -14591,12 +14651,12 @@ void checkInstantSnapshotListWarningData(api.InstantSnapshotListWarningData o) { buildCounterInstantSnapshotListWarningData--; } -core.List buildUnnamed337() => [ +core.List buildUnnamed339() => [ buildInstantSnapshotListWarningData(), buildInstantSnapshotListWarningData(), ]; -void checkUnnamed337(core.List o) { +void checkUnnamed339(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstantSnapshotListWarningData(o[0]); checkInstantSnapshotListWarningData(o[1]); @@ -14608,7 +14668,7 @@ api.InstantSnapshotListWarning buildInstantSnapshotListWarning() { buildCounterInstantSnapshotListWarning++; if (buildCounterInstantSnapshotListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed337(); + o.data = buildUnnamed339(); o.message = 'foo'; } buildCounterInstantSnapshotListWarning--; @@ -14619,7 +14679,7 @@ void checkInstantSnapshotListWarning(api.InstantSnapshotListWarning o) { buildCounterInstantSnapshotListWarning++; if (buildCounterInstantSnapshotListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed337(o.data!); + checkUnnamed339(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstantSnapshotListWarning--; @@ -14631,7 +14691,7 @@ api.InstantSnapshotList buildInstantSnapshotList() { buildCounterInstantSnapshotList++; if (buildCounterInstantSnapshotList < 3) { o.id = 'foo'; - o.items = buildUnnamed336(); + o.items = buildUnnamed338(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -14645,7 +14705,7 @@ void checkInstantSnapshotList(api.InstantSnapshotList o) { buildCounterInstantSnapshotList++; if (buildCounterInstantSnapshotList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed336(o.items!); + checkUnnamed338(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -14673,12 +14733,12 @@ void checkInstantSnapshotResourceStatus(api.InstantSnapshotResourceStatus o) { buildCounterInstantSnapshotResourceStatus--; } -core.List buildUnnamed338() => [ +core.List buildUnnamed340() => [ buildInstantSnapshot(), buildInstantSnapshot(), ]; -void checkUnnamed338(core.List o) { +void checkUnnamed340(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstantSnapshot(o[0]); checkInstantSnapshot(o[1]); @@ -14708,12 +14768,12 @@ void checkInstantSnapshotsScopedListWarningData( buildCounterInstantSnapshotsScopedListWarningData--; } -core.List buildUnnamed339() => [ +core.List buildUnnamed341() => [ buildInstantSnapshotsScopedListWarningData(), buildInstantSnapshotsScopedListWarningData(), ]; -void checkUnnamed339(core.List o) { +void checkUnnamed341(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstantSnapshotsScopedListWarningData(o[0]); checkInstantSnapshotsScopedListWarningData(o[1]); @@ -14725,7 +14785,7 @@ api.InstantSnapshotsScopedListWarning buildInstantSnapshotsScopedListWarning() { buildCounterInstantSnapshotsScopedListWarning++; if (buildCounterInstantSnapshotsScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed339(); + o.data = buildUnnamed341(); o.message = 'foo'; } buildCounterInstantSnapshotsScopedListWarning--; @@ -14738,7 +14798,7 @@ void checkInstantSnapshotsScopedListWarning( buildCounterInstantSnapshotsScopedListWarning++; if (buildCounterInstantSnapshotsScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed339(o.data!); + checkUnnamed341(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInstantSnapshotsScopedListWarning--; @@ -14749,7 +14809,7 @@ api.InstantSnapshotsScopedList buildInstantSnapshotsScopedList() { final o = api.InstantSnapshotsScopedList(); buildCounterInstantSnapshotsScopedList++; if (buildCounterInstantSnapshotsScopedList < 3) { - o.instantSnapshots = buildUnnamed338(); + o.instantSnapshots = buildUnnamed340(); o.warning = buildInstantSnapshotsScopedListWarning(); } buildCounterInstantSnapshotsScopedList--; @@ -14759,7 +14819,7 @@ api.InstantSnapshotsScopedList buildInstantSnapshotsScopedList() { void checkInstantSnapshotsScopedList(api.InstantSnapshotsScopedList o) { buildCounterInstantSnapshotsScopedList++; if (buildCounterInstantSnapshotsScopedList < 3) { - checkUnnamed338(o.instantSnapshots!); + checkUnnamed340(o.instantSnapshots!); checkInstantSnapshotsScopedListWarning(o.warning!); } buildCounterInstantSnapshotsScopedList--; @@ -14786,66 +14846,66 @@ void checkInt64RangeMatch(api.Int64RangeMatch o) { buildCounterInt64RangeMatch--; } -core.List buildUnnamed340() => ['foo', 'foo']; +core.List buildUnnamed342() => ['foo', 'foo']; -void checkUnnamed340(core.List o) { +void checkUnnamed342(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed341() => [ +core.List buildUnnamed343() => [ buildInterconnectCircuitInfo(), buildInterconnectCircuitInfo(), ]; -void checkUnnamed341(core.List o) { +void checkUnnamed343(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectCircuitInfo(o[0]); checkInterconnectCircuitInfo(o[1]); } -core.List buildUnnamed342() => [ +core.List buildUnnamed344() => [ buildInterconnectOutageNotification(), buildInterconnectOutageNotification(), ]; -void checkUnnamed342(core.List o) { +void checkUnnamed344(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectOutageNotification(o[0]); checkInterconnectOutageNotification(o[1]); } -core.List buildUnnamed343() => ['foo', 'foo']; +core.List buildUnnamed345() => ['foo', 'foo']; -void checkUnnamed343(core.List o) { +void checkUnnamed345(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed344() => ['foo', 'foo']; +core.List buildUnnamed346() => ['foo', 'foo']; -void checkUnnamed344(core.List o) { +void checkUnnamed346(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed345() => { +core.Map buildUnnamed347() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed345(core.Map o) { +void checkUnnamed347(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed346() => ['foo', 'foo']; +core.List buildUnnamed348() => ['foo', 'foo']; -void checkUnnamed346(core.List o) { +void checkUnnamed348(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -14856,22 +14916,25 @@ api.Interconnect buildInterconnect() { final o = api.Interconnect(); buildCounterInterconnect++; if (buildCounterInterconnect < 3) { + o.aaiEnabled = true; o.adminEnabled = true; - o.availableFeatures = buildUnnamed340(); - o.circuitInfos = buildUnnamed341(); + o.applicationAwareInterconnect = + buildInterconnectApplicationAwareInterconnect(); + o.availableFeatures = buildUnnamed342(); + o.circuitInfos = buildUnnamed343(); o.creationTimestamp = 'foo'; o.customerName = 'foo'; o.description = 'foo'; - o.expectedOutages = buildUnnamed342(); + o.expectedOutages = buildUnnamed344(); o.googleIpAddress = 'foo'; o.googleReferenceId = 'foo'; o.id = 'foo'; - o.interconnectAttachments = buildUnnamed343(); - o.interconnectGroups = buildUnnamed344(); + o.interconnectAttachments = buildUnnamed345(); + o.interconnectGroups = buildUnnamed346(); o.interconnectType = 'foo'; o.kind = 'foo'; o.labelFingerprint = 'foo'; - o.labels = buildUnnamed345(); + o.labels = buildUnnamed347(); o.linkType = 'foo'; o.location = 'foo'; o.macsec = buildInterconnectMacsec(); @@ -14882,7 +14945,7 @@ api.Interconnect buildInterconnect() { o.peerIpAddress = 'foo'; o.provisionedLinkCount = 42; o.remoteLocation = 'foo'; - o.requestedFeatures = buildUnnamed346(); + o.requestedFeatures = buildUnnamed348(); o.requestedLinkCount = 42; o.satisfiesPzs = true; o.selfLink = 'foo'; @@ -14895,22 +14958,26 @@ api.Interconnect buildInterconnect() { void checkInterconnect(api.Interconnect o) { buildCounterInterconnect++; if (buildCounterInterconnect < 3) { + unittest.expect(o.aaiEnabled!, unittest.isTrue); unittest.expect(o.adminEnabled!, unittest.isTrue); - checkUnnamed340(o.availableFeatures!); - checkUnnamed341(o.circuitInfos!); + checkInterconnectApplicationAwareInterconnect( + o.applicationAwareInterconnect!, + ); + checkUnnamed342(o.availableFeatures!); + checkUnnamed343(o.circuitInfos!); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.customerName!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed342(o.expectedOutages!); + checkUnnamed344(o.expectedOutages!); unittest.expect(o.googleIpAddress!, unittest.equals('foo')); unittest.expect(o.googleReferenceId!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed343(o.interconnectAttachments!); - checkUnnamed344(o.interconnectGroups!); + checkUnnamed345(o.interconnectAttachments!); + checkUnnamed346(o.interconnectGroups!); unittest.expect(o.interconnectType!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed345(o.labels!); + checkUnnamed347(o.labels!); unittest.expect(o.linkType!, unittest.equals('foo')); unittest.expect(o.location!, unittest.equals('foo')); checkInterconnectMacsec(o.macsec!); @@ -14921,7 +14988,7 @@ void checkInterconnect(api.Interconnect o) { unittest.expect(o.peerIpAddress!, unittest.equals('foo')); unittest.expect(o.provisionedLinkCount!, unittest.equals(42)); unittest.expect(o.remoteLocation!, unittest.equals('foo')); - checkUnnamed346(o.requestedFeatures!); + checkUnnamed348(o.requestedFeatures!); unittest.expect(o.requestedLinkCount!, unittest.equals(42)); unittest.expect(o.satisfiesPzs!, unittest.isTrue); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -14930,36 +14997,173 @@ void checkInterconnect(api.Interconnect o) { buildCounterInterconnect--; } -core.List buildUnnamed347() => ['foo', 'foo']; +core.List +buildUnnamed349() => [ + buildInterconnectApplicationAwareInterconnectBandwidthPercentage(), + buildInterconnectApplicationAwareInterconnectBandwidthPercentage(), +]; + +void checkUnnamed349( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkInterconnectApplicationAwareInterconnectBandwidthPercentage(o[0]); + checkInterconnectApplicationAwareInterconnectBandwidthPercentage(o[1]); +} + +core.int buildCounterInterconnectApplicationAwareInterconnect = 0; +api.InterconnectApplicationAwareInterconnect +buildInterconnectApplicationAwareInterconnect() { + final o = api.InterconnectApplicationAwareInterconnect(); + buildCounterInterconnectApplicationAwareInterconnect++; + if (buildCounterInterconnectApplicationAwareInterconnect < 3) { + o.bandwidthPercentagePolicy = + buildInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy(); + o.profileDescription = 'foo'; + o.shapeAveragePercentages = buildUnnamed349(); + o.strictPriorityPolicy = + buildInterconnectApplicationAwareInterconnectStrictPriorityPolicy(); + } + buildCounterInterconnectApplicationAwareInterconnect--; + return o; +} + +void checkInterconnectApplicationAwareInterconnect( + api.InterconnectApplicationAwareInterconnect o, +) { + buildCounterInterconnectApplicationAwareInterconnect++; + if (buildCounterInterconnectApplicationAwareInterconnect < 3) { + checkInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy( + o.bandwidthPercentagePolicy!, + ); + unittest.expect(o.profileDescription!, unittest.equals('foo')); + checkUnnamed349(o.shapeAveragePercentages!); + checkInterconnectApplicationAwareInterconnectStrictPriorityPolicy( + o.strictPriorityPolicy!, + ); + } + buildCounterInterconnectApplicationAwareInterconnect--; +} + +core.int +buildCounterInterconnectApplicationAwareInterconnectBandwidthPercentage = 0; +api.InterconnectApplicationAwareInterconnectBandwidthPercentage +buildInterconnectApplicationAwareInterconnectBandwidthPercentage() { + final o = api.InterconnectApplicationAwareInterconnectBandwidthPercentage(); + buildCounterInterconnectApplicationAwareInterconnectBandwidthPercentage++; + if (buildCounterInterconnectApplicationAwareInterconnectBandwidthPercentage < + 3) { + o.percentage = 42; + o.trafficClass = 'foo'; + } + buildCounterInterconnectApplicationAwareInterconnectBandwidthPercentage--; + return o; +} -void checkUnnamed347(core.List o) { +void checkInterconnectApplicationAwareInterconnectBandwidthPercentage( + api.InterconnectApplicationAwareInterconnectBandwidthPercentage o, +) { + buildCounterInterconnectApplicationAwareInterconnectBandwidthPercentage++; + if (buildCounterInterconnectApplicationAwareInterconnectBandwidthPercentage < + 3) { + unittest.expect(o.percentage!, unittest.equals(42)); + unittest.expect(o.trafficClass!, unittest.equals('foo')); + } + buildCounterInterconnectApplicationAwareInterconnectBandwidthPercentage--; +} + +core.List +buildUnnamed350() => [ + buildInterconnectApplicationAwareInterconnectBandwidthPercentage(), + buildInterconnectApplicationAwareInterconnectBandwidthPercentage(), +]; + +void checkUnnamed350( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkInterconnectApplicationAwareInterconnectBandwidthPercentage(o[0]); + checkInterconnectApplicationAwareInterconnectBandwidthPercentage(o[1]); +} + +core.int +buildCounterInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy = + 0; +api.InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy +buildInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy() { + final o = + api.InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy(); + buildCounterInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy++; + if (buildCounterInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy < + 3) { + o.bandwidthPercentages = buildUnnamed350(); + } + buildCounterInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy--; + return o; +} + +void checkInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy( + api.InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy o, +) { + buildCounterInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy++; + if (buildCounterInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy < + 3) { + checkUnnamed350(o.bandwidthPercentages!); + } + buildCounterInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy--; +} + +core.int +buildCounterInterconnectApplicationAwareInterconnectStrictPriorityPolicy = 0; +api.InterconnectApplicationAwareInterconnectStrictPriorityPolicy +buildInterconnectApplicationAwareInterconnectStrictPriorityPolicy() { + final o = api.InterconnectApplicationAwareInterconnectStrictPriorityPolicy(); + buildCounterInterconnectApplicationAwareInterconnectStrictPriorityPolicy++; + if (buildCounterInterconnectApplicationAwareInterconnectStrictPriorityPolicy < + 3) {} + buildCounterInterconnectApplicationAwareInterconnectStrictPriorityPolicy--; + return o; +} + +void checkInterconnectApplicationAwareInterconnectStrictPriorityPolicy( + api.InterconnectApplicationAwareInterconnectStrictPriorityPolicy o, +) { + buildCounterInterconnectApplicationAwareInterconnectStrictPriorityPolicy++; + if (buildCounterInterconnectApplicationAwareInterconnectStrictPriorityPolicy < + 3) {} + buildCounterInterconnectApplicationAwareInterconnectStrictPriorityPolicy--; +} + +core.List buildUnnamed351() => ['foo', 'foo']; + +void checkUnnamed351(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed348() => ['foo', 'foo']; +core.List buildUnnamed352() => ['foo', 'foo']; -void checkUnnamed348(core.List o) { +void checkUnnamed352(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed349() => ['foo', 'foo']; +core.List buildUnnamed353() => ['foo', 'foo']; -void checkUnnamed349(core.List o) { +void checkUnnamed353(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed350() => { +core.Map buildUnnamed354() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed350(core.Map o) { +void checkUnnamed354(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -14973,8 +15177,8 @@ api.InterconnectAttachment buildInterconnectAttachment() { o.adminEnabled = true; o.attachmentGroup = 'foo'; o.bandwidth = 'foo'; - o.candidateIpv6Subnets = buildUnnamed347(); - o.candidateSubnets = buildUnnamed348(); + o.candidateIpv6Subnets = buildUnnamed351(); + o.candidateSubnets = buildUnnamed352(); o.cloudRouterIpAddress = 'foo'; o.cloudRouterIpv6Address = 'foo'; o.cloudRouterIpv6InterfaceId = 'foo'; @@ -14991,10 +15195,10 @@ api.InterconnectAttachment buildInterconnectAttachment() { o.googleReferenceId = 'foo'; o.id = 'foo'; o.interconnect = 'foo'; - o.ipsecInternalAddresses = buildUnnamed349(); + o.ipsecInternalAddresses = buildUnnamed353(); o.kind = 'foo'; o.labelFingerprint = 'foo'; - o.labels = buildUnnamed350(); + o.labels = buildUnnamed354(); o.mtu = 42; o.name = 'foo'; o.operationalStatus = 'foo'; @@ -15023,8 +15227,8 @@ void checkInterconnectAttachment(api.InterconnectAttachment o) { unittest.expect(o.adminEnabled!, unittest.isTrue); unittest.expect(o.attachmentGroup!, unittest.equals('foo')); unittest.expect(o.bandwidth!, unittest.equals('foo')); - checkUnnamed347(o.candidateIpv6Subnets!); - checkUnnamed348(o.candidateSubnets!); + checkUnnamed351(o.candidateIpv6Subnets!); + checkUnnamed352(o.candidateSubnets!); unittest.expect(o.cloudRouterIpAddress!, unittest.equals('foo')); unittest.expect(o.cloudRouterIpv6Address!, unittest.equals('foo')); unittest.expect(o.cloudRouterIpv6InterfaceId!, unittest.equals('foo')); @@ -15042,10 +15246,10 @@ void checkInterconnectAttachment(api.InterconnectAttachment o) { unittest.expect(o.googleReferenceId!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.interconnect!, unittest.equals('foo')); - checkUnnamed349(o.ipsecInternalAddresses!); + checkUnnamed353(o.ipsecInternalAddresses!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed350(o.labels!); + checkUnnamed354(o.labels!); unittest.expect(o.mtu!, unittest.equals(42)); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.operationalStatus!, unittest.equals('foo')); @@ -15068,12 +15272,12 @@ void checkInterconnectAttachment(api.InterconnectAttachment o) { } core.Map -buildUnnamed351() => { +buildUnnamed355() => { 'x': buildInterconnectAttachmentsScopedList(), 'y': buildInterconnectAttachmentsScopedList(), }; -void checkUnnamed351( +void checkUnnamed355( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -15081,9 +15285,9 @@ void checkUnnamed351( checkInterconnectAttachmentsScopedList(o['y']!); } -core.List buildUnnamed352() => ['foo', 'foo']; +core.List buildUnnamed356() => ['foo', 'foo']; -void checkUnnamed352(core.List o) { +void checkUnnamed356(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -15114,12 +15318,12 @@ void checkInterconnectAttachmentAggregatedListWarningData( } core.List -buildUnnamed353() => [ +buildUnnamed357() => [ buildInterconnectAttachmentAggregatedListWarningData(), buildInterconnectAttachmentAggregatedListWarningData(), ]; -void checkUnnamed353( +void checkUnnamed357( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -15134,7 +15338,7 @@ buildInterconnectAttachmentAggregatedListWarning() { buildCounterInterconnectAttachmentAggregatedListWarning++; if (buildCounterInterconnectAttachmentAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed353(); + o.data = buildUnnamed357(); o.message = 'foo'; } buildCounterInterconnectAttachmentAggregatedListWarning--; @@ -15147,7 +15351,7 @@ void checkInterconnectAttachmentAggregatedListWarning( buildCounterInterconnectAttachmentAggregatedListWarning++; if (buildCounterInterconnectAttachmentAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed353(o.data!); + checkUnnamed357(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInterconnectAttachmentAggregatedListWarning--; @@ -15160,11 +15364,11 @@ buildInterconnectAttachmentAggregatedList() { buildCounterInterconnectAttachmentAggregatedList++; if (buildCounterInterconnectAttachmentAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed351(); + o.items = buildUnnamed355(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed352(); + o.unreachables = buildUnnamed356(); o.warning = buildInterconnectAttachmentAggregatedListWarning(); } buildCounterInterconnectAttachmentAggregatedList--; @@ -15177,23 +15381,23 @@ void checkInterconnectAttachmentAggregatedList( buildCounterInterconnectAttachmentAggregatedList++; if (buildCounterInterconnectAttachmentAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed351(o.items!); + checkUnnamed355(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed352(o.unreachables!); + checkUnnamed356(o.unreachables!); checkInterconnectAttachmentAggregatedListWarning(o.warning!); } buildCounterInterconnectAttachmentAggregatedList--; } core.List -buildUnnamed354() => [ +buildUnnamed358() => [ buildInterconnectAttachmentConfigurationConstraintsBgpPeerASNRange(), buildInterconnectAttachmentConfigurationConstraintsBgpPeerASNRange(), ]; -void checkUnnamed354( +void checkUnnamed358( core.List o, ) { @@ -15209,7 +15413,7 @@ buildInterconnectAttachmentConfigurationConstraints() { buildCounterInterconnectAttachmentConfigurationConstraints++; if (buildCounterInterconnectAttachmentConfigurationConstraints < 3) { o.bgpMd5 = 'foo'; - o.bgpPeerAsnRanges = buildUnnamed354(); + o.bgpPeerAsnRanges = buildUnnamed358(); } buildCounterInterconnectAttachmentConfigurationConstraints--; return o; @@ -15221,7 +15425,7 @@ void checkInterconnectAttachmentConfigurationConstraints( buildCounterInterconnectAttachmentConfigurationConstraints++; if (buildCounterInterconnectAttachmentConfigurationConstraints < 3) { unittest.expect(o.bgpMd5!, unittest.equals('foo')); - checkUnnamed354(o.bgpPeerAsnRanges!); + checkUnnamed358(o.bgpPeerAsnRanges!); } buildCounterInterconnectAttachmentConfigurationConstraints--; } @@ -15254,12 +15458,12 @@ void checkInterconnectAttachmentConfigurationConstraintsBgpPeerASNRange( } core.Map -buildUnnamed355() => { +buildUnnamed359() => { 'x': buildInterconnectAttachmentGroupAttachment(), 'y': buildInterconnectAttachmentGroupAttachment(), }; -void checkUnnamed355( +void checkUnnamed359( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -15272,7 +15476,7 @@ api.InterconnectAttachmentGroup buildInterconnectAttachmentGroup() { final o = api.InterconnectAttachmentGroup(); buildCounterInterconnectAttachmentGroup++; if (buildCounterInterconnectAttachmentGroup < 3) { - o.attachments = buildUnnamed355(); + o.attachments = buildUnnamed359(); o.configured = buildInterconnectAttachmentGroupConfigured(); o.creationTimestamp = 'foo'; o.description = 'foo'; @@ -15292,7 +15496,7 @@ api.InterconnectAttachmentGroup buildInterconnectAttachmentGroup() { void checkInterconnectAttachmentGroup(api.InterconnectAttachmentGroup o) { buildCounterInterconnectAttachmentGroup++; if (buildCounterInterconnectAttachmentGroup < 3) { - checkUnnamed355(o.attachments!); + checkUnnamed359(o.attachments!); checkInterconnectAttachmentGroupConfigured(o.configured!); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); @@ -15358,12 +15562,12 @@ void checkInterconnectAttachmentGroupConfigured( core.List< api.InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers > -buildUnnamed356() => [ +buildUnnamed360() => [ buildInterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers(), buildInterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers(), ]; -void checkUnnamed356( +void checkUnnamed360( core.List< api.InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers > @@ -15385,7 +15589,7 @@ buildInterconnectAttachmentGroupConfiguredAvailabilitySLA() { buildCounterInterconnectAttachmentGroupConfiguredAvailabilitySLA++; if (buildCounterInterconnectAttachmentGroupConfiguredAvailabilitySLA < 3) { o.effectiveSla = 'foo'; - o.intendedSlaBlockers = buildUnnamed356(); + o.intendedSlaBlockers = buildUnnamed360(); } buildCounterInterconnectAttachmentGroupConfiguredAvailabilitySLA--; return o; @@ -15397,38 +15601,38 @@ void checkInterconnectAttachmentGroupConfiguredAvailabilitySLA( buildCounterInterconnectAttachmentGroupConfiguredAvailabilitySLA++; if (buildCounterInterconnectAttachmentGroupConfiguredAvailabilitySLA < 3) { unittest.expect(o.effectiveSla!, unittest.equals('foo')); - checkUnnamed356(o.intendedSlaBlockers!); + checkUnnamed360(o.intendedSlaBlockers!); } buildCounterInterconnectAttachmentGroupConfiguredAvailabilitySLA--; } -core.List buildUnnamed357() => ['foo', 'foo']; +core.List buildUnnamed361() => ['foo', 'foo']; -void checkUnnamed357(core.List o) { +void checkUnnamed361(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed358() => ['foo', 'foo']; +core.List buildUnnamed362() => ['foo', 'foo']; -void checkUnnamed358(core.List o) { +void checkUnnamed362(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed359() => ['foo', 'foo']; +core.List buildUnnamed363() => ['foo', 'foo']; -void checkUnnamed359(core.List o) { +void checkUnnamed363(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed360() => ['foo', 'foo']; +core.List buildUnnamed364() => ['foo', 'foo']; -void checkUnnamed360(core.List o) { +void checkUnnamed364(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -15444,13 +15648,13 @@ buildInterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers() { buildCounterInterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers++; if (buildCounterInterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers < 3) { - o.attachments = buildUnnamed357(); + o.attachments = buildUnnamed361(); o.blockerType = 'foo'; o.documentationLink = 'foo'; o.explanation = 'foo'; - o.metros = buildUnnamed358(); - o.regions = buildUnnamed359(); - o.zones = buildUnnamed360(); + o.metros = buildUnnamed362(); + o.regions = buildUnnamed363(); + o.zones = buildUnnamed364(); } buildCounterInterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers--; return o; @@ -15463,13 +15667,13 @@ checkInterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers( buildCounterInterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers++; if (buildCounterInterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers < 3) { - checkUnnamed357(o.attachments!); + checkUnnamed361(o.attachments!); unittest.expect(o.blockerType!, unittest.equals('foo')); unittest.expect(o.documentationLink!, unittest.equals('foo')); unittest.expect(o.explanation!, unittest.equals('foo')); - checkUnnamed358(o.metros!); - checkUnnamed359(o.regions!); - checkUnnamed360(o.zones!); + checkUnnamed362(o.metros!); + checkUnnamed363(o.regions!); + checkUnnamed364(o.zones!); } buildCounterInterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers--; } @@ -15496,12 +15700,12 @@ void checkInterconnectAttachmentGroupIntent( } core.List -buildUnnamed361() => [ +buildUnnamed365() => [ buildInterconnectAttachmentGroupLogicalStructureRegion(), buildInterconnectAttachmentGroupLogicalStructureRegion(), ]; -void checkUnnamed361( +void checkUnnamed365( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -15515,7 +15719,7 @@ buildInterconnectAttachmentGroupLogicalStructure() { final o = api.InterconnectAttachmentGroupLogicalStructure(); buildCounterInterconnectAttachmentGroupLogicalStructure++; if (buildCounterInterconnectAttachmentGroupLogicalStructure < 3) { - o.regions = buildUnnamed361(); + o.regions = buildUnnamed365(); } buildCounterInterconnectAttachmentGroupLogicalStructure--; return o; @@ -15526,18 +15730,18 @@ void checkInterconnectAttachmentGroupLogicalStructure( ) { buildCounterInterconnectAttachmentGroupLogicalStructure++; if (buildCounterInterconnectAttachmentGroupLogicalStructure < 3) { - checkUnnamed361(o.regions!); + checkUnnamed365(o.regions!); } buildCounterInterconnectAttachmentGroupLogicalStructure--; } core.List -buildUnnamed362() => [ +buildUnnamed366() => [ buildInterconnectAttachmentGroupLogicalStructureRegionMetro(), buildInterconnectAttachmentGroupLogicalStructureRegionMetro(), ]; -void checkUnnamed362( +void checkUnnamed366( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -15551,7 +15755,7 @@ buildInterconnectAttachmentGroupLogicalStructureRegion() { final o = api.InterconnectAttachmentGroupLogicalStructureRegion(); buildCounterInterconnectAttachmentGroupLogicalStructureRegion++; if (buildCounterInterconnectAttachmentGroupLogicalStructureRegion < 3) { - o.metros = buildUnnamed362(); + o.metros = buildUnnamed366(); o.region = 'foo'; } buildCounterInterconnectAttachmentGroupLogicalStructureRegion--; @@ -15563,19 +15767,19 @@ void checkInterconnectAttachmentGroupLogicalStructureRegion( ) { buildCounterInterconnectAttachmentGroupLogicalStructureRegion++; if (buildCounterInterconnectAttachmentGroupLogicalStructureRegion < 3) { - checkUnnamed362(o.metros!); + checkUnnamed366(o.metros!); unittest.expect(o.region!, unittest.equals('foo')); } buildCounterInterconnectAttachmentGroupLogicalStructureRegion--; } core.List -buildUnnamed363() => [ +buildUnnamed367() => [ buildInterconnectAttachmentGroupLogicalStructureRegionMetroFacility(), buildInterconnectAttachmentGroupLogicalStructureRegionMetroFacility(), ]; -void checkUnnamed363( +void checkUnnamed367( core.List o, ) { @@ -15590,7 +15794,7 @@ buildInterconnectAttachmentGroupLogicalStructureRegionMetro() { final o = api.InterconnectAttachmentGroupLogicalStructureRegionMetro(); buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetro++; if (buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetro < 3) { - o.facilities = buildUnnamed363(); + o.facilities = buildUnnamed367(); o.metro = 'foo'; } buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetro--; @@ -15602,7 +15806,7 @@ void checkInterconnectAttachmentGroupLogicalStructureRegionMetro( ) { buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetro++; if (buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetro < 3) { - checkUnnamed363(o.facilities!); + checkUnnamed367(o.facilities!); unittest.expect(o.metro!, unittest.equals('foo')); } buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetro--; @@ -15611,12 +15815,12 @@ void checkInterconnectAttachmentGroupLogicalStructureRegionMetro( core.List< api.InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone > -buildUnnamed364() => [ +buildUnnamed368() => [ buildInterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone(), buildInterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone(), ]; -void checkUnnamed364( +void checkUnnamed368( core.List< api.InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone > @@ -15637,7 +15841,7 @@ buildInterconnectAttachmentGroupLogicalStructureRegionMetroFacility() { if (buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetroFacility < 3) { o.facility = 'foo'; - o.zones = buildUnnamed364(); + o.zones = buildUnnamed368(); } buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetroFacility--; return o; @@ -15650,14 +15854,14 @@ void checkInterconnectAttachmentGroupLogicalStructureRegionMetroFacility( if (buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetroFacility < 3) { unittest.expect(o.facility!, unittest.equals('foo')); - checkUnnamed364(o.zones!); + checkUnnamed368(o.zones!); } buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetroFacility--; } -core.List buildUnnamed365() => ['foo', 'foo']; +core.List buildUnnamed369() => ['foo', 'foo']; -void checkUnnamed365(core.List o) { +void checkUnnamed369(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -15673,7 +15877,7 @@ buildInterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone() { buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone++; if (buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone < 3) { - o.attachments = buildUnnamed365(); + o.attachments = buildUnnamed369(); o.zone = 'foo'; } buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone--; @@ -15686,7 +15890,7 @@ void checkInterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone( buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone++; if (buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone < 3) { - checkUnnamed365(o.attachments!); + checkUnnamed369(o.attachments!); unittest.expect(o.zone!, unittest.equals('foo')); } buildCounterInterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone--; @@ -15719,20 +15923,20 @@ void checkInterconnectAttachmentGroupsGetOperationalStatusResponse( buildCounterInterconnectAttachmentGroupsGetOperationalStatusResponse--; } -core.List buildUnnamed366() => [ +core.List buildUnnamed370() => [ buildInterconnectAttachmentGroup(), buildInterconnectAttachmentGroup(), ]; -void checkUnnamed366(core.List o) { +void checkUnnamed370(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachmentGroup(o[0]); checkInterconnectAttachmentGroup(o[1]); } -core.List buildUnnamed367() => ['foo', 'foo']; +core.List buildUnnamed371() => ['foo', 'foo']; -void checkUnnamed367(core.List o) { +void checkUnnamed371(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -15763,12 +15967,12 @@ void checkInterconnectAttachmentGroupsListResponseWarningData( } core.List -buildUnnamed368() => [ +buildUnnamed372() => [ buildInterconnectAttachmentGroupsListResponseWarningData(), buildInterconnectAttachmentGroupsListResponseWarningData(), ]; -void checkUnnamed368( +void checkUnnamed372( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -15783,7 +15987,7 @@ buildInterconnectAttachmentGroupsListResponseWarning() { buildCounterInterconnectAttachmentGroupsListResponseWarning++; if (buildCounterInterconnectAttachmentGroupsListResponseWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed368(); + o.data = buildUnnamed372(); o.message = 'foo'; } buildCounterInterconnectAttachmentGroupsListResponseWarning--; @@ -15796,7 +16000,7 @@ void checkInterconnectAttachmentGroupsListResponseWarning( buildCounterInterconnectAttachmentGroupsListResponseWarning++; if (buildCounterInterconnectAttachmentGroupsListResponseWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed368(o.data!); + checkUnnamed372(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInterconnectAttachmentGroupsListResponseWarning--; @@ -15810,11 +16014,11 @@ buildInterconnectAttachmentGroupsListResponse() { if (buildCounterInterconnectAttachmentGroupsListResponse < 3) { o.etag = 'foo'; o.id = 'foo'; - o.items = buildUnnamed366(); + o.items = buildUnnamed370(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed367(); + o.unreachables = buildUnnamed371(); o.warning = buildInterconnectAttachmentGroupsListResponseWarning(); } buildCounterInterconnectAttachmentGroupsListResponse--; @@ -15828,23 +16032,23 @@ void checkInterconnectAttachmentGroupsListResponse( if (buildCounterInterconnectAttachmentGroupsListResponse < 3) { unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed366(o.items!); + checkUnnamed370(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed367(o.unreachables!); + checkUnnamed371(o.unreachables!); checkInterconnectAttachmentGroupsListResponseWarning(o.warning!); } buildCounterInterconnectAttachmentGroupsListResponse--; } core.List -buildUnnamed369() => [ +buildUnnamed373() => [ buildInterconnectAttachmentGroupsOperationalStatusAttachmentStatus(), buildInterconnectAttachmentGroupsOperationalStatusAttachmentStatus(), ]; -void checkUnnamed369( +void checkUnnamed373( core.List o, ) { @@ -15859,7 +16063,7 @@ buildInterconnectAttachmentGroupsOperationalStatus() { final o = api.InterconnectAttachmentGroupsOperationalStatus(); buildCounterInterconnectAttachmentGroupsOperationalStatus++; if (buildCounterInterconnectAttachmentGroupsOperationalStatus < 3) { - o.attachmentStatuses = buildUnnamed369(); + o.attachmentStatuses = buildUnnamed373(); o.configured = buildInterconnectAttachmentGroupConfigured(); o.groupStatus = 'foo'; o.intent = buildInterconnectAttachmentGroupIntent(); @@ -15874,7 +16078,7 @@ void checkInterconnectAttachmentGroupsOperationalStatus( ) { buildCounterInterconnectAttachmentGroupsOperationalStatus++; if (buildCounterInterconnectAttachmentGroupsOperationalStatus < 3) { - checkUnnamed369(o.attachmentStatuses!); + checkUnnamed373(o.attachmentStatuses!); checkInterconnectAttachmentGroupConfigured(o.configured!); unittest.expect(o.groupStatus!, unittest.equals('foo')); checkInterconnectAttachmentGroupIntent(o.intent!); @@ -15914,12 +16118,12 @@ void checkInterconnectAttachmentGroupsOperationalStatusAttachmentStatus( buildCounterInterconnectAttachmentGroupsOperationalStatusAttachmentStatus--; } -core.List buildUnnamed370() => [ +core.List buildUnnamed374() => [ buildInterconnectAttachment(), buildInterconnectAttachment(), ]; -void checkUnnamed370(core.List o) { +void checkUnnamed374(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachment(o[0]); checkInterconnectAttachment(o[1]); @@ -15949,12 +16153,12 @@ void checkInterconnectAttachmentListWarningData( buildCounterInterconnectAttachmentListWarningData--; } -core.List buildUnnamed371() => [ +core.List buildUnnamed375() => [ buildInterconnectAttachmentListWarningData(), buildInterconnectAttachmentListWarningData(), ]; -void checkUnnamed371(core.List o) { +void checkUnnamed375(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachmentListWarningData(o[0]); checkInterconnectAttachmentListWarningData(o[1]); @@ -15966,7 +16170,7 @@ api.InterconnectAttachmentListWarning buildInterconnectAttachmentListWarning() { buildCounterInterconnectAttachmentListWarning++; if (buildCounterInterconnectAttachmentListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed371(); + o.data = buildUnnamed375(); o.message = 'foo'; } buildCounterInterconnectAttachmentListWarning--; @@ -15979,7 +16183,7 @@ void checkInterconnectAttachmentListWarning( buildCounterInterconnectAttachmentListWarning++; if (buildCounterInterconnectAttachmentListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed371(o.data!); + checkUnnamed375(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInterconnectAttachmentListWarning--; @@ -15991,7 +16195,7 @@ api.InterconnectAttachmentList buildInterconnectAttachmentList() { buildCounterInterconnectAttachmentList++; if (buildCounterInterconnectAttachmentList < 3) { o.id = 'foo'; - o.items = buildUnnamed370(); + o.items = buildUnnamed374(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -16005,7 +16209,7 @@ void checkInterconnectAttachmentList(api.InterconnectAttachmentList o) { buildCounterInterconnectAttachmentList++; if (buildCounterInterconnectAttachmentList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed370(o.items!); + checkUnnamed374(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -16061,12 +16265,12 @@ void checkInterconnectAttachmentPrivateInfo( buildCounterInterconnectAttachmentPrivateInfo--; } -core.List buildUnnamed372() => [ +core.List buildUnnamed376() => [ buildInterconnectAttachment(), buildInterconnectAttachment(), ]; -void checkUnnamed372(core.List o) { +void checkUnnamed376(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachment(o[0]); checkInterconnectAttachment(o[1]); @@ -16096,13 +16300,13 @@ void checkInterconnectAttachmentsScopedListWarningData( buildCounterInterconnectAttachmentsScopedListWarningData--; } -core.List buildUnnamed373() => +core.List buildUnnamed377() => [ buildInterconnectAttachmentsScopedListWarningData(), buildInterconnectAttachmentsScopedListWarningData(), ]; -void checkUnnamed373( +void checkUnnamed377( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -16117,7 +16321,7 @@ buildInterconnectAttachmentsScopedListWarning() { buildCounterInterconnectAttachmentsScopedListWarning++; if (buildCounterInterconnectAttachmentsScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed373(); + o.data = buildUnnamed377(); o.message = 'foo'; } buildCounterInterconnectAttachmentsScopedListWarning--; @@ -16130,7 +16334,7 @@ void checkInterconnectAttachmentsScopedListWarning( buildCounterInterconnectAttachmentsScopedListWarning++; if (buildCounterInterconnectAttachmentsScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed373(o.data!); + checkUnnamed377(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInterconnectAttachmentsScopedListWarning--; @@ -16141,7 +16345,7 @@ api.InterconnectAttachmentsScopedList buildInterconnectAttachmentsScopedList() { final o = api.InterconnectAttachmentsScopedList(); buildCounterInterconnectAttachmentsScopedList++; if (buildCounterInterconnectAttachmentsScopedList < 3) { - o.interconnectAttachments = buildUnnamed372(); + o.interconnectAttachments = buildUnnamed376(); o.warning = buildInterconnectAttachmentsScopedListWarning(); } buildCounterInterconnectAttachmentsScopedList--; @@ -16153,7 +16357,7 @@ void checkInterconnectAttachmentsScopedList( ) { buildCounterInterconnectAttachmentsScopedList++; if (buildCounterInterconnectAttachmentsScopedList < 3) { - checkUnnamed372(o.interconnectAttachments!); + checkUnnamed376(o.interconnectAttachments!); checkInterconnectAttachmentsScopedListWarning(o.warning!); } buildCounterInterconnectAttachmentsScopedList--; @@ -16182,23 +16386,23 @@ void checkInterconnectCircuitInfo(api.InterconnectCircuitInfo o) { buildCounterInterconnectCircuitInfo--; } -core.List buildUnnamed374() => [ +core.List buildUnnamed378() => [ buildInterconnectDiagnosticsARPEntry(), buildInterconnectDiagnosticsARPEntry(), ]; -void checkUnnamed374(core.List o) { +void checkUnnamed378(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectDiagnosticsARPEntry(o[0]); checkInterconnectDiagnosticsARPEntry(o[1]); } -core.List buildUnnamed375() => [ +core.List buildUnnamed379() => [ buildInterconnectDiagnosticsLinkStatus(), buildInterconnectDiagnosticsLinkStatus(), ]; -void checkUnnamed375(core.List o) { +void checkUnnamed379(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectDiagnosticsLinkStatus(o[0]); checkInterconnectDiagnosticsLinkStatus(o[1]); @@ -16209,10 +16413,10 @@ api.InterconnectDiagnostics buildInterconnectDiagnostics() { final o = api.InterconnectDiagnostics(); buildCounterInterconnectDiagnostics++; if (buildCounterInterconnectDiagnostics < 3) { - o.arpCaches = buildUnnamed374(); + o.arpCaches = buildUnnamed378(); o.bundleAggregationType = 'foo'; o.bundleOperationalStatus = 'foo'; - o.links = buildUnnamed375(); + o.links = buildUnnamed379(); o.macAddress = 'foo'; } buildCounterInterconnectDiagnostics--; @@ -16222,10 +16426,10 @@ api.InterconnectDiagnostics buildInterconnectDiagnostics() { void checkInterconnectDiagnostics(api.InterconnectDiagnostics o) { buildCounterInterconnectDiagnostics++; if (buildCounterInterconnectDiagnostics < 3) { - checkUnnamed374(o.arpCaches!); + checkUnnamed378(o.arpCaches!); unittest.expect(o.bundleAggregationType!, unittest.equals('foo')); unittest.expect(o.bundleOperationalStatus!, unittest.equals('foo')); - checkUnnamed375(o.links!); + checkUnnamed379(o.links!); unittest.expect(o.macAddress!, unittest.equals('foo')); } buildCounterInterconnectDiagnostics--; @@ -16304,12 +16508,12 @@ void checkInterconnectDiagnosticsLinkOpticalPower( buildCounterInterconnectDiagnosticsLinkOpticalPower--; } -core.List buildUnnamed376() => [ +core.List buildUnnamed380() => [ buildInterconnectDiagnosticsARPEntry(), buildInterconnectDiagnosticsARPEntry(), ]; -void checkUnnamed376(core.List o) { +void checkUnnamed380(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectDiagnosticsARPEntry(o[0]); checkInterconnectDiagnosticsARPEntry(o[1]); @@ -16320,7 +16524,7 @@ api.InterconnectDiagnosticsLinkStatus buildInterconnectDiagnosticsLinkStatus() { final o = api.InterconnectDiagnosticsLinkStatus(); buildCounterInterconnectDiagnosticsLinkStatus++; if (buildCounterInterconnectDiagnosticsLinkStatus < 3) { - o.arpCaches = buildUnnamed376(); + o.arpCaches = buildUnnamed380(); o.circuitId = 'foo'; o.googleDemarc = 'foo'; o.lacpStatus = buildInterconnectDiagnosticsLinkLACPStatus(); @@ -16338,7 +16542,7 @@ void checkInterconnectDiagnosticsLinkStatus( ) { buildCounterInterconnectDiagnosticsLinkStatus++; if (buildCounterInterconnectDiagnosticsLinkStatus < 3) { - checkUnnamed376(o.arpCaches!); + checkUnnamed380(o.arpCaches!); unittest.expect(o.circuitId!, unittest.equals('foo')); unittest.expect(o.googleDemarc!, unittest.equals('foo')); checkInterconnectDiagnosticsLinkLACPStatus(o.lacpStatus!); @@ -16374,12 +16578,12 @@ void checkInterconnectDiagnosticsMacsecStatus( buildCounterInterconnectDiagnosticsMacsecStatus--; } -core.Map buildUnnamed377() => { +core.Map buildUnnamed381() => { 'x': buildInterconnectGroupInterconnect(), 'y': buildInterconnectGroupInterconnect(), }; -void checkUnnamed377( +void checkUnnamed381( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -16398,7 +16602,7 @@ api.InterconnectGroup buildInterconnectGroup() { o.etag = 'foo'; o.id = 'foo'; o.intent = buildInterconnectGroupIntent(); - o.interconnects = buildUnnamed377(); + o.interconnects = buildUnnamed381(); o.kind = 'foo'; o.name = 'foo'; o.physicalStructure = buildInterconnectGroupPhysicalStructure(); @@ -16417,7 +16621,7 @@ void checkInterconnectGroup(api.InterconnectGroup o) { unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); checkInterconnectGroupIntent(o.intent!); - checkUnnamed377(o.interconnects!); + checkUnnamed381(o.interconnects!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); checkInterconnectGroupPhysicalStructure(o.physicalStructure!); @@ -16448,12 +16652,12 @@ void checkInterconnectGroupConfigured(api.InterconnectGroupConfigured o) { core.List< api.InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers > -buildUnnamed378() => [ +buildUnnamed382() => [ buildInterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers(), buildInterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers(), ]; -void checkUnnamed378( +void checkUnnamed382( core.List< api.InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers > @@ -16474,7 +16678,7 @@ buildInterconnectGroupConfiguredTopologyCapability() { final o = api.InterconnectGroupConfiguredTopologyCapability(); buildCounterInterconnectGroupConfiguredTopologyCapability++; if (buildCounterInterconnectGroupConfiguredTopologyCapability < 3) { - o.intendedCapabilityBlockers = buildUnnamed378(); + o.intendedCapabilityBlockers = buildUnnamed382(); o.supportedSla = 'foo'; } buildCounterInterconnectGroupConfiguredTopologyCapability--; @@ -16486,39 +16690,39 @@ void checkInterconnectGroupConfiguredTopologyCapability( ) { buildCounterInterconnectGroupConfiguredTopologyCapability++; if (buildCounterInterconnectGroupConfiguredTopologyCapability < 3) { - checkUnnamed378(o.intendedCapabilityBlockers!); + checkUnnamed382(o.intendedCapabilityBlockers!); unittest.expect(o.supportedSla!, unittest.equals('foo')); } buildCounterInterconnectGroupConfiguredTopologyCapability--; } -core.List buildUnnamed379() => ['foo', 'foo']; +core.List buildUnnamed383() => ['foo', 'foo']; -void checkUnnamed379(core.List o) { +void checkUnnamed383(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed380() => ['foo', 'foo']; +core.List buildUnnamed384() => ['foo', 'foo']; -void checkUnnamed380(core.List o) { +void checkUnnamed384(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed381() => ['foo', 'foo']; +core.List buildUnnamed385() => ['foo', 'foo']; -void checkUnnamed381(core.List o) { +void checkUnnamed385(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed382() => ['foo', 'foo']; +core.List buildUnnamed386() => ['foo', 'foo']; -void checkUnnamed382(core.List o) { +void checkUnnamed386(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -16537,10 +16741,10 @@ buildInterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers() { o.blockerType = 'foo'; o.documentationLink = 'foo'; o.explanation = 'foo'; - o.facilities = buildUnnamed379(); - o.interconnects = buildUnnamed380(); - o.metros = buildUnnamed381(); - o.zones = buildUnnamed382(); + o.facilities = buildUnnamed383(); + o.interconnects = buildUnnamed384(); + o.metros = buildUnnamed385(); + o.zones = buildUnnamed386(); } buildCounterInterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers--; return o; @@ -16556,10 +16760,10 @@ checkInterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers( unittest.expect(o.blockerType!, unittest.equals('foo')); unittest.expect(o.documentationLink!, unittest.equals('foo')); unittest.expect(o.explanation!, unittest.equals('foo')); - checkUnnamed379(o.facilities!); - checkUnnamed380(o.interconnects!); - checkUnnamed381(o.metros!); - checkUnnamed382(o.zones!); + checkUnnamed383(o.facilities!); + checkUnnamed384(o.interconnects!); + checkUnnamed385(o.metros!); + checkUnnamed386(o.zones!); } buildCounterInterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers--; } @@ -16602,12 +16806,12 @@ void checkInterconnectGroupInterconnect(api.InterconnectGroupInterconnect o) { buildCounterInterconnectGroupInterconnect--; } -core.List buildUnnamed383() => [ +core.List buildUnnamed387() => [ buildInterconnectGroupPhysicalStructureMetros(), buildInterconnectGroupPhysicalStructureMetros(), ]; -void checkUnnamed383( +void checkUnnamed387( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -16621,7 +16825,7 @@ buildInterconnectGroupPhysicalStructure() { final o = api.InterconnectGroupPhysicalStructure(); buildCounterInterconnectGroupPhysicalStructure++; if (buildCounterInterconnectGroupPhysicalStructure < 3) { - o.metros = buildUnnamed383(); + o.metros = buildUnnamed387(); } buildCounterInterconnectGroupPhysicalStructure--; return o; @@ -16632,18 +16836,18 @@ void checkInterconnectGroupPhysicalStructure( ) { buildCounterInterconnectGroupPhysicalStructure++; if (buildCounterInterconnectGroupPhysicalStructure < 3) { - checkUnnamed383(o.metros!); + checkUnnamed387(o.metros!); } buildCounterInterconnectGroupPhysicalStructure--; } core.List -buildUnnamed384() => [ +buildUnnamed388() => [ buildInterconnectGroupPhysicalStructureMetrosFacilities(), buildInterconnectGroupPhysicalStructureMetrosFacilities(), ]; -void checkUnnamed384( +void checkUnnamed388( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -16657,7 +16861,7 @@ buildInterconnectGroupPhysicalStructureMetros() { final o = api.InterconnectGroupPhysicalStructureMetros(); buildCounterInterconnectGroupPhysicalStructureMetros++; if (buildCounterInterconnectGroupPhysicalStructureMetros < 3) { - o.facilities = buildUnnamed384(); + o.facilities = buildUnnamed388(); o.metro = 'foo'; } buildCounterInterconnectGroupPhysicalStructureMetros--; @@ -16669,19 +16873,19 @@ void checkInterconnectGroupPhysicalStructureMetros( ) { buildCounterInterconnectGroupPhysicalStructureMetros++; if (buildCounterInterconnectGroupPhysicalStructureMetros < 3) { - checkUnnamed384(o.facilities!); + checkUnnamed388(o.facilities!); unittest.expect(o.metro!, unittest.equals('foo')); } buildCounterInterconnectGroupPhysicalStructureMetros--; } core.List -buildUnnamed385() => [ +buildUnnamed389() => [ buildInterconnectGroupPhysicalStructureMetrosFacilitiesZones(), buildInterconnectGroupPhysicalStructureMetrosFacilitiesZones(), ]; -void checkUnnamed385( +void checkUnnamed389( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -16696,7 +16900,7 @@ buildInterconnectGroupPhysicalStructureMetrosFacilities() { buildCounterInterconnectGroupPhysicalStructureMetrosFacilities++; if (buildCounterInterconnectGroupPhysicalStructureMetrosFacilities < 3) { o.facility = 'foo'; - o.zones = buildUnnamed385(); + o.zones = buildUnnamed389(); } buildCounterInterconnectGroupPhysicalStructureMetrosFacilities--; return o; @@ -16708,14 +16912,14 @@ void checkInterconnectGroupPhysicalStructureMetrosFacilities( buildCounterInterconnectGroupPhysicalStructureMetrosFacilities++; if (buildCounterInterconnectGroupPhysicalStructureMetrosFacilities < 3) { unittest.expect(o.facility!, unittest.equals('foo')); - checkUnnamed385(o.zones!); + checkUnnamed389(o.zones!); } buildCounterInterconnectGroupPhysicalStructureMetrosFacilities--; } -core.List buildUnnamed386() => ['foo', 'foo']; +core.List buildUnnamed390() => ['foo', 'foo']; -void checkUnnamed386(core.List o) { +void checkUnnamed390(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -16728,7 +16932,7 @@ buildInterconnectGroupPhysicalStructureMetrosFacilitiesZones() { final o = api.InterconnectGroupPhysicalStructureMetrosFacilitiesZones(); buildCounterInterconnectGroupPhysicalStructureMetrosFacilitiesZones++; if (buildCounterInterconnectGroupPhysicalStructureMetrosFacilitiesZones < 3) { - o.interconnects = buildUnnamed386(); + o.interconnects = buildUnnamed390(); o.zone = 'foo'; } buildCounterInterconnectGroupPhysicalStructureMetrosFacilitiesZones--; @@ -16740,19 +16944,19 @@ void checkInterconnectGroupPhysicalStructureMetrosFacilitiesZones( ) { buildCounterInterconnectGroupPhysicalStructureMetrosFacilitiesZones++; if (buildCounterInterconnectGroupPhysicalStructureMetrosFacilitiesZones < 3) { - checkUnnamed386(o.interconnects!); + checkUnnamed390(o.interconnects!); unittest.expect(o.zone!, unittest.equals('foo')); } buildCounterInterconnectGroupPhysicalStructureMetrosFacilitiesZones--; } core.List -buildUnnamed387() => [ +buildUnnamed391() => [ buildInterconnectGroupsCreateMembersInterconnectInput(), buildInterconnectGroupsCreateMembersInterconnectInput(), ]; -void checkUnnamed387( +void checkUnnamed391( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -16766,7 +16970,7 @@ api.InterconnectGroupsCreateMembers buildInterconnectGroupsCreateMembers() { buildCounterInterconnectGroupsCreateMembers++; if (buildCounterInterconnectGroupsCreateMembers < 3) { o.intentMismatchBehavior = 'foo'; - o.interconnects = buildUnnamed387(); + o.interconnects = buildUnnamed391(); o.templateInterconnect = buildInterconnectGroupsCreateMembersInterconnectInput(); } @@ -16780,7 +16984,7 @@ void checkInterconnectGroupsCreateMembers( buildCounterInterconnectGroupsCreateMembers++; if (buildCounterInterconnectGroupsCreateMembers < 3) { unittest.expect(o.intentMismatchBehavior!, unittest.equals('foo')); - checkUnnamed387(o.interconnects!); + checkUnnamed391(o.interconnects!); checkInterconnectGroupsCreateMembersInterconnectInput( o.templateInterconnect!, ); @@ -16788,9 +16992,9 @@ void checkInterconnectGroupsCreateMembers( buildCounterInterconnectGroupsCreateMembers--; } -core.List buildUnnamed388() => ['foo', 'foo']; +core.List buildUnnamed392() => ['foo', 'foo']; -void checkUnnamed388(core.List o) { +void checkUnnamed392(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -16811,7 +17015,7 @@ buildInterconnectGroupsCreateMembersInterconnectInput() { o.name = 'foo'; o.nocContactEmail = 'foo'; o.remoteLocation = 'foo'; - o.requestedFeatures = buildUnnamed388(); + o.requestedFeatures = buildUnnamed392(); o.requestedLinkCount = 42; } buildCounterInterconnectGroupsCreateMembersInterconnectInput--; @@ -16832,7 +17036,7 @@ void checkInterconnectGroupsCreateMembersInterconnectInput( unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.nocContactEmail!, unittest.equals('foo')); unittest.expect(o.remoteLocation!, unittest.equals('foo')); - checkUnnamed388(o.requestedFeatures!); + checkUnnamed392(o.requestedFeatures!); unittest.expect(o.requestedLinkCount!, unittest.equals(42)); } buildCounterInterconnectGroupsCreateMembersInterconnectInput--; @@ -16884,20 +17088,20 @@ void checkInterconnectGroupsGetOperationalStatusResponse( buildCounterInterconnectGroupsGetOperationalStatusResponse--; } -core.List buildUnnamed389() => [ +core.List buildUnnamed393() => [ buildInterconnectGroup(), buildInterconnectGroup(), ]; -void checkUnnamed389(core.List o) { +void checkUnnamed393(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectGroup(o[0]); checkInterconnectGroup(o[1]); } -core.List buildUnnamed390() => ['foo', 'foo']; +core.List buildUnnamed394() => ['foo', 'foo']; -void checkUnnamed390(core.List o) { +void checkUnnamed394(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -16927,12 +17131,12 @@ void checkInterconnectGroupsListResponseWarningData( buildCounterInterconnectGroupsListResponseWarningData--; } -core.List buildUnnamed391() => [ +core.List buildUnnamed395() => [ buildInterconnectGroupsListResponseWarningData(), buildInterconnectGroupsListResponseWarningData(), ]; -void checkUnnamed391( +void checkUnnamed395( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -16947,7 +17151,7 @@ buildInterconnectGroupsListResponseWarning() { buildCounterInterconnectGroupsListResponseWarning++; if (buildCounterInterconnectGroupsListResponseWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed391(); + o.data = buildUnnamed395(); o.message = 'foo'; } buildCounterInterconnectGroupsListResponseWarning--; @@ -16960,7 +17164,7 @@ void checkInterconnectGroupsListResponseWarning( buildCounterInterconnectGroupsListResponseWarning++; if (buildCounterInterconnectGroupsListResponseWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed391(o.data!); + checkUnnamed395(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInterconnectGroupsListResponseWarning--; @@ -16973,11 +17177,11 @@ api.InterconnectGroupsListResponse buildInterconnectGroupsListResponse() { if (buildCounterInterconnectGroupsListResponse < 3) { o.etag = 'foo'; o.id = 'foo'; - o.items = buildUnnamed389(); + o.items = buildUnnamed393(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed390(); + o.unreachables = buildUnnamed394(); o.warning = buildInterconnectGroupsListResponseWarning(); } buildCounterInterconnectGroupsListResponse--; @@ -16989,23 +17193,23 @@ void checkInterconnectGroupsListResponse(api.InterconnectGroupsListResponse o) { if (buildCounterInterconnectGroupsListResponse < 3) { unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed389(o.items!); + checkUnnamed393(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed390(o.unreachables!); + checkUnnamed394(o.unreachables!); checkInterconnectGroupsListResponseWarning(o.warning!); } buildCounterInterconnectGroupsListResponse--; } core.List -buildUnnamed392() => [ +buildUnnamed396() => [ buildInterconnectGroupsOperationalStatusInterconnectStatus(), buildInterconnectGroupsOperationalStatusInterconnectStatus(), ]; -void checkUnnamed392( +void checkUnnamed396( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -17022,7 +17226,7 @@ buildInterconnectGroupsOperationalStatus() { o.configured = buildInterconnectGroupConfigured(); o.groupStatus = 'foo'; o.intent = buildInterconnectGroupIntent(); - o.interconnectStatuses = buildUnnamed392(); + o.interconnectStatuses = buildUnnamed396(); o.operational = buildInterconnectGroupConfigured(); } buildCounterInterconnectGroupsOperationalStatus--; @@ -17037,7 +17241,7 @@ void checkInterconnectGroupsOperationalStatus( checkInterconnectGroupConfigured(o.configured!); unittest.expect(o.groupStatus!, unittest.equals('foo')); checkInterconnectGroupIntent(o.intent!); - checkUnnamed392(o.interconnectStatuses!); + checkUnnamed396(o.interconnectStatuses!); checkInterconnectGroupConfigured(o.operational!); } buildCounterInterconnectGroupsOperationalStatus--; @@ -17071,12 +17275,12 @@ void checkInterconnectGroupsOperationalStatusInterconnectStatus( buildCounterInterconnectGroupsOperationalStatusInterconnectStatus--; } -core.List buildUnnamed393() => [ +core.List buildUnnamed397() => [ buildInterconnect(), buildInterconnect(), ]; -void checkUnnamed393(core.List o) { +void checkUnnamed397(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnect(o[0]); checkInterconnect(o[1]); @@ -17103,12 +17307,12 @@ void checkInterconnectListWarningData(api.InterconnectListWarningData o) { buildCounterInterconnectListWarningData--; } -core.List buildUnnamed394() => [ +core.List buildUnnamed398() => [ buildInterconnectListWarningData(), buildInterconnectListWarningData(), ]; -void checkUnnamed394(core.List o) { +void checkUnnamed398(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectListWarningData(o[0]); checkInterconnectListWarningData(o[1]); @@ -17120,7 +17324,7 @@ api.InterconnectListWarning buildInterconnectListWarning() { buildCounterInterconnectListWarning++; if (buildCounterInterconnectListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed394(); + o.data = buildUnnamed398(); o.message = 'foo'; } buildCounterInterconnectListWarning--; @@ -17131,7 +17335,7 @@ void checkInterconnectListWarning(api.InterconnectListWarning o) { buildCounterInterconnectListWarning++; if (buildCounterInterconnectListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed394(o.data!); + checkUnnamed398(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInterconnectListWarning--; @@ -17143,7 +17347,7 @@ api.InterconnectList buildInterconnectList() { buildCounterInterconnectList++; if (buildCounterInterconnectList < 3) { o.id = 'foo'; - o.items = buildUnnamed393(); + o.items = buildUnnamed397(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -17157,7 +17361,7 @@ void checkInterconnectList(api.InterconnectList o) { buildCounterInterconnectList++; if (buildCounterInterconnectList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed393(o.items!); + checkUnnamed397(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -17166,28 +17370,28 @@ void checkInterconnectList(api.InterconnectList o) { buildCounterInterconnectList--; } -core.List buildUnnamed395() => ['foo', 'foo']; +core.List buildUnnamed399() => ['foo', 'foo']; -void checkUnnamed395(core.List o) { +void checkUnnamed399(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed396() => ['foo', 'foo']; +core.List buildUnnamed400() => ['foo', 'foo']; -void checkUnnamed396(core.List o) { +void checkUnnamed400(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed397() => [ +core.List buildUnnamed401() => [ buildInterconnectLocationRegionInfo(), buildInterconnectLocationRegionInfo(), ]; -void checkUnnamed397(core.List o) { +void checkUnnamed401(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectLocationRegionInfo(o[0]); checkInterconnectLocationRegionInfo(o[1]); @@ -17200,8 +17404,8 @@ api.InterconnectLocation buildInterconnectLocation() { if (buildCounterInterconnectLocation < 3) { o.address = 'foo'; o.availabilityZone = 'foo'; - o.availableFeatures = buildUnnamed395(); - o.availableLinkTypes = buildUnnamed396(); + o.availableFeatures = buildUnnamed399(); + o.availableLinkTypes = buildUnnamed400(); o.city = 'foo'; o.continent = 'foo'; o.creationTimestamp = 'foo'; @@ -17212,7 +17416,7 @@ api.InterconnectLocation buildInterconnectLocation() { o.kind = 'foo'; o.name = 'foo'; o.peeringdbFacilityId = 'foo'; - o.regionInfos = buildUnnamed397(); + o.regionInfos = buildUnnamed401(); o.selfLink = 'foo'; o.status = 'foo'; o.supportsPzs = true; @@ -17226,8 +17430,8 @@ void checkInterconnectLocation(api.InterconnectLocation o) { if (buildCounterInterconnectLocation < 3) { unittest.expect(o.address!, unittest.equals('foo')); unittest.expect(o.availabilityZone!, unittest.equals('foo')); - checkUnnamed395(o.availableFeatures!); - checkUnnamed396(o.availableLinkTypes!); + checkUnnamed399(o.availableFeatures!); + checkUnnamed400(o.availableLinkTypes!); unittest.expect(o.city!, unittest.equals('foo')); unittest.expect(o.continent!, unittest.equals('foo')); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); @@ -17238,7 +17442,7 @@ void checkInterconnectLocation(api.InterconnectLocation o) { unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.peeringdbFacilityId!, unittest.equals('foo')); - checkUnnamed397(o.regionInfos!); + checkUnnamed401(o.regionInfos!); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.status!, unittest.equals('foo')); unittest.expect(o.supportsPzs!, unittest.isTrue); @@ -17246,12 +17450,12 @@ void checkInterconnectLocation(api.InterconnectLocation o) { buildCounterInterconnectLocation--; } -core.List buildUnnamed398() => [ +core.List buildUnnamed402() => [ buildInterconnectLocation(), buildInterconnectLocation(), ]; -void checkUnnamed398(core.List o) { +void checkUnnamed402(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectLocation(o[0]); checkInterconnectLocation(o[1]); @@ -17281,12 +17485,12 @@ void checkInterconnectLocationListWarningData( buildCounterInterconnectLocationListWarningData--; } -core.List buildUnnamed399() => [ +core.List buildUnnamed403() => [ buildInterconnectLocationListWarningData(), buildInterconnectLocationListWarningData(), ]; -void checkUnnamed399(core.List o) { +void checkUnnamed403(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectLocationListWarningData(o[0]); checkInterconnectLocationListWarningData(o[1]); @@ -17298,7 +17502,7 @@ api.InterconnectLocationListWarning buildInterconnectLocationListWarning() { buildCounterInterconnectLocationListWarning++; if (buildCounterInterconnectLocationListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed399(); + o.data = buildUnnamed403(); o.message = 'foo'; } buildCounterInterconnectLocationListWarning--; @@ -17311,7 +17515,7 @@ void checkInterconnectLocationListWarning( buildCounterInterconnectLocationListWarning++; if (buildCounterInterconnectLocationListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed399(o.data!); + checkUnnamed403(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInterconnectLocationListWarning--; @@ -17323,7 +17527,7 @@ api.InterconnectLocationList buildInterconnectLocationList() { buildCounterInterconnectLocationList++; if (buildCounterInterconnectLocationList < 3) { o.id = 'foo'; - o.items = buildUnnamed398(); + o.items = buildUnnamed402(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -17337,7 +17541,7 @@ void checkInterconnectLocationList(api.InterconnectLocationList o) { buildCounterInterconnectLocationList++; if (buildCounterInterconnectLocationList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed398(o.items!); + checkUnnamed402(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -17369,12 +17573,12 @@ void checkInterconnectLocationRegionInfo(api.InterconnectLocationRegionInfo o) { buildCounterInterconnectLocationRegionInfo--; } -core.List buildUnnamed400() => [ +core.List buildUnnamed404() => [ buildInterconnectMacsecPreSharedKey(), buildInterconnectMacsecPreSharedKey(), ]; -void checkUnnamed400(core.List o) { +void checkUnnamed404(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectMacsecPreSharedKey(o[0]); checkInterconnectMacsecPreSharedKey(o[1]); @@ -17386,7 +17590,7 @@ api.InterconnectMacsec buildInterconnectMacsec() { buildCounterInterconnectMacsec++; if (buildCounterInterconnectMacsec < 3) { o.failOpen = true; - o.preSharedKeys = buildUnnamed400(); + o.preSharedKeys = buildUnnamed404(); } buildCounterInterconnectMacsec--; return o; @@ -17396,17 +17600,17 @@ void checkInterconnectMacsec(api.InterconnectMacsec o) { buildCounterInterconnectMacsec++; if (buildCounterInterconnectMacsec < 3) { unittest.expect(o.failOpen!, unittest.isTrue); - checkUnnamed400(o.preSharedKeys!); + checkUnnamed404(o.preSharedKeys!); } buildCounterInterconnectMacsec--; } -core.List buildUnnamed401() => [ +core.List buildUnnamed405() => [ buildInterconnectMacsecConfigPreSharedKey(), buildInterconnectMacsecConfigPreSharedKey(), ]; -void checkUnnamed401(core.List o) { +void checkUnnamed405(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectMacsecConfigPreSharedKey(o[0]); checkInterconnectMacsecConfigPreSharedKey(o[1]); @@ -17417,7 +17621,7 @@ api.InterconnectMacsecConfig buildInterconnectMacsecConfig() { final o = api.InterconnectMacsecConfig(); buildCounterInterconnectMacsecConfig++; if (buildCounterInterconnectMacsecConfig < 3) { - o.preSharedKeys = buildUnnamed401(); + o.preSharedKeys = buildUnnamed405(); } buildCounterInterconnectMacsecConfig--; return o; @@ -17426,7 +17630,7 @@ api.InterconnectMacsecConfig buildInterconnectMacsecConfig() { void checkInterconnectMacsecConfig(api.InterconnectMacsecConfig o) { buildCounterInterconnectMacsecConfig++; if (buildCounterInterconnectMacsecConfig < 3) { - checkUnnamed401(o.preSharedKeys!); + checkUnnamed405(o.preSharedKeys!); } buildCounterInterconnectMacsecConfig--; } @@ -17480,9 +17684,9 @@ void checkInterconnectMacsecPreSharedKey(api.InterconnectMacsecPreSharedKey o) { buildCounterInterconnectMacsecPreSharedKey--; } -core.List buildUnnamed402() => ['foo', 'foo']; +core.List buildUnnamed406() => ['foo', 'foo']; -void checkUnnamed402(core.List o) { +void checkUnnamed406(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -17493,7 +17697,7 @@ api.InterconnectOutageNotification buildInterconnectOutageNotification() { final o = api.InterconnectOutageNotification(); buildCounterInterconnectOutageNotification++; if (buildCounterInterconnectOutageNotification < 3) { - o.affectedCircuits = buildUnnamed402(); + o.affectedCircuits = buildUnnamed406(); o.description = 'foo'; o.endTime = 'foo'; o.issueType = 'foo'; @@ -17509,7 +17713,7 @@ api.InterconnectOutageNotification buildInterconnectOutageNotification() { void checkInterconnectOutageNotification(api.InterconnectOutageNotification o) { buildCounterInterconnectOutageNotification++; if (buildCounterInterconnectOutageNotification < 3) { - checkUnnamed402(o.affectedCircuits!); + checkUnnamed406(o.affectedCircuits!); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.endTime!, unittest.equals('foo')); unittest.expect(o.issueType!, unittest.equals('foo')); @@ -17522,12 +17726,12 @@ void checkInterconnectOutageNotification(api.InterconnectOutageNotification o) { } core.List -buildUnnamed403() => [ +buildUnnamed407() => [ buildInterconnectRemoteLocationPermittedConnections(), buildInterconnectRemoteLocationPermittedConnections(), ]; -void checkUnnamed403( +void checkUnnamed407( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -17557,7 +17761,7 @@ api.InterconnectRemoteLocation buildInterconnectRemoteLocation() { o.maxLagSize10Gbps = 42; o.name = 'foo'; o.peeringdbFacilityId = 'foo'; - o.permittedConnections = buildUnnamed403(); + o.permittedConnections = buildUnnamed407(); o.remoteService = 'foo'; o.selfLink = 'foo'; o.status = 'foo'; @@ -17587,7 +17791,7 @@ void checkInterconnectRemoteLocation(api.InterconnectRemoteLocation o) { unittest.expect(o.maxLagSize10Gbps!, unittest.equals(42)); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.peeringdbFacilityId!, unittest.equals('foo')); - checkUnnamed403(o.permittedConnections!); + checkUnnamed407(o.permittedConnections!); unittest.expect(o.remoteService!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.status!, unittest.equals('foo')); @@ -17648,12 +17852,12 @@ void checkInterconnectRemoteLocationConstraintsSubnetLengthRange( buildCounterInterconnectRemoteLocationConstraintsSubnetLengthRange--; } -core.List buildUnnamed404() => [ +core.List buildUnnamed408() => [ buildInterconnectRemoteLocation(), buildInterconnectRemoteLocation(), ]; -void checkUnnamed404(core.List o) { +void checkUnnamed408(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectRemoteLocation(o[0]); checkInterconnectRemoteLocation(o[1]); @@ -17683,12 +17887,12 @@ void checkInterconnectRemoteLocationListWarningData( buildCounterInterconnectRemoteLocationListWarningData--; } -core.List buildUnnamed405() => [ +core.List buildUnnamed409() => [ buildInterconnectRemoteLocationListWarningData(), buildInterconnectRemoteLocationListWarningData(), ]; -void checkUnnamed405( +void checkUnnamed409( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -17703,7 +17907,7 @@ buildInterconnectRemoteLocationListWarning() { buildCounterInterconnectRemoteLocationListWarning++; if (buildCounterInterconnectRemoteLocationListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed405(); + o.data = buildUnnamed409(); o.message = 'foo'; } buildCounterInterconnectRemoteLocationListWarning--; @@ -17716,7 +17920,7 @@ void checkInterconnectRemoteLocationListWarning( buildCounterInterconnectRemoteLocationListWarning++; if (buildCounterInterconnectRemoteLocationListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed405(o.data!); + checkUnnamed409(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterInterconnectRemoteLocationListWarning--; @@ -17728,7 +17932,7 @@ api.InterconnectRemoteLocationList buildInterconnectRemoteLocationList() { buildCounterInterconnectRemoteLocationList++; if (buildCounterInterconnectRemoteLocationList < 3) { o.id = 'foo'; - o.items = buildUnnamed404(); + o.items = buildUnnamed408(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -17742,7 +17946,7 @@ void checkInterconnectRemoteLocationList(api.InterconnectRemoteLocationList o) { buildCounterInterconnectRemoteLocationList++; if (buildCounterInterconnectRemoteLocationList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed404(o.items!); + checkUnnamed408(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -17819,25 +18023,25 @@ void checkInterconnectsGetMacsecConfigResponse( buildCounterInterconnectsGetMacsecConfigResponse--; } -core.List buildUnnamed406() => ['foo', 'foo']; +core.List buildUnnamed410() => ['foo', 'foo']; -void checkUnnamed406(core.List o) { +void checkUnnamed410(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed407() => ['foo', 'foo']; +core.List buildUnnamed411() => ['foo', 'foo']; -void checkUnnamed407(core.List o) { +void checkUnnamed411(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed408() => ['foo', 'foo']; +core.List buildUnnamed412() => ['foo', 'foo']; -void checkUnnamed408(core.List o) { +void checkUnnamed412(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -17848,13 +18052,13 @@ api.License buildLicense() { final o = api.License(); buildCounterLicense++; if (buildCounterLicense < 3) { - o.allowedReplacementLicenses = buildUnnamed406(); + o.allowedReplacementLicenses = buildUnnamed410(); o.appendableToDisk = true; o.chargesUseFee = true; o.creationTimestamp = 'foo'; o.description = 'foo'; o.id = 'foo'; - o.incompatibleLicenses = buildUnnamed407(); + o.incompatibleLicenses = buildUnnamed411(); o.kind = 'foo'; o.licenseCode = 'foo'; o.minimumRetention = buildDuration(); @@ -17862,7 +18066,7 @@ api.License buildLicense() { o.name = 'foo'; o.osLicense = true; o.removableFromDisk = true; - o.requiredCoattachedLicenses = buildUnnamed408(); + o.requiredCoattachedLicenses = buildUnnamed412(); o.resourceRequirements = buildLicenseResourceRequirements(); o.selfLink = 'foo'; o.selfLinkWithId = 'foo'; @@ -17877,13 +18081,13 @@ api.License buildLicense() { void checkLicense(api.License o) { buildCounterLicense++; if (buildCounterLicense < 3) { - checkUnnamed406(o.allowedReplacementLicenses!); + checkUnnamed410(o.allowedReplacementLicenses!); unittest.expect(o.appendableToDisk!, unittest.isTrue); unittest.expect(o.chargesUseFee!, unittest.isTrue); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed407(o.incompatibleLicenses!); + checkUnnamed411(o.incompatibleLicenses!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.licenseCode!, unittest.equals('foo')); checkDuration(o.minimumRetention!); @@ -17891,7 +18095,7 @@ void checkLicense(api.License o) { unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.osLicense!, unittest.isTrue); unittest.expect(o.removableFromDisk!, unittest.isTrue); - checkUnnamed408(o.requiredCoattachedLicenses!); + checkUnnamed412(o.requiredCoattachedLicenses!); checkLicenseResourceRequirements(o.resourceRequirements!); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.selfLinkWithId!, unittest.equals('foo')); @@ -17902,12 +18106,12 @@ void checkLicense(api.License o) { buildCounterLicense--; } -core.List buildUnnamed409() => [ +core.List buildUnnamed413() => [ buildLicenseCodeLicenseAlias(), buildLicenseCodeLicenseAlias(), ]; -void checkUnnamed409(core.List o) { +void checkUnnamed413(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLicenseCodeLicenseAlias(o[0]); checkLicenseCodeLicenseAlias(o[1]); @@ -17922,7 +18126,7 @@ api.LicenseCode buildLicenseCode() { o.description = 'foo'; o.id = 'foo'; o.kind = 'foo'; - o.licenseAlias = buildUnnamed409(); + o.licenseAlias = buildUnnamed413(); o.name = 'foo'; o.selfLink = 'foo'; o.state = 'foo'; @@ -17939,7 +18143,7 @@ void checkLicenseCode(api.LicenseCode o) { unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); - checkUnnamed409(o.licenseAlias!); + checkUnnamed413(o.licenseAlias!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); @@ -18013,9 +18217,9 @@ void checkLicenseResourceRequirements(api.LicenseResourceRequirements o) { buildCounterLicenseResourceRequirements--; } -core.List buildUnnamed410() => [buildLicense(), buildLicense()]; +core.List buildUnnamed414() => [buildLicense(), buildLicense()]; -void checkUnnamed410(core.List o) { +void checkUnnamed414(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLicense(o[0]); checkLicense(o[1]); @@ -18044,12 +18248,12 @@ void checkLicensesListResponseWarningData( buildCounterLicensesListResponseWarningData--; } -core.List buildUnnamed411() => [ +core.List buildUnnamed415() => [ buildLicensesListResponseWarningData(), buildLicensesListResponseWarningData(), ]; -void checkUnnamed411(core.List o) { +void checkUnnamed415(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLicensesListResponseWarningData(o[0]); checkLicensesListResponseWarningData(o[1]); @@ -18061,7 +18265,7 @@ api.LicensesListResponseWarning buildLicensesListResponseWarning() { buildCounterLicensesListResponseWarning++; if (buildCounterLicensesListResponseWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed411(); + o.data = buildUnnamed415(); o.message = 'foo'; } buildCounterLicensesListResponseWarning--; @@ -18072,7 +18276,7 @@ void checkLicensesListResponseWarning(api.LicensesListResponseWarning o) { buildCounterLicensesListResponseWarning++; if (buildCounterLicensesListResponseWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed411(o.data!); + checkUnnamed415(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterLicensesListResponseWarning--; @@ -18084,7 +18288,7 @@ api.LicensesListResponse buildLicensesListResponse() { buildCounterLicensesListResponse++; if (buildCounterLicensesListResponse < 3) { o.id = 'foo'; - o.items = buildUnnamed410(); + o.items = buildUnnamed414(); o.nextPageToken = 'foo'; o.selfLink = 'foo'; o.warning = buildLicensesListResponseWarning(); @@ -18097,7 +18301,7 @@ void checkLicensesListResponse(api.LicensesListResponse o) { buildCounterLicensesListResponse++; if (buildCounterLicensesListResponse < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed410(o.items!); + checkUnnamed414(o.items!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); checkLicensesListResponseWarning(o.warning!); @@ -18149,12 +18353,12 @@ void checkLocalizedMessage(api.LocalizedMessage o) { buildCounterLocalizedMessage--; } -core.Map buildUnnamed412() => { +core.Map buildUnnamed416() => { 'x': buildLocationPolicyLocation(), 'y': buildLocationPolicyLocation(), }; -void checkUnnamed412(core.Map o) { +void checkUnnamed416(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkLocationPolicyLocation(o['x']!); checkLocationPolicyLocation(o['y']!); @@ -18165,7 +18369,7 @@ api.LocationPolicy buildLocationPolicy() { final o = api.LocationPolicy(); buildCounterLocationPolicy++; if (buildCounterLocationPolicy < 3) { - o.locations = buildUnnamed412(); + o.locations = buildUnnamed416(); o.targetShape = 'foo'; } buildCounterLocationPolicy--; @@ -18175,7 +18379,7 @@ api.LocationPolicy buildLocationPolicy() { void checkLocationPolicy(api.LocationPolicy o) { buildCounterLocationPolicy++; if (buildCounterLocationPolicy < 3) { - checkUnnamed412(o.locations!); + checkUnnamed416(o.locations!); unittest.expect(o.targetShape!, unittest.equals('foo')); } buildCounterLocationPolicy--; @@ -18223,42 +18427,42 @@ void checkLocationPolicyLocationConstraints( buildCounterLocationPolicyLocationConstraints--; } -core.Map buildUnnamed413() => { +core.Map buildUnnamed417() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed413(core.Map o) { +void checkUnnamed417(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed414() => [ +core.List buildUnnamed418() => [ buildSavedDisk(), buildSavedDisk(), ]; -void checkUnnamed414(core.List o) { +void checkUnnamed418(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSavedDisk(o[0]); checkSavedDisk(o[1]); } -core.List buildUnnamed415() => [ +core.List buildUnnamed419() => [ buildSourceDiskEncryptionKey(), buildSourceDiskEncryptionKey(), ]; -void checkUnnamed415(core.List o) { +void checkUnnamed419(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSourceDiskEncryptionKey(o[0]); checkSourceDiskEncryptionKey(o[1]); } -core.List buildUnnamed416() => ['foo', 'foo']; +core.List buildUnnamed420() => ['foo', 'foo']; -void checkUnnamed416(core.List o) { +void checkUnnamed420(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -18276,18 +18480,18 @@ api.MachineImage buildMachineImage() { o.instanceProperties = buildInstanceProperties(); o.kind = 'foo'; o.labelFingerprint = 'foo'; - o.labels = buildUnnamed413(); + o.labels = buildUnnamed417(); o.machineImageEncryptionKey = buildCustomerEncryptionKey(); o.name = 'foo'; o.satisfiesPzi = true; o.satisfiesPzs = true; - o.savedDisks = buildUnnamed414(); + o.savedDisks = buildUnnamed418(); o.selfLink = 'foo'; - o.sourceDiskEncryptionKeys = buildUnnamed415(); + o.sourceDiskEncryptionKeys = buildUnnamed419(); o.sourceInstance = 'foo'; o.sourceInstanceProperties = buildSourceInstanceProperties(); o.status = 'foo'; - o.storageLocations = buildUnnamed416(); + o.storageLocations = buildUnnamed420(); o.totalStorageBytes = 'foo'; } buildCounterMachineImage--; @@ -18304,29 +18508,29 @@ void checkMachineImage(api.MachineImage o) { checkInstanceProperties(o.instanceProperties!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed413(o.labels!); + checkUnnamed417(o.labels!); checkCustomerEncryptionKey(o.machineImageEncryptionKey!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.satisfiesPzi!, unittest.isTrue); unittest.expect(o.satisfiesPzs!, unittest.isTrue); - checkUnnamed414(o.savedDisks!); + checkUnnamed418(o.savedDisks!); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed415(o.sourceDiskEncryptionKeys!); + checkUnnamed419(o.sourceDiskEncryptionKeys!); unittest.expect(o.sourceInstance!, unittest.equals('foo')); checkSourceInstanceProperties(o.sourceInstanceProperties!); unittest.expect(o.status!, unittest.equals('foo')); - checkUnnamed416(o.storageLocations!); + checkUnnamed420(o.storageLocations!); unittest.expect(o.totalStorageBytes!, unittest.equals('foo')); } buildCounterMachineImage--; } -core.List buildUnnamed417() => [ +core.List buildUnnamed421() => [ buildMachineImage(), buildMachineImage(), ]; -void checkUnnamed417(core.List o) { +void checkUnnamed421(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMachineImage(o[0]); checkMachineImage(o[1]); @@ -18353,12 +18557,12 @@ void checkMachineImageListWarningData(api.MachineImageListWarningData o) { buildCounterMachineImageListWarningData--; } -core.List buildUnnamed418() => [ +core.List buildUnnamed422() => [ buildMachineImageListWarningData(), buildMachineImageListWarningData(), ]; -void checkUnnamed418(core.List o) { +void checkUnnamed422(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMachineImageListWarningData(o[0]); checkMachineImageListWarningData(o[1]); @@ -18370,7 +18574,7 @@ api.MachineImageListWarning buildMachineImageListWarning() { buildCounterMachineImageListWarning++; if (buildCounterMachineImageListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed418(); + o.data = buildUnnamed422(); o.message = 'foo'; } buildCounterMachineImageListWarning--; @@ -18381,7 +18585,7 @@ void checkMachineImageListWarning(api.MachineImageListWarning o) { buildCounterMachineImageListWarning++; if (buildCounterMachineImageListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed418(o.data!); + checkUnnamed422(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterMachineImageListWarning--; @@ -18393,7 +18597,7 @@ api.MachineImageList buildMachineImageList() { buildCounterMachineImageList++; if (buildCounterMachineImageList < 3) { o.id = 'foo'; - o.items = buildUnnamed417(); + o.items = buildUnnamed421(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -18407,7 +18611,7 @@ void checkMachineImageList(api.MachineImageList o) { buildCounterMachineImageList++; if (buildCounterMachineImageList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed417(o.items!); + checkUnnamed421(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -18437,12 +18641,12 @@ void checkMachineTypeAccelerators(api.MachineTypeAccelerators o) { buildCounterMachineTypeAccelerators--; } -core.List buildUnnamed419() => [ +core.List buildUnnamed423() => [ buildMachineTypeAccelerators(), buildMachineTypeAccelerators(), ]; -void checkUnnamed419(core.List o) { +void checkUnnamed423(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypeAccelerators(o[0]); checkMachineTypeAccelerators(o[1]); @@ -18453,7 +18657,7 @@ api.MachineType buildMachineType() { final o = api.MachineType(); buildCounterMachineType++; if (buildCounterMachineType < 3) { - o.accelerators = buildUnnamed419(); + o.accelerators = buildUnnamed423(); o.architecture = 'foo'; o.creationTimestamp = 'foo'; o.deprecated = buildDeprecationStatus(); @@ -18477,7 +18681,7 @@ api.MachineType buildMachineType() { void checkMachineType(api.MachineType o) { buildCounterMachineType++; if (buildCounterMachineType < 3) { - checkUnnamed419(o.accelerators!); + checkUnnamed423(o.accelerators!); unittest.expect(o.architecture!, unittest.equals('foo')); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); checkDeprecationStatus(o.deprecated!); @@ -18497,20 +18701,20 @@ void checkMachineType(api.MachineType o) { buildCounterMachineType--; } -core.Map buildUnnamed420() => { +core.Map buildUnnamed424() => { 'x': buildMachineTypesScopedList(), 'y': buildMachineTypesScopedList(), }; -void checkUnnamed420(core.Map o) { +void checkUnnamed424(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedList(o['x']!); checkMachineTypesScopedList(o['y']!); } -core.List buildUnnamed421() => ['foo', 'foo']; +core.List buildUnnamed425() => ['foo', 'foo']; -void checkUnnamed421(core.List o) { +void checkUnnamed425(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -18540,12 +18744,12 @@ void checkMachineTypeAggregatedListWarningData( buildCounterMachineTypeAggregatedListWarningData--; } -core.List buildUnnamed422() => [ +core.List buildUnnamed426() => [ buildMachineTypeAggregatedListWarningData(), buildMachineTypeAggregatedListWarningData(), ]; -void checkUnnamed422(core.List o) { +void checkUnnamed426(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypeAggregatedListWarningData(o[0]); checkMachineTypeAggregatedListWarningData(o[1]); @@ -18557,7 +18761,7 @@ api.MachineTypeAggregatedListWarning buildMachineTypeAggregatedListWarning() { buildCounterMachineTypeAggregatedListWarning++; if (buildCounterMachineTypeAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed422(); + o.data = buildUnnamed426(); o.message = 'foo'; } buildCounterMachineTypeAggregatedListWarning--; @@ -18570,7 +18774,7 @@ void checkMachineTypeAggregatedListWarning( buildCounterMachineTypeAggregatedListWarning++; if (buildCounterMachineTypeAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed422(o.data!); + checkUnnamed426(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterMachineTypeAggregatedListWarning--; @@ -18582,11 +18786,11 @@ api.MachineTypeAggregatedList buildMachineTypeAggregatedList() { buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed420(); + o.items = buildUnnamed424(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed421(); + o.unreachables = buildUnnamed425(); o.warning = buildMachineTypeAggregatedListWarning(); } buildCounterMachineTypeAggregatedList--; @@ -18597,22 +18801,22 @@ void checkMachineTypeAggregatedList(api.MachineTypeAggregatedList o) { buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed420(o.items!); + checkUnnamed424(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed421(o.unreachables!); + checkUnnamed425(o.unreachables!); checkMachineTypeAggregatedListWarning(o.warning!); } buildCounterMachineTypeAggregatedList--; } -core.List buildUnnamed423() => [ +core.List buildUnnamed427() => [ buildMachineType(), buildMachineType(), ]; -void checkUnnamed423(core.List o) { +void checkUnnamed427(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -18639,12 +18843,12 @@ void checkMachineTypeListWarningData(api.MachineTypeListWarningData o) { buildCounterMachineTypeListWarningData--; } -core.List buildUnnamed424() => [ +core.List buildUnnamed428() => [ buildMachineTypeListWarningData(), buildMachineTypeListWarningData(), ]; -void checkUnnamed424(core.List o) { +void checkUnnamed428(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypeListWarningData(o[0]); checkMachineTypeListWarningData(o[1]); @@ -18656,7 +18860,7 @@ api.MachineTypeListWarning buildMachineTypeListWarning() { buildCounterMachineTypeListWarning++; if (buildCounterMachineTypeListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed424(); + o.data = buildUnnamed428(); o.message = 'foo'; } buildCounterMachineTypeListWarning--; @@ -18667,7 +18871,7 @@ void checkMachineTypeListWarning(api.MachineTypeListWarning o) { buildCounterMachineTypeListWarning++; if (buildCounterMachineTypeListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed424(o.data!); + checkUnnamed428(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterMachineTypeListWarning--; @@ -18679,7 +18883,7 @@ api.MachineTypeList buildMachineTypeList() { buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { o.id = 'foo'; - o.items = buildUnnamed423(); + o.items = buildUnnamed427(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -18693,7 +18897,7 @@ void checkMachineTypeList(api.MachineTypeList o) { buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed423(o.items!); + checkUnnamed427(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -18702,12 +18906,12 @@ void checkMachineTypeList(api.MachineTypeList o) { buildCounterMachineTypeList--; } -core.List buildUnnamed425() => [ +core.List buildUnnamed429() => [ buildMachineType(), buildMachineType(), ]; -void checkUnnamed425(core.List o) { +void checkUnnamed429(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -18736,12 +18940,12 @@ void checkMachineTypesScopedListWarningData( buildCounterMachineTypesScopedListWarningData--; } -core.List buildUnnamed426() => [ +core.List buildUnnamed430() => [ buildMachineTypesScopedListWarningData(), buildMachineTypesScopedListWarningData(), ]; -void checkUnnamed426(core.List o) { +void checkUnnamed430(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedListWarningData(o[0]); checkMachineTypesScopedListWarningData(o[1]); @@ -18753,7 +18957,7 @@ api.MachineTypesScopedListWarning buildMachineTypesScopedListWarning() { buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed426(); + o.data = buildUnnamed430(); o.message = 'foo'; } buildCounterMachineTypesScopedListWarning--; @@ -18764,7 +18968,7 @@ void checkMachineTypesScopedListWarning(api.MachineTypesScopedListWarning o) { buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed426(o.data!); + checkUnnamed430(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterMachineTypesScopedListWarning--; @@ -18775,7 +18979,7 @@ api.MachineTypesScopedList buildMachineTypesScopedList() { final o = api.MachineTypesScopedList(); buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - o.machineTypes = buildUnnamed425(); + o.machineTypes = buildUnnamed429(); o.warning = buildMachineTypesScopedListWarning(); } buildCounterMachineTypesScopedList--; @@ -18785,18 +18989,18 @@ api.MachineTypesScopedList buildMachineTypesScopedList() { void checkMachineTypesScopedList(api.MachineTypesScopedList o) { buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - checkUnnamed425(o.machineTypes!); + checkUnnamed429(o.machineTypes!); checkMachineTypesScopedListWarning(o.warning!); } buildCounterMachineTypesScopedList--; } -core.List buildUnnamed427() => [ +core.List buildUnnamed431() => [ buildManagedInstanceInstanceHealth(), buildManagedInstanceInstanceHealth(), ]; -void checkUnnamed427(core.List o) { +void checkUnnamed431(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstanceInstanceHealth(o[0]); checkManagedInstanceInstanceHealth(o[1]); @@ -18810,7 +19014,7 @@ api.ManagedInstance buildManagedInstance() { o.currentAction = 'foo'; o.id = 'foo'; o.instance = 'foo'; - o.instanceHealth = buildUnnamed427(); + o.instanceHealth = buildUnnamed431(); o.instanceStatus = 'foo'; o.lastAttempt = buildManagedInstanceLastAttempt(); o.name = 'foo'; @@ -18830,7 +19034,7 @@ void checkManagedInstance(api.ManagedInstance o) { unittest.expect(o.currentAction!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.instance!, unittest.equals('foo')); - checkUnnamed427(o.instanceHealth!); + checkUnnamed431(o.instanceHealth!); unittest.expect(o.instanceStatus!, unittest.equals('foo')); checkManagedInstanceLastAttempt(o.lastAttempt!); unittest.expect(o.name!, unittest.equals('foo')); @@ -18894,12 +19098,12 @@ void checkManagedInstanceLastAttemptErrorsErrorsErrorDetails( } core.List -buildUnnamed428() => [ +buildUnnamed432() => [ buildManagedInstanceLastAttemptErrorsErrorsErrorDetails(), buildManagedInstanceLastAttemptErrorsErrorsErrorDetails(), ]; -void checkUnnamed428( +void checkUnnamed432( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -18914,7 +19118,7 @@ buildManagedInstanceLastAttemptErrorsErrors() { buildCounterManagedInstanceLastAttemptErrorsErrors++; if (buildCounterManagedInstanceLastAttemptErrorsErrors < 3) { o.code = 'foo'; - o.errorDetails = buildUnnamed428(); + o.errorDetails = buildUnnamed432(); o.location = 'foo'; o.message = 'foo'; } @@ -18928,19 +19132,19 @@ void checkManagedInstanceLastAttemptErrorsErrors( buildCounterManagedInstanceLastAttemptErrorsErrors++; if (buildCounterManagedInstanceLastAttemptErrorsErrors < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed428(o.errorDetails!); + checkUnnamed432(o.errorDetails!); unittest.expect(o.location!, unittest.equals('foo')); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterManagedInstanceLastAttemptErrorsErrors--; } -core.List buildUnnamed429() => [ +core.List buildUnnamed433() => [ buildManagedInstanceLastAttemptErrorsErrors(), buildManagedInstanceLastAttemptErrorsErrors(), ]; -void checkUnnamed429(core.List o) { +void checkUnnamed433(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstanceLastAttemptErrorsErrors(o[0]); checkManagedInstanceLastAttemptErrorsErrors(o[1]); @@ -18951,7 +19155,7 @@ api.ManagedInstanceLastAttemptErrors buildManagedInstanceLastAttemptErrors() { final o = api.ManagedInstanceLastAttemptErrors(); buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - o.errors = buildUnnamed429(); + o.errors = buildUnnamed433(); } buildCounterManagedInstanceLastAttemptErrors--; return o; @@ -18962,7 +19166,7 @@ void checkManagedInstanceLastAttemptErrors( ) { buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - checkUnnamed429(o.errors!); + checkUnnamed433(o.errors!); } buildCounterManagedInstanceLastAttemptErrors--; } @@ -19050,12 +19254,12 @@ void checkMetadataItems(api.MetadataItems o) { buildCounterMetadataItems--; } -core.List buildUnnamed430() => [ +core.List buildUnnamed434() => [ buildMetadataItems(), buildMetadataItems(), ]; -void checkUnnamed430(core.List o) { +void checkUnnamed434(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataItems(o[0]); checkMetadataItems(o[1]); @@ -19067,7 +19271,7 @@ api.Metadata buildMetadata() { buildCounterMetadata++; if (buildCounterMetadata < 3) { o.fingerprint = 'foo'; - o.items = buildUnnamed430(); + o.items = buildUnnamed434(); o.kind = 'foo'; } buildCounterMetadata--; @@ -19078,18 +19282,18 @@ void checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { unittest.expect(o.fingerprint!, unittest.equals('foo')); - checkUnnamed430(o.items!); + checkUnnamed434(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); } buildCounterMetadata--; } -core.List buildUnnamed431() => [ +core.List buildUnnamed435() => [ buildMetadataFilterLabelMatch(), buildMetadataFilterLabelMatch(), ]; -void checkUnnamed431(core.List o) { +void checkUnnamed435(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataFilterLabelMatch(o[0]); checkMetadataFilterLabelMatch(o[1]); @@ -19100,7 +19304,7 @@ api.MetadataFilter buildMetadataFilter() { final o = api.MetadataFilter(); buildCounterMetadataFilter++; if (buildCounterMetadataFilter < 3) { - o.filterLabels = buildUnnamed431(); + o.filterLabels = buildUnnamed435(); o.filterMatchCriteria = 'foo'; } buildCounterMetadataFilter--; @@ -19110,7 +19314,7 @@ api.MetadataFilter buildMetadataFilter() { void checkMetadataFilter(api.MetadataFilter o) { buildCounterMetadataFilter++; if (buildCounterMetadataFilter < 3) { - checkUnnamed431(o.filterLabels!); + checkUnnamed435(o.filterLabels!); unittest.expect(o.filterMatchCriteria!, unittest.equals('foo')); } buildCounterMetadataFilter--; @@ -19158,12 +19362,12 @@ void checkNamedPort(api.NamedPort o) { buildCounterNamedPort--; } -core.List buildUnnamed432() => [ +core.List buildUnnamed436() => [ buildNatIpInfoNatIpInfoMapping(), buildNatIpInfoNatIpInfoMapping(), ]; -void checkUnnamed432(core.List o) { +void checkUnnamed436(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNatIpInfoNatIpInfoMapping(o[0]); checkNatIpInfoNatIpInfoMapping(o[1]); @@ -19174,7 +19378,7 @@ api.NatIpInfo buildNatIpInfo() { final o = api.NatIpInfo(); buildCounterNatIpInfo++; if (buildCounterNatIpInfo < 3) { - o.natIpInfoMappings = buildUnnamed432(); + o.natIpInfoMappings = buildUnnamed436(); o.natName = 'foo'; } buildCounterNatIpInfo--; @@ -19184,7 +19388,7 @@ api.NatIpInfo buildNatIpInfo() { void checkNatIpInfo(api.NatIpInfo o) { buildCounterNatIpInfo++; if (buildCounterNatIpInfo < 3) { - checkUnnamed432(o.natIpInfoMappings!); + checkUnnamed436(o.natIpInfoMappings!); unittest.expect(o.natName!, unittest.equals('foo')); } buildCounterNatIpInfo--; @@ -19213,12 +19417,12 @@ void checkNatIpInfoNatIpInfoMapping(api.NatIpInfoNatIpInfoMapping o) { buildCounterNatIpInfoNatIpInfoMapping--; } -core.List buildUnnamed433() => [ +core.List buildUnnamed437() => [ buildNatIpInfo(), buildNatIpInfo(), ]; -void checkUnnamed433(core.List o) { +void checkUnnamed437(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNatIpInfo(o[0]); checkNatIpInfo(o[1]); @@ -19229,7 +19433,7 @@ api.NatIpInfoResponse buildNatIpInfoResponse() { final o = api.NatIpInfoResponse(); buildCounterNatIpInfoResponse++; if (buildCounterNatIpInfoResponse < 3) { - o.result = buildUnnamed433(); + o.result = buildUnnamed437(); } buildCounterNatIpInfoResponse--; return o; @@ -19238,25 +19442,25 @@ api.NatIpInfoResponse buildNatIpInfoResponse() { void checkNatIpInfoResponse(api.NatIpInfoResponse o) { buildCounterNatIpInfoResponse++; if (buildCounterNatIpInfoResponse < 3) { - checkUnnamed433(o.result!); + checkUnnamed437(o.result!); } buildCounterNatIpInfoResponse--; } -core.List buildUnnamed434() => [ +core.List buildUnnamed438() => [ buildNetworkPeering(), buildNetworkPeering(), ]; -void checkUnnamed434(core.List o) { +void checkUnnamed438(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkPeering(o[0]); checkNetworkPeering(o[1]); } -core.List buildUnnamed435() => ['foo', 'foo']; +core.List buildUnnamed439() => ['foo', 'foo']; -void checkUnnamed435(core.List o) { +void checkUnnamed439(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -19282,11 +19486,11 @@ api.Network buildNetwork() { o.networkFirewallPolicyEnforcementOrder = 'foo'; o.networkProfile = 'foo'; o.params = buildNetworkParams(); - o.peerings = buildUnnamed434(); + o.peerings = buildUnnamed438(); o.routingConfig = buildNetworkRoutingConfig(); o.selfLink = 'foo'; o.selfLinkWithId = 'foo'; - o.subnetworks = buildUnnamed435(); + o.subnetworks = buildUnnamed439(); } buildCounterNetwork--; return o; @@ -19313,45 +19517,45 @@ void checkNetwork(api.Network o) { ); unittest.expect(o.networkProfile!, unittest.equals('foo')); checkNetworkParams(o.params!); - checkUnnamed434(o.peerings!); + checkUnnamed438(o.peerings!); checkNetworkRoutingConfig(o.routingConfig!); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.selfLinkWithId!, unittest.equals('foo')); - checkUnnamed435(o.subnetworks!); + checkUnnamed439(o.subnetworks!); } buildCounterNetwork--; } -core.List buildUnnamed436() => [ +core.List buildUnnamed440() => [ buildNetworkAttachmentConnectedEndpoint(), buildNetworkAttachmentConnectedEndpoint(), ]; -void checkUnnamed436(core.List o) { +void checkUnnamed440(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkAttachmentConnectedEndpoint(o[0]); checkNetworkAttachmentConnectedEndpoint(o[1]); } -core.List buildUnnamed437() => ['foo', 'foo']; +core.List buildUnnamed441() => ['foo', 'foo']; -void checkUnnamed437(core.List o) { +void checkUnnamed441(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed438() => ['foo', 'foo']; +core.List buildUnnamed442() => ['foo', 'foo']; -void checkUnnamed438(core.List o) { +void checkUnnamed442(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed439() => ['foo', 'foo']; +core.List buildUnnamed443() => ['foo', 'foo']; -void checkUnnamed439(core.List o) { +void checkUnnamed443(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -19362,7 +19566,7 @@ api.NetworkAttachment buildNetworkAttachment() { final o = api.NetworkAttachment(); buildCounterNetworkAttachment++; if (buildCounterNetworkAttachment < 3) { - o.connectionEndpoints = buildUnnamed436(); + o.connectionEndpoints = buildUnnamed440(); o.connectionPreference = 'foo'; o.creationTimestamp = 'foo'; o.description = 'foo'; @@ -19371,12 +19575,12 @@ api.NetworkAttachment buildNetworkAttachment() { o.kind = 'foo'; o.name = 'foo'; o.network = 'foo'; - o.producerAcceptLists = buildUnnamed437(); - o.producerRejectLists = buildUnnamed438(); + o.producerAcceptLists = buildUnnamed441(); + o.producerRejectLists = buildUnnamed442(); o.region = 'foo'; o.selfLink = 'foo'; o.selfLinkWithId = 'foo'; - o.subnetworks = buildUnnamed439(); + o.subnetworks = buildUnnamed443(); } buildCounterNetworkAttachment--; return o; @@ -19385,7 +19589,7 @@ api.NetworkAttachment buildNetworkAttachment() { void checkNetworkAttachment(api.NetworkAttachment o) { buildCounterNetworkAttachment++; if (buildCounterNetworkAttachment < 3) { - checkUnnamed436(o.connectionEndpoints!); + checkUnnamed440(o.connectionEndpoints!); unittest.expect(o.connectionPreference!, unittest.equals('foo')); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); @@ -19394,22 +19598,22 @@ void checkNetworkAttachment(api.NetworkAttachment o) { unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); - checkUnnamed437(o.producerAcceptLists!); - checkUnnamed438(o.producerRejectLists!); + checkUnnamed441(o.producerAcceptLists!); + checkUnnamed442(o.producerRejectLists!); unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.selfLinkWithId!, unittest.equals('foo')); - checkUnnamed439(o.subnetworks!); + checkUnnamed443(o.subnetworks!); } buildCounterNetworkAttachment--; } -core.Map buildUnnamed440() => { +core.Map buildUnnamed444() => { 'x': buildNetworkAttachmentsScopedList(), 'y': buildNetworkAttachmentsScopedList(), }; -void checkUnnamed440( +void checkUnnamed444( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -19441,12 +19645,12 @@ void checkNetworkAttachmentAggregatedListWarningData( buildCounterNetworkAttachmentAggregatedListWarningData--; } -core.List buildUnnamed441() => [ +core.List buildUnnamed445() => [ buildNetworkAttachmentAggregatedListWarningData(), buildNetworkAttachmentAggregatedListWarningData(), ]; -void checkUnnamed441( +void checkUnnamed445( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -19461,7 +19665,7 @@ buildNetworkAttachmentAggregatedListWarning() { buildCounterNetworkAttachmentAggregatedListWarning++; if (buildCounterNetworkAttachmentAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed441(); + o.data = buildUnnamed445(); o.message = 'foo'; } buildCounterNetworkAttachmentAggregatedListWarning--; @@ -19474,7 +19678,7 @@ void checkNetworkAttachmentAggregatedListWarning( buildCounterNetworkAttachmentAggregatedListWarning++; if (buildCounterNetworkAttachmentAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed441(o.data!); + checkUnnamed445(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNetworkAttachmentAggregatedListWarning--; @@ -19486,7 +19690,7 @@ api.NetworkAttachmentAggregatedList buildNetworkAttachmentAggregatedList() { buildCounterNetworkAttachmentAggregatedList++; if (buildCounterNetworkAttachmentAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed440(); + o.items = buildUnnamed444(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -19502,7 +19706,7 @@ void checkNetworkAttachmentAggregatedList( buildCounterNetworkAttachmentAggregatedList++; if (buildCounterNetworkAttachmentAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed440(o.items!); + checkUnnamed444(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -19511,9 +19715,9 @@ void checkNetworkAttachmentAggregatedList( buildCounterNetworkAttachmentAggregatedList--; } -core.List buildUnnamed442() => ['foo', 'foo']; +core.List buildUnnamed446() => ['foo', 'foo']; -void checkUnnamed442(core.List o) { +void checkUnnamed446(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -19528,7 +19732,7 @@ buildNetworkAttachmentConnectedEndpoint() { o.ipAddress = 'foo'; o.ipv6Address = 'foo'; o.projectIdOrNum = 'foo'; - o.secondaryIpCidrRanges = buildUnnamed442(); + o.secondaryIpCidrRanges = buildUnnamed446(); o.status = 'foo'; o.subnetwork = 'foo'; o.subnetworkCidrRange = 'foo'; @@ -19545,7 +19749,7 @@ void checkNetworkAttachmentConnectedEndpoint( unittest.expect(o.ipAddress!, unittest.equals('foo')); unittest.expect(o.ipv6Address!, unittest.equals('foo')); unittest.expect(o.projectIdOrNum!, unittest.equals('foo')); - checkUnnamed442(o.secondaryIpCidrRanges!); + checkUnnamed446(o.secondaryIpCidrRanges!); unittest.expect(o.status!, unittest.equals('foo')); unittest.expect(o.subnetwork!, unittest.equals('foo')); unittest.expect(o.subnetworkCidrRange!, unittest.equals('foo')); @@ -19553,12 +19757,12 @@ void checkNetworkAttachmentConnectedEndpoint( buildCounterNetworkAttachmentConnectedEndpoint--; } -core.List buildUnnamed443() => [ +core.List buildUnnamed447() => [ buildNetworkAttachment(), buildNetworkAttachment(), ]; -void checkUnnamed443(core.List o) { +void checkUnnamed447(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkAttachment(o[0]); checkNetworkAttachment(o[1]); @@ -19587,12 +19791,12 @@ void checkNetworkAttachmentListWarningData( buildCounterNetworkAttachmentListWarningData--; } -core.List buildUnnamed444() => [ +core.List buildUnnamed448() => [ buildNetworkAttachmentListWarningData(), buildNetworkAttachmentListWarningData(), ]; -void checkUnnamed444(core.List o) { +void checkUnnamed448(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkAttachmentListWarningData(o[0]); checkNetworkAttachmentListWarningData(o[1]); @@ -19604,7 +19808,7 @@ api.NetworkAttachmentListWarning buildNetworkAttachmentListWarning() { buildCounterNetworkAttachmentListWarning++; if (buildCounterNetworkAttachmentListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed444(); + o.data = buildUnnamed448(); o.message = 'foo'; } buildCounterNetworkAttachmentListWarning--; @@ -19615,7 +19819,7 @@ void checkNetworkAttachmentListWarning(api.NetworkAttachmentListWarning o) { buildCounterNetworkAttachmentListWarning++; if (buildCounterNetworkAttachmentListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed444(o.data!); + checkUnnamed448(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNetworkAttachmentListWarning--; @@ -19627,7 +19831,7 @@ api.NetworkAttachmentList buildNetworkAttachmentList() { buildCounterNetworkAttachmentList++; if (buildCounterNetworkAttachmentList < 3) { o.id = 'foo'; - o.items = buildUnnamed443(); + o.items = buildUnnamed447(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -19641,7 +19845,7 @@ void checkNetworkAttachmentList(api.NetworkAttachmentList o) { buildCounterNetworkAttachmentList++; if (buildCounterNetworkAttachmentList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed443(o.items!); + checkUnnamed447(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -19650,12 +19854,12 @@ void checkNetworkAttachmentList(api.NetworkAttachmentList o) { buildCounterNetworkAttachmentList--; } -core.List buildUnnamed445() => [ +core.List buildUnnamed449() => [ buildNetworkAttachment(), buildNetworkAttachment(), ]; -void checkUnnamed445(core.List o) { +void checkUnnamed449(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkAttachment(o[0]); checkNetworkAttachment(o[1]); @@ -19685,12 +19889,12 @@ void checkNetworkAttachmentsScopedListWarningData( buildCounterNetworkAttachmentsScopedListWarningData--; } -core.List buildUnnamed446() => [ +core.List buildUnnamed450() => [ buildNetworkAttachmentsScopedListWarningData(), buildNetworkAttachmentsScopedListWarningData(), ]; -void checkUnnamed446(core.List o) { +void checkUnnamed450(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkAttachmentsScopedListWarningData(o[0]); checkNetworkAttachmentsScopedListWarningData(o[1]); @@ -19703,7 +19907,7 @@ buildNetworkAttachmentsScopedListWarning() { buildCounterNetworkAttachmentsScopedListWarning++; if (buildCounterNetworkAttachmentsScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed446(); + o.data = buildUnnamed450(); o.message = 'foo'; } buildCounterNetworkAttachmentsScopedListWarning--; @@ -19716,7 +19920,7 @@ void checkNetworkAttachmentsScopedListWarning( buildCounterNetworkAttachmentsScopedListWarning++; if (buildCounterNetworkAttachmentsScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed446(o.data!); + checkUnnamed450(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNetworkAttachmentsScopedListWarning--; @@ -19727,7 +19931,7 @@ api.NetworkAttachmentsScopedList buildNetworkAttachmentsScopedList() { final o = api.NetworkAttachmentsScopedList(); buildCounterNetworkAttachmentsScopedList++; if (buildCounterNetworkAttachmentsScopedList < 3) { - o.networkAttachments = buildUnnamed445(); + o.networkAttachments = buildUnnamed449(); o.warning = buildNetworkAttachmentsScopedListWarning(); } buildCounterNetworkAttachmentsScopedList--; @@ -19737,7 +19941,7 @@ api.NetworkAttachmentsScopedList buildNetworkAttachmentsScopedList() { void checkNetworkAttachmentsScopedList(api.NetworkAttachmentsScopedList o) { buildCounterNetworkAttachmentsScopedList++; if (buildCounterNetworkAttachmentsScopedList < 3) { - checkUnnamed445(o.networkAttachments!); + checkUnnamed449(o.networkAttachments!); checkNetworkAttachmentsScopedListWarning(o.warning!); } buildCounterNetworkAttachmentsScopedList--; @@ -19781,12 +19985,12 @@ void checkNetworkEdgeSecurityService(api.NetworkEdgeSecurityService o) { } core.Map -buildUnnamed447() => { +buildUnnamed451() => { 'x': buildNetworkEdgeSecurityServicesScopedList(), 'y': buildNetworkEdgeSecurityServicesScopedList(), }; -void checkUnnamed447( +void checkUnnamed451( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -19794,9 +19998,9 @@ void checkUnnamed447( checkNetworkEdgeSecurityServicesScopedList(o['y']!); } -core.List buildUnnamed448() => ['foo', 'foo']; +core.List buildUnnamed452() => ['foo', 'foo']; -void checkUnnamed448(core.List o) { +void checkUnnamed452(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -19827,12 +20031,12 @@ void checkNetworkEdgeSecurityServiceAggregatedListWarningData( } core.List -buildUnnamed449() => [ +buildUnnamed453() => [ buildNetworkEdgeSecurityServiceAggregatedListWarningData(), buildNetworkEdgeSecurityServiceAggregatedListWarningData(), ]; -void checkUnnamed449( +void checkUnnamed453( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -19847,7 +20051,7 @@ buildNetworkEdgeSecurityServiceAggregatedListWarning() { buildCounterNetworkEdgeSecurityServiceAggregatedListWarning++; if (buildCounterNetworkEdgeSecurityServiceAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed449(); + o.data = buildUnnamed453(); o.message = 'foo'; } buildCounterNetworkEdgeSecurityServiceAggregatedListWarning--; @@ -19860,7 +20064,7 @@ void checkNetworkEdgeSecurityServiceAggregatedListWarning( buildCounterNetworkEdgeSecurityServiceAggregatedListWarning++; if (buildCounterNetworkEdgeSecurityServiceAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed449(o.data!); + checkUnnamed453(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNetworkEdgeSecurityServiceAggregatedListWarning--; @@ -19874,11 +20078,11 @@ buildNetworkEdgeSecurityServiceAggregatedList() { if (buildCounterNetworkEdgeSecurityServiceAggregatedList < 3) { o.etag = 'foo'; o.id = 'foo'; - o.items = buildUnnamed447(); + o.items = buildUnnamed451(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed448(); + o.unreachables = buildUnnamed452(); o.warning = buildNetworkEdgeSecurityServiceAggregatedListWarning(); } buildCounterNetworkEdgeSecurityServiceAggregatedList--; @@ -19892,22 +20096,22 @@ void checkNetworkEdgeSecurityServiceAggregatedList( if (buildCounterNetworkEdgeSecurityServiceAggregatedList < 3) { unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed447(o.items!); + checkUnnamed451(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed448(o.unreachables!); + checkUnnamed452(o.unreachables!); checkNetworkEdgeSecurityServiceAggregatedListWarning(o.warning!); } buildCounterNetworkEdgeSecurityServiceAggregatedList--; } -core.List buildUnnamed450() => [ +core.List buildUnnamed454() => [ buildNetworkEdgeSecurityService(), buildNetworkEdgeSecurityService(), ]; -void checkUnnamed450(core.List o) { +void checkUnnamed454(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEdgeSecurityService(o[0]); checkNetworkEdgeSecurityService(o[1]); @@ -19938,12 +20142,12 @@ void checkNetworkEdgeSecurityServicesScopedListWarningData( } core.List -buildUnnamed451() => [ +buildUnnamed455() => [ buildNetworkEdgeSecurityServicesScopedListWarningData(), buildNetworkEdgeSecurityServicesScopedListWarningData(), ]; -void checkUnnamed451( +void checkUnnamed455( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -19958,7 +20162,7 @@ buildNetworkEdgeSecurityServicesScopedListWarning() { buildCounterNetworkEdgeSecurityServicesScopedListWarning++; if (buildCounterNetworkEdgeSecurityServicesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed451(); + o.data = buildUnnamed455(); o.message = 'foo'; } buildCounterNetworkEdgeSecurityServicesScopedListWarning--; @@ -19971,7 +20175,7 @@ void checkNetworkEdgeSecurityServicesScopedListWarning( buildCounterNetworkEdgeSecurityServicesScopedListWarning++; if (buildCounterNetworkEdgeSecurityServicesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed451(o.data!); + checkUnnamed455(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNetworkEdgeSecurityServicesScopedListWarning--; @@ -19983,7 +20187,7 @@ buildNetworkEdgeSecurityServicesScopedList() { final o = api.NetworkEdgeSecurityServicesScopedList(); buildCounterNetworkEdgeSecurityServicesScopedList++; if (buildCounterNetworkEdgeSecurityServicesScopedList < 3) { - o.networkEdgeSecurityServices = buildUnnamed450(); + o.networkEdgeSecurityServices = buildUnnamed454(); o.warning = buildNetworkEdgeSecurityServicesScopedListWarning(); } buildCounterNetworkEdgeSecurityServicesScopedList--; @@ -19995,18 +20199,18 @@ void checkNetworkEdgeSecurityServicesScopedList( ) { buildCounterNetworkEdgeSecurityServicesScopedList++; if (buildCounterNetworkEdgeSecurityServicesScopedList < 3) { - checkUnnamed450(o.networkEdgeSecurityServices!); + checkUnnamed454(o.networkEdgeSecurityServices!); checkNetworkEdgeSecurityServicesScopedListWarning(o.warning!); } buildCounterNetworkEdgeSecurityServicesScopedList--; } -core.Map buildUnnamed452() => { +core.Map buildUnnamed456() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed452(core.Map o) { +void checkUnnamed456(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -20017,7 +20221,7 @@ api.NetworkEndpoint buildNetworkEndpoint() { final o = api.NetworkEndpoint(); buildCounterNetworkEndpoint++; if (buildCounterNetworkEndpoint < 3) { - o.annotations = buildUnnamed452(); + o.annotations = buildUnnamed456(); o.clientDestinationPort = 42; o.fqdn = 'foo'; o.instance = 'foo'; @@ -20032,7 +20236,7 @@ api.NetworkEndpoint buildNetworkEndpoint() { void checkNetworkEndpoint(api.NetworkEndpoint o) { buildCounterNetworkEndpoint++; if (buildCounterNetworkEndpoint < 3) { - checkUnnamed452(o.annotations!); + checkUnnamed456(o.annotations!); unittest.expect(o.clientDestinationPort!, unittest.equals(42)); unittest.expect(o.fqdn!, unittest.equals('foo')); unittest.expect(o.instance!, unittest.equals('foo')); @@ -20043,12 +20247,12 @@ void checkNetworkEndpoint(api.NetworkEndpoint o) { buildCounterNetworkEndpoint--; } -core.Map buildUnnamed453() => { +core.Map buildUnnamed457() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed453(core.Map o) { +void checkUnnamed457(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -20059,7 +20263,7 @@ api.NetworkEndpointGroup buildNetworkEndpointGroup() { final o = api.NetworkEndpointGroup(); buildCounterNetworkEndpointGroup++; if (buildCounterNetworkEndpointGroup < 3) { - o.annotations = buildUnnamed453(); + o.annotations = buildUnnamed457(); o.appEngine = buildNetworkEndpointGroupAppEngine(); o.cloudFunction = buildNetworkEndpointGroupCloudFunction(); o.cloudRun = buildNetworkEndpointGroupCloudRun(); @@ -20086,7 +20290,7 @@ api.NetworkEndpointGroup buildNetworkEndpointGroup() { void checkNetworkEndpointGroup(api.NetworkEndpointGroup o) { buildCounterNetworkEndpointGroup++; if (buildCounterNetworkEndpointGroup < 3) { - checkUnnamed453(o.annotations!); + checkUnnamed457(o.annotations!); checkNetworkEndpointGroupAppEngine(o.appEngine!); checkNetworkEndpointGroupCloudFunction(o.cloudFunction!); checkNetworkEndpointGroupCloudRun(o.cloudRun!); @@ -20109,13 +20313,13 @@ void checkNetworkEndpointGroup(api.NetworkEndpointGroup o) { buildCounterNetworkEndpointGroup--; } -core.Map buildUnnamed454() => +core.Map buildUnnamed458() => { 'x': buildNetworkEndpointGroupsScopedList(), 'y': buildNetworkEndpointGroupsScopedList(), }; -void checkUnnamed454( +void checkUnnamed458( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -20123,9 +20327,9 @@ void checkUnnamed454( checkNetworkEndpointGroupsScopedList(o['y']!); } -core.List buildUnnamed455() => ['foo', 'foo']; +core.List buildUnnamed459() => ['foo', 'foo']; -void checkUnnamed455(core.List o) { +void checkUnnamed459(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -20156,12 +20360,12 @@ void checkNetworkEndpointGroupAggregatedListWarningData( } core.List -buildUnnamed456() => [ +buildUnnamed460() => [ buildNetworkEndpointGroupAggregatedListWarningData(), buildNetworkEndpointGroupAggregatedListWarningData(), ]; -void checkUnnamed456( +void checkUnnamed460( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -20176,7 +20380,7 @@ buildNetworkEndpointGroupAggregatedListWarning() { buildCounterNetworkEndpointGroupAggregatedListWarning++; if (buildCounterNetworkEndpointGroupAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed456(); + o.data = buildUnnamed460(); o.message = 'foo'; } buildCounterNetworkEndpointGroupAggregatedListWarning--; @@ -20189,7 +20393,7 @@ void checkNetworkEndpointGroupAggregatedListWarning( buildCounterNetworkEndpointGroupAggregatedListWarning++; if (buildCounterNetworkEndpointGroupAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed456(o.data!); + checkUnnamed460(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNetworkEndpointGroupAggregatedListWarning--; @@ -20202,11 +20406,11 @@ buildNetworkEndpointGroupAggregatedList() { buildCounterNetworkEndpointGroupAggregatedList++; if (buildCounterNetworkEndpointGroupAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed454(); + o.items = buildUnnamed458(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed455(); + o.unreachables = buildUnnamed459(); o.warning = buildNetworkEndpointGroupAggregatedListWarning(); } buildCounterNetworkEndpointGroupAggregatedList--; @@ -20219,11 +20423,11 @@ void checkNetworkEndpointGroupAggregatedList( buildCounterNetworkEndpointGroupAggregatedList++; if (buildCounterNetworkEndpointGroupAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed454(o.items!); + checkUnnamed458(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed455(o.unreachables!); + checkUnnamed459(o.unreachables!); checkNetworkEndpointGroupAggregatedListWarning(o.warning!); } buildCounterNetworkEndpointGroupAggregatedList--; @@ -20298,12 +20502,12 @@ void checkNetworkEndpointGroupCloudRun(api.NetworkEndpointGroupCloudRun o) { buildCounterNetworkEndpointGroupCloudRun--; } -core.List buildUnnamed457() => [ +core.List buildUnnamed461() => [ buildNetworkEndpointGroup(), buildNetworkEndpointGroup(), ]; -void checkUnnamed457(core.List o) { +void checkUnnamed461(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpointGroup(o[0]); checkNetworkEndpointGroup(o[1]); @@ -20333,12 +20537,12 @@ void checkNetworkEndpointGroupListWarningData( buildCounterNetworkEndpointGroupListWarningData--; } -core.List buildUnnamed458() => [ +core.List buildUnnamed462() => [ buildNetworkEndpointGroupListWarningData(), buildNetworkEndpointGroupListWarningData(), ]; -void checkUnnamed458(core.List o) { +void checkUnnamed462(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpointGroupListWarningData(o[0]); checkNetworkEndpointGroupListWarningData(o[1]); @@ -20350,7 +20554,7 @@ api.NetworkEndpointGroupListWarning buildNetworkEndpointGroupListWarning() { buildCounterNetworkEndpointGroupListWarning++; if (buildCounterNetworkEndpointGroupListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed458(); + o.data = buildUnnamed462(); o.message = 'foo'; } buildCounterNetworkEndpointGroupListWarning--; @@ -20363,7 +20567,7 @@ void checkNetworkEndpointGroupListWarning( buildCounterNetworkEndpointGroupListWarning++; if (buildCounterNetworkEndpointGroupListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed458(o.data!); + checkUnnamed462(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNetworkEndpointGroupListWarning--; @@ -20375,7 +20579,7 @@ api.NetworkEndpointGroupList buildNetworkEndpointGroupList() { buildCounterNetworkEndpointGroupList++; if (buildCounterNetworkEndpointGroupList < 3) { o.id = 'foo'; - o.items = buildUnnamed457(); + o.items = buildUnnamed461(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -20389,7 +20593,7 @@ void checkNetworkEndpointGroupList(api.NetworkEndpointGroupList o) { buildCounterNetworkEndpointGroupList++; if (buildCounterNetworkEndpointGroupList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed457(o.items!); + checkUnnamed461(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -20423,12 +20627,12 @@ void checkNetworkEndpointGroupPscData(api.NetworkEndpointGroupPscData o) { buildCounterNetworkEndpointGroupPscData--; } -core.List buildUnnamed459() => [ +core.List buildUnnamed463() => [ buildNetworkEndpoint(), buildNetworkEndpoint(), ]; -void checkUnnamed459(core.List o) { +void checkUnnamed463(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpoint(o[0]); checkNetworkEndpoint(o[1]); @@ -20440,7 +20644,7 @@ buildNetworkEndpointGroupsAttachEndpointsRequest() { final o = api.NetworkEndpointGroupsAttachEndpointsRequest(); buildCounterNetworkEndpointGroupsAttachEndpointsRequest++; if (buildCounterNetworkEndpointGroupsAttachEndpointsRequest < 3) { - o.networkEndpoints = buildUnnamed459(); + o.networkEndpoints = buildUnnamed463(); } buildCounterNetworkEndpointGroupsAttachEndpointsRequest--; return o; @@ -20451,17 +20655,17 @@ void checkNetworkEndpointGroupsAttachEndpointsRequest( ) { buildCounterNetworkEndpointGroupsAttachEndpointsRequest++; if (buildCounterNetworkEndpointGroupsAttachEndpointsRequest < 3) { - checkUnnamed459(o.networkEndpoints!); + checkUnnamed463(o.networkEndpoints!); } buildCounterNetworkEndpointGroupsAttachEndpointsRequest--; } -core.List buildUnnamed460() => [ +core.List buildUnnamed464() => [ buildNetworkEndpoint(), buildNetworkEndpoint(), ]; -void checkUnnamed460(core.List o) { +void checkUnnamed464(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpoint(o[0]); checkNetworkEndpoint(o[1]); @@ -20473,7 +20677,7 @@ buildNetworkEndpointGroupsDetachEndpointsRequest() { final o = api.NetworkEndpointGroupsDetachEndpointsRequest(); buildCounterNetworkEndpointGroupsDetachEndpointsRequest++; if (buildCounterNetworkEndpointGroupsDetachEndpointsRequest < 3) { - o.networkEndpoints = buildUnnamed460(); + o.networkEndpoints = buildUnnamed464(); } buildCounterNetworkEndpointGroupsDetachEndpointsRequest--; return o; @@ -20484,7 +20688,7 @@ void checkNetworkEndpointGroupsDetachEndpointsRequest( ) { buildCounterNetworkEndpointGroupsDetachEndpointsRequest++; if (buildCounterNetworkEndpointGroupsDetachEndpointsRequest < 3) { - checkUnnamed460(o.networkEndpoints!); + checkUnnamed464(o.networkEndpoints!); } buildCounterNetworkEndpointGroupsDetachEndpointsRequest--; } @@ -20511,12 +20715,12 @@ void checkNetworkEndpointGroupsListEndpointsRequest( buildCounterNetworkEndpointGroupsListEndpointsRequest--; } -core.List buildUnnamed461() => [ +core.List buildUnnamed465() => [ buildNetworkEndpointWithHealthStatus(), buildNetworkEndpointWithHealthStatus(), ]; -void checkUnnamed461(core.List o) { +void checkUnnamed465(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpointWithHealthStatus(o[0]); checkNetworkEndpointWithHealthStatus(o[1]); @@ -20547,12 +20751,12 @@ void checkNetworkEndpointGroupsListNetworkEndpointsWarningData( } core.List -buildUnnamed462() => [ +buildUnnamed466() => [ buildNetworkEndpointGroupsListNetworkEndpointsWarningData(), buildNetworkEndpointGroupsListNetworkEndpointsWarningData(), ]; -void checkUnnamed462( +void checkUnnamed466( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -20567,7 +20771,7 @@ buildNetworkEndpointGroupsListNetworkEndpointsWarning() { buildCounterNetworkEndpointGroupsListNetworkEndpointsWarning++; if (buildCounterNetworkEndpointGroupsListNetworkEndpointsWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed462(); + o.data = buildUnnamed466(); o.message = 'foo'; } buildCounterNetworkEndpointGroupsListNetworkEndpointsWarning--; @@ -20580,7 +20784,7 @@ void checkNetworkEndpointGroupsListNetworkEndpointsWarning( buildCounterNetworkEndpointGroupsListNetworkEndpointsWarning++; if (buildCounterNetworkEndpointGroupsListNetworkEndpointsWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed462(o.data!); + checkUnnamed466(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNetworkEndpointGroupsListNetworkEndpointsWarning--; @@ -20593,7 +20797,7 @@ buildNetworkEndpointGroupsListNetworkEndpoints() { buildCounterNetworkEndpointGroupsListNetworkEndpoints++; if (buildCounterNetworkEndpointGroupsListNetworkEndpoints < 3) { o.id = 'foo'; - o.items = buildUnnamed461(); + o.items = buildUnnamed465(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.warning = buildNetworkEndpointGroupsListNetworkEndpointsWarning(); @@ -20608,7 +20812,7 @@ void checkNetworkEndpointGroupsListNetworkEndpoints( buildCounterNetworkEndpointGroupsListNetworkEndpoints++; if (buildCounterNetworkEndpointGroupsListNetworkEndpoints < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed461(o.items!); + checkUnnamed465(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); checkNetworkEndpointGroupsListNetworkEndpointsWarning(o.warning!); @@ -20616,12 +20820,12 @@ void checkNetworkEndpointGroupsListNetworkEndpoints( buildCounterNetworkEndpointGroupsListNetworkEndpoints--; } -core.List buildUnnamed463() => [ +core.List buildUnnamed467() => [ buildNetworkEndpointGroup(), buildNetworkEndpointGroup(), ]; -void checkUnnamed463(core.List o) { +void checkUnnamed467(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpointGroup(o[0]); checkNetworkEndpointGroup(o[1]); @@ -20651,12 +20855,12 @@ void checkNetworkEndpointGroupsScopedListWarningData( buildCounterNetworkEndpointGroupsScopedListWarningData--; } -core.List buildUnnamed464() => [ +core.List buildUnnamed468() => [ buildNetworkEndpointGroupsScopedListWarningData(), buildNetworkEndpointGroupsScopedListWarningData(), ]; -void checkUnnamed464( +void checkUnnamed468( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -20671,7 +20875,7 @@ buildNetworkEndpointGroupsScopedListWarning() { buildCounterNetworkEndpointGroupsScopedListWarning++; if (buildCounterNetworkEndpointGroupsScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed464(); + o.data = buildUnnamed468(); o.message = 'foo'; } buildCounterNetworkEndpointGroupsScopedListWarning--; @@ -20684,7 +20888,7 @@ void checkNetworkEndpointGroupsScopedListWarning( buildCounterNetworkEndpointGroupsScopedListWarning++; if (buildCounterNetworkEndpointGroupsScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed464(o.data!); + checkUnnamed468(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNetworkEndpointGroupsScopedListWarning--; @@ -20695,7 +20899,7 @@ api.NetworkEndpointGroupsScopedList buildNetworkEndpointGroupsScopedList() { final o = api.NetworkEndpointGroupsScopedList(); buildCounterNetworkEndpointGroupsScopedList++; if (buildCounterNetworkEndpointGroupsScopedList < 3) { - o.networkEndpointGroups = buildUnnamed463(); + o.networkEndpointGroups = buildUnnamed467(); o.warning = buildNetworkEndpointGroupsScopedListWarning(); } buildCounterNetworkEndpointGroupsScopedList--; @@ -20707,18 +20911,18 @@ void checkNetworkEndpointGroupsScopedList( ) { buildCounterNetworkEndpointGroupsScopedList++; if (buildCounterNetworkEndpointGroupsScopedList < 3) { - checkUnnamed463(o.networkEndpointGroups!); + checkUnnamed467(o.networkEndpointGroups!); checkNetworkEndpointGroupsScopedListWarning(o.warning!); } buildCounterNetworkEndpointGroupsScopedList--; } -core.List buildUnnamed465() => [ +core.List buildUnnamed469() => [ buildHealthStatusForNetworkEndpoint(), buildHealthStatusForNetworkEndpoint(), ]; -void checkUnnamed465(core.List o) { +void checkUnnamed469(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatusForNetworkEndpoint(o[0]); checkHealthStatusForNetworkEndpoint(o[1]); @@ -20729,7 +20933,7 @@ api.NetworkEndpointWithHealthStatus buildNetworkEndpointWithHealthStatus() { final o = api.NetworkEndpointWithHealthStatus(); buildCounterNetworkEndpointWithHealthStatus++; if (buildCounterNetworkEndpointWithHealthStatus < 3) { - o.healths = buildUnnamed465(); + o.healths = buildUnnamed469(); o.networkEndpoint = buildNetworkEndpoint(); } buildCounterNetworkEndpointWithHealthStatus--; @@ -20741,26 +20945,26 @@ void checkNetworkEndpointWithHealthStatus( ) { buildCounterNetworkEndpointWithHealthStatus++; if (buildCounterNetworkEndpointWithHealthStatus < 3) { - checkUnnamed465(o.healths!); + checkUnnamed469(o.healths!); checkNetworkEndpoint(o.networkEndpoint!); } buildCounterNetworkEndpointWithHealthStatus--; } -core.Map buildUnnamed466() => { +core.Map buildUnnamed470() => { 'x': buildFirewallPoliciesScopedList(), 'y': buildFirewallPoliciesScopedList(), }; -void checkUnnamed466(core.Map o) { +void checkUnnamed470(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPoliciesScopedList(o['x']!); checkFirewallPoliciesScopedList(o['y']!); } -core.List buildUnnamed467() => ['foo', 'foo']; +core.List buildUnnamed471() => ['foo', 'foo']; -void checkUnnamed467(core.List o) { +void checkUnnamed471(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -20791,12 +20995,12 @@ void checkNetworkFirewallPolicyAggregatedListWarningData( } core.List -buildUnnamed468() => [ +buildUnnamed472() => [ buildNetworkFirewallPolicyAggregatedListWarningData(), buildNetworkFirewallPolicyAggregatedListWarningData(), ]; -void checkUnnamed468( +void checkUnnamed472( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -20811,7 +21015,7 @@ buildNetworkFirewallPolicyAggregatedListWarning() { buildCounterNetworkFirewallPolicyAggregatedListWarning++; if (buildCounterNetworkFirewallPolicyAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed468(); + o.data = buildUnnamed472(); o.message = 'foo'; } buildCounterNetworkFirewallPolicyAggregatedListWarning--; @@ -20824,7 +21028,7 @@ void checkNetworkFirewallPolicyAggregatedListWarning( buildCounterNetworkFirewallPolicyAggregatedListWarning++; if (buildCounterNetworkFirewallPolicyAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed468(o.data!); + checkUnnamed472(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNetworkFirewallPolicyAggregatedListWarning--; @@ -20837,11 +21041,11 @@ buildNetworkFirewallPolicyAggregatedList() { buildCounterNetworkFirewallPolicyAggregatedList++; if (buildCounterNetworkFirewallPolicyAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed466(); + o.items = buildUnnamed470(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed467(); + o.unreachables = buildUnnamed471(); o.warning = buildNetworkFirewallPolicyAggregatedListWarning(); } buildCounterNetworkFirewallPolicyAggregatedList--; @@ -20854,44 +21058,44 @@ void checkNetworkFirewallPolicyAggregatedList( buildCounterNetworkFirewallPolicyAggregatedList++; if (buildCounterNetworkFirewallPolicyAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed466(o.items!); + checkUnnamed470(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed467(o.unreachables!); + checkUnnamed471(o.unreachables!); checkNetworkFirewallPolicyAggregatedListWarning(o.warning!); } buildCounterNetworkFirewallPolicyAggregatedList--; } -core.List buildUnnamed469() => [ +core.List buildUnnamed473() => [ buildAccessConfig(), buildAccessConfig(), ]; -void checkUnnamed469(core.List o) { +void checkUnnamed473(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAccessConfig(o[0]); checkAccessConfig(o[1]); } -core.List buildUnnamed470() => [ +core.List buildUnnamed474() => [ buildAliasIpRange(), buildAliasIpRange(), ]; -void checkUnnamed470(core.List o) { +void checkUnnamed474(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAliasIpRange(o[0]); checkAliasIpRange(o[1]); } -core.List buildUnnamed471() => [ +core.List buildUnnamed475() => [ buildAccessConfig(), buildAccessConfig(), ]; -void checkUnnamed471(core.List o) { +void checkUnnamed475(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAccessConfig(o[0]); checkAccessConfig(o[1]); @@ -20902,11 +21106,11 @@ api.NetworkInterface buildNetworkInterface() { final o = api.NetworkInterface(); buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - o.accessConfigs = buildUnnamed469(); - o.aliasIpRanges = buildUnnamed470(); + o.accessConfigs = buildUnnamed473(); + o.aliasIpRanges = buildUnnamed474(); o.fingerprint = 'foo'; o.internalIpv6PrefixLength = 42; - o.ipv6AccessConfigs = buildUnnamed471(); + o.ipv6AccessConfigs = buildUnnamed475(); o.ipv6AccessType = 'foo'; o.ipv6Address = 'foo'; o.kind = 'foo'; @@ -20915,9 +21119,11 @@ api.NetworkInterface buildNetworkInterface() { o.networkAttachment = 'foo'; o.networkIP = 'foo'; o.nicType = 'foo'; + o.parentNicName = 'foo'; o.queueCount = 42; o.stackType = 'foo'; o.subnetwork = 'foo'; + o.vlan = 42; } buildCounterNetworkInterface--; return o; @@ -20926,11 +21132,11 @@ api.NetworkInterface buildNetworkInterface() { void checkNetworkInterface(api.NetworkInterface o) { buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - checkUnnamed469(o.accessConfigs!); - checkUnnamed470(o.aliasIpRanges!); + checkUnnamed473(o.accessConfigs!); + checkUnnamed474(o.aliasIpRanges!); unittest.expect(o.fingerprint!, unittest.equals('foo')); unittest.expect(o.internalIpv6PrefixLength!, unittest.equals(42)); - checkUnnamed471(o.ipv6AccessConfigs!); + checkUnnamed475(o.ipv6AccessConfigs!); unittest.expect(o.ipv6AccessType!, unittest.equals('foo')); unittest.expect(o.ipv6Address!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); @@ -20939,16 +21145,18 @@ void checkNetworkInterface(api.NetworkInterface o) { unittest.expect(o.networkAttachment!, unittest.equals('foo')); unittest.expect(o.networkIP!, unittest.equals('foo')); unittest.expect(o.nicType!, unittest.equals('foo')); + unittest.expect(o.parentNicName!, unittest.equals('foo')); unittest.expect(o.queueCount!, unittest.equals(42)); unittest.expect(o.stackType!, unittest.equals('foo')); unittest.expect(o.subnetwork!, unittest.equals('foo')); + unittest.expect(o.vlan!, unittest.equals(42)); } buildCounterNetworkInterface--; } -core.List buildUnnamed472() => [buildNetwork(), buildNetwork()]; +core.List buildUnnamed476() => [buildNetwork(), buildNetwork()]; -void checkUnnamed472(core.List o) { +void checkUnnamed476(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetwork(o[0]); checkNetwork(o[1]); @@ -20975,12 +21183,12 @@ void checkNetworkListWarningData(api.NetworkListWarningData o) { buildCounterNetworkListWarningData--; } -core.List buildUnnamed473() => [ +core.List buildUnnamed477() => [ buildNetworkListWarningData(), buildNetworkListWarningData(), ]; -void checkUnnamed473(core.List o) { +void checkUnnamed477(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkListWarningData(o[0]); checkNetworkListWarningData(o[1]); @@ -20992,7 +21200,7 @@ api.NetworkListWarning buildNetworkListWarning() { buildCounterNetworkListWarning++; if (buildCounterNetworkListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed473(); + o.data = buildUnnamed477(); o.message = 'foo'; } buildCounterNetworkListWarning--; @@ -21003,7 +21211,7 @@ void checkNetworkListWarning(api.NetworkListWarning o) { buildCounterNetworkListWarning++; if (buildCounterNetworkListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed473(o.data!); + checkUnnamed477(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNetworkListWarning--; @@ -21015,7 +21223,7 @@ api.NetworkList buildNetworkList() { buildCounterNetworkList++; if (buildCounterNetworkList < 3) { o.id = 'foo'; - o.items = buildUnnamed472(); + o.items = buildUnnamed476(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -21029,7 +21237,7 @@ void checkNetworkList(api.NetworkList o) { buildCounterNetworkList++; if (buildCounterNetworkList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed472(o.items!); + checkUnnamed476(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -21038,12 +21246,12 @@ void checkNetworkList(api.NetworkList o) { buildCounterNetworkList--; } -core.Map buildUnnamed474() => { +core.Map buildUnnamed478() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed474(core.Map o) { +void checkUnnamed478(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -21054,7 +21262,7 @@ api.NetworkParams buildNetworkParams() { final o = api.NetworkParams(); buildCounterNetworkParams++; if (buildCounterNetworkParams < 3) { - o.resourceManagerTags = buildUnnamed474(); + o.resourceManagerTags = buildUnnamed478(); } buildCounterNetworkParams--; return o; @@ -21063,7 +21271,7 @@ api.NetworkParams buildNetworkParams() { void checkNetworkParams(api.NetworkParams o) { buildCounterNetworkParams++; if (buildCounterNetworkParams < 3) { - checkUnnamed474(o.resourceManagerTags!); + checkUnnamed478(o.resourceManagerTags!); } buildCounterNetworkParams--; } @@ -21074,6 +21282,7 @@ api.NetworkPeering buildNetworkPeering() { buildCounterNetworkPeering++; if (buildCounterNetworkPeering < 3) { o.autoCreateRoutes = true; + o.connectionStatus = buildNetworkPeeringConnectionStatus(); o.exchangeSubnetRoutes = true; o.exportCustomRoutes = true; o.exportSubnetRoutesWithPublicIp = true; @@ -21085,6 +21294,7 @@ api.NetworkPeering buildNetworkPeering() { o.stackType = 'foo'; o.state = 'foo'; o.stateDetails = 'foo'; + o.updateStrategy = 'foo'; } buildCounterNetworkPeering--; return o; @@ -21094,6 +21304,7 @@ void checkNetworkPeering(api.NetworkPeering o) { buildCounterNetworkPeering++; if (buildCounterNetworkPeering < 3) { unittest.expect(o.autoCreateRoutes!, unittest.isTrue); + checkNetworkPeeringConnectionStatus(o.connectionStatus!); unittest.expect(o.exchangeSubnetRoutes!, unittest.isTrue); unittest.expect(o.exportCustomRoutes!, unittest.isTrue); unittest.expect(o.exportSubnetRoutesWithPublicIp!, unittest.isTrue); @@ -21105,10 +21316,91 @@ void checkNetworkPeering(api.NetworkPeering o) { unittest.expect(o.stackType!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.stateDetails!, unittest.equals('foo')); + unittest.expect(o.updateStrategy!, unittest.equals('foo')); } buildCounterNetworkPeering--; } +core.int buildCounterNetworkPeeringConnectionStatus = 0; +api.NetworkPeeringConnectionStatus buildNetworkPeeringConnectionStatus() { + final o = api.NetworkPeeringConnectionStatus(); + buildCounterNetworkPeeringConnectionStatus++; + if (buildCounterNetworkPeeringConnectionStatus < 3) { + o.consensusState = buildNetworkPeeringConnectionStatusConsensusState(); + o.trafficConfiguration = + buildNetworkPeeringConnectionStatusTrafficConfiguration(); + o.updateStrategy = 'foo'; + } + buildCounterNetworkPeeringConnectionStatus--; + return o; +} + +void checkNetworkPeeringConnectionStatus(api.NetworkPeeringConnectionStatus o) { + buildCounterNetworkPeeringConnectionStatus++; + if (buildCounterNetworkPeeringConnectionStatus < 3) { + checkNetworkPeeringConnectionStatusConsensusState(o.consensusState!); + checkNetworkPeeringConnectionStatusTrafficConfiguration( + o.trafficConfiguration!, + ); + unittest.expect(o.updateStrategy!, unittest.equals('foo')); + } + buildCounterNetworkPeeringConnectionStatus--; +} + +core.int buildCounterNetworkPeeringConnectionStatusConsensusState = 0; +api.NetworkPeeringConnectionStatusConsensusState +buildNetworkPeeringConnectionStatusConsensusState() { + final o = api.NetworkPeeringConnectionStatusConsensusState(); + buildCounterNetworkPeeringConnectionStatusConsensusState++; + if (buildCounterNetworkPeeringConnectionStatusConsensusState < 3) { + o.deleteStatus = 'foo'; + o.updateStatus = 'foo'; + } + buildCounterNetworkPeeringConnectionStatusConsensusState--; + return o; +} + +void checkNetworkPeeringConnectionStatusConsensusState( + api.NetworkPeeringConnectionStatusConsensusState o, +) { + buildCounterNetworkPeeringConnectionStatusConsensusState++; + if (buildCounterNetworkPeeringConnectionStatusConsensusState < 3) { + unittest.expect(o.deleteStatus!, unittest.equals('foo')); + unittest.expect(o.updateStatus!, unittest.equals('foo')); + } + buildCounterNetworkPeeringConnectionStatusConsensusState--; +} + +core.int buildCounterNetworkPeeringConnectionStatusTrafficConfiguration = 0; +api.NetworkPeeringConnectionStatusTrafficConfiguration +buildNetworkPeeringConnectionStatusTrafficConfiguration() { + final o = api.NetworkPeeringConnectionStatusTrafficConfiguration(); + buildCounterNetworkPeeringConnectionStatusTrafficConfiguration++; + if (buildCounterNetworkPeeringConnectionStatusTrafficConfiguration < 3) { + o.exportCustomRoutesToPeer = true; + o.exportSubnetRoutesWithPublicIpToPeer = true; + o.importCustomRoutesFromPeer = true; + o.importSubnetRoutesWithPublicIpFromPeer = true; + o.stackType = 'foo'; + } + buildCounterNetworkPeeringConnectionStatusTrafficConfiguration--; + return o; +} + +void checkNetworkPeeringConnectionStatusTrafficConfiguration( + api.NetworkPeeringConnectionStatusTrafficConfiguration o, +) { + buildCounterNetworkPeeringConnectionStatusTrafficConfiguration++; + if (buildCounterNetworkPeeringConnectionStatusTrafficConfiguration < 3) { + unittest.expect(o.exportCustomRoutesToPeer!, unittest.isTrue); + unittest.expect(o.exportSubnetRoutesWithPublicIpToPeer!, unittest.isTrue); + unittest.expect(o.importCustomRoutesFromPeer!, unittest.isTrue); + unittest.expect(o.importSubnetRoutesWithPublicIpFromPeer!, unittest.isTrue); + unittest.expect(o.stackType!, unittest.equals('foo')); + } + buildCounterNetworkPeeringConnectionStatusTrafficConfiguration--; +} + core.int buildCounterNetworkPerformanceConfig = 0; api.NetworkPerformanceConfig buildNetworkPerformanceConfig() { final o = api.NetworkPerformanceConfig(); @@ -21140,6 +21432,7 @@ api.NetworkProfile buildNetworkProfile() { o.kind = 'foo'; o.location = buildNetworkProfileLocation(); o.name = 'foo'; + o.profileType = buildNetworkProfileProfileType(); o.selfLink = 'foo'; o.selfLinkWithId = 'foo'; } @@ -21157,6 +21450,7 @@ void checkNetworkProfile(api.NetworkProfile o) { unittest.expect(o.kind!, unittest.equals('foo')); checkNetworkProfileLocation(o.location!); unittest.expect(o.name!, unittest.equals('foo')); + checkNetworkProfileProfileType(o.profileType!); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.selfLinkWithId!, unittest.equals('foo')); } @@ -21184,49 +21478,49 @@ void checkNetworkProfileLocation(api.NetworkProfileLocation o) { buildCounterNetworkProfileLocation--; } -core.List buildUnnamed475() => ['foo', 'foo']; +core.List buildUnnamed479() => ['foo', 'foo']; -void checkUnnamed475(core.List o) { +void checkUnnamed479(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed476() => ['foo', 'foo']; +core.List buildUnnamed480() => ['foo', 'foo']; -void checkUnnamed476(core.List o) { +void checkUnnamed480(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed477() => ['foo', 'foo']; +core.List buildUnnamed481() => ['foo', 'foo']; -void checkUnnamed477(core.List o) { +void checkUnnamed481(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed478() => ['foo', 'foo']; +core.List buildUnnamed482() => ['foo', 'foo']; -void checkUnnamed478(core.List o) { +void checkUnnamed482(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed479() => ['foo', 'foo']; +core.List buildUnnamed483() => ['foo', 'foo']; -void checkUnnamed479(core.List o) { +void checkUnnamed483(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed480() => ['foo', 'foo']; +core.List buildUnnamed484() => ['foo', 'foo']; -void checkUnnamed480(core.List o) { +void checkUnnamed484(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -21237,7 +21531,7 @@ api.NetworkProfileNetworkFeatures buildNetworkProfileNetworkFeatures() { final o = api.NetworkProfileNetworkFeatures(); buildCounterNetworkProfileNetworkFeatures++; if (buildCounterNetworkProfileNetworkFeatures < 3) { - o.addressPurposes = buildUnnamed475(); + o.addressPurposes = buildUnnamed479(); o.allowAliasIpRanges = 'foo'; o.allowAutoModeSubnet = 'foo'; o.allowClassDFirewalls = 'foo'; @@ -21259,11 +21553,11 @@ api.NetworkProfileNetworkFeatures buildNetworkProfileNetworkFeatures() { o.allowSubInterfaces = 'foo'; o.allowVpcPeering = 'foo'; o.allowVpn = 'foo'; - o.interfaceTypes = buildUnnamed476(); - o.subnetPurposes = buildUnnamed477(); - o.subnetStackTypes = buildUnnamed478(); - o.subnetworkPurposes = buildUnnamed479(); - o.subnetworkStackTypes = buildUnnamed480(); + o.interfaceTypes = buildUnnamed480(); + o.subnetPurposes = buildUnnamed481(); + o.subnetStackTypes = buildUnnamed482(); + o.subnetworkPurposes = buildUnnamed483(); + o.subnetworkStackTypes = buildUnnamed484(); o.unicast = 'foo'; } buildCounterNetworkProfileNetworkFeatures--; @@ -21273,7 +21567,7 @@ api.NetworkProfileNetworkFeatures buildNetworkProfileNetworkFeatures() { void checkNetworkProfileNetworkFeatures(api.NetworkProfileNetworkFeatures o) { buildCounterNetworkProfileNetworkFeatures++; if (buildCounterNetworkProfileNetworkFeatures < 3) { - checkUnnamed475(o.addressPurposes!); + checkUnnamed479(o.addressPurposes!); unittest.expect(o.allowAliasIpRanges!, unittest.equals('foo')); unittest.expect(o.allowAutoModeSubnet!, unittest.equals('foo')); unittest.expect(o.allowClassDFirewalls!, unittest.equals('foo')); @@ -21295,30 +21589,55 @@ void checkNetworkProfileNetworkFeatures(api.NetworkProfileNetworkFeatures o) { unittest.expect(o.allowSubInterfaces!, unittest.equals('foo')); unittest.expect(o.allowVpcPeering!, unittest.equals('foo')); unittest.expect(o.allowVpn!, unittest.equals('foo')); - checkUnnamed476(o.interfaceTypes!); - checkUnnamed477(o.subnetPurposes!); - checkUnnamed478(o.subnetStackTypes!); - checkUnnamed479(o.subnetworkPurposes!); - checkUnnamed480(o.subnetworkStackTypes!); + checkUnnamed480(o.interfaceTypes!); + checkUnnamed481(o.subnetPurposes!); + checkUnnamed482(o.subnetStackTypes!); + checkUnnamed483(o.subnetworkPurposes!); + checkUnnamed484(o.subnetworkStackTypes!); unittest.expect(o.unicast!, unittest.equals('foo')); } buildCounterNetworkProfileNetworkFeatures--; } -core.List buildUnnamed481() => [ +core.int buildCounterNetworkProfileProfileType = 0; +api.NetworkProfileProfileType buildNetworkProfileProfileType() { + final o = api.NetworkProfileProfileType(); + buildCounterNetworkProfileProfileType++; + if (buildCounterNetworkProfileProfileType < 3) { + o.networkType = 'foo'; + o.rdmaSubtype = 'foo'; + o.ullSubtype = 'foo'; + o.vpcSubtype = 'foo'; + } + buildCounterNetworkProfileProfileType--; + return o; +} + +void checkNetworkProfileProfileType(api.NetworkProfileProfileType o) { + buildCounterNetworkProfileProfileType++; + if (buildCounterNetworkProfileProfileType < 3) { + unittest.expect(o.networkType!, unittest.equals('foo')); + unittest.expect(o.rdmaSubtype!, unittest.equals('foo')); + unittest.expect(o.ullSubtype!, unittest.equals('foo')); + unittest.expect(o.vpcSubtype!, unittest.equals('foo')); + } + buildCounterNetworkProfileProfileType--; +} + +core.List buildUnnamed485() => [ buildNetworkProfile(), buildNetworkProfile(), ]; -void checkUnnamed481(core.List o) { +void checkUnnamed485(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkProfile(o[0]); checkNetworkProfile(o[1]); } -core.List buildUnnamed482() => ['foo', 'foo']; +core.List buildUnnamed486() => ['foo', 'foo']; -void checkUnnamed482(core.List o) { +void checkUnnamed486(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -21348,12 +21667,12 @@ void checkNetworkProfilesListResponseWarningData( buildCounterNetworkProfilesListResponseWarningData--; } -core.List buildUnnamed483() => [ +core.List buildUnnamed487() => [ buildNetworkProfilesListResponseWarningData(), buildNetworkProfilesListResponseWarningData(), ]; -void checkUnnamed483(core.List o) { +void checkUnnamed487(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkProfilesListResponseWarningData(o[0]); checkNetworkProfilesListResponseWarningData(o[1]); @@ -21366,7 +21685,7 @@ buildNetworkProfilesListResponseWarning() { buildCounterNetworkProfilesListResponseWarning++; if (buildCounterNetworkProfilesListResponseWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed483(); + o.data = buildUnnamed487(); o.message = 'foo'; } buildCounterNetworkProfilesListResponseWarning--; @@ -21379,7 +21698,7 @@ void checkNetworkProfilesListResponseWarning( buildCounterNetworkProfilesListResponseWarning++; if (buildCounterNetworkProfilesListResponseWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed483(o.data!); + checkUnnamed487(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNetworkProfilesListResponseWarning--; @@ -21392,11 +21711,11 @@ api.NetworkProfilesListResponse buildNetworkProfilesListResponse() { if (buildCounterNetworkProfilesListResponse < 3) { o.etag = 'foo'; o.id = 'foo'; - o.items = buildUnnamed481(); + o.items = buildUnnamed485(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed482(); + o.unreachables = buildUnnamed486(); o.warning = buildNetworkProfilesListResponseWarning(); } buildCounterNetworkProfilesListResponse--; @@ -21408,11 +21727,11 @@ void checkNetworkProfilesListResponse(api.NetworkProfilesListResponse o) { if (buildCounterNetworkProfilesListResponse < 3) { unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed481(o.items!); + checkUnnamed485(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed482(o.unreachables!); + checkUnnamed486(o.unreachables!); checkNetworkProfilesListResponseWarning(o.warning!); } buildCounterNetworkProfilesListResponse--; @@ -21473,12 +21792,12 @@ void checkNetworksAddPeeringRequest(api.NetworksAddPeeringRequest o) { } core.List -buildUnnamed484() => [ +buildUnnamed488() => [ buildNetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy(), buildNetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy(), ]; -void checkUnnamed484( +void checkUnnamed488( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -21486,9 +21805,9 @@ void checkUnnamed484( checkNetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy(o[1]); } -core.List buildUnnamed485() => [buildFirewall(), buildFirewall()]; +core.List buildUnnamed489() => [buildFirewall(), buildFirewall()]; -void checkUnnamed485(core.List o) { +void checkUnnamed489(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewall(o[0]); checkFirewall(o[1]); @@ -21500,8 +21819,8 @@ buildNetworksGetEffectiveFirewallsResponse() { final o = api.NetworksGetEffectiveFirewallsResponse(); buildCounterNetworksGetEffectiveFirewallsResponse++; if (buildCounterNetworksGetEffectiveFirewallsResponse < 3) { - o.firewallPolicys = buildUnnamed484(); - o.firewalls = buildUnnamed485(); + o.firewallPolicys = buildUnnamed488(); + o.firewalls = buildUnnamed489(); } buildCounterNetworksGetEffectiveFirewallsResponse--; return o; @@ -21512,29 +21831,29 @@ void checkNetworksGetEffectiveFirewallsResponse( ) { buildCounterNetworksGetEffectiveFirewallsResponse++; if (buildCounterNetworksGetEffectiveFirewallsResponse < 3) { - checkUnnamed484(o.firewallPolicys!); - checkUnnamed485(o.firewalls!); + checkUnnamed488(o.firewallPolicys!); + checkUnnamed489(o.firewalls!); } buildCounterNetworksGetEffectiveFirewallsResponse--; } -core.List buildUnnamed486() => [ +core.List buildUnnamed490() => [ buildFirewallPolicyRule(), buildFirewallPolicyRule(), ]; -void checkUnnamed486(core.List o) { +void checkUnnamed490(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicyRule(o[0]); checkFirewallPolicyRule(o[1]); } -core.List buildUnnamed487() => [ +core.List buildUnnamed491() => [ buildFirewallPolicyRule(), buildFirewallPolicyRule(), ]; -void checkUnnamed487(core.List o) { +void checkUnnamed491(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicyRule(o[0]); checkFirewallPolicyRule(o[1]); @@ -21550,9 +21869,9 @@ buildNetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy() { 3) { o.displayName = 'foo'; o.name = 'foo'; - o.packetMirroringRules = buildUnnamed486(); + o.packetMirroringRules = buildUnnamed490(); o.priority = 42; - o.rules = buildUnnamed487(); + o.rules = buildUnnamed491(); o.shortName = 'foo'; o.type = 'foo'; } @@ -21568,9 +21887,9 @@ void checkNetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy( 3) { unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed486(o.packetMirroringRules!); + checkUnnamed490(o.packetMirroringRules!); unittest.expect(o.priority!, unittest.equals(42)); - checkUnnamed487(o.rules!); + checkUnnamed491(o.rules!); unittest.expect(o.shortName!, unittest.equals('foo')); unittest.expect(o.type!, unittest.equals('foo')); } @@ -21596,6 +21915,28 @@ void checkNetworksRemovePeeringRequest(api.NetworksRemovePeeringRequest o) { buildCounterNetworksRemovePeeringRequest--; } +core.int buildCounterNetworksRequestRemovePeeringRequest = 0; +api.NetworksRequestRemovePeeringRequest +buildNetworksRequestRemovePeeringRequest() { + final o = api.NetworksRequestRemovePeeringRequest(); + buildCounterNetworksRequestRemovePeeringRequest++; + if (buildCounterNetworksRequestRemovePeeringRequest < 3) { + o.name = 'foo'; + } + buildCounterNetworksRequestRemovePeeringRequest--; + return o; +} + +void checkNetworksRequestRemovePeeringRequest( + api.NetworksRequestRemovePeeringRequest o, +) { + buildCounterNetworksRequestRemovePeeringRequest++; + if (buildCounterNetworksRequestRemovePeeringRequest < 3) { + unittest.expect(o.name!, unittest.equals('foo')); + } + buildCounterNetworksRequestRemovePeeringRequest--; +} + core.int buildCounterNetworksUpdatePeeringRequest = 0; api.NetworksUpdatePeeringRequest buildNetworksUpdatePeeringRequest() { final o = api.NetworksUpdatePeeringRequest(); @@ -21666,20 +22007,20 @@ void checkNodeGroup(api.NodeGroup o) { buildCounterNodeGroup--; } -core.Map buildUnnamed488() => { +core.Map buildUnnamed492() => { 'x': buildNodeGroupsScopedList(), 'y': buildNodeGroupsScopedList(), }; -void checkUnnamed488(core.Map o) { +void checkUnnamed492(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroupsScopedList(o['x']!); checkNodeGroupsScopedList(o['y']!); } -core.List buildUnnamed489() => ['foo', 'foo']; +core.List buildUnnamed493() => ['foo', 'foo']; -void checkUnnamed489(core.List o) { +void checkUnnamed493(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -21709,12 +22050,12 @@ void checkNodeGroupAggregatedListWarningData( buildCounterNodeGroupAggregatedListWarningData--; } -core.List buildUnnamed490() => [ +core.List buildUnnamed494() => [ buildNodeGroupAggregatedListWarningData(), buildNodeGroupAggregatedListWarningData(), ]; -void checkUnnamed490(core.List o) { +void checkUnnamed494(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroupAggregatedListWarningData(o[0]); checkNodeGroupAggregatedListWarningData(o[1]); @@ -21726,7 +22067,7 @@ api.NodeGroupAggregatedListWarning buildNodeGroupAggregatedListWarning() { buildCounterNodeGroupAggregatedListWarning++; if (buildCounterNodeGroupAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed490(); + o.data = buildUnnamed494(); o.message = 'foo'; } buildCounterNodeGroupAggregatedListWarning--; @@ -21737,7 +22078,7 @@ void checkNodeGroupAggregatedListWarning(api.NodeGroupAggregatedListWarning o) { buildCounterNodeGroupAggregatedListWarning++; if (buildCounterNodeGroupAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed490(o.data!); + checkUnnamed494(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNodeGroupAggregatedListWarning--; @@ -21749,11 +22090,11 @@ api.NodeGroupAggregatedList buildNodeGroupAggregatedList() { buildCounterNodeGroupAggregatedList++; if (buildCounterNodeGroupAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed488(); + o.items = buildUnnamed492(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed489(); + o.unreachables = buildUnnamed493(); o.warning = buildNodeGroupAggregatedListWarning(); } buildCounterNodeGroupAggregatedList--; @@ -21764,11 +22105,11 @@ void checkNodeGroupAggregatedList(api.NodeGroupAggregatedList o) { buildCounterNodeGroupAggregatedList++; if (buildCounterNodeGroupAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed488(o.items!); + checkUnnamed492(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed489(o.unreachables!); + checkUnnamed493(o.unreachables!); checkNodeGroupAggregatedListWarning(o.warning!); } buildCounterNodeGroupAggregatedList--; @@ -21797,12 +22138,12 @@ void checkNodeGroupAutoscalingPolicy(api.NodeGroupAutoscalingPolicy o) { buildCounterNodeGroupAutoscalingPolicy--; } -core.List buildUnnamed491() => [ +core.List buildUnnamed495() => [ buildNodeGroup(), buildNodeGroup(), ]; -void checkUnnamed491(core.List o) { +void checkUnnamed495(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroup(o[0]); checkNodeGroup(o[1]); @@ -21829,12 +22170,12 @@ void checkNodeGroupListWarningData(api.NodeGroupListWarningData o) { buildCounterNodeGroupListWarningData--; } -core.List buildUnnamed492() => [ +core.List buildUnnamed496() => [ buildNodeGroupListWarningData(), buildNodeGroupListWarningData(), ]; -void checkUnnamed492(core.List o) { +void checkUnnamed496(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroupListWarningData(o[0]); checkNodeGroupListWarningData(o[1]); @@ -21846,7 +22187,7 @@ api.NodeGroupListWarning buildNodeGroupListWarning() { buildCounterNodeGroupListWarning++; if (buildCounterNodeGroupListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed492(); + o.data = buildUnnamed496(); o.message = 'foo'; } buildCounterNodeGroupListWarning--; @@ -21857,7 +22198,7 @@ void checkNodeGroupListWarning(api.NodeGroupListWarning o) { buildCounterNodeGroupListWarning++; if (buildCounterNodeGroupListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed492(o.data!); + checkUnnamed496(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNodeGroupListWarning--; @@ -21869,7 +22210,7 @@ api.NodeGroupList buildNodeGroupList() { buildCounterNodeGroupList++; if (buildCounterNodeGroupList < 3) { o.id = 'foo'; - o.items = buildUnnamed491(); + o.items = buildUnnamed495(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -21883,7 +22224,7 @@ void checkNodeGroupList(api.NodeGroupList o) { buildCounterNodeGroupList++; if (buildCounterNodeGroupList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed491(o.items!); + checkUnnamed495(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -21913,42 +22254,42 @@ void checkNodeGroupMaintenanceWindow(api.NodeGroupMaintenanceWindow o) { buildCounterNodeGroupMaintenanceWindow--; } -core.List buildUnnamed493() => [ +core.List buildUnnamed497() => [ buildAcceleratorConfig(), buildAcceleratorConfig(), ]; -void checkUnnamed493(core.List o) { +void checkUnnamed497(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -core.List buildUnnamed494() => [ +core.List buildUnnamed498() => [ buildLocalDisk(), buildLocalDisk(), ]; -void checkUnnamed494(core.List o) { +void checkUnnamed498(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLocalDisk(o[0]); checkLocalDisk(o[1]); } -core.List buildUnnamed495() => [ +core.List buildUnnamed499() => [ buildInstanceConsumptionData(), buildInstanceConsumptionData(), ]; -void checkUnnamed495(core.List o) { +void checkUnnamed499(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceConsumptionData(o[0]); checkInstanceConsumptionData(o[1]); } -core.List buildUnnamed496() => ['foo', 'foo']; +core.List buildUnnamed500() => ['foo', 'foo']; -void checkUnnamed496(core.List o) { +void checkUnnamed500(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -21959,12 +22300,12 @@ api.NodeGroupNode buildNodeGroupNode() { final o = api.NodeGroupNode(); buildCounterNodeGroupNode++; if (buildCounterNodeGroupNode < 3) { - o.accelerators = buildUnnamed493(); + o.accelerators = buildUnnamed497(); o.consumedResources = buildInstanceConsumptionInfo(); o.cpuOvercommitType = 'foo'; - o.disks = buildUnnamed494(); - o.instanceConsumptionData = buildUnnamed495(); - o.instances = buildUnnamed496(); + o.disks = buildUnnamed498(); + o.instanceConsumptionData = buildUnnamed499(); + o.instances = buildUnnamed500(); o.name = 'foo'; o.nodeType = 'foo'; o.satisfiesPzs = true; @@ -21981,12 +22322,12 @@ api.NodeGroupNode buildNodeGroupNode() { void checkNodeGroupNode(api.NodeGroupNode o) { buildCounterNodeGroupNode++; if (buildCounterNodeGroupNode < 3) { - checkUnnamed493(o.accelerators!); + checkUnnamed497(o.accelerators!); checkInstanceConsumptionInfo(o.consumedResources!); unittest.expect(o.cpuOvercommitType!, unittest.equals('foo')); - checkUnnamed494(o.disks!); - checkUnnamed495(o.instanceConsumptionData!); - checkUnnamed496(o.instances!); + checkUnnamed498(o.disks!); + checkUnnamed499(o.instanceConsumptionData!); + checkUnnamed500(o.instances!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.nodeType!, unittest.equals('foo')); unittest.expect(o.satisfiesPzs!, unittest.isTrue); @@ -22018,9 +22359,9 @@ void checkNodeGroupsAddNodesRequest(api.NodeGroupsAddNodesRequest o) { buildCounterNodeGroupsAddNodesRequest--; } -core.List buildUnnamed497() => ['foo', 'foo']; +core.List buildUnnamed501() => ['foo', 'foo']; -void checkUnnamed497(core.List o) { +void checkUnnamed501(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -22031,7 +22372,7 @@ api.NodeGroupsDeleteNodesRequest buildNodeGroupsDeleteNodesRequest() { final o = api.NodeGroupsDeleteNodesRequest(); buildCounterNodeGroupsDeleteNodesRequest++; if (buildCounterNodeGroupsDeleteNodesRequest < 3) { - o.nodes = buildUnnamed497(); + o.nodes = buildUnnamed501(); } buildCounterNodeGroupsDeleteNodesRequest--; return o; @@ -22040,17 +22381,17 @@ api.NodeGroupsDeleteNodesRequest buildNodeGroupsDeleteNodesRequest() { void checkNodeGroupsDeleteNodesRequest(api.NodeGroupsDeleteNodesRequest o) { buildCounterNodeGroupsDeleteNodesRequest++; if (buildCounterNodeGroupsDeleteNodesRequest < 3) { - checkUnnamed497(o.nodes!); + checkUnnamed501(o.nodes!); } buildCounterNodeGroupsDeleteNodesRequest--; } -core.List buildUnnamed498() => [ +core.List buildUnnamed502() => [ buildNodeGroupNode(), buildNodeGroupNode(), ]; -void checkUnnamed498(core.List o) { +void checkUnnamed502(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroupNode(o[0]); checkNodeGroupNode(o[1]); @@ -22077,12 +22418,12 @@ void checkNodeGroupsListNodesWarningData(api.NodeGroupsListNodesWarningData o) { buildCounterNodeGroupsListNodesWarningData--; } -core.List buildUnnamed499() => [ +core.List buildUnnamed503() => [ buildNodeGroupsListNodesWarningData(), buildNodeGroupsListNodesWarningData(), ]; -void checkUnnamed499(core.List o) { +void checkUnnamed503(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroupsListNodesWarningData(o[0]); checkNodeGroupsListNodesWarningData(o[1]); @@ -22094,7 +22435,7 @@ api.NodeGroupsListNodesWarning buildNodeGroupsListNodesWarning() { buildCounterNodeGroupsListNodesWarning++; if (buildCounterNodeGroupsListNodesWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed499(); + o.data = buildUnnamed503(); o.message = 'foo'; } buildCounterNodeGroupsListNodesWarning--; @@ -22105,7 +22446,7 @@ void checkNodeGroupsListNodesWarning(api.NodeGroupsListNodesWarning o) { buildCounterNodeGroupsListNodesWarning++; if (buildCounterNodeGroupsListNodesWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed499(o.data!); + checkUnnamed503(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNodeGroupsListNodesWarning--; @@ -22117,7 +22458,7 @@ api.NodeGroupsListNodes buildNodeGroupsListNodes() { buildCounterNodeGroupsListNodes++; if (buildCounterNodeGroupsListNodes < 3) { o.id = 'foo'; - o.items = buildUnnamed498(); + o.items = buildUnnamed502(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -22131,7 +22472,7 @@ void checkNodeGroupsListNodes(api.NodeGroupsListNodes o) { buildCounterNodeGroupsListNodes++; if (buildCounterNodeGroupsListNodes < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed498(o.items!); + checkUnnamed502(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -22140,9 +22481,9 @@ void checkNodeGroupsListNodes(api.NodeGroupsListNodes o) { buildCounterNodeGroupsListNodes--; } -core.List buildUnnamed500() => ['foo', 'foo']; +core.List buildUnnamed504() => ['foo', 'foo']; -void checkUnnamed500(core.List o) { +void checkUnnamed504(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -22154,7 +22495,7 @@ buildNodeGroupsPerformMaintenanceRequest() { final o = api.NodeGroupsPerformMaintenanceRequest(); buildCounterNodeGroupsPerformMaintenanceRequest++; if (buildCounterNodeGroupsPerformMaintenanceRequest < 3) { - o.nodes = buildUnnamed500(); + o.nodes = buildUnnamed504(); o.startTime = 'foo'; } buildCounterNodeGroupsPerformMaintenanceRequest--; @@ -22166,18 +22507,18 @@ void checkNodeGroupsPerformMaintenanceRequest( ) { buildCounterNodeGroupsPerformMaintenanceRequest++; if (buildCounterNodeGroupsPerformMaintenanceRequest < 3) { - checkUnnamed500(o.nodes!); + checkUnnamed504(o.nodes!); unittest.expect(o.startTime!, unittest.equals('foo')); } buildCounterNodeGroupsPerformMaintenanceRequest--; } -core.List buildUnnamed501() => [ +core.List buildUnnamed505() => [ buildNodeGroup(), buildNodeGroup(), ]; -void checkUnnamed501(core.List o) { +void checkUnnamed505(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroup(o[0]); checkNodeGroup(o[1]); @@ -22206,12 +22547,12 @@ void checkNodeGroupsScopedListWarningData( buildCounterNodeGroupsScopedListWarningData--; } -core.List buildUnnamed502() => [ +core.List buildUnnamed506() => [ buildNodeGroupsScopedListWarningData(), buildNodeGroupsScopedListWarningData(), ]; -void checkUnnamed502(core.List o) { +void checkUnnamed506(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroupsScopedListWarningData(o[0]); checkNodeGroupsScopedListWarningData(o[1]); @@ -22223,7 +22564,7 @@ api.NodeGroupsScopedListWarning buildNodeGroupsScopedListWarning() { buildCounterNodeGroupsScopedListWarning++; if (buildCounterNodeGroupsScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed502(); + o.data = buildUnnamed506(); o.message = 'foo'; } buildCounterNodeGroupsScopedListWarning--; @@ -22234,7 +22575,7 @@ void checkNodeGroupsScopedListWarning(api.NodeGroupsScopedListWarning o) { buildCounterNodeGroupsScopedListWarning++; if (buildCounterNodeGroupsScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed502(o.data!); + checkUnnamed506(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNodeGroupsScopedListWarning--; @@ -22245,7 +22586,7 @@ api.NodeGroupsScopedList buildNodeGroupsScopedList() { final o = api.NodeGroupsScopedList(); buildCounterNodeGroupsScopedList++; if (buildCounterNodeGroupsScopedList < 3) { - o.nodeGroups = buildUnnamed501(); + o.nodeGroups = buildUnnamed505(); o.warning = buildNodeGroupsScopedListWarning(); } buildCounterNodeGroupsScopedList--; @@ -22255,7 +22596,7 @@ api.NodeGroupsScopedList buildNodeGroupsScopedList() { void checkNodeGroupsScopedList(api.NodeGroupsScopedList o) { buildCounterNodeGroupsScopedList++; if (buildCounterNodeGroupsScopedList < 3) { - checkUnnamed501(o.nodeGroups!); + checkUnnamed505(o.nodeGroups!); checkNodeGroupsScopedListWarning(o.warning!); } buildCounterNodeGroupsScopedList--; @@ -22282,9 +22623,9 @@ void checkNodeGroupsSetNodeTemplateRequest( buildCounterNodeGroupsSetNodeTemplateRequest--; } -core.List buildUnnamed503() => ['foo', 'foo']; +core.List buildUnnamed507() => ['foo', 'foo']; -void checkUnnamed503(core.List o) { +void checkUnnamed507(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -22296,7 +22637,7 @@ buildNodeGroupsSimulateMaintenanceEventRequest() { final o = api.NodeGroupsSimulateMaintenanceEventRequest(); buildCounterNodeGroupsSimulateMaintenanceEventRequest++; if (buildCounterNodeGroupsSimulateMaintenanceEventRequest < 3) { - o.nodes = buildUnnamed503(); + o.nodes = buildUnnamed507(); } buildCounterNodeGroupsSimulateMaintenanceEventRequest--; return o; @@ -22307,39 +22648,39 @@ void checkNodeGroupsSimulateMaintenanceEventRequest( ) { buildCounterNodeGroupsSimulateMaintenanceEventRequest++; if (buildCounterNodeGroupsSimulateMaintenanceEventRequest < 3) { - checkUnnamed503(o.nodes!); + checkUnnamed507(o.nodes!); } buildCounterNodeGroupsSimulateMaintenanceEventRequest--; } -core.List buildUnnamed504() => [ +core.List buildUnnamed508() => [ buildAcceleratorConfig(), buildAcceleratorConfig(), ]; -void checkUnnamed504(core.List o) { +void checkUnnamed508(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -core.List buildUnnamed505() => [ +core.List buildUnnamed509() => [ buildLocalDisk(), buildLocalDisk(), ]; -void checkUnnamed505(core.List o) { +void checkUnnamed509(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLocalDisk(o[0]); checkLocalDisk(o[1]); } -core.Map buildUnnamed506() => { +core.Map buildUnnamed510() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed506(core.Map o) { +void checkUnnamed510(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -22350,15 +22691,15 @@ api.NodeTemplate buildNodeTemplate() { final o = api.NodeTemplate(); buildCounterNodeTemplate++; if (buildCounterNodeTemplate < 3) { - o.accelerators = buildUnnamed504(); + o.accelerators = buildUnnamed508(); o.cpuOvercommitType = 'foo'; o.creationTimestamp = 'foo'; o.description = 'foo'; - o.disks = buildUnnamed505(); + o.disks = buildUnnamed509(); o.id = 'foo'; o.kind = 'foo'; o.name = 'foo'; - o.nodeAffinityLabels = buildUnnamed506(); + o.nodeAffinityLabels = buildUnnamed510(); o.nodeType = 'foo'; o.nodeTypeFlexibility = buildNodeTemplateNodeTypeFlexibility(); o.region = 'foo'; @@ -22374,15 +22715,15 @@ api.NodeTemplate buildNodeTemplate() { void checkNodeTemplate(api.NodeTemplate o) { buildCounterNodeTemplate++; if (buildCounterNodeTemplate < 3) { - checkUnnamed504(o.accelerators!); + checkUnnamed508(o.accelerators!); unittest.expect(o.cpuOvercommitType!, unittest.equals('foo')); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed505(o.disks!); + checkUnnamed509(o.disks!); unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed506(o.nodeAffinityLabels!); + checkUnnamed510(o.nodeAffinityLabels!); unittest.expect(o.nodeType!, unittest.equals('foo')); checkNodeTemplateNodeTypeFlexibility(o.nodeTypeFlexibility!); unittest.expect(o.region!, unittest.equals('foo')); @@ -22394,20 +22735,20 @@ void checkNodeTemplate(api.NodeTemplate o) { buildCounterNodeTemplate--; } -core.Map buildUnnamed507() => { +core.Map buildUnnamed511() => { 'x': buildNodeTemplatesScopedList(), 'y': buildNodeTemplatesScopedList(), }; -void checkUnnamed507(core.Map o) { +void checkUnnamed511(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTemplatesScopedList(o['x']!); checkNodeTemplatesScopedList(o['y']!); } -core.List buildUnnamed508() => ['foo', 'foo']; +core.List buildUnnamed512() => ['foo', 'foo']; -void checkUnnamed508(core.List o) { +void checkUnnamed512(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -22437,12 +22778,12 @@ void checkNodeTemplateAggregatedListWarningData( buildCounterNodeTemplateAggregatedListWarningData--; } -core.List buildUnnamed509() => [ +core.List buildUnnamed513() => [ buildNodeTemplateAggregatedListWarningData(), buildNodeTemplateAggregatedListWarningData(), ]; -void checkUnnamed509(core.List o) { +void checkUnnamed513(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTemplateAggregatedListWarningData(o[0]); checkNodeTemplateAggregatedListWarningData(o[1]); @@ -22454,7 +22795,7 @@ api.NodeTemplateAggregatedListWarning buildNodeTemplateAggregatedListWarning() { buildCounterNodeTemplateAggregatedListWarning++; if (buildCounterNodeTemplateAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed509(); + o.data = buildUnnamed513(); o.message = 'foo'; } buildCounterNodeTemplateAggregatedListWarning--; @@ -22467,7 +22808,7 @@ void checkNodeTemplateAggregatedListWarning( buildCounterNodeTemplateAggregatedListWarning++; if (buildCounterNodeTemplateAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed509(o.data!); + checkUnnamed513(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNodeTemplateAggregatedListWarning--; @@ -22479,11 +22820,11 @@ api.NodeTemplateAggregatedList buildNodeTemplateAggregatedList() { buildCounterNodeTemplateAggregatedList++; if (buildCounterNodeTemplateAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed507(); + o.items = buildUnnamed511(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed508(); + o.unreachables = buildUnnamed512(); o.warning = buildNodeTemplateAggregatedListWarning(); } buildCounterNodeTemplateAggregatedList--; @@ -22494,22 +22835,22 @@ void checkNodeTemplateAggregatedList(api.NodeTemplateAggregatedList o) { buildCounterNodeTemplateAggregatedList++; if (buildCounterNodeTemplateAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed507(o.items!); + checkUnnamed511(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed508(o.unreachables!); + checkUnnamed512(o.unreachables!); checkNodeTemplateAggregatedListWarning(o.warning!); } buildCounterNodeTemplateAggregatedList--; } -core.List buildUnnamed510() => [ +core.List buildUnnamed514() => [ buildNodeTemplate(), buildNodeTemplate(), ]; -void checkUnnamed510(core.List o) { +void checkUnnamed514(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTemplate(o[0]); checkNodeTemplate(o[1]); @@ -22536,12 +22877,12 @@ void checkNodeTemplateListWarningData(api.NodeTemplateListWarningData o) { buildCounterNodeTemplateListWarningData--; } -core.List buildUnnamed511() => [ +core.List buildUnnamed515() => [ buildNodeTemplateListWarningData(), buildNodeTemplateListWarningData(), ]; -void checkUnnamed511(core.List o) { +void checkUnnamed515(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTemplateListWarningData(o[0]); checkNodeTemplateListWarningData(o[1]); @@ -22553,7 +22894,7 @@ api.NodeTemplateListWarning buildNodeTemplateListWarning() { buildCounterNodeTemplateListWarning++; if (buildCounterNodeTemplateListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed511(); + o.data = buildUnnamed515(); o.message = 'foo'; } buildCounterNodeTemplateListWarning--; @@ -22564,7 +22905,7 @@ void checkNodeTemplateListWarning(api.NodeTemplateListWarning o) { buildCounterNodeTemplateListWarning++; if (buildCounterNodeTemplateListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed511(o.data!); + checkUnnamed515(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNodeTemplateListWarning--; @@ -22576,7 +22917,7 @@ api.NodeTemplateList buildNodeTemplateList() { buildCounterNodeTemplateList++; if (buildCounterNodeTemplateList < 3) { o.id = 'foo'; - o.items = buildUnnamed510(); + o.items = buildUnnamed514(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -22590,7 +22931,7 @@ void checkNodeTemplateList(api.NodeTemplateList o) { buildCounterNodeTemplateList++; if (buildCounterNodeTemplateList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed510(o.items!); + checkUnnamed514(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -22624,12 +22965,12 @@ void checkNodeTemplateNodeTypeFlexibility( buildCounterNodeTemplateNodeTypeFlexibility--; } -core.List buildUnnamed512() => [ +core.List buildUnnamed516() => [ buildNodeTemplate(), buildNodeTemplate(), ]; -void checkUnnamed512(core.List o) { +void checkUnnamed516(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTemplate(o[0]); checkNodeTemplate(o[1]); @@ -22659,12 +23000,12 @@ void checkNodeTemplatesScopedListWarningData( buildCounterNodeTemplatesScopedListWarningData--; } -core.List buildUnnamed513() => [ +core.List buildUnnamed517() => [ buildNodeTemplatesScopedListWarningData(), buildNodeTemplatesScopedListWarningData(), ]; -void checkUnnamed513(core.List o) { +void checkUnnamed517(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTemplatesScopedListWarningData(o[0]); checkNodeTemplatesScopedListWarningData(o[1]); @@ -22676,7 +23017,7 @@ api.NodeTemplatesScopedListWarning buildNodeTemplatesScopedListWarning() { buildCounterNodeTemplatesScopedListWarning++; if (buildCounterNodeTemplatesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed513(); + o.data = buildUnnamed517(); o.message = 'foo'; } buildCounterNodeTemplatesScopedListWarning--; @@ -22687,7 +23028,7 @@ void checkNodeTemplatesScopedListWarning(api.NodeTemplatesScopedListWarning o) { buildCounterNodeTemplatesScopedListWarning++; if (buildCounterNodeTemplatesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed513(o.data!); + checkUnnamed517(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNodeTemplatesScopedListWarning--; @@ -22698,7 +23039,7 @@ api.NodeTemplatesScopedList buildNodeTemplatesScopedList() { final o = api.NodeTemplatesScopedList(); buildCounterNodeTemplatesScopedList++; if (buildCounterNodeTemplatesScopedList < 3) { - o.nodeTemplates = buildUnnamed512(); + o.nodeTemplates = buildUnnamed516(); o.warning = buildNodeTemplatesScopedListWarning(); } buildCounterNodeTemplatesScopedList--; @@ -22708,7 +23049,7 @@ api.NodeTemplatesScopedList buildNodeTemplatesScopedList() { void checkNodeTemplatesScopedList(api.NodeTemplatesScopedList o) { buildCounterNodeTemplatesScopedList++; if (buildCounterNodeTemplatesScopedList < 3) { - checkUnnamed512(o.nodeTemplates!); + checkUnnamed516(o.nodeTemplates!); checkNodeTemplatesScopedListWarning(o.warning!); } buildCounterNodeTemplatesScopedList--; @@ -22757,20 +23098,20 @@ void checkNodeType(api.NodeType o) { buildCounterNodeType--; } -core.Map buildUnnamed514() => { +core.Map buildUnnamed518() => { 'x': buildNodeTypesScopedList(), 'y': buildNodeTypesScopedList(), }; -void checkUnnamed514(core.Map o) { +void checkUnnamed518(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTypesScopedList(o['x']!); checkNodeTypesScopedList(o['y']!); } -core.List buildUnnamed515() => ['foo', 'foo']; +core.List buildUnnamed519() => ['foo', 'foo']; -void checkUnnamed515(core.List o) { +void checkUnnamed519(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -22799,12 +23140,12 @@ void checkNodeTypeAggregatedListWarningData( buildCounterNodeTypeAggregatedListWarningData--; } -core.List buildUnnamed516() => [ +core.List buildUnnamed520() => [ buildNodeTypeAggregatedListWarningData(), buildNodeTypeAggregatedListWarningData(), ]; -void checkUnnamed516(core.List o) { +void checkUnnamed520(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTypeAggregatedListWarningData(o[0]); checkNodeTypeAggregatedListWarningData(o[1]); @@ -22816,7 +23157,7 @@ api.NodeTypeAggregatedListWarning buildNodeTypeAggregatedListWarning() { buildCounterNodeTypeAggregatedListWarning++; if (buildCounterNodeTypeAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed516(); + o.data = buildUnnamed520(); o.message = 'foo'; } buildCounterNodeTypeAggregatedListWarning--; @@ -22827,7 +23168,7 @@ void checkNodeTypeAggregatedListWarning(api.NodeTypeAggregatedListWarning o) { buildCounterNodeTypeAggregatedListWarning++; if (buildCounterNodeTypeAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed516(o.data!); + checkUnnamed520(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNodeTypeAggregatedListWarning--; @@ -22839,11 +23180,11 @@ api.NodeTypeAggregatedList buildNodeTypeAggregatedList() { buildCounterNodeTypeAggregatedList++; if (buildCounterNodeTypeAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed514(); + o.items = buildUnnamed518(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed515(); + o.unreachables = buildUnnamed519(); o.warning = buildNodeTypeAggregatedListWarning(); } buildCounterNodeTypeAggregatedList--; @@ -22854,19 +23195,19 @@ void checkNodeTypeAggregatedList(api.NodeTypeAggregatedList o) { buildCounterNodeTypeAggregatedList++; if (buildCounterNodeTypeAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed514(o.items!); + checkUnnamed518(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed515(o.unreachables!); + checkUnnamed519(o.unreachables!); checkNodeTypeAggregatedListWarning(o.warning!); } buildCounterNodeTypeAggregatedList--; } -core.List buildUnnamed517() => [buildNodeType(), buildNodeType()]; +core.List buildUnnamed521() => [buildNodeType(), buildNodeType()]; -void checkUnnamed517(core.List o) { +void checkUnnamed521(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeType(o[0]); checkNodeType(o[1]); @@ -22893,12 +23234,12 @@ void checkNodeTypeListWarningData(api.NodeTypeListWarningData o) { buildCounterNodeTypeListWarningData--; } -core.List buildUnnamed518() => [ +core.List buildUnnamed522() => [ buildNodeTypeListWarningData(), buildNodeTypeListWarningData(), ]; -void checkUnnamed518(core.List o) { +void checkUnnamed522(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTypeListWarningData(o[0]); checkNodeTypeListWarningData(o[1]); @@ -22910,7 +23251,7 @@ api.NodeTypeListWarning buildNodeTypeListWarning() { buildCounterNodeTypeListWarning++; if (buildCounterNodeTypeListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed518(); + o.data = buildUnnamed522(); o.message = 'foo'; } buildCounterNodeTypeListWarning--; @@ -22921,7 +23262,7 @@ void checkNodeTypeListWarning(api.NodeTypeListWarning o) { buildCounterNodeTypeListWarning++; if (buildCounterNodeTypeListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed518(o.data!); + checkUnnamed522(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNodeTypeListWarning--; @@ -22933,7 +23274,7 @@ api.NodeTypeList buildNodeTypeList() { buildCounterNodeTypeList++; if (buildCounterNodeTypeList < 3) { o.id = 'foo'; - o.items = buildUnnamed517(); + o.items = buildUnnamed521(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -22947,7 +23288,7 @@ void checkNodeTypeList(api.NodeTypeList o) { buildCounterNodeTypeList++; if (buildCounterNodeTypeList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed517(o.items!); + checkUnnamed521(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -22956,9 +23297,9 @@ void checkNodeTypeList(api.NodeTypeList o) { buildCounterNodeTypeList--; } -core.List buildUnnamed519() => [buildNodeType(), buildNodeType()]; +core.List buildUnnamed523() => [buildNodeType(), buildNodeType()]; -void checkUnnamed519(core.List o) { +void checkUnnamed523(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeType(o[0]); checkNodeType(o[1]); @@ -22985,12 +23326,12 @@ void checkNodeTypesScopedListWarningData(api.NodeTypesScopedListWarningData o) { buildCounterNodeTypesScopedListWarningData--; } -core.List buildUnnamed520() => [ +core.List buildUnnamed524() => [ buildNodeTypesScopedListWarningData(), buildNodeTypesScopedListWarningData(), ]; -void checkUnnamed520(core.List o) { +void checkUnnamed524(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTypesScopedListWarningData(o[0]); checkNodeTypesScopedListWarningData(o[1]); @@ -23002,7 +23343,7 @@ api.NodeTypesScopedListWarning buildNodeTypesScopedListWarning() { buildCounterNodeTypesScopedListWarning++; if (buildCounterNodeTypesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed520(); + o.data = buildUnnamed524(); o.message = 'foo'; } buildCounterNodeTypesScopedListWarning--; @@ -23013,7 +23354,7 @@ void checkNodeTypesScopedListWarning(api.NodeTypesScopedListWarning o) { buildCounterNodeTypesScopedListWarning++; if (buildCounterNodeTypesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed520(o.data!); + checkUnnamed524(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNodeTypesScopedListWarning--; @@ -23024,7 +23365,7 @@ api.NodeTypesScopedList buildNodeTypesScopedList() { final o = api.NodeTypesScopedList(); buildCounterNodeTypesScopedList++; if (buildCounterNodeTypesScopedList < 3) { - o.nodeTypes = buildUnnamed519(); + o.nodeTypes = buildUnnamed523(); o.warning = buildNodeTypesScopedListWarning(); } buildCounterNodeTypesScopedList--; @@ -23034,7 +23375,7 @@ api.NodeTypesScopedList buildNodeTypesScopedList() { void checkNodeTypesScopedList(api.NodeTypesScopedList o) { buildCounterNodeTypesScopedList++; if (buildCounterNodeTypesScopedList < 3) { - checkUnnamed519(o.nodeTypes!); + checkUnnamed523(o.nodeTypes!); checkNodeTypesScopedListWarning(o.warning!); } buildCounterNodeTypesScopedList--; @@ -23102,12 +23443,12 @@ void checkNotificationEndpointGrpcSettings( buildCounterNotificationEndpointGrpcSettings--; } -core.List buildUnnamed521() => [ +core.List buildUnnamed525() => [ buildNotificationEndpoint(), buildNotificationEndpoint(), ]; -void checkUnnamed521(core.List o) { +void checkUnnamed525(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNotificationEndpoint(o[0]); checkNotificationEndpoint(o[1]); @@ -23137,12 +23478,12 @@ void checkNotificationEndpointListWarningData( buildCounterNotificationEndpointListWarningData--; } -core.List buildUnnamed522() => [ +core.List buildUnnamed526() => [ buildNotificationEndpointListWarningData(), buildNotificationEndpointListWarningData(), ]; -void checkUnnamed522(core.List o) { +void checkUnnamed526(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNotificationEndpointListWarningData(o[0]); checkNotificationEndpointListWarningData(o[1]); @@ -23154,7 +23495,7 @@ api.NotificationEndpointListWarning buildNotificationEndpointListWarning() { buildCounterNotificationEndpointListWarning++; if (buildCounterNotificationEndpointListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed522(); + o.data = buildUnnamed526(); o.message = 'foo'; } buildCounterNotificationEndpointListWarning--; @@ -23167,7 +23508,7 @@ void checkNotificationEndpointListWarning( buildCounterNotificationEndpointListWarning++; if (buildCounterNotificationEndpointListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed522(o.data!); + checkUnnamed526(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterNotificationEndpointListWarning--; @@ -23179,7 +23520,7 @@ api.NotificationEndpointList buildNotificationEndpointList() { buildCounterNotificationEndpointList++; if (buildCounterNotificationEndpointList < 3) { o.id = 'foo'; - o.items = buildUnnamed521(); + o.items = buildUnnamed525(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -23193,7 +23534,7 @@ void checkNotificationEndpointList(api.NotificationEndpointList o) { buildCounterNotificationEndpointList++; if (buildCounterNotificationEndpointList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed521(o.items!); + checkUnnamed525(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -23229,12 +23570,12 @@ void checkOperationErrorErrorsErrorDetails( buildCounterOperationErrorErrorsErrorDetails--; } -core.List buildUnnamed523() => [ +core.List buildUnnamed527() => [ buildOperationErrorErrorsErrorDetails(), buildOperationErrorErrorsErrorDetails(), ]; -void checkUnnamed523(core.List o) { +void checkUnnamed527(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrorsErrorDetails(o[0]); checkOperationErrorErrorsErrorDetails(o[1]); @@ -23246,7 +23587,7 @@ api.OperationErrorErrors buildOperationErrorErrors() { buildCounterOperationErrorErrors++; if (buildCounterOperationErrorErrors < 3) { o.code = 'foo'; - o.errorDetails = buildUnnamed523(); + o.errorDetails = buildUnnamed527(); o.location = 'foo'; o.message = 'foo'; } @@ -23258,19 +23599,19 @@ void checkOperationErrorErrors(api.OperationErrorErrors o) { buildCounterOperationErrorErrors++; if (buildCounterOperationErrorErrors < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed523(o.errorDetails!); + checkUnnamed527(o.errorDetails!); unittest.expect(o.location!, unittest.equals('foo')); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterOperationErrorErrors--; } -core.List buildUnnamed524() => [ +core.List buildUnnamed528() => [ buildOperationErrorErrors(), buildOperationErrorErrors(), ]; -void checkUnnamed524(core.List o) { +void checkUnnamed528(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -23281,7 +23622,7 @@ api.OperationError buildOperationError() { final o = api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed524(); + o.errors = buildUnnamed528(); } buildCounterOperationError--; return o; @@ -23290,7 +23631,7 @@ api.OperationError buildOperationError() { void checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed524(o.errors!); + checkUnnamed528(o.errors!); } buildCounterOperationError--; } @@ -23316,12 +23657,12 @@ void checkOperationWarningsData(api.OperationWarningsData o) { buildCounterOperationWarningsData--; } -core.List buildUnnamed525() => [ +core.List buildUnnamed529() => [ buildOperationWarningsData(), buildOperationWarningsData(), ]; -void checkUnnamed525(core.List o) { +void checkUnnamed529(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -23333,7 +23674,7 @@ api.OperationWarnings buildOperationWarnings() { buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = 'foo'; - o.data = buildUnnamed525(); + o.data = buildUnnamed529(); o.message = 'foo'; } buildCounterOperationWarnings--; @@ -23344,18 +23685,18 @@ void checkOperationWarnings(api.OperationWarnings o) { buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed525(o.data!); + checkUnnamed529(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterOperationWarnings--; } -core.List buildUnnamed526() => [ +core.List buildUnnamed530() => [ buildOperationWarnings(), buildOperationWarnings(), ]; -void checkUnnamed526(core.List o) { +void checkUnnamed530(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -23392,7 +23733,7 @@ api.Operation buildOperation() { o.targetId = 'foo'; o.targetLink = 'foo'; o.user = 'foo'; - o.warnings = buildUnnamed526(); + o.warnings = buildUnnamed530(); o.zone = 'foo'; } buildCounterOperation--; @@ -23430,26 +23771,26 @@ void checkOperation(api.Operation o) { unittest.expect(o.targetId!, unittest.equals('foo')); unittest.expect(o.targetLink!, unittest.equals('foo')); unittest.expect(o.user!, unittest.equals('foo')); - checkUnnamed526(o.warnings!); + checkUnnamed530(o.warnings!); unittest.expect(o.zone!, unittest.equals('foo')); } buildCounterOperation--; } -core.Map buildUnnamed527() => { +core.Map buildUnnamed531() => { 'x': buildOperationsScopedList(), 'y': buildOperationsScopedList(), }; -void checkUnnamed527(core.Map o) { +void checkUnnamed531(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedList(o['x']!); checkOperationsScopedList(o['y']!); } -core.List buildUnnamed528() => ['foo', 'foo']; +core.List buildUnnamed532() => ['foo', 'foo']; -void checkUnnamed528(core.List o) { +void checkUnnamed532(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -23479,12 +23820,12 @@ void checkOperationAggregatedListWarningData( buildCounterOperationAggregatedListWarningData--; } -core.List buildUnnamed529() => [ +core.List buildUnnamed533() => [ buildOperationAggregatedListWarningData(), buildOperationAggregatedListWarningData(), ]; -void checkUnnamed529(core.List o) { +void checkUnnamed533(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperationAggregatedListWarningData(o[0]); checkOperationAggregatedListWarningData(o[1]); @@ -23496,7 +23837,7 @@ api.OperationAggregatedListWarning buildOperationAggregatedListWarning() { buildCounterOperationAggregatedListWarning++; if (buildCounterOperationAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed529(); + o.data = buildUnnamed533(); o.message = 'foo'; } buildCounterOperationAggregatedListWarning--; @@ -23507,7 +23848,7 @@ void checkOperationAggregatedListWarning(api.OperationAggregatedListWarning o) { buildCounterOperationAggregatedListWarning++; if (buildCounterOperationAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed529(o.data!); + checkUnnamed533(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterOperationAggregatedListWarning--; @@ -23519,11 +23860,11 @@ api.OperationAggregatedList buildOperationAggregatedList() { buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed527(); + o.items = buildUnnamed531(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed528(); + o.unreachables = buildUnnamed532(); o.warning = buildOperationAggregatedListWarning(); } buildCounterOperationAggregatedList--; @@ -23534,22 +23875,22 @@ void checkOperationAggregatedList(api.OperationAggregatedList o) { buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed527(o.items!); + checkUnnamed531(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed528(o.unreachables!); + checkUnnamed532(o.unreachables!); checkOperationAggregatedListWarning(o.warning!); } buildCounterOperationAggregatedList--; } -core.List buildUnnamed530() => [ +core.List buildUnnamed534() => [ buildOperation(), buildOperation(), ]; -void checkUnnamed530(core.List o) { +void checkUnnamed534(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -23576,12 +23917,12 @@ void checkOperationListWarningData(api.OperationListWarningData o) { buildCounterOperationListWarningData--; } -core.List buildUnnamed531() => [ +core.List buildUnnamed535() => [ buildOperationListWarningData(), buildOperationListWarningData(), ]; -void checkUnnamed531(core.List o) { +void checkUnnamed535(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperationListWarningData(o[0]); checkOperationListWarningData(o[1]); @@ -23593,7 +23934,7 @@ api.OperationListWarning buildOperationListWarning() { buildCounterOperationListWarning++; if (buildCounterOperationListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed531(); + o.data = buildUnnamed535(); o.message = 'foo'; } buildCounterOperationListWarning--; @@ -23604,7 +23945,7 @@ void checkOperationListWarning(api.OperationListWarning o) { buildCounterOperationListWarning++; if (buildCounterOperationListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed531(o.data!); + checkUnnamed535(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterOperationListWarning--; @@ -23616,7 +23957,7 @@ api.OperationList buildOperationList() { buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = 'foo'; - o.items = buildUnnamed530(); + o.items = buildUnnamed534(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -23630,7 +23971,7 @@ void checkOperationList(api.OperationList o) { buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed530(o.items!); + checkUnnamed534(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -23639,12 +23980,12 @@ void checkOperationList(api.OperationList o) { buildCounterOperationList--; } -core.List buildUnnamed532() => [ +core.List buildUnnamed536() => [ buildOperation(), buildOperation(), ]; -void checkUnnamed532(core.List o) { +void checkUnnamed536(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -23673,12 +24014,12 @@ void checkOperationsScopedListWarningData( buildCounterOperationsScopedListWarningData--; } -core.List buildUnnamed533() => [ +core.List buildUnnamed537() => [ buildOperationsScopedListWarningData(), buildOperationsScopedListWarningData(), ]; -void checkUnnamed533(core.List o) { +void checkUnnamed537(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedListWarningData(o[0]); checkOperationsScopedListWarningData(o[1]); @@ -23690,7 +24031,7 @@ api.OperationsScopedListWarning buildOperationsScopedListWarning() { buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed533(); + o.data = buildUnnamed537(); o.message = 'foo'; } buildCounterOperationsScopedListWarning--; @@ -23701,7 +24042,7 @@ void checkOperationsScopedListWarning(api.OperationsScopedListWarning o) { buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed533(o.data!); + checkUnnamed537(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterOperationsScopedListWarning--; @@ -23712,7 +24053,7 @@ api.OperationsScopedList buildOperationsScopedList() { final o = api.OperationsScopedList(); buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - o.operations = buildUnnamed532(); + o.operations = buildUnnamed536(); o.warning = buildOperationsScopedListWarning(); } buildCounterOperationsScopedList--; @@ -23722,7 +24063,7 @@ api.OperationsScopedList buildOperationsScopedList() { void checkOperationsScopedList(api.OperationsScopedList o) { buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - checkUnnamed532(o.operations!); + checkUnnamed536(o.operations!); checkOperationsScopedListWarning(o.warning!); } buildCounterOperationsScopedList--; @@ -23839,20 +24180,20 @@ void checkPacketMirroring(api.PacketMirroring o) { buildCounterPacketMirroring--; } -core.Map buildUnnamed534() => { +core.Map buildUnnamed538() => { 'x': buildPacketMirroringsScopedList(), 'y': buildPacketMirroringsScopedList(), }; -void checkUnnamed534(core.Map o) { +void checkUnnamed538(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkPacketMirroringsScopedList(o['x']!); checkPacketMirroringsScopedList(o['y']!); } -core.List buildUnnamed535() => ['foo', 'foo']; +core.List buildUnnamed539() => ['foo', 'foo']; -void checkUnnamed535(core.List o) { +void checkUnnamed539(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -23882,12 +24223,12 @@ void checkPacketMirroringAggregatedListWarningData( buildCounterPacketMirroringAggregatedListWarningData--; } -core.List buildUnnamed536() => [ +core.List buildUnnamed540() => [ buildPacketMirroringAggregatedListWarningData(), buildPacketMirroringAggregatedListWarningData(), ]; -void checkUnnamed536( +void checkUnnamed540( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -23902,7 +24243,7 @@ buildPacketMirroringAggregatedListWarning() { buildCounterPacketMirroringAggregatedListWarning++; if (buildCounterPacketMirroringAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed536(); + o.data = buildUnnamed540(); o.message = 'foo'; } buildCounterPacketMirroringAggregatedListWarning--; @@ -23915,7 +24256,7 @@ void checkPacketMirroringAggregatedListWarning( buildCounterPacketMirroringAggregatedListWarning++; if (buildCounterPacketMirroringAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed536(o.data!); + checkUnnamed540(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterPacketMirroringAggregatedListWarning--; @@ -23927,11 +24268,11 @@ api.PacketMirroringAggregatedList buildPacketMirroringAggregatedList() { buildCounterPacketMirroringAggregatedList++; if (buildCounterPacketMirroringAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed534(); + o.items = buildUnnamed538(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed535(); + o.unreachables = buildUnnamed539(); o.warning = buildPacketMirroringAggregatedListWarning(); } buildCounterPacketMirroringAggregatedList--; @@ -23942,27 +24283,27 @@ void checkPacketMirroringAggregatedList(api.PacketMirroringAggregatedList o) { buildCounterPacketMirroringAggregatedList++; if (buildCounterPacketMirroringAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed534(o.items!); + checkUnnamed538(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed535(o.unreachables!); + checkUnnamed539(o.unreachables!); checkPacketMirroringAggregatedListWarning(o.warning!); } buildCounterPacketMirroringAggregatedList--; } -core.List buildUnnamed537() => ['foo', 'foo']; +core.List buildUnnamed541() => ['foo', 'foo']; -void checkUnnamed537(core.List o) { +void checkUnnamed541(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed538() => ['foo', 'foo']; +core.List buildUnnamed542() => ['foo', 'foo']; -void checkUnnamed538(core.List o) { +void checkUnnamed542(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -23973,8 +24314,8 @@ api.PacketMirroringFilter buildPacketMirroringFilter() { final o = api.PacketMirroringFilter(); buildCounterPacketMirroringFilter++; if (buildCounterPacketMirroringFilter < 3) { - o.IPProtocols = buildUnnamed537(); - o.cidrRanges = buildUnnamed538(); + o.IPProtocols = buildUnnamed541(); + o.cidrRanges = buildUnnamed542(); o.direction = 'foo'; } buildCounterPacketMirroringFilter--; @@ -23984,8 +24325,8 @@ api.PacketMirroringFilter buildPacketMirroringFilter() { void checkPacketMirroringFilter(api.PacketMirroringFilter o) { buildCounterPacketMirroringFilter++; if (buildCounterPacketMirroringFilter < 3) { - checkUnnamed537(o.IPProtocols!); - checkUnnamed538(o.cidrRanges!); + checkUnnamed541(o.IPProtocols!); + checkUnnamed542(o.cidrRanges!); unittest.expect(o.direction!, unittest.equals('foo')); } buildCounterPacketMirroringFilter--; @@ -24014,12 +24355,12 @@ void checkPacketMirroringForwardingRuleInfo( buildCounterPacketMirroringForwardingRuleInfo--; } -core.List buildUnnamed539() => [ +core.List buildUnnamed543() => [ buildPacketMirroring(), buildPacketMirroring(), ]; -void checkUnnamed539(core.List o) { +void checkUnnamed543(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPacketMirroring(o[0]); checkPacketMirroring(o[1]); @@ -24046,12 +24387,12 @@ void checkPacketMirroringListWarningData(api.PacketMirroringListWarningData o) { buildCounterPacketMirroringListWarningData--; } -core.List buildUnnamed540() => [ +core.List buildUnnamed544() => [ buildPacketMirroringListWarningData(), buildPacketMirroringListWarningData(), ]; -void checkUnnamed540(core.List o) { +void checkUnnamed544(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPacketMirroringListWarningData(o[0]); checkPacketMirroringListWarningData(o[1]); @@ -24063,7 +24404,7 @@ api.PacketMirroringListWarning buildPacketMirroringListWarning() { buildCounterPacketMirroringListWarning++; if (buildCounterPacketMirroringListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed540(); + o.data = buildUnnamed544(); o.message = 'foo'; } buildCounterPacketMirroringListWarning--; @@ -24074,7 +24415,7 @@ void checkPacketMirroringListWarning(api.PacketMirroringListWarning o) { buildCounterPacketMirroringListWarning++; if (buildCounterPacketMirroringListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed540(o.data!); + checkUnnamed544(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterPacketMirroringListWarning--; @@ -24086,7 +24427,7 @@ api.PacketMirroringList buildPacketMirroringList() { buildCounterPacketMirroringList++; if (buildCounterPacketMirroringList < 3) { o.id = 'foo'; - o.items = buildUnnamed539(); + o.items = buildUnnamed543(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -24100,7 +24441,7 @@ void checkPacketMirroringList(api.PacketMirroringList o) { buildCounterPacketMirroringList++; if (buildCounterPacketMirroringList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed539(o.items!); + checkUnnamed543(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -24110,12 +24451,12 @@ void checkPacketMirroringList(api.PacketMirroringList o) { } core.List -buildUnnamed541() => [ +buildUnnamed545() => [ buildPacketMirroringMirroredResourceInfoInstanceInfo(), buildPacketMirroringMirroredResourceInfoInstanceInfo(), ]; -void checkUnnamed541( +void checkUnnamed545( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -24124,12 +24465,12 @@ void checkUnnamed541( } core.List -buildUnnamed542() => [ +buildUnnamed546() => [ buildPacketMirroringMirroredResourceInfoSubnetInfo(), buildPacketMirroringMirroredResourceInfoSubnetInfo(), ]; -void checkUnnamed542( +void checkUnnamed546( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -24137,9 +24478,9 @@ void checkUnnamed542( checkPacketMirroringMirroredResourceInfoSubnetInfo(o[1]); } -core.List buildUnnamed543() => ['foo', 'foo']; +core.List buildUnnamed547() => ['foo', 'foo']; -void checkUnnamed543(core.List o) { +void checkUnnamed547(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -24151,9 +24492,9 @@ buildPacketMirroringMirroredResourceInfo() { final o = api.PacketMirroringMirroredResourceInfo(); buildCounterPacketMirroringMirroredResourceInfo++; if (buildCounterPacketMirroringMirroredResourceInfo < 3) { - o.instances = buildUnnamed541(); - o.subnetworks = buildUnnamed542(); - o.tags = buildUnnamed543(); + o.instances = buildUnnamed545(); + o.subnetworks = buildUnnamed546(); + o.tags = buildUnnamed547(); } buildCounterPacketMirroringMirroredResourceInfo--; return o; @@ -24164,9 +24505,9 @@ void checkPacketMirroringMirroredResourceInfo( ) { buildCounterPacketMirroringMirroredResourceInfo++; if (buildCounterPacketMirroringMirroredResourceInfo < 3) { - checkUnnamed541(o.instances!); - checkUnnamed542(o.subnetworks!); - checkUnnamed543(o.tags!); + checkUnnamed545(o.instances!); + checkUnnamed546(o.subnetworks!); + checkUnnamed547(o.tags!); } buildCounterPacketMirroringMirroredResourceInfo--; } @@ -24240,12 +24581,12 @@ void checkPacketMirroringNetworkInfo(api.PacketMirroringNetworkInfo o) { buildCounterPacketMirroringNetworkInfo--; } -core.List buildUnnamed544() => [ +core.List buildUnnamed548() => [ buildPacketMirroring(), buildPacketMirroring(), ]; -void checkUnnamed544(core.List o) { +void checkUnnamed548(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPacketMirroring(o[0]); checkPacketMirroring(o[1]); @@ -24275,12 +24616,12 @@ void checkPacketMirroringsScopedListWarningData( buildCounterPacketMirroringsScopedListWarningData--; } -core.List buildUnnamed545() => [ +core.List buildUnnamed549() => [ buildPacketMirroringsScopedListWarningData(), buildPacketMirroringsScopedListWarningData(), ]; -void checkUnnamed545(core.List o) { +void checkUnnamed549(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPacketMirroringsScopedListWarningData(o[0]); checkPacketMirroringsScopedListWarningData(o[1]); @@ -24292,7 +24633,7 @@ api.PacketMirroringsScopedListWarning buildPacketMirroringsScopedListWarning() { buildCounterPacketMirroringsScopedListWarning++; if (buildCounterPacketMirroringsScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed545(); + o.data = buildUnnamed549(); o.message = 'foo'; } buildCounterPacketMirroringsScopedListWarning--; @@ -24305,7 +24646,7 @@ void checkPacketMirroringsScopedListWarning( buildCounterPacketMirroringsScopedListWarning++; if (buildCounterPacketMirroringsScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed545(o.data!); + checkUnnamed549(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterPacketMirroringsScopedListWarning--; @@ -24316,7 +24657,7 @@ api.PacketMirroringsScopedList buildPacketMirroringsScopedList() { final o = api.PacketMirroringsScopedList(); buildCounterPacketMirroringsScopedList++; if (buildCounterPacketMirroringsScopedList < 3) { - o.packetMirrorings = buildUnnamed544(); + o.packetMirrorings = buildUnnamed548(); o.warning = buildPacketMirroringsScopedListWarning(); } buildCounterPacketMirroringsScopedList--; @@ -24326,26 +24667,26 @@ api.PacketMirroringsScopedList buildPacketMirroringsScopedList() { void checkPacketMirroringsScopedList(api.PacketMirroringsScopedList o) { buildCounterPacketMirroringsScopedList++; if (buildCounterPacketMirroringsScopedList < 3) { - checkUnnamed544(o.packetMirrorings!); + checkUnnamed548(o.packetMirrorings!); checkPacketMirroringsScopedListWarning(o.warning!); } buildCounterPacketMirroringsScopedList--; } -core.List buildUnnamed546() => [buildPathRule(), buildPathRule()]; +core.List buildUnnamed550() => [buildPathRule(), buildPathRule()]; -void checkUnnamed546(core.List o) { +void checkUnnamed550(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPathRule(o[0]); checkPathRule(o[1]); } -core.List buildUnnamed547() => [ +core.List buildUnnamed551() => [ buildHttpRouteRule(), buildHttpRouteRule(), ]; -void checkUnnamed547(core.List o) { +void checkUnnamed551(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRouteRule(o[0]); checkHttpRouteRule(o[1]); @@ -24363,8 +24704,8 @@ api.PathMatcher buildPathMatcher() { o.description = 'foo'; o.headerAction = buildHttpHeaderAction(); o.name = 'foo'; - o.pathRules = buildUnnamed546(); - o.routeRules = buildUnnamed547(); + o.pathRules = buildUnnamed550(); + o.routeRules = buildUnnamed551(); } buildCounterPathMatcher--; return o; @@ -24380,15 +24721,15 @@ void checkPathMatcher(api.PathMatcher o) { unittest.expect(o.description!, unittest.equals('foo')); checkHttpHeaderAction(o.headerAction!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed546(o.pathRules!); - checkUnnamed547(o.routeRules!); + checkUnnamed550(o.pathRules!); + checkUnnamed551(o.routeRules!); } buildCounterPathMatcher--; } -core.List buildUnnamed548() => ['foo', 'foo']; +core.List buildUnnamed552() => ['foo', 'foo']; -void checkUnnamed548(core.List o) { +void checkUnnamed552(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -24400,7 +24741,7 @@ api.PathRule buildPathRule() { buildCounterPathRule++; if (buildCounterPathRule < 3) { o.customErrorResponsePolicy = buildCustomErrorResponsePolicy(); - o.paths = buildUnnamed548(); + o.paths = buildUnnamed552(); o.routeAction = buildHttpRouteAction(); o.service = 'foo'; o.urlRedirect = buildHttpRedirectAction(); @@ -24413,7 +24754,7 @@ void checkPathRule(api.PathRule o) { buildCounterPathRule++; if (buildCounterPathRule < 3) { checkCustomErrorResponsePolicy(o.customErrorResponsePolicy!); - checkUnnamed548(o.paths!); + checkUnnamed552(o.paths!); checkHttpRouteAction(o.routeAction!); unittest.expect(o.service!, unittest.equals('foo')); checkHttpRedirectAction(o.urlRedirect!); @@ -24446,20 +24787,20 @@ void checkPerInstanceConfig(api.PerInstanceConfig o) { buildCounterPerInstanceConfig--; } -core.List buildUnnamed549() => [ +core.List buildUnnamed553() => [ buildAuditConfig(), buildAuditConfig(), ]; -void checkUnnamed549(core.List o) { +void checkUnnamed553(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -core.List buildUnnamed550() => [buildBinding(), buildBinding()]; +core.List buildUnnamed554() => [buildBinding(), buildBinding()]; -void checkUnnamed550(core.List o) { +void checkUnnamed554(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -24470,8 +24811,8 @@ api.Policy buildPolicy() { final o = api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed549(); - o.bindings = buildUnnamed550(); + o.auditConfigs = buildUnnamed553(); + o.bindings = buildUnnamed554(); o.etag = 'foo'; o.version = 42; } @@ -24482,20 +24823,20 @@ api.Policy buildPolicy() { void checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed549(o.auditConfigs!); - checkUnnamed550(o.bindings!); + checkUnnamed553(o.auditConfigs!); + checkUnnamed554(o.bindings!); unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.version!, unittest.equals(42)); } buildCounterPolicy--; } -core.List buildUnnamed551() => [ +core.List buildUnnamed555() => [ buildWafExpressionSet(), buildWafExpressionSet(), ]; -void checkUnnamed551(core.List o) { +void checkUnnamed555(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkWafExpressionSet(o[0]); checkWafExpressionSet(o[1]); @@ -24506,7 +24847,7 @@ api.PreconfiguredWafSet buildPreconfiguredWafSet() { final o = api.PreconfiguredWafSet(); buildCounterPreconfiguredWafSet++; if (buildCounterPreconfiguredWafSet < 3) { - o.expressionSets = buildUnnamed551(); + o.expressionSets = buildUnnamed555(); } buildCounterPreconfiguredWafSet--; return o; @@ -24515,29 +24856,29 @@ api.PreconfiguredWafSet buildPreconfiguredWafSet() { void checkPreconfiguredWafSet(api.PreconfiguredWafSet o) { buildCounterPreconfiguredWafSet++; if (buildCounterPreconfiguredWafSet < 3) { - checkUnnamed551(o.expressionSets!); + checkUnnamed555(o.expressionSets!); } buildCounterPreconfiguredWafSet--; } -core.Map buildUnnamed552() => { +core.Map buildUnnamed556() => { 'x': buildPreservedStatePreservedDisk(), 'y': buildPreservedStatePreservedDisk(), }; -void checkUnnamed552(core.Map o) { +void checkUnnamed556(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkPreservedStatePreservedDisk(o['x']!); checkPreservedStatePreservedDisk(o['y']!); } -core.Map buildUnnamed553() => +core.Map buildUnnamed557() => { 'x': buildPreservedStatePreservedNetworkIp(), 'y': buildPreservedStatePreservedNetworkIp(), }; -void checkUnnamed553( +void checkUnnamed557( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -24545,13 +24886,13 @@ void checkUnnamed553( checkPreservedStatePreservedNetworkIp(o['y']!); } -core.Map buildUnnamed554() => +core.Map buildUnnamed558() => { 'x': buildPreservedStatePreservedNetworkIp(), 'y': buildPreservedStatePreservedNetworkIp(), }; -void checkUnnamed554( +void checkUnnamed558( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -24559,12 +24900,12 @@ void checkUnnamed554( checkPreservedStatePreservedNetworkIp(o['y']!); } -core.Map buildUnnamed555() => { +core.Map buildUnnamed559() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed555(core.Map o) { +void checkUnnamed559(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -24575,10 +24916,10 @@ api.PreservedState buildPreservedState() { final o = api.PreservedState(); buildCounterPreservedState++; if (buildCounterPreservedState < 3) { - o.disks = buildUnnamed552(); - o.externalIPs = buildUnnamed553(); - o.internalIPs = buildUnnamed554(); - o.metadata = buildUnnamed555(); + o.disks = buildUnnamed556(); + o.externalIPs = buildUnnamed557(); + o.internalIPs = buildUnnamed558(); + o.metadata = buildUnnamed559(); } buildCounterPreservedState--; return o; @@ -24587,10 +24928,10 @@ api.PreservedState buildPreservedState() { void checkPreservedState(api.PreservedState o) { buildCounterPreservedState++; if (buildCounterPreservedState < 3) { - checkUnnamed552(o.disks!); - checkUnnamed553(o.externalIPs!); - checkUnnamed554(o.internalIPs!); - checkUnnamed555(o.metadata!); + checkUnnamed556(o.disks!); + checkUnnamed557(o.externalIPs!); + checkUnnamed558(o.internalIPs!); + checkUnnamed559(o.metadata!); } buildCounterPreservedState--; } @@ -24665,17 +25006,17 @@ void checkPreservedStatePreservedNetworkIpIpAddress( buildCounterPreservedStatePreservedNetworkIpIpAddress--; } -core.List buildUnnamed556() => ['foo', 'foo']; +core.List buildUnnamed560() => ['foo', 'foo']; -void checkUnnamed556(core.List o) { +void checkUnnamed560(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed557() => [buildQuota(), buildQuota()]; +core.List buildUnnamed561() => [buildQuota(), buildQuota()]; -void checkUnnamed557(core.List o) { +void checkUnnamed561(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); @@ -24692,11 +25033,11 @@ api.Project buildProject() { o.defaultNetworkTier = 'foo'; o.defaultServiceAccount = 'foo'; o.description = 'foo'; - o.enabledFeatures = buildUnnamed556(); + o.enabledFeatures = buildUnnamed560(); o.id = 'foo'; o.kind = 'foo'; o.name = 'foo'; - o.quotas = buildUnnamed557(); + o.quotas = buildUnnamed561(); o.selfLink = 'foo'; o.usageExportLocation = buildUsageExportLocation(); o.vmDnsSetting = 'foo'; @@ -24715,11 +25056,11 @@ void checkProject(api.Project o) { unittest.expect(o.defaultNetworkTier!, unittest.equals('foo')); unittest.expect(o.defaultServiceAccount!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed556(o.enabledFeatures!); + checkUnnamed560(o.enabledFeatures!); unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed557(o.quotas!); + checkUnnamed561(o.quotas!); unittest.expect(o.selfLink!, unittest.equals('foo')); checkUsageExportLocation(o.usageExportLocation!); unittest.expect(o.vmDnsSetting!, unittest.equals('foo')); @@ -24770,12 +25111,12 @@ void checkProjectsEnableXpnResourceRequest( buildCounterProjectsEnableXpnResourceRequest--; } -core.List buildUnnamed558() => [ +core.List buildUnnamed562() => [ buildXpnResourceId(), buildXpnResourceId(), ]; -void checkUnnamed558(core.List o) { +void checkUnnamed562(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkXpnResourceId(o[0]); checkXpnResourceId(o[1]); @@ -24788,7 +25129,7 @@ api.ProjectsGetXpnResources buildProjectsGetXpnResources() { if (buildCounterProjectsGetXpnResources < 3) { o.kind = 'foo'; o.nextPageToken = 'foo'; - o.resources = buildUnnamed558(); + o.resources = buildUnnamed562(); } buildCounterProjectsGetXpnResources--; return o; @@ -24799,7 +25140,7 @@ void checkProjectsGetXpnResources(api.ProjectsGetXpnResources o) { if (buildCounterProjectsGetXpnResources < 3) { unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed558(o.resources!); + checkUnnamed562(o.resources!); } buildCounterProjectsGetXpnResources--; } @@ -24866,13 +25207,13 @@ void checkProjectsSetDefaultNetworkTierRequest( buildCounterProjectsSetDefaultNetworkTierRequest--; } -core.List buildUnnamed559() => +core.List buildUnnamed563() => [ buildPublicAdvertisedPrefixPublicDelegatedPrefix(), buildPublicAdvertisedPrefixPublicDelegatedPrefix(), ]; -void checkUnnamed559( +void checkUnnamed563( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -24895,7 +25236,7 @@ api.PublicAdvertisedPrefix buildPublicAdvertisedPrefix() { o.kind = 'foo'; o.name = 'foo'; o.pdpScope = 'foo'; - o.publicDelegatedPrefixs = buildUnnamed559(); + o.publicDelegatedPrefixs = buildUnnamed563(); o.selfLink = 'foo'; o.sharedSecret = 'foo'; o.status = 'foo'; @@ -24917,7 +25258,7 @@ void checkPublicAdvertisedPrefix(api.PublicAdvertisedPrefix o) { unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.pdpScope!, unittest.equals('foo')); - checkUnnamed559(o.publicDelegatedPrefixs!); + checkUnnamed563(o.publicDelegatedPrefixs!); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.sharedSecret!, unittest.equals('foo')); unittest.expect(o.status!, unittest.equals('foo')); @@ -24925,12 +25266,12 @@ void checkPublicAdvertisedPrefix(api.PublicAdvertisedPrefix o) { buildCounterPublicAdvertisedPrefix--; } -core.List buildUnnamed560() => [ +core.List buildUnnamed564() => [ buildPublicAdvertisedPrefix(), buildPublicAdvertisedPrefix(), ]; -void checkUnnamed560(core.List o) { +void checkUnnamed564(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPublicAdvertisedPrefix(o[0]); checkPublicAdvertisedPrefix(o[1]); @@ -24960,12 +25301,12 @@ void checkPublicAdvertisedPrefixListWarningData( buildCounterPublicAdvertisedPrefixListWarningData--; } -core.List buildUnnamed561() => [ +core.List buildUnnamed565() => [ buildPublicAdvertisedPrefixListWarningData(), buildPublicAdvertisedPrefixListWarningData(), ]; -void checkUnnamed561(core.List o) { +void checkUnnamed565(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPublicAdvertisedPrefixListWarningData(o[0]); checkPublicAdvertisedPrefixListWarningData(o[1]); @@ -24977,7 +25318,7 @@ api.PublicAdvertisedPrefixListWarning buildPublicAdvertisedPrefixListWarning() { buildCounterPublicAdvertisedPrefixListWarning++; if (buildCounterPublicAdvertisedPrefixListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed561(); + o.data = buildUnnamed565(); o.message = 'foo'; } buildCounterPublicAdvertisedPrefixListWarning--; @@ -24990,7 +25331,7 @@ void checkPublicAdvertisedPrefixListWarning( buildCounterPublicAdvertisedPrefixListWarning++; if (buildCounterPublicAdvertisedPrefixListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed561(o.data!); + checkUnnamed565(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterPublicAdvertisedPrefixListWarning--; @@ -25002,7 +25343,7 @@ api.PublicAdvertisedPrefixList buildPublicAdvertisedPrefixList() { buildCounterPublicAdvertisedPrefixList++; if (buildCounterPublicAdvertisedPrefixList < 3) { o.id = 'foo'; - o.items = buildUnnamed560(); + o.items = buildUnnamed564(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -25016,7 +25357,7 @@ void checkPublicAdvertisedPrefixList(api.PublicAdvertisedPrefixList o) { buildCounterPublicAdvertisedPrefixList++; if (buildCounterPublicAdvertisedPrefixList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed560(o.items!); + checkUnnamed564(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -25056,12 +25397,12 @@ void checkPublicAdvertisedPrefixPublicDelegatedPrefix( } core.List -buildUnnamed562() => [ +buildUnnamed566() => [ buildPublicDelegatedPrefixPublicDelegatedSubPrefix(), buildPublicDelegatedPrefixPublicDelegatedSubPrefix(), ]; -void checkUnnamed562( +void checkUnnamed566( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -25086,7 +25427,7 @@ api.PublicDelegatedPrefix buildPublicDelegatedPrefix() { o.mode = 'foo'; o.name = 'foo'; o.parentPrefix = 'foo'; - o.publicDelegatedSubPrefixs = buildUnnamed562(); + o.publicDelegatedSubPrefixs = buildUnnamed566(); o.region = 'foo'; o.selfLink = 'foo'; o.status = 'foo'; @@ -25110,7 +25451,7 @@ void checkPublicDelegatedPrefix(api.PublicDelegatedPrefix o) { unittest.expect(o.mode!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.parentPrefix!, unittest.equals('foo')); - checkUnnamed562(o.publicDelegatedSubPrefixs!); + checkUnnamed566(o.publicDelegatedSubPrefixs!); unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.status!, unittest.equals('foo')); @@ -25119,12 +25460,12 @@ void checkPublicDelegatedPrefix(api.PublicDelegatedPrefix o) { } core.Map -buildUnnamed563() => { +buildUnnamed567() => { 'x': buildPublicDelegatedPrefixesScopedList(), 'y': buildPublicDelegatedPrefixesScopedList(), }; -void checkUnnamed563( +void checkUnnamed567( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -25132,9 +25473,9 @@ void checkUnnamed563( checkPublicDelegatedPrefixesScopedList(o['y']!); } -core.List buildUnnamed564() => ['foo', 'foo']; +core.List buildUnnamed568() => ['foo', 'foo']; -void checkUnnamed564(core.List o) { +void checkUnnamed568(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -25165,12 +25506,12 @@ void checkPublicDelegatedPrefixAggregatedListWarningData( } core.List -buildUnnamed565() => [ +buildUnnamed569() => [ buildPublicDelegatedPrefixAggregatedListWarningData(), buildPublicDelegatedPrefixAggregatedListWarningData(), ]; -void checkUnnamed565( +void checkUnnamed569( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -25185,7 +25526,7 @@ buildPublicDelegatedPrefixAggregatedListWarning() { buildCounterPublicDelegatedPrefixAggregatedListWarning++; if (buildCounterPublicDelegatedPrefixAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed565(); + o.data = buildUnnamed569(); o.message = 'foo'; } buildCounterPublicDelegatedPrefixAggregatedListWarning--; @@ -25198,7 +25539,7 @@ void checkPublicDelegatedPrefixAggregatedListWarning( buildCounterPublicDelegatedPrefixAggregatedListWarning++; if (buildCounterPublicDelegatedPrefixAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed565(o.data!); + checkUnnamed569(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterPublicDelegatedPrefixAggregatedListWarning--; @@ -25211,11 +25552,11 @@ buildPublicDelegatedPrefixAggregatedList() { buildCounterPublicDelegatedPrefixAggregatedList++; if (buildCounterPublicDelegatedPrefixAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed563(); + o.items = buildUnnamed567(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed564(); + o.unreachables = buildUnnamed568(); o.warning = buildPublicDelegatedPrefixAggregatedListWarning(); } buildCounterPublicDelegatedPrefixAggregatedList--; @@ -25228,22 +25569,22 @@ void checkPublicDelegatedPrefixAggregatedList( buildCounterPublicDelegatedPrefixAggregatedList++; if (buildCounterPublicDelegatedPrefixAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed563(o.items!); + checkUnnamed567(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed564(o.unreachables!); + checkUnnamed568(o.unreachables!); checkPublicDelegatedPrefixAggregatedListWarning(o.warning!); } buildCounterPublicDelegatedPrefixAggregatedList--; } -core.List buildUnnamed566() => [ +core.List buildUnnamed570() => [ buildPublicDelegatedPrefix(), buildPublicDelegatedPrefix(), ]; -void checkUnnamed566(core.List o) { +void checkUnnamed570(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPublicDelegatedPrefix(o[0]); checkPublicDelegatedPrefix(o[1]); @@ -25273,12 +25614,12 @@ void checkPublicDelegatedPrefixListWarningData( buildCounterPublicDelegatedPrefixListWarningData--; } -core.List buildUnnamed567() => [ +core.List buildUnnamed571() => [ buildPublicDelegatedPrefixListWarningData(), buildPublicDelegatedPrefixListWarningData(), ]; -void checkUnnamed567(core.List o) { +void checkUnnamed571(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPublicDelegatedPrefixListWarningData(o[0]); checkPublicDelegatedPrefixListWarningData(o[1]); @@ -25290,7 +25631,7 @@ api.PublicDelegatedPrefixListWarning buildPublicDelegatedPrefixListWarning() { buildCounterPublicDelegatedPrefixListWarning++; if (buildCounterPublicDelegatedPrefixListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed567(); + o.data = buildUnnamed571(); o.message = 'foo'; } buildCounterPublicDelegatedPrefixListWarning--; @@ -25303,7 +25644,7 @@ void checkPublicDelegatedPrefixListWarning( buildCounterPublicDelegatedPrefixListWarning++; if (buildCounterPublicDelegatedPrefixListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed567(o.data!); + checkUnnamed571(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterPublicDelegatedPrefixListWarning--; @@ -25315,7 +25656,7 @@ api.PublicDelegatedPrefixList buildPublicDelegatedPrefixList() { buildCounterPublicDelegatedPrefixList++; if (buildCounterPublicDelegatedPrefixList < 3) { o.id = 'foo'; - o.items = buildUnnamed566(); + o.items = buildUnnamed570(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -25329,7 +25670,7 @@ void checkPublicDelegatedPrefixList(api.PublicDelegatedPrefixList o) { buildCounterPublicDelegatedPrefixList++; if (buildCounterPublicDelegatedPrefixList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed566(o.items!); + checkUnnamed570(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -25376,12 +25717,12 @@ void checkPublicDelegatedPrefixPublicDelegatedSubPrefix( buildCounterPublicDelegatedPrefixPublicDelegatedSubPrefix--; } -core.List buildUnnamed568() => [ +core.List buildUnnamed572() => [ buildPublicDelegatedPrefix(), buildPublicDelegatedPrefix(), ]; -void checkUnnamed568(core.List o) { +void checkUnnamed572(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPublicDelegatedPrefix(o[0]); checkPublicDelegatedPrefix(o[1]); @@ -25411,13 +25752,13 @@ void checkPublicDelegatedPrefixesScopedListWarningData( buildCounterPublicDelegatedPrefixesScopedListWarningData--; } -core.List buildUnnamed569() => +core.List buildUnnamed573() => [ buildPublicDelegatedPrefixesScopedListWarningData(), buildPublicDelegatedPrefixesScopedListWarningData(), ]; -void checkUnnamed569( +void checkUnnamed573( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -25432,7 +25773,7 @@ buildPublicDelegatedPrefixesScopedListWarning() { buildCounterPublicDelegatedPrefixesScopedListWarning++; if (buildCounterPublicDelegatedPrefixesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed569(); + o.data = buildUnnamed573(); o.message = 'foo'; } buildCounterPublicDelegatedPrefixesScopedListWarning--; @@ -25445,7 +25786,7 @@ void checkPublicDelegatedPrefixesScopedListWarning( buildCounterPublicDelegatedPrefixesScopedListWarning++; if (buildCounterPublicDelegatedPrefixesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed569(o.data!); + checkUnnamed573(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterPublicDelegatedPrefixesScopedListWarning--; @@ -25456,7 +25797,7 @@ api.PublicDelegatedPrefixesScopedList buildPublicDelegatedPrefixesScopedList() { final o = api.PublicDelegatedPrefixesScopedList(); buildCounterPublicDelegatedPrefixesScopedList++; if (buildCounterPublicDelegatedPrefixesScopedList < 3) { - o.publicDelegatedPrefixes = buildUnnamed568(); + o.publicDelegatedPrefixes = buildUnnamed572(); o.warning = buildPublicDelegatedPrefixesScopedListWarning(); } buildCounterPublicDelegatedPrefixesScopedList--; @@ -25468,7 +25809,7 @@ void checkPublicDelegatedPrefixesScopedList( ) { buildCounterPublicDelegatedPrefixesScopedList++; if (buildCounterPublicDelegatedPrefixesScopedList < 3) { - checkUnnamed568(o.publicDelegatedPrefixes!); + checkUnnamed572(o.publicDelegatedPrefixes!); checkPublicDelegatedPrefixesScopedListWarning(o.warning!); } buildCounterPublicDelegatedPrefixesScopedList--; @@ -25499,12 +25840,12 @@ void checkQuota(api.Quota o) { buildCounterQuota--; } -core.Map buildUnnamed570() => { +core.Map buildUnnamed574() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed570(core.Map o) { +void checkUnnamed574(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -25515,7 +25856,7 @@ api.QuotaExceededInfo buildQuotaExceededInfo() { final o = api.QuotaExceededInfo(); buildCounterQuotaExceededInfo++; if (buildCounterQuotaExceededInfo < 3) { - o.dimensions = buildUnnamed570(); + o.dimensions = buildUnnamed574(); o.futureLimit = 42.0; o.limit = 42.0; o.limitName = 'foo'; @@ -25529,7 +25870,7 @@ api.QuotaExceededInfo buildQuotaExceededInfo() { void checkQuotaExceededInfo(api.QuotaExceededInfo o) { buildCounterQuotaExceededInfo++; if (buildCounterQuotaExceededInfo < 3) { - checkUnnamed570(o.dimensions!); + checkUnnamed574(o.dimensions!); unittest.expect(o.futureLimit!, unittest.equals(42.0)); unittest.expect(o.limit!, unittest.equals(42.0)); unittest.expect(o.limitName!, unittest.equals('foo')); @@ -25585,12 +25926,12 @@ void checkRegionQuotaStatusWarningData(api.RegionQuotaStatusWarningData o) { buildCounterRegionQuotaStatusWarningData--; } -core.List buildUnnamed571() => [ +core.List buildUnnamed575() => [ buildRegionQuotaStatusWarningData(), buildRegionQuotaStatusWarningData(), ]; -void checkUnnamed571(core.List o) { +void checkUnnamed575(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRegionQuotaStatusWarningData(o[0]); checkRegionQuotaStatusWarningData(o[1]); @@ -25602,7 +25943,7 @@ api.RegionQuotaStatusWarning buildRegionQuotaStatusWarning() { buildCounterRegionQuotaStatusWarning++; if (buildCounterRegionQuotaStatusWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed571(); + o.data = buildUnnamed575(); o.message = 'foo'; } buildCounterRegionQuotaStatusWarning--; @@ -25613,23 +25954,23 @@ void checkRegionQuotaStatusWarning(api.RegionQuotaStatusWarning o) { buildCounterRegionQuotaStatusWarning++; if (buildCounterRegionQuotaStatusWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed571(o.data!); + checkUnnamed575(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterRegionQuotaStatusWarning--; } -core.List buildUnnamed572() => [buildQuota(), buildQuota()]; +core.List buildUnnamed576() => [buildQuota(), buildQuota()]; -void checkUnnamed572(core.List o) { +void checkUnnamed576(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); } -core.List buildUnnamed573() => ['foo', 'foo']; +core.List buildUnnamed577() => ['foo', 'foo']; -void checkUnnamed573(core.List o) { +void checkUnnamed577(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -25647,11 +25988,11 @@ api.Region buildRegion() { o.kind = 'foo'; o.name = 'foo'; o.quotaStatusWarning = buildRegionQuotaStatusWarning(); - o.quotas = buildUnnamed572(); + o.quotas = buildUnnamed576(); o.selfLink = 'foo'; o.status = 'foo'; o.supportsPzs = true; - o.zones = buildUnnamed573(); + o.zones = buildUnnamed577(); } buildCounterRegion--; return o; @@ -25667,11 +26008,11 @@ void checkRegion(api.Region o) { unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); checkRegionQuotaStatusWarning(o.quotaStatusWarning!); - checkUnnamed572(o.quotas!); + checkUnnamed576(o.quotas!); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.status!, unittest.equals('foo')); unittest.expect(o.supportsPzs!, unittest.isTrue); - checkUnnamed573(o.zones!); + checkUnnamed577(o.zones!); } buildCounterRegion--; } @@ -25697,12 +26038,12 @@ void checkRegionAddressesMoveRequest(api.RegionAddressesMoveRequest o) { buildCounterRegionAddressesMoveRequest--; } -core.List buildUnnamed574() => [ +core.List buildUnnamed578() => [ buildAutoscaler(), buildAutoscaler(), ]; -void checkUnnamed574(core.List o) { +void checkUnnamed578(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -25731,12 +26072,12 @@ void checkRegionAutoscalerListWarningData( buildCounterRegionAutoscalerListWarningData--; } -core.List buildUnnamed575() => [ +core.List buildUnnamed579() => [ buildRegionAutoscalerListWarningData(), buildRegionAutoscalerListWarningData(), ]; -void checkUnnamed575(core.List o) { +void checkUnnamed579(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRegionAutoscalerListWarningData(o[0]); checkRegionAutoscalerListWarningData(o[1]); @@ -25748,7 +26089,7 @@ api.RegionAutoscalerListWarning buildRegionAutoscalerListWarning() { buildCounterRegionAutoscalerListWarning++; if (buildCounterRegionAutoscalerListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed575(); + o.data = buildUnnamed579(); o.message = 'foo'; } buildCounterRegionAutoscalerListWarning--; @@ -25759,7 +26100,7 @@ void checkRegionAutoscalerListWarning(api.RegionAutoscalerListWarning o) { buildCounterRegionAutoscalerListWarning++; if (buildCounterRegionAutoscalerListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed575(o.data!); + checkUnnamed579(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterRegionAutoscalerListWarning--; @@ -25771,7 +26112,7 @@ api.RegionAutoscalerList buildRegionAutoscalerList() { buildCounterRegionAutoscalerList++; if (buildCounterRegionAutoscalerList < 3) { o.id = 'foo'; - o.items = buildUnnamed574(); + o.items = buildUnnamed578(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -25785,7 +26126,7 @@ void checkRegionAutoscalerList(api.RegionAutoscalerList o) { buildCounterRegionAutoscalerList++; if (buildCounterRegionAutoscalerList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed574(o.items!); + checkUnnamed578(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -25794,9 +26135,9 @@ void checkRegionAutoscalerList(api.RegionAutoscalerList o) { buildCounterRegionAutoscalerList--; } -core.List buildUnnamed576() => [buildDiskType(), buildDiskType()]; +core.List buildUnnamed580() => [buildDiskType(), buildDiskType()]; -void checkUnnamed576(core.List o) { +void checkUnnamed580(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -25823,12 +26164,12 @@ void checkRegionDiskTypeListWarningData(api.RegionDiskTypeListWarningData o) { buildCounterRegionDiskTypeListWarningData--; } -core.List buildUnnamed577() => [ +core.List buildUnnamed581() => [ buildRegionDiskTypeListWarningData(), buildRegionDiskTypeListWarningData(), ]; -void checkUnnamed577(core.List o) { +void checkUnnamed581(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRegionDiskTypeListWarningData(o[0]); checkRegionDiskTypeListWarningData(o[1]); @@ -25840,7 +26181,7 @@ api.RegionDiskTypeListWarning buildRegionDiskTypeListWarning() { buildCounterRegionDiskTypeListWarning++; if (buildCounterRegionDiskTypeListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed577(); + o.data = buildUnnamed581(); o.message = 'foo'; } buildCounterRegionDiskTypeListWarning--; @@ -25851,7 +26192,7 @@ void checkRegionDiskTypeListWarning(api.RegionDiskTypeListWarning o) { buildCounterRegionDiskTypeListWarning++; if (buildCounterRegionDiskTypeListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed577(o.data!); + checkUnnamed581(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterRegionDiskTypeListWarning--; @@ -25863,7 +26204,7 @@ api.RegionDiskTypeList buildRegionDiskTypeList() { buildCounterRegionDiskTypeList++; if (buildCounterRegionDiskTypeList < 3) { o.id = 'foo'; - o.items = buildUnnamed576(); + o.items = buildUnnamed580(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -25877,7 +26218,7 @@ void checkRegionDiskTypeList(api.RegionDiskTypeList o) { buildCounterRegionDiskTypeList++; if (buildCounterRegionDiskTypeList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed576(o.items!); + checkUnnamed580(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -25886,9 +26227,9 @@ void checkRegionDiskTypeList(api.RegionDiskTypeList o) { buildCounterRegionDiskTypeList--; } -core.List buildUnnamed578() => ['foo', 'foo']; +core.List buildUnnamed582() => ['foo', 'foo']; -void checkUnnamed578(core.List o) { +void checkUnnamed582(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -25900,7 +26241,7 @@ buildRegionDisksAddResourcePoliciesRequest() { final o = api.RegionDisksAddResourcePoliciesRequest(); buildCounterRegionDisksAddResourcePoliciesRequest++; if (buildCounterRegionDisksAddResourcePoliciesRequest < 3) { - o.resourcePolicies = buildUnnamed578(); + o.resourcePolicies = buildUnnamed582(); } buildCounterRegionDisksAddResourcePoliciesRequest--; return o; @@ -25911,14 +26252,14 @@ void checkRegionDisksAddResourcePoliciesRequest( ) { buildCounterRegionDisksAddResourcePoliciesRequest++; if (buildCounterRegionDisksAddResourcePoliciesRequest < 3) { - checkUnnamed578(o.resourcePolicies!); + checkUnnamed582(o.resourcePolicies!); } buildCounterRegionDisksAddResourcePoliciesRequest--; } -core.List buildUnnamed579() => ['foo', 'foo']; +core.List buildUnnamed583() => ['foo', 'foo']; -void checkUnnamed579(core.List o) { +void checkUnnamed583(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -25930,7 +26271,7 @@ buildRegionDisksRemoveResourcePoliciesRequest() { final o = api.RegionDisksRemoveResourcePoliciesRequest(); buildCounterRegionDisksRemoveResourcePoliciesRequest++; if (buildCounterRegionDisksRemoveResourcePoliciesRequest < 3) { - o.resourcePolicies = buildUnnamed579(); + o.resourcePolicies = buildUnnamed583(); } buildCounterRegionDisksRemoveResourcePoliciesRequest--; return o; @@ -25941,7 +26282,7 @@ void checkRegionDisksRemoveResourcePoliciesRequest( ) { buildCounterRegionDisksRemoveResourcePoliciesRequest++; if (buildCounterRegionDisksRemoveResourcePoliciesRequest < 3) { - checkUnnamed579(o.resourcePolicies!); + checkUnnamed583(o.resourcePolicies!); } buildCounterRegionDisksRemoveResourcePoliciesRequest--; } @@ -25987,12 +26328,12 @@ void checkRegionDisksStartAsyncReplicationRequest( buildCounterRegionDisksStartAsyncReplicationRequest--; } -core.List buildUnnamed580() => [ +core.List buildUnnamed584() => [ buildInstanceGroup(), buildInstanceGroup(), ]; -void checkUnnamed580(core.List o) { +void checkUnnamed584(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -26022,12 +26363,12 @@ void checkRegionInstanceGroupListWarningData( buildCounterRegionInstanceGroupListWarningData--; } -core.List buildUnnamed581() => [ +core.List buildUnnamed585() => [ buildRegionInstanceGroupListWarningData(), buildRegionInstanceGroupListWarningData(), ]; -void checkUnnamed581(core.List o) { +void checkUnnamed585(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRegionInstanceGroupListWarningData(o[0]); checkRegionInstanceGroupListWarningData(o[1]); @@ -26039,7 +26380,7 @@ api.RegionInstanceGroupListWarning buildRegionInstanceGroupListWarning() { buildCounterRegionInstanceGroupListWarning++; if (buildCounterRegionInstanceGroupListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed581(); + o.data = buildUnnamed585(); o.message = 'foo'; } buildCounterRegionInstanceGroupListWarning--; @@ -26050,7 +26391,7 @@ void checkRegionInstanceGroupListWarning(api.RegionInstanceGroupListWarning o) { buildCounterRegionInstanceGroupListWarning++; if (buildCounterRegionInstanceGroupListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed581(o.data!); + checkUnnamed585(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterRegionInstanceGroupListWarning--; @@ -26062,7 +26403,7 @@ api.RegionInstanceGroupList buildRegionInstanceGroupList() { buildCounterRegionInstanceGroupList++; if (buildCounterRegionInstanceGroupList < 3) { o.id = 'foo'; - o.items = buildUnnamed580(); + o.items = buildUnnamed584(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -26076,7 +26417,7 @@ void checkRegionInstanceGroupList(api.RegionInstanceGroupList o) { buildCounterRegionInstanceGroupList++; if (buildCounterRegionInstanceGroupList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed580(o.items!); + checkUnnamed584(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -26085,9 +26426,9 @@ void checkRegionInstanceGroupList(api.RegionInstanceGroupList o) { buildCounterRegionInstanceGroupList--; } -core.List buildUnnamed582() => ['foo', 'foo']; +core.List buildUnnamed586() => ['foo', 'foo']; -void checkUnnamed582(core.List o) { +void checkUnnamed586(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -26099,7 +26440,7 @@ buildRegionInstanceGroupManagerDeleteInstanceConfigReq() { final o = api.RegionInstanceGroupManagerDeleteInstanceConfigReq(); buildCounterRegionInstanceGroupManagerDeleteInstanceConfigReq++; if (buildCounterRegionInstanceGroupManagerDeleteInstanceConfigReq < 3) { - o.names = buildUnnamed582(); + o.names = buildUnnamed586(); } buildCounterRegionInstanceGroupManagerDeleteInstanceConfigReq--; return o; @@ -26110,17 +26451,17 @@ void checkRegionInstanceGroupManagerDeleteInstanceConfigReq( ) { buildCounterRegionInstanceGroupManagerDeleteInstanceConfigReq++; if (buildCounterRegionInstanceGroupManagerDeleteInstanceConfigReq < 3) { - checkUnnamed582(o.names!); + checkUnnamed586(o.names!); } buildCounterRegionInstanceGroupManagerDeleteInstanceConfigReq--; } -core.List buildUnnamed583() => [ +core.List buildUnnamed587() => [ buildInstanceGroupManager(), buildInstanceGroupManager(), ]; -void checkUnnamed583(core.List o) { +void checkUnnamed587(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -26150,12 +26491,12 @@ void checkRegionInstanceGroupManagerListWarningData( buildCounterRegionInstanceGroupManagerListWarningData--; } -core.List buildUnnamed584() => [ +core.List buildUnnamed588() => [ buildRegionInstanceGroupManagerListWarningData(), buildRegionInstanceGroupManagerListWarningData(), ]; -void checkUnnamed584( +void checkUnnamed588( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -26170,7 +26511,7 @@ buildRegionInstanceGroupManagerListWarning() { buildCounterRegionInstanceGroupManagerListWarning++; if (buildCounterRegionInstanceGroupManagerListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed584(); + o.data = buildUnnamed588(); o.message = 'foo'; } buildCounterRegionInstanceGroupManagerListWarning--; @@ -26183,7 +26524,7 @@ void checkRegionInstanceGroupManagerListWarning( buildCounterRegionInstanceGroupManagerListWarning++; if (buildCounterRegionInstanceGroupManagerListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed584(o.data!); + checkUnnamed588(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterRegionInstanceGroupManagerListWarning--; @@ -26195,7 +26536,7 @@ api.RegionInstanceGroupManagerList buildRegionInstanceGroupManagerList() { buildCounterRegionInstanceGroupManagerList++; if (buildCounterRegionInstanceGroupManagerList < 3) { o.id = 'foo'; - o.items = buildUnnamed583(); + o.items = buildUnnamed587(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -26209,7 +26550,7 @@ void checkRegionInstanceGroupManagerList(api.RegionInstanceGroupManagerList o) { buildCounterRegionInstanceGroupManagerList++; if (buildCounterRegionInstanceGroupManagerList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed583(o.items!); + checkUnnamed587(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -26218,12 +26559,12 @@ void checkRegionInstanceGroupManagerList(api.RegionInstanceGroupManagerList o) { buildCounterRegionInstanceGroupManagerList--; } -core.List buildUnnamed585() => [ +core.List buildUnnamed589() => [ buildPerInstanceConfig(), buildPerInstanceConfig(), ]; -void checkUnnamed585(core.List o) { +void checkUnnamed589(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPerInstanceConfig(o[0]); checkPerInstanceConfig(o[1]); @@ -26235,7 +26576,7 @@ buildRegionInstanceGroupManagerPatchInstanceConfigReq() { final o = api.RegionInstanceGroupManagerPatchInstanceConfigReq(); buildCounterRegionInstanceGroupManagerPatchInstanceConfigReq++; if (buildCounterRegionInstanceGroupManagerPatchInstanceConfigReq < 3) { - o.perInstanceConfigs = buildUnnamed585(); + o.perInstanceConfigs = buildUnnamed589(); } buildCounterRegionInstanceGroupManagerPatchInstanceConfigReq--; return o; @@ -26246,17 +26587,17 @@ void checkRegionInstanceGroupManagerPatchInstanceConfigReq( ) { buildCounterRegionInstanceGroupManagerPatchInstanceConfigReq++; if (buildCounterRegionInstanceGroupManagerPatchInstanceConfigReq < 3) { - checkUnnamed585(o.perInstanceConfigs!); + checkUnnamed589(o.perInstanceConfigs!); } buildCounterRegionInstanceGroupManagerPatchInstanceConfigReq--; } -core.List buildUnnamed586() => [ +core.List buildUnnamed590() => [ buildPerInstanceConfig(), buildPerInstanceConfig(), ]; -void checkUnnamed586(core.List o) { +void checkUnnamed590(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPerInstanceConfig(o[0]); checkPerInstanceConfig(o[1]); @@ -26268,7 +26609,7 @@ buildRegionInstanceGroupManagerUpdateInstanceConfigReq() { final o = api.RegionInstanceGroupManagerUpdateInstanceConfigReq(); buildCounterRegionInstanceGroupManagerUpdateInstanceConfigReq++; if (buildCounterRegionInstanceGroupManagerUpdateInstanceConfigReq < 3) { - o.perInstanceConfigs = buildUnnamed586(); + o.perInstanceConfigs = buildUnnamed590(); } buildCounterRegionInstanceGroupManagerUpdateInstanceConfigReq--; return o; @@ -26279,14 +26620,14 @@ void checkRegionInstanceGroupManagerUpdateInstanceConfigReq( ) { buildCounterRegionInstanceGroupManagerUpdateInstanceConfigReq++; if (buildCounterRegionInstanceGroupManagerUpdateInstanceConfigReq < 3) { - checkUnnamed586(o.perInstanceConfigs!); + checkUnnamed590(o.perInstanceConfigs!); } buildCounterRegionInstanceGroupManagerUpdateInstanceConfigReq--; } -core.List buildUnnamed587() => ['foo', 'foo']; +core.List buildUnnamed591() => ['foo', 'foo']; -void checkUnnamed587(core.List o) { +void checkUnnamed591(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -26298,7 +26639,7 @@ buildRegionInstanceGroupManagersAbandonInstancesRequest() { final o = api.RegionInstanceGroupManagersAbandonInstancesRequest(); buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed587(); + o.instances = buildUnnamed591(); } buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; return o; @@ -26309,14 +26650,14 @@ void checkRegionInstanceGroupManagersAbandonInstancesRequest( ) { buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed587(o.instances!); + checkUnnamed591(o.instances!); } buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; } -core.List buildUnnamed588() => ['foo', 'foo']; +core.List buildUnnamed592() => ['foo', 'foo']; -void checkUnnamed588(core.List o) { +void checkUnnamed592(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -26329,7 +26670,7 @@ buildRegionInstanceGroupManagersApplyUpdatesRequest() { buildCounterRegionInstanceGroupManagersApplyUpdatesRequest++; if (buildCounterRegionInstanceGroupManagersApplyUpdatesRequest < 3) { o.allInstances = true; - o.instances = buildUnnamed588(); + o.instances = buildUnnamed592(); o.minimalAction = 'foo'; o.mostDisruptiveAllowedAction = 'foo'; } @@ -26343,19 +26684,19 @@ void checkRegionInstanceGroupManagersApplyUpdatesRequest( buildCounterRegionInstanceGroupManagersApplyUpdatesRequest++; if (buildCounterRegionInstanceGroupManagersApplyUpdatesRequest < 3) { unittest.expect(o.allInstances!, unittest.isTrue); - checkUnnamed588(o.instances!); + checkUnnamed592(o.instances!); unittest.expect(o.minimalAction!, unittest.equals('foo')); unittest.expect(o.mostDisruptiveAllowedAction!, unittest.equals('foo')); } buildCounterRegionInstanceGroupManagersApplyUpdatesRequest--; } -core.List buildUnnamed589() => [ +core.List buildUnnamed593() => [ buildPerInstanceConfig(), buildPerInstanceConfig(), ]; -void checkUnnamed589(core.List o) { +void checkUnnamed593(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPerInstanceConfig(o[0]); checkPerInstanceConfig(o[1]); @@ -26367,7 +26708,7 @@ buildRegionInstanceGroupManagersCreateInstancesRequest() { final o = api.RegionInstanceGroupManagersCreateInstancesRequest(); buildCounterRegionInstanceGroupManagersCreateInstancesRequest++; if (buildCounterRegionInstanceGroupManagersCreateInstancesRequest < 3) { - o.instances = buildUnnamed589(); + o.instances = buildUnnamed593(); } buildCounterRegionInstanceGroupManagersCreateInstancesRequest--; return o; @@ -26378,14 +26719,14 @@ void checkRegionInstanceGroupManagersCreateInstancesRequest( ) { buildCounterRegionInstanceGroupManagersCreateInstancesRequest++; if (buildCounterRegionInstanceGroupManagersCreateInstancesRequest < 3) { - checkUnnamed589(o.instances!); + checkUnnamed593(o.instances!); } buildCounterRegionInstanceGroupManagersCreateInstancesRequest--; } -core.List buildUnnamed590() => ['foo', 'foo']; +core.List buildUnnamed594() => ['foo', 'foo']; -void checkUnnamed590(core.List o) { +void checkUnnamed594(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -26397,7 +26738,7 @@ buildRegionInstanceGroupManagersDeleteInstancesRequest() { final o = api.RegionInstanceGroupManagersDeleteInstancesRequest(); buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed590(); + o.instances = buildUnnamed594(); o.skipInstancesOnValidationError = true; } buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; @@ -26409,18 +26750,18 @@ void checkRegionInstanceGroupManagersDeleteInstancesRequest( ) { buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed590(o.instances!); + checkUnnamed594(o.instances!); unittest.expect(o.skipInstancesOnValidationError!, unittest.isTrue); } buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; } -core.List buildUnnamed591() => [ +core.List buildUnnamed595() => [ buildInstanceManagedByIgmError(), buildInstanceManagedByIgmError(), ]; -void checkUnnamed591(core.List o) { +void checkUnnamed595(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceManagedByIgmError(o[0]); checkInstanceManagedByIgmError(o[1]); @@ -26432,7 +26773,7 @@ buildRegionInstanceGroupManagersListErrorsResponse() { final o = api.RegionInstanceGroupManagersListErrorsResponse(); buildCounterRegionInstanceGroupManagersListErrorsResponse++; if (buildCounterRegionInstanceGroupManagersListErrorsResponse < 3) { - o.items = buildUnnamed591(); + o.items = buildUnnamed595(); o.nextPageToken = 'foo'; } buildCounterRegionInstanceGroupManagersListErrorsResponse--; @@ -26444,18 +26785,18 @@ void checkRegionInstanceGroupManagersListErrorsResponse( ) { buildCounterRegionInstanceGroupManagersListErrorsResponse++; if (buildCounterRegionInstanceGroupManagersListErrorsResponse < 3) { - checkUnnamed591(o.items!); + checkUnnamed595(o.items!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterRegionInstanceGroupManagersListErrorsResponse--; } -core.List buildUnnamed592() => [ +core.List buildUnnamed596() => [ buildPerInstanceConfig(), buildPerInstanceConfig(), ]; -void checkUnnamed592(core.List o) { +void checkUnnamed596(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPerInstanceConfig(o[0]); checkPerInstanceConfig(o[1]); @@ -26489,12 +26830,12 @@ void checkRegionInstanceGroupManagersListInstanceConfigsRespWarningData( } core.List -buildUnnamed593() => [ +buildUnnamed597() => [ buildRegionInstanceGroupManagersListInstanceConfigsRespWarningData(), buildRegionInstanceGroupManagersListInstanceConfigsRespWarningData(), ]; -void checkUnnamed593( +void checkUnnamed597( core.List o, ) { @@ -26512,7 +26853,7 @@ buildRegionInstanceGroupManagersListInstanceConfigsRespWarning() { if (buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed593(); + o.data = buildUnnamed597(); o.message = 'foo'; } buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarning--; @@ -26526,7 +26867,7 @@ void checkRegionInstanceGroupManagersListInstanceConfigsRespWarning( if (buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed593(o.data!); + checkUnnamed597(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarning--; @@ -26538,7 +26879,7 @@ buildRegionInstanceGroupManagersListInstanceConfigsResp() { final o = api.RegionInstanceGroupManagersListInstanceConfigsResp(); buildCounterRegionInstanceGroupManagersListInstanceConfigsResp++; if (buildCounterRegionInstanceGroupManagersListInstanceConfigsResp < 3) { - o.items = buildUnnamed592(); + o.items = buildUnnamed596(); o.nextPageToken = 'foo'; o.warning = buildRegionInstanceGroupManagersListInstanceConfigsRespWarning(); @@ -26552,19 +26893,19 @@ void checkRegionInstanceGroupManagersListInstanceConfigsResp( ) { buildCounterRegionInstanceGroupManagersListInstanceConfigsResp++; if (buildCounterRegionInstanceGroupManagersListInstanceConfigsResp < 3) { - checkUnnamed592(o.items!); + checkUnnamed596(o.items!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); checkRegionInstanceGroupManagersListInstanceConfigsRespWarning(o.warning!); } buildCounterRegionInstanceGroupManagersListInstanceConfigsResp--; } -core.List buildUnnamed594() => [ +core.List buildUnnamed598() => [ buildManagedInstance(), buildManagedInstance(), ]; -void checkUnnamed594(core.List o) { +void checkUnnamed598(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstance(o[0]); checkManagedInstance(o[1]); @@ -26576,7 +26917,7 @@ buildRegionInstanceGroupManagersListInstancesResponse() { final o = api.RegionInstanceGroupManagersListInstancesResponse(); buildCounterRegionInstanceGroupManagersListInstancesResponse++; if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { - o.managedInstances = buildUnnamed594(); + o.managedInstances = buildUnnamed598(); o.nextPageToken = 'foo'; } buildCounterRegionInstanceGroupManagersListInstancesResponse--; @@ -26588,15 +26929,15 @@ void checkRegionInstanceGroupManagersListInstancesResponse( ) { buildCounterRegionInstanceGroupManagersListInstancesResponse++; if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { - checkUnnamed594(o.managedInstances!); + checkUnnamed598(o.managedInstances!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterRegionInstanceGroupManagersListInstancesResponse--; } -core.List buildUnnamed595() => ['foo', 'foo']; +core.List buildUnnamed599() => ['foo', 'foo']; -void checkUnnamed595(core.List o) { +void checkUnnamed599(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -26608,7 +26949,7 @@ buildRegionInstanceGroupManagersRecreateRequest() { final o = api.RegionInstanceGroupManagersRecreateRequest(); buildCounterRegionInstanceGroupManagersRecreateRequest++; if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { - o.instances = buildUnnamed595(); + o.instances = buildUnnamed599(); } buildCounterRegionInstanceGroupManagersRecreateRequest--; return o; @@ -26619,14 +26960,14 @@ void checkRegionInstanceGroupManagersRecreateRequest( ) { buildCounterRegionInstanceGroupManagersRecreateRequest++; if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { - checkUnnamed595(o.instances!); + checkUnnamed599(o.instances!); } buildCounterRegionInstanceGroupManagersRecreateRequest--; } -core.List buildUnnamed596() => ['foo', 'foo']; +core.List buildUnnamed600() => ['foo', 'foo']; -void checkUnnamed596(core.List o) { +void checkUnnamed600(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -26638,7 +26979,7 @@ buildRegionInstanceGroupManagersResumeInstancesRequest() { final o = api.RegionInstanceGroupManagersResumeInstancesRequest(); buildCounterRegionInstanceGroupManagersResumeInstancesRequest++; if (buildCounterRegionInstanceGroupManagersResumeInstancesRequest < 3) { - o.instances = buildUnnamed596(); + o.instances = buildUnnamed600(); } buildCounterRegionInstanceGroupManagersResumeInstancesRequest--; return o; @@ -26649,14 +26990,14 @@ void checkRegionInstanceGroupManagersResumeInstancesRequest( ) { buildCounterRegionInstanceGroupManagersResumeInstancesRequest++; if (buildCounterRegionInstanceGroupManagersResumeInstancesRequest < 3) { - checkUnnamed596(o.instances!); + checkUnnamed600(o.instances!); } buildCounterRegionInstanceGroupManagersResumeInstancesRequest--; } -core.List buildUnnamed597() => ['foo', 'foo']; +core.List buildUnnamed601() => ['foo', 'foo']; -void checkUnnamed597(core.List o) { +void checkUnnamed601(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -26669,7 +27010,7 @@ buildRegionInstanceGroupManagersSetTargetPoolsRequest() { buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = 'foo'; - o.targetPools = buildUnnamed597(); + o.targetPools = buildUnnamed601(); } buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -26681,7 +27022,7 @@ void checkRegionInstanceGroupManagersSetTargetPoolsRequest( buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint!, unittest.equals('foo')); - checkUnnamed597(o.targetPools!); + checkUnnamed601(o.targetPools!); } buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; } @@ -26708,9 +27049,9 @@ void checkRegionInstanceGroupManagersSetTemplateRequest( buildCounterRegionInstanceGroupManagersSetTemplateRequest--; } -core.List buildUnnamed598() => ['foo', 'foo']; +core.List buildUnnamed602() => ['foo', 'foo']; -void checkUnnamed598(core.List o) { +void checkUnnamed602(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -26722,7 +27063,7 @@ buildRegionInstanceGroupManagersStartInstancesRequest() { final o = api.RegionInstanceGroupManagersStartInstancesRequest(); buildCounterRegionInstanceGroupManagersStartInstancesRequest++; if (buildCounterRegionInstanceGroupManagersStartInstancesRequest < 3) { - o.instances = buildUnnamed598(); + o.instances = buildUnnamed602(); } buildCounterRegionInstanceGroupManagersStartInstancesRequest--; return o; @@ -26733,14 +27074,14 @@ void checkRegionInstanceGroupManagersStartInstancesRequest( ) { buildCounterRegionInstanceGroupManagersStartInstancesRequest++; if (buildCounterRegionInstanceGroupManagersStartInstancesRequest < 3) { - checkUnnamed598(o.instances!); + checkUnnamed602(o.instances!); } buildCounterRegionInstanceGroupManagersStartInstancesRequest--; } -core.List buildUnnamed599() => ['foo', 'foo']; +core.List buildUnnamed603() => ['foo', 'foo']; -void checkUnnamed599(core.List o) { +void checkUnnamed603(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -26753,7 +27094,7 @@ buildRegionInstanceGroupManagersStopInstancesRequest() { buildCounterRegionInstanceGroupManagersStopInstancesRequest++; if (buildCounterRegionInstanceGroupManagersStopInstancesRequest < 3) { o.forceStop = true; - o.instances = buildUnnamed599(); + o.instances = buildUnnamed603(); } buildCounterRegionInstanceGroupManagersStopInstancesRequest--; return o; @@ -26765,14 +27106,14 @@ void checkRegionInstanceGroupManagersStopInstancesRequest( buildCounterRegionInstanceGroupManagersStopInstancesRequest++; if (buildCounterRegionInstanceGroupManagersStopInstancesRequest < 3) { unittest.expect(o.forceStop!, unittest.isTrue); - checkUnnamed599(o.instances!); + checkUnnamed603(o.instances!); } buildCounterRegionInstanceGroupManagersStopInstancesRequest--; } -core.List buildUnnamed600() => ['foo', 'foo']; +core.List buildUnnamed604() => ['foo', 'foo']; -void checkUnnamed600(core.List o) { +void checkUnnamed604(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -26785,7 +27126,7 @@ buildRegionInstanceGroupManagersSuspendInstancesRequest() { buildCounterRegionInstanceGroupManagersSuspendInstancesRequest++; if (buildCounterRegionInstanceGroupManagersSuspendInstancesRequest < 3) { o.forceSuspend = true; - o.instances = buildUnnamed600(); + o.instances = buildUnnamed604(); } buildCounterRegionInstanceGroupManagersSuspendInstancesRequest--; return o; @@ -26797,17 +27138,17 @@ void checkRegionInstanceGroupManagersSuspendInstancesRequest( buildCounterRegionInstanceGroupManagersSuspendInstancesRequest++; if (buildCounterRegionInstanceGroupManagersSuspendInstancesRequest < 3) { unittest.expect(o.forceSuspend!, unittest.isTrue); - checkUnnamed600(o.instances!); + checkUnnamed604(o.instances!); } buildCounterRegionInstanceGroupManagersSuspendInstancesRequest--; } -core.List buildUnnamed601() => [ +core.List buildUnnamed605() => [ buildInstanceWithNamedPorts(), buildInstanceWithNamedPorts(), ]; -void checkUnnamed601(core.List o) { +void checkUnnamed605(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceWithNamedPorts(o[0]); checkInstanceWithNamedPorts(o[1]); @@ -26837,13 +27178,13 @@ void checkRegionInstanceGroupsListInstancesWarningData( buildCounterRegionInstanceGroupsListInstancesWarningData--; } -core.List buildUnnamed602() => +core.List buildUnnamed606() => [ buildRegionInstanceGroupsListInstancesWarningData(), buildRegionInstanceGroupsListInstancesWarningData(), ]; -void checkUnnamed602( +void checkUnnamed606( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -26858,7 +27199,7 @@ buildRegionInstanceGroupsListInstancesWarning() { buildCounterRegionInstanceGroupsListInstancesWarning++; if (buildCounterRegionInstanceGroupsListInstancesWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed602(); + o.data = buildUnnamed606(); o.message = 'foo'; } buildCounterRegionInstanceGroupsListInstancesWarning--; @@ -26871,7 +27212,7 @@ void checkRegionInstanceGroupsListInstancesWarning( buildCounterRegionInstanceGroupsListInstancesWarning++; if (buildCounterRegionInstanceGroupsListInstancesWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed602(o.data!); + checkUnnamed606(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterRegionInstanceGroupsListInstancesWarning--; @@ -26883,7 +27224,7 @@ api.RegionInstanceGroupsListInstances buildRegionInstanceGroupsListInstances() { buildCounterRegionInstanceGroupsListInstances++; if (buildCounterRegionInstanceGroupsListInstances < 3) { o.id = 'foo'; - o.items = buildUnnamed601(); + o.items = buildUnnamed605(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -26899,7 +27240,7 @@ void checkRegionInstanceGroupsListInstances( buildCounterRegionInstanceGroupsListInstances++; if (buildCounterRegionInstanceGroupsListInstances < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed601(o.items!); + checkUnnamed605(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -26932,12 +27273,12 @@ void checkRegionInstanceGroupsListInstancesRequest( buildCounterRegionInstanceGroupsListInstancesRequest--; } -core.List buildUnnamed603() => [ +core.List buildUnnamed607() => [ buildNamedPort(), buildNamedPort(), ]; -void checkUnnamed603(core.List o) { +void checkUnnamed607(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -26950,7 +27291,7 @@ buildRegionInstanceGroupsSetNamedPortsRequest() { buildCounterRegionInstanceGroupsSetNamedPortsRequest++; if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { o.fingerprint = 'foo'; - o.namedPorts = buildUnnamed603(); + o.namedPorts = buildUnnamed607(); } buildCounterRegionInstanceGroupsSetNamedPortsRequest--; return o; @@ -26962,14 +27303,14 @@ void checkRegionInstanceGroupsSetNamedPortsRequest( buildCounterRegionInstanceGroupsSetNamedPortsRequest++; if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { unittest.expect(o.fingerprint!, unittest.equals('foo')); - checkUnnamed603(o.namedPorts!); + checkUnnamed607(o.namedPorts!); } buildCounterRegionInstanceGroupsSetNamedPortsRequest--; } -core.List buildUnnamed604() => [buildRegion(), buildRegion()]; +core.List buildUnnamed608() => [buildRegion(), buildRegion()]; -void checkUnnamed604(core.List o) { +void checkUnnamed608(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -26996,12 +27337,12 @@ void checkRegionListWarningData(api.RegionListWarningData o) { buildCounterRegionListWarningData--; } -core.List buildUnnamed605() => [ +core.List buildUnnamed609() => [ buildRegionListWarningData(), buildRegionListWarningData(), ]; -void checkUnnamed605(core.List o) { +void checkUnnamed609(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRegionListWarningData(o[0]); checkRegionListWarningData(o[1]); @@ -27013,7 +27354,7 @@ api.RegionListWarning buildRegionListWarning() { buildCounterRegionListWarning++; if (buildCounterRegionListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed605(); + o.data = buildUnnamed609(); o.message = 'foo'; } buildCounterRegionListWarning--; @@ -27024,7 +27365,7 @@ void checkRegionListWarning(api.RegionListWarning o) { buildCounterRegionListWarning++; if (buildCounterRegionListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed605(o.data!); + checkUnnamed609(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterRegionListWarning--; @@ -27036,7 +27377,7 @@ api.RegionList buildRegionList() { buildCounterRegionList++; if (buildCounterRegionList < 3) { o.id = 'foo'; - o.items = buildUnnamed604(); + o.items = buildUnnamed608(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -27050,7 +27391,7 @@ void checkRegionList(api.RegionList o) { buildCounterRegionList++; if (buildCounterRegionList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed604(o.items!); + checkUnnamed608(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -27059,12 +27400,12 @@ void checkRegionList(api.RegionList o) { buildCounterRegionList--; } -core.List buildUnnamed606() => [ +core.List buildUnnamed610() => [ buildNetworkEndpoint(), buildNetworkEndpoint(), ]; -void checkUnnamed606(core.List o) { +void checkUnnamed610(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpoint(o[0]); checkNetworkEndpoint(o[1]); @@ -27076,7 +27417,7 @@ buildRegionNetworkEndpointGroupsAttachEndpointsRequest() { final o = api.RegionNetworkEndpointGroupsAttachEndpointsRequest(); buildCounterRegionNetworkEndpointGroupsAttachEndpointsRequest++; if (buildCounterRegionNetworkEndpointGroupsAttachEndpointsRequest < 3) { - o.networkEndpoints = buildUnnamed606(); + o.networkEndpoints = buildUnnamed610(); } buildCounterRegionNetworkEndpointGroupsAttachEndpointsRequest--; return o; @@ -27087,17 +27428,17 @@ void checkRegionNetworkEndpointGroupsAttachEndpointsRequest( ) { buildCounterRegionNetworkEndpointGroupsAttachEndpointsRequest++; if (buildCounterRegionNetworkEndpointGroupsAttachEndpointsRequest < 3) { - checkUnnamed606(o.networkEndpoints!); + checkUnnamed610(o.networkEndpoints!); } buildCounterRegionNetworkEndpointGroupsAttachEndpointsRequest--; } -core.List buildUnnamed607() => [ +core.List buildUnnamed611() => [ buildNetworkEndpoint(), buildNetworkEndpoint(), ]; -void checkUnnamed607(core.List o) { +void checkUnnamed611(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpoint(o[0]); checkNetworkEndpoint(o[1]); @@ -27109,7 +27450,7 @@ buildRegionNetworkEndpointGroupsDetachEndpointsRequest() { final o = api.RegionNetworkEndpointGroupsDetachEndpointsRequest(); buildCounterRegionNetworkEndpointGroupsDetachEndpointsRequest++; if (buildCounterRegionNetworkEndpointGroupsDetachEndpointsRequest < 3) { - o.networkEndpoints = buildUnnamed607(); + o.networkEndpoints = buildUnnamed611(); } buildCounterRegionNetworkEndpointGroupsDetachEndpointsRequest--; return o; @@ -27120,7 +27461,7 @@ void checkRegionNetworkEndpointGroupsDetachEndpointsRequest( ) { buildCounterRegionNetworkEndpointGroupsDetachEndpointsRequest++; if (buildCounterRegionNetworkEndpointGroupsDetachEndpointsRequest < 3) { - checkUnnamed607(o.networkEndpoints!); + checkUnnamed611(o.networkEndpoints!); } buildCounterRegionNetworkEndpointGroupsDetachEndpointsRequest--; } @@ -27128,12 +27469,12 @@ void checkRegionNetworkEndpointGroupsDetachEndpointsRequest( core.List< api.RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy > -buildUnnamed608() => [ +buildUnnamed612() => [ buildRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy(), buildRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy(), ]; -void checkUnnamed608( +void checkUnnamed612( core.List< api.RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy > @@ -27148,9 +27489,9 @@ void checkUnnamed608( ); } -core.List buildUnnamed609() => [buildFirewall(), buildFirewall()]; +core.List buildUnnamed613() => [buildFirewall(), buildFirewall()]; -void checkUnnamed609(core.List o) { +void checkUnnamed613(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewall(o[0]); checkFirewall(o[1]); @@ -27164,8 +27505,8 @@ buildRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse() { buildCounterRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse++; if (buildCounterRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse < 3) { - o.firewallPolicys = buildUnnamed608(); - o.firewalls = buildUnnamed609(); + o.firewallPolicys = buildUnnamed612(); + o.firewalls = buildUnnamed613(); } buildCounterRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse--; return o; @@ -27177,29 +27518,29 @@ void checkRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse( buildCounterRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse++; if (buildCounterRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse < 3) { - checkUnnamed608(o.firewallPolicys!); - checkUnnamed609(o.firewalls!); + checkUnnamed612(o.firewallPolicys!); + checkUnnamed613(o.firewalls!); } buildCounterRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse--; } -core.List buildUnnamed610() => [ +core.List buildUnnamed614() => [ buildFirewallPolicyRule(), buildFirewallPolicyRule(), ]; -void checkUnnamed610(core.List o) { +void checkUnnamed614(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicyRule(o[0]); checkFirewallPolicyRule(o[1]); } -core.List buildUnnamed611() => [ +core.List buildUnnamed615() => [ buildFirewallPolicyRule(), buildFirewallPolicyRule(), ]; -void checkUnnamed611(core.List o) { +void checkUnnamed615(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallPolicyRule(o[0]); checkFirewallPolicyRule(o[1]); @@ -27217,9 +27558,9 @@ buildRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewall 3) { o.displayName = 'foo'; o.name = 'foo'; - o.packetMirroringRules = buildUnnamed610(); + o.packetMirroringRules = buildUnnamed614(); o.priority = 42; - o.rules = buildUnnamed611(); + o.rules = buildUnnamed615(); o.type = 'foo'; } buildCounterRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy--; @@ -27236,20 +27577,20 @@ checkRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewall 3) { unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed610(o.packetMirroringRules!); + checkUnnamed614(o.packetMirroringRules!); unittest.expect(o.priority!, unittest.equals(42)); - checkUnnamed611(o.rules!); + checkUnnamed615(o.rules!); unittest.expect(o.type!, unittest.equals('foo')); } buildCounterRegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy--; } -core.Map buildUnnamed612() => { +core.Map buildUnnamed616() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed612(core.Map o) { +void checkUnnamed616(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -27261,7 +27602,7 @@ api.RegionSetLabelsRequest buildRegionSetLabelsRequest() { buildCounterRegionSetLabelsRequest++; if (buildCounterRegionSetLabelsRequest < 3) { o.labelFingerprint = 'foo'; - o.labels = buildUnnamed612(); + o.labels = buildUnnamed616(); } buildCounterRegionSetLabelsRequest--; return o; @@ -27271,14 +27612,14 @@ void checkRegionSetLabelsRequest(api.RegionSetLabelsRequest o) { buildCounterRegionSetLabelsRequest++; if (buildCounterRegionSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed612(o.labels!); + checkUnnamed616(o.labels!); } buildCounterRegionSetLabelsRequest--; } -core.List buildUnnamed613() => [buildBinding(), buildBinding()]; +core.List buildUnnamed617() => [buildBinding(), buildBinding()]; -void checkUnnamed613(core.List o) { +void checkUnnamed617(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -27289,7 +27630,7 @@ api.RegionSetPolicyRequest buildRegionSetPolicyRequest() { final o = api.RegionSetPolicyRequest(); buildCounterRegionSetPolicyRequest++; if (buildCounterRegionSetPolicyRequest < 3) { - o.bindings = buildUnnamed613(); + o.bindings = buildUnnamed617(); o.etag = 'foo'; o.policy = buildPolicy(); } @@ -27300,16 +27641,16 @@ api.RegionSetPolicyRequest buildRegionSetPolicyRequest() { void checkRegionSetPolicyRequest(api.RegionSetPolicyRequest o) { buildCounterRegionSetPolicyRequest++; if (buildCounterRegionSetPolicyRequest < 3) { - checkUnnamed613(o.bindings!); + checkUnnamed617(o.bindings!); unittest.expect(o.etag!, unittest.equals('foo')); checkPolicy(o.policy!); } buildCounterRegionSetPolicyRequest--; } -core.List buildUnnamed614() => ['foo', 'foo']; +core.List buildUnnamed618() => ['foo', 'foo']; -void checkUnnamed614(core.List o) { +void checkUnnamed618(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -27321,7 +27662,7 @@ buildRegionTargetHttpsProxiesSetSslCertificatesRequest() { final o = api.RegionTargetHttpsProxiesSetSslCertificatesRequest(); buildCounterRegionTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterRegionTargetHttpsProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed614(); + o.sslCertificates = buildUnnamed618(); } buildCounterRegionTargetHttpsProxiesSetSslCertificatesRequest--; return o; @@ -27332,7 +27673,7 @@ void checkRegionTargetHttpsProxiesSetSslCertificatesRequest( ) { buildCounterRegionTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterRegionTargetHttpsProxiesSetSslCertificatesRequest < 3) { - checkUnnamed614(o.sslCertificates!); + checkUnnamed618(o.sslCertificates!); } buildCounterRegionTargetHttpsProxiesSetSslCertificatesRequest--; } @@ -27375,20 +27716,20 @@ void checkRequestMirrorPolicy(api.RequestMirrorPolicy o) { buildCounterRequestMirrorPolicy--; } -core.List buildUnnamed615() => ['foo', 'foo']; +core.List buildUnnamed619() => ['foo', 'foo']; -void checkUnnamed615(core.List o) { +void checkUnnamed619(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed616() => { +core.Map buildUnnamed620() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed616(core.Map o) { +void checkUnnamed620(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -27399,6 +27740,7 @@ api.Reservation buildReservation() { final o = api.Reservation(); buildCounterReservation++; if (buildCounterReservation < 3) { + o.advancedDeploymentControl = buildReservationAdvancedDeploymentControl(); o.aggregateReservation = buildAllocationAggregateReservation(); o.commitment = 'foo'; o.creationTimestamp = 'foo'; @@ -27409,10 +27751,10 @@ api.Reservation buildReservation() { o.enableEmergentMaintenance = true; o.id = 'foo'; o.kind = 'foo'; - o.linkedCommitments = buildUnnamed615(); + o.linkedCommitments = buildUnnamed619(); o.name = 'foo'; o.reservationSharingPolicy = buildAllocationReservationSharingPolicy(); - o.resourcePolicies = buildUnnamed616(); + o.resourcePolicies = buildUnnamed620(); o.resourceStatus = buildAllocationResourceStatus(); o.satisfiesPzs = true; o.schedulingType = 'foo'; @@ -27430,6 +27772,7 @@ api.Reservation buildReservation() { void checkReservation(api.Reservation o) { buildCounterReservation++; if (buildCounterReservation < 3) { + checkReservationAdvancedDeploymentControl(o.advancedDeploymentControl!); checkAllocationAggregateReservation(o.aggregateReservation!); unittest.expect(o.commitment!, unittest.equals('foo')); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); @@ -27440,10 +27783,10 @@ void checkReservation(api.Reservation o) { unittest.expect(o.enableEmergentMaintenance!, unittest.isTrue); unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); - checkUnnamed615(o.linkedCommitments!); + checkUnnamed619(o.linkedCommitments!); unittest.expect(o.name!, unittest.equals('foo')); checkAllocationReservationSharingPolicy(o.reservationSharingPolicy!); - checkUnnamed616(o.resourcePolicies!); + checkUnnamed620(o.resourcePolicies!); checkAllocationResourceStatus(o.resourceStatus!); unittest.expect(o.satisfiesPzs!, unittest.isTrue); unittest.expect(o.schedulingType!, unittest.equals('foo')); @@ -27457,9 +27800,31 @@ void checkReservation(api.Reservation o) { buildCounterReservation--; } -core.List buildUnnamed617() => ['foo', 'foo']; +core.int buildCounterReservationAdvancedDeploymentControl = 0; +api.ReservationAdvancedDeploymentControl +buildReservationAdvancedDeploymentControl() { + final o = api.ReservationAdvancedDeploymentControl(); + buildCounterReservationAdvancedDeploymentControl++; + if (buildCounterReservationAdvancedDeploymentControl < 3) { + o.reservationOperationalMode = 'foo'; + } + buildCounterReservationAdvancedDeploymentControl--; + return o; +} -void checkUnnamed617(core.List o) { +void checkReservationAdvancedDeploymentControl( + api.ReservationAdvancedDeploymentControl o, +) { + buildCounterReservationAdvancedDeploymentControl++; + if (buildCounterReservationAdvancedDeploymentControl < 3) { + unittest.expect(o.reservationOperationalMode!, unittest.equals('foo')); + } + buildCounterReservationAdvancedDeploymentControl--; +} + +core.List buildUnnamed621() => ['foo', 'foo']; + +void checkUnnamed621(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -27472,7 +27837,7 @@ api.ReservationAffinity buildReservationAffinity() { if (buildCounterReservationAffinity < 3) { o.consumeReservationType = 'foo'; o.key = 'foo'; - o.values = buildUnnamed617(); + o.values = buildUnnamed621(); } buildCounterReservationAffinity--; return o; @@ -27483,25 +27848,25 @@ void checkReservationAffinity(api.ReservationAffinity o) { if (buildCounterReservationAffinity < 3) { unittest.expect(o.consumeReservationType!, unittest.equals('foo')); unittest.expect(o.key!, unittest.equals('foo')); - checkUnnamed617(o.values!); + checkUnnamed621(o.values!); } buildCounterReservationAffinity--; } -core.Map buildUnnamed618() => { +core.Map buildUnnamed622() => { 'x': buildReservationsScopedList(), 'y': buildReservationsScopedList(), }; -void checkUnnamed618(core.Map o) { +void checkUnnamed622(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkReservationsScopedList(o['x']!); checkReservationsScopedList(o['y']!); } -core.List buildUnnamed619() => ['foo', 'foo']; +core.List buildUnnamed623() => ['foo', 'foo']; -void checkUnnamed619(core.List o) { +void checkUnnamed623(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -27531,12 +27896,12 @@ void checkReservationAggregatedListWarningData( buildCounterReservationAggregatedListWarningData--; } -core.List buildUnnamed620() => [ +core.List buildUnnamed624() => [ buildReservationAggregatedListWarningData(), buildReservationAggregatedListWarningData(), ]; -void checkUnnamed620(core.List o) { +void checkUnnamed624(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkReservationAggregatedListWarningData(o[0]); checkReservationAggregatedListWarningData(o[1]); @@ -27548,7 +27913,7 @@ api.ReservationAggregatedListWarning buildReservationAggregatedListWarning() { buildCounterReservationAggregatedListWarning++; if (buildCounterReservationAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed620(); + o.data = buildUnnamed624(); o.message = 'foo'; } buildCounterReservationAggregatedListWarning--; @@ -27561,7 +27926,7 @@ void checkReservationAggregatedListWarning( buildCounterReservationAggregatedListWarning++; if (buildCounterReservationAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed620(o.data!); + checkUnnamed624(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterReservationAggregatedListWarning--; @@ -27573,11 +27938,11 @@ api.ReservationAggregatedList buildReservationAggregatedList() { buildCounterReservationAggregatedList++; if (buildCounterReservationAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed618(); + o.items = buildUnnamed622(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed619(); + o.unreachables = buildUnnamed623(); o.warning = buildReservationAggregatedListWarning(); } buildCounterReservationAggregatedList--; @@ -27588,11 +27953,11 @@ void checkReservationAggregatedList(api.ReservationAggregatedList o) { buildCounterReservationAggregatedList++; if (buildCounterReservationAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed618(o.items!); + checkUnnamed622(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed619(o.unreachables!); + checkUnnamed623(o.unreachables!); checkReservationAggregatedListWarning(o.warning!); } buildCounterReservationAggregatedList--; @@ -27668,12 +28033,12 @@ void checkReservationBlockHealthInfo(api.ReservationBlockHealthInfo o) { buildCounterReservationBlockHealthInfo--; } -core.List buildUnnamed621() => [ +core.List buildUnnamed625() => [ buildReservationBlockPhysicalTopologyInstance(), buildReservationBlockPhysicalTopologyInstance(), ]; -void checkUnnamed621( +void checkUnnamed625( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -27688,7 +28053,7 @@ api.ReservationBlockPhysicalTopology buildReservationBlockPhysicalTopology() { if (buildCounterReservationBlockPhysicalTopology < 3) { o.block = 'foo'; o.cluster = 'foo'; - o.instances = buildUnnamed621(); + o.instances = buildUnnamed625(); } buildCounterReservationBlockPhysicalTopology--; return o; @@ -27701,7 +28066,7 @@ void checkReservationBlockPhysicalTopology( if (buildCounterReservationBlockPhysicalTopology < 3) { unittest.expect(o.block!, unittest.equals('foo')); unittest.expect(o.cluster!, unittest.equals('foo')); - checkUnnamed621(o.instances!); + checkUnnamed625(o.instances!); } buildCounterReservationBlockPhysicalTopology--; } @@ -27781,12 +28146,12 @@ void checkReservationBlocksGetResponse(api.ReservationBlocksGetResponse o) { buildCounterReservationBlocksGetResponse--; } -core.List buildUnnamed622() => [ +core.List buildUnnamed626() => [ buildReservationBlock(), buildReservationBlock(), ]; -void checkUnnamed622(core.List o) { +void checkUnnamed626(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkReservationBlock(o[0]); checkReservationBlock(o[1]); @@ -27816,12 +28181,12 @@ void checkReservationBlocksListResponseWarningData( buildCounterReservationBlocksListResponseWarningData--; } -core.List buildUnnamed623() => [ +core.List buildUnnamed627() => [ buildReservationBlocksListResponseWarningData(), buildReservationBlocksListResponseWarningData(), ]; -void checkUnnamed623( +void checkUnnamed627( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -27836,7 +28201,7 @@ buildReservationBlocksListResponseWarning() { buildCounterReservationBlocksListResponseWarning++; if (buildCounterReservationBlocksListResponseWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed623(); + o.data = buildUnnamed627(); o.message = 'foo'; } buildCounterReservationBlocksListResponseWarning--; @@ -27849,7 +28214,7 @@ void checkReservationBlocksListResponseWarning( buildCounterReservationBlocksListResponseWarning++; if (buildCounterReservationBlocksListResponseWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed623(o.data!); + checkUnnamed627(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterReservationBlocksListResponseWarning--; @@ -27861,7 +28226,7 @@ api.ReservationBlocksListResponse buildReservationBlocksListResponse() { buildCounterReservationBlocksListResponse++; if (buildCounterReservationBlocksListResponse < 3) { o.id = 'foo'; - o.items = buildUnnamed622(); + o.items = buildUnnamed626(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -27875,7 +28240,7 @@ void checkReservationBlocksListResponse(api.ReservationBlocksListResponse o) { buildCounterReservationBlocksListResponse++; if (buildCounterReservationBlocksListResponse < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed622(o.items!); + checkUnnamed626(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -27884,12 +28249,12 @@ void checkReservationBlocksListResponse(api.ReservationBlocksListResponse o) { buildCounterReservationBlocksListResponse--; } -core.List buildUnnamed624() => [ +core.List buildUnnamed628() => [ buildReservation(), buildReservation(), ]; -void checkUnnamed624(core.List o) { +void checkUnnamed628(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkReservation(o[0]); checkReservation(o[1]); @@ -27916,12 +28281,12 @@ void checkReservationListWarningData(api.ReservationListWarningData o) { buildCounterReservationListWarningData--; } -core.List buildUnnamed625() => [ +core.List buildUnnamed629() => [ buildReservationListWarningData(), buildReservationListWarningData(), ]; -void checkUnnamed625(core.List o) { +void checkUnnamed629(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkReservationListWarningData(o[0]); checkReservationListWarningData(o[1]); @@ -27933,7 +28298,7 @@ api.ReservationListWarning buildReservationListWarning() { buildCounterReservationListWarning++; if (buildCounterReservationListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed625(); + o.data = buildUnnamed629(); o.message = 'foo'; } buildCounterReservationListWarning--; @@ -27944,7 +28309,7 @@ void checkReservationListWarning(api.ReservationListWarning o) { buildCounterReservationListWarning++; if (buildCounterReservationListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed625(o.data!); + checkUnnamed629(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterReservationListWarning--; @@ -27956,7 +28321,7 @@ api.ReservationList buildReservationList() { buildCounterReservationList++; if (buildCounterReservationList < 3) { o.id = 'foo'; - o.items = buildUnnamed624(); + o.items = buildUnnamed628(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -27970,7 +28335,7 @@ void checkReservationList(api.ReservationList o) { buildCounterReservationList++; if (buildCounterReservationList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed624(o.items!); + checkUnnamed628(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -28096,12 +28461,12 @@ void checkReservationSubBlocksGetResponse( buildCounterReservationSubBlocksGetResponse--; } -core.List buildUnnamed626() => [ +core.List buildUnnamed630() => [ buildReservationSubBlock(), buildReservationSubBlock(), ]; -void checkUnnamed626(core.List o) { +void checkUnnamed630(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkReservationSubBlock(o[0]); checkReservationSubBlock(o[1]); @@ -28131,13 +28496,13 @@ void checkReservationSubBlocksListResponseWarningData( buildCounterReservationSubBlocksListResponseWarningData--; } -core.List buildUnnamed627() => +core.List buildUnnamed631() => [ buildReservationSubBlocksListResponseWarningData(), buildReservationSubBlocksListResponseWarningData(), ]; -void checkUnnamed627( +void checkUnnamed631( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -28152,7 +28517,7 @@ buildReservationSubBlocksListResponseWarning() { buildCounterReservationSubBlocksListResponseWarning++; if (buildCounterReservationSubBlocksListResponseWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed627(); + o.data = buildUnnamed631(); o.message = 'foo'; } buildCounterReservationSubBlocksListResponseWarning--; @@ -28165,7 +28530,7 @@ void checkReservationSubBlocksListResponseWarning( buildCounterReservationSubBlocksListResponseWarning++; if (buildCounterReservationSubBlocksListResponseWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed627(o.data!); + checkUnnamed631(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterReservationSubBlocksListResponseWarning--; @@ -28177,7 +28542,7 @@ api.ReservationSubBlocksListResponse buildReservationSubBlocksListResponse() { buildCounterReservationSubBlocksListResponse++; if (buildCounterReservationSubBlocksListResponse < 3) { o.id = 'foo'; - o.items = buildUnnamed626(); + o.items = buildUnnamed630(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -28193,7 +28558,7 @@ void checkReservationSubBlocksListResponse( buildCounterReservationSubBlocksListResponse++; if (buildCounterReservationSubBlocksListResponse < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed626(o.items!); + checkUnnamed630(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -28265,12 +28630,12 @@ void checkReservationsResizeRequest(api.ReservationsResizeRequest o) { buildCounterReservationsResizeRequest--; } -core.List buildUnnamed628() => [ +core.List buildUnnamed632() => [ buildReservation(), buildReservation(), ]; -void checkUnnamed628(core.List o) { +void checkUnnamed632(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkReservation(o[0]); checkReservation(o[1]); @@ -28299,12 +28664,12 @@ void checkReservationsScopedListWarningData( buildCounterReservationsScopedListWarningData--; } -core.List buildUnnamed629() => [ +core.List buildUnnamed633() => [ buildReservationsScopedListWarningData(), buildReservationsScopedListWarningData(), ]; -void checkUnnamed629(core.List o) { +void checkUnnamed633(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkReservationsScopedListWarningData(o[0]); checkReservationsScopedListWarningData(o[1]); @@ -28316,7 +28681,7 @@ api.ReservationsScopedListWarning buildReservationsScopedListWarning() { buildCounterReservationsScopedListWarning++; if (buildCounterReservationsScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed629(); + o.data = buildUnnamed633(); o.message = 'foo'; } buildCounterReservationsScopedListWarning--; @@ -28327,7 +28692,7 @@ void checkReservationsScopedListWarning(api.ReservationsScopedListWarning o) { buildCounterReservationsScopedListWarning++; if (buildCounterReservationsScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed629(o.data!); + checkUnnamed633(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterReservationsScopedListWarning--; @@ -28338,7 +28703,7 @@ api.ReservationsScopedList buildReservationsScopedList() { final o = api.ReservationsScopedList(); buildCounterReservationsScopedList++; if (buildCounterReservationsScopedList < 3) { - o.reservations = buildUnnamed628(); + o.reservations = buildUnnamed632(); o.warning = buildReservationsScopedListWarning(); } buildCounterReservationsScopedList--; @@ -28348,7 +28713,7 @@ api.ReservationsScopedList buildReservationsScopedList() { void checkReservationsScopedList(api.ReservationsScopedList o) { buildCounterReservationsScopedList++; if (buildCounterReservationsScopedList < 3) { - checkUnnamed628(o.reservations!); + checkUnnamed632(o.reservations!); checkReservationsScopedListWarning(o.warning!); } buildCounterReservationsScopedList--; @@ -28396,12 +28761,12 @@ void checkResourceGroupReference(api.ResourceGroupReference o) { buildCounterResourceGroupReference--; } -core.List buildUnnamed630() => [ +core.List buildUnnamed634() => [ buildResourcePolicy(), buildResourcePolicy(), ]; -void checkUnnamed630(core.List o) { +void checkUnnamed634(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkResourcePolicy(o[0]); checkResourcePolicy(o[1]); @@ -28431,12 +28796,12 @@ void checkResourcePoliciesScopedListWarningData( buildCounterResourcePoliciesScopedListWarningData--; } -core.List buildUnnamed631() => [ +core.List buildUnnamed635() => [ buildResourcePoliciesScopedListWarningData(), buildResourcePoliciesScopedListWarningData(), ]; -void checkUnnamed631(core.List o) { +void checkUnnamed635(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkResourcePoliciesScopedListWarningData(o[0]); checkResourcePoliciesScopedListWarningData(o[1]); @@ -28448,7 +28813,7 @@ api.ResourcePoliciesScopedListWarning buildResourcePoliciesScopedListWarning() { buildCounterResourcePoliciesScopedListWarning++; if (buildCounterResourcePoliciesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed631(); + o.data = buildUnnamed635(); o.message = 'foo'; } buildCounterResourcePoliciesScopedListWarning--; @@ -28461,7 +28826,7 @@ void checkResourcePoliciesScopedListWarning( buildCounterResourcePoliciesScopedListWarning++; if (buildCounterResourcePoliciesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed631(o.data!); + checkUnnamed635(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterResourcePoliciesScopedListWarning--; @@ -28472,7 +28837,7 @@ api.ResourcePoliciesScopedList buildResourcePoliciesScopedList() { final o = api.ResourcePoliciesScopedList(); buildCounterResourcePoliciesScopedList++; if (buildCounterResourcePoliciesScopedList < 3) { - o.resourcePolicies = buildUnnamed630(); + o.resourcePolicies = buildUnnamed634(); o.warning = buildResourcePoliciesScopedListWarning(); } buildCounterResourcePoliciesScopedList--; @@ -28482,7 +28847,7 @@ api.ResourcePoliciesScopedList buildResourcePoliciesScopedList() { void checkResourcePoliciesScopedList(api.ResourcePoliciesScopedList o) { buildCounterResourcePoliciesScopedList++; if (buildCounterResourcePoliciesScopedList < 3) { - checkUnnamed630(o.resourcePolicies!); + checkUnnamed634(o.resourcePolicies!); checkResourcePoliciesScopedListWarning(o.warning!); } buildCounterResourcePoliciesScopedList--; @@ -28536,20 +28901,20 @@ void checkResourcePolicy(api.ResourcePolicy o) { buildCounterResourcePolicy--; } -core.Map buildUnnamed632() => { +core.Map buildUnnamed636() => { 'x': buildResourcePoliciesScopedList(), 'y': buildResourcePoliciesScopedList(), }; -void checkUnnamed632(core.Map o) { +void checkUnnamed636(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkResourcePoliciesScopedList(o['x']!); checkResourcePoliciesScopedList(o['y']!); } -core.List buildUnnamed633() => ['foo', 'foo']; +core.List buildUnnamed637() => ['foo', 'foo']; -void checkUnnamed633(core.List o) { +void checkUnnamed637(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -28579,12 +28944,12 @@ void checkResourcePolicyAggregatedListWarningData( buildCounterResourcePolicyAggregatedListWarningData--; } -core.List buildUnnamed634() => [ +core.List buildUnnamed638() => [ buildResourcePolicyAggregatedListWarningData(), buildResourcePolicyAggregatedListWarningData(), ]; -void checkUnnamed634(core.List o) { +void checkUnnamed638(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkResourcePolicyAggregatedListWarningData(o[0]); checkResourcePolicyAggregatedListWarningData(o[1]); @@ -28597,7 +28962,7 @@ buildResourcePolicyAggregatedListWarning() { buildCounterResourcePolicyAggregatedListWarning++; if (buildCounterResourcePolicyAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed634(); + o.data = buildUnnamed638(); o.message = 'foo'; } buildCounterResourcePolicyAggregatedListWarning--; @@ -28610,7 +28975,7 @@ void checkResourcePolicyAggregatedListWarning( buildCounterResourcePolicyAggregatedListWarning++; if (buildCounterResourcePolicyAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed634(o.data!); + checkUnnamed638(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterResourcePolicyAggregatedListWarning--; @@ -28623,11 +28988,11 @@ api.ResourcePolicyAggregatedList buildResourcePolicyAggregatedList() { if (buildCounterResourcePolicyAggregatedList < 3) { o.etag = 'foo'; o.id = 'foo'; - o.items = buildUnnamed632(); + o.items = buildUnnamed636(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed633(); + o.unreachables = buildUnnamed637(); o.warning = buildResourcePolicyAggregatedListWarning(); } buildCounterResourcePolicyAggregatedList--; @@ -28639,11 +29004,11 @@ void checkResourcePolicyAggregatedList(api.ResourcePolicyAggregatedList o) { if (buildCounterResourcePolicyAggregatedList < 3) { unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed632(o.items!); + checkUnnamed636(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed633(o.unreachables!); + checkUnnamed637(o.unreachables!); checkResourcePolicyAggregatedListWarning(o.warning!); } buildCounterResourcePolicyAggregatedList--; @@ -28793,12 +29158,12 @@ void checkResourcePolicyInstanceSchedulePolicySchedule( buildCounterResourcePolicyInstanceSchedulePolicySchedule--; } -core.List buildUnnamed635() => [ +core.List buildUnnamed639() => [ buildResourcePolicy(), buildResourcePolicy(), ]; -void checkUnnamed635(core.List o) { +void checkUnnamed639(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkResourcePolicy(o[0]); checkResourcePolicy(o[1]); @@ -28825,12 +29190,12 @@ void checkResourcePolicyListWarningData(api.ResourcePolicyListWarningData o) { buildCounterResourcePolicyListWarningData--; } -core.List buildUnnamed636() => [ +core.List buildUnnamed640() => [ buildResourcePolicyListWarningData(), buildResourcePolicyListWarningData(), ]; -void checkUnnamed636(core.List o) { +void checkUnnamed640(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkResourcePolicyListWarningData(o[0]); checkResourcePolicyListWarningData(o[1]); @@ -28842,7 +29207,7 @@ api.ResourcePolicyListWarning buildResourcePolicyListWarning() { buildCounterResourcePolicyListWarning++; if (buildCounterResourcePolicyListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed636(); + o.data = buildUnnamed640(); o.message = 'foo'; } buildCounterResourcePolicyListWarning--; @@ -28853,7 +29218,7 @@ void checkResourcePolicyListWarning(api.ResourcePolicyListWarning o) { buildCounterResourcePolicyListWarning++; if (buildCounterResourcePolicyListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed636(o.data!); + checkUnnamed640(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterResourcePolicyListWarning--; @@ -28866,7 +29231,7 @@ api.ResourcePolicyList buildResourcePolicyList() { if (buildCounterResourcePolicyList < 3) { o.etag = 'foo'; o.id = 'foo'; - o.items = buildUnnamed635(); + o.items = buildUnnamed639(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -28881,7 +29246,7 @@ void checkResourcePolicyList(api.ResourcePolicyList o) { if (buildCounterResourcePolicyList < 3) { unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed635(o.items!); + checkUnnamed639(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -29021,20 +29386,20 @@ void checkResourcePolicySnapshotSchedulePolicySchedule( buildCounterResourcePolicySnapshotSchedulePolicySchedule--; } -core.Map buildUnnamed637() => { +core.Map buildUnnamed641() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed637(core.Map o) { +void checkUnnamed641(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed638() => ['foo', 'foo']; +core.List buildUnnamed642() => ['foo', 'foo']; -void checkUnnamed638(core.List o) { +void checkUnnamed642(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -29048,8 +29413,8 @@ buildResourcePolicySnapshotSchedulePolicySnapshotProperties() { if (buildCounterResourcePolicySnapshotSchedulePolicySnapshotProperties < 3) { o.chainName = 'foo'; o.guestFlush = true; - o.labels = buildUnnamed637(); - o.storageLocations = buildUnnamed638(); + o.labels = buildUnnamed641(); + o.storageLocations = buildUnnamed642(); } buildCounterResourcePolicySnapshotSchedulePolicySnapshotProperties--; return o; @@ -29062,18 +29427,18 @@ void checkResourcePolicySnapshotSchedulePolicySnapshotProperties( if (buildCounterResourcePolicySnapshotSchedulePolicySnapshotProperties < 3) { unittest.expect(o.chainName!, unittest.equals('foo')); unittest.expect(o.guestFlush!, unittest.isTrue); - checkUnnamed637(o.labels!); - checkUnnamed638(o.storageLocations!); + checkUnnamed641(o.labels!); + checkUnnamed642(o.storageLocations!); } buildCounterResourcePolicySnapshotSchedulePolicySnapshotProperties--; } -core.List buildUnnamed639() => [ +core.List buildUnnamed643() => [ buildResourcePolicyWeeklyCycleDayOfWeek(), buildResourcePolicyWeeklyCycleDayOfWeek(), ]; -void checkUnnamed639(core.List o) { +void checkUnnamed643(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkResourcePolicyWeeklyCycleDayOfWeek(o[0]); checkResourcePolicyWeeklyCycleDayOfWeek(o[1]); @@ -29084,7 +29449,7 @@ api.ResourcePolicyWeeklyCycle buildResourcePolicyWeeklyCycle() { final o = api.ResourcePolicyWeeklyCycle(); buildCounterResourcePolicyWeeklyCycle++; if (buildCounterResourcePolicyWeeklyCycle < 3) { - o.dayOfWeeks = buildUnnamed639(); + o.dayOfWeeks = buildUnnamed643(); } buildCounterResourcePolicyWeeklyCycle--; return o; @@ -29093,7 +29458,7 @@ api.ResourcePolicyWeeklyCycle buildResourcePolicyWeeklyCycle() { void checkResourcePolicyWeeklyCycle(api.ResourcePolicyWeeklyCycle o) { buildCounterResourcePolicyWeeklyCycle++; if (buildCounterResourcePolicyWeeklyCycle < 3) { - checkUnnamed639(o.dayOfWeeks!); + checkUnnamed643(o.dayOfWeeks!); } buildCounterResourcePolicyWeeklyCycle--; } @@ -29152,6 +29517,8 @@ api.ResourceStatus buildResourceStatus() { final o = api.ResourceStatus(); buildCounterResourceStatus++; if (buildCounterResourceStatus < 3) { + o.effectiveInstanceMetadata = + buildResourceStatusEffectiveInstanceMetadata(); o.physicalHost = 'foo'; o.physicalHostTopology = buildResourceStatusPhysicalHostTopology(); o.scheduling = buildResourceStatusScheduling(); @@ -29164,6 +29531,7 @@ api.ResourceStatus buildResourceStatus() { void checkResourceStatus(api.ResourceStatus o) { buildCounterResourceStatus++; if (buildCounterResourceStatus < 3) { + checkResourceStatusEffectiveInstanceMetadata(o.effectiveInstanceMetadata!); unittest.expect(o.physicalHost!, unittest.equals('foo')); checkResourceStatusPhysicalHostTopology(o.physicalHostTopology!); checkResourceStatusScheduling(o.scheduling!); @@ -29172,6 +29540,42 @@ void checkResourceStatus(api.ResourceStatus o) { buildCounterResourceStatus--; } +core.int buildCounterResourceStatusEffectiveInstanceMetadata = 0; +api.ResourceStatusEffectiveInstanceMetadata +buildResourceStatusEffectiveInstanceMetadata() { + final o = api.ResourceStatusEffectiveInstanceMetadata(); + buildCounterResourceStatusEffectiveInstanceMetadata++; + if (buildCounterResourceStatusEffectiveInstanceMetadata < 3) { + o.blockProjectSshKeysMetadataValue = true; + o.enableGuestAttributesMetadataValue = true; + o.enableOsInventoryMetadataValue = true; + o.enableOsconfigMetadataValue = true; + o.enableOsloginMetadataValue = true; + o.serialPortEnableMetadataValue = true; + o.serialPortLoggingEnableMetadataValue = true; + o.vmDnsSettingMetadataValue = 'foo'; + } + buildCounterResourceStatusEffectiveInstanceMetadata--; + return o; +} + +void checkResourceStatusEffectiveInstanceMetadata( + api.ResourceStatusEffectiveInstanceMetadata o, +) { + buildCounterResourceStatusEffectiveInstanceMetadata++; + if (buildCounterResourceStatusEffectiveInstanceMetadata < 3) { + unittest.expect(o.blockProjectSshKeysMetadataValue!, unittest.isTrue); + unittest.expect(o.enableGuestAttributesMetadataValue!, unittest.isTrue); + unittest.expect(o.enableOsInventoryMetadataValue!, unittest.isTrue); + unittest.expect(o.enableOsconfigMetadataValue!, unittest.isTrue); + unittest.expect(o.enableOsloginMetadataValue!, unittest.isTrue); + unittest.expect(o.serialPortEnableMetadataValue!, unittest.isTrue); + unittest.expect(o.serialPortLoggingEnableMetadataValue!, unittest.isTrue); + unittest.expect(o.vmDnsSettingMetadataValue!, unittest.equals('foo')); + } + buildCounterResourceStatusEffectiveInstanceMetadata--; +} + core.int buildCounterResourceStatusPhysicalHostTopology = 0; api.ResourceStatusPhysicalHostTopology buildResourceStatusPhysicalHostTopology() { @@ -29219,20 +29623,20 @@ void checkResourceStatusScheduling(api.ResourceStatusScheduling o) { buildCounterResourceStatusScheduling--; } -core.List buildUnnamed640() => [ +core.List buildUnnamed644() => [ buildRouteAsPath(), buildRouteAsPath(), ]; -void checkUnnamed640(core.List o) { +void checkUnnamed644(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouteAsPath(o[0]); checkRouteAsPath(o[1]); } -core.List buildUnnamed641() => ['foo', 'foo']; +core.List buildUnnamed645() => ['foo', 'foo']; -void checkUnnamed641(core.List o) { +void checkUnnamed645(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -29259,12 +29663,12 @@ void checkRouteWarningsData(api.RouteWarningsData o) { buildCounterRouteWarningsData--; } -core.List buildUnnamed642() => [ +core.List buildUnnamed646() => [ buildRouteWarningsData(), buildRouteWarningsData(), ]; -void checkUnnamed642(core.List o) { +void checkUnnamed646(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarningsData(o[0]); checkRouteWarningsData(o[1]); @@ -29276,7 +29680,7 @@ api.RouteWarnings buildRouteWarnings() { buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { o.code = 'foo'; - o.data = buildUnnamed642(); + o.data = buildUnnamed646(); o.message = 'foo'; } buildCounterRouteWarnings--; @@ -29287,18 +29691,18 @@ void checkRouteWarnings(api.RouteWarnings o) { buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed642(o.data!); + checkUnnamed646(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterRouteWarnings--; } -core.List buildUnnamed643() => [ +core.List buildUnnamed647() => [ buildRouteWarnings(), buildRouteWarnings(), ]; -void checkUnnamed643(core.List o) { +void checkUnnamed647(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarnings(o[0]); checkRouteWarnings(o[1]); @@ -29309,7 +29713,7 @@ api.Route buildRoute() { final o = api.Route(); buildCounterRoute++; if (buildCounterRoute < 3) { - o.asPaths = buildUnnamed640(); + o.asPaths = buildUnnamed644(); o.creationTimestamp = 'foo'; o.description = 'foo'; o.destRange = 'foo'; @@ -29333,8 +29737,8 @@ api.Route buildRoute() { o.routeStatus = 'foo'; o.routeType = 'foo'; o.selfLink = 'foo'; - o.tags = buildUnnamed641(); - o.warnings = buildUnnamed643(); + o.tags = buildUnnamed645(); + o.warnings = buildUnnamed647(); } buildCounterRoute--; return o; @@ -29343,7 +29747,7 @@ api.Route buildRoute() { void checkRoute(api.Route o) { buildCounterRoute++; if (buildCounterRoute < 3) { - checkUnnamed640(o.asPaths!); + checkUnnamed644(o.asPaths!); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.destRange!, unittest.equals('foo')); @@ -29367,15 +29771,15 @@ void checkRoute(api.Route o) { unittest.expect(o.routeStatus!, unittest.equals('foo')); unittest.expect(o.routeType!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed641(o.tags!); - checkUnnamed643(o.warnings!); + checkUnnamed645(o.tags!); + checkUnnamed647(o.warnings!); } buildCounterRoute--; } -core.List buildUnnamed644() => [42, 42]; +core.List buildUnnamed648() => [42, 42]; -void checkUnnamed644(core.List o) { +void checkUnnamed648(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -29386,7 +29790,7 @@ api.RouteAsPath buildRouteAsPath() { final o = api.RouteAsPath(); buildCounterRouteAsPath++; if (buildCounterRouteAsPath < 3) { - o.asLists = buildUnnamed644(); + o.asLists = buildUnnamed648(); o.pathSegmentType = 'foo'; } buildCounterRouteAsPath--; @@ -29396,15 +29800,15 @@ api.RouteAsPath buildRouteAsPath() { void checkRouteAsPath(api.RouteAsPath o) { buildCounterRouteAsPath++; if (buildCounterRouteAsPath < 3) { - checkUnnamed644(o.asLists!); + checkUnnamed648(o.asLists!); unittest.expect(o.pathSegmentType!, unittest.equals('foo')); } buildCounterRouteAsPath--; } -core.List buildUnnamed645() => [buildRoute(), buildRoute()]; +core.List buildUnnamed649() => [buildRoute(), buildRoute()]; -void checkUnnamed645(core.List o) { +void checkUnnamed649(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -29431,12 +29835,12 @@ void checkRouteListWarningData(api.RouteListWarningData o) { buildCounterRouteListWarningData--; } -core.List buildUnnamed646() => [ +core.List buildUnnamed650() => [ buildRouteListWarningData(), buildRouteListWarningData(), ]; -void checkUnnamed646(core.List o) { +void checkUnnamed650(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouteListWarningData(o[0]); checkRouteListWarningData(o[1]); @@ -29448,7 +29852,7 @@ api.RouteListWarning buildRouteListWarning() { buildCounterRouteListWarning++; if (buildCounterRouteListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed646(); + o.data = buildUnnamed650(); o.message = 'foo'; } buildCounterRouteListWarning--; @@ -29459,7 +29863,7 @@ void checkRouteListWarning(api.RouteListWarning o) { buildCounterRouteListWarning++; if (buildCounterRouteListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed646(o.data!); + checkUnnamed650(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterRouteListWarning--; @@ -29471,7 +29875,7 @@ api.RouteList buildRouteList() { buildCounterRouteList++; if (buildCounterRouteList < 3) { o.id = 'foo'; - o.items = buildUnnamed645(); + o.items = buildUnnamed649(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -29485,7 +29889,7 @@ void checkRouteList(api.RouteList o) { buildCounterRouteList++; if (buildCounterRouteList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed645(o.items!); + checkUnnamed649(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -29494,12 +29898,12 @@ void checkRouteList(api.RouteList o) { buildCounterRouteList--; } -core.Map buildUnnamed647() => { +core.Map buildUnnamed651() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed647(core.Map o) { +void checkUnnamed651(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -29510,7 +29914,7 @@ api.RouteParams buildRouteParams() { final o = api.RouteParams(); buildCounterRouteParams++; if (buildCounterRouteParams < 3) { - o.resourceManagerTags = buildUnnamed647(); + o.resourceManagerTags = buildUnnamed651(); } buildCounterRouteParams--; return o; @@ -29519,17 +29923,17 @@ api.RouteParams buildRouteParams() { void checkRouteParams(api.RouteParams o) { buildCounterRouteParams++; if (buildCounterRouteParams < 3) { - checkUnnamed647(o.resourceManagerTags!); + checkUnnamed651(o.resourceManagerTags!); } buildCounterRouteParams--; } -core.List buildUnnamed648() => [ +core.List buildUnnamed652() => [ buildRoutePolicyPolicyTerm(), buildRoutePolicyPolicyTerm(), ]; -void checkUnnamed648(core.List o) { +void checkUnnamed652(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRoutePolicyPolicyTerm(o[0]); checkRoutePolicyPolicyTerm(o[1]); @@ -29543,7 +29947,7 @@ api.RoutePolicy buildRoutePolicy() { o.description = 'foo'; o.fingerprint = 'foo'; o.name = 'foo'; - o.terms = buildUnnamed648(); + o.terms = buildUnnamed652(); o.type = 'foo'; } buildCounterRoutePolicy--; @@ -29556,15 +29960,15 @@ void checkRoutePolicy(api.RoutePolicy o) { unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.fingerprint!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed648(o.terms!); + checkUnnamed652(o.terms!); unittest.expect(o.type!, unittest.equals('foo')); } buildCounterRoutePolicy--; } -core.List buildUnnamed649() => [buildExpr(), buildExpr()]; +core.List buildUnnamed653() => [buildExpr(), buildExpr()]; -void checkUnnamed649(core.List o) { +void checkUnnamed653(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkExpr(o[0]); checkExpr(o[1]); @@ -29575,7 +29979,7 @@ api.RoutePolicyPolicyTerm buildRoutePolicyPolicyTerm() { final o = api.RoutePolicyPolicyTerm(); buildCounterRoutePolicyPolicyTerm++; if (buildCounterRoutePolicyPolicyTerm < 3) { - o.actions = buildUnnamed649(); + o.actions = buildUnnamed653(); o.match = buildExpr(); o.priority = 42; } @@ -29586,52 +29990,52 @@ api.RoutePolicyPolicyTerm buildRoutePolicyPolicyTerm() { void checkRoutePolicyPolicyTerm(api.RoutePolicyPolicyTerm o) { buildCounterRoutePolicyPolicyTerm++; if (buildCounterRoutePolicyPolicyTerm < 3) { - checkUnnamed649(o.actions!); + checkUnnamed653(o.actions!); checkExpr(o.match!); unittest.expect(o.priority!, unittest.equals(42)); } buildCounterRoutePolicyPolicyTerm--; } -core.List buildUnnamed650() => [ +core.List buildUnnamed654() => [ buildRouterBgpPeer(), buildRouterBgpPeer(), ]; -void checkUnnamed650(core.List o) { +void checkUnnamed654(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterBgpPeer(o[0]); checkRouterBgpPeer(o[1]); } -core.List buildUnnamed651() => [ +core.List buildUnnamed655() => [ buildRouterInterface(), buildRouterInterface(), ]; -void checkUnnamed651(core.List o) { +void checkUnnamed655(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterInterface(o[0]); checkRouterInterface(o[1]); } -core.List buildUnnamed652() => [ +core.List buildUnnamed656() => [ buildRouterMd5AuthenticationKey(), buildRouterMd5AuthenticationKey(), ]; -void checkUnnamed652(core.List o) { +void checkUnnamed656(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterMd5AuthenticationKey(o[0]); checkRouterMd5AuthenticationKey(o[1]); } -core.List buildUnnamed653() => [ +core.List buildUnnamed657() => [ buildRouterNat(), buildRouterNat(), ]; -void checkUnnamed653(core.List o) { +void checkUnnamed657(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterNat(o[0]); checkRouterNat(o[1]); @@ -29643,17 +30047,18 @@ api.Router buildRouter() { buildCounterRouter++; if (buildCounterRouter < 3) { o.bgp = buildRouterBgp(); - o.bgpPeers = buildUnnamed650(); + o.bgpPeers = buildUnnamed654(); o.creationTimestamp = 'foo'; o.description = 'foo'; o.encryptedInterconnectRouter = true; o.id = 'foo'; - o.interfaces = buildUnnamed651(); + o.interfaces = buildUnnamed655(); o.kind = 'foo'; - o.md5AuthenticationKeys = buildUnnamed652(); + o.md5AuthenticationKeys = buildUnnamed656(); o.name = 'foo'; - o.nats = buildUnnamed653(); + o.nats = buildUnnamed657(); o.network = 'foo'; + o.params = buildRouterParams(); o.region = 'foo'; o.selfLink = 'foo'; } @@ -29665,17 +30070,18 @@ void checkRouter(api.Router o) { buildCounterRouter++; if (buildCounterRouter < 3) { checkRouterBgp(o.bgp!); - checkUnnamed650(o.bgpPeers!); + checkUnnamed654(o.bgpPeers!); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.encryptedInterconnectRouter!, unittest.isTrue); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed651(o.interfaces!); + checkUnnamed655(o.interfaces!); unittest.expect(o.kind!, unittest.equals('foo')); - checkUnnamed652(o.md5AuthenticationKeys!); + checkUnnamed656(o.md5AuthenticationKeys!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed653(o.nats!); + checkUnnamed657(o.nats!); unittest.expect(o.network!, unittest.equals('foo')); + checkRouterParams(o.params!); unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); } @@ -29703,20 +30109,20 @@ void checkRouterAdvertisedIpRange(api.RouterAdvertisedIpRange o) { buildCounterRouterAdvertisedIpRange--; } -core.Map buildUnnamed654() => { +core.Map buildUnnamed658() => { 'x': buildRoutersScopedList(), 'y': buildRoutersScopedList(), }; -void checkUnnamed654(core.Map o) { +void checkUnnamed658(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedList(o['x']!); checkRoutersScopedList(o['y']!); } -core.List buildUnnamed655() => ['foo', 'foo']; +core.List buildUnnamed659() => ['foo', 'foo']; -void checkUnnamed655(core.List o) { +void checkUnnamed659(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -29745,12 +30151,12 @@ void checkRouterAggregatedListWarningData( buildCounterRouterAggregatedListWarningData--; } -core.List buildUnnamed656() => [ +core.List buildUnnamed660() => [ buildRouterAggregatedListWarningData(), buildRouterAggregatedListWarningData(), ]; -void checkUnnamed656(core.List o) { +void checkUnnamed660(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterAggregatedListWarningData(o[0]); checkRouterAggregatedListWarningData(o[1]); @@ -29762,7 +30168,7 @@ api.RouterAggregatedListWarning buildRouterAggregatedListWarning() { buildCounterRouterAggregatedListWarning++; if (buildCounterRouterAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed656(); + o.data = buildUnnamed660(); o.message = 'foo'; } buildCounterRouterAggregatedListWarning--; @@ -29773,7 +30179,7 @@ void checkRouterAggregatedListWarning(api.RouterAggregatedListWarning o) { buildCounterRouterAggregatedListWarning++; if (buildCounterRouterAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed656(o.data!); + checkUnnamed660(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterRouterAggregatedListWarning--; @@ -29785,11 +30191,11 @@ api.RouterAggregatedList buildRouterAggregatedList() { buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed654(); + o.items = buildUnnamed658(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed655(); + o.unreachables = buildUnnamed659(); o.warning = buildRouterAggregatedListWarning(); } buildCounterRouterAggregatedList--; @@ -29800,30 +30206,30 @@ void checkRouterAggregatedList(api.RouterAggregatedList o) { buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed654(o.items!); + checkUnnamed658(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed655(o.unreachables!); + checkUnnamed659(o.unreachables!); checkRouterAggregatedListWarning(o.warning!); } buildCounterRouterAggregatedList--; } -core.List buildUnnamed657() => ['foo', 'foo']; +core.List buildUnnamed661() => ['foo', 'foo']; -void checkUnnamed657(core.List o) { +void checkUnnamed661(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed658() => [ +core.List buildUnnamed662() => [ buildRouterAdvertisedIpRange(), buildRouterAdvertisedIpRange(), ]; -void checkUnnamed658(core.List o) { +void checkUnnamed662(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterAdvertisedIpRange(o[0]); checkRouterAdvertisedIpRange(o[1]); @@ -29835,8 +30241,8 @@ api.RouterBgp buildRouterBgp() { buildCounterRouterBgp++; if (buildCounterRouterBgp < 3) { o.advertiseMode = 'foo'; - o.advertisedGroups = buildUnnamed657(); - o.advertisedIpRanges = buildUnnamed658(); + o.advertisedGroups = buildUnnamed661(); + o.advertisedIpRanges = buildUnnamed662(); o.asn = 42; o.identifierRange = 'foo'; o.keepaliveInterval = 42; @@ -29849,8 +30255,8 @@ void checkRouterBgp(api.RouterBgp o) { buildCounterRouterBgp++; if (buildCounterRouterBgp < 3) { unittest.expect(o.advertiseMode!, unittest.equals('foo')); - checkUnnamed657(o.advertisedGroups!); - checkUnnamed658(o.advertisedIpRanges!); + checkUnnamed661(o.advertisedGroups!); + checkUnnamed662(o.advertisedIpRanges!); unittest.expect(o.asn!, unittest.equals(42)); unittest.expect(o.identifierRange!, unittest.equals('foo')); unittest.expect(o.keepaliveInterval!, unittest.equals(42)); @@ -29858,47 +30264,47 @@ void checkRouterBgp(api.RouterBgp o) { buildCounterRouterBgp--; } -core.List buildUnnamed659() => ['foo', 'foo']; +core.List buildUnnamed663() => ['foo', 'foo']; -void checkUnnamed659(core.List o) { +void checkUnnamed663(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed660() => [ +core.List buildUnnamed664() => [ buildRouterAdvertisedIpRange(), buildRouterAdvertisedIpRange(), ]; -void checkUnnamed660(core.List o) { +void checkUnnamed664(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterAdvertisedIpRange(o[0]); checkRouterAdvertisedIpRange(o[1]); } -core.List buildUnnamed661() => [ +core.List buildUnnamed665() => [ buildRouterBgpPeerCustomLearnedIpRange(), buildRouterBgpPeerCustomLearnedIpRange(), ]; -void checkUnnamed661(core.List o) { +void checkUnnamed665(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterBgpPeerCustomLearnedIpRange(o[0]); checkRouterBgpPeerCustomLearnedIpRange(o[1]); } -core.List buildUnnamed662() => ['foo', 'foo']; +core.List buildUnnamed666() => ['foo', 'foo']; -void checkUnnamed662(core.List o) { +void checkUnnamed666(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed663() => ['foo', 'foo']; +core.List buildUnnamed667() => ['foo', 'foo']; -void checkUnnamed663(core.List o) { +void checkUnnamed667(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -29910,17 +30316,17 @@ api.RouterBgpPeer buildRouterBgpPeer() { buildCounterRouterBgpPeer++; if (buildCounterRouterBgpPeer < 3) { o.advertiseMode = 'foo'; - o.advertisedGroups = buildUnnamed659(); - o.advertisedIpRanges = buildUnnamed660(); + o.advertisedGroups = buildUnnamed663(); + o.advertisedIpRanges = buildUnnamed664(); o.advertisedRoutePriority = 42; o.bfd = buildRouterBgpPeerBfd(); - o.customLearnedIpRanges = buildUnnamed661(); + o.customLearnedIpRanges = buildUnnamed665(); o.customLearnedRoutePriority = 42; o.enable = 'foo'; o.enableIpv4 = true; o.enableIpv6 = true; - o.exportPolicies = buildUnnamed662(); - o.importPolicies = buildUnnamed663(); + o.exportPolicies = buildUnnamed666(); + o.importPolicies = buildUnnamed667(); o.interfaceName = 'foo'; o.ipAddress = 'foo'; o.ipv4NexthopAddress = 'foo'; @@ -29942,17 +30348,17 @@ void checkRouterBgpPeer(api.RouterBgpPeer o) { buildCounterRouterBgpPeer++; if (buildCounterRouterBgpPeer < 3) { unittest.expect(o.advertiseMode!, unittest.equals('foo')); - checkUnnamed659(o.advertisedGroups!); - checkUnnamed660(o.advertisedIpRanges!); + checkUnnamed663(o.advertisedGroups!); + checkUnnamed664(o.advertisedIpRanges!); unittest.expect(o.advertisedRoutePriority!, unittest.equals(42)); checkRouterBgpPeerBfd(o.bfd!); - checkUnnamed661(o.customLearnedIpRanges!); + checkUnnamed665(o.customLearnedIpRanges!); unittest.expect(o.customLearnedRoutePriority!, unittest.equals(42)); unittest.expect(o.enable!, unittest.equals('foo')); unittest.expect(o.enableIpv4!, unittest.isTrue); unittest.expect(o.enableIpv6!, unittest.isTrue); - checkUnnamed662(o.exportPolicies!); - checkUnnamed663(o.importPolicies!); + checkUnnamed666(o.exportPolicies!); + checkUnnamed667(o.importPolicies!); unittest.expect(o.interfaceName!, unittest.equals('foo')); unittest.expect(o.ipAddress!, unittest.equals('foo')); unittest.expect(o.ipv4NexthopAddress!, unittest.equals('foo')); @@ -30050,9 +30456,9 @@ void checkRouterInterface(api.RouterInterface o) { buildCounterRouterInterface--; } -core.List buildUnnamed664() => [buildRouter(), buildRouter()]; +core.List buildUnnamed668() => [buildRouter(), buildRouter()]; -void checkUnnamed664(core.List o) { +void checkUnnamed668(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -30079,12 +30485,12 @@ void checkRouterListWarningData(api.RouterListWarningData o) { buildCounterRouterListWarningData--; } -core.List buildUnnamed665() => [ +core.List buildUnnamed669() => [ buildRouterListWarningData(), buildRouterListWarningData(), ]; -void checkUnnamed665(core.List o) { +void checkUnnamed669(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterListWarningData(o[0]); checkRouterListWarningData(o[1]); @@ -30096,7 +30502,7 @@ api.RouterListWarning buildRouterListWarning() { buildCounterRouterListWarning++; if (buildCounterRouterListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed665(); + o.data = buildUnnamed669(); o.message = 'foo'; } buildCounterRouterListWarning--; @@ -30107,7 +30513,7 @@ void checkRouterListWarning(api.RouterListWarning o) { buildCounterRouterListWarning++; if (buildCounterRouterListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed665(o.data!); + checkUnnamed669(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterRouterListWarning--; @@ -30119,7 +30525,7 @@ api.RouterList buildRouterList() { buildCounterRouterList++; if (buildCounterRouterList < 3) { o.id = 'foo'; - o.items = buildUnnamed664(); + o.items = buildUnnamed668(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -30133,7 +30539,7 @@ void checkRouterList(api.RouterList o) { buildCounterRouterList++; if (buildCounterRouterList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed664(o.items!); + checkUnnamed668(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -30163,58 +30569,58 @@ void checkRouterMd5AuthenticationKey(api.RouterMd5AuthenticationKey o) { buildCounterRouterMd5AuthenticationKey--; } -core.List buildUnnamed666() => ['foo', 'foo']; +core.List buildUnnamed670() => ['foo', 'foo']; -void checkUnnamed666(core.List o) { +void checkUnnamed670(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed667() => ['foo', 'foo']; +core.List buildUnnamed671() => ['foo', 'foo']; -void checkUnnamed667(core.List o) { +void checkUnnamed671(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed668() => [ +core.List buildUnnamed672() => [ buildRouterNatSubnetworkToNat64(), buildRouterNatSubnetworkToNat64(), ]; -void checkUnnamed668(core.List o) { +void checkUnnamed672(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterNatSubnetworkToNat64(o[0]); checkRouterNatSubnetworkToNat64(o[1]); } -core.List buildUnnamed669() => ['foo', 'foo']; +core.List buildUnnamed673() => ['foo', 'foo']; -void checkUnnamed669(core.List o) { +void checkUnnamed673(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed670() => [ +core.List buildUnnamed674() => [ buildRouterNatRule(), buildRouterNatRule(), ]; -void checkUnnamed670(core.List o) { +void checkUnnamed674(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterNatRule(o[0]); checkRouterNatRule(o[1]); } -core.List buildUnnamed671() => [ +core.List buildUnnamed675() => [ buildRouterNatSubnetworkToNat(), buildRouterNatSubnetworkToNat(), ]; -void checkUnnamed671(core.List o) { +void checkUnnamed675(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterNatSubnetworkToNat(o[0]); checkRouterNatSubnetworkToNat(o[1]); @@ -30226,22 +30632,22 @@ api.RouterNat buildRouterNat() { buildCounterRouterNat++; if (buildCounterRouterNat < 3) { o.autoNetworkTier = 'foo'; - o.drainNatIps = buildUnnamed666(); + o.drainNatIps = buildUnnamed670(); o.enableDynamicPortAllocation = true; o.enableEndpointIndependentMapping = true; - o.endpointTypes = buildUnnamed667(); + o.endpointTypes = buildUnnamed671(); o.icmpIdleTimeoutSec = 42; o.logConfig = buildRouterNatLogConfig(); o.maxPortsPerVm = 42; o.minPortsPerVm = 42; o.name = 'foo'; - o.nat64Subnetworks = buildUnnamed668(); + o.nat64Subnetworks = buildUnnamed672(); o.natIpAllocateOption = 'foo'; - o.natIps = buildUnnamed669(); - o.rules = buildUnnamed670(); + o.natIps = buildUnnamed673(); + o.rules = buildUnnamed674(); o.sourceSubnetworkIpRangesToNat = 'foo'; o.sourceSubnetworkIpRangesToNat64 = 'foo'; - o.subnetworks = buildUnnamed671(); + o.subnetworks = buildUnnamed675(); o.tcpEstablishedIdleTimeoutSec = 42; o.tcpTimeWaitTimeoutSec = 42; o.tcpTransitoryIdleTimeoutSec = 42; @@ -30256,22 +30662,22 @@ void checkRouterNat(api.RouterNat o) { buildCounterRouterNat++; if (buildCounterRouterNat < 3) { unittest.expect(o.autoNetworkTier!, unittest.equals('foo')); - checkUnnamed666(o.drainNatIps!); + checkUnnamed670(o.drainNatIps!); unittest.expect(o.enableDynamicPortAllocation!, unittest.isTrue); unittest.expect(o.enableEndpointIndependentMapping!, unittest.isTrue); - checkUnnamed667(o.endpointTypes!); + checkUnnamed671(o.endpointTypes!); unittest.expect(o.icmpIdleTimeoutSec!, unittest.equals(42)); checkRouterNatLogConfig(o.logConfig!); unittest.expect(o.maxPortsPerVm!, unittest.equals(42)); unittest.expect(o.minPortsPerVm!, unittest.equals(42)); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed668(o.nat64Subnetworks!); + checkUnnamed672(o.nat64Subnetworks!); unittest.expect(o.natIpAllocateOption!, unittest.equals('foo')); - checkUnnamed669(o.natIps!); - checkUnnamed670(o.rules!); + checkUnnamed673(o.natIps!); + checkUnnamed674(o.rules!); unittest.expect(o.sourceSubnetworkIpRangesToNat!, unittest.equals('foo')); unittest.expect(o.sourceSubnetworkIpRangesToNat64!, unittest.equals('foo')); - checkUnnamed671(o.subnetworks!); + checkUnnamed675(o.subnetworks!); unittest.expect(o.tcpEstablishedIdleTimeoutSec!, unittest.equals(42)); unittest.expect(o.tcpTimeWaitTimeoutSec!, unittest.equals(42)); unittest.expect(o.tcpTransitoryIdleTimeoutSec!, unittest.equals(42)); @@ -30327,33 +30733,33 @@ void checkRouterNatRule(api.RouterNatRule o) { buildCounterRouterNatRule--; } -core.List buildUnnamed672() => ['foo', 'foo']; +core.List buildUnnamed676() => ['foo', 'foo']; -void checkUnnamed672(core.List o) { +void checkUnnamed676(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed673() => ['foo', 'foo']; +core.List buildUnnamed677() => ['foo', 'foo']; -void checkUnnamed673(core.List o) { +void checkUnnamed677(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed674() => ['foo', 'foo']; +core.List buildUnnamed678() => ['foo', 'foo']; -void checkUnnamed674(core.List o) { +void checkUnnamed678(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed675() => ['foo', 'foo']; +core.List buildUnnamed679() => ['foo', 'foo']; -void checkUnnamed675(core.List o) { +void checkUnnamed679(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -30364,10 +30770,10 @@ api.RouterNatRuleAction buildRouterNatRuleAction() { final o = api.RouterNatRuleAction(); buildCounterRouterNatRuleAction++; if (buildCounterRouterNatRuleAction < 3) { - o.sourceNatActiveIps = buildUnnamed672(); - o.sourceNatActiveRanges = buildUnnamed673(); - o.sourceNatDrainIps = buildUnnamed674(); - o.sourceNatDrainRanges = buildUnnamed675(); + o.sourceNatActiveIps = buildUnnamed676(); + o.sourceNatActiveRanges = buildUnnamed677(); + o.sourceNatDrainIps = buildUnnamed678(); + o.sourceNatDrainRanges = buildUnnamed679(); } buildCounterRouterNatRuleAction--; return o; @@ -30376,25 +30782,25 @@ api.RouterNatRuleAction buildRouterNatRuleAction() { void checkRouterNatRuleAction(api.RouterNatRuleAction o) { buildCounterRouterNatRuleAction++; if (buildCounterRouterNatRuleAction < 3) { - checkUnnamed672(o.sourceNatActiveIps!); - checkUnnamed673(o.sourceNatActiveRanges!); - checkUnnamed674(o.sourceNatDrainIps!); - checkUnnamed675(o.sourceNatDrainRanges!); + checkUnnamed676(o.sourceNatActiveIps!); + checkUnnamed677(o.sourceNatActiveRanges!); + checkUnnamed678(o.sourceNatDrainIps!); + checkUnnamed679(o.sourceNatDrainRanges!); } buildCounterRouterNatRuleAction--; } -core.List buildUnnamed676() => ['foo', 'foo']; +core.List buildUnnamed680() => ['foo', 'foo']; -void checkUnnamed676(core.List o) { +void checkUnnamed680(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed677() => ['foo', 'foo']; +core.List buildUnnamed681() => ['foo', 'foo']; -void checkUnnamed677(core.List o) { +void checkUnnamed681(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -30406,8 +30812,8 @@ api.RouterNatSubnetworkToNat buildRouterNatSubnetworkToNat() { buildCounterRouterNatSubnetworkToNat++; if (buildCounterRouterNatSubnetworkToNat < 3) { o.name = 'foo'; - o.secondaryIpRangeNames = buildUnnamed676(); - o.sourceIpRangesToNat = buildUnnamed677(); + o.secondaryIpRangeNames = buildUnnamed680(); + o.sourceIpRangesToNat = buildUnnamed681(); } buildCounterRouterNatSubnetworkToNat--; return o; @@ -30417,8 +30823,8 @@ void checkRouterNatSubnetworkToNat(api.RouterNatSubnetworkToNat o) { buildCounterRouterNatSubnetworkToNat++; if (buildCounterRouterNatSubnetworkToNat < 3) { unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed676(o.secondaryIpRangeNames!); - checkUnnamed677(o.sourceIpRangesToNat!); + checkUnnamed680(o.secondaryIpRangeNames!); + checkUnnamed681(o.sourceIpRangesToNat!); } buildCounterRouterNatSubnetworkToNat--; } @@ -30442,39 +30848,69 @@ void checkRouterNatSubnetworkToNat64(api.RouterNatSubnetworkToNat64 o) { buildCounterRouterNatSubnetworkToNat64--; } -core.List buildUnnamed678() => [buildRoute(), buildRoute()]; +core.Map buildUnnamed682() => { + 'x': 'foo', + 'y': 'foo', +}; + +void checkUnnamed682(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterRouterParams = 0; +api.RouterParams buildRouterParams() { + final o = api.RouterParams(); + buildCounterRouterParams++; + if (buildCounterRouterParams < 3) { + o.resourceManagerTags = buildUnnamed682(); + } + buildCounterRouterParams--; + return o; +} + +void checkRouterParams(api.RouterParams o) { + buildCounterRouterParams++; + if (buildCounterRouterParams < 3) { + checkUnnamed682(o.resourceManagerTags!); + } + buildCounterRouterParams--; +} + +core.List buildUnnamed683() => [buildRoute(), buildRoute()]; -void checkUnnamed678(core.List o) { +void checkUnnamed683(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); } -core.List buildUnnamed679() => [buildRoute(), buildRoute()]; +core.List buildUnnamed684() => [buildRoute(), buildRoute()]; -void checkUnnamed679(core.List o) { +void checkUnnamed684(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); } -core.List buildUnnamed680() => [ +core.List buildUnnamed685() => [ buildRouterStatusBgpPeerStatus(), buildRouterStatusBgpPeerStatus(), ]; -void checkUnnamed680(core.List o) { +void checkUnnamed685(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterStatusBgpPeerStatus(o[0]); checkRouterStatusBgpPeerStatus(o[1]); } -core.List buildUnnamed681() => [ +core.List buildUnnamed686() => [ buildRouterStatusNatStatus(), buildRouterStatusNatStatus(), ]; -void checkUnnamed681(core.List o) { +void checkUnnamed686(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterStatusNatStatus(o[0]); checkRouterStatusNatStatus(o[1]); @@ -30485,10 +30921,10 @@ api.RouterStatus buildRouterStatus() { final o = api.RouterStatus(); buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - o.bestRoutes = buildUnnamed678(); - o.bestRoutesForRouter = buildUnnamed679(); - o.bgpPeerStatus = buildUnnamed680(); - o.natStatus = buildUnnamed681(); + o.bestRoutes = buildUnnamed683(); + o.bestRoutesForRouter = buildUnnamed684(); + o.bgpPeerStatus = buildUnnamed685(); + o.natStatus = buildUnnamed686(); o.network = 'foo'; } buildCounterRouterStatus--; @@ -30498,18 +30934,18 @@ api.RouterStatus buildRouterStatus() { void checkRouterStatus(api.RouterStatus o) { buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - checkUnnamed678(o.bestRoutes!); - checkUnnamed679(o.bestRoutesForRouter!); - checkUnnamed680(o.bgpPeerStatus!); - checkUnnamed681(o.natStatus!); + checkUnnamed683(o.bestRoutes!); + checkUnnamed684(o.bestRoutesForRouter!); + checkUnnamed685(o.bgpPeerStatus!); + checkUnnamed686(o.natStatus!); unittest.expect(o.network!, unittest.equals('foo')); } buildCounterRouterStatus--; } -core.List buildUnnamed682() => [buildRoute(), buildRoute()]; +core.List buildUnnamed687() => [buildRoute(), buildRoute()]; -void checkUnnamed682(core.List o) { +void checkUnnamed687(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -30520,7 +30956,7 @@ api.RouterStatusBgpPeerStatus buildRouterStatusBgpPeerStatus() { final o = api.RouterStatusBgpPeerStatus(); buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - o.advertisedRoutes = buildUnnamed682(); + o.advertisedRoutes = buildUnnamed687(); o.bfdStatus = buildBfdStatus(); o.enableIpv4 = true; o.enableIpv6 = true; @@ -30548,7 +30984,7 @@ api.RouterStatusBgpPeerStatus buildRouterStatusBgpPeerStatus() { void checkRouterStatusBgpPeerStatus(api.RouterStatusBgpPeerStatus o) { buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - checkUnnamed682(o.advertisedRoutes!); + checkUnnamed687(o.advertisedRoutes!); checkBfdStatus(o.bfdStatus!); unittest.expect(o.enableIpv4!, unittest.isTrue); unittest.expect(o.enableIpv6!, unittest.isTrue); @@ -30572,52 +31008,52 @@ void checkRouterStatusBgpPeerStatus(api.RouterStatusBgpPeerStatus o) { buildCounterRouterStatusBgpPeerStatus--; } -core.List buildUnnamed683() => ['foo', 'foo']; +core.List buildUnnamed688() => ['foo', 'foo']; -void checkUnnamed683(core.List o) { +void checkUnnamed688(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed684() => ['foo', 'foo']; +core.List buildUnnamed689() => ['foo', 'foo']; -void checkUnnamed684(core.List o) { +void checkUnnamed689(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed685() => ['foo', 'foo']; +core.List buildUnnamed690() => ['foo', 'foo']; -void checkUnnamed685(core.List o) { +void checkUnnamed690(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed686() => [ +core.List buildUnnamed691() => [ buildRouterStatusNatStatusNatRuleStatus(), buildRouterStatusNatStatusNatRuleStatus(), ]; -void checkUnnamed686(core.List o) { +void checkUnnamed691(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterStatusNatStatusNatRuleStatus(o[0]); checkRouterStatusNatStatusNatRuleStatus(o[1]); } -core.List buildUnnamed687() => ['foo', 'foo']; +core.List buildUnnamed692() => ['foo', 'foo']; -void checkUnnamed687(core.List o) { +void checkUnnamed692(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed688() => ['foo', 'foo']; +core.List buildUnnamed693() => ['foo', 'foo']; -void checkUnnamed688(core.List o) { +void checkUnnamed693(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -30628,15 +31064,15 @@ api.RouterStatusNatStatus buildRouterStatusNatStatus() { final o = api.RouterStatusNatStatus(); buildCounterRouterStatusNatStatus++; if (buildCounterRouterStatusNatStatus < 3) { - o.autoAllocatedNatIps = buildUnnamed683(); - o.drainAutoAllocatedNatIps = buildUnnamed684(); - o.drainUserAllocatedNatIps = buildUnnamed685(); + o.autoAllocatedNatIps = buildUnnamed688(); + o.drainAutoAllocatedNatIps = buildUnnamed689(); + o.drainUserAllocatedNatIps = buildUnnamed690(); o.minExtraNatIpsNeeded = 42; o.name = 'foo'; o.numVmEndpointsWithNatMappings = 42; - o.ruleStatus = buildUnnamed686(); - o.userAllocatedNatIpResources = buildUnnamed687(); - o.userAllocatedNatIps = buildUnnamed688(); + o.ruleStatus = buildUnnamed691(); + o.userAllocatedNatIpResources = buildUnnamed692(); + o.userAllocatedNatIps = buildUnnamed693(); } buildCounterRouterStatusNatStatus--; return o; @@ -30645,30 +31081,30 @@ api.RouterStatusNatStatus buildRouterStatusNatStatus() { void checkRouterStatusNatStatus(api.RouterStatusNatStatus o) { buildCounterRouterStatusNatStatus++; if (buildCounterRouterStatusNatStatus < 3) { - checkUnnamed683(o.autoAllocatedNatIps!); - checkUnnamed684(o.drainAutoAllocatedNatIps!); - checkUnnamed685(o.drainUserAllocatedNatIps!); + checkUnnamed688(o.autoAllocatedNatIps!); + checkUnnamed689(o.drainAutoAllocatedNatIps!); + checkUnnamed690(o.drainUserAllocatedNatIps!); unittest.expect(o.minExtraNatIpsNeeded!, unittest.equals(42)); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.numVmEndpointsWithNatMappings!, unittest.equals(42)); - checkUnnamed686(o.ruleStatus!); - checkUnnamed687(o.userAllocatedNatIpResources!); - checkUnnamed688(o.userAllocatedNatIps!); + checkUnnamed691(o.ruleStatus!); + checkUnnamed692(o.userAllocatedNatIpResources!); + checkUnnamed693(o.userAllocatedNatIps!); } buildCounterRouterStatusNatStatus--; } -core.List buildUnnamed689() => ['foo', 'foo']; +core.List buildUnnamed694() => ['foo', 'foo']; -void checkUnnamed689(core.List o) { +void checkUnnamed694(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed690() => ['foo', 'foo']; +core.List buildUnnamed695() => ['foo', 'foo']; -void checkUnnamed690(core.List o) { +void checkUnnamed695(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -30680,8 +31116,8 @@ buildRouterStatusNatStatusNatRuleStatus() { final o = api.RouterStatusNatStatusNatRuleStatus(); buildCounterRouterStatusNatStatusNatRuleStatus++; if (buildCounterRouterStatusNatStatusNatRuleStatus < 3) { - o.activeNatIps = buildUnnamed689(); - o.drainNatIps = buildUnnamed690(); + o.activeNatIps = buildUnnamed694(); + o.drainNatIps = buildUnnamed695(); o.minExtraIpsNeeded = 42; o.numVmEndpointsWithNatMappings = 42; o.ruleNumber = 42; @@ -30695,8 +31131,8 @@ void checkRouterStatusNatStatusNatRuleStatus( ) { buildCounterRouterStatusNatStatusNatRuleStatus++; if (buildCounterRouterStatusNatStatusNatRuleStatus < 3) { - checkUnnamed689(o.activeNatIps!); - checkUnnamed690(o.drainNatIps!); + checkUnnamed694(o.activeNatIps!); + checkUnnamed695(o.drainNatIps!); unittest.expect(o.minExtraIpsNeeded!, unittest.equals(42)); unittest.expect(o.numVmEndpointsWithNatMappings!, unittest.equals(42)); unittest.expect(o.ruleNumber!, unittest.equals(42)); @@ -30744,17 +31180,17 @@ void checkRoutersGetRoutePolicyResponse(api.RoutersGetRoutePolicyResponse o) { buildCounterRoutersGetRoutePolicyResponse--; } -core.List buildUnnamed691() => [buildBgpRoute(), buildBgpRoute()]; +core.List buildUnnamed696() => [buildBgpRoute(), buildBgpRoute()]; -void checkUnnamed691(core.List o) { +void checkUnnamed696(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBgpRoute(o[0]); checkBgpRoute(o[1]); } -core.List buildUnnamed692() => ['foo', 'foo']; +core.List buildUnnamed697() => ['foo', 'foo']; -void checkUnnamed692(core.List o) { +void checkUnnamed697(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -30783,12 +31219,12 @@ void checkRoutersListBgpRoutesWarningData( buildCounterRoutersListBgpRoutesWarningData--; } -core.List buildUnnamed693() => [ +core.List buildUnnamed698() => [ buildRoutersListBgpRoutesWarningData(), buildRoutersListBgpRoutesWarningData(), ]; -void checkUnnamed693(core.List o) { +void checkUnnamed698(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersListBgpRoutesWarningData(o[0]); checkRoutersListBgpRoutesWarningData(o[1]); @@ -30800,7 +31236,7 @@ api.RoutersListBgpRoutesWarning buildRoutersListBgpRoutesWarning() { buildCounterRoutersListBgpRoutesWarning++; if (buildCounterRoutersListBgpRoutesWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed693(); + o.data = buildUnnamed698(); o.message = 'foo'; } buildCounterRoutersListBgpRoutesWarning--; @@ -30811,7 +31247,7 @@ void checkRoutersListBgpRoutesWarning(api.RoutersListBgpRoutesWarning o) { buildCounterRoutersListBgpRoutesWarning++; if (buildCounterRoutersListBgpRoutesWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed693(o.data!); + checkUnnamed698(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterRoutersListBgpRoutesWarning--; @@ -30826,9 +31262,9 @@ api.RoutersListBgpRoutes buildRoutersListBgpRoutes() { o.id = 'foo'; o.kind = 'foo'; o.nextPageToken = 'foo'; - o.result = buildUnnamed691(); + o.result = buildUnnamed696(); o.selfLink = 'foo'; - o.unreachables = buildUnnamed692(); + o.unreachables = buildUnnamed697(); o.warning = buildRoutersListBgpRoutesWarning(); } buildCounterRoutersListBgpRoutes--; @@ -30842,28 +31278,28 @@ void checkRoutersListBgpRoutes(api.RoutersListBgpRoutes o) { unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed691(o.result!); + checkUnnamed696(o.result!); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed692(o.unreachables!); + checkUnnamed697(o.unreachables!); checkRoutersListBgpRoutesWarning(o.warning!); } buildCounterRoutersListBgpRoutes--; } -core.List buildUnnamed694() => [ +core.List buildUnnamed699() => [ buildRoutePolicy(), buildRoutePolicy(), ]; -void checkUnnamed694(core.List o) { +void checkUnnamed699(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRoutePolicy(o[0]); checkRoutePolicy(o[1]); } -core.List buildUnnamed695() => ['foo', 'foo']; +core.List buildUnnamed700() => ['foo', 'foo']; -void checkUnnamed695(core.List o) { +void checkUnnamed700(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -30893,12 +31329,12 @@ void checkRoutersListRoutePoliciesWarningData( buildCounterRoutersListRoutePoliciesWarningData--; } -core.List buildUnnamed696() => [ +core.List buildUnnamed701() => [ buildRoutersListRoutePoliciesWarningData(), buildRoutersListRoutePoliciesWarningData(), ]; -void checkUnnamed696(core.List o) { +void checkUnnamed701(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersListRoutePoliciesWarningData(o[0]); checkRoutersListRoutePoliciesWarningData(o[1]); @@ -30910,7 +31346,7 @@ api.RoutersListRoutePoliciesWarning buildRoutersListRoutePoliciesWarning() { buildCounterRoutersListRoutePoliciesWarning++; if (buildCounterRoutersListRoutePoliciesWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed696(); + o.data = buildUnnamed701(); o.message = 'foo'; } buildCounterRoutersListRoutePoliciesWarning--; @@ -30923,7 +31359,7 @@ void checkRoutersListRoutePoliciesWarning( buildCounterRoutersListRoutePoliciesWarning++; if (buildCounterRoutersListRoutePoliciesWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed696(o.data!); + checkUnnamed701(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterRoutersListRoutePoliciesWarning--; @@ -30938,9 +31374,9 @@ api.RoutersListRoutePolicies buildRoutersListRoutePolicies() { o.id = 'foo'; o.kind = 'foo'; o.nextPageToken = 'foo'; - o.result = buildUnnamed694(); + o.result = buildUnnamed699(); o.selfLink = 'foo'; - o.unreachables = buildUnnamed695(); + o.unreachables = buildUnnamed700(); o.warning = buildRoutersListRoutePoliciesWarning(); } buildCounterRoutersListRoutePolicies--; @@ -30954,9 +31390,9 @@ void checkRoutersListRoutePolicies(api.RoutersListRoutePolicies o) { unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed694(o.result!); + checkUnnamed699(o.result!); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed695(o.unreachables!); + checkUnnamed700(o.unreachables!); checkRoutersListRoutePoliciesWarning(o.warning!); } buildCounterRoutersListRoutePolicies--; @@ -30981,9 +31417,9 @@ void checkRoutersPreviewResponse(api.RoutersPreviewResponse o) { buildCounterRoutersPreviewResponse--; } -core.List buildUnnamed697() => [buildRouter(), buildRouter()]; +core.List buildUnnamed702() => [buildRouter(), buildRouter()]; -void checkUnnamed697(core.List o) { +void checkUnnamed702(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -31010,12 +31446,12 @@ void checkRoutersScopedListWarningData(api.RoutersScopedListWarningData o) { buildCounterRoutersScopedListWarningData--; } -core.List buildUnnamed698() => [ +core.List buildUnnamed703() => [ buildRoutersScopedListWarningData(), buildRoutersScopedListWarningData(), ]; -void checkUnnamed698(core.List o) { +void checkUnnamed703(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedListWarningData(o[0]); checkRoutersScopedListWarningData(o[1]); @@ -31027,7 +31463,7 @@ api.RoutersScopedListWarning buildRoutersScopedListWarning() { buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed698(); + o.data = buildUnnamed703(); o.message = 'foo'; } buildCounterRoutersScopedListWarning--; @@ -31038,7 +31474,7 @@ void checkRoutersScopedListWarning(api.RoutersScopedListWarning o) { buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed698(o.data!); + checkUnnamed703(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterRoutersScopedListWarning--; @@ -31049,7 +31485,7 @@ api.RoutersScopedList buildRoutersScopedList() { final o = api.RoutersScopedList(); buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - o.routers = buildUnnamed697(); + o.routers = buildUnnamed702(); o.warning = buildRoutersScopedListWarning(); } buildCounterRoutersScopedList--; @@ -31059,7 +31495,7 @@ api.RoutersScopedList buildRoutersScopedList() { void checkRoutersScopedList(api.RoutersScopedList o) { buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - checkUnnamed697(o.routers!); + checkUnnamed702(o.routers!); checkRoutersScopedListWarning(o.warning!); } buildCounterRoutersScopedList--; @@ -31094,20 +31530,20 @@ void checkSSLHealthCheck(api.SSLHealthCheck o) { buildCounterSSLHealthCheck--; } -core.List buildUnnamed699() => [ +core.List buildUnnamed704() => [ buildGuestOsFeature(), buildGuestOsFeature(), ]; -void checkUnnamed699(core.List o) { +void checkUnnamed704(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGuestOsFeature(o[0]); checkGuestOsFeature(o[1]); } -core.List buildUnnamed700() => ['foo', 'foo']; +core.List buildUnnamed705() => ['foo', 'foo']; -void checkUnnamed700(core.List o) { +void checkUnnamed705(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -31124,11 +31560,11 @@ api.SavedAttachedDisk buildSavedAttachedDisk() { o.diskEncryptionKey = buildCustomerEncryptionKey(); o.diskSizeGb = 'foo'; o.diskType = 'foo'; - o.guestOsFeatures = buildUnnamed699(); + o.guestOsFeatures = buildUnnamed704(); o.index = 42; o.interface = 'foo'; o.kind = 'foo'; - o.licenses = buildUnnamed700(); + o.licenses = buildUnnamed705(); o.mode = 'foo'; o.source = 'foo'; o.storageBytes = 'foo'; @@ -31148,11 +31584,11 @@ void checkSavedAttachedDisk(api.SavedAttachedDisk o) { checkCustomerEncryptionKey(o.diskEncryptionKey!); unittest.expect(o.diskSizeGb!, unittest.equals('foo')); unittest.expect(o.diskType!, unittest.equals('foo')); - checkUnnamed699(o.guestOsFeatures!); + checkUnnamed704(o.guestOsFeatures!); unittest.expect(o.index!, unittest.equals(42)); unittest.expect(o.interface!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); - checkUnnamed700(o.licenses!); + checkUnnamed705(o.licenses!); unittest.expect(o.mode!, unittest.equals('foo')); unittest.expect(o.source!, unittest.equals('foo')); unittest.expect(o.storageBytes!, unittest.equals('foo')); @@ -31212,12 +31648,12 @@ void checkScalingScheduleStatus(api.ScalingScheduleStatus o) { buildCounterScalingScheduleStatus--; } -core.List buildUnnamed701() => [ +core.List buildUnnamed706() => [ buildSchedulingNodeAffinity(), buildSchedulingNodeAffinity(), ]; -void checkUnnamed701(core.List o) { +void checkUnnamed706(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSchedulingNodeAffinity(o[0]); checkSchedulingNodeAffinity(o[1]); @@ -31236,11 +31672,12 @@ api.Scheduling buildScheduling() { o.locationHint = 'foo'; o.maxRunDuration = buildDuration(); o.minNodeCpus = 42; - o.nodeAffinities = buildUnnamed701(); + o.nodeAffinities = buildUnnamed706(); o.onHostMaintenance = 'foo'; o.onInstanceStopAction = buildSchedulingOnInstanceStopAction(); o.preemptible = true; o.provisioningModel = 'foo'; + o.skipGuestOsShutdown = true; o.terminationTime = 'foo'; } buildCounterScheduling--; @@ -31258,19 +31695,20 @@ void checkScheduling(api.Scheduling o) { unittest.expect(o.locationHint!, unittest.equals('foo')); checkDuration(o.maxRunDuration!); unittest.expect(o.minNodeCpus!, unittest.equals(42)); - checkUnnamed701(o.nodeAffinities!); + checkUnnamed706(o.nodeAffinities!); unittest.expect(o.onHostMaintenance!, unittest.equals('foo')); checkSchedulingOnInstanceStopAction(o.onInstanceStopAction!); unittest.expect(o.preemptible!, unittest.isTrue); unittest.expect(o.provisioningModel!, unittest.equals('foo')); + unittest.expect(o.skipGuestOsShutdown!, unittest.isTrue); unittest.expect(o.terminationTime!, unittest.equals('foo')); } buildCounterScheduling--; } -core.List buildUnnamed702() => ['foo', 'foo']; +core.List buildUnnamed707() => ['foo', 'foo']; -void checkUnnamed702(core.List o) { +void checkUnnamed707(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -31283,7 +31721,7 @@ api.SchedulingNodeAffinity buildSchedulingNodeAffinity() { if (buildCounterSchedulingNodeAffinity < 3) { o.key = 'foo'; o.operator = 'foo'; - o.values = buildUnnamed702(); + o.values = buildUnnamed707(); } buildCounterSchedulingNodeAffinity--; return o; @@ -31294,7 +31732,7 @@ void checkSchedulingNodeAffinity(api.SchedulingNodeAffinity o) { if (buildCounterSchedulingNodeAffinity < 3) { unittest.expect(o.key!, unittest.equals('foo')); unittest.expect(o.operator!, unittest.equals('foo')); - checkUnnamed702(o.values!); + checkUnnamed707(o.values!); } buildCounterSchedulingNodeAffinity--; } @@ -31339,20 +31777,20 @@ void checkScreenshot(api.Screenshot o) { buildCounterScreenshot--; } -core.Map buildUnnamed703() => { +core.Map buildUnnamed708() => { 'x': buildSecurityPoliciesScopedList(), 'y': buildSecurityPoliciesScopedList(), }; -void checkUnnamed703(core.Map o) { +void checkUnnamed708(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkSecurityPoliciesScopedList(o['x']!); checkSecurityPoliciesScopedList(o['y']!); } -core.List buildUnnamed704() => ['foo', 'foo']; +core.List buildUnnamed709() => ['foo', 'foo']; -void checkUnnamed704(core.List o) { +void checkUnnamed709(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -31382,12 +31820,12 @@ void checkSecurityPoliciesAggregatedListWarningData( buildCounterSecurityPoliciesAggregatedListWarningData--; } -core.List buildUnnamed705() => [ +core.List buildUnnamed710() => [ buildSecurityPoliciesAggregatedListWarningData(), buildSecurityPoliciesAggregatedListWarningData(), ]; -void checkUnnamed705( +void checkUnnamed710( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -31402,7 +31840,7 @@ buildSecurityPoliciesAggregatedListWarning() { buildCounterSecurityPoliciesAggregatedListWarning++; if (buildCounterSecurityPoliciesAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed705(); + o.data = buildUnnamed710(); o.message = 'foo'; } buildCounterSecurityPoliciesAggregatedListWarning--; @@ -31415,7 +31853,7 @@ void checkSecurityPoliciesAggregatedListWarning( buildCounterSecurityPoliciesAggregatedListWarning++; if (buildCounterSecurityPoliciesAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed705(o.data!); + checkUnnamed710(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterSecurityPoliciesAggregatedListWarning--; @@ -31428,11 +31866,11 @@ api.SecurityPoliciesAggregatedList buildSecurityPoliciesAggregatedList() { if (buildCounterSecurityPoliciesAggregatedList < 3) { o.etag = 'foo'; o.id = 'foo'; - o.items = buildUnnamed703(); + o.items = buildUnnamed708(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed704(); + o.unreachables = buildUnnamed709(); o.warning = buildSecurityPoliciesAggregatedListWarning(); } buildCounterSecurityPoliciesAggregatedList--; @@ -31444,11 +31882,11 @@ void checkSecurityPoliciesAggregatedList(api.SecurityPoliciesAggregatedList o) { if (buildCounterSecurityPoliciesAggregatedList < 3) { unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed703(o.items!); + checkUnnamed708(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed704(o.unreachables!); + checkUnnamed709(o.unreachables!); checkSecurityPoliciesAggregatedListWarning(o.warning!); } buildCounterSecurityPoliciesAggregatedList--; @@ -31477,12 +31915,12 @@ void checkSecurityPoliciesListPreconfiguredExpressionSetsResponse( buildCounterSecurityPoliciesListPreconfiguredExpressionSetsResponse--; } -core.List buildUnnamed706() => [ +core.List buildUnnamed711() => [ buildSecurityPolicy(), buildSecurityPolicy(), ]; -void checkUnnamed706(core.List o) { +void checkUnnamed711(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSecurityPolicy(o[0]); checkSecurityPolicy(o[1]); @@ -31512,12 +31950,12 @@ void checkSecurityPoliciesScopedListWarningData( buildCounterSecurityPoliciesScopedListWarningData--; } -core.List buildUnnamed707() => [ +core.List buildUnnamed712() => [ buildSecurityPoliciesScopedListWarningData(), buildSecurityPoliciesScopedListWarningData(), ]; -void checkUnnamed707(core.List o) { +void checkUnnamed712(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSecurityPoliciesScopedListWarningData(o[0]); checkSecurityPoliciesScopedListWarningData(o[1]); @@ -31529,7 +31967,7 @@ api.SecurityPoliciesScopedListWarning buildSecurityPoliciesScopedListWarning() { buildCounterSecurityPoliciesScopedListWarning++; if (buildCounterSecurityPoliciesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed707(); + o.data = buildUnnamed712(); o.message = 'foo'; } buildCounterSecurityPoliciesScopedListWarning--; @@ -31542,7 +31980,7 @@ void checkSecurityPoliciesScopedListWarning( buildCounterSecurityPoliciesScopedListWarning++; if (buildCounterSecurityPoliciesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed707(o.data!); + checkUnnamed712(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterSecurityPoliciesScopedListWarning--; @@ -31553,7 +31991,7 @@ api.SecurityPoliciesScopedList buildSecurityPoliciesScopedList() { final o = api.SecurityPoliciesScopedList(); buildCounterSecurityPoliciesScopedList++; if (buildCounterSecurityPoliciesScopedList < 3) { - o.securityPolicies = buildUnnamed706(); + o.securityPolicies = buildUnnamed711(); o.warning = buildSecurityPoliciesScopedListWarning(); } buildCounterSecurityPoliciesScopedList--; @@ -31563,7 +32001,7 @@ api.SecurityPoliciesScopedList buildSecurityPoliciesScopedList() { void checkSecurityPoliciesScopedList(api.SecurityPoliciesScopedList o) { buildCounterSecurityPoliciesScopedList++; if (buildCounterSecurityPoliciesScopedList < 3) { - checkUnnamed706(o.securityPolicies!); + checkUnnamed711(o.securityPolicies!); checkSecurityPoliciesScopedListWarning(o.warning!); } buildCounterSecurityPoliciesScopedList--; @@ -31588,34 +32026,34 @@ void checkSecurityPoliciesWafConfig(api.SecurityPoliciesWafConfig o) { buildCounterSecurityPoliciesWafConfig--; } -core.Map buildUnnamed708() => { +core.Map buildUnnamed713() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed708(core.Map o) { +void checkUnnamed713(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed709() => [ +core.List buildUnnamed714() => [ buildSecurityPolicyRule(), buildSecurityPolicyRule(), ]; -void checkUnnamed709(core.List o) { +void checkUnnamed714(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSecurityPolicyRule(o[0]); checkSecurityPolicyRule(o[1]); } -core.List buildUnnamed710() => [ +core.List buildUnnamed715() => [ buildSecurityPolicyUserDefinedField(), buildSecurityPolicyUserDefinedField(), ]; -void checkUnnamed710(core.List o) { +void checkUnnamed715(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSecurityPolicyUserDefinedField(o[0]); checkSecurityPolicyUserDefinedField(o[1]); @@ -31635,14 +32073,14 @@ api.SecurityPolicy buildSecurityPolicy() { o.id = 'foo'; o.kind = 'foo'; o.labelFingerprint = 'foo'; - o.labels = buildUnnamed708(); + o.labels = buildUnnamed713(); o.name = 'foo'; o.recaptchaOptionsConfig = buildSecurityPolicyRecaptchaOptionsConfig(); o.region = 'foo'; - o.rules = buildUnnamed709(); + o.rules = buildUnnamed714(); o.selfLink = 'foo'; o.type = 'foo'; - o.userDefinedFields = buildUnnamed710(); + o.userDefinedFields = buildUnnamed715(); } buildCounterSecurityPolicy--; return o; @@ -31660,14 +32098,14 @@ void checkSecurityPolicy(api.SecurityPolicy o) { unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed708(o.labels!); + checkUnnamed713(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); checkSecurityPolicyRecaptchaOptionsConfig(o.recaptchaOptionsConfig!); unittest.expect(o.region!, unittest.equals('foo')); - checkUnnamed709(o.rules!); + checkUnnamed714(o.rules!); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.type!, unittest.equals('foo')); - checkUnnamed710(o.userDefinedFields!); + checkUnnamed715(o.userDefinedFields!); } buildCounterSecurityPolicy--; } @@ -31700,12 +32138,12 @@ void checkSecurityPolicyAdaptiveProtectionConfig( core.List< api.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig > -buildUnnamed711() => [ +buildUnnamed716() => [ buildSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig(), buildSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig(), ]; -void checkUnnamed711( +void checkUnnamed716( core.List< api.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig > @@ -31730,7 +32168,7 @@ buildSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig() { 3) { o.enable = true; o.ruleVisibility = 'foo'; - o.thresholdConfigs = buildUnnamed711(); + o.thresholdConfigs = buildUnnamed716(); } buildCounterSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig--; return o; @@ -31744,7 +32182,7 @@ void checkSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig( 3) { unittest.expect(o.enable!, unittest.isTrue); unittest.expect(o.ruleVisibility!, unittest.equals('foo')); - checkUnnamed711(o.thresholdConfigs!); + checkUnnamed716(o.thresholdConfigs!); } buildCounterSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig--; } @@ -31752,12 +32190,12 @@ void checkSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig( core.List< api.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig > -buildUnnamed712() => [ +buildUnnamed717() => [ buildSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig(), buildSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig(), ]; -void checkUnnamed712( +void checkUnnamed717( core.List< api.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig > @@ -31790,7 +32228,7 @@ buildSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfi o.detectionLoadThreshold = 42.0; o.detectionRelativeToBaselineQps = 42.0; o.name = 'foo'; - o.trafficGranularityConfigs = buildUnnamed712(); + o.trafficGranularityConfigs = buildUnnamed717(); } buildCounterSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig--; return o; @@ -31815,7 +32253,7 @@ checkSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfi unittest.expect(o.detectionLoadThreshold!, unittest.equals(42.0)); unittest.expect(o.detectionRelativeToBaselineQps!, unittest.equals(42.0)); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed712(o.trafficGranularityConfigs!); + checkUnnamed717(o.trafficGranularityConfigs!); } buildCounterSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig--; } @@ -31853,9 +32291,9 @@ checkSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfi buildCounterSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig--; } -core.List buildUnnamed713() => ['foo', 'foo']; +core.List buildUnnamed718() => ['foo', 'foo']; -void checkUnnamed713(core.List o) { +void checkUnnamed718(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -31871,7 +32309,7 @@ buildSecurityPolicyAdvancedOptionsConfig() { buildSecurityPolicyAdvancedOptionsConfigJsonCustomConfig(); o.jsonParsing = 'foo'; o.logLevel = 'foo'; - o.userIpRequestHeaders = buildUnnamed713(); + o.userIpRequestHeaders = buildUnnamed718(); } buildCounterSecurityPolicyAdvancedOptionsConfig--; return o; @@ -31887,14 +32325,14 @@ void checkSecurityPolicyAdvancedOptionsConfig( ); unittest.expect(o.jsonParsing!, unittest.equals('foo')); unittest.expect(o.logLevel!, unittest.equals('foo')); - checkUnnamed713(o.userIpRequestHeaders!); + checkUnnamed718(o.userIpRequestHeaders!); } buildCounterSecurityPolicyAdvancedOptionsConfig--; } -core.List buildUnnamed714() => ['foo', 'foo']; +core.List buildUnnamed719() => ['foo', 'foo']; -void checkUnnamed714(core.List o) { +void checkUnnamed719(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -31906,7 +32344,7 @@ buildSecurityPolicyAdvancedOptionsConfigJsonCustomConfig() { final o = api.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig(); buildCounterSecurityPolicyAdvancedOptionsConfigJsonCustomConfig++; if (buildCounterSecurityPolicyAdvancedOptionsConfigJsonCustomConfig < 3) { - o.contentTypes = buildUnnamed714(); + o.contentTypes = buildUnnamed719(); } buildCounterSecurityPolicyAdvancedOptionsConfigJsonCustomConfig--; return o; @@ -31917,7 +32355,7 @@ void checkSecurityPolicyAdvancedOptionsConfigJsonCustomConfig( ) { buildCounterSecurityPolicyAdvancedOptionsConfigJsonCustomConfig++; if (buildCounterSecurityPolicyAdvancedOptionsConfigJsonCustomConfig < 3) { - checkUnnamed714(o.contentTypes!); + checkUnnamed719(o.contentTypes!); } buildCounterSecurityPolicyAdvancedOptionsConfigJsonCustomConfig--; } @@ -31944,12 +32382,12 @@ void checkSecurityPolicyDdosProtectionConfig( buildCounterSecurityPolicyDdosProtectionConfig--; } -core.List buildUnnamed715() => [ +core.List buildUnnamed720() => [ buildSecurityPolicy(), buildSecurityPolicy(), ]; -void checkUnnamed715(core.List o) { +void checkUnnamed720(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSecurityPolicy(o[0]); checkSecurityPolicy(o[1]); @@ -31976,12 +32414,12 @@ void checkSecurityPolicyListWarningData(api.SecurityPolicyListWarningData o) { buildCounterSecurityPolicyListWarningData--; } -core.List buildUnnamed716() => [ +core.List buildUnnamed721() => [ buildSecurityPolicyListWarningData(), buildSecurityPolicyListWarningData(), ]; -void checkUnnamed716(core.List o) { +void checkUnnamed721(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSecurityPolicyListWarningData(o[0]); checkSecurityPolicyListWarningData(o[1]); @@ -31993,7 +32431,7 @@ api.SecurityPolicyListWarning buildSecurityPolicyListWarning() { buildCounterSecurityPolicyListWarning++; if (buildCounterSecurityPolicyListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed716(); + o.data = buildUnnamed721(); o.message = 'foo'; } buildCounterSecurityPolicyListWarning--; @@ -32004,7 +32442,7 @@ void checkSecurityPolicyListWarning(api.SecurityPolicyListWarning o) { buildCounterSecurityPolicyListWarning++; if (buildCounterSecurityPolicyListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed716(o.data!); + checkUnnamed721(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterSecurityPolicyListWarning--; @@ -32016,7 +32454,7 @@ api.SecurityPolicyList buildSecurityPolicyList() { buildCounterSecurityPolicyList++; if (buildCounterSecurityPolicyList < 3) { o.id = 'foo'; - o.items = buildUnnamed715(); + o.items = buildUnnamed720(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.warning = buildSecurityPolicyListWarning(); @@ -32029,7 +32467,7 @@ void checkSecurityPolicyList(api.SecurityPolicyList o) { buildCounterSecurityPolicyList++; if (buildCounterSecurityPolicyList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed715(o.items!); + checkUnnamed720(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); checkSecurityPolicyListWarning(o.warning!); @@ -32118,12 +32556,12 @@ void checkSecurityPolicyRule(api.SecurityPolicyRule o) { } core.List -buildUnnamed717() => [ +buildUnnamed722() => [ buildSecurityPolicyRuleHttpHeaderActionHttpHeaderOption(), buildSecurityPolicyRuleHttpHeaderActionHttpHeaderOption(), ]; -void checkUnnamed717( +void checkUnnamed722( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -32137,7 +32575,7 @@ buildSecurityPolicyRuleHttpHeaderAction() { final o = api.SecurityPolicyRuleHttpHeaderAction(); buildCounterSecurityPolicyRuleHttpHeaderAction++; if (buildCounterSecurityPolicyRuleHttpHeaderAction < 3) { - o.requestHeadersToAdds = buildUnnamed717(); + o.requestHeadersToAdds = buildUnnamed722(); } buildCounterSecurityPolicyRuleHttpHeaderAction--; return o; @@ -32148,7 +32586,7 @@ void checkSecurityPolicyRuleHttpHeaderAction( ) { buildCounterSecurityPolicyRuleHttpHeaderAction++; if (buildCounterSecurityPolicyRuleHttpHeaderAction < 3) { - checkUnnamed717(o.requestHeadersToAdds!); + checkUnnamed722(o.requestHeadersToAdds!); } buildCounterSecurityPolicyRuleHttpHeaderAction--; } @@ -32202,9 +32640,9 @@ void checkSecurityPolicyRuleMatcher(api.SecurityPolicyRuleMatcher o) { buildCounterSecurityPolicyRuleMatcher--; } -core.List buildUnnamed718() => ['foo', 'foo']; +core.List buildUnnamed723() => ['foo', 'foo']; -void checkUnnamed718(core.List o) { +void checkUnnamed723(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -32215,7 +32653,7 @@ api.SecurityPolicyRuleMatcherConfig buildSecurityPolicyRuleMatcherConfig() { final o = api.SecurityPolicyRuleMatcherConfig(); buildCounterSecurityPolicyRuleMatcherConfig++; if (buildCounterSecurityPolicyRuleMatcherConfig < 3) { - o.srcIpRanges = buildUnnamed718(); + o.srcIpRanges = buildUnnamed723(); } buildCounterSecurityPolicyRuleMatcherConfig--; return o; @@ -32226,7 +32664,7 @@ void checkSecurityPolicyRuleMatcherConfig( ) { buildCounterSecurityPolicyRuleMatcherConfig++; if (buildCounterSecurityPolicyRuleMatcherConfig < 3) { - checkUnnamed718(o.srcIpRanges!); + checkUnnamed723(o.srcIpRanges!); } buildCounterSecurityPolicyRuleMatcherConfig--; } @@ -32256,17 +32694,17 @@ void checkSecurityPolicyRuleMatcherExprOptions( buildCounterSecurityPolicyRuleMatcherExprOptions--; } -core.List buildUnnamed719() => ['foo', 'foo']; +core.List buildUnnamed724() => ['foo', 'foo']; -void checkUnnamed719(core.List o) { +void checkUnnamed724(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed720() => ['foo', 'foo']; +core.List buildUnnamed725() => ['foo', 'foo']; -void checkUnnamed720(core.List o) { +void checkUnnamed725(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -32278,8 +32716,8 @@ buildSecurityPolicyRuleMatcherExprOptionsRecaptchaOptions() { final o = api.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions(); buildCounterSecurityPolicyRuleMatcherExprOptionsRecaptchaOptions++; if (buildCounterSecurityPolicyRuleMatcherExprOptionsRecaptchaOptions < 3) { - o.actionTokenSiteKeys = buildUnnamed719(); - o.sessionTokenSiteKeys = buildUnnamed720(); + o.actionTokenSiteKeys = buildUnnamed724(); + o.sessionTokenSiteKeys = buildUnnamed725(); } buildCounterSecurityPolicyRuleMatcherExprOptionsRecaptchaOptions--; return o; @@ -32290,75 +32728,75 @@ void checkSecurityPolicyRuleMatcherExprOptionsRecaptchaOptions( ) { buildCounterSecurityPolicyRuleMatcherExprOptionsRecaptchaOptions++; if (buildCounterSecurityPolicyRuleMatcherExprOptionsRecaptchaOptions < 3) { - checkUnnamed719(o.actionTokenSiteKeys!); - checkUnnamed720(o.sessionTokenSiteKeys!); + checkUnnamed724(o.actionTokenSiteKeys!); + checkUnnamed725(o.sessionTokenSiteKeys!); } buildCounterSecurityPolicyRuleMatcherExprOptionsRecaptchaOptions--; } -core.List buildUnnamed721() => ['foo', 'foo']; +core.List buildUnnamed726() => ['foo', 'foo']; -void checkUnnamed721(core.List o) { +void checkUnnamed726(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed722() => ['foo', 'foo']; +core.List buildUnnamed727() => ['foo', 'foo']; -void checkUnnamed722(core.List o) { +void checkUnnamed727(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed723() => ['foo', 'foo']; +core.List buildUnnamed728() => ['foo', 'foo']; -void checkUnnamed723(core.List o) { +void checkUnnamed728(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed724() => [42, 42]; +core.List buildUnnamed729() => [42, 42]; -void checkUnnamed724(core.List o) { +void checkUnnamed729(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -core.List buildUnnamed725() => ['foo', 'foo']; +core.List buildUnnamed730() => ['foo', 'foo']; -void checkUnnamed725(core.List o) { +void checkUnnamed730(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed726() => ['foo', 'foo']; +core.List buildUnnamed731() => ['foo', 'foo']; -void checkUnnamed726(core.List o) { +void checkUnnamed731(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed727() => ['foo', 'foo']; +core.List buildUnnamed732() => ['foo', 'foo']; -void checkUnnamed727(core.List o) { +void checkUnnamed732(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } core.List -buildUnnamed728() => [ +buildUnnamed733() => [ buildSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch(), buildSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch(), ]; -void checkUnnamed728( +void checkUnnamed733( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -32371,14 +32809,14 @@ api.SecurityPolicyRuleNetworkMatcher buildSecurityPolicyRuleNetworkMatcher() { final o = api.SecurityPolicyRuleNetworkMatcher(); buildCounterSecurityPolicyRuleNetworkMatcher++; if (buildCounterSecurityPolicyRuleNetworkMatcher < 3) { - o.destIpRanges = buildUnnamed721(); - o.destPorts = buildUnnamed722(); - o.ipProtocols = buildUnnamed723(); - o.srcAsns = buildUnnamed724(); - o.srcIpRanges = buildUnnamed725(); - o.srcPorts = buildUnnamed726(); - o.srcRegionCodes = buildUnnamed727(); - o.userDefinedFields = buildUnnamed728(); + o.destIpRanges = buildUnnamed726(); + o.destPorts = buildUnnamed727(); + o.ipProtocols = buildUnnamed728(); + o.srcAsns = buildUnnamed729(); + o.srcIpRanges = buildUnnamed730(); + o.srcPorts = buildUnnamed731(); + o.srcRegionCodes = buildUnnamed732(); + o.userDefinedFields = buildUnnamed733(); } buildCounterSecurityPolicyRuleNetworkMatcher--; return o; @@ -32389,21 +32827,21 @@ void checkSecurityPolicyRuleNetworkMatcher( ) { buildCounterSecurityPolicyRuleNetworkMatcher++; if (buildCounterSecurityPolicyRuleNetworkMatcher < 3) { - checkUnnamed721(o.destIpRanges!); - checkUnnamed722(o.destPorts!); - checkUnnamed723(o.ipProtocols!); - checkUnnamed724(o.srcAsns!); - checkUnnamed725(o.srcIpRanges!); - checkUnnamed726(o.srcPorts!); - checkUnnamed727(o.srcRegionCodes!); - checkUnnamed728(o.userDefinedFields!); + checkUnnamed726(o.destIpRanges!); + checkUnnamed727(o.destPorts!); + checkUnnamed728(o.ipProtocols!); + checkUnnamed729(o.srcAsns!); + checkUnnamed730(o.srcIpRanges!); + checkUnnamed731(o.srcPorts!); + checkUnnamed732(o.srcRegionCodes!); + checkUnnamed733(o.userDefinedFields!); } buildCounterSecurityPolicyRuleNetworkMatcher--; } -core.List buildUnnamed729() => ['foo', 'foo']; +core.List buildUnnamed734() => ['foo', 'foo']; -void checkUnnamed729(core.List o) { +void checkUnnamed734(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -32416,7 +32854,7 @@ buildSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch() { buildCounterSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch++; if (buildCounterSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch < 3) { o.name = 'foo'; - o.values = buildUnnamed729(); + o.values = buildUnnamed734(); } buildCounterSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch--; return o; @@ -32428,18 +32866,18 @@ void checkSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch( buildCounterSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch++; if (buildCounterSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch < 3) { unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed729(o.values!); + checkUnnamed734(o.values!); } buildCounterSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch--; } core.List -buildUnnamed730() => [ +buildUnnamed735() => [ buildSecurityPolicyRulePreconfiguredWafConfigExclusion(), buildSecurityPolicyRulePreconfiguredWafConfigExclusion(), ]; -void checkUnnamed730( +void checkUnnamed735( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -32453,7 +32891,7 @@ buildSecurityPolicyRulePreconfiguredWafConfig() { final o = api.SecurityPolicyRulePreconfiguredWafConfig(); buildCounterSecurityPolicyRulePreconfiguredWafConfig++; if (buildCounterSecurityPolicyRulePreconfiguredWafConfig < 3) { - o.exclusions = buildUnnamed730(); + o.exclusions = buildUnnamed735(); } buildCounterSecurityPolicyRulePreconfiguredWafConfig--; return o; @@ -32464,18 +32902,18 @@ void checkSecurityPolicyRulePreconfiguredWafConfig( ) { buildCounterSecurityPolicyRulePreconfiguredWafConfig++; if (buildCounterSecurityPolicyRulePreconfiguredWafConfig < 3) { - checkUnnamed730(o.exclusions!); + checkUnnamed735(o.exclusions!); } buildCounterSecurityPolicyRulePreconfiguredWafConfig--; } core.List -buildUnnamed731() => [ +buildUnnamed736() => [ buildSecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams(), buildSecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams(), ]; -void checkUnnamed731( +void checkUnnamed736( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -32484,12 +32922,12 @@ void checkUnnamed731( } core.List -buildUnnamed732() => [ +buildUnnamed737() => [ buildSecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams(), buildSecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams(), ]; -void checkUnnamed732( +void checkUnnamed737( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -32498,12 +32936,12 @@ void checkUnnamed732( } core.List -buildUnnamed733() => [ +buildUnnamed738() => [ buildSecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams(), buildSecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams(), ]; -void checkUnnamed733( +void checkUnnamed738( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -32512,12 +32950,12 @@ void checkUnnamed733( } core.List -buildUnnamed734() => [ +buildUnnamed739() => [ buildSecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams(), buildSecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams(), ]; -void checkUnnamed734( +void checkUnnamed739( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -32525,9 +32963,9 @@ void checkUnnamed734( checkSecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams(o[1]); } -core.List buildUnnamed735() => ['foo', 'foo']; +core.List buildUnnamed740() => ['foo', 'foo']; -void checkUnnamed735(core.List o) { +void checkUnnamed740(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -32539,11 +32977,11 @@ buildSecurityPolicyRulePreconfiguredWafConfigExclusion() { final o = api.SecurityPolicyRulePreconfiguredWafConfigExclusion(); buildCounterSecurityPolicyRulePreconfiguredWafConfigExclusion++; if (buildCounterSecurityPolicyRulePreconfiguredWafConfigExclusion < 3) { - o.requestCookiesToExclude = buildUnnamed731(); - o.requestHeadersToExclude = buildUnnamed732(); - o.requestQueryParamsToExclude = buildUnnamed733(); - o.requestUrisToExclude = buildUnnamed734(); - o.targetRuleIds = buildUnnamed735(); + o.requestCookiesToExclude = buildUnnamed736(); + o.requestHeadersToExclude = buildUnnamed737(); + o.requestQueryParamsToExclude = buildUnnamed738(); + o.requestUrisToExclude = buildUnnamed739(); + o.targetRuleIds = buildUnnamed740(); o.targetRuleSet = 'foo'; } buildCounterSecurityPolicyRulePreconfiguredWafConfigExclusion--; @@ -32555,11 +32993,11 @@ void checkSecurityPolicyRulePreconfiguredWafConfigExclusion( ) { buildCounterSecurityPolicyRulePreconfiguredWafConfigExclusion++; if (buildCounterSecurityPolicyRulePreconfiguredWafConfigExclusion < 3) { - checkUnnamed731(o.requestCookiesToExclude!); - checkUnnamed732(o.requestHeadersToExclude!); - checkUnnamed733(o.requestQueryParamsToExclude!); - checkUnnamed734(o.requestUrisToExclude!); - checkUnnamed735(o.targetRuleIds!); + checkUnnamed736(o.requestCookiesToExclude!); + checkUnnamed737(o.requestHeadersToExclude!); + checkUnnamed738(o.requestQueryParamsToExclude!); + checkUnnamed739(o.requestUrisToExclude!); + checkUnnamed740(o.targetRuleIds!); unittest.expect(o.targetRuleSet!, unittest.equals('foo')); } buildCounterSecurityPolicyRulePreconfiguredWafConfigExclusion--; @@ -32593,12 +33031,12 @@ void checkSecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams( } core.List -buildUnnamed736() => [ +buildUnnamed741() => [ buildSecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig(), buildSecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig(), ]; -void checkUnnamed736( +void checkUnnamed741( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -32616,7 +33054,7 @@ buildSecurityPolicyRuleRateLimitOptions() { o.banThreshold = buildSecurityPolicyRuleRateLimitOptionsThreshold(); o.conformAction = 'foo'; o.enforceOnKey = 'foo'; - o.enforceOnKeyConfigs = buildUnnamed736(); + o.enforceOnKeyConfigs = buildUnnamed741(); o.enforceOnKeyName = 'foo'; o.exceedAction = 'foo'; o.exceedRedirectOptions = buildSecurityPolicyRuleRedirectOptions(); @@ -32635,7 +33073,7 @@ void checkSecurityPolicyRuleRateLimitOptions( checkSecurityPolicyRuleRateLimitOptionsThreshold(o.banThreshold!); unittest.expect(o.conformAction!, unittest.equals('foo')); unittest.expect(o.enforceOnKey!, unittest.equals('foo')); - checkUnnamed736(o.enforceOnKeyConfigs!); + checkUnnamed741(o.enforceOnKeyConfigs!); unittest.expect(o.enforceOnKeyName!, unittest.equals('foo')); unittest.expect(o.exceedAction!, unittest.equals('foo')); checkSecurityPolicyRuleRedirectOptions(o.exceedRedirectOptions!); @@ -32742,9 +33180,9 @@ void checkSecurityPolicyUserDefinedField(api.SecurityPolicyUserDefinedField o) { buildCounterSecurityPolicyUserDefinedField--; } -core.List buildUnnamed737() => ['foo', 'foo']; +core.List buildUnnamed742() => ['foo', 'foo']; -void checkUnnamed737(core.List o) { +void checkUnnamed742(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -32757,7 +33195,7 @@ api.SecuritySettings buildSecuritySettings() { if (buildCounterSecuritySettings < 3) { o.awsV4Authentication = buildAWSV4Signature(); o.clientTlsPolicy = 'foo'; - o.subjectAltNames = buildUnnamed737(); + o.subjectAltNames = buildUnnamed742(); } buildCounterSecuritySettings--; return o; @@ -32768,7 +33206,7 @@ void checkSecuritySettings(api.SecuritySettings o) { if (buildCounterSecuritySettings < 3) { checkAWSV4Signature(o.awsV4Authentication!); unittest.expect(o.clientTlsPolicy!, unittest.equals('foo')); - checkUnnamed737(o.subjectAltNames!); + checkUnnamed742(o.subjectAltNames!); } buildCounterSecuritySettings--; } @@ -32819,9 +33257,9 @@ void checkServerBinding(api.ServerBinding o) { buildCounterServerBinding--; } -core.List buildUnnamed738() => ['foo', 'foo']; +core.List buildUnnamed743() => ['foo', 'foo']; -void checkUnnamed738(core.List o) { +void checkUnnamed743(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -32833,7 +33271,7 @@ api.ServiceAccount buildServiceAccount() { buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { o.email = 'foo'; - o.scopes = buildUnnamed738(); + o.scopes = buildUnnamed743(); } buildCounterServiceAccount--; return o; @@ -32843,63 +33281,63 @@ void checkServiceAccount(api.ServiceAccount o) { buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { unittest.expect(o.email!, unittest.equals('foo')); - checkUnnamed738(o.scopes!); + checkUnnamed743(o.scopes!); } buildCounterServiceAccount--; } -core.List buildUnnamed739() => [ +core.List buildUnnamed744() => [ buildServiceAttachmentConnectedEndpoint(), buildServiceAttachmentConnectedEndpoint(), ]; -void checkUnnamed739(core.List o) { +void checkUnnamed744(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAttachmentConnectedEndpoint(o[0]); checkServiceAttachmentConnectedEndpoint(o[1]); } -core.List buildUnnamed740() => [ +core.List buildUnnamed745() => [ buildServiceAttachmentConsumerProjectLimit(), buildServiceAttachmentConsumerProjectLimit(), ]; -void checkUnnamed740(core.List o) { +void checkUnnamed745(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAttachmentConsumerProjectLimit(o[0]); checkServiceAttachmentConsumerProjectLimit(o[1]); } -core.List buildUnnamed741() => ['foo', 'foo']; +core.List buildUnnamed746() => ['foo', 'foo']; -void checkUnnamed741(core.List o) { +void checkUnnamed746(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed742() => ['foo', 'foo']; +core.List buildUnnamed747() => ['foo', 'foo']; -void checkUnnamed742(core.List o) { +void checkUnnamed747(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed743() => { +core.Map buildUnnamed748() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed743(core.Map o) { +void checkUnnamed748(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed744() => ['foo', 'foo']; +core.List buildUnnamed749() => ['foo', 'foo']; -void checkUnnamed744(core.List o) { +void checkUnnamed749(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -32910,20 +33348,20 @@ api.ServiceAttachment buildServiceAttachment() { final o = api.ServiceAttachment(); buildCounterServiceAttachment++; if (buildCounterServiceAttachment < 3) { - o.connectedEndpoints = buildUnnamed739(); + o.connectedEndpoints = buildUnnamed744(); o.connectionPreference = 'foo'; - o.consumerAcceptLists = buildUnnamed740(); - o.consumerRejectLists = buildUnnamed741(); + o.consumerAcceptLists = buildUnnamed745(); + o.consumerRejectLists = buildUnnamed746(); o.creationTimestamp = 'foo'; o.description = 'foo'; - o.domainNames = buildUnnamed742(); + o.domainNames = buildUnnamed747(); o.enableProxyProtocol = true; o.fingerprint = 'foo'; o.id = 'foo'; o.kind = 'foo'; - o.metadata = buildUnnamed743(); + o.metadata = buildUnnamed748(); o.name = 'foo'; - o.natSubnets = buildUnnamed744(); + o.natSubnets = buildUnnamed749(); o.producerForwardingRule = 'foo'; o.propagatedConnectionLimit = 42; o.pscServiceAttachmentId = buildUint128(); @@ -32939,20 +33377,20 @@ api.ServiceAttachment buildServiceAttachment() { void checkServiceAttachment(api.ServiceAttachment o) { buildCounterServiceAttachment++; if (buildCounterServiceAttachment < 3) { - checkUnnamed739(o.connectedEndpoints!); + checkUnnamed744(o.connectedEndpoints!); unittest.expect(o.connectionPreference!, unittest.equals('foo')); - checkUnnamed740(o.consumerAcceptLists!); - checkUnnamed741(o.consumerRejectLists!); + checkUnnamed745(o.consumerAcceptLists!); + checkUnnamed746(o.consumerRejectLists!); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed742(o.domainNames!); + checkUnnamed747(o.domainNames!); unittest.expect(o.enableProxyProtocol!, unittest.isTrue); unittest.expect(o.fingerprint!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); - checkUnnamed743(o.metadata!); + checkUnnamed748(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed744(o.natSubnets!); + checkUnnamed749(o.natSubnets!); unittest.expect(o.producerForwardingRule!, unittest.equals('foo')); unittest.expect(o.propagatedConnectionLimit!, unittest.equals(42)); checkUint128(o.pscServiceAttachmentId!); @@ -32964,12 +33402,12 @@ void checkServiceAttachment(api.ServiceAttachment o) { buildCounterServiceAttachment--; } -core.Map buildUnnamed745() => { +core.Map buildUnnamed750() => { 'x': buildServiceAttachmentsScopedList(), 'y': buildServiceAttachmentsScopedList(), }; -void checkUnnamed745( +void checkUnnamed750( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -32977,9 +33415,9 @@ void checkUnnamed745( checkServiceAttachmentsScopedList(o['y']!); } -core.List buildUnnamed746() => ['foo', 'foo']; +core.List buildUnnamed751() => ['foo', 'foo']; -void checkUnnamed746(core.List o) { +void checkUnnamed751(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -33009,12 +33447,12 @@ void checkServiceAttachmentAggregatedListWarningData( buildCounterServiceAttachmentAggregatedListWarningData--; } -core.List buildUnnamed747() => [ +core.List buildUnnamed752() => [ buildServiceAttachmentAggregatedListWarningData(), buildServiceAttachmentAggregatedListWarningData(), ]; -void checkUnnamed747( +void checkUnnamed752( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -33029,7 +33467,7 @@ buildServiceAttachmentAggregatedListWarning() { buildCounterServiceAttachmentAggregatedListWarning++; if (buildCounterServiceAttachmentAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed747(); + o.data = buildUnnamed752(); o.message = 'foo'; } buildCounterServiceAttachmentAggregatedListWarning--; @@ -33042,7 +33480,7 @@ void checkServiceAttachmentAggregatedListWarning( buildCounterServiceAttachmentAggregatedListWarning++; if (buildCounterServiceAttachmentAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed747(o.data!); + checkUnnamed752(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterServiceAttachmentAggregatedListWarning--; @@ -33054,11 +33492,11 @@ api.ServiceAttachmentAggregatedList buildServiceAttachmentAggregatedList() { buildCounterServiceAttachmentAggregatedList++; if (buildCounterServiceAttachmentAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed745(); + o.items = buildUnnamed750(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed746(); + o.unreachables = buildUnnamed751(); o.warning = buildServiceAttachmentAggregatedListWarning(); } buildCounterServiceAttachmentAggregatedList--; @@ -33071,16 +33509,24 @@ void checkServiceAttachmentAggregatedList( buildCounterServiceAttachmentAggregatedList++; if (buildCounterServiceAttachmentAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed745(o.items!); + checkUnnamed750(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed746(o.unreachables!); + checkUnnamed751(o.unreachables!); checkServiceAttachmentAggregatedListWarning(o.warning!); } buildCounterServiceAttachmentAggregatedList--; } +core.List buildUnnamed753() => ['foo', 'foo']; + +void checkUnnamed753(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterServiceAttachmentConnectedEndpoint = 0; api.ServiceAttachmentConnectedEndpoint buildServiceAttachmentConnectedEndpoint() { @@ -33089,6 +33535,7 @@ buildServiceAttachmentConnectedEndpoint() { if (buildCounterServiceAttachmentConnectedEndpoint < 3) { o.consumerNetwork = 'foo'; o.endpoint = 'foo'; + o.natIps = buildUnnamed753(); o.propagatedConnectionCount = 42; o.pscConnectionId = 'foo'; o.status = 'foo'; @@ -33104,6 +33551,7 @@ void checkServiceAttachmentConnectedEndpoint( if (buildCounterServiceAttachmentConnectedEndpoint < 3) { unittest.expect(o.consumerNetwork!, unittest.equals('foo')); unittest.expect(o.endpoint!, unittest.equals('foo')); + checkUnnamed753(o.natIps!); unittest.expect(o.propagatedConnectionCount!, unittest.equals(42)); unittest.expect(o.pscConnectionId!, unittest.equals('foo')); unittest.expect(o.status!, unittest.equals('foo')); @@ -33137,12 +33585,12 @@ void checkServiceAttachmentConsumerProjectLimit( buildCounterServiceAttachmentConsumerProjectLimit--; } -core.List buildUnnamed748() => [ +core.List buildUnnamed754() => [ buildServiceAttachment(), buildServiceAttachment(), ]; -void checkUnnamed748(core.List o) { +void checkUnnamed754(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAttachment(o[0]); checkServiceAttachment(o[1]); @@ -33171,12 +33619,12 @@ void checkServiceAttachmentListWarningData( buildCounterServiceAttachmentListWarningData--; } -core.List buildUnnamed749() => [ +core.List buildUnnamed755() => [ buildServiceAttachmentListWarningData(), buildServiceAttachmentListWarningData(), ]; -void checkUnnamed749(core.List o) { +void checkUnnamed755(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAttachmentListWarningData(o[0]); checkServiceAttachmentListWarningData(o[1]); @@ -33188,7 +33636,7 @@ api.ServiceAttachmentListWarning buildServiceAttachmentListWarning() { buildCounterServiceAttachmentListWarning++; if (buildCounterServiceAttachmentListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed749(); + o.data = buildUnnamed755(); o.message = 'foo'; } buildCounterServiceAttachmentListWarning--; @@ -33199,7 +33647,7 @@ void checkServiceAttachmentListWarning(api.ServiceAttachmentListWarning o) { buildCounterServiceAttachmentListWarning++; if (buildCounterServiceAttachmentListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed749(o.data!); + checkUnnamed755(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterServiceAttachmentListWarning--; @@ -33211,7 +33659,7 @@ api.ServiceAttachmentList buildServiceAttachmentList() { buildCounterServiceAttachmentList++; if (buildCounterServiceAttachmentList < 3) { o.id = 'foo'; - o.items = buildUnnamed748(); + o.items = buildUnnamed754(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -33225,7 +33673,7 @@ void checkServiceAttachmentList(api.ServiceAttachmentList o) { buildCounterServiceAttachmentList++; if (buildCounterServiceAttachmentList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed748(o.items!); + checkUnnamed754(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -33234,12 +33682,12 @@ void checkServiceAttachmentList(api.ServiceAttachmentList o) { buildCounterServiceAttachmentList--; } -core.List buildUnnamed750() => [ +core.List buildUnnamed756() => [ buildServiceAttachment(), buildServiceAttachment(), ]; -void checkUnnamed750(core.List o) { +void checkUnnamed756(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAttachment(o[0]); checkServiceAttachment(o[1]); @@ -33269,12 +33717,12 @@ void checkServiceAttachmentsScopedListWarningData( buildCounterServiceAttachmentsScopedListWarningData--; } -core.List buildUnnamed751() => [ +core.List buildUnnamed757() => [ buildServiceAttachmentsScopedListWarningData(), buildServiceAttachmentsScopedListWarningData(), ]; -void checkUnnamed751(core.List o) { +void checkUnnamed757(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAttachmentsScopedListWarningData(o[0]); checkServiceAttachmentsScopedListWarningData(o[1]); @@ -33287,7 +33735,7 @@ buildServiceAttachmentsScopedListWarning() { buildCounterServiceAttachmentsScopedListWarning++; if (buildCounterServiceAttachmentsScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed751(); + o.data = buildUnnamed757(); o.message = 'foo'; } buildCounterServiceAttachmentsScopedListWarning--; @@ -33300,7 +33748,7 @@ void checkServiceAttachmentsScopedListWarning( buildCounterServiceAttachmentsScopedListWarning++; if (buildCounterServiceAttachmentsScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed751(o.data!); + checkUnnamed757(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterServiceAttachmentsScopedListWarning--; @@ -33311,7 +33759,7 @@ api.ServiceAttachmentsScopedList buildServiceAttachmentsScopedList() { final o = api.ServiceAttachmentsScopedList(); buildCounterServiceAttachmentsScopedList++; if (buildCounterServiceAttachmentsScopedList < 3) { - o.serviceAttachments = buildUnnamed750(); + o.serviceAttachments = buildUnnamed756(); o.warning = buildServiceAttachmentsScopedListWarning(); } buildCounterServiceAttachmentsScopedList--; @@ -33321,7 +33769,7 @@ api.ServiceAttachmentsScopedList buildServiceAttachmentsScopedList() { void checkServiceAttachmentsScopedList(api.ServiceAttachmentsScopedList o) { buildCounterServiceAttachmentsScopedList++; if (buildCounterServiceAttachmentsScopedList < 3) { - checkUnnamed750(o.serviceAttachments!); + checkUnnamed756(o.serviceAttachments!); checkServiceAttachmentsScopedListWarning(o.warning!); } buildCounterServiceAttachmentsScopedList--; @@ -33331,14 +33779,14 @@ core.Map< core.String, api.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo > -buildUnnamed752() => { +buildUnnamed758() => { 'x': buildSetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo(), 'y': buildSetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo(), }; -void checkUnnamed752( +void checkUnnamed758( core.Map< core.String, api.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo @@ -33361,7 +33809,7 @@ buildSetCommonInstanceMetadataOperationMetadata() { buildCounterSetCommonInstanceMetadataOperationMetadata++; if (buildCounterSetCommonInstanceMetadataOperationMetadata < 3) { o.clientOperationId = 'foo'; - o.perLocationOperations = buildUnnamed752(); + o.perLocationOperations = buildUnnamed758(); } buildCounterSetCommonInstanceMetadataOperationMetadata--; return o; @@ -33373,7 +33821,7 @@ void checkSetCommonInstanceMetadataOperationMetadata( buildCounterSetCommonInstanceMetadataOperationMetadata++; if (buildCounterSetCommonInstanceMetadataOperationMetadata < 3) { unittest.expect(o.clientOperationId!, unittest.equals('foo')); - checkUnnamed752(o.perLocationOperations!); + checkUnnamed758(o.perLocationOperations!); } buildCounterSetCommonInstanceMetadataOperationMetadata--; } @@ -33407,12 +33855,12 @@ void checkSetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo( buildCounterSetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo--; } -core.Map buildUnnamed753() => { +core.Map buildUnnamed759() => { 'x': buildShareSettingsProjectConfig(), 'y': buildShareSettingsProjectConfig(), }; -void checkUnnamed753(core.Map o) { +void checkUnnamed759(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkShareSettingsProjectConfig(o['x']!); checkShareSettingsProjectConfig(o['y']!); @@ -33423,7 +33871,7 @@ api.ShareSettings buildShareSettings() { final o = api.ShareSettings(); buildCounterShareSettings++; if (buildCounterShareSettings < 3) { - o.projectMap = buildUnnamed753(); + o.projectMap = buildUnnamed759(); o.shareType = 'foo'; } buildCounterShareSettings--; @@ -33433,7 +33881,7 @@ api.ShareSettings buildShareSettings() { void checkShareSettings(api.ShareSettings o) { buildCounterShareSettings++; if (buildCounterShareSettings < 3) { - checkUnnamed753(o.projectMap!); + checkUnnamed759(o.projectMap!); unittest.expect(o.shareType!, unittest.equals('foo')); } buildCounterShareSettings--; @@ -33567,47 +34015,47 @@ void checkSignedUrlKey(api.SignedUrlKey o) { buildCounterSignedUrlKey--; } -core.List buildUnnamed754() => [ +core.List buildUnnamed760() => [ buildGuestOsFeature(), buildGuestOsFeature(), ]; -void checkUnnamed754(core.List o) { +void checkUnnamed760(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGuestOsFeature(o[0]); checkGuestOsFeature(o[1]); } -core.Map buildUnnamed755() => { +core.Map buildUnnamed761() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed755(core.Map o) { +void checkUnnamed761(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed756() => ['foo', 'foo']; +core.List buildUnnamed762() => ['foo', 'foo']; -void checkUnnamed756(core.List o) { +void checkUnnamed762(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed757() => ['foo', 'foo']; +core.List buildUnnamed763() => ['foo', 'foo']; -void checkUnnamed757(core.List o) { +void checkUnnamed763(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed758() => ['foo', 'foo']; +core.List buildUnnamed764() => ['foo', 'foo']; -void checkUnnamed758(core.List o) { +void checkUnnamed764(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -33628,13 +34076,13 @@ api.Snapshot buildSnapshot() { o.downloadBytes = 'foo'; o.enableConfidentialCompute = true; o.guestFlush = true; - o.guestOsFeatures = buildUnnamed754(); + o.guestOsFeatures = buildUnnamed760(); o.id = 'foo'; o.kind = 'foo'; o.labelFingerprint = 'foo'; - o.labels = buildUnnamed755(); - o.licenseCodes = buildUnnamed756(); - o.licenses = buildUnnamed757(); + o.labels = buildUnnamed761(); + o.licenseCodes = buildUnnamed762(); + o.licenses = buildUnnamed763(); o.locationHint = 'foo'; o.name = 'foo'; o.satisfiesPzi = true; @@ -33654,7 +34102,7 @@ api.Snapshot buildSnapshot() { o.status = 'foo'; o.storageBytes = 'foo'; o.storageBytesStatus = 'foo'; - o.storageLocations = buildUnnamed758(); + o.storageLocations = buildUnnamed764(); } buildCounterSnapshot--; return o; @@ -33673,13 +34121,13 @@ void checkSnapshot(api.Snapshot o) { unittest.expect(o.downloadBytes!, unittest.equals('foo')); unittest.expect(o.enableConfidentialCompute!, unittest.isTrue); unittest.expect(o.guestFlush!, unittest.isTrue); - checkUnnamed754(o.guestOsFeatures!); + checkUnnamed760(o.guestOsFeatures!); unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed755(o.labels!); - checkUnnamed756(o.licenseCodes!); - checkUnnamed757(o.licenses!); + checkUnnamed761(o.labels!); + checkUnnamed762(o.licenseCodes!); + checkUnnamed763(o.licenses!); unittest.expect(o.locationHint!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.satisfiesPzi!, unittest.isTrue); @@ -33699,14 +34147,14 @@ void checkSnapshot(api.Snapshot o) { unittest.expect(o.status!, unittest.equals('foo')); unittest.expect(o.storageBytes!, unittest.equals('foo')); unittest.expect(o.storageBytesStatus!, unittest.equals('foo')); - checkUnnamed758(o.storageLocations!); + checkUnnamed764(o.storageLocations!); } buildCounterSnapshot--; } -core.List buildUnnamed759() => [buildSnapshot(), buildSnapshot()]; +core.List buildUnnamed765() => [buildSnapshot(), buildSnapshot()]; -void checkUnnamed759(core.List o) { +void checkUnnamed765(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshot(o[0]); checkSnapshot(o[1]); @@ -33733,12 +34181,12 @@ void checkSnapshotListWarningData(api.SnapshotListWarningData o) { buildCounterSnapshotListWarningData--; } -core.List buildUnnamed760() => [ +core.List buildUnnamed766() => [ buildSnapshotListWarningData(), buildSnapshotListWarningData(), ]; -void checkUnnamed760(core.List o) { +void checkUnnamed766(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshotListWarningData(o[0]); checkSnapshotListWarningData(o[1]); @@ -33750,7 +34198,7 @@ api.SnapshotListWarning buildSnapshotListWarning() { buildCounterSnapshotListWarning++; if (buildCounterSnapshotListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed760(); + o.data = buildUnnamed766(); o.message = 'foo'; } buildCounterSnapshotListWarning--; @@ -33761,7 +34209,7 @@ void checkSnapshotListWarning(api.SnapshotListWarning o) { buildCounterSnapshotListWarning++; if (buildCounterSnapshotListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed760(o.data!); + checkUnnamed766(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterSnapshotListWarning--; @@ -33773,7 +34221,7 @@ api.SnapshotList buildSnapshotList() { buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { o.id = 'foo'; - o.items = buildUnnamed759(); + o.items = buildUnnamed765(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -33787,7 +34235,7 @@ void checkSnapshotList(api.SnapshotList o) { buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed759(o.items!); + checkUnnamed765(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -33819,12 +34267,12 @@ core.Map< core.String, api.SnapshotSettingsStorageLocationSettingsStorageLocationPreference > -buildUnnamed761() => { +buildUnnamed767() => { 'x': buildSnapshotSettingsStorageLocationSettingsStorageLocationPreference(), 'y': buildSnapshotSettingsStorageLocationSettingsStorageLocationPreference(), }; -void checkUnnamed761( +void checkUnnamed767( core.Map< core.String, api.SnapshotSettingsStorageLocationSettingsStorageLocationPreference @@ -33846,7 +34294,7 @@ buildSnapshotSettingsStorageLocationSettings() { final o = api.SnapshotSettingsStorageLocationSettings(); buildCounterSnapshotSettingsStorageLocationSettings++; if (buildCounterSnapshotSettingsStorageLocationSettings < 3) { - o.locations = buildUnnamed761(); + o.locations = buildUnnamed767(); o.policy = 'foo'; } buildCounterSnapshotSettingsStorageLocationSettings--; @@ -33858,7 +34306,7 @@ void checkSnapshotSettingsStorageLocationSettings( ) { buildCounterSnapshotSettingsStorageLocationSettings++; if (buildCounterSnapshotSettingsStorageLocationSettings < 3) { - checkUnnamed761(o.locations!); + checkUnnamed767(o.locations!); unittest.expect(o.policy!, unittest.equals('foo')); } buildCounterSnapshotSettingsStorageLocationSettings--; @@ -33912,12 +34360,12 @@ void checkSourceDiskEncryptionKey(api.SourceDiskEncryptionKey o) { buildCounterSourceDiskEncryptionKey--; } -core.List buildUnnamed762() => [ +core.List buildUnnamed768() => [ buildDiskInstantiationConfig(), buildDiskInstantiationConfig(), ]; -void checkUnnamed762(core.List o) { +void checkUnnamed768(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDiskInstantiationConfig(o[0]); checkDiskInstantiationConfig(o[1]); @@ -33928,7 +34376,7 @@ api.SourceInstanceParams buildSourceInstanceParams() { final o = api.SourceInstanceParams(); buildCounterSourceInstanceParams++; if (buildCounterSourceInstanceParams < 3) { - o.diskConfigs = buildUnnamed762(); + o.diskConfigs = buildUnnamed768(); } buildCounterSourceInstanceParams--; return o; @@ -33937,61 +34385,61 @@ api.SourceInstanceParams buildSourceInstanceParams() { void checkSourceInstanceParams(api.SourceInstanceParams o) { buildCounterSourceInstanceParams++; if (buildCounterSourceInstanceParams < 3) { - checkUnnamed762(o.diskConfigs!); + checkUnnamed768(o.diskConfigs!); } buildCounterSourceInstanceParams--; } -core.List buildUnnamed763() => [ +core.List buildUnnamed769() => [ buildSavedAttachedDisk(), buildSavedAttachedDisk(), ]; -void checkUnnamed763(core.List o) { +void checkUnnamed769(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSavedAttachedDisk(o[0]); checkSavedAttachedDisk(o[1]); } -core.List buildUnnamed764() => [ +core.List buildUnnamed770() => [ buildAcceleratorConfig(), buildAcceleratorConfig(), ]; -void checkUnnamed764(core.List o) { +void checkUnnamed770(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -core.Map buildUnnamed765() => { +core.Map buildUnnamed771() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed765(core.Map o) { +void checkUnnamed771(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed766() => [ +core.List buildUnnamed772() => [ buildNetworkInterface(), buildNetworkInterface(), ]; -void checkUnnamed766(core.List o) { +void checkUnnamed772(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -core.List buildUnnamed767() => [ +core.List buildUnnamed773() => [ buildServiceAccount(), buildServiceAccount(), ]; -void checkUnnamed767(core.List o) { +void checkUnnamed773(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -34005,16 +34453,16 @@ api.SourceInstanceProperties buildSourceInstanceProperties() { o.canIpForward = true; o.deletionProtection = true; o.description = 'foo'; - o.disks = buildUnnamed763(); - o.guestAccelerators = buildUnnamed764(); + o.disks = buildUnnamed769(); + o.guestAccelerators = buildUnnamed770(); o.keyRevocationActionType = 'foo'; - o.labels = buildUnnamed765(); + o.labels = buildUnnamed771(); o.machineType = 'foo'; o.metadata = buildMetadata(); o.minCpuPlatform = 'foo'; - o.networkInterfaces = buildUnnamed766(); + o.networkInterfaces = buildUnnamed772(); o.scheduling = buildScheduling(); - o.serviceAccounts = buildUnnamed767(); + o.serviceAccounts = buildUnnamed773(); o.tags = buildTags(); } buildCounterSourceInstanceProperties--; @@ -34027,24 +34475,24 @@ void checkSourceInstanceProperties(api.SourceInstanceProperties o) { unittest.expect(o.canIpForward!, unittest.isTrue); unittest.expect(o.deletionProtection!, unittest.isTrue); unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed763(o.disks!); - checkUnnamed764(o.guestAccelerators!); + checkUnnamed769(o.disks!); + checkUnnamed770(o.guestAccelerators!); unittest.expect(o.keyRevocationActionType!, unittest.equals('foo')); - checkUnnamed765(o.labels!); + checkUnnamed771(o.labels!); unittest.expect(o.machineType!, unittest.equals('foo')); checkMetadata(o.metadata!); unittest.expect(o.minCpuPlatform!, unittest.equals('foo')); - checkUnnamed766(o.networkInterfaces!); + checkUnnamed772(o.networkInterfaces!); checkScheduling(o.scheduling!); - checkUnnamed767(o.serviceAccounts!); + checkUnnamed773(o.serviceAccounts!); checkTags(o.tags!); } buildCounterSourceInstanceProperties--; } -core.List buildUnnamed768() => ['foo', 'foo']; +core.List buildUnnamed774() => ['foo', 'foo']; -void checkUnnamed768(core.List o) { +void checkUnnamed774(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -34067,7 +34515,7 @@ api.SslCertificate buildSslCertificate() { o.region = 'foo'; o.selfLink = 'foo'; o.selfManaged = buildSslCertificateSelfManagedSslCertificate(); - o.subjectAlternativeNames = buildUnnamed768(); + o.subjectAlternativeNames = buildUnnamed774(); o.type = 'foo'; } buildCounterSslCertificate--; @@ -34089,26 +34537,26 @@ void checkSslCertificate(api.SslCertificate o) { unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); checkSslCertificateSelfManagedSslCertificate(o.selfManaged!); - checkUnnamed768(o.subjectAlternativeNames!); + checkUnnamed774(o.subjectAlternativeNames!); unittest.expect(o.type!, unittest.equals('foo')); } buildCounterSslCertificate--; } -core.Map buildUnnamed769() => { +core.Map buildUnnamed775() => { 'x': buildSslCertificatesScopedList(), 'y': buildSslCertificatesScopedList(), }; -void checkUnnamed769(core.Map o) { +void checkUnnamed775(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificatesScopedList(o['x']!); checkSslCertificatesScopedList(o['y']!); } -core.List buildUnnamed770() => ['foo', 'foo']; +core.List buildUnnamed776() => ['foo', 'foo']; -void checkUnnamed770(core.List o) { +void checkUnnamed776(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -34138,12 +34586,12 @@ void checkSslCertificateAggregatedListWarningData( buildCounterSslCertificateAggregatedListWarningData--; } -core.List buildUnnamed771() => [ +core.List buildUnnamed777() => [ buildSslCertificateAggregatedListWarningData(), buildSslCertificateAggregatedListWarningData(), ]; -void checkUnnamed771(core.List o) { +void checkUnnamed777(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificateAggregatedListWarningData(o[0]); checkSslCertificateAggregatedListWarningData(o[1]); @@ -34156,7 +34604,7 @@ buildSslCertificateAggregatedListWarning() { buildCounterSslCertificateAggregatedListWarning++; if (buildCounterSslCertificateAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed771(); + o.data = buildUnnamed777(); o.message = 'foo'; } buildCounterSslCertificateAggregatedListWarning--; @@ -34169,7 +34617,7 @@ void checkSslCertificateAggregatedListWarning( buildCounterSslCertificateAggregatedListWarning++; if (buildCounterSslCertificateAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed771(o.data!); + checkUnnamed777(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterSslCertificateAggregatedListWarning--; @@ -34181,11 +34629,11 @@ api.SslCertificateAggregatedList buildSslCertificateAggregatedList() { buildCounterSslCertificateAggregatedList++; if (buildCounterSslCertificateAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed769(); + o.items = buildUnnamed775(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed770(); + o.unreachables = buildUnnamed776(); o.warning = buildSslCertificateAggregatedListWarning(); } buildCounterSslCertificateAggregatedList--; @@ -34196,22 +34644,22 @@ void checkSslCertificateAggregatedList(api.SslCertificateAggregatedList o) { buildCounterSslCertificateAggregatedList++; if (buildCounterSslCertificateAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed769(o.items!); + checkUnnamed775(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed770(o.unreachables!); + checkUnnamed776(o.unreachables!); checkSslCertificateAggregatedListWarning(o.warning!); } buildCounterSslCertificateAggregatedList--; } -core.List buildUnnamed772() => [ +core.List buildUnnamed778() => [ buildSslCertificate(), buildSslCertificate(), ]; -void checkUnnamed772(core.List o) { +void checkUnnamed778(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificate(o[0]); checkSslCertificate(o[1]); @@ -34238,12 +34686,12 @@ void checkSslCertificateListWarningData(api.SslCertificateListWarningData o) { buildCounterSslCertificateListWarningData--; } -core.List buildUnnamed773() => [ +core.List buildUnnamed779() => [ buildSslCertificateListWarningData(), buildSslCertificateListWarningData(), ]; -void checkUnnamed773(core.List o) { +void checkUnnamed779(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificateListWarningData(o[0]); checkSslCertificateListWarningData(o[1]); @@ -34255,7 +34703,7 @@ api.SslCertificateListWarning buildSslCertificateListWarning() { buildCounterSslCertificateListWarning++; if (buildCounterSslCertificateListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed773(); + o.data = buildUnnamed779(); o.message = 'foo'; } buildCounterSslCertificateListWarning--; @@ -34266,7 +34714,7 @@ void checkSslCertificateListWarning(api.SslCertificateListWarning o) { buildCounterSslCertificateListWarning++; if (buildCounterSslCertificateListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed773(o.data!); + checkUnnamed779(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterSslCertificateListWarning--; @@ -34278,7 +34726,7 @@ api.SslCertificateList buildSslCertificateList() { buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { o.id = 'foo'; - o.items = buildUnnamed772(); + o.items = buildUnnamed778(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -34292,7 +34740,7 @@ void checkSslCertificateList(api.SslCertificateList o) { buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed772(o.items!); + checkUnnamed778(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -34301,20 +34749,20 @@ void checkSslCertificateList(api.SslCertificateList o) { buildCounterSslCertificateList--; } -core.Map buildUnnamed774() => { +core.Map buildUnnamed780() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed774(core.Map o) { +void checkUnnamed780(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed775() => ['foo', 'foo']; +core.List buildUnnamed781() => ['foo', 'foo']; -void checkUnnamed775(core.List o) { +void checkUnnamed781(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -34326,8 +34774,8 @@ buildSslCertificateManagedSslCertificate() { final o = api.SslCertificateManagedSslCertificate(); buildCounterSslCertificateManagedSslCertificate++; if (buildCounterSslCertificateManagedSslCertificate < 3) { - o.domainStatus = buildUnnamed774(); - o.domains = buildUnnamed775(); + o.domainStatus = buildUnnamed780(); + o.domains = buildUnnamed781(); o.status = 'foo'; } buildCounterSslCertificateManagedSslCertificate--; @@ -34339,8 +34787,8 @@ void checkSslCertificateManagedSslCertificate( ) { buildCounterSslCertificateManagedSslCertificate++; if (buildCounterSslCertificateManagedSslCertificate < 3) { - checkUnnamed774(o.domainStatus!); - checkUnnamed775(o.domains!); + checkUnnamed780(o.domainStatus!); + checkUnnamed781(o.domains!); unittest.expect(o.status!, unittest.equals('foo')); } buildCounterSslCertificateManagedSslCertificate--; @@ -34370,12 +34818,12 @@ void checkSslCertificateSelfManagedSslCertificate( buildCounterSslCertificateSelfManagedSslCertificate--; } -core.List buildUnnamed776() => [ +core.List buildUnnamed782() => [ buildSslCertificate(), buildSslCertificate(), ]; -void checkUnnamed776(core.List o) { +void checkUnnamed782(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificate(o[0]); checkSslCertificate(o[1]); @@ -34405,12 +34853,12 @@ void checkSslCertificatesScopedListWarningData( buildCounterSslCertificatesScopedListWarningData--; } -core.List buildUnnamed777() => [ +core.List buildUnnamed783() => [ buildSslCertificatesScopedListWarningData(), buildSslCertificatesScopedListWarningData(), ]; -void checkUnnamed777(core.List o) { +void checkUnnamed783(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificatesScopedListWarningData(o[0]); checkSslCertificatesScopedListWarningData(o[1]); @@ -34422,7 +34870,7 @@ api.SslCertificatesScopedListWarning buildSslCertificatesScopedListWarning() { buildCounterSslCertificatesScopedListWarning++; if (buildCounterSslCertificatesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed777(); + o.data = buildUnnamed783(); o.message = 'foo'; } buildCounterSslCertificatesScopedListWarning--; @@ -34435,7 +34883,7 @@ void checkSslCertificatesScopedListWarning( buildCounterSslCertificatesScopedListWarning++; if (buildCounterSslCertificatesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed777(o.data!); + checkUnnamed783(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterSslCertificatesScopedListWarning--; @@ -34446,7 +34894,7 @@ api.SslCertificatesScopedList buildSslCertificatesScopedList() { final o = api.SslCertificatesScopedList(); buildCounterSslCertificatesScopedList++; if (buildCounterSslCertificatesScopedList < 3) { - o.sslCertificates = buildUnnamed776(); + o.sslCertificates = buildUnnamed782(); o.warning = buildSslCertificatesScopedListWarning(); } buildCounterSslCertificatesScopedList--; @@ -34456,26 +34904,26 @@ api.SslCertificatesScopedList buildSslCertificatesScopedList() { void checkSslCertificatesScopedList(api.SslCertificatesScopedList o) { buildCounterSslCertificatesScopedList++; if (buildCounterSslCertificatesScopedList < 3) { - checkUnnamed776(o.sslCertificates!); + checkUnnamed782(o.sslCertificates!); checkSslCertificatesScopedListWarning(o.warning!); } buildCounterSslCertificatesScopedList--; } -core.Map buildUnnamed778() => { +core.Map buildUnnamed784() => { 'x': buildSslPoliciesScopedList(), 'y': buildSslPoliciesScopedList(), }; -void checkUnnamed778(core.Map o) { +void checkUnnamed784(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkSslPoliciesScopedList(o['x']!); checkSslPoliciesScopedList(o['y']!); } -core.List buildUnnamed779() => ['foo', 'foo']; +core.List buildUnnamed785() => ['foo', 'foo']; -void checkUnnamed779(core.List o) { +void checkUnnamed785(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -34505,12 +34953,12 @@ void checkSslPoliciesAggregatedListWarningData( buildCounterSslPoliciesAggregatedListWarningData--; } -core.List buildUnnamed780() => [ +core.List buildUnnamed786() => [ buildSslPoliciesAggregatedListWarningData(), buildSslPoliciesAggregatedListWarningData(), ]; -void checkUnnamed780(core.List o) { +void checkUnnamed786(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslPoliciesAggregatedListWarningData(o[0]); checkSslPoliciesAggregatedListWarningData(o[1]); @@ -34522,7 +34970,7 @@ api.SslPoliciesAggregatedListWarning buildSslPoliciesAggregatedListWarning() { buildCounterSslPoliciesAggregatedListWarning++; if (buildCounterSslPoliciesAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed780(); + o.data = buildUnnamed786(); o.message = 'foo'; } buildCounterSslPoliciesAggregatedListWarning--; @@ -34535,7 +34983,7 @@ void checkSslPoliciesAggregatedListWarning( buildCounterSslPoliciesAggregatedListWarning++; if (buildCounterSslPoliciesAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed780(o.data!); + checkUnnamed786(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterSslPoliciesAggregatedListWarning--; @@ -34548,11 +34996,11 @@ api.SslPoliciesAggregatedList buildSslPoliciesAggregatedList() { if (buildCounterSslPoliciesAggregatedList < 3) { o.etag = 'foo'; o.id = 'foo'; - o.items = buildUnnamed778(); + o.items = buildUnnamed784(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed779(); + o.unreachables = buildUnnamed785(); o.warning = buildSslPoliciesAggregatedListWarning(); } buildCounterSslPoliciesAggregatedList--; @@ -34564,22 +35012,22 @@ void checkSslPoliciesAggregatedList(api.SslPoliciesAggregatedList o) { if (buildCounterSslPoliciesAggregatedList < 3) { unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed778(o.items!); + checkUnnamed784(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed779(o.unreachables!); + checkUnnamed785(o.unreachables!); checkSslPoliciesAggregatedListWarning(o.warning!); } buildCounterSslPoliciesAggregatedList--; } -core.List buildUnnamed781() => [ +core.List buildUnnamed787() => [ buildSslPolicy(), buildSslPolicy(), ]; -void checkUnnamed781(core.List o) { +void checkUnnamed787(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslPolicy(o[0]); checkSslPolicy(o[1]); @@ -34606,12 +35054,12 @@ void checkSslPoliciesListWarningData(api.SslPoliciesListWarningData o) { buildCounterSslPoliciesListWarningData--; } -core.List buildUnnamed782() => [ +core.List buildUnnamed788() => [ buildSslPoliciesListWarningData(), buildSslPoliciesListWarningData(), ]; -void checkUnnamed782(core.List o) { +void checkUnnamed788(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslPoliciesListWarningData(o[0]); checkSslPoliciesListWarningData(o[1]); @@ -34623,7 +35071,7 @@ api.SslPoliciesListWarning buildSslPoliciesListWarning() { buildCounterSslPoliciesListWarning++; if (buildCounterSslPoliciesListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed782(); + o.data = buildUnnamed788(); o.message = 'foo'; } buildCounterSslPoliciesListWarning--; @@ -34634,7 +35082,7 @@ void checkSslPoliciesListWarning(api.SslPoliciesListWarning o) { buildCounterSslPoliciesListWarning++; if (buildCounterSslPoliciesListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed782(o.data!); + checkUnnamed788(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterSslPoliciesListWarning--; @@ -34646,7 +35094,7 @@ api.SslPoliciesList buildSslPoliciesList() { buildCounterSslPoliciesList++; if (buildCounterSslPoliciesList < 3) { o.id = 'foo'; - o.items = buildUnnamed781(); + o.items = buildUnnamed787(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -34660,7 +35108,7 @@ void checkSslPoliciesList(api.SslPoliciesList o) { buildCounterSslPoliciesList++; if (buildCounterSslPoliciesList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed781(o.items!); + checkUnnamed787(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -34669,9 +35117,9 @@ void checkSslPoliciesList(api.SslPoliciesList o) { buildCounterSslPoliciesList--; } -core.List buildUnnamed783() => ['foo', 'foo']; +core.List buildUnnamed789() => ['foo', 'foo']; -void checkUnnamed783(core.List o) { +void checkUnnamed789(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -34683,7 +35131,7 @@ buildSslPoliciesListAvailableFeaturesResponse() { final o = api.SslPoliciesListAvailableFeaturesResponse(); buildCounterSslPoliciesListAvailableFeaturesResponse++; if (buildCounterSslPoliciesListAvailableFeaturesResponse < 3) { - o.features = buildUnnamed783(); + o.features = buildUnnamed789(); } buildCounterSslPoliciesListAvailableFeaturesResponse--; return o; @@ -34694,17 +35142,17 @@ void checkSslPoliciesListAvailableFeaturesResponse( ) { buildCounterSslPoliciesListAvailableFeaturesResponse++; if (buildCounterSslPoliciesListAvailableFeaturesResponse < 3) { - checkUnnamed783(o.features!); + checkUnnamed789(o.features!); } buildCounterSslPoliciesListAvailableFeaturesResponse--; } -core.List buildUnnamed784() => [ +core.List buildUnnamed790() => [ buildSslPolicy(), buildSslPolicy(), ]; -void checkUnnamed784(core.List o) { +void checkUnnamed790(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslPolicy(o[0]); checkSslPolicy(o[1]); @@ -34733,12 +35181,12 @@ void checkSslPoliciesScopedListWarningData( buildCounterSslPoliciesScopedListWarningData--; } -core.List buildUnnamed785() => [ +core.List buildUnnamed791() => [ buildSslPoliciesScopedListWarningData(), buildSslPoliciesScopedListWarningData(), ]; -void checkUnnamed785(core.List o) { +void checkUnnamed791(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslPoliciesScopedListWarningData(o[0]); checkSslPoliciesScopedListWarningData(o[1]); @@ -34750,7 +35198,7 @@ api.SslPoliciesScopedListWarning buildSslPoliciesScopedListWarning() { buildCounterSslPoliciesScopedListWarning++; if (buildCounterSslPoliciesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed785(); + o.data = buildUnnamed791(); o.message = 'foo'; } buildCounterSslPoliciesScopedListWarning--; @@ -34761,7 +35209,7 @@ void checkSslPoliciesScopedListWarning(api.SslPoliciesScopedListWarning o) { buildCounterSslPoliciesScopedListWarning++; if (buildCounterSslPoliciesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed785(o.data!); + checkUnnamed791(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterSslPoliciesScopedListWarning--; @@ -34772,7 +35220,7 @@ api.SslPoliciesScopedList buildSslPoliciesScopedList() { final o = api.SslPoliciesScopedList(); buildCounterSslPoliciesScopedList++; if (buildCounterSslPoliciesScopedList < 3) { - o.sslPolicies = buildUnnamed784(); + o.sslPolicies = buildUnnamed790(); o.warning = buildSslPoliciesScopedListWarning(); } buildCounterSslPoliciesScopedList--; @@ -34782,23 +35230,23 @@ api.SslPoliciesScopedList buildSslPoliciesScopedList() { void checkSslPoliciesScopedList(api.SslPoliciesScopedList o) { buildCounterSslPoliciesScopedList++; if (buildCounterSslPoliciesScopedList < 3) { - checkUnnamed784(o.sslPolicies!); + checkUnnamed790(o.sslPolicies!); checkSslPoliciesScopedListWarning(o.warning!); } buildCounterSslPoliciesScopedList--; } -core.List buildUnnamed786() => ['foo', 'foo']; +core.List buildUnnamed792() => ['foo', 'foo']; -void checkUnnamed786(core.List o) { +void checkUnnamed792(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed787() => ['foo', 'foo']; +core.List buildUnnamed793() => ['foo', 'foo']; -void checkUnnamed787(core.List o) { +void checkUnnamed793(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -34825,12 +35273,12 @@ void checkSslPolicyWarningsData(api.SslPolicyWarningsData o) { buildCounterSslPolicyWarningsData--; } -core.List buildUnnamed788() => [ +core.List buildUnnamed794() => [ buildSslPolicyWarningsData(), buildSslPolicyWarningsData(), ]; -void checkUnnamed788(core.List o) { +void checkUnnamed794(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslPolicyWarningsData(o[0]); checkSslPolicyWarningsData(o[1]); @@ -34842,7 +35290,7 @@ api.SslPolicyWarnings buildSslPolicyWarnings() { buildCounterSslPolicyWarnings++; if (buildCounterSslPolicyWarnings < 3) { o.code = 'foo'; - o.data = buildUnnamed788(); + o.data = buildUnnamed794(); o.message = 'foo'; } buildCounterSslPolicyWarnings--; @@ -34853,18 +35301,18 @@ void checkSslPolicyWarnings(api.SslPolicyWarnings o) { buildCounterSslPolicyWarnings++; if (buildCounterSslPolicyWarnings < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed788(o.data!); + checkUnnamed794(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterSslPolicyWarnings--; } -core.List buildUnnamed789() => [ +core.List buildUnnamed795() => [ buildSslPolicyWarnings(), buildSslPolicyWarnings(), ]; -void checkUnnamed789(core.List o) { +void checkUnnamed795(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslPolicyWarnings(o[0]); checkSslPolicyWarnings(o[1]); @@ -34876,9 +35324,9 @@ api.SslPolicy buildSslPolicy() { buildCounterSslPolicy++; if (buildCounterSslPolicy < 3) { o.creationTimestamp = 'foo'; - o.customFeatures = buildUnnamed786(); + o.customFeatures = buildUnnamed792(); o.description = 'foo'; - o.enabledFeatures = buildUnnamed787(); + o.enabledFeatures = buildUnnamed793(); o.fingerprint = 'foo'; o.id = 'foo'; o.kind = 'foo'; @@ -34887,7 +35335,7 @@ api.SslPolicy buildSslPolicy() { o.profile = 'foo'; o.region = 'foo'; o.selfLink = 'foo'; - o.warnings = buildUnnamed789(); + o.warnings = buildUnnamed795(); } buildCounterSslPolicy--; return o; @@ -34897,9 +35345,9 @@ void checkSslPolicy(api.SslPolicy o) { buildCounterSslPolicy++; if (buildCounterSslPolicy < 3) { unittest.expect(o.creationTimestamp!, unittest.equals('foo')); - checkUnnamed786(o.customFeatures!); + checkUnnamed792(o.customFeatures!); unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed787(o.enabledFeatures!); + checkUnnamed793(o.enabledFeatures!); unittest.expect(o.fingerprint!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); @@ -34908,7 +35356,7 @@ void checkSslPolicy(api.SslPolicy o) { unittest.expect(o.profile!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed789(o.warnings!); + checkUnnamed795(o.warnings!); } buildCounterSslPolicy--; } @@ -34952,12 +35400,12 @@ void checkStatefulPolicy(api.StatefulPolicy o) { } core.Map -buildUnnamed790() => { +buildUnnamed796() => { 'x': buildStatefulPolicyPreservedStateDiskDevice(), 'y': buildStatefulPolicyPreservedStateDiskDevice(), }; -void checkUnnamed790( +void checkUnnamed796( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -34966,12 +35414,12 @@ void checkUnnamed790( } core.Map -buildUnnamed791() => { +buildUnnamed797() => { 'x': buildStatefulPolicyPreservedStateNetworkIp(), 'y': buildStatefulPolicyPreservedStateNetworkIp(), }; -void checkUnnamed791( +void checkUnnamed797( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -34980,12 +35428,12 @@ void checkUnnamed791( } core.Map -buildUnnamed792() => { +buildUnnamed798() => { 'x': buildStatefulPolicyPreservedStateNetworkIp(), 'y': buildStatefulPolicyPreservedStateNetworkIp(), }; -void checkUnnamed792( +void checkUnnamed798( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -34998,9 +35446,9 @@ api.StatefulPolicyPreservedState buildStatefulPolicyPreservedState() { final o = api.StatefulPolicyPreservedState(); buildCounterStatefulPolicyPreservedState++; if (buildCounterStatefulPolicyPreservedState < 3) { - o.disks = buildUnnamed790(); - o.externalIPs = buildUnnamed791(); - o.internalIPs = buildUnnamed792(); + o.disks = buildUnnamed796(); + o.externalIPs = buildUnnamed797(); + o.internalIPs = buildUnnamed798(); } buildCounterStatefulPolicyPreservedState--; return o; @@ -35009,9 +35457,9 @@ api.StatefulPolicyPreservedState buildStatefulPolicyPreservedState() { void checkStatefulPolicyPreservedState(api.StatefulPolicyPreservedState o) { buildCounterStatefulPolicyPreservedState++; if (buildCounterStatefulPolicyPreservedState < 3) { - checkUnnamed790(o.disks!); - checkUnnamed791(o.externalIPs!); - checkUnnamed792(o.internalIPs!); + checkUnnamed796(o.disks!); + checkUnnamed797(o.externalIPs!); + checkUnnamed798(o.internalIPs!); } buildCounterStatefulPolicyPreservedState--; } @@ -35060,7 +35508,7 @@ void checkStatefulPolicyPreservedStateNetworkIp( buildCounterStatefulPolicyPreservedStateNetworkIp--; } -core.Map buildUnnamed793() => { +core.Map buildUnnamed799() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -35073,7 +35521,7 @@ core.Map buildUnnamed793() => { }, }; -void checkUnnamed793(core.Map o) { +void checkUnnamed799(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o['x']!) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -35087,15 +35535,15 @@ void checkUnnamed793(core.Map o) { unittest.expect(casted2['string'], unittest.equals('foo')); } -core.List> buildUnnamed794() => [ - buildUnnamed793(), - buildUnnamed793(), +core.List> buildUnnamed800() => [ + buildUnnamed799(), + buildUnnamed799(), ]; -void checkUnnamed794(core.List> o) { +void checkUnnamed800(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed793(o[0]); - checkUnnamed793(o[1]); + checkUnnamed799(o[0]); + checkUnnamed799(o[1]); } core.int buildCounterStatus = 0; @@ -35104,7 +35552,7 @@ api.Status buildStatus() { buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed794(); + o.details = buildUnnamed800(); o.message = 'foo'; } buildCounterStatus--; @@ -35115,18 +35563,18 @@ void checkStatus(api.Status o) { buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed794(o.details!); + checkUnnamed800(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStatus--; } -core.Map buildUnnamed795() => { +core.Map buildUnnamed801() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed795(core.Map o) { +void checkUnnamed801(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -35143,7 +35591,7 @@ api.StoragePool buildStoragePool() { o.id = 'foo'; o.kind = 'foo'; o.labelFingerprint = 'foo'; - o.labels = buildUnnamed795(); + o.labels = buildUnnamed801(); o.name = 'foo'; o.performanceProvisioningType = 'foo'; o.poolProvisionedCapacityGb = 'foo'; @@ -35170,7 +35618,7 @@ void checkStoragePool(api.StoragePool o) { unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed795(o.labels!); + checkUnnamed801(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.performanceProvisioningType!, unittest.equals('foo')); unittest.expect(o.poolProvisionedCapacityGb!, unittest.equals('foo')); @@ -35187,20 +35635,20 @@ void checkStoragePool(api.StoragePool o) { buildCounterStoragePool--; } -core.Map buildUnnamed796() => { +core.Map buildUnnamed802() => { 'x': buildStoragePoolsScopedList(), 'y': buildStoragePoolsScopedList(), }; -void checkUnnamed796(core.Map o) { +void checkUnnamed802(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkStoragePoolsScopedList(o['x']!); checkStoragePoolsScopedList(o['y']!); } -core.List buildUnnamed797() => ['foo', 'foo']; +core.List buildUnnamed803() => ['foo', 'foo']; -void checkUnnamed797(core.List o) { +void checkUnnamed803(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -35230,12 +35678,12 @@ void checkStoragePoolAggregatedListWarningData( buildCounterStoragePoolAggregatedListWarningData--; } -core.List buildUnnamed798() => [ +core.List buildUnnamed804() => [ buildStoragePoolAggregatedListWarningData(), buildStoragePoolAggregatedListWarningData(), ]; -void checkUnnamed798(core.List o) { +void checkUnnamed804(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkStoragePoolAggregatedListWarningData(o[0]); checkStoragePoolAggregatedListWarningData(o[1]); @@ -35247,7 +35695,7 @@ api.StoragePoolAggregatedListWarning buildStoragePoolAggregatedListWarning() { buildCounterStoragePoolAggregatedListWarning++; if (buildCounterStoragePoolAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed798(); + o.data = buildUnnamed804(); o.message = 'foo'; } buildCounterStoragePoolAggregatedListWarning--; @@ -35260,7 +35708,7 @@ void checkStoragePoolAggregatedListWarning( buildCounterStoragePoolAggregatedListWarning++; if (buildCounterStoragePoolAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed798(o.data!); + checkUnnamed804(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStoragePoolAggregatedListWarning--; @@ -35273,11 +35721,11 @@ api.StoragePoolAggregatedList buildStoragePoolAggregatedList() { if (buildCounterStoragePoolAggregatedList < 3) { o.etag = 'foo'; o.id = 'foo'; - o.items = buildUnnamed796(); + o.items = buildUnnamed802(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed797(); + o.unreachables = buildUnnamed803(); o.warning = buildStoragePoolAggregatedListWarning(); } buildCounterStoragePoolAggregatedList--; @@ -35289,27 +35737,27 @@ void checkStoragePoolAggregatedList(api.StoragePoolAggregatedList o) { if (buildCounterStoragePoolAggregatedList < 3) { unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed796(o.items!); + checkUnnamed802(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed797(o.unreachables!); + checkUnnamed803(o.unreachables!); checkStoragePoolAggregatedListWarning(o.warning!); } buildCounterStoragePoolAggregatedList--; } -core.List buildUnnamed799() => ['foo', 'foo']; +core.List buildUnnamed805() => ['foo', 'foo']; -void checkUnnamed799(core.List o) { +void checkUnnamed805(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed800() => ['foo', 'foo']; +core.List buildUnnamed806() => ['foo', 'foo']; -void checkUnnamed800(core.List o) { +void checkUnnamed806(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -35320,13 +35768,13 @@ api.StoragePoolDisk buildStoragePoolDisk() { final o = api.StoragePoolDisk(); buildCounterStoragePoolDisk++; if (buildCounterStoragePoolDisk < 3) { - o.attachedInstances = buildUnnamed799(); + o.attachedInstances = buildUnnamed805(); o.creationTimestamp = 'foo'; o.disk = 'foo'; o.name = 'foo'; o.provisionedIops = 'foo'; o.provisionedThroughput = 'foo'; - o.resourcePolicies = buildUnnamed800(); + o.resourcePolicies = buildUnnamed806(); o.sizeGb = 'foo'; o.status = 'foo'; o.type = 'foo'; @@ -35339,13 +35787,13 @@ api.StoragePoolDisk buildStoragePoolDisk() { void checkStoragePoolDisk(api.StoragePoolDisk o) { buildCounterStoragePoolDisk++; if (buildCounterStoragePoolDisk < 3) { - checkUnnamed799(o.attachedInstances!); + checkUnnamed805(o.attachedInstances!); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.disk!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.provisionedIops!, unittest.equals('foo')); unittest.expect(o.provisionedThroughput!, unittest.equals('foo')); - checkUnnamed800(o.resourcePolicies!); + checkUnnamed806(o.resourcePolicies!); unittest.expect(o.sizeGb!, unittest.equals('foo')); unittest.expect(o.status!, unittest.equals('foo')); unittest.expect(o.type!, unittest.equals('foo')); @@ -35354,20 +35802,20 @@ void checkStoragePoolDisk(api.StoragePoolDisk o) { buildCounterStoragePoolDisk--; } -core.List buildUnnamed801() => [ +core.List buildUnnamed807() => [ buildStoragePool(), buildStoragePool(), ]; -void checkUnnamed801(core.List o) { +void checkUnnamed807(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkStoragePool(o[0]); checkStoragePool(o[1]); } -core.List buildUnnamed802() => ['foo', 'foo']; +core.List buildUnnamed808() => ['foo', 'foo']; -void checkUnnamed802(core.List o) { +void checkUnnamed808(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -35394,12 +35842,12 @@ void checkStoragePoolListWarningData(api.StoragePoolListWarningData o) { buildCounterStoragePoolListWarningData--; } -core.List buildUnnamed803() => [ +core.List buildUnnamed809() => [ buildStoragePoolListWarningData(), buildStoragePoolListWarningData(), ]; -void checkUnnamed803(core.List o) { +void checkUnnamed809(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkStoragePoolListWarningData(o[0]); checkStoragePoolListWarningData(o[1]); @@ -35411,7 +35859,7 @@ api.StoragePoolListWarning buildStoragePoolListWarning() { buildCounterStoragePoolListWarning++; if (buildCounterStoragePoolListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed803(); + o.data = buildUnnamed809(); o.message = 'foo'; } buildCounterStoragePoolListWarning--; @@ -35422,7 +35870,7 @@ void checkStoragePoolListWarning(api.StoragePoolListWarning o) { buildCounterStoragePoolListWarning++; if (buildCounterStoragePoolListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed803(o.data!); + checkUnnamed809(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStoragePoolListWarning--; @@ -35435,11 +35883,11 @@ api.StoragePoolList buildStoragePoolList() { if (buildCounterStoragePoolList < 3) { o.etag = 'foo'; o.id = 'foo'; - o.items = buildUnnamed801(); + o.items = buildUnnamed807(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed802(); + o.unreachables = buildUnnamed808(); o.warning = buildStoragePoolListWarning(); } buildCounterStoragePoolList--; @@ -35451,30 +35899,30 @@ void checkStoragePoolList(api.StoragePoolList o) { if (buildCounterStoragePoolList < 3) { unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed801(o.items!); + checkUnnamed807(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed802(o.unreachables!); + checkUnnamed808(o.unreachables!); checkStoragePoolListWarning(o.warning!); } buildCounterStoragePoolList--; } -core.List buildUnnamed804() => [ +core.List buildUnnamed810() => [ buildStoragePoolDisk(), buildStoragePoolDisk(), ]; -void checkUnnamed804(core.List o) { +void checkUnnamed810(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkStoragePoolDisk(o[0]); checkStoragePoolDisk(o[1]); } -core.List buildUnnamed805() => ['foo', 'foo']; +core.List buildUnnamed811() => ['foo', 'foo']; -void checkUnnamed805(core.List o) { +void checkUnnamed811(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -35503,12 +35951,12 @@ void checkStoragePoolListDisksWarningData( buildCounterStoragePoolListDisksWarningData--; } -core.List buildUnnamed806() => [ +core.List buildUnnamed812() => [ buildStoragePoolListDisksWarningData(), buildStoragePoolListDisksWarningData(), ]; -void checkUnnamed806(core.List o) { +void checkUnnamed812(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkStoragePoolListDisksWarningData(o[0]); checkStoragePoolListDisksWarningData(o[1]); @@ -35520,7 +35968,7 @@ api.StoragePoolListDisksWarning buildStoragePoolListDisksWarning() { buildCounterStoragePoolListDisksWarning++; if (buildCounterStoragePoolListDisksWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed806(); + o.data = buildUnnamed812(); o.message = 'foo'; } buildCounterStoragePoolListDisksWarning--; @@ -35531,7 +35979,7 @@ void checkStoragePoolListDisksWarning(api.StoragePoolListDisksWarning o) { buildCounterStoragePoolListDisksWarning++; if (buildCounterStoragePoolListDisksWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed806(o.data!); + checkUnnamed812(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStoragePoolListDisksWarning--; @@ -35544,11 +35992,11 @@ api.StoragePoolListDisks buildStoragePoolListDisks() { if (buildCounterStoragePoolListDisks < 3) { o.etag = 'foo'; o.id = 'foo'; - o.items = buildUnnamed804(); + o.items = buildUnnamed810(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed805(); + o.unreachables = buildUnnamed811(); o.warning = buildStoragePoolListDisksWarning(); } buildCounterStoragePoolListDisks--; @@ -35560,11 +36008,11 @@ void checkStoragePoolListDisks(api.StoragePoolListDisks o) { if (buildCounterStoragePoolListDisks < 3) { unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed804(o.items!); + checkUnnamed810(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed805(o.unreachables!); + checkUnnamed811(o.unreachables!); checkStoragePoolListDisksWarning(o.warning!); } buildCounterStoragePoolListDisks--; @@ -35610,9 +36058,9 @@ void checkStoragePoolResourceStatus(api.StoragePoolResourceStatus o) { buildCounterStoragePoolResourceStatus--; } -core.List buildUnnamed807() => ['foo', 'foo']; +core.List buildUnnamed813() => ['foo', 'foo']; -void checkUnnamed807(core.List o) { +void checkUnnamed813(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -35638,7 +36086,7 @@ api.StoragePoolType buildStoragePoolType() { o.name = 'foo'; o.selfLink = 'foo'; o.selfLinkWithId = 'foo'; - o.supportedDiskTypes = buildUnnamed807(); + o.supportedDiskTypes = buildUnnamed813(); o.zone = 'foo'; } buildCounterStoragePoolType--; @@ -35663,18 +36111,18 @@ void checkStoragePoolType(api.StoragePoolType o) { unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.selfLinkWithId!, unittest.equals('foo')); - checkUnnamed807(o.supportedDiskTypes!); + checkUnnamed813(o.supportedDiskTypes!); unittest.expect(o.zone!, unittest.equals('foo')); } buildCounterStoragePoolType--; } -core.Map buildUnnamed808() => { +core.Map buildUnnamed814() => { 'x': buildStoragePoolTypesScopedList(), 'y': buildStoragePoolTypesScopedList(), }; -void checkUnnamed808(core.Map o) { +void checkUnnamed814(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkStoragePoolTypesScopedList(o['x']!); checkStoragePoolTypesScopedList(o['y']!); @@ -35704,12 +36152,12 @@ void checkStoragePoolTypeAggregatedListWarningData( buildCounterStoragePoolTypeAggregatedListWarningData--; } -core.List buildUnnamed809() => [ +core.List buildUnnamed815() => [ buildStoragePoolTypeAggregatedListWarningData(), buildStoragePoolTypeAggregatedListWarningData(), ]; -void checkUnnamed809( +void checkUnnamed815( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -35724,7 +36172,7 @@ buildStoragePoolTypeAggregatedListWarning() { buildCounterStoragePoolTypeAggregatedListWarning++; if (buildCounterStoragePoolTypeAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed809(); + o.data = buildUnnamed815(); o.message = 'foo'; } buildCounterStoragePoolTypeAggregatedListWarning--; @@ -35737,7 +36185,7 @@ void checkStoragePoolTypeAggregatedListWarning( buildCounterStoragePoolTypeAggregatedListWarning++; if (buildCounterStoragePoolTypeAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed809(o.data!); + checkUnnamed815(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStoragePoolTypeAggregatedListWarning--; @@ -35749,7 +36197,7 @@ api.StoragePoolTypeAggregatedList buildStoragePoolTypeAggregatedList() { buildCounterStoragePoolTypeAggregatedList++; if (buildCounterStoragePoolTypeAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed808(); + o.items = buildUnnamed814(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -35763,7 +36211,7 @@ void checkStoragePoolTypeAggregatedList(api.StoragePoolTypeAggregatedList o) { buildCounterStoragePoolTypeAggregatedList++; if (buildCounterStoragePoolTypeAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed808(o.items!); + checkUnnamed814(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -35772,12 +36220,12 @@ void checkStoragePoolTypeAggregatedList(api.StoragePoolTypeAggregatedList o) { buildCounterStoragePoolTypeAggregatedList--; } -core.List buildUnnamed810() => [ +core.List buildUnnamed816() => [ buildStoragePoolType(), buildStoragePoolType(), ]; -void checkUnnamed810(core.List o) { +void checkUnnamed816(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkStoragePoolType(o[0]); checkStoragePoolType(o[1]); @@ -35804,12 +36252,12 @@ void checkStoragePoolTypeListWarningData(api.StoragePoolTypeListWarningData o) { buildCounterStoragePoolTypeListWarningData--; } -core.List buildUnnamed811() => [ +core.List buildUnnamed817() => [ buildStoragePoolTypeListWarningData(), buildStoragePoolTypeListWarningData(), ]; -void checkUnnamed811(core.List o) { +void checkUnnamed817(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkStoragePoolTypeListWarningData(o[0]); checkStoragePoolTypeListWarningData(o[1]); @@ -35821,7 +36269,7 @@ api.StoragePoolTypeListWarning buildStoragePoolTypeListWarning() { buildCounterStoragePoolTypeListWarning++; if (buildCounterStoragePoolTypeListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed811(); + o.data = buildUnnamed817(); o.message = 'foo'; } buildCounterStoragePoolTypeListWarning--; @@ -35832,7 +36280,7 @@ void checkStoragePoolTypeListWarning(api.StoragePoolTypeListWarning o) { buildCounterStoragePoolTypeListWarning++; if (buildCounterStoragePoolTypeListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed811(o.data!); + checkUnnamed817(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStoragePoolTypeListWarning--; @@ -35844,7 +36292,7 @@ api.StoragePoolTypeList buildStoragePoolTypeList() { buildCounterStoragePoolTypeList++; if (buildCounterStoragePoolTypeList < 3) { o.id = 'foo'; - o.items = buildUnnamed810(); + o.items = buildUnnamed816(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -35858,7 +36306,7 @@ void checkStoragePoolTypeList(api.StoragePoolTypeList o) { buildCounterStoragePoolTypeList++; if (buildCounterStoragePoolTypeList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed810(o.items!); + checkUnnamed816(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -35867,12 +36315,12 @@ void checkStoragePoolTypeList(api.StoragePoolTypeList o) { buildCounterStoragePoolTypeList--; } -core.List buildUnnamed812() => [ +core.List buildUnnamed818() => [ buildStoragePoolType(), buildStoragePoolType(), ]; -void checkUnnamed812(core.List o) { +void checkUnnamed818(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkStoragePoolType(o[0]); checkStoragePoolType(o[1]); @@ -35902,12 +36350,12 @@ void checkStoragePoolTypesScopedListWarningData( buildCounterStoragePoolTypesScopedListWarningData--; } -core.List buildUnnamed813() => [ +core.List buildUnnamed819() => [ buildStoragePoolTypesScopedListWarningData(), buildStoragePoolTypesScopedListWarningData(), ]; -void checkUnnamed813(core.List o) { +void checkUnnamed819(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkStoragePoolTypesScopedListWarningData(o[0]); checkStoragePoolTypesScopedListWarningData(o[1]); @@ -35919,7 +36367,7 @@ api.StoragePoolTypesScopedListWarning buildStoragePoolTypesScopedListWarning() { buildCounterStoragePoolTypesScopedListWarning++; if (buildCounterStoragePoolTypesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed813(); + o.data = buildUnnamed819(); o.message = 'foo'; } buildCounterStoragePoolTypesScopedListWarning--; @@ -35932,7 +36380,7 @@ void checkStoragePoolTypesScopedListWarning( buildCounterStoragePoolTypesScopedListWarning++; if (buildCounterStoragePoolTypesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed813(o.data!); + checkUnnamed819(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStoragePoolTypesScopedListWarning--; @@ -35943,7 +36391,7 @@ api.StoragePoolTypesScopedList buildStoragePoolTypesScopedList() { final o = api.StoragePoolTypesScopedList(); buildCounterStoragePoolTypesScopedList++; if (buildCounterStoragePoolTypesScopedList < 3) { - o.storagePoolTypes = buildUnnamed812(); + o.storagePoolTypes = buildUnnamed818(); o.warning = buildStoragePoolTypesScopedListWarning(); } buildCounterStoragePoolTypesScopedList--; @@ -35953,18 +36401,18 @@ api.StoragePoolTypesScopedList buildStoragePoolTypesScopedList() { void checkStoragePoolTypesScopedList(api.StoragePoolTypesScopedList o) { buildCounterStoragePoolTypesScopedList++; if (buildCounterStoragePoolTypesScopedList < 3) { - checkUnnamed812(o.storagePoolTypes!); + checkUnnamed818(o.storagePoolTypes!); checkStoragePoolTypesScopedListWarning(o.warning!); } buildCounterStoragePoolTypesScopedList--; } -core.List buildUnnamed814() => [ +core.List buildUnnamed820() => [ buildStoragePool(), buildStoragePool(), ]; -void checkUnnamed814(core.List o) { +void checkUnnamed820(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkStoragePool(o[0]); checkStoragePool(o[1]); @@ -35993,12 +36441,12 @@ void checkStoragePoolsScopedListWarningData( buildCounterStoragePoolsScopedListWarningData--; } -core.List buildUnnamed815() => [ +core.List buildUnnamed821() => [ buildStoragePoolsScopedListWarningData(), buildStoragePoolsScopedListWarningData(), ]; -void checkUnnamed815(core.List o) { +void checkUnnamed821(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkStoragePoolsScopedListWarningData(o[0]); checkStoragePoolsScopedListWarningData(o[1]); @@ -36010,7 +36458,7 @@ api.StoragePoolsScopedListWarning buildStoragePoolsScopedListWarning() { buildCounterStoragePoolsScopedListWarning++; if (buildCounterStoragePoolsScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed815(); + o.data = buildUnnamed821(); o.message = 'foo'; } buildCounterStoragePoolsScopedListWarning--; @@ -36021,7 +36469,7 @@ void checkStoragePoolsScopedListWarning(api.StoragePoolsScopedListWarning o) { buildCounterStoragePoolsScopedListWarning++; if (buildCounterStoragePoolsScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed815(o.data!); + checkUnnamed821(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStoragePoolsScopedListWarning--; @@ -36032,7 +36480,7 @@ api.StoragePoolsScopedList buildStoragePoolsScopedList() { final o = api.StoragePoolsScopedList(); buildCounterStoragePoolsScopedList++; if (buildCounterStoragePoolsScopedList < 3) { - o.storagePools = buildUnnamed814(); + o.storagePools = buildUnnamed820(); o.warning = buildStoragePoolsScopedListWarning(); } buildCounterStoragePoolsScopedList--; @@ -36042,34 +36490,34 @@ api.StoragePoolsScopedList buildStoragePoolsScopedList() { void checkStoragePoolsScopedList(api.StoragePoolsScopedList o) { buildCounterStoragePoolsScopedList++; if (buildCounterStoragePoolsScopedList < 3) { - checkUnnamed814(o.storagePools!); + checkUnnamed820(o.storagePools!); checkStoragePoolsScopedListWarning(o.warning!); } buildCounterStoragePoolsScopedList--; } -core.List buildUnnamed816() => [ +core.List buildUnnamed822() => [ buildSubnetworkSecondaryRange(), buildSubnetworkSecondaryRange(), ]; -void checkUnnamed816(core.List o) { +void checkUnnamed822(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworkSecondaryRange(o[0]); checkSubnetworkSecondaryRange(o[1]); } -core.List buildUnnamed817() => ['foo', 'foo']; +core.List buildUnnamed823() => ['foo', 'foo']; -void checkUnnamed817(core.List o) { +void checkUnnamed823(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed818() => ['foo', 'foo']; +core.List buildUnnamed824() => ['foo', 'foo']; -void checkUnnamed818(core.List o) { +void checkUnnamed824(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -36104,12 +36552,12 @@ api.Subnetwork buildSubnetwork() { o.region = 'foo'; o.reservedInternalRange = 'foo'; o.role = 'foo'; - o.secondaryIpRanges = buildUnnamed816(); + o.secondaryIpRanges = buildUnnamed822(); o.selfLink = 'foo'; o.stackType = 'foo'; o.state = 'foo'; - o.systemReservedExternalIpv6Ranges = buildUnnamed817(); - o.systemReservedInternalIpv6Ranges = buildUnnamed818(); + o.systemReservedExternalIpv6Ranges = buildUnnamed823(); + o.systemReservedInternalIpv6Ranges = buildUnnamed824(); } buildCounterSubnetwork--; return o; @@ -36142,30 +36590,30 @@ void checkSubnetwork(api.Subnetwork o) { unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.reservedInternalRange!, unittest.equals('foo')); unittest.expect(o.role!, unittest.equals('foo')); - checkUnnamed816(o.secondaryIpRanges!); + checkUnnamed822(o.secondaryIpRanges!); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.stackType!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); - checkUnnamed817(o.systemReservedExternalIpv6Ranges!); - checkUnnamed818(o.systemReservedInternalIpv6Ranges!); + checkUnnamed823(o.systemReservedExternalIpv6Ranges!); + checkUnnamed824(o.systemReservedInternalIpv6Ranges!); } buildCounterSubnetwork--; } -core.Map buildUnnamed819() => { +core.Map buildUnnamed825() => { 'x': buildSubnetworksScopedList(), 'y': buildSubnetworksScopedList(), }; -void checkUnnamed819(core.Map o) { +void checkUnnamed825(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedList(o['x']!); checkSubnetworksScopedList(o['y']!); } -core.List buildUnnamed820() => ['foo', 'foo']; +core.List buildUnnamed826() => ['foo', 'foo']; -void checkUnnamed820(core.List o) { +void checkUnnamed826(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -36195,12 +36643,12 @@ void checkSubnetworkAggregatedListWarningData( buildCounterSubnetworkAggregatedListWarningData--; } -core.List buildUnnamed821() => [ +core.List buildUnnamed827() => [ buildSubnetworkAggregatedListWarningData(), buildSubnetworkAggregatedListWarningData(), ]; -void checkUnnamed821(core.List o) { +void checkUnnamed827(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworkAggregatedListWarningData(o[0]); checkSubnetworkAggregatedListWarningData(o[1]); @@ -36212,7 +36660,7 @@ api.SubnetworkAggregatedListWarning buildSubnetworkAggregatedListWarning() { buildCounterSubnetworkAggregatedListWarning++; if (buildCounterSubnetworkAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed821(); + o.data = buildUnnamed827(); o.message = 'foo'; } buildCounterSubnetworkAggregatedListWarning--; @@ -36225,7 +36673,7 @@ void checkSubnetworkAggregatedListWarning( buildCounterSubnetworkAggregatedListWarning++; if (buildCounterSubnetworkAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed821(o.data!); + checkUnnamed827(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterSubnetworkAggregatedListWarning--; @@ -36237,11 +36685,11 @@ api.SubnetworkAggregatedList buildSubnetworkAggregatedList() { buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed819(); + o.items = buildUnnamed825(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed820(); + o.unreachables = buildUnnamed826(); o.warning = buildSubnetworkAggregatedListWarning(); } buildCounterSubnetworkAggregatedList--; @@ -36252,22 +36700,22 @@ void checkSubnetworkAggregatedList(api.SubnetworkAggregatedList o) { buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed819(o.items!); + checkUnnamed825(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed820(o.unreachables!); + checkUnnamed826(o.unreachables!); checkSubnetworkAggregatedListWarning(o.warning!); } buildCounterSubnetworkAggregatedList--; } -core.List buildUnnamed822() => [ +core.List buildUnnamed828() => [ buildSubnetwork(), buildSubnetwork(), ]; -void checkUnnamed822(core.List o) { +void checkUnnamed828(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -36294,12 +36742,12 @@ void checkSubnetworkListWarningData(api.SubnetworkListWarningData o) { buildCounterSubnetworkListWarningData--; } -core.List buildUnnamed823() => [ +core.List buildUnnamed829() => [ buildSubnetworkListWarningData(), buildSubnetworkListWarningData(), ]; -void checkUnnamed823(core.List o) { +void checkUnnamed829(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworkListWarningData(o[0]); checkSubnetworkListWarningData(o[1]); @@ -36311,7 +36759,7 @@ api.SubnetworkListWarning buildSubnetworkListWarning() { buildCounterSubnetworkListWarning++; if (buildCounterSubnetworkListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed823(); + o.data = buildUnnamed829(); o.message = 'foo'; } buildCounterSubnetworkListWarning--; @@ -36322,7 +36770,7 @@ void checkSubnetworkListWarning(api.SubnetworkListWarning o) { buildCounterSubnetworkListWarning++; if (buildCounterSubnetworkListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed823(o.data!); + checkUnnamed829(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterSubnetworkListWarning--; @@ -36334,7 +36782,7 @@ api.SubnetworkList buildSubnetworkList() { buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { o.id = 'foo'; - o.items = buildUnnamed822(); + o.items = buildUnnamed828(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -36348,7 +36796,7 @@ void checkSubnetworkList(api.SubnetworkList o) { buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed822(o.items!); + checkUnnamed828(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -36357,9 +36805,9 @@ void checkSubnetworkList(api.SubnetworkList o) { buildCounterSubnetworkList--; } -core.List buildUnnamed824() => ['foo', 'foo']; +core.List buildUnnamed830() => ['foo', 'foo']; -void checkUnnamed824(core.List o) { +void checkUnnamed830(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -36375,7 +36823,7 @@ api.SubnetworkLogConfig buildSubnetworkLogConfig() { o.filterExpr = 'foo'; o.flowSampling = 42.0; o.metadata = 'foo'; - o.metadataFields = buildUnnamed824(); + o.metadataFields = buildUnnamed830(); } buildCounterSubnetworkLogConfig--; return o; @@ -36389,17 +36837,17 @@ void checkSubnetworkLogConfig(api.SubnetworkLogConfig o) { unittest.expect(o.filterExpr!, unittest.equals('foo')); unittest.expect(o.flowSampling!, unittest.equals(42.0)); unittest.expect(o.metadata!, unittest.equals('foo')); - checkUnnamed824(o.metadataFields!); + checkUnnamed830(o.metadataFields!); } buildCounterSubnetworkLogConfig--; } -core.Map buildUnnamed825() => { +core.Map buildUnnamed831() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed825(core.Map o) { +void checkUnnamed831(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -36410,7 +36858,7 @@ api.SubnetworkParams buildSubnetworkParams() { final o = api.SubnetworkParams(); buildCounterSubnetworkParams++; if (buildCounterSubnetworkParams < 3) { - o.resourceManagerTags = buildUnnamed825(); + o.resourceManagerTags = buildUnnamed831(); } buildCounterSubnetworkParams--; return o; @@ -36419,7 +36867,7 @@ api.SubnetworkParams buildSubnetworkParams() { void checkSubnetworkParams(api.SubnetworkParams o) { buildCounterSubnetworkParams++; if (buildCounterSubnetworkParams < 3) { - checkUnnamed825(o.resourceManagerTags!); + checkUnnamed831(o.resourceManagerTags!); } buildCounterSubnetworkParams--; } @@ -36469,12 +36917,12 @@ void checkSubnetworksExpandIpCidrRangeRequest( buildCounterSubnetworksExpandIpCidrRangeRequest--; } -core.List buildUnnamed826() => [ +core.List buildUnnamed832() => [ buildSubnetwork(), buildSubnetwork(), ]; -void checkUnnamed826(core.List o) { +void checkUnnamed832(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -36503,12 +36951,12 @@ void checkSubnetworksScopedListWarningData( buildCounterSubnetworksScopedListWarningData--; } -core.List buildUnnamed827() => [ +core.List buildUnnamed833() => [ buildSubnetworksScopedListWarningData(), buildSubnetworksScopedListWarningData(), ]; -void checkUnnamed827(core.List o) { +void checkUnnamed833(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedListWarningData(o[0]); checkSubnetworksScopedListWarningData(o[1]); @@ -36520,7 +36968,7 @@ api.SubnetworksScopedListWarning buildSubnetworksScopedListWarning() { buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed827(); + o.data = buildUnnamed833(); o.message = 'foo'; } buildCounterSubnetworksScopedListWarning--; @@ -36531,7 +36979,7 @@ void checkSubnetworksScopedListWarning(api.SubnetworksScopedListWarning o) { buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed827(o.data!); + checkUnnamed833(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterSubnetworksScopedListWarning--; @@ -36542,7 +36990,7 @@ api.SubnetworksScopedList buildSubnetworksScopedList() { final o = api.SubnetworksScopedList(); buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - o.subnetworks = buildUnnamed826(); + o.subnetworks = buildUnnamed832(); o.warning = buildSubnetworksScopedListWarning(); } buildCounterSubnetworksScopedList--; @@ -36552,7 +37000,7 @@ api.SubnetworksScopedList buildSubnetworksScopedList() { void checkSubnetworksScopedList(api.SubnetworksScopedList o) { buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - checkUnnamed826(o.subnetworks!); + checkUnnamed832(o.subnetworks!); checkSubnetworksScopedListWarning(o.warning!); } buildCounterSubnetworksScopedList--; @@ -36582,12 +37030,12 @@ void checkSubnetworksScopedWarningWarningData( buildCounterSubnetworksScopedWarningWarningData--; } -core.List buildUnnamed828() => [ +core.List buildUnnamed834() => [ buildSubnetworksScopedWarningWarningData(), buildSubnetworksScopedWarningWarningData(), ]; -void checkUnnamed828(core.List o) { +void checkUnnamed834(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedWarningWarningData(o[0]); checkSubnetworksScopedWarningWarningData(o[1]); @@ -36599,7 +37047,7 @@ api.SubnetworksScopedWarningWarning buildSubnetworksScopedWarningWarning() { buildCounterSubnetworksScopedWarningWarning++; if (buildCounterSubnetworksScopedWarningWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed828(); + o.data = buildUnnamed834(); o.message = 'foo'; } buildCounterSubnetworksScopedWarningWarning--; @@ -36612,7 +37060,7 @@ void checkSubnetworksScopedWarningWarning( buildCounterSubnetworksScopedWarningWarning++; if (buildCounterSubnetworksScopedWarningWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed828(o.data!); + checkUnnamed834(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterSubnetworksScopedWarningWarning--; @@ -36709,9 +37157,9 @@ void checkTCPHealthCheck(api.TCPHealthCheck o) { buildCounterTCPHealthCheck--; } -core.List buildUnnamed829() => ['foo', 'foo']; +core.List buildUnnamed835() => ['foo', 'foo']; -void checkUnnamed829(core.List o) { +void checkUnnamed835(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -36723,7 +37171,7 @@ api.Tags buildTags() { buildCounterTags++; if (buildCounterTags < 3) { o.fingerprint = 'foo'; - o.items = buildUnnamed829(); + o.items = buildUnnamed835(); } buildCounterTags--; return o; @@ -36733,7 +37181,7 @@ void checkTags(api.Tags o) { buildCounterTags++; if (buildCounterTags < 3) { unittest.expect(o.fingerprint!, unittest.equals('foo')); - checkUnnamed829(o.items!); + checkUnnamed835(o.items!); } buildCounterTags--; } @@ -36775,12 +37223,12 @@ void checkTargetGrpcProxy(api.TargetGrpcProxy o) { buildCounterTargetGrpcProxy--; } -core.List buildUnnamed830() => [ +core.List buildUnnamed836() => [ buildTargetGrpcProxy(), buildTargetGrpcProxy(), ]; -void checkUnnamed830(core.List o) { +void checkUnnamed836(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetGrpcProxy(o[0]); checkTargetGrpcProxy(o[1]); @@ -36807,12 +37255,12 @@ void checkTargetGrpcProxyListWarningData(api.TargetGrpcProxyListWarningData o) { buildCounterTargetGrpcProxyListWarningData--; } -core.List buildUnnamed831() => [ +core.List buildUnnamed837() => [ buildTargetGrpcProxyListWarningData(), buildTargetGrpcProxyListWarningData(), ]; -void checkUnnamed831(core.List o) { +void checkUnnamed837(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetGrpcProxyListWarningData(o[0]); checkTargetGrpcProxyListWarningData(o[1]); @@ -36824,7 +37272,7 @@ api.TargetGrpcProxyListWarning buildTargetGrpcProxyListWarning() { buildCounterTargetGrpcProxyListWarning++; if (buildCounterTargetGrpcProxyListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed831(); + o.data = buildUnnamed837(); o.message = 'foo'; } buildCounterTargetGrpcProxyListWarning--; @@ -36835,7 +37283,7 @@ void checkTargetGrpcProxyListWarning(api.TargetGrpcProxyListWarning o) { buildCounterTargetGrpcProxyListWarning++; if (buildCounterTargetGrpcProxyListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed831(o.data!); + checkUnnamed837(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetGrpcProxyListWarning--; @@ -36847,7 +37295,7 @@ api.TargetGrpcProxyList buildTargetGrpcProxyList() { buildCounterTargetGrpcProxyList++; if (buildCounterTargetGrpcProxyList < 3) { o.id = 'foo'; - o.items = buildUnnamed830(); + o.items = buildUnnamed836(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -36861,7 +37309,7 @@ void checkTargetGrpcProxyList(api.TargetGrpcProxyList o) { buildCounterTargetGrpcProxyList++; if (buildCounterTargetGrpcProxyList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed830(o.items!); + checkUnnamed836(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -36870,12 +37318,12 @@ void checkTargetGrpcProxyList(api.TargetGrpcProxyList o) { buildCounterTargetGrpcProxyList--; } -core.List buildUnnamed832() => [ +core.List buildUnnamed838() => [ buildTargetHttpProxy(), buildTargetHttpProxy(), ]; -void checkUnnamed832(core.List o) { +void checkUnnamed838(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxy(o[0]); checkTargetHttpProxy(o[1]); @@ -36905,12 +37353,12 @@ void checkTargetHttpProxiesScopedListWarningData( buildCounterTargetHttpProxiesScopedListWarningData--; } -core.List buildUnnamed833() => [ +core.List buildUnnamed839() => [ buildTargetHttpProxiesScopedListWarningData(), buildTargetHttpProxiesScopedListWarningData(), ]; -void checkUnnamed833(core.List o) { +void checkUnnamed839(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxiesScopedListWarningData(o[0]); checkTargetHttpProxiesScopedListWarningData(o[1]); @@ -36923,7 +37371,7 @@ buildTargetHttpProxiesScopedListWarning() { buildCounterTargetHttpProxiesScopedListWarning++; if (buildCounterTargetHttpProxiesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed833(); + o.data = buildUnnamed839(); o.message = 'foo'; } buildCounterTargetHttpProxiesScopedListWarning--; @@ -36936,7 +37384,7 @@ void checkTargetHttpProxiesScopedListWarning( buildCounterTargetHttpProxiesScopedListWarning++; if (buildCounterTargetHttpProxiesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed833(o.data!); + checkUnnamed839(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetHttpProxiesScopedListWarning--; @@ -36947,7 +37395,7 @@ api.TargetHttpProxiesScopedList buildTargetHttpProxiesScopedList() { final o = api.TargetHttpProxiesScopedList(); buildCounterTargetHttpProxiesScopedList++; if (buildCounterTargetHttpProxiesScopedList < 3) { - o.targetHttpProxies = buildUnnamed832(); + o.targetHttpProxies = buildUnnamed838(); o.warning = buildTargetHttpProxiesScopedListWarning(); } buildCounterTargetHttpProxiesScopedList--; @@ -36957,7 +37405,7 @@ api.TargetHttpProxiesScopedList buildTargetHttpProxiesScopedList() { void checkTargetHttpProxiesScopedList(api.TargetHttpProxiesScopedList o) { buildCounterTargetHttpProxiesScopedList++; if (buildCounterTargetHttpProxiesScopedList < 3) { - checkUnnamed832(o.targetHttpProxies!); + checkUnnamed838(o.targetHttpProxies!); checkTargetHttpProxiesScopedListWarning(o.warning!); } buildCounterTargetHttpProxiesScopedList--; @@ -37002,20 +37450,20 @@ void checkTargetHttpProxy(api.TargetHttpProxy o) { buildCounterTargetHttpProxy--; } -core.Map buildUnnamed834() => { +core.Map buildUnnamed840() => { 'x': buildTargetHttpProxiesScopedList(), 'y': buildTargetHttpProxiesScopedList(), }; -void checkUnnamed834(core.Map o) { +void checkUnnamed840(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxiesScopedList(o['x']!); checkTargetHttpProxiesScopedList(o['y']!); } -core.List buildUnnamed835() => ['foo', 'foo']; +core.List buildUnnamed841() => ['foo', 'foo']; -void checkUnnamed835(core.List o) { +void checkUnnamed841(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -37027,11 +37475,11 @@ api.TargetHttpProxyAggregatedList buildTargetHttpProxyAggregatedList() { buildCounterTargetHttpProxyAggregatedList++; if (buildCounterTargetHttpProxyAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed834(); + o.items = buildUnnamed840(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed835(); + o.unreachables = buildUnnamed841(); } buildCounterTargetHttpProxyAggregatedList--; return o; @@ -37041,21 +37489,21 @@ void checkTargetHttpProxyAggregatedList(api.TargetHttpProxyAggregatedList o) { buildCounterTargetHttpProxyAggregatedList++; if (buildCounterTargetHttpProxyAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed834(o.items!); + checkUnnamed840(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed835(o.unreachables!); + checkUnnamed841(o.unreachables!); } buildCounterTargetHttpProxyAggregatedList--; } -core.List buildUnnamed836() => [ +core.List buildUnnamed842() => [ buildTargetHttpProxy(), buildTargetHttpProxy(), ]; -void checkUnnamed836(core.List o) { +void checkUnnamed842(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxy(o[0]); checkTargetHttpProxy(o[1]); @@ -37082,12 +37530,12 @@ void checkTargetHttpProxyListWarningData(api.TargetHttpProxyListWarningData o) { buildCounterTargetHttpProxyListWarningData--; } -core.List buildUnnamed837() => [ +core.List buildUnnamed843() => [ buildTargetHttpProxyListWarningData(), buildTargetHttpProxyListWarningData(), ]; -void checkUnnamed837(core.List o) { +void checkUnnamed843(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxyListWarningData(o[0]); checkTargetHttpProxyListWarningData(o[1]); @@ -37099,7 +37547,7 @@ api.TargetHttpProxyListWarning buildTargetHttpProxyListWarning() { buildCounterTargetHttpProxyListWarning++; if (buildCounterTargetHttpProxyListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed837(); + o.data = buildUnnamed843(); o.message = 'foo'; } buildCounterTargetHttpProxyListWarning--; @@ -37110,7 +37558,7 @@ void checkTargetHttpProxyListWarning(api.TargetHttpProxyListWarning o) { buildCounterTargetHttpProxyListWarning++; if (buildCounterTargetHttpProxyListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed837(o.data!); + checkUnnamed843(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetHttpProxyListWarning--; @@ -37122,7 +37570,7 @@ api.TargetHttpProxyList buildTargetHttpProxyList() { buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { o.id = 'foo'; - o.items = buildUnnamed836(); + o.items = buildUnnamed842(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -37136,7 +37584,7 @@ void checkTargetHttpProxyList(api.TargetHttpProxyList o) { buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed836(o.items!); + checkUnnamed842(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -37145,12 +37593,12 @@ void checkTargetHttpProxyList(api.TargetHttpProxyList o) { buildCounterTargetHttpProxyList--; } -core.List buildUnnamed838() => [ +core.List buildUnnamed844() => [ buildTargetHttpsProxy(), buildTargetHttpsProxy(), ]; -void checkUnnamed838(core.List o) { +void checkUnnamed844(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxy(o[0]); checkTargetHttpsProxy(o[1]); @@ -37180,12 +37628,12 @@ void checkTargetHttpsProxiesScopedListWarningData( buildCounterTargetHttpsProxiesScopedListWarningData--; } -core.List buildUnnamed839() => [ +core.List buildUnnamed845() => [ buildTargetHttpsProxiesScopedListWarningData(), buildTargetHttpsProxiesScopedListWarningData(), ]; -void checkUnnamed839(core.List o) { +void checkUnnamed845(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxiesScopedListWarningData(o[0]); checkTargetHttpsProxiesScopedListWarningData(o[1]); @@ -37198,7 +37646,7 @@ buildTargetHttpsProxiesScopedListWarning() { buildCounterTargetHttpsProxiesScopedListWarning++; if (buildCounterTargetHttpsProxiesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed839(); + o.data = buildUnnamed845(); o.message = 'foo'; } buildCounterTargetHttpsProxiesScopedListWarning--; @@ -37211,7 +37659,7 @@ void checkTargetHttpsProxiesScopedListWarning( buildCounterTargetHttpsProxiesScopedListWarning++; if (buildCounterTargetHttpsProxiesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed839(o.data!); + checkUnnamed845(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetHttpsProxiesScopedListWarning--; @@ -37222,7 +37670,7 @@ api.TargetHttpsProxiesScopedList buildTargetHttpsProxiesScopedList() { final o = api.TargetHttpsProxiesScopedList(); buildCounterTargetHttpsProxiesScopedList++; if (buildCounterTargetHttpsProxiesScopedList < 3) { - o.targetHttpsProxies = buildUnnamed838(); + o.targetHttpsProxies = buildUnnamed844(); o.warning = buildTargetHttpsProxiesScopedListWarning(); } buildCounterTargetHttpsProxiesScopedList--; @@ -37232,7 +37680,7 @@ api.TargetHttpsProxiesScopedList buildTargetHttpsProxiesScopedList() { void checkTargetHttpsProxiesScopedList(api.TargetHttpsProxiesScopedList o) { buildCounterTargetHttpsProxiesScopedList++; if (buildCounterTargetHttpsProxiesScopedList < 3) { - checkUnnamed838(o.targetHttpsProxies!); + checkUnnamed844(o.targetHttpsProxies!); checkTargetHttpsProxiesScopedListWarning(o.warning!); } buildCounterTargetHttpsProxiesScopedList--; @@ -37282,9 +37730,9 @@ void checkTargetHttpsProxiesSetQuicOverrideRequest( buildCounterTargetHttpsProxiesSetQuicOverrideRequest--; } -core.List buildUnnamed840() => ['foo', 'foo']; +core.List buildUnnamed846() => ['foo', 'foo']; -void checkUnnamed840(core.List o) { +void checkUnnamed846(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -37296,7 +37744,7 @@ buildTargetHttpsProxiesSetSslCertificatesRequest() { final o = api.TargetHttpsProxiesSetSslCertificatesRequest(); buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed840(); + o.sslCertificates = buildUnnamed846(); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; return o; @@ -37307,14 +37755,14 @@ void checkTargetHttpsProxiesSetSslCertificatesRequest( ) { buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - checkUnnamed840(o.sslCertificates!); + checkUnnamed846(o.sslCertificates!); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; } -core.List buildUnnamed841() => ['foo', 'foo']; +core.List buildUnnamed847() => ['foo', 'foo']; -void checkUnnamed841(core.List o) { +void checkUnnamed847(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -37339,7 +37787,7 @@ api.TargetHttpsProxy buildTargetHttpsProxy() { o.region = 'foo'; o.selfLink = 'foo'; o.serverTlsPolicy = 'foo'; - o.sslCertificates = buildUnnamed841(); + o.sslCertificates = buildUnnamed847(); o.sslPolicy = 'foo'; o.tlsEarlyData = 'foo'; o.urlMap = 'foo'; @@ -37365,7 +37813,7 @@ void checkTargetHttpsProxy(api.TargetHttpsProxy o) { unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.serverTlsPolicy!, unittest.equals('foo')); - checkUnnamed841(o.sslCertificates!); + checkUnnamed847(o.sslCertificates!); unittest.expect(o.sslPolicy!, unittest.equals('foo')); unittest.expect(o.tlsEarlyData!, unittest.equals('foo')); unittest.expect(o.urlMap!, unittest.equals('foo')); @@ -37373,12 +37821,12 @@ void checkTargetHttpsProxy(api.TargetHttpsProxy o) { buildCounterTargetHttpsProxy--; } -core.Map buildUnnamed842() => { +core.Map buildUnnamed848() => { 'x': buildTargetHttpsProxiesScopedList(), 'y': buildTargetHttpsProxiesScopedList(), }; -void checkUnnamed842( +void checkUnnamed848( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -37386,9 +37834,9 @@ void checkUnnamed842( checkTargetHttpsProxiesScopedList(o['y']!); } -core.List buildUnnamed843() => ['foo', 'foo']; +core.List buildUnnamed849() => ['foo', 'foo']; -void checkUnnamed843(core.List o) { +void checkUnnamed849(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -37418,12 +37866,12 @@ void checkTargetHttpsProxyAggregatedListWarningData( buildCounterTargetHttpsProxyAggregatedListWarningData--; } -core.List buildUnnamed844() => [ +core.List buildUnnamed850() => [ buildTargetHttpsProxyAggregatedListWarningData(), buildTargetHttpsProxyAggregatedListWarningData(), ]; -void checkUnnamed844( +void checkUnnamed850( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -37438,7 +37886,7 @@ buildTargetHttpsProxyAggregatedListWarning() { buildCounterTargetHttpsProxyAggregatedListWarning++; if (buildCounterTargetHttpsProxyAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed844(); + o.data = buildUnnamed850(); o.message = 'foo'; } buildCounterTargetHttpsProxyAggregatedListWarning--; @@ -37451,7 +37899,7 @@ void checkTargetHttpsProxyAggregatedListWarning( buildCounterTargetHttpsProxyAggregatedListWarning++; if (buildCounterTargetHttpsProxyAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed844(o.data!); + checkUnnamed850(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetHttpsProxyAggregatedListWarning--; @@ -37463,11 +37911,11 @@ api.TargetHttpsProxyAggregatedList buildTargetHttpsProxyAggregatedList() { buildCounterTargetHttpsProxyAggregatedList++; if (buildCounterTargetHttpsProxyAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed842(); + o.items = buildUnnamed848(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed843(); + o.unreachables = buildUnnamed849(); o.warning = buildTargetHttpsProxyAggregatedListWarning(); } buildCounterTargetHttpsProxyAggregatedList--; @@ -37478,22 +37926,22 @@ void checkTargetHttpsProxyAggregatedList(api.TargetHttpsProxyAggregatedList o) { buildCounterTargetHttpsProxyAggregatedList++; if (buildCounterTargetHttpsProxyAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed842(o.items!); + checkUnnamed848(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed843(o.unreachables!); + checkUnnamed849(o.unreachables!); checkTargetHttpsProxyAggregatedListWarning(o.warning!); } buildCounterTargetHttpsProxyAggregatedList--; } -core.List buildUnnamed845() => [ +core.List buildUnnamed851() => [ buildTargetHttpsProxy(), buildTargetHttpsProxy(), ]; -void checkUnnamed845(core.List o) { +void checkUnnamed851(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxy(o[0]); checkTargetHttpsProxy(o[1]); @@ -37522,12 +37970,12 @@ void checkTargetHttpsProxyListWarningData( buildCounterTargetHttpsProxyListWarningData--; } -core.List buildUnnamed846() => [ +core.List buildUnnamed852() => [ buildTargetHttpsProxyListWarningData(), buildTargetHttpsProxyListWarningData(), ]; -void checkUnnamed846(core.List o) { +void checkUnnamed852(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxyListWarningData(o[0]); checkTargetHttpsProxyListWarningData(o[1]); @@ -37539,7 +37987,7 @@ api.TargetHttpsProxyListWarning buildTargetHttpsProxyListWarning() { buildCounterTargetHttpsProxyListWarning++; if (buildCounterTargetHttpsProxyListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed846(); + o.data = buildUnnamed852(); o.message = 'foo'; } buildCounterTargetHttpsProxyListWarning--; @@ -37550,7 +37998,7 @@ void checkTargetHttpsProxyListWarning(api.TargetHttpsProxyListWarning o) { buildCounterTargetHttpsProxyListWarning++; if (buildCounterTargetHttpsProxyListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed846(o.data!); + checkUnnamed852(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetHttpsProxyListWarning--; @@ -37562,7 +38010,7 @@ api.TargetHttpsProxyList buildTargetHttpsProxyList() { buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { o.id = 'foo'; - o.items = buildUnnamed845(); + o.items = buildUnnamed851(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -37576,7 +38024,7 @@ void checkTargetHttpsProxyList(api.TargetHttpsProxyList o) { buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed845(o.items!); + checkUnnamed851(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -37624,20 +38072,20 @@ void checkTargetInstance(api.TargetInstance o) { buildCounterTargetInstance--; } -core.Map buildUnnamed847() => { +core.Map buildUnnamed853() => { 'x': buildTargetInstancesScopedList(), 'y': buildTargetInstancesScopedList(), }; -void checkUnnamed847(core.Map o) { +void checkUnnamed853(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedList(o['x']!); checkTargetInstancesScopedList(o['y']!); } -core.List buildUnnamed848() => ['foo', 'foo']; +core.List buildUnnamed854() => ['foo', 'foo']; -void checkUnnamed848(core.List o) { +void checkUnnamed854(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -37667,12 +38115,12 @@ void checkTargetInstanceAggregatedListWarningData( buildCounterTargetInstanceAggregatedListWarningData--; } -core.List buildUnnamed849() => [ +core.List buildUnnamed855() => [ buildTargetInstanceAggregatedListWarningData(), buildTargetInstanceAggregatedListWarningData(), ]; -void checkUnnamed849(core.List o) { +void checkUnnamed855(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstanceAggregatedListWarningData(o[0]); checkTargetInstanceAggregatedListWarningData(o[1]); @@ -37685,7 +38133,7 @@ buildTargetInstanceAggregatedListWarning() { buildCounterTargetInstanceAggregatedListWarning++; if (buildCounterTargetInstanceAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed849(); + o.data = buildUnnamed855(); o.message = 'foo'; } buildCounterTargetInstanceAggregatedListWarning--; @@ -37698,7 +38146,7 @@ void checkTargetInstanceAggregatedListWarning( buildCounterTargetInstanceAggregatedListWarning++; if (buildCounterTargetInstanceAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed849(o.data!); + checkUnnamed855(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetInstanceAggregatedListWarning--; @@ -37710,11 +38158,11 @@ api.TargetInstanceAggregatedList buildTargetInstanceAggregatedList() { buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed847(); + o.items = buildUnnamed853(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed848(); + o.unreachables = buildUnnamed854(); o.warning = buildTargetInstanceAggregatedListWarning(); } buildCounterTargetInstanceAggregatedList--; @@ -37725,22 +38173,22 @@ void checkTargetInstanceAggregatedList(api.TargetInstanceAggregatedList o) { buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed847(o.items!); + checkUnnamed853(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed848(o.unreachables!); + checkUnnamed854(o.unreachables!); checkTargetInstanceAggregatedListWarning(o.warning!); } buildCounterTargetInstanceAggregatedList--; } -core.List buildUnnamed850() => [ +core.List buildUnnamed856() => [ buildTargetInstance(), buildTargetInstance(), ]; -void checkUnnamed850(core.List o) { +void checkUnnamed856(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -37767,12 +38215,12 @@ void checkTargetInstanceListWarningData(api.TargetInstanceListWarningData o) { buildCounterTargetInstanceListWarningData--; } -core.List buildUnnamed851() => [ +core.List buildUnnamed857() => [ buildTargetInstanceListWarningData(), buildTargetInstanceListWarningData(), ]; -void checkUnnamed851(core.List o) { +void checkUnnamed857(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstanceListWarningData(o[0]); checkTargetInstanceListWarningData(o[1]); @@ -37784,7 +38232,7 @@ api.TargetInstanceListWarning buildTargetInstanceListWarning() { buildCounterTargetInstanceListWarning++; if (buildCounterTargetInstanceListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed851(); + o.data = buildUnnamed857(); o.message = 'foo'; } buildCounterTargetInstanceListWarning--; @@ -37795,7 +38243,7 @@ void checkTargetInstanceListWarning(api.TargetInstanceListWarning o) { buildCounterTargetInstanceListWarning++; if (buildCounterTargetInstanceListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed851(o.data!); + checkUnnamed857(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetInstanceListWarning--; @@ -37807,7 +38255,7 @@ api.TargetInstanceList buildTargetInstanceList() { buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { o.id = 'foo'; - o.items = buildUnnamed850(); + o.items = buildUnnamed856(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -37821,7 +38269,7 @@ void checkTargetInstanceList(api.TargetInstanceList o) { buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed850(o.items!); + checkUnnamed856(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -37830,12 +38278,12 @@ void checkTargetInstanceList(api.TargetInstanceList o) { buildCounterTargetInstanceList--; } -core.List buildUnnamed852() => [ +core.List buildUnnamed858() => [ buildTargetInstance(), buildTargetInstance(), ]; -void checkUnnamed852(core.List o) { +void checkUnnamed858(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -37865,12 +38313,12 @@ void checkTargetInstancesScopedListWarningData( buildCounterTargetInstancesScopedListWarningData--; } -core.List buildUnnamed853() => [ +core.List buildUnnamed859() => [ buildTargetInstancesScopedListWarningData(), buildTargetInstancesScopedListWarningData(), ]; -void checkUnnamed853(core.List o) { +void checkUnnamed859(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedListWarningData(o[0]); checkTargetInstancesScopedListWarningData(o[1]); @@ -37882,7 +38330,7 @@ api.TargetInstancesScopedListWarning buildTargetInstancesScopedListWarning() { buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed853(); + o.data = buildUnnamed859(); o.message = 'foo'; } buildCounterTargetInstancesScopedListWarning--; @@ -37895,7 +38343,7 @@ void checkTargetInstancesScopedListWarning( buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed853(o.data!); + checkUnnamed859(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetInstancesScopedListWarning--; @@ -37906,7 +38354,7 @@ api.TargetInstancesScopedList buildTargetInstancesScopedList() { final o = api.TargetInstancesScopedList(); buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - o.targetInstances = buildUnnamed852(); + o.targetInstances = buildUnnamed858(); o.warning = buildTargetInstancesScopedListWarning(); } buildCounterTargetInstancesScopedList--; @@ -37916,23 +38364,23 @@ api.TargetInstancesScopedList buildTargetInstancesScopedList() { void checkTargetInstancesScopedList(api.TargetInstancesScopedList o) { buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - checkUnnamed852(o.targetInstances!); + checkUnnamed858(o.targetInstances!); checkTargetInstancesScopedListWarning(o.warning!); } buildCounterTargetInstancesScopedList--; } -core.List buildUnnamed854() => ['foo', 'foo']; +core.List buildUnnamed860() => ['foo', 'foo']; -void checkUnnamed854(core.List o) { +void checkUnnamed860(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed855() => ['foo', 'foo']; +core.List buildUnnamed861() => ['foo', 'foo']; -void checkUnnamed855(core.List o) { +void checkUnnamed861(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -37947,9 +38395,9 @@ api.TargetPool buildTargetPool() { o.creationTimestamp = 'foo'; o.description = 'foo'; o.failoverRatio = 42.0; - o.healthChecks = buildUnnamed854(); + o.healthChecks = buildUnnamed860(); o.id = 'foo'; - o.instances = buildUnnamed855(); + o.instances = buildUnnamed861(); o.kind = 'foo'; o.name = 'foo'; o.region = 'foo'; @@ -37968,9 +38416,9 @@ void checkTargetPool(api.TargetPool o) { unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.failoverRatio!, unittest.equals(42.0)); - checkUnnamed854(o.healthChecks!); + checkUnnamed860(o.healthChecks!); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed855(o.instances!); + checkUnnamed861(o.instances!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); @@ -37981,20 +38429,20 @@ void checkTargetPool(api.TargetPool o) { buildCounterTargetPool--; } -core.Map buildUnnamed856() => { +core.Map buildUnnamed862() => { 'x': buildTargetPoolsScopedList(), 'y': buildTargetPoolsScopedList(), }; -void checkUnnamed856(core.Map o) { +void checkUnnamed862(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedList(o['x']!); checkTargetPoolsScopedList(o['y']!); } -core.List buildUnnamed857() => ['foo', 'foo']; +core.List buildUnnamed863() => ['foo', 'foo']; -void checkUnnamed857(core.List o) { +void checkUnnamed863(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -38024,12 +38472,12 @@ void checkTargetPoolAggregatedListWarningData( buildCounterTargetPoolAggregatedListWarningData--; } -core.List buildUnnamed858() => [ +core.List buildUnnamed864() => [ buildTargetPoolAggregatedListWarningData(), buildTargetPoolAggregatedListWarningData(), ]; -void checkUnnamed858(core.List o) { +void checkUnnamed864(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolAggregatedListWarningData(o[0]); checkTargetPoolAggregatedListWarningData(o[1]); @@ -38041,7 +38489,7 @@ api.TargetPoolAggregatedListWarning buildTargetPoolAggregatedListWarning() { buildCounterTargetPoolAggregatedListWarning++; if (buildCounterTargetPoolAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed858(); + o.data = buildUnnamed864(); o.message = 'foo'; } buildCounterTargetPoolAggregatedListWarning--; @@ -38054,7 +38502,7 @@ void checkTargetPoolAggregatedListWarning( buildCounterTargetPoolAggregatedListWarning++; if (buildCounterTargetPoolAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed858(o.data!); + checkUnnamed864(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetPoolAggregatedListWarning--; @@ -38066,11 +38514,11 @@ api.TargetPoolAggregatedList buildTargetPoolAggregatedList() { buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed856(); + o.items = buildUnnamed862(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed857(); + o.unreachables = buildUnnamed863(); o.warning = buildTargetPoolAggregatedListWarning(); } buildCounterTargetPoolAggregatedList--; @@ -38081,22 +38529,22 @@ void checkTargetPoolAggregatedList(api.TargetPoolAggregatedList o) { buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed856(o.items!); + checkUnnamed862(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed857(o.unreachables!); + checkUnnamed863(o.unreachables!); checkTargetPoolAggregatedListWarning(o.warning!); } buildCounterTargetPoolAggregatedList--; } -core.List buildUnnamed859() => [ +core.List buildUnnamed865() => [ buildHealthStatus(), buildHealthStatus(), ]; -void checkUnnamed859(core.List o) { +void checkUnnamed865(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -38107,7 +38555,7 @@ api.TargetPoolInstanceHealth buildTargetPoolInstanceHealth() { final o = api.TargetPoolInstanceHealth(); buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - o.healthStatus = buildUnnamed859(); + o.healthStatus = buildUnnamed865(); o.kind = 'foo'; } buildCounterTargetPoolInstanceHealth--; @@ -38117,18 +38565,18 @@ api.TargetPoolInstanceHealth buildTargetPoolInstanceHealth() { void checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) { buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - checkUnnamed859(o.healthStatus!); + checkUnnamed865(o.healthStatus!); unittest.expect(o.kind!, unittest.equals('foo')); } buildCounterTargetPoolInstanceHealth--; } -core.List buildUnnamed860() => [ +core.List buildUnnamed866() => [ buildTargetPool(), buildTargetPool(), ]; -void checkUnnamed860(core.List o) { +void checkUnnamed866(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -38155,12 +38603,12 @@ void checkTargetPoolListWarningData(api.TargetPoolListWarningData o) { buildCounterTargetPoolListWarningData--; } -core.List buildUnnamed861() => [ +core.List buildUnnamed867() => [ buildTargetPoolListWarningData(), buildTargetPoolListWarningData(), ]; -void checkUnnamed861(core.List o) { +void checkUnnamed867(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolListWarningData(o[0]); checkTargetPoolListWarningData(o[1]); @@ -38172,7 +38620,7 @@ api.TargetPoolListWarning buildTargetPoolListWarning() { buildCounterTargetPoolListWarning++; if (buildCounterTargetPoolListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed861(); + o.data = buildUnnamed867(); o.message = 'foo'; } buildCounterTargetPoolListWarning--; @@ -38183,7 +38631,7 @@ void checkTargetPoolListWarning(api.TargetPoolListWarning o) { buildCounterTargetPoolListWarning++; if (buildCounterTargetPoolListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed861(o.data!); + checkUnnamed867(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetPoolListWarning--; @@ -38195,7 +38643,7 @@ api.TargetPoolList buildTargetPoolList() { buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { o.id = 'foo'; - o.items = buildUnnamed860(); + o.items = buildUnnamed866(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -38209,7 +38657,7 @@ void checkTargetPoolList(api.TargetPoolList o) { buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed860(o.items!); + checkUnnamed866(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -38218,12 +38666,12 @@ void checkTargetPoolList(api.TargetPoolList o) { buildCounterTargetPoolList--; } -core.List buildUnnamed862() => [ +core.List buildUnnamed868() => [ buildHealthCheckReference(), buildHealthCheckReference(), ]; -void checkUnnamed862(core.List o) { +void checkUnnamed868(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -38234,7 +38682,7 @@ api.TargetPoolsAddHealthCheckRequest buildTargetPoolsAddHealthCheckRequest() { final o = api.TargetPoolsAddHealthCheckRequest(); buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed862(); + o.healthChecks = buildUnnamed868(); } buildCounterTargetPoolsAddHealthCheckRequest--; return o; @@ -38245,17 +38693,17 @@ void checkTargetPoolsAddHealthCheckRequest( ) { buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - checkUnnamed862(o.healthChecks!); + checkUnnamed868(o.healthChecks!); } buildCounterTargetPoolsAddHealthCheckRequest--; } -core.List buildUnnamed863() => [ +core.List buildUnnamed869() => [ buildInstanceReference(), buildInstanceReference(), ]; -void checkUnnamed863(core.List o) { +void checkUnnamed869(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -38266,7 +38714,7 @@ api.TargetPoolsAddInstanceRequest buildTargetPoolsAddInstanceRequest() { final o = api.TargetPoolsAddInstanceRequest(); buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - o.instances = buildUnnamed863(); + o.instances = buildUnnamed869(); } buildCounterTargetPoolsAddInstanceRequest--; return o; @@ -38275,17 +38723,17 @@ api.TargetPoolsAddInstanceRequest buildTargetPoolsAddInstanceRequest() { void checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) { buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - checkUnnamed863(o.instances!); + checkUnnamed869(o.instances!); } buildCounterTargetPoolsAddInstanceRequest--; } -core.List buildUnnamed864() => [ +core.List buildUnnamed870() => [ buildHealthCheckReference(), buildHealthCheckReference(), ]; -void checkUnnamed864(core.List o) { +void checkUnnamed870(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -38297,7 +38745,7 @@ buildTargetPoolsRemoveHealthCheckRequest() { final o = api.TargetPoolsRemoveHealthCheckRequest(); buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed864(); + o.healthChecks = buildUnnamed870(); } buildCounterTargetPoolsRemoveHealthCheckRequest--; return o; @@ -38308,17 +38756,17 @@ void checkTargetPoolsRemoveHealthCheckRequest( ) { buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - checkUnnamed864(o.healthChecks!); + checkUnnamed870(o.healthChecks!); } buildCounterTargetPoolsRemoveHealthCheckRequest--; } -core.List buildUnnamed865() => [ +core.List buildUnnamed871() => [ buildInstanceReference(), buildInstanceReference(), ]; -void checkUnnamed865(core.List o) { +void checkUnnamed871(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -38329,7 +38777,7 @@ api.TargetPoolsRemoveInstanceRequest buildTargetPoolsRemoveInstanceRequest() { final o = api.TargetPoolsRemoveInstanceRequest(); buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - o.instances = buildUnnamed865(); + o.instances = buildUnnamed871(); } buildCounterTargetPoolsRemoveInstanceRequest--; return o; @@ -38340,17 +38788,17 @@ void checkTargetPoolsRemoveInstanceRequest( ) { buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - checkUnnamed865(o.instances!); + checkUnnamed871(o.instances!); } buildCounterTargetPoolsRemoveInstanceRequest--; } -core.List buildUnnamed866() => [ +core.List buildUnnamed872() => [ buildTargetPool(), buildTargetPool(), ]; -void checkUnnamed866(core.List o) { +void checkUnnamed872(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -38379,12 +38827,12 @@ void checkTargetPoolsScopedListWarningData( buildCounterTargetPoolsScopedListWarningData--; } -core.List buildUnnamed867() => [ +core.List buildUnnamed873() => [ buildTargetPoolsScopedListWarningData(), buildTargetPoolsScopedListWarningData(), ]; -void checkUnnamed867(core.List o) { +void checkUnnamed873(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedListWarningData(o[0]); checkTargetPoolsScopedListWarningData(o[1]); @@ -38396,7 +38844,7 @@ api.TargetPoolsScopedListWarning buildTargetPoolsScopedListWarning() { buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed867(); + o.data = buildUnnamed873(); o.message = 'foo'; } buildCounterTargetPoolsScopedListWarning--; @@ -38407,7 +38855,7 @@ void checkTargetPoolsScopedListWarning(api.TargetPoolsScopedListWarning o) { buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed867(o.data!); + checkUnnamed873(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetPoolsScopedListWarning--; @@ -38418,7 +38866,7 @@ api.TargetPoolsScopedList buildTargetPoolsScopedList() { final o = api.TargetPoolsScopedList(); buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - o.targetPools = buildUnnamed866(); + o.targetPools = buildUnnamed872(); o.warning = buildTargetPoolsScopedListWarning(); } buildCounterTargetPoolsScopedList--; @@ -38428,7 +38876,7 @@ api.TargetPoolsScopedList buildTargetPoolsScopedList() { void checkTargetPoolsScopedList(api.TargetPoolsScopedList o) { buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - checkUnnamed866(o.targetPools!); + checkUnnamed872(o.targetPools!); checkTargetPoolsScopedListWarning(o.warning!); } buildCounterTargetPoolsScopedList--; @@ -38519,9 +38967,9 @@ void checkTargetSslProxiesSetProxyHeaderRequest( buildCounterTargetSslProxiesSetProxyHeaderRequest--; } -core.List buildUnnamed868() => ['foo', 'foo']; +core.List buildUnnamed874() => ['foo', 'foo']; -void checkUnnamed868(core.List o) { +void checkUnnamed874(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -38533,7 +38981,7 @@ buildTargetSslProxiesSetSslCertificatesRequest() { final o = api.TargetSslProxiesSetSslCertificatesRequest(); buildCounterTargetSslProxiesSetSslCertificatesRequest++; if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed868(); + o.sslCertificates = buildUnnamed874(); } buildCounterTargetSslProxiesSetSslCertificatesRequest--; return o; @@ -38544,14 +38992,14 @@ void checkTargetSslProxiesSetSslCertificatesRequest( ) { buildCounterTargetSslProxiesSetSslCertificatesRequest++; if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { - checkUnnamed868(o.sslCertificates!); + checkUnnamed874(o.sslCertificates!); } buildCounterTargetSslProxiesSetSslCertificatesRequest--; } -core.List buildUnnamed869() => ['foo', 'foo']; +core.List buildUnnamed875() => ['foo', 'foo']; -void checkUnnamed869(core.List o) { +void checkUnnamed875(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -38571,7 +39019,7 @@ api.TargetSslProxy buildTargetSslProxy() { o.proxyHeader = 'foo'; o.selfLink = 'foo'; o.service = 'foo'; - o.sslCertificates = buildUnnamed869(); + o.sslCertificates = buildUnnamed875(); o.sslPolicy = 'foo'; } buildCounterTargetSslProxy--; @@ -38590,18 +39038,18 @@ void checkTargetSslProxy(api.TargetSslProxy o) { unittest.expect(o.proxyHeader!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.service!, unittest.equals('foo')); - checkUnnamed869(o.sslCertificates!); + checkUnnamed875(o.sslCertificates!); unittest.expect(o.sslPolicy!, unittest.equals('foo')); } buildCounterTargetSslProxy--; } -core.List buildUnnamed870() => [ +core.List buildUnnamed876() => [ buildTargetSslProxy(), buildTargetSslProxy(), ]; -void checkUnnamed870(core.List o) { +void checkUnnamed876(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetSslProxy(o[0]); checkTargetSslProxy(o[1]); @@ -38628,12 +39076,12 @@ void checkTargetSslProxyListWarningData(api.TargetSslProxyListWarningData o) { buildCounterTargetSslProxyListWarningData--; } -core.List buildUnnamed871() => [ +core.List buildUnnamed877() => [ buildTargetSslProxyListWarningData(), buildTargetSslProxyListWarningData(), ]; -void checkUnnamed871(core.List o) { +void checkUnnamed877(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetSslProxyListWarningData(o[0]); checkTargetSslProxyListWarningData(o[1]); @@ -38645,7 +39093,7 @@ api.TargetSslProxyListWarning buildTargetSslProxyListWarning() { buildCounterTargetSslProxyListWarning++; if (buildCounterTargetSslProxyListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed871(); + o.data = buildUnnamed877(); o.message = 'foo'; } buildCounterTargetSslProxyListWarning--; @@ -38656,7 +39104,7 @@ void checkTargetSslProxyListWarning(api.TargetSslProxyListWarning o) { buildCounterTargetSslProxyListWarning++; if (buildCounterTargetSslProxyListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed871(o.data!); + checkUnnamed877(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetSslProxyListWarning--; @@ -38668,7 +39116,7 @@ api.TargetSslProxyList buildTargetSslProxyList() { buildCounterTargetSslProxyList++; if (buildCounterTargetSslProxyList < 3) { o.id = 'foo'; - o.items = buildUnnamed870(); + o.items = buildUnnamed876(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -38682,7 +39130,7 @@ void checkTargetSslProxyList(api.TargetSslProxyList o) { buildCounterTargetSslProxyList++; if (buildCounterTargetSslProxyList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed870(o.items!); + checkUnnamed876(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -38691,12 +39139,12 @@ void checkTargetSslProxyList(api.TargetSslProxyList o) { buildCounterTargetSslProxyList--; } -core.List buildUnnamed872() => [ +core.List buildUnnamed878() => [ buildTargetTcpProxy(), buildTargetTcpProxy(), ]; -void checkUnnamed872(core.List o) { +void checkUnnamed878(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetTcpProxy(o[0]); checkTargetTcpProxy(o[1]); @@ -38726,12 +39174,12 @@ void checkTargetTcpProxiesScopedListWarningData( buildCounterTargetTcpProxiesScopedListWarningData--; } -core.List buildUnnamed873() => [ +core.List buildUnnamed879() => [ buildTargetTcpProxiesScopedListWarningData(), buildTargetTcpProxiesScopedListWarningData(), ]; -void checkUnnamed873(core.List o) { +void checkUnnamed879(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetTcpProxiesScopedListWarningData(o[0]); checkTargetTcpProxiesScopedListWarningData(o[1]); @@ -38743,7 +39191,7 @@ api.TargetTcpProxiesScopedListWarning buildTargetTcpProxiesScopedListWarning() { buildCounterTargetTcpProxiesScopedListWarning++; if (buildCounterTargetTcpProxiesScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed873(); + o.data = buildUnnamed879(); o.message = 'foo'; } buildCounterTargetTcpProxiesScopedListWarning--; @@ -38756,7 +39204,7 @@ void checkTargetTcpProxiesScopedListWarning( buildCounterTargetTcpProxiesScopedListWarning++; if (buildCounterTargetTcpProxiesScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed873(o.data!); + checkUnnamed879(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetTcpProxiesScopedListWarning--; @@ -38767,7 +39215,7 @@ api.TargetTcpProxiesScopedList buildTargetTcpProxiesScopedList() { final o = api.TargetTcpProxiesScopedList(); buildCounterTargetTcpProxiesScopedList++; if (buildCounterTargetTcpProxiesScopedList < 3) { - o.targetTcpProxies = buildUnnamed872(); + o.targetTcpProxies = buildUnnamed878(); o.warning = buildTargetTcpProxiesScopedListWarning(); } buildCounterTargetTcpProxiesScopedList--; @@ -38777,7 +39225,7 @@ api.TargetTcpProxiesScopedList buildTargetTcpProxiesScopedList() { void checkTargetTcpProxiesScopedList(api.TargetTcpProxiesScopedList o) { buildCounterTargetTcpProxiesScopedList++; if (buildCounterTargetTcpProxiesScopedList < 3) { - checkUnnamed872(o.targetTcpProxies!); + checkUnnamed878(o.targetTcpProxies!); checkTargetTcpProxiesScopedListWarning(o.warning!); } buildCounterTargetTcpProxiesScopedList--; @@ -38864,20 +39312,20 @@ void checkTargetTcpProxy(api.TargetTcpProxy o) { buildCounterTargetTcpProxy--; } -core.Map buildUnnamed874() => { +core.Map buildUnnamed880() => { 'x': buildTargetTcpProxiesScopedList(), 'y': buildTargetTcpProxiesScopedList(), }; -void checkUnnamed874(core.Map o) { +void checkUnnamed880(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkTargetTcpProxiesScopedList(o['x']!); checkTargetTcpProxiesScopedList(o['y']!); } -core.List buildUnnamed875() => ['foo', 'foo']; +core.List buildUnnamed881() => ['foo', 'foo']; -void checkUnnamed875(core.List o) { +void checkUnnamed881(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -38907,12 +39355,12 @@ void checkTargetTcpProxyAggregatedListWarningData( buildCounterTargetTcpProxyAggregatedListWarningData--; } -core.List buildUnnamed876() => [ +core.List buildUnnamed882() => [ buildTargetTcpProxyAggregatedListWarningData(), buildTargetTcpProxyAggregatedListWarningData(), ]; -void checkUnnamed876(core.List o) { +void checkUnnamed882(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetTcpProxyAggregatedListWarningData(o[0]); checkTargetTcpProxyAggregatedListWarningData(o[1]); @@ -38925,7 +39373,7 @@ buildTargetTcpProxyAggregatedListWarning() { buildCounterTargetTcpProxyAggregatedListWarning++; if (buildCounterTargetTcpProxyAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed876(); + o.data = buildUnnamed882(); o.message = 'foo'; } buildCounterTargetTcpProxyAggregatedListWarning--; @@ -38938,7 +39386,7 @@ void checkTargetTcpProxyAggregatedListWarning( buildCounterTargetTcpProxyAggregatedListWarning++; if (buildCounterTargetTcpProxyAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed876(o.data!); + checkUnnamed882(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetTcpProxyAggregatedListWarning--; @@ -38950,11 +39398,11 @@ api.TargetTcpProxyAggregatedList buildTargetTcpProxyAggregatedList() { buildCounterTargetTcpProxyAggregatedList++; if (buildCounterTargetTcpProxyAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed874(); + o.items = buildUnnamed880(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed875(); + o.unreachables = buildUnnamed881(); o.warning = buildTargetTcpProxyAggregatedListWarning(); } buildCounterTargetTcpProxyAggregatedList--; @@ -38965,22 +39413,22 @@ void checkTargetTcpProxyAggregatedList(api.TargetTcpProxyAggregatedList o) { buildCounterTargetTcpProxyAggregatedList++; if (buildCounterTargetTcpProxyAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed874(o.items!); + checkUnnamed880(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed875(o.unreachables!); + checkUnnamed881(o.unreachables!); checkTargetTcpProxyAggregatedListWarning(o.warning!); } buildCounterTargetTcpProxyAggregatedList--; } -core.List buildUnnamed877() => [ +core.List buildUnnamed883() => [ buildTargetTcpProxy(), buildTargetTcpProxy(), ]; -void checkUnnamed877(core.List o) { +void checkUnnamed883(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetTcpProxy(o[0]); checkTargetTcpProxy(o[1]); @@ -39007,12 +39455,12 @@ void checkTargetTcpProxyListWarningData(api.TargetTcpProxyListWarningData o) { buildCounterTargetTcpProxyListWarningData--; } -core.List buildUnnamed878() => [ +core.List buildUnnamed884() => [ buildTargetTcpProxyListWarningData(), buildTargetTcpProxyListWarningData(), ]; -void checkUnnamed878(core.List o) { +void checkUnnamed884(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetTcpProxyListWarningData(o[0]); checkTargetTcpProxyListWarningData(o[1]); @@ -39024,7 +39472,7 @@ api.TargetTcpProxyListWarning buildTargetTcpProxyListWarning() { buildCounterTargetTcpProxyListWarning++; if (buildCounterTargetTcpProxyListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed878(); + o.data = buildUnnamed884(); o.message = 'foo'; } buildCounterTargetTcpProxyListWarning--; @@ -39035,7 +39483,7 @@ void checkTargetTcpProxyListWarning(api.TargetTcpProxyListWarning o) { buildCounterTargetTcpProxyListWarning++; if (buildCounterTargetTcpProxyListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed878(o.data!); + checkUnnamed884(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetTcpProxyListWarning--; @@ -39047,7 +39495,7 @@ api.TargetTcpProxyList buildTargetTcpProxyList() { buildCounterTargetTcpProxyList++; if (buildCounterTargetTcpProxyList < 3) { o.id = 'foo'; - o.items = buildUnnamed877(); + o.items = buildUnnamed883(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -39061,7 +39509,7 @@ void checkTargetTcpProxyList(api.TargetTcpProxyList o) { buildCounterTargetTcpProxyList++; if (buildCounterTargetTcpProxyList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed877(o.items!); + checkUnnamed883(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -39070,28 +39518,28 @@ void checkTargetTcpProxyList(api.TargetTcpProxyList o) { buildCounterTargetTcpProxyList--; } -core.List buildUnnamed879() => ['foo', 'foo']; +core.List buildUnnamed885() => ['foo', 'foo']; -void checkUnnamed879(core.List o) { +void checkUnnamed885(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed880() => { +core.Map buildUnnamed886() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed880(core.Map o) { +void checkUnnamed886(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed881() => ['foo', 'foo']; +core.List buildUnnamed887() => ['foo', 'foo']; -void checkUnnamed881(core.List o) { +void checkUnnamed887(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -39104,17 +39552,17 @@ api.TargetVpnGateway buildTargetVpnGateway() { if (buildCounterTargetVpnGateway < 3) { o.creationTimestamp = 'foo'; o.description = 'foo'; - o.forwardingRules = buildUnnamed879(); + o.forwardingRules = buildUnnamed885(); o.id = 'foo'; o.kind = 'foo'; o.labelFingerprint = 'foo'; - o.labels = buildUnnamed880(); + o.labels = buildUnnamed886(); o.name = 'foo'; o.network = 'foo'; o.region = 'foo'; o.selfLink = 'foo'; o.status = 'foo'; - o.tunnels = buildUnnamed881(); + o.tunnels = buildUnnamed887(); } buildCounterTargetVpnGateway--; return o; @@ -39125,35 +39573,35 @@ void checkTargetVpnGateway(api.TargetVpnGateway o) { if (buildCounterTargetVpnGateway < 3) { unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed879(o.forwardingRules!); + checkUnnamed885(o.forwardingRules!); unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed880(o.labels!); + checkUnnamed886(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.status!, unittest.equals('foo')); - checkUnnamed881(o.tunnels!); + checkUnnamed887(o.tunnels!); } buildCounterTargetVpnGateway--; } -core.Map buildUnnamed882() => { +core.Map buildUnnamed888() => { 'x': buildTargetVpnGatewaysScopedList(), 'y': buildTargetVpnGatewaysScopedList(), }; -void checkUnnamed882(core.Map o) { +void checkUnnamed888(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedList(o['x']!); checkTargetVpnGatewaysScopedList(o['y']!); } -core.List buildUnnamed883() => ['foo', 'foo']; +core.List buildUnnamed889() => ['foo', 'foo']; -void checkUnnamed883(core.List o) { +void checkUnnamed889(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -39183,12 +39631,12 @@ void checkTargetVpnGatewayAggregatedListWarningData( buildCounterTargetVpnGatewayAggregatedListWarningData--; } -core.List buildUnnamed884() => [ +core.List buildUnnamed890() => [ buildTargetVpnGatewayAggregatedListWarningData(), buildTargetVpnGatewayAggregatedListWarningData(), ]; -void checkUnnamed884( +void checkUnnamed890( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -39203,7 +39651,7 @@ buildTargetVpnGatewayAggregatedListWarning() { buildCounterTargetVpnGatewayAggregatedListWarning++; if (buildCounterTargetVpnGatewayAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed884(); + o.data = buildUnnamed890(); o.message = 'foo'; } buildCounterTargetVpnGatewayAggregatedListWarning--; @@ -39216,7 +39664,7 @@ void checkTargetVpnGatewayAggregatedListWarning( buildCounterTargetVpnGatewayAggregatedListWarning++; if (buildCounterTargetVpnGatewayAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed884(o.data!); + checkUnnamed890(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetVpnGatewayAggregatedListWarning--; @@ -39228,11 +39676,11 @@ api.TargetVpnGatewayAggregatedList buildTargetVpnGatewayAggregatedList() { buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed882(); + o.items = buildUnnamed888(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed883(); + o.unreachables = buildUnnamed889(); o.warning = buildTargetVpnGatewayAggregatedListWarning(); } buildCounterTargetVpnGatewayAggregatedList--; @@ -39243,22 +39691,22 @@ void checkTargetVpnGatewayAggregatedList(api.TargetVpnGatewayAggregatedList o) { buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed882(o.items!); + checkUnnamed888(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed883(o.unreachables!); + checkUnnamed889(o.unreachables!); checkTargetVpnGatewayAggregatedListWarning(o.warning!); } buildCounterTargetVpnGatewayAggregatedList--; } -core.List buildUnnamed885() => [ +core.List buildUnnamed891() => [ buildTargetVpnGateway(), buildTargetVpnGateway(), ]; -void checkUnnamed885(core.List o) { +void checkUnnamed891(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -39287,12 +39735,12 @@ void checkTargetVpnGatewayListWarningData( buildCounterTargetVpnGatewayListWarningData--; } -core.List buildUnnamed886() => [ +core.List buildUnnamed892() => [ buildTargetVpnGatewayListWarningData(), buildTargetVpnGatewayListWarningData(), ]; -void checkUnnamed886(core.List o) { +void checkUnnamed892(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewayListWarningData(o[0]); checkTargetVpnGatewayListWarningData(o[1]); @@ -39304,7 +39752,7 @@ api.TargetVpnGatewayListWarning buildTargetVpnGatewayListWarning() { buildCounterTargetVpnGatewayListWarning++; if (buildCounterTargetVpnGatewayListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed886(); + o.data = buildUnnamed892(); o.message = 'foo'; } buildCounterTargetVpnGatewayListWarning--; @@ -39315,7 +39763,7 @@ void checkTargetVpnGatewayListWarning(api.TargetVpnGatewayListWarning o) { buildCounterTargetVpnGatewayListWarning++; if (buildCounterTargetVpnGatewayListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed886(o.data!); + checkUnnamed892(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetVpnGatewayListWarning--; @@ -39327,7 +39775,7 @@ api.TargetVpnGatewayList buildTargetVpnGatewayList() { buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { o.id = 'foo'; - o.items = buildUnnamed885(); + o.items = buildUnnamed891(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -39341,7 +39789,7 @@ void checkTargetVpnGatewayList(api.TargetVpnGatewayList o) { buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed885(o.items!); + checkUnnamed891(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -39350,12 +39798,12 @@ void checkTargetVpnGatewayList(api.TargetVpnGatewayList o) { buildCounterTargetVpnGatewayList--; } -core.List buildUnnamed887() => [ +core.List buildUnnamed893() => [ buildTargetVpnGateway(), buildTargetVpnGateway(), ]; -void checkUnnamed887(core.List o) { +void checkUnnamed893(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -39385,12 +39833,12 @@ void checkTargetVpnGatewaysScopedListWarningData( buildCounterTargetVpnGatewaysScopedListWarningData--; } -core.List buildUnnamed888() => [ +core.List buildUnnamed894() => [ buildTargetVpnGatewaysScopedListWarningData(), buildTargetVpnGatewaysScopedListWarningData(), ]; -void checkUnnamed888(core.List o) { +void checkUnnamed894(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedListWarningData(o[0]); checkTargetVpnGatewaysScopedListWarningData(o[1]); @@ -39403,7 +39851,7 @@ buildTargetVpnGatewaysScopedListWarning() { buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed888(); + o.data = buildUnnamed894(); o.message = 'foo'; } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -39416,7 +39864,7 @@ void checkTargetVpnGatewaysScopedListWarning( buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed888(o.data!); + checkUnnamed894(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -39427,7 +39875,7 @@ api.TargetVpnGatewaysScopedList buildTargetVpnGatewaysScopedList() { final o = api.TargetVpnGatewaysScopedList(); buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - o.targetVpnGateways = buildUnnamed887(); + o.targetVpnGateways = buildUnnamed893(); o.warning = buildTargetVpnGatewaysScopedListWarning(); } buildCounterTargetVpnGatewaysScopedList--; @@ -39437,18 +39885,18 @@ api.TargetVpnGatewaysScopedList buildTargetVpnGatewaysScopedList() { void checkTargetVpnGatewaysScopedList(api.TargetVpnGatewaysScopedList o) { buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - checkUnnamed887(o.targetVpnGateways!); + checkUnnamed893(o.targetVpnGateways!); checkTargetVpnGatewaysScopedListWarning(o.warning!); } buildCounterTargetVpnGatewaysScopedList--; } -core.List buildUnnamed889() => [ +core.List buildUnnamed895() => [ buildUrlMapTestHeader(), buildUrlMapTestHeader(), ]; -void checkUnnamed889(core.List o) { +void checkUnnamed895(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapTestHeader(o[0]); checkUrlMapTestHeader(o[1]); @@ -39465,7 +39913,7 @@ api.TestFailure buildTestFailure() { o.expectedOutputUrl = 'foo'; o.expectedRedirectResponseCode = 42; o.expectedService = 'foo'; - o.headers = buildUnnamed889(); + o.headers = buildUnnamed895(); o.host = 'foo'; o.path = 'foo'; } @@ -39482,16 +39930,16 @@ void checkTestFailure(api.TestFailure o) { unittest.expect(o.expectedOutputUrl!, unittest.equals('foo')); unittest.expect(o.expectedRedirectResponseCode!, unittest.equals(42)); unittest.expect(o.expectedService!, unittest.equals('foo')); - checkUnnamed889(o.headers!); + checkUnnamed895(o.headers!); unittest.expect(o.host!, unittest.equals('foo')); unittest.expect(o.path!, unittest.equals('foo')); } buildCounterTestFailure--; } -core.List buildUnnamed890() => ['foo', 'foo']; +core.List buildUnnamed896() => ['foo', 'foo']; -void checkUnnamed890(core.List o) { +void checkUnnamed896(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -39502,7 +39950,7 @@ api.TestPermissionsRequest buildTestPermissionsRequest() { final o = api.TestPermissionsRequest(); buildCounterTestPermissionsRequest++; if (buildCounterTestPermissionsRequest < 3) { - o.permissions = buildUnnamed890(); + o.permissions = buildUnnamed896(); } buildCounterTestPermissionsRequest--; return o; @@ -39511,14 +39959,14 @@ api.TestPermissionsRequest buildTestPermissionsRequest() { void checkTestPermissionsRequest(api.TestPermissionsRequest o) { buildCounterTestPermissionsRequest++; if (buildCounterTestPermissionsRequest < 3) { - checkUnnamed890(o.permissions!); + checkUnnamed896(o.permissions!); } buildCounterTestPermissionsRequest--; } -core.List buildUnnamed891() => ['foo', 'foo']; +core.List buildUnnamed897() => ['foo', 'foo']; -void checkUnnamed891(core.List o) { +void checkUnnamed897(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -39529,7 +39977,7 @@ api.TestPermissionsResponse buildTestPermissionsResponse() { final o = api.TestPermissionsResponse(); buildCounterTestPermissionsResponse++; if (buildCounterTestPermissionsResponse < 3) { - o.permissions = buildUnnamed891(); + o.permissions = buildUnnamed897(); } buildCounterTestPermissionsResponse--; return o; @@ -39538,7 +39986,7 @@ api.TestPermissionsResponse buildTestPermissionsResponse() { void checkTestPermissionsResponse(api.TestPermissionsResponse o) { buildCounterTestPermissionsResponse++; if (buildCounterTestPermissionsResponse < 3) { - checkUnnamed891(o.permissions!); + checkUnnamed897(o.permissions!); } buildCounterTestPermissionsResponse--; } @@ -39564,9 +40012,9 @@ void checkUint128(api.Uint128 o) { buildCounterUint128--; } -core.List buildUnnamed892() => ['foo', 'foo']; +core.List buildUnnamed898() => ['foo', 'foo']; -void checkUnnamed892(core.List o) { +void checkUnnamed898(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -39580,7 +40028,7 @@ api.UpcomingMaintenance buildUpcomingMaintenance() { o.canReschedule = true; o.latestWindowStartTime = 'foo'; o.maintenanceOnShutdown = true; - o.maintenanceReasons = buildUnnamed892(); + o.maintenanceReasons = buildUnnamed898(); o.maintenanceStatus = 'foo'; o.type = 'foo'; o.windowEndTime = 'foo'; @@ -39596,7 +40044,7 @@ void checkUpcomingMaintenance(api.UpcomingMaintenance o) { unittest.expect(o.canReschedule!, unittest.isTrue); unittest.expect(o.latestWindowStartTime!, unittest.equals('foo')); unittest.expect(o.maintenanceOnShutdown!, unittest.isTrue); - checkUnnamed892(o.maintenanceReasons!); + checkUnnamed898(o.maintenanceReasons!); unittest.expect(o.maintenanceStatus!, unittest.equals('foo')); unittest.expect(o.type!, unittest.equals('foo')); unittest.expect(o.windowEndTime!, unittest.equals('foo')); @@ -39605,31 +40053,31 @@ void checkUpcomingMaintenance(api.UpcomingMaintenance o) { buildCounterUpcomingMaintenance--; } -core.List buildUnnamed893() => [buildHostRule(), buildHostRule()]; +core.List buildUnnamed899() => [buildHostRule(), buildHostRule()]; -void checkUnnamed893(core.List o) { +void checkUnnamed899(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHostRule(o[0]); checkHostRule(o[1]); } -core.List buildUnnamed894() => [ +core.List buildUnnamed900() => [ buildPathMatcher(), buildPathMatcher(), ]; -void checkUnnamed894(core.List o) { +void checkUnnamed900(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPathMatcher(o[0]); checkPathMatcher(o[1]); } -core.List buildUnnamed895() => [ +core.List buildUnnamed901() => [ buildUrlMapTest(), buildUrlMapTest(), ]; -void checkUnnamed895(core.List o) { +void checkUnnamed901(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapTest(o[0]); checkUrlMapTest(o[1]); @@ -39648,14 +40096,14 @@ api.UrlMap buildUrlMap() { o.description = 'foo'; o.fingerprint = 'foo'; o.headerAction = buildHttpHeaderAction(); - o.hostRules = buildUnnamed893(); + o.hostRules = buildUnnamed899(); o.id = 'foo'; o.kind = 'foo'; o.name = 'foo'; - o.pathMatchers = buildUnnamed894(); + o.pathMatchers = buildUnnamed900(); o.region = 'foo'; o.selfLink = 'foo'; - o.tests = buildUnnamed895(); + o.tests = buildUnnamed901(); } buildCounterUrlMap--; return o; @@ -39672,21 +40120,21 @@ void checkUrlMap(api.UrlMap o) { unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.fingerprint!, unittest.equals('foo')); checkHttpHeaderAction(o.headerAction!); - checkUnnamed893(o.hostRules!); + checkUnnamed899(o.hostRules!); unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed894(o.pathMatchers!); + checkUnnamed900(o.pathMatchers!); unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed895(o.tests!); + checkUnnamed901(o.tests!); } buildCounterUrlMap--; } -core.List buildUnnamed896() => [buildUrlMap(), buildUrlMap()]; +core.List buildUnnamed902() => [buildUrlMap(), buildUrlMap()]; -void checkUnnamed896(core.List o) { +void checkUnnamed902(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); @@ -39713,12 +40161,12 @@ void checkUrlMapListWarningData(api.UrlMapListWarningData o) { buildCounterUrlMapListWarningData--; } -core.List buildUnnamed897() => [ +core.List buildUnnamed903() => [ buildUrlMapListWarningData(), buildUrlMapListWarningData(), ]; -void checkUnnamed897(core.List o) { +void checkUnnamed903(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapListWarningData(o[0]); checkUrlMapListWarningData(o[1]); @@ -39730,7 +40178,7 @@ api.UrlMapListWarning buildUrlMapListWarning() { buildCounterUrlMapListWarning++; if (buildCounterUrlMapListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed897(); + o.data = buildUnnamed903(); o.message = 'foo'; } buildCounterUrlMapListWarning--; @@ -39741,7 +40189,7 @@ void checkUrlMapListWarning(api.UrlMapListWarning o) { buildCounterUrlMapListWarning++; if (buildCounterUrlMapListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed897(o.data!); + checkUnnamed903(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterUrlMapListWarning--; @@ -39753,7 +40201,7 @@ api.UrlMapList buildUrlMapList() { buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { o.id = 'foo'; - o.items = buildUnnamed896(); + o.items = buildUnnamed902(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -39767,7 +40215,7 @@ void checkUrlMapList(api.UrlMapList o) { buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed896(o.items!); + checkUnnamed902(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -39795,12 +40243,12 @@ void checkUrlMapReference(api.UrlMapReference o) { buildCounterUrlMapReference--; } -core.List buildUnnamed898() => [ +core.List buildUnnamed904() => [ buildUrlMapTestHeader(), buildUrlMapTestHeader(), ]; -void checkUnnamed898(core.List o) { +void checkUnnamed904(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapTestHeader(o[0]); checkUrlMapTestHeader(o[1]); @@ -39814,7 +40262,7 @@ api.UrlMapTest buildUrlMapTest() { o.description = 'foo'; o.expectedOutputUrl = 'foo'; o.expectedRedirectResponseCode = 42; - o.headers = buildUnnamed898(); + o.headers = buildUnnamed904(); o.host = 'foo'; o.path = 'foo'; o.service = 'foo'; @@ -39829,7 +40277,7 @@ void checkUrlMapTest(api.UrlMapTest o) { unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.expectedOutputUrl!, unittest.equals('foo')); unittest.expect(o.expectedRedirectResponseCode!, unittest.equals(42)); - checkUnnamed898(o.headers!); + checkUnnamed904(o.headers!); unittest.expect(o.host!, unittest.equals('foo')); unittest.expect(o.path!, unittest.equals('foo')); unittest.expect(o.service!, unittest.equals('foo')); @@ -39858,20 +40306,20 @@ void checkUrlMapTestHeader(api.UrlMapTestHeader o) { buildCounterUrlMapTestHeader--; } -core.List buildUnnamed899() => ['foo', 'foo']; +core.List buildUnnamed905() => ['foo', 'foo']; -void checkUnnamed899(core.List o) { +void checkUnnamed905(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed900() => [ +core.List buildUnnamed906() => [ buildTestFailure(), buildTestFailure(), ]; -void checkUnnamed900(core.List o) { +void checkUnnamed906(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTestFailure(o[0]); checkTestFailure(o[1]); @@ -39882,9 +40330,9 @@ api.UrlMapValidationResult buildUrlMapValidationResult() { final o = api.UrlMapValidationResult(); buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - o.loadErrors = buildUnnamed899(); + o.loadErrors = buildUnnamed905(); o.loadSucceeded = true; - o.testFailures = buildUnnamed900(); + o.testFailures = buildUnnamed906(); o.testPassed = true; } buildCounterUrlMapValidationResult--; @@ -39894,28 +40342,28 @@ api.UrlMapValidationResult buildUrlMapValidationResult() { void checkUrlMapValidationResult(api.UrlMapValidationResult o) { buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - checkUnnamed899(o.loadErrors!); + checkUnnamed905(o.loadErrors!); unittest.expect(o.loadSucceeded!, unittest.isTrue); - checkUnnamed900(o.testFailures!); + checkUnnamed906(o.testFailures!); unittest.expect(o.testPassed!, unittest.isTrue); } buildCounterUrlMapValidationResult--; } -core.Map buildUnnamed901() => { +core.Map buildUnnamed907() => { 'x': buildUrlMapsScopedList(), 'y': buildUrlMapsScopedList(), }; -void checkUnnamed901(core.Map o) { +void checkUnnamed907(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapsScopedList(o['x']!); checkUrlMapsScopedList(o['y']!); } -core.List buildUnnamed902() => ['foo', 'foo']; +core.List buildUnnamed908() => ['foo', 'foo']; -void checkUnnamed902(core.List o) { +void checkUnnamed908(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -39944,12 +40392,12 @@ void checkUrlMapsAggregatedListWarningData( buildCounterUrlMapsAggregatedListWarningData--; } -core.List buildUnnamed903() => [ +core.List buildUnnamed909() => [ buildUrlMapsAggregatedListWarningData(), buildUrlMapsAggregatedListWarningData(), ]; -void checkUnnamed903(core.List o) { +void checkUnnamed909(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapsAggregatedListWarningData(o[0]); checkUrlMapsAggregatedListWarningData(o[1]); @@ -39961,7 +40409,7 @@ api.UrlMapsAggregatedListWarning buildUrlMapsAggregatedListWarning() { buildCounterUrlMapsAggregatedListWarning++; if (buildCounterUrlMapsAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed903(); + o.data = buildUnnamed909(); o.message = 'foo'; } buildCounterUrlMapsAggregatedListWarning--; @@ -39972,7 +40420,7 @@ void checkUrlMapsAggregatedListWarning(api.UrlMapsAggregatedListWarning o) { buildCounterUrlMapsAggregatedListWarning++; if (buildCounterUrlMapsAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed903(o.data!); + checkUnnamed909(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterUrlMapsAggregatedListWarning--; @@ -39984,11 +40432,11 @@ api.UrlMapsAggregatedList buildUrlMapsAggregatedList() { buildCounterUrlMapsAggregatedList++; if (buildCounterUrlMapsAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed901(); + o.items = buildUnnamed907(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed902(); + o.unreachables = buildUnnamed908(); o.warning = buildUrlMapsAggregatedListWarning(); } buildCounterUrlMapsAggregatedList--; @@ -39999,19 +40447,19 @@ void checkUrlMapsAggregatedList(api.UrlMapsAggregatedList o) { buildCounterUrlMapsAggregatedList++; if (buildCounterUrlMapsAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed901(o.items!); + checkUnnamed907(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed902(o.unreachables!); + checkUnnamed908(o.unreachables!); checkUrlMapsAggregatedListWarning(o.warning!); } buildCounterUrlMapsAggregatedList--; } -core.List buildUnnamed904() => [buildUrlMap(), buildUrlMap()]; +core.List buildUnnamed910() => [buildUrlMap(), buildUrlMap()]; -void checkUnnamed904(core.List o) { +void checkUnnamed910(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); @@ -40038,12 +40486,12 @@ void checkUrlMapsScopedListWarningData(api.UrlMapsScopedListWarningData o) { buildCounterUrlMapsScopedListWarningData--; } -core.List buildUnnamed905() => [ +core.List buildUnnamed911() => [ buildUrlMapsScopedListWarningData(), buildUrlMapsScopedListWarningData(), ]; -void checkUnnamed905(core.List o) { +void checkUnnamed911(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapsScopedListWarningData(o[0]); checkUrlMapsScopedListWarningData(o[1]); @@ -40055,7 +40503,7 @@ api.UrlMapsScopedListWarning buildUrlMapsScopedListWarning() { buildCounterUrlMapsScopedListWarning++; if (buildCounterUrlMapsScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed905(); + o.data = buildUnnamed911(); o.message = 'foo'; } buildCounterUrlMapsScopedListWarning--; @@ -40066,7 +40514,7 @@ void checkUrlMapsScopedListWarning(api.UrlMapsScopedListWarning o) { buildCounterUrlMapsScopedListWarning++; if (buildCounterUrlMapsScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed905(o.data!); + checkUnnamed911(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterUrlMapsScopedListWarning--; @@ -40077,7 +40525,7 @@ api.UrlMapsScopedList buildUrlMapsScopedList() { final o = api.UrlMapsScopedList(); buildCounterUrlMapsScopedList++; if (buildCounterUrlMapsScopedList < 3) { - o.urlMaps = buildUnnamed904(); + o.urlMaps = buildUnnamed910(); o.warning = buildUrlMapsScopedListWarning(); } buildCounterUrlMapsScopedList--; @@ -40087,15 +40535,15 @@ api.UrlMapsScopedList buildUrlMapsScopedList() { void checkUrlMapsScopedList(api.UrlMapsScopedList o) { buildCounterUrlMapsScopedList++; if (buildCounterUrlMapsScopedList < 3) { - checkUnnamed904(o.urlMaps!); + checkUnnamed910(o.urlMaps!); checkUrlMapsScopedListWarning(o.warning!); } buildCounterUrlMapsScopedList--; } -core.List buildUnnamed906() => ['foo', 'foo']; +core.List buildUnnamed912() => ['foo', 'foo']; -void checkUnnamed906(core.List o) { +void checkUnnamed912(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -40106,7 +40554,7 @@ api.UrlMapsValidateRequest buildUrlMapsValidateRequest() { final o = api.UrlMapsValidateRequest(); buildCounterUrlMapsValidateRequest++; if (buildCounterUrlMapsValidateRequest < 3) { - o.loadBalancingSchemes = buildUnnamed906(); + o.loadBalancingSchemes = buildUnnamed912(); o.resource = buildUrlMap(); } buildCounterUrlMapsValidateRequest--; @@ -40116,7 +40564,7 @@ api.UrlMapsValidateRequest buildUrlMapsValidateRequest() { void checkUrlMapsValidateRequest(api.UrlMapsValidateRequest o) { buildCounterUrlMapsValidateRequest++; if (buildCounterUrlMapsValidateRequest < 3) { - checkUnnamed906(o.loadBalancingSchemes!); + checkUnnamed912(o.loadBalancingSchemes!); checkUrlMap(o.resource!); } buildCounterUrlMapsValidateRequest--; @@ -40164,12 +40612,12 @@ void checkUrlRewrite(api.UrlRewrite o) { buildCounterUrlRewrite--; } -core.List buildUnnamed907() => [ +core.List buildUnnamed913() => [ buildUsableSubnetworkSecondaryRange(), buildUsableSubnetworkSecondaryRange(), ]; -void checkUnnamed907(core.List o) { +void checkUnnamed913(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkUsableSubnetworkSecondaryRange(o[0]); checkUsableSubnetworkSecondaryRange(o[1]); @@ -40187,7 +40635,7 @@ api.UsableSubnetwork buildUsableSubnetwork() { o.network = 'foo'; o.purpose = 'foo'; o.role = 'foo'; - o.secondaryIpRanges = buildUnnamed907(); + o.secondaryIpRanges = buildUnnamed913(); o.stackType = 'foo'; o.subnetwork = 'foo'; } @@ -40205,7 +40653,7 @@ void checkUsableSubnetwork(api.UsableSubnetwork o) { unittest.expect(o.network!, unittest.equals('foo')); unittest.expect(o.purpose!, unittest.equals('foo')); unittest.expect(o.role!, unittest.equals('foo')); - checkUnnamed907(o.secondaryIpRanges!); + checkUnnamed913(o.secondaryIpRanges!); unittest.expect(o.stackType!, unittest.equals('foo')); unittest.expect(o.subnetwork!, unittest.equals('foo')); } @@ -40233,31 +40681,31 @@ void checkUsableSubnetworkSecondaryRange(api.UsableSubnetworkSecondaryRange o) { buildCounterUsableSubnetworkSecondaryRange--; } -core.List buildUnnamed908() => [ +core.List buildUnnamed914() => [ buildUsableSubnetwork(), buildUsableSubnetwork(), ]; -void checkUnnamed908(core.List o) { +void checkUnnamed914(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkUsableSubnetwork(o[0]); checkUsableSubnetwork(o[1]); } -core.List buildUnnamed909() => [ +core.List buildUnnamed915() => [ buildSubnetworksScopedWarning(), buildSubnetworksScopedWarning(), ]; -void checkUnnamed909(core.List o) { +void checkUnnamed915(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedWarning(o[0]); checkSubnetworksScopedWarning(o[1]); } -core.List buildUnnamed910() => ['foo', 'foo']; +core.List buildUnnamed916() => ['foo', 'foo']; -void checkUnnamed910(core.List o) { +void checkUnnamed916(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -40287,12 +40735,12 @@ void checkUsableSubnetworksAggregatedListWarningData( buildCounterUsableSubnetworksAggregatedListWarningData--; } -core.List buildUnnamed911() => [ +core.List buildUnnamed917() => [ buildUsableSubnetworksAggregatedListWarningData(), buildUsableSubnetworksAggregatedListWarningData(), ]; -void checkUnnamed911( +void checkUnnamed917( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -40307,7 +40755,7 @@ buildUsableSubnetworksAggregatedListWarning() { buildCounterUsableSubnetworksAggregatedListWarning++; if (buildCounterUsableSubnetworksAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed911(); + o.data = buildUnnamed917(); o.message = 'foo'; } buildCounterUsableSubnetworksAggregatedListWarning--; @@ -40320,7 +40768,7 @@ void checkUsableSubnetworksAggregatedListWarning( buildCounterUsableSubnetworksAggregatedListWarning++; if (buildCounterUsableSubnetworksAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed911(o.data!); + checkUnnamed917(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterUsableSubnetworksAggregatedListWarning--; @@ -40332,12 +40780,12 @@ api.UsableSubnetworksAggregatedList buildUsableSubnetworksAggregatedList() { buildCounterUsableSubnetworksAggregatedList++; if (buildCounterUsableSubnetworksAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed908(); + o.items = buildUnnamed914(); o.kind = 'foo'; o.nextPageToken = 'foo'; - o.scopedWarnings = buildUnnamed909(); + o.scopedWarnings = buildUnnamed915(); o.selfLink = 'foo'; - o.unreachables = buildUnnamed910(); + o.unreachables = buildUnnamed916(); o.warning = buildUsableSubnetworksAggregatedListWarning(); } buildCounterUsableSubnetworksAggregatedList--; @@ -40350,12 +40798,12 @@ void checkUsableSubnetworksAggregatedList( buildCounterUsableSubnetworksAggregatedList++; if (buildCounterUsableSubnetworksAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed908(o.items!); + checkUnnamed914(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed909(o.scopedWarnings!); + checkUnnamed915(o.scopedWarnings!); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed910(o.unreachables!); + checkUnnamed916(o.unreachables!); checkUsableSubnetworksAggregatedListWarning(o.warning!); } buildCounterUsableSubnetworksAggregatedList--; @@ -40382,12 +40830,12 @@ void checkUsageExportLocation(api.UsageExportLocation o) { buildCounterUsageExportLocation--; } -core.List buildUnnamed912() => [ +core.List buildUnnamed918() => [ buildVmEndpointNatMappingsInterfaceNatMappings(), buildVmEndpointNatMappingsInterfaceNatMappings(), ]; -void checkUnnamed912( +void checkUnnamed918( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -40401,7 +40849,7 @@ api.VmEndpointNatMappings buildVmEndpointNatMappings() { buildCounterVmEndpointNatMappings++; if (buildCounterVmEndpointNatMappings < 3) { o.instanceName = 'foo'; - o.interfaceNatMappings = buildUnnamed912(); + o.interfaceNatMappings = buildUnnamed918(); } buildCounterVmEndpointNatMappings--; return o; @@ -40411,34 +40859,34 @@ void checkVmEndpointNatMappings(api.VmEndpointNatMappings o) { buildCounterVmEndpointNatMappings++; if (buildCounterVmEndpointNatMappings < 3) { unittest.expect(o.instanceName!, unittest.equals('foo')); - checkUnnamed912(o.interfaceNatMappings!); + checkUnnamed918(o.interfaceNatMappings!); } buildCounterVmEndpointNatMappings--; } -core.List buildUnnamed913() => ['foo', 'foo']; +core.List buildUnnamed919() => ['foo', 'foo']; -void checkUnnamed913(core.List o) { +void checkUnnamed919(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed914() => ['foo', 'foo']; +core.List buildUnnamed920() => ['foo', 'foo']; -void checkUnnamed914(core.List o) { +void checkUnnamed920(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } core.List -buildUnnamed915() => [ +buildUnnamed921() => [ buildVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings(), buildVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings(), ]; -void checkUnnamed915( +void checkUnnamed921( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -40452,11 +40900,11 @@ buildVmEndpointNatMappingsInterfaceNatMappings() { final o = api.VmEndpointNatMappingsInterfaceNatMappings(); buildCounterVmEndpointNatMappingsInterfaceNatMappings++; if (buildCounterVmEndpointNatMappingsInterfaceNatMappings < 3) { - o.drainNatIpPortRanges = buildUnnamed913(); - o.natIpPortRanges = buildUnnamed914(); + o.drainNatIpPortRanges = buildUnnamed919(); + o.natIpPortRanges = buildUnnamed920(); o.numTotalDrainNatPorts = 42; o.numTotalNatPorts = 42; - o.ruleMappings = buildUnnamed915(); + o.ruleMappings = buildUnnamed921(); o.sourceAliasIpRange = 'foo'; o.sourceVirtualIp = 'foo'; } @@ -40469,28 +40917,28 @@ void checkVmEndpointNatMappingsInterfaceNatMappings( ) { buildCounterVmEndpointNatMappingsInterfaceNatMappings++; if (buildCounterVmEndpointNatMappingsInterfaceNatMappings < 3) { - checkUnnamed913(o.drainNatIpPortRanges!); - checkUnnamed914(o.natIpPortRanges!); + checkUnnamed919(o.drainNatIpPortRanges!); + checkUnnamed920(o.natIpPortRanges!); unittest.expect(o.numTotalDrainNatPorts!, unittest.equals(42)); unittest.expect(o.numTotalNatPorts!, unittest.equals(42)); - checkUnnamed915(o.ruleMappings!); + checkUnnamed921(o.ruleMappings!); unittest.expect(o.sourceAliasIpRange!, unittest.equals('foo')); unittest.expect(o.sourceVirtualIp!, unittest.equals('foo')); } buildCounterVmEndpointNatMappingsInterfaceNatMappings--; } -core.List buildUnnamed916() => ['foo', 'foo']; +core.List buildUnnamed922() => ['foo', 'foo']; -void checkUnnamed916(core.List o) { +void checkUnnamed922(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed917() => ['foo', 'foo']; +core.List buildUnnamed923() => ['foo', 'foo']; -void checkUnnamed917(core.List o) { +void checkUnnamed923(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -40504,8 +40952,8 @@ buildVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings() { buildCounterVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings++; if (buildCounterVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings < 3) { - o.drainNatIpPortRanges = buildUnnamed916(); - o.natIpPortRanges = buildUnnamed917(); + o.drainNatIpPortRanges = buildUnnamed922(); + o.natIpPortRanges = buildUnnamed923(); o.numTotalDrainNatPorts = 42; o.numTotalNatPorts = 42; o.ruleNumber = 42; @@ -40520,8 +40968,8 @@ void checkVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings( buildCounterVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings++; if (buildCounterVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings < 3) { - checkUnnamed916(o.drainNatIpPortRanges!); - checkUnnamed917(o.natIpPortRanges!); + checkUnnamed922(o.drainNatIpPortRanges!); + checkUnnamed923(o.natIpPortRanges!); unittest.expect(o.numTotalDrainNatPorts!, unittest.equals(42)); unittest.expect(o.numTotalNatPorts!, unittest.equals(42)); unittest.expect(o.ruleNumber!, unittest.equals(42)); @@ -40529,12 +40977,12 @@ void checkVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings( buildCounterVmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings--; } -core.List buildUnnamed918() => [ +core.List buildUnnamed924() => [ buildVmEndpointNatMappings(), buildVmEndpointNatMappings(), ]; -void checkUnnamed918(core.List o) { +void checkUnnamed924(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVmEndpointNatMappings(o[0]); checkVmEndpointNatMappings(o[1]); @@ -40564,12 +41012,12 @@ void checkVmEndpointNatMappingsListWarningData( buildCounterVmEndpointNatMappingsListWarningData--; } -core.List buildUnnamed919() => [ +core.List buildUnnamed925() => [ buildVmEndpointNatMappingsListWarningData(), buildVmEndpointNatMappingsListWarningData(), ]; -void checkUnnamed919(core.List o) { +void checkUnnamed925(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVmEndpointNatMappingsListWarningData(o[0]); checkVmEndpointNatMappingsListWarningData(o[1]); @@ -40581,7 +41029,7 @@ api.VmEndpointNatMappingsListWarning buildVmEndpointNatMappingsListWarning() { buildCounterVmEndpointNatMappingsListWarning++; if (buildCounterVmEndpointNatMappingsListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed919(); + o.data = buildUnnamed925(); o.message = 'foo'; } buildCounterVmEndpointNatMappingsListWarning--; @@ -40594,7 +41042,7 @@ void checkVmEndpointNatMappingsListWarning( buildCounterVmEndpointNatMappingsListWarning++; if (buildCounterVmEndpointNatMappingsListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed919(o.data!); + checkUnnamed925(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterVmEndpointNatMappingsListWarning--; @@ -40608,7 +41056,7 @@ api.VmEndpointNatMappingsList buildVmEndpointNatMappingsList() { o.id = 'foo'; o.kind = 'foo'; o.nextPageToken = 'foo'; - o.result = buildUnnamed918(); + o.result = buildUnnamed924(); o.selfLink = 'foo'; o.warning = buildVmEndpointNatMappingsListWarning(); } @@ -40622,30 +41070,30 @@ void checkVmEndpointNatMappingsList(api.VmEndpointNatMappingsList o) { unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed918(o.result!); + checkUnnamed924(o.result!); unittest.expect(o.selfLink!, unittest.equals('foo')); checkVmEndpointNatMappingsListWarning(o.warning!); } buildCounterVmEndpointNatMappingsList--; } -core.Map buildUnnamed920() => { +core.Map buildUnnamed926() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed920(core.Map o) { +void checkUnnamed926(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed921() => [ +core.List buildUnnamed927() => [ buildVpnGatewayVpnGatewayInterface(), buildVpnGatewayVpnGatewayInterface(), ]; -void checkUnnamed921(core.List o) { +void checkUnnamed927(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGatewayVpnGatewayInterface(o[0]); checkVpnGatewayVpnGatewayInterface(o[1]); @@ -40662,13 +41110,13 @@ api.VpnGateway buildVpnGateway() { o.id = 'foo'; o.kind = 'foo'; o.labelFingerprint = 'foo'; - o.labels = buildUnnamed920(); + o.labels = buildUnnamed926(); o.name = 'foo'; o.network = 'foo'; o.region = 'foo'; o.selfLink = 'foo'; o.stackType = 'foo'; - o.vpnInterfaces = buildUnnamed921(); + o.vpnInterfaces = buildUnnamed927(); } buildCounterVpnGateway--; return o; @@ -40683,31 +41131,31 @@ void checkVpnGateway(api.VpnGateway o) { unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed920(o.labels!); + checkUnnamed926(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.stackType!, unittest.equals('foo')); - checkUnnamed921(o.vpnInterfaces!); + checkUnnamed927(o.vpnInterfaces!); } buildCounterVpnGateway--; } -core.Map buildUnnamed922() => { +core.Map buildUnnamed928() => { 'x': buildVpnGatewaysScopedList(), 'y': buildVpnGatewaysScopedList(), }; -void checkUnnamed922(core.Map o) { +void checkUnnamed928(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGatewaysScopedList(o['x']!); checkVpnGatewaysScopedList(o['y']!); } -core.List buildUnnamed923() => ['foo', 'foo']; +core.List buildUnnamed929() => ['foo', 'foo']; -void checkUnnamed923(core.List o) { +void checkUnnamed929(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -40737,12 +41185,12 @@ void checkVpnGatewayAggregatedListWarningData( buildCounterVpnGatewayAggregatedListWarningData--; } -core.List buildUnnamed924() => [ +core.List buildUnnamed930() => [ buildVpnGatewayAggregatedListWarningData(), buildVpnGatewayAggregatedListWarningData(), ]; -void checkUnnamed924(core.List o) { +void checkUnnamed930(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGatewayAggregatedListWarningData(o[0]); checkVpnGatewayAggregatedListWarningData(o[1]); @@ -40754,7 +41202,7 @@ api.VpnGatewayAggregatedListWarning buildVpnGatewayAggregatedListWarning() { buildCounterVpnGatewayAggregatedListWarning++; if (buildCounterVpnGatewayAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed924(); + o.data = buildUnnamed930(); o.message = 'foo'; } buildCounterVpnGatewayAggregatedListWarning--; @@ -40767,7 +41215,7 @@ void checkVpnGatewayAggregatedListWarning( buildCounterVpnGatewayAggregatedListWarning++; if (buildCounterVpnGatewayAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed924(o.data!); + checkUnnamed930(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterVpnGatewayAggregatedListWarning--; @@ -40779,11 +41227,11 @@ api.VpnGatewayAggregatedList buildVpnGatewayAggregatedList() { buildCounterVpnGatewayAggregatedList++; if (buildCounterVpnGatewayAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed922(); + o.items = buildUnnamed928(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed923(); + o.unreachables = buildUnnamed929(); o.warning = buildVpnGatewayAggregatedListWarning(); } buildCounterVpnGatewayAggregatedList--; @@ -40794,22 +41242,22 @@ void checkVpnGatewayAggregatedList(api.VpnGatewayAggregatedList o) { buildCounterVpnGatewayAggregatedList++; if (buildCounterVpnGatewayAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed922(o.items!); + checkUnnamed928(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed923(o.unreachables!); + checkUnnamed929(o.unreachables!); checkVpnGatewayAggregatedListWarning(o.warning!); } buildCounterVpnGatewayAggregatedList--; } -core.List buildUnnamed925() => [ +core.List buildUnnamed931() => [ buildVpnGateway(), buildVpnGateway(), ]; -void checkUnnamed925(core.List o) { +void checkUnnamed931(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGateway(o[0]); checkVpnGateway(o[1]); @@ -40836,12 +41284,12 @@ void checkVpnGatewayListWarningData(api.VpnGatewayListWarningData o) { buildCounterVpnGatewayListWarningData--; } -core.List buildUnnamed926() => [ +core.List buildUnnamed932() => [ buildVpnGatewayListWarningData(), buildVpnGatewayListWarningData(), ]; -void checkUnnamed926(core.List o) { +void checkUnnamed932(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGatewayListWarningData(o[0]); checkVpnGatewayListWarningData(o[1]); @@ -40853,7 +41301,7 @@ api.VpnGatewayListWarning buildVpnGatewayListWarning() { buildCounterVpnGatewayListWarning++; if (buildCounterVpnGatewayListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed926(); + o.data = buildUnnamed932(); o.message = 'foo'; } buildCounterVpnGatewayListWarning--; @@ -40864,7 +41312,7 @@ void checkVpnGatewayListWarning(api.VpnGatewayListWarning o) { buildCounterVpnGatewayListWarning++; if (buildCounterVpnGatewayListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed926(o.data!); + checkUnnamed932(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterVpnGatewayListWarning--; @@ -40876,7 +41324,7 @@ api.VpnGatewayList buildVpnGatewayList() { buildCounterVpnGatewayList++; if (buildCounterVpnGatewayList < 3) { o.id = 'foo'; - o.items = buildUnnamed925(); + o.items = buildUnnamed931(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -40890,7 +41338,7 @@ void checkVpnGatewayList(api.VpnGatewayList o) { buildCounterVpnGatewayList++; if (buildCounterVpnGatewayList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed925(o.items!); + checkUnnamed931(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -40899,12 +41347,12 @@ void checkVpnGatewayList(api.VpnGatewayList o) { buildCounterVpnGatewayList--; } -core.List buildUnnamed927() => [ +core.List buildUnnamed933() => [ buildVpnGatewayStatusVpnConnection(), buildVpnGatewayStatusVpnConnection(), ]; -void checkUnnamed927(core.List o) { +void checkUnnamed933(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGatewayStatusVpnConnection(o[0]); checkVpnGatewayStatusVpnConnection(o[1]); @@ -40915,7 +41363,7 @@ api.VpnGatewayStatus buildVpnGatewayStatus() { final o = api.VpnGatewayStatus(); buildCounterVpnGatewayStatus++; if (buildCounterVpnGatewayStatus < 3) { - o.vpnConnections = buildUnnamed927(); + o.vpnConnections = buildUnnamed933(); } buildCounterVpnGatewayStatus--; return o; @@ -40924,7 +41372,7 @@ api.VpnGatewayStatus buildVpnGatewayStatus() { void checkVpnGatewayStatus(api.VpnGatewayStatus o) { buildCounterVpnGatewayStatus++; if (buildCounterVpnGatewayStatus < 3) { - checkUnnamed927(o.vpnConnections!); + checkUnnamed933(o.vpnConnections!); } buildCounterVpnGatewayStatus--; } @@ -40976,12 +41424,12 @@ void checkVpnGatewayStatusTunnel(api.VpnGatewayStatusTunnel o) { buildCounterVpnGatewayStatusTunnel--; } -core.List buildUnnamed928() => [ +core.List buildUnnamed934() => [ buildVpnGatewayStatusTunnel(), buildVpnGatewayStatusTunnel(), ]; -void checkUnnamed928(core.List o) { +void checkUnnamed934(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGatewayStatusTunnel(o[0]); checkVpnGatewayStatusTunnel(o[1]); @@ -40995,7 +41443,7 @@ api.VpnGatewayStatusVpnConnection buildVpnGatewayStatusVpnConnection() { o.peerExternalGateway = 'foo'; o.peerGcpGateway = 'foo'; o.state = buildVpnGatewayStatusHighAvailabilityRequirementState(); - o.tunnels = buildUnnamed928(); + o.tunnels = buildUnnamed934(); } buildCounterVpnGatewayStatusVpnConnection--; return o; @@ -41007,7 +41455,7 @@ void checkVpnGatewayStatusVpnConnection(api.VpnGatewayStatusVpnConnection o) { unittest.expect(o.peerExternalGateway!, unittest.equals('foo')); unittest.expect(o.peerGcpGateway!, unittest.equals('foo')); checkVpnGatewayStatusHighAvailabilityRequirementState(o.state!); - checkUnnamed928(o.tunnels!); + checkUnnamed934(o.tunnels!); } buildCounterVpnGatewayStatusVpnConnection--; } @@ -41056,12 +41504,12 @@ void checkVpnGatewaysGetStatusResponse(api.VpnGatewaysGetStatusResponse o) { buildCounterVpnGatewaysGetStatusResponse--; } -core.List buildUnnamed929() => [ +core.List buildUnnamed935() => [ buildVpnGateway(), buildVpnGateway(), ]; -void checkUnnamed929(core.List o) { +void checkUnnamed935(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGateway(o[0]); checkVpnGateway(o[1]); @@ -41090,12 +41538,12 @@ void checkVpnGatewaysScopedListWarningData( buildCounterVpnGatewaysScopedListWarningData--; } -core.List buildUnnamed930() => [ +core.List buildUnnamed936() => [ buildVpnGatewaysScopedListWarningData(), buildVpnGatewaysScopedListWarningData(), ]; -void checkUnnamed930(core.List o) { +void checkUnnamed936(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGatewaysScopedListWarningData(o[0]); checkVpnGatewaysScopedListWarningData(o[1]); @@ -41107,7 +41555,7 @@ api.VpnGatewaysScopedListWarning buildVpnGatewaysScopedListWarning() { buildCounterVpnGatewaysScopedListWarning++; if (buildCounterVpnGatewaysScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed930(); + o.data = buildUnnamed936(); o.message = 'foo'; } buildCounterVpnGatewaysScopedListWarning--; @@ -41118,7 +41566,7 @@ void checkVpnGatewaysScopedListWarning(api.VpnGatewaysScopedListWarning o) { buildCounterVpnGatewaysScopedListWarning++; if (buildCounterVpnGatewaysScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed930(o.data!); + checkUnnamed936(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterVpnGatewaysScopedListWarning--; @@ -41129,7 +41577,7 @@ api.VpnGatewaysScopedList buildVpnGatewaysScopedList() { final o = api.VpnGatewaysScopedList(); buildCounterVpnGatewaysScopedList++; if (buildCounterVpnGatewaysScopedList < 3) { - o.vpnGateways = buildUnnamed929(); + o.vpnGateways = buildUnnamed935(); o.warning = buildVpnGatewaysScopedListWarning(); } buildCounterVpnGatewaysScopedList--; @@ -41139,34 +41587,34 @@ api.VpnGatewaysScopedList buildVpnGatewaysScopedList() { void checkVpnGatewaysScopedList(api.VpnGatewaysScopedList o) { buildCounterVpnGatewaysScopedList++; if (buildCounterVpnGatewaysScopedList < 3) { - checkUnnamed929(o.vpnGateways!); + checkUnnamed935(o.vpnGateways!); checkVpnGatewaysScopedListWarning(o.warning!); } buildCounterVpnGatewaysScopedList--; } -core.Map buildUnnamed931() => { +core.Map buildUnnamed937() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed931(core.Map o) { +void checkUnnamed937(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed932() => ['foo', 'foo']; +core.List buildUnnamed938() => ['foo', 'foo']; -void checkUnnamed932(core.List o) { +void checkUnnamed938(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed933() => ['foo', 'foo']; +core.List buildUnnamed939() => ['foo', 'foo']; -void checkUnnamed933(core.List o) { +void checkUnnamed939(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -41177,6 +41625,7 @@ api.VpnTunnel buildVpnTunnel() { final o = api.VpnTunnel(); buildCounterVpnTunnel++; if (buildCounterVpnTunnel < 3) { + o.cipherSuite = buildVpnTunnelCipherSuite(); o.creationTimestamp = 'foo'; o.description = 'foo'; o.detailedStatus = 'foo'; @@ -41184,15 +41633,15 @@ api.VpnTunnel buildVpnTunnel() { o.ikeVersion = 42; o.kind = 'foo'; o.labelFingerprint = 'foo'; - o.labels = buildUnnamed931(); - o.localTrafficSelector = buildUnnamed932(); + o.labels = buildUnnamed937(); + o.localTrafficSelector = buildUnnamed938(); o.name = 'foo'; o.peerExternalGateway = 'foo'; o.peerExternalGatewayInterface = 42; o.peerGcpGateway = 'foo'; o.peerIp = 'foo'; o.region = 'foo'; - o.remoteTrafficSelector = buildUnnamed933(); + o.remoteTrafficSelector = buildUnnamed939(); o.router = 'foo'; o.selfLink = 'foo'; o.sharedSecret = 'foo'; @@ -41209,6 +41658,7 @@ api.VpnTunnel buildVpnTunnel() { void checkVpnTunnel(api.VpnTunnel o) { buildCounterVpnTunnel++; if (buildCounterVpnTunnel < 3) { + checkVpnTunnelCipherSuite(o.cipherSuite!); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.detailedStatus!, unittest.equals('foo')); @@ -41216,15 +41666,15 @@ void checkVpnTunnel(api.VpnTunnel o) { unittest.expect(o.ikeVersion!, unittest.equals(42)); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed931(o.labels!); - checkUnnamed932(o.localTrafficSelector!); + checkUnnamed937(o.labels!); + checkUnnamed938(o.localTrafficSelector!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.peerExternalGateway!, unittest.equals('foo')); unittest.expect(o.peerExternalGatewayInterface!, unittest.equals(42)); unittest.expect(o.peerGcpGateway!, unittest.equals('foo')); unittest.expect(o.peerIp!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); - checkUnnamed933(o.remoteTrafficSelector!); + checkUnnamed939(o.remoteTrafficSelector!); unittest.expect(o.router!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.sharedSecret!, unittest.equals('foo')); @@ -41237,20 +41687,20 @@ void checkVpnTunnel(api.VpnTunnel o) { buildCounterVpnTunnel--; } -core.Map buildUnnamed934() => { +core.Map buildUnnamed940() => { 'x': buildVpnTunnelsScopedList(), 'y': buildVpnTunnelsScopedList(), }; -void checkUnnamed934(core.Map o) { +void checkUnnamed940(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedList(o['x']!); checkVpnTunnelsScopedList(o['y']!); } -core.List buildUnnamed935() => ['foo', 'foo']; +core.List buildUnnamed941() => ['foo', 'foo']; -void checkUnnamed935(core.List o) { +void checkUnnamed941(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -41280,12 +41730,12 @@ void checkVpnTunnelAggregatedListWarningData( buildCounterVpnTunnelAggregatedListWarningData--; } -core.List buildUnnamed936() => [ +core.List buildUnnamed942() => [ buildVpnTunnelAggregatedListWarningData(), buildVpnTunnelAggregatedListWarningData(), ]; -void checkUnnamed936(core.List o) { +void checkUnnamed942(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelAggregatedListWarningData(o[0]); checkVpnTunnelAggregatedListWarningData(o[1]); @@ -41297,7 +41747,7 @@ api.VpnTunnelAggregatedListWarning buildVpnTunnelAggregatedListWarning() { buildCounterVpnTunnelAggregatedListWarning++; if (buildCounterVpnTunnelAggregatedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed936(); + o.data = buildUnnamed942(); o.message = 'foo'; } buildCounterVpnTunnelAggregatedListWarning--; @@ -41308,7 +41758,7 @@ void checkVpnTunnelAggregatedListWarning(api.VpnTunnelAggregatedListWarning o) { buildCounterVpnTunnelAggregatedListWarning++; if (buildCounterVpnTunnelAggregatedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed936(o.data!); + checkUnnamed942(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterVpnTunnelAggregatedListWarning--; @@ -41320,11 +41770,11 @@ api.VpnTunnelAggregatedList buildVpnTunnelAggregatedList() { buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { o.id = 'foo'; - o.items = buildUnnamed934(); + o.items = buildUnnamed940(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; - o.unreachables = buildUnnamed935(); + o.unreachables = buildUnnamed941(); o.warning = buildVpnTunnelAggregatedListWarning(); } buildCounterVpnTunnelAggregatedList--; @@ -41335,22 +41785,43 @@ void checkVpnTunnelAggregatedList(api.VpnTunnelAggregatedList o) { buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed934(o.items!); + checkUnnamed940(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); - checkUnnamed935(o.unreachables!); + checkUnnamed941(o.unreachables!); checkVpnTunnelAggregatedListWarning(o.warning!); } buildCounterVpnTunnelAggregatedList--; } -core.List buildUnnamed937() => [ +core.int buildCounterVpnTunnelCipherSuite = 0; +api.VpnTunnelCipherSuite buildVpnTunnelCipherSuite() { + final o = api.VpnTunnelCipherSuite(); + buildCounterVpnTunnelCipherSuite++; + if (buildCounterVpnTunnelCipherSuite < 3) { + o.phase1 = buildVpnTunnelPhase1Algorithms(); + o.phase2 = buildVpnTunnelPhase2Algorithms(); + } + buildCounterVpnTunnelCipherSuite--; + return o; +} + +void checkVpnTunnelCipherSuite(api.VpnTunnelCipherSuite o) { + buildCounterVpnTunnelCipherSuite++; + if (buildCounterVpnTunnelCipherSuite < 3) { + checkVpnTunnelPhase1Algorithms(o.phase1!); + checkVpnTunnelPhase2Algorithms(o.phase2!); + } + buildCounterVpnTunnelCipherSuite--; +} + +core.List buildUnnamed943() => [ buildVpnTunnel(), buildVpnTunnel(), ]; -void checkUnnamed937(core.List o) { +void checkUnnamed943(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -41377,12 +41848,12 @@ void checkVpnTunnelListWarningData(api.VpnTunnelListWarningData o) { buildCounterVpnTunnelListWarningData--; } -core.List buildUnnamed938() => [ +core.List buildUnnamed944() => [ buildVpnTunnelListWarningData(), buildVpnTunnelListWarningData(), ]; -void checkUnnamed938(core.List o) { +void checkUnnamed944(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelListWarningData(o[0]); checkVpnTunnelListWarningData(o[1]); @@ -41394,7 +41865,7 @@ api.VpnTunnelListWarning buildVpnTunnelListWarning() { buildCounterVpnTunnelListWarning++; if (buildCounterVpnTunnelListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed938(); + o.data = buildUnnamed944(); o.message = 'foo'; } buildCounterVpnTunnelListWarning--; @@ -41405,7 +41876,7 @@ void checkVpnTunnelListWarning(api.VpnTunnelListWarning o) { buildCounterVpnTunnelListWarning++; if (buildCounterVpnTunnelListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed938(o.data!); + checkUnnamed944(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterVpnTunnelListWarning--; @@ -41417,7 +41888,7 @@ api.VpnTunnelList buildVpnTunnelList() { buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { o.id = 'foo'; - o.items = buildUnnamed937(); + o.items = buildUnnamed943(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -41431,7 +41902,7 @@ void checkVpnTunnelList(api.VpnTunnelList o) { buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed937(o.items!); + checkUnnamed943(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -41440,12 +41911,116 @@ void checkVpnTunnelList(api.VpnTunnelList o) { buildCounterVpnTunnelList--; } -core.List buildUnnamed939() => [ +core.List buildUnnamed945() => ['foo', 'foo']; + +void checkUnnamed945(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed946() => ['foo', 'foo']; + +void checkUnnamed946(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed947() => ['foo', 'foo']; + +void checkUnnamed947(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed948() => ['foo', 'foo']; + +void checkUnnamed948(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterVpnTunnelPhase1Algorithms = 0; +api.VpnTunnelPhase1Algorithms buildVpnTunnelPhase1Algorithms() { + final o = api.VpnTunnelPhase1Algorithms(); + buildCounterVpnTunnelPhase1Algorithms++; + if (buildCounterVpnTunnelPhase1Algorithms < 3) { + o.dh = buildUnnamed945(); + o.encryption = buildUnnamed946(); + o.integrity = buildUnnamed947(); + o.prf = buildUnnamed948(); + } + buildCounterVpnTunnelPhase1Algorithms--; + return o; +} + +void checkVpnTunnelPhase1Algorithms(api.VpnTunnelPhase1Algorithms o) { + buildCounterVpnTunnelPhase1Algorithms++; + if (buildCounterVpnTunnelPhase1Algorithms < 3) { + checkUnnamed945(o.dh!); + checkUnnamed946(o.encryption!); + checkUnnamed947(o.integrity!); + checkUnnamed948(o.prf!); + } + buildCounterVpnTunnelPhase1Algorithms--; +} + +core.List buildUnnamed949() => ['foo', 'foo']; + +void checkUnnamed949(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed950() => ['foo', 'foo']; + +void checkUnnamed950(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed951() => ['foo', 'foo']; + +void checkUnnamed951(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterVpnTunnelPhase2Algorithms = 0; +api.VpnTunnelPhase2Algorithms buildVpnTunnelPhase2Algorithms() { + final o = api.VpnTunnelPhase2Algorithms(); + buildCounterVpnTunnelPhase2Algorithms++; + if (buildCounterVpnTunnelPhase2Algorithms < 3) { + o.encryption = buildUnnamed949(); + o.integrity = buildUnnamed950(); + o.pfs = buildUnnamed951(); + } + buildCounterVpnTunnelPhase2Algorithms--; + return o; +} + +void checkVpnTunnelPhase2Algorithms(api.VpnTunnelPhase2Algorithms o) { + buildCounterVpnTunnelPhase2Algorithms++; + if (buildCounterVpnTunnelPhase2Algorithms < 3) { + checkUnnamed949(o.encryption!); + checkUnnamed950(o.integrity!); + checkUnnamed951(o.pfs!); + } + buildCounterVpnTunnelPhase2Algorithms--; +} + +core.List buildUnnamed952() => [ buildVpnTunnel(), buildVpnTunnel(), ]; -void checkUnnamed939(core.List o) { +void checkUnnamed952(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -41474,12 +42049,12 @@ void checkVpnTunnelsScopedListWarningData( buildCounterVpnTunnelsScopedListWarningData--; } -core.List buildUnnamed940() => [ +core.List buildUnnamed953() => [ buildVpnTunnelsScopedListWarningData(), buildVpnTunnelsScopedListWarningData(), ]; -void checkUnnamed940(core.List o) { +void checkUnnamed953(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedListWarningData(o[0]); checkVpnTunnelsScopedListWarningData(o[1]); @@ -41491,7 +42066,7 @@ api.VpnTunnelsScopedListWarning buildVpnTunnelsScopedListWarning() { buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed940(); + o.data = buildUnnamed953(); o.message = 'foo'; } buildCounterVpnTunnelsScopedListWarning--; @@ -41502,7 +42077,7 @@ void checkVpnTunnelsScopedListWarning(api.VpnTunnelsScopedListWarning o) { buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed940(o.data!); + checkUnnamed953(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterVpnTunnelsScopedListWarning--; @@ -41513,7 +42088,7 @@ api.VpnTunnelsScopedList buildVpnTunnelsScopedList() { final o = api.VpnTunnelsScopedList(); buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - o.vpnTunnels = buildUnnamed939(); + o.vpnTunnels = buildUnnamed952(); o.warning = buildVpnTunnelsScopedListWarning(); } buildCounterVpnTunnelsScopedList--; @@ -41523,26 +42098,26 @@ api.VpnTunnelsScopedList buildVpnTunnelsScopedList() { void checkVpnTunnelsScopedList(api.VpnTunnelsScopedList o) { buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - checkUnnamed939(o.vpnTunnels!); + checkUnnamed952(o.vpnTunnels!); checkVpnTunnelsScopedListWarning(o.warning!); } buildCounterVpnTunnelsScopedList--; } -core.List buildUnnamed941() => ['foo', 'foo']; +core.List buildUnnamed954() => ['foo', 'foo']; -void checkUnnamed941(core.List o) { +void checkUnnamed954(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed942() => [ +core.List buildUnnamed955() => [ buildWafExpressionSetExpression(), buildWafExpressionSetExpression(), ]; -void checkUnnamed942(core.List o) { +void checkUnnamed955(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkWafExpressionSetExpression(o[0]); checkWafExpressionSetExpression(o[1]); @@ -41553,8 +42128,8 @@ api.WafExpressionSet buildWafExpressionSet() { final o = api.WafExpressionSet(); buildCounterWafExpressionSet++; if (buildCounterWafExpressionSet < 3) { - o.aliases = buildUnnamed941(); - o.expressions = buildUnnamed942(); + o.aliases = buildUnnamed954(); + o.expressions = buildUnnamed955(); o.id = 'foo'; } buildCounterWafExpressionSet--; @@ -41564,8 +42139,8 @@ api.WafExpressionSet buildWafExpressionSet() { void checkWafExpressionSet(api.WafExpressionSet o) { buildCounterWafExpressionSet++; if (buildCounterWafExpressionSet < 3) { - checkUnnamed941(o.aliases!); - checkUnnamed942(o.expressions!); + checkUnnamed954(o.aliases!); + checkUnnamed955(o.expressions!); unittest.expect(o.id!, unittest.equals('foo')); } buildCounterWafExpressionSet--; @@ -41615,9 +42190,9 @@ void checkWeightedBackendService(api.WeightedBackendService o) { buildCounterWeightedBackendService--; } -core.List buildUnnamed943() => [buildProject(), buildProject()]; +core.List buildUnnamed956() => [buildProject(), buildProject()]; -void checkUnnamed943(core.List o) { +void checkUnnamed956(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -41644,12 +42219,12 @@ void checkXpnHostListWarningData(api.XpnHostListWarningData o) { buildCounterXpnHostListWarningData--; } -core.List buildUnnamed944() => [ +core.List buildUnnamed957() => [ buildXpnHostListWarningData(), buildXpnHostListWarningData(), ]; -void checkUnnamed944(core.List o) { +void checkUnnamed957(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkXpnHostListWarningData(o[0]); checkXpnHostListWarningData(o[1]); @@ -41661,7 +42236,7 @@ api.XpnHostListWarning buildXpnHostListWarning() { buildCounterXpnHostListWarning++; if (buildCounterXpnHostListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed944(); + o.data = buildUnnamed957(); o.message = 'foo'; } buildCounterXpnHostListWarning--; @@ -41672,7 +42247,7 @@ void checkXpnHostListWarning(api.XpnHostListWarning o) { buildCounterXpnHostListWarning++; if (buildCounterXpnHostListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed944(o.data!); + checkUnnamed957(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterXpnHostListWarning--; @@ -41684,7 +42259,7 @@ api.XpnHostList buildXpnHostList() { buildCounterXpnHostList++; if (buildCounterXpnHostList < 3) { o.id = 'foo'; - o.items = buildUnnamed943(); + o.items = buildUnnamed956(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -41698,7 +42273,7 @@ void checkXpnHostList(api.XpnHostList o) { buildCounterXpnHostList++; if (buildCounterXpnHostList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed943(o.items!); + checkUnnamed956(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -41728,9 +42303,9 @@ void checkXpnResourceId(api.XpnResourceId o) { buildCounterXpnResourceId--; } -core.List buildUnnamed945() => ['foo', 'foo']; +core.List buildUnnamed958() => ['foo', 'foo']; -void checkUnnamed945(core.List o) { +void checkUnnamed958(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -41741,7 +42316,7 @@ api.Zone buildZone() { final o = api.Zone(); buildCounterZone++; if (buildCounterZone < 3) { - o.availableCpuPlatforms = buildUnnamed945(); + o.availableCpuPlatforms = buildUnnamed958(); o.creationTimestamp = 'foo'; o.deprecated = buildDeprecationStatus(); o.description = 'foo'; @@ -41760,7 +42335,7 @@ api.Zone buildZone() { void checkZone(api.Zone o) { buildCounterZone++; if (buildCounterZone < 3) { - checkUnnamed945(o.availableCpuPlatforms!); + checkUnnamed958(o.availableCpuPlatforms!); unittest.expect(o.creationTimestamp!, unittest.equals('foo')); checkDeprecationStatus(o.deprecated!); unittest.expect(o.description!, unittest.equals('foo')); @@ -41775,9 +42350,9 @@ void checkZone(api.Zone o) { buildCounterZone--; } -core.List buildUnnamed946() => [buildZone(), buildZone()]; +core.List buildUnnamed959() => [buildZone(), buildZone()]; -void checkUnnamed946(core.List o) { +void checkUnnamed959(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkZone(o[0]); checkZone(o[1]); @@ -41804,12 +42379,12 @@ void checkZoneListWarningData(api.ZoneListWarningData o) { buildCounterZoneListWarningData--; } -core.List buildUnnamed947() => [ +core.List buildUnnamed960() => [ buildZoneListWarningData(), buildZoneListWarningData(), ]; -void checkUnnamed947(core.List o) { +void checkUnnamed960(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkZoneListWarningData(o[0]); checkZoneListWarningData(o[1]); @@ -41821,7 +42396,7 @@ api.ZoneListWarning buildZoneListWarning() { buildCounterZoneListWarning++; if (buildCounterZoneListWarning < 3) { o.code = 'foo'; - o.data = buildUnnamed947(); + o.data = buildUnnamed960(); o.message = 'foo'; } buildCounterZoneListWarning--; @@ -41832,7 +42407,7 @@ void checkZoneListWarning(api.ZoneListWarning o) { buildCounterZoneListWarning++; if (buildCounterZoneListWarning < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed947(o.data!); + checkUnnamed960(o.data!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterZoneListWarning--; @@ -41844,7 +42419,7 @@ api.ZoneList buildZoneList() { buildCounterZoneList++; if (buildCounterZoneList < 3) { o.id = 'foo'; - o.items = buildUnnamed946(); + o.items = buildUnnamed959(); o.kind = 'foo'; o.nextPageToken = 'foo'; o.selfLink = 'foo'; @@ -41858,7 +42433,7 @@ void checkZoneList(api.ZoneList o) { buildCounterZoneList++; if (buildCounterZoneList < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed946(o.items!); + checkUnnamed959(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); unittest.expect(o.selfLink!, unittest.equals('foo')); @@ -41867,12 +42442,12 @@ void checkZoneList(api.ZoneList o) { buildCounterZoneList--; } -core.Map buildUnnamed948() => { +core.Map buildUnnamed961() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed948(core.Map o) { +void checkUnnamed961(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -41884,7 +42459,7 @@ api.ZoneSetLabelsRequest buildZoneSetLabelsRequest() { buildCounterZoneSetLabelsRequest++; if (buildCounterZoneSetLabelsRequest < 3) { o.labelFingerprint = 'foo'; - o.labels = buildUnnamed948(); + o.labels = buildUnnamed961(); } buildCounterZoneSetLabelsRequest--; return o; @@ -41894,14 +42469,14 @@ void checkZoneSetLabelsRequest(api.ZoneSetLabelsRequest o) { buildCounterZoneSetLabelsRequest++; if (buildCounterZoneSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint!, unittest.equals('foo')); - checkUnnamed948(o.labels!); + checkUnnamed961(o.labels!); } buildCounterZoneSetLabelsRequest--; } -core.List buildUnnamed949() => [buildBinding(), buildBinding()]; +core.List buildUnnamed962() => [buildBinding(), buildBinding()]; -void checkUnnamed949(core.List o) { +void checkUnnamed962(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -41912,7 +42487,7 @@ api.ZoneSetPolicyRequest buildZoneSetPolicyRequest() { final o = api.ZoneSetPolicyRequest(); buildCounterZoneSetPolicyRequest++; if (buildCounterZoneSetPolicyRequest < 3) { - o.bindings = buildUnnamed949(); + o.bindings = buildUnnamed962(); o.etag = 'foo'; o.policy = buildPolicy(); } @@ -41923,48 +42498,48 @@ api.ZoneSetPolicyRequest buildZoneSetPolicyRequest() { void checkZoneSetPolicyRequest(api.ZoneSetPolicyRequest o) { buildCounterZoneSetPolicyRequest++; if (buildCounterZoneSetPolicyRequest < 3) { - checkUnnamed949(o.bindings!); + checkUnnamed962(o.bindings!); unittest.expect(o.etag!, unittest.equals('foo')); checkPolicy(o.policy!); } buildCounterZoneSetPolicyRequest--; } -core.List buildUnnamed950() => ['foo', 'foo']; +core.List buildUnnamed963() => ['foo', 'foo']; -void checkUnnamed950(core.List o) { +void checkUnnamed963(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed951() => ['foo', 'foo']; +core.List buildUnnamed964() => ['foo', 'foo']; -void checkUnnamed951(core.List o) { +void checkUnnamed964(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed952() => ['foo', 'foo']; +core.List buildUnnamed965() => ['foo', 'foo']; -void checkUnnamed952(core.List o) { +void checkUnnamed965(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed953() => ['foo', 'foo']; +core.List buildUnnamed966() => ['foo', 'foo']; -void checkUnnamed953(core.List o) { +void checkUnnamed966(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed954() => ['foo', 'foo']; +core.List buildUnnamed967() => ['foo', 'foo']; -void checkUnnamed954(core.List o) { +void checkUnnamed967(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -42714,6 +43289,17 @@ void main() { }); }); + unittest.group('obj-schema-BackendBucketParams', () { + unittest.test('to-json--from-json', () async { + final o = buildBackendBucketParams(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.BackendBucketParams.fromJson( + oJson as core.Map, + ); + checkBackendBucketParams(od); + }); + }); + unittest.group('obj-schema-BackendBucketUsedBy', () { unittest.test('to-json--from-json', () async { final o = buildBackendBucketUsedBy(); @@ -43038,6 +43624,17 @@ void main() { }); }); + unittest.group('obj-schema-BackendServiceParams', () { + unittest.test('to-json--from-json', () async { + final o = buildBackendServiceParams(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.BackendServiceParams.fromJson( + oJson as core.Map, + ); + checkBackendServiceParams(od); + }); + }); + unittest.group('obj-schema-BackendServiceReference', () { unittest.test('to-json--from-json', () async { final o = buildBackendServiceReference(); @@ -46754,6 +47351,67 @@ void main() { }); }); + unittest.group('obj-schema-InterconnectApplicationAwareInterconnect', () { + unittest.test('to-json--from-json', () async { + final o = buildInterconnectApplicationAwareInterconnect(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.InterconnectApplicationAwareInterconnect.fromJson( + oJson as core.Map, + ); + checkInterconnectApplicationAwareInterconnect(od); + }); + }); + + unittest.group( + 'obj-schema-InterconnectApplicationAwareInterconnectBandwidthPercentage', + () { + unittest.test('to-json--from-json', () async { + final o = + buildInterconnectApplicationAwareInterconnectBandwidthPercentage(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .InterconnectApplicationAwareInterconnectBandwidthPercentage.fromJson( + oJson as core.Map, + ); + checkInterconnectApplicationAwareInterconnectBandwidthPercentage(od); + }); + }, + ); + + unittest.group( + 'obj-schema-InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy', + () { + unittest.test('to-json--from-json', () async { + final o = + buildInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy.fromJson( + oJson as core.Map, + ); + checkInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy( + od, + ); + }); + }, + ); + + unittest.group( + 'obj-schema-InterconnectApplicationAwareInterconnectStrictPriorityPolicy', + () { + unittest.test('to-json--from-json', () async { + final o = + buildInterconnectApplicationAwareInterconnectStrictPriorityPolicy(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .InterconnectApplicationAwareInterconnectStrictPriorityPolicy.fromJson( + oJson as core.Map, + ); + checkInterconnectApplicationAwareInterconnectStrictPriorityPolicy(od); + }); + }, + ); + unittest.group('obj-schema-InterconnectAttachment', () { unittest.test('to-json--from-json', () async { final o = buildInterconnectAttachment(); @@ -48788,6 +49446,43 @@ void main() { }); }); + unittest.group('obj-schema-NetworkPeeringConnectionStatus', () { + unittest.test('to-json--from-json', () async { + final o = buildNetworkPeeringConnectionStatus(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.NetworkPeeringConnectionStatus.fromJson( + oJson as core.Map, + ); + checkNetworkPeeringConnectionStatus(od); + }); + }); + + unittest.group('obj-schema-NetworkPeeringConnectionStatusConsensusState', () { + unittest.test('to-json--from-json', () async { + final o = buildNetworkPeeringConnectionStatusConsensusState(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.NetworkPeeringConnectionStatusConsensusState.fromJson( + oJson as core.Map, + ); + checkNetworkPeeringConnectionStatusConsensusState(od); + }); + }); + + unittest.group( + 'obj-schema-NetworkPeeringConnectionStatusTrafficConfiguration', + () { + unittest.test('to-json--from-json', () async { + final o = buildNetworkPeeringConnectionStatusTrafficConfiguration(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .NetworkPeeringConnectionStatusTrafficConfiguration.fromJson( + oJson as core.Map, + ); + checkNetworkPeeringConnectionStatusTrafficConfiguration(od); + }); + }, + ); + unittest.group('obj-schema-NetworkPerformanceConfig', () { unittest.test('to-json--from-json', () async { final o = buildNetworkPerformanceConfig(); @@ -48832,6 +49527,17 @@ void main() { }); }); + unittest.group('obj-schema-NetworkProfileProfileType', () { + unittest.test('to-json--from-json', () async { + final o = buildNetworkProfileProfileType(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.NetworkProfileProfileType.fromJson( + oJson as core.Map, + ); + checkNetworkProfileProfileType(od); + }); + }); + unittest.group('obj-schema-NetworkProfilesListResponseWarningData', () { unittest.test('to-json--from-json', () async { final o = buildNetworkProfilesListResponseWarningData(); @@ -48925,6 +49631,17 @@ void main() { }); }); + unittest.group('obj-schema-NetworksRequestRemovePeeringRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildNetworksRequestRemovePeeringRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.NetworksRequestRemovePeeringRequest.fromJson( + oJson as core.Map, + ); + checkNetworksRequestRemovePeeringRequest(od); + }); + }); + unittest.group('obj-schema-NetworksUpdatePeeringRequest', () { unittest.test('to-json--from-json', () async { final o = buildNetworksUpdatePeeringRequest(); @@ -50934,6 +51651,17 @@ void main() { }); }); + unittest.group('obj-schema-ReservationAdvancedDeploymentControl', () { + unittest.test('to-json--from-json', () async { + final o = buildReservationAdvancedDeploymentControl(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ReservationAdvancedDeploymentControl.fromJson( + oJson as core.Map, + ); + checkReservationAdvancedDeploymentControl(od); + }); + }); + unittest.group('obj-schema-ReservationAffinity', () { unittest.test('to-json--from-json', () async { final o = buildReservationAffinity(); @@ -51579,6 +52307,17 @@ void main() { }); }); + unittest.group('obj-schema-ResourceStatusEffectiveInstanceMetadata', () { + unittest.test('to-json--from-json', () async { + final o = buildResourceStatusEffectiveInstanceMetadata(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ResourceStatusEffectiveInstanceMetadata.fromJson( + oJson as core.Map, + ); + checkResourceStatusEffectiveInstanceMetadata(od); + }); + }); + unittest.group('obj-schema-ResourceStatusPhysicalHostTopology', () { unittest.test('to-json--from-json', () async { final o = buildResourceStatusPhysicalHostTopology(); @@ -51931,6 +52670,17 @@ void main() { }); }); + unittest.group('obj-schema-RouterParams', () { + unittest.test('to-json--from-json', () async { + final o = buildRouterParams(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.RouterParams.fromJson( + oJson as core.Map, + ); + checkRouterParams(od); + }); + }); + unittest.group('obj-schema-RouterStatus', () { unittest.test('to-json--from-json', () async { final o = buildRouterStatus(); @@ -55406,6 +56156,17 @@ void main() { }); }); + unittest.group('obj-schema-VpnTunnelCipherSuite', () { + unittest.test('to-json--from-json', () async { + final o = buildVpnTunnelCipherSuite(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.VpnTunnelCipherSuite.fromJson( + oJson as core.Map, + ); + checkVpnTunnelCipherSuite(od); + }); + }); + unittest.group('obj-schema-VpnTunnelListWarningData', () { unittest.test('to-json--from-json', () async { final o = buildVpnTunnelListWarningData(); @@ -55439,6 +56200,28 @@ void main() { }); }); + unittest.group('obj-schema-VpnTunnelPhase1Algorithms', () { + unittest.test('to-json--from-json', () async { + final o = buildVpnTunnelPhase1Algorithms(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.VpnTunnelPhase1Algorithms.fromJson( + oJson as core.Map, + ); + checkVpnTunnelPhase1Algorithms(od); + }); + }); + + unittest.group('obj-schema-VpnTunnelPhase2Algorithms', () { + unittest.test('to-json--from-json', () async { + final o = buildVpnTunnelPhase2Algorithms(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.VpnTunnelPhase2Algorithms.fromJson( + oJson as core.Map, + ); + checkVpnTunnelPhase2Algorithms(od); + }); + }); + unittest.group('obj-schema-VpnTunnelsScopedListWarningData', () { unittest.test('to-json--from-json', () async { final o = buildVpnTunnelsScopedListWarningData(); @@ -56685,6 +57468,113 @@ void main() { ); checkOperation(response as api.Operation); }); + + unittest.test('method--testIamPermissions', () async { + final mock = HttpServerMock(); + final res = api.ComputeApi(mock).addresses; + final arg_request = buildTestPermissionsRequest(); + final arg_project = 'foo'; + final arg_region = 'foo'; + final arg_resource = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.TestPermissionsRequest.fromJson( + json as core.Map, + ); + checkTestPermissionsRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('compute/v1/'), + ); + pathOffset += 11; + unittest.expect( + path.substring(pathOffset, pathOffset + 9), + unittest.equals('projects/'), + ); + pathOffset += 9; + index = path.indexOf('/regions/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_project')); + unittest.expect( + path.substring(pathOffset, pathOffset + 9), + unittest.equals('/regions/'), + ); + pathOffset += 9; + index = path.indexOf('/addresses/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_region')); + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('/addresses/'), + ); + pathOffset += 11; + index = path.indexOf('/testIamPermissions', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_resource')); + unittest.expect( + path.substring(pathOffset, pathOffset + 19), + unittest.equals('/testIamPermissions'), + ); + pathOffset += 19; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildTestPermissionsResponse()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.testIamPermissions( + arg_request, + arg_project, + arg_region, + arg_resource, + $fields: arg_$fields, + ); + checkTestPermissionsResponse(response as api.TestPermissionsResponse); + }); }); unittest.group('resource-AutoscalersResource', () { @@ -62302,7 +63192,7 @@ void main() { final arg_project = 'foo'; final arg_zone = 'foo'; final arg_disk = 'foo'; - final arg_paths = buildUnnamed950(); + final arg_paths = buildUnnamed963(); final arg_requestId = 'foo'; final arg_updateMask = 'foo'; final arg_$fields = 'foo'; @@ -66300,18 +67190,21 @@ void main() { ); checkOperation(response as api.Operation); }); - }); - unittest.group('resource-GlobalForwardingRulesResource', () { - unittest.test('method--delete', () async { + unittest.test('method--testIamPermissions', () async { final mock = HttpServerMock(); - final res = api.ComputeApi(mock).globalForwardingRules; + final res = api.ComputeApi(mock).globalAddresses; + final arg_request = buildTestPermissionsRequest(); final arg_project = 'foo'; - final arg_forwardingRule = 'foo'; - final arg_requestId = 'foo'; + final arg_resource = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.TestPermissionsRequest.fromJson( + json as core.Map, + ); + checkTestPermissionsRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -66331,7 +67224,7 @@ void main() { unittest.equals('projects/'), ); pathOffset += 9; - index = path.indexOf('/global/forwardingRules/', pathOffset); + index = path.indexOf('/global/addresses/', pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = core.Uri.decodeQueryComponent( path.substring(pathOffset, index), @@ -66339,13 +67232,22 @@ void main() { pathOffset = index; unittest.expect(subPart, unittest.equals('$arg_project')); unittest.expect( - path.substring(pathOffset, pathOffset + 24), - unittest.equals('/global/forwardingRules/'), + path.substring(pathOffset, pathOffset + 18), + unittest.equals('/global/addresses/'), ); - pathOffset += 24; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals('$arg_forwardingRule')); + pathOffset += 18; + index = path.indexOf('/testIamPermissions', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_resource')); + unittest.expect( + path.substring(pathOffset, pathOffset + 19), + unittest.equals('/testIamPermissions'), + ); + pathOffset += 19; final query = req.url.query; var queryOffset = 0; @@ -66362,31 +67264,112 @@ void main() { ); } } - unittest.expect( - queryMap['requestId']!.first, - unittest.equals(arg_requestId), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildOperation()); + final resp = convert.json.encode(buildTestPermissionsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.delete( + final response = await res.testIamPermissions( + arg_request, arg_project, - arg_forwardingRule, - requestId: arg_requestId, + arg_resource, $fields: arg_$fields, ); - checkOperation(response as api.Operation); + checkTestPermissionsResponse(response as api.TestPermissionsResponse); }); + }); - unittest.test('method--get', () async { + unittest.group('resource-GlobalForwardingRulesResource', () { + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = api.ComputeApi(mock).globalForwardingRules; + final arg_project = 'foo'; + final arg_forwardingRule = 'foo'; + final arg_requestId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('compute/v1/'), + ); + pathOffset += 11; + unittest.expect( + path.substring(pathOffset, pathOffset + 9), + unittest.equals('projects/'), + ); + pathOffset += 9; + index = path.indexOf('/global/forwardingRules/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_project')); + unittest.expect( + path.substring(pathOffset, pathOffset + 24), + unittest.equals('/global/forwardingRules/'), + ); + pathOffset += 24; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals('$arg_forwardingRule')); + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete( + arg_project, + arg_forwardingRule, + requestId: arg_requestId, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); + }); + + unittest.test('method--get', () async { final mock = HttpServerMock(); final res = api.ComputeApi(mock).globalForwardingRules; final arg_project = 'foo'; @@ -75925,17 +76908,22 @@ void main() { ); checkOperation(response as api.Operation); }); - }); - unittest.group('resource-InstanceSettingsResource', () { - unittest.test('method--get', () async { + unittest.test('method--testIamPermissions', () async { final mock = HttpServerMock(); - final res = api.ComputeApi(mock).instanceSettings; + final res = api.ComputeApi(mock).instanceGroups; + final arg_request = buildTestPermissionsRequest(); final arg_project = 'foo'; final arg_zone = 'foo'; + final arg_resource = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.TestPermissionsRequest.fromJson( + json as core.Map, + ); + checkTestPermissionsRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -75967,7 +76955,7 @@ void main() { unittest.equals('/zones/'), ); pathOffset += 7; - index = path.indexOf('/instanceSettings', pathOffset); + index = path.indexOf('/instanceGroups/', pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = core.Uri.decodeQueryComponent( path.substring(pathOffset, index), @@ -75975,10 +76963,22 @@ void main() { pathOffset = index; unittest.expect(subPart, unittest.equals('$arg_zone')); unittest.expect( - path.substring(pathOffset, pathOffset + 17), - unittest.equals('/instanceSettings'), + path.substring(pathOffset, pathOffset + 16), + unittest.equals('/instanceGroups/'), ); - pathOffset += 17; + pathOffset += 16; + index = path.indexOf('/testIamPermissions', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_resource')); + unittest.expect( + path.substring(pathOffset, pathOffset + 19), + unittest.equals('/testIamPermissions'), + ); + pathOffset += 19; final query = req.url.query; var queryOffset = 0; @@ -76001,35 +77001,31 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildInstanceSettings()); + final resp = convert.json.encode(buildTestPermissionsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get( + final response = await res.testIamPermissions( + arg_request, arg_project, arg_zone, + arg_resource, $fields: arg_$fields, ); - checkInstanceSettings(response as api.InstanceSettings); + checkTestPermissionsResponse(response as api.TestPermissionsResponse); }); + }); - unittest.test('method--patch', () async { + unittest.group('resource-InstanceSettingsResource', () { + unittest.test('method--get', () async { final mock = HttpServerMock(); final res = api.ComputeApi(mock).instanceSettings; - final arg_request = buildInstanceSettings(); final arg_project = 'foo'; final arg_zone = 'foo'; - final arg_requestId = 'foo'; - final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.InstanceSettings.fromJson( - json as core.Map, - ); - checkInstanceSettings(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -76089,52 +77085,41 @@ void main() { ); } } - unittest.expect( - queryMap['requestId']!.first, - unittest.equals(arg_requestId), - ); - unittest.expect( - queryMap['updateMask']!.first, - unittest.equals(arg_updateMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildOperation()); + final resp = convert.json.encode(buildInstanceSettings()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.patch( - arg_request, + final response = await res.get( arg_project, arg_zone, - requestId: arg_requestId, - updateMask: arg_updateMask, $fields: arg_$fields, ); - checkOperation(response as api.Operation); + checkInstanceSettings(response as api.InstanceSettings); }); - }); - unittest.group('resource-InstanceTemplatesResource', () { - unittest.test('method--aggregatedList', () async { + unittest.test('method--patch', () async { final mock = HttpServerMock(); - final res = api.ComputeApi(mock).instanceTemplates; + final res = api.ComputeApi(mock).instanceSettings; + final arg_request = buildInstanceSettings(); final arg_project = 'foo'; - final arg_filter = 'foo'; - final arg_includeAllScopes = true; - final arg_maxResults = 42; - final arg_orderBy = 'foo'; - final arg_pageToken = 'foo'; - final arg_returnPartialSuccess = true; - final arg_serviceProjectNumber = 'foo'; + final arg_zone = 'foo'; + final arg_requestId = 'foo'; + final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.InstanceSettings.fromJson( + json as core.Map, + ); + checkInstanceSettings(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -76154,7 +77139,7 @@ void main() { unittest.equals('projects/'), ); pathOffset += 9; - index = path.indexOf('/aggregated/instanceTemplates', pathOffset); + index = path.indexOf('/zones/', pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = core.Uri.decodeQueryComponent( path.substring(pathOffset, index), @@ -76162,126 +77147,231 @@ void main() { pathOffset = index; unittest.expect(subPart, unittest.equals('$arg_project')); unittest.expect( - path.substring(pathOffset, pathOffset + 29), - unittest.equals('/aggregated/instanceTemplates'), - ); - pathOffset += 29; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - queryMap['includeAllScopes']!.first, - unittest.equals('$arg_includeAllScopes'), - ); - unittest.expect( - core.int.parse(queryMap['maxResults']!.first), - unittest.equals(arg_maxResults), - ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['returnPartialSuccess']!.first, - unittest.equals('$arg_returnPartialSuccess'), - ); - unittest.expect( - queryMap['serviceProjectNumber']!.first, - unittest.equals(arg_serviceProjectNumber), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildInstanceTemplateAggregatedList(), - ); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.aggregatedList( - arg_project, - filter: arg_filter, - includeAllScopes: arg_includeAllScopes, - maxResults: arg_maxResults, - orderBy: arg_orderBy, - pageToken: arg_pageToken, - returnPartialSuccess: arg_returnPartialSuccess, - serviceProjectNumber: arg_serviceProjectNumber, - $fields: arg_$fields, - ); - checkInstanceTemplateAggregatedList( - response as api.InstanceTemplateAggregatedList, - ); - }); - - unittest.test('method--delete', () async { - final mock = HttpServerMock(); - final res = api.ComputeApi(mock).instanceTemplates; - final arg_project = 'foo'; - final arg_instanceTemplate = 'foo'; - final arg_requestId = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 11), - unittest.equals('compute/v1/'), - ); - pathOffset += 11; - unittest.expect( - path.substring(pathOffset, pathOffset + 9), - unittest.equals('projects/'), + path.substring(pathOffset, pathOffset + 7), + unittest.equals('/zones/'), ); - pathOffset += 9; - index = path.indexOf('/global/instanceTemplates/', pathOffset); + pathOffset += 7; + index = path.indexOf('/instanceSettings', pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = core.Uri.decodeQueryComponent( path.substring(pathOffset, index), ); pathOffset = index; - unittest.expect(subPart, unittest.equals('$arg_project')); + unittest.expect(subPart, unittest.equals('$arg_zone')); unittest.expect( - path.substring(pathOffset, pathOffset + 26), - unittest.equals('/global/instanceTemplates/'), + path.substring(pathOffset, pathOffset + 17), + unittest.equals('/instanceSettings'), ); - pathOffset += 26; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals('$arg_instanceTemplate')); + pathOffset += 17; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.patch( + arg_request, + arg_project, + arg_zone, + requestId: arg_requestId, + updateMask: arg_updateMask, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); + }); + }); + + unittest.group('resource-InstanceTemplatesResource', () { + unittest.test('method--aggregatedList', () async { + final mock = HttpServerMock(); + final res = api.ComputeApi(mock).instanceTemplates; + final arg_project = 'foo'; + final arg_filter = 'foo'; + final arg_includeAllScopes = true; + final arg_maxResults = 42; + final arg_orderBy = 'foo'; + final arg_pageToken = 'foo'; + final arg_returnPartialSuccess = true; + final arg_serviceProjectNumber = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('compute/v1/'), + ); + pathOffset += 11; + unittest.expect( + path.substring(pathOffset, pathOffset + 9), + unittest.equals('projects/'), + ); + pathOffset += 9; + index = path.indexOf('/aggregated/instanceTemplates', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_project')); + unittest.expect( + path.substring(pathOffset, pathOffset + 29), + unittest.equals('/aggregated/instanceTemplates'), + ); + pathOffset += 29; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['includeAllScopes']!.first, + unittest.equals('$arg_includeAllScopes'), + ); + unittest.expect( + core.int.parse(queryMap['maxResults']!.first), + unittest.equals(arg_maxResults), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['returnPartialSuccess']!.first, + unittest.equals('$arg_returnPartialSuccess'), + ); + unittest.expect( + queryMap['serviceProjectNumber']!.first, + unittest.equals(arg_serviceProjectNumber), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildInstanceTemplateAggregatedList(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.aggregatedList( + arg_project, + filter: arg_filter, + includeAllScopes: arg_includeAllScopes, + maxResults: arg_maxResults, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, + serviceProjectNumber: arg_serviceProjectNumber, + $fields: arg_$fields, + ); + checkInstanceTemplateAggregatedList( + response as api.InstanceTemplateAggregatedList, + ); + }); + + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = api.ComputeApi(mock).instanceTemplates; + final arg_project = 'foo'; + final arg_instanceTemplate = 'foo'; + final arg_requestId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('compute/v1/'), + ); + pathOffset += 11; + unittest.expect( + path.substring(pathOffset, pathOffset + 9), + unittest.equals('projects/'), + ); + pathOffset += 9; + index = path.indexOf('/global/instanceTemplates/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_project')); + unittest.expect( + path.substring(pathOffset, pathOffset + 26), + unittest.equals('/global/instanceTemplates/'), + ); + pathOffset += 26; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals('$arg_instanceTemplate')); final query = req.url.query; var queryOffset = 0; @@ -76985,6 +78075,119 @@ void main() { checkOperation(response as api.Operation); }); + unittest.test('method--addNetworkInterface', () async { + final mock = HttpServerMock(); + final res = api.ComputeApi(mock).instances; + final arg_request = buildNetworkInterface(); + final arg_project = 'foo'; + final arg_zone = 'foo'; + final arg_instance = 'foo'; + final arg_requestId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.NetworkInterface.fromJson( + json as core.Map, + ); + checkNetworkInterface(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('compute/v1/'), + ); + pathOffset += 11; + unittest.expect( + path.substring(pathOffset, pathOffset + 9), + unittest.equals('projects/'), + ); + pathOffset += 9; + index = path.indexOf('/zones/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_project')); + unittest.expect( + path.substring(pathOffset, pathOffset + 7), + unittest.equals('/zones/'), + ); + pathOffset += 7; + index = path.indexOf('/instances/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_zone')); + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('/instances/'), + ); + pathOffset += 11; + index = path.indexOf('/addNetworkInterface', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_instance')); + unittest.expect( + path.substring(pathOffset, pathOffset + 20), + unittest.equals('/addNetworkInterface'), + ); + pathOffset += 20; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.addNetworkInterface( + arg_request, + arg_project, + arg_zone, + arg_instance, + requestId: arg_requestId, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); + }); + unittest.test('method--addResourcePolicies', () async { final mock = HttpServerMock(); final res = api.ComputeApi(mock).instances; @@ -77483,9 +78686,117 @@ void main() { unittest.equals('/instances/'), ); pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals('$arg_instance')); + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete( + arg_project, + arg_zone, + arg_instance, + requestId: arg_requestId, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); + }); + + unittest.test('method--deleteAccessConfig', () async { + final mock = HttpServerMock(); + final res = api.ComputeApi(mock).instances; + final arg_project = 'foo'; + final arg_zone = 'foo'; + final arg_instance = 'foo'; + final arg_accessConfig = 'foo'; + final arg_networkInterface = 'foo'; + final arg_requestId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('compute/v1/'), + ); + pathOffset += 11; + unittest.expect( + path.substring(pathOffset, pathOffset + 9), + unittest.equals('projects/'), + ); + pathOffset += 9; + index = path.indexOf('/zones/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_project')); + unittest.expect( + path.substring(pathOffset, pathOffset + 7), + unittest.equals('/zones/'), + ); + pathOffset += 7; + index = path.indexOf('/instances/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_zone')); + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('/instances/'), + ); + pathOffset += 11; + index = path.indexOf('/deleteAccessConfig', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; unittest.expect(subPart, unittest.equals('$arg_instance')); + unittest.expect( + path.substring(pathOffset, pathOffset + 19), + unittest.equals('/deleteAccessConfig'), + ); + pathOffset += 19; final query = req.url.query; var queryOffset = 0; @@ -77502,6 +78813,14 @@ void main() { ); } } + unittest.expect( + queryMap['accessConfig']!.first, + unittest.equals(arg_accessConfig), + ); + unittest.expect( + queryMap['networkInterface']!.first, + unittest.equals(arg_networkInterface), + ); unittest.expect( queryMap['requestId']!.first, unittest.equals(arg_requestId), @@ -77517,24 +78836,25 @@ void main() { }), true, ); - final response = await res.delete( + final response = await res.deleteAccessConfig( arg_project, arg_zone, arg_instance, + arg_accessConfig, + arg_networkInterface, requestId: arg_requestId, $fields: arg_$fields, ); checkOperation(response as api.Operation); }); - unittest.test('method--deleteAccessConfig', () async { + unittest.test('method--deleteNetworkInterface', () async { final mock = HttpServerMock(); final res = api.ComputeApi(mock).instances; final arg_project = 'foo'; final arg_zone = 'foo'; final arg_instance = 'foo'; - final arg_accessConfig = 'foo'; - final arg_networkInterface = 'foo'; + final arg_networkInterfaceName = 'foo'; final arg_requestId = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -77582,7 +78902,7 @@ void main() { unittest.equals('/instances/'), ); pathOffset += 11; - index = path.indexOf('/deleteAccessConfig', pathOffset); + index = path.indexOf('/deleteNetworkInterface', pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = core.Uri.decodeQueryComponent( path.substring(pathOffset, index), @@ -77590,10 +78910,10 @@ void main() { pathOffset = index; unittest.expect(subPart, unittest.equals('$arg_instance')); unittest.expect( - path.substring(pathOffset, pathOffset + 19), - unittest.equals('/deleteAccessConfig'), + path.substring(pathOffset, pathOffset + 23), + unittest.equals('/deleteNetworkInterface'), ); - pathOffset += 19; + pathOffset += 23; final query = req.url.query; var queryOffset = 0; @@ -77611,12 +78931,8 @@ void main() { } } unittest.expect( - queryMap['accessConfig']!.first, - unittest.equals(arg_accessConfig), - ); - unittest.expect( - queryMap['networkInterface']!.first, - unittest.equals(arg_networkInterface), + queryMap['networkInterfaceName']!.first, + unittest.equals(arg_networkInterfaceName), ); unittest.expect( queryMap['requestId']!.first, @@ -77633,12 +78949,11 @@ void main() { }), true, ); - final response = await res.deleteAccessConfig( + final response = await res.deleteNetworkInterface( arg_project, arg_zone, arg_instance, - arg_accessConfig, - arg_networkInterface, + arg_networkInterfaceName, requestId: arg_requestId, $fields: arg_$fields, ); @@ -90212,7 +91527,7 @@ void main() { final arg_project = 'foo'; final arg_region = 'foo'; final arg_networkEdgeSecurityService = 'foo'; - final arg_paths = buildUnnamed951(); + final arg_paths = buildUnnamed964(); final arg_requestId = 'foo'; final arg_updateMask = 'foo'; final arg_$fields = 'foo'; @@ -94413,6 +95728,105 @@ void main() { checkOperation(response as api.Operation); }); + unittest.test('method--requestRemovePeering', () async { + final mock = HttpServerMock(); + final res = api.ComputeApi(mock).networks; + final arg_request = buildNetworksRequestRemovePeeringRequest(); + final arg_project = 'foo'; + final arg_network = 'foo'; + final arg_requestId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.NetworksRequestRemovePeeringRequest.fromJson( + json as core.Map, + ); + checkNetworksRequestRemovePeeringRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('compute/v1/'), + ); + pathOffset += 11; + unittest.expect( + path.substring(pathOffset, pathOffset + 9), + unittest.equals('projects/'), + ); + pathOffset += 9; + index = path.indexOf('/global/networks/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_project')); + unittest.expect( + path.substring(pathOffset, pathOffset + 17), + unittest.equals('/global/networks/'), + ); + pathOffset += 17; + index = path.indexOf('/requestRemovePeering', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_network')); + unittest.expect( + path.substring(pathOffset, pathOffset + 21), + unittest.equals('/requestRemovePeering'), + ); + pathOffset += 21; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.requestRemovePeering( + arg_request, + arg_project, + arg_network, + requestId: arg_requestId, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); + }); + unittest.test('method--switchToCustomMode', () async { final mock = HttpServerMock(); final res = api.ComputeApi(mock).networks; @@ -103134,7 +104548,7 @@ void main() { final arg_project = 'foo'; final arg_region = 'foo'; final arg_commitment = 'foo'; - final arg_paths = buildUnnamed952(); + final arg_paths = buildUnnamed965(); final arg_requestId = 'foo'; final arg_updateMask = 'foo'; final arg_$fields = 'foo'; @@ -105169,7 +106583,7 @@ void main() { final arg_project = 'foo'; final arg_region = 'foo'; final arg_disk = 'foo'; - final arg_paths = buildUnnamed953(); + final arg_paths = buildUnnamed966(); final arg_requestId = 'foo'; final arg_updateMask = 'foo'; final arg_$fields = 'foo'; @@ -109353,7 +110767,144 @@ void main() { unittest.equals('/instanceGroups/'), ); pathOffset += 16; - index = path.indexOf('/listInstances', pathOffset); + index = path.indexOf('/listInstances', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_instanceGroup')); + unittest.expect( + path.substring(pathOffset, pathOffset + 14), + unittest.equals('/listInstances'), + ); + pathOffset += 14; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['maxResults']!.first), + unittest.equals(arg_maxResults), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['returnPartialSuccess']!.first, + unittest.equals('$arg_returnPartialSuccess'), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildRegionInstanceGroupsListInstances(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.listInstances( + arg_request, + arg_project, + arg_region, + arg_instanceGroup, + filter: arg_filter, + maxResults: arg_maxResults, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, + $fields: arg_$fields, + ); + checkRegionInstanceGroupsListInstances( + response as api.RegionInstanceGroupsListInstances, + ); + }); + + unittest.test('method--setNamedPorts', () async { + final mock = HttpServerMock(); + final res = api.ComputeApi(mock).regionInstanceGroups; + final arg_request = buildRegionInstanceGroupsSetNamedPortsRequest(); + final arg_project = 'foo'; + final arg_region = 'foo'; + final arg_instanceGroup = 'foo'; + final arg_requestId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.RegionInstanceGroupsSetNamedPortsRequest.fromJson( + json as core.Map, + ); + checkRegionInstanceGroupsSetNamedPortsRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('compute/v1/'), + ); + pathOffset += 11; + unittest.expect( + path.substring(pathOffset, pathOffset + 9), + unittest.equals('projects/'), + ); + pathOffset += 9; + index = path.indexOf('/regions/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_project')); + unittest.expect( + path.substring(pathOffset, pathOffset + 9), + unittest.equals('/regions/'), + ); + pathOffset += 9; + index = path.indexOf('/instanceGroups/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_region')); + unittest.expect( + path.substring(pathOffset, pathOffset + 16), + unittest.equals('/instanceGroups/'), + ); + pathOffset += 16; + index = path.indexOf('/setNamedPorts', pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = core.Uri.decodeQueryComponent( path.substring(pathOffset, index), @@ -109362,7 +110913,7 @@ void main() { unittest.expect(subPart, unittest.equals('$arg_instanceGroup')); unittest.expect( path.substring(pathOffset, pathOffset + 14), - unittest.equals('/listInstances'), + unittest.equals('/setNamedPorts'), ); pathOffset += 14; @@ -109382,24 +110933,8 @@ void main() { } } unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - core.int.parse(queryMap['maxResults']!.first), - unittest.equals(arg_maxResults), - ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['returnPartialSuccess']!.first, - unittest.equals('$arg_returnPartialSuccess'), + queryMap['requestId']!.first, + unittest.equals(arg_requestId), ); unittest.expect( queryMap['fields']!.first, @@ -109407,45 +110942,36 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildRegionInstanceGroupsListInstances(), - ); + final resp = convert.json.encode(buildOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.listInstances( + final response = await res.setNamedPorts( arg_request, arg_project, arg_region, arg_instanceGroup, - filter: arg_filter, - maxResults: arg_maxResults, - orderBy: arg_orderBy, - pageToken: arg_pageToken, - returnPartialSuccess: arg_returnPartialSuccess, + requestId: arg_requestId, $fields: arg_$fields, ); - checkRegionInstanceGroupsListInstances( - response as api.RegionInstanceGroupsListInstances, - ); + checkOperation(response as api.Operation); }); - unittest.test('method--setNamedPorts', () async { + unittest.test('method--testIamPermissions', () async { final mock = HttpServerMock(); final res = api.ComputeApi(mock).regionInstanceGroups; - final arg_request = buildRegionInstanceGroupsSetNamedPortsRequest(); + final arg_request = buildTestPermissionsRequest(); final arg_project = 'foo'; final arg_region = 'foo'; - final arg_instanceGroup = 'foo'; - final arg_requestId = 'foo'; + final arg_resource = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.RegionInstanceGroupsSetNamedPortsRequest.fromJson( + final obj = api.TestPermissionsRequest.fromJson( json as core.Map, ); - checkRegionInstanceGroupsSetNamedPortsRequest(obj); + checkTestPermissionsRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -109490,18 +111016,18 @@ void main() { unittest.equals('/instanceGroups/'), ); pathOffset += 16; - index = path.indexOf('/setNamedPorts', pathOffset); + index = path.indexOf('/testIamPermissions', pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = core.Uri.decodeQueryComponent( path.substring(pathOffset, index), ); pathOffset = index; - unittest.expect(subPart, unittest.equals('$arg_instanceGroup')); + unittest.expect(subPart, unittest.equals('$arg_resource')); unittest.expect( - path.substring(pathOffset, pathOffset + 14), - unittest.equals('/setNamedPorts'), + path.substring(pathOffset, pathOffset + 19), + unittest.equals('/testIamPermissions'), ); - pathOffset += 14; + pathOffset += 19; final query = req.url.query; var queryOffset = 0; @@ -109518,30 +111044,25 @@ void main() { ); } } - unittest.expect( - queryMap['requestId']!.first, - unittest.equals(arg_requestId), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildOperation()); + final resp = convert.json.encode(buildTestPermissionsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.setNamedPorts( + final response = await res.testIamPermissions( arg_request, arg_project, arg_region, - arg_instanceGroup, - requestId: arg_requestId, + arg_resource, $fields: arg_$fields, ); - checkOperation(response as api.Operation); + checkTestPermissionsResponse(response as api.TestPermissionsResponse); }); }); @@ -120926,7 +122447,7 @@ void main() { final arg_project = 'foo'; final arg_zone = 'foo'; final arg_reservation = 'foo'; - final arg_paths = buildUnnamed954(); + final arg_paths = buildUnnamed967(); final arg_requestId = 'foo'; final arg_updateMask = 'foo'; final arg_$fields = 'foo'; @@ -125633,6 +127154,7 @@ void main() { final arg_project = 'foo'; final arg_region = 'foo'; final arg_serviceAttachment = 'foo'; + final arg_showNatIps = true; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -125698,6 +127220,10 @@ void main() { ); } } + unittest.expect( + queryMap['showNatIps']!.first, + unittest.equals('$arg_showNatIps'), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -125713,6 +127239,7 @@ void main() { arg_project, arg_region, arg_serviceAttachment, + showNatIps: arg_showNatIps, $fields: arg_$fields, ); checkServiceAttachment(response as api.ServiceAttachment); @@ -133604,147 +135131,259 @@ void main() { }), true, ); - final response = await res.insert( + final response = await res.insert( + arg_request, + arg_project, + arg_zone, + requestId: arg_requestId, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = api.ComputeApi(mock).targetInstances; + final arg_project = 'foo'; + final arg_zone = 'foo'; + final arg_filter = 'foo'; + final arg_maxResults = 42; + final arg_orderBy = 'foo'; + final arg_pageToken = 'foo'; + final arg_returnPartialSuccess = true; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('compute/v1/'), + ); + pathOffset += 11; + unittest.expect( + path.substring(pathOffset, pathOffset + 9), + unittest.equals('projects/'), + ); + pathOffset += 9; + index = path.indexOf('/zones/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_project')); + unittest.expect( + path.substring(pathOffset, pathOffset + 7), + unittest.equals('/zones/'), + ); + pathOffset += 7; + index = path.indexOf('/targetInstances', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_zone')); + unittest.expect( + path.substring(pathOffset, pathOffset + 16), + unittest.equals('/targetInstances'), + ); + pathOffset += 16; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['maxResults']!.first), + unittest.equals(arg_maxResults), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['returnPartialSuccess']!.first, + unittest.equals('$arg_returnPartialSuccess'), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildTargetInstanceList()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_project, + arg_zone, + filter: arg_filter, + maxResults: arg_maxResults, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, + $fields: arg_$fields, + ); + checkTargetInstanceList(response as api.TargetInstanceList); + }); + + unittest.test('method--setSecurityPolicy', () async { + final mock = HttpServerMock(); + final res = api.ComputeApi(mock).targetInstances; + final arg_request = buildSecurityPolicyReference(); + final arg_project = 'foo'; + final arg_zone = 'foo'; + final arg_targetInstance = 'foo'; + final arg_requestId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.SecurityPolicyReference.fromJson( + json as core.Map, + ); + checkSecurityPolicyReference(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('compute/v1/'), + ); + pathOffset += 11; + unittest.expect( + path.substring(pathOffset, pathOffset + 9), + unittest.equals('projects/'), + ); + pathOffset += 9; + index = path.indexOf('/zones/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_project')); + unittest.expect( + path.substring(pathOffset, pathOffset + 7), + unittest.equals('/zones/'), + ); + pathOffset += 7; + index = path.indexOf('/targetInstances/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_zone')); + unittest.expect( + path.substring(pathOffset, pathOffset + 17), + unittest.equals('/targetInstances/'), + ); + pathOffset += 17; + index = path.indexOf('/setSecurityPolicy', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_targetInstance')); + unittest.expect( + path.substring(pathOffset, pathOffset + 18), + unittest.equals('/setSecurityPolicy'), + ); + pathOffset += 18; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.setSecurityPolicy( arg_request, arg_project, arg_zone, + arg_targetInstance, requestId: arg_requestId, $fields: arg_$fields, ); checkOperation(response as api.Operation); }); - unittest.test('method--list', () async { - final mock = HttpServerMock(); - final res = api.ComputeApi(mock).targetInstances; - final arg_project = 'foo'; - final arg_zone = 'foo'; - final arg_filter = 'foo'; - final arg_maxResults = 42; - final arg_orderBy = 'foo'; - final arg_pageToken = 'foo'; - final arg_returnPartialSuccess = true; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 11), - unittest.equals('compute/v1/'), - ); - pathOffset += 11; - unittest.expect( - path.substring(pathOffset, pathOffset + 9), - unittest.equals('projects/'), - ); - pathOffset += 9; - index = path.indexOf('/zones/', pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent( - path.substring(pathOffset, index), - ); - pathOffset = index; - unittest.expect(subPart, unittest.equals('$arg_project')); - unittest.expect( - path.substring(pathOffset, pathOffset + 7), - unittest.equals('/zones/'), - ); - pathOffset += 7; - index = path.indexOf('/targetInstances', pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent( - path.substring(pathOffset, index), - ); - pathOffset = index; - unittest.expect(subPart, unittest.equals('$arg_zone')); - unittest.expect( - path.substring(pathOffset, pathOffset + 16), - unittest.equals('/targetInstances'), - ); - pathOffset += 16; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - core.int.parse(queryMap['maxResults']!.first), - unittest.equals(arg_maxResults), - ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['returnPartialSuccess']!.first, - unittest.equals('$arg_returnPartialSuccess'), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildTargetInstanceList()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.list( - arg_project, - arg_zone, - filter: arg_filter, - maxResults: arg_maxResults, - orderBy: arg_orderBy, - pageToken: arg_pageToken, - returnPartialSuccess: arg_returnPartialSuccess, - $fields: arg_$fields, - ); - checkTargetInstanceList(response as api.TargetInstanceList); - }); - - unittest.test('method--setSecurityPolicy', () async { + unittest.test('method--testIamPermissions', () async { final mock = HttpServerMock(); final res = api.ComputeApi(mock).targetInstances; - final arg_request = buildSecurityPolicyReference(); + final arg_request = buildTestPermissionsRequest(); final arg_project = 'foo'; final arg_zone = 'foo'; - final arg_targetInstance = 'foo'; - final arg_requestId = 'foo'; + final arg_resource = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.SecurityPolicyReference.fromJson( + final obj = api.TestPermissionsRequest.fromJson( json as core.Map, ); - checkSecurityPolicyReference(obj); + checkTestPermissionsRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -133789,18 +135428,18 @@ void main() { unittest.equals('/targetInstances/'), ); pathOffset += 17; - index = path.indexOf('/setSecurityPolicy', pathOffset); + index = path.indexOf('/testIamPermissions', pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = core.Uri.decodeQueryComponent( path.substring(pathOffset, index), ); pathOffset = index; - unittest.expect(subPart, unittest.equals('$arg_targetInstance')); + unittest.expect(subPart, unittest.equals('$arg_resource')); unittest.expect( - path.substring(pathOffset, pathOffset + 18), - unittest.equals('/setSecurityPolicy'), + path.substring(pathOffset, pathOffset + 19), + unittest.equals('/testIamPermissions'), ); - pathOffset += 18; + pathOffset += 19; final query = req.url.query; var queryOffset = 0; @@ -133817,30 +135456,25 @@ void main() { ); } } - unittest.expect( - queryMap['requestId']!.first, - unittest.equals(arg_requestId), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildOperation()); + final resp = convert.json.encode(buildTestPermissionsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.setSecurityPolicy( + final response = await res.testIamPermissions( arg_request, arg_project, arg_zone, - arg_targetInstance, - requestId: arg_requestId, + arg_resource, $fields: arg_$fields, ); - checkOperation(response as api.Operation); + checkTestPermissionsResponse(response as api.TestPermissionsResponse); }); }); @@ -135152,6 +136786,113 @@ void main() { ); checkOperation(response as api.Operation); }); + + unittest.test('method--testIamPermissions', () async { + final mock = HttpServerMock(); + final res = api.ComputeApi(mock).targetPools; + final arg_request = buildTestPermissionsRequest(); + final arg_project = 'foo'; + final arg_region = 'foo'; + final arg_resource = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.TestPermissionsRequest.fromJson( + json as core.Map, + ); + checkTestPermissionsRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('compute/v1/'), + ); + pathOffset += 11; + unittest.expect( + path.substring(pathOffset, pathOffset + 9), + unittest.equals('projects/'), + ); + pathOffset += 9; + index = path.indexOf('/regions/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_project')); + unittest.expect( + path.substring(pathOffset, pathOffset + 9), + unittest.equals('/regions/'), + ); + pathOffset += 9; + index = path.indexOf('/targetPools/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_region')); + unittest.expect( + path.substring(pathOffset, pathOffset + 13), + unittest.equals('/targetPools/'), + ); + pathOffset += 13; + index = path.indexOf('/testIamPermissions', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_resource')); + unittest.expect( + path.substring(pathOffset, pathOffset + 19), + unittest.equals('/testIamPermissions'), + ); + pathOffset += 19; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildTestPermissionsResponse()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.testIamPermissions( + arg_request, + arg_project, + arg_region, + arg_resource, + $fields: arg_$fields, + ); + checkTestPermissionsResponse(response as api.TestPermissionsResponse); + }); }); unittest.group('resource-TargetSslProxiesResource', () { diff --git a/generated/googleapis/test/config/v1_test.dart b/generated/googleapis/test/config/v1_test.dart index deb1c5d33..1ea0343e3 100644 --- a/generated/googleapis/test/config/v1_test.dart +++ b/generated/googleapis/test/config/v1_test.dart @@ -231,6 +231,7 @@ api.Deployment buildDeployment() { o.latestRevision = 'foo'; o.lockState = 'foo'; o.name = 'foo'; + o.providerConfig = buildProviderConfig(); o.quotaValidation = 'foo'; o.serviceAccount = 'foo'; o.state = 'foo'; @@ -262,6 +263,7 @@ void checkDeployment(api.Deployment o) { unittest.expect(o.latestRevision!, unittest.equals('foo')); unittest.expect(o.lockState!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); + checkProviderConfig(o.providerConfig!); unittest.expect(o.quotaValidation!, unittest.equals('foo')); unittest.expect(o.serviceAccount!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); @@ -1050,6 +1052,7 @@ api.Preview buildPreview() { o.name = 'foo'; o.previewArtifacts = buildPreviewArtifacts(); o.previewMode = 'foo'; + o.providerConfig = buildProviderConfig(); o.serviceAccount = 'foo'; o.state = 'foo'; o.terraformBlueprint = buildTerraformBlueprint(); @@ -1078,6 +1081,7 @@ void checkPreview(api.Preview o) { unittest.expect(o.name!, unittest.equals('foo')); checkPreviewArtifacts(o.previewArtifacts!); unittest.expect(o.previewMode!, unittest.equals('foo')); + checkProviderConfig(o.providerConfig!); unittest.expect(o.serviceAccount!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); checkTerraformBlueprint(o.terraformBlueprint!); @@ -1249,6 +1253,25 @@ void checkPropertyDrift(api.PropertyDrift o) { buildCounterPropertyDrift--; } +core.int buildCounterProviderConfig = 0; +api.ProviderConfig buildProviderConfig() { + final o = api.ProviderConfig(); + buildCounterProviderConfig++; + if (buildCounterProviderConfig < 3) { + o.sourceType = 'foo'; + } + buildCounterProviderConfig--; + return o; +} + +void checkProviderConfig(api.ProviderConfig o) { + buildCounterProviderConfig++; + if (buildCounterProviderConfig < 3) { + unittest.expect(o.sourceType!, unittest.equals('foo')); + } + buildCounterProviderConfig--; +} + core.Map buildUnnamed36() => { 'x': buildResourceCAIInfo(), 'y': buildResourceCAIInfo(), @@ -1484,6 +1507,7 @@ api.Revision buildRevision() { o.importExistingResources = true; o.logs = 'foo'; o.name = 'foo'; + o.providerConfig = buildProviderConfig(); o.quotaValidation = 'foo'; o.quotaValidationResults = 'foo'; o.serviceAccount = 'foo'; @@ -1512,6 +1536,7 @@ void checkRevision(api.Revision o) { unittest.expect(o.importExistingResources!, unittest.isTrue); unittest.expect(o.logs!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); + checkProviderConfig(o.providerConfig!); unittest.expect(o.quotaValidation!, unittest.equals('foo')); unittest.expect(o.quotaValidationResults!, unittest.equals('foo')); unittest.expect(o.serviceAccount!, unittest.equals('foo')); @@ -2226,6 +2251,17 @@ void main() { }); }); + unittest.group('obj-schema-ProviderConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildProviderConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ProviderConfig.fromJson( + oJson as core.Map, + ); + checkProviderConfig(od); + }); + }); + unittest.group('obj-schema-Resource', () { unittest.test('to-json--from-json', () async { final o = buildResource(); diff --git a/generated/googleapis/test/connectors/v1_test.dart b/generated/googleapis/test/connectors/v1_test.dart index 2f90598c4..ffbc7611f 100644 --- a/generated/googleapis/test/connectors/v1_test.dart +++ b/generated/googleapis/test/connectors/v1_test.dart @@ -763,7 +763,7 @@ api.ConnectorInfraConfig buildConnectorInfraConfig() { o.maxInstanceRequestConcurrency = 42; o.migrateDeploymentModel = true; o.migrateTls = true; - o.networkEgressMode = 'foo'; + o.networkEgressModeOverride = buildNetworkEgressModeOverride(); o.provisionCloudSpanner = true; o.provisionMemstore = true; o.ratelimitThreshold = 'foo'; @@ -793,7 +793,7 @@ void checkConnectorInfraConfig(api.ConnectorInfraConfig o) { unittest.expect(o.maxInstanceRequestConcurrency!, unittest.equals(42)); unittest.expect(o.migrateDeploymentModel!, unittest.isTrue); unittest.expect(o.migrateTls!, unittest.isTrue); - unittest.expect(o.networkEgressMode!, unittest.equals('foo')); + checkNetworkEgressModeOverride(o.networkEgressModeOverride!); unittest.expect(o.provisionCloudSpanner!, unittest.isTrue); unittest.expect(o.provisionMemstore!, unittest.isTrue); unittest.expect(o.ratelimitThreshold!, unittest.equals('foo')); @@ -3880,6 +3880,29 @@ void checkNetworkConfig(api.NetworkConfig o) { buildCounterNetworkConfig--; } +core.int buildCounterNetworkEgressModeOverride = 0; +api.NetworkEgressModeOverride buildNetworkEgressModeOverride() { + final o = api.NetworkEgressModeOverride(); + buildCounterNetworkEgressModeOverride++; + if (buildCounterNetworkEgressModeOverride < 3) { + o.isEventingOverrideEnabled = true; + o.isJobsOverrideEnabled = true; + o.networkEgressMode = 'foo'; + } + buildCounterNetworkEgressModeOverride--; + return o; +} + +void checkNetworkEgressModeOverride(api.NetworkEgressModeOverride o) { + buildCounterNetworkEgressModeOverride++; + if (buildCounterNetworkEgressModeOverride < 3) { + unittest.expect(o.isEventingOverrideEnabled!, unittest.isTrue); + unittest.expect(o.isJobsOverrideEnabled!, unittest.isTrue); + unittest.expect(o.networkEgressMode!, unittest.equals('foo')); + } + buildCounterNetworkEgressModeOverride--; +} + core.int buildCounterNodeConfig = 0; api.NodeConfig buildNodeConfig() { final o = api.NodeConfig(); @@ -6535,6 +6558,17 @@ void main() { }); }); + unittest.group('obj-schema-NetworkEgressModeOverride', () { + unittest.test('to-json--from-json', () async { + final o = buildNetworkEgressModeOverride(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.NetworkEgressModeOverride.fromJson( + oJson as core.Map, + ); + checkNetworkEgressModeOverride(od); + }); + }); + unittest.group('obj-schema-NodeConfig', () { unittest.test('to-json--from-json', () async { final o = buildNodeConfig(); diff --git a/generated/googleapis/test/connectors/v2_test.dart b/generated/googleapis/test/connectors/v2_test.dart index ced298c80..91cb771f8 100644 --- a/generated/googleapis/test/connectors/v2_test.dart +++ b/generated/googleapis/test/connectors/v2_test.dart @@ -60,12 +60,52 @@ void checkUnnamed0(core.List o) { checkInputParameter(o[1]); } -core.List buildUnnamed1() => [ +core.Map buildUnnamed1() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed1(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted1 = (o['x']!) as core.Map; + unittest.expect(casted1, unittest.hasLength(3)); + unittest.expect(casted1['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted1['bool'], unittest.equals(true)); + unittest.expect(casted1['string'], unittest.equals('foo')); + var casted2 = (o['y']!) as core.Map; + unittest.expect(casted2, unittest.hasLength(3)); + unittest.expect(casted2['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted2['bool'], unittest.equals(true)); + unittest.expect(casted2['string'], unittest.equals('foo')); +} + +core.Map> buildUnnamed2() => { + 'x': buildUnnamed1(), + 'y': buildUnnamed1(), +}; + +void checkUnnamed2( + core.Map> o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed1(o['x']!); + checkUnnamed1(o['y']!); +} + +core.List buildUnnamed3() => [ buildResultMetadata(), buildResultMetadata(), ]; -void checkUnnamed1(core.List o) { +void checkUnnamed3(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkResultMetadata(o[0]); checkResultMetadata(o[1]); @@ -80,9 +120,10 @@ api.Action buildAction() { o.displayName = 'foo'; o.inputJsonSchema = buildJsonSchema(); o.inputParameters = buildUnnamed0(); + o.metadata = buildUnnamed2(); o.name = 'foo'; o.resultJsonSchema = buildJsonSchema(); - o.resultMetadata = buildUnnamed1(); + o.resultMetadata = buildUnnamed3(); } buildCounterAction--; return o; @@ -95,16 +136,17 @@ void checkAction(api.Action o) { unittest.expect(o.displayName!, unittest.equals('foo')); checkJsonSchema(o.inputJsonSchema!); checkUnnamed0(o.inputParameters!); + checkUnnamed2(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); checkJsonSchema(o.resultJsonSchema!); - checkUnnamed1(o.resultMetadata!); + checkUnnamed3(o.resultMetadata!); } buildCounterAction--; } -core.List buildUnnamed2() => ['foo', 'foo']; +core.List buildUnnamed4() => ['foo', 'foo']; -void checkUnnamed2(core.List o) { +void checkUnnamed4(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -118,7 +160,7 @@ api.AuthCodeData buildAuthCodeData() { o.authCode = 'foo'; o.pkceVerifier = 'foo'; o.redirectUri = 'foo'; - o.scopes = buildUnnamed2(); + o.scopes = buildUnnamed4(); } buildCounterAuthCodeData--; return o; @@ -130,7 +172,7 @@ void checkAuthCodeData(api.AuthCodeData o) { unittest.expect(o.authCode!, unittest.equals('foo')); unittest.expect(o.pkceVerifier!, unittest.equals('foo')); unittest.expect(o.redirectUri!, unittest.equals('foo')); - checkUnnamed2(o.scopes!); + checkUnnamed4(o.scopes!); } buildCounterAuthCodeData--; } @@ -154,12 +196,53 @@ void checkCheckReadinessResponse(api.CheckReadinessResponse o) { buildCounterCheckReadinessResponse--; } +core.Map buildUnnamed5() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed5(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted3 = (o['x']!) as core.Map; + unittest.expect(casted3, unittest.hasLength(3)); + unittest.expect(casted3['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted3['bool'], unittest.equals(true)); + unittest.expect(casted3['string'], unittest.equals('foo')); + var casted4 = (o['y']!) as core.Map; + unittest.expect(casted4, unittest.hasLength(3)); + unittest.expect(casted4['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted4['bool'], unittest.equals(true)); + unittest.expect(casted4['string'], unittest.equals('foo')); +} + +core.Map> buildUnnamed6() => { + 'x': buildUnnamed5(), + 'y': buildUnnamed5(), +}; + +void checkUnnamed6( + core.Map> o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed5(o['x']!); + checkUnnamed5(o['y']!); +} + core.int buildCounterCheckStatusResponse = 0; api.CheckStatusResponse buildCheckStatusResponse() { final o = api.CheckStatusResponse(); buildCounterCheckStatusResponse++; if (buildCounterCheckStatusResponse < 3) { o.description = 'foo'; + o.metadata = buildUnnamed6(); o.state = 'foo'; } buildCounterCheckStatusResponse--; @@ -170,6 +253,7 @@ void checkCheckStatusResponse(api.CheckStatusResponse o) { buildCounterCheckStatusResponse++; if (buildCounterCheckStatusResponse < 3) { unittest.expect(o.description!, unittest.equals('foo')); + checkUnnamed6(o.metadata!); unittest.expect(o.state!, unittest.equals('foo')); } buildCounterCheckStatusResponse--; @@ -190,7 +274,7 @@ void checkEmpty(api.Empty o) { buildCounterEmpty--; } -core.Map buildUnnamed3() => { +core.Map buildUnnamed7() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -203,18 +287,58 @@ core.Map buildUnnamed3() => { }, }; -void checkUnnamed3(core.Map o) { +void checkUnnamed7(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted1 = (o['x']!) as core.Map; - unittest.expect(casted1, unittest.hasLength(3)); - unittest.expect(casted1['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted1['bool'], unittest.equals(true)); - unittest.expect(casted1['string'], unittest.equals('foo')); - var casted2 = (o['y']!) as core.Map; - unittest.expect(casted2, unittest.hasLength(3)); - unittest.expect(casted2['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted2['bool'], unittest.equals(true)); - unittest.expect(casted2['string'], unittest.equals('foo')); + var casted5 = (o['x']!) as core.Map; + unittest.expect(casted5, unittest.hasLength(3)); + unittest.expect(casted5['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted5['bool'], unittest.equals(true)); + unittest.expect(casted5['string'], unittest.equals('foo')); + var casted6 = (o['y']!) as core.Map; + unittest.expect(casted6, unittest.hasLength(3)); + unittest.expect(casted6['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted6['bool'], unittest.equals(true)); + unittest.expect(casted6['string'], unittest.equals('foo')); +} + +core.Map buildUnnamed8() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed8(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted7 = (o['x']!) as core.Map; + unittest.expect(casted7, unittest.hasLength(3)); + unittest.expect(casted7['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted7['bool'], unittest.equals(true)); + unittest.expect(casted7['string'], unittest.equals('foo')); + var casted8 = (o['y']!) as core.Map; + unittest.expect(casted8, unittest.hasLength(3)); + unittest.expect(casted8['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted8['bool'], unittest.equals(true)); + unittest.expect(casted8['string'], unittest.equals('foo')); +} + +core.Map> buildUnnamed9() => { + 'x': buildUnnamed8(), + 'y': buildUnnamed8(), +}; + +void checkUnnamed9( + core.Map> o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed8(o['x']!); + checkUnnamed8(o['y']!); } core.int buildCounterEntity = 0; @@ -222,7 +346,8 @@ api.Entity buildEntity() { final o = api.Entity(); buildCounterEntity++; if (buildCounterEntity < 3) { - o.fields = buildUnnamed3(); + o.fields = buildUnnamed7(); + o.metadata = buildUnnamed9(); o.name = 'foo'; } buildCounterEntity--; @@ -232,23 +357,64 @@ api.Entity buildEntity() { void checkEntity(api.Entity o) { buildCounterEntity++; if (buildCounterEntity < 3) { - checkUnnamed3(o.fields!); + checkUnnamed7(o.fields!); + checkUnnamed9(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); } buildCounterEntity--; } -core.List buildUnnamed4() => [buildField(), buildField()]; +core.List buildUnnamed10() => [buildField(), buildField()]; -void checkUnnamed4(core.List o) { +void checkUnnamed10(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -core.List buildUnnamed5() => ['foo', 'foo']; +core.Map buildUnnamed11() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; -void checkUnnamed5(core.List o) { +void checkUnnamed11(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted9 = (o['x']!) as core.Map; + unittest.expect(casted9, unittest.hasLength(3)); + unittest.expect(casted9['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted9['bool'], unittest.equals(true)); + unittest.expect(casted9['string'], unittest.equals('foo')); + var casted10 = (o['y']!) as core.Map; + unittest.expect(casted10, unittest.hasLength(3)); + unittest.expect(casted10['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted10['bool'], unittest.equals(true)); + unittest.expect(casted10['string'], unittest.equals('foo')); +} + +core.Map> buildUnnamed12() => { + 'x': buildUnnamed11(), + 'y': buildUnnamed11(), +}; + +void checkUnnamed12( + core.Map> o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed11(o['x']!); + checkUnnamed11(o['y']!); +} + +core.List buildUnnamed13() => ['foo', 'foo']; + +void checkUnnamed13(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -259,10 +425,12 @@ api.EntityType buildEntityType() { final o = api.EntityType(); buildCounterEntityType++; if (buildCounterEntityType < 3) { - o.fields = buildUnnamed4(); + o.defaultSortBy = 'foo'; + o.fields = buildUnnamed10(); o.jsonSchema = buildJsonSchema(); + o.metadata = buildUnnamed12(); o.name = 'foo'; - o.operations = buildUnnamed5(); + o.operations = buildUnnamed13(); } buildCounterEntityType--; return o; @@ -271,10 +439,12 @@ api.EntityType buildEntityType() { void checkEntityType(api.EntityType o) { buildCounterEntityType++; if (buildCounterEntityType < 3) { - checkUnnamed4(o.fields!); + unittest.expect(o.defaultSortBy!, unittest.equals('foo')); + checkUnnamed10(o.fields!); checkJsonSchema(o.jsonSchema!); + checkUnnamed12(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed5(o.operations!); + checkUnnamed13(o.operations!); } buildCounterEntityType--; } @@ -298,12 +468,53 @@ void checkExchangeAuthCodeRequest(api.ExchangeAuthCodeRequest o) { buildCounterExchangeAuthCodeRequest--; } +core.Map buildUnnamed14() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed14(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted11 = (o['x']!) as core.Map; + unittest.expect(casted11, unittest.hasLength(3)); + unittest.expect(casted11['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted11['bool'], unittest.equals(true)); + unittest.expect(casted11['string'], unittest.equals('foo')); + var casted12 = (o['y']!) as core.Map; + unittest.expect(casted12, unittest.hasLength(3)); + unittest.expect(casted12['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted12['bool'], unittest.equals(true)); + unittest.expect(casted12['string'], unittest.equals('foo')); +} + +core.Map> buildUnnamed15() => { + 'x': buildUnnamed14(), + 'y': buildUnnamed14(), +}; + +void checkUnnamed15( + core.Map> o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed14(o['x']!); + checkUnnamed14(o['y']!); +} + core.int buildCounterExchangeAuthCodeResponse = 0; api.ExchangeAuthCodeResponse buildExchangeAuthCodeResponse() { final o = api.ExchangeAuthCodeResponse(); buildCounterExchangeAuthCodeResponse++; if (buildCounterExchangeAuthCodeResponse < 3) { o.accessCredentials = buildAccessCredentials(); + o.metadata = buildUnnamed15(); } buildCounterExchangeAuthCodeResponse--; return o; @@ -313,11 +524,12 @@ void checkExchangeAuthCodeResponse(api.ExchangeAuthCodeResponse o) { buildCounterExchangeAuthCodeResponse++; if (buildCounterExchangeAuthCodeResponse < 3) { checkAccessCredentials(o.accessCredentials!); + checkUnnamed15(o.metadata!); } buildCounterExchangeAuthCodeResponse--; } -core.Map buildUnnamed6() => { +core.Map buildUnnamed16() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -330,18 +542,18 @@ core.Map buildUnnamed6() => { }, }; -void checkUnnamed6(core.Map o) { +void checkUnnamed16(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted3 = (o['x']!) as core.Map; - unittest.expect(casted3, unittest.hasLength(3)); - unittest.expect(casted3['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted3['bool'], unittest.equals(true)); - unittest.expect(casted3['string'], unittest.equals('foo')); - var casted4 = (o['y']!) as core.Map; - unittest.expect(casted4, unittest.hasLength(3)); - unittest.expect(casted4['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted4['bool'], unittest.equals(true)); - unittest.expect(casted4['string'], unittest.equals('foo')); + var casted13 = (o['x']!) as core.Map; + unittest.expect(casted13, unittest.hasLength(3)); + unittest.expect(casted13['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted13['bool'], unittest.equals(true)); + unittest.expect(casted13['string'], unittest.equals('foo')); + var casted14 = (o['y']!) as core.Map; + unittest.expect(casted14, unittest.hasLength(3)); + unittest.expect(casted14['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted14['bool'], unittest.equals(true)); + unittest.expect(casted14['string'], unittest.equals('foo')); } core.int buildCounterExecuteActionRequest = 0; @@ -349,7 +561,7 @@ api.ExecuteActionRequest buildExecuteActionRequest() { final o = api.ExecuteActionRequest(); buildCounterExecuteActionRequest++; if (buildCounterExecuteActionRequest < 3) { - o.parameters = buildUnnamed6(); + o.parameters = buildUnnamed16(); } buildCounterExecuteActionRequest--; return o; @@ -358,12 +570,12 @@ api.ExecuteActionRequest buildExecuteActionRequest() { void checkExecuteActionRequest(api.ExecuteActionRequest o) { buildCounterExecuteActionRequest++; if (buildCounterExecuteActionRequest < 3) { - checkUnnamed6(o.parameters!); + checkUnnamed16(o.parameters!); } buildCounterExecuteActionRequest--; } -core.Map buildUnnamed7() => { +core.Map buildUnnamed17() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -376,29 +588,69 @@ core.Map buildUnnamed7() => { }, }; -void checkUnnamed7(core.Map o) { +void checkUnnamed17(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted5 = (o['x']!) as core.Map; - unittest.expect(casted5, unittest.hasLength(3)); - unittest.expect(casted5['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted5['bool'], unittest.equals(true)); - unittest.expect(casted5['string'], unittest.equals('foo')); - var casted6 = (o['y']!) as core.Map; - unittest.expect(casted6, unittest.hasLength(3)); - unittest.expect(casted6['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted6['bool'], unittest.equals(true)); - unittest.expect(casted6['string'], unittest.equals('foo')); + var casted15 = (o['x']!) as core.Map; + unittest.expect(casted15, unittest.hasLength(3)); + unittest.expect(casted15['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted15['bool'], unittest.equals(true)); + unittest.expect(casted15['string'], unittest.equals('foo')); + var casted16 = (o['y']!) as core.Map; + unittest.expect(casted16, unittest.hasLength(3)); + unittest.expect(casted16['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted16['bool'], unittest.equals(true)); + unittest.expect(casted16['string'], unittest.equals('foo')); +} + +core.Map> buildUnnamed18() => { + 'x': buildUnnamed17(), + 'y': buildUnnamed17(), +}; + +void checkUnnamed18( + core.Map> o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed17(o['x']!); + checkUnnamed17(o['y']!); +} + +core.Map buildUnnamed19() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed19(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted17 = (o['x']!) as core.Map; + unittest.expect(casted17, unittest.hasLength(3)); + unittest.expect(casted17['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted17['bool'], unittest.equals(true)); + unittest.expect(casted17['string'], unittest.equals('foo')); + var casted18 = (o['y']!) as core.Map; + unittest.expect(casted18, unittest.hasLength(3)); + unittest.expect(casted18['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted18['bool'], unittest.equals(true)); + unittest.expect(casted18['string'], unittest.equals('foo')); } -core.List> buildUnnamed8() => [ - buildUnnamed7(), - buildUnnamed7(), +core.List> buildUnnamed20() => [ + buildUnnamed19(), + buildUnnamed19(), ]; -void checkUnnamed8(core.List> o) { +void checkUnnamed20(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed7(o[0]); - checkUnnamed7(o[1]); + checkUnnamed19(o[0]); + checkUnnamed19(o[1]); } core.int buildCounterExecuteActionResponse = 0; @@ -406,7 +658,8 @@ api.ExecuteActionResponse buildExecuteActionResponse() { final o = api.ExecuteActionResponse(); buildCounterExecuteActionResponse++; if (buildCounterExecuteActionResponse < 3) { - o.results = buildUnnamed8(); + o.metadata = buildUnnamed18(); + o.results = buildUnnamed20(); } buildCounterExecuteActionResponse--; return o; @@ -415,7 +668,8 @@ api.ExecuteActionResponse buildExecuteActionResponse() { void checkExecuteActionResponse(api.ExecuteActionResponse o) { buildCounterExecuteActionResponse++; if (buildCounterExecuteActionResponse < 3) { - checkUnnamed8(o.results!); + checkUnnamed18(o.metadata!); + checkUnnamed20(o.results!); } buildCounterExecuteActionResponse--; } @@ -439,7 +693,7 @@ void checkExecuteSqlQueryRequest(api.ExecuteSqlQueryRequest o) { buildCounterExecuteSqlQueryRequest--; } -core.Map buildUnnamed9() => { +core.Map buildUnnamed21() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -452,29 +706,29 @@ core.Map buildUnnamed9() => { }, }; -void checkUnnamed9(core.Map o) { +void checkUnnamed21(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted7 = (o['x']!) as core.Map; - unittest.expect(casted7, unittest.hasLength(3)); - unittest.expect(casted7['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted7['bool'], unittest.equals(true)); - unittest.expect(casted7['string'], unittest.equals('foo')); - var casted8 = (o['y']!) as core.Map; - unittest.expect(casted8, unittest.hasLength(3)); - unittest.expect(casted8['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted8['bool'], unittest.equals(true)); - unittest.expect(casted8['string'], unittest.equals('foo')); -} - -core.List> buildUnnamed10() => [ - buildUnnamed9(), - buildUnnamed9(), + var casted19 = (o['x']!) as core.Map; + unittest.expect(casted19, unittest.hasLength(3)); + unittest.expect(casted19['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted19['bool'], unittest.equals(true)); + unittest.expect(casted19['string'], unittest.equals('foo')); + var casted20 = (o['y']!) as core.Map; + unittest.expect(casted20, unittest.hasLength(3)); + unittest.expect(casted20['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted20['bool'], unittest.equals(true)); + unittest.expect(casted20['string'], unittest.equals('foo')); +} + +core.List> buildUnnamed22() => [ + buildUnnamed21(), + buildUnnamed21(), ]; -void checkUnnamed10(core.List> o) { +void checkUnnamed22(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed9(o[0]); - checkUnnamed9(o[1]); + checkUnnamed21(o[0]); + checkUnnamed21(o[1]); } core.int buildCounterExecuteSqlQueryResponse = 0; @@ -482,7 +736,7 @@ api.ExecuteSqlQueryResponse buildExecuteSqlQueryResponse() { final o = api.ExecuteSqlQueryResponse(); buildCounterExecuteSqlQueryResponse++; if (buildCounterExecuteSqlQueryResponse < 3) { - o.results = buildUnnamed10(); + o.results = buildUnnamed22(); } buildCounterExecuteSqlQueryResponse--; return o; @@ -491,12 +745,12 @@ api.ExecuteSqlQueryResponse buildExecuteSqlQueryResponse() { void checkExecuteSqlQueryResponse(api.ExecuteSqlQueryResponse o) { buildCounterExecuteSqlQueryResponse++; if (buildCounterExecuteSqlQueryResponse < 3) { - checkUnnamed10(o.results!); + checkUnnamed22(o.results!); } buildCounterExecuteSqlQueryResponse--; } -core.Map buildUnnamed11() => { +core.Map buildUnnamed23() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -509,18 +763,110 @@ core.Map buildUnnamed11() => { }, }; -void checkUnnamed11(core.Map o) { +void checkUnnamed23(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted9 = (o['x']!) as core.Map; - unittest.expect(casted9, unittest.hasLength(3)); - unittest.expect(casted9['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted9['bool'], unittest.equals(true)); - unittest.expect(casted9['string'], unittest.equals('foo')); - var casted10 = (o['y']!) as core.Map; - unittest.expect(casted10, unittest.hasLength(3)); - unittest.expect(casted10['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted10['bool'], unittest.equals(true)); - unittest.expect(casted10['string'], unittest.equals('foo')); + var casted21 = (o['x']!) as core.Map; + unittest.expect(casted21, unittest.hasLength(3)); + unittest.expect(casted21['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted21['bool'], unittest.equals(true)); + unittest.expect(casted21['string'], unittest.equals('foo')); + var casted22 = (o['y']!) as core.Map; + unittest.expect(casted22, unittest.hasLength(3)); + unittest.expect(casted22['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted22['bool'], unittest.equals(true)); + unittest.expect(casted22['string'], unittest.equals('foo')); +} + +core.int buildCounterExecuteToolRequest = 0; +api.ExecuteToolRequest buildExecuteToolRequest() { + final o = api.ExecuteToolRequest(); + buildCounterExecuteToolRequest++; + if (buildCounterExecuteToolRequest < 3) { + o.parameters = buildUnnamed23(); + } + buildCounterExecuteToolRequest--; + return o; +} + +void checkExecuteToolRequest(api.ExecuteToolRequest o) { + buildCounterExecuteToolRequest++; + if (buildCounterExecuteToolRequest < 3) { + checkUnnamed23(o.parameters!); + } + buildCounterExecuteToolRequest--; +} + +core.Map buildUnnamed24() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed24(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted23 = (o['x']!) as core.Map; + unittest.expect(casted23, unittest.hasLength(3)); + unittest.expect(casted23['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted23['bool'], unittest.equals(true)); + unittest.expect(casted23['string'], unittest.equals('foo')); + var casted24 = (o['y']!) as core.Map; + unittest.expect(casted24, unittest.hasLength(3)); + unittest.expect(casted24['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted24['bool'], unittest.equals(true)); + unittest.expect(casted24['string'], unittest.equals('foo')); +} + +core.int buildCounterExecuteToolResponse = 0; +api.ExecuteToolResponse buildExecuteToolResponse() { + final o = api.ExecuteToolResponse(); + buildCounterExecuteToolResponse++; + if (buildCounterExecuteToolResponse < 3) { + o.result = buildUnnamed24(); + } + buildCounterExecuteToolResponse--; + return o; +} + +void checkExecuteToolResponse(api.ExecuteToolResponse o) { + buildCounterExecuteToolResponse++; + if (buildCounterExecuteToolResponse < 3) { + checkUnnamed24(o.result!); + } + buildCounterExecuteToolResponse--; +} + +core.Map buildUnnamed25() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed25(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted25 = (o['x']!) as core.Map; + unittest.expect(casted25, unittest.hasLength(3)); + unittest.expect(casted25['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted25['bool'], unittest.equals(true)); + unittest.expect(casted25['string'], unittest.equals('foo')); + var casted26 = (o['y']!) as core.Map; + unittest.expect(casted26, unittest.hasLength(3)); + unittest.expect(casted26['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted26['bool'], unittest.equals(true)); + unittest.expect(casted26['string'], unittest.equals('foo')); } core.int buildCounterField = 0; @@ -528,7 +874,7 @@ api.Field buildField() { final o = api.Field(); buildCounterField++; if (buildCounterField < 3) { - o.additionalDetails = buildUnnamed11(); + o.additionalDetails = buildUnnamed25(); o.dataType = 'foo'; o.defaultValue = { 'list': [1, 2, 3], @@ -549,13 +895,13 @@ api.Field buildField() { void checkField(api.Field o) { buildCounterField++; if (buildCounterField < 3) { - checkUnnamed11(o.additionalDetails!); + checkUnnamed25(o.additionalDetails!); unittest.expect(o.dataType!, unittest.equals('foo')); - var casted11 = (o.defaultValue!) as core.Map; - unittest.expect(casted11, unittest.hasLength(3)); - unittest.expect(casted11['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted11['bool'], unittest.equals(true)); - unittest.expect(casted11['string'], unittest.equals('foo')); + var casted27 = (o.defaultValue!) as core.Map; + unittest.expect(casted27, unittest.hasLength(3)); + unittest.expect(casted27['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted27['bool'], unittest.equals(true)); + unittest.expect(casted27['string'], unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); checkJsonSchema(o.jsonSchema!); unittest.expect(o.key!, unittest.isTrue); @@ -566,7 +912,7 @@ void checkField(api.Field o) { buildCounterField--; } -core.Map buildUnnamed12() => { +core.Map buildUnnamed26() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -579,18 +925,18 @@ core.Map buildUnnamed12() => { }, }; -void checkUnnamed12(core.Map o) { +void checkUnnamed26(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted12 = (o['x']!) as core.Map; - unittest.expect(casted12, unittest.hasLength(3)); - unittest.expect(casted12['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted12['bool'], unittest.equals(true)); - unittest.expect(casted12['string'], unittest.equals('foo')); - var casted13 = (o['y']!) as core.Map; - unittest.expect(casted13, unittest.hasLength(3)); - unittest.expect(casted13['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted13['bool'], unittest.equals(true)); - unittest.expect(casted13['string'], unittest.equals('foo')); + var casted28 = (o['x']!) as core.Map; + unittest.expect(casted28, unittest.hasLength(3)); + unittest.expect(casted28['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted28['bool'], unittest.equals(true)); + unittest.expect(casted28['string'], unittest.equals('foo')); + var casted29 = (o['y']!) as core.Map; + unittest.expect(casted29, unittest.hasLength(3)); + unittest.expect(casted29['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted29['bool'], unittest.equals(true)); + unittest.expect(casted29['string'], unittest.equals('foo')); } core.int buildCounterInputParameter = 0; @@ -598,7 +944,7 @@ api.InputParameter buildInputParameter() { final o = api.InputParameter(); buildCounterInputParameter++; if (buildCounterInputParameter < 3) { - o.additionalDetails = buildUnnamed12(); + o.additionalDetails = buildUnnamed26(); o.dataType = 'foo'; o.defaultValue = { 'list': [1, 2, 3], @@ -617,13 +963,13 @@ api.InputParameter buildInputParameter() { void checkInputParameter(api.InputParameter o) { buildCounterInputParameter++; if (buildCounterInputParameter < 3) { - checkUnnamed12(o.additionalDetails!); + checkUnnamed26(o.additionalDetails!); unittest.expect(o.dataType!, unittest.equals('foo')); - var casted14 = (o.defaultValue!) as core.Map; - unittest.expect(casted14, unittest.hasLength(3)); - unittest.expect(casted14['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted14['bool'], unittest.equals(true)); - unittest.expect(casted14['string'], unittest.equals('foo')); + var casted30 = (o.defaultValue!) as core.Map; + unittest.expect(casted30, unittest.hasLength(3)); + unittest.expect(casted30['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted30['bool'], unittest.equals(true)); + unittest.expect(casted30['string'], unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); checkJsonSchema(o.jsonSchema!); unittest.expect(o.name!, unittest.equals('foo')); @@ -632,7 +978,7 @@ void checkInputParameter(api.InputParameter o) { buildCounterInputParameter--; } -core.Map buildUnnamed13() => { +core.Map buildUnnamed27() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -645,21 +991,21 @@ core.Map buildUnnamed13() => { }, }; -void checkUnnamed13(core.Map o) { +void checkUnnamed27(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted15 = (o['x']!) as core.Map; - unittest.expect(casted15, unittest.hasLength(3)); - unittest.expect(casted15['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted15['bool'], unittest.equals(true)); - unittest.expect(casted15['string'], unittest.equals('foo')); - var casted16 = (o['y']!) as core.Map; - unittest.expect(casted16, unittest.hasLength(3)); - unittest.expect(casted16['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted16['bool'], unittest.equals(true)); - unittest.expect(casted16['string'], unittest.equals('foo')); -} - -core.List buildUnnamed14() => [ + var casted31 = (o['x']!) as core.Map; + unittest.expect(casted31, unittest.hasLength(3)); + unittest.expect(casted31['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted31['bool'], unittest.equals(true)); + unittest.expect(casted31['string'], unittest.equals('foo')); + var casted32 = (o['y']!) as core.Map; + unittest.expect(casted32, unittest.hasLength(3)); + unittest.expect(casted32['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted32['bool'], unittest.equals(true)); + unittest.expect(casted32['string'], unittest.equals('foo')); +} + +core.List buildUnnamed28() => [ { 'list': [1, 2, 3], 'bool': true, @@ -672,42 +1018,42 @@ core.List buildUnnamed14() => [ }, ]; -void checkUnnamed14(core.List o) { +void checkUnnamed28(core.List o) { unittest.expect(o, unittest.hasLength(2)); - var casted17 = (o[0]) as core.Map; - unittest.expect(casted17, unittest.hasLength(3)); - unittest.expect(casted17['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted17['bool'], unittest.equals(true)); - unittest.expect(casted17['string'], unittest.equals('foo')); - var casted18 = (o[1]) as core.Map; - unittest.expect(casted18, unittest.hasLength(3)); - unittest.expect(casted18['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted18['bool'], unittest.equals(true)); - unittest.expect(casted18['string'], unittest.equals('foo')); -} - -core.Map buildUnnamed15() => { + var casted33 = (o[0]) as core.Map; + unittest.expect(casted33, unittest.hasLength(3)); + unittest.expect(casted33['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted33['bool'], unittest.equals(true)); + unittest.expect(casted33['string'], unittest.equals('foo')); + var casted34 = (o[1]) as core.Map; + unittest.expect(casted34, unittest.hasLength(3)); + unittest.expect(casted34['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted34['bool'], unittest.equals(true)); + unittest.expect(casted34['string'], unittest.equals('foo')); +} + +core.Map buildUnnamed29() => { 'x': buildJsonSchema(), 'y': buildJsonSchema(), }; -void checkUnnamed15(core.Map o) { +void checkUnnamed29(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o['x']!); checkJsonSchema(o['y']!); } -core.List buildUnnamed16() => ['foo', 'foo']; +core.List buildUnnamed30() => ['foo', 'foo']; -void checkUnnamed16(core.List o) { +void checkUnnamed30(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed17() => ['foo', 'foo']; +core.List buildUnnamed31() => ['foo', 'foo']; -void checkUnnamed17(core.List o) { +void checkUnnamed31(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -718,20 +1064,20 @@ api.JsonSchema buildJsonSchema() { final o = api.JsonSchema(); buildCounterJsonSchema++; if (buildCounterJsonSchema < 3) { - o.additionalDetails = buildUnnamed13(); + o.additionalDetails = buildUnnamed27(); o.default_ = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo', }; o.description = 'foo'; - o.enum_ = buildUnnamed14(); + o.enum_ = buildUnnamed28(); o.format = 'foo'; o.items = buildJsonSchema(); o.jdbcType = 'foo'; - o.properties = buildUnnamed15(); - o.required = buildUnnamed16(); - o.type = buildUnnamed17(); + o.properties = buildUnnamed29(); + o.required = buildUnnamed30(); + o.type = buildUnnamed31(); } buildCounterJsonSchema--; return o; @@ -740,35 +1086,75 @@ api.JsonSchema buildJsonSchema() { void checkJsonSchema(api.JsonSchema o) { buildCounterJsonSchema++; if (buildCounterJsonSchema < 3) { - checkUnnamed13(o.additionalDetails!); - var casted19 = (o.default_!) as core.Map; - unittest.expect(casted19, unittest.hasLength(3)); - unittest.expect(casted19['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted19['bool'], unittest.equals(true)); - unittest.expect(casted19['string'], unittest.equals('foo')); + checkUnnamed27(o.additionalDetails!); + var casted35 = (o.default_!) as core.Map; + unittest.expect(casted35, unittest.hasLength(3)); + unittest.expect(casted35['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted35['bool'], unittest.equals(true)); + unittest.expect(casted35['string'], unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed14(o.enum_!); + checkUnnamed28(o.enum_!); unittest.expect(o.format!, unittest.equals('foo')); checkJsonSchema(o.items!); unittest.expect(o.jdbcType!, unittest.equals('foo')); - checkUnnamed15(o.properties!); - checkUnnamed16(o.required!); - checkUnnamed17(o.type!); + checkUnnamed29(o.properties!); + checkUnnamed30(o.required!); + checkUnnamed31(o.type!); } buildCounterJsonSchema--; } -core.List buildUnnamed18() => [buildAction(), buildAction()]; +core.List buildUnnamed32() => [buildAction(), buildAction()]; -void checkUnnamed18(core.List o) { +void checkUnnamed32(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAction(o[0]); checkAction(o[1]); } -core.List buildUnnamed19() => ['foo', 'foo']; +core.Map buildUnnamed33() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; -void checkUnnamed19(core.List o) { +void checkUnnamed33(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted36 = (o['x']!) as core.Map; + unittest.expect(casted36, unittest.hasLength(3)); + unittest.expect(casted36['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted36['bool'], unittest.equals(true)); + unittest.expect(casted36['string'], unittest.equals('foo')); + var casted37 = (o['y']!) as core.Map; + unittest.expect(casted37, unittest.hasLength(3)); + unittest.expect(casted37['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted37['bool'], unittest.equals(true)); + unittest.expect(casted37['string'], unittest.equals('foo')); +} + +core.Map> buildUnnamed34() => { + 'x': buildUnnamed33(), + 'y': buildUnnamed33(), +}; + +void checkUnnamed34( + core.Map> o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed33(o['x']!); + checkUnnamed33(o['y']!); +} + +core.List buildUnnamed35() => ['foo', 'foo']; + +void checkUnnamed35(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -779,9 +1165,10 @@ api.ListActionsResponse buildListActionsResponse() { final o = api.ListActionsResponse(); buildCounterListActionsResponse++; if (buildCounterListActionsResponse < 3) { - o.actions = buildUnnamed18(); + o.actions = buildUnnamed32(); + o.metadata = buildUnnamed34(); o.nextPageToken = 'foo'; - o.unsupportedActionNames = buildUnnamed19(); + o.unsupportedActionNames = buildUnnamed35(); } buildCounterListActionsResponse--; return o; @@ -790,19 +1177,60 @@ api.ListActionsResponse buildListActionsResponse() { void checkListActionsResponse(api.ListActionsResponse o) { buildCounterListActionsResponse++; if (buildCounterListActionsResponse < 3) { - checkUnnamed18(o.actions!); + checkUnnamed32(o.actions!); + checkUnnamed34(o.metadata!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed19(o.unsupportedActionNames!); + checkUnnamed35(o.unsupportedActionNames!); } buildCounterListActionsResponse--; } -core.List buildUnnamed20() => [buildEntity(), buildEntity()]; +core.List buildUnnamed36() => [buildEntity(), buildEntity()]; + +void checkUnnamed36(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkEntity(o[0]); + checkEntity(o[1]); +} + +core.Map buildUnnamed37() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed37(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted38 = (o['x']!) as core.Map; + unittest.expect(casted38, unittest.hasLength(3)); + unittest.expect(casted38['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted38['bool'], unittest.equals(true)); + unittest.expect(casted38['string'], unittest.equals('foo')); + var casted39 = (o['y']!) as core.Map; + unittest.expect(casted39, unittest.hasLength(3)); + unittest.expect(casted39['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted39['bool'], unittest.equals(true)); + unittest.expect(casted39['string'], unittest.equals('foo')); +} + +core.Map> buildUnnamed38() => { + 'x': buildUnnamed37(), + 'y': buildUnnamed37(), +}; -void checkUnnamed20(core.List o) { +void checkUnnamed38( + core.Map> o, +) { unittest.expect(o, unittest.hasLength(2)); - checkEntity(o[0]); - checkEntity(o[1]); + checkUnnamed37(o['x']!); + checkUnnamed37(o['y']!); } core.int buildCounterListEntitiesResponse = 0; @@ -810,7 +1238,8 @@ api.ListEntitiesResponse buildListEntitiesResponse() { final o = api.ListEntitiesResponse(); buildCounterListEntitiesResponse++; if (buildCounterListEntitiesResponse < 3) { - o.entities = buildUnnamed20(); + o.entities = buildUnnamed36(); + o.metadata = buildUnnamed38(); o.nextPageToken = 'foo'; } buildCounterListEntitiesResponse--; @@ -820,26 +1249,67 @@ api.ListEntitiesResponse buildListEntitiesResponse() { void checkListEntitiesResponse(api.ListEntitiesResponse o) { buildCounterListEntitiesResponse++; if (buildCounterListEntitiesResponse < 3) { - checkUnnamed20(o.entities!); + checkUnnamed36(o.entities!); + checkUnnamed38(o.metadata!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListEntitiesResponse--; } -core.List buildUnnamed21() => [ +core.Map buildUnnamed39() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed39(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted40 = (o['x']!) as core.Map; + unittest.expect(casted40, unittest.hasLength(3)); + unittest.expect(casted40['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted40['bool'], unittest.equals(true)); + unittest.expect(casted40['string'], unittest.equals('foo')); + var casted41 = (o['y']!) as core.Map; + unittest.expect(casted41, unittest.hasLength(3)); + unittest.expect(casted41['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted41['bool'], unittest.equals(true)); + unittest.expect(casted41['string'], unittest.equals('foo')); +} + +core.Map> buildUnnamed40() => { + 'x': buildUnnamed39(), + 'y': buildUnnamed39(), +}; + +void checkUnnamed40( + core.Map> o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed39(o['x']!); + checkUnnamed39(o['y']!); +} + +core.List buildUnnamed41() => [ buildEntityType(), buildEntityType(), ]; -void checkUnnamed21(core.List o) { +void checkUnnamed41(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkEntityType(o[0]); checkEntityType(o[1]); } -core.List buildUnnamed22() => ['foo', 'foo']; +core.List buildUnnamed42() => ['foo', 'foo']; -void checkUnnamed22(core.List o) { +void checkUnnamed42(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -850,9 +1320,10 @@ api.ListEntityTypesResponse buildListEntityTypesResponse() { final o = api.ListEntityTypesResponse(); buildCounterListEntityTypesResponse++; if (buildCounterListEntityTypesResponse < 3) { + o.metadata = buildUnnamed40(); o.nextPageToken = 'foo'; - o.types = buildUnnamed21(); - o.unsupportedTypeNames = buildUnnamed22(); + o.types = buildUnnamed41(); + o.unsupportedTypeNames = buildUnnamed42(); } buildCounterListEntityTypesResponse--; return o; @@ -861,19 +1332,49 @@ api.ListEntityTypesResponse buildListEntityTypesResponse() { void checkListEntityTypesResponse(api.ListEntityTypesResponse o) { buildCounterListEntityTypesResponse++; if (buildCounterListEntityTypesResponse < 3) { + checkUnnamed40(o.metadata!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed21(o.types!); - checkUnnamed22(o.unsupportedTypeNames!); + checkUnnamed41(o.types!); + checkUnnamed42(o.unsupportedTypeNames!); } buildCounterListEntityTypesResponse--; } -core.List buildUnnamed23() => [ +core.List buildUnnamed43() => [buildTool(), buildTool()]; + +void checkUnnamed43(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkTool(o[0]); + checkTool(o[1]); +} + +core.int buildCounterListToolsResponse = 0; +api.ListToolsResponse buildListToolsResponse() { + final o = api.ListToolsResponse(); + buildCounterListToolsResponse++; + if (buildCounterListToolsResponse < 3) { + o.nextPageToken = 'foo'; + o.tools = buildUnnamed43(); + } + buildCounterListToolsResponse--; + return o; +} + +void checkListToolsResponse(api.ListToolsResponse o) { + buildCounterListToolsResponse++; + if (buildCounterListToolsResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed43(o.tools!); + } + buildCounterListToolsResponse--; +} + +core.List buildUnnamed44() => [ buildQueryParameter(), buildQueryParameter(), ]; -void checkUnnamed23(core.List o) { +void checkUnnamed44(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); @@ -886,7 +1387,7 @@ api.Query buildQuery() { if (buildCounterQuery < 3) { o.maxRows = 'foo'; o.query = 'foo'; - o.queryParameters = buildUnnamed23(); + o.queryParameters = buildUnnamed44(); o.timeout = 'foo'; } buildCounterQuery--; @@ -898,7 +1399,7 @@ void checkQuery(api.Query o) { if (buildCounterQuery < 3) { unittest.expect(o.maxRows!, unittest.equals('foo')); unittest.expect(o.query!, unittest.equals('foo')); - checkUnnamed23(o.queryParameters!); + checkUnnamed44(o.queryParameters!); unittest.expect(o.timeout!, unittest.equals('foo')); } buildCounterQuery--; @@ -924,11 +1425,11 @@ void checkQueryParameter(api.QueryParameter o) { buildCounterQueryParameter++; if (buildCounterQueryParameter < 3) { unittest.expect(o.dataType!, unittest.equals('foo')); - var casted20 = (o.value!) as core.Map; - unittest.expect(casted20, unittest.hasLength(3)); - unittest.expect(casted20['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted20['bool'], unittest.equals(true)); - unittest.expect(casted20['string'], unittest.equals('foo')); + var casted42 = (o.value!) as core.Map; + unittest.expect(casted42, unittest.hasLength(3)); + unittest.expect(casted42['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted42['bool'], unittest.equals(true)); + unittest.expect(casted42['string'], unittest.equals('foo')); } buildCounterQueryParameter--; } @@ -973,12 +1474,53 @@ void checkRefreshAccessTokenRequest(api.RefreshAccessTokenRequest o) { buildCounterRefreshAccessTokenRequest--; } +core.Map buildUnnamed45() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed45(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted43 = (o['x']!) as core.Map; + unittest.expect(casted43, unittest.hasLength(3)); + unittest.expect(casted43['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted43['bool'], unittest.equals(true)); + unittest.expect(casted43['string'], unittest.equals('foo')); + var casted44 = (o['y']!) as core.Map; + unittest.expect(casted44, unittest.hasLength(3)); + unittest.expect(casted44['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted44['bool'], unittest.equals(true)); + unittest.expect(casted44['string'], unittest.equals('foo')); +} + +core.Map> buildUnnamed46() => { + 'x': buildUnnamed45(), + 'y': buildUnnamed45(), +}; + +void checkUnnamed46( + core.Map> o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed45(o['x']!); + checkUnnamed45(o['y']!); +} + core.int buildCounterRefreshAccessTokenResponse = 0; api.RefreshAccessTokenResponse buildRefreshAccessTokenResponse() { final o = api.RefreshAccessTokenResponse(); buildCounterRefreshAccessTokenResponse++; if (buildCounterRefreshAccessTokenResponse < 3) { o.accessCredentials = buildAccessCredentials(); + o.metadata = buildUnnamed46(); } buildCounterRefreshAccessTokenResponse--; return o; @@ -988,6 +1530,7 @@ void checkRefreshAccessTokenResponse(api.RefreshAccessTokenResponse o) { buildCounterRefreshAccessTokenResponse++; if (buildCounterRefreshAccessTokenResponse < 3) { checkAccessCredentials(o.accessCredentials!); + checkUnnamed46(o.metadata!); } buildCounterRefreshAccessTokenResponse--; } @@ -1016,11 +1559,11 @@ void checkResultMetadata(api.ResultMetadata o) { buildCounterResultMetadata++; if (buildCounterResultMetadata < 3) { unittest.expect(o.dataType!, unittest.equals('foo')); - var casted21 = (o.defaultValue!) as core.Map; - unittest.expect(casted21, unittest.hasLength(3)); - unittest.expect(casted21['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted21['bool'], unittest.equals(true)); - unittest.expect(casted21['string'], unittest.equals('foo')); + var casted45 = (o.defaultValue!) as core.Map; + unittest.expect(casted45, unittest.hasLength(3)); + unittest.expect(casted45['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted45['bool'], unittest.equals(true)); + unittest.expect(casted45['string'], unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); checkJsonSchema(o.jsonSchema!); unittest.expect(o.name!, unittest.equals('foo')); @@ -1029,7 +1572,42 @@ void checkResultMetadata(api.ResultMetadata o) { buildCounterResultMetadata--; } -core.Map buildUnnamed24() => { +core.List buildUnnamed47() => ['foo', 'foo']; + +void checkUnnamed47(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterTool = 0; +api.Tool buildTool() { + final o = api.Tool(); + buildCounterTool++; + if (buildCounterTool < 3) { + o.dependsOn = buildUnnamed47(); + o.description = 'foo'; + o.inputSchema = buildJsonSchema(); + o.name = 'foo'; + o.outputSchema = buildJsonSchema(); + } + buildCounterTool--; + return o; +} + +void checkTool(api.Tool o) { + buildCounterTool++; + if (buildCounterTool < 3) { + checkUnnamed47(o.dependsOn!); + unittest.expect(o.description!, unittest.equals('foo')); + checkJsonSchema(o.inputSchema!); + unittest.expect(o.name!, unittest.equals('foo')); + checkJsonSchema(o.outputSchema!); + } + buildCounterTool--; +} + +core.Map buildUnnamed48() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1042,18 +1620,58 @@ core.Map buildUnnamed24() => { }, }; -void checkUnnamed24(core.Map o) { +void checkUnnamed48(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted22 = (o['x']!) as core.Map; - unittest.expect(casted22, unittest.hasLength(3)); - unittest.expect(casted22['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted22['bool'], unittest.equals(true)); - unittest.expect(casted22['string'], unittest.equals('foo')); - var casted23 = (o['y']!) as core.Map; - unittest.expect(casted23, unittest.hasLength(3)); - unittest.expect(casted23['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted23['bool'], unittest.equals(true)); - unittest.expect(casted23['string'], unittest.equals('foo')); + var casted46 = (o['x']!) as core.Map; + unittest.expect(casted46, unittest.hasLength(3)); + unittest.expect(casted46['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted46['bool'], unittest.equals(true)); + unittest.expect(casted46['string'], unittest.equals('foo')); + var casted47 = (o['y']!) as core.Map; + unittest.expect(casted47, unittest.hasLength(3)); + unittest.expect(casted47['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted47['bool'], unittest.equals(true)); + unittest.expect(casted47['string'], unittest.equals('foo')); +} + +core.Map> buildUnnamed49() => { + 'x': buildUnnamed48(), + 'y': buildUnnamed48(), +}; + +void checkUnnamed49( + core.Map> o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed48(o['x']!); + checkUnnamed48(o['y']!); +} + +core.Map buildUnnamed50() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed50(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted48 = (o['x']!) as core.Map; + unittest.expect(casted48, unittest.hasLength(3)); + unittest.expect(casted48['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted48['bool'], unittest.equals(true)); + unittest.expect(casted48['string'], unittest.equals('foo')); + var casted49 = (o['y']!) as core.Map; + unittest.expect(casted49, unittest.hasLength(3)); + unittest.expect(casted49['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted49['bool'], unittest.equals(true)); + unittest.expect(casted49['string'], unittest.equals('foo')); } core.int buildCounterUpdateEntitiesWithConditionsResponse = 0; @@ -1062,7 +1680,8 @@ buildUpdateEntitiesWithConditionsResponse() { final o = api.UpdateEntitiesWithConditionsResponse(); buildCounterUpdateEntitiesWithConditionsResponse++; if (buildCounterUpdateEntitiesWithConditionsResponse < 3) { - o.response = buildUnnamed24(); + o.metadata = buildUnnamed49(); + o.response = buildUnnamed50(); } buildCounterUpdateEntitiesWithConditionsResponse--; return o; @@ -1073,22 +1692,23 @@ void checkUpdateEntitiesWithConditionsResponse( ) { buildCounterUpdateEntitiesWithConditionsResponse++; if (buildCounterUpdateEntitiesWithConditionsResponse < 3) { - checkUnnamed24(o.response!); + checkUnnamed49(o.metadata!); + checkUnnamed50(o.response!); } buildCounterUpdateEntitiesWithConditionsResponse--; } -core.List buildUnnamed25() => ['foo', 'foo']; +core.List buildUnnamed51() => ['foo', 'foo']; -void checkUnnamed25(core.List o) { +void checkUnnamed51(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed26() => ['foo', 'foo']; +core.List buildUnnamed52() => ['foo', 'foo']; -void checkUnnamed26(core.List o) { +void checkUnnamed52(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1249,6 +1869,28 @@ void main() { }); }); + unittest.group('obj-schema-ExecuteToolRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildExecuteToolRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ExecuteToolRequest.fromJson( + oJson as core.Map, + ); + checkExecuteToolRequest(od); + }); + }); + + unittest.group('obj-schema-ExecuteToolResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildExecuteToolResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ExecuteToolResponse.fromJson( + oJson as core.Map, + ); + checkExecuteToolResponse(od); + }); + }); + unittest.group('obj-schema-Field', () { unittest.test('to-json--from-json', () async { final o = buildField(); @@ -1315,6 +1957,17 @@ void main() { }); }); + unittest.group('obj-schema-ListToolsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListToolsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListToolsResponse.fromJson( + oJson as core.Map, + ); + checkListToolsResponse(od); + }); + }); + unittest.group('obj-schema-Query', () { unittest.test('to-json--from-json', () async { final o = buildQuery(); @@ -1381,6 +2034,17 @@ void main() { }); }); + unittest.group('obj-schema-Tool', () { + unittest.test('to-json--from-json', () async { + final o = buildTool(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Tool.fromJson( + oJson as core.Map, + ); + checkTool(od); + }); + }); + unittest.group('obj-schema-UpdateEntitiesWithConditionsResponse', () { unittest.test('to-json--from-json', () async { final o = buildUpdateEntitiesWithConditionsResponse(); @@ -1895,6 +2559,7 @@ void main() { final res = api.ConnectorsApi(mock).projects.locations.connections.entityTypes; final arg_name = 'foo'; + final arg_contextMetadata = 'foo'; final arg_view = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -1930,6 +2595,10 @@ void main() { ); } } + unittest.expect( + queryMap['contextMetadata']!.first, + unittest.equals(arg_contextMetadata), + ); unittest.expect(queryMap['view']!.first, unittest.equals(arg_view)); unittest.expect( queryMap['fields']!.first, @@ -1944,6 +2613,7 @@ void main() { ); final response = await res.get( arg_name, + contextMetadata: arg_contextMetadata, view: arg_view, $fields: arg_$fields, ); @@ -2277,8 +2947,8 @@ void main() { final arg_conditions = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; - final arg_sortBy = buildUnnamed25(); - final arg_sortOrder = buildUnnamed26(); + final arg_sortBy = buildUnnamed51(); + final arg_sortOrder = buildUnnamed52(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -2495,4 +3165,137 @@ void main() { ); }); }); + + unittest.group('resource-ProjectsLocationsConnectionsToolsResource', () { + unittest.test('method--execute', () async { + final mock = HttpServerMock(); + final res = api.ConnectorsApi(mock).projects.locations.connections.tools; + final arg_request = buildExecuteToolRequest(); + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.ExecuteToolRequest.fromJson( + json as core.Map, + ); + checkExecuteToolRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v2/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildExecuteToolResponse()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.execute( + arg_request, + arg_name, + $fields: arg_$fields, + ); + checkExecuteToolResponse(response as api.ExecuteToolResponse); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = api.ConnectorsApi(mock).projects.locations.connections.tools; + final arg_parent = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v2/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildListToolsResponse()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkListToolsResponse(response as api.ListToolsResponse); + }); + }); } diff --git a/generated/googleapis/test/contactcenterinsights/v1_test.dart b/generated/googleapis/test/contactcenterinsights/v1_test.dart index 5b5aa666d..fc7d6095b 100644 --- a/generated/googleapis/test/contactcenterinsights/v1_test.dart +++ b/generated/googleapis/test/contactcenterinsights/v1_test.dart @@ -1543,6 +1543,20 @@ void checkUnnamed19( ); } +core.List +buildUnnamed20() => [ + buildGoogleCloudContactcenterinsightsV1FeedbackLabel(), + buildGoogleCloudContactcenterinsightsV1FeedbackLabel(), +]; + +void checkUnnamed20( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudContactcenterinsightsV1FeedbackLabel(o[0]); + checkGoogleCloudContactcenterinsightsV1FeedbackLabel(o[1]); +} + core.int buildCounterGoogleCloudContactcenterinsightsV1ConversationQualityMetadata = 0; api.GoogleCloudContactcenterinsightsV1ConversationQualityMetadata @@ -1553,6 +1567,7 @@ buildGoogleCloudContactcenterinsightsV1ConversationQualityMetadata() { 3) { o.agentInfo = buildUnnamed19(); o.customerSatisfactionRating = 42; + o.feedbackLabels = buildUnnamed20(); o.menuPath = 'foo'; o.waitDuration = 'foo'; } @@ -1568,15 +1583,16 @@ void checkGoogleCloudContactcenterinsightsV1ConversationQualityMetadata( 3) { checkUnnamed19(o.agentInfo!); unittest.expect(o.customerSatisfactionRating!, unittest.equals(42)); + checkUnnamed20(o.feedbackLabels!); unittest.expect(o.menuPath!, unittest.equals('foo')); unittest.expect(o.waitDuration!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1ConversationQualityMetadata--; } -core.List buildUnnamed20() => ['foo', 'foo']; +core.List buildUnnamed21() => ['foo', 'foo']; -void checkUnnamed20(core.List o) { +void checkUnnamed21(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1598,7 +1614,7 @@ buildGoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo() { o.dispositionCode = 'foo'; o.location = 'foo'; o.team = 'foo'; - o.teams = buildUnnamed20(); + o.teams = buildUnnamed21(); } buildCounterGoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo--; return o; @@ -1617,22 +1633,22 @@ checkGoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo( unittest.expect(o.dispositionCode!, unittest.equals('foo')); unittest.expect(o.location!, unittest.equals('foo')); unittest.expect(o.team!, unittest.equals('foo')); - checkUnnamed20(o.teams!); + checkUnnamed21(o.teams!); } buildCounterGoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo--; } -core.Map buildUnnamed21() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed22() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed21(core.Map o) { +void checkUnnamed22(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed22() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed23() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed22(core.Map o) { +void checkUnnamed23(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -1652,9 +1668,9 @@ buildGoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData() o.confidence = 42.0; o.conversationModel = 'foo'; o.generatorId = 'foo'; - o.metadata = buildUnnamed21(); + o.metadata = buildUnnamed22(); o.text = 'foo'; - o.textSections = buildUnnamed22(); + o.textSections = buildUnnamed23(); } buildCounterGoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData--; return o; @@ -1672,9 +1688,9 @@ checkGoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData( unittest.expect(o.confidence!, unittest.equals(42.0)); unittest.expect(o.conversationModel!, unittest.equals('foo')); unittest.expect(o.generatorId!, unittest.equals('foo')); - checkUnnamed21(o.metadata!); + checkUnnamed22(o.metadata!); unittest.expect(o.text!, unittest.equals('foo')); - checkUnnamed22(o.textSections!); + checkUnnamed23(o.textSections!); } buildCounterGoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData--; } @@ -1682,12 +1698,12 @@ checkGoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData( core.List< api.GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment > -buildUnnamed23() => [ +buildUnnamed24() => [ buildGoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment(), buildGoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment(), ]; -void checkUnnamed23( +void checkUnnamed24( core.List< api.GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment > @@ -1710,7 +1726,7 @@ buildGoogleCloudContactcenterinsightsV1ConversationTranscript() { buildCounterGoogleCloudContactcenterinsightsV1ConversationTranscript++; if (buildCounterGoogleCloudContactcenterinsightsV1ConversationTranscript < 3) { - o.transcriptSegments = buildUnnamed23(); + o.transcriptSegments = buildUnnamed24(); } buildCounterGoogleCloudContactcenterinsightsV1ConversationTranscript--; return o; @@ -1722,7 +1738,7 @@ void checkGoogleCloudContactcenterinsightsV1ConversationTranscript( buildCounterGoogleCloudContactcenterinsightsV1ConversationTranscript++; if (buildCounterGoogleCloudContactcenterinsightsV1ConversationTranscript < 3) { - checkUnnamed23(o.transcriptSegments!); + checkUnnamed24(o.transcriptSegments!); } buildCounterGoogleCloudContactcenterinsightsV1ConversationTranscript--; } @@ -1730,12 +1746,12 @@ void checkGoogleCloudContactcenterinsightsV1ConversationTranscript( core.List< api.GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo > -buildUnnamed24() => [ +buildUnnamed25() => [ buildGoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo(), buildGoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo(), ]; -void checkUnnamed24( +void checkUnnamed25( core.List< api.GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo > @@ -1770,7 +1786,7 @@ buildGoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment() buildGoogleCloudContactcenterinsightsV1ConversationParticipant(); o.sentiment = buildGoogleCloudContactcenterinsightsV1SentimentData(); o.text = 'foo'; - o.words = buildUnnamed24(); + o.words = buildUnnamed25(); } buildCounterGoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment--; return o; @@ -1796,7 +1812,7 @@ checkGoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment( ); checkGoogleCloudContactcenterinsightsV1SentimentData(o.sentiment!); unittest.expect(o.text!, unittest.equals('foo')); - checkUnnamed24(o.words!); + checkUnnamed25(o.words!); } buildCounterGoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment--; } @@ -1865,6 +1881,40 @@ checkGoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWo buildCounterGoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo--; } +core.int buildCounterGoogleCloudContactcenterinsightsV1Dataset = 0; +api.GoogleCloudContactcenterinsightsV1Dataset +buildGoogleCloudContactcenterinsightsV1Dataset() { + final o = api.GoogleCloudContactcenterinsightsV1Dataset(); + buildCounterGoogleCloudContactcenterinsightsV1Dataset++; + if (buildCounterGoogleCloudContactcenterinsightsV1Dataset < 3) { + o.createTime = 'foo'; + o.description = 'foo'; + o.displayName = 'foo'; + o.name = 'foo'; + o.ttl = 'foo'; + o.type = 'foo'; + o.updateTime = 'foo'; + } + buildCounterGoogleCloudContactcenterinsightsV1Dataset--; + return o; +} + +void checkGoogleCloudContactcenterinsightsV1Dataset( + api.GoogleCloudContactcenterinsightsV1Dataset o, +) { + buildCounterGoogleCloudContactcenterinsightsV1Dataset++; + if (buildCounterGoogleCloudContactcenterinsightsV1Dataset < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.ttl!, unittest.equals('foo')); + unittest.expect(o.type!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); + } + buildCounterGoogleCloudContactcenterinsightsV1Dataset--; +} + core.int buildCounterGoogleCloudContactcenterinsightsV1DeployIssueModelRequest = 0; api.GoogleCloudContactcenterinsightsV1DeployIssueModelRequest @@ -2181,9 +2231,9 @@ void checkGoogleCloudContactcenterinsightsV1EncryptionSpec( buildCounterGoogleCloudContactcenterinsightsV1EncryptionSpec--; } -core.Map buildUnnamed25() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed26() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed25(core.Map o) { +void checkUnnamed26(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2196,7 +2246,7 @@ buildGoogleCloudContactcenterinsightsV1Entity() { buildCounterGoogleCloudContactcenterinsightsV1Entity++; if (buildCounterGoogleCloudContactcenterinsightsV1Entity < 3) { o.displayName = 'foo'; - o.metadata = buildUnnamed25(); + o.metadata = buildUnnamed26(); o.salience = 42.0; o.sentiment = buildGoogleCloudContactcenterinsightsV1SentimentData(); o.type = 'foo'; @@ -2211,7 +2261,7 @@ void checkGoogleCloudContactcenterinsightsV1Entity( buildCounterGoogleCloudContactcenterinsightsV1Entity++; if (buildCounterGoogleCloudContactcenterinsightsV1Entity < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed25(o.metadata!); + checkUnnamed26(o.metadata!); unittest.expect(o.salience!, unittest.equals(42.0)); checkGoogleCloudContactcenterinsightsV1SentimentData(o.sentiment!); unittest.expect(o.type!, unittest.equals('foo')); @@ -2396,9 +2446,9 @@ checkGoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination( buildCounterGoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination--; } -core.Map buildUnnamed26() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed27() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed26(core.Map o) { +void checkUnnamed27(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2412,7 +2462,7 @@ buildGoogleCloudContactcenterinsightsV1FaqAnswerData() { if (buildCounterGoogleCloudContactcenterinsightsV1FaqAnswerData < 3) { o.answer = 'foo'; o.confidenceScore = 42.0; - o.metadata = buildUnnamed26(); + o.metadata = buildUnnamed27(); o.queryRecord = 'foo'; o.question = 'foo'; o.source = 'foo'; @@ -2428,7 +2478,7 @@ void checkGoogleCloudContactcenterinsightsV1FaqAnswerData( if (buildCounterGoogleCloudContactcenterinsightsV1FaqAnswerData < 3) { unittest.expect(o.answer!, unittest.equals('foo')); unittest.expect(o.confidenceScore!, unittest.equals(42.0)); - checkUnnamed26(o.metadata!); + checkUnnamed27(o.metadata!); unittest.expect(o.queryRecord!, unittest.equals('foo')); unittest.expect(o.question!, unittest.equals('foo')); unittest.expect(o.source!, unittest.equals('foo')); @@ -2673,9 +2723,9 @@ checkGoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationCon buildCounterGoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig--; } -core.List buildUnnamed27() => ['foo', 'foo']; +core.List buildUnnamed28() => ['foo', 'foo']; -void checkUnnamed27(core.List o) { +void checkUnnamed28(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2694,7 +2744,7 @@ buildGoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource() { o.audioBucketUri = 'foo'; o.bucketObjectType = 'foo'; o.bucketUri = 'foo'; - o.customMetadataKeys = buildUnnamed27(); + o.customMetadataKeys = buildUnnamed28(); o.metadataBucketUri = 'foo'; o.transcriptBucketUri = 'foo'; } @@ -2711,7 +2761,7 @@ void checkGoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource( unittest.expect(o.audioBucketUri!, unittest.equals('foo')); unittest.expect(o.bucketObjectType!, unittest.equals('foo')); unittest.expect(o.bucketUri!, unittest.equals('foo')); - checkUnnamed27(o.customMetadataKeys!); + checkUnnamed28(o.customMetadataKeys!); unittest.expect(o.metadataBucketUri!, unittest.equals('foo')); unittest.expect(o.transcriptBucketUri!, unittest.equals('foo')); } @@ -2838,9 +2888,9 @@ void checkGoogleCloudContactcenterinsightsV1InterruptionData( buildCounterGoogleCloudContactcenterinsightsV1InterruptionData--; } -core.List buildUnnamed28() => ['foo', 'foo']; +core.List buildUnnamed29() => ['foo', 'foo']; -void checkUnnamed28(core.List o) { +void checkUnnamed29(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2856,7 +2906,7 @@ buildGoogleCloudContactcenterinsightsV1Issue() { o.displayDescription = 'foo'; o.displayName = 'foo'; o.name = 'foo'; - o.sampleUtterances = buildUnnamed28(); + o.sampleUtterances = buildUnnamed29(); o.updateTime = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1Issue--; @@ -2872,7 +2922,7 @@ void checkGoogleCloudContactcenterinsightsV1Issue( unittest.expect(o.displayDescription!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed28(o.sampleUtterances!); + checkUnnamed29(o.sampleUtterances!); unittest.expect(o.updateTime!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1Issue--; @@ -3006,12 +3056,12 @@ core.Map< core.String, api.GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats > -buildUnnamed29() => { +buildUnnamed30() => { 'x': buildGoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats(), 'y': buildGoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats(), }; -void checkUnnamed29( +void checkUnnamed30( core.Map< core.String, api.GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats @@ -3034,7 +3084,7 @@ buildGoogleCloudContactcenterinsightsV1IssueModelLabelStats() { buildCounterGoogleCloudContactcenterinsightsV1IssueModelLabelStats++; if (buildCounterGoogleCloudContactcenterinsightsV1IssueModelLabelStats < 3) { o.analyzedConversationsCount = 'foo'; - o.issueStats = buildUnnamed29(); + o.issueStats = buildUnnamed30(); o.unclassifiedConversationsCount = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1IssueModelLabelStats--; @@ -3047,7 +3097,7 @@ void checkGoogleCloudContactcenterinsightsV1IssueModelLabelStats( buildCounterGoogleCloudContactcenterinsightsV1IssueModelLabelStats++; if (buildCounterGoogleCloudContactcenterinsightsV1IssueModelLabelStats < 3) { unittest.expect(o.analyzedConversationsCount!, unittest.equals('foo')); - checkUnnamed29(o.issueStats!); + checkUnnamed30(o.issueStats!); unittest.expect(o.unclassifiedConversationsCount!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1IssueModelLabelStats--; @@ -3085,12 +3135,12 @@ void checkGoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats( } core.List -buildUnnamed30() => [ +buildUnnamed31() => [ buildGoogleCloudContactcenterinsightsV1IssueAssignment(), buildGoogleCloudContactcenterinsightsV1IssueAssignment(), ]; -void checkUnnamed30( +void checkUnnamed31( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3105,7 +3155,7 @@ buildGoogleCloudContactcenterinsightsV1IssueModelResult() { buildCounterGoogleCloudContactcenterinsightsV1IssueModelResult++; if (buildCounterGoogleCloudContactcenterinsightsV1IssueModelResult < 3) { o.issueModel = 'foo'; - o.issues = buildUnnamed30(); + o.issues = buildUnnamed31(); } buildCounterGoogleCloudContactcenterinsightsV1IssueModelResult--; return o; @@ -3117,18 +3167,18 @@ void checkGoogleCloudContactcenterinsightsV1IssueModelResult( buildCounterGoogleCloudContactcenterinsightsV1IssueModelResult++; if (buildCounterGoogleCloudContactcenterinsightsV1IssueModelResult < 3) { unittest.expect(o.issueModel!, unittest.equals('foo')); - checkUnnamed30(o.issues!); + checkUnnamed31(o.issues!); } buildCounterGoogleCloudContactcenterinsightsV1IssueModelResult--; } core.List -buildUnnamed31() => [ +buildUnnamed32() => [ buildGoogleCloudContactcenterinsightsV1FeedbackLabel(), buildGoogleCloudContactcenterinsightsV1FeedbackLabel(), ]; -void checkUnnamed31( +void checkUnnamed32( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3145,7 +3195,7 @@ buildGoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse() { buildCounterGoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse < 3) { - o.feedbackLabels = buildUnnamed31(); + o.feedbackLabels = buildUnnamed32(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse--; @@ -3158,18 +3208,18 @@ void checkGoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse( buildCounterGoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse < 3) { - checkUnnamed31(o.feedbackLabels!); + checkUnnamed32(o.feedbackLabels!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse--; } -core.List buildUnnamed32() => [ +core.List buildUnnamed33() => [ buildGoogleCloudContactcenterinsightsV1Analysis(), buildGoogleCloudContactcenterinsightsV1Analysis(), ]; -void checkUnnamed32( +void checkUnnamed33( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3183,7 +3233,7 @@ buildGoogleCloudContactcenterinsightsV1ListAnalysesResponse() { final o = api.GoogleCloudContactcenterinsightsV1ListAnalysesResponse(); buildCounterGoogleCloudContactcenterinsightsV1ListAnalysesResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListAnalysesResponse < 3) { - o.analyses = buildUnnamed32(); + o.analyses = buildUnnamed33(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1ListAnalysesResponse--; @@ -3195,19 +3245,19 @@ void checkGoogleCloudContactcenterinsightsV1ListAnalysesResponse( ) { buildCounterGoogleCloudContactcenterinsightsV1ListAnalysesResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListAnalysesResponse < 3) { - checkUnnamed32(o.analyses!); + checkUnnamed33(o.analyses!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1ListAnalysesResponse--; } core.List -buildUnnamed33() => [ +buildUnnamed34() => [ buildGoogleCloudContactcenterinsightsV1AnalysisRule(), buildGoogleCloudContactcenterinsightsV1AnalysisRule(), ]; -void checkUnnamed33( +void checkUnnamed34( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3223,7 +3273,7 @@ buildGoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse() { buildCounterGoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse < 3) { - o.analysisRules = buildUnnamed33(); + o.analysisRules = buildUnnamed34(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse--; @@ -3236,19 +3286,19 @@ void checkGoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse( buildCounterGoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse < 3) { - checkUnnamed33(o.analysisRules!); + checkUnnamed34(o.analysisRules!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse--; } core.List -buildUnnamed34() => [ +buildUnnamed35() => [ buildGoogleCloudContactcenterinsightsV1AssessmentRule(), buildGoogleCloudContactcenterinsightsV1AssessmentRule(), ]; -void checkUnnamed34( +void checkUnnamed35( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3264,7 +3314,7 @@ buildGoogleCloudContactcenterinsightsV1ListAssessmentRulesResponse() { buildCounterGoogleCloudContactcenterinsightsV1ListAssessmentRulesResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListAssessmentRulesResponse < 3) { - o.assessmentRules = buildUnnamed34(); + o.assessmentRules = buildUnnamed35(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1ListAssessmentRulesResponse--; @@ -3277,19 +3327,19 @@ void checkGoogleCloudContactcenterinsightsV1ListAssessmentRulesResponse( buildCounterGoogleCloudContactcenterinsightsV1ListAssessmentRulesResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListAssessmentRulesResponse < 3) { - checkUnnamed34(o.assessmentRules!); + checkUnnamed35(o.assessmentRules!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1ListAssessmentRulesResponse--; } -core.List buildUnnamed35() => +core.List buildUnnamed36() => [ buildGoogleCloudContactcenterinsightsV1Assessment(), buildGoogleCloudContactcenterinsightsV1Assessment(), ]; -void checkUnnamed35( +void checkUnnamed36( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3305,7 +3355,7 @@ buildGoogleCloudContactcenterinsightsV1ListAssessmentsResponse() { buildCounterGoogleCloudContactcenterinsightsV1ListAssessmentsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListAssessmentsResponse < 3) { - o.assessments = buildUnnamed35(); + o.assessments = buildUnnamed36(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1ListAssessmentsResponse--; @@ -3318,19 +3368,19 @@ void checkGoogleCloudContactcenterinsightsV1ListAssessmentsResponse( buildCounterGoogleCloudContactcenterinsightsV1ListAssessmentsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListAssessmentsResponse < 3) { - checkUnnamed35(o.assessments!); + checkUnnamed36(o.assessments!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1ListAssessmentsResponse--; } core.List -buildUnnamed36() => [ +buildUnnamed37() => [ buildGoogleCloudContactcenterinsightsV1AuthorizedViewSet(), buildGoogleCloudContactcenterinsightsV1AuthorizedViewSet(), ]; -void checkUnnamed36( +void checkUnnamed37( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3348,7 +3398,7 @@ buildGoogleCloudContactcenterinsightsV1ListAuthorizedViewSetsResponse() { buildCounterGoogleCloudContactcenterinsightsV1ListAuthorizedViewSetsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListAuthorizedViewSetsResponse < 3) { - o.authorizedViewSets = buildUnnamed36(); + o.authorizedViewSets = buildUnnamed37(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1ListAuthorizedViewSetsResponse--; @@ -3361,19 +3411,19 @@ void checkGoogleCloudContactcenterinsightsV1ListAuthorizedViewSetsResponse( buildCounterGoogleCloudContactcenterinsightsV1ListAuthorizedViewSetsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListAuthorizedViewSetsResponse < 3) { - checkUnnamed36(o.authorizedViewSets!); + checkUnnamed37(o.authorizedViewSets!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1ListAuthorizedViewSetsResponse--; } core.List -buildUnnamed37() => [ +buildUnnamed38() => [ buildGoogleCloudContactcenterinsightsV1AuthorizedView(), buildGoogleCloudContactcenterinsightsV1AuthorizedView(), ]; -void checkUnnamed37( +void checkUnnamed38( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3389,7 +3439,7 @@ buildGoogleCloudContactcenterinsightsV1ListAuthorizedViewsResponse() { buildCounterGoogleCloudContactcenterinsightsV1ListAuthorizedViewsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListAuthorizedViewsResponse < 3) { - o.authorizedViews = buildUnnamed37(); + o.authorizedViews = buildUnnamed38(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1ListAuthorizedViewsResponse--; @@ -3402,19 +3452,19 @@ void checkGoogleCloudContactcenterinsightsV1ListAuthorizedViewsResponse( buildCounterGoogleCloudContactcenterinsightsV1ListAuthorizedViewsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListAuthorizedViewsResponse < 3) { - checkUnnamed37(o.authorizedViews!); + checkUnnamed38(o.authorizedViews!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1ListAuthorizedViewsResponse--; } core.List -buildUnnamed38() => [ +buildUnnamed39() => [ buildGoogleCloudContactcenterinsightsV1Conversation(), buildGoogleCloudContactcenterinsightsV1Conversation(), ]; -void checkUnnamed38( +void checkUnnamed39( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3430,7 +3480,7 @@ buildGoogleCloudContactcenterinsightsV1ListConversationsResponse() { buildCounterGoogleCloudContactcenterinsightsV1ListConversationsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListConversationsResponse < 3) { - o.conversations = buildUnnamed38(); + o.conversations = buildUnnamed39(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1ListConversationsResponse--; @@ -3443,19 +3493,56 @@ void checkGoogleCloudContactcenterinsightsV1ListConversationsResponse( buildCounterGoogleCloudContactcenterinsightsV1ListConversationsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListConversationsResponse < 3) { - checkUnnamed38(o.conversations!); + checkUnnamed39(o.conversations!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1ListConversationsResponse--; } +core.List buildUnnamed40() => [ + buildGoogleCloudContactcenterinsightsV1Dataset(), + buildGoogleCloudContactcenterinsightsV1Dataset(), +]; + +void checkUnnamed40( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudContactcenterinsightsV1Dataset(o[0]); + checkGoogleCloudContactcenterinsightsV1Dataset(o[1]); +} + +core.int buildCounterGoogleCloudContactcenterinsightsV1ListDatasetsResponse = 0; +api.GoogleCloudContactcenterinsightsV1ListDatasetsResponse +buildGoogleCloudContactcenterinsightsV1ListDatasetsResponse() { + final o = api.GoogleCloudContactcenterinsightsV1ListDatasetsResponse(); + buildCounterGoogleCloudContactcenterinsightsV1ListDatasetsResponse++; + if (buildCounterGoogleCloudContactcenterinsightsV1ListDatasetsResponse < 3) { + o.datasets = buildUnnamed40(); + o.nextPageToken = 'foo'; + } + buildCounterGoogleCloudContactcenterinsightsV1ListDatasetsResponse--; + return o; +} + +void checkGoogleCloudContactcenterinsightsV1ListDatasetsResponse( + api.GoogleCloudContactcenterinsightsV1ListDatasetsResponse o, +) { + buildCounterGoogleCloudContactcenterinsightsV1ListDatasetsResponse++; + if (buildCounterGoogleCloudContactcenterinsightsV1ListDatasetsResponse < 3) { + checkUnnamed40(o.datasets!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + } + buildCounterGoogleCloudContactcenterinsightsV1ListDatasetsResponse--; +} + core.List -buildUnnamed39() => [ +buildUnnamed41() => [ buildGoogleCloudContactcenterinsightsV1FeedbackLabel(), buildGoogleCloudContactcenterinsightsV1FeedbackLabel(), ]; -void checkUnnamed39( +void checkUnnamed41( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3471,7 +3558,7 @@ buildGoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse() { buildCounterGoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse < 3) { - o.feedbackLabels = buildUnnamed39(); + o.feedbackLabels = buildUnnamed41(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse--; @@ -3484,19 +3571,19 @@ void checkGoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse( buildCounterGoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse < 3) { - checkUnnamed39(o.feedbackLabels!); + checkUnnamed41(o.feedbackLabels!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse--; } -core.List buildUnnamed40() => +core.List buildUnnamed42() => [ buildGoogleCloudContactcenterinsightsV1IssueModel(), buildGoogleCloudContactcenterinsightsV1IssueModel(), ]; -void checkUnnamed40( +void checkUnnamed42( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3512,7 +3599,7 @@ buildGoogleCloudContactcenterinsightsV1ListIssueModelsResponse() { buildCounterGoogleCloudContactcenterinsightsV1ListIssueModelsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListIssueModelsResponse < 3) { - o.issueModels = buildUnnamed40(); + o.issueModels = buildUnnamed42(); } buildCounterGoogleCloudContactcenterinsightsV1ListIssueModelsResponse--; return o; @@ -3524,17 +3611,17 @@ void checkGoogleCloudContactcenterinsightsV1ListIssueModelsResponse( buildCounterGoogleCloudContactcenterinsightsV1ListIssueModelsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListIssueModelsResponse < 3) { - checkUnnamed40(o.issueModels!); + checkUnnamed42(o.issueModels!); } buildCounterGoogleCloudContactcenterinsightsV1ListIssueModelsResponse--; } -core.List buildUnnamed41() => [ +core.List buildUnnamed43() => [ buildGoogleCloudContactcenterinsightsV1Issue(), buildGoogleCloudContactcenterinsightsV1Issue(), ]; -void checkUnnamed41(core.List o) { +void checkUnnamed43(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudContactcenterinsightsV1Issue(o[0]); checkGoogleCloudContactcenterinsightsV1Issue(o[1]); @@ -3546,7 +3633,7 @@ buildGoogleCloudContactcenterinsightsV1ListIssuesResponse() { final o = api.GoogleCloudContactcenterinsightsV1ListIssuesResponse(); buildCounterGoogleCloudContactcenterinsightsV1ListIssuesResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListIssuesResponse < 3) { - o.issues = buildUnnamed41(); + o.issues = buildUnnamed43(); } buildCounterGoogleCloudContactcenterinsightsV1ListIssuesResponse--; return o; @@ -3557,17 +3644,17 @@ void checkGoogleCloudContactcenterinsightsV1ListIssuesResponse( ) { buildCounterGoogleCloudContactcenterinsightsV1ListIssuesResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListIssuesResponse < 3) { - checkUnnamed41(o.issues!); + checkUnnamed43(o.issues!); } buildCounterGoogleCloudContactcenterinsightsV1ListIssuesResponse--; } -core.List buildUnnamed42() => [ +core.List buildUnnamed44() => [ buildGoogleCloudContactcenterinsightsV1Note(), buildGoogleCloudContactcenterinsightsV1Note(), ]; -void checkUnnamed42(core.List o) { +void checkUnnamed44(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudContactcenterinsightsV1Note(o[0]); checkGoogleCloudContactcenterinsightsV1Note(o[1]); @@ -3580,7 +3667,7 @@ buildGoogleCloudContactcenterinsightsV1ListNotesResponse() { buildCounterGoogleCloudContactcenterinsightsV1ListNotesResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListNotesResponse < 3) { o.nextPageToken = 'foo'; - o.notes = buildUnnamed42(); + o.notes = buildUnnamed44(); } buildCounterGoogleCloudContactcenterinsightsV1ListNotesResponse--; return o; @@ -3592,18 +3679,18 @@ void checkGoogleCloudContactcenterinsightsV1ListNotesResponse( buildCounterGoogleCloudContactcenterinsightsV1ListNotesResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListNotesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed42(o.notes!); + checkUnnamed44(o.notes!); } buildCounterGoogleCloudContactcenterinsightsV1ListNotesResponse--; } core.List -buildUnnamed43() => [ +buildUnnamed45() => [ buildGoogleCloudContactcenterinsightsV1PhraseMatcher(), buildGoogleCloudContactcenterinsightsV1PhraseMatcher(), ]; -void checkUnnamed43( +void checkUnnamed45( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3620,7 +3707,7 @@ buildGoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse() { if (buildCounterGoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse < 3) { o.nextPageToken = 'foo'; - o.phraseMatchers = buildUnnamed43(); + o.phraseMatchers = buildUnnamed45(); } buildCounterGoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse--; return o; @@ -3633,18 +3720,18 @@ void checkGoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse( if (buildCounterGoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed43(o.phraseMatchers!); + checkUnnamed45(o.phraseMatchers!); } buildCounterGoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse--; } core.List -buildUnnamed44() => [ +buildUnnamed46() => [ buildGoogleCloudContactcenterinsightsV1QaQuestionTag(), buildGoogleCloudContactcenterinsightsV1QaQuestionTag(), ]; -void checkUnnamed44( +void checkUnnamed46( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3661,7 +3748,7 @@ buildGoogleCloudContactcenterinsightsV1ListQaQuestionTagsResponse() { if (buildCounterGoogleCloudContactcenterinsightsV1ListQaQuestionTagsResponse < 3) { o.nextPageToken = 'foo'; - o.qaQuestionTags = buildUnnamed44(); + o.qaQuestionTags = buildUnnamed46(); } buildCounterGoogleCloudContactcenterinsightsV1ListQaQuestionTagsResponse--; return o; @@ -3674,18 +3761,18 @@ void checkGoogleCloudContactcenterinsightsV1ListQaQuestionTagsResponse( if (buildCounterGoogleCloudContactcenterinsightsV1ListQaQuestionTagsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed44(o.qaQuestionTags!); + checkUnnamed46(o.qaQuestionTags!); } buildCounterGoogleCloudContactcenterinsightsV1ListQaQuestionTagsResponse--; } -core.List buildUnnamed45() => +core.List buildUnnamed47() => [ buildGoogleCloudContactcenterinsightsV1QaQuestion(), buildGoogleCloudContactcenterinsightsV1QaQuestion(), ]; -void checkUnnamed45( +void checkUnnamed47( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3702,7 +3789,7 @@ buildGoogleCloudContactcenterinsightsV1ListQaQuestionsResponse() { if (buildCounterGoogleCloudContactcenterinsightsV1ListQaQuestionsResponse < 3) { o.nextPageToken = 'foo'; - o.qaQuestions = buildUnnamed45(); + o.qaQuestions = buildUnnamed47(); } buildCounterGoogleCloudContactcenterinsightsV1ListQaQuestionsResponse--; return o; @@ -3715,18 +3802,18 @@ void checkGoogleCloudContactcenterinsightsV1ListQaQuestionsResponse( if (buildCounterGoogleCloudContactcenterinsightsV1ListQaQuestionsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed45(o.qaQuestions!); + checkUnnamed47(o.qaQuestions!); } buildCounterGoogleCloudContactcenterinsightsV1ListQaQuestionsResponse--; } core.List -buildUnnamed46() => [ +buildUnnamed48() => [ buildGoogleCloudContactcenterinsightsV1QaScorecardRevision(), buildGoogleCloudContactcenterinsightsV1QaScorecardRevision(), ]; -void checkUnnamed46( +void checkUnnamed48( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3745,7 +3832,7 @@ buildGoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse() { if (buildCounterGoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse < 3) { o.nextPageToken = 'foo'; - o.qaScorecardRevisions = buildUnnamed46(); + o.qaScorecardRevisions = buildUnnamed48(); } buildCounterGoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse--; return o; @@ -3758,18 +3845,18 @@ void checkGoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse( if (buildCounterGoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed46(o.qaScorecardRevisions!); + checkUnnamed48(o.qaScorecardRevisions!); } buildCounterGoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse--; } -core.List buildUnnamed47() => +core.List buildUnnamed49() => [ buildGoogleCloudContactcenterinsightsV1QaScorecard(), buildGoogleCloudContactcenterinsightsV1QaScorecard(), ]; -void checkUnnamed47( +void checkUnnamed49( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3786,7 +3873,7 @@ buildGoogleCloudContactcenterinsightsV1ListQaScorecardsResponse() { if (buildCounterGoogleCloudContactcenterinsightsV1ListQaScorecardsResponse < 3) { o.nextPageToken = 'foo'; - o.qaScorecards = buildUnnamed47(); + o.qaScorecards = buildUnnamed49(); } buildCounterGoogleCloudContactcenterinsightsV1ListQaScorecardsResponse--; return o; @@ -3799,17 +3886,17 @@ void checkGoogleCloudContactcenterinsightsV1ListQaScorecardsResponse( if (buildCounterGoogleCloudContactcenterinsightsV1ListQaScorecardsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed47(o.qaScorecards!); + checkUnnamed49(o.qaScorecards!); } buildCounterGoogleCloudContactcenterinsightsV1ListQaScorecardsResponse--; } -core.List buildUnnamed48() => [ +core.List buildUnnamed50() => [ buildGoogleCloudContactcenterinsightsV1View(), buildGoogleCloudContactcenterinsightsV1View(), ]; -void checkUnnamed48(core.List o) { +void checkUnnamed50(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudContactcenterinsightsV1View(o[0]); checkGoogleCloudContactcenterinsightsV1View(o[1]); @@ -3822,7 +3909,7 @@ buildGoogleCloudContactcenterinsightsV1ListViewsResponse() { buildCounterGoogleCloudContactcenterinsightsV1ListViewsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListViewsResponse < 3) { o.nextPageToken = 'foo'; - o.views = buildUnnamed48(); + o.views = buildUnnamed50(); } buildCounterGoogleCloudContactcenterinsightsV1ListViewsResponse--; return o; @@ -3834,7 +3921,7 @@ void checkGoogleCloudContactcenterinsightsV1ListViewsResponse( buildCounterGoogleCloudContactcenterinsightsV1ListViewsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1ListViewsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed48(o.views!); + checkUnnamed50(o.views!); } buildCounterGoogleCloudContactcenterinsightsV1ListViewsResponse--; } @@ -4026,12 +4113,12 @@ void checkGoogleCloudContactcenterinsightsV1PhraseMatchRuleConfig( } core.List -buildUnnamed49() => [ +buildUnnamed51() => [ buildGoogleCloudContactcenterinsightsV1PhraseMatchRule(), buildGoogleCloudContactcenterinsightsV1PhraseMatchRule(), ]; -void checkUnnamed49( +void checkUnnamed51( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4045,7 +4132,7 @@ buildGoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup() { final o = api.GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup(); buildCounterGoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup++; if (buildCounterGoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup < 3) { - o.phraseMatchRules = buildUnnamed49(); + o.phraseMatchRules = buildUnnamed51(); o.type = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup--; @@ -4057,19 +4144,19 @@ void checkGoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup( ) { buildCounterGoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup++; if (buildCounterGoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup < 3) { - checkUnnamed49(o.phraseMatchRules!); + checkUnnamed51(o.phraseMatchRules!); unittest.expect(o.type!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup--; } core.List -buildUnnamed50() => [ +buildUnnamed52() => [ buildGoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup(), buildGoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup(), ]; -void checkUnnamed50( +void checkUnnamed52( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4087,7 +4174,7 @@ buildGoogleCloudContactcenterinsightsV1PhraseMatcher() { o.active = true; o.displayName = 'foo'; o.name = 'foo'; - o.phraseMatchRuleGroups = buildUnnamed50(); + o.phraseMatchRuleGroups = buildUnnamed52(); o.revisionCreateTime = 'foo'; o.revisionId = 'foo'; o.roleMatch = 'foo'; @@ -4108,7 +4195,7 @@ void checkGoogleCloudContactcenterinsightsV1PhraseMatcher( unittest.expect(o.active!, unittest.isTrue); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed50(o.phraseMatchRuleGroups!); + checkUnnamed52(o.phraseMatchRuleGroups!); unittest.expect(o.revisionCreateTime!, unittest.equals('foo')); unittest.expect(o.revisionId!, unittest.equals('foo')); unittest.expect(o.roleMatch!, unittest.equals('foo')); @@ -4141,12 +4228,12 @@ void checkGoogleCloudContactcenterinsightsV1PublishAssessmentRequest( } core.List -buildUnnamed51() => [ +buildUnnamed53() => [ buildGoogleCloudContactcenterinsightsV1QaAnswerAnswerSource(), buildGoogleCloudContactcenterinsightsV1QaAnswerAnswerSource(), ]; -void checkUnnamed51( +void checkUnnamed53( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4154,9 +4241,9 @@ void checkUnnamed51( checkGoogleCloudContactcenterinsightsV1QaAnswerAnswerSource(o[1]); } -core.List buildUnnamed52() => ['foo', 'foo']; +core.List buildUnnamed54() => ['foo', 'foo']; -void checkUnnamed52(core.List o) { +void checkUnnamed54(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4168,13 +4255,13 @@ buildGoogleCloudContactcenterinsightsV1QaAnswer() { final o = api.GoogleCloudContactcenterinsightsV1QaAnswer(); buildCounterGoogleCloudContactcenterinsightsV1QaAnswer++; if (buildCounterGoogleCloudContactcenterinsightsV1QaAnswer < 3) { - o.answerSources = buildUnnamed51(); + o.answerSources = buildUnnamed53(); o.answerValue = buildGoogleCloudContactcenterinsightsV1QaAnswerAnswerValue(); o.conversation = 'foo'; o.qaQuestion = 'foo'; o.questionBody = 'foo'; - o.tags = buildUnnamed52(); + o.tags = buildUnnamed54(); } buildCounterGoogleCloudContactcenterinsightsV1QaAnswer--; return o; @@ -4185,12 +4272,12 @@ void checkGoogleCloudContactcenterinsightsV1QaAnswer( ) { buildCounterGoogleCloudContactcenterinsightsV1QaAnswer++; if (buildCounterGoogleCloudContactcenterinsightsV1QaAnswer < 3) { - checkUnnamed51(o.answerSources!); + checkUnnamed53(o.answerSources!); checkGoogleCloudContactcenterinsightsV1QaAnswerAnswerValue(o.answerValue!); unittest.expect(o.conversation!, unittest.equals('foo')); unittest.expect(o.qaQuestion!, unittest.equals('foo')); unittest.expect(o.questionBody!, unittest.equals('foo')); - checkUnnamed52(o.tags!); + checkUnnamed54(o.tags!); } buildCounterGoogleCloudContactcenterinsightsV1QaAnswer--; } @@ -4233,6 +4320,7 @@ buildGoogleCloudContactcenterinsightsV1QaAnswerAnswerValue() { o.numValue = 42.0; o.potentialScore = 42.0; o.score = 42.0; + o.skipValue = true; o.strValue = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1QaAnswerAnswerValue--; @@ -4251,18 +4339,19 @@ void checkGoogleCloudContactcenterinsightsV1QaAnswerAnswerValue( unittest.expect(o.numValue!, unittest.equals(42.0)); unittest.expect(o.potentialScore!, unittest.equals(42.0)); unittest.expect(o.score!, unittest.equals(42.0)); + unittest.expect(o.skipValue!, unittest.isTrue); unittest.expect(o.strValue!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1QaAnswerAnswerValue--; } core.List -buildUnnamed53() => [ +buildUnnamed55() => [ buildGoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice(), buildGoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice(), ]; -void checkUnnamed53( +void checkUnnamed55( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4270,9 +4359,9 @@ void checkUnnamed53( checkGoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice(o[1]); } -core.List buildUnnamed54() => ['foo', 'foo']; +core.List buildUnnamed56() => ['foo', 'foo']; -void checkUnnamed54(core.List o) { +void checkUnnamed56(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4285,7 +4374,7 @@ buildGoogleCloudContactcenterinsightsV1QaQuestion() { buildCounterGoogleCloudContactcenterinsightsV1QaQuestion++; if (buildCounterGoogleCloudContactcenterinsightsV1QaQuestion < 3) { o.abbreviation = 'foo'; - o.answerChoices = buildUnnamed53(); + o.answerChoices = buildUnnamed55(); o.answerInstructions = 'foo'; o.createTime = 'foo'; o.metrics = buildGoogleCloudContactcenterinsightsV1QaQuestionMetrics(); @@ -4295,7 +4384,7 @@ buildGoogleCloudContactcenterinsightsV1QaQuestion() { buildGoogleCloudContactcenterinsightsV1QaQuestionPredefinedQuestionConfig(); o.questionBody = 'foo'; o.questionType = 'foo'; - o.tags = buildUnnamed54(); + o.tags = buildUnnamed56(); o.tuningMetadata = buildGoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata(); o.updateTime = 'foo'; @@ -4310,7 +4399,7 @@ void checkGoogleCloudContactcenterinsightsV1QaQuestion( buildCounterGoogleCloudContactcenterinsightsV1QaQuestion++; if (buildCounterGoogleCloudContactcenterinsightsV1QaQuestion < 3) { unittest.expect(o.abbreviation!, unittest.equals('foo')); - checkUnnamed53(o.answerChoices!); + checkUnnamed55(o.answerChoices!); unittest.expect(o.answerInstructions!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); checkGoogleCloudContactcenterinsightsV1QaQuestionMetrics(o.metrics!); @@ -4321,7 +4410,7 @@ void checkGoogleCloudContactcenterinsightsV1QaQuestion( ); unittest.expect(o.questionBody!, unittest.equals('foo')); unittest.expect(o.questionType!, unittest.equals('foo')); - checkUnnamed54(o.tags!); + checkUnnamed56(o.tags!); checkGoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata( o.tuningMetadata!, ); @@ -4414,9 +4503,9 @@ void checkGoogleCloudContactcenterinsightsV1QaQuestionPredefinedQuestionConfig( buildCounterGoogleCloudContactcenterinsightsV1QaQuestionPredefinedQuestionConfig--; } -core.List buildUnnamed55() => ['foo', 'foo']; +core.List buildUnnamed57() => ['foo', 'foo']; -void checkUnnamed55(core.List o) { +void checkUnnamed57(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4431,7 +4520,7 @@ buildGoogleCloudContactcenterinsightsV1QaQuestionTag() { o.createTime = 'foo'; o.displayName = 'foo'; o.name = 'foo'; - o.qaQuestionIds = buildUnnamed55(); + o.qaQuestionIds = buildUnnamed57(); o.updateTime = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1QaQuestionTag--; @@ -4446,15 +4535,15 @@ void checkGoogleCloudContactcenterinsightsV1QaQuestionTag( unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed55(o.qaQuestionIds!); + checkUnnamed57(o.qaQuestionIds!); unittest.expect(o.updateTime!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1QaQuestionTag--; } -core.List buildUnnamed56() => ['foo', 'foo']; +core.List buildUnnamed58() => ['foo', 'foo']; -void checkUnnamed56(core.List o) { +void checkUnnamed58(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4468,7 +4557,7 @@ buildGoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata() { buildCounterGoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata++; if (buildCounterGoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata < 3) { - o.datasetValidationWarnings = buildUnnamed56(); + o.datasetValidationWarnings = buildUnnamed58(); o.totalValidLabelCount = 'foo'; o.tuningError = 'foo'; } @@ -4482,7 +4571,7 @@ void checkGoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata( buildCounterGoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata++; if (buildCounterGoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata < 3) { - checkUnnamed56(o.datasetValidationWarnings!); + checkUnnamed58(o.datasetValidationWarnings!); unittest.expect(o.totalValidLabelCount!, unittest.equals('foo')); unittest.expect(o.tuningError!, unittest.equals('foo')); } @@ -4500,6 +4589,7 @@ buildGoogleCloudContactcenterinsightsV1QaScorecard() { o.displayName = 'foo'; o.isDefault = true; o.name = 'foo'; + o.source = 'foo'; o.updateTime = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1QaScorecard--; @@ -4516,17 +4606,18 @@ void checkGoogleCloudContactcenterinsightsV1QaScorecard( unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.isDefault!, unittest.isTrue); unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.source!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1QaScorecard--; } -core.List buildUnnamed57() => [ +core.List buildUnnamed59() => [ buildGoogleCloudContactcenterinsightsV1QaAnswer(), buildGoogleCloudContactcenterinsightsV1QaAnswer(), ]; -void checkUnnamed57( +void checkUnnamed59( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4535,12 +4626,12 @@ void checkUnnamed57( } core.List -buildUnnamed58() => [ +buildUnnamed60() => [ buildGoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult(), buildGoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult(), ]; -void checkUnnamed58( +void checkUnnamed60( core.List o, ) { @@ -4550,12 +4641,12 @@ void checkUnnamed58( } core.List -buildUnnamed59() => [ +buildUnnamed61() => [ buildGoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource(), buildGoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource(), ]; -void checkUnnamed59( +void checkUnnamed61( core.List o, ) { @@ -4576,11 +4667,11 @@ buildGoogleCloudContactcenterinsightsV1QaScorecardResult() { o.name = 'foo'; o.normalizedScore = 42.0; o.potentialScore = 42.0; - o.qaAnswers = buildUnnamed57(); + o.qaAnswers = buildUnnamed59(); o.qaScorecardRevision = 'foo'; - o.qaTagResults = buildUnnamed58(); + o.qaTagResults = buildUnnamed60(); o.score = 42.0; - o.scoreSources = buildUnnamed59(); + o.scoreSources = buildUnnamed61(); } buildCounterGoogleCloudContactcenterinsightsV1QaScorecardResult--; return o; @@ -4597,11 +4688,11 @@ void checkGoogleCloudContactcenterinsightsV1QaScorecardResult( unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.normalizedScore!, unittest.equals(42.0)); unittest.expect(o.potentialScore!, unittest.equals(42.0)); - checkUnnamed57(o.qaAnswers!); + checkUnnamed59(o.qaAnswers!); unittest.expect(o.qaScorecardRevision!, unittest.equals('foo')); - checkUnnamed58(o.qaTagResults!); + checkUnnamed60(o.qaTagResults!); unittest.expect(o.score!, unittest.equals(42.0)); - checkUnnamed59(o.scoreSources!); + checkUnnamed61(o.scoreSources!); } buildCounterGoogleCloudContactcenterinsightsV1QaScorecardResult--; } @@ -4639,12 +4730,12 @@ void checkGoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult( } core.List -buildUnnamed60() => [ +buildUnnamed62() => [ buildGoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult(), buildGoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult(), ]; -void checkUnnamed60( +void checkUnnamed62( core.List o, ) { @@ -4664,7 +4755,7 @@ buildGoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource() { 3) { o.normalizedScore = 42.0; o.potentialScore = 42.0; - o.qaTagResults = buildUnnamed60(); + o.qaTagResults = buildUnnamed62(); o.score = 42.0; o.sourceType = 'foo'; } @@ -4680,16 +4771,16 @@ void checkGoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource( 3) { unittest.expect(o.normalizedScore!, unittest.equals(42.0)); unittest.expect(o.potentialScore!, unittest.equals(42.0)); - checkUnnamed60(o.qaTagResults!); + checkUnnamed62(o.qaTagResults!); unittest.expect(o.score!, unittest.equals(42.0)); unittest.expect(o.sourceType!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource--; } -core.List buildUnnamed61() => ['foo', 'foo']; +core.List buildUnnamed63() => ['foo', 'foo']; -void checkUnnamed61(core.List o) { +void checkUnnamed63(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4701,7 +4792,7 @@ buildGoogleCloudContactcenterinsightsV1QaScorecardRevision() { final o = api.GoogleCloudContactcenterinsightsV1QaScorecardRevision(); buildCounterGoogleCloudContactcenterinsightsV1QaScorecardRevision++; if (buildCounterGoogleCloudContactcenterinsightsV1QaScorecardRevision < 3) { - o.alternateIds = buildUnnamed61(); + o.alternateIds = buildUnnamed63(); o.createTime = 'foo'; o.name = 'foo'; o.snapshot = buildGoogleCloudContactcenterinsightsV1QaScorecard(); @@ -4716,7 +4807,7 @@ void checkGoogleCloudContactcenterinsightsV1QaScorecardRevision( ) { buildCounterGoogleCloudContactcenterinsightsV1QaScorecardRevision++; if (buildCounterGoogleCloudContactcenterinsightsV1QaScorecardRevision < 3) { - checkUnnamed61(o.alternateIds!); + checkUnnamed63(o.alternateIds!); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); checkGoogleCloudContactcenterinsightsV1QaScorecard(o.snapshot!); @@ -4749,12 +4840,12 @@ void checkGoogleCloudContactcenterinsightsV1QueryInterval( buildCounterGoogleCloudContactcenterinsightsV1QueryInterval--; } -core.List buildUnnamed62() => [ +core.List buildUnnamed64() => [ buildGoogleCloudContactcenterinsightsV1Dimension(), buildGoogleCloudContactcenterinsightsV1Dimension(), ]; -void checkUnnamed62( +void checkUnnamed64( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4768,7 +4859,7 @@ buildGoogleCloudContactcenterinsightsV1QueryMetricsRequest() { final o = api.GoogleCloudContactcenterinsightsV1QueryMetricsRequest(); buildCounterGoogleCloudContactcenterinsightsV1QueryMetricsRequest++; if (buildCounterGoogleCloudContactcenterinsightsV1QueryMetricsRequest < 3) { - o.dimensions = buildUnnamed62(); + o.dimensions = buildUnnamed64(); o.filter = 'foo'; o.measureMask = 'foo'; o.timeGranularity = 'foo'; @@ -4782,7 +4873,7 @@ void checkGoogleCloudContactcenterinsightsV1QueryMetricsRequest( ) { buildCounterGoogleCloudContactcenterinsightsV1QueryMetricsRequest++; if (buildCounterGoogleCloudContactcenterinsightsV1QueryMetricsRequest < 3) { - checkUnnamed62(o.dimensions!); + checkUnnamed64(o.dimensions!); unittest.expect(o.filter!, unittest.equals('foo')); unittest.expect(o.measureMask!, unittest.equals('foo')); unittest.expect(o.timeGranularity!, unittest.equals('foo')); @@ -4971,6 +5062,35 @@ void checkGoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput( buildCounterGoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput--; } +core.int +buildCounterGoogleCloudContactcenterinsightsV1SampleConversationsRequest = 0; +api.GoogleCloudContactcenterinsightsV1SampleConversationsRequest +buildGoogleCloudContactcenterinsightsV1SampleConversationsRequest() { + final o = api.GoogleCloudContactcenterinsightsV1SampleConversationsRequest(); + buildCounterGoogleCloudContactcenterinsightsV1SampleConversationsRequest++; + if (buildCounterGoogleCloudContactcenterinsightsV1SampleConversationsRequest < + 3) { + o.destinationDataset = buildGoogleCloudContactcenterinsightsV1Dataset(); + o.parent = 'foo'; + o.sampleRule = buildGoogleCloudContactcenterinsightsV1SampleRule(); + } + buildCounterGoogleCloudContactcenterinsightsV1SampleConversationsRequest--; + return o; +} + +void checkGoogleCloudContactcenterinsightsV1SampleConversationsRequest( + api.GoogleCloudContactcenterinsightsV1SampleConversationsRequest o, +) { + buildCounterGoogleCloudContactcenterinsightsV1SampleConversationsRequest++; + if (buildCounterGoogleCloudContactcenterinsightsV1SampleConversationsRequest < + 3) { + checkGoogleCloudContactcenterinsightsV1Dataset(o.destinationDataset!); + unittest.expect(o.parent!, unittest.equals('foo')); + checkGoogleCloudContactcenterinsightsV1SampleRule(o.sampleRule!); + } + buildCounterGoogleCloudContactcenterinsightsV1SampleConversationsRequest--; +} + core.int buildCounterGoogleCloudContactcenterinsightsV1SampleRule = 0; api.GoogleCloudContactcenterinsightsV1SampleRule buildGoogleCloudContactcenterinsightsV1SampleRule() { @@ -5028,12 +5148,12 @@ void checkGoogleCloudContactcenterinsightsV1ScheduleInfo( } core.List -buildUnnamed63() => [ +buildUnnamed65() => [ buildGoogleCloudContactcenterinsightsV1AuthorizedView(), buildGoogleCloudContactcenterinsightsV1AuthorizedView(), ]; -void checkUnnamed63( +void checkUnnamed65( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -5050,7 +5170,7 @@ buildGoogleCloudContactcenterinsightsV1SearchAuthorizedViewsResponse() { buildCounterGoogleCloudContactcenterinsightsV1SearchAuthorizedViewsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1SearchAuthorizedViewsResponse < 3) { - o.authorizedViews = buildUnnamed63(); + o.authorizedViews = buildUnnamed65(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudContactcenterinsightsV1SearchAuthorizedViewsResponse--; @@ -5063,7 +5183,7 @@ void checkGoogleCloudContactcenterinsightsV1SearchAuthorizedViewsResponse( buildCounterGoogleCloudContactcenterinsightsV1SearchAuthorizedViewsResponse++; if (buildCounterGoogleCloudContactcenterinsightsV1SearchAuthorizedViewsResponse < 3) { - checkUnnamed63(o.authorizedViews!); + checkUnnamed65(o.authorizedViews!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1SearchAuthorizedViewsResponse--; @@ -5093,9 +5213,9 @@ void checkGoogleCloudContactcenterinsightsV1SentimentData( buildCounterGoogleCloudContactcenterinsightsV1SentimentData--; } -core.Map buildUnnamed64() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed66() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed64(core.Map o) { +void checkUnnamed66(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -5113,7 +5233,7 @@ buildGoogleCloudContactcenterinsightsV1Settings() { o.createTime = 'foo'; o.languageCode = 'foo'; o.name = 'foo'; - o.pubsubNotificationSettings = buildUnnamed64(); + o.pubsubNotificationSettings = buildUnnamed66(); o.redactionConfig = buildGoogleCloudContactcenterinsightsV1RedactionConfig(); o.speechConfig = buildGoogleCloudContactcenterinsightsV1SpeechConfig(); @@ -5135,7 +5255,7 @@ void checkGoogleCloudContactcenterinsightsV1Settings( unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.languageCode!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed64(o.pubsubNotificationSettings!); + checkUnnamed66(o.pubsubNotificationSettings!); checkGoogleCloudContactcenterinsightsV1RedactionConfig(o.redactionConfig!); checkGoogleCloudContactcenterinsightsV1SpeechConfig(o.speechConfig!); unittest.expect(o.updateTime!, unittest.equals('foo')); @@ -5199,9 +5319,9 @@ void checkGoogleCloudContactcenterinsightsV1SilenceData( buildCounterGoogleCloudContactcenterinsightsV1SilenceData--; } -core.Map buildUnnamed65() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed67() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed65(core.Map o) { +void checkUnnamed67(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -5216,7 +5336,7 @@ buildGoogleCloudContactcenterinsightsV1SmartComposeSuggestionData() { if (buildCounterGoogleCloudContactcenterinsightsV1SmartComposeSuggestionData < 3) { o.confidenceScore = 42.0; - o.metadata = buildUnnamed65(); + o.metadata = buildUnnamed67(); o.queryRecord = 'foo'; o.suggestion = 'foo'; } @@ -5231,16 +5351,16 @@ void checkGoogleCloudContactcenterinsightsV1SmartComposeSuggestionData( if (buildCounterGoogleCloudContactcenterinsightsV1SmartComposeSuggestionData < 3) { unittest.expect(o.confidenceScore!, unittest.equals(42.0)); - checkUnnamed65(o.metadata!); + checkUnnamed67(o.metadata!); unittest.expect(o.queryRecord!, unittest.equals('foo')); unittest.expect(o.suggestion!, unittest.equals('foo')); } buildCounterGoogleCloudContactcenterinsightsV1SmartComposeSuggestionData--; } -core.Map buildUnnamed66() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed68() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed66(core.Map o) { +void checkUnnamed68(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -5253,7 +5373,7 @@ buildGoogleCloudContactcenterinsightsV1SmartReplyData() { buildCounterGoogleCloudContactcenterinsightsV1SmartReplyData++; if (buildCounterGoogleCloudContactcenterinsightsV1SmartReplyData < 3) { o.confidenceScore = 42.0; - o.metadata = buildUnnamed66(); + o.metadata = buildUnnamed68(); o.queryRecord = 'foo'; o.reply = 'foo'; } @@ -5267,7 +5387,7 @@ void checkGoogleCloudContactcenterinsightsV1SmartReplyData( buildCounterGoogleCloudContactcenterinsightsV1SmartReplyData++; if (buildCounterGoogleCloudContactcenterinsightsV1SmartReplyData < 3) { unittest.expect(o.confidenceScore!, unittest.equals(42.0)); - checkUnnamed66(o.metadata!); + checkUnnamed68(o.metadata!); unittest.expect(o.queryRecord!, unittest.equals('foo')); unittest.expect(o.reply!, unittest.equals('foo')); } @@ -5459,118 +5579,338 @@ void checkGoogleCloudContactcenterinsightsV1View( buildCounterGoogleCloudContactcenterinsightsV1View--; } -core.List buildUnnamed67() => [ - buildGoogleLongrunningOperation(), - buildGoogleLongrunningOperation(), +core.List buildUnnamed69() => [ + buildGoogleIamV1AuditLogConfig(), + buildGoogleIamV1AuditLogConfig(), ]; -void checkUnnamed67(core.List o) { +void checkUnnamed69(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleLongrunningOperation(o[0]); - checkGoogleLongrunningOperation(o[1]); + checkGoogleIamV1AuditLogConfig(o[0]); + checkGoogleIamV1AuditLogConfig(o[1]); } -core.int buildCounterGoogleLongrunningListOperationsResponse = 0; -api.GoogleLongrunningListOperationsResponse -buildGoogleLongrunningListOperationsResponse() { - final o = api.GoogleLongrunningListOperationsResponse(); - buildCounterGoogleLongrunningListOperationsResponse++; - if (buildCounterGoogleLongrunningListOperationsResponse < 3) { - o.nextPageToken = 'foo'; - o.operations = buildUnnamed67(); +core.int buildCounterGoogleIamV1AuditConfig = 0; +api.GoogleIamV1AuditConfig buildGoogleIamV1AuditConfig() { + final o = api.GoogleIamV1AuditConfig(); + buildCounterGoogleIamV1AuditConfig++; + if (buildCounterGoogleIamV1AuditConfig < 3) { + o.auditLogConfigs = buildUnnamed69(); + o.service = 'foo'; } - buildCounterGoogleLongrunningListOperationsResponse--; + buildCounterGoogleIamV1AuditConfig--; return o; } -void checkGoogleLongrunningListOperationsResponse( - api.GoogleLongrunningListOperationsResponse o, -) { - buildCounterGoogleLongrunningListOperationsResponse++; - if (buildCounterGoogleLongrunningListOperationsResponse < 3) { - unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed67(o.operations!); +void checkGoogleIamV1AuditConfig(api.GoogleIamV1AuditConfig o) { + buildCounterGoogleIamV1AuditConfig++; + if (buildCounterGoogleIamV1AuditConfig < 3) { + checkUnnamed69(o.auditLogConfigs!); + unittest.expect(o.service!, unittest.equals('foo')); } - buildCounterGoogleLongrunningListOperationsResponse--; + buildCounterGoogleIamV1AuditConfig--; } -core.Map buildUnnamed68() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; +core.List buildUnnamed70() => ['foo', 'foo']; -void checkUnnamed68(core.Map o) { +void checkUnnamed70(core.List o) { unittest.expect(o, unittest.hasLength(2)); - var casted1 = (o['x']!) as core.Map; - unittest.expect(casted1, unittest.hasLength(3)); - unittest.expect(casted1['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted1['bool'], unittest.equals(true)); - unittest.expect(casted1['string'], unittest.equals('foo')); - var casted2 = (o['y']!) as core.Map; - unittest.expect(casted2, unittest.hasLength(3)); - unittest.expect(casted2['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted2['bool'], unittest.equals(true)); - unittest.expect(casted2['string'], unittest.equals('foo')); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed69() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; +core.int buildCounterGoogleIamV1AuditLogConfig = 0; +api.GoogleIamV1AuditLogConfig buildGoogleIamV1AuditLogConfig() { + final o = api.GoogleIamV1AuditLogConfig(); + buildCounterGoogleIamV1AuditLogConfig++; + if (buildCounterGoogleIamV1AuditLogConfig < 3) { + o.exemptedMembers = buildUnnamed70(); + o.logType = 'foo'; + } + buildCounterGoogleIamV1AuditLogConfig--; + return o; +} + +void checkGoogleIamV1AuditLogConfig(api.GoogleIamV1AuditLogConfig o) { + buildCounterGoogleIamV1AuditLogConfig++; + if (buildCounterGoogleIamV1AuditLogConfig < 3) { + checkUnnamed70(o.exemptedMembers!); + unittest.expect(o.logType!, unittest.equals('foo')); + } + buildCounterGoogleIamV1AuditLogConfig--; +} -void checkUnnamed69(core.Map o) { +core.List buildUnnamed71() => ['foo', 'foo']; + +void checkUnnamed71(core.List o) { unittest.expect(o, unittest.hasLength(2)); - var casted3 = (o['x']!) as core.Map; - unittest.expect(casted3, unittest.hasLength(3)); - unittest.expect(casted3['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted3['bool'], unittest.equals(true)); - unittest.expect(casted3['string'], unittest.equals('foo')); - var casted4 = (o['y']!) as core.Map; - unittest.expect(casted4, unittest.hasLength(3)); - unittest.expect(casted4['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted4['bool'], unittest.equals(true)); - unittest.expect(casted4['string'], unittest.equals('foo')); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleLongrunningOperation = 0; -api.GoogleLongrunningOperation buildGoogleLongrunningOperation() { - final o = api.GoogleLongrunningOperation(); - buildCounterGoogleLongrunningOperation++; - if (buildCounterGoogleLongrunningOperation < 3) { - o.done = true; - o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed68(); - o.name = 'foo'; - o.response = buildUnnamed69(); +core.int buildCounterGoogleIamV1Binding = 0; +api.GoogleIamV1Binding buildGoogleIamV1Binding() { + final o = api.GoogleIamV1Binding(); + buildCounterGoogleIamV1Binding++; + if (buildCounterGoogleIamV1Binding < 3) { + o.condition = buildGoogleTypeExpr(); + o.members = buildUnnamed71(); + o.role = 'foo'; } - buildCounterGoogleLongrunningOperation--; + buildCounterGoogleIamV1Binding--; return o; } -void checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { - buildCounterGoogleLongrunningOperation++; - if (buildCounterGoogleLongrunningOperation < 3) { - unittest.expect(o.done!, unittest.isTrue); - checkGoogleRpcStatus(o.error!); - checkUnnamed68(o.metadata!); +void checkGoogleIamV1Binding(api.GoogleIamV1Binding o) { + buildCounterGoogleIamV1Binding++; + if (buildCounterGoogleIamV1Binding < 3) { + checkGoogleTypeExpr(o.condition!); + checkUnnamed71(o.members!); + unittest.expect(o.role!, unittest.equals('foo')); + } + buildCounterGoogleIamV1Binding--; +} + +core.List buildUnnamed72() => [ + buildGoogleIamV1AuditConfig(), + buildGoogleIamV1AuditConfig(), +]; + +void checkUnnamed72(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleIamV1AuditConfig(o[0]); + checkGoogleIamV1AuditConfig(o[1]); +} + +core.List buildUnnamed73() => [ + buildGoogleIamV1Binding(), + buildGoogleIamV1Binding(), +]; + +void checkUnnamed73(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleIamV1Binding(o[0]); + checkGoogleIamV1Binding(o[1]); +} + +core.int buildCounterGoogleIamV1Policy = 0; +api.GoogleIamV1Policy buildGoogleIamV1Policy() { + final o = api.GoogleIamV1Policy(); + buildCounterGoogleIamV1Policy++; + if (buildCounterGoogleIamV1Policy < 3) { + o.auditConfigs = buildUnnamed72(); + o.bindings = buildUnnamed73(); + o.etag = 'foo'; + o.version = 42; + } + buildCounterGoogleIamV1Policy--; + return o; +} + +void checkGoogleIamV1Policy(api.GoogleIamV1Policy o) { + buildCounterGoogleIamV1Policy++; + if (buildCounterGoogleIamV1Policy < 3) { + checkUnnamed72(o.auditConfigs!); + checkUnnamed73(o.bindings!); + unittest.expect(o.etag!, unittest.equals('foo')); + unittest.expect(o.version!, unittest.equals(42)); + } + buildCounterGoogleIamV1Policy--; +} + +core.int buildCounterGoogleIamV1SetIamPolicyRequest = 0; +api.GoogleIamV1SetIamPolicyRequest buildGoogleIamV1SetIamPolicyRequest() { + final o = api.GoogleIamV1SetIamPolicyRequest(); + buildCounterGoogleIamV1SetIamPolicyRequest++; + if (buildCounterGoogleIamV1SetIamPolicyRequest < 3) { + o.policy = buildGoogleIamV1Policy(); + o.updateMask = 'foo'; + } + buildCounterGoogleIamV1SetIamPolicyRequest--; + return o; +} + +void checkGoogleIamV1SetIamPolicyRequest(api.GoogleIamV1SetIamPolicyRequest o) { + buildCounterGoogleIamV1SetIamPolicyRequest++; + if (buildCounterGoogleIamV1SetIamPolicyRequest < 3) { + checkGoogleIamV1Policy(o.policy!); + unittest.expect(o.updateMask!, unittest.equals('foo')); + } + buildCounterGoogleIamV1SetIamPolicyRequest--; +} + +core.List buildUnnamed74() => ['foo', 'foo']; + +void checkUnnamed74(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterGoogleIamV1TestIamPermissionsRequest = 0; +api.GoogleIamV1TestIamPermissionsRequest +buildGoogleIamV1TestIamPermissionsRequest() { + final o = api.GoogleIamV1TestIamPermissionsRequest(); + buildCounterGoogleIamV1TestIamPermissionsRequest++; + if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) { + o.permissions = buildUnnamed74(); + } + buildCounterGoogleIamV1TestIamPermissionsRequest--; + return o; +} + +void checkGoogleIamV1TestIamPermissionsRequest( + api.GoogleIamV1TestIamPermissionsRequest o, +) { + buildCounterGoogleIamV1TestIamPermissionsRequest++; + if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) { + checkUnnamed74(o.permissions!); + } + buildCounterGoogleIamV1TestIamPermissionsRequest--; +} + +core.List buildUnnamed75() => ['foo', 'foo']; + +void checkUnnamed75(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterGoogleIamV1TestIamPermissionsResponse = 0; +api.GoogleIamV1TestIamPermissionsResponse +buildGoogleIamV1TestIamPermissionsResponse() { + final o = api.GoogleIamV1TestIamPermissionsResponse(); + buildCounterGoogleIamV1TestIamPermissionsResponse++; + if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) { + o.permissions = buildUnnamed75(); + } + buildCounterGoogleIamV1TestIamPermissionsResponse--; + return o; +} + +void checkGoogleIamV1TestIamPermissionsResponse( + api.GoogleIamV1TestIamPermissionsResponse o, +) { + buildCounterGoogleIamV1TestIamPermissionsResponse++; + if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) { + checkUnnamed75(o.permissions!); + } + buildCounterGoogleIamV1TestIamPermissionsResponse--; +} + +core.List buildUnnamed76() => [ + buildGoogleLongrunningOperation(), + buildGoogleLongrunningOperation(), +]; + +void checkUnnamed76(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleLongrunningOperation(o[0]); + checkGoogleLongrunningOperation(o[1]); +} + +core.int buildCounterGoogleLongrunningListOperationsResponse = 0; +api.GoogleLongrunningListOperationsResponse +buildGoogleLongrunningListOperationsResponse() { + final o = api.GoogleLongrunningListOperationsResponse(); + buildCounterGoogleLongrunningListOperationsResponse++; + if (buildCounterGoogleLongrunningListOperationsResponse < 3) { + o.nextPageToken = 'foo'; + o.operations = buildUnnamed76(); + } + buildCounterGoogleLongrunningListOperationsResponse--; + return o; +} + +void checkGoogleLongrunningListOperationsResponse( + api.GoogleLongrunningListOperationsResponse o, +) { + buildCounterGoogleLongrunningListOperationsResponse++; + if (buildCounterGoogleLongrunningListOperationsResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed76(o.operations!); + } + buildCounterGoogleLongrunningListOperationsResponse--; +} + +core.Map buildUnnamed77() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed77(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted1 = (o['x']!) as core.Map; + unittest.expect(casted1, unittest.hasLength(3)); + unittest.expect(casted1['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted1['bool'], unittest.equals(true)); + unittest.expect(casted1['string'], unittest.equals('foo')); + var casted2 = (o['y']!) as core.Map; + unittest.expect(casted2, unittest.hasLength(3)); + unittest.expect(casted2['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted2['bool'], unittest.equals(true)); + unittest.expect(casted2['string'], unittest.equals('foo')); +} + +core.Map buildUnnamed78() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed78(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted3 = (o['x']!) as core.Map; + unittest.expect(casted3, unittest.hasLength(3)); + unittest.expect(casted3['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted3['bool'], unittest.equals(true)); + unittest.expect(casted3['string'], unittest.equals('foo')); + var casted4 = (o['y']!) as core.Map; + unittest.expect(casted4, unittest.hasLength(3)); + unittest.expect(casted4['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted4['bool'], unittest.equals(true)); + unittest.expect(casted4['string'], unittest.equals('foo')); +} + +core.int buildCounterGoogleLongrunningOperation = 0; +api.GoogleLongrunningOperation buildGoogleLongrunningOperation() { + final o = api.GoogleLongrunningOperation(); + buildCounterGoogleLongrunningOperation++; + if (buildCounterGoogleLongrunningOperation < 3) { + o.done = true; + o.error = buildGoogleRpcStatus(); + o.metadata = buildUnnamed77(); + o.name = 'foo'; + o.response = buildUnnamed78(); + } + buildCounterGoogleLongrunningOperation--; + return o; +} + +void checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { + buildCounterGoogleLongrunningOperation++; + if (buildCounterGoogleLongrunningOperation < 3) { + unittest.expect(o.done!, unittest.isTrue); + checkGoogleRpcStatus(o.error!); + checkUnnamed77(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed69(o.response!); + checkUnnamed78(o.response!); } buildCounterGoogleLongrunningOperation--; } @@ -5590,7 +5930,7 @@ void checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { buildCounterGoogleProtobufEmpty--; } -core.Map buildUnnamed70() => { +core.Map buildUnnamed79() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -5603,7 +5943,7 @@ core.Map buildUnnamed70() => { }, }; -void checkUnnamed70(core.Map o) { +void checkUnnamed79(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o['x']!) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -5617,15 +5957,15 @@ void checkUnnamed70(core.Map o) { unittest.expect(casted6['string'], unittest.equals('foo')); } -core.List> buildUnnamed71() => [ - buildUnnamed70(), - buildUnnamed70(), +core.List> buildUnnamed80() => [ + buildUnnamed79(), + buildUnnamed79(), ]; -void checkUnnamed71(core.List> o) { +void checkUnnamed80(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed70(o[0]); - checkUnnamed70(o[1]); + checkUnnamed79(o[0]); + checkUnnamed79(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -5634,7 +5974,7 @@ api.GoogleRpcStatus buildGoogleRpcStatus() { buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed71(); + o.details = buildUnnamed80(); o.message = 'foo'; } buildCounterGoogleRpcStatus--; @@ -5645,12 +5985,53 @@ void checkGoogleRpcStatus(api.GoogleRpcStatus o) { buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed71(o.details!); + checkUnnamed80(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; } +core.int buildCounterGoogleTypeExpr = 0; +api.GoogleTypeExpr buildGoogleTypeExpr() { + final o = api.GoogleTypeExpr(); + buildCounterGoogleTypeExpr++; + if (buildCounterGoogleTypeExpr < 3) { + o.description = 'foo'; + o.expression = 'foo'; + o.location = 'foo'; + o.title = 'foo'; + } + buildCounterGoogleTypeExpr--; + return o; +} + +void checkGoogleTypeExpr(api.GoogleTypeExpr o) { + buildCounterGoogleTypeExpr++; + if (buildCounterGoogleTypeExpr < 3) { + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.expression!, unittest.equals('foo')); + unittest.expect(o.location!, unittest.equals('foo')); + unittest.expect(o.title!, unittest.equals('foo')); + } + buildCounterGoogleTypeExpr--; +} + +core.List buildUnnamed81() => ['foo', 'foo']; + +void checkUnnamed81(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed82() => ['foo', 'foo']; + +void checkUnnamed82(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + void main() { unittest.group('obj-schema-GoogleCloudContactcenterinsightsV1Analysis', () { unittest.test('to-json--from-json', () async { @@ -6374,6 +6755,17 @@ void main() { }, ); + unittest.group('obj-schema-GoogleCloudContactcenterinsightsV1Dataset', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudContactcenterinsightsV1Dataset(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudContactcenterinsightsV1Dataset.fromJson( + oJson as core.Map, + ); + checkGoogleCloudContactcenterinsightsV1Dataset(od); + }); + }); + unittest.group( 'obj-schema-GoogleCloudContactcenterinsightsV1DeployIssueModelRequest', () { @@ -7137,6 +7529,21 @@ void main() { }, ); + unittest.group( + 'obj-schema-GoogleCloudContactcenterinsightsV1ListDatasetsResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudContactcenterinsightsV1ListDatasetsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudContactcenterinsightsV1ListDatasetsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudContactcenterinsightsV1ListDatasetsResponse(od); + }); + }, + ); + unittest.group( 'obj-schema-GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse', () { @@ -7762,6 +8169,22 @@ void main() { }, ); + unittest.group( + 'obj-schema-GoogleCloudContactcenterinsightsV1SampleConversationsRequest', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudContactcenterinsightsV1SampleConversationsRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudContactcenterinsightsV1SampleConversationsRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudContactcenterinsightsV1SampleConversationsRequest(od); + }); + }, + ); + unittest.group('obj-schema-GoogleCloudContactcenterinsightsV1SampleRule', () { unittest.test('to-json--from-json', () async { final o = buildGoogleCloudContactcenterinsightsV1SampleRule(); @@ -7995,75 +8418,163 @@ void main() { }); }); - unittest.group('obj-schema-GoogleLongrunningListOperationsResponse', () { + unittest.group('obj-schema-GoogleIamV1AuditConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleLongrunningListOperationsResponse(); + final o = buildGoogleIamV1AuditConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleLongrunningListOperationsResponse.fromJson( + final od = api.GoogleIamV1AuditConfig.fromJson( oJson as core.Map, ); - checkGoogleLongrunningListOperationsResponse(od); + checkGoogleIamV1AuditConfig(od); }); }); - unittest.group('obj-schema-GoogleLongrunningOperation', () { + unittest.group('obj-schema-GoogleIamV1AuditLogConfig', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleLongrunningOperation(); + final o = buildGoogleIamV1AuditLogConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleLongrunningOperation.fromJson( + final od = api.GoogleIamV1AuditLogConfig.fromJson( oJson as core.Map, ); - checkGoogleLongrunningOperation(od); + checkGoogleIamV1AuditLogConfig(od); }); }); - unittest.group('obj-schema-GoogleProtobufEmpty', () { + unittest.group('obj-schema-GoogleIamV1Binding', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleProtobufEmpty(); + final o = buildGoogleIamV1Binding(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleProtobufEmpty.fromJson( + final od = api.GoogleIamV1Binding.fromJson( oJson as core.Map, ); - checkGoogleProtobufEmpty(od); + checkGoogleIamV1Binding(od); }); }); - unittest.group('obj-schema-GoogleRpcStatus', () { + unittest.group('obj-schema-GoogleIamV1Policy', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleRpcStatus(); + final o = buildGoogleIamV1Policy(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleRpcStatus.fromJson( + final od = api.GoogleIamV1Policy.fromJson( oJson as core.Map, ); - checkGoogleRpcStatus(od); + checkGoogleIamV1Policy(od); }); }); - unittest.group('resource-ProjectsLocationsResource', () { - unittest.test('method--bulkDeleteFeedbackLabels', () async { - final mock = HttpServerMock(); - final res = api.ContactcenterinsightsApi(mock).projects.locations; - final arg_request = - buildGoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest(); - final arg_parent = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest( - obj, - ); + unittest.group('obj-schema-GoogleIamV1SetIamPolicyRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleIamV1SetIamPolicyRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleIamV1SetIamPolicyRequest.fromJson( + oJson as core.Map, + ); + checkGoogleIamV1SetIamPolicyRequest(od); + }); + }); - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), + unittest.group('obj-schema-GoogleIamV1TestIamPermissionsRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleIamV1TestIamPermissionsRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleIamV1TestIamPermissionsRequest.fromJson( + oJson as core.Map, + ); + checkGoogleIamV1TestIamPermissionsRequest(od); + }); + }); + + unittest.group('obj-schema-GoogleIamV1TestIamPermissionsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleIamV1TestIamPermissionsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleIamV1TestIamPermissionsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleIamV1TestIamPermissionsResponse(od); + }); + }); + + unittest.group('obj-schema-GoogleLongrunningListOperationsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleLongrunningListOperationsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleLongrunningListOperationsResponse.fromJson( + oJson as core.Map, + ); + checkGoogleLongrunningListOperationsResponse(od); + }); + }); + + unittest.group('obj-schema-GoogleLongrunningOperation', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleLongrunningOperation(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleLongrunningOperation.fromJson( + oJson as core.Map, + ); + checkGoogleLongrunningOperation(od); + }); + }); + + unittest.group('obj-schema-GoogleProtobufEmpty', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleProtobufEmpty(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleProtobufEmpty.fromJson( + oJson as core.Map, + ); + checkGoogleProtobufEmpty(od); + }); + }); + + unittest.group('obj-schema-GoogleRpcStatus', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleRpcStatus(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleRpcStatus.fromJson( + oJson as core.Map, + ); + checkGoogleRpcStatus(od); + }); + }); + + unittest.group('obj-schema-GoogleTypeExpr', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleTypeExpr(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleTypeExpr.fromJson( + oJson as core.Map, + ); + checkGoogleTypeExpr(od); + }); + }); + + unittest.group('resource-ProjectsLocationsResource', () { + unittest.test('method--bulkDeleteFeedbackLabels', () async { + final mock = HttpServerMock(); + final res = api.ContactcenterinsightsApi(mock).projects.locations; + final arg_request = + buildGoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest(); + final arg_parent = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest( + obj, + ); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), ); pathOffset += 1; unittest.expect( @@ -9891,6 +10402,71 @@ void main() { ); }); + unittest.test('method--getIamPolicy', () async { + final mock = HttpServerMock(); + final res = + api.ContactcenterinsightsApi( + mock, + ).projects.locations.authorizedViewSets.authorizedViews; + final arg_resource = 'foo'; + final arg_options_requestedPolicyVersion = 42; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + core.int.parse(queryMap['options.requestedPolicyVersion']!.first), + unittest.equals(arg_options_requestedPolicyVersion), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleIamV1Policy()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.getIamPolicy( + arg_resource, + options_requestedPolicyVersion: arg_options_requestedPolicyVersion, + $fields: arg_$fields, + ); + checkGoogleIamV1Policy(response as api.GoogleIamV1Policy); + }); + unittest.test('method--list', () async { final mock = HttpServerMock(); final res = @@ -10283,81 +10859,217 @@ void main() { as api.GoogleCloudContactcenterinsightsV1SearchAuthorizedViewsResponse, ); }); - }); - unittest.group( - 'resource-ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsResource', - () { - unittest.test('method--bulkAnalyze', () async { - final mock = HttpServerMock(); - final res = - api.ContactcenterinsightsApi(mock) - .projects - .locations - .authorizedViewSets - .authorizedViews - .conversations; - final arg_request = - buildGoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest(); - final arg_parent = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest( - obj, - ); + unittest.test('method--setIamPolicy', () async { + final mock = HttpServerMock(); + final res = + api.ContactcenterinsightsApi( + mock, + ).projects.locations.authorizedViewSets.authorizedViews; + final arg_request = buildGoogleIamV1SetIamPolicyRequest(); + final arg_resource = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleIamV1SetIamPolicyRequest.fromJson( + json as core.Map, + ); + checkGoogleIamV1SetIamPolicyRequest(obj); - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.bulkAnalyze( - arg_request, - arg_parent, - $fields: arg_$fields, - ); + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleIamV1Policy()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.setIamPolicy( + arg_request, + arg_resource, + $fields: arg_$fields, + ); + checkGoogleIamV1Policy(response as api.GoogleIamV1Policy); + }); + + unittest.test('method--testIamPermissions', () async { + final mock = HttpServerMock(); + final res = + api.ContactcenterinsightsApi( + mock, + ).projects.locations.authorizedViewSets.authorizedViews; + final arg_request = buildGoogleIamV1TestIamPermissionsRequest(); + final arg_resource = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleIamV1TestIamPermissionsRequest.fromJson( + json as core.Map, + ); + checkGoogleIamV1TestIamPermissionsRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleIamV1TestIamPermissionsResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.testIamPermissions( + arg_request, + arg_resource, + $fields: arg_$fields, + ); + checkGoogleIamV1TestIamPermissionsResponse( + response as api.GoogleIamV1TestIamPermissionsResponse, + ); + }); + }); + + unittest.group( + 'resource-ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsResource', + () { + unittest.test('method--bulkAnalyze', () async { + final mock = HttpServerMock(); + final res = + api.ContactcenterinsightsApi(mock) + .projects + .locations + .authorizedViewSets + .authorizedViews + .conversations; + final arg_request = + buildGoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest(); + final arg_parent = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest( + obj, + ); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.bulkAnalyze( + arg_request, + arg_parent, + $fields: arg_$fields, + ); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation, ); @@ -13019,6 +13731,76 @@ void main() { ); }); + unittest.test('method--sample', () async { + final mock = HttpServerMock(); + final res = + api.ContactcenterinsightsApi(mock).projects.locations.conversations; + final arg_request = + buildGoogleCloudContactcenterinsightsV1SampleConversationsRequest(); + final arg_parent = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudContactcenterinsightsV1SampleConversationsRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudContactcenterinsightsV1SampleConversationsRequest( + obj, + ); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.sample( + arg_request, + arg_parent, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + unittest.test('method--upload', () async { final mock = HttpServerMock(); final res = @@ -14395,35 +15177,321 @@ void main() { ); final response = await res.list( arg_parent, - filter: arg_filter, - pageSize: arg_pageSize, - pageToken: arg_pageToken, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkGoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse( + response + as api.GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse, + ); + }); + + unittest.test('method--patch', () async { + final mock = HttpServerMock(); + final res = + api.ContactcenterinsightsApi( + mock, + ).projects.locations.conversations.feedbackLabels; + final arg_request = + buildGoogleCloudContactcenterinsightsV1FeedbackLabel(); + final arg_name = 'foo'; + final arg_updateMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudContactcenterinsightsV1FeedbackLabel.fromJson( + json as core.Map, + ); + checkGoogleCloudContactcenterinsightsV1FeedbackLabel(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudContactcenterinsightsV1FeedbackLabel(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.patch( + arg_request, + arg_name, + updateMask: arg_updateMask, + $fields: arg_$fields, + ); + checkGoogleCloudContactcenterinsightsV1FeedbackLabel( + response as api.GoogleCloudContactcenterinsightsV1FeedbackLabel, + ); + }); + }); + + unittest.group('resource-ProjectsLocationsDatasetsResource', () { + unittest.test('method--bulkDeleteFeedbackLabels', () async { + final mock = HttpServerMock(); + final res = + api.ContactcenterinsightsApi(mock).projects.locations.datasets; + final arg_request = + buildGoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest(); + final arg_parent = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest( + obj, + ); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.bulkDeleteFeedbackLabels( + arg_request, + arg_parent, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + + unittest.test('method--bulkDownloadFeedbackLabels', () async { + final mock = HttpServerMock(); + final res = + api.ContactcenterinsightsApi(mock).projects.locations.datasets; + final arg_request = + buildGoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest(); + final arg_parent = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest( + obj, + ); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.bulkDownloadFeedbackLabels( + arg_request, + arg_parent, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + + unittest.test('method--bulkUploadFeedbackLabels', () async { + final mock = HttpServerMock(); + final res = + api.ContactcenterinsightsApi(mock).projects.locations.datasets; + final arg_request = + buildGoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest(); + final arg_parent = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest( + obj, + ); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.bulkUploadFeedbackLabels( + arg_request, + arg_parent, $fields: arg_$fields, ); - checkGoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse( - response - as api.GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--patch', () async { + unittest.test('method--create', () async { final mock = HttpServerMock(); final res = - api.ContactcenterinsightsApi( - mock, - ).projects.locations.conversations.feedbackLabels; - final arg_request = - buildGoogleCloudContactcenterinsightsV1FeedbackLabel(); - final arg_name = 'foo'; - final arg_updateMask = 'foo'; + api.ContactcenterinsightsApi(mock).projects.locations.datasets; + final arg_request = buildGoogleCloudContactcenterinsightsV1Dataset(); + final arg_parent = 'foo'; + final arg_datasetId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudContactcenterinsightsV1FeedbackLabel.fromJson( + final obj = api.GoogleCloudContactcenterinsightsV1Dataset.fromJson( json as core.Map, ); - checkGoogleCloudContactcenterinsightsV1FeedbackLabel(obj); + checkGoogleCloudContactcenterinsightsV1Dataset(obj); final path = req.url.path; var pathOffset = 0; @@ -14457,8 +15525,8 @@ void main() { } } unittest.expect( - queryMap['updateMask']!.first, - unittest.equals(arg_updateMask), + queryMap['datasetId']!.first, + unittest.equals(arg_datasetId), ); unittest.expect( queryMap['fields']!.first, @@ -14467,43 +15535,31 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudContactcenterinsightsV1FeedbackLabel(), + buildGoogleCloudContactcenterinsightsV1Dataset(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.patch( + final response = await res.create( arg_request, - arg_name, - updateMask: arg_updateMask, + arg_parent, + datasetId: arg_datasetId, $fields: arg_$fields, ); - checkGoogleCloudContactcenterinsightsV1FeedbackLabel( - response as api.GoogleCloudContactcenterinsightsV1FeedbackLabel, + checkGoogleCloudContactcenterinsightsV1Dataset( + response as api.GoogleCloudContactcenterinsightsV1Dataset, ); }); - }); - unittest.group('resource-ProjectsLocationsDatasetsResource', () { - unittest.test('method--bulkDeleteFeedbackLabels', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); final res = api.ContactcenterinsightsApi(mock).projects.locations.datasets; - final arg_request = - buildGoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest(); - final arg_parent = 'foo'; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest( - obj, - ); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -14546,34 +15602,20 @@ void main() { }), true, ); - final response = await res.bulkDeleteFeedbackLabels( - arg_request, - arg_parent, - $fields: arg_$fields, - ); + final response = await res.delete(arg_name, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--bulkDownloadFeedbackLabels', () async { + unittest.test('method--get', () async { final mock = HttpServerMock(); final res = api.ContactcenterinsightsApi(mock).projects.locations.datasets; - final arg_request = - buildGoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest(); - final arg_parent = 'foo'; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest( - obj, - ); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -14611,39 +15653,30 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudContactcenterinsightsV1Dataset(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.bulkDownloadFeedbackLabels( - arg_request, - arg_parent, - $fields: arg_$fields, - ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleCloudContactcenterinsightsV1Dataset( + response as api.GoogleCloudContactcenterinsightsV1Dataset, ); }); - unittest.test('method--bulkUploadFeedbackLabels', () async { + unittest.test('method--list', () async { final mock = HttpServerMock(); final res = api.ContactcenterinsightsApi(mock).projects.locations.datasets; - final arg_request = - buildGoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest(); final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest.fromJson( - json as core.Map, - ); - checkGoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest( - obj, - ); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -14675,24 +15708,40 @@ void main() { ); } } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildGoogleCloudContactcenterinsightsV1ListDatasetsResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.bulkUploadFeedbackLabels( - arg_request, + final response = await res.list( arg_parent, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkGoogleCloudContactcenterinsightsV1ListDatasetsResponse( + response as api.GoogleCloudContactcenterinsightsV1ListDatasetsResponse, ); }); @@ -14775,6 +15824,80 @@ void main() { as api.GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse, ); }); + + unittest.test('method--patch', () async { + final mock = HttpServerMock(); + final res = + api.ContactcenterinsightsApi(mock).projects.locations.datasets; + final arg_request = buildGoogleCloudContactcenterinsightsV1Dataset(); + final arg_name = 'foo'; + final arg_updateMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleCloudContactcenterinsightsV1Dataset.fromJson( + json as core.Map, + ); + checkGoogleCloudContactcenterinsightsV1Dataset(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudContactcenterinsightsV1Dataset(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.patch( + arg_request, + arg_name, + updateMask: arg_updateMask, + $fields: arg_$fields, + ); + checkGoogleCloudContactcenterinsightsV1Dataset( + response as api.GoogleCloudContactcenterinsightsV1Dataset, + ); + }); }); unittest.group('resource-ProjectsLocationsDatasetsConversationsResource', () { @@ -15288,6 +16411,78 @@ void main() { as api.GoogleCloudContactcenterinsightsV1ListConversationsResponse, ); }); + + unittest.test('method--sample', () async { + final mock = HttpServerMock(); + final res = + api.ContactcenterinsightsApi( + mock, + ).projects.locations.datasets.conversations; + final arg_request = + buildGoogleCloudContactcenterinsightsV1SampleConversationsRequest(); + final arg_parent = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudContactcenterinsightsV1SampleConversationsRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudContactcenterinsightsV1SampleConversationsRequest( + obj, + ); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.sample( + arg_request, + arg_parent, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); }); unittest.group('resource-ProjectsLocationsDatasetsConversationsAnalysesResource', () { @@ -18167,6 +19362,7 @@ void main() { final arg_parent = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; + final arg_qaScorecardSources = buildUnnamed81(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -18209,6 +19405,10 @@ void main() { queryMap['pageToken']!.first, unittest.equals(arg_pageToken), ); + unittest.expect( + queryMap['qaScorecardSources']!, + unittest.equals(arg_qaScorecardSources), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -18226,6 +19426,7 @@ void main() { arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken, + qaScorecardSources: arg_qaScorecardSources, $fields: arg_$fields, ); checkGoogleCloudContactcenterinsightsV1ListQaScorecardsResponse( @@ -18598,6 +19799,7 @@ void main() { final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; + final arg_qaScorecardSources = buildUnnamed82(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -18644,6 +19846,10 @@ void main() { queryMap['pageToken']!.first, unittest.equals(arg_pageToken), ); + unittest.expect( + queryMap['qaScorecardSources']!, + unittest.equals(arg_qaScorecardSources), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -18662,6 +19868,7 @@ void main() { filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken, + qaScorecardSources: arg_qaScorecardSources, $fields: arg_$fields, ); checkGoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse( diff --git a/generated/googleapis/test/container/v1_test.dart b/generated/googleapis/test/container/v1_test.dart index 623cd93a4..b4f1effb6 100644 --- a/generated/googleapis/test/container/v1_test.dart +++ b/generated/googleapis/test/container/v1_test.dart @@ -1152,6 +1152,7 @@ api.ClusterUpdate buildClusterUpdate() { o.desiredMonitoringConfig = buildMonitoringConfig(); o.desiredMonitoringService = 'foo'; o.desiredNetworkPerformanceConfig = buildClusterNetworkPerformanceConfig(); + o.desiredNetworkTierConfig = buildNetworkTierConfig(); o.desiredNodeKubeletConfig = buildNodeKubeletConfig(); o.desiredNodePoolAutoConfigKubeletConfig = buildNodeKubeletConfig(); o.desiredNodePoolAutoConfigLinuxNodeConfig = buildLinuxNodeConfig(); @@ -1243,6 +1244,7 @@ void checkClusterUpdate(api.ClusterUpdate o) { checkMonitoringConfig(o.desiredMonitoringConfig!); unittest.expect(o.desiredMonitoringService!, unittest.equals('foo')); checkClusterNetworkPerformanceConfig(o.desiredNetworkPerformanceConfig!); + checkNetworkTierConfig(o.desiredNetworkTierConfig!); checkNodeKubeletConfig(o.desiredNodeKubeletConfig!); checkNodeKubeletConfig(o.desiredNodePoolAutoConfigKubeletConfig!); checkLinuxNodeConfig(o.desiredNodePoolAutoConfigLinuxNodeConfig!); @@ -2475,6 +2477,7 @@ api.IPAllocationPolicy buildIPAllocationPolicy() { o.createSubnetwork = true; o.defaultPodIpv4RangeUtilization = 42.0; o.ipv6AccessType = 'foo'; + o.networkTierConfig = buildNetworkTierConfig(); o.nodeIpv4Cidr = 'foo'; o.nodeIpv4CidrBlock = 'foo'; o.podCidrOverprovisionConfig = buildPodCIDROverprovisionConfig(); @@ -2505,6 +2508,7 @@ void checkIPAllocationPolicy(api.IPAllocationPolicy o) { unittest.expect(o.createSubnetwork!, unittest.isTrue); unittest.expect(o.defaultPodIpv4RangeUtilization!, unittest.equals(42.0)); unittest.expect(o.ipv6AccessType!, unittest.equals('foo')); + checkNetworkTierConfig(o.networkTierConfig!); unittest.expect(o.nodeIpv4Cidr!, unittest.equals('foo')); unittest.expect(o.nodeIpv4CidrBlock!, unittest.equals('foo')); checkPodCIDROverprovisionConfig(o.podCidrOverprovisionConfig!); @@ -3399,6 +3403,25 @@ void checkNetworkTags(api.NetworkTags o) { buildCounterNetworkTags--; } +core.int buildCounterNetworkTierConfig = 0; +api.NetworkTierConfig buildNetworkTierConfig() { + final o = api.NetworkTierConfig(); + buildCounterNetworkTierConfig++; + if (buildCounterNetworkTierConfig < 3) { + o.networkTier = 'foo'; + } + buildCounterNetworkTierConfig--; + return o; +} + +void checkNetworkTierConfig(api.NetworkTierConfig o) { + buildCounterNetworkTierConfig++; + if (buildCounterNetworkTierConfig < 3) { + unittest.expect(o.networkTier!, unittest.equals('foo')); + } + buildCounterNetworkTierConfig--; +} + core.List buildUnnamed46() => ['foo', 'foo']; void checkUnnamed46(core.List o) { @@ -3790,6 +3813,7 @@ api.NodeNetworkConfig buildNodeNetworkConfig() { o.createPodRange = true; o.enablePrivateNodes = true; o.networkPerformanceConfig = buildNetworkPerformanceConfig(); + o.networkTierConfig = buildNetworkTierConfig(); o.podCidrOverprovisionConfig = buildPodCIDROverprovisionConfig(); o.podIpv4CidrBlock = 'foo'; o.podIpv4RangeUtilization = 42.0; @@ -3808,6 +3832,7 @@ void checkNodeNetworkConfig(api.NodeNetworkConfig o) { unittest.expect(o.createPodRange!, unittest.isTrue); unittest.expect(o.enablePrivateNodes!, unittest.isTrue); checkNetworkPerformanceConfig(o.networkPerformanceConfig!); + checkNetworkTierConfig(o.networkTierConfig!); checkPodCIDROverprovisionConfig(o.podCidrOverprovisionConfig!); unittest.expect(o.podIpv4CidrBlock!, unittest.equals('foo')); unittest.expect(o.podIpv4RangeUtilization!, unittest.equals(42.0)); @@ -4872,6 +4897,27 @@ void checkRollbackNodePoolUpgradeRequest(api.RollbackNodePoolUpgradeRequest o) { buildCounterRollbackNodePoolUpgradeRequest--; } +core.int buildCounterRotationConfig = 0; +api.RotationConfig buildRotationConfig() { + final o = api.RotationConfig(); + buildCounterRotationConfig++; + if (buildCounterRotationConfig < 3) { + o.enabled = true; + o.rotationInterval = 'foo'; + } + buildCounterRotationConfig--; + return o; +} + +void checkRotationConfig(api.RotationConfig o) { + buildCounterRotationConfig++; + if (buildCounterRotationConfig < 3) { + unittest.expect(o.enabled!, unittest.isTrue); + unittest.expect(o.rotationInterval!, unittest.equals('foo')); + } + buildCounterRotationConfig--; +} + core.int buildCounterSandboxConfig = 0; api.SandboxConfig buildSandboxConfig() { final o = api.SandboxConfig(); @@ -4935,6 +4981,7 @@ api.SecretManagerConfig buildSecretManagerConfig() { buildCounterSecretManagerConfig++; if (buildCounterSecretManagerConfig < 3) { o.enabled = true; + o.rotationConfig = buildRotationConfig(); } buildCounterSecretManagerConfig--; return o; @@ -4944,6 +4991,7 @@ void checkSecretManagerConfig(api.SecretManagerConfig o) { buildCounterSecretManagerConfig++; if (buildCounterSecretManagerConfig < 3) { unittest.expect(o.enabled!, unittest.isTrue); + checkRotationConfig(o.rotationConfig!); } buildCounterSecretManagerConfig--; } @@ -7424,6 +7472,17 @@ void main() { }); }); + unittest.group('obj-schema-NetworkTierConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildNetworkTierConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.NetworkTierConfig.fromJson( + oJson as core.Map, + ); + checkNetworkTierConfig(od); + }); + }); + unittest.group('obj-schema-NodeAffinity', () { unittest.test('to-json--from-json', () async { final o = buildNodeAffinity(); @@ -7908,6 +7967,17 @@ void main() { }); }); + unittest.group('obj-schema-RotationConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildRotationConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.RotationConfig.fromJson( + oJson as core.Map, + ); + checkRotationConfig(od); + }); + }); + unittest.group('obj-schema-SandboxConfig', () { unittest.test('to-json--from-json', () async { final o = buildSandboxConfig(); diff --git a/generated/googleapis/test/containeranalysis/v1_test.dart b/generated/googleapis/test/containeranalysis/v1_test.dart index 8e5ea5944..a94904824 100644 --- a/generated/googleapis/test/containeranalysis/v1_test.dart +++ b/generated/googleapis/test/containeranalysis/v1_test.dart @@ -647,6 +647,27 @@ void checkBuilderConfig(api.BuilderConfig o) { buildCounterBuilderConfig--; } +core.int buildCounterCISAKnownExploitedVulnerabilities = 0; +api.CISAKnownExploitedVulnerabilities buildCISAKnownExploitedVulnerabilities() { + final o = api.CISAKnownExploitedVulnerabilities(); + buildCounterCISAKnownExploitedVulnerabilities++; + if (buildCounterCISAKnownExploitedVulnerabilities < 3) { + o.knownRansomwareCampaignUse = 'foo'; + } + buildCounterCISAKnownExploitedVulnerabilities--; + return o; +} + +void checkCISAKnownExploitedVulnerabilities( + api.CISAKnownExploitedVulnerabilities o, +) { + buildCounterCISAKnownExploitedVulnerabilities++; + if (buildCounterCISAKnownExploitedVulnerabilities < 3) { + unittest.expect(o.knownRansomwareCampaignUse!, unittest.equals('foo')); + } + buildCounterCISAKnownExploitedVulnerabilities--; +} + core.int buildCounterCVSS = 0; api.CVSS buildCVSS() { final o = api.CVSS(); @@ -1346,6 +1367,27 @@ void checkEnvelopeSignature(api.EnvelopeSignature o) { buildCounterEnvelopeSignature--; } +core.int buildCounterExploitPredictionScoringSystem = 0; +api.ExploitPredictionScoringSystem buildExploitPredictionScoringSystem() { + final o = api.ExploitPredictionScoringSystem(); + buildCounterExploitPredictionScoringSystem++; + if (buildCounterExploitPredictionScoringSystem < 3) { + o.percentile = 42.0; + o.score = 42.0; + } + buildCounterExploitPredictionScoringSystem--; + return o; +} + +void checkExploitPredictionScoringSystem(api.ExploitPredictionScoringSystem o) { + buildCounterExploitPredictionScoringSystem++; + if (buildCounterExploitPredictionScoringSystem < 3) { + unittest.expect(o.percentile!, unittest.equals(42.0)); + unittest.expect(o.score!, unittest.equals(42.0)); + } + buildCounterExploitPredictionScoringSystem--; +} + core.int buildCounterExportSBOMRequest = 0; api.ExportSBOMRequest buildExportSBOMRequest() { final o = api.ExportSBOMRequest(); @@ -3080,6 +3122,27 @@ void checkResourceDescriptor(api.ResourceDescriptor o) { buildCounterResourceDescriptor--; } +core.int buildCounterRisk = 0; +api.Risk buildRisk() { + final o = api.Risk(); + buildCounterRisk++; + if (buildCounterRisk < 3) { + o.cisaKev = buildCISAKnownExploitedVulnerabilities(); + o.epss = buildExploitPredictionScoringSystem(); + } + buildCounterRisk--; + return o; +} + +void checkRisk(api.Risk o) { + buildCounterRisk++; + if (buildCounterRisk < 3) { + checkCISAKnownExploitedVulnerabilities(o.cisaKev!); + checkExploitPredictionScoringSystem(o.epss!); + } + buildCounterRisk--; +} + core.List buildUnnamed61() => [ buildResourceDescriptor(), buildResourceDescriptor(), @@ -4201,6 +4264,7 @@ api.VulnerabilityOccurrence buildVulnerabilityOccurrence() { o.longDescription = 'foo'; o.packageIssue = buildUnnamed87(); o.relatedUrls = buildUnnamed88(); + o.risk = buildRisk(); o.severity = 'foo'; o.shortDescription = 'foo'; o.type = 'foo'; @@ -4223,6 +4287,7 @@ void checkVulnerabilityOccurrence(api.VulnerabilityOccurrence o) { unittest.expect(o.longDescription!, unittest.equals('foo')); checkUnnamed87(o.packageIssue!); checkUnnamed88(o.relatedUrls!); + checkRisk(o.risk!); unittest.expect(o.severity!, unittest.equals('foo')); unittest.expect(o.shortDescription!, unittest.equals('foo')); unittest.expect(o.type!, unittest.equals('foo')); @@ -4555,6 +4620,17 @@ void main() { }); }); + unittest.group('obj-schema-CISAKnownExploitedVulnerabilities', () { + unittest.test('to-json--from-json', () async { + final o = buildCISAKnownExploitedVulnerabilities(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.CISAKnownExploitedVulnerabilities.fromJson( + oJson as core.Map, + ); + checkCISAKnownExploitedVulnerabilities(od); + }); + }); + unittest.group('obj-schema-CVSS', () { unittest.test('to-json--from-json', () async { final o = buildCVSS(); @@ -4819,6 +4895,17 @@ void main() { }); }); + unittest.group('obj-schema-ExploitPredictionScoringSystem', () { + unittest.test('to-json--from-json', () async { + final o = buildExploitPredictionScoringSystem(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ExploitPredictionScoringSystem.fromJson( + oJson as core.Map, + ); + checkExploitPredictionScoringSystem(od); + }); + }); + unittest.group('obj-schema-ExportSBOMRequest', () { unittest.test('to-json--from-json', () async { final o = buildExportSBOMRequest(); @@ -5417,6 +5504,17 @@ void main() { }); }); + unittest.group('obj-schema-Risk', () { + unittest.test('to-json--from-json', () async { + final o = buildRisk(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Risk.fromJson( + oJson as core.Map, + ); + checkRisk(od); + }); + }); + unittest.group('obj-schema-RunDetails', () { unittest.test('to-json--from-json', () async { final o = buildRunDetails(); diff --git a/generated/googleapis/test/datamigration/v1_test.dart b/generated/googleapis/test/datamigration/v1_test.dart index 6a2b69d13..7e0436eca 100644 --- a/generated/googleapis/test/datamigration/v1_test.dart +++ b/generated/googleapis/test/datamigration/v1_test.dart @@ -1637,6 +1637,25 @@ void checkGenerateTcpProxyScriptRequest(api.GenerateTcpProxyScriptRequest o) { buildCounterGenerateTcpProxyScriptRequest--; } +core.int buildCounterHeterogeneousMetadata = 0; +api.HeterogeneousMetadata buildHeterogeneousMetadata() { + final o = api.HeterogeneousMetadata(); + buildCounterHeterogeneousMetadata++; + if (buildCounterHeterogeneousMetadata < 3) { + o.unsupportedEventsCount = 'foo'; + } + buildCounterHeterogeneousMetadata--; + return o; +} + +void checkHeterogeneousMetadata(api.HeterogeneousMetadata o) { + buildCounterHeterogeneousMetadata++; + if (buildCounterHeterogeneousMetadata < 3) { + unittest.expect(o.unsupportedEventsCount!, unittest.equals('foo')); + } + buildCounterHeterogeneousMetadata--; +} + core.List buildUnnamed27() => [ buildRulesFile(), buildRulesFile(), @@ -2512,6 +2531,7 @@ api.MigrationJobObject buildMigrationJobObject() { if (buildCounterMigrationJobObject < 3) { o.createTime = 'foo'; o.error = buildStatus(); + o.heterogeneousMetadata = buildHeterogeneousMetadata(); o.name = 'foo'; o.phase = 'foo'; o.sourceObject = buildSourceObjectIdentifier(); @@ -2527,6 +2547,7 @@ void checkMigrationJobObject(api.MigrationJobObject o) { if (buildCounterMigrationJobObject < 3) { unittest.expect(o.createTime!, unittest.equals('foo')); checkStatus(o.error!); + checkHeterogeneousMetadata(o.heterogeneousMetadata!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.phase!, unittest.equals('foo')); checkSourceObjectIdentifier(o.sourceObject!); @@ -3975,7 +3996,9 @@ api.SqlServerConnectionProfile buildSqlServerConnectionProfile() { if (buildCounterSqlServerConnectionProfile < 3) { o.backups = buildSqlServerBackups(); o.cloudSqlId = 'foo'; + o.cloudSqlProjectId = 'foo'; o.database = 'foo'; + o.dbmPort = 42; o.forwardSshConnectivity = buildForwardSshTunnelConnectivity(); o.host = 'foo'; o.password = 'foo'; @@ -3997,7 +4020,9 @@ void checkSqlServerConnectionProfile(api.SqlServerConnectionProfile o) { if (buildCounterSqlServerConnectionProfile < 3) { checkSqlServerBackups(o.backups!); unittest.expect(o.cloudSqlId!, unittest.equals('foo')); + unittest.expect(o.cloudSqlProjectId!, unittest.equals('foo')); unittest.expect(o.database!, unittest.equals('foo')); + unittest.expect(o.dbmPort!, unittest.equals(42)); checkForwardSshTunnelConnectivity(o.forwardSshConnectivity!); unittest.expect(o.host!, unittest.equals('foo')); unittest.expect(o.password!, unittest.equals('foo')); @@ -4014,6 +4039,27 @@ void checkSqlServerConnectionProfile(api.SqlServerConnectionProfile o) { buildCounterSqlServerConnectionProfile--; } +core.int buildCounterSqlServerDagConfig = 0; +api.SqlServerDagConfig buildSqlServerDagConfig() { + final o = api.SqlServerDagConfig(); + buildCounterSqlServerDagConfig++; + if (buildCounterSqlServerDagConfig < 3) { + o.linkedServer = 'foo'; + o.sourceAg = 'foo'; + } + buildCounterSqlServerDagConfig--; + return o; +} + +void checkSqlServerDagConfig(api.SqlServerDagConfig o) { + buildCounterSqlServerDagConfig++; + if (buildCounterSqlServerDagConfig < 3) { + unittest.expect(o.linkedServer!, unittest.equals('foo')); + unittest.expect(o.sourceAg!, unittest.equals('foo')); + } + buildCounterSqlServerDagConfig--; +} + core.int buildCounterSqlServerDatabaseBackup = 0; api.SqlServerDatabaseBackup buildSqlServerDatabaseBackup() { final o = api.SqlServerDatabaseBackup(); @@ -4076,6 +4122,7 @@ buildSqlServerHomogeneousMigrationJobConfig() { buildCounterSqlServerHomogeneousMigrationJobConfig++; if (buildCounterSqlServerHomogeneousMigrationJobConfig < 3) { o.backupFilePattern = 'foo'; + o.dagConfig = buildSqlServerDagConfig(); o.databaseBackups = buildUnnamed69(); o.promoteWhenReady = true; o.useDiffBackup = true; @@ -4090,6 +4137,7 @@ void checkSqlServerHomogeneousMigrationJobConfig( buildCounterSqlServerHomogeneousMigrationJobConfig++; if (buildCounterSqlServerHomogeneousMigrationJobConfig < 3) { unittest.expect(o.backupFilePattern!, unittest.equals('foo')); + checkSqlServerDagConfig(o.dagConfig!); checkUnnamed69(o.databaseBackups!); unittest.expect(o.promoteWhenReady!, unittest.isTrue); unittest.expect(o.useDiffBackup!, unittest.isTrue); @@ -5519,6 +5567,17 @@ void main() { }); }); + unittest.group('obj-schema-HeterogeneousMetadata', () { + unittest.test('to-json--from-json', () async { + final o = buildHeterogeneousMetadata(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.HeterogeneousMetadata.fromJson( + oJson as core.Map, + ); + checkHeterogeneousMetadata(od); + }); + }); + unittest.group('obj-schema-ImportMappingRulesRequest', () { unittest.test('to-json--from-json', () async { final o = buildImportMappingRulesRequest(); @@ -6300,6 +6359,17 @@ void main() { }); }); + unittest.group('obj-schema-SqlServerDagConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildSqlServerDagConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.SqlServerDagConfig.fromJson( + oJson as core.Map, + ); + checkSqlServerDagConfig(od); + }); + }); + unittest.group('obj-schema-SqlServerDatabaseBackup', () { unittest.test('to-json--from-json', () async { final o = buildSqlServerDatabaseBackup(); diff --git a/generated/googleapis/test/dataplex/v1_test.dart b/generated/googleapis/test/dataplex/v1_test.dart index d95e0235f..11461325b 100644 --- a/generated/googleapis/test/dataplex/v1_test.dart +++ b/generated/googleapis/test/dataplex/v1_test.dart @@ -12227,68 +12227,6 @@ void main() { }); unittest.group('resource-ProjectsLocationsDataProductsResource', () { - unittest.test('method--getIamPolicy', () async { - final mock = HttpServerMock(); - final res = api.CloudDataplexApi(mock).projects.locations.dataProducts; - final arg_resource = 'foo'; - final arg_options_requestedPolicyVersion = 42; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - core.int.parse(queryMap['options.requestedPolicyVersion']!.first), - unittest.equals(arg_options_requestedPolicyVersion), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleIamV1Policy()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.getIamPolicy( - arg_resource, - options_requestedPolicyVersion: arg_options_requestedPolicyVersion, - $fields: arg_$fields, - ); - checkGoogleIamV1Policy(response as api.GoogleIamV1Policy); - }); - unittest.test('method--setIamPolicy', () async { final mock = HttpServerMock(); final res = api.CloudDataplexApi(mock).projects.locations.dataProducts; @@ -12421,69 +12359,6 @@ void main() { }); unittest.group('resource-ProjectsLocationsDataProductsDataAssetsResource', () { - unittest.test('method--getIamPolicy', () async { - final mock = HttpServerMock(); - final res = - api.CloudDataplexApi(mock).projects.locations.dataProducts.dataAssets; - final arg_resource = 'foo'; - final arg_options_requestedPolicyVersion = 42; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - core.int.parse(queryMap['options.requestedPolicyVersion']!.first), - unittest.equals(arg_options_requestedPolicyVersion), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleIamV1Policy()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.getIamPolicy( - arg_resource, - options_requestedPolicyVersion: arg_options_requestedPolicyVersion, - $fields: arg_$fields, - ); - checkGoogleIamV1Policy(response as api.GoogleIamV1Policy); - }); - unittest.test('method--setIamPolicy', () async { final mock = HttpServerMock(); final res = diff --git a/generated/googleapis/test/dataproc/v1_test.dart b/generated/googleapis/test/dataproc/v1_test.dart index 87be888e7..9106da457 100644 --- a/generated/googleapis/test/dataproc/v1_test.dart +++ b/generated/googleapis/test/dataproc/v1_test.dart @@ -385,6 +385,7 @@ api.AnalyzeBatchRequest buildAnalyzeBatchRequest() { buildCounterAnalyzeBatchRequest++; if (buildCounterAnalyzeBatchRequest < 3) { o.requestId = 'foo'; + o.requestorId = 'foo'; } buildCounterAnalyzeBatchRequest--; return o; @@ -394,6 +395,7 @@ void checkAnalyzeBatchRequest(api.AnalyzeBatchRequest o) { buildCounterAnalyzeBatchRequest++; if (buildCounterAnalyzeBatchRequest < 3) { unittest.expect(o.requestId!, unittest.equals('foo')); + unittest.expect(o.requestorId!, unittest.equals('foo')); } buildCounterAnalyzeBatchRequest--; } diff --git a/generated/googleapis/test/datastream/v1_test.dart b/generated/googleapis/test/datastream/v1_test.dart index a4c7125e6..36bd0f367 100644 --- a/generated/googleapis/test/datastream/v1_test.dart +++ b/generated/googleapis/test/datastream/v1_test.dart @@ -1121,6 +1121,25 @@ void checkMerge(api.Merge o) { buildCounterMerge--; } +core.int buildCounterMongodbChangeStreamPosition = 0; +api.MongodbChangeStreamPosition buildMongodbChangeStreamPosition() { + final o = api.MongodbChangeStreamPosition(); + buildCounterMongodbChangeStreamPosition++; + if (buildCounterMongodbChangeStreamPosition < 3) { + o.startTime = 'foo'; + } + buildCounterMongodbChangeStreamPosition--; + return o; +} + +void checkMongodbChangeStreamPosition(api.MongodbChangeStreamPosition o) { + buildCounterMongodbChangeStreamPosition++; + if (buildCounterMongodbChangeStreamPosition < 3) { + unittest.expect(o.startTime!, unittest.equals('foo')); + } + buildCounterMongodbChangeStreamPosition--; +} + core.List buildUnnamed17() => [ buildMongodbDatabase(), buildMongodbDatabase(), @@ -2764,6 +2783,7 @@ api.SpecificStartPosition buildSpecificStartPosition() { final o = api.SpecificStartPosition(); buildCounterSpecificStartPosition++; if (buildCounterSpecificStartPosition < 3) { + o.mongodbChangeStreamPosition = buildMongodbChangeStreamPosition(); o.mysqlGtidPosition = buildMysqlGtidPosition(); o.mysqlLogPosition = buildMysqlLogPosition(); o.oracleScnPosition = buildOracleScnPosition(); @@ -2776,6 +2796,7 @@ api.SpecificStartPosition buildSpecificStartPosition() { void checkSpecificStartPosition(api.SpecificStartPosition o) { buildCounterSpecificStartPosition++; if (buildCounterSpecificStartPosition < 3) { + checkMongodbChangeStreamPosition(o.mongodbChangeStreamPosition!); checkMysqlGtidPosition(o.mysqlGtidPosition!); checkMysqlLogPosition(o.mysqlLogPosition!); checkOracleScnPosition(o.oracleScnPosition!); @@ -3881,6 +3902,17 @@ void main() { }); }); + unittest.group('obj-schema-MongodbChangeStreamPosition', () { + unittest.test('to-json--from-json', () async { + final o = buildMongodbChangeStreamPosition(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.MongodbChangeStreamPosition.fromJson( + oJson as core.Map, + ); + checkMongodbChangeStreamPosition(od); + }); + }); + unittest.group('obj-schema-MongodbCluster', () { unittest.test('to-json--from-json', () async { final o = buildMongodbCluster(); diff --git a/generated/googleapis/test/deploymentmanager/v2_test.dart b/generated/googleapis/test/deploymentmanager/v2_test.dart index a48c99682..9be554a5f 100644 --- a/generated/googleapis/test/deploymentmanager/v2_test.dart +++ b/generated/googleapis/test/deploymentmanager/v2_test.dart @@ -1418,6 +1418,14 @@ void checkUnnamed30(core.List o) { unittest.expect(o[1], unittest.equals('foo')); } +core.Map buildUnnamed31() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed31(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + core.int buildCounterSetAutoscalerLinkOperationMetadata = 0; api.SetAutoscalerLinkOperationMetadata buildSetAutoscalerLinkOperationMetadata() { @@ -1425,6 +1433,7 @@ buildSetAutoscalerLinkOperationMetadata() { buildCounterSetAutoscalerLinkOperationMetadata++; if (buildCounterSetAutoscalerLinkOperationMetadata < 3) { o.zonalIgmIds = buildUnnamed30(); + o.zoneToIgmIds = buildUnnamed31(); } buildCounterSetAutoscalerLinkOperationMetadata--; return o; @@ -1436,6 +1445,7 @@ void checkSetAutoscalerLinkOperationMetadata( buildCounterSetAutoscalerLinkOperationMetadata++; if (buildCounterSetAutoscalerLinkOperationMetadata < 3) { checkUnnamed30(o.zonalIgmIds!); + checkUnnamed31(o.zoneToIgmIds!); } buildCounterSetAutoscalerLinkOperationMetadata--; } @@ -1444,14 +1454,14 @@ core.Map< core.String, api.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo > -buildUnnamed31() => { +buildUnnamed32() => { 'x': buildSetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo(), 'y': buildSetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo(), }; -void checkUnnamed31( +void checkUnnamed32( core.Map< core.String, api.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo @@ -1474,7 +1484,7 @@ buildSetCommonInstanceMetadataOperationMetadata() { buildCounterSetCommonInstanceMetadataOperationMetadata++; if (buildCounterSetCommonInstanceMetadataOperationMetadata < 3) { o.clientOperationId = 'foo'; - o.perLocationOperations = buildUnnamed31(); + o.perLocationOperations = buildUnnamed32(); } buildCounterSetCommonInstanceMetadataOperationMetadata--; return o; @@ -1486,7 +1496,7 @@ void checkSetCommonInstanceMetadataOperationMetadata( buildCounterSetCommonInstanceMetadataOperationMetadata++; if (buildCounterSetCommonInstanceMetadataOperationMetadata < 3) { unittest.expect(o.clientOperationId!, unittest.equals('foo')); - checkUnnamed31(o.perLocationOperations!); + checkUnnamed32(o.perLocationOperations!); } buildCounterSetCommonInstanceMetadataOperationMetadata--; } @@ -1520,7 +1530,7 @@ void checkSetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo( buildCounterSetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo--; } -core.Map buildUnnamed32() => { +core.Map buildUnnamed33() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1533,7 +1543,7 @@ core.Map buildUnnamed32() => { }, }; -void checkUnnamed32(core.Map o) { +void checkUnnamed33(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o['x']!) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -1547,15 +1557,15 @@ void checkUnnamed32(core.Map o) { unittest.expect(casted2['string'], unittest.equals('foo')); } -core.List> buildUnnamed33() => [ - buildUnnamed32(), - buildUnnamed32(), +core.List> buildUnnamed34() => [ + buildUnnamed33(), + buildUnnamed33(), ]; -void checkUnnamed33(core.List> o) { +void checkUnnamed34(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed32(o[0]); - checkUnnamed32(o[1]); + checkUnnamed33(o[0]); + checkUnnamed33(o[1]); } core.int buildCounterStatus = 0; @@ -1564,7 +1574,7 @@ api.Status buildStatus() { buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed33(); + o.details = buildUnnamed34(); o.message = 'foo'; } buildCounterStatus--; @@ -1575,18 +1585,18 @@ void checkStatus(api.Status o) { buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed33(o.details!); + checkUnnamed34(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStatus--; } -core.List buildUnnamed34() => [ +core.List buildUnnamed35() => [ buildImportFile(), buildImportFile(), ]; -void checkUnnamed34(core.List o) { +void checkUnnamed35(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkImportFile(o[0]); checkImportFile(o[1]); @@ -1598,7 +1608,7 @@ api.TargetConfiguration buildTargetConfiguration() { buildCounterTargetConfiguration++; if (buildCounterTargetConfiguration < 3) { o.config = buildConfigFile(); - o.imports = buildUnnamed34(); + o.imports = buildUnnamed35(); } buildCounterTargetConfiguration--; return o; @@ -1608,14 +1618,14 @@ void checkTargetConfiguration(api.TargetConfiguration o) { buildCounterTargetConfiguration++; if (buildCounterTargetConfiguration < 3) { checkConfigFile(o.config!); - checkUnnamed34(o.imports!); + checkUnnamed35(o.imports!); } buildCounterTargetConfiguration--; } -core.List buildUnnamed35() => ['foo', 'foo']; +core.List buildUnnamed36() => ['foo', 'foo']; -void checkUnnamed35(core.List o) { +void checkUnnamed36(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1626,7 +1636,7 @@ api.TestPermissionsRequest buildTestPermissionsRequest() { final o = api.TestPermissionsRequest(); buildCounterTestPermissionsRequest++; if (buildCounterTestPermissionsRequest < 3) { - o.permissions = buildUnnamed35(); + o.permissions = buildUnnamed36(); } buildCounterTestPermissionsRequest--; return o; @@ -1635,14 +1645,14 @@ api.TestPermissionsRequest buildTestPermissionsRequest() { void checkTestPermissionsRequest(api.TestPermissionsRequest o) { buildCounterTestPermissionsRequest++; if (buildCounterTestPermissionsRequest < 3) { - checkUnnamed35(o.permissions!); + checkUnnamed36(o.permissions!); } buildCounterTestPermissionsRequest--; } -core.List buildUnnamed36() => ['foo', 'foo']; +core.List buildUnnamed37() => ['foo', 'foo']; -void checkUnnamed36(core.List o) { +void checkUnnamed37(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1653,7 +1663,7 @@ api.TestPermissionsResponse buildTestPermissionsResponse() { final o = api.TestPermissionsResponse(); buildCounterTestPermissionsResponse++; if (buildCounterTestPermissionsResponse < 3) { - o.permissions = buildUnnamed36(); + o.permissions = buildUnnamed37(); } buildCounterTestPermissionsResponse--; return o; @@ -1662,7 +1672,7 @@ api.TestPermissionsResponse buildTestPermissionsResponse() { void checkTestPermissionsResponse(api.TestPermissionsResponse o) { buildCounterTestPermissionsResponse++; if (buildCounterTestPermissionsResponse < 3) { - checkUnnamed36(o.permissions!); + checkUnnamed37(o.permissions!); } buildCounterTestPermissionsResponse--; } @@ -1694,9 +1704,9 @@ void checkType(api.Type o) { buildCounterType--; } -core.List buildUnnamed37() => [buildType(), buildType()]; +core.List buildUnnamed38() => [buildType(), buildType()]; -void checkUnnamed37(core.List o) { +void checkUnnamed38(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -1708,7 +1718,7 @@ api.TypesListResponse buildTypesListResponse() { buildCounterTypesListResponse++; if (buildCounterTypesListResponse < 3) { o.nextPageToken = 'foo'; - o.types = buildUnnamed37(); + o.types = buildUnnamed38(); } buildCounterTypesListResponse--; return o; @@ -1718,7 +1728,7 @@ void checkTypesListResponse(api.TypesListResponse o) { buildCounterTypesListResponse++; if (buildCounterTypesListResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed37(o.types!); + checkUnnamed38(o.types!); } buildCounterTypesListResponse--; } diff --git a/generated/googleapis/test/dfareporting/v4_test.dart b/generated/googleapis/test/dfareporting/v4_test.dart index 4a156d874..34e93edad 100644 --- a/generated/googleapis/test/dfareporting/v4_test.dart +++ b/generated/googleapis/test/dfareporting/v4_test.dart @@ -639,6 +639,7 @@ api.Advertiser buildAdvertiser() { o.clickThroughUrlSuffix = 'foo'; o.defaultClickThroughEventTagId = 'foo'; o.defaultEmail = 'foo'; + o.euPoliticalAdsDeclaration = 'foo'; o.floodlightConfigurationId = 'foo'; o.floodlightConfigurationIdDimensionValue = buildDimensionValue(); o.id = 'foo'; @@ -663,6 +664,7 @@ void checkAdvertiser(api.Advertiser o) { unittest.expect(o.clickThroughUrlSuffix!, unittest.equals('foo')); unittest.expect(o.defaultClickThroughEventTagId!, unittest.equals('foo')); unittest.expect(o.defaultEmail!, unittest.equals('foo')); + unittest.expect(o.euPoliticalAdsDeclaration!, unittest.equals('foo')); unittest.expect(o.floodlightConfigurationId!, unittest.equals('foo')); checkDimensionValue(o.floodlightConfigurationIdDimensionValue!); unittest.expect(o.id!, unittest.equals('foo')); @@ -1261,6 +1263,7 @@ api.Campaign buildCampaign() { buildDefaultClickThroughEventTagProperties(); o.defaultLandingPageId = 'foo'; o.endDate = core.DateTime.parse('2002-02-27T14:01:02Z'); + o.euPoliticalAdsDeclaration = 'foo'; o.eventTagOverrides = buildUnnamed26(); o.externalId = 'foo'; o.id = 'foo'; @@ -1303,6 +1306,7 @@ void checkCampaign(api.Campaign o) { o.endDate!, unittest.equals(core.DateTime.parse('2002-02-27T00:00:00')), ); + unittest.expect(o.euPoliticalAdsDeclaration!, unittest.equals('foo')); checkUnnamed26(o.eventTagOverrides!); unittest.expect(o.externalId!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); @@ -6801,6 +6805,7 @@ api.Placement buildPlacement() { o.additionalSizes = buildUnnamed147(); o.advertiserId = 'foo'; o.advertiserIdDimensionValue = buildDimensionValue(); + o.allowOnYoutube = true; o.campaignId = 'foo'; o.campaignIdDimensionValue = buildDimensionValue(); o.comment = 'foo'; @@ -6840,6 +6845,7 @@ api.Placement buildPlacement() { o.videoSettings = buildVideoSettings(); o.vpaidAdapterChoice = 'foo'; o.wrappingOptOut = true; + o.youtubeSettings = buildYoutubeSettings(); } buildCounterPlacement--; return o; @@ -6855,6 +6861,7 @@ void checkPlacement(api.Placement o) { checkUnnamed147(o.additionalSizes!); unittest.expect(o.advertiserId!, unittest.equals('foo')); checkDimensionValue(o.advertiserIdDimensionValue!); + unittest.expect(o.allowOnYoutube!, unittest.isTrue); unittest.expect(o.campaignId!, unittest.equals('foo')); checkDimensionValue(o.campaignIdDimensionValue!); unittest.expect(o.comment!, unittest.equals('foo')); @@ -6894,6 +6901,7 @@ void checkPlacement(api.Placement o) { checkVideoSettings(o.videoSettings!); unittest.expect(o.vpaidAdapterChoice!, unittest.equals('foo')); unittest.expect(o.wrappingOptOut!, unittest.isTrue); + checkYoutubeSettings(o.youtubeSettings!); } buildCounterPlacement--; } @@ -10280,6 +10288,35 @@ void checkUnnamed233(core.List o) { unittest.expect(o[1], unittest.equals('foo')); } +core.int buildCounterYoutubeSettings = 0; +api.YoutubeSettings buildYoutubeSettings() { + final o = api.YoutubeSettings(); + buildCounterYoutubeSettings++; + if (buildCounterYoutubeSettings < 3) { + o.businessLogoCreativeIds = buildUnnamed229(); + o.businessName = 'foo'; + o.callToActions = buildUnnamed230(); + o.descriptions = buildUnnamed231(); + o.headlines = buildUnnamed232(); + o.longHeadlines = buildUnnamed233(); + } + buildCounterYoutubeSettings--; + return o; +} + +void checkYoutubeSettings(api.YoutubeSettings o) { + buildCounterYoutubeSettings++; + if (buildCounterYoutubeSettings < 3) { + checkUnnamed229(o.businessLogoCreativeIds!); + unittest.expect(o.businessName!, unittest.equals('foo')); + checkUnnamed230(o.callToActions!); + checkUnnamed231(o.descriptions!); + checkUnnamed232(o.headlines!); + checkUnnamed233(o.longHeadlines!); + } + buildCounterYoutubeSettings--; +} + core.List buildUnnamed234() => ['foo', 'foo']; void checkUnnamed234(core.List o) { @@ -10984,6 +11021,46 @@ void checkUnnamed321(core.List o) { unittest.expect(o[1], unittest.equals('foo')); } +core.List buildUnnamed322() => ['foo', 'foo']; + +void checkUnnamed322(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed323() => ['foo', 'foo']; + +void checkUnnamed323(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed324() => ['foo', 'foo']; + +void checkUnnamed324(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed325() => ['foo', 'foo']; + +void checkUnnamed325(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed326() => ['foo', 'foo']; + +void checkUnnamed326(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + void main() { unittest.group('obj-schema-Account', () { unittest.test('to-json--from-json', () async { @@ -13989,6 +14066,17 @@ void main() { }); }); + unittest.group('obj-schema-YoutubeSettings', () { + unittest.test('to-json--from-json', () async { + final o = buildYoutubeSettings(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.YoutubeSettings.fromJson( + oJson as core.Map, + ); + checkYoutubeSettings(od); + }); + }); + unittest.group('resource-AccountActiveAdSummariesResource', () { unittest.test('method--get', () async { final mock = HttpServerMock(); @@ -14457,7 +14545,7 @@ void main() { final res = api.DfareportingApi(mock).accountUserProfiles; final arg_profileId = 'foo'; final arg_active = true; - final arg_ids = buildUnnamed229(); + final arg_ids = buildUnnamed234(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -14777,7 +14865,7 @@ void main() { final res = api.DfareportingApi(mock).accounts; final arg_profileId = 'foo'; final arg_active = true; - final arg_ids = buildUnnamed230(); + final arg_ids = buildUnnamed235(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -15151,26 +15239,26 @@ void main() { final arg_active = true; final arg_advertiserId = 'foo'; final arg_archived = true; - final arg_audienceSegmentIds = buildUnnamed231(); - final arg_campaignIds = buildUnnamed232(); + final arg_audienceSegmentIds = buildUnnamed236(); + final arg_campaignIds = buildUnnamed237(); final arg_compatibility = 'foo'; - final arg_creativeIds = buildUnnamed233(); - final arg_creativeOptimizationConfigurationIds = buildUnnamed234(); + final arg_creativeIds = buildUnnamed238(); + final arg_creativeOptimizationConfigurationIds = buildUnnamed239(); final arg_dynamicClickTracker = true; - final arg_ids = buildUnnamed235(); - final arg_landingPageIds = buildUnnamed236(); + final arg_ids = buildUnnamed240(); + final arg_landingPageIds = buildUnnamed241(); final arg_maxResults = 42; final arg_overriddenEventTagId = 'foo'; final arg_pageToken = 'foo'; - final arg_placementIds = buildUnnamed237(); - final arg_remarketingListIds = buildUnnamed238(); + final arg_placementIds = buildUnnamed242(); + final arg_remarketingListIds = buildUnnamed243(); final arg_searchString = 'foo'; - final arg_sizeIds = buildUnnamed239(); + final arg_sizeIds = buildUnnamed244(); final arg_sortField = 'foo'; final arg_sortOrder = 'foo'; final arg_sslCompliant = true; final arg_sslRequired = true; - final arg_type = buildUnnamed240(); + final arg_type = buildUnnamed245(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -15669,7 +15757,7 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).advertiserGroups; final arg_profileId = 'foo'; - final arg_ids = buildUnnamed241(); + final arg_ids = buildUnnamed246(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -16124,10 +16212,10 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).advertiserLandingPages; final arg_profileId = 'foo'; - final arg_advertiserIds = buildUnnamed242(); + final arg_advertiserIds = buildUnnamed247(); final arg_archived = true; - final arg_campaignIds = buildUnnamed243(); - final arg_ids = buildUnnamed244(); + final arg_campaignIds = buildUnnamed248(); + final arg_ids = buildUnnamed249(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -16518,9 +16606,9 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).advertisers; final arg_profileId = 'foo'; - final arg_advertiserGroupIds = buildUnnamed245(); - final arg_floodlightConfigurationIds = buildUnnamed246(); - final arg_ids = buildUnnamed247(); + final arg_advertiserGroupIds = buildUnnamed250(); + final arg_floodlightConfigurationIds = buildUnnamed251(); + final arg_ids = buildUnnamed252(); final arg_includeAdvertisersWithoutGroupsOnly = true; final arg_maxResults = 42; final arg_onlyParent = true; @@ -16993,15 +17081,15 @@ void main() { final res = api.DfareportingApi(mock).billingProfiles; final arg_profileId = 'foo'; final arg_currencyCode = 'foo'; - final arg_ids = buildUnnamed248(); + final arg_ids = buildUnnamed253(); final arg_maxResults = 42; final arg_name = 'foo'; final arg_onlySuggestion = true; final arg_pageToken = 'foo'; final arg_sortField = 'foo'; final arg_sortOrder = 'foo'; - final arg_status = buildUnnamed249(); - final arg_subaccountIds = buildUnnamed250(); + final arg_status = buildUnnamed254(); + final arg_subaccountIds = buildUnnamed255(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -17591,12 +17679,12 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).campaigns; final arg_profileId = 'foo'; - final arg_advertiserGroupIds = buildUnnamed251(); - final arg_advertiserIds = buildUnnamed252(); + final arg_advertiserGroupIds = buildUnnamed256(); + final arg_advertiserIds = buildUnnamed257(); final arg_archived = true; final arg_atLeastOneOptimizationActivity = true; - final arg_excludedIds = buildUnnamed253(); - final arg_ids = buildUnnamed254(); + final arg_excludedIds = buildUnnamed258(); + final arg_ids = buildUnnamed259(); final arg_maxResults = 42; final arg_overriddenEventTagId = 'foo'; final arg_pageToken = 'foo'; @@ -17932,15 +18020,15 @@ void main() { final res = api.DfareportingApi(mock).changeLogs; final arg_profileId = 'foo'; final arg_action = 'foo'; - final arg_ids = buildUnnamed255(); + final arg_ids = buildUnnamed260(); final arg_maxChangeTime = 'foo'; final arg_maxResults = 42; final arg_minChangeTime = 'foo'; - final arg_objectIds = buildUnnamed256(); + final arg_objectIds = buildUnnamed261(); final arg_objectType = 'foo'; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; - final arg_userProfileIds = buildUnnamed257(); + final arg_userProfileIds = buildUnnamed262(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -18051,10 +18139,10 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).cities; final arg_profileId = 'foo'; - final arg_countryDartIds = buildUnnamed258(); - final arg_dartIds = buildUnnamed259(); + final arg_countryDartIds = buildUnnamed263(); + final arg_dartIds = buildUnnamed264(); final arg_namePrefix = 'foo'; - final arg_regionDartIds = buildUnnamed260(); + final arg_regionDartIds = buildUnnamed265(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -18449,7 +18537,7 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).contentCategories; final arg_profileId = 'foo'; - final arg_ids = buildUnnamed261(); + final arg_ids = buildUnnamed266(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -19254,7 +19342,7 @@ void main() { final res = api.DfareportingApi(mock).creativeFieldValues; final arg_profileId = 'foo'; final arg_creativeFieldId = 'foo'; - final arg_ids = buildUnnamed262(); + final arg_ids = buildUnnamed267(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -19687,8 +19775,8 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).creativeFields; final arg_profileId = 'foo'; - final arg_advertiserIds = buildUnnamed263(); - final arg_ids = buildUnnamed264(); + final arg_advertiserIds = buildUnnamed268(); + final arg_ids = buildUnnamed269(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -20061,9 +20149,9 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).creativeGroups; final arg_profileId = 'foo'; - final arg_advertiserIds = buildUnnamed265(); + final arg_advertiserIds = buildUnnamed270(); final arg_groupNumber = 42; - final arg_ids = buildUnnamed266(); + final arg_ids = buildUnnamed271(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -20445,18 +20533,18 @@ void main() { final arg_advertiserId = 'foo'; final arg_archived = true; final arg_campaignId = 'foo'; - final arg_companionCreativeIds = buildUnnamed267(); - final arg_creativeFieldIds = buildUnnamed268(); - final arg_ids = buildUnnamed269(); + final arg_companionCreativeIds = buildUnnamed272(); + final arg_creativeFieldIds = buildUnnamed273(); + final arg_ids = buildUnnamed274(); final arg_maxResults = 42; final arg_pageToken = 'foo'; - final arg_renderingIds = buildUnnamed270(); + final arg_renderingIds = buildUnnamed275(); final arg_searchString = 'foo'; - final arg_sizeIds = buildUnnamed271(); + final arg_sizeIds = buildUnnamed276(); final arg_sortField = 'foo'; final arg_sortOrder = 'foo'; final arg_studioCreativeId = 'foo'; - final arg_types = buildUnnamed272(); + final arg_types = buildUnnamed277(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -20959,7 +21047,7 @@ void main() { final arg_acceptsPublisherPaidPlacements = true; final arg_active = true; final arg_dfpNetworkCode = 'foo'; - final arg_ids = buildUnnamed273(); + final arg_ids = buildUnnamed278(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -21531,7 +21619,7 @@ void main() { final res = api.DfareportingApi(mock).dynamicTargetingKeys; final arg_profileId = 'foo'; final arg_advertiserId = 'foo'; - final arg_names = buildUnnamed274(); + final arg_names = buildUnnamed279(); final arg_objectId = 'foo'; final arg_objectType = 'foo'; final arg_$fields = 'foo'; @@ -21812,8 +21900,8 @@ void main() { final arg_campaignId = 'foo'; final arg_definitionsOnly = true; final arg_enabled = true; - final arg_eventTagTypes = buildUnnamed275(); - final arg_ids = buildUnnamed276(); + final arg_eventTagTypes = buildUnnamed280(); + final arg_ids = buildUnnamed281(); final arg_searchString = 'foo'; final arg_sortField = 'foo'; final arg_sortOrder = 'foo'; @@ -22505,12 +22593,12 @@ void main() { final res = api.DfareportingApi(mock).floodlightActivities; final arg_profileId = 'foo'; final arg_advertiserId = 'foo'; - final arg_floodlightActivityGroupIds = buildUnnamed277(); + final arg_floodlightActivityGroupIds = buildUnnamed282(); final arg_floodlightActivityGroupName = 'foo'; final arg_floodlightActivityGroupTagString = 'foo'; final arg_floodlightActivityGroupType = 'foo'; final arg_floodlightConfigurationId = 'foo'; - final arg_ids = buildUnnamed278(); + final arg_ids = buildUnnamed283(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -22918,7 +23006,7 @@ void main() { final arg_profileId = 'foo'; final arg_advertiserId = 'foo'; final arg_floodlightConfigurationId = 'foo'; - final arg_ids = buildUnnamed279(); + final arg_ids = buildUnnamed284(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -23233,7 +23321,7 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).floodlightConfigurations; final arg_profileId = 'foo'; - final arg_ids = buildUnnamed280(); + final arg_ids = buildUnnamed285(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -23508,12 +23596,12 @@ void main() { final res = api.DfareportingApi(mock).inventoryItems; final arg_profileId = 'foo'; final arg_projectId = 'foo'; - final arg_ids = buildUnnamed281(); + final arg_ids = buildUnnamed286(); final arg_inPlan = true; final arg_maxResults = 42; - final arg_orderId = buildUnnamed282(); + final arg_orderId = buildUnnamed287(); final arg_pageToken = 'foo'; - final arg_siteId = buildUnnamed283(); + final arg_siteId = buildUnnamed288(); final arg_sortField = 'foo'; final arg_sortOrder = 'foo'; final arg_type = 'foo'; @@ -23799,8 +23887,8 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).mobileApps; final arg_profileId = 'foo'; - final arg_directories = buildUnnamed284(); - final arg_ids = buildUnnamed285(); + final arg_directories = buildUnnamed289(); + final arg_ids = buildUnnamed290(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -24332,11 +24420,11 @@ void main() { final res = api.DfareportingApi(mock).orders; final arg_profileId = 'foo'; final arg_projectId = 'foo'; - final arg_ids = buildUnnamed286(); + final arg_ids = buildUnnamed291(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; - final arg_siteId = buildUnnamed287(); + final arg_siteId = buildUnnamed292(); final arg_sortField = 'foo'; final arg_sortOrder = 'foo'; final arg_$fields = 'foo'; @@ -24563,12 +24651,12 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).placementGroups; final arg_profileId = 'foo'; - final arg_activeStatus = buildUnnamed288(); - final arg_advertiserIds = buildUnnamed289(); - final arg_campaignIds = buildUnnamed290(); - final arg_contentCategoryIds = buildUnnamed291(); - final arg_directorySiteIds = buildUnnamed292(); - final arg_ids = buildUnnamed293(); + final arg_activeStatus = buildUnnamed293(); + final arg_advertiserIds = buildUnnamed294(); + final arg_campaignIds = buildUnnamed295(); + final arg_contentCategoryIds = buildUnnamed296(); + final arg_directorySiteIds = buildUnnamed297(); + final arg_ids = buildUnnamed298(); final arg_maxEndDate = 'foo'; final arg_maxResults = 42; final arg_maxStartDate = 'foo'; @@ -24576,10 +24664,10 @@ void main() { final arg_minStartDate = 'foo'; final arg_pageToken = 'foo'; final arg_placementGroupType = 'foo'; - final arg_placementStrategyIds = buildUnnamed294(); - final arg_pricingTypes = buildUnnamed295(); + final arg_placementStrategyIds = buildUnnamed299(); + final arg_pricingTypes = buildUnnamed300(); final arg_searchString = 'foo'; - final arg_siteIds = buildUnnamed296(); + final arg_siteIds = buildUnnamed301(); final arg_sortField = 'foo'; final arg_sortOrder = 'foo'; final arg_$fields = 'foo'; @@ -25064,7 +25152,7 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).placementStrategies; final arg_profileId = 'foo'; - final arg_ids = buildUnnamed297(); + final arg_ids = buildUnnamed302(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -25304,8 +25392,8 @@ void main() { final res = api.DfareportingApi(mock).placements; final arg_profileId = 'foo'; final arg_campaignId = 'foo'; - final arg_placementIds = buildUnnamed298(); - final arg_tagFormats = buildUnnamed299(); + final arg_placementIds = buildUnnamed303(); + final arg_tagFormats = buildUnnamed304(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -25517,14 +25605,14 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).placements; final arg_profileId = 'foo'; - final arg_activeStatus = buildUnnamed300(); - final arg_advertiserIds = buildUnnamed301(); - final arg_campaignIds = buildUnnamed302(); - final arg_compatibilities = buildUnnamed303(); - final arg_contentCategoryIds = buildUnnamed304(); - final arg_directorySiteIds = buildUnnamed305(); - final arg_groupIds = buildUnnamed306(); - final arg_ids = buildUnnamed307(); + final arg_activeStatus = buildUnnamed305(); + final arg_advertiserIds = buildUnnamed306(); + final arg_campaignIds = buildUnnamed307(); + final arg_compatibilities = buildUnnamed308(); + final arg_contentCategoryIds = buildUnnamed309(); + final arg_directorySiteIds = buildUnnamed310(); + final arg_groupIds = buildUnnamed311(); + final arg_ids = buildUnnamed312(); final arg_maxEndDate = 'foo'; final arg_maxResults = 42; final arg_maxStartDate = 'foo'; @@ -25532,11 +25620,11 @@ void main() { final arg_minStartDate = 'foo'; final arg_pageToken = 'foo'; final arg_paymentSource = 'foo'; - final arg_placementStrategyIds = buildUnnamed308(); - final arg_pricingTypes = buildUnnamed309(); + final arg_placementStrategyIds = buildUnnamed313(); + final arg_pricingTypes = buildUnnamed314(); final arg_searchString = 'foo'; - final arg_siteIds = buildUnnamed310(); - final arg_sizeIds = buildUnnamed311(); + final arg_siteIds = buildUnnamed315(); + final arg_sizeIds = buildUnnamed316(); final arg_sortField = 'foo'; final arg_sortOrder = 'foo'; final arg_$fields = 'foo'; @@ -26148,8 +26236,8 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).projects; final arg_profileId = 'foo'; - final arg_advertiserIds = buildUnnamed312(); - final arg_ids = buildUnnamed313(); + final arg_advertiserIds = buildUnnamed317(); + final arg_ids = buildUnnamed318(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -27906,9 +27994,9 @@ void main() { final arg_acceptsPublisherPaidPlacements = true; final arg_adWordsSite = true; final arg_approved = true; - final arg_campaignIds = buildUnnamed314(); - final arg_directorySiteIds = buildUnnamed315(); - final arg_ids = buildUnnamed316(); + final arg_campaignIds = buildUnnamed319(); + final arg_directorySiteIds = buildUnnamed320(); + final arg_ids = buildUnnamed321(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -28323,7 +28411,7 @@ void main() { final arg_profileId = 'foo'; final arg_height = 42; final arg_iabStandard = true; - final arg_ids = buildUnnamed317(); + final arg_ids = buildUnnamed322(); final arg_width = 42; final arg_$fields = 'foo'; mock.register( @@ -28536,7 +28624,7 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).subaccounts; final arg_profileId = 'foo'; - final arg_ids = buildUnnamed318(); + final arg_ids = buildUnnamed323(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -29072,7 +29160,7 @@ void main() { final res = api.DfareportingApi(mock).targetingTemplates; final arg_profileId = 'foo'; final arg_advertiserId = 'foo'; - final arg_ids = buildUnnamed319(); + final arg_ids = buildUnnamed324(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; @@ -29771,7 +29859,7 @@ void main() { final mock = HttpServerMock(); final res = api.DfareportingApi(mock).userRolePermissions; final arg_profileId = 'foo'; - final arg_ids = buildUnnamed320(); + final arg_ids = buildUnnamed325(); final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -30031,7 +30119,7 @@ void main() { final res = api.DfareportingApi(mock).userRoles; final arg_profileId = 'foo'; final arg_accountUserRoleOnly = true; - final arg_ids = buildUnnamed321(); + final arg_ids = buildUnnamed326(); final arg_maxResults = 42; final arg_pageToken = 'foo'; final arg_searchString = 'foo'; diff --git a/generated/googleapis/test/dialogflow/v2_test.dart b/generated/googleapis/test/dialogflow/v2_test.dart index d828d5138..1967f02c6 100644 --- a/generated/googleapis/test/dialogflow/v2_test.dart +++ b/generated/googleapis/test/dialogflow/v2_test.dart @@ -241,6 +241,7 @@ buildGoogleCloudDialogflowV2AgentAssistantRecord() { o.dialogflowAssistAnswer = buildGoogleCloudDialogflowV2DialogflowAssistAnswer(); o.faqAnswer = buildGoogleCloudDialogflowV2FaqAnswer(); + o.generatorSuggestion = buildGoogleCloudDialogflowV2GeneratorSuggestion(); } buildCounterGoogleCloudDialogflowV2AgentAssistantRecord--; return o; @@ -256,6 +257,7 @@ void checkGoogleCloudDialogflowV2AgentAssistantRecord( o.dialogflowAssistAnswer!, ); checkGoogleCloudDialogflowV2FaqAnswer(o.faqAnswer!); + checkGoogleCloudDialogflowV2GeneratorSuggestion(o.generatorSuggestion!); } buildCounterGoogleCloudDialogflowV2AgentAssistantRecord--; } diff --git a/generated/googleapis/test/dialogflow/v3_test.dart b/generated/googleapis/test/dialogflow/v3_test.dart index 8f5d2eb81..df5652073 100644 --- a/generated/googleapis/test/dialogflow/v3_test.dart +++ b/generated/googleapis/test/dialogflow/v3_test.dart @@ -33,7 +33,9 @@ api.GoogleCloudDialogflowCxV3Action buildGoogleCloudDialogflowCxV3Action() { if (buildCounterGoogleCloudDialogflowCxV3Action < 3) { o.agentUtterance = buildGoogleCloudDialogflowCxV3AgentUtterance(); o.flowInvocation = buildGoogleCloudDialogflowCxV3FlowInvocation(); + o.flowTransition = buildGoogleCloudDialogflowCxV3FlowTransition(); o.playbookInvocation = buildGoogleCloudDialogflowCxV3PlaybookInvocation(); + o.playbookTransition = buildGoogleCloudDialogflowCxV3PlaybookTransition(); o.toolUse = buildGoogleCloudDialogflowCxV3ToolUse(); o.userUtterance = buildGoogleCloudDialogflowCxV3UserUtterance(); } @@ -48,7 +50,9 @@ void checkGoogleCloudDialogflowCxV3Action( if (buildCounterGoogleCloudDialogflowCxV3Action < 3) { checkGoogleCloudDialogflowCxV3AgentUtterance(o.agentUtterance!); checkGoogleCloudDialogflowCxV3FlowInvocation(o.flowInvocation!); + checkGoogleCloudDialogflowCxV3FlowTransition(o.flowTransition!); checkGoogleCloudDialogflowCxV3PlaybookInvocation(o.playbookInvocation!); + checkGoogleCloudDialogflowCxV3PlaybookTransition(o.playbookTransition!); checkGoogleCloudDialogflowCxV3ToolUse(o.toolUse!); checkGoogleCloudDialogflowCxV3UserUtterance(o.userUtterance!); } @@ -2626,20 +2630,48 @@ void checkUnnamed37(core.List o) { checkGoogleCloudDialogflowCxV3EventHandler(o[1]); } -core.List buildUnnamed38() => ['foo', 'foo']; +core.List buildUnnamed38() => + [ + buildGoogleCloudDialogflowCxV3ParameterDefinition(), + buildGoogleCloudDialogflowCxV3ParameterDefinition(), + ]; + +void checkUnnamed38( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudDialogflowCxV3ParameterDefinition(o[0]); + checkGoogleCloudDialogflowCxV3ParameterDefinition(o[1]); +} + +core.List buildUnnamed39() => + [ + buildGoogleCloudDialogflowCxV3ParameterDefinition(), + buildGoogleCloudDialogflowCxV3ParameterDefinition(), + ]; -void checkUnnamed38(core.List o) { +void checkUnnamed39( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudDialogflowCxV3ParameterDefinition(o[0]); + checkGoogleCloudDialogflowCxV3ParameterDefinition(o[1]); +} + +core.List buildUnnamed40() => ['foo', 'foo']; + +void checkUnnamed40(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed39() => [ +core.List buildUnnamed41() => [ buildGoogleCloudDialogflowCxV3TransitionRoute(), buildGoogleCloudDialogflowCxV3TransitionRoute(), ]; -void checkUnnamed39(core.List o) { +void checkUnnamed41(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TransitionRoute(o[0]); checkGoogleCloudDialogflowCxV3TransitionRoute(o[1]); @@ -2654,6 +2686,7 @@ api.GoogleCloudDialogflowCxV3Flow buildGoogleCloudDialogflowCxV3Flow() { o.description = 'foo'; o.displayName = 'foo'; o.eventHandlers = buildUnnamed37(); + o.inputParameterDefinitions = buildUnnamed38(); o.knowledgeConnectorSettings = buildGoogleCloudDialogflowCxV3KnowledgeConnectorSettings(); o.locked = true; @@ -2661,8 +2694,9 @@ api.GoogleCloudDialogflowCxV3Flow buildGoogleCloudDialogflowCxV3Flow() { buildGoogleCloudDialogflowCxV3FlowMultiLanguageSettings(); o.name = 'foo'; o.nluSettings = buildGoogleCloudDialogflowCxV3NluSettings(); - o.transitionRouteGroups = buildUnnamed38(); - o.transitionRoutes = buildUnnamed39(); + o.outputParameterDefinitions = buildUnnamed39(); + o.transitionRouteGroups = buildUnnamed40(); + o.transitionRoutes = buildUnnamed41(); } buildCounterGoogleCloudDialogflowCxV3Flow--; return o; @@ -2675,6 +2709,7 @@ void checkGoogleCloudDialogflowCxV3Flow(api.GoogleCloudDialogflowCxV3Flow o) { unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); checkUnnamed37(o.eventHandlers!); + checkUnnamed38(o.inputParameterDefinitions!); checkGoogleCloudDialogflowCxV3KnowledgeConnectorSettings( o.knowledgeConnectorSettings!, ); @@ -2684,8 +2719,9 @@ void checkGoogleCloudDialogflowCxV3Flow(api.GoogleCloudDialogflowCxV3Flow o) { ); unittest.expect(o.name!, unittest.equals('foo')); checkGoogleCloudDialogflowCxV3NluSettings(o.nluSettings!); - checkUnnamed38(o.transitionRouteGroups!); - checkUnnamed39(o.transitionRoutes!); + checkUnnamed39(o.outputParameterDefinitions!); + checkUnnamed40(o.transitionRouteGroups!); + checkUnnamed41(o.transitionRoutes!); } buildCounterGoogleCloudDialogflowCxV3Flow--; } @@ -2738,9 +2774,9 @@ void checkGoogleCloudDialogflowCxV3FlowInvocation( buildCounterGoogleCloudDialogflowCxV3FlowInvocation--; } -core.List buildUnnamed40() => ['foo', 'foo']; +core.List buildUnnamed42() => ['foo', 'foo']; -void checkUnnamed40(core.List o) { +void checkUnnamed42(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2753,7 +2789,7 @@ buildGoogleCloudDialogflowCxV3FlowMultiLanguageSettings() { buildCounterGoogleCloudDialogflowCxV3FlowMultiLanguageSettings++; if (buildCounterGoogleCloudDialogflowCxV3FlowMultiLanguageSettings < 3) { o.enableMultiLanguageDetection = true; - o.supportedResponseLanguageCodes = buildUnnamed40(); + o.supportedResponseLanguageCodes = buildUnnamed42(); } buildCounterGoogleCloudDialogflowCxV3FlowMultiLanguageSettings--; return o; @@ -2765,17 +2801,41 @@ void checkGoogleCloudDialogflowCxV3FlowMultiLanguageSettings( buildCounterGoogleCloudDialogflowCxV3FlowMultiLanguageSettings++; if (buildCounterGoogleCloudDialogflowCxV3FlowMultiLanguageSettings < 3) { unittest.expect(o.enableMultiLanguageDetection!, unittest.isTrue); - checkUnnamed40(o.supportedResponseLanguageCodes!); + checkUnnamed42(o.supportedResponseLanguageCodes!); } buildCounterGoogleCloudDialogflowCxV3FlowMultiLanguageSettings--; } -core.List buildUnnamed41() => [ +core.int buildCounterGoogleCloudDialogflowCxV3FlowTransition = 0; +api.GoogleCloudDialogflowCxV3FlowTransition +buildGoogleCloudDialogflowCxV3FlowTransition() { + final o = api.GoogleCloudDialogflowCxV3FlowTransition(); + buildCounterGoogleCloudDialogflowCxV3FlowTransition++; + if (buildCounterGoogleCloudDialogflowCxV3FlowTransition < 3) { + o.displayName = 'foo'; + o.flow = 'foo'; + } + buildCounterGoogleCloudDialogflowCxV3FlowTransition--; + return o; +} + +void checkGoogleCloudDialogflowCxV3FlowTransition( + api.GoogleCloudDialogflowCxV3FlowTransition o, +) { + buildCounterGoogleCloudDialogflowCxV3FlowTransition++; + if (buildCounterGoogleCloudDialogflowCxV3FlowTransition < 3) { + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.flow!, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowCxV3FlowTransition--; +} + +core.List buildUnnamed43() => [ buildGoogleCloudDialogflowCxV3ValidationMessage(), buildGoogleCloudDialogflowCxV3ValidationMessage(), ]; -void checkUnnamed41( +void checkUnnamed43( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -2791,7 +2851,7 @@ buildGoogleCloudDialogflowCxV3FlowValidationResult() { if (buildCounterGoogleCloudDialogflowCxV3FlowValidationResult < 3) { o.name = 'foo'; o.updateTime = 'foo'; - o.validationMessages = buildUnnamed41(); + o.validationMessages = buildUnnamed43(); } buildCounterGoogleCloudDialogflowCxV3FlowValidationResult--; return o; @@ -2804,17 +2864,17 @@ void checkGoogleCloudDialogflowCxV3FlowValidationResult( if (buildCounterGoogleCloudDialogflowCxV3FlowValidationResult < 3) { unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); - checkUnnamed41(o.validationMessages!); + checkUnnamed43(o.validationMessages!); } buildCounterGoogleCloudDialogflowCxV3FlowValidationResult--; } -core.List buildUnnamed42() => [ +core.List buildUnnamed44() => [ buildGoogleCloudDialogflowCxV3FormParameter(), buildGoogleCloudDialogflowCxV3FormParameter(), ]; -void checkUnnamed42(core.List o) { +void checkUnnamed44(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3FormParameter(o[0]); checkGoogleCloudDialogflowCxV3FormParameter(o[1]); @@ -2825,7 +2885,7 @@ api.GoogleCloudDialogflowCxV3Form buildGoogleCloudDialogflowCxV3Form() { final o = api.GoogleCloudDialogflowCxV3Form(); buildCounterGoogleCloudDialogflowCxV3Form++; if (buildCounterGoogleCloudDialogflowCxV3Form < 3) { - o.parameters = buildUnnamed42(); + o.parameters = buildUnnamed44(); } buildCounterGoogleCloudDialogflowCxV3Form--; return o; @@ -2834,7 +2894,7 @@ api.GoogleCloudDialogflowCxV3Form buildGoogleCloudDialogflowCxV3Form() { void checkGoogleCloudDialogflowCxV3Form(api.GoogleCloudDialogflowCxV3Form o) { buildCounterGoogleCloudDialogflowCxV3Form++; if (buildCounterGoogleCloudDialogflowCxV3Form < 3) { - checkUnnamed42(o.parameters!); + checkUnnamed44(o.parameters!); } buildCounterGoogleCloudDialogflowCxV3Form--; } @@ -2883,12 +2943,12 @@ void checkGoogleCloudDialogflowCxV3FormParameter( buildCounterGoogleCloudDialogflowCxV3FormParameter--; } -core.List buildUnnamed43() => [ +core.List buildUnnamed45() => [ buildGoogleCloudDialogflowCxV3EventHandler(), buildGoogleCloudDialogflowCxV3EventHandler(), ]; -void checkUnnamed43(core.List o) { +void checkUnnamed45(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3EventHandler(o[0]); checkGoogleCloudDialogflowCxV3EventHandler(o[1]); @@ -2901,7 +2961,7 @@ buildGoogleCloudDialogflowCxV3FormParameterFillBehavior() { buildCounterGoogleCloudDialogflowCxV3FormParameterFillBehavior++; if (buildCounterGoogleCloudDialogflowCxV3FormParameterFillBehavior < 3) { o.initialPromptFulfillment = buildGoogleCloudDialogflowCxV3Fulfillment(); - o.repromptEventHandlers = buildUnnamed43(); + o.repromptEventHandlers = buildUnnamed45(); } buildCounterGoogleCloudDialogflowCxV3FormParameterFillBehavior--; return o; @@ -2913,7 +2973,7 @@ void checkGoogleCloudDialogflowCxV3FormParameterFillBehavior( buildCounterGoogleCloudDialogflowCxV3FormParameterFillBehavior++; if (buildCounterGoogleCloudDialogflowCxV3FormParameterFillBehavior < 3) { checkGoogleCloudDialogflowCxV3Fulfillment(o.initialPromptFulfillment!); - checkUnnamed43(o.repromptEventHandlers!); + checkUnnamed45(o.repromptEventHandlers!); } buildCounterGoogleCloudDialogflowCxV3FormParameterFillBehavior--; } @@ -2973,12 +3033,12 @@ void checkGoogleCloudDialogflowCxV3FulfillIntentResponse( } core.List -buildUnnamed44() => [ +buildUnnamed46() => [ buildGoogleCloudDialogflowCxV3FulfillmentConditionalCases(), buildGoogleCloudDialogflowCxV3FulfillmentConditionalCases(), ]; -void checkUnnamed44( +void checkUnnamed46( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -2987,12 +3047,12 @@ void checkUnnamed44( } core.List -buildUnnamed45() => [ +buildUnnamed47() => [ buildGoogleCloudDialogflowCxV3FulfillmentGeneratorSettings(), buildGoogleCloudDialogflowCxV3FulfillmentGeneratorSettings(), ]; -void checkUnnamed45( +void checkUnnamed47( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3000,24 +3060,24 @@ void checkUnnamed45( checkGoogleCloudDialogflowCxV3FulfillmentGeneratorSettings(o[1]); } -core.List buildUnnamed46() => [ +core.List buildUnnamed48() => [ buildGoogleCloudDialogflowCxV3ResponseMessage(), buildGoogleCloudDialogflowCxV3ResponseMessage(), ]; -void checkUnnamed46(core.List o) { +void checkUnnamed48(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3ResponseMessage(o[0]); checkGoogleCloudDialogflowCxV3ResponseMessage(o[1]); } core.List -buildUnnamed47() => [ +buildUnnamed49() => [ buildGoogleCloudDialogflowCxV3FulfillmentSetParameterAction(), buildGoogleCloudDialogflowCxV3FulfillmentSetParameterAction(), ]; -void checkUnnamed47( +void checkUnnamed49( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3032,12 +3092,12 @@ buildGoogleCloudDialogflowCxV3Fulfillment() { buildCounterGoogleCloudDialogflowCxV3Fulfillment++; if (buildCounterGoogleCloudDialogflowCxV3Fulfillment < 3) { o.advancedSettings = buildGoogleCloudDialogflowCxV3AdvancedSettings(); - o.conditionalCases = buildUnnamed44(); + o.conditionalCases = buildUnnamed46(); o.enableGenerativeFallback = true; - o.generators = buildUnnamed45(); - o.messages = buildUnnamed46(); + o.generators = buildUnnamed47(); + o.messages = buildUnnamed48(); o.returnPartialResponses = true; - o.setParameterActions = buildUnnamed47(); + o.setParameterActions = buildUnnamed49(); o.tag = 'foo'; o.webhook = 'foo'; } @@ -3051,12 +3111,12 @@ void checkGoogleCloudDialogflowCxV3Fulfillment( buildCounterGoogleCloudDialogflowCxV3Fulfillment++; if (buildCounterGoogleCloudDialogflowCxV3Fulfillment < 3) { checkGoogleCloudDialogflowCxV3AdvancedSettings(o.advancedSettings!); - checkUnnamed44(o.conditionalCases!); + checkUnnamed46(o.conditionalCases!); unittest.expect(o.enableGenerativeFallback!, unittest.isTrue); - checkUnnamed45(o.generators!); - checkUnnamed46(o.messages!); + checkUnnamed47(o.generators!); + checkUnnamed48(o.messages!); unittest.expect(o.returnPartialResponses!, unittest.isTrue); - checkUnnamed47(o.setParameterActions!); + checkUnnamed49(o.setParameterActions!); unittest.expect(o.tag!, unittest.equals('foo')); unittest.expect(o.webhook!, unittest.equals('foo')); } @@ -3064,12 +3124,12 @@ void checkGoogleCloudDialogflowCxV3Fulfillment( } core.List -buildUnnamed48() => [ +buildUnnamed50() => [ buildGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase(), buildGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase(), ]; -void checkUnnamed48( +void checkUnnamed50( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3083,7 +3143,7 @@ buildGoogleCloudDialogflowCxV3FulfillmentConditionalCases() { final o = api.GoogleCloudDialogflowCxV3FulfillmentConditionalCases(); buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCases++; if (buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCases < 3) { - o.cases = buildUnnamed48(); + o.cases = buildUnnamed50(); } buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCases--; return o; @@ -3094,7 +3154,7 @@ void checkGoogleCloudDialogflowCxV3FulfillmentConditionalCases( ) { buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCases++; if (buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCases < 3) { - checkUnnamed48(o.cases!); + checkUnnamed50(o.cases!); } buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCases--; } @@ -3102,12 +3162,12 @@ void checkGoogleCloudDialogflowCxV3FulfillmentConditionalCases( core.List< api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent > -buildUnnamed49() => [ +buildUnnamed51() => [ buildGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent(), buildGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent(), ]; -void checkUnnamed49( +void checkUnnamed51( core.List< api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent > @@ -3130,7 +3190,7 @@ buildGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase() { buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase++; if (buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase < 3) { - o.caseContent = buildUnnamed49(); + o.caseContent = buildUnnamed51(); o.condition = 'foo'; } buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase--; @@ -3143,7 +3203,7 @@ void checkGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase( buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase++; if (buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase < 3) { - checkUnnamed49(o.caseContent!); + checkUnnamed51(o.caseContent!); unittest.expect(o.condition!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase--; @@ -3181,9 +3241,9 @@ void checkGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent( buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent--; } -core.Map buildUnnamed50() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed52() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed50(core.Map o) { +void checkUnnamed52(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -3196,7 +3256,7 @@ buildGoogleCloudDialogflowCxV3FulfillmentGeneratorSettings() { buildCounterGoogleCloudDialogflowCxV3FulfillmentGeneratorSettings++; if (buildCounterGoogleCloudDialogflowCxV3FulfillmentGeneratorSettings < 3) { o.generator = 'foo'; - o.inputParameters = buildUnnamed50(); + o.inputParameters = buildUnnamed52(); o.outputParameter = 'foo'; } buildCounterGoogleCloudDialogflowCxV3FulfillmentGeneratorSettings--; @@ -3209,7 +3269,7 @@ void checkGoogleCloudDialogflowCxV3FulfillmentGeneratorSettings( buildCounterGoogleCloudDialogflowCxV3FulfillmentGeneratorSettings++; if (buildCounterGoogleCloudDialogflowCxV3FulfillmentGeneratorSettings < 3) { unittest.expect(o.generator!, unittest.equals('foo')); - checkUnnamed50(o.inputParameters!); + checkUnnamed52(o.inputParameters!); unittest.expect(o.outputParameter!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3FulfillmentGeneratorSettings--; @@ -3310,12 +3370,12 @@ void checkGoogleCloudDialogflowCxV3GenerativeSettings( core.List< api.GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettingsPromptTemplate > -buildUnnamed51() => [ +buildUnnamed53() => [ buildGoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettingsPromptTemplate(), buildGoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettingsPromptTemplate(), ]; -void checkUnnamed51( +void checkUnnamed53( core.List< api.GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettingsPromptTemplate > @@ -3338,7 +3398,7 @@ buildGoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings() { buildCounterGoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings++; if (buildCounterGoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings < 3) { - o.promptTemplates = buildUnnamed51(); + o.promptTemplates = buildUnnamed53(); o.selectedPrompt = 'foo'; } buildCounterGoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings--; @@ -3351,7 +3411,7 @@ void checkGoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings( buildCounterGoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings++; if (buildCounterGoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings < 3) { - checkUnnamed51(o.promptTemplates!); + checkUnnamed53(o.promptTemplates!); unittest.expect(o.selectedPrompt!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings--; @@ -3427,13 +3487,13 @@ void checkGoogleCloudDialogflowCxV3GenerativeSettingsKnowledgeConnectorSettings( buildCounterGoogleCloudDialogflowCxV3GenerativeSettingsKnowledgeConnectorSettings--; } -core.List buildUnnamed52() => +core.List buildUnnamed54() => [ buildGoogleCloudDialogflowCxV3GeneratorPlaceholder(), buildGoogleCloudDialogflowCxV3GeneratorPlaceholder(), ]; -void checkUnnamed52( +void checkUnnamed54( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3451,7 +3511,7 @@ buildGoogleCloudDialogflowCxV3Generator() { o.llmModelSettings = buildGoogleCloudDialogflowCxV3LlmModelSettings(); o.modelParameter = buildGoogleCloudDialogflowCxV3GeneratorModelParameter(); o.name = 'foo'; - o.placeholders = buildUnnamed52(); + o.placeholders = buildUnnamed54(); o.promptText = buildGoogleCloudDialogflowCxV3Phrase(); } buildCounterGoogleCloudDialogflowCxV3Generator--; @@ -3467,7 +3527,7 @@ void checkGoogleCloudDialogflowCxV3Generator( checkGoogleCloudDialogflowCxV3LlmModelSettings(o.llmModelSettings!); checkGoogleCloudDialogflowCxV3GeneratorModelParameter(o.modelParameter!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed52(o.placeholders!); + checkUnnamed54(o.placeholders!); checkGoogleCloudDialogflowCxV3Phrase(o.promptText!); } buildCounterGoogleCloudDialogflowCxV3Generator--; @@ -3733,6 +3793,30 @@ void checkGoogleCloudDialogflowCxV3ImportTestCasesRequest( buildCounterGoogleCloudDialogflowCxV3ImportTestCasesRequest--; } +core.int buildCounterGoogleCloudDialogflowCxV3InlineSchema = 0; +api.GoogleCloudDialogflowCxV3InlineSchema +buildGoogleCloudDialogflowCxV3InlineSchema() { + final o = api.GoogleCloudDialogflowCxV3InlineSchema(); + buildCounterGoogleCloudDialogflowCxV3InlineSchema++; + if (buildCounterGoogleCloudDialogflowCxV3InlineSchema < 3) { + o.items = buildGoogleCloudDialogflowCxV3TypeSchema(); + o.type = 'foo'; + } + buildCounterGoogleCloudDialogflowCxV3InlineSchema--; + return o; +} + +void checkGoogleCloudDialogflowCxV3InlineSchema( + api.GoogleCloudDialogflowCxV3InlineSchema o, +) { + buildCounterGoogleCloudDialogflowCxV3InlineSchema++; + if (buildCounterGoogleCloudDialogflowCxV3InlineSchema < 3) { + checkGoogleCloudDialogflowCxV3TypeSchema(o.items!); + unittest.expect(o.type!, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowCxV3InlineSchema--; +} + core.int buildCounterGoogleCloudDialogflowCxV3InlineSource = 0; api.GoogleCloudDialogflowCxV3InlineSource buildGoogleCloudDialogflowCxV3InlineSource() { @@ -3755,9 +3839,9 @@ void checkGoogleCloudDialogflowCxV3InlineSource( buildCounterGoogleCloudDialogflowCxV3InlineSource--; } -core.List buildUnnamed53() => ['foo', 'foo']; +core.List buildUnnamed55() => ['foo', 'foo']; -void checkUnnamed53(core.List o) { +void checkUnnamed55(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3775,7 +3859,7 @@ buildGoogleCloudDialogflowCxV3InputAudioConfig() { o.model = 'foo'; o.modelVariant = 'foo'; o.optOutConformerModelMigration = true; - o.phraseHints = buildUnnamed53(); + o.phraseHints = buildUnnamed55(); o.sampleRateHertz = 42; o.singleUtterance = true; } @@ -3794,39 +3878,39 @@ void checkGoogleCloudDialogflowCxV3InputAudioConfig( unittest.expect(o.model!, unittest.equals('foo')); unittest.expect(o.modelVariant!, unittest.equals('foo')); unittest.expect(o.optOutConformerModelMigration!, unittest.isTrue); - checkUnnamed53(o.phraseHints!); + checkUnnamed55(o.phraseHints!); unittest.expect(o.sampleRateHertz!, unittest.equals(42)); unittest.expect(o.singleUtterance!, unittest.isTrue); } buildCounterGoogleCloudDialogflowCxV3InputAudioConfig--; } -core.Map buildUnnamed54() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed56() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed54(core.Map o) { +void checkUnnamed56(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed55() => [ +core.List buildUnnamed57() => [ buildGoogleCloudDialogflowCxV3IntentParameter(), buildGoogleCloudDialogflowCxV3IntentParameter(), ]; -void checkUnnamed55(core.List o) { +void checkUnnamed57(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3IntentParameter(o[0]); checkGoogleCloudDialogflowCxV3IntentParameter(o[1]); } -core.List buildUnnamed56() => +core.List buildUnnamed58() => [ buildGoogleCloudDialogflowCxV3IntentTrainingPhrase(), buildGoogleCloudDialogflowCxV3IntentTrainingPhrase(), ]; -void checkUnnamed56( +void checkUnnamed58( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3842,11 +3926,11 @@ api.GoogleCloudDialogflowCxV3Intent buildGoogleCloudDialogflowCxV3Intent() { o.description = 'foo'; o.displayName = 'foo'; o.isFallback = true; - o.labels = buildUnnamed54(); + o.labels = buildUnnamed56(); o.name = 'foo'; - o.parameters = buildUnnamed55(); + o.parameters = buildUnnamed57(); o.priority = 42; - o.trainingPhrases = buildUnnamed56(); + o.trainingPhrases = buildUnnamed58(); } buildCounterGoogleCloudDialogflowCxV3Intent--; return o; @@ -3860,22 +3944,22 @@ void checkGoogleCloudDialogflowCxV3Intent( unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.isFallback!, unittest.isTrue); - checkUnnamed54(o.labels!); + checkUnnamed56(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed55(o.parameters!); + checkUnnamed57(o.parameters!); unittest.expect(o.priority!, unittest.equals(42)); - checkUnnamed56(o.trainingPhrases!); + checkUnnamed58(o.trainingPhrases!); } buildCounterGoogleCloudDialogflowCxV3Intent--; } -core.List buildUnnamed57() => +core.List buildUnnamed59() => [ buildGoogleCloudDialogflowCxV3IntentCoverageIntent(), buildGoogleCloudDialogflowCxV3IntentCoverageIntent(), ]; -void checkUnnamed57( +void checkUnnamed59( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3890,7 +3974,7 @@ buildGoogleCloudDialogflowCxV3IntentCoverage() { buildCounterGoogleCloudDialogflowCxV3IntentCoverage++; if (buildCounterGoogleCloudDialogflowCxV3IntentCoverage < 3) { o.coverageScore = 42.0; - o.intents = buildUnnamed57(); + o.intents = buildUnnamed59(); } buildCounterGoogleCloudDialogflowCxV3IntentCoverage--; return o; @@ -3902,7 +3986,7 @@ void checkGoogleCloudDialogflowCxV3IntentCoverage( buildCounterGoogleCloudDialogflowCxV3IntentCoverage++; if (buildCounterGoogleCloudDialogflowCxV3IntentCoverage < 3) { unittest.expect(o.coverageScore!, unittest.equals(42.0)); - checkUnnamed57(o.intents!); + checkUnnamed59(o.intents!); } buildCounterGoogleCloudDialogflowCxV3IntentCoverage--; } @@ -3982,12 +4066,12 @@ void checkGoogleCloudDialogflowCxV3IntentParameter( } core.List -buildUnnamed58() => [ +buildUnnamed60() => [ buildGoogleCloudDialogflowCxV3IntentTrainingPhrasePart(), buildGoogleCloudDialogflowCxV3IntentTrainingPhrasePart(), ]; -void checkUnnamed58( +void checkUnnamed60( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4002,7 +4086,7 @@ buildGoogleCloudDialogflowCxV3IntentTrainingPhrase() { buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrase++; if (buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrase < 3) { o.id = 'foo'; - o.parts = buildUnnamed58(); + o.parts = buildUnnamed60(); o.repeatCount = 42; } buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrase--; @@ -4015,7 +4099,7 @@ void checkGoogleCloudDialogflowCxV3IntentTrainingPhrase( buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrase++; if (buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrase < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed58(o.parts!); + checkUnnamed60(o.parts!); unittest.expect(o.repeatCount!, unittest.equals(42)); } buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrase--; @@ -4045,13 +4129,13 @@ void checkGoogleCloudDialogflowCxV3IntentTrainingPhrasePart( buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrasePart--; } -core.List buildUnnamed59() => +core.List buildUnnamed61() => [ buildGoogleCloudDialogflowCxV3DataStoreConnection(), buildGoogleCloudDialogflowCxV3DataStoreConnection(), ]; -void checkUnnamed59( +void checkUnnamed61( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4065,7 +4149,7 @@ buildGoogleCloudDialogflowCxV3KnowledgeConnectorSettings() { final o = api.GoogleCloudDialogflowCxV3KnowledgeConnectorSettings(); buildCounterGoogleCloudDialogflowCxV3KnowledgeConnectorSettings++; if (buildCounterGoogleCloudDialogflowCxV3KnowledgeConnectorSettings < 3) { - o.dataStoreConnections = buildUnnamed59(); + o.dataStoreConnections = buildUnnamed61(); o.enabled = true; o.targetFlow = 'foo'; o.targetPage = 'foo'; @@ -4080,7 +4164,7 @@ void checkGoogleCloudDialogflowCxV3KnowledgeConnectorSettings( ) { buildCounterGoogleCloudDialogflowCxV3KnowledgeConnectorSettings++; if (buildCounterGoogleCloudDialogflowCxV3KnowledgeConnectorSettings < 3) { - checkUnnamed59(o.dataStoreConnections!); + checkUnnamed61(o.dataStoreConnections!); unittest.expect(o.enabled!, unittest.isTrue); unittest.expect(o.targetFlow!, unittest.equals('foo')); unittest.expect(o.targetPage!, unittest.equals('foo')); @@ -4089,12 +4173,12 @@ void checkGoogleCloudDialogflowCxV3KnowledgeConnectorSettings( buildCounterGoogleCloudDialogflowCxV3KnowledgeConnectorSettings--; } -core.List buildUnnamed60() => [ +core.List buildUnnamed62() => [ buildGoogleCloudDialogflowCxV3Agent(), buildGoogleCloudDialogflowCxV3Agent(), ]; -void checkUnnamed60(core.List o) { +void checkUnnamed62(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Agent(o[0]); checkGoogleCloudDialogflowCxV3Agent(o[1]); @@ -4106,7 +4190,7 @@ buildGoogleCloudDialogflowCxV3ListAgentsResponse() { final o = api.GoogleCloudDialogflowCxV3ListAgentsResponse(); buildCounterGoogleCloudDialogflowCxV3ListAgentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListAgentsResponse < 3) { - o.agents = buildUnnamed60(); + o.agents = buildUnnamed62(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListAgentsResponse--; @@ -4118,18 +4202,18 @@ void checkGoogleCloudDialogflowCxV3ListAgentsResponse( ) { buildCounterGoogleCloudDialogflowCxV3ListAgentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListAgentsResponse < 3) { - checkUnnamed60(o.agents!); + checkUnnamed62(o.agents!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3ListAgentsResponse--; } -core.List buildUnnamed61() => [ +core.List buildUnnamed63() => [ buildGoogleCloudDialogflowCxV3Changelog(), buildGoogleCloudDialogflowCxV3Changelog(), ]; -void checkUnnamed61(core.List o) { +void checkUnnamed63(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Changelog(o[0]); checkGoogleCloudDialogflowCxV3Changelog(o[1]); @@ -4141,7 +4225,7 @@ buildGoogleCloudDialogflowCxV3ListChangelogsResponse() { final o = api.GoogleCloudDialogflowCxV3ListChangelogsResponse(); buildCounterGoogleCloudDialogflowCxV3ListChangelogsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListChangelogsResponse < 3) { - o.changelogs = buildUnnamed61(); + o.changelogs = buildUnnamed63(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListChangelogsResponse--; @@ -4153,19 +4237,19 @@ void checkGoogleCloudDialogflowCxV3ListChangelogsResponse( ) { buildCounterGoogleCloudDialogflowCxV3ListChangelogsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListChangelogsResponse < 3) { - checkUnnamed61(o.changelogs!); + checkUnnamed63(o.changelogs!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3ListChangelogsResponse--; } -core.List buildUnnamed62() => +core.List buildUnnamed64() => [ buildGoogleCloudDialogflowCxV3ContinuousTestResult(), buildGoogleCloudDialogflowCxV3ContinuousTestResult(), ]; -void checkUnnamed62( +void checkUnnamed64( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4181,7 +4265,7 @@ buildGoogleCloudDialogflowCxV3ListContinuousTestResultsResponse() { buildCounterGoogleCloudDialogflowCxV3ListContinuousTestResultsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListContinuousTestResultsResponse < 3) { - o.continuousTestResults = buildUnnamed62(); + o.continuousTestResults = buildUnnamed64(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListContinuousTestResultsResponse--; @@ -4194,18 +4278,18 @@ void checkGoogleCloudDialogflowCxV3ListContinuousTestResultsResponse( buildCounterGoogleCloudDialogflowCxV3ListContinuousTestResultsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListContinuousTestResultsResponse < 3) { - checkUnnamed62(o.continuousTestResults!); + checkUnnamed64(o.continuousTestResults!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3ListContinuousTestResultsResponse--; } -core.List buildUnnamed63() => [ +core.List buildUnnamed65() => [ buildGoogleCloudDialogflowCxV3Deployment(), buildGoogleCloudDialogflowCxV3Deployment(), ]; -void checkUnnamed63(core.List o) { +void checkUnnamed65(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Deployment(o[0]); checkGoogleCloudDialogflowCxV3Deployment(o[1]); @@ -4217,7 +4301,7 @@ buildGoogleCloudDialogflowCxV3ListDeploymentsResponse() { final o = api.GoogleCloudDialogflowCxV3ListDeploymentsResponse(); buildCounterGoogleCloudDialogflowCxV3ListDeploymentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListDeploymentsResponse < 3) { - o.deployments = buildUnnamed63(); + o.deployments = buildUnnamed65(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListDeploymentsResponse--; @@ -4229,18 +4313,18 @@ void checkGoogleCloudDialogflowCxV3ListDeploymentsResponse( ) { buildCounterGoogleCloudDialogflowCxV3ListDeploymentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListDeploymentsResponse < 3) { - checkUnnamed63(o.deployments!); + checkUnnamed65(o.deployments!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3ListDeploymentsResponse--; } -core.List buildUnnamed64() => [ +core.List buildUnnamed66() => [ buildGoogleCloudDialogflowCxV3EntityType(), buildGoogleCloudDialogflowCxV3EntityType(), ]; -void checkUnnamed64(core.List o) { +void checkUnnamed66(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3EntityType(o[0]); checkGoogleCloudDialogflowCxV3EntityType(o[1]); @@ -4252,7 +4336,7 @@ buildGoogleCloudDialogflowCxV3ListEntityTypesResponse() { final o = api.GoogleCloudDialogflowCxV3ListEntityTypesResponse(); buildCounterGoogleCloudDialogflowCxV3ListEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListEntityTypesResponse < 3) { - o.entityTypes = buildUnnamed64(); + o.entityTypes = buildUnnamed66(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListEntityTypesResponse--; @@ -4264,18 +4348,18 @@ void checkGoogleCloudDialogflowCxV3ListEntityTypesResponse( ) { buildCounterGoogleCloudDialogflowCxV3ListEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListEntityTypesResponse < 3) { - checkUnnamed64(o.entityTypes!); + checkUnnamed66(o.entityTypes!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3ListEntityTypesResponse--; } -core.List buildUnnamed65() => [ +core.List buildUnnamed67() => [ buildGoogleCloudDialogflowCxV3Environment(), buildGoogleCloudDialogflowCxV3Environment(), ]; -void checkUnnamed65(core.List o) { +void checkUnnamed67(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Environment(o[0]); checkGoogleCloudDialogflowCxV3Environment(o[1]); @@ -4287,7 +4371,7 @@ buildGoogleCloudDialogflowCxV3ListEnvironmentsResponse() { final o = api.GoogleCloudDialogflowCxV3ListEnvironmentsResponse(); buildCounterGoogleCloudDialogflowCxV3ListEnvironmentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListEnvironmentsResponse < 3) { - o.environments = buildUnnamed65(); + o.environments = buildUnnamed67(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListEnvironmentsResponse--; @@ -4299,18 +4383,18 @@ void checkGoogleCloudDialogflowCxV3ListEnvironmentsResponse( ) { buildCounterGoogleCloudDialogflowCxV3ListEnvironmentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListEnvironmentsResponse < 3) { - checkUnnamed65(o.environments!); + checkUnnamed67(o.environments!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3ListEnvironmentsResponse--; } -core.List buildUnnamed66() => [ +core.List buildUnnamed68() => [ buildGoogleCloudDialogflowCxV3Example(), buildGoogleCloudDialogflowCxV3Example(), ]; -void checkUnnamed66(core.List o) { +void checkUnnamed68(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Example(o[0]); checkGoogleCloudDialogflowCxV3Example(o[1]); @@ -4322,7 +4406,7 @@ buildGoogleCloudDialogflowCxV3ListExamplesResponse() { final o = api.GoogleCloudDialogflowCxV3ListExamplesResponse(); buildCounterGoogleCloudDialogflowCxV3ListExamplesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListExamplesResponse < 3) { - o.examples = buildUnnamed66(); + o.examples = buildUnnamed68(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListExamplesResponse--; @@ -4334,18 +4418,18 @@ void checkGoogleCloudDialogflowCxV3ListExamplesResponse( ) { buildCounterGoogleCloudDialogflowCxV3ListExamplesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListExamplesResponse < 3) { - checkUnnamed66(o.examples!); + checkUnnamed68(o.examples!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3ListExamplesResponse--; } -core.List buildUnnamed67() => [ +core.List buildUnnamed69() => [ buildGoogleCloudDialogflowCxV3Experiment(), buildGoogleCloudDialogflowCxV3Experiment(), ]; -void checkUnnamed67(core.List o) { +void checkUnnamed69(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Experiment(o[0]); checkGoogleCloudDialogflowCxV3Experiment(o[1]); @@ -4357,7 +4441,7 @@ buildGoogleCloudDialogflowCxV3ListExperimentsResponse() { final o = api.GoogleCloudDialogflowCxV3ListExperimentsResponse(); buildCounterGoogleCloudDialogflowCxV3ListExperimentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListExperimentsResponse < 3) { - o.experiments = buildUnnamed67(); + o.experiments = buildUnnamed69(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListExperimentsResponse--; @@ -4369,18 +4453,18 @@ void checkGoogleCloudDialogflowCxV3ListExperimentsResponse( ) { buildCounterGoogleCloudDialogflowCxV3ListExperimentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListExperimentsResponse < 3) { - checkUnnamed67(o.experiments!); + checkUnnamed69(o.experiments!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3ListExperimentsResponse--; } -core.List buildUnnamed68() => [ +core.List buildUnnamed70() => [ buildGoogleCloudDialogflowCxV3Flow(), buildGoogleCloudDialogflowCxV3Flow(), ]; -void checkUnnamed68(core.List o) { +void checkUnnamed70(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Flow(o[0]); checkGoogleCloudDialogflowCxV3Flow(o[1]); @@ -4392,7 +4476,7 @@ buildGoogleCloudDialogflowCxV3ListFlowsResponse() { final o = api.GoogleCloudDialogflowCxV3ListFlowsResponse(); buildCounterGoogleCloudDialogflowCxV3ListFlowsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListFlowsResponse < 3) { - o.flows = buildUnnamed68(); + o.flows = buildUnnamed70(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListFlowsResponse--; @@ -4404,18 +4488,18 @@ void checkGoogleCloudDialogflowCxV3ListFlowsResponse( ) { buildCounterGoogleCloudDialogflowCxV3ListFlowsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListFlowsResponse < 3) { - checkUnnamed68(o.flows!); + checkUnnamed70(o.flows!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3ListFlowsResponse--; } -core.List buildUnnamed69() => [ +core.List buildUnnamed71() => [ buildGoogleCloudDialogflowCxV3Generator(), buildGoogleCloudDialogflowCxV3Generator(), ]; -void checkUnnamed69(core.List o) { +void checkUnnamed71(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Generator(o[0]); checkGoogleCloudDialogflowCxV3Generator(o[1]); @@ -4427,7 +4511,7 @@ buildGoogleCloudDialogflowCxV3ListGeneratorsResponse() { final o = api.GoogleCloudDialogflowCxV3ListGeneratorsResponse(); buildCounterGoogleCloudDialogflowCxV3ListGeneratorsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListGeneratorsResponse < 3) { - o.generators = buildUnnamed69(); + o.generators = buildUnnamed71(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListGeneratorsResponse--; @@ -4439,18 +4523,18 @@ void checkGoogleCloudDialogflowCxV3ListGeneratorsResponse( ) { buildCounterGoogleCloudDialogflowCxV3ListGeneratorsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListGeneratorsResponse < 3) { - checkUnnamed69(o.generators!); + checkUnnamed71(o.generators!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3ListGeneratorsResponse--; } -core.List buildUnnamed70() => [ +core.List buildUnnamed72() => [ buildGoogleCloudDialogflowCxV3Intent(), buildGoogleCloudDialogflowCxV3Intent(), ]; -void checkUnnamed70(core.List o) { +void checkUnnamed72(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Intent(o[0]); checkGoogleCloudDialogflowCxV3Intent(o[1]); @@ -4462,7 +4546,7 @@ buildGoogleCloudDialogflowCxV3ListIntentsResponse() { final o = api.GoogleCloudDialogflowCxV3ListIntentsResponse(); buildCounterGoogleCloudDialogflowCxV3ListIntentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListIntentsResponse < 3) { - o.intents = buildUnnamed70(); + o.intents = buildUnnamed72(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListIntentsResponse--; @@ -4474,18 +4558,18 @@ void checkGoogleCloudDialogflowCxV3ListIntentsResponse( ) { buildCounterGoogleCloudDialogflowCxV3ListIntentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListIntentsResponse < 3) { - checkUnnamed70(o.intents!); + checkUnnamed72(o.intents!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3ListIntentsResponse--; } -core.List buildUnnamed71() => [ +core.List buildUnnamed73() => [ buildGoogleCloudDialogflowCxV3Page(), buildGoogleCloudDialogflowCxV3Page(), ]; -void checkUnnamed71(core.List o) { +void checkUnnamed73(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Page(o[0]); checkGoogleCloudDialogflowCxV3Page(o[1]); @@ -4498,7 +4582,7 @@ buildGoogleCloudDialogflowCxV3ListPagesResponse() { buildCounterGoogleCloudDialogflowCxV3ListPagesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListPagesResponse < 3) { o.nextPageToken = 'foo'; - o.pages = buildUnnamed71(); + o.pages = buildUnnamed73(); } buildCounterGoogleCloudDialogflowCxV3ListPagesResponse--; return o; @@ -4510,17 +4594,17 @@ void checkGoogleCloudDialogflowCxV3ListPagesResponse( buildCounterGoogleCloudDialogflowCxV3ListPagesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListPagesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed71(o.pages!); + checkUnnamed73(o.pages!); } buildCounterGoogleCloudDialogflowCxV3ListPagesResponse--; } -core.List buildUnnamed72() => [ +core.List buildUnnamed74() => [ buildGoogleCloudDialogflowCxV3PlaybookVersion(), buildGoogleCloudDialogflowCxV3PlaybookVersion(), ]; -void checkUnnamed72(core.List o) { +void checkUnnamed74(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3PlaybookVersion(o[0]); checkGoogleCloudDialogflowCxV3PlaybookVersion(o[1]); @@ -4533,7 +4617,7 @@ buildGoogleCloudDialogflowCxV3ListPlaybookVersionsResponse() { buildCounterGoogleCloudDialogflowCxV3ListPlaybookVersionsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListPlaybookVersionsResponse < 3) { o.nextPageToken = 'foo'; - o.playbookVersions = buildUnnamed72(); + o.playbookVersions = buildUnnamed74(); } buildCounterGoogleCloudDialogflowCxV3ListPlaybookVersionsResponse--; return o; @@ -4545,17 +4629,17 @@ void checkGoogleCloudDialogflowCxV3ListPlaybookVersionsResponse( buildCounterGoogleCloudDialogflowCxV3ListPlaybookVersionsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListPlaybookVersionsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed72(o.playbookVersions!); + checkUnnamed74(o.playbookVersions!); } buildCounterGoogleCloudDialogflowCxV3ListPlaybookVersionsResponse--; } -core.List buildUnnamed73() => [ +core.List buildUnnamed75() => [ buildGoogleCloudDialogflowCxV3Playbook(), buildGoogleCloudDialogflowCxV3Playbook(), ]; -void checkUnnamed73(core.List o) { +void checkUnnamed75(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Playbook(o[0]); checkGoogleCloudDialogflowCxV3Playbook(o[1]); @@ -4568,7 +4652,7 @@ buildGoogleCloudDialogflowCxV3ListPlaybooksResponse() { buildCounterGoogleCloudDialogflowCxV3ListPlaybooksResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListPlaybooksResponse < 3) { o.nextPageToken = 'foo'; - o.playbooks = buildUnnamed73(); + o.playbooks = buildUnnamed75(); } buildCounterGoogleCloudDialogflowCxV3ListPlaybooksResponse--; return o; @@ -4580,17 +4664,17 @@ void checkGoogleCloudDialogflowCxV3ListPlaybooksResponse( buildCounterGoogleCloudDialogflowCxV3ListPlaybooksResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListPlaybooksResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed73(o.playbooks!); + checkUnnamed75(o.playbooks!); } buildCounterGoogleCloudDialogflowCxV3ListPlaybooksResponse--; } -core.List buildUnnamed74() => [ +core.List buildUnnamed76() => [ buildGoogleCloudDialogflowCxV3SecuritySettings(), buildGoogleCloudDialogflowCxV3SecuritySettings(), ]; -void checkUnnamed74( +void checkUnnamed76( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4605,7 +4689,7 @@ buildGoogleCloudDialogflowCxV3ListSecuritySettingsResponse() { buildCounterGoogleCloudDialogflowCxV3ListSecuritySettingsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListSecuritySettingsResponse < 3) { o.nextPageToken = 'foo'; - o.securitySettings = buildUnnamed74(); + o.securitySettings = buildUnnamed76(); } buildCounterGoogleCloudDialogflowCxV3ListSecuritySettingsResponse--; return o; @@ -4617,17 +4701,17 @@ void checkGoogleCloudDialogflowCxV3ListSecuritySettingsResponse( buildCounterGoogleCloudDialogflowCxV3ListSecuritySettingsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListSecuritySettingsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed74(o.securitySettings!); + checkUnnamed76(o.securitySettings!); } buildCounterGoogleCloudDialogflowCxV3ListSecuritySettingsResponse--; } -core.List buildUnnamed75() => [ +core.List buildUnnamed77() => [ buildGoogleCloudDialogflowCxV3SessionEntityType(), buildGoogleCloudDialogflowCxV3SessionEntityType(), ]; -void checkUnnamed75( +void checkUnnamed77( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4643,7 +4727,7 @@ buildGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse() { buildCounterGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse < 3) { o.nextPageToken = 'foo'; - o.sessionEntityTypes = buildUnnamed75(); + o.sessionEntityTypes = buildUnnamed77(); } buildCounterGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse--; return o; @@ -4655,17 +4739,17 @@ void checkGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse( buildCounterGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed75(o.sessionEntityTypes!); + checkUnnamed77(o.sessionEntityTypes!); } buildCounterGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse--; } -core.List buildUnnamed76() => [ +core.List buildUnnamed78() => [ buildGoogleCloudDialogflowCxV3TestCaseResult(), buildGoogleCloudDialogflowCxV3TestCaseResult(), ]; -void checkUnnamed76(core.List o) { +void checkUnnamed78(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TestCaseResult(o[0]); checkGoogleCloudDialogflowCxV3TestCaseResult(o[1]); @@ -4678,7 +4762,7 @@ buildGoogleCloudDialogflowCxV3ListTestCaseResultsResponse() { buildCounterGoogleCloudDialogflowCxV3ListTestCaseResultsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListTestCaseResultsResponse < 3) { o.nextPageToken = 'foo'; - o.testCaseResults = buildUnnamed76(); + o.testCaseResults = buildUnnamed78(); } buildCounterGoogleCloudDialogflowCxV3ListTestCaseResultsResponse--; return o; @@ -4690,17 +4774,17 @@ void checkGoogleCloudDialogflowCxV3ListTestCaseResultsResponse( buildCounterGoogleCloudDialogflowCxV3ListTestCaseResultsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListTestCaseResultsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed76(o.testCaseResults!); + checkUnnamed78(o.testCaseResults!); } buildCounterGoogleCloudDialogflowCxV3ListTestCaseResultsResponse--; } -core.List buildUnnamed77() => [ +core.List buildUnnamed79() => [ buildGoogleCloudDialogflowCxV3TestCase(), buildGoogleCloudDialogflowCxV3TestCase(), ]; -void checkUnnamed77(core.List o) { +void checkUnnamed79(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TestCase(o[0]); checkGoogleCloudDialogflowCxV3TestCase(o[1]); @@ -4713,7 +4797,7 @@ buildGoogleCloudDialogflowCxV3ListTestCasesResponse() { buildCounterGoogleCloudDialogflowCxV3ListTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListTestCasesResponse < 3) { o.nextPageToken = 'foo'; - o.testCases = buildUnnamed77(); + o.testCases = buildUnnamed79(); } buildCounterGoogleCloudDialogflowCxV3ListTestCasesResponse--; return o; @@ -4725,17 +4809,17 @@ void checkGoogleCloudDialogflowCxV3ListTestCasesResponse( buildCounterGoogleCloudDialogflowCxV3ListTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListTestCasesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed77(o.testCases!); + checkUnnamed79(o.testCases!); } buildCounterGoogleCloudDialogflowCxV3ListTestCasesResponse--; } -core.List buildUnnamed78() => [ +core.List buildUnnamed80() => [ buildGoogleCloudDialogflowCxV3ToolVersion(), buildGoogleCloudDialogflowCxV3ToolVersion(), ]; -void checkUnnamed78(core.List o) { +void checkUnnamed80(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3ToolVersion(o[0]); checkGoogleCloudDialogflowCxV3ToolVersion(o[1]); @@ -4748,7 +4832,7 @@ buildGoogleCloudDialogflowCxV3ListToolVersionsResponse() { buildCounterGoogleCloudDialogflowCxV3ListToolVersionsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListToolVersionsResponse < 3) { o.nextPageToken = 'foo'; - o.toolVersions = buildUnnamed78(); + o.toolVersions = buildUnnamed80(); } buildCounterGoogleCloudDialogflowCxV3ListToolVersionsResponse--; return o; @@ -4760,17 +4844,17 @@ void checkGoogleCloudDialogflowCxV3ListToolVersionsResponse( buildCounterGoogleCloudDialogflowCxV3ListToolVersionsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListToolVersionsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed78(o.toolVersions!); + checkUnnamed80(o.toolVersions!); } buildCounterGoogleCloudDialogflowCxV3ListToolVersionsResponse--; } -core.List buildUnnamed79() => [ +core.List buildUnnamed81() => [ buildGoogleCloudDialogflowCxV3Tool(), buildGoogleCloudDialogflowCxV3Tool(), ]; -void checkUnnamed79(core.List o) { +void checkUnnamed81(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Tool(o[0]); checkGoogleCloudDialogflowCxV3Tool(o[1]); @@ -4783,7 +4867,7 @@ buildGoogleCloudDialogflowCxV3ListToolsResponse() { buildCounterGoogleCloudDialogflowCxV3ListToolsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListToolsResponse < 3) { o.nextPageToken = 'foo'; - o.tools = buildUnnamed79(); + o.tools = buildUnnamed81(); } buildCounterGoogleCloudDialogflowCxV3ListToolsResponse--; return o; @@ -4795,18 +4879,18 @@ void checkGoogleCloudDialogflowCxV3ListToolsResponse( buildCounterGoogleCloudDialogflowCxV3ListToolsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListToolsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed79(o.tools!); + checkUnnamed81(o.tools!); } buildCounterGoogleCloudDialogflowCxV3ListToolsResponse--; } -core.List buildUnnamed80() => +core.List buildUnnamed82() => [ buildGoogleCloudDialogflowCxV3TransitionRouteGroup(), buildGoogleCloudDialogflowCxV3TransitionRouteGroup(), ]; -void checkUnnamed80( +void checkUnnamed82( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4823,7 +4907,7 @@ buildGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse() { if (buildCounterGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse < 3) { o.nextPageToken = 'foo'; - o.transitionRouteGroups = buildUnnamed80(); + o.transitionRouteGroups = buildUnnamed82(); } buildCounterGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse--; return o; @@ -4836,17 +4920,17 @@ void checkGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse( if (buildCounterGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed80(o.transitionRouteGroups!); + checkUnnamed82(o.transitionRouteGroups!); } buildCounterGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse--; } -core.List buildUnnamed81() => [ +core.List buildUnnamed83() => [ buildGoogleCloudDialogflowCxV3Version(), buildGoogleCloudDialogflowCxV3Version(), ]; -void checkUnnamed81(core.List o) { +void checkUnnamed83(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Version(o[0]); checkGoogleCloudDialogflowCxV3Version(o[1]); @@ -4859,7 +4943,7 @@ buildGoogleCloudDialogflowCxV3ListVersionsResponse() { buildCounterGoogleCloudDialogflowCxV3ListVersionsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListVersionsResponse < 3) { o.nextPageToken = 'foo'; - o.versions = buildUnnamed81(); + o.versions = buildUnnamed83(); } buildCounterGoogleCloudDialogflowCxV3ListVersionsResponse--; return o; @@ -4871,17 +4955,17 @@ void checkGoogleCloudDialogflowCxV3ListVersionsResponse( buildCounterGoogleCloudDialogflowCxV3ListVersionsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListVersionsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed81(o.versions!); + checkUnnamed83(o.versions!); } buildCounterGoogleCloudDialogflowCxV3ListVersionsResponse--; } -core.List buildUnnamed82() => [ +core.List buildUnnamed84() => [ buildGoogleCloudDialogflowCxV3Webhook(), buildGoogleCloudDialogflowCxV3Webhook(), ]; -void checkUnnamed82(core.List o) { +void checkUnnamed84(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Webhook(o[0]); checkGoogleCloudDialogflowCxV3Webhook(o[1]); @@ -4894,7 +4978,7 @@ buildGoogleCloudDialogflowCxV3ListWebhooksResponse() { buildCounterGoogleCloudDialogflowCxV3ListWebhooksResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListWebhooksResponse < 3) { o.nextPageToken = 'foo'; - o.webhooks = buildUnnamed82(); + o.webhooks = buildUnnamed84(); } buildCounterGoogleCloudDialogflowCxV3ListWebhooksResponse--; return o; @@ -4906,7 +4990,7 @@ void checkGoogleCloudDialogflowCxV3ListWebhooksResponse( buildCounterGoogleCloudDialogflowCxV3ListWebhooksResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListWebhooksResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed82(o.webhooks!); + checkUnnamed84(o.webhooks!); } buildCounterGoogleCloudDialogflowCxV3ListWebhooksResponse--; } @@ -4957,12 +5041,12 @@ void checkGoogleCloudDialogflowCxV3LoadVersionRequest( buildCounterGoogleCloudDialogflowCxV3LoadVersionRequest--; } -core.List buildUnnamed83() => [ +core.List buildUnnamed85() => [ buildGoogleCloudDialogflowCxV3Environment(), buildGoogleCloudDialogflowCxV3Environment(), ]; -void checkUnnamed83(core.List o) { +void checkUnnamed85(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Environment(o[0]); checkGoogleCloudDialogflowCxV3Environment(o[1]); @@ -4976,7 +5060,7 @@ buildGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse() { buildCounterGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse++; if (buildCounterGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse < 3) { - o.environments = buildUnnamed83(); + o.environments = buildUnnamed85(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse--; @@ -4989,13 +5073,13 @@ void checkGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse( buildCounterGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse++; if (buildCounterGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse < 3) { - checkUnnamed83(o.environments!); + checkUnnamed85(o.environments!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse--; } -core.Map buildUnnamed84() => { +core.Map buildUnnamed86() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -5008,7 +5092,7 @@ core.Map buildUnnamed84() => { }, }; -void checkUnnamed84(core.Map o) { +void checkUnnamed86(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted13 = (o['x']!) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); @@ -5031,7 +5115,7 @@ api.GoogleCloudDialogflowCxV3Match buildGoogleCloudDialogflowCxV3Match() { o.event = 'foo'; o.intent = buildGoogleCloudDialogflowCxV3Intent(); o.matchType = 'foo'; - o.parameters = buildUnnamed84(); + o.parameters = buildUnnamed86(); o.resolvedInput = 'foo'; } buildCounterGoogleCloudDialogflowCxV3Match--; @@ -5045,7 +5129,7 @@ void checkGoogleCloudDialogflowCxV3Match(api.GoogleCloudDialogflowCxV3Match o) { unittest.expect(o.event!, unittest.equals('foo')); checkGoogleCloudDialogflowCxV3Intent(o.intent!); unittest.expect(o.matchType!, unittest.equals('foo')); - checkUnnamed84(o.parameters!); + checkUnnamed86(o.parameters!); unittest.expect(o.resolvedInput!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3Match--; @@ -5077,12 +5161,12 @@ void checkGoogleCloudDialogflowCxV3MatchIntentRequest( buildCounterGoogleCloudDialogflowCxV3MatchIntentRequest--; } -core.List buildUnnamed85() => [ +core.List buildUnnamed87() => [ buildGoogleCloudDialogflowCxV3Match(), buildGoogleCloudDialogflowCxV3Match(), ]; -void checkUnnamed85(core.List o) { +void checkUnnamed87(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Match(o[0]); checkGoogleCloudDialogflowCxV3Match(o[1]); @@ -5095,7 +5179,7 @@ buildGoogleCloudDialogflowCxV3MatchIntentResponse() { buildCounterGoogleCloudDialogflowCxV3MatchIntentResponse++; if (buildCounterGoogleCloudDialogflowCxV3MatchIntentResponse < 3) { o.currentPage = buildGoogleCloudDialogflowCxV3Page(); - o.matches = buildUnnamed85(); + o.matches = buildUnnamed87(); o.text = 'foo'; o.transcript = 'foo'; o.triggerEvent = 'foo'; @@ -5111,7 +5195,7 @@ void checkGoogleCloudDialogflowCxV3MatchIntentResponse( buildCounterGoogleCloudDialogflowCxV3MatchIntentResponse++; if (buildCounterGoogleCloudDialogflowCxV3MatchIntentResponse < 3) { checkGoogleCloudDialogflowCxV3Page(o.currentPage!); - checkUnnamed85(o.matches!); + checkUnnamed87(o.matches!); unittest.expect(o.text!, unittest.equals('foo')); unittest.expect(o.transcript!, unittest.equals('foo')); unittest.expect(o.triggerEvent!, unittest.equals('foo')); @@ -5175,31 +5259,31 @@ void checkGoogleCloudDialogflowCxV3OutputAudioConfig( buildCounterGoogleCloudDialogflowCxV3OutputAudioConfig--; } -core.List buildUnnamed86() => [ +core.List buildUnnamed88() => [ buildGoogleCloudDialogflowCxV3EventHandler(), buildGoogleCloudDialogflowCxV3EventHandler(), ]; -void checkUnnamed86(core.List o) { +void checkUnnamed88(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3EventHandler(o[0]); checkGoogleCloudDialogflowCxV3EventHandler(o[1]); } -core.List buildUnnamed87() => ['foo', 'foo']; +core.List buildUnnamed89() => ['foo', 'foo']; -void checkUnnamed87(core.List o) { +void checkUnnamed89(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed88() => [ +core.List buildUnnamed90() => [ buildGoogleCloudDialogflowCxV3TransitionRoute(), buildGoogleCloudDialogflowCxV3TransitionRoute(), ]; -void checkUnnamed88(core.List o) { +void checkUnnamed90(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TransitionRoute(o[0]); checkGoogleCloudDialogflowCxV3TransitionRoute(o[1]); @@ -5214,13 +5298,13 @@ api.GoogleCloudDialogflowCxV3Page buildGoogleCloudDialogflowCxV3Page() { o.description = 'foo'; o.displayName = 'foo'; o.entryFulfillment = buildGoogleCloudDialogflowCxV3Fulfillment(); - o.eventHandlers = buildUnnamed86(); + o.eventHandlers = buildUnnamed88(); o.form = buildGoogleCloudDialogflowCxV3Form(); o.knowledgeConnectorSettings = buildGoogleCloudDialogflowCxV3KnowledgeConnectorSettings(); o.name = 'foo'; - o.transitionRouteGroups = buildUnnamed87(); - o.transitionRoutes = buildUnnamed88(); + o.transitionRouteGroups = buildUnnamed89(); + o.transitionRoutes = buildUnnamed90(); } buildCounterGoogleCloudDialogflowCxV3Page--; return o; @@ -5233,18 +5317,46 @@ void checkGoogleCloudDialogflowCxV3Page(api.GoogleCloudDialogflowCxV3Page o) { unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); checkGoogleCloudDialogflowCxV3Fulfillment(o.entryFulfillment!); - checkUnnamed86(o.eventHandlers!); + checkUnnamed88(o.eventHandlers!); checkGoogleCloudDialogflowCxV3Form(o.form!); checkGoogleCloudDialogflowCxV3KnowledgeConnectorSettings( o.knowledgeConnectorSettings!, ); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed87(o.transitionRouteGroups!); - checkUnnamed88(o.transitionRoutes!); + checkUnnamed89(o.transitionRouteGroups!); + checkUnnamed90(o.transitionRoutes!); } buildCounterGoogleCloudDialogflowCxV3Page--; } +core.int buildCounterGoogleCloudDialogflowCxV3ParameterDefinition = 0; +api.GoogleCloudDialogflowCxV3ParameterDefinition +buildGoogleCloudDialogflowCxV3ParameterDefinition() { + final o = api.GoogleCloudDialogflowCxV3ParameterDefinition(); + buildCounterGoogleCloudDialogflowCxV3ParameterDefinition++; + if (buildCounterGoogleCloudDialogflowCxV3ParameterDefinition < 3) { + o.description = 'foo'; + o.name = 'foo'; + o.type = 'foo'; + o.typeSchema = buildGoogleCloudDialogflowCxV3TypeSchema(); + } + buildCounterGoogleCloudDialogflowCxV3ParameterDefinition--; + return o; +} + +void checkGoogleCloudDialogflowCxV3ParameterDefinition( + api.GoogleCloudDialogflowCxV3ParameterDefinition o, +) { + buildCounterGoogleCloudDialogflowCxV3ParameterDefinition++; + if (buildCounterGoogleCloudDialogflowCxV3ParameterDefinition < 3) { + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.type!, unittest.equals('foo')); + checkGoogleCloudDialogflowCxV3TypeSchema(o.typeSchema!); + } + buildCounterGoogleCloudDialogflowCxV3ParameterDefinition--; +} + core.int buildCounterGoogleCloudDialogflowCxV3Phrase = 0; api.GoogleCloudDialogflowCxV3Phrase buildGoogleCloudDialogflowCxV3Phrase() { final o = api.GoogleCloudDialogflowCxV3Phrase(); @@ -5266,36 +5378,64 @@ void checkGoogleCloudDialogflowCxV3Phrase( buildCounterGoogleCloudDialogflowCxV3Phrase--; } -core.List buildUnnamed89() => [ +core.List buildUnnamed91() => [ buildGoogleCloudDialogflowCxV3Handler(), buildGoogleCloudDialogflowCxV3Handler(), ]; -void checkUnnamed89(core.List o) { +void checkUnnamed91(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Handler(o[0]); checkGoogleCloudDialogflowCxV3Handler(o[1]); } -core.List buildUnnamed90() => ['foo', 'foo']; +core.List buildUnnamed92() => + [ + buildGoogleCloudDialogflowCxV3ParameterDefinition(), + buildGoogleCloudDialogflowCxV3ParameterDefinition(), + ]; -void checkUnnamed90(core.List o) { +void checkUnnamed92( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudDialogflowCxV3ParameterDefinition(o[0]); + checkGoogleCloudDialogflowCxV3ParameterDefinition(o[1]); +} + +core.List buildUnnamed93() => + [ + buildGoogleCloudDialogflowCxV3ParameterDefinition(), + buildGoogleCloudDialogflowCxV3ParameterDefinition(), + ]; + +void checkUnnamed93( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudDialogflowCxV3ParameterDefinition(o[0]); + checkGoogleCloudDialogflowCxV3ParameterDefinition(o[1]); +} + +core.List buildUnnamed94() => ['foo', 'foo']; + +void checkUnnamed94(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed91() => ['foo', 'foo']; +core.List buildUnnamed95() => ['foo', 'foo']; -void checkUnnamed91(core.List o) { +void checkUnnamed95(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed92() => ['foo', 'foo']; +core.List buildUnnamed96() => ['foo', 'foo']; -void checkUnnamed92(core.List o) { +void checkUnnamed96(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5309,13 +5449,16 @@ api.GoogleCloudDialogflowCxV3Playbook buildGoogleCloudDialogflowCxV3Playbook() { o.createTime = 'foo'; o.displayName = 'foo'; o.goal = 'foo'; - o.handlers = buildUnnamed89(); + o.handlers = buildUnnamed91(); + o.inputParameterDefinitions = buildUnnamed92(); o.instruction = buildGoogleCloudDialogflowCxV3PlaybookInstruction(); o.llmModelSettings = buildGoogleCloudDialogflowCxV3LlmModelSettings(); o.name = 'foo'; - o.referencedFlows = buildUnnamed90(); - o.referencedPlaybooks = buildUnnamed91(); - o.referencedTools = buildUnnamed92(); + o.outputParameterDefinitions = buildUnnamed93(); + o.playbookType = 'foo'; + o.referencedFlows = buildUnnamed94(); + o.referencedPlaybooks = buildUnnamed95(); + o.referencedTools = buildUnnamed96(); o.tokenCount = 'foo'; o.updateTime = 'foo'; } @@ -5331,13 +5474,16 @@ void checkGoogleCloudDialogflowCxV3Playbook( unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.goal!, unittest.equals('foo')); - checkUnnamed89(o.handlers!); + checkUnnamed91(o.handlers!); + checkUnnamed92(o.inputParameterDefinitions!); checkGoogleCloudDialogflowCxV3PlaybookInstruction(o.instruction!); checkGoogleCloudDialogflowCxV3LlmModelSettings(o.llmModelSettings!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed90(o.referencedFlows!); - checkUnnamed91(o.referencedPlaybooks!); - checkUnnamed92(o.referencedTools!); + checkUnnamed93(o.outputParameterDefinitions!); + unittest.expect(o.playbookType!, unittest.equals('foo')); + checkUnnamed94(o.referencedFlows!); + checkUnnamed95(o.referencedPlaybooks!); + checkUnnamed96(o.referencedTools!); unittest.expect(o.tokenCount!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); } @@ -5392,12 +5538,12 @@ void checkGoogleCloudDialogflowCxV3PlaybookInput( buildCounterGoogleCloudDialogflowCxV3PlaybookInput--; } -core.List buildUnnamed93() => [ +core.List buildUnnamed97() => [ buildGoogleCloudDialogflowCxV3PlaybookStep(), buildGoogleCloudDialogflowCxV3PlaybookStep(), ]; -void checkUnnamed93(core.List o) { +void checkUnnamed97(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3PlaybookStep(o[0]); checkGoogleCloudDialogflowCxV3PlaybookStep(o[1]); @@ -5410,7 +5556,7 @@ buildGoogleCloudDialogflowCxV3PlaybookInstruction() { buildCounterGoogleCloudDialogflowCxV3PlaybookInstruction++; if (buildCounterGoogleCloudDialogflowCxV3PlaybookInstruction < 3) { o.guidelines = 'foo'; - o.steps = buildUnnamed93(); + o.steps = buildUnnamed97(); } buildCounterGoogleCloudDialogflowCxV3PlaybookInstruction--; return o; @@ -5422,7 +5568,7 @@ void checkGoogleCloudDialogflowCxV3PlaybookInstruction( buildCounterGoogleCloudDialogflowCxV3PlaybookInstruction++; if (buildCounterGoogleCloudDialogflowCxV3PlaybookInstruction < 3) { unittest.expect(o.guidelines!, unittest.equals('foo')); - checkUnnamed93(o.steps!); + checkUnnamed97(o.steps!); } buildCounterGoogleCloudDialogflowCxV3PlaybookInstruction--; } @@ -5479,12 +5625,12 @@ void checkGoogleCloudDialogflowCxV3PlaybookOutput( buildCounterGoogleCloudDialogflowCxV3PlaybookOutput--; } -core.List buildUnnamed94() => [ +core.List buildUnnamed98() => [ buildGoogleCloudDialogflowCxV3PlaybookStep(), buildGoogleCloudDialogflowCxV3PlaybookStep(), ]; -void checkUnnamed94(core.List o) { +void checkUnnamed98(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3PlaybookStep(o[0]); checkGoogleCloudDialogflowCxV3PlaybookStep(o[1]); @@ -5496,7 +5642,7 @@ buildGoogleCloudDialogflowCxV3PlaybookStep() { final o = api.GoogleCloudDialogflowCxV3PlaybookStep(); buildCounterGoogleCloudDialogflowCxV3PlaybookStep++; if (buildCounterGoogleCloudDialogflowCxV3PlaybookStep < 3) { - o.steps = buildUnnamed94(); + o.steps = buildUnnamed98(); o.text = 'foo'; } buildCounterGoogleCloudDialogflowCxV3PlaybookStep--; @@ -5508,18 +5654,42 @@ void checkGoogleCloudDialogflowCxV3PlaybookStep( ) { buildCounterGoogleCloudDialogflowCxV3PlaybookStep++; if (buildCounterGoogleCloudDialogflowCxV3PlaybookStep < 3) { - checkUnnamed94(o.steps!); + checkUnnamed98(o.steps!); unittest.expect(o.text!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3PlaybookStep--; } -core.List buildUnnamed95() => [ +core.int buildCounterGoogleCloudDialogflowCxV3PlaybookTransition = 0; +api.GoogleCloudDialogflowCxV3PlaybookTransition +buildGoogleCloudDialogflowCxV3PlaybookTransition() { + final o = api.GoogleCloudDialogflowCxV3PlaybookTransition(); + buildCounterGoogleCloudDialogflowCxV3PlaybookTransition++; + if (buildCounterGoogleCloudDialogflowCxV3PlaybookTransition < 3) { + o.displayName = 'foo'; + o.playbook = 'foo'; + } + buildCounterGoogleCloudDialogflowCxV3PlaybookTransition--; + return o; +} + +void checkGoogleCloudDialogflowCxV3PlaybookTransition( + api.GoogleCloudDialogflowCxV3PlaybookTransition o, +) { + buildCounterGoogleCloudDialogflowCxV3PlaybookTransition++; + if (buildCounterGoogleCloudDialogflowCxV3PlaybookTransition < 3) { + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.playbook!, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowCxV3PlaybookTransition--; +} + +core.List buildUnnamed99() => [ buildGoogleCloudDialogflowCxV3Example(), buildGoogleCloudDialogflowCxV3Example(), ]; -void checkUnnamed95(core.List o) { +void checkUnnamed99(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Example(o[0]); checkGoogleCloudDialogflowCxV3Example(o[1]); @@ -5532,7 +5702,7 @@ buildGoogleCloudDialogflowCxV3PlaybookVersion() { buildCounterGoogleCloudDialogflowCxV3PlaybookVersion++; if (buildCounterGoogleCloudDialogflowCxV3PlaybookVersion < 3) { o.description = 'foo'; - o.examples = buildUnnamed95(); + o.examples = buildUnnamed99(); o.name = 'foo'; o.playbook = buildGoogleCloudDialogflowCxV3Playbook(); o.updateTime = 'foo'; @@ -5547,7 +5717,7 @@ void checkGoogleCloudDialogflowCxV3PlaybookVersion( buildCounterGoogleCloudDialogflowCxV3PlaybookVersion++; if (buildCounterGoogleCloudDialogflowCxV3PlaybookVersion < 3) { unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed95(o.examples!); + checkUnnamed99(o.examples!); unittest.expect(o.name!, unittest.equals('foo')); checkGoogleCloudDialogflowCxV3Playbook(o.playbook!); unittest.expect(o.updateTime!, unittest.equals('foo')); @@ -5589,7 +5759,7 @@ void checkGoogleCloudDialogflowCxV3QueryInput( buildCounterGoogleCloudDialogflowCxV3QueryInput--; } -core.Map buildUnnamed96() => { +core.Map buildUnnamed100() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -5602,7 +5772,7 @@ core.Map buildUnnamed96() => { }, }; -void checkUnnamed96(core.Map o) { +void checkUnnamed100(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted15 = (o['x']!) as core.Map; unittest.expect(casted15, unittest.hasLength(3)); @@ -5616,15 +5786,15 @@ void checkUnnamed96(core.Map o) { unittest.expect(casted16['string'], unittest.equals('foo')); } -core.List buildUnnamed97() => ['foo', 'foo']; +core.List buildUnnamed101() => ['foo', 'foo']; -void checkUnnamed97(core.List o) { +void checkUnnamed101(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed98() => { +core.Map buildUnnamed102() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -5637,7 +5807,7 @@ core.Map buildUnnamed98() => { }, }; -void checkUnnamed98(core.Map o) { +void checkUnnamed102(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted17 = (o['x']!) as core.Map; unittest.expect(casted17, unittest.hasLength(3)); @@ -5651,7 +5821,7 @@ void checkUnnamed98(core.Map o) { unittest.expect(casted18['string'], unittest.equals('foo')); } -core.Map buildUnnamed99() => { +core.Map buildUnnamed103() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -5664,7 +5834,7 @@ core.Map buildUnnamed99() => { }, }; -void checkUnnamed99(core.Map o) { +void checkUnnamed103(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted19 = (o['x']!) as core.Map; unittest.expect(casted19, unittest.hasLength(3)); @@ -5678,12 +5848,12 @@ void checkUnnamed99(core.Map o) { unittest.expect(casted20['string'], unittest.equals('foo')); } -core.List buildUnnamed100() => [ +core.List buildUnnamed104() => [ buildGoogleCloudDialogflowCxV3SessionEntityType(), buildGoogleCloudDialogflowCxV3SessionEntityType(), ]; -void checkUnnamed100( +void checkUnnamed104( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -5691,12 +5861,12 @@ void checkUnnamed100( checkGoogleCloudDialogflowCxV3SessionEntityType(o[1]); } -core.Map buildUnnamed101() => { +core.Map buildUnnamed105() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed101(core.Map o) { +void checkUnnamed105(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -5713,19 +5883,19 @@ buildGoogleCloudDialogflowCxV3QueryParameters() { o.currentPage = 'foo'; o.currentPlaybook = 'foo'; o.disableWebhook = true; - o.endUserMetadata = buildUnnamed96(); - o.flowVersions = buildUnnamed97(); + o.endUserMetadata = buildUnnamed100(); + o.flowVersions = buildUnnamed101(); o.geoLocation = buildGoogleTypeLatLng(); o.llmModelSettings = buildGoogleCloudDialogflowCxV3LlmModelSettings(); o.parameterScope = 'foo'; - o.parameters = buildUnnamed98(); - o.payload = buildUnnamed99(); + o.parameters = buildUnnamed102(); + o.payload = buildUnnamed103(); o.populateDataStoreConnectionSignals = true; o.searchConfig = buildGoogleCloudDialogflowCxV3SearchConfig(); - o.sessionEntityTypes = buildUnnamed100(); + o.sessionEntityTypes = buildUnnamed104(); o.sessionTtl = 'foo'; o.timeZone = 'foo'; - o.webhookHeaders = buildUnnamed101(); + o.webhookHeaders = buildUnnamed105(); } buildCounterGoogleCloudDialogflowCxV3QueryParameters--; return o; @@ -5741,24 +5911,24 @@ void checkGoogleCloudDialogflowCxV3QueryParameters( unittest.expect(o.currentPage!, unittest.equals('foo')); unittest.expect(o.currentPlaybook!, unittest.equals('foo')); unittest.expect(o.disableWebhook!, unittest.isTrue); - checkUnnamed96(o.endUserMetadata!); - checkUnnamed97(o.flowVersions!); + checkUnnamed100(o.endUserMetadata!); + checkUnnamed101(o.flowVersions!); checkGoogleTypeLatLng(o.geoLocation!); checkGoogleCloudDialogflowCxV3LlmModelSettings(o.llmModelSettings!); unittest.expect(o.parameterScope!, unittest.equals('foo')); - checkUnnamed98(o.parameters!); - checkUnnamed99(o.payload!); + checkUnnamed102(o.parameters!); + checkUnnamed103(o.payload!); unittest.expect(o.populateDataStoreConnectionSignals!, unittest.isTrue); checkGoogleCloudDialogflowCxV3SearchConfig(o.searchConfig!); - checkUnnamed100(o.sessionEntityTypes!); + checkUnnamed104(o.sessionEntityTypes!); unittest.expect(o.sessionTtl!, unittest.equals('foo')); unittest.expect(o.timeZone!, unittest.equals('foo')); - checkUnnamed101(o.webhookHeaders!); + checkUnnamed105(o.webhookHeaders!); } buildCounterGoogleCloudDialogflowCxV3QueryParameters--; } -core.Map buildUnnamed102() => { +core.Map buildUnnamed106() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -5771,7 +5941,7 @@ core.Map buildUnnamed102() => { }, }; -void checkUnnamed102(core.Map o) { +void checkUnnamed106(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted21 = (o['x']!) as core.Map; unittest.expect(casted21, unittest.hasLength(3)); @@ -5785,7 +5955,7 @@ void checkUnnamed102(core.Map o) { unittest.expect(casted22['string'], unittest.equals('foo')); } -core.Map buildUnnamed103() => { +core.Map buildUnnamed107() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -5798,7 +5968,7 @@ core.Map buildUnnamed103() => { }, }; -void checkUnnamed103(core.Map o) { +void checkUnnamed107(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted23 = (o['x']!) as core.Map; unittest.expect(casted23, unittest.hasLength(3)); @@ -5812,12 +5982,12 @@ void checkUnnamed103(core.Map o) { unittest.expect(casted24['string'], unittest.equals('foo')); } -core.List buildUnnamed104() => [ +core.List buildUnnamed108() => [ buildGoogleCloudDialogflowCxV3ResponseMessage(), buildGoogleCloudDialogflowCxV3ResponseMessage(), ]; -void checkUnnamed104( +void checkUnnamed108( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -5825,7 +5995,7 @@ void checkUnnamed104( checkGoogleCloudDialogflowCxV3ResponseMessage(o[1]); } -core.Map buildUnnamed105() => { +core.Map buildUnnamed109() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -5838,7 +6008,7 @@ core.Map buildUnnamed105() => { }, }; -void checkUnnamed105(core.Map o) { +void checkUnnamed109(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted25 = (o['x']!) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); @@ -5852,23 +6022,23 @@ void checkUnnamed105(core.Map o) { unittest.expect(casted26['string'], unittest.equals('foo')); } -core.List> buildUnnamed106() => [ - buildUnnamed105(), - buildUnnamed105(), +core.List> buildUnnamed110() => [ + buildUnnamed109(), + buildUnnamed109(), ]; -void checkUnnamed106(core.List> o) { +void checkUnnamed110(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed105(o[0]); - checkUnnamed105(o[1]); + checkUnnamed109(o[0]); + checkUnnamed109(o[1]); } -core.List buildUnnamed107() => [ +core.List buildUnnamed111() => [ buildGoogleRpcStatus(), buildGoogleRpcStatus(), ]; -void checkUnnamed107(core.List o) { +void checkUnnamed111(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleRpcStatus(o[0]); checkGoogleRpcStatus(o[1]); @@ -5885,22 +6055,22 @@ buildGoogleCloudDialogflowCxV3QueryResult() { o.currentPage = buildGoogleCloudDialogflowCxV3Page(); o.dataStoreConnectionSignals = buildGoogleCloudDialogflowCxV3DataStoreConnectionSignals(); - o.diagnosticInfo = buildUnnamed102(); + o.diagnosticInfo = buildUnnamed106(); o.dtmf = buildGoogleCloudDialogflowCxV3DtmfInput(); o.intent = buildGoogleCloudDialogflowCxV3Intent(); o.intentDetectionConfidence = 42.0; o.languageCode = 'foo'; o.match = buildGoogleCloudDialogflowCxV3Match(); - o.parameters = buildUnnamed103(); - o.responseMessages = buildUnnamed104(); + o.parameters = buildUnnamed107(); + o.responseMessages = buildUnnamed108(); o.sentimentAnalysisResult = buildGoogleCloudDialogflowCxV3SentimentAnalysisResult(); o.text = 'foo'; o.transcript = 'foo'; o.triggerEvent = 'foo'; o.triggerIntent = 'foo'; - o.webhookPayloads = buildUnnamed106(); - o.webhookStatuses = buildUnnamed107(); + o.webhookPayloads = buildUnnamed110(); + o.webhookStatuses = buildUnnamed111(); } buildCounterGoogleCloudDialogflowCxV3QueryResult--; return o; @@ -5917,14 +6087,14 @@ void checkGoogleCloudDialogflowCxV3QueryResult( checkGoogleCloudDialogflowCxV3DataStoreConnectionSignals( o.dataStoreConnectionSignals!, ); - checkUnnamed102(o.diagnosticInfo!); + checkUnnamed106(o.diagnosticInfo!); checkGoogleCloudDialogflowCxV3DtmfInput(o.dtmf!); checkGoogleCloudDialogflowCxV3Intent(o.intent!); unittest.expect(o.intentDetectionConfidence!, unittest.equals(42.0)); unittest.expect(o.languageCode!, unittest.equals('foo')); checkGoogleCloudDialogflowCxV3Match(o.match!); - checkUnnamed103(o.parameters!); - checkUnnamed104(o.responseMessages!); + checkUnnamed107(o.parameters!); + checkUnnamed108(o.responseMessages!); checkGoogleCloudDialogflowCxV3SentimentAnalysisResult( o.sentimentAnalysisResult!, ); @@ -5932,8 +6102,8 @@ void checkGoogleCloudDialogflowCxV3QueryResult( unittest.expect(o.transcript!, unittest.equals('foo')); unittest.expect(o.triggerEvent!, unittest.equals('foo')); unittest.expect(o.triggerIntent!, unittest.equals('foo')); - checkUnnamed106(o.webhookPayloads!); - checkUnnamed107(o.webhookStatuses!); + checkUnnamed110(o.webhookPayloads!); + checkUnnamed111(o.webhookStatuses!); } buildCounterGoogleCloudDialogflowCxV3QueryResult--; } @@ -5962,7 +6132,7 @@ void checkGoogleCloudDialogflowCxV3ResourceName( buildCounterGoogleCloudDialogflowCxV3ResourceName--; } -core.Map buildUnnamed108() => { +core.Map buildUnnamed112() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -5975,7 +6145,7 @@ core.Map buildUnnamed108() => { }, }; -void checkUnnamed108(core.Map o) { +void checkUnnamed112(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted27 = (o['x']!) as core.Map; unittest.expect(casted27, unittest.hasLength(3)); @@ -6007,7 +6177,7 @@ buildGoogleCloudDialogflowCxV3ResponseMessage() { o.mixedAudio = buildGoogleCloudDialogflowCxV3ResponseMessageMixedAudio(); o.outputAudioText = buildGoogleCloudDialogflowCxV3ResponseMessageOutputAudioText(); - o.payload = buildUnnamed108(); + o.payload = buildUnnamed112(); o.playAudio = buildGoogleCloudDialogflowCxV3ResponseMessagePlayAudio(); o.responseType = 'foo'; o.telephonyTransferCall = @@ -6041,7 +6211,7 @@ void checkGoogleCloudDialogflowCxV3ResponseMessage( checkGoogleCloudDialogflowCxV3ResponseMessageOutputAudioText( o.outputAudioText!, ); - checkUnnamed108(o.payload!); + checkUnnamed112(o.payload!); checkGoogleCloudDialogflowCxV3ResponseMessagePlayAudio(o.playAudio!); unittest.expect(o.responseType!, unittest.equals('foo')); checkGoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall( @@ -6053,7 +6223,7 @@ void checkGoogleCloudDialogflowCxV3ResponseMessage( buildCounterGoogleCloudDialogflowCxV3ResponseMessage--; } -core.Map buildUnnamed109() => { +core.Map buildUnnamed113() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -6066,7 +6236,7 @@ core.Map buildUnnamed109() => { }, }; -void checkUnnamed109(core.Map o) { +void checkUnnamed113(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted29 = (o['x']!) as core.Map; unittest.expect(casted29, unittest.hasLength(3)); @@ -6088,7 +6258,7 @@ buildGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess() { buildCounterGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess < 3) { - o.metadata = buildUnnamed109(); + o.metadata = buildUnnamed113(); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess--; return o; @@ -6100,7 +6270,7 @@ void checkGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess( buildCounterGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess < 3) { - checkUnnamed109(o.metadata!); + checkUnnamed113(o.metadata!); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess--; } @@ -6144,7 +6314,7 @@ void checkGoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard( buildCounterGoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard--; } -core.Map buildUnnamed110() => { +core.Map buildUnnamed114() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -6157,7 +6327,7 @@ core.Map buildUnnamed110() => { }, }; -void checkUnnamed110(core.Map o) { +void checkUnnamed114(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted31 = (o['x']!) as core.Map; unittest.expect(casted31, unittest.hasLength(3)); @@ -6179,7 +6349,7 @@ buildGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff() { buildCounterGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff < 3) { - o.metadata = buildUnnamed110(); + o.metadata = buildUnnamed114(); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff--; return o; @@ -6191,18 +6361,18 @@ void checkGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff( buildCounterGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff < 3) { - checkUnnamed110(o.metadata!); + checkUnnamed114(o.metadata!); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff--; } core.List -buildUnnamed111() => [ +buildUnnamed115() => [ buildGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment(), buildGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment(), ]; -void checkUnnamed111( +void checkUnnamed115( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -6216,7 +6386,7 @@ buildGoogleCloudDialogflowCxV3ResponseMessageMixedAudio() { final o = api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudio(); buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudio++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudio < 3) { - o.segments = buildUnnamed111(); + o.segments = buildUnnamed115(); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudio--; return o; @@ -6227,7 +6397,7 @@ void checkGoogleCloudDialogflowCxV3ResponseMessageMixedAudio( ) { buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudio++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudio < 3) { - checkUnnamed111(o.segments!); + checkUnnamed115(o.segments!); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudio--; } @@ -6337,9 +6507,9 @@ void checkGoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall( buildCounterGoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall--; } -core.List buildUnnamed112() => ['foo', 'foo']; +core.List buildUnnamed116() => ['foo', 'foo']; -void checkUnnamed112(core.List o) { +void checkUnnamed116(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6352,7 +6522,7 @@ buildGoogleCloudDialogflowCxV3ResponseMessageText() { buildCounterGoogleCloudDialogflowCxV3ResponseMessageText++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageText < 3) { o.allowPlaybackInterruption = true; - o.text = buildUnnamed112(); + o.text = buildUnnamed116(); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageText--; return o; @@ -6364,7 +6534,7 @@ void checkGoogleCloudDialogflowCxV3ResponseMessageText( buildCounterGoogleCloudDialogflowCxV3ResponseMessageText++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageText < 3) { unittest.expect(o.allowPlaybackInterruption!, unittest.isTrue); - checkUnnamed112(o.text!); + checkUnnamed116(o.text!); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageText--; } @@ -6501,12 +6671,12 @@ void checkGoogleCloudDialogflowCxV3RestoreToolVersionResponse( } core.List -buildUnnamed113() => [ +buildUnnamed117() => [ buildGoogleCloudDialogflowCxV3RolloutConfigRolloutStep(), buildGoogleCloudDialogflowCxV3RolloutConfigRolloutStep(), ]; -void checkUnnamed113( +void checkUnnamed117( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -6522,7 +6692,7 @@ buildGoogleCloudDialogflowCxV3RolloutConfig() { if (buildCounterGoogleCloudDialogflowCxV3RolloutConfig < 3) { o.failureCondition = 'foo'; o.rolloutCondition = 'foo'; - o.rolloutSteps = buildUnnamed113(); + o.rolloutSteps = buildUnnamed117(); } buildCounterGoogleCloudDialogflowCxV3RolloutConfig--; return o; @@ -6535,7 +6705,7 @@ void checkGoogleCloudDialogflowCxV3RolloutConfig( if (buildCounterGoogleCloudDialogflowCxV3RolloutConfig < 3) { unittest.expect(o.failureCondition!, unittest.equals('foo')); unittest.expect(o.rolloutCondition!, unittest.equals('foo')); - checkUnnamed113(o.rolloutSteps!); + checkUnnamed117(o.rolloutSteps!); } buildCounterGoogleCloudDialogflowCxV3RolloutConfig--; } @@ -6633,12 +6803,12 @@ void checkGoogleCloudDialogflowCxV3RunTestCaseRequest( } core.List -buildUnnamed114() => [ +buildUnnamed118() => [ buildGoogleCloudDialogflowCxV3SafetySettingsPhrase(), buildGoogleCloudDialogflowCxV3SafetySettingsPhrase(), ]; -void checkUnnamed114( +void checkUnnamed118( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -6652,7 +6822,7 @@ buildGoogleCloudDialogflowCxV3SafetySettings() { final o = api.GoogleCloudDialogflowCxV3SafetySettings(); buildCounterGoogleCloudDialogflowCxV3SafetySettings++; if (buildCounterGoogleCloudDialogflowCxV3SafetySettings < 3) { - o.bannedPhrases = buildUnnamed114(); + o.bannedPhrases = buildUnnamed118(); o.defaultBannedPhraseMatchStrategy = 'foo'; o.promptSecuritySettings = buildGoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings(); @@ -6666,7 +6836,7 @@ void checkGoogleCloudDialogflowCxV3SafetySettings( ) { buildCounterGoogleCloudDialogflowCxV3SafetySettings++; if (buildCounterGoogleCloudDialogflowCxV3SafetySettings < 3) { - checkUnnamed114(o.bannedPhrases!); + checkUnnamed118(o.bannedPhrases!); unittest.expect( o.defaultBannedPhraseMatchStrategy!, unittest.equals('foo'), @@ -6727,23 +6897,23 @@ void checkGoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings( buildCounterGoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings--; } -core.List buildUnnamed115() => [ +core.List buildUnnamed119() => [ buildGoogleCloudDialogflowCxV3BoostSpecs(), buildGoogleCloudDialogflowCxV3BoostSpecs(), ]; -void checkUnnamed115(core.List o) { +void checkUnnamed119(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3BoostSpecs(o[0]); checkGoogleCloudDialogflowCxV3BoostSpecs(o[1]); } -core.List buildUnnamed116() => [ +core.List buildUnnamed120() => [ buildGoogleCloudDialogflowCxV3FilterSpecs(), buildGoogleCloudDialogflowCxV3FilterSpecs(), ]; -void checkUnnamed116(core.List o) { +void checkUnnamed120(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3FilterSpecs(o[0]); checkGoogleCloudDialogflowCxV3FilterSpecs(o[1]); @@ -6755,8 +6925,8 @@ buildGoogleCloudDialogflowCxV3SearchConfig() { final o = api.GoogleCloudDialogflowCxV3SearchConfig(); buildCounterGoogleCloudDialogflowCxV3SearchConfig++; if (buildCounterGoogleCloudDialogflowCxV3SearchConfig < 3) { - o.boostSpecs = buildUnnamed115(); - o.filterSpecs = buildUnnamed116(); + o.boostSpecs = buildUnnamed119(); + o.filterSpecs = buildUnnamed120(); } buildCounterGoogleCloudDialogflowCxV3SearchConfig--; return o; @@ -6767,15 +6937,15 @@ void checkGoogleCloudDialogflowCxV3SearchConfig( ) { buildCounterGoogleCloudDialogflowCxV3SearchConfig++; if (buildCounterGoogleCloudDialogflowCxV3SearchConfig < 3) { - checkUnnamed115(o.boostSpecs!); - checkUnnamed116(o.filterSpecs!); + checkUnnamed119(o.boostSpecs!); + checkUnnamed120(o.filterSpecs!); } buildCounterGoogleCloudDialogflowCxV3SearchConfig--; } -core.List buildUnnamed117() => ['foo', 'foo']; +core.List buildUnnamed121() => ['foo', 'foo']; -void checkUnnamed117(core.List o) { +void checkUnnamed121(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6795,7 +6965,7 @@ buildGoogleCloudDialogflowCxV3SecuritySettings() { buildGoogleCloudDialogflowCxV3SecuritySettingsInsightsExportSettings(); o.inspectTemplate = 'foo'; o.name = 'foo'; - o.purgeDataTypes = buildUnnamed117(); + o.purgeDataTypes = buildUnnamed121(); o.redactionScope = 'foo'; o.redactionStrategy = 'foo'; o.retentionStrategy = 'foo'; @@ -6820,7 +6990,7 @@ void checkGoogleCloudDialogflowCxV3SecuritySettings( ); unittest.expect(o.inspectTemplate!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed117(o.purgeDataTypes!); + checkUnnamed121(o.purgeDataTypes!); unittest.expect(o.redactionScope!, unittest.equals('foo')); unittest.expect(o.redactionStrategy!, unittest.equals('foo')); unittest.expect(o.retentionStrategy!, unittest.equals('foo')); @@ -6912,12 +7082,12 @@ void checkGoogleCloudDialogflowCxV3SentimentAnalysisResult( buildCounterGoogleCloudDialogflowCxV3SentimentAnalysisResult--; } -core.List buildUnnamed118() => [ +core.List buildUnnamed122() => [ buildGoogleCloudDialogflowCxV3EntityTypeEntity(), buildGoogleCloudDialogflowCxV3EntityTypeEntity(), ]; -void checkUnnamed118( +void checkUnnamed122( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -6931,7 +7101,7 @@ buildGoogleCloudDialogflowCxV3SessionEntityType() { final o = api.GoogleCloudDialogflowCxV3SessionEntityType(); buildCounterGoogleCloudDialogflowCxV3SessionEntityType++; if (buildCounterGoogleCloudDialogflowCxV3SessionEntityType < 3) { - o.entities = buildUnnamed118(); + o.entities = buildUnnamed122(); o.entityOverrideMode = 'foo'; o.name = 'foo'; } @@ -6944,7 +7114,7 @@ void checkGoogleCloudDialogflowCxV3SessionEntityType( ) { buildCounterGoogleCloudDialogflowCxV3SessionEntityType++; if (buildCounterGoogleCloudDialogflowCxV3SessionEntityType < 3) { - checkUnnamed118(o.entities!); + checkUnnamed122(o.entities!); unittest.expect(o.entityOverrideMode!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); } @@ -7035,9 +7205,9 @@ void checkGoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest( buildCounterGoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest--; } -core.List buildUnnamed119() => ['foo', 'foo']; +core.List buildUnnamed123() => ['foo', 'foo']; -void checkUnnamed119(core.List o) { +void checkUnnamed123(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7049,7 +7219,7 @@ buildGoogleCloudDialogflowCxV3SynthesizeSpeechConfig() { final o = api.GoogleCloudDialogflowCxV3SynthesizeSpeechConfig(); buildCounterGoogleCloudDialogflowCxV3SynthesizeSpeechConfig++; if (buildCounterGoogleCloudDialogflowCxV3SynthesizeSpeechConfig < 3) { - o.effectsProfileId = buildUnnamed119(); + o.effectsProfileId = buildUnnamed123(); o.pitch = 42.0; o.speakingRate = 42.0; o.voice = buildGoogleCloudDialogflowCxV3VoiceSelectionParams(); @@ -7064,7 +7234,7 @@ void checkGoogleCloudDialogflowCxV3SynthesizeSpeechConfig( ) { buildCounterGoogleCloudDialogflowCxV3SynthesizeSpeechConfig++; if (buildCounterGoogleCloudDialogflowCxV3SynthesizeSpeechConfig < 3) { - checkUnnamed119(o.effectsProfileId!); + checkUnnamed123(o.effectsProfileId!); unittest.expect(o.pitch!, unittest.equals(42.0)); unittest.expect(o.speakingRate!, unittest.equals(42.0)); checkGoogleCloudDialogflowCxV3VoiceSelectionParams(o.voice!); @@ -7073,20 +7243,20 @@ void checkGoogleCloudDialogflowCxV3SynthesizeSpeechConfig( buildCounterGoogleCloudDialogflowCxV3SynthesizeSpeechConfig--; } -core.List buildUnnamed120() => ['foo', 'foo']; +core.List buildUnnamed124() => ['foo', 'foo']; -void checkUnnamed120(core.List o) { +void checkUnnamed124(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed121() => [ +core.List buildUnnamed125() => [ buildGoogleCloudDialogflowCxV3ConversationTurn(), buildGoogleCloudDialogflowCxV3ConversationTurn(), ]; -void checkUnnamed121( +void checkUnnamed125( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -7104,8 +7274,8 @@ api.GoogleCloudDialogflowCxV3TestCase buildGoogleCloudDialogflowCxV3TestCase() { o.lastTestResult = buildGoogleCloudDialogflowCxV3TestCaseResult(); o.name = 'foo'; o.notes = 'foo'; - o.tags = buildUnnamed120(); - o.testCaseConversationTurns = buildUnnamed121(); + o.tags = buildUnnamed124(); + o.testCaseConversationTurns = buildUnnamed125(); o.testConfig = buildGoogleCloudDialogflowCxV3TestConfig(); } buildCounterGoogleCloudDialogflowCxV3TestCase--; @@ -7122,19 +7292,19 @@ void checkGoogleCloudDialogflowCxV3TestCase( checkGoogleCloudDialogflowCxV3TestCaseResult(o.lastTestResult!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.notes!, unittest.equals('foo')); - checkUnnamed120(o.tags!); - checkUnnamed121(o.testCaseConversationTurns!); + checkUnnamed124(o.tags!); + checkUnnamed125(o.testCaseConversationTurns!); checkGoogleCloudDialogflowCxV3TestConfig(o.testConfig!); } buildCounterGoogleCloudDialogflowCxV3TestCase--; } -core.List buildUnnamed122() => [ +core.List buildUnnamed126() => [ buildGoogleCloudDialogflowCxV3ConversationTurn(), buildGoogleCloudDialogflowCxV3ConversationTurn(), ]; -void checkUnnamed122( +void checkUnnamed126( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -7148,7 +7318,7 @@ buildGoogleCloudDialogflowCxV3TestCaseResult() { final o = api.GoogleCloudDialogflowCxV3TestCaseResult(); buildCounterGoogleCloudDialogflowCxV3TestCaseResult++; if (buildCounterGoogleCloudDialogflowCxV3TestCaseResult < 3) { - o.conversationTurns = buildUnnamed122(); + o.conversationTurns = buildUnnamed126(); o.environment = 'foo'; o.name = 'foo'; o.testResult = 'foo'; @@ -7163,7 +7333,7 @@ void checkGoogleCloudDialogflowCxV3TestCaseResult( ) { buildCounterGoogleCloudDialogflowCxV3TestCaseResult++; if (buildCounterGoogleCloudDialogflowCxV3TestCaseResult < 3) { - checkUnnamed122(o.conversationTurns!); + checkUnnamed126(o.conversationTurns!); unittest.expect(o.environment!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.testResult!, unittest.equals('foo')); @@ -7172,9 +7342,9 @@ void checkGoogleCloudDialogflowCxV3TestCaseResult( buildCounterGoogleCloudDialogflowCxV3TestCaseResult--; } -core.List buildUnnamed123() => ['foo', 'foo']; +core.List buildUnnamed127() => ['foo', 'foo']; -void checkUnnamed123(core.List o) { +void checkUnnamed127(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7188,7 +7358,7 @@ buildGoogleCloudDialogflowCxV3TestConfig() { if (buildCounterGoogleCloudDialogflowCxV3TestConfig < 3) { o.flow = 'foo'; o.page = 'foo'; - o.trackingParameters = buildUnnamed123(); + o.trackingParameters = buildUnnamed127(); } buildCounterGoogleCloudDialogflowCxV3TestConfig--; return o; @@ -7201,7 +7371,7 @@ void checkGoogleCloudDialogflowCxV3TestConfig( if (buildCounterGoogleCloudDialogflowCxV3TestConfig < 3) { unittest.expect(o.flow!, unittest.equals('foo')); unittest.expect(o.page!, unittest.equals('foo')); - checkUnnamed123(o.trackingParameters!); + checkUnnamed127(o.trackingParameters!); } buildCounterGoogleCloudDialogflowCxV3TestConfig--; } @@ -7253,12 +7423,12 @@ void checkGoogleCloudDialogflowCxV3TextInput( } core.Map -buildUnnamed124() => { +buildUnnamed128() => { 'x': buildGoogleCloudDialogflowCxV3SynthesizeSpeechConfig(), 'y': buildGoogleCloudDialogflowCxV3SynthesizeSpeechConfig(), }; -void checkUnnamed124( +void checkUnnamed128( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -7272,7 +7442,7 @@ buildGoogleCloudDialogflowCxV3TextToSpeechSettings() { final o = api.GoogleCloudDialogflowCxV3TextToSpeechSettings(); buildCounterGoogleCloudDialogflowCxV3TextToSpeechSettings++; if (buildCounterGoogleCloudDialogflowCxV3TextToSpeechSettings < 3) { - o.synthesizeSpeechConfigs = buildUnnamed124(); + o.synthesizeSpeechConfigs = buildUnnamed128(); } buildCounterGoogleCloudDialogflowCxV3TextToSpeechSettings--; return o; @@ -7283,7 +7453,7 @@ void checkGoogleCloudDialogflowCxV3TextToSpeechSettings( ) { buildCounterGoogleCloudDialogflowCxV3TextToSpeechSettings++; if (buildCounterGoogleCloudDialogflowCxV3TextToSpeechSettings < 3) { - checkUnnamed124(o.synthesizeSpeechConfigs!); + checkUnnamed128(o.synthesizeSpeechConfigs!); } buildCounterGoogleCloudDialogflowCxV3TextToSpeechSettings--; } @@ -7413,9 +7583,9 @@ void checkGoogleCloudDialogflowCxV3ToolAuthenticationBearerTokenConfig( buildCounterGoogleCloudDialogflowCxV3ToolAuthenticationBearerTokenConfig--; } -core.List buildUnnamed125() => ['foo', 'foo']; +core.List buildUnnamed129() => ['foo', 'foo']; -void checkUnnamed125(core.List o) { +void checkUnnamed129(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7430,7 +7600,7 @@ buildGoogleCloudDialogflowCxV3ToolAuthenticationOAuthConfig() { o.clientId = 'foo'; o.clientSecret = 'foo'; o.oauthGrantType = 'foo'; - o.scopes = buildUnnamed125(); + o.scopes = buildUnnamed129(); o.secretVersionForClientSecret = 'foo'; o.tokenEndpoint = 'foo'; } @@ -7446,7 +7616,7 @@ void checkGoogleCloudDialogflowCxV3ToolAuthenticationOAuthConfig( unittest.expect(o.clientId!, unittest.equals('foo')); unittest.expect(o.clientSecret!, unittest.equals('foo')); unittest.expect(o.oauthGrantType!, unittest.equals('foo')); - checkUnnamed125(o.scopes!); + checkUnnamed129(o.scopes!); unittest.expect(o.secretVersionForClientSecret!, unittest.equals('foo')); unittest.expect(o.tokenEndpoint!, unittest.equals('foo')); } @@ -7480,7 +7650,7 @@ void checkGoogleCloudDialogflowCxV3ToolAuthenticationServiceAgentAuthConfig( buildCounterGoogleCloudDialogflowCxV3ToolAuthenticationServiceAgentAuthConfig--; } -core.Map buildUnnamed126() => { +core.Map buildUnnamed130() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -7493,7 +7663,7 @@ core.Map buildUnnamed126() => { }, }; -void checkUnnamed126(core.Map o) { +void checkUnnamed130(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted33 = (o['x']!) as core.Map; unittest.expect(casted33, unittest.hasLength(3)); @@ -7513,7 +7683,7 @@ api.GoogleCloudDialogflowCxV3ToolCall buildGoogleCloudDialogflowCxV3ToolCall() { buildCounterGoogleCloudDialogflowCxV3ToolCall++; if (buildCounterGoogleCloudDialogflowCxV3ToolCall < 3) { o.action = 'foo'; - o.inputParameters = buildUnnamed126(); + o.inputParameters = buildUnnamed130(); o.tool = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ToolCall--; @@ -7526,13 +7696,13 @@ void checkGoogleCloudDialogflowCxV3ToolCall( buildCounterGoogleCloudDialogflowCxV3ToolCall++; if (buildCounterGoogleCloudDialogflowCxV3ToolCall < 3) { unittest.expect(o.action!, unittest.equals('foo')); - checkUnnamed126(o.inputParameters!); + checkUnnamed130(o.inputParameters!); unittest.expect(o.tool!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3ToolCall--; } -core.Map buildUnnamed127() => { +core.Map buildUnnamed131() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -7545,7 +7715,7 @@ core.Map buildUnnamed127() => { }, }; -void checkUnnamed127(core.Map o) { +void checkUnnamed131(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted35 = (o['x']!) as core.Map; unittest.expect(casted35, unittest.hasLength(3)); @@ -7567,7 +7737,7 @@ buildGoogleCloudDialogflowCxV3ToolCallResult() { if (buildCounterGoogleCloudDialogflowCxV3ToolCallResult < 3) { o.action = 'foo'; o.error = buildGoogleCloudDialogflowCxV3ToolCallResultError(); - o.outputParameters = buildUnnamed127(); + o.outputParameters = buildUnnamed131(); o.tool = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ToolCallResult--; @@ -7581,7 +7751,7 @@ void checkGoogleCloudDialogflowCxV3ToolCallResult( if (buildCounterGoogleCloudDialogflowCxV3ToolCallResult < 3) { unittest.expect(o.action!, unittest.equals('foo')); checkGoogleCloudDialogflowCxV3ToolCallResultError(o.error!); - checkUnnamed127(o.outputParameters!); + checkUnnamed131(o.outputParameters!); unittest.expect(o.tool!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3ToolCallResult--; @@ -7609,13 +7779,13 @@ void checkGoogleCloudDialogflowCxV3ToolCallResultError( buildCounterGoogleCloudDialogflowCxV3ToolCallResultError--; } -core.List buildUnnamed128() => +core.List buildUnnamed132() => [ buildGoogleCloudDialogflowCxV3DataStoreConnection(), buildGoogleCloudDialogflowCxV3DataStoreConnection(), ]; -void checkUnnamed128( +void checkUnnamed132( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -7629,7 +7799,7 @@ buildGoogleCloudDialogflowCxV3ToolDataStoreTool() { final o = api.GoogleCloudDialogflowCxV3ToolDataStoreTool(); buildCounterGoogleCloudDialogflowCxV3ToolDataStoreTool++; if (buildCounterGoogleCloudDialogflowCxV3ToolDataStoreTool < 3) { - o.dataStoreConnections = buildUnnamed128(); + o.dataStoreConnections = buildUnnamed132(); o.fallbackPrompt = buildGoogleCloudDialogflowCxV3ToolDataStoreToolFallbackPrompt(); } @@ -7642,7 +7812,7 @@ void checkGoogleCloudDialogflowCxV3ToolDataStoreTool( ) { buildCounterGoogleCloudDialogflowCxV3ToolDataStoreTool++; if (buildCounterGoogleCloudDialogflowCxV3ToolDataStoreTool < 3) { - checkUnnamed128(o.dataStoreConnections!); + checkUnnamed132(o.dataStoreConnections!); checkGoogleCloudDialogflowCxV3ToolDataStoreToolFallbackPrompt( o.fallbackPrompt!, ); @@ -7671,7 +7841,7 @@ void checkGoogleCloudDialogflowCxV3ToolDataStoreToolFallbackPrompt( buildCounterGoogleCloudDialogflowCxV3ToolDataStoreToolFallbackPrompt--; } -core.Map buildUnnamed129() => { +core.Map buildUnnamed133() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -7684,7 +7854,7 @@ core.Map buildUnnamed129() => { }, }; -void checkUnnamed129(core.Map o) { +void checkUnnamed133(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted37 = (o['x']!) as core.Map; unittest.expect(casted37, unittest.hasLength(3)); @@ -7698,7 +7868,7 @@ void checkUnnamed129(core.Map o) { unittest.expect(casted38['string'], unittest.equals('foo')); } -core.Map buildUnnamed130() => { +core.Map buildUnnamed134() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -7711,7 +7881,7 @@ core.Map buildUnnamed130() => { }, }; -void checkUnnamed130(core.Map o) { +void checkUnnamed134(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted39 = (o['x']!) as core.Map; unittest.expect(casted39, unittest.hasLength(3)); @@ -7731,8 +7901,8 @@ buildGoogleCloudDialogflowCxV3ToolFunctionTool() { final o = api.GoogleCloudDialogflowCxV3ToolFunctionTool(); buildCounterGoogleCloudDialogflowCxV3ToolFunctionTool++; if (buildCounterGoogleCloudDialogflowCxV3ToolFunctionTool < 3) { - o.inputSchema = buildUnnamed129(); - o.outputSchema = buildUnnamed130(); + o.inputSchema = buildUnnamed133(); + o.outputSchema = buildUnnamed134(); } buildCounterGoogleCloudDialogflowCxV3ToolFunctionTool--; return o; @@ -7743,8 +7913,8 @@ void checkGoogleCloudDialogflowCxV3ToolFunctionTool( ) { buildCounterGoogleCloudDialogflowCxV3ToolFunctionTool++; if (buildCounterGoogleCloudDialogflowCxV3ToolFunctionTool < 3) { - checkUnnamed129(o.inputSchema!); - checkUnnamed130(o.outputSchema!); + checkUnnamed133(o.inputSchema!); + checkUnnamed134(o.outputSchema!); } buildCounterGoogleCloudDialogflowCxV3ToolFunctionTool--; } @@ -7802,13 +7972,13 @@ void checkGoogleCloudDialogflowCxV3ToolServiceDirectoryConfig( buildCounterGoogleCloudDialogflowCxV3ToolServiceDirectoryConfig--; } -core.List buildUnnamed131() => +core.List buildUnnamed135() => [ buildGoogleCloudDialogflowCxV3ToolTLSConfigCACert(), buildGoogleCloudDialogflowCxV3ToolTLSConfigCACert(), ]; -void checkUnnamed131( +void checkUnnamed135( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -7822,7 +7992,7 @@ buildGoogleCloudDialogflowCxV3ToolTLSConfig() { final o = api.GoogleCloudDialogflowCxV3ToolTLSConfig(); buildCounterGoogleCloudDialogflowCxV3ToolTLSConfig++; if (buildCounterGoogleCloudDialogflowCxV3ToolTLSConfig < 3) { - o.caCerts = buildUnnamed131(); + o.caCerts = buildUnnamed135(); } buildCounterGoogleCloudDialogflowCxV3ToolTLSConfig--; return o; @@ -7833,7 +8003,7 @@ void checkGoogleCloudDialogflowCxV3ToolTLSConfig( ) { buildCounterGoogleCloudDialogflowCxV3ToolTLSConfig++; if (buildCounterGoogleCloudDialogflowCxV3ToolTLSConfig < 3) { - checkUnnamed131(o.caCerts!); + checkUnnamed135(o.caCerts!); } buildCounterGoogleCloudDialogflowCxV3ToolTLSConfig--; } @@ -7862,7 +8032,7 @@ void checkGoogleCloudDialogflowCxV3ToolTLSConfigCACert( buildCounterGoogleCloudDialogflowCxV3ToolTLSConfigCACert--; } -core.Map buildUnnamed132() => { +core.Map buildUnnamed136() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -7875,7 +8045,7 @@ core.Map buildUnnamed132() => { }, }; -void checkUnnamed132(core.Map o) { +void checkUnnamed136(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted41 = (o['x']!) as core.Map; unittest.expect(casted41, unittest.hasLength(3)); @@ -7889,7 +8059,7 @@ void checkUnnamed132(core.Map o) { unittest.expect(casted42['string'], unittest.equals('foo')); } -core.Map buildUnnamed133() => { +core.Map buildUnnamed137() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -7902,7 +8072,7 @@ core.Map buildUnnamed133() => { }, }; -void checkUnnamed133(core.Map o) { +void checkUnnamed137(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted43 = (o['x']!) as core.Map; unittest.expect(casted43, unittest.hasLength(3)); @@ -7923,8 +8093,8 @@ api.GoogleCloudDialogflowCxV3ToolUse buildGoogleCloudDialogflowCxV3ToolUse() { if (buildCounterGoogleCloudDialogflowCxV3ToolUse < 3) { o.action = 'foo'; o.displayName = 'foo'; - o.inputActionParameters = buildUnnamed132(); - o.outputActionParameters = buildUnnamed133(); + o.inputActionParameters = buildUnnamed136(); + o.outputActionParameters = buildUnnamed137(); o.tool = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ToolUse--; @@ -7938,8 +8108,8 @@ void checkGoogleCloudDialogflowCxV3ToolUse( if (buildCounterGoogleCloudDialogflowCxV3ToolUse < 3) { unittest.expect(o.action!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed132(o.inputActionParameters!); - checkUnnamed133(o.outputActionParameters!); + checkUnnamed136(o.inputActionParameters!); + checkUnnamed137(o.outputActionParameters!); unittest.expect(o.tool!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3ToolUse--; @@ -7994,12 +8164,12 @@ void checkGoogleCloudDialogflowCxV3TrainFlowRequest( } core.List -buildUnnamed134() => [ +buildUnnamed138() => [ buildGoogleCloudDialogflowCxV3TransitionCoverageTransition(), buildGoogleCloudDialogflowCxV3TransitionCoverageTransition(), ]; -void checkUnnamed134( +void checkUnnamed138( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -8014,7 +8184,7 @@ buildGoogleCloudDialogflowCxV3TransitionCoverage() { buildCounterGoogleCloudDialogflowCxV3TransitionCoverage++; if (buildCounterGoogleCloudDialogflowCxV3TransitionCoverage < 3) { o.coverageScore = 42.0; - o.transitions = buildUnnamed134(); + o.transitions = buildUnnamed138(); } buildCounterGoogleCloudDialogflowCxV3TransitionCoverage--; return o; @@ -8026,7 +8196,7 @@ void checkGoogleCloudDialogflowCxV3TransitionCoverage( buildCounterGoogleCloudDialogflowCxV3TransitionCoverage++; if (buildCounterGoogleCloudDialogflowCxV3TransitionCoverage < 3) { unittest.expect(o.coverageScore!, unittest.equals(42.0)); - checkUnnamed134(o.transitions!); + checkUnnamed138(o.transitions!); } buildCounterGoogleCloudDialogflowCxV3TransitionCoverage--; } @@ -8124,12 +8294,12 @@ void checkGoogleCloudDialogflowCxV3TransitionRoute( buildCounterGoogleCloudDialogflowCxV3TransitionRoute--; } -core.List buildUnnamed135() => [ +core.List buildUnnamed139() => [ buildGoogleCloudDialogflowCxV3TransitionRoute(), buildGoogleCloudDialogflowCxV3TransitionRoute(), ]; -void checkUnnamed135( +void checkUnnamed139( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -8145,7 +8315,7 @@ buildGoogleCloudDialogflowCxV3TransitionRouteGroup() { if (buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroup < 3) { o.displayName = 'foo'; o.name = 'foo'; - o.transitionRoutes = buildUnnamed135(); + o.transitionRoutes = buildUnnamed139(); } buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroup--; return o; @@ -8158,18 +8328,18 @@ void checkGoogleCloudDialogflowCxV3TransitionRouteGroup( if (buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroup < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed135(o.transitionRoutes!); + checkUnnamed139(o.transitionRoutes!); } buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroup--; } core.List -buildUnnamed136() => [ +buildUnnamed140() => [ buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage(), buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage(), ]; -void checkUnnamed136( +void checkUnnamed140( core.List o, ) { @@ -8185,7 +8355,7 @@ buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage() { buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage++; if (buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage < 3) { o.coverageScore = 42.0; - o.coverages = buildUnnamed136(); + o.coverages = buildUnnamed140(); } buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage--; return o; @@ -8197,7 +8367,7 @@ void checkGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage( buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage++; if (buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage < 3) { unittest.expect(o.coverageScore!, unittest.equals(42.0)); - checkUnnamed136(o.coverages!); + checkUnnamed140(o.coverages!); } buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage--; } @@ -8205,12 +8375,12 @@ void checkGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage( core.List< api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition > -buildUnnamed137() => [ +buildUnnamed141() => [ buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition(), buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition(), ]; -void checkUnnamed137( +void checkUnnamed141( core.List< api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition > @@ -8235,7 +8405,7 @@ buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage() { 3) { o.coverageScore = 42.0; o.routeGroup = buildGoogleCloudDialogflowCxV3TransitionRouteGroup(); - o.transitions = buildUnnamed137(); + o.transitions = buildUnnamed141(); } buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage--; return o; @@ -8249,7 +8419,7 @@ void checkGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage( 3) { unittest.expect(o.coverageScore!, unittest.equals(42.0)); checkGoogleCloudDialogflowCxV3TransitionRouteGroup(o.routeGroup!); - checkUnnamed137(o.transitions!); + checkUnnamed141(o.transitions!); } buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage--; } @@ -8284,6 +8454,55 @@ checkGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition( buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition--; } +core.int buildCounterGoogleCloudDialogflowCxV3TypeSchema = 0; +api.GoogleCloudDialogflowCxV3TypeSchema +buildGoogleCloudDialogflowCxV3TypeSchema() { + final o = api.GoogleCloudDialogflowCxV3TypeSchema(); + buildCounterGoogleCloudDialogflowCxV3TypeSchema++; + if (buildCounterGoogleCloudDialogflowCxV3TypeSchema < 3) { + o.inlineSchema = buildGoogleCloudDialogflowCxV3InlineSchema(); + o.schemaReference = + buildGoogleCloudDialogflowCxV3TypeSchemaSchemaReference(); + } + buildCounterGoogleCloudDialogflowCxV3TypeSchema--; + return o; +} + +void checkGoogleCloudDialogflowCxV3TypeSchema( + api.GoogleCloudDialogflowCxV3TypeSchema o, +) { + buildCounterGoogleCloudDialogflowCxV3TypeSchema++; + if (buildCounterGoogleCloudDialogflowCxV3TypeSchema < 3) { + checkGoogleCloudDialogflowCxV3InlineSchema(o.inlineSchema!); + checkGoogleCloudDialogflowCxV3TypeSchemaSchemaReference(o.schemaReference!); + } + buildCounterGoogleCloudDialogflowCxV3TypeSchema--; +} + +core.int buildCounterGoogleCloudDialogflowCxV3TypeSchemaSchemaReference = 0; +api.GoogleCloudDialogflowCxV3TypeSchemaSchemaReference +buildGoogleCloudDialogflowCxV3TypeSchemaSchemaReference() { + final o = api.GoogleCloudDialogflowCxV3TypeSchemaSchemaReference(); + buildCounterGoogleCloudDialogflowCxV3TypeSchemaSchemaReference++; + if (buildCounterGoogleCloudDialogflowCxV3TypeSchemaSchemaReference < 3) { + o.schema = 'foo'; + o.tool = 'foo'; + } + buildCounterGoogleCloudDialogflowCxV3TypeSchemaSchemaReference--; + return o; +} + +void checkGoogleCloudDialogflowCxV3TypeSchemaSchemaReference( + api.GoogleCloudDialogflowCxV3TypeSchemaSchemaReference o, +) { + buildCounterGoogleCloudDialogflowCxV3TypeSchemaSchemaReference++; + if (buildCounterGoogleCloudDialogflowCxV3TypeSchemaSchemaReference < 3) { + unittest.expect(o.schema!, unittest.equals('foo')); + unittest.expect(o.tool!, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowCxV3TypeSchemaSchemaReference--; +} + core.int buildCounterGoogleCloudDialogflowCxV3UserUtterance = 0; api.GoogleCloudDialogflowCxV3UserUtterance buildGoogleCloudDialogflowCxV3UserUtterance() { @@ -8350,20 +8569,20 @@ void checkGoogleCloudDialogflowCxV3ValidateFlowRequest( buildCounterGoogleCloudDialogflowCxV3ValidateFlowRequest--; } -core.List buildUnnamed138() => [ +core.List buildUnnamed142() => [ buildGoogleCloudDialogflowCxV3ResourceName(), buildGoogleCloudDialogflowCxV3ResourceName(), ]; -void checkUnnamed138(core.List o) { +void checkUnnamed142(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3ResourceName(o[0]); checkGoogleCloudDialogflowCxV3ResourceName(o[1]); } -core.List buildUnnamed139() => ['foo', 'foo']; +core.List buildUnnamed143() => ['foo', 'foo']; -void checkUnnamed139(core.List o) { +void checkUnnamed143(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8376,9 +8595,9 @@ buildGoogleCloudDialogflowCxV3ValidationMessage() { buildCounterGoogleCloudDialogflowCxV3ValidationMessage++; if (buildCounterGoogleCloudDialogflowCxV3ValidationMessage < 3) { o.detail = 'foo'; - o.resourceNames = buildUnnamed138(); + o.resourceNames = buildUnnamed142(); o.resourceType = 'foo'; - o.resources = buildUnnamed139(); + o.resources = buildUnnamed143(); o.severity = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ValidationMessage--; @@ -8391,9 +8610,9 @@ void checkGoogleCloudDialogflowCxV3ValidationMessage( buildCounterGoogleCloudDialogflowCxV3ValidationMessage++; if (buildCounterGoogleCloudDialogflowCxV3ValidationMessage < 3) { unittest.expect(o.detail!, unittest.equals('foo')); - checkUnnamed138(o.resourceNames!); + checkUnnamed142(o.resourceNames!); unittest.expect(o.resourceType!, unittest.equals('foo')); - checkUnnamed139(o.resources!); + checkUnnamed143(o.resources!); unittest.expect(o.severity!, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowCxV3ValidationMessage--; @@ -8455,12 +8674,12 @@ void checkGoogleCloudDialogflowCxV3Version( } core.List -buildUnnamed140() => [ +buildUnnamed144() => [ buildGoogleCloudDialogflowCxV3VersionVariantsVariant(), buildGoogleCloudDialogflowCxV3VersionVariantsVariant(), ]; -void checkUnnamed140( +void checkUnnamed144( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -8474,7 +8693,7 @@ buildGoogleCloudDialogflowCxV3VersionVariants() { final o = api.GoogleCloudDialogflowCxV3VersionVariants(); buildCounterGoogleCloudDialogflowCxV3VersionVariants++; if (buildCounterGoogleCloudDialogflowCxV3VersionVariants < 3) { - o.variants = buildUnnamed140(); + o.variants = buildUnnamed144(); } buildCounterGoogleCloudDialogflowCxV3VersionVariants--; return o; @@ -8485,7 +8704,7 @@ void checkGoogleCloudDialogflowCxV3VersionVariants( ) { buildCounterGoogleCloudDialogflowCxV3VersionVariants++; if (buildCounterGoogleCloudDialogflowCxV3VersionVariants < 3) { - checkUnnamed140(o.variants!); + checkUnnamed144(o.variants!); } buildCounterGoogleCloudDialogflowCxV3VersionVariants--; } @@ -8577,31 +8796,31 @@ void checkGoogleCloudDialogflowCxV3Webhook( buildCounterGoogleCloudDialogflowCxV3Webhook--; } -core.List buildUnnamed141() => ['foo', 'foo']; +core.List buildUnnamed145() => ['foo', 'foo']; -void checkUnnamed141(core.List o) { +void checkUnnamed145(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed142() => { +core.Map buildUnnamed146() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed142(core.Map o) { +void checkUnnamed146(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed143() => { +core.Map buildUnnamed147() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed143(core.Map o) { +void checkUnnamed147(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -8611,14 +8830,14 @@ core.Map< core.String, api.GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue > -buildUnnamed144() => { +buildUnnamed148() => { 'x': buildGoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue(), 'y': buildGoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue(), }; -void checkUnnamed144( +void checkUnnamed148( core.Map< core.String, api.GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue @@ -8640,16 +8859,16 @@ buildGoogleCloudDialogflowCxV3WebhookGenericWebService() { final o = api.GoogleCloudDialogflowCxV3WebhookGenericWebService(); buildCounterGoogleCloudDialogflowCxV3WebhookGenericWebService++; if (buildCounterGoogleCloudDialogflowCxV3WebhookGenericWebService < 3) { - o.allowedCaCerts = buildUnnamed141(); + o.allowedCaCerts = buildUnnamed145(); o.httpMethod = 'foo'; o.oauthConfig = buildGoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig(); - o.parameterMapping = buildUnnamed142(); + o.parameterMapping = buildUnnamed146(); o.password = 'foo'; o.requestBody = 'foo'; - o.requestHeaders = buildUnnamed143(); + o.requestHeaders = buildUnnamed147(); o.secretVersionForUsernamePassword = 'foo'; - o.secretVersionsForRequestHeaders = buildUnnamed144(); + o.secretVersionsForRequestHeaders = buildUnnamed148(); o.serviceAgentAuth = 'foo'; o.uri = 'foo'; o.username = 'foo'; @@ -8664,20 +8883,20 @@ void checkGoogleCloudDialogflowCxV3WebhookGenericWebService( ) { buildCounterGoogleCloudDialogflowCxV3WebhookGenericWebService++; if (buildCounterGoogleCloudDialogflowCxV3WebhookGenericWebService < 3) { - checkUnnamed141(o.allowedCaCerts!); + checkUnnamed145(o.allowedCaCerts!); unittest.expect(o.httpMethod!, unittest.equals('foo')); checkGoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig( o.oauthConfig!, ); - checkUnnamed142(o.parameterMapping!); + checkUnnamed146(o.parameterMapping!); unittest.expect(o.password!, unittest.equals('foo')); unittest.expect(o.requestBody!, unittest.equals('foo')); - checkUnnamed143(o.requestHeaders!); + checkUnnamed147(o.requestHeaders!); unittest.expect( o.secretVersionForUsernamePassword!, unittest.equals('foo'), ); - checkUnnamed144(o.secretVersionsForRequestHeaders!); + checkUnnamed148(o.secretVersionsForRequestHeaders!); unittest.expect(o.serviceAgentAuth!, unittest.equals('foo')); unittest.expect(o.uri!, unittest.equals('foo')); unittest.expect(o.username!, unittest.equals('foo')); @@ -8686,9 +8905,9 @@ void checkGoogleCloudDialogflowCxV3WebhookGenericWebService( buildCounterGoogleCloudDialogflowCxV3WebhookGenericWebService--; } -core.List buildUnnamed145() => ['foo', 'foo']; +core.List buildUnnamed149() => ['foo', 'foo']; -void checkUnnamed145(core.List o) { +void checkUnnamed149(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8704,7 +8923,7 @@ buildGoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig() { 3) { o.clientId = 'foo'; o.clientSecret = 'foo'; - o.scopes = buildUnnamed145(); + o.scopes = buildUnnamed149(); o.secretVersionForClientSecret = 'foo'; o.tokenEndpoint = 'foo'; } @@ -8720,7 +8939,7 @@ void checkGoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig( 3) { unittest.expect(o.clientId!, unittest.equals('foo')); unittest.expect(o.clientSecret!, unittest.equals('foo')); - checkUnnamed145(o.scopes!); + checkUnnamed149(o.scopes!); unittest.expect(o.secretVersionForClientSecret!, unittest.equals('foo')); unittest.expect(o.tokenEndpoint!, unittest.equals('foo')); } @@ -8783,12 +9002,12 @@ void checkGoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig( buildCounterGoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig--; } -core.List buildUnnamed146() => [ +core.List buildUnnamed150() => [ buildGoogleCloudLocationLocation(), buildGoogleCloudLocationLocation(), ]; -void checkUnnamed146(core.List o) { +void checkUnnamed150(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudLocationLocation(o[0]); checkGoogleCloudLocationLocation(o[1]); @@ -8800,7 +9019,7 @@ buildGoogleCloudLocationListLocationsResponse() { final o = api.GoogleCloudLocationListLocationsResponse(); buildCounterGoogleCloudLocationListLocationsResponse++; if (buildCounterGoogleCloudLocationListLocationsResponse < 3) { - o.locations = buildUnnamed146(); + o.locations = buildUnnamed150(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudLocationListLocationsResponse--; @@ -8812,24 +9031,24 @@ void checkGoogleCloudLocationListLocationsResponse( ) { buildCounterGoogleCloudLocationListLocationsResponse++; if (buildCounterGoogleCloudLocationListLocationsResponse < 3) { - checkUnnamed146(o.locations!); + checkUnnamed150(o.locations!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudLocationListLocationsResponse--; } -core.Map buildUnnamed147() => { +core.Map buildUnnamed151() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed147(core.Map o) { +void checkUnnamed151(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed148() => { +core.Map buildUnnamed152() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -8842,7 +9061,7 @@ core.Map buildUnnamed148() => { }, }; -void checkUnnamed148(core.Map o) { +void checkUnnamed152(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted45 = (o['x']!) as core.Map; unittest.expect(casted45, unittest.hasLength(3)); @@ -8862,9 +9081,9 @@ api.GoogleCloudLocationLocation buildGoogleCloudLocationLocation() { buildCounterGoogleCloudLocationLocation++; if (buildCounterGoogleCloudLocationLocation < 3) { o.displayName = 'foo'; - o.labels = buildUnnamed147(); + o.labels = buildUnnamed151(); o.locationId = 'foo'; - o.metadata = buildUnnamed148(); + o.metadata = buildUnnamed152(); o.name = 'foo'; } buildCounterGoogleCloudLocationLocation--; @@ -8875,20 +9094,20 @@ void checkGoogleCloudLocationLocation(api.GoogleCloudLocationLocation o) { buildCounterGoogleCloudLocationLocation++; if (buildCounterGoogleCloudLocationLocation < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed147(o.labels!); + checkUnnamed151(o.labels!); unittest.expect(o.locationId!, unittest.equals('foo')); - checkUnnamed148(o.metadata!); + checkUnnamed152(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); } buildCounterGoogleCloudLocationLocation--; } -core.List buildUnnamed149() => [ +core.List buildUnnamed153() => [ buildGoogleLongrunningOperation(), buildGoogleLongrunningOperation(), ]; -void checkUnnamed149(core.List o) { +void checkUnnamed153(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0]); checkGoogleLongrunningOperation(o[1]); @@ -8901,7 +9120,7 @@ buildGoogleLongrunningListOperationsResponse() { buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = 'foo'; - o.operations = buildUnnamed149(); + o.operations = buildUnnamed153(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; @@ -8913,12 +9132,12 @@ void checkGoogleLongrunningListOperationsResponse( buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed149(o.operations!); + checkUnnamed153(o.operations!); } buildCounterGoogleLongrunningListOperationsResponse--; } -core.Map buildUnnamed150() => { +core.Map buildUnnamed154() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -8931,7 +9150,7 @@ core.Map buildUnnamed150() => { }, }; -void checkUnnamed150(core.Map o) { +void checkUnnamed154(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted47 = (o['x']!) as core.Map; unittest.expect(casted47, unittest.hasLength(3)); @@ -8945,7 +9164,7 @@ void checkUnnamed150(core.Map o) { unittest.expect(casted48['string'], unittest.equals('foo')); } -core.Map buildUnnamed151() => { +core.Map buildUnnamed155() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -8958,7 +9177,7 @@ core.Map buildUnnamed151() => { }, }; -void checkUnnamed151(core.Map o) { +void checkUnnamed155(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted49 = (o['x']!) as core.Map; unittest.expect(casted49, unittest.hasLength(3)); @@ -8979,9 +9198,9 @@ api.GoogleLongrunningOperation buildGoogleLongrunningOperation() { if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed150(); + o.metadata = buildUnnamed154(); o.name = 'foo'; - o.response = buildUnnamed151(); + o.response = buildUnnamed155(); } buildCounterGoogleLongrunningOperation--; return o; @@ -8992,9 +9211,9 @@ void checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkGoogleRpcStatus(o.error!); - checkUnnamed150(o.metadata!); + checkUnnamed154(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed151(o.response!); + checkUnnamed155(o.response!); } buildCounterGoogleLongrunningOperation--; } @@ -9014,7 +9233,7 @@ void checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { buildCounterGoogleProtobufEmpty--; } -core.Map buildUnnamed152() => { +core.Map buildUnnamed156() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -9027,7 +9246,7 @@ core.Map buildUnnamed152() => { }, }; -void checkUnnamed152(core.Map o) { +void checkUnnamed156(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted51 = (o['x']!) as core.Map; unittest.expect(casted51, unittest.hasLength(3)); @@ -9041,15 +9260,15 @@ void checkUnnamed152(core.Map o) { unittest.expect(casted52['string'], unittest.equals('foo')); } -core.List> buildUnnamed153() => [ - buildUnnamed152(), - buildUnnamed152(), +core.List> buildUnnamed157() => [ + buildUnnamed156(), + buildUnnamed156(), ]; -void checkUnnamed153(core.List> o) { +void checkUnnamed157(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed152(o[0]); - checkUnnamed152(o[1]); + checkUnnamed156(o[0]); + checkUnnamed156(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -9058,7 +9277,7 @@ api.GoogleRpcStatus buildGoogleRpcStatus() { buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed153(); + o.details = buildUnnamed157(); o.message = 'foo'; } buildCounterGoogleRpcStatus--; @@ -9069,7 +9288,7 @@ void checkGoogleRpcStatus(api.GoogleRpcStatus o) { buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed153(o.details!); + checkUnnamed157(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; @@ -9096,9 +9315,9 @@ void checkGoogleTypeLatLng(api.GoogleTypeLatLng o) { buildCounterGoogleTypeLatLng--; } -core.List buildUnnamed154() => ['foo', 'foo']; +core.List buildUnnamed158() => ['foo', 'foo']; -void checkUnnamed154(core.List o) { +void checkUnnamed158(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -10147,6 +10366,17 @@ void main() { }, ); + unittest.group('obj-schema-GoogleCloudDialogflowCxV3FlowTransition', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudDialogflowCxV3FlowTransition(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudDialogflowCxV3FlowTransition.fromJson( + oJson as core.Map, + ); + checkGoogleCloudDialogflowCxV3FlowTransition(od); + }); + }); + unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3FlowValidationResult', () { @@ -10535,6 +10765,17 @@ void main() { }, ); + unittest.group('obj-schema-GoogleCloudDialogflowCxV3InlineSchema', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudDialogflowCxV3InlineSchema(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudDialogflowCxV3InlineSchema.fromJson( + oJson as core.Map, + ); + checkGoogleCloudDialogflowCxV3InlineSchema(od); + }); + }); + unittest.group('obj-schema-GoogleCloudDialogflowCxV3InlineSource', () { unittest.test('to-json--from-json', () async { final o = buildGoogleCloudDialogflowCxV3InlineSource(); @@ -11084,6 +11325,17 @@ void main() { }); }); + unittest.group('obj-schema-GoogleCloudDialogflowCxV3ParameterDefinition', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudDialogflowCxV3ParameterDefinition(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudDialogflowCxV3ParameterDefinition.fromJson( + oJson as core.Map, + ); + checkGoogleCloudDialogflowCxV3ParameterDefinition(od); + }); + }); + unittest.group('obj-schema-GoogleCloudDialogflowCxV3Phrase', () { unittest.test('to-json--from-json', () async { final o = buildGoogleCloudDialogflowCxV3Phrase(); @@ -11175,6 +11427,17 @@ void main() { }); }); + unittest.group('obj-schema-GoogleCloudDialogflowCxV3PlaybookTransition', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudDialogflowCxV3PlaybookTransition(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudDialogflowCxV3PlaybookTransition.fromJson( + oJson as core.Map, + ); + checkGoogleCloudDialogflowCxV3PlaybookTransition(od); + }); + }); + unittest.group('obj-schema-GoogleCloudDialogflowCxV3PlaybookVersion', () { unittest.test('to-json--from-json', () async { final o = buildGoogleCloudDialogflowCxV3PlaybookVersion(); @@ -12161,6 +12424,32 @@ void main() { }, ); + unittest.group('obj-schema-GoogleCloudDialogflowCxV3TypeSchema', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudDialogflowCxV3TypeSchema(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudDialogflowCxV3TypeSchema.fromJson( + oJson as core.Map, + ); + checkGoogleCloudDialogflowCxV3TypeSchema(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudDialogflowCxV3TypeSchemaSchemaReference', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudDialogflowCxV3TypeSchemaSchemaReference(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudDialogflowCxV3TypeSchemaSchemaReference.fromJson( + oJson as core.Map, + ); + checkGoogleCloudDialogflowCxV3TypeSchemaSchemaReference(od); + }); + }, + ); + unittest.group('obj-schema-GoogleCloudDialogflowCxV3UserUtterance', () { unittest.test('to-json--from-json', () async { final o = buildGoogleCloudDialogflowCxV3UserUtterance(); @@ -12481,7 +12770,7 @@ void main() { final mock = HttpServerMock(); final res = api.DialogflowApi(mock).projects.locations; final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed154(); + final arg_extraLocationTypes = buildUnnamed158(); final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; diff --git a/generated/googleapis/test/displayvideo/v2_test.dart b/generated/googleapis/test/displayvideo/v2_test.dart index 7c3913a67..5fe47a1ec 100644 --- a/generated/googleapis/test/displayvideo/v2_test.dart +++ b/generated/googleapis/test/displayvideo/v2_test.dart @@ -126,6 +126,7 @@ api.Advertiser buildAdvertiser() { if (buildCounterAdvertiser < 3) { o.adServerConfig = buildAdvertiserAdServerConfig(); o.advertiserId = 'foo'; + o.containsEuPoliticalAds = 'foo'; o.creativeConfig = buildAdvertiserCreativeConfig(); o.dataAccessConfig = buildAdvertiserDataAccessConfig(); o.displayName = 'foo'; @@ -147,6 +148,7 @@ void checkAdvertiser(api.Advertiser o) { if (buildCounterAdvertiser < 3) { checkAdvertiserAdServerConfig(o.adServerConfig!); unittest.expect(o.advertiserId!, unittest.equals('foo')); + unittest.expect(o.containsEuPoliticalAds!, unittest.equals('foo')); checkAdvertiserCreativeConfig(o.creativeConfig!); checkAdvertiserDataAccessConfig(o.dataAccessConfig!); unittest.expect(o.displayName!, unittest.equals('foo')); @@ -3774,6 +3776,7 @@ api.DuplicateLineItemRequest buildDuplicateLineItemRequest() { final o = api.DuplicateLineItemRequest(); buildCounterDuplicateLineItemRequest++; if (buildCounterDuplicateLineItemRequest < 3) { + o.containsEuPoliticalAds = 'foo'; o.targetDisplayName = 'foo'; } buildCounterDuplicateLineItemRequest--; @@ -3783,6 +3786,7 @@ api.DuplicateLineItemRequest buildDuplicateLineItemRequest() { void checkDuplicateLineItemRequest(api.DuplicateLineItemRequest o) { buildCounterDuplicateLineItemRequest++; if (buildCounterDuplicateLineItemRequest < 3) { + unittest.expect(o.containsEuPoliticalAds!, unittest.equals('foo')); unittest.expect(o.targetDisplayName!, unittest.equals('foo')); } buildCounterDuplicateLineItemRequest--; @@ -4357,6 +4361,7 @@ api.GenerateDefaultLineItemRequest buildGenerateDefaultLineItemRequest() { final o = api.GenerateDefaultLineItemRequest(); buildCounterGenerateDefaultLineItemRequest++; if (buildCounterGenerateDefaultLineItemRequest < 3) { + o.containsEuPoliticalAds = 'foo'; o.displayName = 'foo'; o.insertionOrderId = 'foo'; o.lineItemType = 'foo'; @@ -4369,6 +4374,7 @@ api.GenerateDefaultLineItemRequest buildGenerateDefaultLineItemRequest() { void checkGenerateDefaultLineItemRequest(api.GenerateDefaultLineItemRequest o) { buildCounterGenerateDefaultLineItemRequest++; if (buildCounterGenerateDefaultLineItemRequest < 3) { + unittest.expect(o.containsEuPoliticalAds!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.insertionOrderId!, unittest.equals('foo')); unittest.expect(o.lineItemType!, unittest.equals('foo')); @@ -5485,6 +5491,7 @@ api.LineItem buildLineItem() { o.bidStrategy = buildBiddingStrategy(); o.budget = buildLineItemBudget(); o.campaignId = 'foo'; + o.containsEuPoliticalAds = 'foo'; o.conversionCounting = buildConversionCountingConfig(); o.creativeIds = buildUnnamed91(); o.displayName = 'foo'; @@ -5518,6 +5525,7 @@ void checkLineItem(api.LineItem o) { checkBiddingStrategy(o.bidStrategy!); checkLineItemBudget(o.budget!); unittest.expect(o.campaignId!, unittest.equals('foo')); + unittest.expect(o.containsEuPoliticalAds!, unittest.equals('foo')); checkConversionCountingConfig(o.conversionCounting!); checkUnnamed91(o.creativeIds!); unittest.expect(o.displayName!, unittest.equals('foo')); diff --git a/generated/googleapis/test/displayvideo/v3_test.dart b/generated/googleapis/test/displayvideo/v3_test.dart index b9e420113..494dd9349 100644 --- a/generated/googleapis/test/displayvideo/v3_test.dart +++ b/generated/googleapis/test/displayvideo/v3_test.dart @@ -275,6 +275,7 @@ api.Advertiser buildAdvertiser() { o.adServerConfig = buildAdvertiserAdServerConfig(); o.advertiserId = 'foo'; o.billingConfig = buildAdvertiserBillingConfig(); + o.containsEuPoliticalAds = 'foo'; o.creativeConfig = buildAdvertiserCreativeConfig(); o.dataAccessConfig = buildAdvertiserDataAccessConfig(); o.displayName = 'foo'; @@ -297,6 +298,7 @@ void checkAdvertiser(api.Advertiser o) { checkAdvertiserAdServerConfig(o.adServerConfig!); unittest.expect(o.advertiserId!, unittest.equals('foo')); checkAdvertiserBillingConfig(o.billingConfig!); + unittest.expect(o.containsEuPoliticalAds!, unittest.equals('foo')); checkAdvertiserCreativeConfig(o.creativeConfig!); checkAdvertiserDataAccessConfig(o.dataAccessConfig!); unittest.expect(o.displayName!, unittest.equals('foo')); @@ -4180,6 +4182,7 @@ api.DuplicateLineItemRequest buildDuplicateLineItemRequest() { final o = api.DuplicateLineItemRequest(); buildCounterDuplicateLineItemRequest++; if (buildCounterDuplicateLineItemRequest < 3) { + o.containsEuPoliticalAds = 'foo'; o.targetDisplayName = 'foo'; } buildCounterDuplicateLineItemRequest--; @@ -4189,6 +4192,7 @@ api.DuplicateLineItemRequest buildDuplicateLineItemRequest() { void checkDuplicateLineItemRequest(api.DuplicateLineItemRequest o) { buildCounterDuplicateLineItemRequest++; if (buildCounterDuplicateLineItemRequest < 3) { + unittest.expect(o.containsEuPoliticalAds!, unittest.equals('foo')); unittest.expect(o.targetDisplayName!, unittest.equals('foo')); } buildCounterDuplicateLineItemRequest--; @@ -4924,6 +4928,7 @@ api.GenerateDefaultLineItemRequest buildGenerateDefaultLineItemRequest() { final o = api.GenerateDefaultLineItemRequest(); buildCounterGenerateDefaultLineItemRequest++; if (buildCounterGenerateDefaultLineItemRequest < 3) { + o.containsEuPoliticalAds = 'foo'; o.displayName = 'foo'; o.insertionOrderId = 'foo'; o.lineItemType = 'foo'; @@ -4936,6 +4941,7 @@ api.GenerateDefaultLineItemRequest buildGenerateDefaultLineItemRequest() { void checkGenerateDefaultLineItemRequest(api.GenerateDefaultLineItemRequest o) { buildCounterGenerateDefaultLineItemRequest++; if (buildCounterGenerateDefaultLineItemRequest < 3) { + unittest.expect(o.containsEuPoliticalAds!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.insertionOrderId!, unittest.equals('foo')); unittest.expect(o.lineItemType!, unittest.equals('foo')); @@ -6109,6 +6115,7 @@ api.LineItem buildLineItem() { o.bidStrategy = buildBiddingStrategy(); o.budget = buildLineItemBudget(); o.campaignId = 'foo'; + o.containsEuPoliticalAds = 'foo'; o.conversionCounting = buildConversionCountingConfig(); o.creativeIds = buildUnnamed102(); o.displayName = 'foo'; @@ -6142,6 +6149,7 @@ void checkLineItem(api.LineItem o) { checkBiddingStrategy(o.bidStrategy!); checkLineItemBudget(o.budget!); unittest.expect(o.campaignId!, unittest.equals('foo')); + unittest.expect(o.containsEuPoliticalAds!, unittest.equals('foo')); checkConversionCountingConfig(o.conversionCounting!); checkUnnamed102(o.creativeIds!); unittest.expect(o.displayName!, unittest.equals('foo')); diff --git a/generated/googleapis/test/displayvideo/v4_test.dart b/generated/googleapis/test/displayvideo/v4_test.dart index 161d9926b..2cd5e292f 100644 --- a/generated/googleapis/test/displayvideo/v4_test.dart +++ b/generated/googleapis/test/displayvideo/v4_test.dart @@ -275,6 +275,7 @@ api.Advertiser buildAdvertiser() { o.adServerConfig = buildAdvertiserAdServerConfig(); o.advertiserId = 'foo'; o.billingConfig = buildAdvertiserBillingConfig(); + o.containsEuPoliticalAds = 'foo'; o.creativeConfig = buildAdvertiserCreativeConfig(); o.dataAccessConfig = buildAdvertiserDataAccessConfig(); o.displayName = 'foo'; @@ -297,6 +298,7 @@ void checkAdvertiser(api.Advertiser o) { checkAdvertiserAdServerConfig(o.adServerConfig!); unittest.expect(o.advertiserId!, unittest.equals('foo')); checkAdvertiserBillingConfig(o.billingConfig!); + unittest.expect(o.containsEuPoliticalAds!, unittest.equals('foo')); checkAdvertiserCreativeConfig(o.creativeConfig!); checkAdvertiserDataAccessConfig(o.dataAccessConfig!); unittest.expect(o.displayName!, unittest.equals('foo')); @@ -3453,6 +3455,7 @@ api.CustomBiddingAlgorithm buildCustomBiddingAlgorithm() { o.name = 'foo'; o.partnerId = 'foo'; o.sharedAdvertiserIds = buildUnnamed63(); + o.thirdPartyOptimizationPartner = 'foo'; } buildCounterCustomBiddingAlgorithm--; return o; @@ -3470,6 +3473,7 @@ void checkCustomBiddingAlgorithm(api.CustomBiddingAlgorithm o) { unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.partnerId!, unittest.equals('foo')); checkUnnamed63(o.sharedAdvertiserIds!); + unittest.expect(o.thirdPartyOptimizationPartner!, unittest.equals('foo')); } buildCounterCustomBiddingAlgorithm--; } @@ -4180,6 +4184,7 @@ api.DuplicateLineItemRequest buildDuplicateLineItemRequest() { final o = api.DuplicateLineItemRequest(); buildCounterDuplicateLineItemRequest++; if (buildCounterDuplicateLineItemRequest < 3) { + o.containsEuPoliticalAds = 'foo'; o.targetDisplayName = 'foo'; } buildCounterDuplicateLineItemRequest--; @@ -4189,6 +4194,7 @@ api.DuplicateLineItemRequest buildDuplicateLineItemRequest() { void checkDuplicateLineItemRequest(api.DuplicateLineItemRequest o) { buildCounterDuplicateLineItemRequest++; if (buildCounterDuplicateLineItemRequest < 3) { + unittest.expect(o.containsEuPoliticalAds!, unittest.equals('foo')); unittest.expect(o.targetDisplayName!, unittest.equals('foo')); } buildCounterDuplicateLineItemRequest--; @@ -4928,6 +4934,7 @@ api.GenerateDefaultLineItemRequest buildGenerateDefaultLineItemRequest() { final o = api.GenerateDefaultLineItemRequest(); buildCounterGenerateDefaultLineItemRequest++; if (buildCounterGenerateDefaultLineItemRequest < 3) { + o.containsEuPoliticalAds = 'foo'; o.displayName = 'foo'; o.insertionOrderId = 'foo'; o.lineItemType = 'foo'; @@ -4940,6 +4947,7 @@ api.GenerateDefaultLineItemRequest buildGenerateDefaultLineItemRequest() { void checkGenerateDefaultLineItemRequest(api.GenerateDefaultLineItemRequest o) { buildCounterGenerateDefaultLineItemRequest++; if (buildCounterGenerateDefaultLineItemRequest < 3) { + unittest.expect(o.containsEuPoliticalAds!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.insertionOrderId!, unittest.equals('foo')); unittest.expect(o.lineItemType!, unittest.equals('foo')); @@ -6113,6 +6121,7 @@ api.LineItem buildLineItem() { o.bidStrategy = buildBiddingStrategy(); o.budget = buildLineItemBudget(); o.campaignId = 'foo'; + o.containsEuPoliticalAds = 'foo'; o.conversionCounting = buildConversionCountingConfig(); o.creativeIds = buildUnnamed102(); o.displayName = 'foo'; @@ -6146,6 +6155,7 @@ void checkLineItem(api.LineItem o) { checkBiddingStrategy(o.bidStrategy!); checkLineItemBudget(o.budget!); unittest.expect(o.campaignId!, unittest.equals('foo')); + unittest.expect(o.containsEuPoliticalAds!, unittest.equals('foo')); checkConversionCountingConfig(o.conversionCounting!); checkUnnamed102(o.creativeIds!); unittest.expect(o.displayName!, unittest.equals('foo')); diff --git a/generated/googleapis/test/dlp/v2_test.dart b/generated/googleapis/test/dlp/v2_test.dart index fe0d2d76e..789f49c8e 100644 --- a/generated/googleapis/test/dlp/v2_test.dart +++ b/generated/googleapis/test/dlp/v2_test.dart @@ -4786,6 +4786,7 @@ buildGooglePrivacyDlpV2InfoTypeDescription() { o.description = 'foo'; o.displayName = 'foo'; o.example = 'foo'; + o.locationSupport = buildGooglePrivacyDlpV2LocationSupport(); o.name = 'foo'; o.sensitivityScore = buildGooglePrivacyDlpV2SensitivityScore(); o.specificInfoTypes = buildUnnamed65(); @@ -4805,6 +4806,7 @@ void checkGooglePrivacyDlpV2InfoTypeDescription( unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.example!, unittest.equals('foo')); + checkGooglePrivacyDlpV2LocationSupport(o.locationSupport!); unittest.expect(o.name!, unittest.equals('foo')); checkGooglePrivacyDlpV2SensitivityScore(o.sensitivityScore!); checkUnnamed65(o.specificInfoTypes!); @@ -6492,6 +6494,37 @@ void checkGooglePrivacyDlpV2Location(api.GooglePrivacyDlpV2Location o) { buildCounterGooglePrivacyDlpV2Location--; } +core.List buildUnnamed109() => ['foo', 'foo']; + +void checkUnnamed109(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterGooglePrivacyDlpV2LocationSupport = 0; +api.GooglePrivacyDlpV2LocationSupport buildGooglePrivacyDlpV2LocationSupport() { + final o = api.GooglePrivacyDlpV2LocationSupport(); + buildCounterGooglePrivacyDlpV2LocationSupport++; + if (buildCounterGooglePrivacyDlpV2LocationSupport < 3) { + o.locations = buildUnnamed109(); + o.regionalizationScope = 'foo'; + } + buildCounterGooglePrivacyDlpV2LocationSupport--; + return o; +} + +void checkGooglePrivacyDlpV2LocationSupport( + api.GooglePrivacyDlpV2LocationSupport o, +) { + buildCounterGooglePrivacyDlpV2LocationSupport++; + if (buildCounterGooglePrivacyDlpV2LocationSupport < 3) { + checkUnnamed109(o.locations!); + unittest.expect(o.regionalizationScope!, unittest.equals('foo')); + } + buildCounterGooglePrivacyDlpV2LocationSupport--; +} + core.int buildCounterGooglePrivacyDlpV2Manual = 0; api.GooglePrivacyDlpV2Manual buildGooglePrivacyDlpV2Manual() { final o = api.GooglePrivacyDlpV2Manual(); @@ -6571,12 +6604,12 @@ void checkGooglePrivacyDlpV2NumericalStatsConfig( buildCounterGooglePrivacyDlpV2NumericalStatsConfig--; } -core.List buildUnnamed109() => [ +core.List buildUnnamed110() => [ buildGooglePrivacyDlpV2Value(), buildGooglePrivacyDlpV2Value(), ]; -void checkUnnamed109(core.List o) { +void checkUnnamed110(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Value(o[0]); checkGooglePrivacyDlpV2Value(o[1]); @@ -6590,7 +6623,7 @@ buildGooglePrivacyDlpV2NumericalStatsResult() { if (buildCounterGooglePrivacyDlpV2NumericalStatsResult < 3) { o.maxValue = buildGooglePrivacyDlpV2Value(); o.minValue = buildGooglePrivacyDlpV2Value(); - o.quantileValues = buildUnnamed109(); + o.quantileValues = buildUnnamed110(); } buildCounterGooglePrivacyDlpV2NumericalStatsResult--; return o; @@ -6603,7 +6636,7 @@ void checkGooglePrivacyDlpV2NumericalStatsResult( if (buildCounterGooglePrivacyDlpV2NumericalStatsResult < 3) { checkGooglePrivacyDlpV2Value(o.maxValue!); checkGooglePrivacyDlpV2Value(o.minValue!); - checkUnnamed109(o.quantileValues!); + checkUnnamed110(o.quantileValues!); } buildCounterGooglePrivacyDlpV2NumericalStatsResult--; } @@ -6749,12 +6782,12 @@ void checkGooglePrivacyDlpV2OtherCloudResourceRegex( buildCounterGooglePrivacyDlpV2OtherCloudResourceRegex--; } -core.List buildUnnamed110() => [ +core.List buildUnnamed111() => [ buildGooglePrivacyDlpV2OtherCloudResourceRegex(), buildGooglePrivacyDlpV2OtherCloudResourceRegex(), ]; -void checkUnnamed110( +void checkUnnamed111( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -6768,7 +6801,7 @@ buildGooglePrivacyDlpV2OtherCloudResourceRegexes() { final o = api.GooglePrivacyDlpV2OtherCloudResourceRegexes(); buildCounterGooglePrivacyDlpV2OtherCloudResourceRegexes++; if (buildCounterGooglePrivacyDlpV2OtherCloudResourceRegexes < 3) { - o.patterns = buildUnnamed110(); + o.patterns = buildUnnamed111(); } buildCounterGooglePrivacyDlpV2OtherCloudResourceRegexes--; return o; @@ -6779,7 +6812,7 @@ void checkGooglePrivacyDlpV2OtherCloudResourceRegexes( ) { buildCounterGooglePrivacyDlpV2OtherCloudResourceRegexes++; if (buildCounterGooglePrivacyDlpV2OtherCloudResourceRegexes < 3) { - checkUnnamed110(o.patterns!); + checkUnnamed111(o.patterns!); } buildCounterGooglePrivacyDlpV2OtherCloudResourceRegexes--; } @@ -7121,12 +7154,12 @@ void checkGooglePrivacyDlpV2PubSubCondition( buildCounterGooglePrivacyDlpV2PubSubCondition--; } -core.List buildUnnamed111() => [ +core.List buildUnnamed112() => [ buildGooglePrivacyDlpV2PubSubCondition(), buildGooglePrivacyDlpV2PubSubCondition(), ]; -void checkUnnamed111(core.List o) { +void checkUnnamed112(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2PubSubCondition(o[0]); checkGooglePrivacyDlpV2PubSubCondition(o[1]); @@ -7138,7 +7171,7 @@ buildGooglePrivacyDlpV2PubSubExpressions() { final o = api.GooglePrivacyDlpV2PubSubExpressions(); buildCounterGooglePrivacyDlpV2PubSubExpressions++; if (buildCounterGooglePrivacyDlpV2PubSubExpressions < 3) { - o.conditions = buildUnnamed111(); + o.conditions = buildUnnamed112(); o.logicalOperator = 'foo'; } buildCounterGooglePrivacyDlpV2PubSubExpressions--; @@ -7150,7 +7183,7 @@ void checkGooglePrivacyDlpV2PubSubExpressions( ) { buildCounterGooglePrivacyDlpV2PubSubExpressions++; if (buildCounterGooglePrivacyDlpV2PubSubExpressions < 3) { - checkUnnamed111(o.conditions!); + checkUnnamed112(o.conditions!); unittest.expect(o.logicalOperator!, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2PubSubExpressions--; @@ -7448,9 +7481,9 @@ void checkGooglePrivacyDlpV2RecordCondition( buildCounterGooglePrivacyDlpV2RecordCondition--; } -core.List buildUnnamed112() => ['foo', 'foo']; +core.List buildUnnamed113() => ['foo', 'foo']; -void checkUnnamed112(core.List o) { +void checkUnnamed113(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7463,7 +7496,7 @@ api.GooglePrivacyDlpV2RecordKey buildGooglePrivacyDlpV2RecordKey() { if (buildCounterGooglePrivacyDlpV2RecordKey < 3) { o.bigQueryKey = buildGooglePrivacyDlpV2BigQueryKey(); o.datastoreKey = buildGooglePrivacyDlpV2DatastoreKey(); - o.idValues = buildUnnamed112(); + o.idValues = buildUnnamed113(); } buildCounterGooglePrivacyDlpV2RecordKey--; return o; @@ -7474,7 +7507,7 @@ void checkGooglePrivacyDlpV2RecordKey(api.GooglePrivacyDlpV2RecordKey o) { if (buildCounterGooglePrivacyDlpV2RecordKey < 3) { checkGooglePrivacyDlpV2BigQueryKey(o.bigQueryKey!); checkGooglePrivacyDlpV2DatastoreKey(o.datastoreKey!); - checkUnnamed112(o.idValues!); + checkUnnamed113(o.idValues!); } buildCounterGooglePrivacyDlpV2RecordKey--; } @@ -7526,23 +7559,23 @@ void checkGooglePrivacyDlpV2RecordSuppression( buildCounterGooglePrivacyDlpV2RecordSuppression--; } -core.List buildUnnamed113() => [ +core.List buildUnnamed114() => [ buildGooglePrivacyDlpV2FieldTransformation(), buildGooglePrivacyDlpV2FieldTransformation(), ]; -void checkUnnamed113(core.List o) { +void checkUnnamed114(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2FieldTransformation(o[0]); checkGooglePrivacyDlpV2FieldTransformation(o[1]); } -core.List buildUnnamed114() => [ +core.List buildUnnamed115() => [ buildGooglePrivacyDlpV2RecordSuppression(), buildGooglePrivacyDlpV2RecordSuppression(), ]; -void checkUnnamed114(core.List o) { +void checkUnnamed115(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2RecordSuppression(o[0]); checkGooglePrivacyDlpV2RecordSuppression(o[1]); @@ -7554,8 +7587,8 @@ buildGooglePrivacyDlpV2RecordTransformations() { final o = api.GooglePrivacyDlpV2RecordTransformations(); buildCounterGooglePrivacyDlpV2RecordTransformations++; if (buildCounterGooglePrivacyDlpV2RecordTransformations < 3) { - o.fieldTransformations = buildUnnamed113(); - o.recordSuppressions = buildUnnamed114(); + o.fieldTransformations = buildUnnamed114(); + o.recordSuppressions = buildUnnamed115(); } buildCounterGooglePrivacyDlpV2RecordTransformations--; return o; @@ -7566,8 +7599,8 @@ void checkGooglePrivacyDlpV2RecordTransformations( ) { buildCounterGooglePrivacyDlpV2RecordTransformations++; if (buildCounterGooglePrivacyDlpV2RecordTransformations < 3) { - checkUnnamed113(o.fieldTransformations!); - checkUnnamed114(o.recordSuppressions!); + checkUnnamed114(o.fieldTransformations!); + checkUnnamed115(o.recordSuppressions!); } buildCounterGooglePrivacyDlpV2RecordTransformations--; } @@ -7587,12 +7620,12 @@ void checkGooglePrivacyDlpV2RedactConfig(api.GooglePrivacyDlpV2RedactConfig o) { buildCounterGooglePrivacyDlpV2RedactConfig--; } -core.List buildUnnamed115() => [ +core.List buildUnnamed116() => [ buildGooglePrivacyDlpV2ImageRedactionConfig(), buildGooglePrivacyDlpV2ImageRedactionConfig(), ]; -void checkUnnamed115(core.List o) { +void checkUnnamed116(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2ImageRedactionConfig(o[0]); checkGooglePrivacyDlpV2ImageRedactionConfig(o[1]); @@ -7605,7 +7638,7 @@ buildGooglePrivacyDlpV2RedactImageRequest() { buildCounterGooglePrivacyDlpV2RedactImageRequest++; if (buildCounterGooglePrivacyDlpV2RedactImageRequest < 3) { o.byteItem = buildGooglePrivacyDlpV2ByteContentItem(); - o.imageRedactionConfigs = buildUnnamed115(); + o.imageRedactionConfigs = buildUnnamed116(); o.includeFindings = true; o.inspectConfig = buildGooglePrivacyDlpV2InspectConfig(); o.locationId = 'foo'; @@ -7620,7 +7653,7 @@ void checkGooglePrivacyDlpV2RedactImageRequest( buildCounterGooglePrivacyDlpV2RedactImageRequest++; if (buildCounterGooglePrivacyDlpV2RedactImageRequest < 3) { checkGooglePrivacyDlpV2ByteContentItem(o.byteItem!); - checkUnnamed115(o.imageRedactionConfigs!); + checkUnnamed116(o.imageRedactionConfigs!); unittest.expect(o.includeFindings!, unittest.isTrue); checkGooglePrivacyDlpV2InspectConfig(o.inspectConfig!); unittest.expect(o.locationId!, unittest.equals('foo')); @@ -7654,9 +7687,9 @@ void checkGooglePrivacyDlpV2RedactImageResponse( buildCounterGooglePrivacyDlpV2RedactImageResponse--; } -core.List buildUnnamed116() => [42, 42]; +core.List buildUnnamed117() => [42, 42]; -void checkUnnamed116(core.List o) { +void checkUnnamed117(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -7667,7 +7700,7 @@ api.GooglePrivacyDlpV2Regex buildGooglePrivacyDlpV2Regex() { final o = api.GooglePrivacyDlpV2Regex(); buildCounterGooglePrivacyDlpV2Regex++; if (buildCounterGooglePrivacyDlpV2Regex < 3) { - o.groupIndexes = buildUnnamed116(); + o.groupIndexes = buildUnnamed117(); o.pattern = 'foo'; } buildCounterGooglePrivacyDlpV2Regex--; @@ -7677,7 +7710,7 @@ api.GooglePrivacyDlpV2Regex buildGooglePrivacyDlpV2Regex() { void checkGooglePrivacyDlpV2Regex(api.GooglePrivacyDlpV2Regex o) { buildCounterGooglePrivacyDlpV2Regex++; if (buildCounterGooglePrivacyDlpV2Regex < 3) { - checkUnnamed116(o.groupIndexes!); + checkUnnamed117(o.groupIndexes!); unittest.expect(o.pattern!, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2Regex--; @@ -7897,12 +7930,12 @@ void checkGooglePrivacyDlpV2RequestedRiskAnalysisOptions( buildCounterGooglePrivacyDlpV2RequestedRiskAnalysisOptions--; } -core.List buildUnnamed117() => [ +core.List buildUnnamed118() => [ buildGooglePrivacyDlpV2InfoTypeStats(), buildGooglePrivacyDlpV2InfoTypeStats(), ]; -void checkUnnamed117(core.List o) { +void checkUnnamed118(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2InfoTypeStats(o[0]); checkGooglePrivacyDlpV2InfoTypeStats(o[1]); @@ -7914,7 +7947,7 @@ api.GooglePrivacyDlpV2Result buildGooglePrivacyDlpV2Result() { buildCounterGooglePrivacyDlpV2Result++; if (buildCounterGooglePrivacyDlpV2Result < 3) { o.hybridStats = buildGooglePrivacyDlpV2HybridInspectStatistics(); - o.infoTypeStats = buildUnnamed117(); + o.infoTypeStats = buildUnnamed118(); o.numRowsProcessed = 'foo'; o.processedBytes = 'foo'; o.totalEstimatedBytes = 'foo'; @@ -7927,7 +7960,7 @@ void checkGooglePrivacyDlpV2Result(api.GooglePrivacyDlpV2Result o) { buildCounterGooglePrivacyDlpV2Result++; if (buildCounterGooglePrivacyDlpV2Result < 3) { checkGooglePrivacyDlpV2HybridInspectStatistics(o.hybridStats!); - checkUnnamed117(o.infoTypeStats!); + checkUnnamed118(o.infoTypeStats!); unittest.expect(o.numRowsProcessed!, unittest.equals('foo')); unittest.expect(o.processedBytes!, unittest.equals('foo')); unittest.expect(o.totalEstimatedBytes!, unittest.equals('foo')); @@ -7935,12 +7968,12 @@ void checkGooglePrivacyDlpV2Result(api.GooglePrivacyDlpV2Result o) { buildCounterGooglePrivacyDlpV2Result--; } -core.List buildUnnamed118() => [ +core.List buildUnnamed119() => [ buildGooglePrivacyDlpV2Action(), buildGooglePrivacyDlpV2Action(), ]; -void checkUnnamed118(core.List o) { +void checkUnnamed119(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Action(o[0]); checkGooglePrivacyDlpV2Action(o[1]); @@ -7952,7 +7985,7 @@ buildGooglePrivacyDlpV2RiskAnalysisJobConfig() { final o = api.GooglePrivacyDlpV2RiskAnalysisJobConfig(); buildCounterGooglePrivacyDlpV2RiskAnalysisJobConfig++; if (buildCounterGooglePrivacyDlpV2RiskAnalysisJobConfig < 3) { - o.actions = buildUnnamed118(); + o.actions = buildUnnamed119(); o.privacyMetric = buildGooglePrivacyDlpV2PrivacyMetric(); o.sourceTable = buildGooglePrivacyDlpV2BigQueryTable(); } @@ -7965,19 +7998,19 @@ void checkGooglePrivacyDlpV2RiskAnalysisJobConfig( ) { buildCounterGooglePrivacyDlpV2RiskAnalysisJobConfig++; if (buildCounterGooglePrivacyDlpV2RiskAnalysisJobConfig < 3) { - checkUnnamed118(o.actions!); + checkUnnamed119(o.actions!); checkGooglePrivacyDlpV2PrivacyMetric(o.privacyMetric!); checkGooglePrivacyDlpV2BigQueryTable(o.sourceTable!); } buildCounterGooglePrivacyDlpV2RiskAnalysisJobConfig--; } -core.List buildUnnamed119() => [ +core.List buildUnnamed120() => [ buildGooglePrivacyDlpV2Value(), buildGooglePrivacyDlpV2Value(), ]; -void checkUnnamed119(core.List o) { +void checkUnnamed120(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Value(o[0]); checkGooglePrivacyDlpV2Value(o[1]); @@ -7988,7 +8021,7 @@ api.GooglePrivacyDlpV2Row buildGooglePrivacyDlpV2Row() { final o = api.GooglePrivacyDlpV2Row(); buildCounterGooglePrivacyDlpV2Row++; if (buildCounterGooglePrivacyDlpV2Row < 3) { - o.values = buildUnnamed119(); + o.values = buildUnnamed120(); } buildCounterGooglePrivacyDlpV2Row--; return o; @@ -7997,7 +8030,7 @@ api.GooglePrivacyDlpV2Row buildGooglePrivacyDlpV2Row() { void checkGooglePrivacyDlpV2Row(api.GooglePrivacyDlpV2Row o) { buildCounterGooglePrivacyDlpV2Row++; if (buildCounterGooglePrivacyDlpV2Row < 3) { - checkUnnamed119(o.values!); + checkUnnamed120(o.values!); } buildCounterGooglePrivacyDlpV2Row--; } @@ -8040,9 +8073,9 @@ void checkGooglePrivacyDlpV2Schedule(api.GooglePrivacyDlpV2Schedule o) { buildCounterGooglePrivacyDlpV2Schedule--; } -core.List buildUnnamed120() => ['foo', 'foo']; +core.List buildUnnamed121() => ['foo', 'foo']; -void checkUnnamed120(core.List o) { +void checkUnnamed121(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8055,7 +8088,7 @@ buildGooglePrivacyDlpV2SchemaModifiedCadence() { buildCounterGooglePrivacyDlpV2SchemaModifiedCadence++; if (buildCounterGooglePrivacyDlpV2SchemaModifiedCadence < 3) { o.frequency = 'foo'; - o.types = buildUnnamed120(); + o.types = buildUnnamed121(); } buildCounterGooglePrivacyDlpV2SchemaModifiedCadence--; return o; @@ -8067,17 +8100,17 @@ void checkGooglePrivacyDlpV2SchemaModifiedCadence( buildCounterGooglePrivacyDlpV2SchemaModifiedCadence++; if (buildCounterGooglePrivacyDlpV2SchemaModifiedCadence < 3) { unittest.expect(o.frequency!, unittest.equals('foo')); - checkUnnamed120(o.types!); + checkUnnamed121(o.types!); } buildCounterGooglePrivacyDlpV2SchemaModifiedCadence--; } -core.List buildUnnamed121() => [ +core.List buildUnnamed122() => [ buildGooglePrivacyDlpV2Connection(), buildGooglePrivacyDlpV2Connection(), ]; -void checkUnnamed121(core.List o) { +void checkUnnamed122(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Connection(o[0]); checkGooglePrivacyDlpV2Connection(o[1]); @@ -8089,7 +8122,7 @@ buildGooglePrivacyDlpV2SearchConnectionsResponse() { final o = api.GooglePrivacyDlpV2SearchConnectionsResponse(); buildCounterGooglePrivacyDlpV2SearchConnectionsResponse++; if (buildCounterGooglePrivacyDlpV2SearchConnectionsResponse < 3) { - o.connections = buildUnnamed121(); + o.connections = buildUnnamed122(); o.nextPageToken = 'foo'; } buildCounterGooglePrivacyDlpV2SearchConnectionsResponse--; @@ -8101,7 +8134,7 @@ void checkGooglePrivacyDlpV2SearchConnectionsResponse( ) { buildCounterGooglePrivacyDlpV2SearchConnectionsResponse++; if (buildCounterGooglePrivacyDlpV2SearchConnectionsResponse < 3) { - checkUnnamed121(o.connections!); + checkUnnamed122(o.connections!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2SearchConnectionsResponse--; @@ -8149,12 +8182,12 @@ void checkGooglePrivacyDlpV2SecretsDiscoveryTarget( buildCounterGooglePrivacyDlpV2SecretsDiscoveryTarget--; } -core.List buildUnnamed122() => [ +core.List buildUnnamed123() => [ buildGooglePrivacyDlpV2InfoType(), buildGooglePrivacyDlpV2InfoType(), ]; -void checkUnnamed122(core.List o) { +void checkUnnamed123(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2InfoType(o[0]); checkGooglePrivacyDlpV2InfoType(o[1]); @@ -8166,7 +8199,7 @@ buildGooglePrivacyDlpV2SelectedInfoTypes() { final o = api.GooglePrivacyDlpV2SelectedInfoTypes(); buildCounterGooglePrivacyDlpV2SelectedInfoTypes++; if (buildCounterGooglePrivacyDlpV2SelectedInfoTypes < 3) { - o.infoTypes = buildUnnamed122(); + o.infoTypes = buildUnnamed123(); } buildCounterGooglePrivacyDlpV2SelectedInfoTypes--; return o; @@ -8177,7 +8210,7 @@ void checkGooglePrivacyDlpV2SelectedInfoTypes( ) { buildCounterGooglePrivacyDlpV2SelectedInfoTypes++; if (buildCounterGooglePrivacyDlpV2SelectedInfoTypes < 3) { - checkUnnamed122(o.infoTypes!); + checkUnnamed123(o.infoTypes!); } buildCounterGooglePrivacyDlpV2SelectedInfoTypes--; } @@ -8204,12 +8237,12 @@ void checkGooglePrivacyDlpV2SensitivityScore( buildCounterGooglePrivacyDlpV2SensitivityScore--; } -core.List buildUnnamed123() => [ +core.List buildUnnamed124() => [ buildGooglePrivacyDlpV2QuasiIdentifierField(), buildGooglePrivacyDlpV2QuasiIdentifierField(), ]; -void checkUnnamed123(core.List o) { +void checkUnnamed124(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2QuasiIdentifierField(o[0]); checkGooglePrivacyDlpV2QuasiIdentifierField(o[1]); @@ -8221,7 +8254,7 @@ buildGooglePrivacyDlpV2StatisticalTable() { final o = api.GooglePrivacyDlpV2StatisticalTable(); buildCounterGooglePrivacyDlpV2StatisticalTable++; if (buildCounterGooglePrivacyDlpV2StatisticalTable < 3) { - o.quasiIds = buildUnnamed123(); + o.quasiIds = buildUnnamed124(); o.relativeFrequency = buildGooglePrivacyDlpV2FieldId(); o.table = buildGooglePrivacyDlpV2BigQueryTable(); } @@ -8234,7 +8267,7 @@ void checkGooglePrivacyDlpV2StatisticalTable( ) { buildCounterGooglePrivacyDlpV2StatisticalTable++; if (buildCounterGooglePrivacyDlpV2StatisticalTable < 3) { - checkUnnamed123(o.quasiIds!); + checkUnnamed124(o.quasiIds!); checkGooglePrivacyDlpV2FieldId(o.relativeFrequency!); checkGooglePrivacyDlpV2BigQueryTable(o.table!); } @@ -8292,12 +8325,12 @@ void checkGooglePrivacyDlpV2StorageMetadataLabel( buildCounterGooglePrivacyDlpV2StorageMetadataLabel--; } -core.List buildUnnamed124() => [ +core.List buildUnnamed125() => [ buildGooglePrivacyDlpV2StoredInfoTypeVersion(), buildGooglePrivacyDlpV2StoredInfoTypeVersion(), ]; -void checkUnnamed124(core.List o) { +void checkUnnamed125(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2StoredInfoTypeVersion(o[0]); checkGooglePrivacyDlpV2StoredInfoTypeVersion(o[1]); @@ -8310,7 +8343,7 @@ api.GooglePrivacyDlpV2StoredInfoType buildGooglePrivacyDlpV2StoredInfoType() { if (buildCounterGooglePrivacyDlpV2StoredInfoType < 3) { o.currentVersion = buildGooglePrivacyDlpV2StoredInfoTypeVersion(); o.name = 'foo'; - o.pendingVersions = buildUnnamed124(); + o.pendingVersions = buildUnnamed125(); } buildCounterGooglePrivacyDlpV2StoredInfoType--; return o; @@ -8323,7 +8356,7 @@ void checkGooglePrivacyDlpV2StoredInfoType( if (buildCounterGooglePrivacyDlpV2StoredInfoType < 3) { checkGooglePrivacyDlpV2StoredInfoTypeVersion(o.currentVersion!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed124(o.pendingVersions!); + checkUnnamed125(o.pendingVersions!); } buildCounterGooglePrivacyDlpV2StoredInfoType--; } @@ -8384,12 +8417,12 @@ void checkGooglePrivacyDlpV2StoredInfoTypeStats( buildCounterGooglePrivacyDlpV2StoredInfoTypeStats--; } -core.List buildUnnamed125() => [ +core.List buildUnnamed126() => [ buildGooglePrivacyDlpV2Error(), buildGooglePrivacyDlpV2Error(), ]; -void checkUnnamed125(core.List o) { +void checkUnnamed126(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Error(o[0]); checkGooglePrivacyDlpV2Error(o[1]); @@ -8403,7 +8436,7 @@ buildGooglePrivacyDlpV2StoredInfoTypeVersion() { if (buildCounterGooglePrivacyDlpV2StoredInfoTypeVersion < 3) { o.config = buildGooglePrivacyDlpV2StoredInfoTypeConfig(); o.createTime = 'foo'; - o.errors = buildUnnamed125(); + o.errors = buildUnnamed126(); o.state = 'foo'; o.stats = buildGooglePrivacyDlpV2StoredInfoTypeStats(); } @@ -8418,7 +8451,7 @@ void checkGooglePrivacyDlpV2StoredInfoTypeVersion( if (buildCounterGooglePrivacyDlpV2StoredInfoTypeVersion < 3) { checkGooglePrivacyDlpV2StoredInfoTypeConfig(o.config!); unittest.expect(o.createTime!, unittest.equals('foo')); - checkUnnamed125(o.errors!); + checkUnnamed126(o.errors!); unittest.expect(o.state!, unittest.equals('foo')); checkGooglePrivacyDlpV2StoredInfoTypeStats(o.stats!); } @@ -8488,23 +8521,23 @@ void checkGooglePrivacyDlpV2SurrogateType( buildCounterGooglePrivacyDlpV2SurrogateType--; } -core.List buildUnnamed126() => [ +core.List buildUnnamed127() => [ buildGooglePrivacyDlpV2FieldId(), buildGooglePrivacyDlpV2FieldId(), ]; -void checkUnnamed126(core.List o) { +void checkUnnamed127(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2FieldId(o[0]); checkGooglePrivacyDlpV2FieldId(o[1]); } -core.List buildUnnamed127() => [ +core.List buildUnnamed128() => [ buildGooglePrivacyDlpV2Row(), buildGooglePrivacyDlpV2Row(), ]; -void checkUnnamed127(core.List o) { +void checkUnnamed128(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Row(o[0]); checkGooglePrivacyDlpV2Row(o[1]); @@ -8515,8 +8548,8 @@ api.GooglePrivacyDlpV2Table buildGooglePrivacyDlpV2Table() { final o = api.GooglePrivacyDlpV2Table(); buildCounterGooglePrivacyDlpV2Table++; if (buildCounterGooglePrivacyDlpV2Table < 3) { - o.headers = buildUnnamed126(); - o.rows = buildUnnamed127(); + o.headers = buildUnnamed127(); + o.rows = buildUnnamed128(); } buildCounterGooglePrivacyDlpV2Table--; return o; @@ -8525,73 +8558,73 @@ api.GooglePrivacyDlpV2Table buildGooglePrivacyDlpV2Table() { void checkGooglePrivacyDlpV2Table(api.GooglePrivacyDlpV2Table o) { buildCounterGooglePrivacyDlpV2Table++; if (buildCounterGooglePrivacyDlpV2Table < 3) { - checkUnnamed126(o.headers!); - checkUnnamed127(o.rows!); + checkUnnamed127(o.headers!); + checkUnnamed128(o.rows!); } buildCounterGooglePrivacyDlpV2Table--; } -core.List buildUnnamed128() => [ +core.List buildUnnamed129() => [ buildGooglePrivacyDlpV2Domain(), buildGooglePrivacyDlpV2Domain(), ]; -void checkUnnamed128(core.List o) { +void checkUnnamed129(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Domain(o[0]); checkGooglePrivacyDlpV2Domain(o[1]); } -core.List buildUnnamed129() => [ +core.List buildUnnamed130() => [ buildGooglePrivacyDlpV2OtherInfoTypeSummary(), buildGooglePrivacyDlpV2OtherInfoTypeSummary(), ]; -void checkUnnamed129(core.List o) { +void checkUnnamed130(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2OtherInfoTypeSummary(o[0]); checkGooglePrivacyDlpV2OtherInfoTypeSummary(o[1]); } -core.List buildUnnamed130() => [ +core.List buildUnnamed131() => [ buildGooglePrivacyDlpV2InfoTypeSummary(), buildGooglePrivacyDlpV2InfoTypeSummary(), ]; -void checkUnnamed130(core.List o) { +void checkUnnamed131(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2InfoTypeSummary(o[0]); checkGooglePrivacyDlpV2InfoTypeSummary(o[1]); } -core.List buildUnnamed131() => [ +core.List buildUnnamed132() => [ buildGooglePrivacyDlpV2RelatedResource(), buildGooglePrivacyDlpV2RelatedResource(), ]; -void checkUnnamed131(core.List o) { +void checkUnnamed132(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2RelatedResource(o[0]); checkGooglePrivacyDlpV2RelatedResource(o[1]); } -core.Map buildUnnamed132() => { +core.Map buildUnnamed133() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed132(core.Map o) { +void checkUnnamed133(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed133() => [ +core.List buildUnnamed134() => [ buildGooglePrivacyDlpV2Tag(), buildGooglePrivacyDlpV2Tag(), ]; -void checkUnnamed133(core.List o) { +void checkUnnamed134(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Tag(o[0]); checkGooglePrivacyDlpV2Tag(o[1]); @@ -8610,20 +8643,20 @@ buildGooglePrivacyDlpV2TableDataProfile() { o.datasetId = 'foo'; o.datasetLocation = 'foo'; o.datasetProjectId = 'foo'; - o.domains = buildUnnamed128(); + o.domains = buildUnnamed129(); o.encryptionStatus = 'foo'; o.expirationTime = 'foo'; o.failedColumnCount = 'foo'; o.fullResource = 'foo'; o.lastModifiedTime = 'foo'; o.name = 'foo'; - o.otherInfoTypes = buildUnnamed129(); - o.predictedInfoTypes = buildUnnamed130(); + o.otherInfoTypes = buildUnnamed130(); + o.predictedInfoTypes = buildUnnamed131(); o.profileLastGenerated = 'foo'; o.profileStatus = buildGooglePrivacyDlpV2ProfileStatus(); o.projectDataProfile = 'foo'; - o.relatedResources = buildUnnamed131(); - o.resourceLabels = buildUnnamed132(); + o.relatedResources = buildUnnamed132(); + o.resourceLabels = buildUnnamed133(); o.resourceVisibility = 'foo'; o.rowCount = 'foo'; o.sampleFindingsTable = buildGooglePrivacyDlpV2BigQueryTable(); @@ -8632,7 +8665,7 @@ buildGooglePrivacyDlpV2TableDataProfile() { o.state = 'foo'; o.tableId = 'foo'; o.tableSizeBytes = 'foo'; - o.tags = buildUnnamed133(); + o.tags = buildUnnamed134(); } buildCounterGooglePrivacyDlpV2TableDataProfile--; return o; @@ -8650,20 +8683,20 @@ void checkGooglePrivacyDlpV2TableDataProfile( unittest.expect(o.datasetId!, unittest.equals('foo')); unittest.expect(o.datasetLocation!, unittest.equals('foo')); unittest.expect(o.datasetProjectId!, unittest.equals('foo')); - checkUnnamed128(o.domains!); + checkUnnamed129(o.domains!); unittest.expect(o.encryptionStatus!, unittest.equals('foo')); unittest.expect(o.expirationTime!, unittest.equals('foo')); unittest.expect(o.failedColumnCount!, unittest.equals('foo')); unittest.expect(o.fullResource!, unittest.equals('foo')); unittest.expect(o.lastModifiedTime!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed129(o.otherInfoTypes!); - checkUnnamed130(o.predictedInfoTypes!); + checkUnnamed130(o.otherInfoTypes!); + checkUnnamed131(o.predictedInfoTypes!); unittest.expect(o.profileLastGenerated!, unittest.equals('foo')); checkGooglePrivacyDlpV2ProfileStatus(o.profileStatus!); unittest.expect(o.projectDataProfile!, unittest.equals('foo')); - checkUnnamed131(o.relatedResources!); - checkUnnamed132(o.resourceLabels!); + checkUnnamed132(o.relatedResources!); + checkUnnamed133(o.resourceLabels!); unittest.expect(o.resourceVisibility!, unittest.equals('foo')); unittest.expect(o.rowCount!, unittest.equals('foo')); checkGooglePrivacyDlpV2BigQueryTable(o.sampleFindingsTable!); @@ -8672,7 +8705,7 @@ void checkGooglePrivacyDlpV2TableDataProfile( unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.tableId!, unittest.equals('foo')); unittest.expect(o.tableSizeBytes!, unittest.equals('foo')); - checkUnnamed133(o.tags!); + checkUnnamed134(o.tags!); } buildCounterGooglePrivacyDlpV2TableDataProfile--; } @@ -8698,12 +8731,12 @@ void checkGooglePrivacyDlpV2TableLocation( buildCounterGooglePrivacyDlpV2TableLocation--; } -core.List buildUnnamed134() => [ +core.List buildUnnamed135() => [ buildGooglePrivacyDlpV2FieldId(), buildGooglePrivacyDlpV2FieldId(), ]; -void checkUnnamed134(core.List o) { +void checkUnnamed135(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2FieldId(o[0]); checkGooglePrivacyDlpV2FieldId(o[1]); @@ -8714,7 +8747,7 @@ api.GooglePrivacyDlpV2TableOptions buildGooglePrivacyDlpV2TableOptions() { final o = api.GooglePrivacyDlpV2TableOptions(); buildCounterGooglePrivacyDlpV2TableOptions++; if (buildCounterGooglePrivacyDlpV2TableOptions < 3) { - o.identifyingFields = buildUnnamed134(); + o.identifyingFields = buildUnnamed135(); } buildCounterGooglePrivacyDlpV2TableOptions--; return o; @@ -8723,7 +8756,7 @@ api.GooglePrivacyDlpV2TableOptions buildGooglePrivacyDlpV2TableOptions() { void checkGooglePrivacyDlpV2TableOptions(api.GooglePrivacyDlpV2TableOptions o) { buildCounterGooglePrivacyDlpV2TableOptions++; if (buildCounterGooglePrivacyDlpV2TableOptions < 3) { - checkUnnamed134(o.identifyingFields!); + checkUnnamed135(o.identifyingFields!); } buildCounterGooglePrivacyDlpV2TableOptions--; } @@ -8797,20 +8830,20 @@ void checkGooglePrivacyDlpV2TagCondition(api.GooglePrivacyDlpV2TagCondition o) { buildCounterGooglePrivacyDlpV2TagCondition--; } -core.List buildUnnamed135() => ['foo', 'foo']; +core.List buildUnnamed136() => ['foo', 'foo']; -void checkUnnamed135(core.List o) { +void checkUnnamed136(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed136() => [ +core.List buildUnnamed137() => [ buildGooglePrivacyDlpV2TagCondition(), buildGooglePrivacyDlpV2TagCondition(), ]; -void checkUnnamed136(core.List o) { +void checkUnnamed137(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2TagCondition(o[0]); checkGooglePrivacyDlpV2TagCondition(o[1]); @@ -8822,8 +8855,8 @@ api.GooglePrivacyDlpV2TagResources buildGooglePrivacyDlpV2TagResources() { buildCounterGooglePrivacyDlpV2TagResources++; if (buildCounterGooglePrivacyDlpV2TagResources < 3) { o.lowerDataRiskToLow = true; - o.profileGenerationsToTag = buildUnnamed135(); - o.tagConditions = buildUnnamed136(); + o.profileGenerationsToTag = buildUnnamed136(); + o.tagConditions = buildUnnamed137(); } buildCounterGooglePrivacyDlpV2TagResources--; return o; @@ -8833,8 +8866,8 @@ void checkGooglePrivacyDlpV2TagResources(api.GooglePrivacyDlpV2TagResources o) { buildCounterGooglePrivacyDlpV2TagResources++; if (buildCounterGooglePrivacyDlpV2TagResources < 3) { unittest.expect(o.lowerDataRiskToLow!, unittest.isTrue); - checkUnnamed135(o.profileGenerationsToTag!); - checkUnnamed136(o.tagConditions!); + checkUnnamed136(o.profileGenerationsToTag!); + checkUnnamed137(o.tagConditions!); } buildCounterGooglePrivacyDlpV2TagResources--; } @@ -9037,12 +9070,12 @@ void checkGooglePrivacyDlpV2TransformationErrorHandling( buildCounterGooglePrivacyDlpV2TransformationErrorHandling--; } -core.List buildUnnamed137() => [ +core.List buildUnnamed138() => [ buildGooglePrivacyDlpV2TransformationSummary(), buildGooglePrivacyDlpV2TransformationSummary(), ]; -void checkUnnamed137(core.List o) { +void checkUnnamed138(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2TransformationSummary(o[0]); checkGooglePrivacyDlpV2TransformationSummary(o[1]); @@ -9054,7 +9087,7 @@ buildGooglePrivacyDlpV2TransformationOverview() { final o = api.GooglePrivacyDlpV2TransformationOverview(); buildCounterGooglePrivacyDlpV2TransformationOverview++; if (buildCounterGooglePrivacyDlpV2TransformationOverview < 3) { - o.transformationSummaries = buildUnnamed137(); + o.transformationSummaries = buildUnnamed138(); o.transformedBytes = 'foo'; } buildCounterGooglePrivacyDlpV2TransformationOverview--; @@ -9066,29 +9099,29 @@ void checkGooglePrivacyDlpV2TransformationOverview( ) { buildCounterGooglePrivacyDlpV2TransformationOverview++; if (buildCounterGooglePrivacyDlpV2TransformationOverview < 3) { - checkUnnamed137(o.transformationSummaries!); + checkUnnamed138(o.transformationSummaries!); unittest.expect(o.transformedBytes!, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2TransformationOverview--; } -core.List buildUnnamed138() => [ +core.List buildUnnamed139() => [ buildGooglePrivacyDlpV2FieldTransformation(), buildGooglePrivacyDlpV2FieldTransformation(), ]; -void checkUnnamed138(core.List o) { +void checkUnnamed139(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2FieldTransformation(o[0]); checkGooglePrivacyDlpV2FieldTransformation(o[1]); } -core.List buildUnnamed139() => [ +core.List buildUnnamed140() => [ buildGooglePrivacyDlpV2SummaryResult(), buildGooglePrivacyDlpV2SummaryResult(), ]; -void checkUnnamed139(core.List o) { +void checkUnnamed140(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2SummaryResult(o[0]); checkGooglePrivacyDlpV2SummaryResult(o[1]); @@ -9101,10 +9134,10 @@ buildGooglePrivacyDlpV2TransformationSummary() { buildCounterGooglePrivacyDlpV2TransformationSummary++; if (buildCounterGooglePrivacyDlpV2TransformationSummary < 3) { o.field = buildGooglePrivacyDlpV2FieldId(); - o.fieldTransformations = buildUnnamed138(); + o.fieldTransformations = buildUnnamed139(); o.infoType = buildGooglePrivacyDlpV2InfoType(); o.recordSuppress = buildGooglePrivacyDlpV2RecordSuppression(); - o.results = buildUnnamed139(); + o.results = buildUnnamed140(); o.transformation = buildGooglePrivacyDlpV2PrimitiveTransformation(); o.transformedBytes = 'foo'; } @@ -9118,10 +9151,10 @@ void checkGooglePrivacyDlpV2TransformationSummary( buildCounterGooglePrivacyDlpV2TransformationSummary++; if (buildCounterGooglePrivacyDlpV2TransformationSummary < 3) { checkGooglePrivacyDlpV2FieldId(o.field!); - checkUnnamed138(o.fieldTransformations!); + checkUnnamed139(o.fieldTransformations!); checkGooglePrivacyDlpV2InfoType(o.infoType!); checkGooglePrivacyDlpV2RecordSuppression(o.recordSuppress!); - checkUnnamed139(o.results!); + checkUnnamed140(o.results!); checkGooglePrivacyDlpV2PrimitiveTransformation(o.transformation!); unittest.expect(o.transformedBytes!, unittest.equals('foo')); } @@ -9492,12 +9525,12 @@ void checkGooglePrivacyDlpV2VertexDatasetRegex( buildCounterGooglePrivacyDlpV2VertexDatasetRegex--; } -core.List buildUnnamed140() => [ +core.List buildUnnamed141() => [ buildGooglePrivacyDlpV2VertexDatasetRegex(), buildGooglePrivacyDlpV2VertexDatasetRegex(), ]; -void checkUnnamed140(core.List o) { +void checkUnnamed141(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2VertexDatasetRegex(o[0]); checkGooglePrivacyDlpV2VertexDatasetRegex(o[1]); @@ -9509,7 +9542,7 @@ buildGooglePrivacyDlpV2VertexDatasetRegexes() { final o = api.GooglePrivacyDlpV2VertexDatasetRegexes(); buildCounterGooglePrivacyDlpV2VertexDatasetRegexes++; if (buildCounterGooglePrivacyDlpV2VertexDatasetRegexes < 3) { - o.patterns = buildUnnamed140(); + o.patterns = buildUnnamed141(); } buildCounterGooglePrivacyDlpV2VertexDatasetRegexes--; return o; @@ -9520,7 +9553,7 @@ void checkGooglePrivacyDlpV2VertexDatasetRegexes( ) { buildCounterGooglePrivacyDlpV2VertexDatasetRegexes++; if (buildCounterGooglePrivacyDlpV2VertexDatasetRegexes < 3) { - checkUnnamed140(o.patterns!); + checkUnnamed141(o.patterns!); } buildCounterGooglePrivacyDlpV2VertexDatasetRegexes--; } @@ -9547,9 +9580,9 @@ void checkGooglePrivacyDlpV2VertexDatasetResourceReference( buildCounterGooglePrivacyDlpV2VertexDatasetResourceReference--; } -core.List buildUnnamed141() => ['foo', 'foo']; +core.List buildUnnamed142() => ['foo', 'foo']; -void checkUnnamed141(core.List o) { +void checkUnnamed142(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9560,7 +9593,7 @@ api.GooglePrivacyDlpV2WordList buildGooglePrivacyDlpV2WordList() { final o = api.GooglePrivacyDlpV2WordList(); buildCounterGooglePrivacyDlpV2WordList++; if (buildCounterGooglePrivacyDlpV2WordList < 3) { - o.words = buildUnnamed141(); + o.words = buildUnnamed142(); } buildCounterGooglePrivacyDlpV2WordList--; return o; @@ -9569,7 +9602,7 @@ api.GooglePrivacyDlpV2WordList buildGooglePrivacyDlpV2WordList() { void checkGooglePrivacyDlpV2WordList(api.GooglePrivacyDlpV2WordList o) { buildCounterGooglePrivacyDlpV2WordList++; if (buildCounterGooglePrivacyDlpV2WordList < 3) { - checkUnnamed141(o.words!); + checkUnnamed142(o.words!); } buildCounterGooglePrivacyDlpV2WordList--; } @@ -9589,7 +9622,7 @@ void checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { buildCounterGoogleProtobufEmpty--; } -core.Map buildUnnamed142() => { +core.Map buildUnnamed143() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -9602,7 +9635,7 @@ core.Map buildUnnamed142() => { }, }; -void checkUnnamed142(core.Map o) { +void checkUnnamed143(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o['x']!) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -9616,15 +9649,15 @@ void checkUnnamed142(core.Map o) { unittest.expect(casted2['string'], unittest.equals('foo')); } -core.List> buildUnnamed143() => [ - buildUnnamed142(), - buildUnnamed142(), +core.List> buildUnnamed144() => [ + buildUnnamed143(), + buildUnnamed143(), ]; -void checkUnnamed143(core.List> o) { +void checkUnnamed144(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed142(o[0]); - checkUnnamed142(o[1]); + checkUnnamed143(o[0]); + checkUnnamed143(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -9633,7 +9666,7 @@ api.GoogleRpcStatus buildGoogleRpcStatus() { buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed143(); + o.details = buildUnnamed144(); o.message = 'foo'; } buildCounterGoogleRpcStatus--; @@ -9644,7 +9677,7 @@ void checkGoogleRpcStatus(api.GoogleRpcStatus o) { buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed143(o.details!); + checkUnnamed144(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; @@ -12131,6 +12164,17 @@ void main() { }); }); + unittest.group('obj-schema-GooglePrivacyDlpV2LocationSupport', () { + unittest.test('to-json--from-json', () async { + final o = buildGooglePrivacyDlpV2LocationSupport(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GooglePrivacyDlpV2LocationSupport.fromJson( + oJson as core.Map, + ); + checkGooglePrivacyDlpV2LocationSupport(od); + }); + }); + unittest.group('obj-schema-GooglePrivacyDlpV2Manual', () { unittest.test('to-json--from-json', () async { final o = buildGooglePrivacyDlpV2Manual(); diff --git a/generated/googleapis/test/documentai/v1_test.dart b/generated/googleapis/test/documentai/v1_test.dart index cb8193aa2..811cacf8d 100644 --- a/generated/googleapis/test/documentai/v1_test.dart +++ b/generated/googleapis/test/documentai/v1_test.dart @@ -992,6 +992,7 @@ buildGoogleCloudDocumentaiV1DocumentEntity() { o.id = 'foo'; o.mentionId = 'foo'; o.mentionText = 'foo'; + o.method = 'foo'; o.normalizedValue = buildGoogleCloudDocumentaiV1DocumentEntityNormalizedValue(); o.pageAnchor = buildGoogleCloudDocumentaiV1DocumentPageAnchor(); @@ -1014,6 +1015,7 @@ void checkGoogleCloudDocumentaiV1DocumentEntity( unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.mentionId!, unittest.equals('foo')); unittest.expect(o.mentionText!, unittest.equals('foo')); + unittest.expect(o.method!, unittest.equals('foo')); checkGoogleCloudDocumentaiV1DocumentEntityNormalizedValue( o.normalizedValue!, ); diff --git a/generated/googleapis/test/eventarc/v1_test.dart b/generated/googleapis/test/eventarc/v1_test.dart index c26f7a200..252cc532b 100644 --- a/generated/googleapis/test/eventarc/v1_test.dart +++ b/generated/googleapis/test/eventarc/v1_test.dart @@ -492,6 +492,8 @@ api.GoogleApiSource buildGoogleApiSource() { o.labels = buildUnnamed9(); o.loggingConfig = buildLoggingConfig(); o.name = 'foo'; + o.organizationSubscription = buildOrganizationSubscription(); + o.projectSubscriptions = buildProjectSubscriptions(); o.uid = 'foo'; o.updateTime = 'foo'; } @@ -511,6 +513,8 @@ void checkGoogleApiSource(api.GoogleApiSource o) { checkUnnamed9(o.labels!); checkLoggingConfig(o.loggingConfig!); unittest.expect(o.name!, unittest.equals('foo')); + checkOrganizationSubscription(o.organizationSubscription!); + checkProjectSubscriptions(o.projectSubscriptions!); unittest.expect(o.uid!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); } @@ -1667,6 +1671,25 @@ void checkNetworkConfig(api.NetworkConfig o) { buildCounterNetworkConfig--; } +core.int buildCounterOrganizationSubscription = 0; +api.OrganizationSubscription buildOrganizationSubscription() { + final o = api.OrganizationSubscription(); + buildCounterOrganizationSubscription++; + if (buildCounterOrganizationSubscription < 3) { + o.enabled = true; + } + buildCounterOrganizationSubscription--; + return o; +} + +void checkOrganizationSubscription(api.OrganizationSubscription o) { + buildCounterOrganizationSubscription++; + if (buildCounterOrganizationSubscription < 3) { + unittest.expect(o.enabled!, unittest.isTrue); + } + buildCounterOrganizationSubscription--; +} + core.Map buildUnnamed39() => {'x': 'foo', 'y': 'foo'}; void checkUnnamed39(core.Map o) { @@ -1799,12 +1822,39 @@ void checkPolicy(api.Policy o) { buildCounterPolicy--; } -core.List buildUnnamed45() => [ +core.List buildUnnamed45() => ['foo', 'foo']; + +void checkUnnamed45(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterProjectSubscriptions = 0; +api.ProjectSubscriptions buildProjectSubscriptions() { + final o = api.ProjectSubscriptions(); + buildCounterProjectSubscriptions++; + if (buildCounterProjectSubscriptions < 3) { + o.list = buildUnnamed45(); + } + buildCounterProjectSubscriptions--; + return o; +} + +void checkProjectSubscriptions(api.ProjectSubscriptions o) { + buildCounterProjectSubscriptions++; + if (buildCounterProjectSubscriptions < 3) { + checkUnnamed45(o.list!); + } + buildCounterProjectSubscriptions--; +} + +core.List buildUnnamed46() => [ buildEventType(), buildEventType(), ]; -void checkUnnamed45(core.List o) { +void checkUnnamed46(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkEventType(o[0]); checkEventType(o[1]); @@ -1816,7 +1866,7 @@ api.Provider buildProvider() { buildCounterProvider++; if (buildCounterProvider < 3) { o.displayName = 'foo'; - o.eventTypes = buildUnnamed45(); + o.eventTypes = buildUnnamed46(); o.name = 'foo'; } buildCounterProvider--; @@ -1827,7 +1877,7 @@ void checkProvider(api.Provider o) { buildCounterProvider++; if (buildCounterProvider < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed45(o.eventTypes!); + checkUnnamed46(o.eventTypes!); unittest.expect(o.name!, unittest.equals('foo')); } buildCounterProvider--; @@ -1896,9 +1946,9 @@ void checkStateCondition(api.StateCondition o) { buildCounterStateCondition--; } -core.List buildUnnamed46() => ['foo', 'foo']; +core.List buildUnnamed47() => ['foo', 'foo']; -void checkUnnamed46(core.List o) { +void checkUnnamed47(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1909,7 +1959,7 @@ api.TestIamPermissionsRequest buildTestIamPermissionsRequest() { final o = api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed46(); + o.permissions = buildUnnamed47(); } buildCounterTestIamPermissionsRequest--; return o; @@ -1918,14 +1968,14 @@ api.TestIamPermissionsRequest buildTestIamPermissionsRequest() { void checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed46(o.permissions!); + checkUnnamed47(o.permissions!); } buildCounterTestIamPermissionsRequest--; } -core.List buildUnnamed47() => ['foo', 'foo']; +core.List buildUnnamed48() => ['foo', 'foo']; -void checkUnnamed47(core.List o) { +void checkUnnamed48(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1936,7 +1986,7 @@ api.TestIamPermissionsResponse buildTestIamPermissionsResponse() { final o = api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed47(); + o.permissions = buildUnnamed48(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1945,7 +1995,7 @@ api.TestIamPermissionsResponse buildTestIamPermissionsResponse() { void checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed47(o.permissions!); + checkUnnamed48(o.permissions!); } buildCounterTestIamPermissionsResponse--; } @@ -1969,31 +2019,31 @@ void checkTransport(api.Transport o) { buildCounterTransport--; } -core.Map buildUnnamed48() => { +core.Map buildUnnamed49() => { 'x': buildStateCondition(), 'y': buildStateCondition(), }; -void checkUnnamed48(core.Map o) { +void checkUnnamed49(core.Map o) { unittest.expect(o, unittest.hasLength(2)); checkStateCondition(o['x']!); checkStateCondition(o['y']!); } -core.List buildUnnamed49() => [ +core.List buildUnnamed50() => [ buildEventFilter(), buildEventFilter(), ]; -void checkUnnamed49(core.List o) { +void checkUnnamed50(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkEventFilter(o[0]); checkEventFilter(o[1]); } -core.Map buildUnnamed50() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed51() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed50(core.Map o) { +void checkUnnamed51(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2005,13 +2055,13 @@ api.Trigger buildTrigger() { buildCounterTrigger++; if (buildCounterTrigger < 3) { o.channel = 'foo'; - o.conditions = buildUnnamed48(); + o.conditions = buildUnnamed49(); o.createTime = 'foo'; o.destination = buildDestination(); o.etag = 'foo'; o.eventDataContentType = 'foo'; - o.eventFilters = buildUnnamed49(); - o.labels = buildUnnamed50(); + o.eventFilters = buildUnnamed50(); + o.labels = buildUnnamed51(); o.name = 'foo'; o.satisfiesPzs = true; o.serviceAccount = 'foo'; @@ -2027,13 +2077,13 @@ void checkTrigger(api.Trigger o) { buildCounterTrigger++; if (buildCounterTrigger < 3) { unittest.expect(o.channel!, unittest.equals('foo')); - checkUnnamed48(o.conditions!); + checkUnnamed49(o.conditions!); unittest.expect(o.createTime!, unittest.equals('foo')); checkDestination(o.destination!); unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.eventDataContentType!, unittest.equals('foo')); - checkUnnamed49(o.eventFilters!); - checkUnnamed50(o.labels!); + checkUnnamed50(o.eventFilters!); + checkUnnamed51(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.satisfiesPzs!, unittest.isTrue); unittest.expect(o.serviceAccount!, unittest.equals('foo')); @@ -2044,9 +2094,9 @@ void checkTrigger(api.Trigger o) { buildCounterTrigger--; } -core.List buildUnnamed51() => ['foo', 'foo']; +core.List buildUnnamed52() => ['foo', 'foo']; -void checkUnnamed51(core.List o) { +void checkUnnamed52(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2631,6 +2681,17 @@ void main() { }); }); + unittest.group('obj-schema-OrganizationSubscription', () { + unittest.test('to-json--from-json', () async { + final o = buildOrganizationSubscription(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.OrganizationSubscription.fromJson( + oJson as core.Map, + ); + checkOrganizationSubscription(od); + }); + }); + unittest.group('obj-schema-Pipeline', () { unittest.test('to-json--from-json', () async { final o = buildPipeline(); @@ -2653,6 +2714,17 @@ void main() { }); }); + unittest.group('obj-schema-ProjectSubscriptions', () { + unittest.test('to-json--from-json', () async { + final o = buildProjectSubscriptions(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ProjectSubscriptions.fromJson( + oJson as core.Map, + ); + checkProjectSubscriptions(od); + }); + }); + unittest.group('obj-schema-Provider', () { unittest.test('to-json--from-json', () async { final o = buildProvider(); @@ -2855,7 +2927,7 @@ void main() { final mock = HttpServerMock(); final res = api.EventarcApi(mock).projects.locations; final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed51(); + final arg_extraLocationTypes = buildUnnamed52(); final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; diff --git a/generated/googleapis/test/file/v1_test.dart b/generated/googleapis/test/file/v1_test.dart index d77d139af..0788c608b 100644 --- a/generated/googleapis/test/file/v1_test.dart +++ b/generated/googleapis/test/file/v1_test.dart @@ -246,6 +246,7 @@ api.Instance buildInstance() { final o = api.Instance(); buildCounterInstance++; if (buildCounterInstance < 3) { + o.capacityStepSizeGb = 'foo'; o.createTime = 'foo'; o.customPerformanceSupported = true; o.deletionProtectionEnabled = true; @@ -255,6 +256,8 @@ api.Instance buildInstance() { o.fileShares = buildUnnamed3(); o.kmsKeyName = 'foo'; o.labels = buildUnnamed4(); + o.maxCapacityGb = 'foo'; + o.minCapacityGb = 'foo'; o.name = 'foo'; o.networks = buildUnnamed5(); o.performanceConfig = buildPerformanceConfig(); @@ -276,6 +279,7 @@ api.Instance buildInstance() { void checkInstance(api.Instance o) { buildCounterInstance++; if (buildCounterInstance < 3) { + unittest.expect(o.capacityStepSizeGb!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.customPerformanceSupported!, unittest.isTrue); unittest.expect(o.deletionProtectionEnabled!, unittest.isTrue); @@ -285,6 +289,8 @@ void checkInstance(api.Instance o) { checkUnnamed3(o.fileShares!); unittest.expect(o.kmsKeyName!, unittest.equals('foo')); checkUnnamed4(o.labels!); + unittest.expect(o.maxCapacityGb!, unittest.equals('foo')); + unittest.expect(o.minCapacityGb!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); checkUnnamed5(o.networks!); checkPerformanceConfig(o.performanceConfig!); @@ -567,6 +573,7 @@ api.NetworkConfig buildNetworkConfig() { o.ipAddresses = buildUnnamed18(); o.modes = buildUnnamed19(); o.network = 'foo'; + o.pscConfig = buildPscConfig(); o.reservedIpRange = 'foo'; } buildCounterNetworkConfig--; @@ -580,6 +587,7 @@ void checkNetworkConfig(api.NetworkConfig o) { checkUnnamed18(o.ipAddresses!); checkUnnamed19(o.modes!); unittest.expect(o.network!, unittest.equals('foo')); + checkPscConfig(o.pscConfig!); unittest.expect(o.reservedIpRange!, unittest.equals('foo')); } buildCounterNetworkConfig--; @@ -602,6 +610,7 @@ api.NfsExportOptions buildNfsExportOptions() { o.anonGid = 'foo'; o.anonUid = 'foo'; o.ipRanges = buildUnnamed20(); + o.network = 'foo'; o.squashMode = 'foo'; } buildCounterNfsExportOptions--; @@ -615,6 +624,7 @@ void checkNfsExportOptions(api.NfsExportOptions o) { unittest.expect(o.anonGid!, unittest.equals('foo')); unittest.expect(o.anonUid!, unittest.equals('foo')); checkUnnamed20(o.ipRanges!); + unittest.expect(o.network!, unittest.equals('foo')); unittest.expect(o.squashMode!, unittest.equals('foo')); } buildCounterNfsExportOptions--; @@ -768,6 +778,25 @@ void checkPromoteReplicaRequest(api.PromoteReplicaRequest o) { buildCounterPromoteReplicaRequest--; } +core.int buildCounterPscConfig = 0; +api.PscConfig buildPscConfig() { + final o = api.PscConfig(); + buildCounterPscConfig++; + if (buildCounterPscConfig < 3) { + o.endpointProject = 'foo'; + } + buildCounterPscConfig--; + return o; +} + +void checkPscConfig(api.PscConfig o) { + buildCounterPscConfig++; + if (buildCounterPscConfig < 3) { + unittest.expect(o.endpointProject!, unittest.equals('foo')); + } + buildCounterPscConfig--; +} + core.List buildUnnamed23() => ['foo', 'foo']; void checkUnnamed23(core.List o) { @@ -1201,6 +1230,17 @@ void main() { }); }); + unittest.group('obj-schema-PscConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildPscConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.PscConfig.fromJson( + oJson as core.Map, + ); + checkPscConfig(od); + }); + }); + unittest.group('obj-schema-ReplicaConfig', () { unittest.test('to-json--from-json', () async { final o = buildReplicaConfig(); diff --git a/generated/googleapis/test/firebaseappcheck/v1_test.dart b/generated/googleapis/test/firebaseappcheck/v1_test.dart index f0e1d5f17..9c0af21ba 100644 --- a/generated/googleapis/test/firebaseappcheck/v1_test.dart +++ b/generated/googleapis/test/firebaseappcheck/v1_test.dart @@ -974,6 +974,12 @@ buildGoogleFirebaseAppcheckV1PlayIntegrityConfig() { final o = api.GoogleFirebaseAppcheckV1PlayIntegrityConfig(); buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfig++; if (buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfig < 3) { + o.accountDetails = + buildGoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails(); + o.appIntegrity = + buildGoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity(); + o.deviceIntegrity = + buildGoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity(); o.name = 'foo'; o.tokenTtl = 'foo'; } @@ -986,12 +992,94 @@ void checkGoogleFirebaseAppcheckV1PlayIntegrityConfig( ) { buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfig++; if (buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfig < 3) { + checkGoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails( + o.accountDetails!, + ); + checkGoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity( + o.appIntegrity!, + ); + checkGoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity( + o.deviceIntegrity!, + ); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.tokenTtl!, unittest.equals('foo')); } buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfig--; } +core.int buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails = + 0; +api.GoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails +buildGoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails() { + final o = api.GoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails(); + buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails++; + if (buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails < + 3) { + o.requireLicensed = true; + } + buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails--; + return o; +} + +void checkGoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails( + api.GoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails o, +) { + buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails++; + if (buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails < + 3) { + unittest.expect(o.requireLicensed!, unittest.isTrue); + } + buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails--; +} + +core.int buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity = + 0; +api.GoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity +buildGoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity() { + final o = api.GoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity(); + buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity++; + if (buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity < 3) { + o.allowUnrecognizedVersion = true; + } + buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity--; + return o; +} + +void checkGoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity( + api.GoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity o, +) { + buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity++; + if (buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity < 3) { + unittest.expect(o.allowUnrecognizedVersion!, unittest.isTrue); + } + buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity--; +} + +core.int +buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity = 0; +api.GoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity +buildGoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity() { + final o = api.GoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity(); + buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity++; + if (buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity < + 3) { + o.minDeviceRecognitionLevel = 'foo'; + } + buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity--; + return o; +} + +void checkGoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity( + api.GoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity o, +) { + buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity++; + if (buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity < + 3) { + unittest.expect(o.minDeviceRecognitionLevel!, unittest.equals('foo')); + } + buildCounterGoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity--; +} + core.int buildCounterGoogleFirebaseAppcheckV1PublicJwk = 0; api.GoogleFirebaseAppcheckV1PublicJwk buildGoogleFirebaseAppcheckV1PublicJwk() { final o = api.GoogleFirebaseAppcheckV1PublicJwk(); @@ -1063,6 +1151,8 @@ buildGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig() { buildCounterGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig++; if (buildCounterGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig < 3) { o.name = 'foo'; + o.riskAnalysis = + buildGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis(); o.siteKey = 'foo'; o.tokenTtl = 'foo'; } @@ -1076,18 +1166,47 @@ void checkGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig( buildCounterGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig++; if (buildCounterGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig < 3) { unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis( + o.riskAnalysis!, + ); unittest.expect(o.siteKey!, unittest.equals('foo')); unittest.expect(o.tokenTtl!, unittest.equals('foo')); } buildCounterGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfig--; } +core.int +buildCounterGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis = 0; +api.GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis +buildGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis() { + final o = api.GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis(); + buildCounterGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis++; + if (buildCounterGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis < + 3) { + o.minValidScore = 42.0; + } + buildCounterGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis--; + return o; +} + +void checkGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis( + api.GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis o, +) { + buildCounterGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis++; + if (buildCounterGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis < + 3) { + unittest.expect(o.minValidScore!, unittest.equals(42.0)); + } + buildCounterGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis--; +} + core.int buildCounterGoogleFirebaseAppcheckV1RecaptchaV3Config = 0; api.GoogleFirebaseAppcheckV1RecaptchaV3Config buildGoogleFirebaseAppcheckV1RecaptchaV3Config() { final o = api.GoogleFirebaseAppcheckV1RecaptchaV3Config(); buildCounterGoogleFirebaseAppcheckV1RecaptchaV3Config++; if (buildCounterGoogleFirebaseAppcheckV1RecaptchaV3Config < 3) { + o.minValidScore = 42.0; o.name = 'foo'; o.siteSecret = 'foo'; o.siteSecretSet = true; @@ -1102,6 +1221,7 @@ void checkGoogleFirebaseAppcheckV1RecaptchaV3Config( ) { buildCounterGoogleFirebaseAppcheckV1RecaptchaV3Config++; if (buildCounterGoogleFirebaseAppcheckV1RecaptchaV3Config < 3) { + unittest.expect(o.minValidScore!, unittest.equals(42.0)); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.siteSecret!, unittest.equals('foo')); unittest.expect(o.siteSecretSet!, unittest.isTrue); @@ -1777,6 +1897,54 @@ void main() { }); }); + unittest.group( + 'obj-schema-GoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails.fromJson( + oJson as core.Map, + ); + checkGoogleFirebaseAppcheckV1PlayIntegrityConfigAccountDetails(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity.fromJson( + oJson as core.Map, + ); + checkGoogleFirebaseAppcheckV1PlayIntegrityConfigAppIntegrity(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity.fromJson( + oJson as core.Map, + ); + checkGoogleFirebaseAppcheckV1PlayIntegrityConfigDeviceIntegrity(od); + }); + }, + ); + unittest.group('obj-schema-GoogleFirebaseAppcheckV1PublicJwk', () { unittest.test('to-json--from-json', () async { final o = buildGoogleFirebaseAppcheckV1PublicJwk(); @@ -1814,6 +1982,22 @@ void main() { }, ); + unittest.group( + 'obj-schema-GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis.fromJson( + oJson as core.Map, + ); + checkGoogleFirebaseAppcheckV1RecaptchaEnterpriseConfigRiskAnalysis(od); + }); + }, + ); + unittest.group('obj-schema-GoogleFirebaseAppcheckV1RecaptchaV3Config', () { unittest.test('to-json--from-json', () async { final o = buildGoogleFirebaseAppcheckV1RecaptchaV3Config(); diff --git a/generated/googleapis/test/firebaseappdistribution/v1_test.dart b/generated/googleapis/test/firebaseappdistribution/v1_test.dart index 32bb39027..4cb72db70 100644 --- a/generated/googleapis/test/firebaseappdistribution/v1_test.dart +++ b/generated/googleapis/test/firebaseappdistribution/v1_test.dart @@ -868,10 +868,12 @@ api.GoogleFirebaseAppdistroV1Release buildGoogleFirebaseAppdistroV1Release() { o.buildVersion = 'foo'; o.createTime = 'foo'; o.displayVersion = 'foo'; + o.expireTime = 'foo'; o.firebaseConsoleUri = 'foo'; o.name = 'foo'; o.releaseNotes = buildGoogleFirebaseAppdistroV1ReleaseNotes(); o.testingUri = 'foo'; + o.updateTime = 'foo'; } buildCounterGoogleFirebaseAppdistroV1Release--; return o; @@ -886,10 +888,12 @@ void checkGoogleFirebaseAppdistroV1Release( unittest.expect(o.buildVersion!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.displayVersion!, unittest.equals('foo')); + unittest.expect(o.expireTime!, unittest.equals('foo')); unittest.expect(o.firebaseConsoleUri!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); checkGoogleFirebaseAppdistroV1ReleaseNotes(o.releaseNotes!); unittest.expect(o.testingUri!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); } buildCounterGoogleFirebaseAppdistroV1Release--; } diff --git a/generated/googleapis/test/firebaseapphosting/v1_test.dart b/generated/googleapis/test/firebaseapphosting/v1_test.dart index 203ffb897..e96ef4142 100644 --- a/generated/googleapis/test/firebaseapphosting/v1_test.dart +++ b/generated/googleapis/test/firebaseapphosting/v1_test.dart @@ -26,6 +26,33 @@ import 'package:test/test.dart' as unittest; import '../test_shared.dart'; +core.int buildCounterArchiveSource = 0; +api.ArchiveSource buildArchiveSource() { + final o = api.ArchiveSource(); + buildCounterArchiveSource++; + if (buildCounterArchiveSource < 3) { + o.author = buildSourceUserMetadata(); + o.description = 'foo'; + o.externalSignedUri = 'foo'; + o.rootDirectory = 'foo'; + o.userStorageUri = 'foo'; + } + buildCounterArchiveSource--; + return o; +} + +void checkArchiveSource(api.ArchiveSource o) { + buildCounterArchiveSource++; + if (buildCounterArchiveSource < 3) { + checkSourceUserMetadata(o.author!); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.externalSignedUri!, unittest.equals('foo')); + unittest.expect(o.rootDirectory!, unittest.equals('foo')); + unittest.expect(o.userStorageUri!, unittest.equals('foo')); + } + buildCounterArchiveSource--; +} + core.Map buildUnnamed0() => {'x': 'foo', 'y': 'foo'}; void checkUnnamed0(core.Map o) { @@ -71,6 +98,7 @@ api.Backend buildBackend() { o.mode = 'foo'; o.name = 'foo'; o.reconciling = true; + o.requestLogsDisabled = true; o.serviceAccount = 'foo'; o.servingLocality = 'foo'; o.uid = 'foo'; @@ -97,6 +125,7 @@ void checkBackend(api.Backend o) { unittest.expect(o.mode!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.reconciling!, unittest.isTrue); + unittest.expect(o.requestLogsDisabled!, unittest.isTrue); unittest.expect(o.serviceAccount!, unittest.equals('foo')); unittest.expect(o.servingLocality!, unittest.equals('foo')); unittest.expect(o.uid!, unittest.equals('foo')); @@ -186,6 +215,7 @@ api.BuildSource buildBuildSource() { final o = api.BuildSource(); buildCounterBuildSource++; if (buildCounterBuildSource < 3) { + o.archive = buildArchiveSource(); o.codebase = buildCodebaseSource(); o.container = buildContainerSource(); } @@ -196,6 +226,7 @@ api.BuildSource buildBuildSource() { void checkBuildSource(api.BuildSource o) { buildCounterBuildSource++; if (buildCounterBuildSource < 3) { + checkArchiveSource(o.archive!); checkCodebaseSource(o.codebase!); checkContainerSource(o.container!); } @@ -1163,6 +1194,29 @@ void checkServingBehavior(api.ServingBehavior o) { buildCounterServingBehavior--; } +core.int buildCounterSourceUserMetadata = 0; +api.SourceUserMetadata buildSourceUserMetadata() { + final o = api.SourceUserMetadata(); + buildCounterSourceUserMetadata++; + if (buildCounterSourceUserMetadata < 3) { + o.displayName = 'foo'; + o.email = 'foo'; + o.imageUri = 'foo'; + } + buildCounterSourceUserMetadata--; + return o; +} + +void checkSourceUserMetadata(api.SourceUserMetadata o) { + buildCounterSourceUserMetadata++; + if (buildCounterSourceUserMetadata < 3) { + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.email!, unittest.equals('foo')); + unittest.expect(o.imageUri!, unittest.equals('foo')); + } + buildCounterSourceUserMetadata--; +} + core.Map buildUnnamed32() => { 'x': { 'list': [1, 2, 3], @@ -1362,6 +1416,17 @@ void checkUnnamed37(core.List o) { } void main() { + unittest.group('obj-schema-ArchiveSource', () { + unittest.test('to-json--from-json', () async { + final o = buildArchiveSource(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ArchiveSource.fromJson( + oJson as core.Map, + ); + checkArchiveSource(od); + }); + }); + unittest.group('obj-schema-Backend', () { unittest.test('to-json--from-json', () async { final o = buildBackend(); @@ -1703,6 +1768,17 @@ void main() { }); }); + unittest.group('obj-schema-SourceUserMetadata', () { + unittest.test('to-json--from-json', () async { + final o = buildSourceUserMetadata(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.SourceUserMetadata.fromJson( + oJson as core.Map, + ); + checkSourceUserMetadata(od); + }); + }); + unittest.group('obj-schema-Status', () { unittest.test('to-json--from-json', () async { final o = buildStatus(); diff --git a/generated/googleapis/test/firebasedataconnect/v1_test.dart b/generated/googleapis/test/firebasedataconnect/v1_test.dart index 7ed90ebec..128b4bd68 100644 --- a/generated/googleapis/test/firebasedataconnect/v1_test.dart +++ b/generated/googleapis/test/firebasedataconnect/v1_test.dart @@ -627,12 +627,62 @@ void checkUnnamed13(core.Map o) { unittest.expect(casted16['string'], unittest.equals('foo')); } +core.int buildCounterImpersonateRequest = 0; +api.ImpersonateRequest buildImpersonateRequest() { + final o = api.ImpersonateRequest(); + buildCounterImpersonateRequest++; + if (buildCounterImpersonateRequest < 3) { + o.extensions = buildGraphqlRequestExtensions(); + o.operationName = 'foo'; + o.variables = buildUnnamed13(); + } + buildCounterImpersonateRequest--; + return o; +} + +void checkImpersonateRequest(api.ImpersonateRequest o) { + buildCounterImpersonateRequest++; + if (buildCounterImpersonateRequest < 3) { + checkGraphqlRequestExtensions(o.extensions!); + unittest.expect(o.operationName!, unittest.equals('foo')); + checkUnnamed13(o.variables!); + } + buildCounterImpersonateRequest--; +} + +core.Map buildUnnamed14() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed14(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted17 = (o['x']!) as core.Map; + unittest.expect(casted17, unittest.hasLength(3)); + unittest.expect(casted17['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted17['bool'], unittest.equals(true)); + unittest.expect(casted17['string'], unittest.equals('foo')); + var casted18 = (o['y']!) as core.Map; + unittest.expect(casted18, unittest.hasLength(3)); + unittest.expect(casted18['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted18['bool'], unittest.equals(true)); + unittest.expect(casted18['string'], unittest.equals('foo')); +} + core.int buildCounterImpersonation = 0; api.Impersonation buildImpersonation() { final o = api.Impersonation(); buildCounterImpersonation++; if (buildCounterImpersonation < 3) { - o.authClaims = buildUnnamed13(); + o.authClaims = buildUnnamed14(); o.includeDebugDetails = true; o.unauthenticated = true; } @@ -643,27 +693,27 @@ api.Impersonation buildImpersonation() { void checkImpersonation(api.Impersonation o) { buildCounterImpersonation++; if (buildCounterImpersonation < 3) { - checkUnnamed13(o.authClaims!); + checkUnnamed14(o.authClaims!); unittest.expect(o.includeDebugDetails!, unittest.isTrue); unittest.expect(o.unauthenticated!, unittest.isTrue); } buildCounterImpersonation--; } -core.List buildUnnamed14() => [ +core.List buildUnnamed15() => [ buildConnector(), buildConnector(), ]; -void checkUnnamed14(core.List o) { +void checkUnnamed15(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkConnector(o[0]); checkConnector(o[1]); } -core.List buildUnnamed15() => ['foo', 'foo']; +core.List buildUnnamed16() => ['foo', 'foo']; -void checkUnnamed15(core.List o) { +void checkUnnamed16(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -674,9 +724,9 @@ api.ListConnectorsResponse buildListConnectorsResponse() { final o = api.ListConnectorsResponse(); buildCounterListConnectorsResponse++; if (buildCounterListConnectorsResponse < 3) { - o.connectors = buildUnnamed14(); + o.connectors = buildUnnamed15(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed15(); + o.unreachable = buildUnnamed16(); } buildCounterListConnectorsResponse--; return o; @@ -685,16 +735,16 @@ api.ListConnectorsResponse buildListConnectorsResponse() { void checkListConnectorsResponse(api.ListConnectorsResponse o) { buildCounterListConnectorsResponse++; if (buildCounterListConnectorsResponse < 3) { - checkUnnamed14(o.connectors!); + checkUnnamed15(o.connectors!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed15(o.unreachable!); + checkUnnamed16(o.unreachable!); } buildCounterListConnectorsResponse--; } -core.List buildUnnamed16() => [buildLocation(), buildLocation()]; +core.List buildUnnamed17() => [buildLocation(), buildLocation()]; -void checkUnnamed16(core.List o) { +void checkUnnamed17(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -705,7 +755,7 @@ api.ListLocationsResponse buildListLocationsResponse() { final o = api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed16(); + o.locations = buildUnnamed17(); o.nextPageToken = 'foo'; } buildCounterListLocationsResponse--; @@ -715,18 +765,18 @@ api.ListLocationsResponse buildListLocationsResponse() { void checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed16(o.locations!); + checkUnnamed17(o.locations!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -core.List buildUnnamed17() => [ +core.List buildUnnamed18() => [ buildOperation(), buildOperation(), ]; -void checkUnnamed17(core.List o) { +void checkUnnamed18(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -738,7 +788,7 @@ api.ListOperationsResponse buildListOperationsResponse() { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = 'foo'; - o.operations = buildUnnamed17(); + o.operations = buildUnnamed18(); } buildCounterListOperationsResponse--; return o; @@ -748,22 +798,22 @@ void checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed17(o.operations!); + checkUnnamed18(o.operations!); } buildCounterListOperationsResponse--; } -core.List buildUnnamed18() => [buildSchema(), buildSchema()]; +core.List buildUnnamed19() => [buildSchema(), buildSchema()]; -void checkUnnamed18(core.List o) { +void checkUnnamed19(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSchema(o[0]); checkSchema(o[1]); } -core.List buildUnnamed19() => ['foo', 'foo']; +core.List buildUnnamed20() => ['foo', 'foo']; -void checkUnnamed19(core.List o) { +void checkUnnamed20(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -775,8 +825,8 @@ api.ListSchemasResponse buildListSchemasResponse() { buildCounterListSchemasResponse++; if (buildCounterListSchemasResponse < 3) { o.nextPageToken = 'foo'; - o.schemas = buildUnnamed18(); - o.unreachable = buildUnnamed19(); + o.schemas = buildUnnamed19(); + o.unreachable = buildUnnamed20(); } buildCounterListSchemasResponse--; return o; @@ -786,23 +836,23 @@ void checkListSchemasResponse(api.ListSchemasResponse o) { buildCounterListSchemasResponse++; if (buildCounterListSchemasResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed18(o.schemas!); - checkUnnamed19(o.unreachable!); + checkUnnamed19(o.schemas!); + checkUnnamed20(o.unreachable!); } buildCounterListSchemasResponse--; } -core.List buildUnnamed20() => [buildService(), buildService()]; +core.List buildUnnamed21() => [buildService(), buildService()]; -void checkUnnamed20(core.List o) { +void checkUnnamed21(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); } -core.List buildUnnamed21() => ['foo', 'foo']; +core.List buildUnnamed22() => ['foo', 'foo']; -void checkUnnamed21(core.List o) { +void checkUnnamed22(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -814,8 +864,8 @@ api.ListServicesResponse buildListServicesResponse() { buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = 'foo'; - o.services = buildUnnamed20(); - o.unreachable = buildUnnamed21(); + o.services = buildUnnamed21(); + o.unreachable = buildUnnamed22(); } buildCounterListServicesResponse--; return o; @@ -825,21 +875,21 @@ void checkListServicesResponse(api.ListServicesResponse o) { buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed20(o.services!); - checkUnnamed21(o.unreachable!); + checkUnnamed21(o.services!); + checkUnnamed22(o.unreachable!); } buildCounterListServicesResponse--; } -core.Map buildUnnamed22() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed23() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed22(core.Map o) { +void checkUnnamed23(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed23() => { +core.Map buildUnnamed24() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -852,18 +902,18 @@ core.Map buildUnnamed23() => { }, }; -void checkUnnamed23(core.Map o) { +void checkUnnamed24(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted17 = (o['x']!) as core.Map; - unittest.expect(casted17, unittest.hasLength(3)); - unittest.expect(casted17['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted17['bool'], unittest.equals(true)); - unittest.expect(casted17['string'], unittest.equals('foo')); - var casted18 = (o['y']!) as core.Map; - unittest.expect(casted18, unittest.hasLength(3)); - unittest.expect(casted18['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted18['bool'], unittest.equals(true)); - unittest.expect(casted18['string'], unittest.equals('foo')); + var casted19 = (o['x']!) as core.Map; + unittest.expect(casted19, unittest.hasLength(3)); + unittest.expect(casted19['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted19['bool'], unittest.equals(true)); + unittest.expect(casted19['string'], unittest.equals('foo')); + var casted20 = (o['y']!) as core.Map; + unittest.expect(casted20, unittest.hasLength(3)); + unittest.expect(casted20['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted20['bool'], unittest.equals(true)); + unittest.expect(casted20['string'], unittest.equals('foo')); } core.int buildCounterLocation = 0; @@ -872,9 +922,9 @@ api.Location buildLocation() { buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = 'foo'; - o.labels = buildUnnamed22(); + o.labels = buildUnnamed23(); o.locationId = 'foo'; - o.metadata = buildUnnamed23(); + o.metadata = buildUnnamed24(); o.name = 'foo'; } buildCounterLocation--; @@ -885,15 +935,15 @@ void checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed22(o.labels!); + checkUnnamed23(o.labels!); unittest.expect(o.locationId!, unittest.equals('foo')); - checkUnnamed23(o.metadata!); + checkUnnamed24(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); } buildCounterLocation--; } -core.Map buildUnnamed24() => { +core.Map buildUnnamed25() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -906,21 +956,21 @@ core.Map buildUnnamed24() => { }, }; -void checkUnnamed24(core.Map o) { +void checkUnnamed25(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted19 = (o['x']!) as core.Map; - unittest.expect(casted19, unittest.hasLength(3)); - unittest.expect(casted19['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted19['bool'], unittest.equals(true)); - unittest.expect(casted19['string'], unittest.equals('foo')); - var casted20 = (o['y']!) as core.Map; - unittest.expect(casted20, unittest.hasLength(3)); - unittest.expect(casted20['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted20['bool'], unittest.equals(true)); - unittest.expect(casted20['string'], unittest.equals('foo')); + var casted21 = (o['x']!) as core.Map; + unittest.expect(casted21, unittest.hasLength(3)); + unittest.expect(casted21['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted21['bool'], unittest.equals(true)); + unittest.expect(casted21['string'], unittest.equals('foo')); + var casted22 = (o['y']!) as core.Map; + unittest.expect(casted22, unittest.hasLength(3)); + unittest.expect(casted22['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted22['bool'], unittest.equals(true)); + unittest.expect(casted22['string'], unittest.equals('foo')); } -core.Map buildUnnamed25() => { +core.Map buildUnnamed26() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -933,18 +983,18 @@ core.Map buildUnnamed25() => { }, }; -void checkUnnamed25(core.Map o) { +void checkUnnamed26(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted21 = (o['x']!) as core.Map; - unittest.expect(casted21, unittest.hasLength(3)); - unittest.expect(casted21['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted21['bool'], unittest.equals(true)); - unittest.expect(casted21['string'], unittest.equals('foo')); - var casted22 = (o['y']!) as core.Map; - unittest.expect(casted22, unittest.hasLength(3)); - unittest.expect(casted22['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted22['bool'], unittest.equals(true)); - unittest.expect(casted22['string'], unittest.equals('foo')); + var casted23 = (o['x']!) as core.Map; + unittest.expect(casted23, unittest.hasLength(3)); + unittest.expect(casted23['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted23['bool'], unittest.equals(true)); + unittest.expect(casted23['string'], unittest.equals('foo')); + var casted24 = (o['y']!) as core.Map; + unittest.expect(casted24, unittest.hasLength(3)); + unittest.expect(casted24['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted24['bool'], unittest.equals(true)); + unittest.expect(casted24['string'], unittest.equals('foo')); } core.int buildCounterOperation = 0; @@ -954,9 +1004,9 @@ api.Operation buildOperation() { if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed24(); + o.metadata = buildUnnamed25(); o.name = 'foo'; - o.response = buildUnnamed25(); + o.response = buildUnnamed26(); } buildCounterOperation--; return o; @@ -967,9 +1017,9 @@ void checkOperation(api.Operation o) { if (buildCounterOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkStatus(o.error!); - checkUnnamed24(o.metadata!); + checkUnnamed25(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed25(o.response!); + checkUnnamed26(o.response!); } buildCounterOperation--; } @@ -981,6 +1031,7 @@ api.PostgreSql buildPostgreSql() { if (buildCounterPostgreSql < 3) { o.cloudSql = buildCloudSqlInstance(); o.database = 'foo'; + o.ephemeral = true; o.schemaMigration = 'foo'; o.schemaValidation = 'foo'; o.unlinked = true; @@ -994,6 +1045,7 @@ void checkPostgreSql(api.PostgreSql o) { if (buildCounterPostgreSql < 3) { checkCloudSqlInstance(o.cloudSql!); unittest.expect(o.database!, unittest.equals('foo')); + unittest.expect(o.ephemeral!, unittest.isTrue); unittest.expect(o.schemaMigration!, unittest.equals('foo')); unittest.expect(o.schemaValidation!, unittest.equals('foo')); unittest.expect(o.unlinked!, unittest.isTrue); @@ -1001,28 +1053,28 @@ void checkPostgreSql(api.PostgreSql o) { buildCounterPostgreSql--; } -core.Map buildUnnamed26() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed27() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed26(core.Map o) { +void checkUnnamed27(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed27() => [ +core.List buildUnnamed28() => [ buildDatasource(), buildDatasource(), ]; -void checkUnnamed27(core.List o) { +void checkUnnamed28(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDatasource(o[0]); checkDatasource(o[1]); } -core.Map buildUnnamed28() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed29() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed28(core.Map o) { +void checkUnnamed29(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -1033,12 +1085,12 @@ api.Schema buildSchema() { final o = api.Schema(); buildCounterSchema++; if (buildCounterSchema < 3) { - o.annotations = buildUnnamed26(); + o.annotations = buildUnnamed27(); o.createTime = 'foo'; - o.datasources = buildUnnamed27(); + o.datasources = buildUnnamed28(); o.displayName = 'foo'; o.etag = 'foo'; - o.labels = buildUnnamed28(); + o.labels = buildUnnamed29(); o.name = 'foo'; o.reconciling = true; o.source = buildSource(); @@ -1052,12 +1104,12 @@ api.Schema buildSchema() { void checkSchema(api.Schema o) { buildCounterSchema++; if (buildCounterSchema < 3) { - checkUnnamed26(o.annotations!); + checkUnnamed27(o.annotations!); unittest.expect(o.createTime!, unittest.equals('foo')); - checkUnnamed27(o.datasources!); + checkUnnamed28(o.datasources!); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed28(o.labels!); + checkUnnamed29(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.reconciling!, unittest.isTrue); checkSource(o.source!); @@ -1067,17 +1119,17 @@ void checkSchema(api.Schema o) { buildCounterSchema--; } -core.Map buildUnnamed29() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed30() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed29(core.Map o) { +void checkUnnamed30(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed30() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed31() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed30(core.Map o) { +void checkUnnamed31(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -1088,11 +1140,11 @@ api.Service buildService() { final o = api.Service(); buildCounterService++; if (buildCounterService < 3) { - o.annotations = buildUnnamed29(); + o.annotations = buildUnnamed30(); o.createTime = 'foo'; o.displayName = 'foo'; o.etag = 'foo'; - o.labels = buildUnnamed30(); + o.labels = buildUnnamed31(); o.name = 'foo'; o.reconciling = true; o.uid = 'foo'; @@ -1105,11 +1157,11 @@ api.Service buildService() { void checkService(api.Service o) { buildCounterService++; if (buildCounterService < 3) { - checkUnnamed29(o.annotations!); + checkUnnamed30(o.annotations!); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed30(o.labels!); + checkUnnamed31(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.reconciling!, unittest.isTrue); unittest.expect(o.uid!, unittest.equals('foo')); @@ -1118,9 +1170,9 @@ void checkService(api.Service o) { buildCounterService--; } -core.List buildUnnamed31() => [buildFile(), buildFile()]; +core.List buildUnnamed32() => [buildFile(), buildFile()]; -void checkUnnamed31(core.List o) { +void checkUnnamed32(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -1131,7 +1183,7 @@ api.Source buildSource() { final o = api.Source(); buildCounterSource++; if (buildCounterSource < 3) { - o.files = buildUnnamed31(); + o.files = buildUnnamed32(); } buildCounterSource--; return o; @@ -1140,7 +1192,7 @@ api.Source buildSource() { void checkSource(api.Source o) { buildCounterSource++; if (buildCounterSource < 3) { - checkUnnamed31(o.files!); + checkUnnamed32(o.files!); } buildCounterSource--; } @@ -1166,7 +1218,7 @@ void checkSourceLocation(api.SourceLocation o) { buildCounterSourceLocation--; } -core.Map buildUnnamed32() => { +core.Map buildUnnamed33() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1179,29 +1231,29 @@ core.Map buildUnnamed32() => { }, }; -void checkUnnamed32(core.Map o) { +void checkUnnamed33(core.Map o) { unittest.expect(o, unittest.hasLength(2)); - var casted23 = (o['x']!) as core.Map; - unittest.expect(casted23, unittest.hasLength(3)); - unittest.expect(casted23['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted23['bool'], unittest.equals(true)); - unittest.expect(casted23['string'], unittest.equals('foo')); - var casted24 = (o['y']!) as core.Map; - unittest.expect(casted24, unittest.hasLength(3)); - unittest.expect(casted24['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted24['bool'], unittest.equals(true)); - unittest.expect(casted24['string'], unittest.equals('foo')); -} - -core.List> buildUnnamed33() => [ - buildUnnamed32(), - buildUnnamed32(), + var casted25 = (o['x']!) as core.Map; + unittest.expect(casted25, unittest.hasLength(3)); + unittest.expect(casted25['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted25['bool'], unittest.equals(true)); + unittest.expect(casted25['string'], unittest.equals('foo')); + var casted26 = (o['y']!) as core.Map; + unittest.expect(casted26, unittest.hasLength(3)); + unittest.expect(casted26['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted26['bool'], unittest.equals(true)); + unittest.expect(casted26['string'], unittest.equals('foo')); +} + +core.List> buildUnnamed34() => [ + buildUnnamed33(), + buildUnnamed33(), ]; -void checkUnnamed33(core.List> o) { +void checkUnnamed34(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed32(o[0]); - checkUnnamed32(o[1]); + checkUnnamed33(o[0]); + checkUnnamed33(o[1]); } core.int buildCounterStatus = 0; @@ -1210,7 +1262,7 @@ api.Status buildStatus() { buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed33(); + o.details = buildUnnamed34(); o.message = 'foo'; } buildCounterStatus--; @@ -1221,15 +1273,15 @@ void checkStatus(api.Status o) { buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed33(o.details!); + checkUnnamed34(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStatus--; } -core.List buildUnnamed34() => ['foo', 'foo']; +core.List buildUnnamed35() => ['foo', 'foo']; -void checkUnnamed34(core.List o) { +void checkUnnamed35(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1401,6 +1453,17 @@ void main() { }); }); + unittest.group('obj-schema-ImpersonateRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildImpersonateRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ImpersonateRequest.fromJson( + oJson as core.Map, + ); + checkImpersonateRequest(od); + }); + }); + unittest.group('obj-schema-Impersonation', () { unittest.test('to-json--from-json', () async { final o = buildImpersonation(); @@ -1613,7 +1676,7 @@ void main() { final mock = HttpServerMock(); final res = api.FirebaseDataConnectApi(mock).projects.locations; final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed34(); + final arg_extraLocationTypes = buildUnnamed35(); final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; @@ -2283,6 +2346,69 @@ void main() { checkService(response as api.Service); }); + unittest.test('method--introspectGraphql', () async { + final mock = HttpServerMock(); + final res = api.FirebaseDataConnectApi(mock).projects.locations.services; + final arg_request = buildGraphqlRequest(); + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GraphqlRequest.fromJson( + json as core.Map, + ); + checkGraphqlRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGraphqlResponse()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.introspectGraphql( + arg_request, + arg_name, + $fields: arg_$fields, + ); + checkGraphqlResponse(response as api.GraphqlResponse); + }); + unittest.test('method--list', () async { final mock = HttpServerMock(); final res = api.FirebaseDataConnectApi(mock).projects.locations.services; @@ -2810,6 +2936,138 @@ void main() { checkConnector(response as api.Connector); }); + unittest.test('method--impersonateMutation', () async { + final mock = HttpServerMock(); + final res = + api.FirebaseDataConnectApi( + mock, + ).projects.locations.services.connectors; + final arg_request = buildImpersonateRequest(); + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.ImpersonateRequest.fromJson( + json as core.Map, + ); + checkImpersonateRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGraphqlResponse()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.impersonateMutation( + arg_request, + arg_name, + $fields: arg_$fields, + ); + checkGraphqlResponse(response as api.GraphqlResponse); + }); + + unittest.test('method--impersonateQuery', () async { + final mock = HttpServerMock(); + final res = + api.FirebaseDataConnectApi( + mock, + ).projects.locations.services.connectors; + final arg_request = buildImpersonateRequest(); + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.ImpersonateRequest.fromJson( + json as core.Map, + ); + checkImpersonateRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGraphqlResponse()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.impersonateQuery( + arg_request, + arg_name, + $fields: arg_$fields, + ); + checkGraphqlResponse(response as api.GraphqlResponse); + }); + unittest.test('method--list', () async { final mock = HttpServerMock(); final res = diff --git a/generated/googleapis/test/firestore/v1_test.dart b/generated/googleapis/test/firestore/v1_test.dart index 28e207a53..15f1247d4 100644 --- a/generated/googleapis/test/firestore/v1_test.dart +++ b/generated/googleapis/test/firestore/v1_test.dart @@ -1339,6 +1339,7 @@ api.GoogleFirestoreAdminV1Index buildGoogleFirestoreAdminV1Index() { o.queryScope = 'foo'; o.shardCount = 42; o.state = 'foo'; + o.unique = true; } buildCounterGoogleFirestoreAdminV1Index--; return o; @@ -1355,6 +1356,7 @@ void checkGoogleFirestoreAdminV1Index(api.GoogleFirestoreAdminV1Index o) { unittest.expect(o.queryScope!, unittest.equals('foo')); unittest.expect(o.shardCount!, unittest.equals(42)); unittest.expect(o.state!, unittest.equals('foo')); + unittest.expect(o.unique!, unittest.isTrue); } buildCounterGoogleFirestoreAdminV1Index--; } diff --git a/generated/googleapis/test/gkehub/v1_test.dart b/generated/googleapis/test/gkehub/v1_test.dart index 2687b3bad..7d4072f9f 100644 --- a/generated/googleapis/test/gkehub/v1_test.dart +++ b/generated/googleapis/test/gkehub/v1_test.dart @@ -4333,6 +4333,7 @@ api.ResourceOptions buildResourceOptions() { buildCounterResourceOptions++; if (buildCounterResourceOptions < 3) { o.connectVersion = 'foo'; + o.k8sGitVersion = 'foo'; o.k8sVersion = 'foo'; o.v1beta1Crd = true; } @@ -4344,6 +4345,7 @@ void checkResourceOptions(api.ResourceOptions o) { buildCounterResourceOptions++; if (buildCounterResourceOptions < 3) { unittest.expect(o.connectVersion!, unittest.equals('foo')); + unittest.expect(o.k8sGitVersion!, unittest.equals('foo')); unittest.expect(o.k8sVersion!, unittest.equals('foo')); unittest.expect(o.v1beta1Crd!, unittest.isTrue); } diff --git a/generated/googleapis/test/gkeonprem/v1_test.dart b/generated/googleapis/test/gkeonprem/v1_test.dart index c1183cd17..0b46a2601 100644 --- a/generated/googleapis/test/gkeonprem/v1_test.dart +++ b/generated/googleapis/test/gkeonprem/v1_test.dart @@ -3128,6 +3128,7 @@ api.VmwareAdminCluster buildVmwareAdminCluster() { o.platformConfig = buildVmwarePlatformConfig(); o.preparedSecrets = buildVmwareAdminPreparedSecretsConfig(); o.privateRegistryConfig = buildVmwareAdminPrivateRegistryConfig(); + o.proxy = buildVmwareAdminProxy(); o.reconciling = true; o.state = 'foo'; o.status = buildResourceStatus(); @@ -3165,6 +3166,7 @@ void checkVmwareAdminCluster(api.VmwareAdminCluster o) { checkVmwarePlatformConfig(o.platformConfig!); checkVmwareAdminPreparedSecretsConfig(o.preparedSecrets!); checkVmwareAdminPrivateRegistryConfig(o.privateRegistryConfig!); + checkVmwareAdminProxy(o.proxy!); unittest.expect(o.reconciling!, unittest.isTrue); unittest.expect(o.state!, unittest.equals('foo')); checkResourceStatus(o.status!); @@ -3409,6 +3411,27 @@ void checkVmwareAdminPrivateRegistryConfig( buildCounterVmwareAdminPrivateRegistryConfig--; } +core.int buildCounterVmwareAdminProxy = 0; +api.VmwareAdminProxy buildVmwareAdminProxy() { + final o = api.VmwareAdminProxy(); + buildCounterVmwareAdminProxy++; + if (buildCounterVmwareAdminProxy < 3) { + o.noProxy = 'foo'; + o.url = 'foo'; + } + buildCounterVmwareAdminProxy--; + return o; +} + +void checkVmwareAdminProxy(api.VmwareAdminProxy o) { + buildCounterVmwareAdminProxy++; + if (buildCounterVmwareAdminProxy < 3) { + unittest.expect(o.noProxy!, unittest.equals('foo')); + unittest.expect(o.url!, unittest.equals('foo')); + } + buildCounterVmwareAdminProxy--; +} + core.List buildUnnamed63() => [ buildVmwareIpBlock(), buildVmwareIpBlock(), @@ -5752,6 +5775,17 @@ void main() { }); }); + unittest.group('obj-schema-VmwareAdminProxy', () { + unittest.test('to-json--from-json', () async { + final o = buildVmwareAdminProxy(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.VmwareAdminProxy.fromJson( + oJson as core.Map, + ); + checkVmwareAdminProxy(od); + }); + }); + unittest.group('obj-schema-VmwareAdminSeesawConfig', () { unittest.test('to-json--from-json', () async { final o = buildVmwareAdminSeesawConfig(); diff --git a/generated/googleapis/test/looker/v1_test.dart b/generated/googleapis/test/looker/v1_test.dart index 06db3bee0..1e706f28f 100644 --- a/generated/googleapis/test/looker/v1_test.dart +++ b/generated/googleapis/test/looker/v1_test.dart @@ -776,6 +776,7 @@ api.ServiceAttachment buildServiceAttachment() { buildCounterServiceAttachment++; if (buildCounterServiceAttachment < 3) { o.connectionStatus = 'foo'; + o.failureReason = 'foo'; o.localFqdn = 'foo'; o.localFqdns = buildUnnamed13(); o.targetServiceAttachmentUri = 'foo'; @@ -788,6 +789,7 @@ void checkServiceAttachment(api.ServiceAttachment o) { buildCounterServiceAttachment++; if (buildCounterServiceAttachment < 3) { unittest.expect(o.connectionStatus!, unittest.equals('foo')); + unittest.expect(o.failureReason!, unittest.equals('foo')); unittest.expect(o.localFqdn!, unittest.equals('foo')); checkUnnamed13(o.localFqdns!); unittest.expect(o.targetServiceAttachmentUri!, unittest.equals('foo')); diff --git a/generated/googleapis/test/managedkafka/v1_test.dart b/generated/googleapis/test/managedkafka/v1_test.dart index 80b0779d4..c6c814b08 100644 --- a/generated/googleapis/test/managedkafka/v1_test.dart +++ b/generated/googleapis/test/managedkafka/v1_test.dart @@ -284,6 +284,7 @@ api.Cluster buildCluster() { o.satisfiesPzs = true; o.state = 'foo'; o.tlsConfig = buildTlsConfig(); + o.updateOptions = buildUpdateOptions(); o.updateTime = 'foo'; } buildCounterCluster--; @@ -303,6 +304,7 @@ void checkCluster(api.Cluster o) { unittest.expect(o.satisfiesPzs!, unittest.isTrue); unittest.expect(o.state!, unittest.equals('foo')); checkTlsConfig(o.tlsConfig!); + checkUpdateOptions(o.updateOptions!); unittest.expect(o.updateTime!, unittest.equals('foo')); } buildCounterCluster--; @@ -1771,6 +1773,25 @@ void checkTrustConfig(api.TrustConfig o) { buildCounterTrustConfig--; } +core.int buildCounterUpdateOptions = 0; +api.UpdateOptions buildUpdateOptions() { + final o = api.UpdateOptions(); + buildCounterUpdateOptions++; + if (buildCounterUpdateOptions < 3) { + o.allowBrokerDownscaleOnClusterUpscale = true; + } + buildCounterUpdateOptions--; + return o; +} + +void checkUpdateOptions(api.UpdateOptions o) { + buildCounterUpdateOptions++; + if (buildCounterUpdateOptions < 3) { + unittest.expect(o.allowBrokerDownscaleOnClusterUpscale!, unittest.isTrue); + } + buildCounterUpdateOptions--; +} + core.int buildCounterUpdateSchemaConfigRequest = 0; api.UpdateSchemaConfigRequest buildUpdateSchemaConfigRequest() { final o = api.UpdateSchemaConfigRequest(); @@ -2467,6 +2488,17 @@ void main() { }); }); + unittest.group('obj-schema-UpdateOptions', () { + unittest.test('to-json--from-json', () async { + final o = buildUpdateOptions(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.UpdateOptions.fromJson( + oJson as core.Map, + ); + checkUpdateOptions(od); + }); + }); + unittest.group('obj-schema-UpdateSchemaConfigRequest', () { unittest.test('to-json--from-json', () async { final o = buildUpdateSchemaConfigRequest(); @@ -5334,6 +5366,7 @@ void main() { final mock = HttpServerMock(); final res = api.ManagedKafkaApi(mock).projects.locations.schemaRegistries; final arg_parent = 'foo'; + final arg_view = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -5368,6 +5401,7 @@ void main() { ); } } + unittest.expect(queryMap['view']!.first, unittest.equals(arg_view)); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -5379,7 +5413,11 @@ void main() { }), true, ); - final response = await res.list(arg_parent, $fields: arg_$fields); + final response = await res.list( + arg_parent, + view: arg_view, + $fields: arg_$fields, + ); checkListSchemaRegistriesResponse( response as api.ListSchemaRegistriesResponse, ); diff --git a/generated/googleapis/test/manufacturers/v1_test.dart b/generated/googleapis/test/manufacturers/v1_test.dart index 5b348f356..266d819a2 100644 --- a/generated/googleapis/test/manufacturers/v1_test.dart +++ b/generated/googleapis/test/manufacturers/v1_test.dart @@ -434,7 +434,11 @@ buildGoogleShoppingManufacturersV1ProductCertification() { if (buildCounterGoogleShoppingManufacturersV1ProductCertification < 3) { o.authority = 'foo'; o.code = 'foo'; + o.link = 'foo'; + o.logo = 'foo'; o.name = 'foo'; + o.validUntil = 'foo'; + o.value = 'foo'; } buildCounterGoogleShoppingManufacturersV1ProductCertification--; return o; @@ -447,7 +451,11 @@ void checkGoogleShoppingManufacturersV1ProductCertification( if (buildCounterGoogleShoppingManufacturersV1ProductCertification < 3) { unittest.expect(o.authority!, unittest.equals('foo')); unittest.expect(o.code!, unittest.equals('foo')); + unittest.expect(o.link!, unittest.equals('foo')); + unittest.expect(o.logo!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.validUntil!, unittest.equals('foo')); + unittest.expect(o.value!, unittest.equals('foo')); } buildCounterGoogleShoppingManufacturersV1ProductCertification--; } diff --git a/generated/googleapis/test/mybusinessverifications/v1_test.dart b/generated/googleapis/test/mybusinessverifications/v1_test.dart index cfccb10e9..926b53965 100644 --- a/generated/googleapis/test/mybusinessverifications/v1_test.dart +++ b/generated/googleapis/test/mybusinessverifications/v1_test.dart @@ -478,6 +478,7 @@ api.VerifyLocationRequest buildVerifyLocationRequest() { o.method = 'foo'; o.phoneNumber = 'foo'; o.token = buildVerificationToken(); + o.trustedPartnerToken = 'foo'; } buildCounterVerifyLocationRequest--; return o; @@ -493,6 +494,7 @@ void checkVerifyLocationRequest(api.VerifyLocationRequest o) { unittest.expect(o.method!, unittest.equals('foo')); unittest.expect(o.phoneNumber!, unittest.equals('foo')); checkVerificationToken(o.token!); + unittest.expect(o.trustedPartnerToken!, unittest.equals('foo')); } buildCounterVerifyLocationRequest--; } diff --git a/generated/googleapis/test/netapp/v1_test.dart b/generated/googleapis/test/netapp/v1_test.dart index d47723e85..5899bf13d 100644 --- a/generated/googleapis/test/netapp/v1_test.dart +++ b/generated/googleapis/test/netapp/v1_test.dart @@ -559,12 +559,15 @@ api.HybridReplicationParameters buildHybridReplicationParameters() { if (buildCounterHybridReplicationParameters < 3) { o.clusterLocation = 'foo'; o.description = 'foo'; + o.hybridReplicationType = 'foo'; o.labels = buildUnnamed10(); + o.largeVolumeConstituentCount = 42; o.peerClusterName = 'foo'; o.peerIpAddresses = buildUnnamed11(); o.peerSvmName = 'foo'; o.peerVolumeName = 'foo'; o.replication = 'foo'; + o.replicationSchedule = 'foo'; } buildCounterHybridReplicationParameters--; return o; @@ -575,12 +578,15 @@ void checkHybridReplicationParameters(api.HybridReplicationParameters o) { if (buildCounterHybridReplicationParameters < 3) { unittest.expect(o.clusterLocation!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.hybridReplicationType!, unittest.equals('foo')); checkUnnamed10(o.labels!); + unittest.expect(o.largeVolumeConstituentCount!, unittest.equals(42)); unittest.expect(o.peerClusterName!, unittest.equals('foo')); checkUnnamed11(o.peerIpAddresses!); unittest.expect(o.peerSvmName!, unittest.equals('foo')); unittest.expect(o.peerVolumeName!, unittest.equals('foo')); unittest.expect(o.replication!, unittest.equals('foo')); + unittest.expect(o.replicationSchedule!, unittest.equals('foo')); } buildCounterHybridReplicationParameters--; } @@ -1359,6 +1365,7 @@ api.Replication buildReplication() { o.healthy = true; o.hybridPeeringDetails = buildHybridPeeringDetails(); o.hybridReplicationType = 'foo'; + o.hybridReplicationUserCommands = buildUserCommands(); o.labels = buildUnnamed40(); o.mirrorState = 'foo'; o.name = 'foo'; @@ -1384,6 +1391,7 @@ void checkReplication(api.Replication o) { unittest.expect(o.healthy!, unittest.isTrue); checkHybridPeeringDetails(o.hybridPeeringDetails!); unittest.expect(o.hybridReplicationType!, unittest.equals('foo')); + checkUserCommands(o.hybridReplicationUserCommands!); checkUnnamed40(o.labels!); unittest.expect(o.mirrorState!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); @@ -1477,6 +1485,7 @@ api.SimpleExportPolicyRule buildSimpleExportPolicyRule() { if (buildCounterSimpleExportPolicyRule < 3) { o.accessType = 'foo'; o.allowedClients = 'foo'; + o.anonUid = 'foo'; o.hasRootAccess = 'foo'; o.kerberos5ReadOnly = true; o.kerberos5ReadWrite = true; @@ -1486,6 +1495,7 @@ api.SimpleExportPolicyRule buildSimpleExportPolicyRule() { o.kerberos5pReadWrite = true; o.nfsv3 = true; o.nfsv4 = true; + o.squashMode = 'foo'; } buildCounterSimpleExportPolicyRule--; return o; @@ -1496,6 +1506,7 @@ void checkSimpleExportPolicyRule(api.SimpleExportPolicyRule o) { if (buildCounterSimpleExportPolicyRule < 3) { unittest.expect(o.accessType!, unittest.equals('foo')); unittest.expect(o.allowedClients!, unittest.equals('foo')); + unittest.expect(o.anonUid!, unittest.equals('foo')); unittest.expect(o.hasRootAccess!, unittest.equals('foo')); unittest.expect(o.kerberos5ReadOnly!, unittest.isTrue); unittest.expect(o.kerberos5ReadWrite!, unittest.isTrue); @@ -1505,6 +1516,7 @@ void checkSimpleExportPolicyRule(api.SimpleExportPolicyRule o) { unittest.expect(o.kerberos5pReadWrite!, unittest.isTrue); unittest.expect(o.nfsv3!, unittest.isTrue); unittest.expect(o.nfsv4!, unittest.isTrue); + unittest.expect(o.squashMode!, unittest.equals('foo')); } buildCounterSimpleExportPolicyRule--; } @@ -1670,7 +1682,9 @@ api.StoragePool buildStoragePool() { if (buildCounterStoragePool < 3) { o.activeDirectory = 'foo'; o.allowAutoTiering = true; + o.availableThroughputMibps = 42.0; o.capacityGib = 'foo'; + o.coldTierSizeUsedGib = 'foo'; o.createTime = 'foo'; o.customPerformanceEnabled = true; o.description = 'foo'; @@ -1678,12 +1692,14 @@ api.StoragePool buildStoragePool() { o.encryptionType = 'foo'; o.globalAccessAllowed = true; o.hotTierSizeGib = 'foo'; + o.hotTierSizeUsedGib = 'foo'; o.kmsConfig = 'foo'; o.labels = buildUnnamed44(); o.ldapEnabled = true; o.name = 'foo'; o.network = 'foo'; o.psaRange = 'foo'; + o.qosType = 'foo'; o.replicaZone = 'foo'; o.satisfiesPzi = true; o.satisfiesPzs = true; @@ -1705,7 +1721,9 @@ void checkStoragePool(api.StoragePool o) { if (buildCounterStoragePool < 3) { unittest.expect(o.activeDirectory!, unittest.equals('foo')); unittest.expect(o.allowAutoTiering!, unittest.isTrue); + unittest.expect(o.availableThroughputMibps!, unittest.equals(42.0)); unittest.expect(o.capacityGib!, unittest.equals('foo')); + unittest.expect(o.coldTierSizeUsedGib!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.customPerformanceEnabled!, unittest.isTrue); unittest.expect(o.description!, unittest.equals('foo')); @@ -1713,12 +1731,14 @@ void checkStoragePool(api.StoragePool o) { unittest.expect(o.encryptionType!, unittest.equals('foo')); unittest.expect(o.globalAccessAllowed!, unittest.isTrue); unittest.expect(o.hotTierSizeGib!, unittest.equals('foo')); + unittest.expect(o.hotTierSizeUsedGib!, unittest.equals('foo')); unittest.expect(o.kmsConfig!, unittest.equals('foo')); checkUnnamed44(o.labels!); unittest.expect(o.ldapEnabled!, unittest.isTrue); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); unittest.expect(o.psaRange!, unittest.equals('foo')); + unittest.expect(o.qosType!, unittest.equals('foo')); unittest.expect(o.replicaZone!, unittest.equals('foo')); unittest.expect(o.satisfiesPzi!, unittest.isTrue); unittest.expect(o.satisfiesPzs!, unittest.isTrue); @@ -1820,6 +1840,33 @@ void checkTransferStats(api.TransferStats o) { buildCounterTransferStats--; } +core.List buildUnnamed45() => ['foo', 'foo']; + +void checkUnnamed45(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterUserCommands = 0; +api.UserCommands buildUserCommands() { + final o = api.UserCommands(); + buildCounterUserCommands++; + if (buildCounterUserCommands < 3) { + o.commands = buildUnnamed45(); + } + buildCounterUserCommands--; + return o; +} + +void checkUserCommands(api.UserCommands o) { + buildCounterUserCommands++; + if (buildCounterUserCommands < 3) { + checkUnnamed45(o.commands!); + } + buildCounterUserCommands--; +} + core.int buildCounterValidateDirectoryServiceRequest = 0; api.ValidateDirectoryServiceRequest buildValidateDirectoryServiceRequest() { final o = api.ValidateDirectoryServiceRequest(); @@ -1879,44 +1926,44 @@ void checkVerifyKmsConfigResponse(api.VerifyKmsConfigResponse o) { buildCounterVerifyKmsConfigResponse--; } -core.Map buildUnnamed45() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed46() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed45(core.Map o) { +void checkUnnamed46(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed46() => [ +core.List buildUnnamed47() => [ buildMountOption(), buildMountOption(), ]; -void checkUnnamed46(core.List o) { +void checkUnnamed47(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMountOption(o[0]); checkMountOption(o[1]); } -core.List buildUnnamed47() => ['foo', 'foo']; +core.List buildUnnamed48() => ['foo', 'foo']; -void checkUnnamed47(core.List o) { +void checkUnnamed48(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed48() => ['foo', 'foo']; +core.List buildUnnamed49() => ['foo', 'foo']; -void checkUnnamed48(core.List o) { +void checkUnnamed49(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed49() => ['foo', 'foo']; +core.List buildUnnamed50() => ['foo', 'foo']; -void checkUnnamed49(core.List o) { +void checkUnnamed50(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1936,31 +1983,33 @@ api.Volume buildVolume() { o.encryptionType = 'foo'; o.exportPolicy = buildExportPolicy(); o.hasReplication = true; + o.hotTierSizeUsedGib = 'foo'; o.hybridReplicationParameters = buildHybridReplicationParameters(); o.kerberosEnabled = true; o.kmsConfig = 'foo'; - o.labels = buildUnnamed45(); + o.labels = buildUnnamed46(); o.largeCapacity = true; o.ldapEnabled = true; - o.mountOptions = buildUnnamed46(); + o.mountOptions = buildUnnamed47(); o.multipleEndpoints = true; o.name = 'foo'; o.network = 'foo'; - o.protocols = buildUnnamed47(); + o.protocols = buildUnnamed48(); o.psaRange = 'foo'; o.replicaZone = 'foo'; o.restoreParameters = buildRestoreParameters(); - o.restrictedActions = buildUnnamed48(); + o.restrictedActions = buildUnnamed49(); o.securityStyle = 'foo'; o.serviceLevel = 'foo'; o.shareName = 'foo'; - o.smbSettings = buildUnnamed49(); + o.smbSettings = buildUnnamed50(); o.snapReserve = 42.0; o.snapshotDirectory = true; o.snapshotPolicy = buildSnapshotPolicy(); o.state = 'foo'; o.stateDetails = 'foo'; o.storagePool = 'foo'; + o.throughputMibps = 42.0; o.tieringPolicy = buildTieringPolicy(); o.unixPermissions = 'foo'; o.usedGib = 'foo'; @@ -1982,31 +2031,33 @@ void checkVolume(api.Volume o) { unittest.expect(o.encryptionType!, unittest.equals('foo')); checkExportPolicy(o.exportPolicy!); unittest.expect(o.hasReplication!, unittest.isTrue); + unittest.expect(o.hotTierSizeUsedGib!, unittest.equals('foo')); checkHybridReplicationParameters(o.hybridReplicationParameters!); unittest.expect(o.kerberosEnabled!, unittest.isTrue); unittest.expect(o.kmsConfig!, unittest.equals('foo')); - checkUnnamed45(o.labels!); + checkUnnamed46(o.labels!); unittest.expect(o.largeCapacity!, unittest.isTrue); unittest.expect(o.ldapEnabled!, unittest.isTrue); - checkUnnamed46(o.mountOptions!); + checkUnnamed47(o.mountOptions!); unittest.expect(o.multipleEndpoints!, unittest.isTrue); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); - checkUnnamed47(o.protocols!); + checkUnnamed48(o.protocols!); unittest.expect(o.psaRange!, unittest.equals('foo')); unittest.expect(o.replicaZone!, unittest.equals('foo')); checkRestoreParameters(o.restoreParameters!); - checkUnnamed48(o.restrictedActions!); + checkUnnamed49(o.restrictedActions!); unittest.expect(o.securityStyle!, unittest.equals('foo')); unittest.expect(o.serviceLevel!, unittest.equals('foo')); unittest.expect(o.shareName!, unittest.equals('foo')); - checkUnnamed49(o.smbSettings!); + checkUnnamed50(o.smbSettings!); unittest.expect(o.snapReserve!, unittest.equals(42.0)); unittest.expect(o.snapshotDirectory!, unittest.isTrue); checkSnapshotPolicy(o.snapshotPolicy!); unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.stateDetails!, unittest.equals('foo')); unittest.expect(o.storagePool!, unittest.equals('foo')); + unittest.expect(o.throughputMibps!, unittest.equals(42.0)); checkTieringPolicy(o.tieringPolicy!); unittest.expect(o.unixPermissions!, unittest.equals('foo')); unittest.expect(o.usedGib!, unittest.equals('foo')); @@ -2040,9 +2091,9 @@ void checkWeeklySchedule(api.WeeklySchedule o) { buildCounterWeeklySchedule--; } -core.List buildUnnamed50() => ['foo', 'foo']; +core.List buildUnnamed51() => ['foo', 'foo']; -void checkUnnamed50(core.List o) { +void checkUnnamed51(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2588,6 +2639,17 @@ void main() { }); }); + unittest.group('obj-schema-UserCommands', () { + unittest.test('to-json--from-json', () async { + final o = buildUserCommands(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.UserCommands.fromJson( + oJson as core.Map, + ); + checkUserCommands(od); + }); + }); + unittest.group('obj-schema-ValidateDirectoryServiceRequest', () { unittest.test('to-json--from-json', () async { final o = buildValidateDirectoryServiceRequest(); @@ -2701,7 +2763,7 @@ void main() { final mock = HttpServerMock(); final res = api.NetAppFilesApi(mock).projects.locations; final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed50(); + final arg_extraLocationTypes = buildUnnamed51(); final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; diff --git a/generated/googleapis/test/networkconnectivity/v1_test.dart b/generated/googleapis/test/networkconnectivity/v1_test.dart index 181cd341e..2eda62ce8 100644 --- a/generated/googleapis/test/networkconnectivity/v1_test.dart +++ b/generated/googleapis/test/networkconnectivity/v1_test.dart @@ -179,6 +179,31 @@ void checkAutoAccept(api.AutoAccept o) { buildCounterAutoAccept--; } +core.int buildCounterAutoCreatedSubnetworkInfo = 0; +api.AutoCreatedSubnetworkInfo buildAutoCreatedSubnetworkInfo() { + final o = api.AutoCreatedSubnetworkInfo(); + buildCounterAutoCreatedSubnetworkInfo++; + if (buildCounterAutoCreatedSubnetworkInfo < 3) { + o.internalRange = 'foo'; + o.internalRangeRef = 'foo'; + o.subnetwork = 'foo'; + o.subnetworkRef = 'foo'; + } + buildCounterAutoCreatedSubnetworkInfo--; + return o; +} + +void checkAutoCreatedSubnetworkInfo(api.AutoCreatedSubnetworkInfo o) { + buildCounterAutoCreatedSubnetworkInfo++; + if (buildCounterAutoCreatedSubnetworkInfo < 3) { + unittest.expect(o.internalRange!, unittest.equals('foo')); + unittest.expect(o.internalRangeRef!, unittest.equals('foo')); + unittest.expect(o.subnetwork!, unittest.equals('foo')); + unittest.expect(o.subnetworkRef!, unittest.equals('foo')); + } + buildCounterAutoCreatedSubnetworkInfo--; +} + core.List buildUnnamed3() => ['foo', 'foo']; void checkUnnamed3(core.List o) { @@ -316,6 +341,87 @@ void checkConsumerPscConnection(api.ConsumerPscConnection o) { buildCounterConsumerPscConnection--; } +core.List buildUnnamed7() => [ + buildDestinationEndpoint(), + buildDestinationEndpoint(), +]; + +void checkUnnamed7(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkDestinationEndpoint(o[0]); + checkDestinationEndpoint(o[1]); +} + +core.Map buildUnnamed8() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed8(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterDestination = 0; +api.Destination buildDestination() { + final o = api.Destination(); + buildCounterDestination++; + if (buildCounterDestination < 3) { + o.createTime = 'foo'; + o.description = 'foo'; + o.endpoints = buildUnnamed7(); + o.etag = 'foo'; + o.ipPrefix = 'foo'; + o.labels = buildUnnamed8(); + o.name = 'foo'; + o.stateTimeline = buildStateTimeline(); + o.uid = 'foo'; + o.updateTime = 'foo'; + } + buildCounterDestination--; + return o; +} + +void checkDestination(api.Destination o) { + buildCounterDestination++; + if (buildCounterDestination < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + checkUnnamed7(o.endpoints!); + unittest.expect(o.etag!, unittest.equals('foo')); + unittest.expect(o.ipPrefix!, unittest.equals('foo')); + checkUnnamed8(o.labels!); + unittest.expect(o.name!, unittest.equals('foo')); + checkStateTimeline(o.stateTimeline!); + unittest.expect(o.uid!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); + } + buildCounterDestination--; +} + +core.int buildCounterDestinationEndpoint = 0; +api.DestinationEndpoint buildDestinationEndpoint() { + final o = api.DestinationEndpoint(); + buildCounterDestinationEndpoint++; + if (buildCounterDestinationEndpoint < 3) { + o.asn = 'foo'; + o.csp = 'foo'; + o.state = 'foo'; + o.updateTime = 'foo'; + } + buildCounterDestinationEndpoint--; + return o; +} + +void checkDestinationEndpoint(api.DestinationEndpoint o) { + buildCounterDestinationEndpoint++; + if (buildCounterDestinationEndpoint < 3) { + unittest.expect(o.asn!, unittest.equals('foo')); + unittest.expect(o.csp!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); + } + buildCounterDestinationEndpoint--; +} + core.int buildCounterEmpty = 0; api.Empty buildEmpty() { final o = api.Empty(); @@ -399,12 +505,12 @@ void checkGoogleLongrunningCancelOperationRequest( buildCounterGoogleLongrunningCancelOperationRequest--; } -core.List buildUnnamed7() => [ +core.List buildUnnamed9() => [ buildGoogleLongrunningOperation(), buildGoogleLongrunningOperation(), ]; -void checkUnnamed7(core.List o) { +void checkUnnamed9(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0]); checkGoogleLongrunningOperation(o[1]); @@ -417,7 +523,7 @@ buildGoogleLongrunningListOperationsResponse() { buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = 'foo'; - o.operations = buildUnnamed7(); + o.operations = buildUnnamed9(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; @@ -429,12 +535,12 @@ void checkGoogleLongrunningListOperationsResponse( buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed7(o.operations!); + checkUnnamed9(o.operations!); } buildCounterGoogleLongrunningListOperationsResponse--; } -core.Map buildUnnamed8() => { +core.Map buildUnnamed10() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -447,7 +553,7 @@ core.Map buildUnnamed8() => { }, }; -void checkUnnamed8(core.Map o) { +void checkUnnamed10(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o['x']!) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -461,7 +567,7 @@ void checkUnnamed8(core.Map o) { unittest.expect(casted2['string'], unittest.equals('foo')); } -core.Map buildUnnamed9() => { +core.Map buildUnnamed11() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -474,7 +580,7 @@ core.Map buildUnnamed9() => { }, }; -void checkUnnamed9(core.Map o) { +void checkUnnamed11(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o['x']!) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -495,9 +601,9 @@ api.GoogleLongrunningOperation buildGoogleLongrunningOperation() { if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed8(); + o.metadata = buildUnnamed10(); o.name = 'foo'; - o.response = buildUnnamed9(); + o.response = buildUnnamed11(); } buildCounterGoogleLongrunningOperation--; return o; @@ -508,16 +614,16 @@ void checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkGoogleRpcStatus(o.error!); - checkUnnamed8(o.metadata!); + checkUnnamed10(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed9(o.response!); + checkUnnamed11(o.response!); } buildCounterGoogleLongrunningOperation--; } -core.Map buildUnnamed10() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed12() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed10(core.Map o) { +void checkUnnamed12(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -529,7 +635,7 @@ api.GoogleRpcErrorInfo buildGoogleRpcErrorInfo() { buildCounterGoogleRpcErrorInfo++; if (buildCounterGoogleRpcErrorInfo < 3) { o.domain = 'foo'; - o.metadata = buildUnnamed10(); + o.metadata = buildUnnamed12(); o.reason = 'foo'; } buildCounterGoogleRpcErrorInfo--; @@ -540,13 +646,13 @@ void checkGoogleRpcErrorInfo(api.GoogleRpcErrorInfo o) { buildCounterGoogleRpcErrorInfo++; if (buildCounterGoogleRpcErrorInfo < 3) { unittest.expect(o.domain!, unittest.equals('foo')); - checkUnnamed10(o.metadata!); + checkUnnamed12(o.metadata!); unittest.expect(o.reason!, unittest.equals('foo')); } buildCounterGoogleRpcErrorInfo--; } -core.Map buildUnnamed11() => { +core.Map buildUnnamed13() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -559,7 +665,7 @@ core.Map buildUnnamed11() => { }, }; -void checkUnnamed11(core.Map o) { +void checkUnnamed13(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o['x']!) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -573,15 +679,15 @@ void checkUnnamed11(core.Map o) { unittest.expect(casted6['string'], unittest.equals('foo')); } -core.List> buildUnnamed12() => [ - buildUnnamed11(), - buildUnnamed11(), +core.List> buildUnnamed14() => [ + buildUnnamed13(), + buildUnnamed13(), ]; -void checkUnnamed12(core.List> o) { +void checkUnnamed14(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed11(o[0]); - checkUnnamed11(o[1]); + checkUnnamed13(o[0]); + checkUnnamed13(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -590,7 +696,7 @@ api.GoogleRpcStatus buildGoogleRpcStatus() { buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed12(); + o.details = buildUnnamed14(); o.message = 'foo'; } buildCounterGoogleRpcStatus--; @@ -601,15 +707,15 @@ void checkGoogleRpcStatus(api.GoogleRpcStatus o) { buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed12(o.details!); + checkUnnamed14(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; } -core.Map buildUnnamed13() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed15() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed13(core.Map o) { +void checkUnnamed15(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -623,7 +729,7 @@ api.Group buildGroup() { o.autoAccept = buildAutoAccept(); o.createTime = 'foo'; o.description = 'foo'; - o.labels = buildUnnamed13(); + o.labels = buildUnnamed15(); o.name = 'foo'; o.routeTable = 'foo'; o.state = 'foo'; @@ -640,7 +746,7 @@ void checkGroup(api.Group o) { checkAutoAccept(o.autoAccept!); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed13(o.labels!); + checkUnnamed15(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.routeTable!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); @@ -650,28 +756,28 @@ void checkGroup(api.Group o) { buildCounterGroup--; } -core.Map buildUnnamed14() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed16() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed14(core.Map o) { +void checkUnnamed16(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed15() => ['foo', 'foo']; +core.List buildUnnamed17() => ['foo', 'foo']; -void checkUnnamed15(core.List o) { +void checkUnnamed17(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed16() => [ +core.List buildUnnamed18() => [ buildRoutingVPC(), buildRoutingVPC(), ]; -void checkUnnamed16(core.List o) { +void checkUnnamed18(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRoutingVPC(o[0]); checkRoutingVPC(o[1]); @@ -685,12 +791,12 @@ api.Hub buildHub() { o.createTime = 'foo'; o.description = 'foo'; o.exportPsc = true; - o.labels = buildUnnamed14(); + o.labels = buildUnnamed16(); o.name = 'foo'; o.policyMode = 'foo'; o.presetTopology = 'foo'; - o.routeTables = buildUnnamed15(); - o.routingVpcs = buildUnnamed16(); + o.routeTables = buildUnnamed17(); + o.routingVpcs = buildUnnamed18(); o.spokeSummary = buildSpokeSummary(); o.state = 'foo'; o.uniqueId = 'foo'; @@ -706,12 +812,12 @@ void checkHub(api.Hub o) { unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.exportPsc!, unittest.isTrue); - checkUnnamed14(o.labels!); + checkUnnamed16(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.policyMode!, unittest.equals('foo')); unittest.expect(o.presetTopology!, unittest.equals('foo')); - checkUnnamed15(o.routeTables!); - checkUnnamed16(o.routingVpcs!); + checkUnnamed17(o.routeTables!); + checkUnnamed18(o.routingVpcs!); checkSpokeSummary(o.spokeSummary!); unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.uniqueId!, unittest.equals('foo')); @@ -762,41 +868,41 @@ void checkInterconnectAttachment(api.InterconnectAttachment o) { buildCounterInterconnectAttachment--; } -core.List buildUnnamed17() => ['foo', 'foo']; +core.List buildUnnamed19() => ['foo', 'foo']; -void checkUnnamed17(core.List o) { +void checkUnnamed19(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed18() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed20() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed18(core.Map o) { +void checkUnnamed20(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed19() => ['foo', 'foo']; +core.List buildUnnamed21() => ['foo', 'foo']; -void checkUnnamed19(core.List o) { +void checkUnnamed21(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed20() => ['foo', 'foo']; +core.List buildUnnamed22() => ['foo', 'foo']; -void checkUnnamed20(core.List o) { +void checkUnnamed22(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed21() => ['foo', 'foo']; +core.List buildUnnamed23() => ['foo', 'foo']; -void checkUnnamed21(core.List o) { +void checkUnnamed23(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -810,20 +916,20 @@ api.InternalRange buildInternalRange() { o.allocationOptions = buildAllocationOptions(); o.createTime = 'foo'; o.description = 'foo'; - o.excludeCidrRanges = buildUnnamed17(); + o.excludeCidrRanges = buildUnnamed19(); o.immutable = true; o.ipCidrRange = 'foo'; - o.labels = buildUnnamed18(); + o.labels = buildUnnamed20(); o.migration = buildMigration(); o.name = 'foo'; o.network = 'foo'; - o.overlaps = buildUnnamed19(); + o.overlaps = buildUnnamed21(); o.peering = 'foo'; o.prefixLength = 42; - o.targetCidrRange = buildUnnamed20(); + o.targetCidrRange = buildUnnamed22(); o.updateTime = 'foo'; o.usage = 'foo'; - o.users = buildUnnamed21(); + o.users = buildUnnamed23(); } buildCounterInternalRange--; return o; @@ -835,35 +941,35 @@ void checkInternalRange(api.InternalRange o) { checkAllocationOptions(o.allocationOptions!); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed17(o.excludeCidrRanges!); + checkUnnamed19(o.excludeCidrRanges!); unittest.expect(o.immutable!, unittest.isTrue); unittest.expect(o.ipCidrRange!, unittest.equals('foo')); - checkUnnamed18(o.labels!); + checkUnnamed20(o.labels!); checkMigration(o.migration!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); - checkUnnamed19(o.overlaps!); + checkUnnamed21(o.overlaps!); unittest.expect(o.peering!, unittest.equals('foo')); unittest.expect(o.prefixLength!, unittest.equals(42)); - checkUnnamed20(o.targetCidrRange!); + checkUnnamed22(o.targetCidrRange!); unittest.expect(o.updateTime!, unittest.equals('foo')); unittest.expect(o.usage!, unittest.equals('foo')); - checkUnnamed21(o.users!); + checkUnnamed23(o.users!); } buildCounterInternalRange--; } -core.List buildUnnamed22() => ['foo', 'foo']; +core.List buildUnnamed24() => ['foo', 'foo']; -void checkUnnamed22(core.List o) { +void checkUnnamed24(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed23() => ['foo', 'foo']; +core.List buildUnnamed25() => ['foo', 'foo']; -void checkUnnamed23(core.List o) { +void checkUnnamed25(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -874,9 +980,9 @@ api.LinkedInterconnectAttachments buildLinkedInterconnectAttachments() { final o = api.LinkedInterconnectAttachments(); buildCounterLinkedInterconnectAttachments++; if (buildCounterLinkedInterconnectAttachments < 3) { - o.includeImportRanges = buildUnnamed22(); + o.includeImportRanges = buildUnnamed24(); o.siteToSiteDataTransfer = true; - o.uris = buildUnnamed23(); + o.uris = buildUnnamed25(); o.vpcNetwork = 'foo'; } buildCounterLinkedInterconnectAttachments--; @@ -886,41 +992,41 @@ api.LinkedInterconnectAttachments buildLinkedInterconnectAttachments() { void checkLinkedInterconnectAttachments(api.LinkedInterconnectAttachments o) { buildCounterLinkedInterconnectAttachments++; if (buildCounterLinkedInterconnectAttachments < 3) { - checkUnnamed22(o.includeImportRanges!); + checkUnnamed24(o.includeImportRanges!); unittest.expect(o.siteToSiteDataTransfer!, unittest.isTrue); - checkUnnamed23(o.uris!); + checkUnnamed25(o.uris!); unittest.expect(o.vpcNetwork!, unittest.equals('foo')); } buildCounterLinkedInterconnectAttachments--; } -core.List buildUnnamed24() => ['foo', 'foo']; +core.List buildUnnamed26() => ['foo', 'foo']; -void checkUnnamed24(core.List o) { +void checkUnnamed26(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed25() => ['foo', 'foo']; +core.List buildUnnamed27() => ['foo', 'foo']; -void checkUnnamed25(core.List o) { +void checkUnnamed27(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed26() => ['foo', 'foo']; +core.List buildUnnamed28() => ['foo', 'foo']; -void checkUnnamed26(core.List o) { +void checkUnnamed28(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed27() => ['foo', 'foo']; +core.List buildUnnamed29() => ['foo', 'foo']; -void checkUnnamed27(core.List o) { +void checkUnnamed29(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -931,13 +1037,13 @@ api.LinkedProducerVpcNetwork buildLinkedProducerVpcNetwork() { final o = api.LinkedProducerVpcNetwork(); buildCounterLinkedProducerVpcNetwork++; if (buildCounterLinkedProducerVpcNetwork < 3) { - o.excludeExportRanges = buildUnnamed24(); - o.includeExportRanges = buildUnnamed25(); + o.excludeExportRanges = buildUnnamed26(); + o.includeExportRanges = buildUnnamed27(); o.network = 'foo'; o.peering = 'foo'; o.producerNetwork = 'foo'; - o.proposedExcludeExportRanges = buildUnnamed26(); - o.proposedIncludeExportRanges = buildUnnamed27(); + o.proposedExcludeExportRanges = buildUnnamed28(); + o.proposedIncludeExportRanges = buildUnnamed29(); o.serviceConsumerVpcSpoke = 'foo'; } buildCounterLinkedProducerVpcNetwork--; @@ -947,32 +1053,32 @@ api.LinkedProducerVpcNetwork buildLinkedProducerVpcNetwork() { void checkLinkedProducerVpcNetwork(api.LinkedProducerVpcNetwork o) { buildCounterLinkedProducerVpcNetwork++; if (buildCounterLinkedProducerVpcNetwork < 3) { - checkUnnamed24(o.excludeExportRanges!); - checkUnnamed25(o.includeExportRanges!); + checkUnnamed26(o.excludeExportRanges!); + checkUnnamed27(o.includeExportRanges!); unittest.expect(o.network!, unittest.equals('foo')); unittest.expect(o.peering!, unittest.equals('foo')); unittest.expect(o.producerNetwork!, unittest.equals('foo')); - checkUnnamed26(o.proposedExcludeExportRanges!); - checkUnnamed27(o.proposedIncludeExportRanges!); + checkUnnamed28(o.proposedExcludeExportRanges!); + checkUnnamed29(o.proposedIncludeExportRanges!); unittest.expect(o.serviceConsumerVpcSpoke!, unittest.equals('foo')); } buildCounterLinkedProducerVpcNetwork--; } -core.List buildUnnamed28() => ['foo', 'foo']; +core.List buildUnnamed30() => ['foo', 'foo']; -void checkUnnamed28(core.List o) { +void checkUnnamed30(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed29() => [ +core.List buildUnnamed31() => [ buildRouterApplianceInstance(), buildRouterApplianceInstance(), ]; -void checkUnnamed29(core.List o) { +void checkUnnamed31(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouterApplianceInstance(o[0]); checkRouterApplianceInstance(o[1]); @@ -983,8 +1089,8 @@ api.LinkedRouterApplianceInstances buildLinkedRouterApplianceInstances() { final o = api.LinkedRouterApplianceInstances(); buildCounterLinkedRouterApplianceInstances++; if (buildCounterLinkedRouterApplianceInstances < 3) { - o.includeImportRanges = buildUnnamed28(); - o.instances = buildUnnamed29(); + o.includeImportRanges = buildUnnamed30(); + o.instances = buildUnnamed31(); o.siteToSiteDataTransfer = true; o.vpcNetwork = 'foo'; } @@ -995,49 +1101,49 @@ api.LinkedRouterApplianceInstances buildLinkedRouterApplianceInstances() { void checkLinkedRouterApplianceInstances(api.LinkedRouterApplianceInstances o) { buildCounterLinkedRouterApplianceInstances++; if (buildCounterLinkedRouterApplianceInstances < 3) { - checkUnnamed28(o.includeImportRanges!); - checkUnnamed29(o.instances!); + checkUnnamed30(o.includeImportRanges!); + checkUnnamed31(o.instances!); unittest.expect(o.siteToSiteDataTransfer!, unittest.isTrue); unittest.expect(o.vpcNetwork!, unittest.equals('foo')); } buildCounterLinkedRouterApplianceInstances--; } -core.List buildUnnamed30() => ['foo', 'foo']; +core.List buildUnnamed32() => ['foo', 'foo']; -void checkUnnamed30(core.List o) { +void checkUnnamed32(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed31() => ['foo', 'foo']; +core.List buildUnnamed33() => ['foo', 'foo']; -void checkUnnamed31(core.List o) { +void checkUnnamed33(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed32() => ['foo', 'foo']; +core.List buildUnnamed34() => ['foo', 'foo']; -void checkUnnamed32(core.List o) { +void checkUnnamed34(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed33() => ['foo', 'foo']; +core.List buildUnnamed35() => ['foo', 'foo']; -void checkUnnamed33(core.List o) { +void checkUnnamed35(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed34() => ['foo', 'foo']; +core.List buildUnnamed36() => ['foo', 'foo']; -void checkUnnamed34(core.List o) { +void checkUnnamed36(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1048,11 +1154,11 @@ api.LinkedVpcNetwork buildLinkedVpcNetwork() { final o = api.LinkedVpcNetwork(); buildCounterLinkedVpcNetwork++; if (buildCounterLinkedVpcNetwork < 3) { - o.excludeExportRanges = buildUnnamed30(); - o.includeExportRanges = buildUnnamed31(); - o.producerVpcSpokes = buildUnnamed32(); - o.proposedExcludeExportRanges = buildUnnamed33(); - o.proposedIncludeExportRanges = buildUnnamed34(); + o.excludeExportRanges = buildUnnamed32(); + o.includeExportRanges = buildUnnamed33(); + o.producerVpcSpokes = buildUnnamed34(); + o.proposedExcludeExportRanges = buildUnnamed35(); + o.proposedIncludeExportRanges = buildUnnamed36(); o.uri = 'foo'; } buildCounterLinkedVpcNetwork--; @@ -1062,27 +1168,27 @@ api.LinkedVpcNetwork buildLinkedVpcNetwork() { void checkLinkedVpcNetwork(api.LinkedVpcNetwork o) { buildCounterLinkedVpcNetwork++; if (buildCounterLinkedVpcNetwork < 3) { - checkUnnamed30(o.excludeExportRanges!); - checkUnnamed31(o.includeExportRanges!); - checkUnnamed32(o.producerVpcSpokes!); - checkUnnamed33(o.proposedExcludeExportRanges!); - checkUnnamed34(o.proposedIncludeExportRanges!); + checkUnnamed32(o.excludeExportRanges!); + checkUnnamed33(o.includeExportRanges!); + checkUnnamed34(o.producerVpcSpokes!); + checkUnnamed35(o.proposedExcludeExportRanges!); + checkUnnamed36(o.proposedIncludeExportRanges!); unittest.expect(o.uri!, unittest.equals('foo')); } buildCounterLinkedVpcNetwork--; } -core.List buildUnnamed35() => ['foo', 'foo']; +core.List buildUnnamed37() => ['foo', 'foo']; -void checkUnnamed35(core.List o) { +void checkUnnamed37(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed36() => ['foo', 'foo']; +core.List buildUnnamed38() => ['foo', 'foo']; -void checkUnnamed36(core.List o) { +void checkUnnamed38(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1093,9 +1199,9 @@ api.LinkedVpnTunnels buildLinkedVpnTunnels() { final o = api.LinkedVpnTunnels(); buildCounterLinkedVpnTunnels++; if (buildCounterLinkedVpnTunnels < 3) { - o.includeImportRanges = buildUnnamed35(); + o.includeImportRanges = buildUnnamed37(); o.siteToSiteDataTransfer = true; - o.uris = buildUnnamed36(); + o.uris = buildUnnamed38(); o.vpcNetwork = 'foo'; } buildCounterLinkedVpnTunnels--; @@ -1105,25 +1211,67 @@ api.LinkedVpnTunnels buildLinkedVpnTunnels() { void checkLinkedVpnTunnels(api.LinkedVpnTunnels o) { buildCounterLinkedVpnTunnels++; if (buildCounterLinkedVpnTunnels < 3) { - checkUnnamed35(o.includeImportRanges!); + checkUnnamed37(o.includeImportRanges!); unittest.expect(o.siteToSiteDataTransfer!, unittest.isTrue); - checkUnnamed36(o.uris!); + checkUnnamed38(o.uris!); unittest.expect(o.vpcNetwork!, unittest.equals('foo')); } buildCounterLinkedVpnTunnels--; } -core.List buildUnnamed37() => [buildGroup(), buildGroup()]; +core.List buildUnnamed39() => [ + buildDestination(), + buildDestination(), +]; + +void checkUnnamed39(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkDestination(o[0]); + checkDestination(o[1]); +} + +core.List buildUnnamed40() => ['foo', 'foo']; + +void checkUnnamed40(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterListDestinationsResponse = 0; +api.ListDestinationsResponse buildListDestinationsResponse() { + final o = api.ListDestinationsResponse(); + buildCounterListDestinationsResponse++; + if (buildCounterListDestinationsResponse < 3) { + o.destinations = buildUnnamed39(); + o.nextPageToken = 'foo'; + o.unreachable = buildUnnamed40(); + } + buildCounterListDestinationsResponse--; + return o; +} + +void checkListDestinationsResponse(api.ListDestinationsResponse o) { + buildCounterListDestinationsResponse++; + if (buildCounterListDestinationsResponse < 3) { + checkUnnamed39(o.destinations!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed40(o.unreachable!); + } + buildCounterListDestinationsResponse--; +} + +core.List buildUnnamed41() => [buildGroup(), buildGroup()]; -void checkUnnamed37(core.List o) { +void checkUnnamed41(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); } -core.List buildUnnamed38() => ['foo', 'foo']; +core.List buildUnnamed42() => ['foo', 'foo']; -void checkUnnamed38(core.List o) { +void checkUnnamed42(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1134,9 +1282,9 @@ api.ListGroupsResponse buildListGroupsResponse() { final o = api.ListGroupsResponse(); buildCounterListGroupsResponse++; if (buildCounterListGroupsResponse < 3) { - o.groups = buildUnnamed37(); + o.groups = buildUnnamed41(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed38(); + o.unreachable = buildUnnamed42(); } buildCounterListGroupsResponse--; return o; @@ -1145,24 +1293,24 @@ api.ListGroupsResponse buildListGroupsResponse() { void checkListGroupsResponse(api.ListGroupsResponse o) { buildCounterListGroupsResponse++; if (buildCounterListGroupsResponse < 3) { - checkUnnamed37(o.groups!); + checkUnnamed41(o.groups!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed38(o.unreachable!); + checkUnnamed42(o.unreachable!); } buildCounterListGroupsResponse--; } -core.List buildUnnamed39() => [buildSpoke(), buildSpoke()]; +core.List buildUnnamed43() => [buildSpoke(), buildSpoke()]; -void checkUnnamed39(core.List o) { +void checkUnnamed43(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSpoke(o[0]); checkSpoke(o[1]); } -core.List buildUnnamed40() => ['foo', 'foo']; +core.List buildUnnamed44() => ['foo', 'foo']; -void checkUnnamed40(core.List o) { +void checkUnnamed44(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1174,8 +1322,8 @@ api.ListHubSpokesResponse buildListHubSpokesResponse() { buildCounterListHubSpokesResponse++; if (buildCounterListHubSpokesResponse < 3) { o.nextPageToken = 'foo'; - o.spokes = buildUnnamed39(); - o.unreachable = buildUnnamed40(); + o.spokes = buildUnnamed43(); + o.unreachable = buildUnnamed44(); } buildCounterListHubSpokesResponse--; return o; @@ -1185,23 +1333,23 @@ void checkListHubSpokesResponse(api.ListHubSpokesResponse o) { buildCounterListHubSpokesResponse++; if (buildCounterListHubSpokesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed39(o.spokes!); - checkUnnamed40(o.unreachable!); + checkUnnamed43(o.spokes!); + checkUnnamed44(o.unreachable!); } buildCounterListHubSpokesResponse--; } -core.List buildUnnamed41() => [buildHub(), buildHub()]; +core.List buildUnnamed45() => [buildHub(), buildHub()]; -void checkUnnamed41(core.List o) { +void checkUnnamed45(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHub(o[0]); checkHub(o[1]); } -core.List buildUnnamed42() => ['foo', 'foo']; +core.List buildUnnamed46() => ['foo', 'foo']; -void checkUnnamed42(core.List o) { +void checkUnnamed46(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1212,9 +1360,9 @@ api.ListHubsResponse buildListHubsResponse() { final o = api.ListHubsResponse(); buildCounterListHubsResponse++; if (buildCounterListHubsResponse < 3) { - o.hubs = buildUnnamed41(); + o.hubs = buildUnnamed45(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed42(); + o.unreachable = buildUnnamed46(); } buildCounterListHubsResponse--; return o; @@ -1223,27 +1371,27 @@ api.ListHubsResponse buildListHubsResponse() { void checkListHubsResponse(api.ListHubsResponse o) { buildCounterListHubsResponse++; if (buildCounterListHubsResponse < 3) { - checkUnnamed41(o.hubs!); + checkUnnamed45(o.hubs!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed42(o.unreachable!); + checkUnnamed46(o.unreachable!); } buildCounterListHubsResponse--; } -core.List buildUnnamed43() => [ +core.List buildUnnamed47() => [ buildInternalRange(), buildInternalRange(), ]; -void checkUnnamed43(core.List o) { +void checkUnnamed47(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInternalRange(o[0]); checkInternalRange(o[1]); } -core.List buildUnnamed44() => ['foo', 'foo']; +core.List buildUnnamed48() => ['foo', 'foo']; -void checkUnnamed44(core.List o) { +void checkUnnamed48(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1254,9 +1402,9 @@ api.ListInternalRangesResponse buildListInternalRangesResponse() { final o = api.ListInternalRangesResponse(); buildCounterListInternalRangesResponse++; if (buildCounterListInternalRangesResponse < 3) { - o.internalRanges = buildUnnamed43(); + o.internalRanges = buildUnnamed47(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed44(); + o.unreachable = buildUnnamed48(); } buildCounterListInternalRangesResponse--; return o; @@ -1265,16 +1413,16 @@ api.ListInternalRangesResponse buildListInternalRangesResponse() { void checkListInternalRangesResponse(api.ListInternalRangesResponse o) { buildCounterListInternalRangesResponse++; if (buildCounterListInternalRangesResponse < 3) { - checkUnnamed43(o.internalRanges!); + checkUnnamed47(o.internalRanges!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed44(o.unreachable!); + checkUnnamed48(o.unreachable!); } buildCounterListInternalRangesResponse--; } -core.List buildUnnamed45() => [buildLocation(), buildLocation()]; +core.List buildUnnamed49() => [buildLocation(), buildLocation()]; -void checkUnnamed45(core.List o) { +void checkUnnamed49(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -1285,7 +1433,7 @@ api.ListLocationsResponse buildListLocationsResponse() { final o = api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed45(); + o.locations = buildUnnamed49(); o.nextPageToken = 'foo'; } buildCounterListLocationsResponse--; @@ -1295,26 +1443,106 @@ api.ListLocationsResponse buildListLocationsResponse() { void checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed45(o.locations!); + checkUnnamed49(o.locations!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -core.List buildUnnamed46() => [ +core.List buildUnnamed50() => [ + buildMulticloudDataTransferConfig(), + buildMulticloudDataTransferConfig(), +]; + +void checkUnnamed50(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkMulticloudDataTransferConfig(o[0]); + checkMulticloudDataTransferConfig(o[1]); +} + +core.List buildUnnamed51() => ['foo', 'foo']; + +void checkUnnamed51(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterListMulticloudDataTransferConfigsResponse = 0; +api.ListMulticloudDataTransferConfigsResponse +buildListMulticloudDataTransferConfigsResponse() { + final o = api.ListMulticloudDataTransferConfigsResponse(); + buildCounterListMulticloudDataTransferConfigsResponse++; + if (buildCounterListMulticloudDataTransferConfigsResponse < 3) { + o.multicloudDataTransferConfigs = buildUnnamed50(); + o.nextPageToken = 'foo'; + o.unreachable = buildUnnamed51(); + } + buildCounterListMulticloudDataTransferConfigsResponse--; + return o; +} + +void checkListMulticloudDataTransferConfigsResponse( + api.ListMulticloudDataTransferConfigsResponse o, +) { + buildCounterListMulticloudDataTransferConfigsResponse++; + if (buildCounterListMulticloudDataTransferConfigsResponse < 3) { + checkUnnamed50(o.multicloudDataTransferConfigs!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed51(o.unreachable!); + } + buildCounterListMulticloudDataTransferConfigsResponse--; +} + +core.List buildUnnamed52() => [ + buildMulticloudDataTransferSupportedService(), + buildMulticloudDataTransferSupportedService(), +]; + +void checkUnnamed52(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkMulticloudDataTransferSupportedService(o[0]); + checkMulticloudDataTransferSupportedService(o[1]); +} + +core.int buildCounterListMulticloudDataTransferSupportedServicesResponse = 0; +api.ListMulticloudDataTransferSupportedServicesResponse +buildListMulticloudDataTransferSupportedServicesResponse() { + final o = api.ListMulticloudDataTransferSupportedServicesResponse(); + buildCounterListMulticloudDataTransferSupportedServicesResponse++; + if (buildCounterListMulticloudDataTransferSupportedServicesResponse < 3) { + o.multicloudDataTransferSupportedServices = buildUnnamed52(); + o.nextPageToken = 'foo'; + } + buildCounterListMulticloudDataTransferSupportedServicesResponse--; + return o; +} + +void checkListMulticloudDataTransferSupportedServicesResponse( + api.ListMulticloudDataTransferSupportedServicesResponse o, +) { + buildCounterListMulticloudDataTransferSupportedServicesResponse++; + if (buildCounterListMulticloudDataTransferSupportedServicesResponse < 3) { + checkUnnamed52(o.multicloudDataTransferSupportedServices!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + } + buildCounterListMulticloudDataTransferSupportedServicesResponse--; +} + +core.List buildUnnamed53() => [ buildPolicyBasedRoute(), buildPolicyBasedRoute(), ]; -void checkUnnamed46(core.List o) { +void checkUnnamed53(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPolicyBasedRoute(o[0]); checkPolicyBasedRoute(o[1]); } -core.List buildUnnamed47() => ['foo', 'foo']; +core.List buildUnnamed54() => ['foo', 'foo']; -void checkUnnamed47(core.List o) { +void checkUnnamed54(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1326,8 +1554,8 @@ api.ListPolicyBasedRoutesResponse buildListPolicyBasedRoutesResponse() { buildCounterListPolicyBasedRoutesResponse++; if (buildCounterListPolicyBasedRoutesResponse < 3) { o.nextPageToken = 'foo'; - o.policyBasedRoutes = buildUnnamed46(); - o.unreachable = buildUnnamed47(); + o.policyBasedRoutes = buildUnnamed53(); + o.unreachable = buildUnnamed54(); } buildCounterListPolicyBasedRoutesResponse--; return o; @@ -1337,26 +1565,26 @@ void checkListPolicyBasedRoutesResponse(api.ListPolicyBasedRoutesResponse o) { buildCounterListPolicyBasedRoutesResponse++; if (buildCounterListPolicyBasedRoutesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed46(o.policyBasedRoutes!); - checkUnnamed47(o.unreachable!); + checkUnnamed53(o.policyBasedRoutes!); + checkUnnamed54(o.unreachable!); } buildCounterListPolicyBasedRoutesResponse--; } -core.List buildUnnamed48() => [ +core.List buildUnnamed55() => [ buildRegionalEndpoint(), buildRegionalEndpoint(), ]; -void checkUnnamed48(core.List o) { +void checkUnnamed55(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRegionalEndpoint(o[0]); checkRegionalEndpoint(o[1]); } -core.List buildUnnamed49() => ['foo', 'foo']; +core.List buildUnnamed56() => ['foo', 'foo']; -void checkUnnamed49(core.List o) { +void checkUnnamed56(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1368,8 +1596,8 @@ api.ListRegionalEndpointsResponse buildListRegionalEndpointsResponse() { buildCounterListRegionalEndpointsResponse++; if (buildCounterListRegionalEndpointsResponse < 3) { o.nextPageToken = 'foo'; - o.regionalEndpoints = buildUnnamed48(); - o.unreachable = buildUnnamed49(); + o.regionalEndpoints = buildUnnamed55(); + o.unreachable = buildUnnamed56(); } buildCounterListRegionalEndpointsResponse--; return o; @@ -1379,26 +1607,71 @@ void checkListRegionalEndpointsResponse(api.ListRegionalEndpointsResponse o) { buildCounterListRegionalEndpointsResponse++; if (buildCounterListRegionalEndpointsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed48(o.regionalEndpoints!); - checkUnnamed49(o.unreachable!); + checkUnnamed55(o.regionalEndpoints!); + checkUnnamed56(o.unreachable!); } buildCounterListRegionalEndpointsResponse--; } -core.List buildUnnamed50() => [ +core.List buildUnnamed57() => [ + buildRemoteTransportProfile(), + buildRemoteTransportProfile(), +]; + +void checkUnnamed57(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkRemoteTransportProfile(o[0]); + checkRemoteTransportProfile(o[1]); +} + +core.List buildUnnamed58() => ['foo', 'foo']; + +void checkUnnamed58(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterListRemoteTransportProfilesResponse = 0; +api.ListRemoteTransportProfilesResponse +buildListRemoteTransportProfilesResponse() { + final o = api.ListRemoteTransportProfilesResponse(); + buildCounterListRemoteTransportProfilesResponse++; + if (buildCounterListRemoteTransportProfilesResponse < 3) { + o.nextPageToken = 'foo'; + o.remoteTransportProfiles = buildUnnamed57(); + o.unreachable = buildUnnamed58(); + } + buildCounterListRemoteTransportProfilesResponse--; + return o; +} + +void checkListRemoteTransportProfilesResponse( + api.ListRemoteTransportProfilesResponse o, +) { + buildCounterListRemoteTransportProfilesResponse++; + if (buildCounterListRemoteTransportProfilesResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed57(o.remoteTransportProfiles!); + checkUnnamed58(o.unreachable!); + } + buildCounterListRemoteTransportProfilesResponse--; +} + +core.List buildUnnamed59() => [ buildRouteTable(), buildRouteTable(), ]; -void checkUnnamed50(core.List o) { +void checkUnnamed59(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRouteTable(o[0]); checkRouteTable(o[1]); } -core.List buildUnnamed51() => ['foo', 'foo']; +core.List buildUnnamed60() => ['foo', 'foo']; -void checkUnnamed51(core.List o) { +void checkUnnamed60(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1410,8 +1683,8 @@ api.ListRouteTablesResponse buildListRouteTablesResponse() { buildCounterListRouteTablesResponse++; if (buildCounterListRouteTablesResponse < 3) { o.nextPageToken = 'foo'; - o.routeTables = buildUnnamed50(); - o.unreachable = buildUnnamed51(); + o.routeTables = buildUnnamed59(); + o.unreachable = buildUnnamed60(); } buildCounterListRouteTablesResponse--; return o; @@ -1421,23 +1694,23 @@ void checkListRouteTablesResponse(api.ListRouteTablesResponse o) { buildCounterListRouteTablesResponse++; if (buildCounterListRouteTablesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed50(o.routeTables!); - checkUnnamed51(o.unreachable!); + checkUnnamed59(o.routeTables!); + checkUnnamed60(o.unreachable!); } buildCounterListRouteTablesResponse--; } -core.List buildUnnamed52() => [buildRoute(), buildRoute()]; +core.List buildUnnamed61() => [buildRoute(), buildRoute()]; -void checkUnnamed52(core.List o) { +void checkUnnamed61(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); } -core.List buildUnnamed53() => ['foo', 'foo']; +core.List buildUnnamed62() => ['foo', 'foo']; -void checkUnnamed53(core.List o) { +void checkUnnamed62(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1449,8 +1722,8 @@ api.ListRoutesResponse buildListRoutesResponse() { buildCounterListRoutesResponse++; if (buildCounterListRoutesResponse < 3) { o.nextPageToken = 'foo'; - o.routes = buildUnnamed52(); - o.unreachable = buildUnnamed53(); + o.routes = buildUnnamed61(); + o.unreachable = buildUnnamed62(); } buildCounterListRoutesResponse--; return o; @@ -1460,26 +1733,26 @@ void checkListRoutesResponse(api.ListRoutesResponse o) { buildCounterListRoutesResponse++; if (buildCounterListRoutesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed52(o.routes!); - checkUnnamed53(o.unreachable!); + checkUnnamed61(o.routes!); + checkUnnamed62(o.unreachable!); } buildCounterListRoutesResponse--; } -core.List buildUnnamed54() => [ +core.List buildUnnamed63() => [ buildServiceClass(), buildServiceClass(), ]; -void checkUnnamed54(core.List o) { +void checkUnnamed63(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkServiceClass(o[0]); checkServiceClass(o[1]); } -core.List buildUnnamed55() => ['foo', 'foo']; +core.List buildUnnamed64() => ['foo', 'foo']; -void checkUnnamed55(core.List o) { +void checkUnnamed64(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1491,8 +1764,8 @@ api.ListServiceClassesResponse buildListServiceClassesResponse() { buildCounterListServiceClassesResponse++; if (buildCounterListServiceClassesResponse < 3) { o.nextPageToken = 'foo'; - o.serviceClasses = buildUnnamed54(); - o.unreachable = buildUnnamed55(); + o.serviceClasses = buildUnnamed63(); + o.unreachable = buildUnnamed64(); } buildCounterListServiceClassesResponse--; return o; @@ -1502,26 +1775,26 @@ void checkListServiceClassesResponse(api.ListServiceClassesResponse o) { buildCounterListServiceClassesResponse++; if (buildCounterListServiceClassesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed54(o.serviceClasses!); - checkUnnamed55(o.unreachable!); + checkUnnamed63(o.serviceClasses!); + checkUnnamed64(o.unreachable!); } buildCounterListServiceClassesResponse--; } -core.List buildUnnamed56() => [ +core.List buildUnnamed65() => [ buildServiceConnectionMap(), buildServiceConnectionMap(), ]; -void checkUnnamed56(core.List o) { +void checkUnnamed65(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkServiceConnectionMap(o[0]); checkServiceConnectionMap(o[1]); } -core.List buildUnnamed57() => ['foo', 'foo']; +core.List buildUnnamed66() => ['foo', 'foo']; -void checkUnnamed57(core.List o) { +void checkUnnamed66(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1533,8 +1806,8 @@ api.ListServiceConnectionMapsResponse buildListServiceConnectionMapsResponse() { buildCounterListServiceConnectionMapsResponse++; if (buildCounterListServiceConnectionMapsResponse < 3) { o.nextPageToken = 'foo'; - o.serviceConnectionMaps = buildUnnamed56(); - o.unreachable = buildUnnamed57(); + o.serviceConnectionMaps = buildUnnamed65(); + o.unreachable = buildUnnamed66(); } buildCounterListServiceConnectionMapsResponse--; return o; @@ -1546,26 +1819,26 @@ void checkListServiceConnectionMapsResponse( buildCounterListServiceConnectionMapsResponse++; if (buildCounterListServiceConnectionMapsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed56(o.serviceConnectionMaps!); - checkUnnamed57(o.unreachable!); + checkUnnamed65(o.serviceConnectionMaps!); + checkUnnamed66(o.unreachable!); } buildCounterListServiceConnectionMapsResponse--; } -core.List buildUnnamed58() => [ +core.List buildUnnamed67() => [ buildServiceConnectionPolicy(), buildServiceConnectionPolicy(), ]; -void checkUnnamed58(core.List o) { +void checkUnnamed67(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkServiceConnectionPolicy(o[0]); checkServiceConnectionPolicy(o[1]); } -core.List buildUnnamed59() => ['foo', 'foo']; +core.List buildUnnamed68() => ['foo', 'foo']; -void checkUnnamed59(core.List o) { +void checkUnnamed68(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1578,8 +1851,8 @@ buildListServiceConnectionPoliciesResponse() { buildCounterListServiceConnectionPoliciesResponse++; if (buildCounterListServiceConnectionPoliciesResponse < 3) { o.nextPageToken = 'foo'; - o.serviceConnectionPolicies = buildUnnamed58(); - o.unreachable = buildUnnamed59(); + o.serviceConnectionPolicies = buildUnnamed67(); + o.unreachable = buildUnnamed68(); } buildCounterListServiceConnectionPoliciesResponse--; return o; @@ -1591,26 +1864,26 @@ void checkListServiceConnectionPoliciesResponse( buildCounterListServiceConnectionPoliciesResponse++; if (buildCounterListServiceConnectionPoliciesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed58(o.serviceConnectionPolicies!); - checkUnnamed59(o.unreachable!); + checkUnnamed67(o.serviceConnectionPolicies!); + checkUnnamed68(o.unreachable!); } buildCounterListServiceConnectionPoliciesResponse--; } -core.List buildUnnamed60() => [ +core.List buildUnnamed69() => [ buildServiceConnectionToken(), buildServiceConnectionToken(), ]; -void checkUnnamed60(core.List o) { +void checkUnnamed69(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkServiceConnectionToken(o[0]); checkServiceConnectionToken(o[1]); } -core.List buildUnnamed61() => ['foo', 'foo']; +core.List buildUnnamed70() => ['foo', 'foo']; -void checkUnnamed61(core.List o) { +void checkUnnamed70(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1623,8 +1896,8 @@ buildListServiceConnectionTokensResponse() { buildCounterListServiceConnectionTokensResponse++; if (buildCounterListServiceConnectionTokensResponse < 3) { o.nextPageToken = 'foo'; - o.serviceConnectionTokens = buildUnnamed60(); - o.unreachable = buildUnnamed61(); + o.serviceConnectionTokens = buildUnnamed69(); + o.unreachable = buildUnnamed70(); } buildCounterListServiceConnectionTokensResponse--; return o; @@ -1636,23 +1909,23 @@ void checkListServiceConnectionTokensResponse( buildCounterListServiceConnectionTokensResponse++; if (buildCounterListServiceConnectionTokensResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed60(o.serviceConnectionTokens!); - checkUnnamed61(o.unreachable!); + checkUnnamed69(o.serviceConnectionTokens!); + checkUnnamed70(o.unreachable!); } buildCounterListServiceConnectionTokensResponse--; } -core.List buildUnnamed62() => [buildSpoke(), buildSpoke()]; +core.List buildUnnamed71() => [buildSpoke(), buildSpoke()]; -void checkUnnamed62(core.List o) { +void checkUnnamed71(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSpoke(o[0]); checkSpoke(o[1]); } -core.List buildUnnamed63() => ['foo', 'foo']; +core.List buildUnnamed72() => ['foo', 'foo']; -void checkUnnamed63(core.List o) { +void checkUnnamed72(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1664,8 +1937,8 @@ api.ListSpokesResponse buildListSpokesResponse() { buildCounterListSpokesResponse++; if (buildCounterListSpokesResponse < 3) { o.nextPageToken = 'foo'; - o.spokes = buildUnnamed62(); - o.unreachable = buildUnnamed63(); + o.spokes = buildUnnamed71(); + o.unreachable = buildUnnamed72(); } buildCounterListSpokesResponse--; return o; @@ -1675,40 +1948,82 @@ void checkListSpokesResponse(api.ListSpokesResponse o) { buildCounterListSpokesResponse++; if (buildCounterListSpokesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed62(o.spokes!); - checkUnnamed63(o.unreachable!); + checkUnnamed71(o.spokes!); + checkUnnamed72(o.unreachable!); } buildCounterListSpokesResponse--; } -core.Map buildUnnamed64() => {'x': 'foo', 'y': 'foo'}; +core.List buildUnnamed73() => [ + buildTransport(), + buildTransport(), +]; -void checkUnnamed64(core.Map o) { +void checkUnnamed73(core.List o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); + checkTransport(o[0]); + checkTransport(o[1]); } -core.Map buildUnnamed65() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; +core.List buildUnnamed74() => ['foo', 'foo']; -void checkUnnamed65(core.Map o) { +void checkUnnamed74(core.List o) { unittest.expect(o, unittest.hasLength(2)); - var casted7 = (o['x']!) as core.Map; - unittest.expect(casted7, unittest.hasLength(3)); - unittest.expect(casted7['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted7['bool'], unittest.equals(true)); - unittest.expect(casted7['string'], unittest.equals('foo')); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterListTransportsResponse = 0; +api.ListTransportsResponse buildListTransportsResponse() { + final o = api.ListTransportsResponse(); + buildCounterListTransportsResponse++; + if (buildCounterListTransportsResponse < 3) { + o.nextPageToken = 'foo'; + o.transports = buildUnnamed73(); + o.unreachable = buildUnnamed74(); + } + buildCounterListTransportsResponse--; + return o; +} + +void checkListTransportsResponse(api.ListTransportsResponse o) { + buildCounterListTransportsResponse++; + if (buildCounterListTransportsResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed73(o.transports!); + checkUnnamed74(o.unreachable!); + } + buildCounterListTransportsResponse--; +} + +core.Map buildUnnamed75() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed75(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.Map buildUnnamed76() => { + 'x': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, + 'y': { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo', + }, +}; + +void checkUnnamed76(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + var casted7 = (o['x']!) as core.Map; + unittest.expect(casted7, unittest.hasLength(3)); + unittest.expect(casted7['list'], unittest.equals([1, 2, 3])); + unittest.expect(casted7['bool'], unittest.equals(true)); + unittest.expect(casted7['string'], unittest.equals('foo')); var casted8 = (o['y']!) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8['list'], unittest.equals([1, 2, 3])); @@ -1722,9 +2037,9 @@ api.Location buildLocation() { buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = 'foo'; - o.labels = buildUnnamed64(); + o.labels = buildUnnamed75(); o.locationId = 'foo'; - o.metadata = buildUnnamed65(); + o.metadata = buildUnnamed76(); o.name = 'foo'; } buildCounterLocation--; @@ -1735,9 +2050,9 @@ void checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed64(o.labels!); + checkUnnamed75(o.labels!); unittest.expect(o.locationId!, unittest.equals('foo')); - checkUnnamed65(o.metadata!); + checkUnnamed76(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); } buildCounterLocation--; @@ -1764,6 +2079,97 @@ void checkMigration(api.Migration o) { buildCounterMigration--; } +core.Map buildUnnamed77() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed77(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.Map buildUnnamed78() => { + 'x': buildStateTimeline(), + 'y': buildStateTimeline(), +}; + +void checkUnnamed78(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + checkStateTimeline(o['x']!); + checkStateTimeline(o['y']!); +} + +core.int buildCounterMulticloudDataTransferConfig = 0; +api.MulticloudDataTransferConfig buildMulticloudDataTransferConfig() { + final o = api.MulticloudDataTransferConfig(); + buildCounterMulticloudDataTransferConfig++; + if (buildCounterMulticloudDataTransferConfig < 3) { + o.createTime = 'foo'; + o.description = 'foo'; + o.destinationsActiveCount = 42; + o.destinationsCount = 42; + o.etag = 'foo'; + o.labels = buildUnnamed77(); + o.name = 'foo'; + o.services = buildUnnamed78(); + o.uid = 'foo'; + o.updateTime = 'foo'; + } + buildCounterMulticloudDataTransferConfig--; + return o; +} + +void checkMulticloudDataTransferConfig(api.MulticloudDataTransferConfig o) { + buildCounterMulticloudDataTransferConfig++; + if (buildCounterMulticloudDataTransferConfig < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.destinationsActiveCount!, unittest.equals(42)); + unittest.expect(o.destinationsCount!, unittest.equals(42)); + unittest.expect(o.etag!, unittest.equals('foo')); + checkUnnamed77(o.labels!); + unittest.expect(o.name!, unittest.equals('foo')); + checkUnnamed78(o.services!); + unittest.expect(o.uid!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); + } + buildCounterMulticloudDataTransferConfig--; +} + +core.List buildUnnamed79() => [ + buildServiceConfig(), + buildServiceConfig(), +]; + +void checkUnnamed79(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkServiceConfig(o[0]); + checkServiceConfig(o[1]); +} + +core.int buildCounterMulticloudDataTransferSupportedService = 0; +api.MulticloudDataTransferSupportedService +buildMulticloudDataTransferSupportedService() { + final o = api.MulticloudDataTransferSupportedService(); + buildCounterMulticloudDataTransferSupportedService++; + if (buildCounterMulticloudDataTransferSupportedService < 3) { + o.name = 'foo'; + o.serviceConfigs = buildUnnamed79(); + } + buildCounterMulticloudDataTransferSupportedService--; + return o; +} + +void checkMulticloudDataTransferSupportedService( + api.MulticloudDataTransferSupportedService o, +) { + buildCounterMulticloudDataTransferSupportedService++; + if (buildCounterMulticloudDataTransferSupportedService < 3) { + unittest.expect(o.name!, unittest.equals('foo')); + checkUnnamed79(o.serviceConfigs!); + } + buildCounterMulticloudDataTransferSupportedService--; +} + core.int buildCounterNextHopInterconnectAttachment = 0; api.NextHopInterconnectAttachment buildNextHopInterconnectAttachment() { final o = api.NextHopInterconnectAttachment(); @@ -1873,20 +2279,20 @@ void checkNextHopVpcNetwork(api.NextHopVpcNetwork o) { buildCounterNextHopVpcNetwork--; } -core.List buildUnnamed66() => [ +core.List buildUnnamed80() => [ buildAuditConfig(), buildAuditConfig(), ]; -void checkUnnamed66(core.List o) { +void checkUnnamed80(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -core.List buildUnnamed67() => [buildBinding(), buildBinding()]; +core.List buildUnnamed81() => [buildBinding(), buildBinding()]; -void checkUnnamed67(core.List o) { +void checkUnnamed81(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1897,8 +2303,8 @@ api.Policy buildPolicy() { final o = api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed66(); - o.bindings = buildUnnamed67(); + o.auditConfigs = buildUnnamed80(); + o.bindings = buildUnnamed81(); o.etag = 'foo'; o.version = 42; } @@ -1909,25 +2315,25 @@ api.Policy buildPolicy() { void checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed66(o.auditConfigs!); - checkUnnamed67(o.bindings!); + checkUnnamed80(o.auditConfigs!); + checkUnnamed81(o.bindings!); unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.version!, unittest.equals(42)); } buildCounterPolicy--; } -core.Map buildUnnamed68() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed82() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed68(core.Map o) { +void checkUnnamed82(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed69() => [buildWarnings(), buildWarnings()]; +core.List buildUnnamed83() => [buildWarnings(), buildWarnings()]; -void checkUnnamed69(core.List o) { +void checkUnnamed83(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkWarnings(o[0]); checkWarnings(o[1]); @@ -1943,7 +2349,7 @@ api.PolicyBasedRoute buildPolicyBasedRoute() { o.filter = buildFilter(); o.interconnectAttachment = buildInterconnectAttachment(); o.kind = 'foo'; - o.labels = buildUnnamed68(); + o.labels = buildUnnamed82(); o.name = 'foo'; o.network = 'foo'; o.nextHopIlbIp = 'foo'; @@ -1952,7 +2358,7 @@ api.PolicyBasedRoute buildPolicyBasedRoute() { o.selfLink = 'foo'; o.updateTime = 'foo'; o.virtualMachine = buildVirtualMachine(); - o.warnings = buildUnnamed69(); + o.warnings = buildUnnamed83(); } buildCounterPolicyBasedRoute--; return o; @@ -1966,7 +2372,7 @@ void checkPolicyBasedRoute(api.PolicyBasedRoute o) { checkFilter(o.filter!); checkInterconnectAttachment(o.interconnectAttachment!); unittest.expect(o.kind!, unittest.equals('foo')); - checkUnnamed68(o.labels!); + checkUnnamed82(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); unittest.expect(o.nextHopIlbIp!, unittest.equals('foo')); @@ -1975,7 +2381,7 @@ void checkPolicyBasedRoute(api.PolicyBasedRoute o) { unittest.expect(o.selfLink!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); checkVirtualMachine(o.virtualMachine!); - checkUnnamed69(o.warnings!); + checkUnnamed83(o.warnings!); } buildCounterPolicyBasedRoute--; } @@ -1999,17 +2405,17 @@ void checkProducerPscConfig(api.ProducerPscConfig o) { buildCounterProducerPscConfig--; } -core.List buildUnnamed70() => ['foo', 'foo']; +core.List buildUnnamed84() => ['foo', 'foo']; -void checkUnnamed70(core.List o) { +void checkUnnamed84(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed71() => ['foo', 'foo']; +core.List buildUnnamed85() => ['foo', 'foo']; -void checkUnnamed71(core.List o) { +void checkUnnamed85(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2020,10 +2426,10 @@ api.PscConfig buildPscConfig() { final o = api.PscConfig(); buildCounterPscConfig++; if (buildCounterPscConfig < 3) { - o.allowedGoogleProducersResourceHierarchyLevel = buildUnnamed70(); + o.allowedGoogleProducersResourceHierarchyLevel = buildUnnamed84(); o.limit = 'foo'; o.producerInstanceLocation = 'foo'; - o.subnetworks = buildUnnamed71(); + o.subnetworks = buildUnnamed85(); } buildCounterPscConfig--; return o; @@ -2032,17 +2438,17 @@ api.PscConfig buildPscConfig() { void checkPscConfig(api.PscConfig o) { buildCounterPscConfig++; if (buildCounterPscConfig < 3) { - checkUnnamed70(o.allowedGoogleProducersResourceHierarchyLevel!); + checkUnnamed84(o.allowedGoogleProducersResourceHierarchyLevel!); unittest.expect(o.limit!, unittest.equals('foo')); unittest.expect(o.producerInstanceLocation!, unittest.equals('foo')); - checkUnnamed71(o.subnetworks!); + checkUnnamed85(o.subnetworks!); } buildCounterPscConfig--; } -core.Map buildUnnamed72() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed86() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed72(core.Map o) { +void checkUnnamed86(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2062,7 +2468,7 @@ api.PscConnection buildPscConnection() { o.gceOperation = 'foo'; o.ipVersion = 'foo'; o.producerInstanceId = 'foo'; - o.producerInstanceMetadata = buildUnnamed72(); + o.producerInstanceMetadata = buildUnnamed86(); o.pscConnectionId = 'foo'; o.selectedSubnetwork = 'foo'; o.serviceClass = 'foo'; @@ -2084,7 +2490,7 @@ void checkPscConnection(api.PscConnection o) { unittest.expect(o.gceOperation!, unittest.equals('foo')); unittest.expect(o.ipVersion!, unittest.equals('foo')); unittest.expect(o.producerInstanceId!, unittest.equals('foo')); - checkUnnamed72(o.producerInstanceMetadata!); + checkUnnamed86(o.producerInstanceMetadata!); unittest.expect(o.pscConnectionId!, unittest.equals('foo')); unittest.expect(o.selectedSubnetwork!, unittest.equals('foo')); unittest.expect(o.serviceClass!, unittest.equals('foo')); @@ -2124,12 +2530,12 @@ void checkPscPropagationStatus(api.PscPropagationStatus o) { buildCounterPscPropagationStatus--; } -core.List buildUnnamed73() => [ +core.List buildUnnamed87() => [ buildHubStatusEntry(), buildHubStatusEntry(), ]; -void checkUnnamed73(core.List o) { +void checkUnnamed87(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkHubStatusEntry(o[0]); checkHubStatusEntry(o[1]); @@ -2140,7 +2546,7 @@ api.QueryHubStatusResponse buildQueryHubStatusResponse() { final o = api.QueryHubStatusResponse(); buildCounterQueryHubStatusResponse++; if (buildCounterQueryHubStatusResponse < 3) { - o.hubStatusEntries = buildUnnamed73(); + o.hubStatusEntries = buildUnnamed87(); o.nextPageToken = 'foo'; } buildCounterQueryHubStatusResponse--; @@ -2150,15 +2556,15 @@ api.QueryHubStatusResponse buildQueryHubStatusResponse() { void checkQueryHubStatusResponse(api.QueryHubStatusResponse o) { buildCounterQueryHubStatusResponse++; if (buildCounterQueryHubStatusResponse < 3) { - checkUnnamed73(o.hubStatusEntries!); + checkUnnamed87(o.hubStatusEntries!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterQueryHubStatusResponse--; } -core.Map buildUnnamed74() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed88() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed74(core.Map o) { +void checkUnnamed88(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2174,7 +2580,7 @@ api.RegionalEndpoint buildRegionalEndpoint() { o.createTime = 'foo'; o.description = 'foo'; o.ipAddress = 'foo'; - o.labels = buildUnnamed74(); + o.labels = buildUnnamed88(); o.name = 'foo'; o.network = 'foo'; o.pscForwardingRule = 'foo'; @@ -2194,7 +2600,7 @@ void checkRegionalEndpoint(api.RegionalEndpoint o) { unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.ipAddress!, unittest.equals('foo')); - checkUnnamed74(o.labels!); + checkUnnamed88(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); unittest.expect(o.pscForwardingRule!, unittest.equals('foo')); @@ -2253,9 +2659,66 @@ void checkRejectSpokeUpdateRequest(api.RejectSpokeUpdateRequest o) { buildCounterRejectSpokeUpdateRequest--; } -core.Map buildUnnamed75() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed89() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed75(core.Map o) { +void checkUnnamed89(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.List buildUnnamed90() => ['foo', 'foo']; + +void checkUnnamed90(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterRemoteTransportProfile = 0; +api.RemoteTransportProfile buildRemoteTransportProfile() { + final o = api.RemoteTransportProfile(); + buildCounterRemoteTransportProfile++; + if (buildCounterRemoteTransportProfile < 3) { + o.createTime = 'foo'; + o.description = 'foo'; + o.flow = 'foo'; + o.labels = buildUnnamed89(); + o.name = 'foo'; + o.orderState = 'foo'; + o.provider = 'foo'; + o.providerSite = 'foo'; + o.region = 'foo'; + o.sla = 'foo'; + o.supportedBandwidths = buildUnnamed90(); + o.updateTime = 'foo'; + } + buildCounterRemoteTransportProfile--; + return o; +} + +void checkRemoteTransportProfile(api.RemoteTransportProfile o) { + buildCounterRemoteTransportProfile++; + if (buildCounterRemoteTransportProfile < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.flow!, unittest.equals('foo')); + checkUnnamed89(o.labels!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.orderState!, unittest.equals('foo')); + unittest.expect(o.provider!, unittest.equals('foo')); + unittest.expect(o.providerSite!, unittest.equals('foo')); + unittest.expect(o.region!, unittest.equals('foo')); + unittest.expect(o.sla!, unittest.equals('foo')); + checkUnnamed90(o.supportedBandwidths!); + unittest.expect(o.updateTime!, unittest.equals('foo')); + } + buildCounterRemoteTransportProfile--; +} + +core.Map buildUnnamed91() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed91(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2269,7 +2732,7 @@ api.Route buildRoute() { o.createTime = 'foo'; o.description = 'foo'; o.ipCidrRange = 'foo'; - o.labels = buildUnnamed75(); + o.labels = buildUnnamed91(); o.location = 'foo'; o.name = 'foo'; o.nextHopInterconnectAttachment = buildNextHopInterconnectAttachment(); @@ -2294,7 +2757,7 @@ void checkRoute(api.Route o) { unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.ipCidrRange!, unittest.equals('foo')); - checkUnnamed75(o.labels!); + checkUnnamed91(o.labels!); unittest.expect(o.location!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); checkNextHopInterconnectAttachment(o.nextHopInterconnectAttachment!); @@ -2312,9 +2775,9 @@ void checkRoute(api.Route o) { buildCounterRoute--; } -core.Map buildUnnamed76() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed92() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed76(core.Map o) { +void checkUnnamed92(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2327,7 +2790,7 @@ api.RouteTable buildRouteTable() { if (buildCounterRouteTable < 3) { o.createTime = 'foo'; o.description = 'foo'; - o.labels = buildUnnamed76(); + o.labels = buildUnnamed92(); o.name = 'foo'; o.state = 'foo'; o.uid = 'foo'; @@ -2342,7 +2805,7 @@ void checkRouteTable(api.RouteTable o) { if (buildCounterRouteTable < 3) { unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); - checkUnnamed76(o.labels!); + checkUnnamed92(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.uid!, unittest.equals('foo')); @@ -2396,9 +2859,9 @@ void checkRoutingVPC(api.RoutingVPC o) { buildCounterRoutingVPC--; } -core.Map buildUnnamed77() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed93() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed77(core.Map o) { +void checkUnnamed93(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2412,7 +2875,7 @@ api.ServiceClass buildServiceClass() { o.createTime = 'foo'; o.description = 'foo'; o.etag = 'foo'; - o.labels = buildUnnamed77(); + o.labels = buildUnnamed93(); o.name = 'foo'; o.serviceClass = 'foo'; o.updateTime = 'foo'; @@ -2427,7 +2890,7 @@ void checkServiceClass(api.ServiceClass o) { unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed77(o.labels!); + checkUnnamed93(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.serviceClass!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); @@ -2435,42 +2898,63 @@ void checkServiceClass(api.ServiceClass o) { buildCounterServiceClass--; } -core.List buildUnnamed78() => [ +core.int buildCounterServiceConfig = 0; +api.ServiceConfig buildServiceConfig() { + final o = api.ServiceConfig(); + buildCounterServiceConfig++; + if (buildCounterServiceConfig < 3) { + o.eligibilityCriteria = 'foo'; + o.supportEndTime = 'foo'; + } + buildCounterServiceConfig--; + return o; +} + +void checkServiceConfig(api.ServiceConfig o) { + buildCounterServiceConfig++; + if (buildCounterServiceConfig < 3) { + unittest.expect(o.eligibilityCriteria!, unittest.equals('foo')); + unittest.expect(o.supportEndTime!, unittest.equals('foo')); + } + buildCounterServiceConfig--; +} + +core.List buildUnnamed94() => [ buildConsumerPscConfig(), buildConsumerPscConfig(), ]; -void checkUnnamed78(core.List o) { +void checkUnnamed94(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkConsumerPscConfig(o[0]); checkConsumerPscConfig(o[1]); } -core.List buildUnnamed79() => [ +core.List buildUnnamed95() => [ buildConsumerPscConnection(), buildConsumerPscConnection(), ]; -void checkUnnamed79(core.List o) { +void checkUnnamed95(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkConsumerPscConnection(o[0]); checkConsumerPscConnection(o[1]); } -core.Map buildUnnamed80() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed96() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed80(core.Map o) { +void checkUnnamed96(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed81() => [ +core.List buildUnnamed97() => [ buildProducerPscConfig(), buildProducerPscConfig(), ]; -void checkUnnamed81(core.List o) { +void checkUnnamed97(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkProducerPscConfig(o[0]); checkProducerPscConfig(o[1]); @@ -2481,15 +2965,15 @@ api.ServiceConnectionMap buildServiceConnectionMap() { final o = api.ServiceConnectionMap(); buildCounterServiceConnectionMap++; if (buildCounterServiceConnectionMap < 3) { - o.consumerPscConfigs = buildUnnamed78(); - o.consumerPscConnections = buildUnnamed79(); + o.consumerPscConfigs = buildUnnamed94(); + o.consumerPscConnections = buildUnnamed95(); o.createTime = 'foo'; o.description = 'foo'; o.etag = 'foo'; o.infrastructure = 'foo'; - o.labels = buildUnnamed80(); + o.labels = buildUnnamed96(); o.name = 'foo'; - o.producerPscConfigs = buildUnnamed81(); + o.producerPscConfigs = buildUnnamed97(); o.serviceClass = 'foo'; o.serviceClassUri = 'foo'; o.token = 'foo'; @@ -2502,15 +2986,15 @@ api.ServiceConnectionMap buildServiceConnectionMap() { void checkServiceConnectionMap(api.ServiceConnectionMap o) { buildCounterServiceConnectionMap++; if (buildCounterServiceConnectionMap < 3) { - checkUnnamed78(o.consumerPscConfigs!); - checkUnnamed79(o.consumerPscConnections!); + checkUnnamed94(o.consumerPscConfigs!); + checkUnnamed95(o.consumerPscConnections!); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.infrastructure!, unittest.equals('foo')); - checkUnnamed80(o.labels!); + checkUnnamed96(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed81(o.producerPscConfigs!); + checkUnnamed97(o.producerPscConfigs!); unittest.expect(o.serviceClass!, unittest.equals('foo')); unittest.expect(o.serviceClassUri!, unittest.equals('foo')); unittest.expect(o.token!, unittest.equals('foo')); @@ -2519,20 +3003,20 @@ void checkServiceConnectionMap(api.ServiceConnectionMap o) { buildCounterServiceConnectionMap--; } -core.Map buildUnnamed82() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed98() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed82(core.Map o) { +void checkUnnamed98(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed83() => [ +core.List buildUnnamed99() => [ buildPscConnection(), buildPscConnection(), ]; -void checkUnnamed83(core.List o) { +void checkUnnamed99(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPscConnection(o[0]); checkPscConnection(o[1]); @@ -2543,15 +3027,16 @@ api.ServiceConnectionPolicy buildServiceConnectionPolicy() { final o = api.ServiceConnectionPolicy(); buildCounterServiceConnectionPolicy++; if (buildCounterServiceConnectionPolicy < 3) { + o.autoCreatedSubnetInfo = buildAutoCreatedSubnetworkInfo(); o.createTime = 'foo'; o.description = 'foo'; o.etag = 'foo'; o.infrastructure = 'foo'; - o.labels = buildUnnamed82(); + o.labels = buildUnnamed98(); o.name = 'foo'; o.network = 'foo'; o.pscConfig = buildPscConfig(); - o.pscConnections = buildUnnamed83(); + o.pscConnections = buildUnnamed99(); o.serviceClass = 'foo'; o.updateTime = 'foo'; } @@ -2562,24 +3047,28 @@ api.ServiceConnectionPolicy buildServiceConnectionPolicy() { void checkServiceConnectionPolicy(api.ServiceConnectionPolicy o) { buildCounterServiceConnectionPolicy++; if (buildCounterServiceConnectionPolicy < 3) { + checkAutoCreatedSubnetworkInfo(o.autoCreatedSubnetInfo!); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.infrastructure!, unittest.equals('foo')); - checkUnnamed82(o.labels!); + checkUnnamed98(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); checkPscConfig(o.pscConfig!); - checkUnnamed83(o.pscConnections!); + checkUnnamed99(o.pscConnections!); unittest.expect(o.serviceClass!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); } buildCounterServiceConnectionPolicy--; } -core.Map buildUnnamed84() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed100() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkUnnamed84(core.Map o) { +void checkUnnamed100(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2594,7 +3083,7 @@ api.ServiceConnectionToken buildServiceConnectionToken() { o.description = 'foo'; o.etag = 'foo'; o.expireTime = 'foo'; - o.labels = buildUnnamed84(); + o.labels = buildUnnamed100(); o.name = 'foo'; o.network = 'foo'; o.token = 'foo'; @@ -2611,7 +3100,7 @@ void checkServiceConnectionToken(api.ServiceConnectionToken o) { unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.expireTime!, unittest.equals('foo')); - checkUnnamed84(o.labels!); + checkUnnamed100(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); unittest.expect(o.token!, unittest.equals('foo')); @@ -2641,28 +3130,31 @@ void checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { buildCounterSetIamPolicyRequest--; } -core.List buildUnnamed85() => ['foo', 'foo']; +core.List buildUnnamed101() => ['foo', 'foo']; -void checkUnnamed85(core.List o) { +void checkUnnamed101(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed86() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed102() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkUnnamed86(core.Map o) { +void checkUnnamed102(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed87() => [ +core.List buildUnnamed103() => [ buildStateReason(), buildStateReason(), ]; -void checkUnnamed87(core.List o) { +void checkUnnamed103(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkStateReason(o[0]); checkStateReason(o[1]); @@ -2676,17 +3168,17 @@ api.Spoke buildSpoke() { o.createTime = 'foo'; o.description = 'foo'; o.etag = 'foo'; - o.fieldPathsPendingUpdate = buildUnnamed85(); + o.fieldPathsPendingUpdate = buildUnnamed101(); o.group = 'foo'; o.hub = 'foo'; - o.labels = buildUnnamed86(); + o.labels = buildUnnamed102(); o.linkedInterconnectAttachments = buildLinkedInterconnectAttachments(); o.linkedProducerVpcNetwork = buildLinkedProducerVpcNetwork(); o.linkedRouterApplianceInstances = buildLinkedRouterApplianceInstances(); o.linkedVpcNetwork = buildLinkedVpcNetwork(); o.linkedVpnTunnels = buildLinkedVpnTunnels(); o.name = 'foo'; - o.reasons = buildUnnamed87(); + o.reasons = buildUnnamed103(); o.spokeType = 'foo'; o.state = 'foo'; o.uniqueId = 'foo'; @@ -2702,17 +3194,17 @@ void checkSpoke(api.Spoke o) { unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.etag!, unittest.equals('foo')); - checkUnnamed85(o.fieldPathsPendingUpdate!); + checkUnnamed101(o.fieldPathsPendingUpdate!); unittest.expect(o.group!, unittest.equals('foo')); unittest.expect(o.hub!, unittest.equals('foo')); - checkUnnamed86(o.labels!); + checkUnnamed102(o.labels!); checkLinkedInterconnectAttachments(o.linkedInterconnectAttachments!); checkLinkedProducerVpcNetwork(o.linkedProducerVpcNetwork!); checkLinkedRouterApplianceInstances(o.linkedRouterApplianceInstances!); checkLinkedVpcNetwork(o.linkedVpcNetwork!); checkLinkedVpnTunnels(o.linkedVpnTunnels!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed87(o.reasons!); + checkUnnamed103(o.reasons!); unittest.expect(o.spokeType!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.uniqueId!, unittest.equals('foo')); @@ -2763,34 +3255,34 @@ void checkSpokeStateReasonCount(api.SpokeStateReasonCount o) { buildCounterSpokeStateReasonCount--; } -core.List buildUnnamed88() => [ +core.List buildUnnamed104() => [ buildSpokeStateCount(), buildSpokeStateCount(), ]; -void checkUnnamed88(core.List o) { +void checkUnnamed104(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSpokeStateCount(o[0]); checkSpokeStateCount(o[1]); } -core.List buildUnnamed89() => [ +core.List buildUnnamed105() => [ buildSpokeStateReasonCount(), buildSpokeStateReasonCount(), ]; -void checkUnnamed89(core.List o) { +void checkUnnamed105(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSpokeStateReasonCount(o[0]); checkSpokeStateReasonCount(o[1]); } -core.List buildUnnamed90() => [ +core.List buildUnnamed106() => [ buildSpokeTypeCount(), buildSpokeTypeCount(), ]; -void checkUnnamed90(core.List o) { +void checkUnnamed106(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSpokeTypeCount(o[0]); checkSpokeTypeCount(o[1]); @@ -2801,9 +3293,9 @@ api.SpokeSummary buildSpokeSummary() { final o = api.SpokeSummary(); buildCounterSpokeSummary++; if (buildCounterSpokeSummary < 3) { - o.spokeStateCounts = buildUnnamed88(); - o.spokeStateReasonCounts = buildUnnamed89(); - o.spokeTypeCounts = buildUnnamed90(); + o.spokeStateCounts = buildUnnamed104(); + o.spokeStateReasonCounts = buildUnnamed105(); + o.spokeTypeCounts = buildUnnamed106(); } buildCounterSpokeSummary--; return o; @@ -2812,9 +3304,9 @@ api.SpokeSummary buildSpokeSummary() { void checkSpokeSummary(api.SpokeSummary o) { buildCounterSpokeSummary++; if (buildCounterSpokeSummary < 3) { - checkUnnamed88(o.spokeStateCounts!); - checkUnnamed89(o.spokeStateReasonCounts!); - checkUnnamed90(o.spokeTypeCounts!); + checkUnnamed104(o.spokeStateCounts!); + checkUnnamed105(o.spokeStateReasonCounts!); + checkUnnamed106(o.spokeTypeCounts!); } buildCounterSpokeSummary--; } @@ -2840,6 +3332,27 @@ void checkSpokeTypeCount(api.SpokeTypeCount o) { buildCounterSpokeTypeCount--; } +core.int buildCounterStateMetadata = 0; +api.StateMetadata buildStateMetadata() { + final o = api.StateMetadata(); + buildCounterStateMetadata++; + if (buildCounterStateMetadata < 3) { + o.effectiveTime = 'foo'; + o.state = 'foo'; + } + buildCounterStateMetadata--; + return o; +} + +void checkStateMetadata(api.StateMetadata o) { + buildCounterStateMetadata++; + if (buildCounterStateMetadata < 3) { + unittest.expect(o.effectiveTime!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + } + buildCounterStateMetadata--; +} + core.int buildCounterStateReason = 0; api.StateReason buildStateReason() { final o = api.StateReason(); @@ -2863,9 +3376,39 @@ void checkStateReason(api.StateReason o) { buildCounterStateReason--; } -core.List buildUnnamed91() => ['foo', 'foo']; +core.List buildUnnamed107() => [ + buildStateMetadata(), + buildStateMetadata(), +]; + +void checkUnnamed107(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkStateMetadata(o[0]); + checkStateMetadata(o[1]); +} + +core.int buildCounterStateTimeline = 0; +api.StateTimeline buildStateTimeline() { + final o = api.StateTimeline(); + buildCounterStateTimeline++; + if (buildCounterStateTimeline < 3) { + o.states = buildUnnamed107(); + } + buildCounterStateTimeline--; + return o; +} + +void checkStateTimeline(api.StateTimeline o) { + buildCounterStateTimeline++; + if (buildCounterStateTimeline < 3) { + checkUnnamed107(o.states!); + } + buildCounterStateTimeline--; +} -void checkUnnamed91(core.List o) { +core.List buildUnnamed108() => ['foo', 'foo']; + +void checkUnnamed108(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2876,7 +3419,7 @@ api.TestIamPermissionsRequest buildTestIamPermissionsRequest() { final o = api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed91(); + o.permissions = buildUnnamed108(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2885,14 +3428,14 @@ api.TestIamPermissionsRequest buildTestIamPermissionsRequest() { void checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed91(o.permissions!); + checkUnnamed108(o.permissions!); } buildCounterTestIamPermissionsRequest--; } -core.List buildUnnamed92() => ['foo', 'foo']; +core.List buildUnnamed109() => ['foo', 'foo']; -void checkUnnamed92(core.List o) { +void checkUnnamed109(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2903,7 +3446,7 @@ api.TestIamPermissionsResponse buildTestIamPermissionsResponse() { final o = api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed92(); + o.permissions = buildUnnamed109(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2912,14 +3455,74 @@ api.TestIamPermissionsResponse buildTestIamPermissionsResponse() { void checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed92(o.permissions!); + checkUnnamed109(o.permissions!); } buildCounterTestIamPermissionsResponse--; } -core.List buildUnnamed93() => ['foo', 'foo']; +core.Map buildUnnamed110() => { + 'x': 'foo', + 'y': 'foo', +}; + +void checkUnnamed110(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterTransport = 0; +api.Transport buildTransport() { + final o = api.Transport(); + buildCounterTransport++; + if (buildCounterTransport < 3) { + o.adminEnabled = true; + o.advertisedRoutes = 'foo'; + o.bandwidth = 'foo'; + o.createTime = 'foo'; + o.description = 'foo'; + o.generatedActivationKey = 'foo'; + o.labels = buildUnnamed110(); + o.mtuLimit = 42; + o.name = 'foo'; + o.network = 'foo'; + o.providedActivationKey = 'foo'; + o.region = 'foo'; + o.remoteProfile = 'foo'; + o.stackType = 'foo'; + o.state = 'foo'; + o.updateTime = 'foo'; + } + buildCounterTransport--; + return o; +} + +void checkTransport(api.Transport o) { + buildCounterTransport++; + if (buildCounterTransport < 3) { + unittest.expect(o.adminEnabled!, unittest.isTrue); + unittest.expect(o.advertisedRoutes!, unittest.equals('foo')); + unittest.expect(o.bandwidth!, unittest.equals('foo')); + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.generatedActivationKey!, unittest.equals('foo')); + checkUnnamed110(o.labels!); + unittest.expect(o.mtuLimit!, unittest.equals(42)); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.network!, unittest.equals('foo')); + unittest.expect(o.providedActivationKey!, unittest.equals('foo')); + unittest.expect(o.region!, unittest.equals('foo')); + unittest.expect(o.remoteProfile!, unittest.equals('foo')); + unittest.expect(o.stackType!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + unittest.expect(o.updateTime!, unittest.equals('foo')); + } + buildCounterTransport--; +} + +core.List buildUnnamed111() => ['foo', 'foo']; -void checkUnnamed93(core.List o) { +void checkUnnamed111(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2930,7 +3533,7 @@ api.VirtualMachine buildVirtualMachine() { final o = api.VirtualMachine(); buildCounterVirtualMachine++; if (buildCounterVirtualMachine < 3) { - o.tags = buildUnnamed93(); + o.tags = buildUnnamed111(); } buildCounterVirtualMachine--; return o; @@ -2939,14 +3542,17 @@ api.VirtualMachine buildVirtualMachine() { void checkVirtualMachine(api.VirtualMachine o) { buildCounterVirtualMachine++; if (buildCounterVirtualMachine < 3) { - checkUnnamed93(o.tags!); + checkUnnamed111(o.tags!); } buildCounterVirtualMachine--; } -core.Map buildUnnamed94() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed112() => { + 'x': 'foo', + 'y': 'foo', +}; -void checkUnnamed94(core.Map o) { +void checkUnnamed112(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2958,7 +3564,7 @@ api.Warnings buildWarnings() { buildCounterWarnings++; if (buildCounterWarnings < 3) { o.code = 'foo'; - o.data = buildUnnamed94(); + o.data = buildUnnamed112(); o.warningMessage = 'foo'; } buildCounterWarnings--; @@ -2969,23 +3575,23 @@ void checkWarnings(api.Warnings o) { buildCounterWarnings++; if (buildCounterWarnings < 3) { unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed94(o.data!); + checkUnnamed112(o.data!); unittest.expect(o.warningMessage!, unittest.equals('foo')); } buildCounterWarnings--; } -core.List buildUnnamed95() => ['foo', 'foo']; +core.List buildUnnamed113() => ['foo', 'foo']; -void checkUnnamed95(core.List o) { +void checkUnnamed113(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed96() => ['foo', 'foo']; +core.List buildUnnamed114() => ['foo', 'foo']; -void checkUnnamed96(core.List o) { +void checkUnnamed114(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3058,6 +3664,17 @@ void main() { }); }); + unittest.group('obj-schema-AutoCreatedSubnetworkInfo', () { + unittest.test('to-json--from-json', () async { + final o = buildAutoCreatedSubnetworkInfo(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.AutoCreatedSubnetworkInfo.fromJson( + oJson as core.Map, + ); + checkAutoCreatedSubnetworkInfo(od); + }); + }); + unittest.group('obj-schema-Binding', () { unittest.test('to-json--from-json', () async { final o = buildBinding(); @@ -3091,6 +3708,28 @@ void main() { }); }); + unittest.group('obj-schema-Destination', () { + unittest.test('to-json--from-json', () async { + final o = buildDestination(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Destination.fromJson( + oJson as core.Map, + ); + checkDestination(od); + }); + }); + + unittest.group('obj-schema-DestinationEndpoint', () { + unittest.test('to-json--from-json', () async { + final o = buildDestinationEndpoint(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.DestinationEndpoint.fromJson( + oJson as core.Map, + ); + checkDestinationEndpoint(od); + }); + }); + unittest.group('obj-schema-Empty', () { unittest.test('to-json--from-json', () async { final o = buildEmpty(); @@ -3287,6 +3926,17 @@ void main() { }); }); + unittest.group('obj-schema-ListDestinationsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListDestinationsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListDestinationsResponse.fromJson( + oJson as core.Map, + ); + checkListDestinationsResponse(od); + }); + }); + unittest.group('obj-schema-ListGroupsResponse', () { unittest.test('to-json--from-json', () async { final o = buildListGroupsResponse(); @@ -3342,6 +3992,32 @@ void main() { }); }); + unittest.group('obj-schema-ListMulticloudDataTransferConfigsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListMulticloudDataTransferConfigsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListMulticloudDataTransferConfigsResponse.fromJson( + oJson as core.Map, + ); + checkListMulticloudDataTransferConfigsResponse(od); + }); + }); + + unittest.group( + 'obj-schema-ListMulticloudDataTransferSupportedServicesResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildListMulticloudDataTransferSupportedServicesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .ListMulticloudDataTransferSupportedServicesResponse.fromJson( + oJson as core.Map, + ); + checkListMulticloudDataTransferSupportedServicesResponse(od); + }); + }, + ); + unittest.group('obj-schema-ListPolicyBasedRoutesResponse', () { unittest.test('to-json--from-json', () async { final o = buildListPolicyBasedRoutesResponse(); @@ -3364,6 +4040,17 @@ void main() { }); }); + unittest.group('obj-schema-ListRemoteTransportProfilesResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListRemoteTransportProfilesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListRemoteTransportProfilesResponse.fromJson( + oJson as core.Map, + ); + checkListRemoteTransportProfilesResponse(od); + }); + }); + unittest.group('obj-schema-ListRouteTablesResponse', () { unittest.test('to-json--from-json', () async { final o = buildListRouteTablesResponse(); @@ -3441,11 +4128,22 @@ void main() { }); }); - unittest.group('obj-schema-Location', () { + unittest.group('obj-schema-ListTransportsResponse', () { unittest.test('to-json--from-json', () async { - final o = buildLocation(); + final o = buildListTransportsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Location.fromJson( + final od = api.ListTransportsResponse.fromJson( + oJson as core.Map, + ); + checkListTransportsResponse(od); + }); + }); + + unittest.group('obj-schema-Location', () { + unittest.test('to-json--from-json', () async { + final o = buildLocation(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Location.fromJson( oJson as core.Map, ); checkLocation(od); @@ -3463,6 +4161,28 @@ void main() { }); }); + unittest.group('obj-schema-MulticloudDataTransferConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildMulticloudDataTransferConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.MulticloudDataTransferConfig.fromJson( + oJson as core.Map, + ); + checkMulticloudDataTransferConfig(od); + }); + }); + + unittest.group('obj-schema-MulticloudDataTransferSupportedService', () { + unittest.test('to-json--from-json', () async { + final o = buildMulticloudDataTransferSupportedService(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.MulticloudDataTransferSupportedService.fromJson( + oJson as core.Map, + ); + checkMulticloudDataTransferSupportedService(od); + }); + }); + unittest.group('obj-schema-NextHopInterconnectAttachment', () { unittest.test('to-json--from-json', () async { final o = buildNextHopInterconnectAttachment(); @@ -3628,6 +4348,17 @@ void main() { }); }); + unittest.group('obj-schema-RemoteTransportProfile', () { + unittest.test('to-json--from-json', () async { + final o = buildRemoteTransportProfile(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.RemoteTransportProfile.fromJson( + oJson as core.Map, + ); + checkRemoteTransportProfile(od); + }); + }); + unittest.group('obj-schema-Route', () { unittest.test('to-json--from-json', () async { final o = buildRoute(); @@ -3683,6 +4414,17 @@ void main() { }); }); + unittest.group('obj-schema-ServiceConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildServiceConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ServiceConfig.fromJson( + oJson as core.Map, + ); + checkServiceConfig(od); + }); + }); + unittest.group('obj-schema-ServiceConnectionMap', () { unittest.test('to-json--from-json', () async { final o = buildServiceConnectionMap(); @@ -3782,6 +4524,17 @@ void main() { }); }); + unittest.group('obj-schema-StateMetadata', () { + unittest.test('to-json--from-json', () async { + final o = buildStateMetadata(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.StateMetadata.fromJson( + oJson as core.Map, + ); + checkStateMetadata(od); + }); + }); + unittest.group('obj-schema-StateReason', () { unittest.test('to-json--from-json', () async { final o = buildStateReason(); @@ -3793,6 +4546,17 @@ void main() { }); }); + unittest.group('obj-schema-StateTimeline', () { + unittest.test('to-json--from-json', () async { + final o = buildStateTimeline(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.StateTimeline.fromJson( + oJson as core.Map, + ); + checkStateTimeline(od); + }); + }); + unittest.group('obj-schema-TestIamPermissionsRequest', () { unittest.test('to-json--from-json', () async { final o = buildTestIamPermissionsRequest(); @@ -3815,6 +4579,17 @@ void main() { }); }); + unittest.group('obj-schema-Transport', () { + unittest.test('to-json--from-json', () async { + final o = buildTransport(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Transport.fromJson( + oJson as core.Map, + ); + checkTransport(od); + }); + }); + unittest.group('obj-schema-VirtualMachine', () { unittest.test('to-json--from-json', () async { final o = buildVirtualMachine(); @@ -3895,7 +4670,7 @@ void main() { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi(mock).projects.locations; final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed95(); + final arg_extraLocationTypes = buildUnnamed113(); final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; @@ -4452,7 +5227,7 @@ void main() { final arg_orderBy = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; - final arg_spokeLocations = buildUnnamed96(); + final arg_spokeLocations = buildUnnamed114(); final arg_view = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -6710,20 +7485,24 @@ void main() { }); }); - unittest.group('resource-ProjectsLocationsOperationsResource', () { - unittest.test('method--cancel', () async { + unittest.group('resource-ProjectsLocationsMulticloudDataTransferConfigsResource', () { + unittest.test('method--create', () async { final mock = HttpServerMock(); final res = - api.NetworkconnectivityApi(mock).projects.locations.operations; - final arg_request = buildGoogleLongrunningCancelOperationRequest(); - final arg_name = 'foo'; + api.NetworkconnectivityApi( + mock, + ).projects.locations.multicloudDataTransferConfigs; + final arg_request = buildMulticloudDataTransferConfig(); + final arg_parent = 'foo'; + final arg_multicloudDataTransferConfigId = 'foo'; + final arg_requestId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.GoogleLongrunningCancelOperationRequest.fromJson( + final obj = api.MulticloudDataTransferConfig.fromJson( json as core.Map, ); - checkGoogleLongrunningCancelOperationRequest(obj); + checkMulticloudDataTransferConfig(obj); final path = req.url.path; var pathOffset = 0; @@ -6756,30 +7535,46 @@ void main() { ); } } + unittest.expect( + queryMap['multicloudDataTransferConfigId']!.first, + unittest.equals(arg_multicloudDataTransferConfigId), + ); + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildEmpty()); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.cancel( + final response = await res.create( arg_request, - arg_name, + arg_parent, + multicloudDataTransferConfigId: arg_multicloudDataTransferConfigId, + requestId: arg_requestId, $fields: arg_$fields, ); - checkEmpty(response as api.Empty); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); }); unittest.test('method--delete', () async { final mock = HttpServerMock(); final res = - api.NetworkconnectivityApi(mock).projects.locations.operations; + api.NetworkconnectivityApi( + mock, + ).projects.locations.multicloudDataTransferConfigs; final arg_name = 'foo'; + final arg_etag = 'foo'; + final arg_requestId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -6814,25 +7609,39 @@ void main() { ); } } + unittest.expect(queryMap['etag']!.first, unittest.equals(arg_etag)); + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildEmpty()); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.delete(arg_name, $fields: arg_$fields); - checkEmpty(response as api.Empty); + final response = await res.delete( + arg_name, + etag: arg_etag, + requestId: arg_requestId, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); }); unittest.test('method--get', () async { final mock = HttpServerMock(); final res = - api.NetworkconnectivityApi(mock).projects.locations.operations; + api.NetworkconnectivityApi( + mock, + ).projects.locations.multicloudDataTransferConfigs; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -6874,25 +7683,29 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode(buildMulticloudDataTransferConfig()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkMulticloudDataTransferConfig( + response as api.MulticloudDataTransferConfig, ); }); unittest.test('method--list', () async { final mock = HttpServerMock(); final res = - api.NetworkconnectivityApi(mock).projects.locations.operations; - final arg_name = 'foo'; + api.NetworkconnectivityApi( + mock, + ).projects.locations.multicloudDataTransferConfigs; + final arg_parent = 'foo'; final arg_filter = 'foo'; + final arg_orderBy = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; + final arg_returnPartialSuccess = true; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -6931,6 +7744,10 @@ void main() { queryMap['filter']!.first, unittest.equals(arg_filter), ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); unittest.expect( core.int.parse(queryMap['pageSize']!.first), unittest.equals(arg_pageSize), @@ -6939,6 +7756,10 @@ void main() { queryMap['pageToken']!.first, unittest.equals(arg_pageToken), ); + unittest.expect( + queryMap['returnPartialSuccess']!.first, + unittest.equals('$arg_returnPartialSuccess'), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -6946,41 +7767,43 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleLongrunningListOperationsResponse(), + buildListMulticloudDataTransferConfigsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); final response = await res.list( - arg_name, + arg_parent, filter: arg_filter, + orderBy: arg_orderBy, pageSize: arg_pageSize, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields, ); - checkGoogleLongrunningListOperationsResponse( - response as api.GoogleLongrunningListOperationsResponse, + checkListMulticloudDataTransferConfigsResponse( + response as api.ListMulticloudDataTransferConfigsResponse, ); }); - }); - unittest.group('resource-ProjectsLocationsRegionalEndpointsResource', () { - unittest.test('method--create', () async { + unittest.test('method--patch', () async { final mock = HttpServerMock(); final res = - api.NetworkconnectivityApi(mock).projects.locations.regionalEndpoints; - final arg_request = buildRegionalEndpoint(); - final arg_parent = 'foo'; - final arg_regionalEndpointId = 'foo'; + api.NetworkconnectivityApi( + mock, + ).projects.locations.multicloudDataTransferConfigs; + final arg_request = buildMulticloudDataTransferConfig(); + final arg_name = 'foo'; final arg_requestId = 'foo'; + final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.RegionalEndpoint.fromJson( + final obj = api.MulticloudDataTransferConfig.fromJson( json as core.Map, ); - checkRegionalEndpoint(obj); + checkMulticloudDataTransferConfig(obj); final path = req.url.path; var pathOffset = 0; @@ -7013,14 +7836,14 @@ void main() { ); } } - unittest.expect( - queryMap['regionalEndpointId']!.first, - unittest.equals(arg_regionalEndpointId), - ); unittest.expect( queryMap['requestId']!.first, unittest.equals(arg_requestId), ); + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -7032,87 +7855,1296 @@ void main() { }), true, ); - final response = await res.create( + final response = await res.patch( arg_request, - arg_parent, - regionalEndpointId: arg_regionalEndpointId, + arg_name, requestId: arg_requestId, + updateMask: arg_updateMask, $fields: arg_$fields, ); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation, ); }); + }); - unittest.test('method--delete', () async { - final mock = HttpServerMock(); - final res = - api.NetworkconnectivityApi(mock).projects.locations.regionalEndpoints; - final arg_name = 'foo'; - final arg_requestId = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), - unittest.equals('v1/'), - ); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + unittest.group( + 'resource-ProjectsLocationsMulticloudDataTransferConfigsDestinationsResource', + () { + unittest.test('method--create', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi( + mock, + ).projects.locations.multicloudDataTransferConfigs.destinations; + final arg_request = buildDestination(); + final arg_parent = 'foo'; + final arg_destinationId = 'foo'; + final arg_requestId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.Destination.fromJson( + json as core.Map, + ); + checkDestination(obj); - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['requestId']!.first, - unittest.equals(arg_requestId), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.delete( - arg_name, - requestId: arg_requestId, - $fields: arg_$fields, - ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, - ); - }); + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['destinationId']!.first, + unittest.equals(arg_destinationId), + ); + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.create( + arg_request, + arg_parent, + destinationId: arg_destinationId, + requestId: arg_requestId, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi( + mock, + ).projects.locations.multicloudDataTransferConfigs.destinations; + final arg_name = 'foo'; + final arg_etag = 'foo'; + final arg_requestId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect(queryMap['etag']!.first, unittest.equals(arg_etag)); + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete( + arg_name, + etag: arg_etag, + requestId: arg_requestId, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi( + mock, + ).projects.locations.multicloudDataTransferConfigs.destinations; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildDestination()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkDestination(response as api.Destination); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi( + mock, + ).projects.locations.multicloudDataTransferConfigs.destinations; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_returnPartialSuccess = true; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['returnPartialSuccess']!.first, + unittest.equals('$arg_returnPartialSuccess'), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildListDestinationsResponse()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, + $fields: arg_$fields, + ); + checkListDestinationsResponse(response as api.ListDestinationsResponse); + }); + + unittest.test('method--patch', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi( + mock, + ).projects.locations.multicloudDataTransferConfigs.destinations; + final arg_request = buildDestination(); + final arg_name = 'foo'; + final arg_requestId = 'foo'; + final arg_updateMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.Destination.fromJson( + json as core.Map, + ); + checkDestination(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.patch( + arg_request, + arg_name, + requestId: arg_requestId, + updateMask: arg_updateMask, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + }, + ); + + unittest.group( + 'resource-ProjectsLocationsMulticloudDataTransferSupportedServicesResource', + () { + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi( + mock, + ).projects.locations.multicloudDataTransferSupportedServices; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildMulticloudDataTransferSupportedService(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkMulticloudDataTransferSupportedService( + response as api.MulticloudDataTransferSupportedService, + ); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi( + mock, + ).projects.locations.multicloudDataTransferSupportedServices; + final arg_parent = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildListMulticloudDataTransferSupportedServicesResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkListMulticloudDataTransferSupportedServicesResponse( + response as api.ListMulticloudDataTransferSupportedServicesResponse, + ); + }); + }, + ); + + unittest.group('resource-ProjectsLocationsOperationsResource', () { + unittest.test('method--cancel', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi(mock).projects.locations.operations; + final arg_request = buildGoogleLongrunningCancelOperationRequest(); + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.GoogleLongrunningCancelOperationRequest.fromJson( + json as core.Map, + ); + checkGoogleLongrunningCancelOperationRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildEmpty()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.cancel( + arg_request, + arg_name, + $fields: arg_$fields, + ); + checkEmpty(response as api.Empty); + }); + + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi(mock).projects.locations.operations; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildEmpty()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkEmpty(response as api.Empty); + }); + + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi(mock).projects.locations.operations; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi(mock).projects.locations.operations; + final arg_name = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleLongrunningListOperationsResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_name, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkGoogleLongrunningListOperationsResponse( + response as api.GoogleLongrunningListOperationsResponse, + ); + }); + }); + + unittest.group('resource-ProjectsLocationsRegionalEndpointsResource', () { + unittest.test('method--create', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi(mock).projects.locations.regionalEndpoints; + final arg_request = buildRegionalEndpoint(); + final arg_parent = 'foo'; + final arg_regionalEndpointId = 'foo'; + final arg_requestId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.RegionalEndpoint.fromJson( + json as core.Map, + ); + checkRegionalEndpoint(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['regionalEndpointId']!.first, + unittest.equals(arg_regionalEndpointId), + ); + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.create( + arg_request, + arg_parent, + regionalEndpointId: arg_regionalEndpointId, + requestId: arg_requestId, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi(mock).projects.locations.regionalEndpoints; + final arg_name = 'foo'; + final arg_requestId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete( + arg_name, + requestId: arg_requestId, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); + + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi(mock).projects.locations.regionalEndpoints; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildRegionalEndpoint()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkRegionalEndpoint(response as api.RegionalEndpoint); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi(mock).projects.locations.regionalEndpoints; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildListRegionalEndpointsResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkListRegionalEndpointsResponse( + response as api.ListRegionalEndpointsResponse, + ); + }); + }); + + unittest.group('resource-ProjectsLocationsRemoteTransportProfilesResource', () { + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi( + mock, + ).projects.locations.remoteTransportProfiles; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildRemoteTransportProfile()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkRemoteTransportProfile(response as api.RemoteTransportProfile); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi( + mock, + ).projects.locations.remoteTransportProfiles; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildListRemoteTransportProfilesResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkListRemoteTransportProfilesResponse( + response as api.ListRemoteTransportProfilesResponse, + ); + }); + }); + + unittest.group('resource-ProjectsLocationsServiceClassesResource', () { + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi(mock).projects.locations.serviceClasses; + final arg_name = 'foo'; + final arg_etag = 'foo'; + final arg_requestId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect(queryMap['etag']!.first, unittest.equals(arg_etag)); + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildGoogleLongrunningOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete( + arg_name, + etag: arg_etag, + requestId: arg_requestId, + $fields: arg_$fields, + ); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); + }); unittest.test('method--get', () async { final mock = HttpServerMock(); final res = - api.NetworkconnectivityApi(mock).projects.locations.regionalEndpoints; + api.NetworkconnectivityApi(mock).projects.locations.serviceClasses; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -7154,19 +9186,82 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildRegionalEndpoint()); + final resp = convert.json.encode(buildServiceClass()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); final response = await res.get(arg_name, $fields: arg_$fields); - checkRegionalEndpoint(response as api.RegionalEndpoint); + checkServiceClass(response as api.ServiceClass); + }); + + unittest.test('method--getIamPolicy', () async { + final mock = HttpServerMock(); + final res = + api.NetworkconnectivityApi(mock).projects.locations.serviceClasses; + final arg_resource = 'foo'; + final arg_options_requestedPolicyVersion = 42; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + core.int.parse(queryMap['options.requestedPolicyVersion']!.first), + unittest.equals(arg_options_requestedPolicyVersion), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildPolicy()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.getIamPolicy( + arg_resource, + options_requestedPolicyVersion: arg_options_requestedPolicyVersion, + $fields: arg_$fields, + ); + checkPolicy(response as api.Policy); }); unittest.test('method--list', () async { final mock = HttpServerMock(); final res = - api.NetworkconnectivityApi(mock).projects.locations.regionalEndpoints; + api.NetworkconnectivityApi(mock).projects.locations.serviceClasses; final arg_parent = 'foo'; final arg_filter = 'foo'; final arg_orderBy = 'foo'; @@ -7228,9 +9323,7 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildListRegionalEndpointsResponse(), - ); + final resp = convert.json.encode(buildListServiceClassesResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, @@ -7243,23 +9336,27 @@ void main() { pageToken: arg_pageToken, $fields: arg_$fields, ); - checkListRegionalEndpointsResponse( - response as api.ListRegionalEndpointsResponse, + checkListServiceClassesResponse( + response as api.ListServiceClassesResponse, ); }); - }); - unittest.group('resource-ProjectsLocationsServiceClassesResource', () { - unittest.test('method--delete', () async { + unittest.test('method--patch', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi(mock).projects.locations.serviceClasses; + final arg_request = buildServiceClass(); final arg_name = 'foo'; - final arg_etag = 'foo'; final arg_requestId = 'foo'; + final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.ServiceClass.fromJson( + json as core.Map, + ); + checkServiceClass(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -7291,11 +9388,14 @@ void main() { ); } } - unittest.expect(queryMap['etag']!.first, unittest.equals(arg_etag)); unittest.expect( queryMap['requestId']!.first, unittest.equals(arg_requestId), ); + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -7307,10 +9407,11 @@ void main() { }), true, ); - final response = await res.delete( + final response = await res.patch( + arg_request, arg_name, - etag: arg_etag, requestId: arg_requestId, + updateMask: arg_updateMask, $fields: arg_$fields, ); checkGoogleLongrunningOperation( @@ -7318,14 +9419,20 @@ void main() { ); }); - unittest.test('method--get', () async { + unittest.test('method--setIamPolicy', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi(mock).projects.locations.serviceClasses; - final arg_name = 'foo'; + final arg_request = buildSetIamPolicyRequest(); + final arg_resource = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.SetIamPolicyRequest.fromJson( + json as core.Map, + ); + checkSetIamPolicyRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -7363,24 +9470,33 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildServiceClass()); + final resp = convert.json.encode(buildPolicy()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkServiceClass(response as api.ServiceClass); + final response = await res.setIamPolicy( + arg_request, + arg_resource, + $fields: arg_$fields, + ); + checkPolicy(response as api.Policy); }); - unittest.test('method--getIamPolicy', () async { + unittest.test('method--testIamPermissions', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi(mock).projects.locations.serviceClasses; + final arg_request = buildTestIamPermissionsRequest(); final arg_resource = 'foo'; - final arg_options_requestedPolicyVersion = 42; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.TestIamPermissionsRequest.fromJson( + json as core.Map, + ); + checkTestIamPermissionsRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -7412,41 +9528,47 @@ void main() { ); } } - unittest.expect( - core.int.parse(queryMap['options.requestedPolicyVersion']!.first), - unittest.equals(arg_options_requestedPolicyVersion), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildPolicy()); + final resp = convert.json.encode(buildTestIamPermissionsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.getIamPolicy( + final response = await res.testIamPermissions( + arg_request, arg_resource, - options_requestedPolicyVersion: arg_options_requestedPolicyVersion, $fields: arg_$fields, ); - checkPolicy(response as api.Policy); + checkTestIamPermissionsResponse( + response as api.TestIamPermissionsResponse, + ); }); + }); - unittest.test('method--list', () async { + unittest.group('resource-ProjectsLocationsServiceConnectionMapsResource', () { + unittest.test('method--create', () async { final mock = HttpServerMock(); final res = - api.NetworkconnectivityApi(mock).projects.locations.serviceClasses; + api.NetworkconnectivityApi( + mock, + ).projects.locations.serviceConnectionMaps; + final arg_request = buildServiceConnectionMap(); final arg_parent = 'foo'; - final arg_filter = 'foo'; - final arg_orderBy = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; + final arg_requestId = 'foo'; + final arg_serviceConnectionMapId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.ServiceConnectionMap.fromJson( + json as core.Map, + ); + checkServiceConnectionMap(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -7479,20 +9601,12 @@ void main() { } } unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), + queryMap['requestId']!.first, + unittest.equals(arg_requestId), ); unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), + queryMap['serviceConnectionMapId']!.first, + unittest.equals(arg_serviceConnectionMapId), ); unittest.expect( queryMap['fields']!.first, @@ -7500,40 +9614,35 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildListServiceClassesResponse()); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.list( + final response = await res.create( + arg_request, arg_parent, - filter: arg_filter, - orderBy: arg_orderBy, - pageSize: arg_pageSize, - pageToken: arg_pageToken, + requestId: arg_requestId, + serviceConnectionMapId: arg_serviceConnectionMapId, $fields: arg_$fields, ); - checkListServiceClassesResponse( - response as api.ListServiceClassesResponse, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--patch', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); final res = - api.NetworkconnectivityApi(mock).projects.locations.serviceClasses; - final arg_request = buildServiceClass(); + api.NetworkconnectivityApi( + mock, + ).projects.locations.serviceConnectionMaps; final arg_name = 'foo'; + final arg_etag = 'foo'; final arg_requestId = 'foo'; - final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.ServiceClass.fromJson( - json as core.Map, - ); - checkServiceClass(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -7565,14 +9674,11 @@ void main() { ); } } + unittest.expect(queryMap['etag']!.first, unittest.equals(arg_etag)); unittest.expect( queryMap['requestId']!.first, unittest.equals(arg_requestId), ); - unittest.expect( - queryMap['updateMask']!.first, - unittest.equals(arg_updateMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -7584,11 +9690,10 @@ void main() { }), true, ); - final response = await res.patch( - arg_request, + final response = await res.delete( arg_name, + etag: arg_etag, requestId: arg_requestId, - updateMask: arg_updateMask, $fields: arg_$fields, ); checkGoogleLongrunningOperation( @@ -7596,20 +9701,16 @@ void main() { ); }); - unittest.test('method--setIamPolicy', () async { + unittest.test('method--get', () async { final mock = HttpServerMock(); final res = - api.NetworkconnectivityApi(mock).projects.locations.serviceClasses; - final arg_request = buildSetIamPolicyRequest(); - final arg_resource = 'foo'; + api.NetworkconnectivityApi( + mock, + ).projects.locations.serviceConnectionMaps; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.SetIamPolicyRequest.fromJson( - json as core.Map, - ); - checkSetIamPolicyRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -7647,33 +9748,26 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildPolicy()); + final resp = convert.json.encode(buildServiceConnectionMap()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.setIamPolicy( - arg_request, - arg_resource, - $fields: arg_$fields, - ); - checkPolicy(response as api.Policy); + final response = await res.get(arg_name, $fields: arg_$fields); + checkServiceConnectionMap(response as api.ServiceConnectionMap); }); - unittest.test('method--testIamPermissions', () async { + unittest.test('method--getIamPolicy', () async { final mock = HttpServerMock(); final res = - api.NetworkconnectivityApi(mock).projects.locations.serviceClasses; - final arg_request = buildTestIamPermissionsRequest(); + api.NetworkconnectivityApi( + mock, + ).projects.locations.serviceConnectionMaps; final arg_resource = 'foo'; + final arg_options_requestedPolicyVersion = 42; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.TestIamPermissionsRequest.fromJson( - json as core.Map, - ); - checkTestIamPermissionsRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -7705,47 +9799,43 @@ void main() { ); } } + unittest.expect( + core.int.parse(queryMap['options.requestedPolicyVersion']!.first), + unittest.equals(arg_options_requestedPolicyVersion), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildTestIamPermissionsResponse()); + final resp = convert.json.encode(buildPolicy()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.testIamPermissions( - arg_request, + final response = await res.getIamPolicy( arg_resource, + options_requestedPolicyVersion: arg_options_requestedPolicyVersion, $fields: arg_$fields, ); - checkTestIamPermissionsResponse( - response as api.TestIamPermissionsResponse, - ); + checkPolicy(response as api.Policy); }); - }); - unittest.group('resource-ProjectsLocationsServiceConnectionMapsResource', () { - unittest.test('method--create', () async { + unittest.test('method--list', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, ).projects.locations.serviceConnectionMaps; - final arg_request = buildServiceConnectionMap(); final arg_parent = 'foo'; - final arg_requestId = 'foo'; - final arg_serviceConnectionMapId = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.ServiceConnectionMap.fromJson( - json as core.Map, - ); - checkServiceConnectionMap(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -7778,12 +9868,20 @@ void main() { } } unittest.expect( - queryMap['requestId']!.first, - unittest.equals(arg_requestId), + queryMap['filter']!.first, + unittest.equals(arg_filter), ); unittest.expect( - queryMap['serviceConnectionMapId']!.first, - unittest.equals(arg_serviceConnectionMapId), + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), ); unittest.expect( queryMap['fields']!.first, @@ -7791,35 +9889,44 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildListServiceConnectionMapsResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.create( - arg_request, + final response = await res.list( arg_parent, - requestId: arg_requestId, - serviceConnectionMapId: arg_serviceConnectionMapId, + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkListServiceConnectionMapsResponse( + response as api.ListServiceConnectionMapsResponse, ); }); - unittest.test('method--delete', () async { + unittest.test('method--patch', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, ).projects.locations.serviceConnectionMaps; + final arg_request = buildServiceConnectionMap(); final arg_name = 'foo'; - final arg_etag = 'foo'; final arg_requestId = 'foo'; + final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.ServiceConnectionMap.fromJson( + json as core.Map, + ); + checkServiceConnectionMap(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -7851,11 +9958,14 @@ void main() { ); } } - unittest.expect(queryMap['etag']!.first, unittest.equals(arg_etag)); unittest.expect( queryMap['requestId']!.first, unittest.equals(arg_requestId), ); + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -7867,10 +9977,11 @@ void main() { }), true, ); - final response = await res.delete( + final response = await res.patch( + arg_request, arg_name, - etag: arg_etag, requestId: arg_requestId, + updateMask: arg_updateMask, $fields: arg_$fields, ); checkGoogleLongrunningOperation( @@ -7878,16 +9989,22 @@ void main() { ); }); - unittest.test('method--get', () async { + unittest.test('method--setIamPolicy', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, ).projects.locations.serviceConnectionMaps; - final arg_name = 'foo'; + final arg_request = buildSetIamPolicyRequest(); + final arg_resource = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.SetIamPolicyRequest.fromJson( + json as core.Map, + ); + checkSetIamPolicyRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -7925,26 +10042,35 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildServiceConnectionMap()); + final resp = convert.json.encode(buildPolicy()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkServiceConnectionMap(response as api.ServiceConnectionMap); + final response = await res.setIamPolicy( + arg_request, + arg_resource, + $fields: arg_$fields, + ); + checkPolicy(response as api.Policy); }); - unittest.test('method--getIamPolicy', () async { + unittest.test('method--testIamPermissions', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, ).projects.locations.serviceConnectionMaps; + final arg_request = buildTestIamPermissionsRequest(); final arg_resource = 'foo'; - final arg_options_requestedPolicyVersion = 42; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.TestIamPermissionsRequest.fromJson( + json as core.Map, + ); + checkTestIamPermissionsRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -7976,43 +10102,51 @@ void main() { ); } } - unittest.expect( - core.int.parse(queryMap['options.requestedPolicyVersion']!.first), - unittest.equals(arg_options_requestedPolicyVersion), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildPolicy()); + final resp = convert.json.encode(buildTestIamPermissionsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.getIamPolicy( + final response = await res.testIamPermissions( + arg_request, arg_resource, - options_requestedPolicyVersion: arg_options_requestedPolicyVersion, $fields: arg_$fields, ); - checkPolicy(response as api.Policy); + checkTestIamPermissionsResponse( + response as api.TestIamPermissionsResponse, + ); }); + }); - unittest.test('method--list', () async { + unittest.group('resource-ProjectsLocationsServiceConnectionPoliciesResource', () { + unittest.test('method--create', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, - ).projects.locations.serviceConnectionMaps; + ).projects.locations.serviceConnectionPolicies; + final arg_request = buildServiceConnectionPolicy(); final arg_parent = 'foo'; - final arg_filter = 'foo'; - final arg_orderBy = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; + final arg_autoSubnetworkConfig_allocRangeSpace = 'foo'; + final arg_autoSubnetworkConfig_ipStack = 'foo'; + final arg_autoSubnetworkConfig_prefixLength = 42; + final arg_requestId = 'foo'; + final arg_serviceConnectionPolicyId = 'foo'; + final arg_subnetworkMode = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.ServiceConnectionPolicy.fromJson( + json as core.Map, + ); + checkServiceConnectionPolicy(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -8045,20 +10179,30 @@ void main() { } } unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), + queryMap['autoSubnetworkConfig.allocRangeSpace']!.first, + unittest.equals(arg_autoSubnetworkConfig_allocRangeSpace), ); unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), + queryMap['autoSubnetworkConfig.ipStack']!.first, + unittest.equals(arg_autoSubnetworkConfig_ipStack), ); unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), + core.int.parse( + queryMap['autoSubnetworkConfig.prefixLength']!.first, + ), + unittest.equals(arg_autoSubnetworkConfig_prefixLength), ); unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['serviceConnectionPolicyId']!.first, + unittest.equals(arg_serviceConnectionPolicyId), + ); + unittest.expect( + queryMap['subnetworkMode']!.first, + unittest.equals(arg_subnetworkMode), ); unittest.expect( queryMap['fields']!.first, @@ -8066,44 +10210,41 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildListServiceConnectionMapsResponse(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.list( + final response = await res.create( + arg_request, arg_parent, - filter: arg_filter, - orderBy: arg_orderBy, - pageSize: arg_pageSize, - pageToken: arg_pageToken, + autoSubnetworkConfig_allocRangeSpace: + arg_autoSubnetworkConfig_allocRangeSpace, + autoSubnetworkConfig_ipStack: arg_autoSubnetworkConfig_ipStack, + autoSubnetworkConfig_prefixLength: + arg_autoSubnetworkConfig_prefixLength, + requestId: arg_requestId, + serviceConnectionPolicyId: arg_serviceConnectionPolicyId, + subnetworkMode: arg_subnetworkMode, $fields: arg_$fields, ); - checkListServiceConnectionMapsResponse( - response as api.ListServiceConnectionMapsResponse, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--patch', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, - ).projects.locations.serviceConnectionMaps; - final arg_request = buildServiceConnectionMap(); + ).projects.locations.serviceConnectionPolicies; final arg_name = 'foo'; + final arg_etag = 'foo'; final arg_requestId = 'foo'; - final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.ServiceConnectionMap.fromJson( - json as core.Map, - ); - checkServiceConnectionMap(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -8135,14 +10276,11 @@ void main() { ); } } + unittest.expect(queryMap['etag']!.first, unittest.equals(arg_etag)); unittest.expect( queryMap['requestId']!.first, unittest.equals(arg_requestId), ); - unittest.expect( - queryMap['updateMask']!.first, - unittest.equals(arg_updateMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -8154,11 +10292,10 @@ void main() { }), true, ); - final response = await res.patch( - arg_request, + final response = await res.delete( arg_name, + etag: arg_etag, requestId: arg_requestId, - updateMask: arg_updateMask, $fields: arg_$fields, ); checkGoogleLongrunningOperation( @@ -8166,22 +10303,16 @@ void main() { ); }); - unittest.test('method--setIamPolicy', () async { + unittest.test('method--get', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, - ).projects.locations.serviceConnectionMaps; - final arg_request = buildSetIamPolicyRequest(); - final arg_resource = 'foo'; + ).projects.locations.serviceConnectionPolicies; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.SetIamPolicyRequest.fromJson( - json as core.Map, - ); - checkSetIamPolicyRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -8219,35 +10350,26 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildPolicy()); + final resp = convert.json.encode(buildServiceConnectionPolicy()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.setIamPolicy( - arg_request, - arg_resource, - $fields: arg_$fields, - ); - checkPolicy(response as api.Policy); + final response = await res.get(arg_name, $fields: arg_$fields); + checkServiceConnectionPolicy(response as api.ServiceConnectionPolicy); }); - unittest.test('method--testIamPermissions', () async { + unittest.test('method--getIamPolicy', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, - ).projects.locations.serviceConnectionMaps; - final arg_request = buildTestIamPermissionsRequest(); + ).projects.locations.serviceConnectionPolicies; final arg_resource = 'foo'; + final arg_options_requestedPolicyVersion = 42; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.TestIamPermissionsRequest.fromJson( - json as core.Map, - ); - checkTestIamPermissionsRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -8279,47 +10401,43 @@ void main() { ); } } + unittest.expect( + core.int.parse(queryMap['options.requestedPolicyVersion']!.first), + unittest.equals(arg_options_requestedPolicyVersion), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildTestIamPermissionsResponse()); + final resp = convert.json.encode(buildPolicy()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.testIamPermissions( - arg_request, + final response = await res.getIamPolicy( arg_resource, + options_requestedPolicyVersion: arg_options_requestedPolicyVersion, $fields: arg_$fields, ); - checkTestIamPermissionsResponse( - response as api.TestIamPermissionsResponse, - ); + checkPolicy(response as api.Policy); }); - }); - unittest.group('resource-ProjectsLocationsServiceConnectionPoliciesResource', () { - unittest.test('method--create', () async { + unittest.test('method--list', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, ).projects.locations.serviceConnectionPolicies; - final arg_request = buildServiceConnectionPolicy(); final arg_parent = 'foo'; - final arg_requestId = 'foo'; - final arg_serviceConnectionPolicyId = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.ServiceConnectionPolicy.fromJson( - json as core.Map, - ); - checkServiceConnectionPolicy(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -8352,12 +10470,20 @@ void main() { } } unittest.expect( - queryMap['requestId']!.first, - unittest.equals(arg_requestId), + queryMap['filter']!.first, + unittest.equals(arg_filter), ); unittest.expect( - queryMap['serviceConnectionPolicyId']!.first, - unittest.equals(arg_serviceConnectionPolicyId), + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), ); unittest.expect( queryMap['fields']!.first, @@ -8365,35 +10491,44 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode( + buildListServiceConnectionPoliciesResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.create( - arg_request, + final response = await res.list( arg_parent, - requestId: arg_requestId, - serviceConnectionPolicyId: arg_serviceConnectionPolicyId, + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, + checkListServiceConnectionPoliciesResponse( + response as api.ListServiceConnectionPoliciesResponse, ); }); - unittest.test('method--delete', () async { + unittest.test('method--patch', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, ).projects.locations.serviceConnectionPolicies; + final arg_request = buildServiceConnectionPolicy(); final arg_name = 'foo'; - final arg_etag = 'foo'; final arg_requestId = 'foo'; + final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.ServiceConnectionPolicy.fromJson( + json as core.Map, + ); + checkServiceConnectionPolicy(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -8425,11 +10560,14 @@ void main() { ); } } - unittest.expect(queryMap['etag']!.first, unittest.equals(arg_etag)); unittest.expect( queryMap['requestId']!.first, unittest.equals(arg_requestId), ); + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -8441,10 +10579,11 @@ void main() { }), true, ); - final response = await res.delete( + final response = await res.patch( + arg_request, arg_name, - etag: arg_etag, requestId: arg_requestId, + updateMask: arg_updateMask, $fields: arg_$fields, ); checkGoogleLongrunningOperation( @@ -8452,16 +10591,22 @@ void main() { ); }); - unittest.test('method--get', () async { + unittest.test('method--setIamPolicy', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, ).projects.locations.serviceConnectionPolicies; - final arg_name = 'foo'; + final arg_request = buildSetIamPolicyRequest(); + final arg_resource = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.SetIamPolicyRequest.fromJson( + json as core.Map, + ); + checkSetIamPolicyRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -8499,26 +10644,35 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildServiceConnectionPolicy()); + final resp = convert.json.encode(buildPolicy()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkServiceConnectionPolicy(response as api.ServiceConnectionPolicy); + final response = await res.setIamPolicy( + arg_request, + arg_resource, + $fields: arg_$fields, + ); + checkPolicy(response as api.Policy); }); - unittest.test('method--getIamPolicy', () async { + unittest.test('method--testIamPermissions', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, ).projects.locations.serviceConnectionPolicies; + final arg_request = buildTestIamPermissionsRequest(); final arg_resource = 'foo'; - final arg_options_requestedPolicyVersion = 42; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.TestIamPermissionsRequest.fromJson( + json as core.Map, + ); + checkTestIamPermissionsRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -8550,43 +10704,47 @@ void main() { ); } } - unittest.expect( - core.int.parse(queryMap['options.requestedPolicyVersion']!.first), - unittest.equals(arg_options_requestedPolicyVersion), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildPolicy()); + final resp = convert.json.encode(buildTestIamPermissionsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.getIamPolicy( + final response = await res.testIamPermissions( + arg_request, arg_resource, - options_requestedPolicyVersion: arg_options_requestedPolicyVersion, $fields: arg_$fields, ); - checkPolicy(response as api.Policy); + checkTestIamPermissionsResponse( + response as api.TestIamPermissionsResponse, + ); }); + }); - unittest.test('method--list', () async { + unittest.group('resource-ProjectsLocationsServiceConnectionTokensResource', () { + unittest.test('method--create', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, - ).projects.locations.serviceConnectionPolicies; + ).projects.locations.serviceConnectionTokens; + final arg_request = buildServiceConnectionToken(); final arg_parent = 'foo'; - final arg_filter = 'foo'; - final arg_orderBy = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; + final arg_requestId = 'foo'; + final arg_serviceConnectionTokenId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.ServiceConnectionToken.fromJson( + json as core.Map, + ); + checkServiceConnectionToken(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -8619,20 +10777,12 @@ void main() { } } unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), + queryMap['requestId']!.first, + unittest.equals(arg_requestId), ); unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), + queryMap['serviceConnectionTokenId']!.first, + unittest.equals(arg_serviceConnectionTokenId), ); unittest.expect( queryMap['fields']!.first, @@ -8640,44 +10790,35 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildListServiceConnectionPoliciesResponse(), - ); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.list( + final response = await res.create( + arg_request, arg_parent, - filter: arg_filter, - orderBy: arg_orderBy, - pageSize: arg_pageSize, - pageToken: arg_pageToken, + requestId: arg_requestId, + serviceConnectionTokenId: arg_serviceConnectionTokenId, $fields: arg_$fields, ); - checkListServiceConnectionPoliciesResponse( - response as api.ListServiceConnectionPoliciesResponse, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); - unittest.test('method--patch', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, - ).projects.locations.serviceConnectionPolicies; - final arg_request = buildServiceConnectionPolicy(); + ).projects.locations.serviceConnectionTokens; final arg_name = 'foo'; + final arg_etag = 'foo'; final arg_requestId = 'foo'; - final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.ServiceConnectionPolicy.fromJson( - json as core.Map, - ); - checkServiceConnectionPolicy(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -8709,14 +10850,11 @@ void main() { ); } } + unittest.expect(queryMap['etag']!.first, unittest.equals(arg_etag)); unittest.expect( queryMap['requestId']!.first, unittest.equals(arg_requestId), ); - unittest.expect( - queryMap['updateMask']!.first, - unittest.equals(arg_updateMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -8728,11 +10866,10 @@ void main() { }), true, ); - final response = await res.patch( - arg_request, + final response = await res.delete( arg_name, + etag: arg_etag, requestId: arg_requestId, - updateMask: arg_updateMask, $fields: arg_$fields, ); checkGoogleLongrunningOperation( @@ -8740,22 +10877,16 @@ void main() { ); }); - unittest.test('method--setIamPolicy', () async { + unittest.test('method--get', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, - ).projects.locations.serviceConnectionPolicies; - final arg_request = buildSetIamPolicyRequest(); - final arg_resource = 'foo'; + ).projects.locations.serviceConnectionTokens; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.SetIamPolicyRequest.fromJson( - json as core.Map, - ); - checkSetIamPolicyRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -8793,35 +10924,29 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildPolicy()); + final resp = convert.json.encode(buildServiceConnectionToken()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.setIamPolicy( - arg_request, - arg_resource, - $fields: arg_$fields, - ); - checkPolicy(response as api.Policy); + final response = await res.get(arg_name, $fields: arg_$fields); + checkServiceConnectionToken(response as api.ServiceConnectionToken); }); - unittest.test('method--testIamPermissions', () async { + unittest.test('method--list', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi( mock, - ).projects.locations.serviceConnectionPolicies; - final arg_request = buildTestIamPermissionsRequest(); - final arg_resource = 'foo'; + ).projects.locations.serviceConnectionTokens; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.TestIamPermissionsRequest.fromJson( - json as core.Map, - ); - checkTestIamPermissionsRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -8853,46 +10978,64 @@ void main() { ); } } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildTestIamPermissionsResponse()); + final resp = convert.json.encode( + buildListServiceConnectionTokensResponse(), + ); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.testIamPermissions( - arg_request, - arg_resource, + final response = await res.list( + arg_parent, + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields, ); - checkTestIamPermissionsResponse( - response as api.TestIamPermissionsResponse, + checkListServiceConnectionTokensResponse( + response as api.ListServiceConnectionTokensResponse, ); }); }); - unittest.group('resource-ProjectsLocationsServiceConnectionTokensResource', () { + unittest.group('resource-ProjectsLocationsSpokesResource', () { unittest.test('method--create', () async { final mock = HttpServerMock(); - final res = - api.NetworkconnectivityApi( - mock, - ).projects.locations.serviceConnectionTokens; - final arg_request = buildServiceConnectionToken(); + final res = api.NetworkconnectivityApi(mock).projects.locations.spokes; + final arg_request = buildSpoke(); final arg_parent = 'foo'; final arg_requestId = 'foo'; - final arg_serviceConnectionTokenId = 'foo'; + final arg_spokeId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.ServiceConnectionToken.fromJson( + final obj = api.Spoke.fromJson( json as core.Map, ); - checkServiceConnectionToken(obj); + checkSpoke(obj); final path = req.url.path; var pathOffset = 0; @@ -8930,8 +11073,8 @@ void main() { unittest.equals(arg_requestId), ); unittest.expect( - queryMap['serviceConnectionTokenId']!.first, - unittest.equals(arg_serviceConnectionTokenId), + queryMap['spokeId']!.first, + unittest.equals(arg_spokeId), ); unittest.expect( queryMap['fields']!.first, @@ -8948,7 +11091,7 @@ void main() { arg_request, arg_parent, requestId: arg_requestId, - serviceConnectionTokenId: arg_serviceConnectionTokenId, + spokeId: arg_spokeId, $fields: arg_$fields, ); checkGoogleLongrunningOperation( @@ -8958,12 +11101,8 @@ void main() { unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = - api.NetworkconnectivityApi( - mock, - ).projects.locations.serviceConnectionTokens; + final res = api.NetworkconnectivityApi(mock).projects.locations.spokes; final arg_name = 'foo'; - final arg_etag = 'foo'; final arg_requestId = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -8999,7 +11138,6 @@ void main() { ); } } - unittest.expect(queryMap['etag']!.first, unittest.equals(arg_etag)); unittest.expect( queryMap['requestId']!.first, unittest.equals(arg_requestId), @@ -9017,7 +11155,6 @@ void main() { ); final response = await res.delete( arg_name, - etag: arg_etag, requestId: arg_requestId, $fields: arg_$fields, ); @@ -9028,10 +11165,7 @@ void main() { unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = - api.NetworkconnectivityApi( - mock, - ).projects.locations.serviceConnectionTokens; + final res = api.NetworkconnectivityApi(mock).projects.locations.spokes; final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( @@ -9073,21 +11207,80 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildServiceConnectionToken()); + final resp = convert.json.encode(buildSpoke()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); final response = await res.get(arg_name, $fields: arg_$fields); - checkServiceConnectionToken(response as api.ServiceConnectionToken); + checkSpoke(response as api.Spoke); }); - unittest.test('method--list', () async { + unittest.test('method--getIamPolicy', () async { final mock = HttpServerMock(); - final res = - api.NetworkconnectivityApi( - mock, - ).projects.locations.serviceConnectionTokens; + final res = api.NetworkconnectivityApi(mock).projects.locations.spokes; + final arg_resource = 'foo'; + final arg_options_requestedPolicyVersion = 42; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + core.int.parse(queryMap['options.requestedPolicyVersion']!.first), + unittest.equals(arg_options_requestedPolicyVersion), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildPolicy()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.getIamPolicy( + arg_resource, + options_requestedPolicyVersion: arg_options_requestedPolicyVersion, + $fields: arg_$fields, + ); + checkPolicy(response as api.Policy); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = api.NetworkconnectivityApi(mock).projects.locations.spokes; final arg_parent = 'foo'; final arg_filter = 'foo'; final arg_orderBy = 'foo'; @@ -9149,9 +11342,7 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildListServiceConnectionTokensResponse(), - ); + final resp = convert.json.encode(buildListSpokesResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, @@ -9164,20 +11355,16 @@ void main() { pageToken: arg_pageToken, $fields: arg_$fields, ); - checkListServiceConnectionTokensResponse( - response as api.ListServiceConnectionTokensResponse, - ); + checkListSpokesResponse(response as api.ListSpokesResponse); }); - }); - unittest.group('resource-ProjectsLocationsSpokesResource', () { - unittest.test('method--create', () async { + unittest.test('method--patch', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi(mock).projects.locations.spokes; final arg_request = buildSpoke(); - final arg_parent = 'foo'; + final arg_name = 'foo'; final arg_requestId = 'foo'; - final arg_spokeId = 'foo'; + final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -9222,8 +11409,8 @@ void main() { unittest.equals(arg_requestId), ); unittest.expect( - queryMap['spokeId']!.first, - unittest.equals(arg_spokeId), + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), ); unittest.expect( queryMap['fields']!.first, @@ -9236,11 +11423,11 @@ void main() { }), true, ); - final response = await res.create( + final response = await res.patch( arg_request, - arg_parent, + arg_name, requestId: arg_requestId, - spokeId: arg_spokeId, + updateMask: arg_updateMask, $fields: arg_$fields, ); checkGoogleLongrunningOperation( @@ -9248,14 +11435,19 @@ void main() { ); }); - unittest.test('method--delete', () async { + unittest.test('method--setIamPolicy', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi(mock).projects.locations.spokes; - final arg_name = 'foo'; - final arg_requestId = 'foo'; + final arg_request = buildSetIamPolicyRequest(); + final arg_resource = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.SetIamPolicyRequest.fromJson( + json as core.Map, + ); + checkSetIamPolicyRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -9287,38 +11479,38 @@ void main() { ); } } - unittest.expect( - queryMap['requestId']!.first, - unittest.equals(arg_requestId), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode(buildPolicy()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.delete( - arg_name, - requestId: arg_requestId, + final response = await res.setIamPolicy( + arg_request, + arg_resource, $fields: arg_$fields, ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, - ); + checkPolicy(response as api.Policy); }); - unittest.test('method--get', () async { + unittest.test('method--testIamPermissions', () async { final mock = HttpServerMock(); final res = api.NetworkconnectivityApi(mock).projects.locations.spokes; - final arg_name = 'foo'; + final arg_request = buildTestIamPermissionsRequest(); + final arg_resource = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.TestIamPermissionsRequest.fromJson( + json as core.Map, + ); + checkTestIamPermissionsRequest(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -9356,23 +11548,39 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildSpoke()); + final resp = convert.json.encode(buildTestIamPermissionsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkSpoke(response as api.Spoke); + final response = await res.testIamPermissions( + arg_request, + arg_resource, + $fields: arg_$fields, + ); + checkTestIamPermissionsResponse( + response as api.TestIamPermissionsResponse, + ); }); + }); - unittest.test('method--getIamPolicy', () async { + unittest.group('resource-ProjectsLocationsTransportsResource', () { + unittest.test('method--create', () async { final mock = HttpServerMock(); - final res = api.NetworkconnectivityApi(mock).projects.locations.spokes; - final arg_resource = 'foo'; - final arg_options_requestedPolicyVersion = 42; + final res = + api.NetworkconnectivityApi(mock).projects.locations.transports; + final arg_request = buildTransport(); + final arg_parent = 'foo'; + final arg_requestId = 'foo'; + final arg_transportId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.Transport.fromJson( + json as core.Map, + ); + checkTransport(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -9405,8 +11613,12 @@ void main() { } } unittest.expect( - core.int.parse(queryMap['options.requestedPolicyVersion']!.first), - unittest.equals(arg_options_requestedPolicyVersion), + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['transportId']!.first, + unittest.equals(arg_transportId), ); unittest.expect( queryMap['fields']!.first, @@ -9414,27 +11626,29 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildPolicy()); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.getIamPolicy( - arg_resource, - options_requestedPolicyVersion: arg_options_requestedPolicyVersion, + final response = await res.create( + arg_request, + arg_parent, + requestId: arg_requestId, + transportId: arg_transportId, $fields: arg_$fields, ); - checkPolicy(response as api.Policy); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); }); - unittest.test('method--list', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = api.NetworkconnectivityApi(mock).projects.locations.spokes; - final arg_parent = 'foo'; - final arg_filter = 'foo'; - final arg_orderBy = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; + final res = + api.NetworkconnectivityApi(mock).projects.locations.transports; + final arg_name = 'foo'; + final arg_requestId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -9470,20 +11684,8 @@ void main() { } } unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - queryMap['orderBy']!.first, - unittest.equals(arg_orderBy), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), + queryMap['requestId']!.first, + unittest.equals(arg_requestId), ); unittest.expect( queryMap['fields']!.first, @@ -9491,37 +11693,29 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildListSpokesResponse()); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.list( - arg_parent, - filter: arg_filter, - orderBy: arg_orderBy, - pageSize: arg_pageSize, - pageToken: arg_pageToken, + final response = await res.delete( + arg_name, + requestId: arg_requestId, $fields: arg_$fields, ); - checkListSpokesResponse(response as api.ListSpokesResponse); + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, + ); }); - unittest.test('method--patch', () async { + unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = api.NetworkconnectivityApi(mock).projects.locations.spokes; - final arg_request = buildSpoke(); + final res = + api.NetworkconnectivityApi(mock).projects.locations.transports; final arg_name = 'foo'; - final arg_requestId = 'foo'; - final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.Spoke.fromJson( - json as core.Map, - ); - checkSpoke(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -9553,50 +11747,33 @@ void main() { ); } } - unittest.expect( - queryMap['requestId']!.first, - unittest.equals(arg_requestId), - ); - unittest.expect( - queryMap['updateMask']!.first, - unittest.equals(arg_updateMask), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildGoogleLongrunningOperation()); + final resp = convert.json.encode(buildTransport()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.patch( - arg_request, - arg_name, - requestId: arg_requestId, - updateMask: arg_updateMask, - $fields: arg_$fields, - ); - checkGoogleLongrunningOperation( - response as api.GoogleLongrunningOperation, - ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkTransport(response as api.Transport); }); - unittest.test('method--setIamPolicy', () async { + unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = api.NetworkconnectivityApi(mock).projects.locations.spokes; - final arg_request = buildSetIamPolicyRequest(); - final arg_resource = 'foo'; + final res = + api.NetworkconnectivityApi(mock).projects.locations.transports; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.SetIamPolicyRequest.fromJson( - json as core.Map, - ); - checkSetIamPolicyRequest(obj); - final path = req.url.path; var pathOffset = 0; core.int index; @@ -9628,37 +11805,59 @@ void main() { ); } } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildPolicy()); + final resp = convert.json.encode(buildListTransportsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.setIamPolicy( - arg_request, - arg_resource, + final response = await res.list( + arg_parent, + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields, ); - checkPolicy(response as api.Policy); + checkListTransportsResponse(response as api.ListTransportsResponse); }); - unittest.test('method--testIamPermissions', () async { + unittest.test('method--patch', () async { final mock = HttpServerMock(); - final res = api.NetworkconnectivityApi(mock).projects.locations.spokes; - final arg_request = buildTestIamPermissionsRequest(); - final arg_resource = 'foo'; + final res = + api.NetworkconnectivityApi(mock).projects.locations.transports; + final arg_request = buildTransport(); + final arg_name = 'foo'; + final arg_requestId = 'foo'; + final arg_updateMask = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.TestIamPermissionsRequest.fromJson( + final obj = api.Transport.fromJson( json as core.Map, ); - checkTestIamPermissionsRequest(obj); + checkTransport(obj); final path = req.url.path; var pathOffset = 0; @@ -9691,24 +11890,34 @@ void main() { ); } } + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildTestIamPermissionsResponse()); + final resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.testIamPermissions( + final response = await res.patch( arg_request, - arg_resource, + arg_name, + requestId: arg_requestId, + updateMask: arg_updateMask, $fields: arg_$fields, ); - checkTestIamPermissionsResponse( - response as api.TestIamPermissionsResponse, + checkGoogleLongrunningOperation( + response as api.GoogleLongrunningOperation, ); }); }); diff --git a/generated/googleapis/test/networkmanagement/v1_test.dart b/generated/googleapis/test/networkmanagement/v1_test.dart index e319451e1..18f82e190 100644 --- a/generated/googleapis/test/networkmanagement/v1_test.dart +++ b/generated/googleapis/test/networkmanagement/v1_test.dart @@ -454,9 +454,11 @@ api.DropInfo buildDropInfo() { buildCounterDropInfo++; if (buildCounterDropInfo < 3) { o.cause = 'foo'; + o.destinationGeolocationCode = 'foo'; o.destinationIp = 'foo'; o.region = 'foo'; o.resourceUri = 'foo'; + o.sourceGeolocationCode = 'foo'; o.sourceIp = 'foo'; } buildCounterDropInfo--; @@ -467,9 +469,11 @@ void checkDropInfo(api.DropInfo o) { buildCounterDropInfo++; if (buildCounterDropInfo < 3) { unittest.expect(o.cause!, unittest.equals('foo')); + unittest.expect(o.destinationGeolocationCode!, unittest.equals('foo')); unittest.expect(o.destinationIp!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.resourceUri!, unittest.equals('foo')); + unittest.expect(o.sourceGeolocationCode!, unittest.equals('foo')); unittest.expect(o.sourceIp!, unittest.equals('foo')); } buildCounterDropInfo--; @@ -494,6 +498,57 @@ void checkEdgeLocation(api.EdgeLocation o) { buildCounterEdgeLocation--; } +core.List buildUnnamed6() => ['foo', 'foo']; + +void checkUnnamed6(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterEffectiveVpcFlowLogsConfig = 0; +api.EffectiveVpcFlowLogsConfig buildEffectiveVpcFlowLogsConfig() { + final o = api.EffectiveVpcFlowLogsConfig(); + buildCounterEffectiveVpcFlowLogsConfig++; + if (buildCounterEffectiveVpcFlowLogsConfig < 3) { + o.aggregationInterval = 'foo'; + o.crossProjectMetadata = 'foo'; + o.filterExpr = 'foo'; + o.flowSampling = 42.0; + o.interconnectAttachment = 'foo'; + o.metadata = 'foo'; + o.metadataFields = buildUnnamed6(); + o.name = 'foo'; + o.network = 'foo'; + o.scope = 'foo'; + o.state = 'foo'; + o.subnet = 'foo'; + o.vpnTunnel = 'foo'; + } + buildCounterEffectiveVpcFlowLogsConfig--; + return o; +} + +void checkEffectiveVpcFlowLogsConfig(api.EffectiveVpcFlowLogsConfig o) { + buildCounterEffectiveVpcFlowLogsConfig++; + if (buildCounterEffectiveVpcFlowLogsConfig < 3) { + unittest.expect(o.aggregationInterval!, unittest.equals('foo')); + unittest.expect(o.crossProjectMetadata!, unittest.equals('foo')); + unittest.expect(o.filterExpr!, unittest.equals('foo')); + unittest.expect(o.flowSampling!, unittest.equals(42.0)); + unittest.expect(o.interconnectAttachment!, unittest.equals('foo')); + unittest.expect(o.metadata!, unittest.equals('foo')); + checkUnnamed6(o.metadataFields!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.network!, unittest.equals('foo')); + unittest.expect(o.scope!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + unittest.expect(o.subnet!, unittest.equals('foo')); + unittest.expect(o.vpnTunnel!, unittest.equals('foo')); + } + buildCounterEffectiveVpcFlowLogsConfig--; +} + core.int buildCounterEmpty = 0; api.Empty buildEmpty() { final o = api.Empty(); @@ -620,17 +675,17 @@ void checkExpr(api.Expr o) { buildCounterExpr--; } -core.List buildUnnamed6() => ['foo', 'foo']; +core.List buildUnnamed7() => ['foo', 'foo']; -void checkUnnamed6(core.List o) { +void checkUnnamed7(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed7() => ['foo', 'foo']; +core.List buildUnnamed8() => ['foo', 'foo']; -void checkUnnamed7(core.List o) { +void checkUnnamed8(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -650,8 +705,9 @@ api.FirewallInfo buildFirewallInfo() { o.policyPriority = 42; o.policyUri = 'foo'; o.priority = 42; - o.targetServiceAccounts = buildUnnamed6(); - o.targetTags = buildUnnamed7(); + o.targetServiceAccounts = buildUnnamed7(); + o.targetTags = buildUnnamed8(); + o.targetType = 'foo'; o.uri = 'foo'; } buildCounterFirewallInfo--; @@ -670,8 +726,9 @@ void checkFirewallInfo(api.FirewallInfo o) { unittest.expect(o.policyPriority!, unittest.equals(42)); unittest.expect(o.policyUri!, unittest.equals('foo')); unittest.expect(o.priority!, unittest.equals(42)); - checkUnnamed6(o.targetServiceAccounts!); - checkUnnamed7(o.targetTags!); + checkUnnamed7(o.targetServiceAccounts!); + checkUnnamed8(o.targetTags!); + unittest.expect(o.targetType!, unittest.equals('foo')); unittest.expect(o.uri!, unittest.equals('foo')); } buildCounterFirewallInfo--; @@ -766,6 +823,27 @@ void checkGKEMasterInfo(api.GKEMasterInfo o) { buildCounterGKEMasterInfo--; } +core.int buildCounterGeoLocation = 0; +api.GeoLocation buildGeoLocation() { + final o = api.GeoLocation(); + buildCounterGeoLocation++; + if (buildCounterGeoLocation < 3) { + o.country = 'foo'; + o.formattedAddress = 'foo'; + } + buildCounterGeoLocation--; + return o; +} + +void checkGeoLocation(api.GeoLocation o) { + buildCounterGeoLocation++; + if (buildCounterGeoLocation < 3) { + unittest.expect(o.country!, unittest.equals('foo')); + unittest.expect(o.formattedAddress!, unittest.equals('foo')); + } + buildCounterGeoLocation--; +} + core.int buildCounterGoogleServiceInfo = 0; api.GoogleServiceInfo buildGoogleServiceInfo() { final o = api.GoogleServiceInfo(); @@ -787,9 +865,9 @@ void checkGoogleServiceInfo(api.GoogleServiceInfo o) { buildCounterGoogleServiceInfo--; } -core.List buildUnnamed8() => ['foo', 'foo']; +core.List buildUnnamed9() => ['foo', 'foo']; -void checkUnnamed8(core.List o) { +void checkUnnamed9(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -804,7 +882,7 @@ api.Host buildHost() { o.cloudProjectId = 'foo'; o.cloudProvider = 'foo'; o.cloudRegion = 'foo'; - o.cloudVirtualNetworkIds = buildUnnamed8(); + o.cloudVirtualNetworkIds = buildUnnamed9(); o.cloudVpcId = 'foo'; o.cloudZone = 'foo'; o.os = 'foo'; @@ -820,7 +898,7 @@ void checkHost(api.Host o) { unittest.expect(o.cloudProjectId!, unittest.equals('foo')); unittest.expect(o.cloudProvider!, unittest.equals('foo')); unittest.expect(o.cloudRegion!, unittest.equals('foo')); - checkUnnamed8(o.cloudVirtualNetworkIds!); + checkUnnamed9(o.cloudVirtualNetworkIds!); unittest.expect(o.cloudVpcId!, unittest.equals('foo')); unittest.expect(o.cloudZone!, unittest.equals('foo')); unittest.expect(o.os!, unittest.equals('foo')); @@ -828,9 +906,32 @@ void checkHost(api.Host o) { buildCounterHost--; } -core.List buildUnnamed9() => ['foo', 'foo']; +core.int buildCounterHybridSubnetInfo = 0; +api.HybridSubnetInfo buildHybridSubnetInfo() { + final o = api.HybridSubnetInfo(); + buildCounterHybridSubnetInfo++; + if (buildCounterHybridSubnetInfo < 3) { + o.displayName = 'foo'; + o.region = 'foo'; + o.uri = 'foo'; + } + buildCounterHybridSubnetInfo--; + return o; +} -void checkUnnamed9(core.List o) { +void checkHybridSubnetInfo(api.HybridSubnetInfo o) { + buildCounterHybridSubnetInfo++; + if (buildCounterHybridSubnetInfo < 3) { + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.region!, unittest.equals('foo')); + unittest.expect(o.uri!, unittest.equals('foo')); + } + buildCounterHybridSubnetInfo--; +} + +core.List buildUnnamed10() => ['foo', 'foo']; + +void checkUnnamed10(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -845,7 +946,7 @@ api.InstanceInfo buildInstanceInfo() { o.externalIp = 'foo'; o.interface = 'foo'; o.internalIp = 'foo'; - o.networkTags = buildUnnamed9(); + o.networkTags = buildUnnamed10(); o.networkUri = 'foo'; o.pscNetworkAttachmentUri = 'foo'; o.running = true; @@ -864,7 +965,7 @@ void checkInstanceInfo(api.InstanceInfo o) { unittest.expect(o.externalIp!, unittest.equals('foo')); unittest.expect(o.interface!, unittest.equals('foo')); unittest.expect(o.internalIp!, unittest.equals('foo')); - checkUnnamed9(o.networkTags!); + checkUnnamed10(o.networkTags!); unittest.expect(o.networkUri!, unittest.equals('foo')); unittest.expect(o.pscNetworkAttachmentUri!, unittest.equals('foo')); unittest.expect(o.running!, unittest.isTrue); @@ -875,12 +976,43 @@ void checkInstanceInfo(api.InstanceInfo o) { buildCounterInstanceInfo--; } -core.List buildUnnamed10() => [ +core.int buildCounterInterconnectAttachmentInfo = 0; +api.InterconnectAttachmentInfo buildInterconnectAttachmentInfo() { + final o = api.InterconnectAttachmentInfo(); + buildCounterInterconnectAttachmentInfo++; + if (buildCounterInterconnectAttachmentInfo < 3) { + o.cloudRouterUri = 'foo'; + o.displayName = 'foo'; + o.interconnectUri = 'foo'; + o.l2AttachmentMatchedIpAddress = 'foo'; + o.region = 'foo'; + o.type = 'foo'; + o.uri = 'foo'; + } + buildCounterInterconnectAttachmentInfo--; + return o; +} + +void checkInterconnectAttachmentInfo(api.InterconnectAttachmentInfo o) { + buildCounterInterconnectAttachmentInfo++; + if (buildCounterInterconnectAttachmentInfo < 3) { + unittest.expect(o.cloudRouterUri!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.interconnectUri!, unittest.equals('foo')); + unittest.expect(o.l2AttachmentMatchedIpAddress!, unittest.equals('foo')); + unittest.expect(o.region!, unittest.equals('foo')); + unittest.expect(o.type!, unittest.equals('foo')); + unittest.expect(o.uri!, unittest.equals('foo')); + } + buildCounterInterconnectAttachmentInfo--; +} + +core.List buildUnnamed11() => [ buildLatencyPercentile(), buildLatencyPercentile(), ]; -void checkUnnamed10(core.List o) { +void checkUnnamed11(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLatencyPercentile(o[0]); checkLatencyPercentile(o[1]); @@ -891,7 +1023,7 @@ api.LatencyDistribution buildLatencyDistribution() { final o = api.LatencyDistribution(); buildCounterLatencyDistribution++; if (buildCounterLatencyDistribution < 3) { - o.latencyPercentiles = buildUnnamed10(); + o.latencyPercentiles = buildUnnamed11(); } buildCounterLatencyDistribution--; return o; @@ -900,7 +1032,7 @@ api.LatencyDistribution buildLatencyDistribution() { void checkLatencyDistribution(api.LatencyDistribution o) { buildCounterLatencyDistribution++; if (buildCounterLatencyDistribution < 3) { - checkUnnamed10(o.latencyPercentiles!); + checkUnnamed11(o.latencyPercentiles!); } buildCounterLatencyDistribution--; } @@ -926,20 +1058,20 @@ void checkLatencyPercentile(api.LatencyPercentile o) { buildCounterLatencyPercentile--; } -core.List buildUnnamed11() => [ +core.List buildUnnamed12() => [ buildConnectivityTest(), buildConnectivityTest(), ]; -void checkUnnamed11(core.List o) { +void checkUnnamed12(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkConnectivityTest(o[0]); checkConnectivityTest(o[1]); } -core.List buildUnnamed12() => ['foo', 'foo']; +core.List buildUnnamed13() => ['foo', 'foo']; -void checkUnnamed12(core.List o) { +void checkUnnamed13(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -951,8 +1083,8 @@ api.ListConnectivityTestsResponse buildListConnectivityTestsResponse() { buildCounterListConnectivityTestsResponse++; if (buildCounterListConnectivityTestsResponse < 3) { o.nextPageToken = 'foo'; - o.resources = buildUnnamed11(); - o.unreachable = buildUnnamed12(); + o.resources = buildUnnamed12(); + o.unreachable = buildUnnamed13(); } buildCounterListConnectivityTestsResponse--; return o; @@ -962,15 +1094,15 @@ void checkListConnectivityTestsResponse(api.ListConnectivityTestsResponse o) { buildCounterListConnectivityTestsResponse++; if (buildCounterListConnectivityTestsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed11(o.resources!); - checkUnnamed12(o.unreachable!); + checkUnnamed12(o.resources!); + checkUnnamed13(o.unreachable!); } buildCounterListConnectivityTestsResponse--; } -core.List buildUnnamed13() => [buildLocation(), buildLocation()]; +core.List buildUnnamed14() => [buildLocation(), buildLocation()]; -void checkUnnamed13(core.List o) { +void checkUnnamed14(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -981,7 +1113,7 @@ api.ListLocationsResponse buildListLocationsResponse() { final o = api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed13(); + o.locations = buildUnnamed14(); o.nextPageToken = 'foo'; } buildCounterListLocationsResponse--; @@ -991,18 +1123,18 @@ api.ListLocationsResponse buildListLocationsResponse() { void checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed13(o.locations!); + checkUnnamed14(o.locations!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -core.List buildUnnamed14() => [ +core.List buildUnnamed15() => [ buildMonitoringPoint(), buildMonitoringPoint(), ]; -void checkUnnamed14(core.List o) { +void checkUnnamed15(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringPoint(o[0]); checkMonitoringPoint(o[1]); @@ -1013,7 +1145,7 @@ api.ListMonitoringPointsResponse buildListMonitoringPointsResponse() { final o = api.ListMonitoringPointsResponse(); buildCounterListMonitoringPointsResponse++; if (buildCounterListMonitoringPointsResponse < 3) { - o.monitoringPoints = buildUnnamed14(); + o.monitoringPoints = buildUnnamed15(); o.nextPageToken = 'foo'; } buildCounterListMonitoringPointsResponse--; @@ -1023,18 +1155,18 @@ api.ListMonitoringPointsResponse buildListMonitoringPointsResponse() { void checkListMonitoringPointsResponse(api.ListMonitoringPointsResponse o) { buildCounterListMonitoringPointsResponse++; if (buildCounterListMonitoringPointsResponse < 3) { - checkUnnamed14(o.monitoringPoints!); + checkUnnamed15(o.monitoringPoints!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListMonitoringPointsResponse--; } -core.List buildUnnamed15() => [ +core.List buildUnnamed16() => [ buildNetworkMonitoringProvider(), buildNetworkMonitoringProvider(), ]; -void checkUnnamed15(core.List o) { +void checkUnnamed16(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkMonitoringProvider(o[0]); checkNetworkMonitoringProvider(o[1]); @@ -1046,7 +1178,7 @@ buildListNetworkMonitoringProvidersResponse() { final o = api.ListNetworkMonitoringProvidersResponse(); buildCounterListNetworkMonitoringProvidersResponse++; if (buildCounterListNetworkMonitoringProvidersResponse < 3) { - o.networkMonitoringProviders = buildUnnamed15(); + o.networkMonitoringProviders = buildUnnamed16(); o.nextPageToken = 'foo'; } buildCounterListNetworkMonitoringProvidersResponse--; @@ -1058,18 +1190,18 @@ void checkListNetworkMonitoringProvidersResponse( ) { buildCounterListNetworkMonitoringProvidersResponse++; if (buildCounterListNetworkMonitoringProvidersResponse < 3) { - checkUnnamed15(o.networkMonitoringProviders!); + checkUnnamed16(o.networkMonitoringProviders!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListNetworkMonitoringProvidersResponse--; } -core.List buildUnnamed16() => [ +core.List buildUnnamed17() => [ buildNetworkPath(), buildNetworkPath(), ]; -void checkUnnamed16(core.List o) { +void checkUnnamed17(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkPath(o[0]); checkNetworkPath(o[1]); @@ -1080,7 +1212,7 @@ api.ListNetworkPathsResponse buildListNetworkPathsResponse() { final o = api.ListNetworkPathsResponse(); buildCounterListNetworkPathsResponse++; if (buildCounterListNetworkPathsResponse < 3) { - o.networkPaths = buildUnnamed16(); + o.networkPaths = buildUnnamed17(); o.nextPageToken = 'foo'; } buildCounterListNetworkPathsResponse--; @@ -1090,18 +1222,18 @@ api.ListNetworkPathsResponse buildListNetworkPathsResponse() { void checkListNetworkPathsResponse(api.ListNetworkPathsResponse o) { buildCounterListNetworkPathsResponse++; if (buildCounterListNetworkPathsResponse < 3) { - checkUnnamed16(o.networkPaths!); + checkUnnamed17(o.networkPaths!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListNetworkPathsResponse--; } -core.List buildUnnamed17() => [ +core.List buildUnnamed18() => [ buildOperation(), buildOperation(), ]; -void checkUnnamed17(core.List o) { +void checkUnnamed18(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1113,7 +1245,7 @@ api.ListOperationsResponse buildListOperationsResponse() { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = 'foo'; - o.operations = buildUnnamed17(); + o.operations = buildUnnamed18(); } buildCounterListOperationsResponse--; return o; @@ -1123,25 +1255,25 @@ void checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed17(o.operations!); + checkUnnamed18(o.operations!); } buildCounterListOperationsResponse--; } -core.List buildUnnamed18() => ['foo', 'foo']; +core.List buildUnnamed19() => ['foo', 'foo']; -void checkUnnamed18(core.List o) { +void checkUnnamed19(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed19() => [ +core.List buildUnnamed20() => [ buildVpcFlowLogsConfig(), buildVpcFlowLogsConfig(), ]; -void checkUnnamed19(core.List o) { +void checkUnnamed20(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVpcFlowLogsConfig(o[0]); checkVpcFlowLogsConfig(o[1]); @@ -1153,8 +1285,8 @@ api.ListVpcFlowLogsConfigsResponse buildListVpcFlowLogsConfigsResponse() { buildCounterListVpcFlowLogsConfigsResponse++; if (buildCounterListVpcFlowLogsConfigsResponse < 3) { o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed18(); - o.vpcFlowLogsConfigs = buildUnnamed19(); + o.unreachable = buildUnnamed19(); + o.vpcFlowLogsConfigs = buildUnnamed20(); } buildCounterListVpcFlowLogsConfigsResponse--; return o; @@ -1164,15 +1296,15 @@ void checkListVpcFlowLogsConfigsResponse(api.ListVpcFlowLogsConfigsResponse o) { buildCounterListVpcFlowLogsConfigsResponse++; if (buildCounterListVpcFlowLogsConfigsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed18(o.unreachable!); - checkUnnamed19(o.vpcFlowLogsConfigs!); + checkUnnamed19(o.unreachable!); + checkUnnamed20(o.vpcFlowLogsConfigs!); } buildCounterListVpcFlowLogsConfigsResponse--; } -core.List buildUnnamed20() => [buildWebPath(), buildWebPath()]; +core.List buildUnnamed21() => [buildWebPath(), buildWebPath()]; -void checkUnnamed20(core.List o) { +void checkUnnamed21(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkWebPath(o[0]); checkWebPath(o[1]); @@ -1184,7 +1316,7 @@ api.ListWebPathsResponse buildListWebPathsResponse() { buildCounterListWebPathsResponse++; if (buildCounterListWebPathsResponse < 3) { o.nextPageToken = 'foo'; - o.webPaths = buildUnnamed20(); + o.webPaths = buildUnnamed21(); } buildCounterListWebPathsResponse--; return o; @@ -1194,22 +1326,22 @@ void checkListWebPathsResponse(api.ListWebPathsResponse o) { buildCounterListWebPathsResponse++; if (buildCounterListWebPathsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed20(o.webPaths!); + checkUnnamed21(o.webPaths!); } buildCounterListWebPathsResponse--; } -core.List buildUnnamed21() => ['foo', 'foo']; +core.List buildUnnamed22() => ['foo', 'foo']; -void checkUnnamed21(core.List o) { +void checkUnnamed22(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed22() => ['foo', 'foo']; +core.List buildUnnamed23() => ['foo', 'foo']; -void checkUnnamed22(core.List o) { +void checkUnnamed23(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1221,8 +1353,8 @@ api.LoadBalancerBackend buildLoadBalancerBackend() { buildCounterLoadBalancerBackend++; if (buildCounterLoadBalancerBackend < 3) { o.displayName = 'foo'; - o.healthCheckAllowingFirewallRules = buildUnnamed21(); - o.healthCheckBlockingFirewallRules = buildUnnamed22(); + o.healthCheckAllowingFirewallRules = buildUnnamed22(); + o.healthCheckBlockingFirewallRules = buildUnnamed23(); o.healthCheckFirewallState = 'foo'; o.uri = 'foo'; } @@ -1234,8 +1366,8 @@ void checkLoadBalancerBackend(api.LoadBalancerBackend o) { buildCounterLoadBalancerBackend++; if (buildCounterLoadBalancerBackend < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed21(o.healthCheckAllowingFirewallRules!); - checkUnnamed22(o.healthCheckBlockingFirewallRules!); + checkUnnamed22(o.healthCheckAllowingFirewallRules!); + checkUnnamed23(o.healthCheckBlockingFirewallRules!); unittest.expect(o.healthCheckFirewallState!, unittest.equals('foo')); unittest.expect(o.uri!, unittest.equals('foo')); } @@ -1279,12 +1411,12 @@ void checkLoadBalancerBackendInfo(api.LoadBalancerBackendInfo o) { buildCounterLoadBalancerBackendInfo--; } -core.List buildUnnamed23() => [ +core.List buildUnnamed24() => [ buildLoadBalancerBackend(), buildLoadBalancerBackend(), ]; -void checkUnnamed23(core.List o) { +void checkUnnamed24(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLoadBalancerBackend(o[0]); checkLoadBalancerBackend(o[1]); @@ -1297,7 +1429,7 @@ api.LoadBalancerInfo buildLoadBalancerInfo() { if (buildCounterLoadBalancerInfo < 3) { o.backendType = 'foo'; o.backendUri = 'foo'; - o.backends = buildUnnamed23(); + o.backends = buildUnnamed24(); o.healthCheckUri = 'foo'; o.loadBalancerType = 'foo'; } @@ -1310,22 +1442,22 @@ void checkLoadBalancerInfo(api.LoadBalancerInfo o) { if (buildCounterLoadBalancerInfo < 3) { unittest.expect(o.backendType!, unittest.equals('foo')); unittest.expect(o.backendUri!, unittest.equals('foo')); - checkUnnamed23(o.backends!); + checkUnnamed24(o.backends!); unittest.expect(o.healthCheckUri!, unittest.equals('foo')); unittest.expect(o.loadBalancerType!, unittest.equals('foo')); } buildCounterLoadBalancerInfo--; } -core.Map buildUnnamed24() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed25() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed24(core.Map o) { +void checkUnnamed25(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed25() => { +core.Map buildUnnamed26() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1338,7 +1470,7 @@ core.Map buildUnnamed25() => { }, }; -void checkUnnamed25(core.Map o) { +void checkUnnamed26(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o['x']!) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -1358,9 +1490,9 @@ api.Location buildLocation() { buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = 'foo'; - o.labels = buildUnnamed24(); + o.labels = buildUnnamed25(); o.locationId = 'foo'; - o.metadata = buildUnnamed25(); + o.metadata = buildUnnamed26(); o.name = 'foo'; } buildCounterLocation--; @@ -1371,39 +1503,39 @@ void checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed24(o.labels!); + checkUnnamed25(o.labels!); unittest.expect(o.locationId!, unittest.equals('foo')); - checkUnnamed25(o.metadata!); + checkUnnamed26(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); } buildCounterLocation--; } -core.List buildUnnamed26() => ['foo', 'foo']; +core.List buildUnnamed27() => ['foo', 'foo']; -void checkUnnamed26(core.List o) { +void checkUnnamed27(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed27() => [ +core.List buildUnnamed28() => [ buildNetworkInterface(), buildNetworkInterface(), ]; -void checkUnnamed27(core.List o) { +void checkUnnamed28(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -core.List buildUnnamed28() => [ +core.List buildUnnamed29() => [ buildProviderTag(), buildProviderTag(), ]; -void checkUnnamed28(core.List o) { +void checkUnnamed29(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkProviderTag(o[0]); checkProviderTag(o[1]); @@ -1418,16 +1550,17 @@ api.MonitoringPoint buildMonitoringPoint() { o.connectionStatus = 'foo'; o.createTime = 'foo'; o.displayName = 'foo'; - o.errors = buildUnnamed26(); - o.geoLocation = 'foo'; + o.errors = buildUnnamed27(); + o.geoLocation = buildGeoLocation(); o.host = buildHost(); o.hostname = 'foo'; o.name = 'foo'; - o.networkInterfaces = buildUnnamed27(); + o.networkInterfaces = buildUnnamed28(); o.originatingIp = 'foo'; - o.providerTags = buildUnnamed28(); + o.providerTags = buildUnnamed29(); o.type = 'foo'; o.updateTime = 'foo'; + o.upgradeAvailable = true; o.upgradeType = 'foo'; o.version = 'foo'; } @@ -1442,16 +1575,17 @@ void checkMonitoringPoint(api.MonitoringPoint o) { unittest.expect(o.connectionStatus!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed26(o.errors!); - unittest.expect(o.geoLocation!, unittest.equals('foo')); + checkUnnamed27(o.errors!); + checkGeoLocation(o.geoLocation!); checkHost(o.host!); unittest.expect(o.hostname!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed27(o.networkInterfaces!); + checkUnnamed28(o.networkInterfaces!); unittest.expect(o.originatingIp!, unittest.equals('foo')); - checkUnnamed28(o.providerTags!); + checkUnnamed29(o.providerTags!); unittest.expect(o.type!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); + unittest.expect(o.upgradeAvailable!, unittest.isTrue); unittest.expect(o.upgradeType!, unittest.equals('foo')); unittest.expect(o.version!, unittest.equals('foo')); } @@ -1559,12 +1693,21 @@ void checkNetworkInterface(api.NetworkInterface o) { buildCounterNetworkInterface--; } +core.List buildUnnamed30() => ['foo', 'foo']; + +void checkUnnamed30(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterNetworkMonitoringProvider = 0; api.NetworkMonitoringProvider buildNetworkMonitoringProvider() { final o = api.NetworkMonitoringProvider(); buildCounterNetworkMonitoringProvider++; if (buildCounterNetworkMonitoringProvider < 3) { o.createTime = 'foo'; + o.errors = buildUnnamed30(); o.name = 'foo'; o.providerType = 'foo'; o.providerUri = 'foo'; @@ -1579,6 +1722,7 @@ void checkNetworkMonitoringProvider(api.NetworkMonitoringProvider o) { buildCounterNetworkMonitoringProvider++; if (buildCounterNetworkMonitoringProvider < 3) { unittest.expect(o.createTime!, unittest.equals('foo')); + checkUnnamed30(o.errors!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.providerType!, unittest.equals('foo')); unittest.expect(o.providerUri!, unittest.equals('foo')); @@ -1588,12 +1732,12 @@ void checkNetworkMonitoringProvider(api.NetworkMonitoringProvider o) { buildCounterNetworkMonitoringProvider--; } -core.List buildUnnamed29() => [ +core.List buildUnnamed31() => [ buildProviderTag(), buildProviderTag(), ]; -void checkUnnamed29(core.List o) { +void checkUnnamed31(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkProviderTag(o[0]); checkProviderTag(o[1]); @@ -1606,7 +1750,7 @@ api.NetworkPath buildNetworkPath() { if (buildCounterNetworkPath < 3) { o.createTime = 'foo'; o.destination = 'foo'; - o.destinationGeoLocation = 'foo'; + o.destinationGeoLocation = buildGeoLocation(); o.displayName = 'foo'; o.dualEnded = true; o.monitoringEnabled = true; @@ -1615,7 +1759,7 @@ api.NetworkPath buildNetworkPath() { o.monitoringStatus = 'foo'; o.name = 'foo'; o.networkProtocol = 'foo'; - o.providerTags = buildUnnamed29(); + o.providerTags = buildUnnamed31(); o.providerUiUri = 'foo'; o.sourceMonitoringPointId = 'foo'; o.updateTime = 'foo'; @@ -1629,7 +1773,7 @@ void checkNetworkPath(api.NetworkPath o) { if (buildCounterNetworkPath < 3) { unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.destination!, unittest.equals('foo')); - unittest.expect(o.destinationGeoLocation!, unittest.equals('foo')); + checkGeoLocation(o.destinationGeoLocation!); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.dualEnded!, unittest.isTrue); unittest.expect(o.monitoringEnabled!, unittest.isTrue); @@ -1638,7 +1782,7 @@ void checkNetworkPath(api.NetworkPath o) { unittest.expect(o.monitoringStatus!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.networkProtocol!, unittest.equals('foo')); - checkUnnamed29(o.providerTags!); + checkUnnamed31(o.providerTags!); unittest.expect(o.providerUiUri!, unittest.equals('foo')); unittest.expect(o.sourceMonitoringPointId!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); @@ -1646,7 +1790,7 @@ void checkNetworkPath(api.NetworkPath o) { buildCounterNetworkPath--; } -core.Map buildUnnamed30() => { +core.Map buildUnnamed32() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1659,7 +1803,7 @@ core.Map buildUnnamed30() => { }, }; -void checkUnnamed30(core.Map o) { +void checkUnnamed32(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o['x']!) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -1673,7 +1817,7 @@ void checkUnnamed30(core.Map o) { unittest.expect(casted4['string'], unittest.equals('foo')); } -core.Map buildUnnamed31() => { +core.Map buildUnnamed33() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1686,7 +1830,7 @@ core.Map buildUnnamed31() => { }, }; -void checkUnnamed31(core.Map o) { +void checkUnnamed33(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o['x']!) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -1707,9 +1851,9 @@ api.Operation buildOperation() { if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed30(); + o.metadata = buildUnnamed32(); o.name = 'foo'; - o.response = buildUnnamed31(); + o.response = buildUnnamed33(); } buildCounterOperation--; return o; @@ -1720,27 +1864,27 @@ void checkOperation(api.Operation o) { if (buildCounterOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkStatus(o.error!); - checkUnnamed30(o.metadata!); + checkUnnamed32(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed31(o.response!); + checkUnnamed33(o.response!); } buildCounterOperation--; } -core.List buildUnnamed32() => [ +core.List buildUnnamed34() => [ buildAuditConfig(), buildAuditConfig(), ]; -void checkUnnamed32(core.List o) { +void checkUnnamed34(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -core.List buildUnnamed33() => [buildBinding(), buildBinding()]; +core.List buildUnnamed35() => [buildBinding(), buildBinding()]; -void checkUnnamed33(core.List o) { +void checkUnnamed35(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1751,8 +1895,8 @@ api.Policy buildPolicy() { final o = api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed32(); - o.bindings = buildUnnamed33(); + o.auditConfigs = buildUnnamed34(); + o.bindings = buildUnnamed35(); o.etag = 'foo'; o.version = 42; } @@ -1763,20 +1907,20 @@ api.Policy buildPolicy() { void checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed32(o.auditConfigs!); - checkUnnamed33(o.bindings!); + checkUnnamed34(o.auditConfigs!); + checkUnnamed35(o.bindings!); unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.version!, unittest.equals(42)); } buildCounterPolicy--; } -core.List buildUnnamed34() => [ +core.List buildUnnamed36() => [ buildSingleEdgeResponse(), buildSingleEdgeResponse(), ]; -void checkUnnamed34(core.List o) { +void checkUnnamed36(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSingleEdgeResponse(o[0]); checkSingleEdgeResponse(o[1]); @@ -1789,7 +1933,7 @@ api.ProbingDetails buildProbingDetails() { if (buildCounterProbingDetails < 3) { o.abortCause = 'foo'; o.destinationEgressLocation = buildEdgeLocation(); - o.edgeResponses = buildUnnamed34(); + o.edgeResponses = buildUnnamed36(); o.endpointInfo = buildEndpointInfo(); o.error = buildStatus(); o.probedAllDevices = true; @@ -1808,7 +1952,7 @@ void checkProbingDetails(api.ProbingDetails o) { if (buildCounterProbingDetails < 3) { unittest.expect(o.abortCause!, unittest.equals('foo')); checkEdgeLocation(o.destinationEgressLocation!); - checkUnnamed34(o.edgeResponses!); + checkUnnamed36(o.edgeResponses!); checkEndpointInfo(o.endpointInfo!); checkStatus(o.error!); unittest.expect(o.probedAllDevices!, unittest.isTrue); @@ -1883,9 +2027,54 @@ void checkProxyConnectionInfo(api.ProxyConnectionInfo o) { buildCounterProxyConnectionInfo--; } -core.List buildUnnamed35() => [buildTrace(), buildTrace()]; +core.List buildUnnamed37() => ['foo', 'foo']; + +void checkUnnamed37(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed38() => [ + buildVpcFlowLogsConfig(), + buildVpcFlowLogsConfig(), +]; + +void checkUnnamed38(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkVpcFlowLogsConfig(o[0]); + checkVpcFlowLogsConfig(o[1]); +} + +core.int buildCounterQueryOrgVpcFlowLogsConfigsResponse = 0; +api.QueryOrgVpcFlowLogsConfigsResponse +buildQueryOrgVpcFlowLogsConfigsResponse() { + final o = api.QueryOrgVpcFlowLogsConfigsResponse(); + buildCounterQueryOrgVpcFlowLogsConfigsResponse++; + if (buildCounterQueryOrgVpcFlowLogsConfigsResponse < 3) { + o.nextPageToken = 'foo'; + o.unreachable = buildUnnamed37(); + o.vpcFlowLogsConfigs = buildUnnamed38(); + } + buildCounterQueryOrgVpcFlowLogsConfigsResponse--; + return o; +} + +void checkQueryOrgVpcFlowLogsConfigsResponse( + api.QueryOrgVpcFlowLogsConfigsResponse o, +) { + buildCounterQueryOrgVpcFlowLogsConfigsResponse++; + if (buildCounterQueryOrgVpcFlowLogsConfigsResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed37(o.unreachable!); + checkUnnamed38(o.vpcFlowLogsConfigs!); + } + buildCounterQueryOrgVpcFlowLogsConfigsResponse--; +} + +core.List buildUnnamed39() => [buildTrace(), buildTrace()]; -void checkUnnamed35(core.List o) { +void checkUnnamed39(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTrace(o[0]); checkTrace(o[1]); @@ -1898,7 +2087,7 @@ api.ReachabilityDetails buildReachabilityDetails() { if (buildCounterReachabilityDetails < 3) { o.error = buildStatus(); o.result = 'foo'; - o.traces = buildUnnamed35(); + o.traces = buildUnnamed39(); o.verifyTime = 'foo'; } buildCounterReachabilityDetails--; @@ -1910,7 +2099,7 @@ void checkReachabilityDetails(api.ReachabilityDetails o) { if (buildCounterReachabilityDetails < 3) { checkStatus(o.error!); unittest.expect(o.result!, unittest.equals('foo')); - checkUnnamed35(o.traces!); + checkUnnamed39(o.traces!); unittest.expect(o.verifyTime!, unittest.equals('foo')); } buildCounterReachabilityDetails--; @@ -1989,33 +2178,33 @@ void checkRerunConnectivityTestRequest(api.RerunConnectivityTestRequest o) { buildCounterRerunConnectivityTestRequest--; } -core.List buildUnnamed36() => ['foo', 'foo']; +core.List buildUnnamed40() => ['foo', 'foo']; -void checkUnnamed36(core.List o) { +void checkUnnamed40(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed37() => ['foo', 'foo']; +core.List buildUnnamed41() => ['foo', 'foo']; -void checkUnnamed37(core.List o) { +void checkUnnamed41(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed38() => ['foo', 'foo']; +core.List buildUnnamed42() => ['foo', 'foo']; -void checkUnnamed38(core.List o) { +void checkUnnamed42(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed39() => ['foo', 'foo']; +core.List buildUnnamed43() => ['foo', 'foo']; -void checkUnnamed39(core.List o) { +void checkUnnamed43(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2029,9 +2218,9 @@ api.RouteInfo buildRouteInfo() { o.advertisedRouteNextHopUri = 'foo'; o.advertisedRouteSourceRouterUri = 'foo'; o.destIpRange = 'foo'; - o.destPortRanges = buildUnnamed36(); + o.destPortRanges = buildUnnamed40(); o.displayName = 'foo'; - o.instanceTags = buildUnnamed37(); + o.instanceTags = buildUnnamed41(); o.nccHubRouteUri = 'foo'; o.nccHubUri = 'foo'; o.nccSpokeUri = 'foo'; @@ -2043,12 +2232,12 @@ api.RouteInfo buildRouteInfo() { o.originatingRouteDisplayName = 'foo'; o.originatingRouteUri = 'foo'; o.priority = 42; - o.protocols = buildUnnamed38(); + o.protocols = buildUnnamed42(); o.region = 'foo'; o.routeScope = 'foo'; o.routeType = 'foo'; o.srcIpRange = 'foo'; - o.srcPortRanges = buildUnnamed39(); + o.srcPortRanges = buildUnnamed43(); o.uri = 'foo'; } buildCounterRouteInfo--; @@ -2061,9 +2250,9 @@ void checkRouteInfo(api.RouteInfo o) { unittest.expect(o.advertisedRouteNextHopUri!, unittest.equals('foo')); unittest.expect(o.advertisedRouteSourceRouterUri!, unittest.equals('foo')); unittest.expect(o.destIpRange!, unittest.equals('foo')); - checkUnnamed36(o.destPortRanges!); + checkUnnamed40(o.destPortRanges!); unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed37(o.instanceTags!); + checkUnnamed41(o.instanceTags!); unittest.expect(o.nccHubRouteUri!, unittest.equals('foo')); unittest.expect(o.nccHubUri!, unittest.equals('foo')); unittest.expect(o.nccSpokeUri!, unittest.equals('foo')); @@ -2075,12 +2264,12 @@ void checkRouteInfo(api.RouteInfo o) { unittest.expect(o.originatingRouteDisplayName!, unittest.equals('foo')); unittest.expect(o.originatingRouteUri!, unittest.equals('foo')); unittest.expect(o.priority!, unittest.equals(42)); - checkUnnamed38(o.protocols!); + checkUnnamed42(o.protocols!); unittest.expect(o.region!, unittest.equals('foo')); unittest.expect(o.routeScope!, unittest.equals('foo')); unittest.expect(o.routeType!, unittest.equals('foo')); unittest.expect(o.srcIpRange!, unittest.equals('foo')); - checkUnnamed39(o.srcPortRanges!); + checkUnnamed43(o.srcPortRanges!); unittest.expect(o.uri!, unittest.equals('foo')); } buildCounterRouteInfo--; @@ -2147,6 +2336,51 @@ void checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { buildCounterSetIamPolicyRequest--; } +core.List buildUnnamed44() => [ + buildEffectiveVpcFlowLogsConfig(), + buildEffectiveVpcFlowLogsConfig(), +]; + +void checkUnnamed44(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkEffectiveVpcFlowLogsConfig(o[0]); + checkEffectiveVpcFlowLogsConfig(o[1]); +} + +core.List buildUnnamed45() => ['foo', 'foo']; + +void checkUnnamed45(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterShowEffectiveFlowLogsConfigsResponse = 0; +api.ShowEffectiveFlowLogsConfigsResponse +buildShowEffectiveFlowLogsConfigsResponse() { + final o = api.ShowEffectiveFlowLogsConfigsResponse(); + buildCounterShowEffectiveFlowLogsConfigsResponse++; + if (buildCounterShowEffectiveFlowLogsConfigsResponse < 3) { + o.effectiveFlowLogsConfigs = buildUnnamed44(); + o.nextPageToken = 'foo'; + o.unreachable = buildUnnamed45(); + } + buildCounterShowEffectiveFlowLogsConfigsResponse--; + return o; +} + +void checkShowEffectiveFlowLogsConfigsResponse( + api.ShowEffectiveFlowLogsConfigsResponse o, +) { + buildCounterShowEffectiveFlowLogsConfigsResponse++; + if (buildCounterShowEffectiveFlowLogsConfigsResponse < 3) { + checkUnnamed44(o.effectiveFlowLogsConfigs!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed45(o.unreachable!); + } + buildCounterShowEffectiveFlowLogsConfigsResponse--; +} + core.int buildCounterSingleEdgeResponse = 0; api.SingleEdgeResponse buildSingleEdgeResponse() { final o = api.SingleEdgeResponse(); @@ -2176,7 +2410,7 @@ void checkSingleEdgeResponse(api.SingleEdgeResponse o) { buildCounterSingleEdgeResponse--; } -core.Map buildUnnamed40() => { +core.Map buildUnnamed46() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2189,7 +2423,7 @@ core.Map buildUnnamed40() => { }, }; -void checkUnnamed40(core.Map o) { +void checkUnnamed46(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o['x']!) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -2203,15 +2437,15 @@ void checkUnnamed40(core.Map o) { unittest.expect(casted8['string'], unittest.equals('foo')); } -core.List> buildUnnamed41() => [ - buildUnnamed40(), - buildUnnamed40(), +core.List> buildUnnamed47() => [ + buildUnnamed46(), + buildUnnamed46(), ]; -void checkUnnamed41(core.List> o) { +void checkUnnamed47(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed40(o[0]); - checkUnnamed40(o[1]); + checkUnnamed46(o[0]); + checkUnnamed46(o[1]); } core.int buildCounterStatus = 0; @@ -2220,7 +2454,7 @@ api.Status buildStatus() { buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed41(); + o.details = buildUnnamed47(); o.message = 'foo'; } buildCounterStatus--; @@ -2231,7 +2465,7 @@ void checkStatus(api.Status o) { buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed41(o.details!); + checkUnnamed47(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStatus--; @@ -2258,7 +2492,9 @@ api.Step buildStep() { o.forwardingRule = buildForwardingRuleInfo(); o.gkeMaster = buildGKEMasterInfo(); o.googleService = buildGoogleServiceInfo(); + o.hybridSubnet = buildHybridSubnetInfo(); o.instance = buildInstanceInfo(); + o.interconnectAttachment = buildInterconnectAttachmentInfo(); o.loadBalancer = buildLoadBalancerInfo(); o.loadBalancerBackendInfo = buildLoadBalancerBackendInfo(); o.nat = buildNatInfo(); @@ -2299,7 +2535,9 @@ void checkStep(api.Step o) { checkForwardingRuleInfo(o.forwardingRule!); checkGKEMasterInfo(o.gkeMaster!); checkGoogleServiceInfo(o.googleService!); + checkHybridSubnetInfo(o.hybridSubnet!); checkInstanceInfo(o.instance!); + checkInterconnectAttachmentInfo(o.interconnectAttachment!); checkLoadBalancerInfo(o.loadBalancer!); checkLoadBalancerBackendInfo(o.loadBalancerBackendInfo!); checkNatInfo(o.nat!); @@ -2339,9 +2577,9 @@ void checkStorageBucketInfo(api.StorageBucketInfo o) { buildCounterStorageBucketInfo--; } -core.List buildUnnamed42() => ['foo', 'foo']; +core.List buildUnnamed48() => ['foo', 'foo']; -void checkUnnamed42(core.List o) { +void checkUnnamed48(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2352,7 +2590,7 @@ api.TestIamPermissionsRequest buildTestIamPermissionsRequest() { final o = api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed42(); + o.permissions = buildUnnamed48(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2361,14 +2599,14 @@ api.TestIamPermissionsRequest buildTestIamPermissionsRequest() { void checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed42(o.permissions!); + checkUnnamed48(o.permissions!); } buildCounterTestIamPermissionsRequest--; } -core.List buildUnnamed43() => ['foo', 'foo']; +core.List buildUnnamed49() => ['foo', 'foo']; -void checkUnnamed43(core.List o) { +void checkUnnamed49(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2379,7 +2617,7 @@ api.TestIamPermissionsResponse buildTestIamPermissionsResponse() { final o = api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed43(); + o.permissions = buildUnnamed49(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2388,14 +2626,14 @@ api.TestIamPermissionsResponse buildTestIamPermissionsResponse() { void checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed43(o.permissions!); + checkUnnamed49(o.permissions!); } buildCounterTestIamPermissionsResponse--; } -core.List buildUnnamed44() => [buildStep(), buildStep()]; +core.List buildUnnamed50() => [buildStep(), buildStep()]; -void checkUnnamed44(core.List o) { +void checkUnnamed50(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkStep(o[0]); checkStep(o[1]); @@ -2408,7 +2646,7 @@ api.Trace buildTrace() { if (buildCounterTrace < 3) { o.endpointInfo = buildEndpointInfo(); o.forwardTraceId = 42; - o.steps = buildUnnamed44(); + o.steps = buildUnnamed50(); } buildCounterTrace--; return o; @@ -2419,7 +2657,7 @@ void checkTrace(api.Trace o) { if (buildCounterTrace < 3) { checkEndpointInfo(o.endpointInfo!); unittest.expect(o.forwardTraceId!, unittest.equals(42)); - checkUnnamed44(o.steps!); + checkUnnamed50(o.steps!); } buildCounterTrace--; } @@ -2447,17 +2685,17 @@ void checkVpcConnectorInfo(api.VpcConnectorInfo o) { buildCounterVpcConnectorInfo--; } -core.Map buildUnnamed45() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed51() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed45(core.Map o) { +void checkUnnamed51(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed46() => ['foo', 'foo']; +core.List buildUnnamed52() => ['foo', 'foo']; -void checkUnnamed46(core.List o) { +void checkUnnamed52(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2470,15 +2708,18 @@ api.VpcFlowLogsConfig buildVpcFlowLogsConfig() { if (buildCounterVpcFlowLogsConfig < 3) { o.aggregationInterval = 'foo'; o.createTime = 'foo'; + o.crossProjectMetadata = 'foo'; o.description = 'foo'; o.filterExpr = 'foo'; o.flowSampling = 42.0; o.interconnectAttachment = 'foo'; - o.labels = buildUnnamed45(); + o.labels = buildUnnamed51(); o.metadata = 'foo'; - o.metadataFields = buildUnnamed46(); + o.metadataFields = buildUnnamed52(); o.name = 'foo'; + o.network = 'foo'; o.state = 'foo'; + o.subnet = 'foo'; o.targetResourceState = 'foo'; o.updateTime = 'foo'; o.vpnTunnel = 'foo'; @@ -2492,15 +2733,18 @@ void checkVpcFlowLogsConfig(api.VpcFlowLogsConfig o) { if (buildCounterVpcFlowLogsConfig < 3) { unittest.expect(o.aggregationInterval!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.crossProjectMetadata!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.filterExpr!, unittest.equals('foo')); unittest.expect(o.flowSampling!, unittest.equals(42.0)); unittest.expect(o.interconnectAttachment!, unittest.equals('foo')); - checkUnnamed45(o.labels!); + checkUnnamed51(o.labels!); unittest.expect(o.metadata!, unittest.equals('foo')); - checkUnnamed46(o.metadataFields!); + checkUnnamed52(o.metadataFields!); unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.network!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); + unittest.expect(o.subnet!, unittest.equals('foo')); unittest.expect(o.targetResourceState!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); unittest.expect(o.vpnTunnel!, unittest.equals('foo')); @@ -2572,12 +2816,12 @@ void checkVpnTunnelInfo(api.VpnTunnelInfo o) { buildCounterVpnTunnelInfo--; } -core.List buildUnnamed47() => [ +core.List buildUnnamed53() => [ buildProviderTag(), buildProviderTag(), ]; -void checkUnnamed47(core.List o) { +void checkUnnamed53(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkProviderTag(o[0]); checkProviderTag(o[1]); @@ -2597,7 +2841,7 @@ api.WebPath buildWebPath() { o.monitoringPolicyId = 'foo'; o.monitoringStatus = 'foo'; o.name = 'foo'; - o.providerTags = buildUnnamed47(); + o.providerTags = buildUnnamed53(); o.providerUiUri = 'foo'; o.relatedNetworkPathId = 'foo'; o.sourceMonitoringPointId = 'foo'; @@ -2620,7 +2864,7 @@ void checkWebPath(api.WebPath o) { unittest.expect(o.monitoringPolicyId!, unittest.equals('foo')); unittest.expect(o.monitoringStatus!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed47(o.providerTags!); + checkUnnamed53(o.providerTags!); unittest.expect(o.providerUiUri!, unittest.equals('foo')); unittest.expect(o.relatedNetworkPathId!, unittest.equals('foo')); unittest.expect(o.sourceMonitoringPointId!, unittest.equals('foo')); @@ -2630,17 +2874,17 @@ void checkWebPath(api.WebPath o) { buildCounterWebPath--; } -core.List buildUnnamed48() => ['foo', 'foo']; +core.List buildUnnamed54() => ['foo', 'foo']; -void checkUnnamed48(core.List o) { +void checkUnnamed54(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed49() => ['foo', 'foo']; +core.List buildUnnamed55() => ['foo', 'foo']; -void checkUnnamed49(core.List o) { +void checkUnnamed55(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2834,6 +3078,17 @@ void main() { }); }); + unittest.group('obj-schema-EffectiveVpcFlowLogsConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildEffectiveVpcFlowLogsConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.EffectiveVpcFlowLogsConfig.fromJson( + oJson as core.Map, + ); + checkEffectiveVpcFlowLogsConfig(od); + }); + }); + unittest.group('obj-schema-Empty', () { unittest.test('to-json--from-json', () async { final o = buildEmpty(); @@ -2922,6 +3177,17 @@ void main() { }); }); + unittest.group('obj-schema-GeoLocation', () { + unittest.test('to-json--from-json', () async { + final o = buildGeoLocation(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GeoLocation.fromJson( + oJson as core.Map, + ); + checkGeoLocation(od); + }); + }); + unittest.group('obj-schema-GoogleServiceInfo', () { unittest.test('to-json--from-json', () async { final o = buildGoogleServiceInfo(); @@ -2944,6 +3210,17 @@ void main() { }); }); + unittest.group('obj-schema-HybridSubnetInfo', () { + unittest.test('to-json--from-json', () async { + final o = buildHybridSubnetInfo(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.HybridSubnetInfo.fromJson( + oJson as core.Map, + ); + checkHybridSubnetInfo(od); + }); + }); + unittest.group('obj-schema-InstanceInfo', () { unittest.test('to-json--from-json', () async { final o = buildInstanceInfo(); @@ -2955,6 +3232,17 @@ void main() { }); }); + unittest.group('obj-schema-InterconnectAttachmentInfo', () { + unittest.test('to-json--from-json', () async { + final o = buildInterconnectAttachmentInfo(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.InterconnectAttachmentInfo.fromJson( + oJson as core.Map, + ); + checkInterconnectAttachmentInfo(od); + }); + }); + unittest.group('obj-schema-LatencyDistribution', () { unittest.test('to-json--from-json', () async { final o = buildLatencyDistribution(); @@ -3230,6 +3518,17 @@ void main() { }); }); + unittest.group('obj-schema-QueryOrgVpcFlowLogsConfigsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildQueryOrgVpcFlowLogsConfigsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.QueryOrgVpcFlowLogsConfigsResponse.fromJson( + oJson as core.Map, + ); + checkQueryOrgVpcFlowLogsConfigsResponse(od); + }); + }); + unittest.group('obj-schema-ReachabilityDetails', () { unittest.test('to-json--from-json', () async { final o = buildReachabilityDetails(); @@ -3318,6 +3617,17 @@ void main() { }); }); + unittest.group('obj-schema-ShowEffectiveFlowLogsConfigsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildShowEffectiveFlowLogsConfigsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ShowEffectiveFlowLogsConfigsResponse.fromJson( + oJson as core.Map, + ); + checkShowEffectiveFlowLogsConfigsResponse(od); + }); + }); + unittest.group('obj-schema-SingleEdgeResponse', () { unittest.test('to-json--from-json', () async { final o = buildSingleEdgeResponse(); @@ -3508,7 +3818,7 @@ void main() { final mock = HttpServerMock(); final res = api.NetworkManagementApi(mock).organizations.locations; final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed48(); + final arg_extraLocationTypes = buildUnnamed54(); final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; @@ -3834,14 +4144,24 @@ void main() { }); }); - unittest.group('resource-ProjectsLocationsResource', () { - unittest.test('method--get', () async { + unittest.group('resource-OrganizationsLocationsVpcFlowLogsConfigsResource', () { + unittest.test('method--create', () async { final mock = HttpServerMock(); - final res = api.NetworkManagementApi(mock).projects.locations; - final arg_name = 'foo'; + final res = + api.NetworkManagementApi( + mock, + ).organizations.locations.vpcFlowLogsConfigs; + final arg_request = buildVpcFlowLogsConfig(); + final arg_parent = 'foo'; + final arg_vpcFlowLogsConfigId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.VpcFlowLogsConfig.fromJson( + json as core.Map, + ); + checkVpcFlowLogsConfig(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -3873,29 +4193,37 @@ void main() { ); } } + unittest.expect( + queryMap['vpcFlowLogsConfigId']!.first, + unittest.equals(arg_vpcFlowLogsConfigId), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildLocation()); + final resp = convert.json.encode(buildOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkLocation(response as api.Location); + final response = await res.create( + arg_request, + arg_parent, + vpcFlowLogsConfigId: arg_vpcFlowLogsConfigId, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); }); - unittest.test('method--list', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = api.NetworkManagementApi(mock).projects.locations; + final res = + api.NetworkManagementApi( + mock, + ).organizations.locations.vpcFlowLogsConfigs; final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed49(); - final arg_filter = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -3931,11 +4259,338 @@ void main() { } } unittest.expect( - queryMap['extraLocationTypes']!, - unittest.equals(arg_extraLocationTypes), + queryMap['fields']!.first, + unittest.equals(arg_$fields), ); - unittest.expect( - queryMap['filter']!.first, + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkOperation(response as api.Operation); + }); + + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = + api.NetworkManagementApi( + mock, + ).organizations.locations.vpcFlowLogsConfigs; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildVpcFlowLogsConfig()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkVpcFlowLogsConfig(response as api.VpcFlowLogsConfig); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.NetworkManagementApi( + mock, + ).organizations.locations.vpcFlowLogsConfigs; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildListVpcFlowLogsConfigsResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkListVpcFlowLogsConfigsResponse( + response as api.ListVpcFlowLogsConfigsResponse, + ); + }); + + unittest.test('method--patch', () async { + final mock = HttpServerMock(); + final res = + api.NetworkManagementApi( + mock, + ).organizations.locations.vpcFlowLogsConfigs; + final arg_request = buildVpcFlowLogsConfig(); + final arg_name = 'foo'; + final arg_updateMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.VpcFlowLogsConfig.fromJson( + json as core.Map, + ); + checkVpcFlowLogsConfig(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.patch( + arg_request, + arg_name, + updateMask: arg_updateMask, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); + }); + }); + + unittest.group('resource-ProjectsLocationsResource', () { + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = api.NetworkManagementApi(mock).projects.locations; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildLocation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkLocation(response as api.Location); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = api.NetworkManagementApi(mock).projects.locations; + final arg_name = 'foo'; + final arg_extraLocationTypes = buildUnnamed55(); + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['extraLocationTypes']!, + unittest.equals(arg_extraLocationTypes), + ); + unittest.expect( + queryMap['filter']!.first, unittest.equals(arg_filter), ); unittest.expect( @@ -5822,5 +6477,169 @@ void main() { ); checkOperation(response as api.Operation); }); + + unittest.test('method--queryOrgVpcFlowLogsConfigs', () async { + final mock = HttpServerMock(); + final res = + api.NetworkManagementApi(mock).projects.locations.vpcFlowLogsConfigs; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildQueryOrgVpcFlowLogsConfigsResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.queryOrgVpcFlowLogsConfigs( + arg_parent, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkQueryOrgVpcFlowLogsConfigsResponse( + response as api.QueryOrgVpcFlowLogsConfigsResponse, + ); + }); + + unittest.test('method--showEffectiveFlowLogsConfigs', () async { + final mock = HttpServerMock(); + final res = + api.NetworkManagementApi(mock).projects.locations.vpcFlowLogsConfigs; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_resource = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['resource']!.first, + unittest.equals(arg_resource), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildShowEffectiveFlowLogsConfigsResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.showEffectiveFlowLogsConfigs( + arg_parent, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + resource: arg_resource, + $fields: arg_$fields, + ); + checkShowEffectiveFlowLogsConfigsResponse( + response as api.ShowEffectiveFlowLogsConfigsResponse, + ); + }); }); } diff --git a/generated/googleapis/test/networksecurity/v1_test.dart b/generated/googleapis/test/networksecurity/v1_test.dart index 9e4bc59fb..8db3e47e5 100644 --- a/generated/googleapis/test/networksecurity/v1_test.dart +++ b/generated/googleapis/test/networksecurity/v1_test.dart @@ -1057,6 +1057,7 @@ api.FirewallEndpoint buildFirewallEndpoint() { o.billingProjectId = 'foo'; o.createTime = 'foo'; o.description = 'foo'; + o.endpointSettings = buildFirewallEndpointEndpointSettings(); o.labels = buildUnnamed30(); o.name = 'foo'; o.reconciling = true; @@ -1077,6 +1078,7 @@ void checkFirewallEndpoint(api.FirewallEndpoint o) { unittest.expect(o.billingProjectId!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); + checkFirewallEndpointEndpointSettings(o.endpointSettings!); checkUnnamed30(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.reconciling!, unittest.isTrue); @@ -1157,6 +1159,23 @@ void checkFirewallEndpointAssociationReference( buildCounterFirewallEndpointAssociationReference--; } +core.int buildCounterFirewallEndpointEndpointSettings = 0; +api.FirewallEndpointEndpointSettings buildFirewallEndpointEndpointSettings() { + final o = api.FirewallEndpointEndpointSettings(); + buildCounterFirewallEndpointEndpointSettings++; + if (buildCounterFirewallEndpointEndpointSettings < 3) {} + buildCounterFirewallEndpointEndpointSettings--; + return o; +} + +void checkFirewallEndpointEndpointSettings( + api.FirewallEndpointEndpointSettings o, +) { + buildCounterFirewallEndpointEndpointSettings++; + if (buildCounterFirewallEndpointEndpointSettings < 3) {} + buildCounterFirewallEndpointEndpointSettings--; +} + core.int buildCounterGatewaySecurityPolicy = 0; api.GatewaySecurityPolicy buildGatewaySecurityPolicy() { final o = api.GatewaySecurityPolicy(); @@ -4400,6 +4419,17 @@ void main() { }); }); + unittest.group('obj-schema-FirewallEndpointEndpointSettings', () { + unittest.test('to-json--from-json', () async { + final o = buildFirewallEndpointEndpointSettings(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.FirewallEndpointEndpointSettings.fromJson( + oJson as core.Map, + ); + checkFirewallEndpointEndpointSettings(od); + }); + }); + unittest.group('obj-schema-GatewaySecurityPolicy', () { unittest.test('to-json--from-json', () async { final o = buildGatewaySecurityPolicy(); diff --git a/generated/googleapis/test/observability/v1_test.dart b/generated/googleapis/test/observability/v1_test.dart index 62692a6da..1d56d6114 100644 --- a/generated/googleapis/test/observability/v1_test.dart +++ b/generated/googleapis/test/observability/v1_test.dart @@ -117,15 +117,47 @@ void checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse--; } -core.Map buildUnnamed2() => {'x': 'foo', 'y': 'foo'}; +core.List buildUnnamed2() => [ + buildTraceScope(), + buildTraceScope(), +]; + +void checkUnnamed2(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkTraceScope(o[0]); + checkTraceScope(o[1]); +} + +core.int buildCounterListTraceScopesResponse = 0; +api.ListTraceScopesResponse buildListTraceScopesResponse() { + final o = api.ListTraceScopesResponse(); + buildCounterListTraceScopesResponse++; + if (buildCounterListTraceScopesResponse < 3) { + o.nextPageToken = 'foo'; + o.traceScopes = buildUnnamed2(); + } + buildCounterListTraceScopesResponse--; + return o; +} + +void checkListTraceScopesResponse(api.ListTraceScopesResponse o) { + buildCounterListTraceScopesResponse++; + if (buildCounterListTraceScopesResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed2(o.traceScopes!); + } + buildCounterListTraceScopesResponse--; +} + +core.Map buildUnnamed3() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed2(core.Map o) { +void checkUnnamed3(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed3() => { +core.Map buildUnnamed4() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -138,7 +170,7 @@ core.Map buildUnnamed3() => { }, }; -void checkUnnamed3(core.Map o) { +void checkUnnamed4(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o['x']!) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -158,9 +190,9 @@ api.Location buildLocation() { buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = 'foo'; - o.labels = buildUnnamed2(); + o.labels = buildUnnamed3(); o.locationId = 'foo'; - o.metadata = buildUnnamed3(); + o.metadata = buildUnnamed4(); o.name = 'foo'; } buildCounterLocation--; @@ -171,15 +203,15 @@ void checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed2(o.labels!); + checkUnnamed3(o.labels!); unittest.expect(o.locationId!, unittest.equals('foo')); - checkUnnamed3(o.metadata!); + checkUnnamed4(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); } buildCounterLocation--; } -core.Map buildUnnamed4() => { +core.Map buildUnnamed5() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -192,7 +224,7 @@ core.Map buildUnnamed4() => { }, }; -void checkUnnamed4(core.Map o) { +void checkUnnamed5(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o['x']!) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -206,7 +238,7 @@ void checkUnnamed4(core.Map o) { unittest.expect(casted4['string'], unittest.equals('foo')); } -core.Map buildUnnamed5() => { +core.Map buildUnnamed6() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -219,7 +251,7 @@ core.Map buildUnnamed5() => { }, }; -void checkUnnamed5(core.Map o) { +void checkUnnamed6(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o['x']!) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -240,9 +272,9 @@ api.Operation buildOperation() { if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed4(); + o.metadata = buildUnnamed5(); o.name = 'foo'; - o.response = buildUnnamed5(); + o.response = buildUnnamed6(); } buildCounterOperation--; return o; @@ -253,9 +285,9 @@ void checkOperation(api.Operation o) { if (buildCounterOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkStatus(o.error!); - checkUnnamed4(o.metadata!); + checkUnnamed5(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed5(o.response!); + checkUnnamed6(o.response!); } buildCounterOperation--; } @@ -267,6 +299,7 @@ api.Scope buildScope() { if (buildCounterScope < 3) { o.logScope = 'foo'; o.name = 'foo'; + o.traceScope = 'foo'; o.updateTime = 'foo'; } buildCounterScope--; @@ -278,12 +311,13 @@ void checkScope(api.Scope o) { if (buildCounterScope < 3) { unittest.expect(o.logScope!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.traceScope!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); } buildCounterScope--; } -core.Map buildUnnamed6() => { +core.Map buildUnnamed7() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -296,7 +330,7 @@ core.Map buildUnnamed6() => { }, }; -void checkUnnamed6(core.Map o) { +void checkUnnamed7(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o['x']!) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -310,15 +344,15 @@ void checkUnnamed6(core.Map o) { unittest.expect(casted8['string'], unittest.equals('foo')); } -core.List> buildUnnamed7() => [ - buildUnnamed6(), - buildUnnamed6(), +core.List> buildUnnamed8() => [ + buildUnnamed7(), + buildUnnamed7(), ]; -void checkUnnamed7(core.List> o) { +void checkUnnamed8(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed6(o[0]); - checkUnnamed6(o[1]); + checkUnnamed7(o[0]); + checkUnnamed7(o[1]); } core.int buildCounterStatus = 0; @@ -327,7 +361,7 @@ api.Status buildStatus() { buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed7(); + o.details = buildUnnamed8(); o.message = 'foo'; } buildCounterStatus--; @@ -338,15 +372,50 @@ void checkStatus(api.Status o) { buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed7(o.details!); + checkUnnamed8(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStatus--; } -core.List buildUnnamed8() => ['foo', 'foo']; +core.List buildUnnamed9() => ['foo', 'foo']; -void checkUnnamed8(core.List o) { +void checkUnnamed9(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterTraceScope = 0; +api.TraceScope buildTraceScope() { + final o = api.TraceScope(); + buildCounterTraceScope++; + if (buildCounterTraceScope < 3) { + o.createTime = 'foo'; + o.description = 'foo'; + o.name = 'foo'; + o.resourceNames = buildUnnamed9(); + o.updateTime = 'foo'; + } + buildCounterTraceScope--; + return o; +} + +void checkTraceScope(api.TraceScope o) { + buildCounterTraceScope++; + if (buildCounterTraceScope < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.description!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + checkUnnamed9(o.resourceNames!); + unittest.expect(o.updateTime!, unittest.equals('foo')); + } + buildCounterTraceScope--; +} + +core.List buildUnnamed10() => ['foo', 'foo']; + +void checkUnnamed10(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -397,6 +466,17 @@ void main() { }); }); + unittest.group('obj-schema-ListTraceScopesResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListTraceScopesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListTraceScopesResponse.fromJson( + oJson as core.Map, + ); + checkListTraceScopesResponse(od); + }); + }); + unittest.group('obj-schema-Location', () { unittest.test('to-json--from-json', () async { final o = buildLocation(); @@ -441,6 +521,17 @@ void main() { }); }); + unittest.group('obj-schema-TraceScope', () { + unittest.test('to-json--from-json', () async { + final o = buildTraceScope(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.TraceScope.fromJson( + oJson as core.Map, + ); + checkTraceScope(od); + }); + }); + unittest.group('resource-ProjectsLocationsResource', () { unittest.test('method--get', () async { final mock = HttpServerMock(); @@ -499,7 +590,7 @@ void main() { final mock = HttpServerMock(); final res = api.CloudObservabilityApi(mock).projects.locations; final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed8(); + final arg_extraLocationTypes = buildUnnamed10(); final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; @@ -944,4 +1035,323 @@ void main() { checkScope(response as api.Scope); }); }); + + unittest.group('resource-ProjectsLocationsTraceScopesResource', () { + unittest.test('method--create', () async { + final mock = HttpServerMock(); + final res = + api.CloudObservabilityApi(mock).projects.locations.traceScopes; + final arg_request = buildTraceScope(); + final arg_parent = 'foo'; + final arg_traceScopeId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.TraceScope.fromJson( + json as core.Map, + ); + checkTraceScope(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['traceScopeId']!.first, + unittest.equals(arg_traceScopeId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildTraceScope()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.create( + arg_request, + arg_parent, + traceScopeId: arg_traceScopeId, + $fields: arg_$fields, + ); + checkTraceScope(response as api.TraceScope); + }); + + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = + api.CloudObservabilityApi(mock).projects.locations.traceScopes; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildEmpty()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkEmpty(response as api.Empty); + }); + + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = + api.CloudObservabilityApi(mock).projects.locations.traceScopes; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildTraceScope()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkTraceScope(response as api.TraceScope); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.CloudObservabilityApi(mock).projects.locations.traceScopes; + final arg_parent = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildListTraceScopesResponse()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkListTraceScopesResponse(response as api.ListTraceScopesResponse); + }); + + unittest.test('method--patch', () async { + final mock = HttpServerMock(); + final res = + api.CloudObservabilityApi(mock).projects.locations.traceScopes; + final arg_request = buildTraceScope(); + final arg_name = 'foo'; + final arg_updateMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.TraceScope.fromJson( + json as core.Map, + ); + checkTraceScope(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildTraceScope()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.patch( + arg_request, + arg_name, + updateMask: arg_updateMask, + $fields: arg_$fields, + ); + checkTraceScope(response as api.TraceScope); + }); + }); } diff --git a/generated/googleapis/test/ondemandscanning/v1_test.dart b/generated/googleapis/test/ondemandscanning/v1_test.dart index 71c33741a..c58c03df7 100644 --- a/generated/googleapis/test/ondemandscanning/v1_test.dart +++ b/generated/googleapis/test/ondemandscanning/v1_test.dart @@ -451,6 +451,27 @@ void checkBuilderConfig(api.BuilderConfig o) { buildCounterBuilderConfig--; } +core.int buildCounterCISAKnownExploitedVulnerabilities = 0; +api.CISAKnownExploitedVulnerabilities buildCISAKnownExploitedVulnerabilities() { + final o = api.CISAKnownExploitedVulnerabilities(); + buildCounterCISAKnownExploitedVulnerabilities++; + if (buildCounterCISAKnownExploitedVulnerabilities < 3) { + o.knownRansomwareCampaignUse = 'foo'; + } + buildCounterCISAKnownExploitedVulnerabilities--; + return o; +} + +void checkCISAKnownExploitedVulnerabilities( + api.CISAKnownExploitedVulnerabilities o, +) { + buildCounterCISAKnownExploitedVulnerabilities++; + if (buildCounterCISAKnownExploitedVulnerabilities < 3) { + unittest.expect(o.knownRansomwareCampaignUse!, unittest.equals('foo')); + } + buildCounterCISAKnownExploitedVulnerabilities--; +} + core.int buildCounterCVSS = 0; api.CVSS buildCVSS() { final o = api.CVSS(); @@ -852,6 +873,27 @@ void checkEnvelopeSignature(api.EnvelopeSignature o) { buildCounterEnvelopeSignature--; } +core.int buildCounterExploitPredictionScoringSystem = 0; +api.ExploitPredictionScoringSystem buildExploitPredictionScoringSystem() { + final o = api.ExploitPredictionScoringSystem(); + buildCounterExploitPredictionScoringSystem++; + if (buildCounterExploitPredictionScoringSystem < 3) { + o.percentile = 42.0; + o.score = 42.0; + } + buildCounterExploitPredictionScoringSystem--; + return o; +} + +void checkExploitPredictionScoringSystem(api.ExploitPredictionScoringSystem o) { + buildCounterExploitPredictionScoringSystem++; + if (buildCounterExploitPredictionScoringSystem < 3) { + unittest.expect(o.percentile!, unittest.equals(42.0)); + unittest.expect(o.score!, unittest.equals(42.0)); + } + buildCounterExploitPredictionScoringSystem--; +} + core.Map buildUnnamed19() => {'x': 'foo', 'y': 'foo'}; void checkUnnamed19(core.Map o) { @@ -2477,6 +2519,27 @@ void checkResourceDescriptor(api.ResourceDescriptor o) { buildCounterResourceDescriptor--; } +core.int buildCounterRisk = 0; +api.Risk buildRisk() { + final o = api.Risk(); + buildCounterRisk++; + if (buildCounterRisk < 3) { + o.cisaKev = buildCISAKnownExploitedVulnerabilities(); + o.epss = buildExploitPredictionScoringSystem(); + } + buildCounterRisk--; + return o; +} + +void checkRisk(api.Risk o) { + buildCounterRisk++; + if (buildCounterRisk < 3) { + checkCISAKnownExploitedVulnerabilities(o.cisaKev!); + checkExploitPredictionScoringSystem(o.epss!); + } + buildCounterRisk--; +} + core.List buildUnnamed53() => [ buildResourceDescriptor(), buildResourceDescriptor(), @@ -3370,6 +3433,7 @@ api.VulnerabilityOccurrence buildVulnerabilityOccurrence() { o.longDescription = 'foo'; o.packageIssue = buildUnnamed74(); o.relatedUrls = buildUnnamed75(); + o.risk = buildRisk(); o.severity = 'foo'; o.shortDescription = 'foo'; o.type = 'foo'; @@ -3392,6 +3456,7 @@ void checkVulnerabilityOccurrence(api.VulnerabilityOccurrence o) { unittest.expect(o.longDescription!, unittest.equals('foo')); checkUnnamed74(o.packageIssue!); checkUnnamed75(o.relatedUrls!); + checkRisk(o.risk!); unittest.expect(o.severity!, unittest.equals('foo')); unittest.expect(o.shortDescription!, unittest.equals('foo')); unittest.expect(o.type!, unittest.equals('foo')); @@ -3580,6 +3645,17 @@ void main() { }); }); + unittest.group('obj-schema-CISAKnownExploitedVulnerabilities', () { + unittest.test('to-json--from-json', () async { + final o = buildCISAKnownExploitedVulnerabilities(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.CISAKnownExploitedVulnerabilities.fromJson( + oJson as core.Map, + ); + checkCISAKnownExploitedVulnerabilities(od); + }); + }); + unittest.group('obj-schema-CVSS', () { unittest.test('to-json--from-json', () async { final o = buildCVSS(); @@ -3723,6 +3799,17 @@ void main() { }); }); + unittest.group('obj-schema-ExploitPredictionScoringSystem', () { + unittest.test('to-json--from-json', () async { + final o = buildExploitPredictionScoringSystem(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ExploitPredictionScoringSystem.fromJson( + oJson as core.Map, + ); + checkExploitPredictionScoringSystem(od); + }); + }); + unittest.group('obj-schema-File', () { unittest.test('to-json--from-json', () async { final o = buildFile(); @@ -4244,6 +4331,17 @@ void main() { }); }); + unittest.group('obj-schema-Risk', () { + unittest.test('to-json--from-json', () async { + final o = buildRisk(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Risk.fromJson( + oJson as core.Map, + ); + checkRisk(od); + }); + }); + unittest.group('obj-schema-RunDetails', () { unittest.test('to-json--from-json', () async { final o = buildRunDetails(); diff --git a/generated/googleapis/test/oracledatabase/v1_test.dart b/generated/googleapis/test/oracledatabase/v1_test.dart index f77619ceb..f5c02922d 100644 --- a/generated/googleapis/test/oracledatabase/v1_test.dart +++ b/generated/googleapis/test/oracledatabase/v1_test.dart @@ -588,6 +588,25 @@ void checkAutonomousDbVersion(api.AutonomousDbVersion o) { buildCounterAutonomousDbVersion--; } +core.int buildCounterBackupDestinationDetails = 0; +api.BackupDestinationDetails buildBackupDestinationDetails() { + final o = api.BackupDestinationDetails(); + buildCounterBackupDestinationDetails++; + if (buildCounterBackupDestinationDetails < 3) { + o.type = 'foo'; + } + buildCounterBackupDestinationDetails--; + return o; +} + +void checkBackupDestinationDetails(api.BackupDestinationDetails o) { + buildCounterBackupDestinationDetails++; + if (buildCounterBackupDestinationDetails < 3) { + unittest.expect(o.type!, unittest.equals('foo')); + } + buildCounterBackupDestinationDetails--; +} + core.int buildCounterCancelOperationRequest = 0; api.CancelOperationRequest buildCancelOperationRequest() { final o = api.CancelOperationRequest(); @@ -778,6 +797,7 @@ api.CloudVmCluster buildCloudVmCluster() { o.displayName = 'foo'; o.exadataInfrastructure = 'foo'; o.gcpOracleZone = 'foo'; + o.identityConnector = buildIdentityConnector(); o.labels = buildUnnamed13(); o.name = 'foo'; o.network = 'foo'; @@ -799,6 +819,7 @@ void checkCloudVmCluster(api.CloudVmCluster o) { unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.exadataInfrastructure!, unittest.equals('foo')); unittest.expect(o.gcpOracleZone!, unittest.equals('foo')); + checkIdentityConnector(o.identityConnector!); checkUnnamed13(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); @@ -958,6 +979,95 @@ void checkDataCollectionOptions(api.DataCollectionOptions o) { buildCounterDataCollectionOptions--; } +core.int buildCounterDataCollectionOptionsDbSystem = 0; +api.DataCollectionOptionsDbSystem buildDataCollectionOptionsDbSystem() { + final o = api.DataCollectionOptionsDbSystem(); + buildCounterDataCollectionOptionsDbSystem++; + if (buildCounterDataCollectionOptionsDbSystem < 3) { + o.isDiagnosticsEventsEnabled = true; + o.isIncidentLogsEnabled = true; + } + buildCounterDataCollectionOptionsDbSystem--; + return o; +} + +void checkDataCollectionOptionsDbSystem(api.DataCollectionOptionsDbSystem o) { + buildCounterDataCollectionOptionsDbSystem++; + if (buildCounterDataCollectionOptionsDbSystem < 3) { + unittest.expect(o.isDiagnosticsEventsEnabled!, unittest.isTrue); + unittest.expect(o.isIncidentLogsEnabled!, unittest.isTrue); + } + buildCounterDataCollectionOptionsDbSystem--; +} + +core.int buildCounterDatabase = 0; +api.Database buildDatabase() { + final o = api.Database(); + buildCounterDatabase++; + if (buildCounterDatabase < 3) { + o.adminPassword = 'foo'; + o.characterSet = 'foo'; + o.createTime = 'foo'; + o.databaseId = 'foo'; + o.dbHomeName = 'foo'; + o.dbName = 'foo'; + o.dbUniqueName = 'foo'; + o.gcpOracleZone = 'foo'; + o.name = 'foo'; + o.ncharacterSet = 'foo'; + o.ociUrl = 'foo'; + o.opsInsightsStatus = 'foo'; + o.properties = buildDatabaseProperties(); + o.tdeWalletPassword = 'foo'; + } + buildCounterDatabase--; + return o; +} + +void checkDatabase(api.Database o) { + buildCounterDatabase++; + if (buildCounterDatabase < 3) { + unittest.expect(o.adminPassword!, unittest.equals('foo')); + unittest.expect(o.characterSet!, unittest.equals('foo')); + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.databaseId!, unittest.equals('foo')); + unittest.expect(o.dbHomeName!, unittest.equals('foo')); + unittest.expect(o.dbName!, unittest.equals('foo')); + unittest.expect(o.dbUniqueName!, unittest.equals('foo')); + unittest.expect(o.gcpOracleZone!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.ncharacterSet!, unittest.equals('foo')); + unittest.expect(o.ociUrl!, unittest.equals('foo')); + unittest.expect(o.opsInsightsStatus!, unittest.equals('foo')); + checkDatabaseProperties(o.properties!); + unittest.expect(o.tdeWalletPassword!, unittest.equals('foo')); + } + buildCounterDatabase--; +} + +core.int buildCounterDatabaseCharacterSet = 0; +api.DatabaseCharacterSet buildDatabaseCharacterSet() { + final o = api.DatabaseCharacterSet(); + buildCounterDatabaseCharacterSet++; + if (buildCounterDatabaseCharacterSet < 3) { + o.characterSet = 'foo'; + o.characterSetType = 'foo'; + o.name = 'foo'; + } + buildCounterDatabaseCharacterSet--; + return o; +} + +void checkDatabaseCharacterSet(api.DatabaseCharacterSet o) { + buildCounterDatabaseCharacterSet++; + if (buildCounterDatabaseCharacterSet < 3) { + unittest.expect(o.characterSet!, unittest.equals('foo')); + unittest.expect(o.characterSetType!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + } + buildCounterDatabaseCharacterSet--; +} + core.int buildCounterDatabaseConnectionStringProfile = 0; api.DatabaseConnectionStringProfile buildDatabaseConnectionStringProfile() { final o = api.DatabaseConnectionStringProfile(); @@ -995,6 +1105,119 @@ void checkDatabaseConnectionStringProfile( buildCounterDatabaseConnectionStringProfile--; } +core.int buildCounterDatabaseManagementConfig = 0; +api.DatabaseManagementConfig buildDatabaseManagementConfig() { + final o = api.DatabaseManagementConfig(); + buildCounterDatabaseManagementConfig++; + if (buildCounterDatabaseManagementConfig < 3) { + o.managementState = 'foo'; + o.managementType = 'foo'; + } + buildCounterDatabaseManagementConfig--; + return o; +} + +void checkDatabaseManagementConfig(api.DatabaseManagementConfig o) { + buildCounterDatabaseManagementConfig++; + if (buildCounterDatabaseManagementConfig < 3) { + unittest.expect(o.managementState!, unittest.equals('foo')); + unittest.expect(o.managementType!, unittest.equals('foo')); + } + buildCounterDatabaseManagementConfig--; +} + +core.int buildCounterDatabaseProperties = 0; +api.DatabaseProperties buildDatabaseProperties() { + final o = api.DatabaseProperties(); + buildCounterDatabaseProperties++; + if (buildCounterDatabaseProperties < 3) { + o.databaseManagementConfig = buildDatabaseManagementConfig(); + o.dbBackupConfig = buildDbBackupConfig(); + o.dbVersion = 'foo'; + o.state = 'foo'; + } + buildCounterDatabaseProperties--; + return o; +} + +void checkDatabaseProperties(api.DatabaseProperties o) { + buildCounterDatabaseProperties++; + if (buildCounterDatabaseProperties < 3) { + checkDatabaseManagementConfig(o.databaseManagementConfig!); + checkDbBackupConfig(o.dbBackupConfig!); + unittest.expect(o.dbVersion!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + } + buildCounterDatabaseProperties--; +} + +core.List buildUnnamed17() => [ + buildBackupDestinationDetails(), + buildBackupDestinationDetails(), +]; + +void checkUnnamed17(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkBackupDestinationDetails(o[0]); + checkBackupDestinationDetails(o[1]); +} + +core.int buildCounterDbBackupConfig = 0; +api.DbBackupConfig buildDbBackupConfig() { + final o = api.DbBackupConfig(); + buildCounterDbBackupConfig++; + if (buildCounterDbBackupConfig < 3) { + o.autoBackupEnabled = true; + o.autoFullBackupDay = 'foo'; + o.autoFullBackupWindow = 'foo'; + o.autoIncrementalBackupWindow = 'foo'; + o.backupDeletionPolicy = 'foo'; + o.backupDestinationDetails = buildUnnamed17(); + o.retentionPeriodDays = 42; + } + buildCounterDbBackupConfig--; + return o; +} + +void checkDbBackupConfig(api.DbBackupConfig o) { + buildCounterDbBackupConfig++; + if (buildCounterDbBackupConfig < 3) { + unittest.expect(o.autoBackupEnabled!, unittest.isTrue); + unittest.expect(o.autoFullBackupDay!, unittest.equals('foo')); + unittest.expect(o.autoFullBackupWindow!, unittest.equals('foo')); + unittest.expect(o.autoIncrementalBackupWindow!, unittest.equals('foo')); + unittest.expect(o.backupDeletionPolicy!, unittest.equals('foo')); + checkUnnamed17(o.backupDestinationDetails!); + unittest.expect(o.retentionPeriodDays!, unittest.equals(42)); + } + buildCounterDbBackupConfig--; +} + +core.int buildCounterDbHome = 0; +api.DbHome buildDbHome() { + final o = api.DbHome(); + buildCounterDbHome++; + if (buildCounterDbHome < 3) { + o.database = buildDatabase(); + o.dbVersion = 'foo'; + o.displayName = 'foo'; + o.isUnifiedAuditingEnabled = true; + } + buildCounterDbHome--; + return o; +} + +void checkDbHome(api.DbHome o) { + buildCounterDbHome++; + if (buildCounterDbHome < 3) { + checkDatabase(o.database!); + unittest.expect(o.dbVersion!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.isUnifiedAuditingEnabled!, unittest.isTrue); + } + buildCounterDbHome--; +} + core.int buildCounterDbNode = 0; api.DbNode buildDbNode() { final o = api.DbNode(); @@ -1074,9 +1297,9 @@ void checkDbServer(api.DbServer o) { buildCounterDbServer--; } -core.List buildUnnamed17() => ['foo', 'foo']; +core.List buildUnnamed18() => ['foo', 'foo']; -void checkUnnamed17(core.List o) { +void checkUnnamed18(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1087,7 +1310,7 @@ api.DbServerProperties buildDbServerProperties() { final o = api.DbServerProperties(); buildCounterDbServerProperties++; if (buildCounterDbServerProperties < 3) { - o.dbNodeIds = buildUnnamed17(); + o.dbNodeIds = buildUnnamed18(); o.dbNodeStorageSizeGb = 42; o.maxDbNodeStorageSizeGb = 42; o.maxMemorySizeGb = 42; @@ -1105,7 +1328,7 @@ api.DbServerProperties buildDbServerProperties() { void checkDbServerProperties(api.DbServerProperties o) { buildCounterDbServerProperties++; if (buildCounterDbServerProperties < 3) { - checkUnnamed17(o.dbNodeIds!); + checkUnnamed18(o.dbNodeIds!); unittest.expect(o.dbNodeStorageSizeGb!, unittest.equals(42)); unittest.expect(o.maxDbNodeStorageSizeGb!, unittest.equals(42)); unittest.expect(o.maxMemorySizeGb!, unittest.equals(42)); @@ -1119,6 +1342,208 @@ void checkDbServerProperties(api.DbServerProperties o) { buildCounterDbServerProperties--; } +core.Map buildUnnamed19() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed19(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterDbSystem = 0; +api.DbSystem buildDbSystem() { + final o = api.DbSystem(); + buildCounterDbSystem++; + if (buildCounterDbSystem < 3) { + o.createTime = 'foo'; + o.displayName = 'foo'; + o.entitlementId = 'foo'; + o.gcpOracleZone = 'foo'; + o.labels = buildUnnamed19(); + o.name = 'foo'; + o.ociUrl = 'foo'; + o.odbNetwork = 'foo'; + o.odbSubnet = 'foo'; + o.properties = buildDbSystemProperties(); + } + buildCounterDbSystem--; + return o; +} + +void checkDbSystem(api.DbSystem o) { + buildCounterDbSystem++; + if (buildCounterDbSystem < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.displayName!, unittest.equals('foo')); + unittest.expect(o.entitlementId!, unittest.equals('foo')); + unittest.expect(o.gcpOracleZone!, unittest.equals('foo')); + checkUnnamed19(o.labels!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.ociUrl!, unittest.equals('foo')); + unittest.expect(o.odbNetwork!, unittest.equals('foo')); + unittest.expect(o.odbSubnet!, unittest.equals('foo')); + checkDbSystemProperties(o.properties!); + } + buildCounterDbSystem--; +} + +core.int buildCounterDbSystemInitialStorageSize = 0; +api.DbSystemInitialStorageSize buildDbSystemInitialStorageSize() { + final o = api.DbSystemInitialStorageSize(); + buildCounterDbSystemInitialStorageSize++; + if (buildCounterDbSystemInitialStorageSize < 3) { + o.name = 'foo'; + o.properties = buildDbSystemInitialStorageSizeProperties(); + } + buildCounterDbSystemInitialStorageSize--; + return o; +} + +void checkDbSystemInitialStorageSize(api.DbSystemInitialStorageSize o) { + buildCounterDbSystemInitialStorageSize++; + if (buildCounterDbSystemInitialStorageSize < 3) { + unittest.expect(o.name!, unittest.equals('foo')); + checkDbSystemInitialStorageSizeProperties(o.properties!); + } + buildCounterDbSystemInitialStorageSize--; +} + +core.List buildUnnamed20() => [ + buildStorageSizeDetails(), + buildStorageSizeDetails(), +]; + +void checkUnnamed20(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkStorageSizeDetails(o[0]); + checkStorageSizeDetails(o[1]); +} + +core.List buildUnnamed21() => [ + buildStorageSizeDetails(), + buildStorageSizeDetails(), +]; + +void checkUnnamed21(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkStorageSizeDetails(o[0]); + checkStorageSizeDetails(o[1]); +} + +core.int buildCounterDbSystemInitialStorageSizeProperties = 0; +api.DbSystemInitialStorageSizeProperties +buildDbSystemInitialStorageSizeProperties() { + final o = api.DbSystemInitialStorageSizeProperties(); + buildCounterDbSystemInitialStorageSizeProperties++; + if (buildCounterDbSystemInitialStorageSizeProperties < 3) { + o.launchFromBackupStorageSizeDetails = buildUnnamed20(); + o.shapeType = 'foo'; + o.storageManagement = 'foo'; + o.storageSizeDetails = buildUnnamed21(); + } + buildCounterDbSystemInitialStorageSizeProperties--; + return o; +} + +void checkDbSystemInitialStorageSizeProperties( + api.DbSystemInitialStorageSizeProperties o, +) { + buildCounterDbSystemInitialStorageSizeProperties++; + if (buildCounterDbSystemInitialStorageSizeProperties < 3) { + checkUnnamed20(o.launchFromBackupStorageSizeDetails!); + unittest.expect(o.shapeType!, unittest.equals('foo')); + unittest.expect(o.storageManagement!, unittest.equals('foo')); + checkUnnamed21(o.storageSizeDetails!); + } + buildCounterDbSystemInitialStorageSizeProperties--; +} + +core.int buildCounterDbSystemOptions = 0; +api.DbSystemOptions buildDbSystemOptions() { + final o = api.DbSystemOptions(); + buildCounterDbSystemOptions++; + if (buildCounterDbSystemOptions < 3) { + o.storageManagement = 'foo'; + } + buildCounterDbSystemOptions--; + return o; +} + +void checkDbSystemOptions(api.DbSystemOptions o) { + buildCounterDbSystemOptions++; + if (buildCounterDbSystemOptions < 3) { + unittest.expect(o.storageManagement!, unittest.equals('foo')); + } + buildCounterDbSystemOptions--; +} + +core.List buildUnnamed22() => ['foo', 'foo']; + +void checkUnnamed22(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterDbSystemProperties = 0; +api.DbSystemProperties buildDbSystemProperties() { + final o = api.DbSystemProperties(); + buildCounterDbSystemProperties++; + if (buildCounterDbSystemProperties < 3) { + o.computeCount = 42; + o.computeModel = 'foo'; + o.dataCollectionOptions = buildDataCollectionOptionsDbSystem(); + o.dataStorageSizeGb = 42; + o.databaseEdition = 'foo'; + o.dbHome = buildDbHome(); + o.dbSystemOptions = buildDbSystemOptions(); + o.domain = 'foo'; + o.hostname = 'foo'; + o.hostnamePrefix = 'foo'; + o.initialDataStorageSizeGb = 42; + o.licenseModel = 'foo'; + o.lifecycleState = 'foo'; + o.memorySizeGb = 42; + o.nodeCount = 42; + o.ocid = 'foo'; + o.privateIp = 'foo'; + o.recoStorageSizeGb = 42; + o.shape = 'foo'; + o.sshPublicKeys = buildUnnamed22(); + o.timeZone = buildTimeZone(); + } + buildCounterDbSystemProperties--; + return o; +} + +void checkDbSystemProperties(api.DbSystemProperties o) { + buildCounterDbSystemProperties++; + if (buildCounterDbSystemProperties < 3) { + unittest.expect(o.computeCount!, unittest.equals(42)); + unittest.expect(o.computeModel!, unittest.equals('foo')); + checkDataCollectionOptionsDbSystem(o.dataCollectionOptions!); + unittest.expect(o.dataStorageSizeGb!, unittest.equals(42)); + unittest.expect(o.databaseEdition!, unittest.equals('foo')); + checkDbHome(o.dbHome!); + checkDbSystemOptions(o.dbSystemOptions!); + unittest.expect(o.domain!, unittest.equals('foo')); + unittest.expect(o.hostname!, unittest.equals('foo')); + unittest.expect(o.hostnamePrefix!, unittest.equals('foo')); + unittest.expect(o.initialDataStorageSizeGb!, unittest.equals(42)); + unittest.expect(o.licenseModel!, unittest.equals('foo')); + unittest.expect(o.lifecycleState!, unittest.equals('foo')); + unittest.expect(o.memorySizeGb!, unittest.equals(42)); + unittest.expect(o.nodeCount!, unittest.equals(42)); + unittest.expect(o.ocid!, unittest.equals('foo')); + unittest.expect(o.privateIp!, unittest.equals('foo')); + unittest.expect(o.recoStorageSizeGb!, unittest.equals(42)); + unittest.expect(o.shape!, unittest.equals('foo')); + checkUnnamed22(o.sshPublicKeys!); + checkTimeZone(o.timeZone!); + } + buildCounterDbSystemProperties--; +} + core.int buildCounterDbSystemShape = 0; api.DbSystemShape buildDbSystemShape() { final o = api.DbSystemShape(); @@ -1160,6 +1585,81 @@ void checkDbSystemShape(api.DbSystemShape o) { buildCounterDbSystemShape--; } +core.int buildCounterDbVersion = 0; +api.DbVersion buildDbVersion() { + final o = api.DbVersion(); + buildCounterDbVersion++; + if (buildCounterDbVersion < 3) { + o.name = 'foo'; + o.properties = buildDbVersionProperties(); + } + buildCounterDbVersion--; + return o; +} + +void checkDbVersion(api.DbVersion o) { + buildCounterDbVersion++; + if (buildCounterDbVersion < 3) { + unittest.expect(o.name!, unittest.equals('foo')); + checkDbVersionProperties(o.properties!); + } + buildCounterDbVersion--; +} + +core.int buildCounterDbVersionProperties = 0; +api.DbVersionProperties buildDbVersionProperties() { + final o = api.DbVersionProperties(); + buildCounterDbVersionProperties++; + if (buildCounterDbVersionProperties < 3) { + o.isLatestForMajorVersion = true; + o.isPreviewDbVersion = true; + o.isUpgradeSupported = true; + o.supportsPdb = true; + o.version = 'foo'; + } + buildCounterDbVersionProperties--; + return o; +} + +void checkDbVersionProperties(api.DbVersionProperties o) { + buildCounterDbVersionProperties++; + if (buildCounterDbVersionProperties < 3) { + unittest.expect(o.isLatestForMajorVersion!, unittest.isTrue); + unittest.expect(o.isPreviewDbVersion!, unittest.isTrue); + unittest.expect(o.isUpgradeSupported!, unittest.isTrue); + unittest.expect(o.supportsPdb!, unittest.isTrue); + unittest.expect(o.version!, unittest.equals('foo')); + } + buildCounterDbVersionProperties--; +} + +core.Map buildUnnamed23() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed23(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterDefinedTagValue = 0; +api.DefinedTagValue buildDefinedTagValue() { + final o = api.DefinedTagValue(); + buildCounterDefinedTagValue++; + if (buildCounterDefinedTagValue < 3) { + o.tags = buildUnnamed23(); + } + buildCounterDefinedTagValue--; + return o; +} + +void checkDefinedTagValue(api.DefinedTagValue o) { + buildCounterDefinedTagValue++; + if (buildCounterDefinedTagValue < 3) { + checkUnnamed23(o.tags!); + } + buildCounterDefinedTagValue--; +} + core.int buildCounterEmpty = 0; api.Empty buildEmpty() { final o = api.Empty(); @@ -1269,12 +1769,33 @@ void checkGiVersion(api.GiVersion o) { buildCounterGiVersion--; } -core.List buildUnnamed18() => [ +core.int buildCounterIdentityConnector = 0; +api.IdentityConnector buildIdentityConnector() { + final o = api.IdentityConnector(); + buildCounterIdentityConnector++; + if (buildCounterIdentityConnector < 3) { + o.connectionState = 'foo'; + o.serviceAgentEmail = 'foo'; + } + buildCounterIdentityConnector--; + return o; +} + +void checkIdentityConnector(api.IdentityConnector o) { + buildCounterIdentityConnector++; + if (buildCounterIdentityConnector < 3) { + unittest.expect(o.connectionState!, unittest.equals('foo')); + unittest.expect(o.serviceAgentEmail!, unittest.equals('foo')); + } + buildCounterIdentityConnector--; +} + +core.List buildUnnamed24() => [ buildAutonomousDatabaseBackup(), buildAutonomousDatabaseBackup(), ]; -void checkUnnamed18(core.List o) { +void checkUnnamed24(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAutonomousDatabaseBackup(o[0]); checkAutonomousDatabaseBackup(o[1]); @@ -1286,7 +1807,7 @@ buildListAutonomousDatabaseBackupsResponse() { final o = api.ListAutonomousDatabaseBackupsResponse(); buildCounterListAutonomousDatabaseBackupsResponse++; if (buildCounterListAutonomousDatabaseBackupsResponse < 3) { - o.autonomousDatabaseBackups = buildUnnamed18(); + o.autonomousDatabaseBackups = buildUnnamed24(); o.nextPageToken = 'foo'; } buildCounterListAutonomousDatabaseBackupsResponse--; @@ -1298,18 +1819,18 @@ void checkListAutonomousDatabaseBackupsResponse( ) { buildCounterListAutonomousDatabaseBackupsResponse++; if (buildCounterListAutonomousDatabaseBackupsResponse < 3) { - checkUnnamed18(o.autonomousDatabaseBackups!); + checkUnnamed24(o.autonomousDatabaseBackups!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListAutonomousDatabaseBackupsResponse--; } -core.List buildUnnamed19() => [ +core.List buildUnnamed25() => [ buildAutonomousDatabaseCharacterSet(), buildAutonomousDatabaseCharacterSet(), ]; -void checkUnnamed19(core.List o) { +void checkUnnamed25(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAutonomousDatabaseCharacterSet(o[0]); checkAutonomousDatabaseCharacterSet(o[1]); @@ -1321,7 +1842,7 @@ buildListAutonomousDatabaseCharacterSetsResponse() { final o = api.ListAutonomousDatabaseCharacterSetsResponse(); buildCounterListAutonomousDatabaseCharacterSetsResponse++; if (buildCounterListAutonomousDatabaseCharacterSetsResponse < 3) { - o.autonomousDatabaseCharacterSets = buildUnnamed19(); + o.autonomousDatabaseCharacterSets = buildUnnamed25(); o.nextPageToken = 'foo'; } buildCounterListAutonomousDatabaseCharacterSetsResponse--; @@ -1333,18 +1854,18 @@ void checkListAutonomousDatabaseCharacterSetsResponse( ) { buildCounterListAutonomousDatabaseCharacterSetsResponse++; if (buildCounterListAutonomousDatabaseCharacterSetsResponse < 3) { - checkUnnamed19(o.autonomousDatabaseCharacterSets!); + checkUnnamed25(o.autonomousDatabaseCharacterSets!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListAutonomousDatabaseCharacterSetsResponse--; } -core.List buildUnnamed20() => [ +core.List buildUnnamed26() => [ buildAutonomousDatabase(), buildAutonomousDatabase(), ]; -void checkUnnamed20(core.List o) { +void checkUnnamed26(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAutonomousDatabase(o[0]); checkAutonomousDatabase(o[1]); @@ -1355,7 +1876,7 @@ api.ListAutonomousDatabasesResponse buildListAutonomousDatabasesResponse() { final o = api.ListAutonomousDatabasesResponse(); buildCounterListAutonomousDatabasesResponse++; if (buildCounterListAutonomousDatabasesResponse < 3) { - o.autonomousDatabases = buildUnnamed20(); + o.autonomousDatabases = buildUnnamed26(); o.nextPageToken = 'foo'; } buildCounterListAutonomousDatabasesResponse--; @@ -1367,18 +1888,18 @@ void checkListAutonomousDatabasesResponse( ) { buildCounterListAutonomousDatabasesResponse++; if (buildCounterListAutonomousDatabasesResponse < 3) { - checkUnnamed20(o.autonomousDatabases!); + checkUnnamed26(o.autonomousDatabases!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListAutonomousDatabasesResponse--; } -core.List buildUnnamed21() => [ +core.List buildUnnamed27() => [ buildAutonomousDbVersion(), buildAutonomousDbVersion(), ]; -void checkUnnamed21(core.List o) { +void checkUnnamed27(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAutonomousDbVersion(o[0]); checkAutonomousDbVersion(o[1]); @@ -1389,7 +1910,7 @@ api.ListAutonomousDbVersionsResponse buildListAutonomousDbVersionsResponse() { final o = api.ListAutonomousDbVersionsResponse(); buildCounterListAutonomousDbVersionsResponse++; if (buildCounterListAutonomousDbVersionsResponse < 3) { - o.autonomousDbVersions = buildUnnamed21(); + o.autonomousDbVersions = buildUnnamed27(); o.nextPageToken = 'foo'; } buildCounterListAutonomousDbVersionsResponse--; @@ -1401,18 +1922,18 @@ void checkListAutonomousDbVersionsResponse( ) { buildCounterListAutonomousDbVersionsResponse++; if (buildCounterListAutonomousDbVersionsResponse < 3) { - checkUnnamed21(o.autonomousDbVersions!); + checkUnnamed27(o.autonomousDbVersions!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListAutonomousDbVersionsResponse--; } -core.List buildUnnamed22() => [ +core.List buildUnnamed28() => [ buildCloudExadataInfrastructure(), buildCloudExadataInfrastructure(), ]; -void checkUnnamed22(core.List o) { +void checkUnnamed28(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCloudExadataInfrastructure(o[0]); checkCloudExadataInfrastructure(o[1]); @@ -1424,7 +1945,7 @@ buildListCloudExadataInfrastructuresResponse() { final o = api.ListCloudExadataInfrastructuresResponse(); buildCounterListCloudExadataInfrastructuresResponse++; if (buildCounterListCloudExadataInfrastructuresResponse < 3) { - o.cloudExadataInfrastructures = buildUnnamed22(); + o.cloudExadataInfrastructures = buildUnnamed28(); o.nextPageToken = 'foo'; } buildCounterListCloudExadataInfrastructuresResponse--; @@ -1436,18 +1957,18 @@ void checkListCloudExadataInfrastructuresResponse( ) { buildCounterListCloudExadataInfrastructuresResponse++; if (buildCounterListCloudExadataInfrastructuresResponse < 3) { - checkUnnamed22(o.cloudExadataInfrastructures!); + checkUnnamed28(o.cloudExadataInfrastructures!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListCloudExadataInfrastructuresResponse--; } -core.List buildUnnamed23() => [ +core.List buildUnnamed29() => [ buildCloudVmCluster(), buildCloudVmCluster(), ]; -void checkUnnamed23(core.List o) { +void checkUnnamed29(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCloudVmCluster(o[0]); checkCloudVmCluster(o[1]); @@ -1458,7 +1979,7 @@ api.ListCloudVmClustersResponse buildListCloudVmClustersResponse() { final o = api.ListCloudVmClustersResponse(); buildCounterListCloudVmClustersResponse++; if (buildCounterListCloudVmClustersResponse < 3) { - o.cloudVmClusters = buildUnnamed23(); + o.cloudVmClusters = buildUnnamed29(); o.nextPageToken = 'foo'; } buildCounterListCloudVmClustersResponse--; @@ -1468,15 +1989,78 @@ api.ListCloudVmClustersResponse buildListCloudVmClustersResponse() { void checkListCloudVmClustersResponse(api.ListCloudVmClustersResponse o) { buildCounterListCloudVmClustersResponse++; if (buildCounterListCloudVmClustersResponse < 3) { - checkUnnamed23(o.cloudVmClusters!); + checkUnnamed29(o.cloudVmClusters!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListCloudVmClustersResponse--; } -core.List buildUnnamed24() => [buildDbNode(), buildDbNode()]; +core.List buildUnnamed30() => [ + buildDatabaseCharacterSet(), + buildDatabaseCharacterSet(), +]; + +void checkUnnamed30(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkDatabaseCharacterSet(o[0]); + checkDatabaseCharacterSet(o[1]); +} + +core.int buildCounterListDatabaseCharacterSetsResponse = 0; +api.ListDatabaseCharacterSetsResponse buildListDatabaseCharacterSetsResponse() { + final o = api.ListDatabaseCharacterSetsResponse(); + buildCounterListDatabaseCharacterSetsResponse++; + if (buildCounterListDatabaseCharacterSetsResponse < 3) { + o.databaseCharacterSets = buildUnnamed30(); + o.nextPageToken = 'foo'; + } + buildCounterListDatabaseCharacterSetsResponse--; + return o; +} + +void checkListDatabaseCharacterSetsResponse( + api.ListDatabaseCharacterSetsResponse o, +) { + buildCounterListDatabaseCharacterSetsResponse++; + if (buildCounterListDatabaseCharacterSetsResponse < 3) { + checkUnnamed30(o.databaseCharacterSets!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + } + buildCounterListDatabaseCharacterSetsResponse--; +} + +core.List buildUnnamed31() => [buildDatabase(), buildDatabase()]; + +void checkUnnamed31(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkDatabase(o[0]); + checkDatabase(o[1]); +} + +core.int buildCounterListDatabasesResponse = 0; +api.ListDatabasesResponse buildListDatabasesResponse() { + final o = api.ListDatabasesResponse(); + buildCounterListDatabasesResponse++; + if (buildCounterListDatabasesResponse < 3) { + o.databases = buildUnnamed31(); + o.nextPageToken = 'foo'; + } + buildCounterListDatabasesResponse--; + return o; +} + +void checkListDatabasesResponse(api.ListDatabasesResponse o) { + buildCounterListDatabasesResponse++; + if (buildCounterListDatabasesResponse < 3) { + checkUnnamed31(o.databases!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + } + buildCounterListDatabasesResponse--; +} + +core.List buildUnnamed32() => [buildDbNode(), buildDbNode()]; -void checkUnnamed24(core.List o) { +void checkUnnamed32(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDbNode(o[0]); checkDbNode(o[1]); @@ -1487,7 +2071,7 @@ api.ListDbNodesResponse buildListDbNodesResponse() { final o = api.ListDbNodesResponse(); buildCounterListDbNodesResponse++; if (buildCounterListDbNodesResponse < 3) { - o.dbNodes = buildUnnamed24(); + o.dbNodes = buildUnnamed32(); o.nextPageToken = 'foo'; } buildCounterListDbNodesResponse--; @@ -1497,15 +2081,15 @@ api.ListDbNodesResponse buildListDbNodesResponse() { void checkListDbNodesResponse(api.ListDbNodesResponse o) { buildCounterListDbNodesResponse++; if (buildCounterListDbNodesResponse < 3) { - checkUnnamed24(o.dbNodes!); + checkUnnamed32(o.dbNodes!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListDbNodesResponse--; } -core.List buildUnnamed25() => [buildDbServer(), buildDbServer()]; +core.List buildUnnamed33() => [buildDbServer(), buildDbServer()]; -void checkUnnamed25(core.List o) { +void checkUnnamed33(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDbServer(o[0]); checkDbServer(o[1]); @@ -1516,7 +2100,7 @@ api.ListDbServersResponse buildListDbServersResponse() { final o = api.ListDbServersResponse(); buildCounterListDbServersResponse++; if (buildCounterListDbServersResponse < 3) { - o.dbServers = buildUnnamed25(); + o.dbServers = buildUnnamed33(); o.nextPageToken = 'foo'; } buildCounterListDbServersResponse--; @@ -1526,29 +2110,64 @@ api.ListDbServersResponse buildListDbServersResponse() { void checkListDbServersResponse(api.ListDbServersResponse o) { buildCounterListDbServersResponse++; if (buildCounterListDbServersResponse < 3) { - checkUnnamed25(o.dbServers!); + checkUnnamed33(o.dbServers!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListDbServersResponse--; } -core.List buildUnnamed26() => [ - buildDbSystemShape(), - buildDbSystemShape(), +core.List buildUnnamed34() => [ + buildDbSystemInitialStorageSize(), + buildDbSystemInitialStorageSize(), ]; -void checkUnnamed26(core.List o) { +void checkUnnamed34(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkDbSystemShape(o[0]); - checkDbSystemShape(o[1]); + checkDbSystemInitialStorageSize(o[0]); + checkDbSystemInitialStorageSize(o[1]); } -core.int buildCounterListDbSystemShapesResponse = 0; +core.int buildCounterListDbSystemInitialStorageSizesResponse = 0; +api.ListDbSystemInitialStorageSizesResponse +buildListDbSystemInitialStorageSizesResponse() { + final o = api.ListDbSystemInitialStorageSizesResponse(); + buildCounterListDbSystemInitialStorageSizesResponse++; + if (buildCounterListDbSystemInitialStorageSizesResponse < 3) { + o.dbSystemInitialStorageSizes = buildUnnamed34(); + o.nextPageToken = 'foo'; + } + buildCounterListDbSystemInitialStorageSizesResponse--; + return o; +} + +void checkListDbSystemInitialStorageSizesResponse( + api.ListDbSystemInitialStorageSizesResponse o, +) { + buildCounterListDbSystemInitialStorageSizesResponse++; + if (buildCounterListDbSystemInitialStorageSizesResponse < 3) { + checkUnnamed34(o.dbSystemInitialStorageSizes!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + } + buildCounterListDbSystemInitialStorageSizesResponse--; +} + +core.List buildUnnamed35() => [ + buildDbSystemShape(), + buildDbSystemShape(), +]; + +void checkUnnamed35(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkDbSystemShape(o[0]); + checkDbSystemShape(o[1]); +} + +core.int buildCounterListDbSystemShapesResponse = 0; api.ListDbSystemShapesResponse buildListDbSystemShapesResponse() { final o = api.ListDbSystemShapesResponse(); buildCounterListDbSystemShapesResponse++; if (buildCounterListDbSystemShapesResponse < 3) { - o.dbSystemShapes = buildUnnamed26(); + o.dbSystemShapes = buildUnnamed35(); o.nextPageToken = 'foo'; } buildCounterListDbSystemShapesResponse--; @@ -1558,18 +2177,79 @@ api.ListDbSystemShapesResponse buildListDbSystemShapesResponse() { void checkListDbSystemShapesResponse(api.ListDbSystemShapesResponse o) { buildCounterListDbSystemShapesResponse++; if (buildCounterListDbSystemShapesResponse < 3) { - checkUnnamed26(o.dbSystemShapes!); + checkUnnamed35(o.dbSystemShapes!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListDbSystemShapesResponse--; } -core.List buildUnnamed27() => [ +core.List buildUnnamed36() => [buildDbSystem(), buildDbSystem()]; + +void checkUnnamed36(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkDbSystem(o[0]); + checkDbSystem(o[1]); +} + +core.int buildCounterListDbSystemsResponse = 0; +api.ListDbSystemsResponse buildListDbSystemsResponse() { + final o = api.ListDbSystemsResponse(); + buildCounterListDbSystemsResponse++; + if (buildCounterListDbSystemsResponse < 3) { + o.dbSystems = buildUnnamed36(); + o.nextPageToken = 'foo'; + } + buildCounterListDbSystemsResponse--; + return o; +} + +void checkListDbSystemsResponse(api.ListDbSystemsResponse o) { + buildCounterListDbSystemsResponse++; + if (buildCounterListDbSystemsResponse < 3) { + checkUnnamed36(o.dbSystems!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + } + buildCounterListDbSystemsResponse--; +} + +core.List buildUnnamed37() => [ + buildDbVersion(), + buildDbVersion(), +]; + +void checkUnnamed37(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkDbVersion(o[0]); + checkDbVersion(o[1]); +} + +core.int buildCounterListDbVersionsResponse = 0; +api.ListDbVersionsResponse buildListDbVersionsResponse() { + final o = api.ListDbVersionsResponse(); + buildCounterListDbVersionsResponse++; + if (buildCounterListDbVersionsResponse < 3) { + o.dbVersions = buildUnnamed37(); + o.nextPageToken = 'foo'; + } + buildCounterListDbVersionsResponse--; + return o; +} + +void checkListDbVersionsResponse(api.ListDbVersionsResponse o) { + buildCounterListDbVersionsResponse++; + if (buildCounterListDbVersionsResponse < 3) { + checkUnnamed37(o.dbVersions!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + } + buildCounterListDbVersionsResponse--; +} + +core.List buildUnnamed38() => [ buildEntitlement(), buildEntitlement(), ]; -void checkUnnamed27(core.List o) { +void checkUnnamed38(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkEntitlement(o[0]); checkEntitlement(o[1]); @@ -1580,7 +2260,7 @@ api.ListEntitlementsResponse buildListEntitlementsResponse() { final o = api.ListEntitlementsResponse(); buildCounterListEntitlementsResponse++; if (buildCounterListEntitlementsResponse < 3) { - o.entitlements = buildUnnamed27(); + o.entitlements = buildUnnamed38(); o.nextPageToken = 'foo'; } buildCounterListEntitlementsResponse--; @@ -1590,18 +2270,18 @@ api.ListEntitlementsResponse buildListEntitlementsResponse() { void checkListEntitlementsResponse(api.ListEntitlementsResponse o) { buildCounterListEntitlementsResponse++; if (buildCounterListEntitlementsResponse < 3) { - checkUnnamed27(o.entitlements!); + checkUnnamed38(o.entitlements!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListEntitlementsResponse--; } -core.List buildUnnamed28() => [ +core.List buildUnnamed39() => [ buildGiVersion(), buildGiVersion(), ]; -void checkUnnamed28(core.List o) { +void checkUnnamed39(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGiVersion(o[0]); checkGiVersion(o[1]); @@ -1612,7 +2292,7 @@ api.ListGiVersionsResponse buildListGiVersionsResponse() { final o = api.ListGiVersionsResponse(); buildCounterListGiVersionsResponse++; if (buildCounterListGiVersionsResponse < 3) { - o.giVersions = buildUnnamed28(); + o.giVersions = buildUnnamed39(); o.nextPageToken = 'foo'; } buildCounterListGiVersionsResponse--; @@ -1622,15 +2302,15 @@ api.ListGiVersionsResponse buildListGiVersionsResponse() { void checkListGiVersionsResponse(api.ListGiVersionsResponse o) { buildCounterListGiVersionsResponse++; if (buildCounterListGiVersionsResponse < 3) { - checkUnnamed28(o.giVersions!); + checkUnnamed39(o.giVersions!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListGiVersionsResponse--; } -core.List buildUnnamed29() => [buildLocation(), buildLocation()]; +core.List buildUnnamed40() => [buildLocation(), buildLocation()]; -void checkUnnamed29(core.List o) { +void checkUnnamed40(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -1641,7 +2321,7 @@ api.ListLocationsResponse buildListLocationsResponse() { final o = api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed29(); + o.locations = buildUnnamed40(); o.nextPageToken = 'foo'; } buildCounterListLocationsResponse--; @@ -1651,26 +2331,26 @@ api.ListLocationsResponse buildListLocationsResponse() { void checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed29(o.locations!); + checkUnnamed40(o.locations!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -core.List buildUnnamed30() => [ +core.List buildUnnamed41() => [ buildOdbNetwork(), buildOdbNetwork(), ]; -void checkUnnamed30(core.List o) { +void checkUnnamed41(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOdbNetwork(o[0]); checkOdbNetwork(o[1]); } -core.List buildUnnamed31() => ['foo', 'foo']; +core.List buildUnnamed42() => ['foo', 'foo']; -void checkUnnamed31(core.List o) { +void checkUnnamed42(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1682,8 +2362,8 @@ api.ListOdbNetworksResponse buildListOdbNetworksResponse() { buildCounterListOdbNetworksResponse++; if (buildCounterListOdbNetworksResponse < 3) { o.nextPageToken = 'foo'; - o.odbNetworks = buildUnnamed30(); - o.unreachable = buildUnnamed31(); + o.odbNetworks = buildUnnamed41(); + o.unreachable = buildUnnamed42(); } buildCounterListOdbNetworksResponse--; return o; @@ -1693,26 +2373,26 @@ void checkListOdbNetworksResponse(api.ListOdbNetworksResponse o) { buildCounterListOdbNetworksResponse++; if (buildCounterListOdbNetworksResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed30(o.odbNetworks!); - checkUnnamed31(o.unreachable!); + checkUnnamed41(o.odbNetworks!); + checkUnnamed42(o.unreachable!); } buildCounterListOdbNetworksResponse--; } -core.List buildUnnamed32() => [ +core.List buildUnnamed43() => [ buildOdbSubnet(), buildOdbSubnet(), ]; -void checkUnnamed32(core.List o) { +void checkUnnamed43(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOdbSubnet(o[0]); checkOdbSubnet(o[1]); } -core.List buildUnnamed33() => ['foo', 'foo']; +core.List buildUnnamed44() => ['foo', 'foo']; -void checkUnnamed33(core.List o) { +void checkUnnamed44(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1724,8 +2404,8 @@ api.ListOdbSubnetsResponse buildListOdbSubnetsResponse() { buildCounterListOdbSubnetsResponse++; if (buildCounterListOdbSubnetsResponse < 3) { o.nextPageToken = 'foo'; - o.odbSubnets = buildUnnamed32(); - o.unreachable = buildUnnamed33(); + o.odbSubnets = buildUnnamed43(); + o.unreachable = buildUnnamed44(); } buildCounterListOdbSubnetsResponse--; return o; @@ -1735,18 +2415,18 @@ void checkListOdbSubnetsResponse(api.ListOdbSubnetsResponse o) { buildCounterListOdbSubnetsResponse++; if (buildCounterListOdbSubnetsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed32(o.odbSubnets!); - checkUnnamed33(o.unreachable!); + checkUnnamed43(o.odbSubnets!); + checkUnnamed44(o.unreachable!); } buildCounterListOdbSubnetsResponse--; } -core.List buildUnnamed34() => [ +core.List buildUnnamed45() => [ buildOperation(), buildOperation(), ]; -void checkUnnamed34(core.List o) { +void checkUnnamed45(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1758,7 +2438,7 @@ api.ListOperationsResponse buildListOperationsResponse() { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = 'foo'; - o.operations = buildUnnamed34(); + o.operations = buildUnnamed45(); } buildCounterListOperationsResponse--; return o; @@ -1768,20 +2448,52 @@ void checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed34(o.operations!); + checkUnnamed45(o.operations!); } buildCounterListOperationsResponse--; } -core.Map buildUnnamed35() => {'x': 'foo', 'y': 'foo'}; +core.List buildUnnamed46() => [ + buildPluggableDatabase(), + buildPluggableDatabase(), +]; + +void checkUnnamed46(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkPluggableDatabase(o[0]); + checkPluggableDatabase(o[1]); +} + +core.int buildCounterListPluggableDatabasesResponse = 0; +api.ListPluggableDatabasesResponse buildListPluggableDatabasesResponse() { + final o = api.ListPluggableDatabasesResponse(); + buildCounterListPluggableDatabasesResponse++; + if (buildCounterListPluggableDatabasesResponse < 3) { + o.nextPageToken = 'foo'; + o.pluggableDatabases = buildUnnamed46(); + } + buildCounterListPluggableDatabasesResponse--; + return o; +} + +void checkListPluggableDatabasesResponse(api.ListPluggableDatabasesResponse o) { + buildCounterListPluggableDatabasesResponse++; + if (buildCounterListPluggableDatabasesResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed46(o.pluggableDatabases!); + } + buildCounterListPluggableDatabasesResponse--; +} + +core.Map buildUnnamed47() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed35(core.Map o) { +void checkUnnamed47(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed36() => { +core.Map buildUnnamed48() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1794,7 +2506,7 @@ core.Map buildUnnamed36() => { }, }; -void checkUnnamed36(core.Map o) { +void checkUnnamed48(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o['x']!) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -1814,9 +2526,9 @@ api.Location buildLocation() { buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = 'foo'; - o.labels = buildUnnamed35(); + o.labels = buildUnnamed47(); o.locationId = 'foo'; - o.metadata = buildUnnamed36(); + o.metadata = buildUnnamed48(); o.name = 'foo'; } buildCounterLocation--; @@ -1827,41 +2539,41 @@ void checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed35(o.labels!); + checkUnnamed47(o.labels!); unittest.expect(o.locationId!, unittest.equals('foo')); - checkUnnamed36(o.metadata!); + checkUnnamed48(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); } buildCounterLocation--; } -core.List buildUnnamed37() => ['foo', 'foo']; +core.List buildUnnamed49() => ['foo', 'foo']; -void checkUnnamed37(core.List o) { +void checkUnnamed49(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed38() => [42, 42]; +core.List buildUnnamed50() => [42, 42]; -void checkUnnamed38(core.List o) { +void checkUnnamed50(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -core.List buildUnnamed39() => ['foo', 'foo']; +core.List buildUnnamed51() => ['foo', 'foo']; -void checkUnnamed39(core.List o) { +void checkUnnamed51(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed40() => [42, 42]; +core.List buildUnnamed52() => [42, 42]; -void checkUnnamed40(core.List o) { +void checkUnnamed52(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -1873,14 +2585,14 @@ api.MaintenanceWindow buildMaintenanceWindow() { buildCounterMaintenanceWindow++; if (buildCounterMaintenanceWindow < 3) { o.customActionTimeoutMins = 42; - o.daysOfWeek = buildUnnamed37(); - o.hoursOfDay = buildUnnamed38(); + o.daysOfWeek = buildUnnamed49(); + o.hoursOfDay = buildUnnamed50(); o.isCustomActionTimeoutEnabled = true; o.leadTimeWeek = 42; - o.months = buildUnnamed39(); + o.months = buildUnnamed51(); o.patchingMode = 'foo'; o.preference = 'foo'; - o.weeksOfMonth = buildUnnamed40(); + o.weeksOfMonth = buildUnnamed52(); } buildCounterMaintenanceWindow--; return o; @@ -1890,21 +2602,21 @@ void checkMaintenanceWindow(api.MaintenanceWindow o) { buildCounterMaintenanceWindow++; if (buildCounterMaintenanceWindow < 3) { unittest.expect(o.customActionTimeoutMins!, unittest.equals(42)); - checkUnnamed37(o.daysOfWeek!); - checkUnnamed38(o.hoursOfDay!); + checkUnnamed49(o.daysOfWeek!); + checkUnnamed50(o.hoursOfDay!); unittest.expect(o.isCustomActionTimeoutEnabled!, unittest.isTrue); unittest.expect(o.leadTimeWeek!, unittest.equals(42)); - checkUnnamed39(o.months!); + checkUnnamed51(o.months!); unittest.expect(o.patchingMode!, unittest.equals('foo')); unittest.expect(o.preference!, unittest.equals('foo')); - checkUnnamed40(o.weeksOfMonth!); + checkUnnamed52(o.weeksOfMonth!); } buildCounterMaintenanceWindow--; } -core.Map buildUnnamed41() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed53() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed41(core.Map o) { +void checkUnnamed53(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -1917,7 +2629,8 @@ api.OdbNetwork buildOdbNetwork() { if (buildCounterOdbNetwork < 3) { o.createTime = 'foo'; o.entitlementId = 'foo'; - o.labels = buildUnnamed41(); + o.gcpOracleZone = 'foo'; + o.labels = buildUnnamed53(); o.name = 'foo'; o.network = 'foo'; o.state = 'foo'; @@ -1931,7 +2644,8 @@ void checkOdbNetwork(api.OdbNetwork o) { if (buildCounterOdbNetwork < 3) { unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.entitlementId!, unittest.equals('foo')); - checkUnnamed41(o.labels!); + unittest.expect(o.gcpOracleZone!, unittest.equals('foo')); + checkUnnamed53(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.network!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); @@ -1939,9 +2653,9 @@ void checkOdbNetwork(api.OdbNetwork o) { buildCounterOdbNetwork--; } -core.Map buildUnnamed42() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed54() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed42(core.Map o) { +void checkUnnamed54(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -1954,7 +2668,7 @@ api.OdbSubnet buildOdbSubnet() { if (buildCounterOdbSubnet < 3) { o.cidrRange = 'foo'; o.createTime = 'foo'; - o.labels = buildUnnamed42(); + o.labels = buildUnnamed54(); o.name = 'foo'; o.purpose = 'foo'; o.state = 'foo'; @@ -1968,7 +2682,7 @@ void checkOdbSubnet(api.OdbSubnet o) { if (buildCounterOdbSubnet < 3) { unittest.expect(o.cidrRange!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); - checkUnnamed42(o.labels!); + checkUnnamed54(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.purpose!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); @@ -1976,7 +2690,7 @@ void checkOdbSubnet(api.OdbSubnet o) { buildCounterOdbSubnet--; } -core.Map buildUnnamed43() => { +core.Map buildUnnamed55() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1989,7 +2703,7 @@ core.Map buildUnnamed43() => { }, }; -void checkUnnamed43(core.Map o) { +void checkUnnamed55(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o['x']!) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -2003,7 +2717,7 @@ void checkUnnamed43(core.Map o) { unittest.expect(casted4['string'], unittest.equals('foo')); } -core.Map buildUnnamed44() => { +core.Map buildUnnamed56() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2016,7 +2730,7 @@ core.Map buildUnnamed44() => { }, }; -void checkUnnamed44(core.Map o) { +void checkUnnamed56(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o['x']!) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -2037,9 +2751,9 @@ api.Operation buildOperation() { if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed43(); + o.metadata = buildUnnamed55(); o.name = 'foo'; - o.response = buildUnnamed44(); + o.response = buildUnnamed56(); } buildCounterOperation--; return o; @@ -2050,13 +2764,170 @@ void checkOperation(api.Operation o) { if (buildCounterOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkStatus(o.error!); - checkUnnamed43(o.metadata!); + checkUnnamed55(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed44(o.response!); + checkUnnamed56(o.response!); } buildCounterOperation--; } +core.int buildCounterPluggableDatabase = 0; +api.PluggableDatabase buildPluggableDatabase() { + final o = api.PluggableDatabase(); + buildCounterPluggableDatabase++; + if (buildCounterPluggableDatabase < 3) { + o.createTime = 'foo'; + o.name = 'foo'; + o.ociUrl = 'foo'; + o.properties = buildPluggableDatabaseProperties(); + } + buildCounterPluggableDatabase--; + return o; +} + +void checkPluggableDatabase(api.PluggableDatabase o) { + buildCounterPluggableDatabase++; + if (buildCounterPluggableDatabase < 3) { + unittest.expect(o.createTime!, unittest.equals('foo')); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.ociUrl!, unittest.equals('foo')); + checkPluggableDatabaseProperties(o.properties!); + } + buildCounterPluggableDatabase--; +} + +core.Map buildUnnamed57() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed57(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterPluggableDatabaseConnectionStrings = 0; +api.PluggableDatabaseConnectionStrings +buildPluggableDatabaseConnectionStrings() { + final o = api.PluggableDatabaseConnectionStrings(); + buildCounterPluggableDatabaseConnectionStrings++; + if (buildCounterPluggableDatabaseConnectionStrings < 3) { + o.allConnectionStrings = buildUnnamed57(); + o.pdbDefault = 'foo'; + o.pdbIpDefault = 'foo'; + } + buildCounterPluggableDatabaseConnectionStrings--; + return o; +} + +void checkPluggableDatabaseConnectionStrings( + api.PluggableDatabaseConnectionStrings o, +) { + buildCounterPluggableDatabaseConnectionStrings++; + if (buildCounterPluggableDatabaseConnectionStrings < 3) { + checkUnnamed57(o.allConnectionStrings!); + unittest.expect(o.pdbDefault!, unittest.equals('foo')); + unittest.expect(o.pdbIpDefault!, unittest.equals('foo')); + } + buildCounterPluggableDatabaseConnectionStrings--; +} + +core.int buildCounterPluggableDatabaseNodeLevelDetails = 0; +api.PluggableDatabaseNodeLevelDetails buildPluggableDatabaseNodeLevelDetails() { + final o = api.PluggableDatabaseNodeLevelDetails(); + buildCounterPluggableDatabaseNodeLevelDetails++; + if (buildCounterPluggableDatabaseNodeLevelDetails < 3) { + o.nodeName = 'foo'; + o.openMode = 'foo'; + o.pluggableDatabaseId = 'foo'; + } + buildCounterPluggableDatabaseNodeLevelDetails--; + return o; +} + +void checkPluggableDatabaseNodeLevelDetails( + api.PluggableDatabaseNodeLevelDetails o, +) { + buildCounterPluggableDatabaseNodeLevelDetails++; + if (buildCounterPluggableDatabaseNodeLevelDetails < 3) { + unittest.expect(o.nodeName!, unittest.equals('foo')); + unittest.expect(o.openMode!, unittest.equals('foo')); + unittest.expect(o.pluggableDatabaseId!, unittest.equals('foo')); + } + buildCounterPluggableDatabaseNodeLevelDetails--; +} + +core.Map buildUnnamed58() => { + 'x': buildDefinedTagValue(), + 'y': buildDefinedTagValue(), +}; + +void checkUnnamed58(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + checkDefinedTagValue(o['x']!); + checkDefinedTagValue(o['y']!); +} + +core.Map buildUnnamed59() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed59(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.List buildUnnamed60() => [ + buildPluggableDatabaseNodeLevelDetails(), + buildPluggableDatabaseNodeLevelDetails(), +]; + +void checkUnnamed60(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkPluggableDatabaseNodeLevelDetails(o[0]); + checkPluggableDatabaseNodeLevelDetails(o[1]); +} + +core.int buildCounterPluggableDatabaseProperties = 0; +api.PluggableDatabaseProperties buildPluggableDatabaseProperties() { + final o = api.PluggableDatabaseProperties(); + buildCounterPluggableDatabaseProperties++; + if (buildCounterPluggableDatabaseProperties < 3) { + o.compartmentId = 'foo'; + o.connectionStrings = buildPluggableDatabaseConnectionStrings(); + o.containerDatabaseOcid = 'foo'; + o.databaseManagementConfig = buildDatabaseManagementConfig(); + o.definedTags = buildUnnamed58(); + o.freeformTags = buildUnnamed59(); + o.isRestricted = true; + o.lifecycleDetails = 'foo'; + o.lifecycleState = 'foo'; + o.ocid = 'foo'; + o.operationsInsightsState = 'foo'; + o.pdbName = 'foo'; + o.pdbNodeLevelDetails = buildUnnamed60(); + } + buildCounterPluggableDatabaseProperties--; + return o; +} + +void checkPluggableDatabaseProperties(api.PluggableDatabaseProperties o) { + buildCounterPluggableDatabaseProperties++; + if (buildCounterPluggableDatabaseProperties < 3) { + unittest.expect(o.compartmentId!, unittest.equals('foo')); + checkPluggableDatabaseConnectionStrings(o.connectionStrings!); + unittest.expect(o.containerDatabaseOcid!, unittest.equals('foo')); + checkDatabaseManagementConfig(o.databaseManagementConfig!); + checkUnnamed58(o.definedTags!); + checkUnnamed59(o.freeformTags!); + unittest.expect(o.isRestricted!, unittest.isTrue); + unittest.expect(o.lifecycleDetails!, unittest.equals('foo')); + unittest.expect(o.lifecycleState!, unittest.equals('foo')); + unittest.expect(o.ocid!, unittest.equals('foo')); + unittest.expect(o.operationsInsightsState!, unittest.equals('foo')); + unittest.expect(o.pdbName!, unittest.equals('foo')); + checkUnnamed60(o.pdbNodeLevelDetails!); + } + buildCounterPluggableDatabaseProperties--; +} + core.int buildCounterRestartAutonomousDatabaseRequest = 0; api.RestartAutonomousDatabaseRequest buildRestartAutonomousDatabaseRequest() { final o = api.RestartAutonomousDatabaseRequest(); @@ -2154,7 +3025,7 @@ void checkStartAutonomousDatabaseRequest(api.StartAutonomousDatabaseRequest o) { buildCounterStartAutonomousDatabaseRequest--; } -core.Map buildUnnamed45() => { +core.Map buildUnnamed61() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2167,7 +3038,7 @@ core.Map buildUnnamed45() => { }, }; -void checkUnnamed45(core.Map o) { +void checkUnnamed61(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o['x']!) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -2181,15 +3052,15 @@ void checkUnnamed45(core.Map o) { unittest.expect(casted8['string'], unittest.equals('foo')); } -core.List> buildUnnamed46() => [ - buildUnnamed45(), - buildUnnamed45(), +core.List> buildUnnamed62() => [ + buildUnnamed61(), + buildUnnamed61(), ]; -void checkUnnamed46(core.List> o) { +void checkUnnamed62(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed45(o[0]); - checkUnnamed45(o[1]); + checkUnnamed61(o[0]); + checkUnnamed61(o[1]); } core.int buildCounterStatus = 0; @@ -2198,7 +3069,7 @@ api.Status buildStatus() { buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed46(); + o.details = buildUnnamed62(); o.message = 'foo'; } buildCounterStatus--; @@ -2209,7 +3080,7 @@ void checkStatus(api.Status o) { buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed46(o.details!); + checkUnnamed62(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStatus--; @@ -2230,6 +3101,27 @@ void checkStopAutonomousDatabaseRequest(api.StopAutonomousDatabaseRequest o) { buildCounterStopAutonomousDatabaseRequest--; } +core.int buildCounterStorageSizeDetails = 0; +api.StorageSizeDetails buildStorageSizeDetails() { + final o = api.StorageSizeDetails(); + buildCounterStorageSizeDetails++; + if (buildCounterStorageSizeDetails < 3) { + o.dataStorageSizeInGbs = 42; + o.recoStorageSizeInGbs = 42; + } + buildCounterStorageSizeDetails--; + return o; +} + +void checkStorageSizeDetails(api.StorageSizeDetails o) { + buildCounterStorageSizeDetails++; + if (buildCounterStorageSizeDetails < 3) { + unittest.expect(o.dataStorageSizeInGbs!, unittest.equals(42)); + unittest.expect(o.recoStorageSizeInGbs!, unittest.equals(42)); + } + buildCounterStorageSizeDetails--; +} + core.int buildCounterSwitchoverAutonomousDatabaseRequest = 0; api.SwitchoverAutonomousDatabaseRequest buildSwitchoverAutonomousDatabaseRequest() { @@ -2298,9 +3190,9 @@ void checkTimeZone(api.TimeZone o) { buildCounterTimeZone--; } -core.List buildUnnamed47() => ['foo', 'foo']; +core.List buildUnnamed63() => ['foo', 'foo']; -void checkUnnamed47(core.List o) { +void checkUnnamed63(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2428,6 +3320,17 @@ void main() { }); }); + unittest.group('obj-schema-BackupDestinationDetails', () { + unittest.test('to-json--from-json', () async { + final o = buildBackupDestinationDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.BackupDestinationDetails.fromJson( + oJson as core.Map, + ); + checkBackupDestinationDetails(od); + }); + }); + unittest.group('obj-schema-CancelOperationRequest', () { unittest.test('to-json--from-json', () async { final o = buildCancelOperationRequest(); @@ -2516,238 +3419,469 @@ void main() { }); }); - unittest.group('obj-schema-DatabaseConnectionStringProfile', () { + unittest.group('obj-schema-DataCollectionOptionsDbSystem', () { unittest.test('to-json--from-json', () async { - final o = buildDatabaseConnectionStringProfile(); + final o = buildDataCollectionOptionsDbSystem(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.DatabaseConnectionStringProfile.fromJson( + final od = api.DataCollectionOptionsDbSystem.fromJson( oJson as core.Map, ); - checkDatabaseConnectionStringProfile(od); + checkDataCollectionOptionsDbSystem(od); }); }); - unittest.group('obj-schema-DbNode', () { + unittest.group('obj-schema-Database', () { unittest.test('to-json--from-json', () async { - final o = buildDbNode(); + final o = buildDatabase(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.DbNode.fromJson( + final od = api.Database.fromJson( oJson as core.Map, ); - checkDbNode(od); + checkDatabase(od); }); }); - unittest.group('obj-schema-DbNodeProperties', () { + unittest.group('obj-schema-DatabaseCharacterSet', () { unittest.test('to-json--from-json', () async { - final o = buildDbNodeProperties(); + final o = buildDatabaseCharacterSet(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.DbNodeProperties.fromJson( + final od = api.DatabaseCharacterSet.fromJson( oJson as core.Map, ); - checkDbNodeProperties(od); + checkDatabaseCharacterSet(od); }); }); - unittest.group('obj-schema-DbServer', () { + unittest.group('obj-schema-DatabaseConnectionStringProfile', () { unittest.test('to-json--from-json', () async { - final o = buildDbServer(); + final o = buildDatabaseConnectionStringProfile(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.DbServer.fromJson( + final od = api.DatabaseConnectionStringProfile.fromJson( oJson as core.Map, ); - checkDbServer(od); + checkDatabaseConnectionStringProfile(od); }); }); - unittest.group('obj-schema-DbServerProperties', () { + unittest.group('obj-schema-DatabaseManagementConfig', () { unittest.test('to-json--from-json', () async { - final o = buildDbServerProperties(); + final o = buildDatabaseManagementConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.DbServerProperties.fromJson( + final od = api.DatabaseManagementConfig.fromJson( oJson as core.Map, ); - checkDbServerProperties(od); + checkDatabaseManagementConfig(od); }); }); - unittest.group('obj-schema-DbSystemShape', () { + unittest.group('obj-schema-DatabaseProperties', () { unittest.test('to-json--from-json', () async { - final o = buildDbSystemShape(); + final o = buildDatabaseProperties(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.DbSystemShape.fromJson( + final od = api.DatabaseProperties.fromJson( oJson as core.Map, ); - checkDbSystemShape(od); + checkDatabaseProperties(od); }); }); - unittest.group('obj-schema-Empty', () { + unittest.group('obj-schema-DbBackupConfig', () { unittest.test('to-json--from-json', () async { - final o = buildEmpty(); + final o = buildDbBackupConfig(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Empty.fromJson( + final od = api.DbBackupConfig.fromJson( oJson as core.Map, ); - checkEmpty(od); + checkDbBackupConfig(od); }); }); - unittest.group('obj-schema-Entitlement', () { + unittest.group('obj-schema-DbHome', () { unittest.test('to-json--from-json', () async { - final o = buildEntitlement(); + final o = buildDbHome(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Entitlement.fromJson( + final od = api.DbHome.fromJson( oJson as core.Map, ); - checkEntitlement(od); + checkDbHome(od); }); }); - unittest.group('obj-schema-GenerateAutonomousDatabaseWalletRequest', () { + unittest.group('obj-schema-DbNode', () { unittest.test('to-json--from-json', () async { - final o = buildGenerateAutonomousDatabaseWalletRequest(); + final o = buildDbNode(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GenerateAutonomousDatabaseWalletRequest.fromJson( + final od = api.DbNode.fromJson( oJson as core.Map, ); - checkGenerateAutonomousDatabaseWalletRequest(od); + checkDbNode(od); }); }); - unittest.group('obj-schema-GenerateAutonomousDatabaseWalletResponse', () { + unittest.group('obj-schema-DbNodeProperties', () { unittest.test('to-json--from-json', () async { - final o = buildGenerateAutonomousDatabaseWalletResponse(); + final o = buildDbNodeProperties(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GenerateAutonomousDatabaseWalletResponse.fromJson( + final od = api.DbNodeProperties.fromJson( oJson as core.Map, ); - checkGenerateAutonomousDatabaseWalletResponse(od); + checkDbNodeProperties(od); }); }); - unittest.group('obj-schema-GiVersion', () { + unittest.group('obj-schema-DbServer', () { unittest.test('to-json--from-json', () async { - final o = buildGiVersion(); + final o = buildDbServer(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GiVersion.fromJson( + final od = api.DbServer.fromJson( oJson as core.Map, ); - checkGiVersion(od); + checkDbServer(od); }); }); - unittest.group('obj-schema-ListAutonomousDatabaseBackupsResponse', () { + unittest.group('obj-schema-DbServerProperties', () { unittest.test('to-json--from-json', () async { - final o = buildListAutonomousDatabaseBackupsResponse(); + final o = buildDbServerProperties(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.ListAutonomousDatabaseBackupsResponse.fromJson( + final od = api.DbServerProperties.fromJson( oJson as core.Map, ); - checkListAutonomousDatabaseBackupsResponse(od); + checkDbServerProperties(od); }); }); - unittest.group('obj-schema-ListAutonomousDatabaseCharacterSetsResponse', () { + unittest.group('obj-schema-DbSystem', () { unittest.test('to-json--from-json', () async { - final o = buildListAutonomousDatabaseCharacterSetsResponse(); + final o = buildDbSystem(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.ListAutonomousDatabaseCharacterSetsResponse.fromJson( + final od = api.DbSystem.fromJson( oJson as core.Map, ); - checkListAutonomousDatabaseCharacterSetsResponse(od); + checkDbSystem(od); }); }); - unittest.group('obj-schema-ListAutonomousDatabasesResponse', () { + unittest.group('obj-schema-DbSystemInitialStorageSize', () { unittest.test('to-json--from-json', () async { - final o = buildListAutonomousDatabasesResponse(); + final o = buildDbSystemInitialStorageSize(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.ListAutonomousDatabasesResponse.fromJson( + final od = api.DbSystemInitialStorageSize.fromJson( oJson as core.Map, ); - checkListAutonomousDatabasesResponse(od); + checkDbSystemInitialStorageSize(od); }); }); - unittest.group('obj-schema-ListAutonomousDbVersionsResponse', () { + unittest.group('obj-schema-DbSystemInitialStorageSizeProperties', () { unittest.test('to-json--from-json', () async { - final o = buildListAutonomousDbVersionsResponse(); + final o = buildDbSystemInitialStorageSizeProperties(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.ListAutonomousDbVersionsResponse.fromJson( + final od = api.DbSystemInitialStorageSizeProperties.fromJson( oJson as core.Map, ); - checkListAutonomousDbVersionsResponse(od); + checkDbSystemInitialStorageSizeProperties(od); }); }); - unittest.group('obj-schema-ListCloudExadataInfrastructuresResponse', () { + unittest.group('obj-schema-DbSystemOptions', () { unittest.test('to-json--from-json', () async { - final o = buildListCloudExadataInfrastructuresResponse(); + final o = buildDbSystemOptions(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.ListCloudExadataInfrastructuresResponse.fromJson( + final od = api.DbSystemOptions.fromJson( oJson as core.Map, ); - checkListCloudExadataInfrastructuresResponse(od); + checkDbSystemOptions(od); }); }); - unittest.group('obj-schema-ListCloudVmClustersResponse', () { + unittest.group('obj-schema-DbSystemProperties', () { unittest.test('to-json--from-json', () async { - final o = buildListCloudVmClustersResponse(); + final o = buildDbSystemProperties(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.ListCloudVmClustersResponse.fromJson( + final od = api.DbSystemProperties.fromJson( oJson as core.Map, ); - checkListCloudVmClustersResponse(od); + checkDbSystemProperties(od); }); }); - unittest.group('obj-schema-ListDbNodesResponse', () { + unittest.group('obj-schema-DbSystemShape', () { unittest.test('to-json--from-json', () async { - final o = buildListDbNodesResponse(); + final o = buildDbSystemShape(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.ListDbNodesResponse.fromJson( + final od = api.DbSystemShape.fromJson( oJson as core.Map, ); - checkListDbNodesResponse(od); + checkDbSystemShape(od); }); }); - unittest.group('obj-schema-ListDbServersResponse', () { + unittest.group('obj-schema-DbVersion', () { unittest.test('to-json--from-json', () async { - final o = buildListDbServersResponse(); + final o = buildDbVersion(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.ListDbServersResponse.fromJson( + final od = api.DbVersion.fromJson( oJson as core.Map, ); - checkListDbServersResponse(od); + checkDbVersion(od); }); }); - unittest.group('obj-schema-ListDbSystemShapesResponse', () { + unittest.group('obj-schema-DbVersionProperties', () { unittest.test('to-json--from-json', () async { - final o = buildListDbSystemShapesResponse(); + final o = buildDbVersionProperties(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.ListDbSystemShapesResponse.fromJson( + final od = api.DbVersionProperties.fromJson( oJson as core.Map, ); - checkListDbSystemShapesResponse(od); + checkDbVersionProperties(od); }); }); - unittest.group('obj-schema-ListEntitlementsResponse', () { + unittest.group('obj-schema-DefinedTagValue', () { unittest.test('to-json--from-json', () async { - final o = buildListEntitlementsResponse(); + final o = buildDefinedTagValue(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.ListEntitlementsResponse.fromJson( + final od = api.DefinedTagValue.fromJson( oJson as core.Map, ); - checkListEntitlementsResponse(od); + checkDefinedTagValue(od); }); }); - unittest.group('obj-schema-ListGiVersionsResponse', () { + unittest.group('obj-schema-Empty', () { + unittest.test('to-json--from-json', () async { + final o = buildEmpty(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Empty.fromJson( + oJson as core.Map, + ); + checkEmpty(od); + }); + }); + + unittest.group('obj-schema-Entitlement', () { + unittest.test('to-json--from-json', () async { + final o = buildEntitlement(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Entitlement.fromJson( + oJson as core.Map, + ); + checkEntitlement(od); + }); + }); + + unittest.group('obj-schema-GenerateAutonomousDatabaseWalletRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGenerateAutonomousDatabaseWalletRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GenerateAutonomousDatabaseWalletRequest.fromJson( + oJson as core.Map, + ); + checkGenerateAutonomousDatabaseWalletRequest(od); + }); + }); + + unittest.group('obj-schema-GenerateAutonomousDatabaseWalletResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGenerateAutonomousDatabaseWalletResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GenerateAutonomousDatabaseWalletResponse.fromJson( + oJson as core.Map, + ); + checkGenerateAutonomousDatabaseWalletResponse(od); + }); + }); + + unittest.group('obj-schema-GiVersion', () { + unittest.test('to-json--from-json', () async { + final o = buildGiVersion(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GiVersion.fromJson( + oJson as core.Map, + ); + checkGiVersion(od); + }); + }); + + unittest.group('obj-schema-IdentityConnector', () { + unittest.test('to-json--from-json', () async { + final o = buildIdentityConnector(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.IdentityConnector.fromJson( + oJson as core.Map, + ); + checkIdentityConnector(od); + }); + }); + + unittest.group('obj-schema-ListAutonomousDatabaseBackupsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListAutonomousDatabaseBackupsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListAutonomousDatabaseBackupsResponse.fromJson( + oJson as core.Map, + ); + checkListAutonomousDatabaseBackupsResponse(od); + }); + }); + + unittest.group('obj-schema-ListAutonomousDatabaseCharacterSetsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListAutonomousDatabaseCharacterSetsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListAutonomousDatabaseCharacterSetsResponse.fromJson( + oJson as core.Map, + ); + checkListAutonomousDatabaseCharacterSetsResponse(od); + }); + }); + + unittest.group('obj-schema-ListAutonomousDatabasesResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListAutonomousDatabasesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListAutonomousDatabasesResponse.fromJson( + oJson as core.Map, + ); + checkListAutonomousDatabasesResponse(od); + }); + }); + + unittest.group('obj-schema-ListAutonomousDbVersionsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListAutonomousDbVersionsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListAutonomousDbVersionsResponse.fromJson( + oJson as core.Map, + ); + checkListAutonomousDbVersionsResponse(od); + }); + }); + + unittest.group('obj-schema-ListCloudExadataInfrastructuresResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListCloudExadataInfrastructuresResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListCloudExadataInfrastructuresResponse.fromJson( + oJson as core.Map, + ); + checkListCloudExadataInfrastructuresResponse(od); + }); + }); + + unittest.group('obj-schema-ListCloudVmClustersResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListCloudVmClustersResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListCloudVmClustersResponse.fromJson( + oJson as core.Map, + ); + checkListCloudVmClustersResponse(od); + }); + }); + + unittest.group('obj-schema-ListDatabaseCharacterSetsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListDatabaseCharacterSetsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListDatabaseCharacterSetsResponse.fromJson( + oJson as core.Map, + ); + checkListDatabaseCharacterSetsResponse(od); + }); + }); + + unittest.group('obj-schema-ListDatabasesResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListDatabasesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListDatabasesResponse.fromJson( + oJson as core.Map, + ); + checkListDatabasesResponse(od); + }); + }); + + unittest.group('obj-schema-ListDbNodesResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListDbNodesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListDbNodesResponse.fromJson( + oJson as core.Map, + ); + checkListDbNodesResponse(od); + }); + }); + + unittest.group('obj-schema-ListDbServersResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListDbServersResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListDbServersResponse.fromJson( + oJson as core.Map, + ); + checkListDbServersResponse(od); + }); + }); + + unittest.group('obj-schema-ListDbSystemInitialStorageSizesResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListDbSystemInitialStorageSizesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListDbSystemInitialStorageSizesResponse.fromJson( + oJson as core.Map, + ); + checkListDbSystemInitialStorageSizesResponse(od); + }); + }); + + unittest.group('obj-schema-ListDbSystemShapesResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListDbSystemShapesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListDbSystemShapesResponse.fromJson( + oJson as core.Map, + ); + checkListDbSystemShapesResponse(od); + }); + }); + + unittest.group('obj-schema-ListDbSystemsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListDbSystemsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListDbSystemsResponse.fromJson( + oJson as core.Map, + ); + checkListDbSystemsResponse(od); + }); + }); + + unittest.group('obj-schema-ListDbVersionsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListDbVersionsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListDbVersionsResponse.fromJson( + oJson as core.Map, + ); + checkListDbVersionsResponse(od); + }); + }); + + unittest.group('obj-schema-ListEntitlementsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListEntitlementsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListEntitlementsResponse.fromJson( + oJson as core.Map, + ); + checkListEntitlementsResponse(od); + }); + }); + + unittest.group('obj-schema-ListGiVersionsResponse', () { unittest.test('to-json--from-json', () async { final o = buildListGiVersionsResponse(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); @@ -2802,6 +3936,17 @@ void main() { }); }); + unittest.group('obj-schema-ListPluggableDatabasesResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListPluggableDatabasesResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListPluggableDatabasesResponse.fromJson( + oJson as core.Map, + ); + checkListPluggableDatabasesResponse(od); + }); + }); + unittest.group('obj-schema-Location', () { unittest.test('to-json--from-json', () async { final o = buildLocation(); @@ -2857,6 +4002,50 @@ void main() { }); }); + unittest.group('obj-schema-PluggableDatabase', () { + unittest.test('to-json--from-json', () async { + final o = buildPluggableDatabase(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.PluggableDatabase.fromJson( + oJson as core.Map, + ); + checkPluggableDatabase(od); + }); + }); + + unittest.group('obj-schema-PluggableDatabaseConnectionStrings', () { + unittest.test('to-json--from-json', () async { + final o = buildPluggableDatabaseConnectionStrings(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.PluggableDatabaseConnectionStrings.fromJson( + oJson as core.Map, + ); + checkPluggableDatabaseConnectionStrings(od); + }); + }); + + unittest.group('obj-schema-PluggableDatabaseNodeLevelDetails', () { + unittest.test('to-json--from-json', () async { + final o = buildPluggableDatabaseNodeLevelDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.PluggableDatabaseNodeLevelDetails.fromJson( + oJson as core.Map, + ); + checkPluggableDatabaseNodeLevelDetails(od); + }); + }); + + unittest.group('obj-schema-PluggableDatabaseProperties', () { + unittest.test('to-json--from-json', () async { + final o = buildPluggableDatabaseProperties(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.PluggableDatabaseProperties.fromJson( + oJson as core.Map, + ); + checkPluggableDatabaseProperties(od); + }); + }); + unittest.group('obj-schema-RestartAutonomousDatabaseRequest', () { unittest.test('to-json--from-json', () async { final o = buildRestartAutonomousDatabaseRequest(); @@ -2934,6 +4123,17 @@ void main() { }); }); + unittest.group('obj-schema-StorageSizeDetails', () { + unittest.test('to-json--from-json', () async { + final o = buildStorageSizeDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.StorageSizeDetails.fromJson( + oJson as core.Map, + ); + checkStorageSizeDetails(od); + }); + }); + unittest.group('obj-schema-SwitchoverAutonomousDatabaseRequest', () { unittest.test('to-json--from-json', () async { final o = buildSwitchoverAutonomousDatabaseRequest(); @@ -3025,7 +4225,7 @@ void main() { final mock = HttpServerMock(); final res = api.OracleDatabaseApi(mock).projects.locations; final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed47(); + final arg_extraLocationTypes = buildUnnamed63(); final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; @@ -4232,6 +5432,8 @@ void main() { mock, ).projects.locations.cloudExadataInfrastructures; final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; final arg_$fields = 'foo'; @@ -4269,8 +5471,16 @@ void main() { } } unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), ); unittest.expect( queryMap['pageToken']!.first, @@ -4291,6 +5501,8 @@ void main() { ); final response = await res.list( arg_parent, + filter: arg_filter, + orderBy: arg_orderBy, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields, @@ -4426,12 +5638,651 @@ void main() { } } unittest.expect( - queryMap['cloudVmClusterId']!.first, - unittest.equals(arg_cloudVmClusterId), + queryMap['cloudVmClusterId']!.first, + unittest.equals(arg_cloudVmClusterId), + ); + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.create( + arg_request, + arg_parent, + cloudVmClusterId: arg_cloudVmClusterId, + requestId: arg_requestId, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); + }); + + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = + api.OracleDatabaseApi(mock).projects.locations.cloudVmClusters; + final arg_name = 'foo'; + final arg_force = true; + final arg_requestId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['force']!.first, + unittest.equals('$arg_force'), + ); + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete( + arg_name, + force: arg_force, + requestId: arg_requestId, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); + }); + + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = + api.OracleDatabaseApi(mock).projects.locations.cloudVmClusters; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildCloudVmCluster()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkCloudVmCluster(response as api.CloudVmCluster); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.OracleDatabaseApi(mock).projects.locations.cloudVmClusters; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildListCloudVmClustersResponse()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkListCloudVmClustersResponse( + response as api.ListCloudVmClustersResponse, + ); + }); + }); + + unittest.group('resource-ProjectsLocationsCloudVmClustersDbNodesResource', () { + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.OracleDatabaseApi( + mock, + ).projects.locations.cloudVmClusters.dbNodes; + final arg_parent = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildListDbNodesResponse()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkListDbNodesResponse(response as api.ListDbNodesResponse); + }); + }); + + unittest.group('resource-ProjectsLocationsDatabaseCharacterSetsResource', () { + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.OracleDatabaseApi(mock).projects.locations.databaseCharacterSets; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildListDatabaseCharacterSetsResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkListDatabaseCharacterSetsResponse( + response as api.ListDatabaseCharacterSetsResponse, + ); + }); + }); + + unittest.group('resource-ProjectsLocationsDatabasesResource', () { + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = api.OracleDatabaseApi(mock).projects.locations.databases; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildDatabase()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkDatabase(response as api.Database); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = api.OracleDatabaseApi(mock).projects.locations.databases; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildListDatabasesResponse()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkListDatabasesResponse(response as api.ListDatabasesResponse); + }); + }); + + unittest.group( + 'resource-ProjectsLocationsDbSystemInitialStorageSizesResource', + () { + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.OracleDatabaseApi( + mock, + ).projects.locations.dbSystemInitialStorageSizes; + final arg_parent = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildListDbSystemInitialStorageSizesResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkListDbSystemInitialStorageSizesResponse( + response as api.ListDbSystemInitialStorageSizesResponse, + ); + }); + }, + ); + + unittest.group('resource-ProjectsLocationsDbSystemShapesResource', () { + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = api.OracleDatabaseApi(mock).projects.locations.dbSystemShapes; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), ); unittest.expect( - queryMap['requestId']!.first, - unittest.equals(arg_requestId), + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), ); unittest.expect( queryMap['fields']!.first, @@ -4439,31 +6290,40 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildOperation()); + final resp = convert.json.encode(buildListDbSystemShapesResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.create( - arg_request, + final response = await res.list( arg_parent, - cloudVmClusterId: arg_cloudVmClusterId, - requestId: arg_requestId, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields, ); - checkOperation(response as api.Operation); + checkListDbSystemShapesResponse( + response as api.ListDbSystemShapesResponse, + ); }); + }); - unittest.test('method--delete', () async { + unittest.group('resource-ProjectsLocationsDbSystemsResource', () { + unittest.test('method--create', () async { final mock = HttpServerMock(); - final res = - api.OracleDatabaseApi(mock).projects.locations.cloudVmClusters; - final arg_name = 'foo'; - final arg_force = true; + final res = api.OracleDatabaseApi(mock).projects.locations.dbSystems; + final arg_request = buildDbSystem(); + final arg_parent = 'foo'; + final arg_dbSystemId = 'foo'; final arg_requestId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.DbSystem.fromJson( + json as core.Map, + ); + checkDbSystem(obj); + final path = req.url.path; var pathOffset = 0; core.int index; @@ -4496,8 +6356,8 @@ void main() { } } unittest.expect( - queryMap['force']!.first, - unittest.equals('$arg_force'), + queryMap['dbSystemId']!.first, + unittest.equals(arg_dbSystemId), ); unittest.expect( queryMap['requestId']!.first, @@ -4514,20 +6374,21 @@ void main() { }), true, ); - final response = await res.delete( - arg_name, - force: arg_force, + final response = await res.create( + arg_request, + arg_parent, + dbSystemId: arg_dbSystemId, requestId: arg_requestId, $fields: arg_$fields, ); checkOperation(response as api.Operation); }); - unittest.test('method--get', () async { + unittest.test('method--delete', () async { final mock = HttpServerMock(); - final res = - api.OracleDatabaseApi(mock).projects.locations.cloudVmClusters; + final res = api.OracleDatabaseApi(mock).projects.locations.dbSystems; final arg_name = 'foo'; + final arg_requestId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -4562,29 +6423,33 @@ void main() { ); } } + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildCloudVmCluster()); + final resp = convert.json.encode(buildOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkCloudVmCluster(response as api.CloudVmCluster); + final response = await res.delete( + arg_name, + requestId: arg_requestId, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); }); - unittest.test('method--list', () async { + unittest.test('method--get', () async { final mock = HttpServerMock(); - final res = - api.OracleDatabaseApi(mock).projects.locations.cloudVmClusters; - final arg_parent = 'foo'; - final arg_filter = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; + final res = api.OracleDatabaseApi(mock).projects.locations.dbSystems; + final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -4619,50 +6484,27 @@ void main() { ); } } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildListCloudVmClustersResponse()); + final resp = convert.json.encode(buildDbSystem()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); - final response = await res.list( - arg_parent, - filter: arg_filter, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - $fields: arg_$fields, - ); - checkListCloudVmClustersResponse( - response as api.ListCloudVmClustersResponse, - ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkDbSystem(response as api.DbSystem); }); - }); - unittest.group('resource-ProjectsLocationsCloudVmClustersDbNodesResource', () { unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = - api.OracleDatabaseApi( - mock, - ).projects.locations.cloudVmClusters.dbNodes; + final res = api.OracleDatabaseApi(mock).projects.locations.dbSystems; final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; final arg_$fields = 'foo'; @@ -4699,6 +6541,14 @@ void main() { ); } } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); unittest.expect( core.int.parse(queryMap['pageSize']!.first), unittest.equals(arg_pageSize), @@ -4713,26 +6563,29 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildListDbNodesResponse()); + final resp = convert.json.encode(buildListDbSystemsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); final response = await res.list( arg_parent, + filter: arg_filter, + orderBy: arg_orderBy, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields, ); - checkListDbNodesResponse(response as api.ListDbNodesResponse); + checkListDbSystemsResponse(response as api.ListDbSystemsResponse); }); }); - unittest.group('resource-ProjectsLocationsDbSystemShapesResource', () { + unittest.group('resource-ProjectsLocationsDbVersionsResource', () { unittest.test('method--list', () async { final mock = HttpServerMock(); - final res = api.OracleDatabaseApi(mock).projects.locations.dbSystemShapes; + final res = api.OracleDatabaseApi(mock).projects.locations.dbVersions; final arg_parent = 'foo'; + final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; final arg_$fields = 'foo'; @@ -4769,6 +6622,10 @@ void main() { ); } } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); unittest.expect( core.int.parse(queryMap['pageSize']!.first), unittest.equals(arg_pageSize), @@ -4783,20 +6640,19 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildListDbSystemShapesResponse()); + final resp = convert.json.encode(buildListDbVersionsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); final response = await res.list( arg_parent, + filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields, ); - checkListDbSystemShapesResponse( - response as api.ListDbSystemShapesResponse, - ); + checkListDbVersionsResponse(response as api.ListDbVersionsResponse); }); }); @@ -5738,4 +7594,139 @@ void main() { checkListOperationsResponse(response as api.ListOperationsResponse); }); }); + + unittest.group('resource-ProjectsLocationsPluggableDatabasesResource', () { + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = + api.OracleDatabaseApi(mock).projects.locations.pluggableDatabases; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildPluggableDatabase()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkPluggableDatabase(response as api.PluggableDatabase); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.OracleDatabaseApi(mock).projects.locations.pluggableDatabases; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildListPluggableDatabasesResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkListPluggableDatabasesResponse( + response as api.ListPluggableDatabasesResponse, + ); + }); + }); } diff --git a/generated/googleapis/test/paymentsresellersubscription/v1_test.dart b/generated/googleapis/test/paymentsresellersubscription/v1_test.dart index ec7e76d57..b2eb8105e 100644 --- a/generated/googleapis/test/paymentsresellersubscription/v1_test.dart +++ b/generated/googleapis/test/paymentsresellersubscription/v1_test.dart @@ -26,218 +26,161 @@ import 'package:test/test.dart' as unittest; import '../test_shared.dart'; -core.int buildCounterGoogleCloudPaymentsResellerSubscriptionV1Amount = 0; -api.GoogleCloudPaymentsResellerSubscriptionV1Amount -buildGoogleCloudPaymentsResellerSubscriptionV1Amount() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1Amount(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Amount++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1Amount < 3) { +core.int buildCounterAmount = 0; +api.Amount buildAmount() { + final o = api.Amount(); + buildCounterAmount++; + if (buildCounterAmount < 3) { o.amountMicros = 'foo'; o.currencyCode = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Amount--; + buildCounterAmount--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1Amount( - api.GoogleCloudPaymentsResellerSubscriptionV1Amount o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Amount++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1Amount < 3) { +void checkAmount(api.Amount o) { + buildCounterAmount++; + if (buildCounterAmount < 3) { unittest.expect(o.amountMicros!, unittest.equals('foo')); unittest.expect(o.currencyCode!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Amount--; + buildCounterAmount--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest -buildGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest < - 3) { +core.int buildCounterCancelSubscriptionRequest = 0; +api.CancelSubscriptionRequest buildCancelSubscriptionRequest() { + final o = api.CancelSubscriptionRequest(); + buildCounterCancelSubscriptionRequest++; + if (buildCounterCancelSubscriptionRequest < 3) { o.cancelImmediately = true; o.cancellationReason = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest--; + buildCounterCancelSubscriptionRequest--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest( - api.GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest < - 3) { +void checkCancelSubscriptionRequest(api.CancelSubscriptionRequest o) { + buildCounterCancelSubscriptionRequest++; + if (buildCounterCancelSubscriptionRequest < 3) { unittest.expect(o.cancelImmediately!, unittest.isTrue); unittest.expect(o.cancellationReason!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest--; + buildCounterCancelSubscriptionRequest--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse -buildGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse < - 3) { - o.subscription = - buildGoogleCloudPaymentsResellerSubscriptionV1Subscription(); +core.int buildCounterCancelSubscriptionResponse = 0; +api.CancelSubscriptionResponse buildCancelSubscriptionResponse() { + final o = api.CancelSubscriptionResponse(); + buildCounterCancelSubscriptionResponse++; + if (buildCounterCancelSubscriptionResponse < 3) { + o.subscription = buildSubscription(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse--; + buildCounterCancelSubscriptionResponse--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse( - api.GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse < - 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1Subscription(o.subscription!); +void checkCancelSubscriptionResponse(api.CancelSubscriptionResponse o) { + buildCounterCancelSubscriptionResponse++; + if (buildCounterCancelSubscriptionResponse < 3) { + checkSubscription(o.subscription!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse--; + buildCounterCancelSubscriptionResponse--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent -buildGoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent < - 3) { +core.int buildCounterCreateSubscriptionIntent = 0; +api.CreateSubscriptionIntent buildCreateSubscriptionIntent() { + final o = api.CreateSubscriptionIntent(); + buildCounterCreateSubscriptionIntent++; + if (buildCounterCreateSubscriptionIntent < 3) { o.parent = 'foo'; - o.subscription = - buildGoogleCloudPaymentsResellerSubscriptionV1Subscription(); + o.subscription = buildSubscription(); o.subscriptionId = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent--; + buildCounterCreateSubscriptionIntent--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent( - api.GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent < - 3) { +void checkCreateSubscriptionIntent(api.CreateSubscriptionIntent o) { + buildCounterCreateSubscriptionIntent++; + if (buildCounterCreateSubscriptionIntent < 3) { unittest.expect(o.parent!, unittest.equals('foo')); - checkGoogleCloudPaymentsResellerSubscriptionV1Subscription(o.subscription!); + checkSubscription(o.subscription!); unittest.expect(o.subscriptionId!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent--; + buildCounterCreateSubscriptionIntent--; } -core.int buildCounterGoogleCloudPaymentsResellerSubscriptionV1Duration = 0; -api.GoogleCloudPaymentsResellerSubscriptionV1Duration -buildGoogleCloudPaymentsResellerSubscriptionV1Duration() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1Duration(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Duration++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1Duration < 3) { +core.int buildCounterDuration = 0; +api.Duration buildDuration() { + final o = api.Duration(); + buildCounterDuration++; + if (buildCounterDuration < 3) { o.count = 42; o.unit = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Duration--; + buildCounterDuration--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1Duration( - api.GoogleCloudPaymentsResellerSubscriptionV1Duration o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Duration++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1Duration < 3) { +void checkDuration(api.Duration o) { + buildCounterDuration++; + if (buildCounterDuration < 3) { unittest.expect(o.count!, unittest.equals(42)); unittest.expect(o.unit!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Duration--; + buildCounterDuration--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent -buildGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent < - 3) { +core.int buildCounterEntitleSubscriptionIntent = 0; +api.EntitleSubscriptionIntent buildEntitleSubscriptionIntent() { + final o = api.EntitleSubscriptionIntent(); + buildCounterEntitleSubscriptionIntent++; + if (buildCounterEntitleSubscriptionIntent < 3) { o.name = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent--; + buildCounterEntitleSubscriptionIntent--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent( - api.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent < - 3) { +void checkEntitleSubscriptionIntent(api.EntitleSubscriptionIntent o) { + buildCounterEntitleSubscriptionIntent++; + if (buildCounterEntitleSubscriptionIntent < 3) { unittest.expect(o.name!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent--; + buildCounterEntitleSubscriptionIntent--; } -core.List< - api.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails -> +core.List buildUnnamed0() => [ - buildGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails(), - buildGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails(), + buildEntitleSubscriptionRequestLineItemEntitlementDetails(), + buildEntitleSubscriptionRequestLineItemEntitlementDetails(), ]; void checkUnnamed0( - core.List< - api.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails - > - o, + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails( - o[0], - ); - checkGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails( - o[1], - ); + checkEntitleSubscriptionRequestLineItemEntitlementDetails(o[0]); + checkEntitleSubscriptionRequestLineItemEntitlementDetails(o[1]); } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest -buildGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest < - 3) { +core.int buildCounterEntitleSubscriptionRequest = 0; +api.EntitleSubscriptionRequest buildEntitleSubscriptionRequest() { + final o = api.EntitleSubscriptionRequest(); + buildCounterEntitleSubscriptionRequest++; + if (buildCounterEntitleSubscriptionRequest < 3) { o.lineItemEntitlementDetails = buildUnnamed0(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest--; + buildCounterEntitleSubscriptionRequest--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest( - api.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest < - 3) { +void checkEntitleSubscriptionRequest(api.EntitleSubscriptionRequest o) { + buildCounterEntitleSubscriptionRequest++; + if (buildCounterEntitleSubscriptionRequest < 3) { checkUnnamed0(o.lineItemEntitlementDetails!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest--; + buildCounterEntitleSubscriptionRequest--; } core.List buildUnnamed1() => ['foo', 'foo']; @@ -248,334 +191,247 @@ void checkUnnamed1(core.List o) { unittest.expect(o[1], unittest.equals('foo')); } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails -buildGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails < - 3) { +core.int buildCounterEntitleSubscriptionRequestLineItemEntitlementDetails = 0; +api.EntitleSubscriptionRequestLineItemEntitlementDetails +buildEntitleSubscriptionRequestLineItemEntitlementDetails() { + final o = api.EntitleSubscriptionRequestLineItemEntitlementDetails(); + buildCounterEntitleSubscriptionRequestLineItemEntitlementDetails++; + if (buildCounterEntitleSubscriptionRequestLineItemEntitlementDetails < 3) { o.lineItemIndex = 42; o.products = buildUnnamed1(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails--; + buildCounterEntitleSubscriptionRequestLineItemEntitlementDetails--; return o; } -void -checkGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails( - api.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails - o, +void checkEntitleSubscriptionRequestLineItemEntitlementDetails( + api.EntitleSubscriptionRequestLineItemEntitlementDetails o, ) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails < - 3) { + buildCounterEntitleSubscriptionRequestLineItemEntitlementDetails++; + if (buildCounterEntitleSubscriptionRequestLineItemEntitlementDetails < 3) { unittest.expect(o.lineItemIndex!, unittest.equals(42)); checkUnnamed1(o.products!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails--; + buildCounterEntitleSubscriptionRequestLineItemEntitlementDetails--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse -buildGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse < - 3) { - o.subscription = - buildGoogleCloudPaymentsResellerSubscriptionV1Subscription(); +core.int buildCounterEntitleSubscriptionResponse = 0; +api.EntitleSubscriptionResponse buildEntitleSubscriptionResponse() { + final o = api.EntitleSubscriptionResponse(); + buildCounterEntitleSubscriptionResponse++; + if (buildCounterEntitleSubscriptionResponse < 3) { + o.subscription = buildSubscription(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse--; + buildCounterEntitleSubscriptionResponse--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse( - api.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse < - 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1Subscription(o.subscription!); +void checkEntitleSubscriptionResponse(api.EntitleSubscriptionResponse o) { + buildCounterEntitleSubscriptionResponse++; + if (buildCounterEntitleSubscriptionResponse < 3) { + checkSubscription(o.subscription!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse--; + buildCounterEntitleSubscriptionResponse--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest -buildGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest < - 3) { - o.extension = buildGoogleCloudPaymentsResellerSubscriptionV1Extension(); +core.int buildCounterExtendSubscriptionRequest = 0; +api.ExtendSubscriptionRequest buildExtendSubscriptionRequest() { + final o = api.ExtendSubscriptionRequest(); + buildCounterExtendSubscriptionRequest++; + if (buildCounterExtendSubscriptionRequest < 3) { + o.extension = buildExtension(); o.requestId = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest--; + buildCounterExtendSubscriptionRequest--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest( - api.GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest < - 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1Extension(o.extension!); +void checkExtendSubscriptionRequest(api.ExtendSubscriptionRequest o) { + buildCounterExtendSubscriptionRequest++; + if (buildCounterExtendSubscriptionRequest < 3) { + checkExtension(o.extension!); unittest.expect(o.requestId!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest--; + buildCounterExtendSubscriptionRequest--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse -buildGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse < - 3) { +core.int buildCounterExtendSubscriptionResponse = 0; +api.ExtendSubscriptionResponse buildExtendSubscriptionResponse() { + final o = api.ExtendSubscriptionResponse(); + buildCounterExtendSubscriptionResponse++; + if (buildCounterExtendSubscriptionResponse < 3) { o.cycleEndTime = 'foo'; o.freeTrialEndTime = 'foo'; o.renewalTime = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse--; + buildCounterExtendSubscriptionResponse--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse( - api.GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse < - 3) { +void checkExtendSubscriptionResponse(api.ExtendSubscriptionResponse o) { + buildCounterExtendSubscriptionResponse++; + if (buildCounterExtendSubscriptionResponse < 3) { unittest.expect(o.cycleEndTime!, unittest.equals('foo')); unittest.expect(o.freeTrialEndTime!, unittest.equals('foo')); unittest.expect(o.renewalTime!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse--; + buildCounterExtendSubscriptionResponse--; } -core.int buildCounterGoogleCloudPaymentsResellerSubscriptionV1Extension = 0; -api.GoogleCloudPaymentsResellerSubscriptionV1Extension -buildGoogleCloudPaymentsResellerSubscriptionV1Extension() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1Extension(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Extension++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1Extension < 3) { - o.duration = buildGoogleCloudPaymentsResellerSubscriptionV1Duration(); +core.int buildCounterExtension = 0; +api.Extension buildExtension() { + final o = api.Extension(); + buildCounterExtension++; + if (buildCounterExtension < 3) { + o.duration = buildDuration(); o.partnerUserToken = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Extension--; + buildCounterExtension--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1Extension( - api.GoogleCloudPaymentsResellerSubscriptionV1Extension o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Extension++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1Extension < 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1Duration(o.duration!); +void checkExtension(api.Extension o) { + buildCounterExtension++; + if (buildCounterExtension < 3) { + checkDuration(o.duration!); unittest.expect(o.partnerUserToken!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Extension--; + buildCounterExtension--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest -buildGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest < - 3) { +core.int buildCounterFindEligiblePromotionsRequest = 0; +api.FindEligiblePromotionsRequest buildFindEligiblePromotionsRequest() { + final o = api.FindEligiblePromotionsRequest(); + buildCounterFindEligiblePromotionsRequest++; + if (buildCounterFindEligiblePromotionsRequest < 3) { o.filter = 'foo'; o.pageSize = 42; o.pageToken = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest--; + buildCounterFindEligiblePromotionsRequest--; return o; } -void -checkGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest( - api.GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest < - 3) { +void checkFindEligiblePromotionsRequest(api.FindEligiblePromotionsRequest o) { + buildCounterFindEligiblePromotionsRequest++; + if (buildCounterFindEligiblePromotionsRequest < 3) { unittest.expect(o.filter!, unittest.equals('foo')); unittest.expect(o.pageSize!, unittest.equals(42)); unittest.expect(o.pageToken!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest--; + buildCounterFindEligiblePromotionsRequest--; } -core.List -buildUnnamed2() => [ - buildGoogleCloudPaymentsResellerSubscriptionV1Promotion(), - buildGoogleCloudPaymentsResellerSubscriptionV1Promotion(), +core.List buildUnnamed2() => [ + buildPromotion(), + buildPromotion(), ]; -void checkUnnamed2( - core.List o, -) { +void checkUnnamed2(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudPaymentsResellerSubscriptionV1Promotion(o[0]); - checkGoogleCloudPaymentsResellerSubscriptionV1Promotion(o[1]); + checkPromotion(o[0]); + checkPromotion(o[1]); } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse -buildGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse < - 3) { +core.int buildCounterFindEligiblePromotionsResponse = 0; +api.FindEligiblePromotionsResponse buildFindEligiblePromotionsResponse() { + final o = api.FindEligiblePromotionsResponse(); + buildCounterFindEligiblePromotionsResponse++; + if (buildCounterFindEligiblePromotionsResponse < 3) { o.nextPageToken = 'foo'; o.promotions = buildUnnamed2(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse--; + buildCounterFindEligiblePromotionsResponse--; return o; } -void -checkGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse( - api.GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse < - 3) { +void checkFindEligiblePromotionsResponse(api.FindEligiblePromotionsResponse o) { + buildCounterFindEligiblePromotionsResponse++; + if (buildCounterFindEligiblePromotionsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); checkUnnamed2(o.promotions!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse--; + buildCounterFindEligiblePromotionsResponse--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails -buildGoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails < - 3) { +core.int buildCounterFiniteBillingCycleDetails = 0; +api.FiniteBillingCycleDetails buildFiniteBillingCycleDetails() { + final o = api.FiniteBillingCycleDetails(); + buildCounterFiniteBillingCycleDetails++; + if (buildCounterFiniteBillingCycleDetails < 3) { o.billingCycleCountLimit = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails--; + buildCounterFiniteBillingCycleDetails--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails( - api.GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails < - 3) { +void checkFiniteBillingCycleDetails(api.FiniteBillingCycleDetails o) { + buildCounterFiniteBillingCycleDetails++; + if (buildCounterFiniteBillingCycleDetails < 3) { unittest.expect(o.billingCycleCountLimit!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails--; + buildCounterFiniteBillingCycleDetails--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest -buildGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest < - 3) { - o.intentPayload = - buildGoogleCloudPaymentsResellerSubscriptionV1IntentPayload(); +core.int buildCounterGenerateUserSessionRequest = 0; +api.GenerateUserSessionRequest buildGenerateUserSessionRequest() { + final o = api.GenerateUserSessionRequest(); + buildCounterGenerateUserSessionRequest++; + if (buildCounterGenerateUserSessionRequest < 3) { + o.intentPayload = buildIntentPayload(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest--; + buildCounterGenerateUserSessionRequest--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest( - api.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest < - 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1IntentPayload( - o.intentPayload!, - ); +void checkGenerateUserSessionRequest(api.GenerateUserSessionRequest o) { + buildCounterGenerateUserSessionRequest++; + if (buildCounterGenerateUserSessionRequest < 3) { + checkIntentPayload(o.intentPayload!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest--; + buildCounterGenerateUserSessionRequest--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse -buildGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse < - 3) { - o.userSession = buildGoogleCloudPaymentsResellerSubscriptionV1UserSession(); +core.int buildCounterGenerateUserSessionResponse = 0; +api.GenerateUserSessionResponse buildGenerateUserSessionResponse() { + final o = api.GenerateUserSessionResponse(); + buildCounterGenerateUserSessionResponse++; + if (buildCounterGenerateUserSessionResponse < 3) { + o.userSession = buildUserSession(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse--; + buildCounterGenerateUserSessionResponse--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse( - api.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse < - 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1UserSession(o.userSession!); +void checkGenerateUserSessionResponse(api.GenerateUserSessionResponse o) { + buildCounterGenerateUserSessionResponse++; + if (buildCounterGenerateUserSessionResponse < 3) { + checkUserSession(o.userSession!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse--; + buildCounterGenerateUserSessionResponse--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload = 0; -api.GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload -buildGoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload < - 3) { +core.int buildCounterGoogleHomePayload = 0; +api.GoogleHomePayload buildGoogleHomePayload() { + final o = api.GoogleHomePayload(); + buildCounterGoogleHomePayload++; + if (buildCounterGoogleHomePayload < 3) { o.attachedToGoogleStructure = true; + o.googleStructureId = 'foo'; o.partnerStructureId = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload--; + buildCounterGoogleHomePayload--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload( - api.GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload < - 3) { +void checkGoogleHomePayload(api.GoogleHomePayload o) { + buildCounterGoogleHomePayload++; + if (buildCounterGoogleHomePayload < 3) { unittest.expect(o.attachedToGoogleStructure!, unittest.isTrue); + unittest.expect(o.googleStructureId!, unittest.equals('foo')); unittest.expect(o.partnerStructureId!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload--; + buildCounterGoogleHomePayload--; } core.List buildUnnamed3() => ['foo', 'foo']; @@ -586,186 +442,164 @@ void checkUnnamed3(core.List o) { unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload -buildGoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload < - 3) { +core.int buildCounterGoogleOnePayload = 0; +api.GoogleOnePayload buildGoogleOnePayload() { + final o = api.GoogleOnePayload(); + buildCounterGoogleOnePayload++; + if (buildCounterGoogleOnePayload < 3) { o.campaigns = buildUnnamed3(); o.offering = 'foo'; o.salesChannel = 'foo'; o.storeId = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload--; + buildCounterGoogleOnePayload--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload( - api.GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload < - 3) { +void checkGoogleOnePayload(api.GoogleOnePayload o) { + buildCounterGoogleOnePayload++; + if (buildCounterGoogleOnePayload < 3) { checkUnnamed3(o.campaigns!); unittest.expect(o.offering!, unittest.equals('foo')); unittest.expect(o.salesChannel!, unittest.equals('foo')); unittest.expect(o.storeId!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload--; + buildCounterGoogleOnePayload--; } -core.int buildCounterGoogleCloudPaymentsResellerSubscriptionV1IntentPayload = 0; -api.GoogleCloudPaymentsResellerSubscriptionV1IntentPayload -buildGoogleCloudPaymentsResellerSubscriptionV1IntentPayload() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1IntentPayload(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1IntentPayload++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1IntentPayload < 3) { - o.createIntent = - buildGoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent(); - o.entitleIntent = - buildGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent(); +core.int buildCounterGoogleTypeLocalizedText = 0; +api.GoogleTypeLocalizedText buildGoogleTypeLocalizedText() { + final o = api.GoogleTypeLocalizedText(); + buildCounterGoogleTypeLocalizedText++; + if (buildCounterGoogleTypeLocalizedText < 3) { + o.languageCode = 'foo'; + o.text = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1IntentPayload--; + buildCounterGoogleTypeLocalizedText--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1IntentPayload( - api.GoogleCloudPaymentsResellerSubscriptionV1IntentPayload o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1IntentPayload++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1IntentPayload < 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent( - o.createIntent!, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent( - o.entitleIntent!, - ); +void checkGoogleTypeLocalizedText(api.GoogleTypeLocalizedText o) { + buildCounterGoogleTypeLocalizedText++; + if (buildCounterGoogleTypeLocalizedText < 3) { + unittest.expect(o.languageCode!, unittest.equals('foo')); + unittest.expect(o.text!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1IntentPayload--; + buildCounterGoogleTypeLocalizedText--; } -core.List -buildUnnamed4() => [ - buildGoogleCloudPaymentsResellerSubscriptionV1Product(), - buildGoogleCloudPaymentsResellerSubscriptionV1Product(), -]; +core.int buildCounterIntentPayload = 0; +api.IntentPayload buildIntentPayload() { + final o = api.IntentPayload(); + buildCounterIntentPayload++; + if (buildCounterIntentPayload < 3) { + o.createIntent = buildCreateSubscriptionIntent(); + o.entitleIntent = buildEntitleSubscriptionIntent(); + } + buildCounterIntentPayload--; + return o; +} -void checkUnnamed4( - core.List o, -) { +void checkIntentPayload(api.IntentPayload o) { + buildCounterIntentPayload++; + if (buildCounterIntentPayload < 3) { + checkCreateSubscriptionIntent(o.createIntent!); + checkEntitleSubscriptionIntent(o.entitleIntent!); + } + buildCounterIntentPayload--; +} + +core.List buildUnnamed4() => [buildProduct(), buildProduct()]; + +void checkUnnamed4(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudPaymentsResellerSubscriptionV1Product(o[0]); - checkGoogleCloudPaymentsResellerSubscriptionV1Product(o[1]); + checkProduct(o[0]); + checkProduct(o[1]); } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse = 0; -api.GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse -buildGoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse < - 3) { +core.int buildCounterListProductsResponse = 0; +api.ListProductsResponse buildListProductsResponse() { + final o = api.ListProductsResponse(); + buildCounterListProductsResponse++; + if (buildCounterListProductsResponse < 3) { o.nextPageToken = 'foo'; o.products = buildUnnamed4(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse--; + buildCounterListProductsResponse--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse( - api.GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse < - 3) { +void checkListProductsResponse(api.ListProductsResponse o) { + buildCounterListProductsResponse++; + if (buildCounterListProductsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); checkUnnamed4(o.products!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse--; + buildCounterListProductsResponse--; } -core.List -buildUnnamed5() => [ - buildGoogleCloudPaymentsResellerSubscriptionV1Promotion(), - buildGoogleCloudPaymentsResellerSubscriptionV1Promotion(), +core.List buildUnnamed5() => [ + buildPromotion(), + buildPromotion(), ]; -void checkUnnamed5( - core.List o, -) { +void checkUnnamed5(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudPaymentsResellerSubscriptionV1Promotion(o[0]); - checkGoogleCloudPaymentsResellerSubscriptionV1Promotion(o[1]); + checkPromotion(o[0]); + checkPromotion(o[1]); } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse = 0; -api.GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse -buildGoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse < - 3) { +core.int buildCounterListPromotionsResponse = 0; +api.ListPromotionsResponse buildListPromotionsResponse() { + final o = api.ListPromotionsResponse(); + buildCounterListPromotionsResponse++; + if (buildCounterListPromotionsResponse < 3) { o.nextPageToken = 'foo'; o.promotions = buildUnnamed5(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse--; + buildCounterListPromotionsResponse--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse( - api.GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse < - 3) { +void checkListPromotionsResponse(api.ListPromotionsResponse o) { + buildCounterListPromotionsResponse++; + if (buildCounterListPromotionsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); checkUnnamed5(o.promotions!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse--; + buildCounterListPromotionsResponse--; } -core.int buildCounterGoogleCloudPaymentsResellerSubscriptionV1Location = 0; -api.GoogleCloudPaymentsResellerSubscriptionV1Location -buildGoogleCloudPaymentsResellerSubscriptionV1Location() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1Location(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Location++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1Location < 3) { +core.int buildCounterLocation = 0; +api.Location buildLocation() { + final o = api.Location(); + buildCounterLocation++; + if (buildCounterLocation < 3) { o.postalCode = 'foo'; o.regionCode = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Location--; + buildCounterLocation--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1Location( - api.GoogleCloudPaymentsResellerSubscriptionV1Location o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Location++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1Location < 3) { +void checkLocation(api.Location o) { + buildCounterLocation++; + if (buildCounterLocation < 3) { unittest.expect(o.postalCode!, unittest.equals('foo')); unittest.expect(o.regionCode!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Location--; + buildCounterLocation--; } -core.List -buildUnnamed6() => [ - buildGoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig(), - buildGoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig(), +core.List buildUnnamed6() => [ + buildProductPriceConfig(), + buildProductPriceConfig(), ]; -void checkUnnamed6( - core.List o, -) { +void checkUnnamed6(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig(o[0]); - checkGoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig(o[1]); + checkProductPriceConfig(o[0]); + checkProductPriceConfig(o[1]); } core.List buildUnnamed7() => ['foo', 'foo']; @@ -787,1861 +621,1321 @@ void checkUnnamed8(core.List o) { checkGoogleTypeLocalizedText(o[1]); } -core.int buildCounterGoogleCloudPaymentsResellerSubscriptionV1Product = 0; -api.GoogleCloudPaymentsResellerSubscriptionV1Product -buildGoogleCloudPaymentsResellerSubscriptionV1Product() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1Product(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Product++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1Product < 3) { +core.int buildCounterProduct = 0; +api.Product buildProduct() { + final o = api.Product(); + buildCounterProduct++; + if (buildCounterProduct < 3) { o.bundleDetails = buildProductBundleDetails(); - o.finiteBillingCycleDetails = - buildGoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails(); + o.finiteBillingCycleDetails = buildFiniteBillingCycleDetails(); o.name = 'foo'; o.priceConfigs = buildUnnamed6(); o.productType = 'foo'; o.regionCodes = buildUnnamed7(); - o.subscriptionBillingCycleDuration = - buildGoogleCloudPaymentsResellerSubscriptionV1Duration(); + o.subscriptionBillingCycleDuration = buildDuration(); o.titles = buildUnnamed8(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Product--; + buildCounterProduct--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1Product( - api.GoogleCloudPaymentsResellerSubscriptionV1Product o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Product++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1Product < 3) { +void checkProduct(api.Product o) { + buildCounterProduct++; + if (buildCounterProduct < 3) { checkProductBundleDetails(o.bundleDetails!); - checkGoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails( - o.finiteBillingCycleDetails!, - ); + checkFiniteBillingCycleDetails(o.finiteBillingCycleDetails!); unittest.expect(o.name!, unittest.equals('foo')); checkUnnamed6(o.priceConfigs!); unittest.expect(o.productType!, unittest.equals('foo')); checkUnnamed7(o.regionCodes!); - checkGoogleCloudPaymentsResellerSubscriptionV1Duration( - o.subscriptionBillingCycleDuration!, - ); + checkDuration(o.subscriptionBillingCycleDuration!); checkUnnamed8(o.titles!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Product--; + buildCounterProduct--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement -buildGoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement < - 3) { +core.List buildUnnamed9() => [ + buildProductBundleDetailsBundleElement(), + buildProductBundleDetailsBundleElement(), +]; + +void checkUnnamed9(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkProductBundleDetailsBundleElement(o[0]); + checkProductBundleDetailsBundleElement(o[1]); +} + +core.int buildCounterProductBundleDetails = 0; +api.ProductBundleDetails buildProductBundleDetails() { + final o = api.ProductBundleDetails(); + buildCounterProductBundleDetails++; + if (buildCounterProductBundleDetails < 3) { + o.bundleElements = buildUnnamed9(); + o.entitlementMode = 'foo'; + } + buildCounterProductBundleDetails--; + return o; +} + +void checkProductBundleDetails(api.ProductBundleDetails o) { + buildCounterProductBundleDetails++; + if (buildCounterProductBundleDetails < 3) { + checkUnnamed9(o.bundleElements!); + unittest.expect(o.entitlementMode!, unittest.equals('foo')); + } + buildCounterProductBundleDetails--; +} + +core.int buildCounterProductBundleDetailsBundleElement = 0; +api.ProductBundleDetailsBundleElement buildProductBundleDetailsBundleElement() { + final o = api.ProductBundleDetailsBundleElement(); + buildCounterProductBundleDetailsBundleElement++; + if (buildCounterProductBundleDetailsBundleElement < 3) { o.product = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement--; + buildCounterProductBundleDetailsBundleElement--; return o; } -void -checkGoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement( - api.GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement - o, +void checkProductBundleDetailsBundleElement( + api.ProductBundleDetailsBundleElement o, ) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement < - 3) { + buildCounterProductBundleDetailsBundleElement++; + if (buildCounterProductBundleDetailsBundleElement < 3) { unittest.expect(o.product!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement--; + buildCounterProductBundleDetailsBundleElement--; } -core.int buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductPayload = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1ProductPayload -buildGoogleCloudPaymentsResellerSubscriptionV1ProductPayload() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1ProductPayload(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductPayload++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductPayload < 3) { - o.googleHomePayload = - buildGoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload(); - o.googleOnePayload = - buildGoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload(); - o.youtubePayload = - buildGoogleCloudPaymentsResellerSubscriptionV1YoutubePayload(); +core.int buildCounterProductPayload = 0; +api.ProductPayload buildProductPayload() { + final o = api.ProductPayload(); + buildCounterProductPayload++; + if (buildCounterProductPayload < 3) { + o.googleHomePayload = buildGoogleHomePayload(); + o.googleOnePayload = buildGoogleOnePayload(); + o.youtubePayload = buildYoutubePayload(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductPayload--; + buildCounterProductPayload--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1ProductPayload( - api.GoogleCloudPaymentsResellerSubscriptionV1ProductPayload o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductPayload++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductPayload < 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload( - o.googleHomePayload!, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload( - o.googleOnePayload!, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1YoutubePayload( - o.youtubePayload!, - ); +void checkProductPayload(api.ProductPayload o) { + buildCounterProductPayload++; + if (buildCounterProductPayload < 3) { + checkGoogleHomePayload(o.googleHomePayload!); + checkGoogleOnePayload(o.googleOnePayload!); + checkYoutubePayload(o.youtubePayload!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductPayload--; + buildCounterProductPayload--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig = 0; -api.GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig -buildGoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig < - 3) { - o.amount = buildGoogleCloudPaymentsResellerSubscriptionV1Amount(); +core.int buildCounterProductPriceConfig = 0; +api.ProductPriceConfig buildProductPriceConfig() { + final o = api.ProductPriceConfig(); + buildCounterProductPriceConfig++; + if (buildCounterProductPriceConfig < 3) { + o.amount = buildAmount(); o.regionCode = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig--; + buildCounterProductPriceConfig--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig( - api.GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig < - 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1Amount(o.amount!); +void checkProductPriceConfig(api.ProductPriceConfig o) { + buildCounterProductPriceConfig++; + if (buildCounterProductPriceConfig < 3) { + checkAmount(o.amount!); unittest.expect(o.regionCode!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig--; + buildCounterProductPriceConfig--; } -core.List buildUnnamed9() => ['foo', 'foo']; +core.List buildUnnamed10() => ['foo', 'foo']; -void checkUnnamed9(core.List o) { +void checkUnnamed10(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed10() => ['foo', 'foo']; +core.List buildUnnamed11() => ['foo', 'foo']; -void checkUnnamed10(core.List o) { +void checkUnnamed11(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed11() => [ +core.List buildUnnamed12() => [ buildGoogleTypeLocalizedText(), buildGoogleTypeLocalizedText(), ]; -void checkUnnamed11(core.List o) { +void checkUnnamed12(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleTypeLocalizedText(o[0]); checkGoogleTypeLocalizedText(o[1]); } -core.int buildCounterGoogleCloudPaymentsResellerSubscriptionV1Promotion = 0; -api.GoogleCloudPaymentsResellerSubscriptionV1Promotion -buildGoogleCloudPaymentsResellerSubscriptionV1Promotion() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1Promotion(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Promotion++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1Promotion < 3) { - o.applicableProducts = buildUnnamed9(); +core.int buildCounterPromotion = 0; +api.Promotion buildPromotion() { + final o = api.Promotion(); + buildCounterPromotion++; + if (buildCounterPromotion < 3) { + o.applicableProducts = buildUnnamed10(); o.endTime = 'foo'; - o.freeTrialDuration = - buildGoogleCloudPaymentsResellerSubscriptionV1Duration(); - o.introductoryPricingDetails = - buildGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails(); + o.freeTrialDuration = buildDuration(); + o.introductoryPricingDetails = buildPromotionIntroductoryPricingDetails(); o.name = 'foo'; o.promotionType = 'foo'; - o.regionCodes = buildUnnamed10(); + o.regionCodes = buildUnnamed11(); o.startTime = 'foo'; - o.titles = buildUnnamed11(); + o.titles = buildUnnamed12(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Promotion--; + buildCounterPromotion--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1Promotion( - api.GoogleCloudPaymentsResellerSubscriptionV1Promotion o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Promotion++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1Promotion < 3) { - checkUnnamed9(o.applicableProducts!); +void checkPromotion(api.Promotion o) { + buildCounterPromotion++; + if (buildCounterPromotion < 3) { + checkUnnamed10(o.applicableProducts!); unittest.expect(o.endTime!, unittest.equals('foo')); - checkGoogleCloudPaymentsResellerSubscriptionV1Duration( - o.freeTrialDuration!, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails( - o.introductoryPricingDetails!, - ); + checkDuration(o.freeTrialDuration!); + checkPromotionIntroductoryPricingDetails(o.introductoryPricingDetails!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.promotionType!, unittest.equals('foo')); - checkUnnamed10(o.regionCodes!); + checkUnnamed11(o.regionCodes!); unittest.expect(o.startTime!, unittest.equals('foo')); - checkUnnamed11(o.titles!); + checkUnnamed12(o.titles!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Promotion--; + buildCounterPromotion--; } -core.List< - api.GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec -> -buildUnnamed12() => [ - buildGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec(), - buildGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec(), +core.List +buildUnnamed13() => [ + buildPromotionIntroductoryPricingDetailsIntroductoryPricingSpec(), + buildPromotionIntroductoryPricingDetailsIntroductoryPricingSpec(), ]; -void checkUnnamed12( - core.List< - api.GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec - > - o, +void checkUnnamed13( + core.List o, ) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec( - o[0], - ); - checkGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec( - o[1], - ); + checkPromotionIntroductoryPricingDetailsIntroductoryPricingSpec(o[0]); + checkPromotionIntroductoryPricingDetailsIntroductoryPricingSpec(o[1]); } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails -buildGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails < - 3) { - o.introductoryPricingSpecs = buildUnnamed12(); +core.int buildCounterPromotionIntroductoryPricingDetails = 0; +api.PromotionIntroductoryPricingDetails +buildPromotionIntroductoryPricingDetails() { + final o = api.PromotionIntroductoryPricingDetails(); + buildCounterPromotionIntroductoryPricingDetails++; + if (buildCounterPromotionIntroductoryPricingDetails < 3) { + o.introductoryPricingSpecs = buildUnnamed13(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails--; + buildCounterPromotionIntroductoryPricingDetails--; return o; } -void -checkGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails( - api.GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails - o, +void checkPromotionIntroductoryPricingDetails( + api.PromotionIntroductoryPricingDetails o, ) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails < - 3) { - checkUnnamed12(o.introductoryPricingSpecs!); + buildCounterPromotionIntroductoryPricingDetails++; + if (buildCounterPromotionIntroductoryPricingDetails < 3) { + checkUnnamed13(o.introductoryPricingSpecs!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails--; + buildCounterPromotionIntroductoryPricingDetails--; } core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec -buildGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec < - 3) { - o.discountAmount = buildGoogleCloudPaymentsResellerSubscriptionV1Amount(); +buildCounterPromotionIntroductoryPricingDetailsIntroductoryPricingSpec = 0; +api.PromotionIntroductoryPricingDetailsIntroductoryPricingSpec +buildPromotionIntroductoryPricingDetailsIntroductoryPricingSpec() { + final o = api.PromotionIntroductoryPricingDetailsIntroductoryPricingSpec(); + buildCounterPromotionIntroductoryPricingDetailsIntroductoryPricingSpec++; + if (buildCounterPromotionIntroductoryPricingDetailsIntroductoryPricingSpec < + 3) { + o.discountAmount = buildAmount(); o.discountRatioMicros = 'foo'; o.recurrenceCount = 42; o.regionCode = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec--; + buildCounterPromotionIntroductoryPricingDetailsIntroductoryPricingSpec--; return o; } -void -checkGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec( - api.GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec - o, +void checkPromotionIntroductoryPricingDetailsIntroductoryPricingSpec( + api.PromotionIntroductoryPricingDetailsIntroductoryPricingSpec o, ) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec < + buildCounterPromotionIntroductoryPricingDetailsIntroductoryPricingSpec++; + if (buildCounterPromotionIntroductoryPricingDetailsIntroductoryPricingSpec < 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1Amount(o.discountAmount!); + checkAmount(o.discountAmount!); unittest.expect(o.discountRatioMicros!, unittest.equals('foo')); unittest.expect(o.recurrenceCount!, unittest.equals(42)); unittest.expect(o.regionCode!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec--; + buildCounterPromotionIntroductoryPricingDetailsIntroductoryPricingSpec--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest -buildGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest < - 3) {} - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest--; +core.int buildCounterResumeSubscriptionRequest = 0; +api.ResumeSubscriptionRequest buildResumeSubscriptionRequest() { + final o = api.ResumeSubscriptionRequest(); + buildCounterResumeSubscriptionRequest++; + if (buildCounterResumeSubscriptionRequest < 3) {} + buildCounterResumeSubscriptionRequest--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest( - api.GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest < - 3) {} - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest--; +void checkResumeSubscriptionRequest(api.ResumeSubscriptionRequest o) { + buildCounterResumeSubscriptionRequest++; + if (buildCounterResumeSubscriptionRequest < 3) {} + buildCounterResumeSubscriptionRequest--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse -buildGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse < - 3) { - o.subscription = - buildGoogleCloudPaymentsResellerSubscriptionV1Subscription(); +core.int buildCounterResumeSubscriptionResponse = 0; +api.ResumeSubscriptionResponse buildResumeSubscriptionResponse() { + final o = api.ResumeSubscriptionResponse(); + buildCounterResumeSubscriptionResponse++; + if (buildCounterResumeSubscriptionResponse < 3) { + o.subscription = buildSubscription(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse--; + buildCounterResumeSubscriptionResponse--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse( - api.GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse < - 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1Subscription(o.subscription!); +void checkResumeSubscriptionResponse(api.ResumeSubscriptionResponse o) { + buildCounterResumeSubscriptionResponse++; + if (buildCounterResumeSubscriptionResponse < 3) { + checkSubscription(o.subscription!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse--; + buildCounterResumeSubscriptionResponse--; } -core.int buildCounterGoogleCloudPaymentsResellerSubscriptionV1ServicePeriod = 0; -api.GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod -buildGoogleCloudPaymentsResellerSubscriptionV1ServicePeriod() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ServicePeriod++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ServicePeriod < 3) { +core.int buildCounterServicePeriod = 0; +api.ServicePeriod buildServicePeriod() { + final o = api.ServicePeriod(); + buildCounterServicePeriod++; + if (buildCounterServicePeriod < 3) { o.endTime = 'foo'; o.startTime = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ServicePeriod--; + buildCounterServicePeriod--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1ServicePeriod( - api.GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ServicePeriod++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1ServicePeriod < 3) { +void checkServicePeriod(api.ServicePeriod o) { + buildCounterServicePeriod++; + if (buildCounterServicePeriod < 3) { unittest.expect(o.endTime!, unittest.equals('foo')); unittest.expect(o.startTime!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1ServicePeriod--; + buildCounterServicePeriod--; } -core.List -buildUnnamed13() => [ - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem(), - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem(), +core.List buildUnnamed14() => [ + buildSubscriptionLineItem(), + buildSubscriptionLineItem(), ]; -void checkUnnamed13( - core.List - o, -) { +void checkUnnamed14(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem(o[0]); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem(o[1]); + checkSubscriptionLineItem(o[0]); + checkSubscriptionLineItem(o[1]); } -core.List buildUnnamed14() => ['foo', 'foo']; +core.List buildUnnamed15() => ['foo', 'foo']; -void checkUnnamed14(core.List o) { +void checkUnnamed15(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List< - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec -> -buildUnnamed15() => [ - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec(), - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec(), +core.List buildUnnamed16() => [ + buildSubscriptionPromotionSpec(), + buildSubscriptionPromotionSpec(), ]; -void checkUnnamed15( - core.List< - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec - > - o, -) { +void checkUnnamed16(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec(o[0]); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec(o[1]); + checkSubscriptionPromotionSpec(o[0]); + checkSubscriptionPromotionSpec(o[1]); } -core.List buildUnnamed16() => ['foo', 'foo']; +core.List buildUnnamed17() => ['foo', 'foo']; -void checkUnnamed16(core.List o) { +void checkUnnamed17(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudPaymentsResellerSubscriptionV1Subscription = 0; -api.GoogleCloudPaymentsResellerSubscriptionV1Subscription -buildGoogleCloudPaymentsResellerSubscriptionV1Subscription() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1Subscription(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Subscription++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1Subscription < 3) { - o.cancellationDetails = - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails(); +core.int buildCounterSubscription = 0; +api.Subscription buildSubscription() { + final o = api.Subscription(); + buildCounterSubscription++; + if (buildCounterSubscription < 3) { + o.cancellationDetails = buildSubscriptionCancellationDetails(); o.createTime = 'foo'; o.cycleEndTime = 'foo'; o.endUserEntitled = true; o.freeTrialEndTime = 'foo'; - o.lineItems = buildUnnamed13(); - o.migrationDetails = - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails(); + o.lineItems = buildUnnamed14(); + o.migrationDetails = buildSubscriptionMigrationDetails(); o.name = 'foo'; o.partnerUserToken = 'foo'; o.processingState = 'foo'; - o.products = buildUnnamed14(); - o.promotionSpecs = buildUnnamed15(); - o.promotions = buildUnnamed16(); + o.products = buildUnnamed15(); + o.promotionSpecs = buildUnnamed16(); + o.promotions = buildUnnamed17(); o.purchaseTime = 'foo'; o.redirectUri = 'foo'; o.renewalTime = 'foo'; - o.serviceLocation = - buildGoogleCloudPaymentsResellerSubscriptionV1Location(); + o.serviceLocation = buildLocation(); o.state = 'foo'; o.updateTime = 'foo'; - o.upgradeDowngradeDetails = - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails(); + o.upgradeDowngradeDetails = buildSubscriptionUpgradeDowngradeDetails(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Subscription--; + buildCounterSubscription--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1Subscription( - api.GoogleCloudPaymentsResellerSubscriptionV1Subscription o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Subscription++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1Subscription < 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails( - o.cancellationDetails!, - ); +void checkSubscription(api.Subscription o) { + buildCounterSubscription++; + if (buildCounterSubscription < 3) { + checkSubscriptionCancellationDetails(o.cancellationDetails!); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.cycleEndTime!, unittest.equals('foo')); unittest.expect(o.endUserEntitled!, unittest.isTrue); unittest.expect(o.freeTrialEndTime!, unittest.equals('foo')); - checkUnnamed13(o.lineItems!); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails( - o.migrationDetails!, - ); + checkUnnamed14(o.lineItems!); + checkSubscriptionMigrationDetails(o.migrationDetails!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.partnerUserToken!, unittest.equals('foo')); unittest.expect(o.processingState!, unittest.equals('foo')); - checkUnnamed14(o.products!); - checkUnnamed15(o.promotionSpecs!); - checkUnnamed16(o.promotions!); + checkUnnamed15(o.products!); + checkUnnamed16(o.promotionSpecs!); + checkUnnamed17(o.promotions!); unittest.expect(o.purchaseTime!, unittest.equals('foo')); unittest.expect(o.redirectUri!, unittest.equals('foo')); unittest.expect(o.renewalTime!, unittest.equals('foo')); - checkGoogleCloudPaymentsResellerSubscriptionV1Location(o.serviceLocation!); + checkLocation(o.serviceLocation!); unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails( - o.upgradeDowngradeDetails!, - ); + checkSubscriptionUpgradeDowngradeDetails(o.upgradeDowngradeDetails!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1Subscription--; + buildCounterSubscription--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails -buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails < - 3) { +core.int buildCounterSubscriptionCancellationDetails = 0; +api.SubscriptionCancellationDetails buildSubscriptionCancellationDetails() { + final o = api.SubscriptionCancellationDetails(); + buildCounterSubscriptionCancellationDetails++; + if (buildCounterSubscriptionCancellationDetails < 3) { o.reason = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails--; + buildCounterSubscriptionCancellationDetails--; return o; } -void -checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails( - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails - o, +void checkSubscriptionCancellationDetails( + api.SubscriptionCancellationDetails o, ) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails < - 3) { + buildCounterSubscriptionCancellationDetails++; + if (buildCounterSubscriptionCancellationDetails < 3) { unittest.expect(o.reason!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails--; + buildCounterSubscriptionCancellationDetails--; } -core.List< - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec -> -buildUnnamed17() => [ - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec(), - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec(), +core.List buildUnnamed18() => [ + buildSubscriptionPromotionSpec(), + buildSubscriptionPromotionSpec(), ]; -void checkUnnamed17( - core.List< - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec - > - o, -) { +void checkUnnamed18(core.List o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec(o[0]); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec(o[1]); + checkSubscriptionPromotionSpec(o[0]); + checkSubscriptionPromotionSpec(o[1]); } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem = 0; -api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem -buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem < - 3) { - o.amount = buildGoogleCloudPaymentsResellerSubscriptionV1Amount(); +core.int buildCounterSubscriptionLineItem = 0; +api.SubscriptionLineItem buildSubscriptionLineItem() { + final o = api.SubscriptionLineItem(); + buildCounterSubscriptionLineItem++; + if (buildCounterSubscriptionLineItem < 3) { + o.amount = buildAmount(); o.bundleDetails = buildSubscriptionLineItemBundleDetails(); o.description = 'foo'; - o.finiteBillingCycleDetails = - buildGoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails(); + o.finiteBillingCycleDetails = buildFiniteBillingCycleDetails(); o.lineItemFreeTrialEndTime = 'foo'; o.lineItemIndex = 42; - o.lineItemPromotionSpecs = buildUnnamed17(); + o.lineItemPromotionSpecs = buildUnnamed18(); o.oneTimeRecurrenceDetails = - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails(); + buildSubscriptionLineItemOneTimeRecurrenceDetails(); o.product = 'foo'; - o.productPayload = - buildGoogleCloudPaymentsResellerSubscriptionV1ProductPayload(); + o.productPayload = buildProductPayload(); o.recurrenceType = 'foo'; o.state = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem--; + buildCounterSubscriptionLineItem--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem( - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem < - 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1Amount(o.amount!); +void checkSubscriptionLineItem(api.SubscriptionLineItem o) { + buildCounterSubscriptionLineItem++; + if (buildCounterSubscriptionLineItem < 3) { + checkAmount(o.amount!); checkSubscriptionLineItemBundleDetails(o.bundleDetails!); unittest.expect(o.description!, unittest.equals('foo')); - checkGoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails( - o.finiteBillingCycleDetails!, - ); + checkFiniteBillingCycleDetails(o.finiteBillingCycleDetails!); unittest.expect(o.lineItemFreeTrialEndTime!, unittest.equals('foo')); unittest.expect(o.lineItemIndex!, unittest.equals(42)); - checkUnnamed17(o.lineItemPromotionSpecs!); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails( + checkUnnamed18(o.lineItemPromotionSpecs!); + checkSubscriptionLineItemOneTimeRecurrenceDetails( o.oneTimeRecurrenceDetails!, ); unittest.expect(o.product!, unittest.equals('foo')); - checkGoogleCloudPaymentsResellerSubscriptionV1ProductPayload( - o.productPayload!, - ); + checkProductPayload(o.productPayload!); unittest.expect(o.recurrenceType!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem--; + buildCounterSubscriptionLineItem--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails -buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails < - 3) { +core.List +buildUnnamed19() => [ + buildSubscriptionLineItemBundleDetailsBundleElementDetails(), + buildSubscriptionLineItemBundleDetailsBundleElementDetails(), +]; + +void checkUnnamed19( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkSubscriptionLineItemBundleDetailsBundleElementDetails(o[0]); + checkSubscriptionLineItemBundleDetailsBundleElementDetails(o[1]); +} + +core.int buildCounterSubscriptionLineItemBundleDetails = 0; +api.SubscriptionLineItemBundleDetails buildSubscriptionLineItemBundleDetails() { + final o = api.SubscriptionLineItemBundleDetails(); + buildCounterSubscriptionLineItemBundleDetails++; + if (buildCounterSubscriptionLineItemBundleDetails < 3) { + o.bundleElementDetails = buildUnnamed19(); + } + buildCounterSubscriptionLineItemBundleDetails--; + return o; +} + +void checkSubscriptionLineItemBundleDetails( + api.SubscriptionLineItemBundleDetails o, +) { + buildCounterSubscriptionLineItemBundleDetails++; + if (buildCounterSubscriptionLineItemBundleDetails < 3) { + checkUnnamed19(o.bundleElementDetails!); + } + buildCounterSubscriptionLineItemBundleDetails--; +} + +core.int buildCounterSubscriptionLineItemBundleDetailsBundleElementDetails = 0; +api.SubscriptionLineItemBundleDetailsBundleElementDetails +buildSubscriptionLineItemBundleDetailsBundleElementDetails() { + final o = api.SubscriptionLineItemBundleDetailsBundleElementDetails(); + buildCounterSubscriptionLineItemBundleDetailsBundleElementDetails++; + if (buildCounterSubscriptionLineItemBundleDetailsBundleElementDetails < 3) { o.product = 'foo'; o.userAccountLinkedTime = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails--; + buildCounterSubscriptionLineItemBundleDetailsBundleElementDetails--; return o; } -void -checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails( - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails - o, +void checkSubscriptionLineItemBundleDetailsBundleElementDetails( + api.SubscriptionLineItemBundleDetailsBundleElementDetails o, ) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails < - 3) { + buildCounterSubscriptionLineItemBundleDetailsBundleElementDetails++; + if (buildCounterSubscriptionLineItemBundleDetailsBundleElementDetails < 3) { unittest.expect(o.product!, unittest.equals('foo')); unittest.expect(o.userAccountLinkedTime!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails--; + buildCounterSubscriptionLineItemBundleDetailsBundleElementDetails--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails -buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails < - 3) { - o.servicePeriod = - buildGoogleCloudPaymentsResellerSubscriptionV1ServicePeriod(); +core.int buildCounterSubscriptionLineItemOneTimeRecurrenceDetails = 0; +api.SubscriptionLineItemOneTimeRecurrenceDetails +buildSubscriptionLineItemOneTimeRecurrenceDetails() { + final o = api.SubscriptionLineItemOneTimeRecurrenceDetails(); + buildCounterSubscriptionLineItemOneTimeRecurrenceDetails++; + if (buildCounterSubscriptionLineItemOneTimeRecurrenceDetails < 3) { + o.servicePeriod = buildServicePeriod(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails--; + buildCounterSubscriptionLineItemOneTimeRecurrenceDetails--; return o; } -void -checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails( - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails - o, +void checkSubscriptionLineItemOneTimeRecurrenceDetails( + api.SubscriptionLineItemOneTimeRecurrenceDetails o, ) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails < - 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1ServicePeriod( - o.servicePeriod!, - ); + buildCounterSubscriptionLineItemOneTimeRecurrenceDetails++; + if (buildCounterSubscriptionLineItemOneTimeRecurrenceDetails < 3) { + checkServicePeriod(o.servicePeriod!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails--; + buildCounterSubscriptionLineItemOneTimeRecurrenceDetails--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails -buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails < - 3) { +core.int buildCounterSubscriptionMigrationDetails = 0; +api.SubscriptionMigrationDetails buildSubscriptionMigrationDetails() { + final o = api.SubscriptionMigrationDetails(); + buildCounterSubscriptionMigrationDetails++; + if (buildCounterSubscriptionMigrationDetails < 3) { o.migratedSubscriptionId = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails--; + buildCounterSubscriptionMigrationDetails--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails( - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails < - 3) { +void checkSubscriptionMigrationDetails(api.SubscriptionMigrationDetails o) { + buildCounterSubscriptionMigrationDetails++; + if (buildCounterSubscriptionMigrationDetails < 3) { unittest.expect(o.migratedSubscriptionId!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails--; + buildCounterSubscriptionMigrationDetails--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec -buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec < - 3) { - o.freeTrialDuration = - buildGoogleCloudPaymentsResellerSubscriptionV1Duration(); - o.introductoryPricingDetails = - buildGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails(); +core.int buildCounterSubscriptionPromotionSpec = 0; +api.SubscriptionPromotionSpec buildSubscriptionPromotionSpec() { + final o = api.SubscriptionPromotionSpec(); + buildCounterSubscriptionPromotionSpec++; + if (buildCounterSubscriptionPromotionSpec < 3) { + o.freeTrialDuration = buildDuration(); + o.introductoryPricingDetails = buildPromotionIntroductoryPricingDetails(); o.promotion = 'foo'; o.type = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec--; + buildCounterSubscriptionPromotionSpec--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec( - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec < - 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1Duration( - o.freeTrialDuration!, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails( - o.introductoryPricingDetails!, - ); +void checkSubscriptionPromotionSpec(api.SubscriptionPromotionSpec o) { + buildCounterSubscriptionPromotionSpec++; + if (buildCounterSubscriptionPromotionSpec < 3) { + checkDuration(o.freeTrialDuration!); + checkPromotionIntroductoryPricingDetails(o.introductoryPricingDetails!); unittest.expect(o.promotion!, unittest.equals('foo')); unittest.expect(o.type!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec--; + buildCounterSubscriptionPromotionSpec--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails -buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails < - 3) { +core.int buildCounterSubscriptionUpgradeDowngradeDetails = 0; +api.SubscriptionUpgradeDowngradeDetails +buildSubscriptionUpgradeDowngradeDetails() { + final o = api.SubscriptionUpgradeDowngradeDetails(); + buildCounterSubscriptionUpgradeDowngradeDetails++; + if (buildCounterSubscriptionUpgradeDowngradeDetails < 3) { o.billingCycleSpec = 'foo'; o.previousSubscriptionId = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails--; + buildCounterSubscriptionUpgradeDowngradeDetails--; return o; } -void -checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails( - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails - o, +void checkSubscriptionUpgradeDowngradeDetails( + api.SubscriptionUpgradeDowngradeDetails o, ) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails < - 3) { + buildCounterSubscriptionUpgradeDowngradeDetails++; + if (buildCounterSubscriptionUpgradeDowngradeDetails < 3) { unittest.expect(o.billingCycleSpec!, unittest.equals('foo')); unittest.expect(o.previousSubscriptionId!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails--; + buildCounterSubscriptionUpgradeDowngradeDetails--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest -buildGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest < - 3) {} - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest--; +core.int buildCounterSuspendSubscriptionRequest = 0; +api.SuspendSubscriptionRequest buildSuspendSubscriptionRequest() { + final o = api.SuspendSubscriptionRequest(); + buildCounterSuspendSubscriptionRequest++; + if (buildCounterSuspendSubscriptionRequest < 3) {} + buildCounterSuspendSubscriptionRequest--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest( - api.GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest < - 3) {} - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest--; +void checkSuspendSubscriptionRequest(api.SuspendSubscriptionRequest o) { + buildCounterSuspendSubscriptionRequest++; + if (buildCounterSuspendSubscriptionRequest < 3) {} + buildCounterSuspendSubscriptionRequest--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse -buildGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse < - 3) { - o.subscription = - buildGoogleCloudPaymentsResellerSubscriptionV1Subscription(); +core.int buildCounterSuspendSubscriptionResponse = 0; +api.SuspendSubscriptionResponse buildSuspendSubscriptionResponse() { + final o = api.SuspendSubscriptionResponse(); + buildCounterSuspendSubscriptionResponse++; + if (buildCounterSuspendSubscriptionResponse < 3) { + o.subscription = buildSubscription(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse--; + buildCounterSuspendSubscriptionResponse--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse( - api.GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse < - 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1Subscription(o.subscription!); +void checkSuspendSubscriptionResponse(api.SuspendSubscriptionResponse o) { + buildCounterSuspendSubscriptionResponse++; + if (buildCounterSuspendSubscriptionResponse < 3) { + checkSubscription(o.subscription!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse--; + buildCounterSuspendSubscriptionResponse--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest -buildGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest < - 3) {} - buildCounterGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest--; +core.int buildCounterUndoCancelSubscriptionRequest = 0; +api.UndoCancelSubscriptionRequest buildUndoCancelSubscriptionRequest() { + final o = api.UndoCancelSubscriptionRequest(); + buildCounterUndoCancelSubscriptionRequest++; + if (buildCounterUndoCancelSubscriptionRequest < 3) {} + buildCounterUndoCancelSubscriptionRequest--; return o; } -void -checkGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest( - api.GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest < - 3) {} - buildCounterGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest--; +void checkUndoCancelSubscriptionRequest(api.UndoCancelSubscriptionRequest o) { + buildCounterUndoCancelSubscriptionRequest++; + if (buildCounterUndoCancelSubscriptionRequest < 3) {} + buildCounterUndoCancelSubscriptionRequest--; } -core.int -buildCounterGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse -buildGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse() { - final o = - api.GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse < - 3) { - o.subscription = - buildGoogleCloudPaymentsResellerSubscriptionV1Subscription(); +core.int buildCounterUndoCancelSubscriptionResponse = 0; +api.UndoCancelSubscriptionResponse buildUndoCancelSubscriptionResponse() { + final o = api.UndoCancelSubscriptionResponse(); + buildCounterUndoCancelSubscriptionResponse++; + if (buildCounterUndoCancelSubscriptionResponse < 3) { + o.subscription = buildSubscription(); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse--; + buildCounterUndoCancelSubscriptionResponse--; return o; } -void -checkGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse( - api.GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse < - 3) { - checkGoogleCloudPaymentsResellerSubscriptionV1Subscription(o.subscription!); +void checkUndoCancelSubscriptionResponse(api.UndoCancelSubscriptionResponse o) { + buildCounterUndoCancelSubscriptionResponse++; + if (buildCounterUndoCancelSubscriptionResponse < 3) { + checkSubscription(o.subscription!); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse--; + buildCounterUndoCancelSubscriptionResponse--; } -core.int buildCounterGoogleCloudPaymentsResellerSubscriptionV1UserSession = 0; -api.GoogleCloudPaymentsResellerSubscriptionV1UserSession -buildGoogleCloudPaymentsResellerSubscriptionV1UserSession() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1UserSession(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1UserSession++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1UserSession < 3) { +core.int buildCounterUserSession = 0; +api.UserSession buildUserSession() { + final o = api.UserSession(); + buildCounterUserSession++; + if (buildCounterUserSession < 3) { o.expireTime = 'foo'; o.token = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1UserSession--; + buildCounterUserSession--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1UserSession( - api.GoogleCloudPaymentsResellerSubscriptionV1UserSession o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1UserSession++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1UserSession < 3) { +void checkUserSession(api.UserSession o) { + buildCounterUserSession++; + if (buildCounterUserSession < 3) { unittest.expect(o.expireTime!, unittest.equals('foo')); unittest.expect(o.token!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1UserSession--; + buildCounterUserSession--; } -core.List buildUnnamed18() => ['foo', 'foo']; +core.List buildUnnamed20() => ['foo', 'foo']; -void checkUnnamed18(core.List o) { +void checkUnnamed20(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterGoogleCloudPaymentsResellerSubscriptionV1YoutubePayload = - 0; -api.GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload -buildGoogleCloudPaymentsResellerSubscriptionV1YoutubePayload() { - final o = api.GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload(); - buildCounterGoogleCloudPaymentsResellerSubscriptionV1YoutubePayload++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1YoutubePayload < 3) { +core.int buildCounterYoutubePayload = 0; +api.YoutubePayload buildYoutubePayload() { + final o = api.YoutubePayload(); + buildCounterYoutubePayload++; + if (buildCounterYoutubePayload < 3) { o.accessEndTime = 'foo'; - o.partnerEligibilityIds = buildUnnamed18(); + o.partnerEligibilityIds = buildUnnamed20(); o.partnerPlanType = 'foo'; } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1YoutubePayload--; + buildCounterYoutubePayload--; return o; } -void checkGoogleCloudPaymentsResellerSubscriptionV1YoutubePayload( - api.GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload o, -) { - buildCounterGoogleCloudPaymentsResellerSubscriptionV1YoutubePayload++; - if (buildCounterGoogleCloudPaymentsResellerSubscriptionV1YoutubePayload < 3) { +void checkYoutubePayload(api.YoutubePayload o) { + buildCounterYoutubePayload++; + if (buildCounterYoutubePayload < 3) { unittest.expect(o.accessEndTime!, unittest.equals('foo')); - checkUnnamed18(o.partnerEligibilityIds!); + checkUnnamed20(o.partnerEligibilityIds!); unittest.expect(o.partnerPlanType!, unittest.equals('foo')); } - buildCounterGoogleCloudPaymentsResellerSubscriptionV1YoutubePayload--; + buildCounterYoutubePayload--; } -core.int buildCounterGoogleTypeLocalizedText = 0; -api.GoogleTypeLocalizedText buildGoogleTypeLocalizedText() { - final o = api.GoogleTypeLocalizedText(); - buildCounterGoogleTypeLocalizedText++; - if (buildCounterGoogleTypeLocalizedText < 3) { - o.languageCode = 'foo'; - o.text = 'foo'; - } - buildCounterGoogleTypeLocalizedText--; - return o; -} - -void checkGoogleTypeLocalizedText(api.GoogleTypeLocalizedText o) { - buildCounterGoogleTypeLocalizedText++; - if (buildCounterGoogleTypeLocalizedText < 3) { - unittest.expect(o.languageCode!, unittest.equals('foo')); - unittest.expect(o.text!, unittest.equals('foo')); - } - buildCounterGoogleTypeLocalizedText--; -} - -core.List< - api.GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement -> -buildUnnamed19() => [ - buildGoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement(), - buildGoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement(), -]; - -void checkUnnamed19( - core.List< - api.GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement - > - o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement( - o[0], - ); - checkGoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement( - o[1], - ); -} - -core.int buildCounterProductBundleDetails = 0; -api.ProductBundleDetails buildProductBundleDetails() { - final o = api.ProductBundleDetails(); - buildCounterProductBundleDetails++; - if (buildCounterProductBundleDetails < 3) { - o.bundleElements = buildUnnamed19(); - o.entitlementMode = 'foo'; - } - buildCounterProductBundleDetails--; - return o; -} - -void checkProductBundleDetails(api.ProductBundleDetails o) { - buildCounterProductBundleDetails++; - if (buildCounterProductBundleDetails < 3) { - checkUnnamed19(o.bundleElements!); - unittest.expect(o.entitlementMode!, unittest.equals('foo')); - } - buildCounterProductBundleDetails--; -} +void main() { + unittest.group('obj-schema-Amount', () { + unittest.test('to-json--from-json', () async { + final o = buildAmount(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Amount.fromJson( + oJson as core.Map, + ); + checkAmount(od); + }); + }); -core.List< - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails -> -buildUnnamed20() => [ - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails(), - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails(), -]; + unittest.group('obj-schema-CancelSubscriptionRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildCancelSubscriptionRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.CancelSubscriptionRequest.fromJson( + oJson as core.Map, + ); + checkCancelSubscriptionRequest(od); + }); + }); -void checkUnnamed20( - core.List< - api.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails - > - o, -) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails( - o[0], - ); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails( - o[1], - ); -} + unittest.group('obj-schema-CancelSubscriptionResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildCancelSubscriptionResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.CancelSubscriptionResponse.fromJson( + oJson as core.Map, + ); + checkCancelSubscriptionResponse(od); + }); + }); -core.int buildCounterSubscriptionLineItemBundleDetails = 0; -api.SubscriptionLineItemBundleDetails buildSubscriptionLineItemBundleDetails() { - final o = api.SubscriptionLineItemBundleDetails(); - buildCounterSubscriptionLineItemBundleDetails++; - if (buildCounterSubscriptionLineItemBundleDetails < 3) { - o.bundleElementDetails = buildUnnamed20(); - } - buildCounterSubscriptionLineItemBundleDetails--; - return o; -} + unittest.group('obj-schema-CreateSubscriptionIntent', () { + unittest.test('to-json--from-json', () async { + final o = buildCreateSubscriptionIntent(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.CreateSubscriptionIntent.fromJson( + oJson as core.Map, + ); + checkCreateSubscriptionIntent(od); + }); + }); -void checkSubscriptionLineItemBundleDetails( - api.SubscriptionLineItemBundleDetails o, -) { - buildCounterSubscriptionLineItemBundleDetails++; - if (buildCounterSubscriptionLineItemBundleDetails < 3) { - checkUnnamed20(o.bundleElementDetails!); - } - buildCounterSubscriptionLineItemBundleDetails--; -} + unittest.group('obj-schema-Duration', () { + unittest.test('to-json--from-json', () async { + final o = buildDuration(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Duration.fromJson( + oJson as core.Map, + ); + checkDuration(od); + }); + }); -void main() { - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1Amount', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudPaymentsResellerSubscriptionV1Amount(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudPaymentsResellerSubscriptionV1Amount.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1Amount(od); - }); - }, - ); + unittest.group('obj-schema-EntitleSubscriptionIntent', () { + unittest.test('to-json--from-json', () async { + final o = buildEntitleSubscriptionIntent(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.EntitleSubscriptionIntent.fromJson( + oJson as core.Map, + ); + checkEntitleSubscriptionIntent(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest( - od, - ); - }); - }, - ); + unittest.group('obj-schema-EntitleSubscriptionRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildEntitleSubscriptionRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.EntitleSubscriptionRequest.fromJson( + oJson as core.Map, + ); + checkEntitleSubscriptionRequest(od); + }); + }); unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse', + 'obj-schema-EntitleSubscriptionRequestLineItemEntitlementDetails', () { unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse(); + final o = buildEntitleSubscriptionRequestLineItemEntitlementDetails(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse.fromJson( + .EntitleSubscriptionRequestLineItemEntitlementDetails.fromJson( oJson as core.Map, ); - checkGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse( - od, - ); + checkEntitleSubscriptionRequestLineItemEntitlementDetails(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent( - od, - ); - }); - }, - ); + unittest.group('obj-schema-EntitleSubscriptionResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildEntitleSubscriptionResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.EntitleSubscriptionResponse.fromJson( + oJson as core.Map, + ); + checkEntitleSubscriptionResponse(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1Duration', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudPaymentsResellerSubscriptionV1Duration(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1Duration.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1Duration(od); - }); - }, - ); + unittest.group('obj-schema-ExtendSubscriptionRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildExtendSubscriptionRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ExtendSubscriptionRequest.fromJson( + oJson as core.Map, + ); + checkExtendSubscriptionRequest(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent( - od, - ); - }); - }, - ); + unittest.group('obj-schema-ExtendSubscriptionResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildExtendSubscriptionResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ExtendSubscriptionResponse.fromJson( + oJson as core.Map, + ); + checkExtendSubscriptionResponse(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest( - od, - ); - }); - }, - ); + unittest.group('obj-schema-Extension', () { + unittest.test('to-json--from-json', () async { + final o = buildExtension(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Extension.fromJson( + oJson as core.Map, + ); + checkExtension(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails( - od, - ); - }); - }, - ); + unittest.group('obj-schema-FindEligiblePromotionsRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildFindEligiblePromotionsRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.FindEligiblePromotionsRequest.fromJson( + oJson as core.Map, + ); + checkFindEligiblePromotionsRequest(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse( - od, - ); - }); - }, - ); + unittest.group('obj-schema-FindEligiblePromotionsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildFindEligiblePromotionsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.FindEligiblePromotionsResponse.fromJson( + oJson as core.Map, + ); + checkFindEligiblePromotionsResponse(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest( - od, - ); - }); - }, - ); + unittest.group('obj-schema-FiniteBillingCycleDetails', () { + unittest.test('to-json--from-json', () async { + final o = buildFiniteBillingCycleDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.FiniteBillingCycleDetails.fromJson( + oJson as core.Map, + ); + checkFiniteBillingCycleDetails(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse( - od, - ); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1Extension', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudPaymentsResellerSubscriptionV1Extension(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1Extension.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1Extension(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest( - od, - ); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse( - od, - ); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails( - od, - ); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest( - od, - ); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse( - od, - ); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1IntentPayload', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudPaymentsResellerSubscriptionV1IntentPayload(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1IntentPayload.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1IntentPayload(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse(od); - }); - }, - ); - - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse( - od, - ); - }); - }, - ); + unittest.group('obj-schema-GenerateUserSessionRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildGenerateUserSessionRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GenerateUserSessionRequest.fromJson( + oJson as core.Map, + ); + checkGenerateUserSessionRequest(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1Location', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudPaymentsResellerSubscriptionV1Location(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1Location.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1Location(od); - }); - }, - ); + unittest.group('obj-schema-GenerateUserSessionResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildGenerateUserSessionResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GenerateUserSessionResponse.fromJson( + oJson as core.Map, + ); + checkGenerateUserSessionResponse(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1Product', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudPaymentsResellerSubscriptionV1Product(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1Product.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1Product(od); - }); - }, - ); + unittest.group('obj-schema-GoogleHomePayload', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleHomePayload(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleHomePayload.fromJson( + oJson as core.Map, + ); + checkGoogleHomePayload(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1ProductBundleDetailsBundleElement( - od, - ); - }); - }, - ); + unittest.group('obj-schema-GoogleOnePayload', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleOnePayload(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleOnePayload.fromJson( + oJson as core.Map, + ); + checkGoogleOnePayload(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1ProductPayload', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1ProductPayload(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1ProductPayload.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1ProductPayload(od); - }); - }, - ); + unittest.group('obj-schema-GoogleTypeLocalizedText', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleTypeLocalizedText(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleTypeLocalizedText.fromJson( + oJson as core.Map, + ); + checkGoogleTypeLocalizedText(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig(od); - }); - }, - ); + unittest.group('obj-schema-IntentPayload', () { + unittest.test('to-json--from-json', () async { + final o = buildIntentPayload(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.IntentPayload.fromJson( + oJson as core.Map, + ); + checkIntentPayload(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1Promotion', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudPaymentsResellerSubscriptionV1Promotion(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1Promotion.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1Promotion(od); - }); - }, - ); + unittest.group('obj-schema-ListProductsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListProductsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListProductsResponse.fromJson( + oJson as core.Map, + ); + checkListProductsResponse(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails( - od, - ); - }); - }, - ); + unittest.group('obj-schema-ListPromotionsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListPromotionsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListPromotionsResponse.fromJson( + oJson as core.Map, + ); + checkListPromotionsResponse(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec( - od, - ); - }); - }, - ); + unittest.group('obj-schema-Location', () { + unittest.test('to-json--from-json', () async { + final o = buildLocation(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Location.fromJson( + oJson as core.Map, + ); + checkLocation(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest( - od, - ); - }); - }, - ); + unittest.group('obj-schema-Product', () { + unittest.test('to-json--from-json', () async { + final o = buildProduct(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Product.fromJson( + oJson as core.Map, + ); + checkProduct(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse( - od, - ); - }); - }, - ); + unittest.group('obj-schema-ProductBundleDetails', () { + unittest.test('to-json--from-json', () async { + final o = buildProductBundleDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ProductBundleDetails.fromJson( + oJson as core.Map, + ); + checkProductBundleDetails(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudPaymentsResellerSubscriptionV1ServicePeriod(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1ServicePeriod(od); - }); - }, - ); + unittest.group('obj-schema-ProductBundleDetailsBundleElement', () { + unittest.test('to-json--from-json', () async { + final o = buildProductBundleDetailsBundleElement(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ProductBundleDetailsBundleElement.fromJson( + oJson as core.Map, + ); + checkProductBundleDetailsBundleElement(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1Subscription', - () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudPaymentsResellerSubscriptionV1Subscription(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1Subscription(od); - }); - }, - ); + unittest.group('obj-schema-ProductPayload', () { + unittest.test('to-json--from-json', () async { + final o = buildProductPayload(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ProductPayload.fromJson( + oJson as core.Map, + ); + checkProductPayload(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails( - od, - ); - }); - }, - ); + unittest.group('obj-schema-ProductPriceConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildProductPriceConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ProductPriceConfig.fromJson( + oJson as core.Map, + ); + checkProductPriceConfig(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem(od); - }); - }, - ); + unittest.group('obj-schema-Promotion', () { + unittest.test('to-json--from-json', () async { + final o = buildPromotion(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Promotion.fromJson( + oJson as core.Map, + ); + checkPromotion(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemBundleDetailsBundleElementDetails( - od, - ); - }); - }, - ); + unittest.group('obj-schema-PromotionIntroductoryPricingDetails', () { + unittest.test('to-json--from-json', () async { + final o = buildPromotionIntroductoryPricingDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.PromotionIntroductoryPricingDetails.fromJson( + oJson as core.Map, + ); + checkPromotionIntroductoryPricingDetails(od); + }); + }); unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails', + 'obj-schema-PromotionIntroductoryPricingDetailsIntroductoryPricingSpec', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails(); + buildPromotionIntroductoryPricingDetailsIntroductoryPricingSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails.fromJson( + .PromotionIntroductoryPricingDetailsIntroductoryPricingSpec.fromJson( oJson as core.Map, ); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails( - od, - ); + checkPromotionIntroductoryPricingDetailsIntroductoryPricingSpec(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails( - od, - ); - }); - }, - ); + unittest.group('obj-schema-ResumeSubscriptionRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildResumeSubscriptionRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ResumeSubscriptionRequest.fromJson( + oJson as core.Map, + ); + checkResumeSubscriptionRequest(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec( - od, - ); - }); - }, - ); + unittest.group('obj-schema-ResumeSubscriptionResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildResumeSubscriptionResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ResumeSubscriptionResponse.fromJson( + oJson as core.Map, + ); + checkResumeSubscriptionResponse(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails( - od, - ); - }); - }, - ); + unittest.group('obj-schema-ServicePeriod', () { + unittest.test('to-json--from-json', () async { + final o = buildServicePeriod(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ServicePeriod.fromJson( + oJson as core.Map, + ); + checkServicePeriod(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest( - od, - ); - }); - }, - ); + unittest.group('obj-schema-Subscription', () { + unittest.test('to-json--from-json', () async { + final o = buildSubscription(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Subscription.fromJson( + oJson as core.Map, + ); + checkSubscription(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse( - od, - ); - }); - }, - ); + unittest.group('obj-schema-SubscriptionCancellationDetails', () { + unittest.test('to-json--from-json', () async { + final o = buildSubscriptionCancellationDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.SubscriptionCancellationDetails.fromJson( + oJson as core.Map, + ); + checkSubscriptionCancellationDetails(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest( - od, - ); - }); - }, - ); + unittest.group('obj-schema-SubscriptionLineItem', () { + unittest.test('to-json--from-json', () async { + final o = buildSubscriptionLineItem(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.SubscriptionLineItem.fromJson( + oJson as core.Map, + ); + checkSubscriptionLineItem(od); + }); + }); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse( - od, - ); - }); - }, - ); + unittest.group('obj-schema-SubscriptionLineItemBundleDetails', () { + unittest.test('to-json--from-json', () async { + final o = buildSubscriptionLineItemBundleDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.SubscriptionLineItemBundleDetails.fromJson( + oJson as core.Map, + ); + checkSubscriptionLineItemBundleDetails(od); + }); + }); unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1UserSession', + 'obj-schema-SubscriptionLineItemBundleDetailsBundleElementDetails', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudPaymentsResellerSubscriptionV1UserSession(); + final o = buildSubscriptionLineItemBundleDetailsBundleElementDetails(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudPaymentsResellerSubscriptionV1UserSession.fromJson( + .SubscriptionLineItemBundleDetailsBundleElementDetails.fromJson( oJson as core.Map, ); - checkGoogleCloudPaymentsResellerSubscriptionV1UserSession(od); + checkSubscriptionLineItemBundleDetailsBundleElementDetails(od); }); }, ); - unittest.group( - 'obj-schema-GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload', - () { - unittest.test('to-json--from-json', () async { - final o = - buildGoogleCloudPaymentsResellerSubscriptionV1YoutubePayload(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api - .GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload.fromJson( - oJson as core.Map, - ); - checkGoogleCloudPaymentsResellerSubscriptionV1YoutubePayload(od); - }); - }, - ); + unittest.group('obj-schema-SubscriptionLineItemOneTimeRecurrenceDetails', () { + unittest.test('to-json--from-json', () async { + final o = buildSubscriptionLineItemOneTimeRecurrenceDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.SubscriptionLineItemOneTimeRecurrenceDetails.fromJson( + oJson as core.Map, + ); + checkSubscriptionLineItemOneTimeRecurrenceDetails(od); + }); + }); - unittest.group('obj-schema-GoogleTypeLocalizedText', () { + unittest.group('obj-schema-SubscriptionMigrationDetails', () { unittest.test('to-json--from-json', () async { - final o = buildGoogleTypeLocalizedText(); + final o = buildSubscriptionMigrationDetails(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleTypeLocalizedText.fromJson( + final od = api.SubscriptionMigrationDetails.fromJson( oJson as core.Map, ); - checkGoogleTypeLocalizedText(od); + checkSubscriptionMigrationDetails(od); }); }); - unittest.group('obj-schema-ProductBundleDetails', () { + unittest.group('obj-schema-SubscriptionPromotionSpec', () { unittest.test('to-json--from-json', () async { - final o = buildProductBundleDetails(); + final o = buildSubscriptionPromotionSpec(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.ProductBundleDetails.fromJson( + final od = api.SubscriptionPromotionSpec.fromJson( oJson as core.Map, ); - checkProductBundleDetails(od); + checkSubscriptionPromotionSpec(od); }); }); - unittest.group('obj-schema-SubscriptionLineItemBundleDetails', () { + unittest.group('obj-schema-SubscriptionUpgradeDowngradeDetails', () { unittest.test('to-json--from-json', () async { - final o = buildSubscriptionLineItemBundleDetails(); + final o = buildSubscriptionUpgradeDowngradeDetails(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.SubscriptionLineItemBundleDetails.fromJson( + final od = api.SubscriptionUpgradeDowngradeDetails.fromJson( oJson as core.Map, ); - checkSubscriptionLineItemBundleDetails(od); + checkSubscriptionUpgradeDowngradeDetails(od); + }); + }); + + unittest.group('obj-schema-SuspendSubscriptionRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildSuspendSubscriptionRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.SuspendSubscriptionRequest.fromJson( + oJson as core.Map, + ); + checkSuspendSubscriptionRequest(od); + }); + }); + + unittest.group('obj-schema-SuspendSubscriptionResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildSuspendSubscriptionResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.SuspendSubscriptionResponse.fromJson( + oJson as core.Map, + ); + checkSuspendSubscriptionResponse(od); + }); + }); + + unittest.group('obj-schema-UndoCancelSubscriptionRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildUndoCancelSubscriptionRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.UndoCancelSubscriptionRequest.fromJson( + oJson as core.Map, + ); + checkUndoCancelSubscriptionRequest(od); + }); + }); + + unittest.group('obj-schema-UndoCancelSubscriptionResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildUndoCancelSubscriptionResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.UndoCancelSubscriptionResponse.fromJson( + oJson as core.Map, + ); + checkUndoCancelSubscriptionResponse(od); + }); + }); + + unittest.group('obj-schema-UserSession', () { + unittest.test('to-json--from-json', () async { + final o = buildUserSession(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.UserSession.fromJson( + oJson as core.Map, + ); + checkUserSession(od); + }); + }); + + unittest.group('obj-schema-YoutubePayload', () { + unittest.test('to-json--from-json', () async { + final o = buildYoutubePayload(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.YoutubePayload.fromJson( + oJson as core.Map, + ); + checkYoutubePayload(od); }); }); @@ -2705,9 +1999,7 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse(), - ); + final resp = convert.json.encode(buildListProductsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, @@ -2719,10 +2011,7 @@ void main() { pageToken: arg_pageToken, $fields: arg_$fields, ); - checkGoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse( - response - as api.GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse, - ); + checkListProductsResponse(response as api.ListProductsResponse); }); }); @@ -2730,19 +2019,15 @@ void main() { unittest.test('method--findEligible', () async { final mock = HttpServerMock(); final res = api.PaymentsResellerSubscriptionApi(mock).partners.promotions; - final arg_request = - buildGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest(); + final arg_request = buildFindEligiblePromotionsRequest(); final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest.fromJson( + final obj = api.FindEligiblePromotionsRequest.fromJson( json as core.Map, ); - checkGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest( - obj, - ); + checkFindEligiblePromotionsRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -2782,7 +2067,7 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse(), + buildFindEligiblePromotionsResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), @@ -2793,9 +2078,8 @@ void main() { arg_parent, $fields: arg_$fields, ); - checkGoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse( - response - as api.GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse, + checkFindEligiblePromotionsResponse( + response as api.FindEligiblePromotionsResponse, ); }); @@ -2858,9 +2142,7 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse(), - ); + final resp = convert.json.encode(buildListPromotionsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, @@ -2872,10 +2154,7 @@ void main() { pageToken: arg_pageToken, $fields: arg_$fields, ); - checkGoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse( - response - as api.GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse, - ); + checkListPromotionsResponse(response as api.ListPromotionsResponse); }); }); @@ -2884,19 +2163,15 @@ void main() { final mock = HttpServerMock(); final res = api.PaymentsResellerSubscriptionApi(mock).partners.subscriptions; - final arg_request = - buildGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest(); + final arg_request = buildCancelSubscriptionRequest(); final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest.fromJson( + final obj = api.CancelSubscriptionRequest.fromJson( json as core.Map, ); - checkGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest( - obj, - ); + checkCancelSubscriptionRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -2935,9 +2210,7 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse(), - ); + final resp = convert.json.encode(buildCancelSubscriptionResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, @@ -2947,9 +2220,8 @@ void main() { arg_name, $fields: arg_$fields, ); - checkGoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse( - response - as api.GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse, + checkCancelSubscriptionResponse( + response as api.CancelSubscriptionResponse, ); }); @@ -2957,18 +2229,16 @@ void main() { final mock = HttpServerMock(); final res = api.PaymentsResellerSubscriptionApi(mock).partners.subscriptions; - final arg_request = - buildGoogleCloudPaymentsResellerSubscriptionV1Subscription(); + final arg_request = buildSubscription(); final arg_parent = 'foo'; final arg_subscriptionId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson( + final obj = api.Subscription.fromJson( json as core.Map, ); - checkGoogleCloudPaymentsResellerSubscriptionV1Subscription(obj); + checkSubscription(obj); final path = req.url.path; var pathOffset = 0; @@ -3011,9 +2281,7 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudPaymentsResellerSubscriptionV1Subscription(), - ); + final resp = convert.json.encode(buildSubscription()); return async.Future.value(stringResponse(200, h, resp)); }), true, @@ -3024,28 +2292,22 @@ void main() { subscriptionId: arg_subscriptionId, $fields: arg_$fields, ); - checkGoogleCloudPaymentsResellerSubscriptionV1Subscription( - response as api.GoogleCloudPaymentsResellerSubscriptionV1Subscription, - ); + checkSubscription(response as api.Subscription); }); unittest.test('method--entitle', () async { final mock = HttpServerMock(); final res = api.PaymentsResellerSubscriptionApi(mock).partners.subscriptions; - final arg_request = - buildGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest(); + final arg_request = buildEntitleSubscriptionRequest(); final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest.fromJson( + final obj = api.EntitleSubscriptionRequest.fromJson( json as core.Map, ); - checkGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest( - obj, - ); + checkEntitleSubscriptionRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -3084,9 +2346,7 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse(), - ); + final resp = convert.json.encode(buildEntitleSubscriptionResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, @@ -3096,9 +2356,8 @@ void main() { arg_name, $fields: arg_$fields, ); - checkGoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse( - response - as api.GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse, + checkEntitleSubscriptionResponse( + response as api.EntitleSubscriptionResponse, ); }); @@ -3106,19 +2365,15 @@ void main() { final mock = HttpServerMock(); final res = api.PaymentsResellerSubscriptionApi(mock).partners.subscriptions; - final arg_request = - buildGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest(); + final arg_request = buildExtendSubscriptionRequest(); final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest.fromJson( + final obj = api.ExtendSubscriptionRequest.fromJson( json as core.Map, ); - checkGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest( - obj, - ); + checkExtendSubscriptionRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -3157,9 +2412,7 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse(), - ); + final resp = convert.json.encode(buildExtendSubscriptionResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, @@ -3169,9 +2422,8 @@ void main() { arg_name, $fields: arg_$fields, ); - checkGoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse( - response - as api.GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse, + checkExtendSubscriptionResponse( + response as api.ExtendSubscriptionResponse, ); }); @@ -3220,35 +2472,29 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudPaymentsResellerSubscriptionV1Subscription(), - ); + final resp = convert.json.encode(buildSubscription()); return async.Future.value(stringResponse(200, h, resp)); }), true, ); final response = await res.get(arg_name, $fields: arg_$fields); - checkGoogleCloudPaymentsResellerSubscriptionV1Subscription( - response as api.GoogleCloudPaymentsResellerSubscriptionV1Subscription, - ); + checkSubscription(response as api.Subscription); }); unittest.test('method--provision', () async { final mock = HttpServerMock(); final res = api.PaymentsResellerSubscriptionApi(mock).partners.subscriptions; - final arg_request = - buildGoogleCloudPaymentsResellerSubscriptionV1Subscription(); + final arg_request = buildSubscription(); final arg_parent = 'foo'; final arg_subscriptionId = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson( + final obj = api.Subscription.fromJson( json as core.Map, ); - checkGoogleCloudPaymentsResellerSubscriptionV1Subscription(obj); + checkSubscription(obj); final path = req.url.path; var pathOffset = 0; @@ -3291,9 +2537,7 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudPaymentsResellerSubscriptionV1Subscription(), - ); + final resp = convert.json.encode(buildSubscription()); return async.Future.value(stringResponse(200, h, resp)); }), true, @@ -3304,28 +2548,22 @@ void main() { subscriptionId: arg_subscriptionId, $fields: arg_$fields, ); - checkGoogleCloudPaymentsResellerSubscriptionV1Subscription( - response as api.GoogleCloudPaymentsResellerSubscriptionV1Subscription, - ); + checkSubscription(response as api.Subscription); }); unittest.test('method--resume', () async { final mock = HttpServerMock(); final res = api.PaymentsResellerSubscriptionApi(mock).partners.subscriptions; - final arg_request = - buildGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest(); + final arg_request = buildResumeSubscriptionRequest(); final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest.fromJson( + final obj = api.ResumeSubscriptionRequest.fromJson( json as core.Map, ); - checkGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest( - obj, - ); + checkResumeSubscriptionRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -3364,9 +2602,7 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse(), - ); + final resp = convert.json.encode(buildResumeSubscriptionResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, @@ -3376,9 +2612,8 @@ void main() { arg_name, $fields: arg_$fields, ); - checkGoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse( - response - as api.GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse, + checkResumeSubscriptionResponse( + response as api.ResumeSubscriptionResponse, ); }); @@ -3386,19 +2621,15 @@ void main() { final mock = HttpServerMock(); final res = api.PaymentsResellerSubscriptionApi(mock).partners.subscriptions; - final arg_request = - buildGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest(); + final arg_request = buildSuspendSubscriptionRequest(); final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest.fromJson( + final obj = api.SuspendSubscriptionRequest.fromJson( json as core.Map, ); - checkGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest( - obj, - ); + checkSuspendSubscriptionRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -3437,9 +2668,7 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse(), - ); + final resp = convert.json.encode(buildSuspendSubscriptionResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, @@ -3449,9 +2678,8 @@ void main() { arg_name, $fields: arg_$fields, ); - checkGoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse( - response - as api.GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse, + checkSuspendSubscriptionResponse( + response as api.SuspendSubscriptionResponse, ); }); @@ -3459,19 +2687,15 @@ void main() { final mock = HttpServerMock(); final res = api.PaymentsResellerSubscriptionApi(mock).partners.subscriptions; - final arg_request = - buildGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest(); + final arg_request = buildUndoCancelSubscriptionRequest(); final arg_name = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest.fromJson( + final obj = api.UndoCancelSubscriptionRequest.fromJson( json as core.Map, ); - checkGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest( - obj, - ); + checkUndoCancelSubscriptionRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -3511,7 +2735,7 @@ void main() { final h = {'content-type': 'application/json; charset=utf-8'}; final resp = convert.json.encode( - buildGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse(), + buildUndoCancelSubscriptionResponse(), ); return async.Future.value(stringResponse(200, h, resp)); }), @@ -3522,9 +2746,8 @@ void main() { arg_name, $fields: arg_$fields, ); - checkGoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse( - response - as api.GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse, + checkUndoCancelSubscriptionResponse( + response as api.UndoCancelSubscriptionResponse, ); }); }); @@ -3534,19 +2757,15 @@ void main() { final mock = HttpServerMock(); final res = api.PaymentsResellerSubscriptionApi(mock).partners.userSessions; - final arg_request = - buildGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest(); + final arg_request = buildGenerateUserSessionRequest(); final arg_parent = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api - .GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest.fromJson( + final obj = api.GenerateUserSessionRequest.fromJson( json as core.Map, ); - checkGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest( - obj, - ); + checkGenerateUserSessionRequest(obj); final path = req.url.path; var pathOffset = 0; @@ -3585,9 +2804,7 @@ void main() { ); final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode( - buildGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse(), - ); + final resp = convert.json.encode(buildGenerateUserSessionResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true, @@ -3597,9 +2814,8 @@ void main() { arg_parent, $fields: arg_$fields, ); - checkGoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse( - response - as api.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse, + checkGenerateUserSessionResponse( + response as api.GenerateUserSessionResponse, ); }); }); diff --git a/generated/googleapis/test/playintegrity/v1_test.dart b/generated/googleapis/test/playintegrity/v1_test.dart index 032ab3ac2..a0ab438f4 100644 --- a/generated/googleapis/test/playintegrity/v1_test.dart +++ b/generated/googleapis/test/playintegrity/v1_test.dart @@ -306,6 +306,25 @@ void checkEnvironmentDetails(api.EnvironmentDetails o) { buildCounterEnvironmentDetails--; } +core.int buildCounterPcAccountDetails = 0; +api.PcAccountDetails buildPcAccountDetails() { + final o = api.PcAccountDetails(); + buildCounterPcAccountDetails++; + if (buildCounterPcAccountDetails < 3) { + o.appLicensingVerdict = 'foo'; + } + buildCounterPcAccountDetails--; + return o; +} + +void checkPcAccountDetails(api.PcAccountDetails o) { + buildCounterPcAccountDetails++; + if (buildCounterPcAccountDetails < 3) { + unittest.expect(o.appLicensingVerdict!, unittest.equals('foo')); + } + buildCounterPcAccountDetails--; +} + core.List buildUnnamed4() => ['foo', 'foo']; void checkUnnamed4(core.List o) { @@ -356,13 +375,34 @@ void checkPcRequestDetails(api.PcRequestDetails o) { buildCounterPcRequestDetails--; } +core.int buildCounterPcTestingDetails = 0; +api.PcTestingDetails buildPcTestingDetails() { + final o = api.PcTestingDetails(); + buildCounterPcTestingDetails++; + if (buildCounterPcTestingDetails < 3) { + o.isTestingResponse = true; + } + buildCounterPcTestingDetails--; + return o; +} + +void checkPcTestingDetails(api.PcTestingDetails o) { + buildCounterPcTestingDetails++; + if (buildCounterPcTestingDetails < 3) { + unittest.expect(o.isTestingResponse!, unittest.isTrue); + } + buildCounterPcTestingDetails--; +} + core.int buildCounterPcTokenPayloadExternal = 0; api.PcTokenPayloadExternal buildPcTokenPayloadExternal() { final o = api.PcTokenPayloadExternal(); buildCounterPcTokenPayloadExternal++; if (buildCounterPcTokenPayloadExternal < 3) { + o.accountDetails = buildPcAccountDetails(); o.deviceIntegrity = buildPcDeviceIntegrity(); o.requestDetails = buildPcRequestDetails(); + o.testingDetails = buildPcTestingDetails(); } buildCounterPcTokenPayloadExternal--; return o; @@ -371,8 +411,10 @@ api.PcTokenPayloadExternal buildPcTokenPayloadExternal() { void checkPcTokenPayloadExternal(api.PcTokenPayloadExternal o) { buildCounterPcTokenPayloadExternal++; if (buildCounterPcTokenPayloadExternal < 3) { + checkPcAccountDetails(o.accountDetails!); checkPcDeviceIntegrity(o.deviceIntegrity!); checkPcRequestDetails(o.requestDetails!); + checkPcTestingDetails(o.testingDetails!); } buildCounterPcTokenPayloadExternal--; } @@ -684,6 +726,17 @@ void main() { }); }); + unittest.group('obj-schema-PcAccountDetails', () { + unittest.test('to-json--from-json', () async { + final o = buildPcAccountDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.PcAccountDetails.fromJson( + oJson as core.Map, + ); + checkPcAccountDetails(od); + }); + }); + unittest.group('obj-schema-PcDeviceIntegrity', () { unittest.test('to-json--from-json', () async { final o = buildPcDeviceIntegrity(); @@ -706,6 +759,17 @@ void main() { }); }); + unittest.group('obj-schema-PcTestingDetails', () { + unittest.test('to-json--from-json', () async { + final o = buildPcTestingDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.PcTestingDetails.fromJson( + oJson as core.Map, + ); + checkPcTestingDetails(od); + }); + }); + unittest.group('obj-schema-PcTokenPayloadExternal', () { unittest.test('to-json--from-json', () async { final o = buildPcTokenPayloadExternal(); diff --git a/generated/googleapis/test/privateca/v1_test.dart b/generated/googleapis/test/privateca/v1_test.dart index 7c9a02e80..c7c5a0097 100644 --- a/generated/googleapis/test/privateca/v1_test.dart +++ b/generated/googleapis/test/privateca/v1_test.dart @@ -251,6 +251,7 @@ api.CaPool buildCaPool() { final o = api.CaPool(); buildCounterCaPool++; if (buildCounterCaPool < 3) { + o.encryptionSpec = buildEncryptionSpec(); o.issuancePolicy = buildIssuancePolicy(); o.labels = buildUnnamed4(); o.name = 'foo'; @@ -264,6 +265,7 @@ api.CaPool buildCaPool() { void checkCaPool(api.CaPool o) { buildCounterCaPool++; if (buildCounterCaPool < 3) { + checkEncryptionSpec(o.encryptionSpec!); checkIssuancePolicy(o.issuancePolicy!); checkUnnamed4(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); @@ -814,6 +816,25 @@ void checkEnableCertificateAuthorityRequest( buildCounterEnableCertificateAuthorityRequest--; } +core.int buildCounterEncryptionSpec = 0; +api.EncryptionSpec buildEncryptionSpec() { + final o = api.EncryptionSpec(); + buildCounterEncryptionSpec++; + if (buildCounterEncryptionSpec < 3) { + o.cloudKmsKey = 'foo'; + } + buildCounterEncryptionSpec--; + return o; +} + +void checkEncryptionSpec(api.EncryptionSpec o) { + buildCounterEncryptionSpec++; + if (buildCounterEncryptionSpec < 3) { + unittest.expect(o.cloudKmsKey!, unittest.equals('foo')); + } + buildCounterEncryptionSpec--; +} + core.int buildCounterExpr = 0; api.Expr buildExpr() { final o = api.Expr(); @@ -2629,6 +2650,17 @@ void main() { }); }); + unittest.group('obj-schema-EncryptionSpec', () { + unittest.test('to-json--from-json', () async { + final o = buildEncryptionSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.EncryptionSpec.fromJson( + oJson as core.Map, + ); + checkEncryptionSpec(od); + }); + }); + unittest.group('obj-schema-Expr', () { unittest.test('to-json--from-json', () async { final o = buildExpr(); diff --git a/generated/googleapis/test/redis/v1_test.dart b/generated/googleapis/test/redis/v1_test.dart index f625aacdb..7c6436b00 100644 --- a/generated/googleapis/test/redis/v1_test.dart +++ b/generated/googleapis/test/redis/v1_test.dart @@ -156,7 +156,10 @@ api.BackupCollection buildBackupCollection() { o.clusterUid = 'foo'; o.createTime = 'foo'; o.kmsKey = 'foo'; + o.lastBackupTime = 'foo'; o.name = 'foo'; + o.totalBackupCount = 'foo'; + o.totalBackupSizeBytes = 'foo'; o.uid = 'foo'; } buildCounterBackupCollection--; @@ -170,7 +173,10 @@ void checkBackupCollection(api.BackupCollection o) { unittest.expect(o.clusterUid!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.kmsKey!, unittest.equals('foo')); + unittest.expect(o.lastBackupTime!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.totalBackupCount!, unittest.equals('foo')); + unittest.expect(o.totalBackupSizeBytes!, unittest.equals('foo')); unittest.expect(o.uid!, unittest.equals('foo')); } buildCounterBackupCollection--; @@ -269,42 +275,50 @@ void checkUnnamed3(core.List o) { checkDiscoveryEndpoint(o[1]); } -core.List buildUnnamed4() => [ +core.Map buildUnnamed4() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed4(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.List buildUnnamed5() => [ buildPscConfig(), buildPscConfig(), ]; -void checkUnnamed4(core.List o) { +void checkUnnamed5(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPscConfig(o[0]); checkPscConfig(o[1]); } -core.List buildUnnamed5() => [ +core.List buildUnnamed6() => [ buildPscConnection(), buildPscConnection(), ]; -void checkUnnamed5(core.List o) { +void checkUnnamed6(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPscConnection(o[0]); checkPscConnection(o[1]); } -core.List buildUnnamed6() => [ +core.List buildUnnamed7() => [ buildPscServiceAttachment(), buildPscServiceAttachment(), ]; -void checkUnnamed6(core.List o) { +void checkUnnamed7(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPscServiceAttachment(o[0]); checkPscServiceAttachment(o[1]); } -core.Map buildUnnamed7() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed8() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed7(core.Map o) { +void checkUnnamed8(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -328,6 +342,7 @@ api.Cluster buildCluster() { o.encryptionInfo = buildEncryptionInfo(); o.gcsSource = buildGcsBackupSource(); o.kmsKey = 'foo'; + o.labels = buildUnnamed4(); o.maintenancePolicy = buildClusterMaintenancePolicy(); o.maintenanceSchedule = buildClusterMaintenanceSchedule(); o.managedBackupSource = buildManagedBackupSource(); @@ -336,10 +351,10 @@ api.Cluster buildCluster() { o.ondemandMaintenance = true; o.persistenceConfig = buildClusterPersistenceConfig(); o.preciseSizeGb = 42.0; - o.pscConfigs = buildUnnamed4(); - o.pscConnections = buildUnnamed5(); - o.pscServiceAttachments = buildUnnamed6(); - o.redisConfigs = buildUnnamed7(); + o.pscConfigs = buildUnnamed5(); + o.pscConnections = buildUnnamed6(); + o.pscServiceAttachments = buildUnnamed7(); + o.redisConfigs = buildUnnamed8(); o.replicaCount = 42; o.satisfiesPzi = true; o.satisfiesPzs = true; @@ -372,6 +387,7 @@ void checkCluster(api.Cluster o) { checkEncryptionInfo(o.encryptionInfo!); checkGcsBackupSource(o.gcsSource!); unittest.expect(o.kmsKey!, unittest.equals('foo')); + checkUnnamed4(o.labels!); checkClusterMaintenancePolicy(o.maintenancePolicy!); checkClusterMaintenanceSchedule(o.maintenanceSchedule!); checkManagedBackupSource(o.managedBackupSource!); @@ -380,10 +396,10 @@ void checkCluster(api.Cluster o) { unittest.expect(o.ondemandMaintenance!, unittest.isTrue); checkClusterPersistenceConfig(o.persistenceConfig!); unittest.expect(o.preciseSizeGb!, unittest.equals(42.0)); - checkUnnamed4(o.pscConfigs!); - checkUnnamed5(o.pscConnections!); - checkUnnamed6(o.pscServiceAttachments!); - checkUnnamed7(o.redisConfigs!); + checkUnnamed5(o.pscConfigs!); + checkUnnamed6(o.pscConnections!); + checkUnnamed7(o.pscServiceAttachments!); + checkUnnamed8(o.redisConfigs!); unittest.expect(o.replicaCount!, unittest.equals(42)); unittest.expect(o.satisfiesPzi!, unittest.isTrue); unittest.expect(o.satisfiesPzs!, unittest.isTrue); @@ -399,12 +415,12 @@ void checkCluster(api.Cluster o) { buildCounterCluster--; } -core.List buildUnnamed8() => [ +core.List buildUnnamed9() => [ buildConnectionDetail(), buildConnectionDetail(), ]; -void checkUnnamed8(core.List o) { +void checkUnnamed9(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionDetail(o[0]); checkConnectionDetail(o[1]); @@ -415,7 +431,7 @@ api.ClusterEndpoint buildClusterEndpoint() { final o = api.ClusterEndpoint(); buildCounterClusterEndpoint++; if (buildCounterClusterEndpoint < 3) { - o.connections = buildUnnamed8(); + o.connections = buildUnnamed9(); } buildCounterClusterEndpoint--; return o; @@ -424,17 +440,17 @@ api.ClusterEndpoint buildClusterEndpoint() { void checkClusterEndpoint(api.ClusterEndpoint o) { buildCounterClusterEndpoint++; if (buildCounterClusterEndpoint < 3) { - checkUnnamed8(o.connections!); + checkUnnamed9(o.connections!); } buildCounterClusterEndpoint--; } -core.List buildUnnamed9() => [ +core.List buildUnnamed10() => [ buildClusterWeeklyMaintenanceWindow(), buildClusterWeeklyMaintenanceWindow(), ]; -void checkUnnamed9(core.List o) { +void checkUnnamed10(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkClusterWeeklyMaintenanceWindow(o[0]); checkClusterWeeklyMaintenanceWindow(o[1]); @@ -447,7 +463,7 @@ api.ClusterMaintenancePolicy buildClusterMaintenancePolicy() { if (buildCounterClusterMaintenancePolicy < 3) { o.createTime = 'foo'; o.updateTime = 'foo'; - o.weeklyMaintenanceWindow = buildUnnamed9(); + o.weeklyMaintenanceWindow = buildUnnamed10(); } buildCounterClusterMaintenancePolicy--; return o; @@ -458,7 +474,7 @@ void checkClusterMaintenancePolicy(api.ClusterMaintenancePolicy o) { if (buildCounterClusterMaintenancePolicy < 3) { unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); - checkUnnamed9(o.weeklyMaintenanceWindow!); + checkUnnamed10(o.weeklyMaintenanceWindow!); } buildCounterClusterMaintenancePolicy--; } @@ -549,12 +565,12 @@ void checkConnectionDetail(api.ConnectionDetail o) { buildCounterConnectionDetail--; } -core.List buildUnnamed10() => [ +core.List buildUnnamed11() => [ buildRemoteCluster(), buildRemoteCluster(), ]; -void checkUnnamed10(core.List o) { +void checkUnnamed11(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRemoteCluster(o[0]); checkRemoteCluster(o[1]); @@ -568,7 +584,7 @@ api.CrossClusterReplicationConfig buildCrossClusterReplicationConfig() { o.clusterRole = 'foo'; o.membership = buildMembership(); o.primaryCluster = buildRemoteCluster(); - o.secondaryClusters = buildUnnamed10(); + o.secondaryClusters = buildUnnamed11(); o.updateTime = 'foo'; } buildCounterCrossClusterReplicationConfig--; @@ -581,7 +597,7 @@ void checkCrossClusterReplicationConfig(api.CrossClusterReplicationConfig o) { unittest.expect(o.clusterRole!, unittest.equals('foo')); checkMembership(o.membership!); checkRemoteCluster(o.primaryCluster!); - checkUnnamed10(o.secondaryClusters!); + checkUnnamed11(o.secondaryClusters!); unittest.expect(o.updateTime!, unittest.equals('foo')); } buildCounterCrossClusterReplicationConfig--; @@ -625,9 +641,9 @@ void checkEmpty(api.Empty o) { buildCounterEmpty--; } -core.List buildUnnamed11() => ['foo', 'foo']; +core.List buildUnnamed12() => ['foo', 'foo']; -void checkUnnamed11(core.List o) { +void checkUnnamed12(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -640,7 +656,7 @@ api.EncryptionInfo buildEncryptionInfo() { if (buildCounterEncryptionInfo < 3) { o.encryptionType = 'foo'; o.kmsKeyPrimaryState = 'foo'; - o.kmsKeyVersions = buildUnnamed11(); + o.kmsKeyVersions = buildUnnamed12(); o.lastUpdateTime = 'foo'; } buildCounterEncryptionInfo--; @@ -652,7 +668,7 @@ void checkEncryptionInfo(api.EncryptionInfo o) { if (buildCounterEncryptionInfo < 3) { unittest.expect(o.encryptionType!, unittest.equals('foo')); unittest.expect(o.kmsKeyPrimaryState!, unittest.equals('foo')); - checkUnnamed11(o.kmsKeyVersions!); + checkUnnamed12(o.kmsKeyVersions!); unittest.expect(o.lastUpdateTime!, unittest.equals('foo')); } buildCounterEncryptionInfo--; @@ -734,9 +750,9 @@ void checkFixedFrequencySchedule(api.FixedFrequencySchedule o) { buildCounterFixedFrequencySchedule--; } -core.List buildUnnamed12() => ['foo', 'foo']; +core.List buildUnnamed13() => ['foo', 'foo']; -void checkUnnamed12(core.List o) { +void checkUnnamed13(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -747,7 +763,7 @@ api.GcsBackupSource buildGcsBackupSource() { final o = api.GcsBackupSource(); buildCounterGcsBackupSource++; if (buildCounterGcsBackupSource < 3) { - o.uris = buildUnnamed12(); + o.uris = buildUnnamed13(); } buildCounterGcsBackupSource--; return o; @@ -756,7 +772,7 @@ api.GcsBackupSource buildGcsBackupSource() { void checkGcsBackupSource(api.GcsBackupSource o) { buildCounterGcsBackupSource++; if (buildCounterGcsBackupSource < 3) { - checkUnnamed12(o.uris!); + checkUnnamed13(o.uris!); } buildCounterGcsBackupSource--; } @@ -837,60 +853,60 @@ void checkInputConfig(api.InputConfig o) { buildCounterInputConfig--; } -core.List buildUnnamed13() => ['foo', 'foo']; +core.List buildUnnamed14() => ['foo', 'foo']; -void checkUnnamed13(core.List o) { +void checkUnnamed14(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed14() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed15() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed14(core.Map o) { +void checkUnnamed15(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed15() => [buildNodeInfo(), buildNodeInfo()]; +core.List buildUnnamed16() => [buildNodeInfo(), buildNodeInfo()]; -void checkUnnamed15(core.List o) { +void checkUnnamed16(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNodeInfo(o[0]); checkNodeInfo(o[1]); } -core.Map buildUnnamed16() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed17() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed16(core.Map o) { +void checkUnnamed17(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed17() => [ +core.List buildUnnamed18() => [ buildTlsCertificate(), buildTlsCertificate(), ]; -void checkUnnamed17(core.List o) { +void checkUnnamed18(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTlsCertificate(o[0]); checkTlsCertificate(o[1]); } -core.List buildUnnamed18() => ['foo', 'foo']; +core.List buildUnnamed19() => ['foo', 'foo']; -void checkUnnamed18(core.List o) { +void checkUnnamed19(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed19() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed20() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed19(core.Map o) { +void checkUnnamed20(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -904,39 +920,39 @@ api.Instance buildInstance() { o.alternativeLocationId = 'foo'; o.authEnabled = true; o.authorizedNetwork = 'foo'; - o.availableMaintenanceVersions = buildUnnamed13(); + o.availableMaintenanceVersions = buildUnnamed14(); o.connectMode = 'foo'; o.createTime = 'foo'; o.currentLocationId = 'foo'; o.customerManagedKey = 'foo'; o.displayName = 'foo'; o.host = 'foo'; - o.labels = buildUnnamed14(); + o.labels = buildUnnamed15(); o.locationId = 'foo'; o.maintenancePolicy = buildMaintenancePolicy(); o.maintenanceSchedule = buildMaintenanceSchedule(); o.maintenanceVersion = 'foo'; o.memorySizeGb = 42; o.name = 'foo'; - o.nodes = buildUnnamed15(); + o.nodes = buildUnnamed16(); o.persistenceConfig = buildPersistenceConfig(); o.persistenceIamIdentity = 'foo'; o.port = 42; o.readEndpoint = 'foo'; o.readEndpointPort = 42; o.readReplicasMode = 'foo'; - o.redisConfigs = buildUnnamed16(); + o.redisConfigs = buildUnnamed17(); o.redisVersion = 'foo'; o.replicaCount = 42; o.reservedIpRange = 'foo'; o.satisfiesPzi = true; o.satisfiesPzs = true; o.secondaryIpRange = 'foo'; - o.serverCaCerts = buildUnnamed17(); + o.serverCaCerts = buildUnnamed18(); o.state = 'foo'; o.statusMessage = 'foo'; - o.suspensionReasons = buildUnnamed18(); - o.tags = buildUnnamed19(); + o.suspensionReasons = buildUnnamed19(); + o.tags = buildUnnamed20(); o.tier = 'foo'; o.transitEncryptionMode = 'foo'; } @@ -950,39 +966,39 @@ void checkInstance(api.Instance o) { unittest.expect(o.alternativeLocationId!, unittest.equals('foo')); unittest.expect(o.authEnabled!, unittest.isTrue); unittest.expect(o.authorizedNetwork!, unittest.equals('foo')); - checkUnnamed13(o.availableMaintenanceVersions!); + checkUnnamed14(o.availableMaintenanceVersions!); unittest.expect(o.connectMode!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.currentLocationId!, unittest.equals('foo')); unittest.expect(o.customerManagedKey!, unittest.equals('foo')); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.host!, unittest.equals('foo')); - checkUnnamed14(o.labels!); + checkUnnamed15(o.labels!); unittest.expect(o.locationId!, unittest.equals('foo')); checkMaintenancePolicy(o.maintenancePolicy!); checkMaintenanceSchedule(o.maintenanceSchedule!); unittest.expect(o.maintenanceVersion!, unittest.equals('foo')); unittest.expect(o.memorySizeGb!, unittest.equals(42)); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed15(o.nodes!); + checkUnnamed16(o.nodes!); checkPersistenceConfig(o.persistenceConfig!); unittest.expect(o.persistenceIamIdentity!, unittest.equals('foo')); unittest.expect(o.port!, unittest.equals(42)); unittest.expect(o.readEndpoint!, unittest.equals('foo')); unittest.expect(o.readEndpointPort!, unittest.equals(42)); unittest.expect(o.readReplicasMode!, unittest.equals('foo')); - checkUnnamed16(o.redisConfigs!); + checkUnnamed17(o.redisConfigs!); unittest.expect(o.redisVersion!, unittest.equals('foo')); unittest.expect(o.replicaCount!, unittest.equals(42)); unittest.expect(o.reservedIpRange!, unittest.equals('foo')); unittest.expect(o.satisfiesPzi!, unittest.isTrue); unittest.expect(o.satisfiesPzs!, unittest.isTrue); unittest.expect(o.secondaryIpRange!, unittest.equals('foo')); - checkUnnamed17(o.serverCaCerts!); + checkUnnamed18(o.serverCaCerts!); unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.statusMessage!, unittest.equals('foo')); - checkUnnamed18(o.suspensionReasons!); - checkUnnamed19(o.tags!); + checkUnnamed19(o.suspensionReasons!); + checkUnnamed20(o.tags!); unittest.expect(o.tier!, unittest.equals('foo')); unittest.expect(o.transitEncryptionMode!, unittest.equals('foo')); } @@ -1008,20 +1024,20 @@ void checkInstanceAuthString(api.InstanceAuthString o) { buildCounterInstanceAuthString--; } -core.List buildUnnamed20() => [ +core.List buildUnnamed21() => [ buildBackupCollection(), buildBackupCollection(), ]; -void checkUnnamed20(core.List o) { +void checkUnnamed21(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackupCollection(o[0]); checkBackupCollection(o[1]); } -core.List buildUnnamed21() => ['foo', 'foo']; +core.List buildUnnamed22() => ['foo', 'foo']; -void checkUnnamed21(core.List o) { +void checkUnnamed22(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1032,9 +1048,9 @@ api.ListBackupCollectionsResponse buildListBackupCollectionsResponse() { final o = api.ListBackupCollectionsResponse(); buildCounterListBackupCollectionsResponse++; if (buildCounterListBackupCollectionsResponse < 3) { - o.backupCollections = buildUnnamed20(); + o.backupCollections = buildUnnamed21(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed21(); + o.unreachable = buildUnnamed22(); } buildCounterListBackupCollectionsResponse--; return o; @@ -1043,24 +1059,24 @@ api.ListBackupCollectionsResponse buildListBackupCollectionsResponse() { void checkListBackupCollectionsResponse(api.ListBackupCollectionsResponse o) { buildCounterListBackupCollectionsResponse++; if (buildCounterListBackupCollectionsResponse < 3) { - checkUnnamed20(o.backupCollections!); + checkUnnamed21(o.backupCollections!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed21(o.unreachable!); + checkUnnamed22(o.unreachable!); } buildCounterListBackupCollectionsResponse--; } -core.List buildUnnamed22() => [buildBackup(), buildBackup()]; +core.List buildUnnamed23() => [buildBackup(), buildBackup()]; -void checkUnnamed22(core.List o) { +void checkUnnamed23(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackup(o[0]); checkBackup(o[1]); } -core.List buildUnnamed23() => ['foo', 'foo']; +core.List buildUnnamed24() => ['foo', 'foo']; -void checkUnnamed23(core.List o) { +void checkUnnamed24(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1071,9 +1087,9 @@ api.ListBackupsResponse buildListBackupsResponse() { final o = api.ListBackupsResponse(); buildCounterListBackupsResponse++; if (buildCounterListBackupsResponse < 3) { - o.backups = buildUnnamed22(); + o.backups = buildUnnamed23(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed23(); + o.unreachable = buildUnnamed24(); } buildCounterListBackupsResponse--; return o; @@ -1082,24 +1098,24 @@ api.ListBackupsResponse buildListBackupsResponse() { void checkListBackupsResponse(api.ListBackupsResponse o) { buildCounterListBackupsResponse++; if (buildCounterListBackupsResponse < 3) { - checkUnnamed22(o.backups!); + checkUnnamed23(o.backups!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed23(o.unreachable!); + checkUnnamed24(o.unreachable!); } buildCounterListBackupsResponse--; } -core.List buildUnnamed24() => [buildCluster(), buildCluster()]; +core.List buildUnnamed25() => [buildCluster(), buildCluster()]; -void checkUnnamed24(core.List o) { +void checkUnnamed25(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); } -core.List buildUnnamed25() => ['foo', 'foo']; +core.List buildUnnamed26() => ['foo', 'foo']; -void checkUnnamed25(core.List o) { +void checkUnnamed26(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1110,9 +1126,9 @@ api.ListClustersResponse buildListClustersResponse() { final o = api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed24(); + o.clusters = buildUnnamed25(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed25(); + o.unreachable = buildUnnamed26(); } buildCounterListClustersResponse--; return o; @@ -1121,24 +1137,24 @@ api.ListClustersResponse buildListClustersResponse() { void checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed24(o.clusters!); + checkUnnamed25(o.clusters!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed25(o.unreachable!); + checkUnnamed26(o.unreachable!); } buildCounterListClustersResponse--; } -core.List buildUnnamed26() => [buildInstance(), buildInstance()]; +core.List buildUnnamed27() => [buildInstance(), buildInstance()]; -void checkUnnamed26(core.List o) { +void checkUnnamed27(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); } -core.List buildUnnamed27() => ['foo', 'foo']; +core.List buildUnnamed28() => ['foo', 'foo']; -void checkUnnamed27(core.List o) { +void checkUnnamed28(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1149,9 +1165,9 @@ api.ListInstancesResponse buildListInstancesResponse() { final o = api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed26(); + o.instances = buildUnnamed27(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed27(); + o.unreachable = buildUnnamed28(); } buildCounterListInstancesResponse--; return o; @@ -1160,16 +1176,16 @@ api.ListInstancesResponse buildListInstancesResponse() { void checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed26(o.instances!); + checkUnnamed27(o.instances!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed27(o.unreachable!); + checkUnnamed28(o.unreachable!); } buildCounterListInstancesResponse--; } -core.List buildUnnamed28() => [buildLocation(), buildLocation()]; +core.List buildUnnamed29() => [buildLocation(), buildLocation()]; -void checkUnnamed28(core.List o) { +void checkUnnamed29(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -1180,7 +1196,7 @@ api.ListLocationsResponse buildListLocationsResponse() { final o = api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed28(); + o.locations = buildUnnamed29(); o.nextPageToken = 'foo'; } buildCounterListLocationsResponse--; @@ -1190,18 +1206,18 @@ api.ListLocationsResponse buildListLocationsResponse() { void checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed28(o.locations!); + checkUnnamed29(o.locations!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -core.List buildUnnamed29() => [ +core.List buildUnnamed30() => [ buildOperation(), buildOperation(), ]; -void checkUnnamed29(core.List o) { +void checkUnnamed30(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1213,7 +1229,7 @@ api.ListOperationsResponse buildListOperationsResponse() { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = 'foo'; - o.operations = buildUnnamed29(); + o.operations = buildUnnamed30(); } buildCounterListOperationsResponse--; return o; @@ -1223,20 +1239,20 @@ void checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed29(o.operations!); + checkUnnamed30(o.operations!); } buildCounterListOperationsResponse--; } -core.Map buildUnnamed30() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed31() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed30(core.Map o) { +void checkUnnamed31(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed31() => { +core.Map buildUnnamed32() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1249,7 +1265,7 @@ core.Map buildUnnamed31() => { }, }; -void checkUnnamed31(core.Map o) { +void checkUnnamed32(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o['x']!) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -1269,9 +1285,9 @@ api.Location buildLocation() { buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = 'foo'; - o.labels = buildUnnamed30(); + o.labels = buildUnnamed31(); o.locationId = 'foo'; - o.metadata = buildUnnamed31(); + o.metadata = buildUnnamed32(); o.name = 'foo'; } buildCounterLocation--; @@ -1282,20 +1298,20 @@ void checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed30(o.labels!); + checkUnnamed31(o.labels!); unittest.expect(o.locationId!, unittest.equals('foo')); - checkUnnamed31(o.metadata!); + checkUnnamed32(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); } buildCounterLocation--; } -core.List buildUnnamed32() => [ +core.List buildUnnamed33() => [ buildWeeklyMaintenanceWindow(), buildWeeklyMaintenanceWindow(), ]; -void checkUnnamed32(core.List o) { +void checkUnnamed33(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkWeeklyMaintenanceWindow(o[0]); checkWeeklyMaintenanceWindow(o[1]); @@ -1309,7 +1325,7 @@ api.MaintenancePolicy buildMaintenancePolicy() { o.createTime = 'foo'; o.description = 'foo'; o.updateTime = 'foo'; - o.weeklyMaintenanceWindow = buildUnnamed32(); + o.weeklyMaintenanceWindow = buildUnnamed33(); } buildCounterMaintenancePolicy--; return o; @@ -1321,7 +1337,7 @@ void checkMaintenancePolicy(api.MaintenancePolicy o) { unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); - checkUnnamed32(o.weeklyMaintenanceWindow!); + checkUnnamed33(o.weeklyMaintenanceWindow!); } buildCounterMaintenancePolicy--; } @@ -1370,12 +1386,12 @@ void checkManagedBackupSource(api.ManagedBackupSource o) { buildCounterManagedBackupSource--; } -core.List buildUnnamed33() => [ +core.List buildUnnamed34() => [ buildCertChain(), buildCertChain(), ]; -void checkUnnamed33(core.List o) { +void checkUnnamed34(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCertChain(o[0]); checkCertChain(o[1]); @@ -1386,7 +1402,7 @@ api.ManagedCertificateAuthority buildManagedCertificateAuthority() { final o = api.ManagedCertificateAuthority(); buildCounterManagedCertificateAuthority++; if (buildCounterManagedCertificateAuthority < 3) { - o.caCerts = buildUnnamed33(); + o.caCerts = buildUnnamed34(); } buildCounterManagedCertificateAuthority--; return o; @@ -1395,17 +1411,17 @@ api.ManagedCertificateAuthority buildManagedCertificateAuthority() { void checkManagedCertificateAuthority(api.ManagedCertificateAuthority o) { buildCounterManagedCertificateAuthority++; if (buildCounterManagedCertificateAuthority < 3) { - checkUnnamed33(o.caCerts!); + checkUnnamed34(o.caCerts!); } buildCounterManagedCertificateAuthority--; } -core.List buildUnnamed34() => [ +core.List buildUnnamed35() => [ buildRemoteCluster(), buildRemoteCluster(), ]; -void checkUnnamed34(core.List o) { +void checkUnnamed35(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkRemoteCluster(o[0]); checkRemoteCluster(o[1]); @@ -1417,7 +1433,7 @@ api.Membership buildMembership() { buildCounterMembership++; if (buildCounterMembership < 3) { o.primaryCluster = buildRemoteCluster(); - o.secondaryClusters = buildUnnamed34(); + o.secondaryClusters = buildUnnamed35(); } buildCounterMembership--; return o; @@ -1427,7 +1443,7 @@ void checkMembership(api.Membership o) { buildCounterMembership++; if (buildCounterMembership < 3) { checkRemoteCluster(o.primaryCluster!); - checkUnnamed34(o.secondaryClusters!); + checkUnnamed35(o.secondaryClusters!); } buildCounterMembership--; } @@ -1453,7 +1469,7 @@ void checkNodeInfo(api.NodeInfo o) { buildCounterNodeInfo--; } -core.Map buildUnnamed35() => { +core.Map buildUnnamed36() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1466,7 +1482,7 @@ core.Map buildUnnamed35() => { }, }; -void checkUnnamed35(core.Map o) { +void checkUnnamed36(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o['x']!) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -1480,7 +1496,7 @@ void checkUnnamed35(core.Map o) { unittest.expect(casted4['string'], unittest.equals('foo')); } -core.Map buildUnnamed36() => { +core.Map buildUnnamed37() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1493,7 +1509,7 @@ core.Map buildUnnamed36() => { }, }; -void checkUnnamed36(core.Map o) { +void checkUnnamed37(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o['x']!) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -1514,9 +1530,9 @@ api.Operation buildOperation() { if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed35(); + o.metadata = buildUnnamed36(); o.name = 'foo'; - o.response = buildUnnamed36(); + o.response = buildUnnamed37(); } buildCounterOperation--; return o; @@ -1527,9 +1543,9 @@ void checkOperation(api.Operation o) { if (buildCounterOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkStatus(o.error!); - checkUnnamed35(o.metadata!); + checkUnnamed36(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed36(o.response!); + checkUnnamed37(o.response!); } buildCounterOperation--; } @@ -1792,7 +1808,7 @@ void checkStateInfo(api.StateInfo o) { buildCounterStateInfo--; } -core.Map buildUnnamed37() => { +core.Map buildUnnamed38() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -1805,7 +1821,7 @@ core.Map buildUnnamed37() => { }, }; -void checkUnnamed37(core.Map o) { +void checkUnnamed38(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o['x']!) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -1819,15 +1835,15 @@ void checkUnnamed37(core.Map o) { unittest.expect(casted8['string'], unittest.equals('foo')); } -core.List> buildUnnamed38() => [ - buildUnnamed37(), - buildUnnamed37(), +core.List> buildUnnamed39() => [ + buildUnnamed38(), + buildUnnamed38(), ]; -void checkUnnamed38(core.List> o) { +void checkUnnamed39(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed37(o[0]); - checkUnnamed37(o[1]); + checkUnnamed38(o[0]); + checkUnnamed38(o[1]); } core.int buildCounterStatus = 0; @@ -1836,7 +1852,7 @@ api.Status buildStatus() { buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed38(); + o.details = buildUnnamed39(); o.message = 'foo'; } buildCounterStatus--; @@ -1847,7 +1863,7 @@ void checkStatus(api.Status o) { buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed38(o.details!); + checkUnnamed39(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStatus--; @@ -1991,9 +2007,9 @@ void checkZoneDistributionConfig(api.ZoneDistributionConfig o) { buildCounterZoneDistributionConfig--; } -core.List buildUnnamed39() => ['foo', 'foo']; +core.List buildUnnamed40() => ['foo', 'foo']; -void checkUnnamed39(core.List o) { +void checkUnnamed40(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2740,7 +2756,7 @@ void main() { final mock = HttpServerMock(); final res = api.CloudRedisApi(mock).projects.locations; final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed39(); + final arg_extraLocationTypes = buildUnnamed40(); final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; diff --git a/generated/googleapis/test/retail/v2_test.dart b/generated/googleapis/test/retail/v2_test.dart index c8bce278e..8f0a16439 100644 --- a/generated/googleapis/test/retail/v2_test.dart +++ b/generated/googleapis/test/retail/v2_test.dart @@ -1189,17 +1189,448 @@ void checkGoogleCloudRetailV2ConversationalSearchCustomizationConfig( buildCounterGoogleCloudRetailV2ConversationalSearchCustomizationConfig--; } -core.List buildUnnamed28() => [42.0, 42.0]; +core.List buildUnnamed28() => ['foo', 'foo']; -void checkUnnamed28(core.List o) { +void checkUnnamed28(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed29() => [ + buildGoogleCloudRetailV2SafetySetting(), + buildGoogleCloudRetailV2SafetySetting(), +]; + +void checkUnnamed29(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudRetailV2SafetySetting(o[0]); + checkGoogleCloudRetailV2SafetySetting(o[1]); +} + +core.Map buildUnnamed30() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed30(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudRetailV2ConversationalSearchRequest = 0; +api.GoogleCloudRetailV2ConversationalSearchRequest +buildGoogleCloudRetailV2ConversationalSearchRequest() { + final o = api.GoogleCloudRetailV2ConversationalSearchRequest(); + buildCounterGoogleCloudRetailV2ConversationalSearchRequest++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchRequest < 3) { + o.branch = 'foo'; + o.conversationId = 'foo'; + o.conversationalFilteringSpec = + buildGoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec(); + o.pageCategories = buildUnnamed28(); + o.query = 'foo'; + o.safetySettings = buildUnnamed29(); + o.searchParams = + buildGoogleCloudRetailV2ConversationalSearchRequestSearchParams(); + o.userInfo = buildGoogleCloudRetailV2UserInfo(); + o.userLabels = buildUnnamed30(); + o.visitorId = 'foo'; + } + buildCounterGoogleCloudRetailV2ConversationalSearchRequest--; + return o; +} + +void checkGoogleCloudRetailV2ConversationalSearchRequest( + api.GoogleCloudRetailV2ConversationalSearchRequest o, +) { + buildCounterGoogleCloudRetailV2ConversationalSearchRequest++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchRequest < 3) { + unittest.expect(o.branch!, unittest.equals('foo')); + unittest.expect(o.conversationId!, unittest.equals('foo')); + checkGoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec( + o.conversationalFilteringSpec!, + ); + checkUnnamed28(o.pageCategories!); + unittest.expect(o.query!, unittest.equals('foo')); + checkUnnamed29(o.safetySettings!); + checkGoogleCloudRetailV2ConversationalSearchRequestSearchParams( + o.searchParams!, + ); + checkGoogleCloudRetailV2UserInfo(o.userInfo!); + checkUnnamed30(o.userLabels!); + unittest.expect(o.visitorId!, unittest.equals('foo')); + } + buildCounterGoogleCloudRetailV2ConversationalSearchRequest--; +} + +core.int +buildCounterGoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec = + 0; +api.GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec +buildGoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec() { + final o = + api.GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec(); + buildCounterGoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec < + 3) { + o.conversationalFilteringMode = 'foo'; + o.enableConversationalFiltering = true; + o.userAnswer = + buildGoogleCloudRetailV2ConversationalSearchRequestUserAnswer(); + } + buildCounterGoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec--; + return o; +} + +void +checkGoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec( + api.GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec + o, +) { + buildCounterGoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec < + 3) { + unittest.expect(o.conversationalFilteringMode!, unittest.equals('foo')); + unittest.expect(o.enableConversationalFiltering!, unittest.isTrue); + checkGoogleCloudRetailV2ConversationalSearchRequestUserAnswer( + o.userAnswer!, + ); + } + buildCounterGoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec--; +} + +core.int +buildCounterGoogleCloudRetailV2ConversationalSearchRequestSearchParams = 0; +api.GoogleCloudRetailV2ConversationalSearchRequestSearchParams +buildGoogleCloudRetailV2ConversationalSearchRequestSearchParams() { + final o = api.GoogleCloudRetailV2ConversationalSearchRequestSearchParams(); + buildCounterGoogleCloudRetailV2ConversationalSearchRequestSearchParams++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchRequestSearchParams < + 3) { + o.boostSpec = buildGoogleCloudRetailV2SearchRequestBoostSpec(); + o.canonicalFilter = 'foo'; + o.filter = 'foo'; + o.sortBy = 'foo'; + } + buildCounterGoogleCloudRetailV2ConversationalSearchRequestSearchParams--; + return o; +} + +void checkGoogleCloudRetailV2ConversationalSearchRequestSearchParams( + api.GoogleCloudRetailV2ConversationalSearchRequestSearchParams o, +) { + buildCounterGoogleCloudRetailV2ConversationalSearchRequestSearchParams++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchRequestSearchParams < + 3) { + checkGoogleCloudRetailV2SearchRequestBoostSpec(o.boostSpec!); + unittest.expect(o.canonicalFilter!, unittest.equals('foo')); + unittest.expect(o.filter!, unittest.equals('foo')); + unittest.expect(o.sortBy!, unittest.equals('foo')); + } + buildCounterGoogleCloudRetailV2ConversationalSearchRequestSearchParams--; +} + +core.int buildCounterGoogleCloudRetailV2ConversationalSearchRequestUserAnswer = + 0; +api.GoogleCloudRetailV2ConversationalSearchRequestUserAnswer +buildGoogleCloudRetailV2ConversationalSearchRequestUserAnswer() { + final o = api.GoogleCloudRetailV2ConversationalSearchRequestUserAnswer(); + buildCounterGoogleCloudRetailV2ConversationalSearchRequestUserAnswer++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchRequestUserAnswer < + 3) { + o.selectedAnswer = + buildGoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer(); + o.textAnswer = 'foo'; + } + buildCounterGoogleCloudRetailV2ConversationalSearchRequestUserAnswer--; + return o; +} + +void checkGoogleCloudRetailV2ConversationalSearchRequestUserAnswer( + api.GoogleCloudRetailV2ConversationalSearchRequestUserAnswer o, +) { + buildCounterGoogleCloudRetailV2ConversationalSearchRequestUserAnswer++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchRequestUserAnswer < + 3) { + checkGoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer( + o.selectedAnswer!, + ); + unittest.expect(o.textAnswer!, unittest.equals('foo')); + } + buildCounterGoogleCloudRetailV2ConversationalSearchRequestUserAnswer--; +} + +core.int +buildCounterGoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer = + 0; +api.GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer +buildGoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer() { + final o = + api.GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer(); + buildCounterGoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer < + 3) { + o.productAttributeValue = buildGoogleCloudRetailV2ProductAttributeValue(); + } + buildCounterGoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer--; + return o; +} + +void +checkGoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer( + api.GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer o, +) { + buildCounterGoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer < + 3) { + checkGoogleCloudRetailV2ProductAttributeValue(o.productAttributeValue!); + } + buildCounterGoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer--; +} + +core.List +buildUnnamed31() => [ + buildGoogleCloudRetailV2ConversationalSearchResponseRefinedSearch(), + buildGoogleCloudRetailV2ConversationalSearchResponseRefinedSearch(), +]; + +void checkUnnamed31( + core.List o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudRetailV2ConversationalSearchResponseRefinedSearch(o[0]); + checkGoogleCloudRetailV2ConversationalSearchResponseRefinedSearch(o[1]); +} + +core.List buildUnnamed32() => ['foo', 'foo']; + +void checkUnnamed32(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudRetailV2ConversationalSearchResponse = 0; +api.GoogleCloudRetailV2ConversationalSearchResponse +buildGoogleCloudRetailV2ConversationalSearchResponse() { + final o = api.GoogleCloudRetailV2ConversationalSearchResponse(); + buildCounterGoogleCloudRetailV2ConversationalSearchResponse++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchResponse < 3) { + o.conversationId = 'foo'; + o.conversationalFilteringResult = + buildGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult(); + o.conversationalTextResponse = 'foo'; + o.followupQuestion = + buildGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion(); + o.refinedSearch = buildUnnamed31(); + o.state = 'foo'; + o.userQueryTypes = buildUnnamed32(); + } + buildCounterGoogleCloudRetailV2ConversationalSearchResponse--; + return o; +} + +void checkGoogleCloudRetailV2ConversationalSearchResponse( + api.GoogleCloudRetailV2ConversationalSearchResponse o, +) { + buildCounterGoogleCloudRetailV2ConversationalSearchResponse++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchResponse < 3) { + unittest.expect(o.conversationId!, unittest.equals('foo')); + checkGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult( + o.conversationalFilteringResult!, + ); + unittest.expect(o.conversationalTextResponse!, unittest.equals('foo')); + checkGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion( + o.followupQuestion!, + ); + checkUnnamed31(o.refinedSearch!); + unittest.expect(o.state!, unittest.equals('foo')); + checkUnnamed32(o.userQueryTypes!); + } + buildCounterGoogleCloudRetailV2ConversationalSearchResponse--; +} + +core.int +buildCounterGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult = + 0; +api.GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult +buildGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult() { + final o = + api.GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult(); + buildCounterGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult < + 3) { + o.additionalFilter = + buildGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter(); + o.followupQuestion = + buildGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion(); + } + buildCounterGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult--; + return o; +} + +void +checkGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult( + api.GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult + o, +) { + buildCounterGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult < + 3) { + checkGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter( + o.additionalFilter!, + ); + checkGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion( + o.followupQuestion!, + ); + } + buildCounterGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult--; +} + +core.int +buildCounterGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter = + 0; +api.GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter +buildGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter() { + final o = + api.GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter(); + buildCounterGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter < + 3) { + o.productAttributeValue = buildGoogleCloudRetailV2ProductAttributeValue(); + } + buildCounterGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter--; + return o; +} + +void +checkGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter( + api.GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter + o, +) { + buildCounterGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter < + 3) { + checkGoogleCloudRetailV2ProductAttributeValue(o.productAttributeValue!); + } + buildCounterGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter--; +} + +core.List< + api.GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer +> +buildUnnamed33() => [ + buildGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer(), + buildGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer(), +]; + +void checkUnnamed33( + core.List< + api.GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer + > + o, +) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer( + o[0], + ); + checkGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer( + o[1], + ); +} + +core.int +buildCounterGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion = 0; +api.GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion +buildGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion() { + final o = + api.GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion(); + buildCounterGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion < + 3) { + o.followupQuestion = 'foo'; + o.suggestedAnswers = buildUnnamed33(); + } + buildCounterGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion--; + return o; +} + +void checkGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion( + api.GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion o, +) { + buildCounterGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion < + 3) { + unittest.expect(o.followupQuestion!, unittest.equals('foo')); + checkUnnamed33(o.suggestedAnswers!); + } + buildCounterGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion--; +} + +core.int +buildCounterGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer = + 0; +api.GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer +buildGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer() { + final o = + api.GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer(); + buildCounterGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer < + 3) { + o.productAttributeValue = buildGoogleCloudRetailV2ProductAttributeValue(); + } + buildCounterGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer--; + return o; +} + +void +checkGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer( + api.GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer + o, +) { + buildCounterGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer < + 3) { + checkGoogleCloudRetailV2ProductAttributeValue(o.productAttributeValue!); + } + buildCounterGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer--; +} + +core.int +buildCounterGoogleCloudRetailV2ConversationalSearchResponseRefinedSearch = 0; +api.GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch +buildGoogleCloudRetailV2ConversationalSearchResponseRefinedSearch() { + final o = api.GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch(); + buildCounterGoogleCloudRetailV2ConversationalSearchResponseRefinedSearch++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchResponseRefinedSearch < + 3) { + o.query = 'foo'; + } + buildCounterGoogleCloudRetailV2ConversationalSearchResponseRefinedSearch--; + return o; +} + +void checkGoogleCloudRetailV2ConversationalSearchResponseRefinedSearch( + api.GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch o, +) { + buildCounterGoogleCloudRetailV2ConversationalSearchResponseRefinedSearch++; + if (buildCounterGoogleCloudRetailV2ConversationalSearchResponseRefinedSearch < + 3) { + unittest.expect(o.query!, unittest.equals('foo')); + } + buildCounterGoogleCloudRetailV2ConversationalSearchResponseRefinedSearch--; +} + +core.List buildUnnamed34() => [42.0, 42.0]; + +void checkUnnamed34(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -core.List buildUnnamed29() => ['foo', 'foo']; +core.List buildUnnamed35() => ['foo', 'foo']; -void checkUnnamed29(core.List o) { +void checkUnnamed35(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1212,9 +1643,9 @@ buildGoogleCloudRetailV2CustomAttribute() { buildCounterGoogleCloudRetailV2CustomAttribute++; if (buildCounterGoogleCloudRetailV2CustomAttribute < 3) { o.indexable = true; - o.numbers = buildUnnamed28(); + o.numbers = buildUnnamed34(); o.searchable = true; - o.text = buildUnnamed29(); + o.text = buildUnnamed35(); } buildCounterGoogleCloudRetailV2CustomAttribute--; return o; @@ -1226,16 +1657,16 @@ void checkGoogleCloudRetailV2CustomAttribute( buildCounterGoogleCloudRetailV2CustomAttribute++; if (buildCounterGoogleCloudRetailV2CustomAttribute < 3) { unittest.expect(o.indexable!, unittest.isTrue); - checkUnnamed28(o.numbers!); + checkUnnamed34(o.numbers!); unittest.expect(o.searchable!, unittest.isTrue); - checkUnnamed29(o.text!); + checkUnnamed35(o.text!); } buildCounterGoogleCloudRetailV2CustomAttribute--; } -core.List buildUnnamed30() => [42.0, 42.0]; +core.List buildUnnamed36() => [42.0, 42.0]; -void checkUnnamed30(core.List o) { +void checkUnnamed36(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -1246,7 +1677,7 @@ api.GoogleCloudRetailV2DoubleList buildGoogleCloudRetailV2DoubleList() { final o = api.GoogleCloudRetailV2DoubleList(); buildCounterGoogleCloudRetailV2DoubleList++; if (buildCounterGoogleCloudRetailV2DoubleList < 3) { - o.values = buildUnnamed30(); + o.values = buildUnnamed36(); } buildCounterGoogleCloudRetailV2DoubleList--; return o; @@ -1255,7 +1686,7 @@ api.GoogleCloudRetailV2DoubleList buildGoogleCloudRetailV2DoubleList() { void checkGoogleCloudRetailV2DoubleList(api.GoogleCloudRetailV2DoubleList o) { buildCounterGoogleCloudRetailV2DoubleList++; if (buildCounterGoogleCloudRetailV2DoubleList < 3) { - checkUnnamed30(o.values!); + checkUnnamed36(o.values!); } buildCounterGoogleCloudRetailV2DoubleList--; } @@ -1337,9 +1768,9 @@ void checkGoogleCloudRetailV2ExportAnalyticsMetricsRequest( buildCounterGoogleCloudRetailV2ExportAnalyticsMetricsRequest--; } -core.List buildUnnamed31() => ['foo', 'foo']; +core.List buildUnnamed37() => ['foo', 'foo']; -void checkUnnamed31(core.List o) { +void checkUnnamed37(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1351,7 +1782,7 @@ buildGoogleCloudRetailV2FulfillmentInfo() { final o = api.GoogleCloudRetailV2FulfillmentInfo(); buildCounterGoogleCloudRetailV2FulfillmentInfo++; if (buildCounterGoogleCloudRetailV2FulfillmentInfo < 3) { - o.placeIds = buildUnnamed31(); + o.placeIds = buildUnnamed37(); o.type = 'foo'; } buildCounterGoogleCloudRetailV2FulfillmentInfo--; @@ -1363,15 +1794,15 @@ void checkGoogleCloudRetailV2FulfillmentInfo( ) { buildCounterGoogleCloudRetailV2FulfillmentInfo++; if (buildCounterGoogleCloudRetailV2FulfillmentInfo < 3) { - checkUnnamed31(o.placeIds!); + checkUnnamed37(o.placeIds!); unittest.expect(o.type!, unittest.equals('foo')); } buildCounterGoogleCloudRetailV2FulfillmentInfo--; } -core.List buildUnnamed32() => ['foo', 'foo']; +core.List buildUnnamed38() => ['foo', 'foo']; -void checkUnnamed32(core.List o) { +void checkUnnamed38(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1383,7 +1814,7 @@ api.GoogleCloudRetailV2GcsSource buildGoogleCloudRetailV2GcsSource() { buildCounterGoogleCloudRetailV2GcsSource++; if (buildCounterGoogleCloudRetailV2GcsSource < 3) { o.dataSchema = 'foo'; - o.inputUris = buildUnnamed32(); + o.inputUris = buildUnnamed38(); } buildCounterGoogleCloudRetailV2GcsSource--; return o; @@ -1393,14 +1824,14 @@ void checkGoogleCloudRetailV2GcsSource(api.GoogleCloudRetailV2GcsSource o) { buildCounterGoogleCloudRetailV2GcsSource++; if (buildCounterGoogleCloudRetailV2GcsSource < 3) { unittest.expect(o.dataSchema!, unittest.equals('foo')); - checkUnnamed32(o.inputUris!); + checkUnnamed38(o.inputUris!); } buildCounterGoogleCloudRetailV2GcsSource--; } -core.List buildUnnamed33() => ['foo', 'foo']; +core.List buildUnnamed39() => ['foo', 'foo']; -void checkUnnamed33(core.List o) { +void checkUnnamed39(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1414,7 +1845,7 @@ buildGoogleCloudRetailV2GenerativeQuestionConfig() { if (buildCounterGoogleCloudRetailV2GenerativeQuestionConfig < 3) { o.allowedInConversation = true; o.catalog = 'foo'; - o.exampleValues = buildUnnamed33(); + o.exampleValues = buildUnnamed39(); o.facet = 'foo'; o.finalQuestion = 'foo'; o.frequency = 42.0; @@ -1431,7 +1862,7 @@ void checkGoogleCloudRetailV2GenerativeQuestionConfig( if (buildCounterGoogleCloudRetailV2GenerativeQuestionConfig < 3) { unittest.expect(o.allowedInConversation!, unittest.isTrue); unittest.expect(o.catalog!, unittest.equals('foo')); - checkUnnamed33(o.exampleValues!); + checkUnnamed39(o.exampleValues!); unittest.expect(o.facet!, unittest.equals('foo')); unittest.expect(o.finalQuestion!, unittest.equals('foo')); unittest.expect(o.frequency!, unittest.equals(42.0)); @@ -1617,29 +2048,29 @@ void checkGoogleCloudRetailV2ImportUserEventsRequest( buildCounterGoogleCloudRetailV2ImportUserEventsRequest--; } -core.List buildUnnamed34() => ['foo', 'foo']; +core.List buildUnnamed40() => ['foo', 'foo']; -void checkUnnamed34(core.List o) { +void checkUnnamed40(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed35() => ['foo', 'foo']; +core.List buildUnnamed41() => ['foo', 'foo']; -void checkUnnamed35(core.List o) { +void checkUnnamed41(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } core.List -buildUnnamed36() => [ +buildUnnamed42() => [ buildGoogleCloudRetailV2IntentClassificationConfigExample(), buildGoogleCloudRetailV2IntentClassificationConfigExample(), ]; -void checkUnnamed36( +void checkUnnamed42( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -1653,9 +2084,9 @@ buildGoogleCloudRetailV2IntentClassificationConfig() { final o = api.GoogleCloudRetailV2IntentClassificationConfig(); buildCounterGoogleCloudRetailV2IntentClassificationConfig++; if (buildCounterGoogleCloudRetailV2IntentClassificationConfig < 3) { - o.blocklistKeywords = buildUnnamed34(); - o.disabledIntentTypes = buildUnnamed35(); - o.example = buildUnnamed36(); + o.blocklistKeywords = buildUnnamed40(); + o.disabledIntentTypes = buildUnnamed41(); + o.example = buildUnnamed42(); o.inlineSource = buildGoogleCloudRetailV2IntentClassificationConfigInlineSource(); o.modelPreamble = 'foo'; @@ -1669,9 +2100,9 @@ void checkGoogleCloudRetailV2IntentClassificationConfig( ) { buildCounterGoogleCloudRetailV2IntentClassificationConfig++; if (buildCounterGoogleCloudRetailV2IntentClassificationConfig < 3) { - checkUnnamed34(o.blocklistKeywords!); - checkUnnamed35(o.disabledIntentTypes!); - checkUnnamed36(o.example!); + checkUnnamed40(o.blocklistKeywords!); + checkUnnamed41(o.disabledIntentTypes!); + checkUnnamed42(o.example!); checkGoogleCloudRetailV2IntentClassificationConfigInlineSource( o.inlineSource!, ); @@ -1739,12 +2170,12 @@ void checkGoogleCloudRetailV2IntentClassificationConfigInlineForceIntent( } core.List -buildUnnamed37() => [ +buildUnnamed43() => [ buildGoogleCloudRetailV2IntentClassificationConfigInlineForceIntent(), buildGoogleCloudRetailV2IntentClassificationConfigInlineForceIntent(), ]; -void checkUnnamed37( +void checkUnnamed43( core.List o, ) { @@ -1761,7 +2192,7 @@ buildGoogleCloudRetailV2IntentClassificationConfigInlineSource() { buildCounterGoogleCloudRetailV2IntentClassificationConfigInlineSource++; if (buildCounterGoogleCloudRetailV2IntentClassificationConfigInlineSource < 3) { - o.inlineForceIntents = buildUnnamed37(); + o.inlineForceIntents = buildUnnamed43(); } buildCounterGoogleCloudRetailV2IntentClassificationConfigInlineSource--; return o; @@ -1773,7 +2204,7 @@ void checkGoogleCloudRetailV2IntentClassificationConfigInlineSource( buildCounterGoogleCloudRetailV2IntentClassificationConfigInlineSource++; if (buildCounterGoogleCloudRetailV2IntentClassificationConfigInlineSource < 3) { - checkUnnamed37(o.inlineForceIntents!); + checkUnnamed43(o.inlineForceIntents!); } buildCounterGoogleCloudRetailV2IntentClassificationConfigInlineSource--; } @@ -1803,12 +2234,12 @@ void checkGoogleCloudRetailV2Interval(api.GoogleCloudRetailV2Interval o) { buildCounterGoogleCloudRetailV2Interval--; } -core.List buildUnnamed38() => [ +core.List buildUnnamed44() => [ buildGoogleCloudRetailV2Catalog(), buildGoogleCloudRetailV2Catalog(), ]; -void checkUnnamed38(core.List o) { +void checkUnnamed44(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2Catalog(o[0]); checkGoogleCloudRetailV2Catalog(o[1]); @@ -1820,7 +2251,7 @@ buildGoogleCloudRetailV2ListCatalogsResponse() { final o = api.GoogleCloudRetailV2ListCatalogsResponse(); buildCounterGoogleCloudRetailV2ListCatalogsResponse++; if (buildCounterGoogleCloudRetailV2ListCatalogsResponse < 3) { - o.catalogs = buildUnnamed38(); + o.catalogs = buildUnnamed44(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudRetailV2ListCatalogsResponse--; @@ -1832,18 +2263,18 @@ void checkGoogleCloudRetailV2ListCatalogsResponse( ) { buildCounterGoogleCloudRetailV2ListCatalogsResponse++; if (buildCounterGoogleCloudRetailV2ListCatalogsResponse < 3) { - checkUnnamed38(o.catalogs!); + checkUnnamed44(o.catalogs!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudRetailV2ListCatalogsResponse--; } -core.List buildUnnamed39() => [ +core.List buildUnnamed45() => [ buildGoogleCloudRetailV2Control(), buildGoogleCloudRetailV2Control(), ]; -void checkUnnamed39(core.List o) { +void checkUnnamed45(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2Control(o[0]); checkGoogleCloudRetailV2Control(o[1]); @@ -1855,7 +2286,7 @@ buildGoogleCloudRetailV2ListControlsResponse() { final o = api.GoogleCloudRetailV2ListControlsResponse(); buildCounterGoogleCloudRetailV2ListControlsResponse++; if (buildCounterGoogleCloudRetailV2ListControlsResponse < 3) { - o.controls = buildUnnamed39(); + o.controls = buildUnnamed45(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudRetailV2ListControlsResponse--; @@ -1867,18 +2298,18 @@ void checkGoogleCloudRetailV2ListControlsResponse( ) { buildCounterGoogleCloudRetailV2ListControlsResponse++; if (buildCounterGoogleCloudRetailV2ListControlsResponse < 3) { - checkUnnamed39(o.controls!); + checkUnnamed45(o.controls!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudRetailV2ListControlsResponse--; } -core.List buildUnnamed40() => [ +core.List buildUnnamed46() => [ buildGoogleCloudRetailV2GenerativeQuestionConfig(), buildGoogleCloudRetailV2GenerativeQuestionConfig(), ]; -void checkUnnamed40( +void checkUnnamed46( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -1894,7 +2325,7 @@ buildGoogleCloudRetailV2ListGenerativeQuestionConfigsResponse() { buildCounterGoogleCloudRetailV2ListGenerativeQuestionConfigsResponse++; if (buildCounterGoogleCloudRetailV2ListGenerativeQuestionConfigsResponse < 3) { - o.generativeQuestionConfigs = buildUnnamed40(); + o.generativeQuestionConfigs = buildUnnamed46(); } buildCounterGoogleCloudRetailV2ListGenerativeQuestionConfigsResponse--; return o; @@ -1906,17 +2337,17 @@ void checkGoogleCloudRetailV2ListGenerativeQuestionConfigsResponse( buildCounterGoogleCloudRetailV2ListGenerativeQuestionConfigsResponse++; if (buildCounterGoogleCloudRetailV2ListGenerativeQuestionConfigsResponse < 3) { - checkUnnamed40(o.generativeQuestionConfigs!); + checkUnnamed46(o.generativeQuestionConfigs!); } buildCounterGoogleCloudRetailV2ListGenerativeQuestionConfigsResponse--; } -core.List buildUnnamed41() => [ +core.List buildUnnamed47() => [ buildGoogleCloudRetailV2Model(), buildGoogleCloudRetailV2Model(), ]; -void checkUnnamed41(core.List o) { +void checkUnnamed47(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2Model(o[0]); checkGoogleCloudRetailV2Model(o[1]); @@ -1928,7 +2359,7 @@ buildGoogleCloudRetailV2ListModelsResponse() { final o = api.GoogleCloudRetailV2ListModelsResponse(); buildCounterGoogleCloudRetailV2ListModelsResponse++; if (buildCounterGoogleCloudRetailV2ListModelsResponse < 3) { - o.models = buildUnnamed41(); + o.models = buildUnnamed47(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudRetailV2ListModelsResponse--; @@ -1940,18 +2371,18 @@ void checkGoogleCloudRetailV2ListModelsResponse( ) { buildCounterGoogleCloudRetailV2ListModelsResponse++; if (buildCounterGoogleCloudRetailV2ListModelsResponse < 3) { - checkUnnamed41(o.models!); + checkUnnamed47(o.models!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterGoogleCloudRetailV2ListModelsResponse--; } -core.List buildUnnamed42() => [ +core.List buildUnnamed48() => [ buildGoogleCloudRetailV2Product(), buildGoogleCloudRetailV2Product(), ]; -void checkUnnamed42(core.List o) { +void checkUnnamed48(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2Product(o[0]); checkGoogleCloudRetailV2Product(o[1]); @@ -1964,7 +2395,7 @@ buildGoogleCloudRetailV2ListProductsResponse() { buildCounterGoogleCloudRetailV2ListProductsResponse++; if (buildCounterGoogleCloudRetailV2ListProductsResponse < 3) { o.nextPageToken = 'foo'; - o.products = buildUnnamed42(); + o.products = buildUnnamed48(); } buildCounterGoogleCloudRetailV2ListProductsResponse--; return o; @@ -1976,17 +2407,17 @@ void checkGoogleCloudRetailV2ListProductsResponse( buildCounterGoogleCloudRetailV2ListProductsResponse++; if (buildCounterGoogleCloudRetailV2ListProductsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed42(o.products!); + checkUnnamed48(o.products!); } buildCounterGoogleCloudRetailV2ListProductsResponse--; } -core.List buildUnnamed43() => [ +core.List buildUnnamed49() => [ buildGoogleCloudRetailV2ServingConfig(), buildGoogleCloudRetailV2ServingConfig(), ]; -void checkUnnamed43(core.List o) { +void checkUnnamed49(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2ServingConfig(o[0]); checkGoogleCloudRetailV2ServingConfig(o[1]); @@ -1999,7 +2430,7 @@ buildGoogleCloudRetailV2ListServingConfigsResponse() { buildCounterGoogleCloudRetailV2ListServingConfigsResponse++; if (buildCounterGoogleCloudRetailV2ListServingConfigsResponse < 3) { o.nextPageToken = 'foo'; - o.servingConfigs = buildUnnamed43(); + o.servingConfigs = buildUnnamed49(); } buildCounterGoogleCloudRetailV2ListServingConfigsResponse--; return o; @@ -2011,18 +2442,18 @@ void checkGoogleCloudRetailV2ListServingConfigsResponse( buildCounterGoogleCloudRetailV2ListServingConfigsResponse++; if (buildCounterGoogleCloudRetailV2ListServingConfigsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed43(o.servingConfigs!); + checkUnnamed49(o.servingConfigs!); } buildCounterGoogleCloudRetailV2ListServingConfigsResponse--; } core.Map -buildUnnamed44() => { +buildUnnamed50() => { 'x': buildGoogleCloudRetailV2CustomAttribute(), 'y': buildGoogleCloudRetailV2CustomAttribute(), }; -void checkUnnamed44( +void checkUnnamed50( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -2030,9 +2461,9 @@ void checkUnnamed44( checkGoogleCloudRetailV2CustomAttribute(o['y']!); } -core.List buildUnnamed45() => ['foo', 'foo']; +core.List buildUnnamed51() => ['foo', 'foo']; -void checkUnnamed45(core.List o) { +void checkUnnamed51(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2043,8 +2474,8 @@ api.GoogleCloudRetailV2LocalInventory buildGoogleCloudRetailV2LocalInventory() { final o = api.GoogleCloudRetailV2LocalInventory(); buildCounterGoogleCloudRetailV2LocalInventory++; if (buildCounterGoogleCloudRetailV2LocalInventory < 3) { - o.attributes = buildUnnamed44(); - o.fulfillmentTypes = buildUnnamed45(); + o.attributes = buildUnnamed50(); + o.fulfillmentTypes = buildUnnamed51(); o.placeId = 'foo'; o.priceInfo = buildGoogleCloudRetailV2PriceInfo(); } @@ -2057,20 +2488,20 @@ void checkGoogleCloudRetailV2LocalInventory( ) { buildCounterGoogleCloudRetailV2LocalInventory++; if (buildCounterGoogleCloudRetailV2LocalInventory < 3) { - checkUnnamed44(o.attributes!); - checkUnnamed45(o.fulfillmentTypes!); + checkUnnamed50(o.attributes!); + checkUnnamed51(o.fulfillmentTypes!); unittest.expect(o.placeId!, unittest.equals('foo')); checkGoogleCloudRetailV2PriceInfo(o.priceInfo!); } buildCounterGoogleCloudRetailV2LocalInventory--; } -core.List buildUnnamed46() => [ +core.List buildUnnamed52() => [ buildGoogleCloudRetailV2ModelServingConfigList(), buildGoogleCloudRetailV2ModelServingConfigList(), ]; -void checkUnnamed46( +void checkUnnamed52( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -2092,7 +2523,7 @@ api.GoogleCloudRetailV2Model buildGoogleCloudRetailV2Model() { o.name = 'foo'; o.optimizationObjective = 'foo'; o.periodicTuningState = 'foo'; - o.servingConfigLists = buildUnnamed46(); + o.servingConfigLists = buildUnnamed52(); o.servingState = 'foo'; o.trainingState = 'foo'; o.tuningOperation = 'foo'; @@ -2115,7 +2546,7 @@ void checkGoogleCloudRetailV2Model(api.GoogleCloudRetailV2Model o) { unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.optimizationObjective!, unittest.equals('foo')); unittest.expect(o.periodicTuningState!, unittest.equals('foo')); - checkUnnamed46(o.servingConfigLists!); + checkUnnamed52(o.servingConfigLists!); unittest.expect(o.servingState!, unittest.equals('foo')); unittest.expect(o.trainingState!, unittest.equals('foo')); unittest.expect(o.tuningOperation!, unittest.equals('foo')); @@ -2176,9 +2607,9 @@ void checkGoogleCloudRetailV2ModelModelFeaturesConfig( buildCounterGoogleCloudRetailV2ModelModelFeaturesConfig--; } -core.List buildUnnamed47() => ['foo', 'foo']; +core.List buildUnnamed53() => ['foo', 'foo']; -void checkUnnamed47(core.List o) { +void checkUnnamed53(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2190,7 +2621,7 @@ buildGoogleCloudRetailV2ModelServingConfigList() { final o = api.GoogleCloudRetailV2ModelServingConfigList(); buildCounterGoogleCloudRetailV2ModelServingConfigList++; if (buildCounterGoogleCloudRetailV2ModelServingConfigList < 3) { - o.servingConfigIds = buildUnnamed47(); + o.servingConfigIds = buildUnnamed53(); } buildCounterGoogleCloudRetailV2ModelServingConfigList--; return o; @@ -2201,7 +2632,7 @@ void checkGoogleCloudRetailV2ModelServingConfigList( ) { buildCounterGoogleCloudRetailV2ModelServingConfigList++; if (buildCounterGoogleCloudRetailV2ModelServingConfigList < 3) { - checkUnnamed47(o.servingConfigIds!); + checkUnnamed53(o.servingConfigIds!); } buildCounterGoogleCloudRetailV2ModelServingConfigList--; } @@ -2280,12 +2711,12 @@ void checkGoogleCloudRetailV2OutputConfigGcsDestination( buildCounterGoogleCloudRetailV2OutputConfigGcsDestination--; } -core.List buildUnnamed48() => [ +core.List buildUnnamed54() => [ buildGoogleCloudRetailV2ProductDetail(), buildGoogleCloudRetailV2ProductDetail(), ]; -void checkUnnamed48(core.List o) { +void checkUnnamed54(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2ProductDetail(o[0]); checkGoogleCloudRetailV2ProductDetail(o[1]); @@ -2300,7 +2731,7 @@ api.GoogleCloudRetailV2PanelInfo buildGoogleCloudRetailV2PanelInfo() { o.displayName = 'foo'; o.panelId = 'foo'; o.panelPosition = 42; - o.productDetails = buildUnnamed48(); + o.productDetails = buildUnnamed54(); o.totalPanels = 42; } buildCounterGoogleCloudRetailV2PanelInfo--; @@ -2314,7 +2745,7 @@ void checkGoogleCloudRetailV2PanelInfo(api.GoogleCloudRetailV2PanelInfo o) { unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.panelId!, unittest.equals('foo')); unittest.expect(o.panelPosition!, unittest.equals(42)); - checkUnnamed48(o.productDetails!); + checkUnnamed54(o.productDetails!); unittest.expect(o.totalPanels!, unittest.equals(42)); } buildCounterGoogleCloudRetailV2PanelInfo--; @@ -2339,12 +2770,12 @@ void checkGoogleCloudRetailV2PauseModelRequest( } core.Map -buildUnnamed49() => { +buildUnnamed55() => { 'x': buildGoogleCloudRetailV2PinControlMetadataProductPins(), 'y': buildGoogleCloudRetailV2PinControlMetadataProductPins(), }; -void checkUnnamed49( +void checkUnnamed55( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -2353,12 +2784,12 @@ void checkUnnamed49( } core.Map -buildUnnamed50() => { +buildUnnamed56() => { 'x': buildGoogleCloudRetailV2PinControlMetadataProductPins(), 'y': buildGoogleCloudRetailV2PinControlMetadataProductPins(), }; -void checkUnnamed50( +void checkUnnamed56( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -2372,8 +2803,8 @@ buildGoogleCloudRetailV2PinControlMetadata() { final o = api.GoogleCloudRetailV2PinControlMetadata(); buildCounterGoogleCloudRetailV2PinControlMetadata++; if (buildCounterGoogleCloudRetailV2PinControlMetadata < 3) { - o.allMatchedPins = buildUnnamed49(); - o.droppedPins = buildUnnamed50(); + o.allMatchedPins = buildUnnamed55(); + o.droppedPins = buildUnnamed56(); } buildCounterGoogleCloudRetailV2PinControlMetadata--; return o; @@ -2384,15 +2815,15 @@ void checkGoogleCloudRetailV2PinControlMetadata( ) { buildCounterGoogleCloudRetailV2PinControlMetadata++; if (buildCounterGoogleCloudRetailV2PinControlMetadata < 3) { - checkUnnamed49(o.allMatchedPins!); - checkUnnamed50(o.droppedPins!); + checkUnnamed55(o.allMatchedPins!); + checkUnnamed56(o.droppedPins!); } buildCounterGoogleCloudRetailV2PinControlMetadata--; } -core.List buildUnnamed51() => ['foo', 'foo']; +core.List buildUnnamed57() => ['foo', 'foo']; -void checkUnnamed51(core.List o) { +void checkUnnamed57(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2404,7 +2835,7 @@ buildGoogleCloudRetailV2PinControlMetadataProductPins() { final o = api.GoogleCloudRetailV2PinControlMetadataProductPins(); buildCounterGoogleCloudRetailV2PinControlMetadataProductPins++; if (buildCounterGoogleCloudRetailV2PinControlMetadataProductPins < 3) { - o.productId = buildUnnamed51(); + o.productId = buildUnnamed57(); } buildCounterGoogleCloudRetailV2PinControlMetadataProductPins--; return o; @@ -2415,20 +2846,20 @@ void checkGoogleCloudRetailV2PinControlMetadataProductPins( ) { buildCounterGoogleCloudRetailV2PinControlMetadataProductPins++; if (buildCounterGoogleCloudRetailV2PinControlMetadataProductPins < 3) { - checkUnnamed51(o.productId!); + checkUnnamed57(o.productId!); } buildCounterGoogleCloudRetailV2PinControlMetadataProductPins--; } -core.Map buildUnnamed52() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed58() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed52(core.Map o) { +void checkUnnamed58(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed53() => { +core.Map buildUnnamed59() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2441,7 +2872,7 @@ core.Map buildUnnamed53() => { }, }; -void checkUnnamed53(core.Map o) { +void checkUnnamed59(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o['x']!) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -2461,10 +2892,10 @@ api.GoogleCloudRetailV2PredictRequest buildGoogleCloudRetailV2PredictRequest() { buildCounterGoogleCloudRetailV2PredictRequest++; if (buildCounterGoogleCloudRetailV2PredictRequest < 3) { o.filter = 'foo'; - o.labels = buildUnnamed52(); + o.labels = buildUnnamed58(); o.pageSize = 42; o.pageToken = 'foo'; - o.params = buildUnnamed53(); + o.params = buildUnnamed59(); o.userEvent = buildGoogleCloudRetailV2UserEvent(); o.validateOnly = true; } @@ -2478,31 +2909,31 @@ void checkGoogleCloudRetailV2PredictRequest( buildCounterGoogleCloudRetailV2PredictRequest++; if (buildCounterGoogleCloudRetailV2PredictRequest < 3) { unittest.expect(o.filter!, unittest.equals('foo')); - checkUnnamed52(o.labels!); + checkUnnamed58(o.labels!); unittest.expect(o.pageSize!, unittest.equals(42)); unittest.expect(o.pageToken!, unittest.equals('foo')); - checkUnnamed53(o.params!); + checkUnnamed59(o.params!); checkGoogleCloudRetailV2UserEvent(o.userEvent!); unittest.expect(o.validateOnly!, unittest.isTrue); } buildCounterGoogleCloudRetailV2PredictRequest--; } -core.List buildUnnamed54() => ['foo', 'foo']; +core.List buildUnnamed60() => ['foo', 'foo']; -void checkUnnamed54(core.List o) { +void checkUnnamed60(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } core.List -buildUnnamed55() => [ +buildUnnamed61() => [ buildGoogleCloudRetailV2PredictResponsePredictionResult(), buildGoogleCloudRetailV2PredictResponsePredictionResult(), ]; -void checkUnnamed55( +void checkUnnamed61( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -2517,8 +2948,8 @@ buildGoogleCloudRetailV2PredictResponse() { buildCounterGoogleCloudRetailV2PredictResponse++; if (buildCounterGoogleCloudRetailV2PredictResponse < 3) { o.attributionToken = 'foo'; - o.missingIds = buildUnnamed54(); - o.results = buildUnnamed55(); + o.missingIds = buildUnnamed60(); + o.results = buildUnnamed61(); o.validateOnly = true; } buildCounterGoogleCloudRetailV2PredictResponse--; @@ -2531,14 +2962,14 @@ void checkGoogleCloudRetailV2PredictResponse( buildCounterGoogleCloudRetailV2PredictResponse++; if (buildCounterGoogleCloudRetailV2PredictResponse < 3) { unittest.expect(o.attributionToken!, unittest.equals('foo')); - checkUnnamed54(o.missingIds!); - checkUnnamed55(o.results!); + checkUnnamed60(o.missingIds!); + checkUnnamed61(o.results!); unittest.expect(o.validateOnly!, unittest.isTrue); } buildCounterGoogleCloudRetailV2PredictResponse--; } -core.Map buildUnnamed56() => { +core.Map buildUnnamed62() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2551,7 +2982,7 @@ core.Map buildUnnamed56() => { }, }; -void checkUnnamed56(core.Map o) { +void checkUnnamed62(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o['x']!) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -2572,7 +3003,7 @@ buildGoogleCloudRetailV2PredictResponsePredictionResult() { buildCounterGoogleCloudRetailV2PredictResponsePredictionResult++; if (buildCounterGoogleCloudRetailV2PredictResponsePredictionResult < 3) { o.id = 'foo'; - o.metadata = buildUnnamed56(); + o.metadata = buildUnnamed62(); } buildCounterGoogleCloudRetailV2PredictResponsePredictionResult--; return o; @@ -2584,7 +3015,7 @@ void checkGoogleCloudRetailV2PredictResponsePredictionResult( buildCounterGoogleCloudRetailV2PredictResponsePredictionResult++; if (buildCounterGoogleCloudRetailV2PredictResponsePredictionResult < 3) { unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed56(o.metadata!); + checkUnnamed62(o.metadata!); } buildCounterGoogleCloudRetailV2PredictResponsePredictionResult--; } @@ -2645,12 +3076,12 @@ void checkGoogleCloudRetailV2PriceInfoPriceRange( } core.Map -buildUnnamed57() => { +buildUnnamed63() => { 'x': buildGoogleCloudRetailV2CustomAttribute(), 'y': buildGoogleCloudRetailV2CustomAttribute(), }; -void checkUnnamed57( +void checkUnnamed63( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -2658,120 +3089,120 @@ void checkUnnamed57( checkGoogleCloudRetailV2CustomAttribute(o['y']!); } -core.List buildUnnamed58() => ['foo', 'foo']; +core.List buildUnnamed64() => ['foo', 'foo']; -void checkUnnamed58(core.List o) { +void checkUnnamed64(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed59() => ['foo', 'foo']; +core.List buildUnnamed65() => ['foo', 'foo']; -void checkUnnamed59(core.List o) { +void checkUnnamed65(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed60() => ['foo', 'foo']; +core.List buildUnnamed66() => ['foo', 'foo']; -void checkUnnamed60(core.List o) { +void checkUnnamed66(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed61() => ['foo', 'foo']; +core.List buildUnnamed67() => ['foo', 'foo']; -void checkUnnamed61(core.List o) { +void checkUnnamed67(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed62() => [ +core.List buildUnnamed68() => [ buildGoogleCloudRetailV2FulfillmentInfo(), buildGoogleCloudRetailV2FulfillmentInfo(), ]; -void checkUnnamed62(core.List o) { +void checkUnnamed68(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2FulfillmentInfo(o[0]); checkGoogleCloudRetailV2FulfillmentInfo(o[1]); } -core.List buildUnnamed63() => [ +core.List buildUnnamed69() => [ buildGoogleCloudRetailV2Image(), buildGoogleCloudRetailV2Image(), ]; -void checkUnnamed63(core.List o) { +void checkUnnamed69(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2Image(o[0]); checkGoogleCloudRetailV2Image(o[1]); } -core.List buildUnnamed64() => [ +core.List buildUnnamed70() => [ buildGoogleCloudRetailV2LocalInventory(), buildGoogleCloudRetailV2LocalInventory(), ]; -void checkUnnamed64(core.List o) { +void checkUnnamed70(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2LocalInventory(o[0]); checkGoogleCloudRetailV2LocalInventory(o[1]); } -core.List buildUnnamed65() => ['foo', 'foo']; +core.List buildUnnamed71() => ['foo', 'foo']; -void checkUnnamed65(core.List o) { +void checkUnnamed71(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed66() => ['foo', 'foo']; +core.List buildUnnamed72() => ['foo', 'foo']; -void checkUnnamed66(core.List o) { +void checkUnnamed72(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed67() => [ +core.List buildUnnamed73() => [ buildGoogleCloudRetailV2Promotion(), buildGoogleCloudRetailV2Promotion(), ]; -void checkUnnamed67(core.List o) { +void checkUnnamed73(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2Promotion(o[0]); checkGoogleCloudRetailV2Promotion(o[1]); } -core.List buildUnnamed68() => ['foo', 'foo']; +core.List buildUnnamed74() => ['foo', 'foo']; -void checkUnnamed68(core.List o) { +void checkUnnamed74(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed69() => ['foo', 'foo']; +core.List buildUnnamed75() => ['foo', 'foo']; -void checkUnnamed69(core.List o) { +void checkUnnamed75(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed70() => [ +core.List buildUnnamed76() => [ buildGoogleCloudRetailV2Product(), buildGoogleCloudRetailV2Product(), ]; -void checkUnnamed70(core.List o) { +void checkUnnamed76(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2Product(o[0]); checkGoogleCloudRetailV2Product(o[1]); @@ -2782,40 +3213,40 @@ api.GoogleCloudRetailV2Product buildGoogleCloudRetailV2Product() { final o = api.GoogleCloudRetailV2Product(); buildCounterGoogleCloudRetailV2Product++; if (buildCounterGoogleCloudRetailV2Product < 3) { - o.attributes = buildUnnamed57(); + o.attributes = buildUnnamed63(); o.audience = buildGoogleCloudRetailV2Audience(); o.availability = 'foo'; o.availableQuantity = 42; o.availableTime = 'foo'; - o.brands = buildUnnamed58(); - o.categories = buildUnnamed59(); - o.collectionMemberIds = buildUnnamed60(); + o.brands = buildUnnamed64(); + o.categories = buildUnnamed65(); + o.collectionMemberIds = buildUnnamed66(); o.colorInfo = buildGoogleCloudRetailV2ColorInfo(); - o.conditions = buildUnnamed61(); + o.conditions = buildUnnamed67(); o.description = 'foo'; o.expireTime = 'foo'; - o.fulfillmentInfo = buildUnnamed62(); + o.fulfillmentInfo = buildUnnamed68(); o.gtin = 'foo'; o.id = 'foo'; - o.images = buildUnnamed63(); + o.images = buildUnnamed69(); o.languageCode = 'foo'; - o.localInventories = buildUnnamed64(); - o.materials = buildUnnamed65(); + o.localInventories = buildUnnamed70(); + o.materials = buildUnnamed71(); o.name = 'foo'; - o.patterns = buildUnnamed66(); + o.patterns = buildUnnamed72(); o.priceInfo = buildGoogleCloudRetailV2PriceInfo(); o.primaryProductId = 'foo'; - o.promotions = buildUnnamed67(); + o.promotions = buildUnnamed73(); o.publishTime = 'foo'; o.rating = buildGoogleCloudRetailV2Rating(); o.retrievableFields = 'foo'; - o.sizes = buildUnnamed68(); - o.tags = buildUnnamed69(); + o.sizes = buildUnnamed74(); + o.tags = buildUnnamed75(); o.title = 'foo'; o.ttl = 'foo'; o.type = 'foo'; o.uri = 'foo'; - o.variants = buildUnnamed70(); + o.variants = buildUnnamed76(); } buildCounterGoogleCloudRetailV2Product--; return o; @@ -2824,40 +3255,40 @@ api.GoogleCloudRetailV2Product buildGoogleCloudRetailV2Product() { void checkGoogleCloudRetailV2Product(api.GoogleCloudRetailV2Product o) { buildCounterGoogleCloudRetailV2Product++; if (buildCounterGoogleCloudRetailV2Product < 3) { - checkUnnamed57(o.attributes!); + checkUnnamed63(o.attributes!); checkGoogleCloudRetailV2Audience(o.audience!); unittest.expect(o.availability!, unittest.equals('foo')); unittest.expect(o.availableQuantity!, unittest.equals(42)); unittest.expect(o.availableTime!, unittest.equals('foo')); - checkUnnamed58(o.brands!); - checkUnnamed59(o.categories!); - checkUnnamed60(o.collectionMemberIds!); + checkUnnamed64(o.brands!); + checkUnnamed65(o.categories!); + checkUnnamed66(o.collectionMemberIds!); checkGoogleCloudRetailV2ColorInfo(o.colorInfo!); - checkUnnamed61(o.conditions!); + checkUnnamed67(o.conditions!); unittest.expect(o.description!, unittest.equals('foo')); unittest.expect(o.expireTime!, unittest.equals('foo')); - checkUnnamed62(o.fulfillmentInfo!); + checkUnnamed68(o.fulfillmentInfo!); unittest.expect(o.gtin!, unittest.equals('foo')); unittest.expect(o.id!, unittest.equals('foo')); - checkUnnamed63(o.images!); + checkUnnamed69(o.images!); unittest.expect(o.languageCode!, unittest.equals('foo')); - checkUnnamed64(o.localInventories!); - checkUnnamed65(o.materials!); + checkUnnamed70(o.localInventories!); + checkUnnamed71(o.materials!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed66(o.patterns!); + checkUnnamed72(o.patterns!); checkGoogleCloudRetailV2PriceInfo(o.priceInfo!); unittest.expect(o.primaryProductId!, unittest.equals('foo')); - checkUnnamed67(o.promotions!); + checkUnnamed73(o.promotions!); unittest.expect(o.publishTime!, unittest.equals('foo')); checkGoogleCloudRetailV2Rating(o.rating!); unittest.expect(o.retrievableFields!, unittest.equals('foo')); - checkUnnamed68(o.sizes!); - checkUnnamed69(o.tags!); + checkUnnamed74(o.sizes!); + checkUnnamed75(o.tags!); unittest.expect(o.title!, unittest.equals('foo')); unittest.expect(o.ttl!, unittest.equals('foo')); unittest.expect(o.type!, unittest.equals('foo')); unittest.expect(o.uri!, unittest.equals('foo')); - checkUnnamed70(o.variants!); + checkUnnamed76(o.variants!); } buildCounterGoogleCloudRetailV2Product--; } @@ -2933,12 +3364,12 @@ void checkGoogleCloudRetailV2ProductDetail( buildCounterGoogleCloudRetailV2ProductDetail--; } -core.List buildUnnamed71() => [ +core.List buildUnnamed77() => [ buildGoogleCloudRetailV2Product(), buildGoogleCloudRetailV2Product(), ]; -void checkUnnamed71(core.List o) { +void checkUnnamed77(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2Product(o[0]); checkGoogleCloudRetailV2Product(o[1]); @@ -2950,7 +3381,7 @@ buildGoogleCloudRetailV2ProductInlineSource() { final o = api.GoogleCloudRetailV2ProductInlineSource(); buildCounterGoogleCloudRetailV2ProductInlineSource++; if (buildCounterGoogleCloudRetailV2ProductInlineSource < 3) { - o.products = buildUnnamed71(); + o.products = buildUnnamed77(); } buildCounterGoogleCloudRetailV2ProductInlineSource--; return o; @@ -2961,7 +3392,7 @@ void checkGoogleCloudRetailV2ProductInlineSource( ) { buildCounterGoogleCloudRetailV2ProductInlineSource++; if (buildCounterGoogleCloudRetailV2ProductInlineSource < 3) { - checkUnnamed71(o.products!); + checkUnnamed77(o.products!); } buildCounterGoogleCloudRetailV2ProductInlineSource--; } @@ -3113,9 +3544,9 @@ void checkGoogleCloudRetailV2PurgeUserEventsRequest( buildCounterGoogleCloudRetailV2PurgeUserEventsRequest--; } -core.List buildUnnamed72() => [42, 42]; +core.List buildUnnamed78() => [42, 42]; -void checkUnnamed72(core.List o) { +void checkUnnamed78(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -3128,7 +3559,7 @@ api.GoogleCloudRetailV2Rating buildGoogleCloudRetailV2Rating() { if (buildCounterGoogleCloudRetailV2Rating < 3) { o.averageRating = 42.0; o.ratingCount = 42; - o.ratingHistogram = buildUnnamed72(); + o.ratingHistogram = buildUnnamed78(); } buildCounterGoogleCloudRetailV2Rating--; return o; @@ -3139,7 +3570,7 @@ void checkGoogleCloudRetailV2Rating(api.GoogleCloudRetailV2Rating o) { if (buildCounterGoogleCloudRetailV2Rating < 3) { unittest.expect(o.averageRating!, unittest.equals(42.0)); unittest.expect(o.ratingCount!, unittest.equals(42)); - checkUnnamed72(o.ratingHistogram!); + checkUnnamed78(o.ratingHistogram!); } buildCounterGoogleCloudRetailV2Rating--; } @@ -3210,9 +3641,9 @@ void checkGoogleCloudRetailV2RemoveControlRequest( buildCounterGoogleCloudRetailV2RemoveControlRequest--; } -core.List buildUnnamed73() => ['foo', 'foo']; +core.List buildUnnamed79() => ['foo', 'foo']; -void checkUnnamed73(core.List o) { +void checkUnnamed79(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3225,7 +3656,7 @@ buildGoogleCloudRetailV2RemoveFulfillmentPlacesRequest() { buildCounterGoogleCloudRetailV2RemoveFulfillmentPlacesRequest++; if (buildCounterGoogleCloudRetailV2RemoveFulfillmentPlacesRequest < 3) { o.allowMissing = true; - o.placeIds = buildUnnamed73(); + o.placeIds = buildUnnamed79(); o.removeTime = 'foo'; o.type = 'foo'; } @@ -3239,16 +3670,16 @@ void checkGoogleCloudRetailV2RemoveFulfillmentPlacesRequest( buildCounterGoogleCloudRetailV2RemoveFulfillmentPlacesRequest++; if (buildCounterGoogleCloudRetailV2RemoveFulfillmentPlacesRequest < 3) { unittest.expect(o.allowMissing!, unittest.isTrue); - checkUnnamed73(o.placeIds!); + checkUnnamed79(o.placeIds!); unittest.expect(o.removeTime!, unittest.equals('foo')); unittest.expect(o.type!, unittest.equals('foo')); } buildCounterGoogleCloudRetailV2RemoveFulfillmentPlacesRequest--; } -core.List buildUnnamed74() => ['foo', 'foo']; +core.List buildUnnamed80() => ['foo', 'foo']; -void checkUnnamed74(core.List o) { +void checkUnnamed80(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3261,7 +3692,7 @@ buildGoogleCloudRetailV2RemoveLocalInventoriesRequest() { buildCounterGoogleCloudRetailV2RemoveLocalInventoriesRequest++; if (buildCounterGoogleCloudRetailV2RemoveLocalInventoriesRequest < 3) { o.allowMissing = true; - o.placeIds = buildUnnamed74(); + o.placeIds = buildUnnamed80(); o.removeTime = 'foo'; } buildCounterGoogleCloudRetailV2RemoveLocalInventoriesRequest--; @@ -3274,7 +3705,7 @@ void checkGoogleCloudRetailV2RemoveLocalInventoriesRequest( buildCounterGoogleCloudRetailV2RemoveLocalInventoriesRequest++; if (buildCounterGoogleCloudRetailV2RemoveLocalInventoriesRequest < 3) { unittest.expect(o.allowMissing!, unittest.isTrue); - checkUnnamed74(o.placeIds!); + checkUnnamed80(o.placeIds!); unittest.expect(o.removeTime!, unittest.equals('foo')); } buildCounterGoogleCloudRetailV2RemoveLocalInventoriesRequest--; @@ -3390,25 +3821,25 @@ void checkGoogleCloudRetailV2RuleBoostAction( buildCounterGoogleCloudRetailV2RuleBoostAction--; } -core.List buildUnnamed75() => ['foo', 'foo']; +core.List buildUnnamed81() => ['foo', 'foo']; -void checkUnnamed75(core.List o) { +void checkUnnamed81(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed76() => ['foo', 'foo']; +core.List buildUnnamed82() => ['foo', 'foo']; -void checkUnnamed76(core.List o) { +void checkUnnamed82(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed77() => ['foo', 'foo']; +core.List buildUnnamed83() => ['foo', 'foo']; -void checkUnnamed77(core.List o) { +void checkUnnamed83(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3420,9 +3851,9 @@ buildGoogleCloudRetailV2RuleDoNotAssociateAction() { final o = api.GoogleCloudRetailV2RuleDoNotAssociateAction(); buildCounterGoogleCloudRetailV2RuleDoNotAssociateAction++; if (buildCounterGoogleCloudRetailV2RuleDoNotAssociateAction < 3) { - o.doNotAssociateTerms = buildUnnamed75(); - o.queryTerms = buildUnnamed76(); - o.terms = buildUnnamed77(); + o.doNotAssociateTerms = buildUnnamed81(); + o.queryTerms = buildUnnamed82(); + o.terms = buildUnnamed83(); } buildCounterGoogleCloudRetailV2RuleDoNotAssociateAction--; return o; @@ -3433,9 +3864,9 @@ void checkGoogleCloudRetailV2RuleDoNotAssociateAction( ) { buildCounterGoogleCloudRetailV2RuleDoNotAssociateAction++; if (buildCounterGoogleCloudRetailV2RuleDoNotAssociateAction < 3) { - checkUnnamed75(o.doNotAssociateTerms!); - checkUnnamed76(o.queryTerms!); - checkUnnamed77(o.terms!); + checkUnnamed81(o.doNotAssociateTerms!); + checkUnnamed82(o.queryTerms!); + checkUnnamed83(o.terms!); } buildCounterGoogleCloudRetailV2RuleDoNotAssociateAction--; } @@ -3465,12 +3896,12 @@ void checkGoogleCloudRetailV2RuleFilterAction( core.List< api.GoogleCloudRetailV2RuleForceReturnFacetActionFacetPositionAdjustment > -buildUnnamed78() => [ +buildUnnamed84() => [ buildGoogleCloudRetailV2RuleForceReturnFacetActionFacetPositionAdjustment(), buildGoogleCloudRetailV2RuleForceReturnFacetActionFacetPositionAdjustment(), ]; -void checkUnnamed78( +void checkUnnamed84( core.List< api.GoogleCloudRetailV2RuleForceReturnFacetActionFacetPositionAdjustment > @@ -3491,7 +3922,7 @@ buildGoogleCloudRetailV2RuleForceReturnFacetAction() { final o = api.GoogleCloudRetailV2RuleForceReturnFacetAction(); buildCounterGoogleCloudRetailV2RuleForceReturnFacetAction++; if (buildCounterGoogleCloudRetailV2RuleForceReturnFacetAction < 3) { - o.facetPositionAdjustments = buildUnnamed78(); + o.facetPositionAdjustments = buildUnnamed84(); } buildCounterGoogleCloudRetailV2RuleForceReturnFacetAction--; return o; @@ -3502,7 +3933,7 @@ void checkGoogleCloudRetailV2RuleForceReturnFacetAction( ) { buildCounterGoogleCloudRetailV2RuleForceReturnFacetAction++; if (buildCounterGoogleCloudRetailV2RuleForceReturnFacetAction < 3) { - checkUnnamed78(o.facetPositionAdjustments!); + checkUnnamed84(o.facetPositionAdjustments!); } buildCounterGoogleCloudRetailV2RuleForceReturnFacetAction--; } @@ -3536,9 +3967,9 @@ void checkGoogleCloudRetailV2RuleForceReturnFacetActionFacetPositionAdjustment( buildCounterGoogleCloudRetailV2RuleForceReturnFacetActionFacetPositionAdjustment--; } -core.List buildUnnamed79() => ['foo', 'foo']; +core.List buildUnnamed85() => ['foo', 'foo']; -void checkUnnamed79(core.List o) { +void checkUnnamed85(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3550,7 +3981,7 @@ buildGoogleCloudRetailV2RuleIgnoreAction() { final o = api.GoogleCloudRetailV2RuleIgnoreAction(); buildCounterGoogleCloudRetailV2RuleIgnoreAction++; if (buildCounterGoogleCloudRetailV2RuleIgnoreAction < 3) { - o.ignoreTerms = buildUnnamed79(); + o.ignoreTerms = buildUnnamed85(); } buildCounterGoogleCloudRetailV2RuleIgnoreAction--; return o; @@ -3561,30 +3992,30 @@ void checkGoogleCloudRetailV2RuleIgnoreAction( ) { buildCounterGoogleCloudRetailV2RuleIgnoreAction++; if (buildCounterGoogleCloudRetailV2RuleIgnoreAction < 3) { - checkUnnamed79(o.ignoreTerms!); + checkUnnamed85(o.ignoreTerms!); } buildCounterGoogleCloudRetailV2RuleIgnoreAction--; } -core.List buildUnnamed80() => ['foo', 'foo']; +core.List buildUnnamed86() => ['foo', 'foo']; -void checkUnnamed80(core.List o) { +void checkUnnamed86(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed81() => ['foo', 'foo']; +core.List buildUnnamed87() => ['foo', 'foo']; -void checkUnnamed81(core.List o) { +void checkUnnamed87(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed82() => ['foo', 'foo']; +core.List buildUnnamed88() => ['foo', 'foo']; -void checkUnnamed82(core.List o) { +void checkUnnamed88(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3596,9 +4027,9 @@ buildGoogleCloudRetailV2RuleOnewaySynonymsAction() { final o = api.GoogleCloudRetailV2RuleOnewaySynonymsAction(); buildCounterGoogleCloudRetailV2RuleOnewaySynonymsAction++; if (buildCounterGoogleCloudRetailV2RuleOnewaySynonymsAction < 3) { - o.onewayTerms = buildUnnamed80(); - o.queryTerms = buildUnnamed81(); - o.synonyms = buildUnnamed82(); + o.onewayTerms = buildUnnamed86(); + o.queryTerms = buildUnnamed87(); + o.synonyms = buildUnnamed88(); } buildCounterGoogleCloudRetailV2RuleOnewaySynonymsAction--; return o; @@ -3609,16 +4040,16 @@ void checkGoogleCloudRetailV2RuleOnewaySynonymsAction( ) { buildCounterGoogleCloudRetailV2RuleOnewaySynonymsAction++; if (buildCounterGoogleCloudRetailV2RuleOnewaySynonymsAction < 3) { - checkUnnamed80(o.onewayTerms!); - checkUnnamed81(o.queryTerms!); - checkUnnamed82(o.synonyms!); + checkUnnamed86(o.onewayTerms!); + checkUnnamed87(o.queryTerms!); + checkUnnamed88(o.synonyms!); } buildCounterGoogleCloudRetailV2RuleOnewaySynonymsAction--; } -core.Map buildUnnamed83() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed89() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed83(core.Map o) { +void checkUnnamed89(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -3629,7 +4060,7 @@ api.GoogleCloudRetailV2RulePinAction buildGoogleCloudRetailV2RulePinAction() { final o = api.GoogleCloudRetailV2RulePinAction(); buildCounterGoogleCloudRetailV2RulePinAction++; if (buildCounterGoogleCloudRetailV2RulePinAction < 3) { - o.pinMap = buildUnnamed83(); + o.pinMap = buildUnnamed89(); } buildCounterGoogleCloudRetailV2RulePinAction--; return o; @@ -3640,7 +4071,7 @@ void checkGoogleCloudRetailV2RulePinAction( ) { buildCounterGoogleCloudRetailV2RulePinAction++; if (buildCounterGoogleCloudRetailV2RulePinAction < 3) { - checkUnnamed83(o.pinMap!); + checkUnnamed89(o.pinMap!); } buildCounterGoogleCloudRetailV2RulePinAction--; } @@ -3667,9 +4098,9 @@ void checkGoogleCloudRetailV2RuleRedirectAction( buildCounterGoogleCloudRetailV2RuleRedirectAction--; } -core.List buildUnnamed84() => ['foo', 'foo']; +core.List buildUnnamed90() => ['foo', 'foo']; -void checkUnnamed84(core.List o) { +void checkUnnamed90(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3681,7 +4112,7 @@ buildGoogleCloudRetailV2RuleRemoveFacetAction() { final o = api.GoogleCloudRetailV2RuleRemoveFacetAction(); buildCounterGoogleCloudRetailV2RuleRemoveFacetAction++; if (buildCounterGoogleCloudRetailV2RuleRemoveFacetAction < 3) { - o.attributeNames = buildUnnamed84(); + o.attributeNames = buildUnnamed90(); } buildCounterGoogleCloudRetailV2RuleRemoveFacetAction--; return o; @@ -3692,14 +4123,14 @@ void checkGoogleCloudRetailV2RuleRemoveFacetAction( ) { buildCounterGoogleCloudRetailV2RuleRemoveFacetAction++; if (buildCounterGoogleCloudRetailV2RuleRemoveFacetAction < 3) { - checkUnnamed84(o.attributeNames!); + checkUnnamed90(o.attributeNames!); } buildCounterGoogleCloudRetailV2RuleRemoveFacetAction--; } -core.List buildUnnamed85() => ['foo', 'foo']; +core.List buildUnnamed91() => ['foo', 'foo']; -void checkUnnamed85(core.List o) { +void checkUnnamed91(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3711,7 +4142,7 @@ buildGoogleCloudRetailV2RuleReplacementAction() { final o = api.GoogleCloudRetailV2RuleReplacementAction(); buildCounterGoogleCloudRetailV2RuleReplacementAction++; if (buildCounterGoogleCloudRetailV2RuleReplacementAction < 3) { - o.queryTerms = buildUnnamed85(); + o.queryTerms = buildUnnamed91(); o.replacementTerm = 'foo'; o.term = 'foo'; } @@ -3724,16 +4155,16 @@ void checkGoogleCloudRetailV2RuleReplacementAction( ) { buildCounterGoogleCloudRetailV2RuleReplacementAction++; if (buildCounterGoogleCloudRetailV2RuleReplacementAction < 3) { - checkUnnamed85(o.queryTerms!); + checkUnnamed91(o.queryTerms!); unittest.expect(o.replacementTerm!, unittest.equals('foo')); unittest.expect(o.term!, unittest.equals('foo')); } buildCounterGoogleCloudRetailV2RuleReplacementAction--; } -core.List buildUnnamed86() => ['foo', 'foo']; +core.List buildUnnamed92() => ['foo', 'foo']; -void checkUnnamed86(core.List o) { +void checkUnnamed92(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3745,7 +4176,7 @@ buildGoogleCloudRetailV2RuleTwowaySynonymsAction() { final o = api.GoogleCloudRetailV2RuleTwowaySynonymsAction(); buildCounterGoogleCloudRetailV2RuleTwowaySynonymsAction++; if (buildCounterGoogleCloudRetailV2RuleTwowaySynonymsAction < 3) { - o.synonyms = buildUnnamed86(); + o.synonyms = buildUnnamed92(); } buildCounterGoogleCloudRetailV2RuleTwowaySynonymsAction--; return o; @@ -3756,17 +4187,42 @@ void checkGoogleCloudRetailV2RuleTwowaySynonymsAction( ) { buildCounterGoogleCloudRetailV2RuleTwowaySynonymsAction++; if (buildCounterGoogleCloudRetailV2RuleTwowaySynonymsAction < 3) { - checkUnnamed86(o.synonyms!); + checkUnnamed92(o.synonyms!); } buildCounterGoogleCloudRetailV2RuleTwowaySynonymsAction--; } -core.List buildUnnamed87() => [ +core.int buildCounterGoogleCloudRetailV2SafetySetting = 0; +api.GoogleCloudRetailV2SafetySetting buildGoogleCloudRetailV2SafetySetting() { + final o = api.GoogleCloudRetailV2SafetySetting(); + buildCounterGoogleCloudRetailV2SafetySetting++; + if (buildCounterGoogleCloudRetailV2SafetySetting < 3) { + o.category = 'foo'; + o.method = 'foo'; + o.threshold = 'foo'; + } + buildCounterGoogleCloudRetailV2SafetySetting--; + return o; +} + +void checkGoogleCloudRetailV2SafetySetting( + api.GoogleCloudRetailV2SafetySetting o, +) { + buildCounterGoogleCloudRetailV2SafetySetting++; + if (buildCounterGoogleCloudRetailV2SafetySetting < 3) { + unittest.expect(o.category!, unittest.equals('foo')); + unittest.expect(o.method!, unittest.equals('foo')); + unittest.expect(o.threshold!, unittest.equals('foo')); + } + buildCounterGoogleCloudRetailV2SafetySetting--; +} + +core.List buildUnnamed93() => [ buildGoogleCloudRetailV2SearchRequestFacetSpec(), buildGoogleCloudRetailV2SearchRequestFacetSpec(), ]; -void checkUnnamed87( +void checkUnnamed93( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3774,28 +4230,28 @@ void checkUnnamed87( checkGoogleCloudRetailV2SearchRequestFacetSpec(o[1]); } -core.Map buildUnnamed88() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed94() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed88(core.Map o) { +void checkUnnamed94(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed89() => ['foo', 'foo']; +core.List buildUnnamed95() => ['foo', 'foo']; -void checkUnnamed89(core.List o) { +void checkUnnamed95(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed90() => { +core.Map buildUnnamed96() => { 'x': buildGoogleCloudRetailV2StringList(), 'y': buildGoogleCloudRetailV2StringList(), }; -void checkUnnamed90( +void checkUnnamed96( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3803,9 +4259,9 @@ void checkUnnamed90( checkGoogleCloudRetailV2StringList(o['y']!); } -core.List buildUnnamed91() => ['foo', 'foo']; +core.List buildUnnamed97() => ['foo', 'foo']; -void checkUnnamed91(core.List o) { +void checkUnnamed97(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3824,13 +4280,13 @@ api.GoogleCloudRetailV2SearchRequest buildGoogleCloudRetailV2SearchRequest() { o.dynamicFacetSpec = buildGoogleCloudRetailV2SearchRequestDynamicFacetSpec(); o.entity = 'foo'; - o.facetSpecs = buildUnnamed87(); + o.facetSpecs = buildUnnamed93(); o.filter = 'foo'; - o.labels = buildUnnamed88(); + o.labels = buildUnnamed94(); o.languageCode = 'foo'; o.offset = 42; o.orderBy = 'foo'; - o.pageCategories = buildUnnamed89(); + o.pageCategories = buildUnnamed95(); o.pageSize = 42; o.pageToken = 'foo'; o.personalizationSpec = @@ -3845,9 +4301,9 @@ api.GoogleCloudRetailV2SearchRequest buildGoogleCloudRetailV2SearchRequest() { buildGoogleCloudRetailV2SearchRequestSpellCorrectionSpec(); o.tileNavigationSpec = buildGoogleCloudRetailV2SearchRequestTileNavigationSpec(); - o.userAttributes = buildUnnamed90(); + o.userAttributes = buildUnnamed96(); o.userInfo = buildGoogleCloudRetailV2UserInfo(); - o.variantRollupKeys = buildUnnamed91(); + o.variantRollupKeys = buildUnnamed97(); o.visitorId = 'foo'; } buildCounterGoogleCloudRetailV2SearchRequest--; @@ -3867,13 +4323,13 @@ void checkGoogleCloudRetailV2SearchRequest( ); checkGoogleCloudRetailV2SearchRequestDynamicFacetSpec(o.dynamicFacetSpec!); unittest.expect(o.entity!, unittest.equals('foo')); - checkUnnamed87(o.facetSpecs!); + checkUnnamed93(o.facetSpecs!); unittest.expect(o.filter!, unittest.equals('foo')); - checkUnnamed88(o.labels!); + checkUnnamed94(o.labels!); unittest.expect(o.languageCode!, unittest.equals('foo')); unittest.expect(o.offset!, unittest.equals(42)); unittest.expect(o.orderBy!, unittest.equals('foo')); - checkUnnamed89(o.pageCategories!); + checkUnnamed95(o.pageCategories!); unittest.expect(o.pageSize!, unittest.equals(42)); unittest.expect(o.pageToken!, unittest.equals('foo')); checkGoogleCloudRetailV2SearchRequestPersonalizationSpec( @@ -3892,21 +4348,21 @@ void checkGoogleCloudRetailV2SearchRequest( checkGoogleCloudRetailV2SearchRequestTileNavigationSpec( o.tileNavigationSpec!, ); - checkUnnamed90(o.userAttributes!); + checkUnnamed96(o.userAttributes!); checkGoogleCloudRetailV2UserInfo(o.userInfo!); - checkUnnamed91(o.variantRollupKeys!); + checkUnnamed97(o.variantRollupKeys!); unittest.expect(o.visitorId!, unittest.equals('foo')); } buildCounterGoogleCloudRetailV2SearchRequest--; } core.List -buildUnnamed92() => [ +buildUnnamed98() => [ buildGoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec(), buildGoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec(), ]; -void checkUnnamed92( +void checkUnnamed98( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -3920,7 +4376,7 @@ buildGoogleCloudRetailV2SearchRequestBoostSpec() { final o = api.GoogleCloudRetailV2SearchRequestBoostSpec(); buildCounterGoogleCloudRetailV2SearchRequestBoostSpec++; if (buildCounterGoogleCloudRetailV2SearchRequestBoostSpec < 3) { - o.conditionBoostSpecs = buildUnnamed92(); + o.conditionBoostSpecs = buildUnnamed98(); o.skipBoostSpecValidation = true; } buildCounterGoogleCloudRetailV2SearchRequestBoostSpec--; @@ -3932,7 +4388,7 @@ void checkGoogleCloudRetailV2SearchRequestBoostSpec( ) { buildCounterGoogleCloudRetailV2SearchRequestBoostSpec++; if (buildCounterGoogleCloudRetailV2SearchRequestBoostSpec < 3) { - checkUnnamed92(o.conditionBoostSpecs!); + checkUnnamed98(o.conditionBoostSpecs!); unittest.expect(o.skipBoostSpecValidation!, unittest.isTrue); } buildCounterGoogleCloudRetailV2SearchRequestBoostSpec--; @@ -4029,12 +4485,12 @@ void checkGoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer( buildCounterGoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer--; } -core.List buildUnnamed93() => [ +core.List buildUnnamed99() => [ buildGoogleCloudRetailV2ProductAttributeValue(), buildGoogleCloudRetailV2ProductAttributeValue(), ]; -void checkUnnamed93(core.List o) { +void checkUnnamed99(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2ProductAttributeValue(o[0]); checkGoogleCloudRetailV2ProductAttributeValue(o[1]); @@ -4051,7 +4507,7 @@ buildGoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedA if (buildCounterGoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer < 3) { o.productAttributeValue = buildGoogleCloudRetailV2ProductAttributeValue(); - o.productAttributeValues = buildUnnamed93(); + o.productAttributeValues = buildUnnamed99(); } buildCounterGoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer--; return o; @@ -4066,7 +4522,7 @@ checkGoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedA if (buildCounterGoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer < 3) { checkGoogleCloudRetailV2ProductAttributeValue(o.productAttributeValue!); - checkUnnamed93(o.productAttributeValues!); + checkUnnamed99(o.productAttributeValues!); } buildCounterGoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer--; } @@ -4093,9 +4549,9 @@ void checkGoogleCloudRetailV2SearchRequestDynamicFacetSpec( buildCounterGoogleCloudRetailV2SearchRequestDynamicFacetSpec--; } -core.List buildUnnamed94() => ['foo', 'foo']; +core.List buildUnnamed100() => ['foo', 'foo']; -void checkUnnamed94(core.List o) { +void checkUnnamed100(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4108,7 +4564,7 @@ buildGoogleCloudRetailV2SearchRequestFacetSpec() { buildCounterGoogleCloudRetailV2SearchRequestFacetSpec++; if (buildCounterGoogleCloudRetailV2SearchRequestFacetSpec < 3) { o.enableDynamicPosition = true; - o.excludedFilterKeys = buildUnnamed94(); + o.excludedFilterKeys = buildUnnamed100(); o.facetKey = buildGoogleCloudRetailV2SearchRequestFacetSpecFacetKey(); o.limit = 42; } @@ -4122,43 +4578,43 @@ void checkGoogleCloudRetailV2SearchRequestFacetSpec( buildCounterGoogleCloudRetailV2SearchRequestFacetSpec++; if (buildCounterGoogleCloudRetailV2SearchRequestFacetSpec < 3) { unittest.expect(o.enableDynamicPosition!, unittest.isTrue); - checkUnnamed94(o.excludedFilterKeys!); + checkUnnamed100(o.excludedFilterKeys!); checkGoogleCloudRetailV2SearchRequestFacetSpecFacetKey(o.facetKey!); unittest.expect(o.limit!, unittest.equals(42)); } buildCounterGoogleCloudRetailV2SearchRequestFacetSpec--; } -core.List buildUnnamed95() => ['foo', 'foo']; +core.List buildUnnamed101() => ['foo', 'foo']; -void checkUnnamed95(core.List o) { +void checkUnnamed101(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed96() => [ +core.List buildUnnamed102() => [ buildGoogleCloudRetailV2Interval(), buildGoogleCloudRetailV2Interval(), ]; -void checkUnnamed96(core.List o) { +void checkUnnamed102(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2Interval(o[0]); checkGoogleCloudRetailV2Interval(o[1]); } -core.List buildUnnamed97() => ['foo', 'foo']; +core.List buildUnnamed103() => ['foo', 'foo']; -void checkUnnamed97(core.List o) { +void checkUnnamed103(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed98() => ['foo', 'foo']; +core.List buildUnnamed104() => ['foo', 'foo']; -void checkUnnamed98(core.List o) { +void checkUnnamed104(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4171,13 +4627,13 @@ buildGoogleCloudRetailV2SearchRequestFacetSpecFacetKey() { buildCounterGoogleCloudRetailV2SearchRequestFacetSpecFacetKey++; if (buildCounterGoogleCloudRetailV2SearchRequestFacetSpecFacetKey < 3) { o.caseInsensitive = true; - o.contains = buildUnnamed95(); - o.intervals = buildUnnamed96(); + o.contains = buildUnnamed101(); + o.intervals = buildUnnamed102(); o.key = 'foo'; o.orderBy = 'foo'; - o.prefixes = buildUnnamed97(); + o.prefixes = buildUnnamed103(); o.query = 'foo'; - o.restrictedValues = buildUnnamed98(); + o.restrictedValues = buildUnnamed104(); o.returnMinMax = true; } buildCounterGoogleCloudRetailV2SearchRequestFacetSpecFacetKey--; @@ -4190,13 +4646,13 @@ void checkGoogleCloudRetailV2SearchRequestFacetSpecFacetKey( buildCounterGoogleCloudRetailV2SearchRequestFacetSpecFacetKey++; if (buildCounterGoogleCloudRetailV2SearchRequestFacetSpecFacetKey < 3) { unittest.expect(o.caseInsensitive!, unittest.isTrue); - checkUnnamed95(o.contains!); - checkUnnamed96(o.intervals!); + checkUnnamed101(o.contains!); + checkUnnamed102(o.intervals!); unittest.expect(o.key!, unittest.equals('foo')); unittest.expect(o.orderBy!, unittest.equals('foo')); - checkUnnamed97(o.prefixes!); + checkUnnamed103(o.prefixes!); unittest.expect(o.query!, unittest.equals('foo')); - checkUnnamed98(o.restrictedValues!); + checkUnnamed104(o.restrictedValues!); unittest.expect(o.returnMinMax!, unittest.isTrue); } buildCounterGoogleCloudRetailV2SearchRequestFacetSpecFacetKey--; @@ -4270,12 +4726,12 @@ void checkGoogleCloudRetailV2SearchRequestSpellCorrectionSpec( buildCounterGoogleCloudRetailV2SearchRequestSpellCorrectionSpec--; } -core.List buildUnnamed99() => [ +core.List buildUnnamed105() => [ buildGoogleCloudRetailV2Tile(), buildGoogleCloudRetailV2Tile(), ]; -void checkUnnamed99(core.List o) { +void checkUnnamed105(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2Tile(o[0]); checkGoogleCloudRetailV2Tile(o[1]); @@ -4287,7 +4743,7 @@ buildGoogleCloudRetailV2SearchRequestTileNavigationSpec() { final o = api.GoogleCloudRetailV2SearchRequestTileNavigationSpec(); buildCounterGoogleCloudRetailV2SearchRequestTileNavigationSpec++; if (buildCounterGoogleCloudRetailV2SearchRequestTileNavigationSpec < 3) { - o.appliedTiles = buildUnnamed99(); + o.appliedTiles = buildUnnamed105(); o.tileNavigationRequested = true; } buildCounterGoogleCloudRetailV2SearchRequestTileNavigationSpec--; @@ -4299,49 +4755,49 @@ void checkGoogleCloudRetailV2SearchRequestTileNavigationSpec( ) { buildCounterGoogleCloudRetailV2SearchRequestTileNavigationSpec++; if (buildCounterGoogleCloudRetailV2SearchRequestTileNavigationSpec < 3) { - checkUnnamed99(o.appliedTiles!); + checkUnnamed105(o.appliedTiles!); unittest.expect(o.tileNavigationRequested!, unittest.isTrue); } buildCounterGoogleCloudRetailV2SearchRequestTileNavigationSpec--; } -core.List buildUnnamed100() => ['foo', 'foo']; +core.List buildUnnamed106() => ['foo', 'foo']; -void checkUnnamed100(core.List o) { +void checkUnnamed106(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed101() => [ +core.List buildUnnamed107() => [ buildGoogleCloudRetailV2ExperimentInfo(), buildGoogleCloudRetailV2ExperimentInfo(), ]; -void checkUnnamed101(core.List o) { +void checkUnnamed107(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2ExperimentInfo(o[0]); checkGoogleCloudRetailV2ExperimentInfo(o[1]); } -core.List buildUnnamed102() => [ +core.List buildUnnamed108() => [ buildGoogleCloudRetailV2SearchResponseFacet(), buildGoogleCloudRetailV2SearchResponseFacet(), ]; -void checkUnnamed102(core.List o) { +void checkUnnamed108(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2SearchResponseFacet(o[0]); checkGoogleCloudRetailV2SearchResponseFacet(o[1]); } core.List -buildUnnamed103() => [ +buildUnnamed109() => [ buildGoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec(), buildGoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec(), ]; -void checkUnnamed103( +void checkUnnamed109( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4350,12 +4806,12 @@ void checkUnnamed103( } core.List -buildUnnamed104() => [ +buildUnnamed110() => [ buildGoogleCloudRetailV2SearchResponseSearchResult(), buildGoogleCloudRetailV2SearchResponseSearchResult(), ]; -void checkUnnamed104( +void checkUnnamed110( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4368,20 +4824,20 @@ api.GoogleCloudRetailV2SearchResponse buildGoogleCloudRetailV2SearchResponse() { final o = api.GoogleCloudRetailV2SearchResponse(); buildCounterGoogleCloudRetailV2SearchResponse++; if (buildCounterGoogleCloudRetailV2SearchResponse < 3) { - o.appliedControls = buildUnnamed100(); + o.appliedControls = buildUnnamed106(); o.attributionToken = 'foo'; o.conversationalSearchResult = buildGoogleCloudRetailV2SearchResponseConversationalSearchResult(); o.correctedQuery = 'foo'; - o.experimentInfo = buildUnnamed101(); - o.facets = buildUnnamed102(); - o.invalidConditionBoostSpecs = buildUnnamed103(); + o.experimentInfo = buildUnnamed107(); + o.facets = buildUnnamed108(); + o.invalidConditionBoostSpecs = buildUnnamed109(); o.nextPageToken = 'foo'; o.pinControlMetadata = buildGoogleCloudRetailV2PinControlMetadata(); o.queryExpansionInfo = buildGoogleCloudRetailV2SearchResponseQueryExpansionInfo(); o.redirectUri = 'foo'; - o.results = buildUnnamed104(); + o.results = buildUnnamed110(); o.tileNavigationResult = buildGoogleCloudRetailV2SearchResponseTileNavigationResult(); o.totalSize = 42; @@ -4395,22 +4851,22 @@ void checkGoogleCloudRetailV2SearchResponse( ) { buildCounterGoogleCloudRetailV2SearchResponse++; if (buildCounterGoogleCloudRetailV2SearchResponse < 3) { - checkUnnamed100(o.appliedControls!); + checkUnnamed106(o.appliedControls!); unittest.expect(o.attributionToken!, unittest.equals('foo')); checkGoogleCloudRetailV2SearchResponseConversationalSearchResult( o.conversationalSearchResult!, ); unittest.expect(o.correctedQuery!, unittest.equals('foo')); - checkUnnamed101(o.experimentInfo!); - checkUnnamed102(o.facets!); - checkUnnamed103(o.invalidConditionBoostSpecs!); + checkUnnamed107(o.experimentInfo!); + checkUnnamed108(o.facets!); + checkUnnamed109(o.invalidConditionBoostSpecs!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); checkGoogleCloudRetailV2PinControlMetadata(o.pinControlMetadata!); checkGoogleCloudRetailV2SearchResponseQueryExpansionInfo( o.queryExpansionInfo!, ); unittest.expect(o.redirectUri!, unittest.equals('foo')); - checkUnnamed104(o.results!); + checkUnnamed110(o.results!); checkGoogleCloudRetailV2SearchResponseTileNavigationResult( o.tileNavigationResult!, ); @@ -4422,12 +4878,12 @@ void checkGoogleCloudRetailV2SearchResponse( core.List< api.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter > -buildUnnamed105() => [ +buildUnnamed111() => [ buildGoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter(), buildGoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter(), ]; -void checkUnnamed105( +void checkUnnamed111( core.List< api.GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter > @@ -4445,12 +4901,12 @@ void checkUnnamed105( core.List< api.GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer > -buildUnnamed106() => [ +buildUnnamed112() => [ buildGoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer(), buildGoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer(), ]; -void checkUnnamed106( +void checkUnnamed112( core.List< api.GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer > @@ -4475,11 +4931,11 @@ buildGoogleCloudRetailV2SearchResponseConversationalSearchResult() { 3) { o.additionalFilter = buildGoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter(); - o.additionalFilters = buildUnnamed105(); + o.additionalFilters = buildUnnamed111(); o.conversationId = 'foo'; o.followupQuestion = 'foo'; o.refinedQuery = 'foo'; - o.suggestedAnswers = buildUnnamed106(); + o.suggestedAnswers = buildUnnamed112(); } buildCounterGoogleCloudRetailV2SearchResponseConversationalSearchResult--; return o; @@ -4494,11 +4950,11 @@ void checkGoogleCloudRetailV2SearchResponseConversationalSearchResult( checkGoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter( o.additionalFilter!, ); - checkUnnamed105(o.additionalFilters!); + checkUnnamed111(o.additionalFilters!); unittest.expect(o.conversationId!, unittest.equals('foo')); unittest.expect(o.followupQuestion!, unittest.equals('foo')); unittest.expect(o.refinedQuery!, unittest.equals('foo')); - checkUnnamed106(o.suggestedAnswers!); + checkUnnamed112(o.suggestedAnswers!); } buildCounterGoogleCloudRetailV2SearchResponseConversationalSearchResult--; } @@ -4562,12 +5018,12 @@ checkGoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer( } core.List -buildUnnamed107() => [ +buildUnnamed113() => [ buildGoogleCloudRetailV2SearchResponseFacetFacetValue(), buildGoogleCloudRetailV2SearchResponseFacetFacetValue(), ]; -void checkUnnamed107( +void checkUnnamed113( core.List o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4583,7 +5039,7 @@ buildGoogleCloudRetailV2SearchResponseFacet() { if (buildCounterGoogleCloudRetailV2SearchResponseFacet < 3) { o.dynamicFacet = true; o.key = 'foo'; - o.values = buildUnnamed107(); + o.values = buildUnnamed113(); } buildCounterGoogleCloudRetailV2SearchResponseFacet--; return o; @@ -4596,7 +5052,7 @@ void checkGoogleCloudRetailV2SearchResponseFacet( if (buildCounterGoogleCloudRetailV2SearchResponseFacet < 3) { unittest.expect(o.dynamicFacet!, unittest.isTrue); unittest.expect(o.key!, unittest.equals('foo')); - checkUnnamed107(o.values!); + checkUnnamed113(o.values!); } buildCounterGoogleCloudRetailV2SearchResponseFacet--; } @@ -4655,23 +5111,23 @@ void checkGoogleCloudRetailV2SearchResponseQueryExpansionInfo( buildCounterGoogleCloudRetailV2SearchResponseQueryExpansionInfo--; } -core.Map buildUnnamed108() => { +core.Map buildUnnamed114() => { 'x': 'foo', 'y': 'foo', }; -void checkUnnamed108(core.Map o) { +void checkUnnamed114(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed109() => { +core.Map buildUnnamed115() => { 'x': buildGoogleCloudRetailV2DoubleList(), 'y': buildGoogleCloudRetailV2DoubleList(), }; -void checkUnnamed109( +void checkUnnamed115( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -4679,15 +5135,15 @@ void checkUnnamed109( checkGoogleCloudRetailV2DoubleList(o['y']!); } -core.List buildUnnamed110() => ['foo', 'foo']; +core.List buildUnnamed116() => ['foo', 'foo']; -void checkUnnamed110(core.List o) { +void checkUnnamed116(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed111() => { +core.Map buildUnnamed117() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -4700,7 +5156,7 @@ core.Map buildUnnamed111() => { }, }; -void checkUnnamed111(core.Map o) { +void checkUnnamed117(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o['x']!) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -4722,11 +5178,11 @@ buildGoogleCloudRetailV2SearchResponseSearchResult() { if (buildCounterGoogleCloudRetailV2SearchResponseSearchResult < 3) { o.id = 'foo'; o.matchingVariantCount = 42; - o.matchingVariantFields = buildUnnamed108(); - o.modelScores = buildUnnamed109(); - o.personalLabels = buildUnnamed110(); + o.matchingVariantFields = buildUnnamed114(); + o.modelScores = buildUnnamed115(); + o.personalLabels = buildUnnamed116(); o.product = buildGoogleCloudRetailV2Product(); - o.variantRollupValues = buildUnnamed111(); + o.variantRollupValues = buildUnnamed117(); } buildCounterGoogleCloudRetailV2SearchResponseSearchResult--; return o; @@ -4739,21 +5195,21 @@ void checkGoogleCloudRetailV2SearchResponseSearchResult( if (buildCounterGoogleCloudRetailV2SearchResponseSearchResult < 3) { unittest.expect(o.id!, unittest.equals('foo')); unittest.expect(o.matchingVariantCount!, unittest.equals(42)); - checkUnnamed108(o.matchingVariantFields!); - checkUnnamed109(o.modelScores!); - checkUnnamed110(o.personalLabels!); + checkUnnamed114(o.matchingVariantFields!); + checkUnnamed115(o.modelScores!); + checkUnnamed116(o.personalLabels!); checkGoogleCloudRetailV2Product(o.product!); - checkUnnamed111(o.variantRollupValues!); + checkUnnamed117(o.variantRollupValues!); } buildCounterGoogleCloudRetailV2SearchResponseSearchResult--; } -core.List buildUnnamed112() => [ +core.List buildUnnamed118() => [ buildGoogleCloudRetailV2Tile(), buildGoogleCloudRetailV2Tile(), ]; -void checkUnnamed112(core.List o) { +void checkUnnamed118(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2Tile(o[0]); checkGoogleCloudRetailV2Tile(o[1]); @@ -4765,7 +5221,7 @@ buildGoogleCloudRetailV2SearchResponseTileNavigationResult() { final o = api.GoogleCloudRetailV2SearchResponseTileNavigationResult(); buildCounterGoogleCloudRetailV2SearchResponseTileNavigationResult++; if (buildCounterGoogleCloudRetailV2SearchResponseTileNavigationResult < 3) { - o.tiles = buildUnnamed112(); + o.tiles = buildUnnamed118(); } buildCounterGoogleCloudRetailV2SearchResponseTileNavigationResult--; return o; @@ -4776,86 +5232,86 @@ void checkGoogleCloudRetailV2SearchResponseTileNavigationResult( ) { buildCounterGoogleCloudRetailV2SearchResponseTileNavigationResult++; if (buildCounterGoogleCloudRetailV2SearchResponseTileNavigationResult < 3) { - checkUnnamed112(o.tiles!); + checkUnnamed118(o.tiles!); } buildCounterGoogleCloudRetailV2SearchResponseTileNavigationResult--; } -core.List buildUnnamed113() => ['foo', 'foo']; +core.List buildUnnamed119() => ['foo', 'foo']; -void checkUnnamed113(core.List o) { +void checkUnnamed119(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed114() => ['foo', 'foo']; +core.List buildUnnamed120() => ['foo', 'foo']; -void checkUnnamed114(core.List o) { +void checkUnnamed120(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed115() => ['foo', 'foo']; +core.List buildUnnamed121() => ['foo', 'foo']; -void checkUnnamed115(core.List o) { +void checkUnnamed121(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed116() => ['foo', 'foo']; +core.List buildUnnamed122() => ['foo', 'foo']; -void checkUnnamed116(core.List o) { +void checkUnnamed122(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed117() => ['foo', 'foo']; +core.List buildUnnamed123() => ['foo', 'foo']; -void checkUnnamed117(core.List o) { +void checkUnnamed123(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed118() => ['foo', 'foo']; +core.List buildUnnamed124() => ['foo', 'foo']; -void checkUnnamed118(core.List o) { +void checkUnnamed124(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed119() => ['foo', 'foo']; +core.List buildUnnamed125() => ['foo', 'foo']; -void checkUnnamed119(core.List o) { +void checkUnnamed125(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed120() => ['foo', 'foo']; +core.List buildUnnamed126() => ['foo', 'foo']; -void checkUnnamed120(core.List o) { +void checkUnnamed126(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed121() => ['foo', 'foo']; +core.List buildUnnamed127() => ['foo', 'foo']; -void checkUnnamed121(core.List o) { +void checkUnnamed127(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed122() => ['foo', 'foo']; +core.List buildUnnamed128() => ['foo', 'foo']; -void checkUnnamed122(core.List o) { +void checkUnnamed128(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4866,28 +5322,28 @@ api.GoogleCloudRetailV2ServingConfig buildGoogleCloudRetailV2ServingConfig() { final o = api.GoogleCloudRetailV2ServingConfig(); buildCounterGoogleCloudRetailV2ServingConfig++; if (buildCounterGoogleCloudRetailV2ServingConfig < 3) { - o.boostControlIds = buildUnnamed113(); + o.boostControlIds = buildUnnamed119(); o.displayName = 'foo'; o.diversityLevel = 'foo'; o.diversityType = 'foo'; - o.doNotAssociateControlIds = buildUnnamed114(); + o.doNotAssociateControlIds = buildUnnamed120(); o.dynamicFacetSpec = buildGoogleCloudRetailV2SearchRequestDynamicFacetSpec(); o.enableCategoryFilterLevel = 'foo'; - o.facetControlIds = buildUnnamed115(); - o.filterControlIds = buildUnnamed116(); - o.ignoreControlIds = buildUnnamed117(); + o.facetControlIds = buildUnnamed121(); + o.filterControlIds = buildUnnamed122(); + o.ignoreControlIds = buildUnnamed123(); o.ignoreRecsDenylist = true; o.modelId = 'foo'; o.name = 'foo'; - o.onewaySynonymsControlIds = buildUnnamed118(); + o.onewaySynonymsControlIds = buildUnnamed124(); o.personalizationSpec = buildGoogleCloudRetailV2SearchRequestPersonalizationSpec(); o.priceRerankingLevel = 'foo'; - o.redirectControlIds = buildUnnamed119(); - o.replacementControlIds = buildUnnamed120(); - o.solutionTypes = buildUnnamed121(); - o.twowaySynonymsControlIds = buildUnnamed122(); + o.redirectControlIds = buildUnnamed125(); + o.replacementControlIds = buildUnnamed126(); + o.solutionTypes = buildUnnamed127(); + o.twowaySynonymsControlIds = buildUnnamed128(); } buildCounterGoogleCloudRetailV2ServingConfig--; return o; @@ -4898,28 +5354,28 @@ void checkGoogleCloudRetailV2ServingConfig( ) { buildCounterGoogleCloudRetailV2ServingConfig++; if (buildCounterGoogleCloudRetailV2ServingConfig < 3) { - checkUnnamed113(o.boostControlIds!); + checkUnnamed119(o.boostControlIds!); unittest.expect(o.displayName!, unittest.equals('foo')); unittest.expect(o.diversityLevel!, unittest.equals('foo')); unittest.expect(o.diversityType!, unittest.equals('foo')); - checkUnnamed114(o.doNotAssociateControlIds!); + checkUnnamed120(o.doNotAssociateControlIds!); checkGoogleCloudRetailV2SearchRequestDynamicFacetSpec(o.dynamicFacetSpec!); unittest.expect(o.enableCategoryFilterLevel!, unittest.equals('foo')); - checkUnnamed115(o.facetControlIds!); - checkUnnamed116(o.filterControlIds!); - checkUnnamed117(o.ignoreControlIds!); + checkUnnamed121(o.facetControlIds!); + checkUnnamed122(o.filterControlIds!); + checkUnnamed123(o.ignoreControlIds!); unittest.expect(o.ignoreRecsDenylist!, unittest.isTrue); unittest.expect(o.modelId!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed118(o.onewaySynonymsControlIds!); + checkUnnamed124(o.onewaySynonymsControlIds!); checkGoogleCloudRetailV2SearchRequestPersonalizationSpec( o.personalizationSpec!, ); unittest.expect(o.priceRerankingLevel!, unittest.equals('foo')); - checkUnnamed119(o.redirectControlIds!); - checkUnnamed120(o.replacementControlIds!); - checkUnnamed121(o.solutionTypes!); - checkUnnamed122(o.twowaySynonymsControlIds!); + checkUnnamed125(o.redirectControlIds!); + checkUnnamed126(o.replacementControlIds!); + checkUnnamed127(o.solutionTypes!); + checkUnnamed128(o.twowaySynonymsControlIds!); } buildCounterGoogleCloudRetailV2ServingConfig--; } @@ -4978,9 +5434,9 @@ void checkGoogleCloudRetailV2SetInventoryRequest( buildCounterGoogleCloudRetailV2SetInventoryRequest--; } -core.List buildUnnamed123() => ['foo', 'foo']; +core.List buildUnnamed129() => ['foo', 'foo']; -void checkUnnamed123(core.List o) { +void checkUnnamed129(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4991,7 +5447,7 @@ api.GoogleCloudRetailV2StringList buildGoogleCloudRetailV2StringList() { final o = api.GoogleCloudRetailV2StringList(); buildCounterGoogleCloudRetailV2StringList++; if (buildCounterGoogleCloudRetailV2StringList < 3) { - o.values = buildUnnamed123(); + o.values = buildUnnamed129(); } buildCounterGoogleCloudRetailV2StringList--; return o; @@ -5000,7 +5456,7 @@ api.GoogleCloudRetailV2StringList buildGoogleCloudRetailV2StringList() { void checkGoogleCloudRetailV2StringList(api.GoogleCloudRetailV2StringList o) { buildCounterGoogleCloudRetailV2StringList++; if (buildCounterGoogleCloudRetailV2StringList < 3) { - checkUnnamed123(o.values!); + checkUnnamed129(o.values!); } buildCounterGoogleCloudRetailV2StringList--; } @@ -5080,12 +5536,12 @@ void checkGoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest( } core.Map -buildUnnamed124() => { +buildUnnamed130() => { 'x': buildGoogleCloudRetailV2CustomAttribute(), 'y': buildGoogleCloudRetailV2CustomAttribute(), }; -void checkUnnamed124( +void checkUnnamed130( core.Map o, ) { unittest.expect(o, unittest.hasLength(2)); @@ -5093,39 +5549,39 @@ void checkUnnamed124( checkGoogleCloudRetailV2CustomAttribute(o['y']!); } -core.List buildUnnamed125() => ['foo', 'foo']; +core.List buildUnnamed131() => ['foo', 'foo']; -void checkUnnamed125(core.List o) { +void checkUnnamed131(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed126() => ['foo', 'foo']; +core.List buildUnnamed132() => ['foo', 'foo']; -void checkUnnamed126(core.List o) { +void checkUnnamed132(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed127() => [ +core.List buildUnnamed133() => [ buildGoogleCloudRetailV2PanelInfo(), buildGoogleCloudRetailV2PanelInfo(), ]; -void checkUnnamed127(core.List o) { +void checkUnnamed133(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2PanelInfo(o[0]); checkGoogleCloudRetailV2PanelInfo(o[1]); } -core.List buildUnnamed128() => [ +core.List buildUnnamed134() => [ buildGoogleCloudRetailV2ProductDetail(), buildGoogleCloudRetailV2ProductDetail(), ]; -void checkUnnamed128(core.List o) { +void checkUnnamed134(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2ProductDetail(o[0]); checkGoogleCloudRetailV2ProductDetail(o[1]); @@ -5136,21 +5592,21 @@ api.GoogleCloudRetailV2UserEvent buildGoogleCloudRetailV2UserEvent() { final o = api.GoogleCloudRetailV2UserEvent(); buildCounterGoogleCloudRetailV2UserEvent++; if (buildCounterGoogleCloudRetailV2UserEvent < 3) { - o.attributes = buildUnnamed124(); + o.attributes = buildUnnamed130(); o.attributionToken = 'foo'; o.cartId = 'foo'; o.completionDetail = buildGoogleCloudRetailV2CompletionDetail(); o.entity = 'foo'; o.eventTime = 'foo'; o.eventType = 'foo'; - o.experimentIds = buildUnnamed125(); + o.experimentIds = buildUnnamed131(); o.filter = 'foo'; o.offset = 42; o.orderBy = 'foo'; - o.pageCategories = buildUnnamed126(); + o.pageCategories = buildUnnamed132(); o.pageViewId = 'foo'; - o.panels = buildUnnamed127(); - o.productDetails = buildUnnamed128(); + o.panels = buildUnnamed133(); + o.productDetails = buildUnnamed134(); o.purchaseTransaction = buildGoogleCloudRetailV2PurchaseTransaction(); o.referrerUri = 'foo'; o.searchQuery = 'foo'; @@ -5166,21 +5622,21 @@ api.GoogleCloudRetailV2UserEvent buildGoogleCloudRetailV2UserEvent() { void checkGoogleCloudRetailV2UserEvent(api.GoogleCloudRetailV2UserEvent o) { buildCounterGoogleCloudRetailV2UserEvent++; if (buildCounterGoogleCloudRetailV2UserEvent < 3) { - checkUnnamed124(o.attributes!); + checkUnnamed130(o.attributes!); unittest.expect(o.attributionToken!, unittest.equals('foo')); unittest.expect(o.cartId!, unittest.equals('foo')); checkGoogleCloudRetailV2CompletionDetail(o.completionDetail!); unittest.expect(o.entity!, unittest.equals('foo')); unittest.expect(o.eventTime!, unittest.equals('foo')); unittest.expect(o.eventType!, unittest.equals('foo')); - checkUnnamed125(o.experimentIds!); + checkUnnamed131(o.experimentIds!); unittest.expect(o.filter!, unittest.equals('foo')); unittest.expect(o.offset!, unittest.equals(42)); unittest.expect(o.orderBy!, unittest.equals('foo')); - checkUnnamed126(o.pageCategories!); + checkUnnamed132(o.pageCategories!); unittest.expect(o.pageViewId!, unittest.equals('foo')); - checkUnnamed127(o.panels!); - checkUnnamed128(o.productDetails!); + checkUnnamed133(o.panels!); + checkUnnamed134(o.productDetails!); checkGoogleCloudRetailV2PurchaseTransaction(o.purchaseTransaction!); unittest.expect(o.referrerUri!, unittest.equals('foo')); unittest.expect(o.searchQuery!, unittest.equals('foo')); @@ -5192,12 +5648,12 @@ void checkGoogleCloudRetailV2UserEvent(api.GoogleCloudRetailV2UserEvent o) { buildCounterGoogleCloudRetailV2UserEvent--; } -core.List buildUnnamed129() => [ +core.List buildUnnamed135() => [ buildGoogleCloudRetailV2UserEvent(), buildGoogleCloudRetailV2UserEvent(), ]; -void checkUnnamed129(core.List o) { +void checkUnnamed135(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRetailV2UserEvent(o[0]); checkGoogleCloudRetailV2UserEvent(o[1]); @@ -5209,7 +5665,7 @@ buildGoogleCloudRetailV2UserEventInlineSource() { final o = api.GoogleCloudRetailV2UserEventInlineSource(); buildCounterGoogleCloudRetailV2UserEventInlineSource++; if (buildCounterGoogleCloudRetailV2UserEventInlineSource < 3) { - o.userEvents = buildUnnamed129(); + o.userEvents = buildUnnamed135(); } buildCounterGoogleCloudRetailV2UserEventInlineSource--; return o; @@ -5220,7 +5676,7 @@ void checkGoogleCloudRetailV2UserEventInlineSource( ) { buildCounterGoogleCloudRetailV2UserEventInlineSource++; if (buildCounterGoogleCloudRetailV2UserEventInlineSource < 3) { - checkUnnamed129(o.userEvents!); + checkUnnamed135(o.userEvents!); } buildCounterGoogleCloudRetailV2UserEventInlineSource--; } @@ -5276,12 +5732,12 @@ void checkGoogleCloudRetailV2UserInfo(api.GoogleCloudRetailV2UserInfo o) { buildCounterGoogleCloudRetailV2UserInfo--; } -core.List buildUnnamed130() => [ +core.List buildUnnamed136() => [ buildGoogleLongrunningOperation(), buildGoogleLongrunningOperation(), ]; -void checkUnnamed130(core.List o) { +void checkUnnamed136(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0]); checkGoogleLongrunningOperation(o[1]); @@ -5294,7 +5750,7 @@ buildGoogleLongrunningListOperationsResponse() { buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = 'foo'; - o.operations = buildUnnamed130(); + o.operations = buildUnnamed136(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; @@ -5306,12 +5762,12 @@ void checkGoogleLongrunningListOperationsResponse( buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed130(o.operations!); + checkUnnamed136(o.operations!); } buildCounterGoogleLongrunningListOperationsResponse--; } -core.Map buildUnnamed131() => { +core.Map buildUnnamed137() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -5324,7 +5780,7 @@ core.Map buildUnnamed131() => { }, }; -void checkUnnamed131(core.Map o) { +void checkUnnamed137(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o['x']!) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); @@ -5338,7 +5794,7 @@ void checkUnnamed131(core.Map o) { unittest.expect(casted10['string'], unittest.equals('foo')); } -core.Map buildUnnamed132() => { +core.Map buildUnnamed138() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -5351,7 +5807,7 @@ core.Map buildUnnamed132() => { }, }; -void checkUnnamed132(core.Map o) { +void checkUnnamed138(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted11 = (o['x']!) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); @@ -5372,9 +5828,9 @@ api.GoogleLongrunningOperation buildGoogleLongrunningOperation() { if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed131(); + o.metadata = buildUnnamed137(); o.name = 'foo'; - o.response = buildUnnamed132(); + o.response = buildUnnamed138(); } buildCounterGoogleLongrunningOperation--; return o; @@ -5385,9 +5841,9 @@ void checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkGoogleRpcStatus(o.error!); - checkUnnamed131(o.metadata!); + checkUnnamed137(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed132(o.response!); + checkUnnamed138(o.response!); } buildCounterGoogleLongrunningOperation--; } @@ -5407,7 +5863,7 @@ void checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { buildCounterGoogleProtobufEmpty--; } -core.Map buildUnnamed133() => { +core.Map buildUnnamed139() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -5420,7 +5876,7 @@ core.Map buildUnnamed133() => { }, }; -void checkUnnamed133(core.Map o) { +void checkUnnamed139(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted13 = (o['x']!) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); @@ -5434,15 +5890,15 @@ void checkUnnamed133(core.Map o) { unittest.expect(casted14['string'], unittest.equals('foo')); } -core.List> buildUnnamed134() => [ - buildUnnamed133(), - buildUnnamed133(), +core.List> buildUnnamed140() => [ + buildUnnamed139(), + buildUnnamed139(), ]; -void checkUnnamed134(core.List> o) { +void checkUnnamed140(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed133(o[0]); - checkUnnamed133(o[1]); + checkUnnamed139(o[0]); + checkUnnamed139(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -5451,7 +5907,7 @@ api.GoogleRpcStatus buildGoogleRpcStatus() { buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed134(); + o.details = buildUnnamed140(); o.message = 'foo'; } buildCounterGoogleRpcStatus--; @@ -5462,7 +5918,7 @@ void checkGoogleRpcStatus(api.GoogleRpcStatus o) { buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed134(o.details!); + checkUnnamed140(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; @@ -5491,9 +5947,9 @@ void checkGoogleTypeDate(api.GoogleTypeDate o) { buildCounterGoogleTypeDate--; } -core.List buildUnnamed135() => ['foo', 'foo']; +core.List buildUnnamed141() => ['foo', 'foo']; -void checkUnnamed135(core.List o) { +void checkUnnamed141(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5767,142 +6223,326 @@ void main() { }); unittest.group( - 'obj-schema-GoogleCloudRetailV2CompleteQueryResponseAttributeResult', + 'obj-schema-GoogleCloudRetailV2CompleteQueryResponseAttributeResult', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudRetailV2CompleteQueryResponseAttributeResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudRetailV2CompleteQueryResponseAttributeResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2CompleteQueryResponseAttributeResult(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudRetailV2CompleteQueryResponseCompletionResult', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudRetailV2CompleteQueryResponseCompletionResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudRetailV2CompleteQueryResponseCompletionResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2CompleteQueryResponseCompletionResult(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudRetailV2CompleteQueryResponseRecentSearchResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2CompleteQueryResponseRecentSearchResult(od); + }); + }, + ); + + unittest.group('obj-schema-GoogleCloudRetailV2CompletionConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudRetailV2CompletionConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudRetailV2CompletionConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2CompletionConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudRetailV2CompletionDataInputConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudRetailV2CompletionDataInputConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudRetailV2CompletionDataInputConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2CompletionDataInputConfig(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudRetailV2CompletionDetail', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudRetailV2CompletionDetail(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudRetailV2CompletionDetail.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2CompletionDetail(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudRetailV2Condition', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudRetailV2Condition(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudRetailV2Condition.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2Condition(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudRetailV2ConditionQueryTerm', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudRetailV2ConditionQueryTerm(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudRetailV2ConditionQueryTerm.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2ConditionQueryTerm(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudRetailV2ConditionTimeRange', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudRetailV2ConditionTimeRange(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudRetailV2ConditionTimeRange.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2ConditionTimeRange(od); + }); + }); + + unittest.group('obj-schema-GoogleCloudRetailV2Control', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudRetailV2Control(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudRetailV2Control.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2Control(od); + }); + }); + + unittest.group( + 'obj-schema-GoogleCloudRetailV2ConversationalSearchCustomizationConfig', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudRetailV2ConversationalSearchCustomizationConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudRetailV2ConversationalSearchCustomizationConfig.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2ConversationalSearchCustomizationConfig(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudRetailV2ConversationalSearchRequest', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudRetailV2ConversationalSearchRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudRetailV2ConversationalSearchRequest.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2ConversationalSearchRequest(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2ConversationalSearchRequestConversationalFilteringSpec( + od, + ); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudRetailV2ConversationalSearchRequestSearchParams', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudRetailV2ConversationalSearchRequestSearchParams(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudRetailV2ConversationalSearchRequestSearchParams.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2ConversationalSearchRequestSearchParams(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudRetailV2ConversationalSearchRequestUserAnswer', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudRetailV2ConversationalSearchRequestUserAnswer(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudRetailV2ConversationalSearchRequestUserAnswer.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2ConversationalSearchRequestUserAnswer(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2ConversationalSearchRequestUserAnswerSelectedAnswer( + od, + ); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudRetailV2ConversationalSearchResponse', + () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudRetailV2ConversationalSearchResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudRetailV2ConversationalSearchResponse.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2ConversationalSearchResponse(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudRetailV2CompleteQueryResponseAttributeResult(); + buildGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudRetailV2CompleteQueryResponseAttributeResult.fromJson( + .GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult.fromJson( oJson as core.Map, ); - checkGoogleCloudRetailV2CompleteQueryResponseAttributeResult(od); + checkGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudRetailV2CompleteQueryResponseCompletionResult', + 'obj-schema-GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudRetailV2CompleteQueryResponseCompletionResult(); + buildGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudRetailV2CompleteQueryResponseCompletionResult.fromJson( + .GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter.fromJson( oJson as core.Map, ); - checkGoogleCloudRetailV2CompleteQueryResponseCompletionResult(od); + checkGoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResultAdditionalFilter( + od, + ); }); }, ); unittest.group( - 'obj-schema-GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult', + 'obj-schema-GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudRetailV2CompleteQueryResponseRecentSearchResult(); + buildGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult.fromJson( + .GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion.fromJson( oJson as core.Map, ); - checkGoogleCloudRetailV2CompleteQueryResponseRecentSearchResult(od); + checkGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion( + od, + ); }); }, ); - unittest.group('obj-schema-GoogleCloudRetailV2CompletionConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudRetailV2CompletionConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudRetailV2CompletionConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudRetailV2CompletionConfig(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudRetailV2CompletionDataInputConfig', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudRetailV2CompletionDataInputConfig(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudRetailV2CompletionDataInputConfig.fromJson( - oJson as core.Map, - ); - checkGoogleCloudRetailV2CompletionDataInputConfig(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudRetailV2CompletionDetail', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudRetailV2CompletionDetail(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudRetailV2CompletionDetail.fromJson( - oJson as core.Map, - ); - checkGoogleCloudRetailV2CompletionDetail(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudRetailV2Condition', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudRetailV2Condition(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudRetailV2Condition.fromJson( - oJson as core.Map, - ); - checkGoogleCloudRetailV2Condition(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudRetailV2ConditionQueryTerm', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudRetailV2ConditionQueryTerm(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudRetailV2ConditionQueryTerm.fromJson( - oJson as core.Map, - ); - checkGoogleCloudRetailV2ConditionQueryTerm(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudRetailV2ConditionTimeRange', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudRetailV2ConditionTimeRange(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudRetailV2ConditionTimeRange.fromJson( - oJson as core.Map, - ); - checkGoogleCloudRetailV2ConditionTimeRange(od); - }); - }); - - unittest.group('obj-schema-GoogleCloudRetailV2Control', () { - unittest.test('to-json--from-json', () async { - final o = buildGoogleCloudRetailV2Control(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.GoogleCloudRetailV2Control.fromJson( - oJson as core.Map, - ); - checkGoogleCloudRetailV2Control(od); - }); - }); + unittest.group( + 'obj-schema-GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2ConversationalSearchResponseFollowupQuestionSuggestedAnswer( + od, + ); + }); + }, + ); unittest.group( - 'obj-schema-GoogleCloudRetailV2ConversationalSearchCustomizationConfig', + 'obj-schema-GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch', () { unittest.test('to-json--from-json', () async { final o = - buildGoogleCloudRetailV2ConversationalSearchCustomizationConfig(); + buildGoogleCloudRetailV2ConversationalSearchResponseRefinedSearch(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); final od = api - .GoogleCloudRetailV2ConversationalSearchCustomizationConfig.fromJson( + .GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch.fromJson( oJson as core.Map, ); - checkGoogleCloudRetailV2ConversationalSearchCustomizationConfig(od); + checkGoogleCloudRetailV2ConversationalSearchResponseRefinedSearch(od); }); }, ); @@ -6819,6 +7459,17 @@ void main() { }); }); + unittest.group('obj-schema-GoogleCloudRetailV2SafetySetting', () { + unittest.test('to-json--from-json', () async { + final o = buildGoogleCloudRetailV2SafetySetting(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.GoogleCloudRetailV2SafetySetting.fromJson( + oJson as core.Map, + ); + checkGoogleCloudRetailV2SafetySetting(od); + }); + }); + unittest.group('obj-schema-GoogleCloudRetailV2SearchRequest', () { unittest.test('to-json--from-json', () async { final o = buildGoogleCloudRetailV2SearchRequest(); @@ -7333,7 +7984,7 @@ void main() { final arg_deviceType = 'foo'; final arg_enableAttributeSuggestions = true; final arg_entity = 'foo'; - final arg_languageCodes = buildUnnamed135(); + final arg_languageCodes = buildUnnamed141(); final arg_maxSuggestions = 42; final arg_query = 'foo'; final arg_visitorId = 'foo'; @@ -10685,6 +11336,75 @@ void main() { }); unittest.group('resource-ProjectsLocationsCatalogsPlacementsResource', () { + unittest.test('method--conversationalSearch', () async { + final mock = HttpServerMock(); + final res = + api.CloudRetailApi(mock).projects.locations.catalogs.placements; + final arg_request = buildGoogleCloudRetailV2ConversationalSearchRequest(); + final arg_placement = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudRetailV2ConversationalSearchRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudRetailV2ConversationalSearchRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v2/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudRetailV2ConversationalSearchResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.conversationalSearch( + arg_request, + arg_placement, + $fields: arg_$fields, + ); + checkGoogleCloudRetailV2ConversationalSearchResponse( + response as api.GoogleCloudRetailV2ConversationalSearchResponse, + ); + }); + unittest.test('method--predict', () async { final mock = HttpServerMock(); final res = @@ -10891,6 +11611,75 @@ void main() { ); }); + unittest.test('method--conversationalSearch', () async { + final mock = HttpServerMock(); + final res = + api.CloudRetailApi(mock).projects.locations.catalogs.servingConfigs; + final arg_request = buildGoogleCloudRetailV2ConversationalSearchRequest(); + final arg_placement = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api + .GoogleCloudRetailV2ConversationalSearchRequest.fromJson( + json as core.Map, + ); + checkGoogleCloudRetailV2ConversationalSearchRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v2/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildGoogleCloudRetailV2ConversationalSearchResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.conversationalSearch( + arg_request, + arg_placement, + $fields: arg_$fields, + ); + checkGoogleCloudRetailV2ConversationalSearchResponse( + response as api.GoogleCloudRetailV2ConversationalSearchResponse, + ); + }); + unittest.test('method--create', () async { final mock = HttpServerMock(); final res = diff --git a/generated/googleapis/test/run/v2_test.dart b/generated/googleapis/test/run/v2_test.dart index 76b4eb22d..5aeb6060b 100644 --- a/generated/googleapis/test/run/v2_test.dart +++ b/generated/googleapis/test/run/v2_test.dart @@ -2064,6 +2064,8 @@ buildGoogleCloudRunV2SubmitBuildRequest() { o.buildpackBuild = buildGoogleCloudRunV2BuildpacksBuild(); o.dockerBuild = buildGoogleCloudRunV2DockerBuild(); o.imageUri = 'foo'; + o.machineType = 'foo'; + o.releaseTrack = 'foo'; o.serviceAccount = 'foo'; o.storageSource = buildGoogleCloudRunV2StorageSource(); o.tags = buildUnnamed49(); @@ -2081,6 +2083,8 @@ void checkGoogleCloudRunV2SubmitBuildRequest( checkGoogleCloudRunV2BuildpacksBuild(o.buildpackBuild!); checkGoogleCloudRunV2DockerBuild(o.dockerBuild!); unittest.expect(o.imageUri!, unittest.equals('foo')); + unittest.expect(o.machineType!, unittest.equals('foo')); + unittest.expect(o.releaseTrack!, unittest.equals('foo')); unittest.expect(o.serviceAccount!, unittest.equals('foo')); checkGoogleCloudRunV2StorageSource(o.storageSource!); checkUnnamed49(o.tags!); @@ -2466,6 +2470,7 @@ api.GoogleCloudRunV2VolumeMount buildGoogleCloudRunV2VolumeMount() { if (buildCounterGoogleCloudRunV2VolumeMount < 3) { o.mountPath = 'foo'; o.name = 'foo'; + o.subPath = 'foo'; } buildCounterGoogleCloudRunV2VolumeMount--; return o; @@ -2476,6 +2481,7 @@ void checkGoogleCloudRunV2VolumeMount(api.GoogleCloudRunV2VolumeMount o) { if (buildCounterGoogleCloudRunV2VolumeMount < 3) { unittest.expect(o.mountPath!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.subPath!, unittest.equals('foo')); } buildCounterGoogleCloudRunV2VolumeMount--; } diff --git a/generated/googleapis/test/servicecontrol/v1_test.dart b/generated/googleapis/test/servicecontrol/v1_test.dart index b354e74e7..dabf502f2 100644 --- a/generated/googleapis/test/servicecontrol/v1_test.dart +++ b/generated/googleapis/test/servicecontrol/v1_test.dart @@ -218,6 +218,7 @@ api.CheckInfo buildCheckInfo() { if (buildCounterCheckInfo < 3) { o.apiKeyUid = 'foo'; o.consumerInfo = buildConsumerInfo(); + o.ignoreApiKeyUidAsCredentialId = true; o.unusedArguments = buildUnnamed4(); } buildCounterCheckInfo--; @@ -229,6 +230,7 @@ void checkCheckInfo(api.CheckInfo o) { if (buildCounterCheckInfo < 3) { unittest.expect(o.apiKeyUid!, unittest.equals('foo')); checkConsumerInfo(o.consumerInfo!); + unittest.expect(o.ignoreApiKeyUidAsCredentialId!, unittest.isTrue); checkUnnamed4(o.unusedArguments!); } buildCounterCheckInfo--; diff --git a/generated/googleapis/test/servicecontrol/v2_test.dart b/generated/googleapis/test/servicecontrol/v2_test.dart index 5e32f4930..c6fc88f4c 100644 --- a/generated/googleapis/test/servicecontrol/v2_test.dart +++ b/generated/googleapis/test/servicecontrol/v2_test.dart @@ -173,6 +173,7 @@ api.Auth buildAuth() { o.accessLevels = buildUnnamed2(); o.audiences = buildUnnamed3(); o.claims = buildUnnamed4(); + o.oauth = buildOauth(); o.presenter = 'foo'; o.principal = 'foo'; } @@ -186,6 +187,7 @@ void checkAuth(api.Auth o) { checkUnnamed2(o.accessLevels!); checkUnnamed3(o.audiences!); checkUnnamed4(o.claims!); + checkOauth(o.oauth!); unittest.expect(o.presenter!, unittest.equals('foo')); unittest.expect(o.principal!, unittest.equals('foo')); } @@ -286,6 +288,25 @@ void checkCheckResponse(api.CheckResponse o) { buildCounterCheckResponse--; } +core.int buildCounterOauth = 0; +api.Oauth buildOauth() { + final o = api.Oauth(); + buildCounterOauth++; + if (buildCounterOauth < 3) { + o.clientId = 'foo'; + } + buildCounterOauth--; + return o; +} + +void checkOauth(api.Oauth o) { + buildCounterOauth++; + if (buildCounterOauth < 3) { + unittest.expect(o.clientId!, unittest.equals('foo')); + } + buildCounterOauth--; +} + core.Map buildUnnamed8() => {'x': 'foo', 'y': 'foo'}; void checkUnnamed8(core.Map o) { @@ -684,6 +705,17 @@ void main() { }); }); + unittest.group('obj-schema-Oauth', () { + unittest.test('to-json--from-json', () async { + final o = buildOauth(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Oauth.fromJson( + oJson as core.Map, + ); + checkOauth(od); + }); + }); + unittest.group('obj-schema-Peer', () { unittest.test('to-json--from-json', () async { final o = buildPeer(); diff --git a/generated/googleapis/test/storage/v1_test.dart b/generated/googleapis/test/storage/v1_test.dart index cd8278f91..14f1bf17f 100644 --- a/generated/googleapis/test/storage/v1_test.dart +++ b/generated/googleapis/test/storage/v1_test.dart @@ -1245,6 +1245,8 @@ api.BulkRestoreObjectsRequest buildBulkRestoreObjectsRequest() { if (buildCounterBulkRestoreObjectsRequest < 3) { o.allowOverwrite = true; o.copySourceAcl = true; + o.createdAfterTime = core.DateTime.parse('2002-02-27T14:01:02Z'); + o.createdBeforeTime = core.DateTime.parse('2002-02-27T14:01:02Z'); o.matchGlobs = buildUnnamed19(); o.softDeletedAfterTime = core.DateTime.parse('2002-02-27T14:01:02Z'); o.softDeletedBeforeTime = core.DateTime.parse('2002-02-27T14:01:02Z'); @@ -1258,6 +1260,14 @@ void checkBulkRestoreObjectsRequest(api.BulkRestoreObjectsRequest o) { if (buildCounterBulkRestoreObjectsRequest < 3) { unittest.expect(o.allowOverwrite!, unittest.isTrue); unittest.expect(o.copySourceAcl!, unittest.isTrue); + unittest.expect( + o.createdAfterTime!, + unittest.equals(core.DateTime.parse('2002-02-27T14:01:02Z')), + ); + unittest.expect( + o.createdBeforeTime!, + unittest.equals(core.DateTime.parse('2002-02-27T14:01:02Z')), + ); checkUnnamed19(o.matchGlobs!); unittest.expect( o.softDeletedAfterTime!, diff --git a/generated/googleapis/test/texttospeech/v1_test.dart b/generated/googleapis/test/texttospeech/v1_test.dart index f82e9dec3..38e55bb1d 100644 --- a/generated/googleapis/test/texttospeech/v1_test.dart +++ b/generated/googleapis/test/texttospeech/v1_test.dart @@ -422,6 +422,7 @@ api.SynthesisInput buildSynthesisInput() { o.customPronunciations = buildCustomPronunciations(); o.markup = 'foo'; o.multiSpeakerMarkup = buildMultiSpeakerMarkup(); + o.prompt = 'foo'; o.ssml = 'foo'; o.text = 'foo'; } @@ -435,6 +436,7 @@ void checkSynthesisInput(api.SynthesisInput o) { checkCustomPronunciations(o.customPronunciations!); unittest.expect(o.markup!, unittest.equals('foo')); checkMultiSpeakerMarkup(o.multiSpeakerMarkup!); + unittest.expect(o.prompt!, unittest.equals('foo')); unittest.expect(o.ssml!, unittest.equals('foo')); unittest.expect(o.text!, unittest.equals('foo')); } @@ -590,6 +592,7 @@ api.VoiceSelectionParams buildVoiceSelectionParams() { if (buildCounterVoiceSelectionParams < 3) { o.customVoice = buildCustomVoiceParams(); o.languageCode = 'foo'; + o.modelName = 'foo'; o.name = 'foo'; o.ssmlGender = 'foo'; o.voiceClone = buildVoiceCloneParams(); @@ -603,6 +606,7 @@ void checkVoiceSelectionParams(api.VoiceSelectionParams o) { if (buildCounterVoiceSelectionParams < 3) { checkCustomVoiceParams(o.customVoice!); unittest.expect(o.languageCode!, unittest.equals('foo')); + unittest.expect(o.modelName!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.ssmlGender!, unittest.equals('foo')); checkVoiceCloneParams(o.voiceClone!); diff --git a/generated/googleapis/test/tpu/v2_test.dart b/generated/googleapis/test/tpu/v2_test.dart index 1a8c041da..7df08991b 100644 --- a/generated/googleapis/test/tpu/v2_test.dart +++ b/generated/googleapis/test/tpu/v2_test.dart @@ -151,6 +151,25 @@ void checkAttachedDisk(api.AttachedDisk o) { buildCounterAttachedDisk--; } +core.int buildCounterBootDiskConfig = 0; +api.BootDiskConfig buildBootDiskConfig() { + final o = api.BootDiskConfig(); + buildCounterBootDiskConfig++; + if (buildCounterBootDiskConfig < 3) { + o.customerEncryptionKey = buildCustomerEncryptionKey(); + } + buildCounterBootDiskConfig--; + return o; +} + +void checkBootDiskConfig(api.BootDiskConfig o) { + buildCounterBootDiskConfig++; + if (buildCounterBootDiskConfig < 3) { + checkCustomerEncryptionKey(o.customerEncryptionKey!); + } + buildCounterBootDiskConfig--; +} + core.int buildCounterCreatingData = 0; api.CreatingData buildCreatingData() { final o = api.CreatingData(); @@ -166,6 +185,25 @@ void checkCreatingData(api.CreatingData o) { buildCounterCreatingData--; } +core.int buildCounterCustomerEncryptionKey = 0; +api.CustomerEncryptionKey buildCustomerEncryptionKey() { + final o = api.CustomerEncryptionKey(); + buildCounterCustomerEncryptionKey++; + if (buildCounterCustomerEncryptionKey < 3) { + o.kmsKeyName = 'foo'; + } + buildCounterCustomerEncryptionKey--; + return o; +} + +void checkCustomerEncryptionKey(api.CustomerEncryptionKey o) { + buildCounterCustomerEncryptionKey++; + if (buildCounterCustomerEncryptionKey < 3) { + unittest.expect(o.kmsKeyName!, unittest.equals('foo')); + } + buildCounterCustomerEncryptionKey--; +} + core.int buildCounterDeletingData = 0; api.DeletingData buildDeletingData() { final o = api.DeletingData(); @@ -856,6 +894,7 @@ api.Node buildNode() { o.acceleratorConfig = buildAcceleratorConfig(); o.acceleratorType = 'foo'; o.apiVersion = 'foo'; + o.bootDiskConfig = buildBootDiskConfig(); o.cidrBlock = 'foo'; o.createTime = 'foo'; o.dataDisks = buildUnnamed16(); @@ -890,6 +929,7 @@ void checkNode(api.Node o) { checkAcceleratorConfig(o.acceleratorConfig!); unittest.expect(o.acceleratorType!, unittest.equals('foo')); unittest.expect(o.apiVersion!, unittest.equals('foo')); + checkBootDiskConfig(o.bootDiskConfig!); unittest.expect(o.cidrBlock!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); checkUnnamed16(o.dataDisks!); @@ -1553,6 +1593,17 @@ void main() { }); }); + unittest.group('obj-schema-BootDiskConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildBootDiskConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.BootDiskConfig.fromJson( + oJson as core.Map, + ); + checkBootDiskConfig(od); + }); + }); + unittest.group('obj-schema-CreatingData', () { unittest.test('to-json--from-json', () async { final o = buildCreatingData(); @@ -1564,6 +1615,17 @@ void main() { }); }); + unittest.group('obj-schema-CustomerEncryptionKey', () { + unittest.test('to-json--from-json', () async { + final o = buildCustomerEncryptionKey(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.CustomerEncryptionKey.fromJson( + oJson as core.Map, + ); + checkCustomerEncryptionKey(od); + }); + }); + unittest.group('obj-schema-DeletingData', () { unittest.test('to-json--from-json', () async { final o = buildDeletingData(); diff --git a/generated/googleapis/test/versionhistory/v1_test.dart b/generated/googleapis/test/versionhistory/v1_test.dart index 93101eb4e..35b5294f2 100644 --- a/generated/googleapis/test/versionhistory/v1_test.dart +++ b/generated/googleapis/test/versionhistory/v1_test.dart @@ -205,6 +205,17 @@ void checkPlatform(api.Platform o) { buildCounterPlatform--; } +core.List buildUnnamed4() => [ + buildRolloutData(), + buildRolloutData(), +]; + +void checkUnnamed4(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkRolloutData(o[0]); + checkRolloutData(o[1]); +} + core.int buildCounterRelease = 0; api.Release buildRelease() { final o = api.Release(); @@ -214,6 +225,7 @@ api.Release buildRelease() { o.fractionGroup = 'foo'; o.name = 'foo'; o.pinnable = true; + o.rolloutData = buildUnnamed4(); o.serving = buildInterval(); o.version = 'foo'; } @@ -228,12 +240,42 @@ void checkRelease(api.Release o) { unittest.expect(o.fractionGroup!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.pinnable!, unittest.isTrue); + checkUnnamed4(o.rolloutData!); checkInterval(o.serving!); unittest.expect(o.version!, unittest.equals('foo')); } buildCounterRelease--; } +core.List buildUnnamed5() => ['foo', 'foo']; + +void checkUnnamed5(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterRolloutData = 0; +api.RolloutData buildRolloutData() { + final o = api.RolloutData(); + buildCounterRolloutData++; + if (buildCounterRolloutData < 3) { + o.rolloutName = 'foo'; + o.tag = buildUnnamed5(); + } + buildCounterRolloutData--; + return o; +} + +void checkRolloutData(api.RolloutData o) { + buildCounterRolloutData++; + if (buildCounterRolloutData < 3) { + unittest.expect(o.rolloutName!, unittest.equals('foo')); + checkUnnamed5(o.tag!); + } + buildCounterRolloutData--; +} + core.int buildCounterVersion = 0; api.Version buildVersion() { final o = api.Version(); @@ -344,6 +386,17 @@ void main() { }); }); + unittest.group('obj-schema-RolloutData', () { + unittest.test('to-json--from-json', () async { + final o = buildRolloutData(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.RolloutData.fromJson( + oJson as core.Map, + ); + checkRolloutData(od); + }); + }); + unittest.group('obj-schema-Version', () { unittest.test('to-json--from-json', () async { final o = buildVersion(); diff --git a/generated/googleapis/test/vmmigration/v1_test.dart b/generated/googleapis/test/vmmigration/v1_test.dart index 42cdcebdd..5a568f95b 100644 --- a/generated/googleapis/test/vmmigration/v1_test.dart +++ b/generated/googleapis/test/vmmigration/v1_test.dart @@ -49,6 +49,27 @@ void checkAccessKeyCredentials(api.AccessKeyCredentials o) { buildCounterAccessKeyCredentials--; } +core.int buildCounterAdaptationModifier = 0; +api.AdaptationModifier buildAdaptationModifier() { + final o = api.AdaptationModifier(); + buildCounterAdaptationModifier++; + if (buildCounterAdaptationModifier < 3) { + o.modifier = 'foo'; + o.value = 'foo'; + } + buildCounterAdaptationModifier--; + return o; +} + +void checkAdaptationModifier(api.AdaptationModifier o) { + buildCounterAdaptationModifier++; + if (buildCounterAdaptationModifier < 3) { + unittest.expect(o.modifier!, unittest.equals('foo')); + unittest.expect(o.value!, unittest.equals('foo')); + } + buildCounterAdaptationModifier--; +} + core.int buildCounterAdaptingOSStep = 0; api.AdaptingOSStep buildAdaptingOSStep() { final o = api.AdaptingOSStep(); @@ -251,12 +272,45 @@ void checkAwsSourceDetails(api.AwsSourceDetails o) { buildCounterAwsSourceDetails--; } -core.List buildUnnamed3() => [ +core.Map buildUnnamed3() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed3(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterAwsSourceDiskDetails = 0; +api.AwsSourceDiskDetails buildAwsSourceDiskDetails() { + final o = api.AwsSourceDiskDetails(); + buildCounterAwsSourceDiskDetails++; + if (buildCounterAwsSourceDiskDetails < 3) { + o.diskType = 'foo'; + o.sizeGib = 'foo'; + o.tags = buildUnnamed3(); + o.volumeId = 'foo'; + } + buildCounterAwsSourceDiskDetails--; + return o; +} + +void checkAwsSourceDiskDetails(api.AwsSourceDiskDetails o) { + buildCounterAwsSourceDiskDetails++; + if (buildCounterAwsSourceDiskDetails < 3) { + unittest.expect(o.diskType!, unittest.equals('foo')); + unittest.expect(o.sizeGib!, unittest.equals('foo')); + checkUnnamed3(o.tags!); + unittest.expect(o.volumeId!, unittest.equals('foo')); + } + buildCounterAwsSourceDiskDetails--; +} + +core.List buildUnnamed4() => [ buildAwsDiskDetails(), buildAwsDiskDetails(), ]; -void checkUnnamed3(core.List o) { +void checkUnnamed4(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAwsDiskDetails(o[0]); checkAwsDiskDetails(o[1]); @@ -269,7 +323,7 @@ api.AwsSourceVmDetails buildAwsSourceVmDetails() { if (buildCounterAwsSourceVmDetails < 3) { o.architecture = 'foo'; o.committedStorageBytes = 'foo'; - o.disks = buildUnnamed3(); + o.disks = buildUnnamed4(); o.firmware = 'foo'; o.vmCapabilitiesInfo = buildVmCapabilities(); } @@ -282,27 +336,27 @@ void checkAwsSourceVmDetails(api.AwsSourceVmDetails o) { if (buildCounterAwsSourceVmDetails < 3) { unittest.expect(o.architecture!, unittest.equals('foo')); unittest.expect(o.committedStorageBytes!, unittest.equals('foo')); - checkUnnamed3(o.disks!); + checkUnnamed4(o.disks!); unittest.expect(o.firmware!, unittest.equals('foo')); checkVmCapabilities(o.vmCapabilitiesInfo!); } buildCounterAwsSourceVmDetails--; } -core.List buildUnnamed4() => [ +core.List buildUnnamed5() => [ buildAwsSecurityGroup(), buildAwsSecurityGroup(), ]; -void checkUnnamed4(core.List o) { +void checkUnnamed5(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAwsSecurityGroup(o[0]); checkAwsSecurityGroup(o[1]); } -core.Map buildUnnamed5() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed6() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed5(core.Map o) { +void checkUnnamed6(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -323,10 +377,10 @@ api.AwsVmDetails buildAwsVmDetails() { o.memoryMb = 42; o.osDescription = 'foo'; o.powerState = 'foo'; - o.securityGroups = buildUnnamed4(); + o.securityGroups = buildUnnamed5(); o.sourceDescription = 'foo'; o.sourceId = 'foo'; - o.tags = buildUnnamed5(); + o.tags = buildUnnamed6(); o.vcpuCount = 42; o.virtualizationType = 'foo'; o.vmId = 'foo'; @@ -350,10 +404,10 @@ void checkAwsVmDetails(api.AwsVmDetails o) { unittest.expect(o.memoryMb!, unittest.equals(42)); unittest.expect(o.osDescription!, unittest.equals('foo')); unittest.expect(o.powerState!, unittest.equals('foo')); - checkUnnamed4(o.securityGroups!); + checkUnnamed5(o.securityGroups!); unittest.expect(o.sourceDescription!, unittest.equals('foo')); unittest.expect(o.sourceId!, unittest.equals('foo')); - checkUnnamed5(o.tags!); + checkUnnamed6(o.tags!); unittest.expect(o.vcpuCount!, unittest.equals(42)); unittest.expect(o.virtualizationType!, unittest.equals('foo')); unittest.expect(o.vmId!, unittest.equals('foo')); @@ -363,12 +417,12 @@ void checkAwsVmDetails(api.AwsVmDetails o) { buildCounterAwsVmDetails--; } -core.List buildUnnamed6() => [ +core.List buildUnnamed7() => [ buildAwsVmDetails(), buildAwsVmDetails(), ]; -void checkUnnamed6(core.List o) { +void checkUnnamed7(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAwsVmDetails(o[0]); checkAwsVmDetails(o[1]); @@ -379,7 +433,7 @@ api.AwsVmsDetails buildAwsVmsDetails() { final o = api.AwsVmsDetails(); buildCounterAwsVmsDetails++; if (buildCounterAwsVmsDetails < 3) { - o.details = buildUnnamed6(); + o.details = buildUnnamed7(); } buildCounterAwsVmsDetails--; return o; @@ -388,7 +442,7 @@ api.AwsVmsDetails buildAwsVmsDetails() { void checkAwsVmsDetails(api.AwsVmsDetails o) { buildCounterAwsVmsDetails++; if (buildCounterAwsVmsDetails < 3) { - checkUnnamed6(o.details!); + checkUnnamed7(o.details!); } buildCounterAwsVmsDetails--; } @@ -416,9 +470,9 @@ void checkAzureDiskDetails(api.AzureDiskDetails o) { buildCounterAzureDiskDetails--; } -core.Map buildUnnamed7() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed8() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed7(core.Map o) { +void checkUnnamed8(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -432,7 +486,7 @@ api.AzureSourceDetails buildAzureSourceDetails() { o.azureLocation = 'foo'; o.clientSecretCreds = buildClientSecretCredentials(); o.error = buildStatus(); - o.migrationResourcesUserTags = buildUnnamed7(); + o.migrationResourcesUserTags = buildUnnamed8(); o.resourceGroupId = 'foo'; o.state = 'foo'; o.subscriptionId = 'foo'; @@ -447,7 +501,7 @@ void checkAzureSourceDetails(api.AzureSourceDetails o) { unittest.expect(o.azureLocation!, unittest.equals('foo')); checkClientSecretCredentials(o.clientSecretCreds!); checkStatus(o.error!); - checkUnnamed7(o.migrationResourcesUserTags!); + checkUnnamed8(o.migrationResourcesUserTags!); unittest.expect(o.resourceGroupId!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.subscriptionId!, unittest.equals('foo')); @@ -455,12 +509,12 @@ void checkAzureSourceDetails(api.AzureSourceDetails o) { buildCounterAzureSourceDetails--; } -core.List buildUnnamed8() => [ +core.List buildUnnamed9() => [ buildAzureDiskDetails(), buildAzureDiskDetails(), ]; -void checkUnnamed8(core.List o) { +void checkUnnamed9(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAzureDiskDetails(o[0]); checkAzureDiskDetails(o[1]); @@ -473,7 +527,7 @@ api.AzureSourceVmDetails buildAzureSourceVmDetails() { if (buildCounterAzureSourceVmDetails < 3) { o.architecture = 'foo'; o.committedStorageBytes = 'foo'; - o.disks = buildUnnamed8(); + o.disks = buildUnnamed9(); o.firmware = 'foo'; o.vmCapabilitiesInfo = buildVmCapabilities(); } @@ -486,24 +540,24 @@ void checkAzureSourceVmDetails(api.AzureSourceVmDetails o) { if (buildCounterAzureSourceVmDetails < 3) { unittest.expect(o.architecture!, unittest.equals('foo')); unittest.expect(o.committedStorageBytes!, unittest.equals('foo')); - checkUnnamed8(o.disks!); + checkUnnamed9(o.disks!); unittest.expect(o.firmware!, unittest.equals('foo')); checkVmCapabilities(o.vmCapabilitiesInfo!); } buildCounterAzureSourceVmDetails--; } -core.List buildUnnamed9() => [buildDisk(), buildDisk()]; +core.List buildUnnamed10() => [buildDisk(), buildDisk()]; -void checkUnnamed9(core.List o) { +void checkUnnamed10(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); } -core.Map buildUnnamed10() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed11() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed10(core.Map o) { +void checkUnnamed11(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -520,12 +574,12 @@ api.AzureVmDetails buildAzureVmDetails() { o.computerName = 'foo'; o.cpuCount = 42; o.diskCount = 42; - o.disks = buildUnnamed9(); + o.disks = buildUnnamed10(); o.memoryMb = 42; o.osDescription = buildOSDescription(); o.osDisk = buildOSDisk(); o.powerState = 'foo'; - o.tags = buildUnnamed10(); + o.tags = buildUnnamed11(); o.vmId = 'foo'; o.vmSize = 'foo'; } @@ -542,24 +596,24 @@ void checkAzureVmDetails(api.AzureVmDetails o) { unittest.expect(o.computerName!, unittest.equals('foo')); unittest.expect(o.cpuCount!, unittest.equals(42)); unittest.expect(o.diskCount!, unittest.equals(42)); - checkUnnamed9(o.disks!); + checkUnnamed10(o.disks!); unittest.expect(o.memoryMb!, unittest.equals(42)); checkOSDescription(o.osDescription!); checkOSDisk(o.osDisk!); unittest.expect(o.powerState!, unittest.equals('foo')); - checkUnnamed10(o.tags!); + checkUnnamed11(o.tags!); unittest.expect(o.vmId!, unittest.equals('foo')); unittest.expect(o.vmSize!, unittest.equals('foo')); } buildCounterAzureVmDetails--; } -core.List buildUnnamed11() => [ +core.List buildUnnamed12() => [ buildAzureVmDetails(), buildAzureVmDetails(), ]; -void checkUnnamed11(core.List o) { +void checkUnnamed12(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAzureVmDetails(o[0]); checkAzureVmDetails(o[1]); @@ -570,7 +624,7 @@ api.AzureVmsDetails buildAzureVmsDetails() { final o = api.AzureVmsDetails(); buildCounterAzureVmsDetails++; if (buildCounterAzureVmsDetails < 3) { - o.details = buildUnnamed11(); + o.details = buildUnnamed12(); } buildCounterAzureVmsDetails--; return o; @@ -579,7 +633,7 @@ api.AzureVmsDetails buildAzureVmsDetails() { void checkAzureVmsDetails(api.AzureVmsDetails o) { buildCounterAzureVmsDetails++; if (buildCounterAzureVmsDetails < 3) { - checkUnnamed11(o.details!); + checkUnnamed12(o.details!); } buildCounterAzureVmsDetails--; } @@ -641,6 +695,21 @@ void checkCancelCutoverJobRequest(api.CancelCutoverJobRequest o) { buildCounterCancelCutoverJobRequest--; } +core.int buildCounterCancelDiskMigrationJobRequest = 0; +api.CancelDiskMigrationJobRequest buildCancelDiskMigrationJobRequest() { + final o = api.CancelDiskMigrationJobRequest(); + buildCounterCancelDiskMigrationJobRequest++; + if (buildCounterCancelDiskMigrationJobRequest < 3) {} + buildCounterCancelDiskMigrationJobRequest--; + return o; +} + +void checkCancelDiskMigrationJobRequest(api.CancelDiskMigrationJobRequest o) { + buildCounterCancelDiskMigrationJobRequest++; + if (buildCounterCancelDiskMigrationJobRequest < 3) {} + buildCounterCancelDiskMigrationJobRequest--; +} + core.int buildCounterCancelImageImportJobRequest = 0; api.CancelImageImportJobRequest buildCancelImageImportJobRequest() { final o = api.CancelImageImportJobRequest(); @@ -694,12 +763,12 @@ void checkClientSecretCredentials(api.ClientSecretCredentials o) { buildCounterClientSecretCredentials--; } -core.List buildUnnamed12() => [ +core.List buildUnnamed13() => [ buildCloneStep(), buildCloneStep(), ]; -void checkUnnamed12(core.List o) { +void checkUnnamed13(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCloneStep(o[0]); checkCloneStep(o[1]); @@ -718,7 +787,7 @@ api.CloneJob buildCloneJob() { o.name = 'foo'; o.state = 'foo'; o.stateTime = 'foo'; - o.steps = buildUnnamed12(); + o.steps = buildUnnamed13(); } buildCounterCloneJob--; return o; @@ -735,7 +804,7 @@ void checkCloneJob(api.CloneJob o) { unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.stateTime!, unittest.equals('foo')); - checkUnnamed12(o.steps!); + checkUnnamed13(o.steps!); } buildCounterCloneJob--; } @@ -767,12 +836,45 @@ void checkCloneStep(api.CloneStep o) { buildCounterCloneStep--; } -core.List buildUnnamed13() => [ +core.List buildUnnamed14() => ['foo', 'foo']; + +void checkUnnamed14(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterComputeEngineDisk = 0; +api.ComputeEngineDisk buildComputeEngineDisk() { + final o = api.ComputeEngineDisk(); + buildCounterComputeEngineDisk++; + if (buildCounterComputeEngineDisk < 3) { + o.diskId = 'foo'; + o.diskType = 'foo'; + o.replicaZones = buildUnnamed14(); + o.zone = 'foo'; + } + buildCounterComputeEngineDisk--; + return o; +} + +void checkComputeEngineDisk(api.ComputeEngineDisk o) { + buildCounterComputeEngineDisk++; + if (buildCounterComputeEngineDisk < 3) { + unittest.expect(o.diskId!, unittest.equals('foo')); + unittest.expect(o.diskType!, unittest.equals('foo')); + checkUnnamed14(o.replicaZones!); + unittest.expect(o.zone!, unittest.equals('foo')); + } + buildCounterComputeEngineDisk--; +} + +core.List buildUnnamed15() => [ buildPersistentDiskDefaults(), buildPersistentDiskDefaults(), ]; -void checkUnnamed13(core.List o) { +void checkUnnamed15(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPersistentDiskDefaults(o[0]); checkPersistentDiskDefaults(o[1]); @@ -783,7 +885,7 @@ api.ComputeEngineDisksTargetDefaults buildComputeEngineDisksTargetDefaults() { final o = api.ComputeEngineDisksTargetDefaults(); buildCounterComputeEngineDisksTargetDefaults++; if (buildCounterComputeEngineDisksTargetDefaults < 3) { - o.disks = buildUnnamed13(); + o.disks = buildUnnamed15(); o.disksTargetDefaults = buildDisksMigrationDisksTargetDefaults(); o.targetProject = 'foo'; o.vmTargetDefaults = buildDisksMigrationVmTargetDefaults(); @@ -798,7 +900,7 @@ void checkComputeEngineDisksTargetDefaults( ) { buildCounterComputeEngineDisksTargetDefaults++; if (buildCounterComputeEngineDisksTargetDefaults < 3) { - checkUnnamed13(o.disks!); + checkUnnamed15(o.disks!); checkDisksMigrationDisksTargetDefaults(o.disksTargetDefaults!); unittest.expect(o.targetProject!, unittest.equals('foo')); checkDisksMigrationVmTargetDefaults(o.vmTargetDefaults!); @@ -807,12 +909,12 @@ void checkComputeEngineDisksTargetDefaults( buildCounterComputeEngineDisksTargetDefaults--; } -core.List buildUnnamed14() => [ +core.List buildUnnamed16() => [ buildPersistentDisk(), buildPersistentDisk(), ]; -void checkUnnamed14(core.List o) { +void checkUnnamed16(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPersistentDisk(o[0]); checkPersistentDisk(o[1]); @@ -823,7 +925,7 @@ api.ComputeEngineDisksTargetDetails buildComputeEngineDisksTargetDetails() { final o = api.ComputeEngineDisksTargetDetails(); buildCounterComputeEngineDisksTargetDetails++; if (buildCounterComputeEngineDisksTargetDetails < 3) { - o.disks = buildUnnamed14(); + o.disks = buildUnnamed16(); o.disksTargetDetails = buildDisksMigrationDisksTargetDetails(); o.vmTargetDetails = buildDisksMigrationVmTargetDetails(); } @@ -836,59 +938,70 @@ void checkComputeEngineDisksTargetDetails( ) { buildCounterComputeEngineDisksTargetDetails++; if (buildCounterComputeEngineDisksTargetDetails < 3) { - checkUnnamed14(o.disks!); + checkUnnamed16(o.disks!); checkDisksMigrationDisksTargetDetails(o.disksTargetDetails!); checkDisksMigrationVmTargetDetails(o.vmTargetDetails!); } buildCounterComputeEngineDisksTargetDetails--; } -core.List buildUnnamed15() => ['foo', 'foo']; +core.List buildUnnamed17() => [ + buildAdaptationModifier(), + buildAdaptationModifier(), +]; + +void checkUnnamed17(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkAdaptationModifier(o[0]); + checkAdaptationModifier(o[1]); +} + +core.List buildUnnamed18() => ['foo', 'foo']; -void checkUnnamed15(core.List o) { +void checkUnnamed18(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed16() => ['foo', 'foo']; +core.List buildUnnamed19() => ['foo', 'foo']; -void checkUnnamed16(core.List o) { +void checkUnnamed19(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed17() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed20() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed17(core.Map o) { +void checkUnnamed20(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed18() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed21() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed18(core.Map o) { +void checkUnnamed21(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed19() => [ +core.List buildUnnamed22() => [ buildNetworkInterface(), buildNetworkInterface(), ]; -void checkUnnamed19(core.List o) { +void checkUnnamed22(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -core.List buildUnnamed20() => ['foo', 'foo']; +core.List buildUnnamed23() => ['foo', 'foo']; -void checkUnnamed20(core.List o) { +void checkUnnamed23(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -899,24 +1012,25 @@ api.ComputeEngineTargetDefaults buildComputeEngineTargetDefaults() { final o = api.ComputeEngineTargetDefaults(); buildCounterComputeEngineTargetDefaults++; if (buildCounterComputeEngineTargetDefaults < 3) { - o.additionalLicenses = buildUnnamed15(); + o.adaptationModifiers = buildUnnamed17(); + o.additionalLicenses = buildUnnamed18(); o.appliedLicense = buildAppliedLicense(); o.bootConversion = 'foo'; o.bootOption = 'foo'; o.computeScheduling = buildComputeScheduling(); - o.diskReplicaZones = buildUnnamed16(); + o.diskReplicaZones = buildUnnamed19(); o.diskType = 'foo'; o.enableIntegrityMonitoring = true; o.enableVtpm = true; o.encryption = buildEncryption(); o.hostname = 'foo'; - o.labels = buildUnnamed17(); + o.labels = buildUnnamed20(); o.licenseType = 'foo'; o.machineType = 'foo'; o.machineTypeSeries = 'foo'; - o.metadata = buildUnnamed18(); - o.networkInterfaces = buildUnnamed19(); - o.networkTags = buildUnnamed20(); + o.metadata = buildUnnamed21(); + o.networkInterfaces = buildUnnamed22(); + o.networkTags = buildUnnamed23(); o.secureBoot = true; o.serviceAccount = 'foo'; o.targetProject = 'foo'; @@ -930,24 +1044,25 @@ api.ComputeEngineTargetDefaults buildComputeEngineTargetDefaults() { void checkComputeEngineTargetDefaults(api.ComputeEngineTargetDefaults o) { buildCounterComputeEngineTargetDefaults++; if (buildCounterComputeEngineTargetDefaults < 3) { - checkUnnamed15(o.additionalLicenses!); + checkUnnamed17(o.adaptationModifiers!); + checkUnnamed18(o.additionalLicenses!); checkAppliedLicense(o.appliedLicense!); unittest.expect(o.bootConversion!, unittest.equals('foo')); unittest.expect(o.bootOption!, unittest.equals('foo')); checkComputeScheduling(o.computeScheduling!); - checkUnnamed16(o.diskReplicaZones!); + checkUnnamed19(o.diskReplicaZones!); unittest.expect(o.diskType!, unittest.equals('foo')); unittest.expect(o.enableIntegrityMonitoring!, unittest.isTrue); unittest.expect(o.enableVtpm!, unittest.isTrue); checkEncryption(o.encryption!); unittest.expect(o.hostname!, unittest.equals('foo')); - checkUnnamed17(o.labels!); + checkUnnamed20(o.labels!); unittest.expect(o.licenseType!, unittest.equals('foo')); unittest.expect(o.machineType!, unittest.equals('foo')); unittest.expect(o.machineTypeSeries!, unittest.equals('foo')); - checkUnnamed18(o.metadata!); - checkUnnamed19(o.networkInterfaces!); - checkUnnamed20(o.networkTags!); + checkUnnamed21(o.metadata!); + checkUnnamed22(o.networkInterfaces!); + checkUnnamed23(o.networkTags!); unittest.expect(o.secureBoot!, unittest.isTrue); unittest.expect(o.serviceAccount!, unittest.equals('foo')); unittest.expect(o.targetProject!, unittest.equals('foo')); @@ -957,52 +1072,63 @@ void checkComputeEngineTargetDefaults(api.ComputeEngineTargetDefaults o) { buildCounterComputeEngineTargetDefaults--; } -core.List buildUnnamed21() => ['foo', 'foo']; +core.List buildUnnamed24() => [ + buildAdaptationModifier(), + buildAdaptationModifier(), +]; + +void checkUnnamed24(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkAdaptationModifier(o[0]); + checkAdaptationModifier(o[1]); +} + +core.List buildUnnamed25() => ['foo', 'foo']; -void checkUnnamed21(core.List o) { +void checkUnnamed25(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed22() => ['foo', 'foo']; +core.List buildUnnamed26() => ['foo', 'foo']; -void checkUnnamed22(core.List o) { +void checkUnnamed26(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed23() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed27() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed23(core.Map o) { +void checkUnnamed27(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed24() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed28() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed24(core.Map o) { +void checkUnnamed28(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed25() => [ +core.List buildUnnamed29() => [ buildNetworkInterface(), buildNetworkInterface(), ]; -void checkUnnamed25(core.List o) { +void checkUnnamed29(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -core.List buildUnnamed26() => ['foo', 'foo']; +core.List buildUnnamed30() => ['foo', 'foo']; -void checkUnnamed26(core.List o) { +void checkUnnamed30(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1013,24 +1139,25 @@ api.ComputeEngineTargetDetails buildComputeEngineTargetDetails() { final o = api.ComputeEngineTargetDetails(); buildCounterComputeEngineTargetDetails++; if (buildCounterComputeEngineTargetDetails < 3) { - o.additionalLicenses = buildUnnamed21(); + o.adaptationModifiers = buildUnnamed24(); + o.additionalLicenses = buildUnnamed25(); o.appliedLicense = buildAppliedLicense(); o.bootConversion = 'foo'; o.bootOption = 'foo'; o.computeScheduling = buildComputeScheduling(); - o.diskReplicaZones = buildUnnamed22(); + o.diskReplicaZones = buildUnnamed26(); o.diskType = 'foo'; o.enableIntegrityMonitoring = true; o.enableVtpm = true; o.encryption = buildEncryption(); o.hostname = 'foo'; - o.labels = buildUnnamed23(); + o.labels = buildUnnamed27(); o.licenseType = 'foo'; o.machineType = 'foo'; o.machineTypeSeries = 'foo'; - o.metadata = buildUnnamed24(); - o.networkInterfaces = buildUnnamed25(); - o.networkTags = buildUnnamed26(); + o.metadata = buildUnnamed28(); + o.networkInterfaces = buildUnnamed29(); + o.networkTags = buildUnnamed30(); o.project = 'foo'; o.secureBoot = true; o.serviceAccount = 'foo'; @@ -1044,24 +1171,25 @@ api.ComputeEngineTargetDetails buildComputeEngineTargetDetails() { void checkComputeEngineTargetDetails(api.ComputeEngineTargetDetails o) { buildCounterComputeEngineTargetDetails++; if (buildCounterComputeEngineTargetDetails < 3) { - checkUnnamed21(o.additionalLicenses!); + checkUnnamed24(o.adaptationModifiers!); + checkUnnamed25(o.additionalLicenses!); checkAppliedLicense(o.appliedLicense!); unittest.expect(o.bootConversion!, unittest.equals('foo')); unittest.expect(o.bootOption!, unittest.equals('foo')); checkComputeScheduling(o.computeScheduling!); - checkUnnamed22(o.diskReplicaZones!); + checkUnnamed26(o.diskReplicaZones!); unittest.expect(o.diskType!, unittest.equals('foo')); unittest.expect(o.enableIntegrityMonitoring!, unittest.isTrue); unittest.expect(o.enableVtpm!, unittest.isTrue); checkEncryption(o.encryption!); unittest.expect(o.hostname!, unittest.equals('foo')); - checkUnnamed23(o.labels!); + checkUnnamed27(o.labels!); unittest.expect(o.licenseType!, unittest.equals('foo')); unittest.expect(o.machineType!, unittest.equals('foo')); unittest.expect(o.machineTypeSeries!, unittest.equals('foo')); - checkUnnamed24(o.metadata!); - checkUnnamed25(o.networkInterfaces!); - checkUnnamed26(o.networkTags!); + checkUnnamed28(o.metadata!); + checkUnnamed29(o.networkInterfaces!); + checkUnnamed30(o.networkTags!); unittest.expect(o.project!, unittest.equals('foo')); unittest.expect(o.secureBoot!, unittest.isTrue); unittest.expect(o.serviceAccount!, unittest.equals('foo')); @@ -1071,12 +1199,12 @@ void checkComputeEngineTargetDetails(api.ComputeEngineTargetDetails o) { buildCounterComputeEngineTargetDetails--; } -core.List buildUnnamed27() => [ +core.List buildUnnamed31() => [ buildSchedulingNodeAffinity(), buildSchedulingNodeAffinity(), ]; -void checkUnnamed27(core.List o) { +void checkUnnamed31(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSchedulingNodeAffinity(o[0]); checkSchedulingNodeAffinity(o[1]); @@ -1088,7 +1216,7 @@ api.ComputeScheduling buildComputeScheduling() { buildCounterComputeScheduling++; if (buildCounterComputeScheduling < 3) { o.minNodeCpus = 42; - o.nodeAffinities = buildUnnamed27(); + o.nodeAffinities = buildUnnamed31(); o.onHostMaintenance = 'foo'; o.restartType = 'foo'; } @@ -1100,13 +1228,28 @@ void checkComputeScheduling(api.ComputeScheduling o) { buildCounterComputeScheduling++; if (buildCounterComputeScheduling < 3) { unittest.expect(o.minNodeCpus!, unittest.equals(42)); - checkUnnamed27(o.nodeAffinities!); + checkUnnamed31(o.nodeAffinities!); unittest.expect(o.onHostMaintenance!, unittest.equals('foo')); unittest.expect(o.restartType!, unittest.equals('foo')); } buildCounterComputeScheduling--; } +core.int buildCounterCopyingSourceDiskSnapshotStep = 0; +api.CopyingSourceDiskSnapshotStep buildCopyingSourceDiskSnapshotStep() { + final o = api.CopyingSourceDiskSnapshotStep(); + buildCounterCopyingSourceDiskSnapshotStep++; + if (buildCounterCopyingSourceDiskSnapshotStep < 3) {} + buildCounterCopyingSourceDiskSnapshotStep--; + return o; +} + +void checkCopyingSourceDiskSnapshotStep(api.CopyingSourceDiskSnapshotStep o) { + buildCounterCopyingSourceDiskSnapshotStep++; + if (buildCounterCopyingSourceDiskSnapshotStep < 3) {} + buildCounterCopyingSourceDiskSnapshotStep--; +} + core.int buildCounterCreatingImageStep = 0; api.CreatingImageStep buildCreatingImageStep() { final o = api.CreatingImageStep(); @@ -1122,6 +1265,21 @@ void checkCreatingImageStep(api.CreatingImageStep o) { buildCounterCreatingImageStep--; } +core.int buildCounterCreatingSourceDiskSnapshotStep = 0; +api.CreatingSourceDiskSnapshotStep buildCreatingSourceDiskSnapshotStep() { + final o = api.CreatingSourceDiskSnapshotStep(); + buildCounterCreatingSourceDiskSnapshotStep++; + if (buildCounterCreatingSourceDiskSnapshotStep < 3) {} + buildCounterCreatingSourceDiskSnapshotStep--; + return o; +} + +void checkCreatingSourceDiskSnapshotStep(api.CreatingSourceDiskSnapshotStep o) { + buildCounterCreatingSourceDiskSnapshotStep++; + if (buildCounterCreatingSourceDiskSnapshotStep < 3) {} + buildCounterCreatingSourceDiskSnapshotStep--; +} + core.int buildCounterCutoverForecast = 0; api.CutoverForecast buildCutoverForecast() { final o = api.CutoverForecast(); @@ -1141,12 +1299,12 @@ void checkCutoverForecast(api.CutoverForecast o) { buildCounterCutoverForecast--; } -core.List buildUnnamed28() => [ +core.List buildUnnamed32() => [ buildCutoverStep(), buildCutoverStep(), ]; -void checkUnnamed28(core.List o) { +void checkUnnamed32(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCutoverStep(o[0]); checkCutoverStep(o[1]); @@ -1167,7 +1325,7 @@ api.CutoverJob buildCutoverJob() { o.state = 'foo'; o.stateMessage = 'foo'; o.stateTime = 'foo'; - o.steps = buildUnnamed28(); + o.steps = buildUnnamed32(); } buildCounterCutoverJob--; return o; @@ -1186,7 +1344,7 @@ void checkCutoverJob(api.CutoverJob o) { unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.stateMessage!, unittest.equals('foo')); unittest.expect(o.stateTime!, unittest.equals('foo')); - checkUnnamed28(o.steps!); + checkUnnamed32(o.steps!); } buildCounterCutoverJob--; } @@ -1351,17 +1509,17 @@ void checkDiskImageDefaults(api.DiskImageDefaults o) { buildCounterDiskImageDefaults--; } -core.List buildUnnamed29() => ['foo', 'foo']; +core.List buildUnnamed33() => ['foo', 'foo']; -void checkUnnamed29(core.List o) { +void checkUnnamed33(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed30() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed34() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed30(core.Map o) { +void checkUnnamed34(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -1372,13 +1530,13 @@ api.DiskImageTargetDetails buildDiskImageTargetDetails() { final o = api.DiskImageTargetDetails(); buildCounterDiskImageTargetDetails++; if (buildCounterDiskImageTargetDetails < 3) { - o.additionalLicenses = buildUnnamed29(); + o.additionalLicenses = buildUnnamed33(); o.dataDiskImageImport = buildDataDiskImageImport(); o.description = 'foo'; o.encryption = buildEncryption(); o.familyName = 'foo'; o.imageName = 'foo'; - o.labels = buildUnnamed30(); + o.labels = buildUnnamed34(); o.osAdaptationParameters = buildImageImportOsAdaptationParameters(); o.singleRegionStorage = true; o.targetProject = 'foo'; @@ -1390,13 +1548,13 @@ api.DiskImageTargetDetails buildDiskImageTargetDetails() { void checkDiskImageTargetDetails(api.DiskImageTargetDetails o) { buildCounterDiskImageTargetDetails++; if (buildCounterDiskImageTargetDetails < 3) { - checkUnnamed29(o.additionalLicenses!); + checkUnnamed33(o.additionalLicenses!); checkDataDiskImageImport(o.dataDiskImageImport!); unittest.expect(o.description!, unittest.equals('foo')); checkEncryption(o.encryption!); unittest.expect(o.familyName!, unittest.equals('foo')); unittest.expect(o.imageName!, unittest.equals('foo')); - checkUnnamed30(o.labels!); + checkUnnamed34(o.labels!); checkImageImportOsAdaptationParameters(o.osAdaptationParameters!); unittest.expect(o.singleRegionStorage!, unittest.isTrue); unittest.expect(o.targetProject!, unittest.equals('foo')); @@ -1404,6 +1562,118 @@ void checkDiskImageTargetDetails(api.DiskImageTargetDetails o) { buildCounterDiskImageTargetDetails--; } +core.List buildUnnamed35() => [buildStatus(), buildStatus()]; + +void checkUnnamed35(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkStatus(o[0]); + checkStatus(o[1]); +} + +core.List buildUnnamed36() => [ + buildDiskMigrationStep(), + buildDiskMigrationStep(), +]; + +void checkUnnamed36(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkDiskMigrationStep(o[0]); + checkDiskMigrationStep(o[1]); +} + +core.int buildCounterDiskMigrationJob = 0; +api.DiskMigrationJob buildDiskMigrationJob() { + final o = api.DiskMigrationJob(); + buildCounterDiskMigrationJob++; + if (buildCounterDiskMigrationJob < 3) { + o.awsSourceDiskDetails = buildAwsSourceDiskDetails(); + o.createTime = 'foo'; + o.errors = buildUnnamed35(); + o.name = 'foo'; + o.state = 'foo'; + o.steps = buildUnnamed36(); + o.targetDetails = buildDiskMigrationJobTargetDetails(); + o.updateTime = 'foo'; + } + buildCounterDiskMigrationJob--; + return o; +} + +void checkDiskMigrationJob(api.DiskMigrationJob o) { + buildCounterDiskMigrationJob++; + if (buildCounterDiskMigrationJob < 3) { + checkAwsSourceDiskDetails(o.awsSourceDiskDetails!); + unittest.expect(o.createTime!, unittest.equals('foo')); + checkUnnamed35(o.errors!); + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.state!, unittest.equals('foo')); + checkUnnamed36(o.steps!); + checkDiskMigrationJobTargetDetails(o.targetDetails!); + unittest.expect(o.updateTime!, unittest.equals('foo')); + } + buildCounterDiskMigrationJob--; +} + +core.Map buildUnnamed37() => {'x': 'foo', 'y': 'foo'}; + +void checkUnnamed37(core.Map o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o['x']!, unittest.equals('foo')); + unittest.expect(o['y']!, unittest.equals('foo')); +} + +core.int buildCounterDiskMigrationJobTargetDetails = 0; +api.DiskMigrationJobTargetDetails buildDiskMigrationJobTargetDetails() { + final o = api.DiskMigrationJobTargetDetails(); + buildCounterDiskMigrationJobTargetDetails++; + if (buildCounterDiskMigrationJobTargetDetails < 3) { + o.encryption = buildEncryption(); + o.labels = buildUnnamed37(); + o.targetDisk = buildComputeEngineDisk(); + o.targetProject = 'foo'; + } + buildCounterDiskMigrationJobTargetDetails--; + return o; +} + +void checkDiskMigrationJobTargetDetails(api.DiskMigrationJobTargetDetails o) { + buildCounterDiskMigrationJobTargetDetails++; + if (buildCounterDiskMigrationJobTargetDetails < 3) { + checkEncryption(o.encryption!); + checkUnnamed37(o.labels!); + checkComputeEngineDisk(o.targetDisk!); + unittest.expect(o.targetProject!, unittest.equals('foo')); + } + buildCounterDiskMigrationJobTargetDetails--; +} + +core.int buildCounterDiskMigrationStep = 0; +api.DiskMigrationStep buildDiskMigrationStep() { + final o = api.DiskMigrationStep(); + buildCounterDiskMigrationStep++; + if (buildCounterDiskMigrationStep < 3) { + o.copyingSourceDiskSnapshot = buildCopyingSourceDiskSnapshotStep(); + o.creatingSourceDiskSnapshot = buildCreatingSourceDiskSnapshotStep(); + o.endTime = 'foo'; + o.provisioningTargetDisk = buildProvisioningTargetDiskStep(); + o.startTime = 'foo'; + } + buildCounterDiskMigrationStep--; + return o; +} + +void checkDiskMigrationStep(api.DiskMigrationStep o) { + buildCounterDiskMigrationStep++; + if (buildCounterDiskMigrationStep < 3) { + checkCopyingSourceDiskSnapshotStep(o.copyingSourceDiskSnapshot!); + checkCreatingSourceDiskSnapshotStep(o.creatingSourceDiskSnapshot!); + unittest.expect(o.endTime!, unittest.equals('foo')); + checkProvisioningTargetDiskStep(o.provisioningTargetDisk!); + unittest.expect(o.startTime!, unittest.equals('foo')); + } + buildCounterDiskMigrationStep--; +} + core.int buildCounterDisksMigrationDisksTargetDefaults = 0; api.DisksMigrationDisksTargetDefaults buildDisksMigrationDisksTargetDefaults() { final o = api.DisksMigrationDisksTargetDefaults(); @@ -1438,44 +1708,44 @@ void checkDisksMigrationDisksTargetDetails( buildCounterDisksMigrationDisksTargetDetails--; } -core.List buildUnnamed31() => ['foo', 'foo']; +core.List buildUnnamed38() => ['foo', 'foo']; -void checkUnnamed31(core.List o) { +void checkUnnamed38(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed32() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed39() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed32(core.Map o) { +void checkUnnamed39(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed33() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed40() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed33(core.Map o) { +void checkUnnamed40(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed34() => [ +core.List buildUnnamed41() => [ buildNetworkInterface(), buildNetworkInterface(), ]; -void checkUnnamed34(core.List o) { +void checkUnnamed41(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -core.List buildUnnamed35() => ['foo', 'foo']; +core.List buildUnnamed42() => ['foo', 'foo']; -void checkUnnamed35(core.List o) { +void checkUnnamed42(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1486,19 +1756,19 @@ api.DisksMigrationVmTargetDefaults buildDisksMigrationVmTargetDefaults() { final o = api.DisksMigrationVmTargetDefaults(); buildCounterDisksMigrationVmTargetDefaults++; if (buildCounterDisksMigrationVmTargetDefaults < 3) { - o.additionalLicenses = buildUnnamed31(); + o.additionalLicenses = buildUnnamed38(); o.bootDiskDefaults = buildBootDiskDefaults(); o.computeScheduling = buildComputeScheduling(); o.enableIntegrityMonitoring = true; o.enableVtpm = true; o.encryption = buildEncryption(); o.hostname = 'foo'; - o.labels = buildUnnamed32(); + o.labels = buildUnnamed39(); o.machineType = 'foo'; o.machineTypeSeries = 'foo'; - o.metadata = buildUnnamed33(); - o.networkInterfaces = buildUnnamed34(); - o.networkTags = buildUnnamed35(); + o.metadata = buildUnnamed40(); + o.networkInterfaces = buildUnnamed41(); + o.networkTags = buildUnnamed42(); o.secureBoot = true; o.serviceAccount = 'foo'; o.vmName = 'foo'; @@ -1510,19 +1780,19 @@ api.DisksMigrationVmTargetDefaults buildDisksMigrationVmTargetDefaults() { void checkDisksMigrationVmTargetDefaults(api.DisksMigrationVmTargetDefaults o) { buildCounterDisksMigrationVmTargetDefaults++; if (buildCounterDisksMigrationVmTargetDefaults < 3) { - checkUnnamed31(o.additionalLicenses!); + checkUnnamed38(o.additionalLicenses!); checkBootDiskDefaults(o.bootDiskDefaults!); checkComputeScheduling(o.computeScheduling!); unittest.expect(o.enableIntegrityMonitoring!, unittest.isTrue); unittest.expect(o.enableVtpm!, unittest.isTrue); checkEncryption(o.encryption!); unittest.expect(o.hostname!, unittest.equals('foo')); - checkUnnamed32(o.labels!); + checkUnnamed39(o.labels!); unittest.expect(o.machineType!, unittest.equals('foo')); unittest.expect(o.machineTypeSeries!, unittest.equals('foo')); - checkUnnamed33(o.metadata!); - checkUnnamed34(o.networkInterfaces!); - checkUnnamed35(o.networkTags!); + checkUnnamed40(o.metadata!); + checkUnnamed41(o.networkInterfaces!); + checkUnnamed42(o.networkTags!); unittest.expect(o.secureBoot!, unittest.isTrue); unittest.expect(o.serviceAccount!, unittest.equals('foo')); unittest.expect(o.vmName!, unittest.equals('foo')); @@ -1648,6 +1918,40 @@ void checkFetchInventoryResponse(api.FetchInventoryResponse o) { buildCounterFetchInventoryResponse--; } +core.List buildUnnamed43() => [ + buildSourceStorageResource(), + buildSourceStorageResource(), +]; + +void checkUnnamed43(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkSourceStorageResource(o[0]); + checkSourceStorageResource(o[1]); +} + +core.int buildCounterFetchStorageInventoryResponse = 0; +api.FetchStorageInventoryResponse buildFetchStorageInventoryResponse() { + final o = api.FetchStorageInventoryResponse(); + buildCounterFetchStorageInventoryResponse++; + if (buildCounterFetchStorageInventoryResponse < 3) { + o.nextPageToken = 'foo'; + o.resources = buildUnnamed43(); + o.updateTime = 'foo'; + } + buildCounterFetchStorageInventoryResponse--; + return o; +} + +void checkFetchStorageInventoryResponse(api.FetchStorageInventoryResponse o) { + buildCounterFetchStorageInventoryResponse++; + if (buildCounterFetchStorageInventoryResponse < 3) { + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed43(o.resources!); + unittest.expect(o.updateTime!, unittest.equals('foo')); + } + buildCounterFetchStorageInventoryResponse--; +} + core.int buildCounterFinalizeMigrationRequest = 0; api.FinalizeMigrationRequest buildFinalizeMigrationRequest() { final o = api.FinalizeMigrationRequest(); @@ -1692,12 +1996,12 @@ void checkGroup(api.Group o) { buildCounterGroup--; } -core.List buildUnnamed36() => [ +core.List buildUnnamed44() => [ buildImageImportJob(), buildImageImportJob(), ]; -void checkUnnamed36(core.List o) { +void checkUnnamed44(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkImageImportJob(o[0]); checkImageImportJob(o[1]); @@ -1714,7 +2018,7 @@ api.ImageImport buildImageImport() { o.encryption = buildEncryption(); o.machineImageTargetDefaults = buildMachineImageTargetDetails(); o.name = 'foo'; - o.recentImageImportJobs = buildUnnamed36(); + o.recentImageImportJobs = buildUnnamed44(); } buildCounterImageImport--; return o; @@ -1729,44 +2033,44 @@ void checkImageImport(api.ImageImport o) { checkEncryption(o.encryption!); checkMachineImageTargetDetails(o.machineImageTargetDefaults!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed36(o.recentImageImportJobs!); + checkUnnamed44(o.recentImageImportJobs!); } buildCounterImageImport--; } -core.List buildUnnamed37() => ['foo', 'foo']; +core.List buildUnnamed45() => ['foo', 'foo']; -void checkUnnamed37(core.List o) { +void checkUnnamed45(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed38() => [buildStatus(), buildStatus()]; +core.List buildUnnamed46() => [buildStatus(), buildStatus()]; -void checkUnnamed38(core.List o) { +void checkUnnamed46(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkStatus(o[0]); checkStatus(o[1]); } -core.List buildUnnamed39() => [ +core.List buildUnnamed47() => [ buildImageImportStep(), buildImageImportStep(), ]; -void checkUnnamed39(core.List o) { +void checkUnnamed47(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkImageImportStep(o[0]); checkImageImportStep(o[1]); } -core.List buildUnnamed40() => [ +core.List buildUnnamed48() => [ buildMigrationWarning(), buildMigrationWarning(), ]; -void checkUnnamed40(core.List o) { +void checkUnnamed48(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMigrationWarning(o[0]); checkMigrationWarning(o[1]); @@ -1779,15 +2083,15 @@ api.ImageImportJob buildImageImportJob() { if (buildCounterImageImportJob < 3) { o.cloudStorageUri = 'foo'; o.createTime = 'foo'; - o.createdResources = buildUnnamed37(); + o.createdResources = buildUnnamed45(); o.diskImageTargetDetails = buildDiskImageTargetDetails(); o.endTime = 'foo'; - o.errors = buildUnnamed38(); + o.errors = buildUnnamed46(); o.machineImageTargetDetails = buildMachineImageTargetDetails(); o.name = 'foo'; o.state = 'foo'; - o.steps = buildUnnamed39(); - o.warnings = buildUnnamed40(); + o.steps = buildUnnamed47(); + o.warnings = buildUnnamed48(); } buildCounterImageImportJob--; return o; @@ -1798,24 +2102,36 @@ void checkImageImportJob(api.ImageImportJob o) { if (buildCounterImageImportJob < 3) { unittest.expect(o.cloudStorageUri!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); - checkUnnamed37(o.createdResources!); + checkUnnamed45(o.createdResources!); checkDiskImageTargetDetails(o.diskImageTargetDetails!); unittest.expect(o.endTime!, unittest.equals('foo')); - checkUnnamed38(o.errors!); + checkUnnamed46(o.errors!); checkMachineImageTargetDetails(o.machineImageTargetDetails!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); - checkUnnamed39(o.steps!); - checkUnnamed40(o.warnings!); + checkUnnamed47(o.steps!); + checkUnnamed48(o.warnings!); } buildCounterImageImportJob--; } +core.List buildUnnamed49() => [ + buildAdaptationModifier(), + buildAdaptationModifier(), +]; + +void checkUnnamed49(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkAdaptationModifier(o[0]); + checkAdaptationModifier(o[1]); +} + core.int buildCounterImageImportOsAdaptationParameters = 0; api.ImageImportOsAdaptationParameters buildImageImportOsAdaptationParameters() { final o = api.ImageImportOsAdaptationParameters(); buildCounterImageImportOsAdaptationParameters++; if (buildCounterImageImportOsAdaptationParameters < 3) { + o.adaptationModifiers = buildUnnamed49(); o.bootConversion = 'foo'; o.generalize = true; o.licenseType = 'foo'; @@ -1829,6 +2145,7 @@ void checkImageImportOsAdaptationParameters( ) { buildCounterImageImportOsAdaptationParameters++; if (buildCounterImageImportOsAdaptationParameters < 3) { + checkUnnamed49(o.adaptationModifiers!); unittest.expect(o.bootConversion!, unittest.equals('foo')); unittest.expect(o.generalize!, unittest.isTrue); unittest.expect(o.licenseType!, unittest.equals('foo')); @@ -1931,17 +2248,17 @@ void checkLink(api.Link o) { buildCounterLink--; } -core.List buildUnnamed41() => [buildCloneJob(), buildCloneJob()]; +core.List buildUnnamed50() => [buildCloneJob(), buildCloneJob()]; -void checkUnnamed41(core.List o) { +void checkUnnamed50(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCloneJob(o[0]); checkCloneJob(o[1]); } -core.List buildUnnamed42() => ['foo', 'foo']; +core.List buildUnnamed51() => ['foo', 'foo']; -void checkUnnamed42(core.List o) { +void checkUnnamed51(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1952,9 +2269,9 @@ api.ListCloneJobsResponse buildListCloneJobsResponse() { final o = api.ListCloneJobsResponse(); buildCounterListCloneJobsResponse++; if (buildCounterListCloneJobsResponse < 3) { - o.cloneJobs = buildUnnamed41(); + o.cloneJobs = buildUnnamed50(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed42(); + o.unreachable = buildUnnamed51(); } buildCounterListCloneJobsResponse--; return o; @@ -1963,27 +2280,27 @@ api.ListCloneJobsResponse buildListCloneJobsResponse() { void checkListCloneJobsResponse(api.ListCloneJobsResponse o) { buildCounterListCloneJobsResponse++; if (buildCounterListCloneJobsResponse < 3) { - checkUnnamed41(o.cloneJobs!); + checkUnnamed50(o.cloneJobs!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed42(o.unreachable!); + checkUnnamed51(o.unreachable!); } buildCounterListCloneJobsResponse--; } -core.List buildUnnamed43() => [ +core.List buildUnnamed52() => [ buildCutoverJob(), buildCutoverJob(), ]; -void checkUnnamed43(core.List o) { +void checkUnnamed52(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCutoverJob(o[0]); checkCutoverJob(o[1]); } -core.List buildUnnamed44() => ['foo', 'foo']; +core.List buildUnnamed53() => ['foo', 'foo']; -void checkUnnamed44(core.List o) { +void checkUnnamed53(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1994,9 +2311,9 @@ api.ListCutoverJobsResponse buildListCutoverJobsResponse() { final o = api.ListCutoverJobsResponse(); buildCounterListCutoverJobsResponse++; if (buildCounterListCutoverJobsResponse < 3) { - o.cutoverJobs = buildUnnamed43(); + o.cutoverJobs = buildUnnamed52(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed44(); + o.unreachable = buildUnnamed53(); } buildCounterListCutoverJobsResponse--; return o; @@ -2005,27 +2322,27 @@ api.ListCutoverJobsResponse buildListCutoverJobsResponse() { void checkListCutoverJobsResponse(api.ListCutoverJobsResponse o) { buildCounterListCutoverJobsResponse++; if (buildCounterListCutoverJobsResponse < 3) { - checkUnnamed43(o.cutoverJobs!); + checkUnnamed52(o.cutoverJobs!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed44(o.unreachable!); + checkUnnamed53(o.unreachable!); } buildCounterListCutoverJobsResponse--; } -core.List buildUnnamed45() => [ +core.List buildUnnamed54() => [ buildDatacenterConnector(), buildDatacenterConnector(), ]; -void checkUnnamed45(core.List o) { +void checkUnnamed54(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDatacenterConnector(o[0]); checkDatacenterConnector(o[1]); } -core.List buildUnnamed46() => ['foo', 'foo']; +core.List buildUnnamed55() => ['foo', 'foo']; -void checkUnnamed46(core.List o) { +void checkUnnamed55(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2036,9 +2353,9 @@ api.ListDatacenterConnectorsResponse buildListDatacenterConnectorsResponse() { final o = api.ListDatacenterConnectorsResponse(); buildCounterListDatacenterConnectorsResponse++; if (buildCounterListDatacenterConnectorsResponse < 3) { - o.datacenterConnectors = buildUnnamed45(); + o.datacenterConnectors = buildUnnamed54(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed46(); + o.unreachable = buildUnnamed55(); } buildCounterListDatacenterConnectorsResponse--; return o; @@ -2049,24 +2366,66 @@ void checkListDatacenterConnectorsResponse( ) { buildCounterListDatacenterConnectorsResponse++; if (buildCounterListDatacenterConnectorsResponse < 3) { - checkUnnamed45(o.datacenterConnectors!); + checkUnnamed54(o.datacenterConnectors!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed46(o.unreachable!); + checkUnnamed55(o.unreachable!); } buildCounterListDatacenterConnectorsResponse--; } -core.List buildUnnamed47() => [buildGroup(), buildGroup()]; +core.List buildUnnamed56() => [ + buildDiskMigrationJob(), + buildDiskMigrationJob(), +]; + +void checkUnnamed56(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkDiskMigrationJob(o[0]); + checkDiskMigrationJob(o[1]); +} + +core.List buildUnnamed57() => ['foo', 'foo']; + +void checkUnnamed57(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterListDiskMigrationJobsResponse = 0; +api.ListDiskMigrationJobsResponse buildListDiskMigrationJobsResponse() { + final o = api.ListDiskMigrationJobsResponse(); + buildCounterListDiskMigrationJobsResponse++; + if (buildCounterListDiskMigrationJobsResponse < 3) { + o.diskMigrationJobs = buildUnnamed56(); + o.nextPageToken = 'foo'; + o.unreachable = buildUnnamed57(); + } + buildCounterListDiskMigrationJobsResponse--; + return o; +} + +void checkListDiskMigrationJobsResponse(api.ListDiskMigrationJobsResponse o) { + buildCounterListDiskMigrationJobsResponse++; + if (buildCounterListDiskMigrationJobsResponse < 3) { + checkUnnamed56(o.diskMigrationJobs!); + unittest.expect(o.nextPageToken!, unittest.equals('foo')); + checkUnnamed57(o.unreachable!); + } + buildCounterListDiskMigrationJobsResponse--; +} + +core.List buildUnnamed58() => [buildGroup(), buildGroup()]; -void checkUnnamed47(core.List o) { +void checkUnnamed58(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); } -core.List buildUnnamed48() => ['foo', 'foo']; +core.List buildUnnamed59() => ['foo', 'foo']; -void checkUnnamed48(core.List o) { +void checkUnnamed59(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2077,9 +2436,9 @@ api.ListGroupsResponse buildListGroupsResponse() { final o = api.ListGroupsResponse(); buildCounterListGroupsResponse++; if (buildCounterListGroupsResponse < 3) { - o.groups = buildUnnamed47(); + o.groups = buildUnnamed58(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed48(); + o.unreachable = buildUnnamed59(); } buildCounterListGroupsResponse--; return o; @@ -2088,27 +2447,27 @@ api.ListGroupsResponse buildListGroupsResponse() { void checkListGroupsResponse(api.ListGroupsResponse o) { buildCounterListGroupsResponse++; if (buildCounterListGroupsResponse < 3) { - checkUnnamed47(o.groups!); + checkUnnamed58(o.groups!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed48(o.unreachable!); + checkUnnamed59(o.unreachable!); } buildCounterListGroupsResponse--; } -core.List buildUnnamed49() => [ +core.List buildUnnamed60() => [ buildImageImportJob(), buildImageImportJob(), ]; -void checkUnnamed49(core.List o) { +void checkUnnamed60(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkImageImportJob(o[0]); checkImageImportJob(o[1]); } -core.List buildUnnamed50() => ['foo', 'foo']; +core.List buildUnnamed61() => ['foo', 'foo']; -void checkUnnamed50(core.List o) { +void checkUnnamed61(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2119,9 +2478,9 @@ api.ListImageImportJobsResponse buildListImageImportJobsResponse() { final o = api.ListImageImportJobsResponse(); buildCounterListImageImportJobsResponse++; if (buildCounterListImageImportJobsResponse < 3) { - o.imageImportJobs = buildUnnamed49(); + o.imageImportJobs = buildUnnamed60(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed50(); + o.unreachable = buildUnnamed61(); } buildCounterListImageImportJobsResponse--; return o; @@ -2130,27 +2489,27 @@ api.ListImageImportJobsResponse buildListImageImportJobsResponse() { void checkListImageImportJobsResponse(api.ListImageImportJobsResponse o) { buildCounterListImageImportJobsResponse++; if (buildCounterListImageImportJobsResponse < 3) { - checkUnnamed49(o.imageImportJobs!); + checkUnnamed60(o.imageImportJobs!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed50(o.unreachable!); + checkUnnamed61(o.unreachable!); } buildCounterListImageImportJobsResponse--; } -core.List buildUnnamed51() => [ +core.List buildUnnamed62() => [ buildImageImport(), buildImageImport(), ]; -void checkUnnamed51(core.List o) { +void checkUnnamed62(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkImageImport(o[0]); checkImageImport(o[1]); } -core.List buildUnnamed52() => ['foo', 'foo']; +core.List buildUnnamed63() => ['foo', 'foo']; -void checkUnnamed52(core.List o) { +void checkUnnamed63(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2161,9 +2520,9 @@ api.ListImageImportsResponse buildListImageImportsResponse() { final o = api.ListImageImportsResponse(); buildCounterListImageImportsResponse++; if (buildCounterListImageImportsResponse < 3) { - o.imageImports = buildUnnamed51(); + o.imageImports = buildUnnamed62(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed52(); + o.unreachable = buildUnnamed63(); } buildCounterListImageImportsResponse--; return o; @@ -2172,16 +2531,16 @@ api.ListImageImportsResponse buildListImageImportsResponse() { void checkListImageImportsResponse(api.ListImageImportsResponse o) { buildCounterListImageImportsResponse++; if (buildCounterListImageImportsResponse < 3) { - checkUnnamed51(o.imageImports!); + checkUnnamed62(o.imageImports!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed52(o.unreachable!); + checkUnnamed63(o.unreachable!); } buildCounterListImageImportsResponse--; } -core.List buildUnnamed53() => [buildLocation(), buildLocation()]; +core.List buildUnnamed64() => [buildLocation(), buildLocation()]; -void checkUnnamed53(core.List o) { +void checkUnnamed64(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -2192,7 +2551,7 @@ api.ListLocationsResponse buildListLocationsResponse() { final o = api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed53(); + o.locations = buildUnnamed64(); o.nextPageToken = 'foo'; } buildCounterListLocationsResponse--; @@ -2202,26 +2561,26 @@ api.ListLocationsResponse buildListLocationsResponse() { void checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed53(o.locations!); + checkUnnamed64(o.locations!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -core.List buildUnnamed54() => [ +core.List buildUnnamed65() => [ buildMigratingVm(), buildMigratingVm(), ]; -void checkUnnamed54(core.List o) { +void checkUnnamed65(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMigratingVm(o[0]); checkMigratingVm(o[1]); } -core.List buildUnnamed55() => ['foo', 'foo']; +core.List buildUnnamed66() => ['foo', 'foo']; -void checkUnnamed55(core.List o) { +void checkUnnamed66(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2232,9 +2591,9 @@ api.ListMigratingVmsResponse buildListMigratingVmsResponse() { final o = api.ListMigratingVmsResponse(); buildCounterListMigratingVmsResponse++; if (buildCounterListMigratingVmsResponse < 3) { - o.migratingVms = buildUnnamed54(); + o.migratingVms = buildUnnamed65(); o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed55(); + o.unreachable = buildUnnamed66(); } buildCounterListMigratingVmsResponse--; return o; @@ -2243,19 +2602,19 @@ api.ListMigratingVmsResponse buildListMigratingVmsResponse() { void checkListMigratingVmsResponse(api.ListMigratingVmsResponse o) { buildCounterListMigratingVmsResponse++; if (buildCounterListMigratingVmsResponse < 3) { - checkUnnamed54(o.migratingVms!); + checkUnnamed65(o.migratingVms!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed55(o.unreachable!); + checkUnnamed66(o.unreachable!); } buildCounterListMigratingVmsResponse--; } -core.List buildUnnamed56() => [ +core.List buildUnnamed67() => [ buildOperation(), buildOperation(), ]; -void checkUnnamed56(core.List o) { +void checkUnnamed67(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -2267,7 +2626,7 @@ api.ListOperationsResponse buildListOperationsResponse() { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = 'foo'; - o.operations = buildUnnamed56(); + o.operations = buildUnnamed67(); } buildCounterListOperationsResponse--; return o; @@ -2277,25 +2636,25 @@ void checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed56(o.operations!); + checkUnnamed67(o.operations!); } buildCounterListOperationsResponse--; } -core.List buildUnnamed57() => [ +core.List buildUnnamed68() => [ buildReplicationCycle(), buildReplicationCycle(), ]; -void checkUnnamed57(core.List o) { +void checkUnnamed68(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkReplicationCycle(o[0]); checkReplicationCycle(o[1]); } -core.List buildUnnamed58() => ['foo', 'foo']; +core.List buildUnnamed69() => ['foo', 'foo']; -void checkUnnamed58(core.List o) { +void checkUnnamed69(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2307,8 +2666,8 @@ api.ListReplicationCyclesResponse buildListReplicationCyclesResponse() { buildCounterListReplicationCyclesResponse++; if (buildCounterListReplicationCyclesResponse < 3) { o.nextPageToken = 'foo'; - o.replicationCycles = buildUnnamed57(); - o.unreachable = buildUnnamed58(); + o.replicationCycles = buildUnnamed68(); + o.unreachable = buildUnnamed69(); } buildCounterListReplicationCyclesResponse--; return o; @@ -2318,23 +2677,23 @@ void checkListReplicationCyclesResponse(api.ListReplicationCyclesResponse o) { buildCounterListReplicationCyclesResponse++; if (buildCounterListReplicationCyclesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed57(o.replicationCycles!); - checkUnnamed58(o.unreachable!); + checkUnnamed68(o.replicationCycles!); + checkUnnamed69(o.unreachable!); } buildCounterListReplicationCyclesResponse--; } -core.List buildUnnamed59() => [buildSource(), buildSource()]; +core.List buildUnnamed70() => [buildSource(), buildSource()]; -void checkUnnamed59(core.List o) { +void checkUnnamed70(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); } -core.List buildUnnamed60() => ['foo', 'foo']; +core.List buildUnnamed71() => ['foo', 'foo']; -void checkUnnamed60(core.List o) { +void checkUnnamed71(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2346,8 +2705,8 @@ api.ListSourcesResponse buildListSourcesResponse() { buildCounterListSourcesResponse++; if (buildCounterListSourcesResponse < 3) { o.nextPageToken = 'foo'; - o.sources = buildUnnamed59(); - o.unreachable = buildUnnamed60(); + o.sources = buildUnnamed70(); + o.unreachable = buildUnnamed71(); } buildCounterListSourcesResponse--; return o; @@ -2357,26 +2716,26 @@ void checkListSourcesResponse(api.ListSourcesResponse o) { buildCounterListSourcesResponse++; if (buildCounterListSourcesResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed59(o.sources!); - checkUnnamed60(o.unreachable!); + checkUnnamed70(o.sources!); + checkUnnamed71(o.unreachable!); } buildCounterListSourcesResponse--; } -core.List buildUnnamed61() => [ +core.List buildUnnamed72() => [ buildTargetProject(), buildTargetProject(), ]; -void checkUnnamed61(core.List o) { +void checkUnnamed72(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTargetProject(o[0]); checkTargetProject(o[1]); } -core.List buildUnnamed62() => ['foo', 'foo']; +core.List buildUnnamed73() => ['foo', 'foo']; -void checkUnnamed62(core.List o) { +void checkUnnamed73(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2388,8 +2747,8 @@ api.ListTargetProjectsResponse buildListTargetProjectsResponse() { buildCounterListTargetProjectsResponse++; if (buildCounterListTargetProjectsResponse < 3) { o.nextPageToken = 'foo'; - o.targetProjects = buildUnnamed61(); - o.unreachable = buildUnnamed62(); + o.targetProjects = buildUnnamed72(); + o.unreachable = buildUnnamed73(); } buildCounterListTargetProjectsResponse--; return o; @@ -2399,26 +2758,26 @@ void checkListTargetProjectsResponse(api.ListTargetProjectsResponse o) { buildCounterListTargetProjectsResponse++; if (buildCounterListTargetProjectsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed61(o.targetProjects!); - checkUnnamed62(o.unreachable!); + checkUnnamed72(o.targetProjects!); + checkUnnamed73(o.unreachable!); } buildCounterListTargetProjectsResponse--; } -core.List buildUnnamed63() => ['foo', 'foo']; +core.List buildUnnamed74() => ['foo', 'foo']; -void checkUnnamed63(core.List o) { +void checkUnnamed74(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed64() => [ +core.List buildUnnamed75() => [ buildUtilizationReport(), buildUtilizationReport(), ]; -void checkUnnamed64(core.List o) { +void checkUnnamed75(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkUtilizationReport(o[0]); checkUtilizationReport(o[1]); @@ -2430,8 +2789,8 @@ api.ListUtilizationReportsResponse buildListUtilizationReportsResponse() { buildCounterListUtilizationReportsResponse++; if (buildCounterListUtilizationReportsResponse < 3) { o.nextPageToken = 'foo'; - o.unreachable = buildUnnamed63(); - o.utilizationReports = buildUnnamed64(); + o.unreachable = buildUnnamed74(); + o.utilizationReports = buildUnnamed75(); } buildCounterListUtilizationReportsResponse--; return o; @@ -2441,8 +2800,8 @@ void checkListUtilizationReportsResponse(api.ListUtilizationReportsResponse o) { buildCounterListUtilizationReportsResponse++; if (buildCounterListUtilizationReportsResponse < 3) { unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed63(o.unreachable!); - checkUnnamed64(o.utilizationReports!); + checkUnnamed74(o.unreachable!); + checkUnnamed75(o.utilizationReports!); } buildCounterListUtilizationReportsResponse--; } @@ -2483,15 +2842,15 @@ void checkLocalizedMessage(api.LocalizedMessage o) { buildCounterLocalizedMessage--; } -core.Map buildUnnamed65() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed76() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed65(core.Map o) { +void checkUnnamed76(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.Map buildUnnamed66() => { +core.Map buildUnnamed77() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2504,7 +2863,7 @@ core.Map buildUnnamed66() => { }, }; -void checkUnnamed66(core.Map o) { +void checkUnnamed77(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o['x']!) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -2524,9 +2883,9 @@ api.Location buildLocation() { buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = 'foo'; - o.labels = buildUnnamed65(); + o.labels = buildUnnamed76(); o.locationId = 'foo'; - o.metadata = buildUnnamed66(); + o.metadata = buildUnnamed77(); o.name = 'foo'; } buildCounterLocation--; @@ -2537,9 +2896,9 @@ void checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed65(o.labels!); + checkUnnamed76(o.labels!); unittest.expect(o.locationId!, unittest.equals('foo')); - checkUnnamed66(o.metadata!); + checkUnnamed77(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); } buildCounterLocation--; @@ -2566,36 +2925,36 @@ void checkMachineImageParametersOverrides( buildCounterMachineImageParametersOverrides--; } -core.List buildUnnamed67() => ['foo', 'foo']; +core.List buildUnnamed78() => ['foo', 'foo']; -void checkUnnamed67(core.List o) { +void checkUnnamed78(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed68() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed79() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed68(core.Map o) { +void checkUnnamed79(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed69() => [ +core.List buildUnnamed80() => [ buildNetworkInterface(), buildNetworkInterface(), ]; -void checkUnnamed69(core.List o) { +void checkUnnamed80(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -core.List buildUnnamed70() => ['foo', 'foo']; +core.List buildUnnamed81() => ['foo', 'foo']; -void checkUnnamed70(core.List o) { +void checkUnnamed81(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2606,19 +2965,19 @@ api.MachineImageTargetDetails buildMachineImageTargetDetails() { final o = api.MachineImageTargetDetails(); buildCounterMachineImageTargetDetails++; if (buildCounterMachineImageTargetDetails < 3) { - o.additionalLicenses = buildUnnamed67(); + o.additionalLicenses = buildUnnamed78(); o.description = 'foo'; o.encryption = buildEncryption(); - o.labels = buildUnnamed68(); + o.labels = buildUnnamed79(); o.machineImageName = 'foo'; o.machineImageParametersOverrides = buildMachineImageParametersOverrides(); - o.networkInterfaces = buildUnnamed69(); + o.networkInterfaces = buildUnnamed80(); o.osAdaptationParameters = buildImageImportOsAdaptationParameters(); o.serviceAccount = buildServiceAccount(); o.shieldedInstanceConfig = buildShieldedInstanceConfig(); o.singleRegionStorage = true; o.skipOsAdaptation = buildSkipOsAdaptation(); - o.tags = buildUnnamed70(); + o.tags = buildUnnamed81(); o.targetProject = 'foo'; } buildCounterMachineImageTargetDetails--; @@ -2628,46 +2987,46 @@ api.MachineImageTargetDetails buildMachineImageTargetDetails() { void checkMachineImageTargetDetails(api.MachineImageTargetDetails o) { buildCounterMachineImageTargetDetails++; if (buildCounterMachineImageTargetDetails < 3) { - checkUnnamed67(o.additionalLicenses!); + checkUnnamed78(o.additionalLicenses!); unittest.expect(o.description!, unittest.equals('foo')); checkEncryption(o.encryption!); - checkUnnamed68(o.labels!); + checkUnnamed79(o.labels!); unittest.expect(o.machineImageName!, unittest.equals('foo')); checkMachineImageParametersOverrides(o.machineImageParametersOverrides!); - checkUnnamed69(o.networkInterfaces!); + checkUnnamed80(o.networkInterfaces!); checkImageImportOsAdaptationParameters(o.osAdaptationParameters!); checkServiceAccount(o.serviceAccount!); checkShieldedInstanceConfig(o.shieldedInstanceConfig!); unittest.expect(o.singleRegionStorage!, unittest.isTrue); checkSkipOsAdaptation(o.skipOsAdaptation!); - checkUnnamed70(o.tags!); + checkUnnamed81(o.tags!); unittest.expect(o.targetProject!, unittest.equals('foo')); } buildCounterMachineImageTargetDetails--; } -core.Map buildUnnamed71() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed82() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed71(core.Map o) { +void checkUnnamed82(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed72() => [buildCloneJob(), buildCloneJob()]; +core.List buildUnnamed83() => [buildCloneJob(), buildCloneJob()]; -void checkUnnamed72(core.List o) { +void checkUnnamed83(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCloneJob(o[0]); checkCloneJob(o[1]); } -core.List buildUnnamed73() => [ +core.List buildUnnamed84() => [ buildCutoverJob(), buildCutoverJob(), ]; -void checkUnnamed73(core.List o) { +void checkUnnamed84(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCutoverJob(o[0]); checkCutoverJob(o[1]); @@ -2691,13 +3050,13 @@ api.MigratingVm buildMigratingVm() { o.error = buildStatus(); o.expiration = buildExpiration(); o.group = 'foo'; - o.labels = buildUnnamed71(); + o.labels = buildUnnamed82(); o.lastReplicationCycle = buildReplicationCycle(); o.lastSync = buildReplicationSync(); o.name = 'foo'; o.policy = buildSchedulePolicy(); - o.recentCloneJobs = buildUnnamed72(); - o.recentCutoverJobs = buildUnnamed73(); + o.recentCloneJobs = buildUnnamed83(); + o.recentCutoverJobs = buildUnnamed84(); o.sourceVmId = 'foo'; o.state = 'foo'; o.stateTime = 'foo'; @@ -2723,13 +3082,13 @@ void checkMigratingVm(api.MigratingVm o) { checkStatus(o.error!); checkExpiration(o.expiration!); unittest.expect(o.group!, unittest.equals('foo')); - checkUnnamed71(o.labels!); + checkUnnamed82(o.labels!); checkReplicationCycle(o.lastReplicationCycle!); checkReplicationSync(o.lastSync!); unittest.expect(o.name!, unittest.equals('foo')); checkSchedulePolicy(o.policy!); - checkUnnamed72(o.recentCloneJobs!); - checkUnnamed73(o.recentCutoverJobs!); + checkUnnamed83(o.recentCloneJobs!); + checkUnnamed84(o.recentCutoverJobs!); unittest.expect(o.sourceVmId!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); unittest.expect(o.stateTime!, unittest.equals('foo')); @@ -2739,9 +3098,9 @@ void checkMigratingVm(api.MigratingVm o) { buildCounterMigratingVm--; } -core.List buildUnnamed74() => [buildLink(), buildLink()]; +core.List buildUnnamed85() => [buildLink(), buildLink()]; -void checkUnnamed74(core.List o) { +void checkUnnamed85(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkLink(o[0]); checkLink(o[1]); @@ -2754,7 +3113,7 @@ api.MigrationWarning buildMigrationWarning() { if (buildCounterMigrationWarning < 3) { o.actionItem = buildLocalizedMessage(); o.code = 'foo'; - o.helpLinks = buildUnnamed74(); + o.helpLinks = buildUnnamed85(); o.warningMessage = buildLocalizedMessage(); o.warningTime = 'foo'; } @@ -2767,7 +3126,7 @@ void checkMigrationWarning(api.MigrationWarning o) { if (buildCounterMigrationWarning < 3) { checkLocalizedMessage(o.actionItem!); unittest.expect(o.code!, unittest.equals('foo')); - checkUnnamed74(o.helpLinks!); + checkUnnamed85(o.helpLinks!); checkLocalizedMessage(o.warningMessage!); unittest.expect(o.warningTime!, unittest.equals('foo')); } @@ -2849,7 +3208,7 @@ void checkOSDisk(api.OSDisk o) { buildCounterOSDisk--; } -core.Map buildUnnamed75() => { +core.Map buildUnnamed86() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2862,7 +3221,7 @@ core.Map buildUnnamed75() => { }, }; -void checkUnnamed75(core.Map o) { +void checkUnnamed86(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o['x']!) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -2876,7 +3235,7 @@ void checkUnnamed75(core.Map o) { unittest.expect(casted4['string'], unittest.equals('foo')); } -core.Map buildUnnamed76() => { +core.Map buildUnnamed87() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2889,7 +3248,7 @@ core.Map buildUnnamed76() => { }, }; -void checkUnnamed76(core.Map o) { +void checkUnnamed87(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o['x']!) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -2910,9 +3269,9 @@ api.Operation buildOperation() { if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed75(); + o.metadata = buildUnnamed86(); o.name = 'foo'; - o.response = buildUnnamed76(); + o.response = buildUnnamed87(); } buildCounterOperation--; return o; @@ -2923,9 +3282,9 @@ void checkOperation(api.Operation o) { if (buildCounterOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkStatus(o.error!); - checkUnnamed75(o.metadata!); + checkUnnamed86(o.metadata!); unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed76(o.response!); + checkUnnamed87(o.response!); } buildCounterOperation--; } @@ -2966,9 +3325,9 @@ void checkPersistentDisk(api.PersistentDisk o) { buildCounterPersistentDisk--; } -core.Map buildUnnamed77() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed88() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed77(core.Map o) { +void checkUnnamed88(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2979,7 +3338,7 @@ api.PersistentDiskDefaults buildPersistentDiskDefaults() { final o = api.PersistentDiskDefaults(); buildCounterPersistentDiskDefaults++; if (buildCounterPersistentDiskDefaults < 3) { - o.additionalLabels = buildUnnamed77(); + o.additionalLabels = buildUnnamed88(); o.diskName = 'foo'; o.diskType = 'foo'; o.encryption = buildEncryption(); @@ -2993,7 +3352,7 @@ api.PersistentDiskDefaults buildPersistentDiskDefaults() { void checkPersistentDiskDefaults(api.PersistentDiskDefaults o) { buildCounterPersistentDiskDefaults++; if (buildCounterPersistentDiskDefaults < 3) { - checkUnnamed77(o.additionalLabels!); + checkUnnamed88(o.additionalLabels!); unittest.expect(o.diskName!, unittest.equals('foo')); unittest.expect(o.diskType!, unittest.equals('foo')); checkEncryption(o.encryption!); @@ -3033,6 +3392,21 @@ void checkPreparingVMDisksStep(api.PreparingVMDisksStep o) { buildCounterPreparingVMDisksStep--; } +core.int buildCounterProvisioningTargetDiskStep = 0; +api.ProvisioningTargetDiskStep buildProvisioningTargetDiskStep() { + final o = api.ProvisioningTargetDiskStep(); + buildCounterProvisioningTargetDiskStep++; + if (buildCounterProvisioningTargetDiskStep < 3) {} + buildCounterProvisioningTargetDiskStep--; + return o; +} + +void checkProvisioningTargetDiskStep(api.ProvisioningTargetDiskStep o) { + buildCounterProvisioningTargetDiskStep++; + if (buildCounterProvisioningTargetDiskStep < 3) {} + buildCounterProvisioningTargetDiskStep--; +} + core.int buildCounterRemoveGroupMigrationRequest = 0; api.RemoveGroupMigrationRequest buildRemoveGroupMigrationRequest() { final o = api.RemoveGroupMigrationRequest(); @@ -3083,23 +3457,23 @@ void checkReplicatingStep(api.ReplicatingStep o) { buildCounterReplicatingStep--; } -core.List buildUnnamed78() => [ +core.List buildUnnamed89() => [ buildCycleStep(), buildCycleStep(), ]; -void checkUnnamed78(core.List o) { +void checkUnnamed89(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkCycleStep(o[0]); checkCycleStep(o[1]); } -core.List buildUnnamed79() => [ +core.List buildUnnamed90() => [ buildMigrationWarning(), buildMigrationWarning(), ]; -void checkUnnamed79(core.List o) { +void checkUnnamed90(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkMigrationWarning(o[0]); checkMigrationWarning(o[1]); @@ -3117,9 +3491,9 @@ api.ReplicationCycle buildReplicationCycle() { o.progressPercent = 42; o.startTime = 'foo'; o.state = 'foo'; - o.steps = buildUnnamed78(); + o.steps = buildUnnamed89(); o.totalPauseDuration = 'foo'; - o.warnings = buildUnnamed79(); + o.warnings = buildUnnamed90(); } buildCounterReplicationCycle--; return o; @@ -3135,9 +3509,9 @@ void checkReplicationCycle(api.ReplicationCycle o) { unittest.expect(o.progressPercent!, unittest.equals(42)); unittest.expect(o.startTime!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); - checkUnnamed78(o.steps!); + checkUnnamed89(o.steps!); unittest.expect(o.totalPauseDuration!, unittest.equals('foo')); - checkUnnamed79(o.warnings!); + checkUnnamed90(o.warnings!); } buildCounterReplicationCycle--; } @@ -3176,6 +3550,21 @@ void checkResumeMigrationRequest(api.ResumeMigrationRequest o) { buildCounterResumeMigrationRequest--; } +core.int buildCounterRunDiskMigrationJobRequest = 0; +api.RunDiskMigrationJobRequest buildRunDiskMigrationJobRequest() { + final o = api.RunDiskMigrationJobRequest(); + buildCounterRunDiskMigrationJobRequest++; + if (buildCounterRunDiskMigrationJobRequest < 3) {} + buildCounterRunDiskMigrationJobRequest--; + return o; +} + +void checkRunDiskMigrationJobRequest(api.RunDiskMigrationJobRequest o) { + buildCounterRunDiskMigrationJobRequest++; + if (buildCounterRunDiskMigrationJobRequest < 3) {} + buildCounterRunDiskMigrationJobRequest--; +} + core.int buildCounterSchedulePolicy = 0; api.SchedulePolicy buildSchedulePolicy() { final o = api.SchedulePolicy(); @@ -3197,9 +3586,9 @@ void checkSchedulePolicy(api.SchedulePolicy o) { buildCounterSchedulePolicy--; } -core.List buildUnnamed80() => ['foo', 'foo']; +core.List buildUnnamed91() => ['foo', 'foo']; -void checkUnnamed80(core.List o) { +void checkUnnamed91(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3212,7 +3601,7 @@ api.SchedulingNodeAffinity buildSchedulingNodeAffinity() { if (buildCounterSchedulingNodeAffinity < 3) { o.key = 'foo'; o.operator = 'foo'; - o.values = buildUnnamed80(); + o.values = buildUnnamed91(); } buildCounterSchedulingNodeAffinity--; return o; @@ -3223,14 +3612,14 @@ void checkSchedulingNodeAffinity(api.SchedulingNodeAffinity o) { if (buildCounterSchedulingNodeAffinity < 3) { unittest.expect(o.key!, unittest.equals('foo')); unittest.expect(o.operator!, unittest.equals('foo')); - checkUnnamed80(o.values!); + checkUnnamed91(o.values!); } buildCounterSchedulingNodeAffinity--; } -core.List buildUnnamed81() => ['foo', 'foo']; +core.List buildUnnamed92() => ['foo', 'foo']; -void checkUnnamed81(core.List o) { +void checkUnnamed92(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3242,7 +3631,7 @@ api.ServiceAccount buildServiceAccount() { buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { o.email = 'foo'; - o.scopes = buildUnnamed81(); + o.scopes = buildUnnamed92(); } buildCounterServiceAccount--; return o; @@ -3252,7 +3641,7 @@ void checkServiceAccount(api.ServiceAccount o) { buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { unittest.expect(o.email!, unittest.equals('foo')); - checkUnnamed81(o.scopes!); + checkUnnamed92(o.scopes!); } buildCounterServiceAccount--; } @@ -3310,9 +3699,9 @@ void checkSkipOsAdaptation(api.SkipOsAdaptation o) { buildCounterSkipOsAdaptation--; } -core.Map buildUnnamed82() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed93() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed82(core.Map o) { +void checkUnnamed93(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -3328,7 +3717,7 @@ api.Source buildSource() { o.createTime = 'foo'; o.description = 'foo'; o.encryption = buildEncryption(); - o.labels = buildUnnamed82(); + o.labels = buildUnnamed93(); o.name = 'foo'; o.updateTime = 'foo'; o.vmware = buildVmwareSourceDetails(); @@ -3345,7 +3734,7 @@ void checkSource(api.Source o) { unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.description!, unittest.equals('foo')); checkEncryption(o.encryption!); - checkUnnamed82(o.labels!); + checkUnnamed93(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.updateTime!, unittest.equals('foo')); checkVmwareSourceDetails(o.vmware!); @@ -3353,6 +3742,25 @@ void checkSource(api.Source o) { buildCounterSource--; } +core.int buildCounterSourceStorageResource = 0; +api.SourceStorageResource buildSourceStorageResource() { + final o = api.SourceStorageResource(); + buildCounterSourceStorageResource++; + if (buildCounterSourceStorageResource < 3) { + o.awsDiskDetails = buildAwsSourceDiskDetails(); + } + buildCounterSourceStorageResource--; + return o; +} + +void checkSourceStorageResource(api.SourceStorageResource o) { + buildCounterSourceStorageResource++; + if (buildCounterSourceStorageResource < 3) { + checkAwsSourceDiskDetails(o.awsDiskDetails!); + } + buildCounterSourceStorageResource--; +} + core.int buildCounterStartMigrationRequest = 0; api.StartMigrationRequest buildStartMigrationRequest() { final o = api.StartMigrationRequest(); @@ -3368,7 +3776,7 @@ void checkStartMigrationRequest(api.StartMigrationRequest o) { buildCounterStartMigrationRequest--; } -core.Map buildUnnamed83() => { +core.Map buildUnnamed94() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -3381,7 +3789,7 @@ core.Map buildUnnamed83() => { }, }; -void checkUnnamed83(core.Map o) { +void checkUnnamed94(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o['x']!) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -3395,15 +3803,15 @@ void checkUnnamed83(core.Map o) { unittest.expect(casted8['string'], unittest.equals('foo')); } -core.List> buildUnnamed84() => [ - buildUnnamed83(), - buildUnnamed83(), +core.List> buildUnnamed95() => [ + buildUnnamed94(), + buildUnnamed94(), ]; -void checkUnnamed84(core.List> o) { +void checkUnnamed95(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed83(o[0]); - checkUnnamed83(o[1]); + checkUnnamed94(o[0]); + checkUnnamed94(o[1]); } core.int buildCounterStatus = 0; @@ -3412,7 +3820,7 @@ api.Status buildStatus() { buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed84(); + o.details = buildUnnamed95(); o.message = 'foo'; } buildCounterStatus--; @@ -3423,7 +3831,7 @@ void checkStatus(api.Status o) { buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed84(o.details!); + checkUnnamed95(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStatus--; @@ -3523,12 +3931,12 @@ void checkUpgradeStatus(api.UpgradeStatus o) { buildCounterUpgradeStatus--; } -core.List buildUnnamed85() => [ +core.List buildUnnamed96() => [ buildVmUtilizationInfo(), buildVmUtilizationInfo(), ]; -void checkUnnamed85(core.List o) { +void checkUnnamed96(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVmUtilizationInfo(o[0]); checkVmUtilizationInfo(o[1]); @@ -3548,7 +3956,7 @@ api.UtilizationReport buildUtilizationReport() { o.stateTime = 'foo'; o.timeFrame = 'foo'; o.vmCount = 42; - o.vms = buildUnnamed85(); + o.vms = buildUnnamed96(); } buildCounterUtilizationReport--; return o; @@ -3566,7 +3974,7 @@ void checkUtilizationReport(api.UtilizationReport o) { unittest.expect(o.stateTime!, unittest.equals('foo')); unittest.expect(o.timeFrame!, unittest.equals('foo')); unittest.expect(o.vmCount!, unittest.equals(42)); - checkUnnamed85(o.vms!); + checkUnnamed96(o.vms!); } buildCounterUtilizationReport--; } @@ -3590,9 +3998,9 @@ void checkVmAttachmentDetails(api.VmAttachmentDetails o) { buildCounterVmAttachmentDetails--; } -core.List buildUnnamed86() => ['foo', 'foo']; +core.List buildUnnamed97() => ['foo', 'foo']; -void checkUnnamed86(core.List o) { +void checkUnnamed97(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3604,7 +4012,7 @@ api.VmCapabilities buildVmCapabilities() { buildCounterVmCapabilities++; if (buildCounterVmCapabilities < 3) { o.lastOsCapabilitiesUpdateTime = 'foo'; - o.osCapabilities = buildUnnamed86(); + o.osCapabilities = buildUnnamed97(); } buildCounterVmCapabilities--; return o; @@ -3614,7 +4022,7 @@ void checkVmCapabilities(api.VmCapabilities o) { buildCounterVmCapabilities++; if (buildCounterVmCapabilities < 3) { unittest.expect(o.lastOsCapabilitiesUpdateTime!, unittest.equals('foo')); - checkUnnamed86(o.osCapabilities!); + checkUnnamed97(o.osCapabilities!); } buildCounterVmCapabilities--; } @@ -3725,12 +4133,12 @@ void checkVmwareSourceDetails(api.VmwareSourceDetails o) { buildCounterVmwareSourceDetails--; } -core.List buildUnnamed87() => [ +core.List buildUnnamed98() => [ buildVmwareDiskDetails(), buildVmwareDiskDetails(), ]; -void checkUnnamed87(core.List o) { +void checkUnnamed98(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVmwareDiskDetails(o[0]); checkVmwareDiskDetails(o[1]); @@ -3743,7 +4151,7 @@ api.VmwareSourceVmDetails buildVmwareSourceVmDetails() { if (buildCounterVmwareSourceVmDetails < 3) { o.architecture = 'foo'; o.committedStorageBytes = 'foo'; - o.disks = buildUnnamed87(); + o.disks = buildUnnamed98(); o.firmware = 'foo'; o.vmCapabilitiesInfo = buildVmCapabilities(); } @@ -3756,7 +4164,7 @@ void checkVmwareSourceVmDetails(api.VmwareSourceVmDetails o) { if (buildCounterVmwareSourceVmDetails < 3) { unittest.expect(o.architecture!, unittest.equals('foo')); unittest.expect(o.committedStorageBytes!, unittest.equals('foo')); - checkUnnamed87(o.disks!); + checkUnnamed98(o.disks!); unittest.expect(o.firmware!, unittest.equals('foo')); checkVmCapabilities(o.vmCapabilitiesInfo!); } @@ -3806,12 +4214,12 @@ void checkVmwareVmDetails(api.VmwareVmDetails o) { buildCounterVmwareVmDetails--; } -core.List buildUnnamed88() => [ +core.List buildUnnamed99() => [ buildVmwareVmDetails(), buildVmwareVmDetails(), ]; -void checkUnnamed88(core.List o) { +void checkUnnamed99(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkVmwareVmDetails(o[0]); checkVmwareVmDetails(o[1]); @@ -3822,7 +4230,7 @@ api.VmwareVmsDetails buildVmwareVmsDetails() { final o = api.VmwareVmsDetails(); buildCounterVmwareVmsDetails++; if (buildCounterVmwareVmsDetails < 3) { - o.details = buildUnnamed88(); + o.details = buildUnnamed99(); } buildCounterVmwareVmsDetails--; return o; @@ -3831,14 +4239,14 @@ api.VmwareVmsDetails buildVmwareVmsDetails() { void checkVmwareVmsDetails(api.VmwareVmsDetails o) { buildCounterVmwareVmsDetails++; if (buildCounterVmwareVmsDetails < 3) { - checkUnnamed88(o.details!); + checkUnnamed99(o.details!); } buildCounterVmwareVmsDetails--; } -core.List buildUnnamed89() => ['foo', 'foo']; +core.List buildUnnamed100() => ['foo', 'foo']; -void checkUnnamed89(core.List o) { +void checkUnnamed100(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3856,6 +4264,17 @@ void main() { }); }); + unittest.group('obj-schema-AdaptationModifier', () { + unittest.test('to-json--from-json', () async { + final o = buildAdaptationModifier(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.AdaptationModifier.fromJson( + oJson as core.Map, + ); + checkAdaptationModifier(od); + }); + }); + unittest.group('obj-schema-AdaptingOSStep', () { unittest.test('to-json--from-json', () async { final o = buildAdaptingOSStep(); @@ -3944,6 +4363,17 @@ void main() { }); }); + unittest.group('obj-schema-AwsSourceDiskDetails', () { + unittest.test('to-json--from-json', () async { + final o = buildAwsSourceDiskDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.AwsSourceDiskDetails.fromJson( + oJson as core.Map, + ); + checkAwsSourceDiskDetails(od); + }); + }); + unittest.group('obj-schema-AwsSourceVmDetails', () { unittest.test('to-json--from-json', () async { final o = buildAwsSourceVmDetails(); @@ -4065,6 +4495,17 @@ void main() { }); }); + unittest.group('obj-schema-CancelDiskMigrationJobRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildCancelDiskMigrationJobRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.CancelDiskMigrationJobRequest.fromJson( + oJson as core.Map, + ); + checkCancelDiskMigrationJobRequest(od); + }); + }); + unittest.group('obj-schema-CancelImageImportJobRequest', () { unittest.test('to-json--from-json', () async { final o = buildCancelImageImportJobRequest(); @@ -4120,6 +4561,17 @@ void main() { }); }); + unittest.group('obj-schema-ComputeEngineDisk', () { + unittest.test('to-json--from-json', () async { + final o = buildComputeEngineDisk(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ComputeEngineDisk.fromJson( + oJson as core.Map, + ); + checkComputeEngineDisk(od); + }); + }); + unittest.group('obj-schema-ComputeEngineDisksTargetDefaults', () { unittest.test('to-json--from-json', () async { final o = buildComputeEngineDisksTargetDefaults(); @@ -4175,18 +4627,40 @@ void main() { }); }); - unittest.group('obj-schema-CreatingImageStep', () { + unittest.group('obj-schema-CopyingSourceDiskSnapshotStep', () { unittest.test('to-json--from-json', () async { - final o = buildCreatingImageStep(); + final o = buildCopyingSourceDiskSnapshotStep(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.CreatingImageStep.fromJson( + final od = api.CopyingSourceDiskSnapshotStep.fromJson( oJson as core.Map, ); - checkCreatingImageStep(od); + checkCopyingSourceDiskSnapshotStep(od); }); }); - unittest.group('obj-schema-CutoverForecast', () { + unittest.group('obj-schema-CreatingImageStep', () { + unittest.test('to-json--from-json', () async { + final o = buildCreatingImageStep(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.CreatingImageStep.fromJson( + oJson as core.Map, + ); + checkCreatingImageStep(od); + }); + }); + + unittest.group('obj-schema-CreatingSourceDiskSnapshotStep', () { + unittest.test('to-json--from-json', () async { + final o = buildCreatingSourceDiskSnapshotStep(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.CreatingSourceDiskSnapshotStep.fromJson( + oJson as core.Map, + ); + checkCreatingSourceDiskSnapshotStep(od); + }); + }); + + unittest.group('obj-schema-CutoverForecast', () { unittest.test('to-json--from-json', () async { final o = buildCutoverForecast(); final oJson = convert.jsonDecode(convert.jsonEncode(o)); @@ -4285,6 +4759,39 @@ void main() { }); }); + unittest.group('obj-schema-DiskMigrationJob', () { + unittest.test('to-json--from-json', () async { + final o = buildDiskMigrationJob(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.DiskMigrationJob.fromJson( + oJson as core.Map, + ); + checkDiskMigrationJob(od); + }); + }); + + unittest.group('obj-schema-DiskMigrationJobTargetDetails', () { + unittest.test('to-json--from-json', () async { + final o = buildDiskMigrationJobTargetDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.DiskMigrationJobTargetDetails.fromJson( + oJson as core.Map, + ); + checkDiskMigrationJobTargetDetails(od); + }); + }); + + unittest.group('obj-schema-DiskMigrationStep', () { + unittest.test('to-json--from-json', () async { + final o = buildDiskMigrationStep(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.DiskMigrationStep.fromJson( + oJson as core.Map, + ); + checkDiskMigrationStep(od); + }); + }); + unittest.group('obj-schema-DisksMigrationDisksTargetDefaults', () { unittest.test('to-json--from-json', () async { final o = buildDisksMigrationDisksTargetDefaults(); @@ -4384,6 +4891,17 @@ void main() { }); }); + unittest.group('obj-schema-FetchStorageInventoryResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildFetchStorageInventoryResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.FetchStorageInventoryResponse.fromJson( + oJson as core.Map, + ); + checkFetchStorageInventoryResponse(od); + }); + }); + unittest.group('obj-schema-FinalizeMigrationRequest', () { unittest.test('to-json--from-json', () async { final o = buildFinalizeMigrationRequest(); @@ -4527,6 +5045,17 @@ void main() { }); }); + unittest.group('obj-schema-ListDiskMigrationJobsResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildListDiskMigrationJobsResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ListDiskMigrationJobsResponse.fromJson( + oJson as core.Map, + ); + checkListDiskMigrationJobsResponse(od); + }); + }); + unittest.group('obj-schema-ListGroupsResponse', () { unittest.test('to-json--from-json', () async { final o = buildListGroupsResponse(); @@ -4813,6 +5342,17 @@ void main() { }); }); + unittest.group('obj-schema-ProvisioningTargetDiskStep', () { + unittest.test('to-json--from-json', () async { + final o = buildProvisioningTargetDiskStep(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ProvisioningTargetDiskStep.fromJson( + oJson as core.Map, + ); + checkProvisioningTargetDiskStep(od); + }); + }); + unittest.group('obj-schema-RemoveGroupMigrationRequest', () { unittest.test('to-json--from-json', () async { final o = buildRemoveGroupMigrationRequest(); @@ -4868,6 +5408,17 @@ void main() { }); }); + unittest.group('obj-schema-RunDiskMigrationJobRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildRunDiskMigrationJobRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.RunDiskMigrationJobRequest.fromJson( + oJson as core.Map, + ); + checkRunDiskMigrationJobRequest(od); + }); + }); + unittest.group('obj-schema-SchedulePolicy', () { unittest.test('to-json--from-json', () async { final o = buildSchedulePolicy(); @@ -4945,6 +5496,17 @@ void main() { }); }); + unittest.group('obj-schema-SourceStorageResource', () { + unittest.test('to-json--from-json', () async { + final o = buildSourceStorageResource(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.SourceStorageResource.fromJson( + oJson as core.Map, + ); + checkSourceStorageResource(od); + }); + }); + unittest.group('obj-schema-StartMigrationRequest', () { unittest.test('to-json--from-json', () async { final o = buildStartMigrationRequest(); @@ -5177,7 +5739,7 @@ void main() { final mock = HttpServerMock(); final res = api.VMMigrationServiceApi(mock).projects.locations; final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed89(); + final arg_extraLocationTypes = buildUnnamed100(); final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; @@ -6669,6 +7231,87 @@ void main() { checkFetchInventoryResponse(response as api.FetchInventoryResponse); }); + unittest.test('method--fetchStorageInventory', () async { + final mock = HttpServerMock(); + final res = api.VMMigrationServiceApi(mock).projects.locations.sources; + final arg_source = 'foo'; + final arg_forceRefresh = true; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_type = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['forceRefresh']!.first, + unittest.equals('$arg_forceRefresh'), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect(queryMap['type']!.first, unittest.equals(arg_type)); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildFetchStorageInventoryResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.fetchStorageInventory( + arg_source, + forceRefresh: arg_forceRefresh, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + type: arg_type, + $fields: arg_$fields, + ); + checkFetchStorageInventoryResponse( + response as api.FetchStorageInventoryResponse, + ); + }); + unittest.test('method--get', () async { final mock = HttpServerMock(); final res = api.VMMigrationServiceApi(mock).projects.locations.sources; @@ -7232,6 +7875,495 @@ void main() { }); }); + unittest.group('resource-ProjectsLocationsSourcesDiskMigrationJobsResource', () { + unittest.test('method--cancel', () async { + final mock = HttpServerMock(); + final res = + api.VMMigrationServiceApi( + mock, + ).projects.locations.sources.diskMigrationJobs; + final arg_request = buildCancelDiskMigrationJobRequest(); + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.CancelDiskMigrationJobRequest.fromJson( + json as core.Map, + ); + checkCancelDiskMigrationJobRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.cancel( + arg_request, + arg_name, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); + }); + + unittest.test('method--create', () async { + final mock = HttpServerMock(); + final res = + api.VMMigrationServiceApi( + mock, + ).projects.locations.sources.diskMigrationJobs; + final arg_request = buildDiskMigrationJob(); + final arg_parent = 'foo'; + final arg_diskMigrationJobId = 'foo'; + final arg_requestId = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.DiskMigrationJob.fromJson( + json as core.Map, + ); + checkDiskMigrationJob(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['diskMigrationJobId']!.first, + unittest.equals(arg_diskMigrationJobId), + ); + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.create( + arg_request, + arg_parent, + diskMigrationJobId: arg_diskMigrationJobId, + requestId: arg_requestId, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); + }); + + unittest.test('method--delete', () async { + final mock = HttpServerMock(); + final res = + api.VMMigrationServiceApi( + mock, + ).projects.locations.sources.diskMigrationJobs; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.delete(arg_name, $fields: arg_$fields); + checkOperation(response as api.Operation); + }); + + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = + api.VMMigrationServiceApi( + mock, + ).projects.locations.sources.diskMigrationJobs; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildDiskMigrationJob()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkDiskMigrationJob(response as api.DiskMigrationJob); + }); + + unittest.test('method--list', () async { + final mock = HttpServerMock(); + final res = + api.VMMigrationServiceApi( + mock, + ).projects.locations.sources.diskMigrationJobs; + final arg_parent = 'foo'; + final arg_filter = 'foo'; + final arg_orderBy = 'foo'; + final arg_pageSize = 42; + final arg_pageToken = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['filter']!.first, + unittest.equals(arg_filter), + ); + unittest.expect( + queryMap['orderBy']!.first, + unittest.equals(arg_orderBy), + ); + unittest.expect( + core.int.parse(queryMap['pageSize']!.first), + unittest.equals(arg_pageSize), + ); + unittest.expect( + queryMap['pageToken']!.first, + unittest.equals(arg_pageToken), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildListDiskMigrationJobsResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.list( + arg_parent, + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields, + ); + checkListDiskMigrationJobsResponse( + response as api.ListDiskMigrationJobsResponse, + ); + }); + + unittest.test('method--patch', () async { + final mock = HttpServerMock(); + final res = + api.VMMigrationServiceApi( + mock, + ).projects.locations.sources.diskMigrationJobs; + final arg_request = buildDiskMigrationJob(); + final arg_name = 'foo'; + final arg_requestId = 'foo'; + final arg_updateMask = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.DiskMigrationJob.fromJson( + json as core.Map, + ); + checkDiskMigrationJob(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['requestId']!.first, + unittest.equals(arg_requestId), + ); + unittest.expect( + queryMap['updateMask']!.first, + unittest.equals(arg_updateMask), + ); + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.patch( + arg_request, + arg_name, + requestId: arg_requestId, + updateMask: arg_updateMask, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); + }); + + unittest.test('method--run', () async { + final mock = HttpServerMock(); + final res = + api.VMMigrationServiceApi( + mock, + ).projects.locations.sources.diskMigrationJobs; + final arg_request = buildRunDiskMigrationJobRequest(); + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.RunDiskMigrationJobRequest.fromJson( + json as core.Map, + ); + checkRunDiskMigrationJobRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.run( + arg_request, + arg_name, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); + }); + }); + unittest.group('resource-ProjectsLocationsSourcesMigratingVmsResource', () { unittest.test('method--create', () async { final mock = HttpServerMock(); diff --git a/generated/googleapis/test/vmwareengine/v1_test.dart b/generated/googleapis/test/vmwareengine/v1_test.dart index 8e812e5bc..8875471db 100644 --- a/generated/googleapis/test/vmwareengine/v1_test.dart +++ b/generated/googleapis/test/vmwareengine/v1_test.dart @@ -26,6 +26,30 @@ import 'package:test/test.dart' as unittest; import '../test_shared.dart'; +core.int buildCounterAcceleratePrivateCloudDeletionRequest = 0; +api.AcceleratePrivateCloudDeletionRequest +buildAcceleratePrivateCloudDeletionRequest() { + final o = api.AcceleratePrivateCloudDeletionRequest(); + buildCounterAcceleratePrivateCloudDeletionRequest++; + if (buildCounterAcceleratePrivateCloudDeletionRequest < 3) { + o.etag = 'foo'; + o.requestId = 'foo'; + } + buildCounterAcceleratePrivateCloudDeletionRequest--; + return o; +} + +void checkAcceleratePrivateCloudDeletionRequest( + api.AcceleratePrivateCloudDeletionRequest o, +) { + buildCounterAcceleratePrivateCloudDeletionRequest++; + if (buildCounterAcceleratePrivateCloudDeletionRequest < 3) { + unittest.expect(o.etag!, unittest.equals('foo')); + unittest.expect(o.requestId!, unittest.equals('foo')); + } + buildCounterAcceleratePrivateCloudDeletionRequest--; +} + core.Map buildUnnamed0() => {'x': 'foo', 'y': 'foo'}; void checkUnnamed0(core.Map o) { @@ -2811,6 +2835,17 @@ void checkUnnamed67(core.List o) { } void main() { + unittest.group('obj-schema-AcceleratePrivateCloudDeletionRequest', () { + unittest.test('to-json--from-json', () async { + final o = buildAcceleratePrivateCloudDeletionRequest(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.AcceleratePrivateCloudDeletionRequest.fromJson( + oJson as core.Map, + ); + checkAcceleratePrivateCloudDeletionRequest(od); + }); + }); + unittest.group('obj-schema-Announcement', () { unittest.test('to-json--from-json', () async { final o = buildAnnouncement(); @@ -6170,6 +6205,69 @@ void main() { checkOperation(response as api.Operation); }); + unittest.test('method--privateCloudDeletionNow', () async { + final mock = HttpServerMock(); + final res = api.VMwareEngineApi(mock).projects.locations.privateClouds; + final arg_request = buildAcceleratePrivateCloudDeletionRequest(); + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.AcceleratePrivateCloudDeletionRequest.fromJson( + json as core.Map, + ); + checkAcceleratePrivateCloudDeletionRequest(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), + unittest.equals('v1/'), + ); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildOperation()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.privateCloudDeletionNow( + arg_request, + arg_name, + $fields: arg_$fields, + ); + checkOperation(response as api.Operation); + }); + unittest.test('method--resetNsxCredentials', () async { final mock = HttpServerMock(); final res = api.VMwareEngineApi(mock).projects.locations.privateClouds; diff --git a/generated/googleapis/test/walletobjects/v1_test.dart b/generated/googleapis/test/walletobjects/v1_test.dart index d59737297..49861eacc 100644 --- a/generated/googleapis/test/walletobjects/v1_test.dart +++ b/generated/googleapis/test/walletobjects/v1_test.dart @@ -2866,6 +2866,7 @@ api.Image buildImage() { if (buildCounterImage < 3) { o.contentDescription = buildLocalizedString(); o.kind = 'foo'; + o.privateImageId = 'foo'; o.sourceUri = buildImageUri(); } buildCounterImage--; @@ -2877,6 +2878,7 @@ void checkImage(api.Image o) { if (buildCounterImage < 3) { checkLocalizedString(o.contentDescription!); unittest.expect(o.kind!, unittest.equals('foo')); + unittest.expect(o.privateImageId!, unittest.equals('foo')); checkImageUri(o.sourceUri!); } buildCounterImage--; @@ -3871,6 +3873,7 @@ api.MediaRequestInfo buildMediaRequestInfo() { o.diffObjectVersion = 'foo'; o.finalStatus = 42; o.notificationType = 'foo'; + o.physicalHeaders = 'foo'; o.requestId = 'foo'; o.requestReceivedParamsServingInfo = 'foo'; o.totalBytes = 'foo'; @@ -3888,6 +3891,7 @@ void checkMediaRequestInfo(api.MediaRequestInfo o) { unittest.expect(o.diffObjectVersion!, unittest.equals('foo')); unittest.expect(o.finalStatus!, unittest.equals(42)); unittest.expect(o.notificationType!, unittest.equals('foo')); + unittest.expect(o.physicalHeaders!, unittest.equals('foo')); unittest.expect(o.requestId!, unittest.equals('foo')); unittest.expect( o.requestReceivedParamsServingInfo!, diff --git a/generated/googleapis/test/workloadmanager/v1_test.dart b/generated/googleapis/test/workloadmanager/v1_test.dart index dd766dc9a..2ba282584 100644 --- a/generated/googleapis/test/workloadmanager/v1_test.dart +++ b/generated/googleapis/test/workloadmanager/v1_test.dart @@ -61,7 +61,11 @@ api.AgentStates buildAgentStates() { buildCounterAgentStates++; if (buildCounterAgentStates < 3) { o.availableVersion = 'foo'; + o.hanaMonitoring = buildServiceStates(); o.installedVersion = 'foo'; + o.isFullyEnabled = true; + o.processMetrics = buildServiceStates(); + o.systemDiscovery = buildServiceStates(); } buildCounterAgentStates--; return o; @@ -71,7 +75,11 @@ void checkAgentStates(api.AgentStates o) { buildCounterAgentStates++; if (buildCounterAgentStates < 3) { unittest.expect(o.availableVersion!, unittest.equals('foo')); + checkServiceStates(o.hanaMonitoring!); unittest.expect(o.installedVersion!, unittest.equals('foo')); + unittest.expect(o.isFullyEnabled!, unittest.isTrue); + checkServiceStates(o.processMetrics!); + checkServiceStates(o.systemDiscovery!); } buildCounterAgentStates--; } @@ -510,6 +518,7 @@ api.Execution buildExecution() { buildCounterExecution++; if (buildCounterExecution < 3) { o.endTime = 'foo'; + o.engine = 'foo'; o.evaluationId = 'foo'; o.externalDataSources = buildUnnamed8(); o.inventoryTime = 'foo'; @@ -530,6 +539,7 @@ void checkExecution(api.Execution o) { buildCounterExecution++; if (buildCounterExecution < 3) { unittest.expect(o.endTime!, unittest.equals('foo')); + unittest.expect(o.engine!, unittest.equals('foo')); unittest.expect(o.evaluationId!, unittest.equals('foo')); checkUnnamed8(o.externalDataSources!); unittest.expect(o.inventoryTime!, unittest.equals('foo')); @@ -638,6 +648,27 @@ void checkGceInstanceFilter(api.GceInstanceFilter o) { buildCounterGceInstanceFilter--; } +core.int buildCounterIAMPermission = 0; +api.IAMPermission buildIAMPermission() { + final o = api.IAMPermission(); + buildCounterIAMPermission++; + if (buildCounterIAMPermission < 3) { + o.granted = true; + o.name = 'foo'; + } + buildCounterIAMPermission--; + return o; +} + +void checkIAMPermission(api.IAMPermission o) { + buildCounterIAMPermission++; + if (buildCounterIAMPermission < 3) { + unittest.expect(o.granted!, unittest.isTrue); + unittest.expect(o.name!, unittest.equals('foo')); + } + buildCounterIAMPermission--; +} + core.int buildCounterInsight = 0; api.Insight buildInsight() { final o = api.Insight(); @@ -1290,6 +1321,7 @@ api.Rule buildRule() { o.primaryCategory = 'foo'; o.remediation = 'foo'; o.revisionId = 'foo'; + o.ruleType = 'foo'; o.secondaryCategory = 'foo'; o.severity = 'foo'; o.tags = buildUnnamed34(); @@ -1309,6 +1341,7 @@ void checkRule(api.Rule o) { unittest.expect(o.primaryCategory!, unittest.equals('foo')); unittest.expect(o.remediation!, unittest.equals('foo')); unittest.expect(o.revisionId!, unittest.equals('foo')); + unittest.expect(o.ruleType!, unittest.equals('foo')); unittest.expect(o.secondaryCategory!, unittest.equals('foo')); unittest.expect(o.severity!, unittest.equals('foo')); checkUnnamed34(o.tags!); @@ -2127,6 +2160,38 @@ void checkScannedResource(api.ScannedResource o) { buildCounterScannedResource--; } +core.List buildUnnamed52() => [ + buildIAMPermission(), + buildIAMPermission(), +]; + +void checkUnnamed52(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkIAMPermission(o[0]); + checkIAMPermission(o[1]); +} + +core.int buildCounterServiceStates = 0; +api.ServiceStates buildServiceStates() { + final o = api.ServiceStates(); + buildCounterServiceStates++; + if (buildCounterServiceStates < 3) { + o.iamPermissions = buildUnnamed52(); + o.state = 'foo'; + } + buildCounterServiceStates--; + return o; +} + +void checkServiceStates(api.ServiceStates o) { + buildCounterServiceStates++; + if (buildCounterServiceStates < 3) { + checkUnnamed52(o.iamPermissions!); + unittest.expect(o.state!, unittest.equals('foo')); + } + buildCounterServiceStates--; +} + core.int buildCounterShellCommand = 0; api.ShellCommand buildShellCommand() { final o = api.ShellCommand(); @@ -2150,12 +2215,12 @@ void checkShellCommand(api.ShellCommand o) { buildCounterShellCommand--; } -core.List buildUnnamed52() => [ +core.List buildUnnamed53() => [ buildSqlserverValidationValidationDetail(), buildSqlserverValidationValidationDetail(), ]; -void checkUnnamed52(core.List o) { +void checkUnnamed53(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSqlserverValidationValidationDetail(o[0]); checkSqlserverValidationValidationDetail(o[1]); @@ -2169,7 +2234,7 @@ api.SqlserverValidation buildSqlserverValidation() { o.agentVersion = 'foo'; o.instance = 'foo'; o.projectId = 'foo'; - o.validationDetails = buildUnnamed52(); + o.validationDetails = buildUnnamed53(); } buildCounterSqlserverValidation--; return o; @@ -2181,14 +2246,14 @@ void checkSqlserverValidation(api.SqlserverValidation o) { unittest.expect(o.agentVersion!, unittest.equals('foo')); unittest.expect(o.instance!, unittest.equals('foo')); unittest.expect(o.projectId!, unittest.equals('foo')); - checkUnnamed52(o.validationDetails!); + checkUnnamed53(o.validationDetails!); } buildCounterSqlserverValidation--; } -core.Map buildUnnamed53() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed54() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed53(core.Map o) { +void checkUnnamed54(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2199,7 +2264,7 @@ api.SqlserverValidationDetails buildSqlserverValidationDetails() { final o = api.SqlserverValidationDetails(); buildCounterSqlserverValidationDetails++; if (buildCounterSqlserverValidationDetails < 3) { - o.fields = buildUnnamed53(); + o.fields = buildUnnamed54(); } buildCounterSqlserverValidationDetails--; return o; @@ -2208,17 +2273,17 @@ api.SqlserverValidationDetails buildSqlserverValidationDetails() { void checkSqlserverValidationDetails(api.SqlserverValidationDetails o) { buildCounterSqlserverValidationDetails++; if (buildCounterSqlserverValidationDetails < 3) { - checkUnnamed53(o.fields!); + checkUnnamed54(o.fields!); } buildCounterSqlserverValidationDetails--; } -core.List buildUnnamed54() => [ +core.List buildUnnamed55() => [ buildSqlserverValidationDetails(), buildSqlserverValidationDetails(), ]; -void checkUnnamed54(core.List o) { +void checkUnnamed55(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSqlserverValidationDetails(o[0]); checkSqlserverValidationDetails(o[1]); @@ -2230,7 +2295,7 @@ buildSqlserverValidationValidationDetail() { final o = api.SqlserverValidationValidationDetail(); buildCounterSqlserverValidationValidationDetail++; if (buildCounterSqlserverValidationValidationDetail < 3) { - o.details = buildUnnamed54(); + o.details = buildUnnamed55(); o.type = 'foo'; } buildCounterSqlserverValidationValidationDetail--; @@ -2242,13 +2307,13 @@ void checkSqlserverValidationValidationDetail( ) { buildCounterSqlserverValidationValidationDetail++; if (buildCounterSqlserverValidationValidationDetail < 3) { - checkUnnamed54(o.details!); + checkUnnamed55(o.details!); unittest.expect(o.type!, unittest.equals('foo')); } buildCounterSqlserverValidationValidationDetail--; } -core.Map buildUnnamed55() => { +core.Map buildUnnamed56() => { 'x': { 'list': [1, 2, 3], 'bool': true, @@ -2261,7 +2326,7 @@ core.Map buildUnnamed55() => { }, }; -void checkUnnamed55(core.Map o) { +void checkUnnamed56(core.Map o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o['x']!) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -2275,15 +2340,15 @@ void checkUnnamed55(core.Map o) { unittest.expect(casted8['string'], unittest.equals('foo')); } -core.List> buildUnnamed56() => [ - buildUnnamed55(), - buildUnnamed55(), +core.List> buildUnnamed57() => [ + buildUnnamed56(), + buildUnnamed56(), ]; -void checkUnnamed56(core.List> o) { +void checkUnnamed57(core.List> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed55(o[0]); - checkUnnamed55(o[1]); + checkUnnamed56(o[0]); + checkUnnamed56(o[1]); } core.int buildCounterStatus = 0; @@ -2292,7 +2357,7 @@ api.Status buildStatus() { buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed56(); + o.details = buildUnnamed57(); o.message = 'foo'; } buildCounterStatus--; @@ -2303,7 +2368,7 @@ void checkStatus(api.Status o) { buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed56(o.details!); + checkUnnamed57(o.details!); unittest.expect(o.message!, unittest.equals('foo')); } buildCounterStatus--; @@ -2332,9 +2397,9 @@ void checkSummary(api.Summary o) { buildCounterSummary--; } -core.Map buildUnnamed57() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed58() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed57(core.Map o) { +void checkUnnamed58(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2348,7 +2413,7 @@ api.TorsoValidation buildTorsoValidation() { o.agentVersion = 'foo'; o.instanceName = 'foo'; o.projectId = 'foo'; - o.validationDetails = buildUnnamed57(); + o.validationDetails = buildUnnamed58(); o.workloadType = 'foo'; } buildCounterTorsoValidation--; @@ -2361,7 +2426,7 @@ void checkTorsoValidation(api.TorsoValidation o) { unittest.expect(o.agentVersion!, unittest.equals('foo')); unittest.expect(o.instanceName!, unittest.equals('foo')); unittest.expect(o.projectId!, unittest.equals('foo')); - checkUnnamed57(o.validationDetails!); + checkUnnamed58(o.validationDetails!); unittest.expect(o.workloadType!, unittest.equals('foo')); } buildCounterTorsoValidation--; @@ -2394,9 +2459,9 @@ void checkUpcomingMaintenanceEvent(api.UpcomingMaintenanceEvent o) { buildCounterUpcomingMaintenanceEvent--; } -core.Map buildUnnamed58() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed59() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed58(core.Map o) { +void checkUnnamed59(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2408,7 +2473,7 @@ api.ViolationDetails buildViolationDetails() { buildCounterViolationDetails++; if (buildCounterViolationDetails < 3) { o.asset = 'foo'; - o.observed = buildUnnamed58(); + o.observed = buildUnnamed59(); o.serviceAccount = 'foo'; } buildCounterViolationDetails--; @@ -2419,15 +2484,15 @@ void checkViolationDetails(api.ViolationDetails o) { buildCounterViolationDetails++; if (buildCounterViolationDetails < 3) { unittest.expect(o.asset!, unittest.equals('foo')); - checkUnnamed58(o.observed!); + checkUnnamed59(o.observed!); unittest.expect(o.serviceAccount!, unittest.equals('foo')); } buildCounterViolationDetails--; } -core.Map buildUnnamed59() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed60() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed59(core.Map o) { +void checkUnnamed60(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -2438,7 +2503,7 @@ api.WorkloadProfile buildWorkloadProfile() { final o = api.WorkloadProfile(); buildCounterWorkloadProfile++; if (buildCounterWorkloadProfile < 3) { - o.labels = buildUnnamed59(); + o.labels = buildUnnamed60(); o.name = 'foo'; o.refreshedTime = 'foo'; o.sapWorkload = buildSapWorkload(); @@ -2451,7 +2516,7 @@ api.WorkloadProfile buildWorkloadProfile() { void checkWorkloadProfile(api.WorkloadProfile o) { buildCounterWorkloadProfile++; if (buildCounterWorkloadProfile < 3) { - checkUnnamed59(o.labels!); + checkUnnamed60(o.labels!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.refreshedTime!, unittest.equals('foo')); checkSapWorkload(o.sapWorkload!); @@ -2498,9 +2563,9 @@ void checkWriteInsightResponse(api.WriteInsightResponse o) { buildCounterWriteInsightResponse--; } -core.List buildUnnamed60() => ['foo', 'foo']; +core.List buildUnnamed61() => ['foo', 'foo']; -void checkUnnamed60(core.List o) { +void checkUnnamed61(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2716,6 +2781,17 @@ void main() { }); }); + unittest.group('obj-schema-IAMPermission', () { + unittest.test('to-json--from-json', () async { + final o = buildIAMPermission(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.IAMPermission.fromJson( + oJson as core.Map, + ); + checkIAMPermission(od); + }); + }); + unittest.group('obj-schema-Insight', () { unittest.test('to-json--from-json', () async { final o = buildInsight(); @@ -3188,6 +3264,17 @@ void main() { }); }); + unittest.group('obj-schema-ServiceStates', () { + unittest.test('to-json--from-json', () async { + final o = buildServiceStates(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ServiceStates.fromJson( + oJson as core.Map, + ); + checkServiceStates(od); + }); + }); + unittest.group('obj-schema-ShellCommand', () { unittest.test('to-json--from-json', () async { final o = buildShellCommand(); @@ -3378,7 +3465,7 @@ void main() { final mock = HttpServerMock(); final res = api.WorkloadManagerApi(mock).projects.locations; final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed60(); + final arg_extraLocationTypes = buildUnnamed61(); final arg_filter = 'foo'; final arg_pageSize = 42; final arg_pageToken = 'foo'; diff --git a/generated/googleapis_beta/README.md b/generated/googleapis_beta/README.md index eec78be87..ee292cad7 100644 --- a/generated/googleapis_beta/README.md +++ b/generated/googleapis_beta/README.md @@ -138,13 +138,6 @@ The Cloud Storage for Firebase API enables programmatic management of Cloud Stor - [Original documentation](https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster) - [Dart package details](https://pub.dev/documentation/googleapis_beta/9.1.0-wip/gkehub_v2alpha/gkehub_v2alpha-library.html) -#### Cloud Life Sciences API - `lifesciences/v2beta` - -Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data. - -- [Original documentation](https://cloud.google.com/life-sciences) -- [Dart package details](https://pub.dev/documentation/googleapis_beta/9.1.0-wip/lifesciences_v2beta/lifesciences_v2beta-library.html) - #### SAS Portal API (Testing) - `prod_tt_sasportal/v1alpha1` - [Original documentation](https://developers.google.com/spectrum-access-system/) diff --git a/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart b/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart index 7a904bbc7..16028efdb 100644 --- a/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart +++ b/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart @@ -8722,6 +8722,8 @@ class NonBillableWinningBidStatusRow { /// reported from the client during playback. /// - "LOST_IN_MEDIATION" : The buyer was not billed because the ad was /// outplaced in the mediation waterfall. + /// - "OVERDELIVERED_IMPRESSION" : The impression was not billed because it + /// exceeded a guaranteed deal delivery goal. core.String? status; NonBillableWinningBidStatusRow({ diff --git a/generated/googleapis_beta/lib/analyticsadmin/v1alpha.dart b/generated/googleapis_beta/lib/analyticsadmin/v1alpha.dart index a9eb5bb30..7b2021acc 100644 --- a/generated/googleapis_beta/lib/analyticsadmin/v1alpha.dart +++ b/generated/googleapis_beta/lib/analyticsadmin/v1alpha.dart @@ -1367,7 +1367,7 @@ class PropertiesResource { ); } - /// Returns the singleton data retention settings for this property. + /// Returns the reporting identity settings for this property. /// /// Request parameters: /// diff --git a/generated/googleapis_beta/lib/cloudsupport/v2beta.dart b/generated/googleapis_beta/lib/cloudsupport/v2beta.dart index b3da386ce..8e8ba45a4 100644 --- a/generated/googleapis_beta/lib/cloudsupport/v2beta.dart +++ b/generated/googleapis_beta/lib/cloudsupport/v2beta.dart @@ -671,6 +671,53 @@ class CasesAttachmentsResource { CasesAttachmentsResource(commons.ApiRequester client) : _requester = client; + /// Retrieve an attachment associated with a support case. + /// + /// EXAMPLES: cURL: ```shell + /// attachment="projects/some-project/cases/23598314/attachments/0684M00000P3h1fQAB" + /// curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" + /// \ "https://cloudsupport.googleapis.com/v2/$attachment" ``` Python: + /// ```python import googleapiclient.discovery api_version = "v2beta" + /// supportApiService = googleapiclient.discovery.build( + /// serviceName="cloudsupport", version=api_version, + /// discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", + /// ) request = ( supportApiService.cases() .attachments() + /// .get(name="projects/some-project/cases/43595344/attachments/0684M00000P3h1fQAB") + /// ) print(request.execute()) ``` + /// + /// Request parameters: + /// + /// [name] - Required. The name of the attachment to get. + /// Value must have pattern + /// `^\[^/\]+/\[^/\]+/cases/\[^/\]+/attachments/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Attachment]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get(core.String name, {core.String? $fields}) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v2beta/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return Attachment.fromJson( + response_ as core.Map, + ); + } + /// List all the attachments associated with a support case. /// /// EXAMPLES: cURL: ```shell case="projects/some-project/cases/23598314" curl @@ -794,6 +841,51 @@ class CasesCommentsResource { return Comment.fromJson(response_ as core.Map); } + /// Retrieve a comment. + /// + /// EXAMPLES: cURL: ```shell + /// comment="projects/some-project/cases/43595344/comments/234567890" curl \ + /// --header "Authorization: Bearer $(gcloud auth print-access-token)" \ + /// "https://cloudsupport.googleapis.com/v2/$comment" ``` Python: ```python + /// import googleapiclient.discovery api_version = "v2beta" supportApiService + /// = googleapiclient.discovery.build( serviceName="cloudsupport", + /// version=api_version, + /// discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", + /// ) request = supportApiService.cases().comments().get( + /// name="projects/some-project/cases/43595344/comments/234567890", ) + /// print(request.execute()) ``` + /// + /// Request parameters: + /// + /// [name] - Required. The name of the comment to retrieve. + /// Value must have pattern + /// `^\[^/\]+/\[^/\]+/cases/\[^/\]+/comments/\[^/\]+$`. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Comment]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future get(core.String name, {core.String? $fields}) async { + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = 'v2beta/' + core.Uri.encodeFull('$name'); + + final response_ = await _requester.request( + url_, + 'GET', + queryParams: queryParams_, + ); + return Comment.fromJson(response_ as core.Map); + } + /// List all the comments associated with a case. /// /// EXAMPLES: cURL: ```shell case="projects/some-project/cases/43595344" curl diff --git a/generated/googleapis_beta/lib/dataflow/v1b3.dart b/generated/googleapis_beta/lib/dataflow/v1b3.dart index 3d394185c..8046a1a1f 100644 --- a/generated/googleapis_beta/lib/dataflow/v1b3.dart +++ b/generated/googleapis_beta/lib/dataflow/v1b3.dart @@ -289,11 +289,10 @@ class ProjectsJobsResource { ); } - /// A Job is a multi-stage computation graph run by the Cloud Dataflow - /// service. + /// Creates a Dataflow job. /// - /// Creates a Cloud Dataflow job. To create a job, we recommend using - /// `projects.locations.jobs.create` with a + /// To create a job, we recommend using `projects.locations.jobs.create` with + /// a /// [regional endpoint](https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). /// Using `projects.jobs.create` is not recommended, as your job will always /// start in `us-central1`. Do not enter confidential information when you @@ -1187,11 +1186,10 @@ class ProjectsLocationsJobsResource { ProjectsLocationsJobsResource(commons.ApiRequester client) : _requester = client; - /// A Job is a multi-stage computation graph run by the Cloud Dataflow - /// service. + /// Creates a Dataflow job. /// - /// Creates a Cloud Dataflow job. To create a job, we recommend using - /// `projects.locations.jobs.create` with a + /// To create a job, we recommend using `projects.locations.jobs.create` with + /// a /// [regional endpoint](https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). /// Using `projects.jobs.create` is not recommended, as your job will always /// start in `us-central1`. Do not enter confidential information when you @@ -5004,6 +5002,8 @@ class ExecutionStageState { /// indicates that the batch job's associated resources are currently being /// cleaned up after a successful run. Currently, this is an opt-in feature, /// please reach out to Cloud support team if you are interested. + /// - "JOB_STATE_PAUSING" : `JOB_STATE_PAUSING` is not implemented yet. + /// - "JOB_STATE_PAUSED" : `JOB_STATE_PAUSED` is not implemented yet. core.String? executionStageState; ExecutionStageState({ @@ -6093,6 +6093,8 @@ class Job { /// indicates that the batch job's associated resources are currently being /// cleaned up after a successful run. Currently, this is an opt-in feature, /// please reach out to Cloud support team if you are interested. + /// - "JOB_STATE_PAUSING" : `JOB_STATE_PAUSING` is not implemented yet. + /// - "JOB_STATE_PAUSED" : `JOB_STATE_PAUSED` is not implemented yet. core.String? currentState; /// The timestamp associated with the current state. @@ -6224,6 +6226,8 @@ class Job { /// indicates that the batch job's associated resources are currently being /// cleaned up after a successful run. Currently, this is an opt-in feature, /// please reach out to Cloud support team if you are interested. + /// - "JOB_STATE_PAUSING" : `JOB_STATE_PAUSING` is not implemented yet. + /// - "JOB_STATE_PAUSED" : `JOB_STATE_PAUSED` is not implemented yet. core.String? requestedState; /// This field may ONLY be modified at runtime using the projects.jobs.update diff --git a/generated/googleapis_beta/lib/datastream/v1alpha1.dart b/generated/googleapis_beta/lib/datastream/v1alpha1.dart index c93a2c782..5ae2401f8 100644 --- a/generated/googleapis_beta/lib/datastream/v1alpha1.dart +++ b/generated/googleapis_beta/lib/datastream/v1alpha1.dart @@ -177,9 +177,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Do not use this field. It is unsupported + /// and is ignored unless explicitly documented otherwise. This is primarily + /// for internal usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is diff --git a/generated/googleapis_beta/lib/firebaseappcheck/v1beta.dart b/generated/googleapis_beta/lib/firebaseappcheck/v1beta.dart index 44cbff828..19a03800a 100644 --- a/generated/googleapis_beta/lib/firebaseappcheck/v1beta.dart +++ b/generated/googleapis_beta/lib/firebaseappcheck/v1beta.dart @@ -4293,6 +4293,46 @@ class GoogleFirebaseAppcheckV1betaListServicesResponse { /// Console or programmatically via the /// [Firebase Management Service](https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects.androidApps.sha/create). class GoogleFirebaseAppcheckV1betaPlayIntegrityConfig { + /// Specifies account requirements for Android devices running your app. + /// + /// These settings correspond to requirements on the \[**account details** + /// field\](https://developer.android.com/google/play/integrity/verdicts#account-details-field) + /// obtained from the Play Integrity API. See the + /// [default responses table](https://developer.android.com/google/play/integrity/setup#default) + /// for a quick summary. The default values for these settings work for most + /// apps, and are recommended. + GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails? accountDetails; + + /// Specifies application integrity requirements for Android devices running + /// your app. + /// + /// These settings correspond to requirements on the \[**application + /// integrity** + /// field\](https://developer.android.com/google/play/integrity/verdicts#application-integrity-field) + /// obtained from the Play Integrity API. See the + /// [default responses table](https://developer.android.com/google/play/integrity/setup#default) + /// for a quick summary. The default values for these settings work for most + /// apps, and are recommended. + GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity? appIntegrity; + + /// Specifies device integrity requirements for Android devices running your + /// app. + /// + /// These settings correspond to requirements on the \[**device integrity** + /// field\](https://developer.android.com/google/play/integrity/verdicts#device-integrity-field) + /// obtained from the Play Integrity API. See the + /// [default responses table](https://developer.android.com/google/play/integrity/setup#default) + /// for a quick summary. Warning: There are also + /// [conditional](https://developer.android.com/google/play/integrity/setup#conditional) + /// as well as + /// [optional](https://developer.android.com/google/play/integrity/setup#optional_device_information) + /// responses that you can receive, but requires additional explicit opt-in + /// from you. The App Check API is **not** responsible for any such opt-ins. + /// The default values for these settings work for most apps, and are + /// recommended. + GoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity? + deviceIntegrity; + /// The relative resource name of the Play Integrity configuration object, in /// the format: ``` /// projects/{project_number}/apps/{app_id}/playIntegrityConfig ``` @@ -4307,20 +4347,205 @@ class GoogleFirebaseAppcheckV1betaPlayIntegrityConfig { /// and 7 days, inclusive. core.String? tokenTtl; - GoogleFirebaseAppcheckV1betaPlayIntegrityConfig({this.name, this.tokenTtl}); + GoogleFirebaseAppcheckV1betaPlayIntegrityConfig({ + this.accountDetails, + this.appIntegrity, + this.deviceIntegrity, + this.name, + this.tokenTtl, + }); GoogleFirebaseAppcheckV1betaPlayIntegrityConfig.fromJson(core.Map json_) : this( + accountDetails: + json_.containsKey('accountDetails') + ? GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails.fromJson( + json_['accountDetails'] + as core.Map, + ) + : null, + appIntegrity: + json_.containsKey('appIntegrity') + ? GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity.fromJson( + json_['appIntegrity'] as core.Map, + ) + : null, + deviceIntegrity: + json_.containsKey('deviceIntegrity') + ? GoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity.fromJson( + json_['deviceIntegrity'] + as core.Map, + ) + : null, name: json_['name'] as core.String?, tokenTtl: json_['tokenTtl'] as core.String?, ); core.Map toJson() => { + if (accountDetails != null) 'accountDetails': accountDetails!, + if (appIntegrity != null) 'appIntegrity': appIntegrity!, + if (deviceIntegrity != null) 'deviceIntegrity': deviceIntegrity!, if (name != null) 'name': name!, if (tokenTtl != null) 'tokenTtl': tokenTtl!, }; } +/// A settings object specifying account requirements for Android devices +/// running your app. +/// +/// These settings correspond to requirements on the \[**account details** +/// field\](https://developer.android.com/google/play/integrity/verdicts#account-details-field) +/// obtained from the Play Integrity API. See the +/// [default responses table](https://developer.android.com/google/play/integrity/setup#default) +/// for a quick summary. The default values for these settings work for most +/// apps, and are recommended. +class GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails { + /// Specifies whether the caller must have received the \[`LICENSED` + /// verdict\](https://developer.android.com/google/play/integrity/verdicts#account-details-field). + /// + /// For additional details about scenarios where your users will receive this + /// `LICENSED` label, see + /// [the default responses table](https://developer.android.com/google/play/integrity/setup#default). + /// If set to `true`, apps without the `LICENSED` app licensing verdict will + /// be rejected. If set to `false`, any app licensing verdict is allowed. The + /// default value is `false`. + core.bool? requireLicensed; + + GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails({ + this.requireLicensed, + }); + + GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails.fromJson( + core.Map json_, + ) : this(requireLicensed: json_['requireLicensed'] as core.bool?); + + core.Map toJson() => { + if (requireLicensed != null) 'requireLicensed': requireLicensed!, + }; +} + +/// A settings object specifying application integrity requirements for Android +/// devices running your app. +/// +/// These settings correspond to requirements on the \[**application integrity** +/// field\](https://developer.android.com/google/play/integrity/verdicts#application-integrity-field) +/// obtained from the Play Integrity API. See the +/// [default responses table](https://developer.android.com/google/play/integrity/setup#default) +/// for a quick summary. The default values for these settings work for most +/// apps, and are recommended. +class GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity { + /// Specifies whether your running app is allowed to have the + /// `UNRECOGNIZED_VERSION` + /// [app recognition verdict](https://developer.android.com/google/play/integrity/verdicts#application-integrity-field). + /// + /// Note that the app recognition verdict `PLAY_RECOGNIZED` is a strong, + /// comprehensive integrity signal that takes into account various other + /// signals, including conditional and optional device integrity responses + /// that you have opted into. If your app is published off-Play, this field + /// should be set to `true` to allow instances of your app installed from + /// off-Play sources to function. If set to `false`, only `PLAY_RECOGNIZED` + /// verdicts are allowed, and both `UNRECOGNIZED_VERSION` and `UNEVALUATED` + /// will be rejected. If set to `true`, any app recognition verdict is + /// allowed. The default value is `false`. + core.bool? allowUnrecognizedVersion; + + GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity({ + this.allowUnrecognizedVersion, + }); + + GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity.fromJson( + core.Map json_, + ) : this( + allowUnrecognizedVersion: + json_['allowUnrecognizedVersion'] as core.bool?, + ); + + core.Map toJson() => { + if (allowUnrecognizedVersion != null) + 'allowUnrecognizedVersion': allowUnrecognizedVersion!, + }; +} + +/// A settings object specifying device integrity requirements for Android +/// devices running your app. +/// +/// These settings correspond to requirements on the \[**device integrity** +/// field\](https://developer.android.com/google/play/integrity/verdicts#device-integrity-field) +/// obtained from the Play Integrity API. See the +/// [default responses table](https://developer.android.com/google/play/integrity/setup#default) +/// for a quick summary. Warning: There are also +/// [conditional](https://developer.android.com/google/play/integrity/setup#conditional) +/// as well as +/// [optional](https://developer.android.com/google/play/integrity/setup#optional_device_information) +/// responses that you can receive, but requires additional explicit opt-in from +/// you. The App Check API is **not** responsible for any such opt-ins. The +/// default values for these settings work for most apps, and are recommended. +class GoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity { + /// Specifies the minimum device integrity level in order for the device to be + /// considered valid. + /// + /// Any device with a device recognition verdict lower than this level will be + /// rejected. If this is unspecified, the default level is `NO_INTEGRITY`. + /// Possible string values are: + /// - "DEVICE_RECOGNITION_LEVEL_UNSPECIFIED" : Default value. Do not specify + /// this value directly. When this default value is detected in a + /// configuration, the `NO_INTEGRITY` default level takes effect. + /// - "NO_INTEGRITY" : If this level is set, no explicit device integrity + /// label requirements will be checked. However, because Play Integrity's + /// other features may perform (and require) their own intrinsic device + /// integrity checks, your `app_integrity` and `account_details` settings may + /// still cause some device integrity checks to be performed. + /// - "MEETS_BASIC_INTEGRITY" : This level corresponds to the + /// `MEETS_BASIC_INTEGRITY` + /// [optional device recognition label](https://developer.android.com/google/play/integrity/verdicts#optional-device-labels). + /// This value represents the most basic level of device integrity, and is the + /// minimum allowed in App Check's standard implementation of Play Integrity. + /// Warning: Because this is an optional response, you **must** first + /// explicitly + /// [opt in your app in the Play Console](https://developer.android.com/google/play/integrity/setup#optional) + /// in order to receive this label. Without this opt-in, **your app may + /// break** for any user whose device is eligible for `MEETS_BASIC_INTEGRITY` + /// but not `MEETS_DEVICE_INTEGRITY`. This API is **not** responsible for any + /// such opt-ins. + /// - "MEETS_DEVICE_INTEGRITY" : This level corresponds to the + /// `MEETS_DEVICE_INTEGRITY` + /// [device recognition verdict](https://developer.android.com/google/play/integrity/verdicts#device-integrity-field). + /// Any app integrated with Play Integrity will automatically be eligible to + /// receive this label without any additional action from you. At this level, + /// devices that have the `MEETS_BASIC_INTEGRITY` label but **not** the + /// `MEETS_DEVICE_INTEGRITY` label will be rejected. + /// - "MEETS_STRONG_INTEGRITY" : This level corresponds to the + /// `MEETS_STRONG_INTEGRITY` + /// [optional device recognition label](https://developer.android.com/google/play/integrity/verdicts#optional-device-labels). + /// This value represents the highest level of device integrity. At this + /// level, devices that have the `MEETS_BASIC_INTEGRITY` or + /// `MEETS_DEVICE_INTEGRITY` but **not** the `MEETS_STRONG_INTEGRITY` label + /// will be rejected. Warning: Because this is an optional response, you + /// **must** first explicitly + /// [opt in your app in the Play Console](https://developer.android.com/google/play/integrity/setup#optional) + /// in order to receive this label. Without this opt-in, **your app may + /// break** for any user whose device is eligible for + /// `MEETS_STRONG_INTEGRITY`. This API is **not** responsible for any such + /// opt-ins. + core.String? minDeviceRecognitionLevel; + + GoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity({ + this.minDeviceRecognitionLevel, + }); + + GoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity.fromJson( + core.Map json_, + ) : this( + minDeviceRecognitionLevel: + json_['minDeviceRecognitionLevel'] as core.String?, + ); + + core.Map toJson() => { + if (minDeviceRecognitionLevel != null) + 'minDeviceRecognitionLevel': minDeviceRecognitionLevel!, + }; +} + /// A JWK as specified by /// [section 4 of RFC 7517](https://tools.ietf.org/html/rfc7517#section-4) and /// [section 6.3.1 of RFC 7518](https://tools.ietf.org/html/rfc7518#section-6.3.1). @@ -4416,6 +4641,14 @@ class GoogleFirebaseAppcheckV1betaPublicJwkSet { /// tokens issued to apps by reCAPTCHA v3. It also controls certain properties /// of the returned `AppCheckToken`, such as its ttl. class GoogleFirebaseAppcheckV1betaRecaptchaConfig { + /// Specifies a minimum score required for a reCAPTCHA token to be considered + /// valid. + /// + /// If its score is greater than or equal to this value, it will be accepted; + /// otherwise, it will be rejected. The value must be between 0.0 and 1.0. The + /// default value is 0.5. + core.double? minValidScore; + /// The relative resource name of the reCAPTCHA v3 configuration object, in /// the format: ``` projects/{project_number}/apps/{app_id}/recaptchaConfig /// ``` @@ -4448,6 +4681,7 @@ class GoogleFirebaseAppcheckV1betaRecaptchaConfig { core.String? tokenTtl; GoogleFirebaseAppcheckV1betaRecaptchaConfig({ + this.minValidScore, this.name, this.siteSecret, this.siteSecretSet, @@ -4456,6 +4690,7 @@ class GoogleFirebaseAppcheckV1betaRecaptchaConfig { GoogleFirebaseAppcheckV1betaRecaptchaConfig.fromJson(core.Map json_) : this( + minValidScore: (json_['minValidScore'] as core.num?)?.toDouble(), name: json_['name'] as core.String?, siteSecret: json_['siteSecret'] as core.String?, siteSecretSet: json_['siteSecretSet'] as core.bool?, @@ -4463,6 +4698,7 @@ class GoogleFirebaseAppcheckV1betaRecaptchaConfig { ); core.Map toJson() => { + if (minValidScore != null) 'minValidScore': minValidScore!, if (name != null) 'name': name!, if (siteSecret != null) 'siteSecret': siteSecret!, if (siteSecretSet != null) 'siteSecretSet': siteSecretSet!, @@ -4483,6 +4719,15 @@ class GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig { /// Required. core.String? name; + /// Specifies risk tolerance and requirements for your application. + /// + /// These settings correspond to requirements on the + /// \[**`riskAnalysis`**\](https://cloud.google.com/recaptcha/docs/interpret-assessment-website#interpret_assessment) + /// tuple in the assessment obtained from reCAPTCHA Enterprise. The default + /// values for these settings work for most apps, and are recommended. + GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis? + riskAnalysis; + /// The score-based site key /// [created in reCAPTCHA Enterprise](https://cloud.google.com/recaptcha-enterprise/docs/create-key#creating_a_site_key) /// used to @@ -4502,6 +4747,7 @@ class GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig { GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig({ this.name, + this.riskAnalysis, this.siteKey, this.tokenTtl, }); @@ -4509,23 +4755,67 @@ class GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig { GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig.fromJson(core.Map json_) : this( name: json_['name'] as core.String?, + riskAnalysis: + json_.containsKey('riskAnalysis') + ? GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis.fromJson( + json_['riskAnalysis'] as core.Map, + ) + : null, siteKey: json_['siteKey'] as core.String?, tokenTtl: json_['tokenTtl'] as core.String?, ); core.Map toJson() => { if (name != null) 'name': name!, + if (riskAnalysis != null) 'riskAnalysis': riskAnalysis!, if (siteKey != null) 'siteKey': siteKey!, if (tokenTtl != null) 'tokenTtl': tokenTtl!, }; } +/// A settings object specifying risk tolerance and requirements for your +/// application. +/// +/// These settings correspond to requirements on the +/// \[**`riskAnalysis`**\](https://cloud.google.com/recaptcha/docs/interpret-assessment-website#interpret_assessment) +/// tuple in the assessment obtained from reCAPTCHA Enterprise. The default +/// values for these settings work for most apps, and are recommended. +class GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis { + /// Specifies a minimum score required for a reCAPTCHA token to be considered + /// valid. + /// + /// If its score is greater than or equal to this value, it will be accepted; + /// otherwise, it will be rejected. The value must be between 0.0 and 1.0. The + /// default value is 0.5. + core.double? minValidScore; + + GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis({ + this.minValidScore, + }); + + GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis.fromJson( + core.Map json_, + ) : this(minValidScore: (json_['minValidScore'] as core.num?)?.toDouble()); + + core.Map toJson() => { + if (minValidScore != null) 'minValidScore': minValidScore!, + }; +} + /// An app's reCAPTCHA v3 configuration object. /// /// This configuration is used by ExchangeRecaptchaV3Token to validate reCAPTCHA /// tokens issued to apps by reCAPTCHA v3. It also controls certain properties /// of the returned `AppCheckToken`, such as its ttl. class GoogleFirebaseAppcheckV1betaRecaptchaV3Config { + /// Specifies a minimum score required for a reCAPTCHA token to be considered + /// valid. + /// + /// If its score is greater than or equal to this value, it will be accepted; + /// otherwise, it will be rejected. The value must be between 0.0 and 1.0. The + /// default value is 0.5. + core.double? minValidScore; + /// The relative resource name of the reCAPTCHA v3 configuration object, in /// the format: ``` projects/{project_number}/apps/{app_id}/recaptchaV3Config /// ``` @@ -4558,6 +4848,7 @@ class GoogleFirebaseAppcheckV1betaRecaptchaV3Config { core.String? tokenTtl; GoogleFirebaseAppcheckV1betaRecaptchaV3Config({ + this.minValidScore, this.name, this.siteSecret, this.siteSecretSet, @@ -4566,6 +4857,7 @@ class GoogleFirebaseAppcheckV1betaRecaptchaV3Config { GoogleFirebaseAppcheckV1betaRecaptchaV3Config.fromJson(core.Map json_) : this( + minValidScore: (json_['minValidScore'] as core.num?)?.toDouble(), name: json_['name'] as core.String?, siteSecret: json_['siteSecret'] as core.String?, siteSecretSet: json_['siteSecretSet'] as core.bool?, @@ -4573,6 +4865,7 @@ class GoogleFirebaseAppcheckV1betaRecaptchaV3Config { ); core.Map toJson() => { + if (minValidScore != null) 'minValidScore': minValidScore!, if (name != null) 'name': name!, if (siteSecret != null) 'siteSecret': siteSecret!, if (siteSecretSet != null) 'siteSecretSet': siteSecretSet!, diff --git a/generated/googleapis_beta/lib/gkehub/v2alpha.dart b/generated/googleapis_beta/lib/gkehub/v2alpha.dart index 0b3a9cd31..790ff6ca1 100644 --- a/generated/googleapis_beta/lib/gkehub/v2alpha.dart +++ b/generated/googleapis_beta/lib/gkehub/v2alpha.dart @@ -119,9 +119,9 @@ class ProjectsLocationsResource { /// [name] - The resource that owns the locations collection, if applicable. /// Value must have pattern `^projects/\[^/\]+$`. /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. + /// [extraLocationTypes] - Optional. Unless explicitly documented otherwise, + /// don't use this unsupported field which is primarily intended for internal + /// usage. /// /// [filter] - A filter to narrow down results to a preferred subset. The /// filtering language accepts strings like `"displayName=tokyo"`, and is @@ -809,9 +809,6 @@ class ClusterUpgradeUpgradeStatus { /// upgrade doesn't finish within a certain limit, despite it's actual status. /// - "COMPLETE" : The upgrade has passed all post conditions (soaking). At /// the scope level, this means all eligible clusters are in COMPLETE status. - /// - "FORCED_COMPLETE" : The upgrade was forced into soaking and the soaking - /// time has passed. This is the equivalent of COMPLETE status for upgrades - /// that were forced into soaking. core.String? code; /// Reason for this status. @@ -4801,8 +4798,28 @@ class ServiceMeshCondition { /// cluster. /// - "MODERNIZATION_COMPLETED" : Modernization is completed for a cluster. /// - "MODERNIZATION_ABORTED" : Modernization is aborted for a cluster. + /// - "MODERNIZATION_PREPARING" : Preparing cluster so that its workloads can + /// be migrated. + /// - "MODERNIZATION_STALLED" : Modernization is stalled for a cluster. + /// - "MODERNIZATION_PREPARED" : Cluster has been prepared for its workloads + /// to be migrated. + /// - "MODERNIZATION_MIGRATING_WORKLOADS" : Migrating the cluster's workloads + /// to the new implementation. + /// - "MODERNIZATION_ROLLING_BACK_CLUSTER" : Rollback is in progress for + /// modernization of a cluster. /// - "MODERNIZATION_WILL_BE_SCHEDULED" : Modernization will be scheduled for /// a fleet. + /// - "MODERNIZATION_MANUAL" : Fleet is opted out from automated + /// modernization. + /// - "MODERNIZATION_ELIGIBLE" : Fleet is eligible for modernization. + /// - "MODERNIZATION_MODERNIZING" : Modernization of one or more clusters in a + /// fleet is in progress. + /// - "MODERNIZATION_MODERNIZED_SOAKING" : Modernization of all the fleet's + /// clusters is complete. Soaking before finalizing the modernization. + /// - "MODERNIZATION_FINALIZED" : Modernization is finalized for all clusters + /// in a fleet. Rollback is no longer allowed. + /// - "MODERNIZATION_ROLLING_BACK_FLEET" : Rollback is in progress for + /// modernization of all clusters in a fleet. core.String? code; /// A short summary about the issue. @@ -4997,7 +5014,7 @@ class ServiceMeshSpec { /// /// Optional. /// Possible string values are: - /// - "MANAGEMENT_UNSPECIFIED" : Unspecified + /// - "MANAGEMENT_UNSPECIFIED" : Unspecified. /// - "MANAGEMENT_AUTOMATIC" : Google should manage my Service Mesh for the /// cluster. /// - "MANAGEMENT_MANUAL" : User will manually configure their service mesh diff --git a/generated/googleapis_beta/lib/lifesciences/v2beta.dart b/generated/googleapis_beta/lib/lifesciences/v2beta.dart deleted file mode 100644 index 0f9eadfdc..000000000 --- a/generated/googleapis_beta/lib/lifesciences/v2beta.dart +++ /dev/null @@ -1,1521 +0,0 @@ -// This is a generated file (see the discoveryapis_generator project). - -// ignore_for_file: camel_case_types -// ignore_for_file: comment_references -// ignore_for_file: deprecated_member_use_from_same_package -// ignore_for_file: doc_directive_unknown -// ignore_for_file: lines_longer_than_80_chars -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: prefer_interpolation_to_compose_strings -// ignore_for_file: unintended_html_in_doc_comment -// ignore_for_file: unnecessary_brace_in_string_interps -// ignore_for_file: unnecessary_lambdas -// ignore_for_file: unnecessary_string_interpolations - -/// Cloud Life Sciences API - v2beta -/// -/// Cloud Life Sciences is a suite of services and tools for managing, -/// processing, and transforming life sciences data. -/// -/// For more information, see -/// -/// Create an instance of [CloudLifeSciencesApi] to access these resources: -/// -/// - [ProjectsResource] -/// - [ProjectsLocationsResource] -/// - [ProjectsLocationsOperationsResource] -/// - [ProjectsLocationsPipelinesResource] -library; - -import 'dart:async' as async; -import 'dart:convert' as convert; -import 'dart:core' as core; - -import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; -import 'package:http/http.dart' as http; - -import '../shared.dart'; -import '../src/user_agent.dart'; - -export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' - show ApiRequestError, DetailedApiRequestError; - -/// Cloud Life Sciences is a suite of services and tools for managing, -/// processing, and transforming life sciences data. -class CloudLifeSciencesApi { - /// See, edit, configure, and delete your Google Cloud data and see the email - /// address for your Google Account. - static const cloudPlatformScope = - 'https://www.googleapis.com/auth/cloud-platform'; - - final commons.ApiRequester _requester; - - ProjectsResource get projects => ProjectsResource(_requester); - - CloudLifeSciencesApi( - http.Client client, { - core.String rootUrl = 'https://lifesciences.googleapis.com/', - core.String servicePath = '', - }) : _requester = commons.ApiRequester( - client, - rootUrl, - servicePath, - requestHeaders, - ); -} - -class ProjectsResource { - final commons.ApiRequester _requester; - - ProjectsLocationsResource get locations => - ProjectsLocationsResource(_requester); - - ProjectsResource(commons.ApiRequester client) : _requester = client; -} - -class ProjectsLocationsResource { - final commons.ApiRequester _requester; - - ProjectsLocationsOperationsResource get operations => - ProjectsLocationsOperationsResource(_requester); - ProjectsLocationsPipelinesResource get pipelines => - ProjectsLocationsPipelinesResource(_requester); - - ProjectsLocationsResource(commons.ApiRequester client) : _requester = client; - - /// Gets information about a location. - /// - /// Request parameters: - /// - /// [name] - Resource name for the location. - /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Location]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future get(core.String name, {core.String? $fields}) async { - final queryParams_ = >{ - if ($fields != null) 'fields': [$fields], - }; - - final url_ = 'v2beta/' + core.Uri.encodeFull('$name'); - - final response_ = await _requester.request( - url_, - 'GET', - queryParams: queryParams_, - ); - return Location.fromJson(response_ as core.Map); - } - - /// Lists information about the supported locations for this service. - /// - /// Request parameters: - /// - /// [name] - The resource that owns the locations collection, if applicable. - /// Value must have pattern `^projects/\[^/\]+$`. - /// - /// [extraLocationTypes] - Optional. A list of extra location types that - /// should be used as conditions for controlling the visibility of the - /// locations. - /// - /// [filter] - A filter to narrow down results to a preferred subset. The - /// filtering language accepts strings like `"displayName=tokyo"`, and is - /// documented in more detail in \[AIP-160\](https://google.aip.dev/160). - /// - /// [pageSize] - The maximum number of results to return. If not set, the - /// service selects a default. - /// - /// [pageToken] - A page token received from the `next_page_token` field in - /// the response. Send that page token to receive the subsequent page. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [ListLocationsResponse]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future list( - core.String name, { - core.List? extraLocationTypes, - core.String? filter, - core.int? pageSize, - core.String? pageToken, - core.String? $fields, - }) async { - final queryParams_ = >{ - if (extraLocationTypes != null) 'extraLocationTypes': extraLocationTypes, - if (filter != null) 'filter': [filter], - if (pageSize != null) 'pageSize': ['${pageSize}'], - if (pageToken != null) 'pageToken': [pageToken], - if ($fields != null) 'fields': [$fields], - }; - - final url_ = 'v2beta/' + core.Uri.encodeFull('$name') + '/locations'; - - final response_ = await _requester.request( - url_, - 'GET', - queryParams: queryParams_, - ); - return ListLocationsResponse.fromJson( - response_ as core.Map, - ); - } -} - -class ProjectsLocationsOperationsResource { - final commons.ApiRequester _requester; - - ProjectsLocationsOperationsResource(commons.ApiRequester client) - : _requester = client; - - /// Starts asynchronous cancellation on a long-running operation. - /// - /// The server makes a best effort to cancel the operation, but success is not - /// guaranteed. Clients may use Operations.GetOperation or - /// Operations.ListOperations to check whether the cancellation succeeded or - /// the operation completed despite cancellation. Authorization requires the - /// following [Google IAM](https://cloud.google.com/iam) permission: * - /// `lifesciences.operations.cancel` - /// - /// [request] - The metadata request object. - /// - /// Request parameters: - /// - /// [name] - The name of the operation resource to be cancelled. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/operations/\[^/\]+$`. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Empty]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future cancel( - CancelOperationRequest request, - core.String name, { - core.String? $fields, - }) async { - final body_ = convert.json.encode(request); - final queryParams_ = >{ - if ($fields != null) 'fields': [$fields], - }; - - final url_ = 'v2beta/' + core.Uri.encodeFull('$name') + ':cancel'; - - final response_ = await _requester.request( - url_, - 'POST', - body: body_, - queryParams: queryParams_, - ); - return Empty.fromJson(response_ as core.Map); - } - - /// Gets the latest state of a long-running operation. - /// - /// Clients can use this method to poll the operation result at intervals as - /// recommended by the API service. Authorization requires the following - /// [Google IAM](https://cloud.google.com/iam) permission: * - /// `lifesciences.operations.get` - /// - /// Request parameters: - /// - /// [name] - The name of the operation resource. - /// Value must have pattern - /// `^projects/\[^/\]+/locations/\[^/\]+/operations/\[^/\]+$`. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Operation]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future get(core.String name, {core.String? $fields}) async { - final queryParams_ = >{ - if ($fields != null) 'fields': [$fields], - }; - - final url_ = 'v2beta/' + core.Uri.encodeFull('$name'); - - final response_ = await _requester.request( - url_, - 'GET', - queryParams: queryParams_, - ); - return Operation.fromJson(response_ as core.Map); - } - - /// Lists operations that match the specified filter in the request. - /// - /// Authorization requires the following - /// [Google IAM](https://cloud.google.com/iam) permission: * - /// `lifesciences.operations.list` - /// - /// Request parameters: - /// - /// [name] - The name of the operation's parent resource. - /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. - /// - /// [filter] - A string for filtering Operations. The following filter fields - /// are supported: * createTime: The time this job was created * events: The - /// set of event (names) that have occurred while running the pipeline. The : - /// operator can be used to determine if a particular event has occurred. * - /// error: If the pipeline is running, this value is NULL. Once the pipeline - /// finishes, the value is the standard Google error code. * labels.key or - /// labels."key with space" where key is a label key. * done: If the pipeline - /// is running, this value is false. Once the pipeline finishes, the value is - /// true. - /// - /// [pageSize] - The maximum number of results to return. The maximum value is - /// 256. - /// - /// [pageToken] - The standard list page token. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [ListOperationsResponse]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future list( - core.String name, { - core.String? filter, - core.int? pageSize, - core.String? pageToken, - core.String? $fields, - }) async { - final queryParams_ = >{ - if (filter != null) 'filter': [filter], - if (pageSize != null) 'pageSize': ['${pageSize}'], - if (pageToken != null) 'pageToken': [pageToken], - if ($fields != null) 'fields': [$fields], - }; - - final url_ = 'v2beta/' + core.Uri.encodeFull('$name') + '/operations'; - - final response_ = await _requester.request( - url_, - 'GET', - queryParams: queryParams_, - ); - return ListOperationsResponse.fromJson( - response_ as core.Map, - ); - } -} - -class ProjectsLocationsPipelinesResource { - final commons.ApiRequester _requester; - - ProjectsLocationsPipelinesResource(commons.ApiRequester client) - : _requester = client; - - /// Runs a pipeline. - /// - /// The returned Operation's metadata field will contain a - /// google.cloud.lifesciences.v2beta.Metadata object describing the status of - /// the pipeline execution. The response field will contain a - /// google.cloud.lifesciences.v2beta.RunPipelineResponse object if the - /// pipeline completes successfully. **Note:** Before you can use this method, - /// the *Life Sciences Service Agent* must have access to your project. This - /// is done automatically when the Cloud Life Sciences API is first enabled, - /// but if you delete this permission you must disable and re-enable the API - /// to grant the Life Sciences Service Agent the required permissions. - /// Authorization requires the following - /// [Google IAM](https://cloud.google.com/iam/) permission: * - /// `lifesciences.workflows.run` - /// - /// [request] - The metadata request object. - /// - /// Request parameters: - /// - /// [parent] - The project and location that this request should be executed - /// against. - /// Value must have pattern `^projects/\[^/\]+/locations/\[^/\]+$`. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Operation]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future run( - RunPipelineRequest request, - core.String parent, { - core.String? $fields, - }) async { - final body_ = convert.json.encode(request); - final queryParams_ = >{ - if ($fields != null) 'fields': [$fields], - }; - - final url_ = 'v2beta/' + core.Uri.encodeFull('$parent') + '/pipelines:run'; - - final response_ = await _requester.request( - url_, - 'POST', - body: body_, - queryParams: queryParams_, - ); - return Operation.fromJson(response_ as core.Map); - } -} - -/// Carries information about an accelerator that can be attached to a VM. -class Accelerator { - /// How many accelerators of this type to attach. - core.String? count; - - /// The accelerator type string (for example, "nvidia-tesla-t4"). - /// - /// Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is - /// attached, the required runtime libraries will be made available to all - /// containers under `/usr/local/nvidia`. The driver version to install must - /// be specified using the NVIDIA driver version parameter on the virtual - /// machine specification. Note that attaching a GPU increases the worker VM - /// startup time by a few minutes. - core.String? type; - - Accelerator({this.count, this.type}); - - Accelerator.fromJson(core.Map json_) - : this( - count: json_['count'] as core.String?, - type: json_['type'] as core.String?, - ); - - core.Map toJson() => { - if (count != null) 'count': count!, - if (type != null) 'type': type!, - }; -} - -/// Specifies a single action that runs a Docker container. -class Action { - /// By default, after an action fails, no further actions are run. - /// - /// This flag indicates that this action must be run even if the pipeline has - /// already failed. This is useful for actions that copy output files off of - /// the VM or for debugging. Note that no actions will be run if image - /// prefetching fails. - core.bool? alwaysRun; - - /// Prevents the container from accessing the external network. - core.bool? blockExternalNetwork; - - /// If specified, overrides the `CMD` specified in the container. - /// - /// If the container also has an `ENTRYPOINT` the values are used as - /// entrypoint arguments. Otherwise, they are used as a command and arguments - /// to run inside the container. - core.List? commands; - - /// An optional name for the container. - /// - /// The container hostname will be set to this name, making it useful for - /// inter-container communication. The name must contain only upper and - /// lowercase alphanumeric characters and hyphens and cannot start with a - /// hyphen. - core.String? containerName; - - /// If the specified image is hosted on a private registry other than Google - /// Container Registry, the credentials required to pull the image must be - /// specified here as an encrypted secret. - /// - /// The secret must decrypt to a JSON-encoded dictionary containing both - /// `username` and `password` keys. - Secret? credentials; - - /// All container images are typically downloaded before any actions are - /// executed. - /// - /// This helps prevent typos in URIs or issues like lack of disk space from - /// wasting large amounts of compute resources. If set, this flag prevents the - /// worker from downloading the image until just before the action is - /// executed. - core.bool? disableImagePrefetch; - - /// A small portion of the container's standard error stream is typically - /// captured and returned inside the `ContainerStoppedEvent`. - /// - /// Setting this flag disables this functionality. - core.bool? disableStandardErrorCapture; - - /// Enable access to the FUSE device for this action. - /// - /// Filesystems can then be mounted into disks shared with other actions. The - /// other actions do not need the `enable_fuse` flag to access the mounted - /// filesystem. This has the effect of causing the container to be executed - /// with `CAP_SYS_ADMIN` and exposes `/dev/fuse` to the container, so use it - /// only for containers you trust. - core.bool? enableFuse; - - /// The encrypted environment to pass into the container. - /// - /// This environment is merged with values specified in the - /// google.cloud.lifesciences.v2beta.Pipeline message, overwriting any - /// duplicate values. The secret must decrypt to a JSON-encoded dictionary - /// where key-value pairs serve as environment variable names and their - /// values. The decoded environment variables can overwrite the values - /// specified by the `environment` field. - Secret? encryptedEnvironment; - - /// If specified, overrides the `ENTRYPOINT` specified in the container. - core.String? entrypoint; - - /// The environment to pass into the container. - /// - /// This environment is merged with values specified in the - /// google.cloud.lifesciences.v2beta.Pipeline message, overwriting any - /// duplicate values. In addition to the values passed here, a few other - /// values are automatically injected into the environment. These cannot be - /// hidden or overwritten. `GOOGLE_PIPELINE_FAILED` will be set to "1" if the - /// pipeline failed because an action has exited with a non-zero status (and - /// did not have the `IGNORE_EXIT_STATUS` flag set). This can be used to - /// determine if additional debug or logging actions should execute. - /// `GOOGLE_LAST_EXIT_STATUS` will be set to the exit status of the last - /// non-background action that executed. This can be used by workflow engine - /// authors to determine whether an individual action has succeeded or failed. - core.Map? environment; - - /// Normally, a non-zero exit status causes the pipeline to fail. - /// - /// This flag allows execution of other actions to continue instead. - core.bool? ignoreExitStatus; - - /// The URI to pull the container image from. - /// - /// Note that all images referenced by actions in the pipeline are pulled - /// before the first action runs. If multiple actions reference the same - /// image, it is only pulled once, ensuring that the same image is used for - /// all actions in a single pipeline. The image URI can be either a complete - /// host and image specification (e.g., quay.io/biocontainers/samtools), a - /// library and image name (e.g., google/cloud-sdk) or a bare image name - /// ('bash') to pull from the default library. No schema is required in any of - /// these cases. If the specified image is not public, the service account - /// specified for the Virtual Machine must have access to pull the images from - /// GCR, or appropriate credentials must be specified in the - /// google.cloud.lifesciences.v2beta.Action.credentials field. - /// - /// Required. - core.String? imageUri; - - /// Labels to associate with the action. - /// - /// This field is provided to assist workflow engine authors in identifying - /// actions (for example, to indicate what sort of action they perform, such - /// as localization or debugging). They are returned in the operation - /// metadata, but are otherwise ignored. - core.Map? labels; - - /// A list of mounts to make available to the action. - /// - /// In addition to the values specified here, every action has a special - /// virtual disk mounted under `/google` that contains log files and other - /// operational components. - /google/logs All logs written during the - /// pipeline execution. - /google/logs/output The combined standard output and - /// standard error of all actions run as part of the pipeline execution. - - /// /google/logs/action / * /stdout The complete contents of each individual - /// action's standard output. - /google/logs/action / * /stderr The complete - /// contents of each individual action's standard error output. - core.List? mounts; - - /// An optional identifier for a PID namespace to run the action inside. - /// - /// Multiple actions should use the same string to share a namespace. If - /// unspecified, a separate isolated namespace is used. - core.String? pidNamespace; - - /// A map of containers to host port mappings for this container. - /// - /// If the container already specifies exposed ports, use the - /// `PUBLISH_EXPOSED_PORTS` flag instead. The host port number must be less - /// than 65536. If it is zero, an unused random port is assigned. To determine - /// the resulting port number, consult the `ContainerStartedEvent` in the - /// operation metadata. - core.Map? portMappings; - - /// Exposes all ports specified by `EXPOSE` statements in the container. - /// - /// To discover the host side port numbers, consult the `ACTION_STARTED` event - /// in the operation metadata. - core.bool? publishExposedPorts; - - /// This flag allows an action to continue running in the background while - /// executing subsequent actions. - /// - /// This is useful to provide services to other actions (or to provide - /// debugging support tools like SSH servers). - core.bool? runInBackground; - - /// The maximum amount of time to give the action to complete. - /// - /// If the action fails to complete before the timeout, it will be terminated - /// and the exit status will be non-zero. The pipeline will continue or - /// terminate based on the rules defined by the `ALWAYS_RUN` and - /// `IGNORE_EXIT_STATUS` flags. - core.String? timeout; - - Action({ - this.alwaysRun, - this.blockExternalNetwork, - this.commands, - this.containerName, - this.credentials, - this.disableImagePrefetch, - this.disableStandardErrorCapture, - this.enableFuse, - this.encryptedEnvironment, - this.entrypoint, - this.environment, - this.ignoreExitStatus, - this.imageUri, - this.labels, - this.mounts, - this.pidNamespace, - this.portMappings, - this.publishExposedPorts, - this.runInBackground, - this.timeout, - }); - - Action.fromJson(core.Map json_) - : this( - alwaysRun: json_['alwaysRun'] as core.bool?, - blockExternalNetwork: json_['blockExternalNetwork'] as core.bool?, - commands: - (json_['commands'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - containerName: json_['containerName'] as core.String?, - credentials: - json_.containsKey('credentials') - ? Secret.fromJson( - json_['credentials'] as core.Map, - ) - : null, - disableImagePrefetch: json_['disableImagePrefetch'] as core.bool?, - disableStandardErrorCapture: - json_['disableStandardErrorCapture'] as core.bool?, - enableFuse: json_['enableFuse'] as core.bool?, - encryptedEnvironment: - json_.containsKey('encryptedEnvironment') - ? Secret.fromJson( - json_['encryptedEnvironment'] - as core.Map, - ) - : null, - entrypoint: json_['entrypoint'] as core.String?, - environment: (json_['environment'] - as core.Map?) - ?.map((key, value) => core.MapEntry(key, value as core.String)), - ignoreExitStatus: json_['ignoreExitStatus'] as core.bool?, - imageUri: json_['imageUri'] as core.String?, - labels: (json_['labels'] as core.Map?)?.map( - (key, value) => core.MapEntry(key, value as core.String), - ), - mounts: - (json_['mounts'] as core.List?) - ?.map( - (value) => Mount.fromJson( - value as core.Map, - ), - ) - .toList(), - pidNamespace: json_['pidNamespace'] as core.String?, - portMappings: (json_['portMappings'] - as core.Map?) - ?.map((key, value) => core.MapEntry(key, value as core.int)), - publishExposedPorts: json_['publishExposedPorts'] as core.bool?, - runInBackground: json_['runInBackground'] as core.bool?, - timeout: json_['timeout'] as core.String?, - ); - - core.Map toJson() => { - if (alwaysRun != null) 'alwaysRun': alwaysRun!, - if (blockExternalNetwork != null) - 'blockExternalNetwork': blockExternalNetwork!, - if (commands != null) 'commands': commands!, - if (containerName != null) 'containerName': containerName!, - if (credentials != null) 'credentials': credentials!, - if (disableImagePrefetch != null) - 'disableImagePrefetch': disableImagePrefetch!, - if (disableStandardErrorCapture != null) - 'disableStandardErrorCapture': disableStandardErrorCapture!, - if (enableFuse != null) 'enableFuse': enableFuse!, - if (encryptedEnvironment != null) - 'encryptedEnvironment': encryptedEnvironment!, - if (entrypoint != null) 'entrypoint': entrypoint!, - if (environment != null) 'environment': environment!, - if (ignoreExitStatus != null) 'ignoreExitStatus': ignoreExitStatus!, - if (imageUri != null) 'imageUri': imageUri!, - if (labels != null) 'labels': labels!, - if (mounts != null) 'mounts': mounts!, - if (pidNamespace != null) 'pidNamespace': pidNamespace!, - if (portMappings != null) 'portMappings': portMappings!, - if (publishExposedPorts != null) - 'publishExposedPorts': publishExposedPorts!, - if (runInBackground != null) 'runInBackground': runInBackground!, - if (timeout != null) 'timeout': timeout!, - }; -} - -/// The request message for Operations.CancelOperation. -typedef CancelOperationRequest = $Empty; - -/// Carries information about a disk that can be attached to a VM. -/// -/// See https://cloud.google.com/compute/docs/disks/performance for more -/// information about disk type, size, and performance considerations. Specify -/// either `Volume` or `Disk`, but not both. -class Disk { - /// A user-supplied name for the disk. - /// - /// Used when mounting the disk into actions. The name must contain only upper - /// and lowercase alphanumeric characters and hyphens and cannot start with a - /// hyphen. - core.String? name; - - /// The size, in GB, of the disk to attach. - /// - /// If the size is not specified, a default is chosen to ensure reasonable I/O - /// performance. If the disk type is specified as `local-ssd`, multiple local - /// drives are automatically combined to provide the requested size. Note, - /// however, that each physical SSD is 375GB in size, and no more than 8 - /// drives can be attached to a single instance. - core.int? sizeGb; - - /// An optional image to put on the disk before attaching it to the VM. - core.String? sourceImage; - - /// The Compute Engine disk type. - /// - /// If unspecified, `pd-standard` is used. - core.String? type; - - Disk({this.name, this.sizeGb, this.sourceImage, this.type}); - - Disk.fromJson(core.Map json_) - : this( - name: json_['name'] as core.String?, - sizeGb: json_['sizeGb'] as core.int?, - sourceImage: json_['sourceImage'] as core.String?, - type: json_['type'] as core.String?, - ); - - core.Map toJson() => { - if (name != null) 'name': name!, - if (sizeGb != null) 'sizeGb': sizeGb!, - if (sourceImage != null) 'sourceImage': sourceImage!, - if (type != null) 'type': type!, - }; -} - -/// 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); } -typedef Empty = $Empty; - -/// Configuration for an existing disk to be attached to the VM. -class ExistingDisk { - /// If `disk` contains slashes, the Cloud Life Sciences API assumes that it is - /// a complete URL for the disk. - /// - /// If `disk` does not contain slashes, the Cloud Life Sciences API assumes - /// that the disk is a zonal disk and a URL will be generated of the form - /// `zones//disks/`, where `` is the zone in which the instance is allocated. - /// The disk must be ext4 formatted. If all `Mount` references to this disk - /// have the `read_only` flag set to true, the disk will be attached in - /// `read-only` mode and can be shared with other instances. Otherwise, the - /// disk will be available for writing but cannot be shared. - core.String? disk; - - ExistingDisk({this.disk}); - - ExistingDisk.fromJson(core.Map json_) - : this(disk: json_['disk'] as core.String?); - - core.Map toJson() => { - if (disk != null) 'disk': disk!, - }; -} - -/// The response message for Locations.ListLocations. -class ListLocationsResponse { - /// A list of locations that matches the specified filter in the request. - core.List? locations; - - /// The standard List next-page token. - core.String? nextPageToken; - - ListLocationsResponse({this.locations, this.nextPageToken}); - - ListLocationsResponse.fromJson(core.Map json_) - : this( - locations: - (json_['locations'] as core.List?) - ?.map( - (value) => Location.fromJson( - value as core.Map, - ), - ) - .toList(), - nextPageToken: json_['nextPageToken'] as core.String?, - ); - - core.Map toJson() => { - if (locations != null) 'locations': locations!, - if (nextPageToken != null) 'nextPageToken': nextPageToken!, - }; -} - -/// The response message for Operations.ListOperations. -class ListOperationsResponse { - /// The standard List next-page token. - core.String? nextPageToken; - - /// A list of operations that matches the specified filter in the request. - core.List? operations; - - ListOperationsResponse({this.nextPageToken, this.operations}); - - ListOperationsResponse.fromJson(core.Map json_) - : this( - nextPageToken: json_['nextPageToken'] as core.String?, - operations: - (json_['operations'] as core.List?) - ?.map( - (value) => Operation.fromJson( - value as core.Map, - ), - ) - .toList(), - ); - - core.Map toJson() => { - if (nextPageToken != null) 'nextPageToken': nextPageToken!, - if (operations != null) 'operations': operations!, - }; -} - -/// A resource that represents a Google Cloud location. -typedef Location = $Location; - -/// Carries information about a particular disk mount inside a container. -class Mount { - /// The name of the disk to mount, as specified in the resources section. - core.String? disk; - - /// The path to mount the disk inside the container. - core.String? path; - - /// If true, the disk is mounted read-only inside the container. - core.bool? readOnly; - - Mount({this.disk, this.path, this.readOnly}); - - Mount.fromJson(core.Map json_) - : this( - disk: json_['disk'] as core.String?, - path: json_['path'] as core.String?, - readOnly: json_['readOnly'] as core.bool?, - ); - - core.Map toJson() => { - if (disk != null) 'disk': disk!, - if (path != null) 'path': path!, - if (readOnly != null) 'readOnly': readOnly!, - }; -} - -/// Configuration for an `NFSMount` to be attached to the VM. -class NFSMount { - /// A target NFS mount. - /// - /// The target must be specified as \`address:/mount". - core.String? target; - - NFSMount({this.target}); - - NFSMount.fromJson(core.Map json_) - : this(target: json_['target'] as core.String?); - - core.Map toJson() => { - if (target != null) 'target': target!, - }; -} - -/// VM networking options. -class Network { - /// The network name to attach the VM's network interface to. - /// - /// The value will be prefixed with `global/networks/` unless it contains a - /// `/`, in which case it is assumed to be a fully specified network resource - /// URL. If unspecified, the global default network is used. - core.String? network; - - /// If the specified network is configured for custom subnet creation, the - /// name of the subnetwork to attach the instance to must be specified here. - /// - /// The value is prefixed with `regions / * /subnetworks/` unless it contains - /// a `/`, in which case it is assumed to be a fully specified subnetwork - /// resource URL. If the `*` character appears in the value, it is replaced - /// with the region that the virtual machine has been allocated in. - core.String? subnetwork; - - /// If set to true, do not attach a public IP address to the VM. - /// - /// Note that without a public IP address, additional configuration is - /// required to allow the VM to access Google services. See - /// https://cloud.google.com/vpc/docs/configure-private-google-access for more - /// information. - core.bool? usePrivateAddress; - - Network({this.network, this.subnetwork, this.usePrivateAddress}); - - Network.fromJson(core.Map json_) - : this( - network: json_['network'] as core.String?, - subnetwork: json_['subnetwork'] as core.String?, - usePrivateAddress: json_['usePrivateAddress'] as core.bool?, - ); - - core.Map toJson() => { - if (network != null) 'network': network!, - if (subnetwork != null) 'subnetwork': subnetwork!, - if (usePrivateAddress != null) 'usePrivateAddress': usePrivateAddress!, - }; -} - -/// This resource represents a long-running operation that is the result of a -/// network API call. -class Operation { - /// If the value is `false`, it means the operation is still in progress. - /// - /// If `true`, the operation is completed, and either `error` or `response` is - /// available. - core.bool? done; - - /// The error result of the operation in case of failure or cancellation. - Status? error; - - /// An Metadata object. - /// - /// This will always be returned with the Operation. - /// - /// The values for Object must be JSON objects. It can consist of `num`, - /// `String`, `bool` and `null` as well as `Map` and `List` values. - core.Map? metadata; - - /// The server-assigned name for the operation. - /// - /// This may be passed to the other operation methods to retrieve information - /// about the operation's status. - core.String? name; - - /// An Empty object. - /// - /// The values for Object must be JSON objects. It can consist of `num`, - /// `String`, `bool` and `null` as well as `Map` and `List` values. - core.Map? response; - - Operation({this.done, this.error, this.metadata, this.name, this.response}); - - Operation.fromJson(core.Map json_) - : this( - done: json_['done'] as core.bool?, - error: - json_.containsKey('error') - ? Status.fromJson( - json_['error'] as core.Map, - ) - : null, - metadata: - json_.containsKey('metadata') - ? json_['metadata'] as core.Map - : null, - name: json_['name'] as core.String?, - response: - json_.containsKey('response') - ? json_['response'] as core.Map - : null, - ); - - core.Map toJson() => { - if (done != null) 'done': done!, - if (error != null) 'error': error!, - if (metadata != null) 'metadata': metadata!, - if (name != null) 'name': name!, - if (response != null) 'response': response!, - }; -} - -/// Configuration for a persistent disk to be attached to the VM. -/// -/// See https://cloud.google.com/compute/docs/disks/performance for more -/// information about disk type, size, and performance considerations. -class PersistentDisk { - /// The size, in GB, of the disk to attach. - /// - /// If the size is not specified, a default is chosen to ensure reasonable I/O - /// performance. If the disk type is specified as `local-ssd`, multiple local - /// drives are automatically combined to provide the requested size. Note, - /// however, that each physical SSD is 375GB in size, and no more than 8 - /// drives can be attached to a single instance. - core.int? sizeGb; - - /// An image to put on the disk before attaching it to the VM. - core.String? sourceImage; - - /// The Compute Engine disk type. - /// - /// If unspecified, `pd-standard` is used. - core.String? type; - - PersistentDisk({this.sizeGb, this.sourceImage, this.type}); - - PersistentDisk.fromJson(core.Map json_) - : this( - sizeGb: json_['sizeGb'] as core.int?, - sourceImage: json_['sourceImage'] as core.String?, - type: json_['type'] as core.String?, - ); - - core.Map toJson() => { - if (sizeGb != null) 'sizeGb': sizeGb!, - if (sourceImage != null) 'sourceImage': sourceImage!, - if (type != null) 'type': type!, - }; -} - -/// Specifies a series of actions to execute, expressed as Docker containers. -class Pipeline { - /// The list of actions to execute, in the order they are specified. - core.List? actions; - - /// The encrypted environment to pass into every action. - /// - /// Each action can also specify its own encrypted environment. The secret - /// must decrypt to a JSON-encoded dictionary where key-value pairs serve as - /// environment variable names and their values. The decoded environment - /// variables can overwrite the values specified by the `environment` field. - Secret? encryptedEnvironment; - - /// The environment to pass into every action. - /// - /// Each action can also specify additional environment variables but cannot - /// delete an entry from this map (though they can overwrite it with a - /// different value). - core.Map? environment; - - /// The resources required for execution. - Resources? resources; - - /// The maximum amount of time to give the pipeline to complete. - /// - /// This includes the time spent waiting for a worker to be allocated. If the - /// pipeline fails to complete before the timeout, it will be cancelled and - /// the error code will be set to DEADLINE_EXCEEDED. If unspecified, it will - /// default to 7 days. - core.String? timeout; - - Pipeline({ - this.actions, - this.encryptedEnvironment, - this.environment, - this.resources, - this.timeout, - }); - - Pipeline.fromJson(core.Map json_) - : this( - actions: - (json_['actions'] as core.List?) - ?.map( - (value) => Action.fromJson( - value as core.Map, - ), - ) - .toList(), - encryptedEnvironment: - json_.containsKey('encryptedEnvironment') - ? Secret.fromJson( - json_['encryptedEnvironment'] - as core.Map, - ) - : null, - environment: (json_['environment'] - as core.Map?) - ?.map((key, value) => core.MapEntry(key, value as core.String)), - resources: - json_.containsKey('resources') - ? Resources.fromJson( - json_['resources'] as core.Map, - ) - : null, - timeout: json_['timeout'] as core.String?, - ); - - core.Map toJson() => { - if (actions != null) 'actions': actions!, - if (encryptedEnvironment != null) - 'encryptedEnvironment': encryptedEnvironment!, - if (environment != null) 'environment': environment!, - if (resources != null) 'resources': resources!, - if (timeout != null) 'timeout': timeout!, - }; -} - -/// The system resources for the pipeline run. -/// -/// At least one zone or region must be specified or the pipeline run will fail. -class Resources { - /// The list of regions allowed for VM allocation. - /// - /// If set, the `zones` field must not be set. - core.List? regions; - - /// The virtual machine specification. - VirtualMachine? virtualMachine; - - /// The list of zones allowed for VM allocation. - /// - /// If set, the `regions` field must not be set. - core.List? zones; - - Resources({this.regions, this.virtualMachine, this.zones}); - - Resources.fromJson(core.Map json_) - : this( - regions: - (json_['regions'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - virtualMachine: - json_.containsKey('virtualMachine') - ? VirtualMachine.fromJson( - json_['virtualMachine'] - as core.Map, - ) - : null, - zones: - (json_['zones'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - ); - - core.Map toJson() => { - if (regions != null) 'regions': regions!, - if (virtualMachine != null) 'virtualMachine': virtualMachine!, - if (zones != null) 'zones': zones!, - }; -} - -/// The arguments to the `RunPipeline` method. -/// -/// The requesting user must have the `iam.serviceAccounts.actAs` permission for -/// the Cloud Life Sciences service account or the request will fail. -class RunPipelineRequest { - /// User-defined labels to associate with the returned operation. - /// - /// These labels are not propagated to any Google Cloud Platform resources - /// used by the operation, and can be modified at any time. To associate - /// labels with resources created while executing the operation, see the - /// appropriate resource message (for example, `VirtualMachine`). - core.Map? labels; - - /// The description of the pipeline to run. - /// - /// Required. - Pipeline? pipeline; - - /// The name of an existing Pub/Sub topic. - /// - /// The server will publish messages to this topic whenever the status of the - /// operation changes. The Life Sciences Service Agent account must have - /// publisher permissions to the specified topic or notifications will not be - /// sent. - core.String? pubSubTopic; - - RunPipelineRequest({this.labels, this.pipeline, this.pubSubTopic}); - - RunPipelineRequest.fromJson(core.Map json_) - : this( - labels: (json_['labels'] as core.Map?)?.map( - (key, value) => core.MapEntry(key, value as core.String), - ), - pipeline: - json_.containsKey('pipeline') - ? Pipeline.fromJson( - json_['pipeline'] as core.Map, - ) - : null, - pubSubTopic: json_['pubSubTopic'] as core.String?, - ); - - core.Map toJson() => { - if (labels != null) 'labels': labels!, - if (pipeline != null) 'pipeline': pipeline!, - if (pubSubTopic != null) 'pubSubTopic': pubSubTopic!, - }; -} - -/// Holds encrypted information that is only decrypted and stored in RAM by the -/// worker VM when running the pipeline. -class Secret { - /// The value of the cipherText response from the `encrypt` method. - /// - /// This field is intentionally unaudited. - core.String? cipherText; - - /// The name of the Cloud KMS key that will be used to decrypt the secret - /// value. - /// - /// The VM service account must have the required permissions and - /// authentication scopes to invoke the `decrypt` method on the specified key. - core.String? keyName; - - Secret({this.cipherText, this.keyName}); - - Secret.fromJson(core.Map json_) - : this( - cipherText: json_['cipherText'] as core.String?, - keyName: json_['keyName'] as core.String?, - ); - - core.Map toJson() => { - if (cipherText != null) 'cipherText': cipherText!, - if (keyName != null) 'keyName': keyName!, - }; -} - -/// Carries information about a Google Cloud service account. -class ServiceAccount { - /// Email address of the service account. - /// - /// If not specified, the default Compute Engine service account for the - /// project will be used. - core.String? email; - - /// List of scopes to be enabled for this service account on the VM, in - /// addition to the cloud-platform API scope that will be added by default. - core.List? scopes; - - ServiceAccount({this.email, this.scopes}); - - ServiceAccount.fromJson(core.Map json_) - : this( - email: json_['email'] as core.String?, - scopes: - (json_['scopes'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - ); - - core.Map toJson() => { - if (email != null) 'email': email!, - if (scopes != null) 'scopes': scopes!, - }; -} - -/// The `Status` type defines a logical error model that is suitable for -/// different programming environments, including REST APIs and RPC APIs. -/// -/// It is used by [gRPC](https://github.com/grpc). Each `Status` message -/// contains three pieces of data: error code, error message, and error details. -/// You can find out more about this error model and how to work with it in the -/// [API Design Guide](https://cloud.google.com/apis/design/errors). -typedef Status = $Status; - -/// Carries information about a Compute Engine VM resource. -class VirtualMachine { - /// The list of accelerators to attach to the VM. - core.List? accelerators; - - /// The size of the boot disk, in GB. - /// - /// The boot disk must be large enough to accommodate all of the Docker images - /// from each action in the pipeline at the same time. If not specified, a - /// small but reasonable default value is used. - core.int? bootDiskSizeGb; - - /// The host operating system image to use. - /// - /// Currently, only Container-Optimized OS images can be used. The default - /// value is `projects/cos-cloud/global/images/family/cos-stable`, which - /// selects the latest stable release of Container-Optimized OS. This option - /// is provided to allow testing against the beta release of the operating - /// system to ensure that the new version does not interact negatively with - /// production pipelines. To test a pipeline against the beta release of - /// Container-Optimized OS, use the value - /// `projects/cos-cloud/global/images/family/cos-beta`. - core.String? bootImage; - - /// The CPU platform to request. - /// - /// An instance based on a newer platform can be allocated, but never one with - /// fewer capabilities. The value of this parameter must be a valid Compute - /// Engine CPU platform name (such as "Intel Skylake"). This parameter is only - /// useful for carefully optimized work loads where the CPU platform has a - /// significant impact. For more information about the effect of this - /// parameter, see - /// https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. - core.String? cpuPlatform; - - /// The list of disks to create and attach to the VM. - /// - /// Specify either the `volumes[]` field or the `disks[]` field, but not both. - core.List? disks; - - /// The Compute Engine Disk Images to use as a Docker cache. - /// - /// The disks will be mounted into the Docker folder in a way that the images - /// present in the cache will not need to be pulled. The digests of the cached - /// images must match those of the tags used or the latest version will still - /// be pulled. The root directory of the ext4 image must contain `image` and - /// `overlay2` directories copied from the Docker directory of a VM where the - /// desired Docker images have already been pulled. Any images pulled that are - /// not cached will be stored on the first cache disk instead of the boot - /// disk. Only a single image is supported. - core.List? dockerCacheImages; - - /// Whether Stackdriver monitoring should be enabled on the VM. - core.bool? enableStackdriverMonitoring; - - /// Optional set of labels to apply to the VM and any attached disk resources. - /// - /// These labels must adhere to the - /// [name and value restrictions](https://cloud.google.com/compute/docs/labeling-resources) - /// on VM labels imposed by Compute Engine. Labels keys with the prefix - /// 'google-' are reserved for use by Google. Labels applied at creation time - /// to the VM. Applied on a best-effort basis to attached disk resources - /// shortly after VM creation. - core.Map? labels; - - /// The machine type of the virtual machine to create. - /// - /// Must be the short name of a standard machine type (such as - /// "n1-standard-1") or a custom machine type (such as "custom-1-4096", where - /// "1" indicates the number of vCPUs and "4096" indicates the memory in MB). - /// See - /// [Creating an instance with a custom machine type](https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create) - /// for more specifications on creating a custom machine type. - /// - /// Required. - core.String? machineType; - - /// The VM network configuration. - Network? network; - - /// The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator. - /// - /// The version specified here must be compatible with the GPU libraries - /// contained in the container being executed, and must be one of the drivers - /// hosted in the `nvidia-drivers-us-public` bucket on Google Cloud Storage. - @core.Deprecated( - 'Not supported. Member documentation may have more information.', - ) - core.String? nvidiaDriverVersion; - - /// If true, allocate a preemptible VM. - core.bool? preemptible; - - /// If specified, the VM will only be allocated inside the matching - /// reservation. - /// - /// It will fail if the VM parameters don't match the reservation. - core.String? reservation; - - /// The service account to install on the VM. - /// - /// This account does not need any permissions other than those required by - /// the pipeline. - ServiceAccount? serviceAccount; - - /// The list of disks and other storage to create or attach to the VM. - /// - /// Specify either the `volumes[]` field or the `disks[]` field, but not both. - core.List? volumes; - - VirtualMachine({ - this.accelerators, - this.bootDiskSizeGb, - this.bootImage, - this.cpuPlatform, - this.disks, - this.dockerCacheImages, - this.enableStackdriverMonitoring, - this.labels, - this.machineType, - this.network, - this.nvidiaDriverVersion, - this.preemptible, - this.reservation, - this.serviceAccount, - this.volumes, - }); - - VirtualMachine.fromJson(core.Map json_) - : this( - accelerators: - (json_['accelerators'] as core.List?) - ?.map( - (value) => Accelerator.fromJson( - value as core.Map, - ), - ) - .toList(), - bootDiskSizeGb: json_['bootDiskSizeGb'] as core.int?, - bootImage: json_['bootImage'] as core.String?, - cpuPlatform: json_['cpuPlatform'] as core.String?, - disks: - (json_['disks'] as core.List?) - ?.map( - (value) => Disk.fromJson( - value as core.Map, - ), - ) - .toList(), - dockerCacheImages: - (json_['dockerCacheImages'] as core.List?) - ?.map((value) => value as core.String) - .toList(), - enableStackdriverMonitoring: - json_['enableStackdriverMonitoring'] as core.bool?, - labels: (json_['labels'] as core.Map?)?.map( - (key, value) => core.MapEntry(key, value as core.String), - ), - machineType: json_['machineType'] as core.String?, - network: - json_.containsKey('network') - ? Network.fromJson( - json_['network'] as core.Map, - ) - : null, - nvidiaDriverVersion: json_['nvidiaDriverVersion'] as core.String?, - preemptible: json_['preemptible'] as core.bool?, - reservation: json_['reservation'] as core.String?, - serviceAccount: - json_.containsKey('serviceAccount') - ? ServiceAccount.fromJson( - json_['serviceAccount'] - as core.Map, - ) - : null, - volumes: - (json_['volumes'] as core.List?) - ?.map( - (value) => Volume.fromJson( - value as core.Map, - ), - ) - .toList(), - ); - - core.Map toJson() => { - if (accelerators != null) 'accelerators': accelerators!, - if (bootDiskSizeGb != null) 'bootDiskSizeGb': bootDiskSizeGb!, - if (bootImage != null) 'bootImage': bootImage!, - if (cpuPlatform != null) 'cpuPlatform': cpuPlatform!, - if (disks != null) 'disks': disks!, - if (dockerCacheImages != null) 'dockerCacheImages': dockerCacheImages!, - if (enableStackdriverMonitoring != null) - 'enableStackdriverMonitoring': enableStackdriverMonitoring!, - if (labels != null) 'labels': labels!, - if (machineType != null) 'machineType': machineType!, - if (network != null) 'network': network!, - if (nvidiaDriverVersion != null) - 'nvidiaDriverVersion': nvidiaDriverVersion!, - if (preemptible != null) 'preemptible': preemptible!, - if (reservation != null) 'reservation': reservation!, - if (serviceAccount != null) 'serviceAccount': serviceAccount!, - if (volumes != null) 'volumes': volumes!, - }; -} - -/// Carries information about storage that can be attached to a VM. -/// -/// Specify either `Volume` or `Disk`, but not both. -class Volume { - /// Configuration for a existing disk. - ExistingDisk? existingDisk; - - /// Configuration for an NFS mount. - NFSMount? nfsMount; - - /// Configuration for a persistent disk. - PersistentDisk? persistentDisk; - - /// A user-supplied name for the volume. - /// - /// Used when mounting the volume into `Actions`. The name must contain only - /// upper and lowercase alphanumeric characters and hyphens and cannot start - /// with a hyphen. - core.String? volume; - - Volume({this.existingDisk, this.nfsMount, this.persistentDisk, this.volume}); - - Volume.fromJson(core.Map json_) - : this( - existingDisk: - json_.containsKey('existingDisk') - ? ExistingDisk.fromJson( - json_['existingDisk'] as core.Map, - ) - : null, - nfsMount: - json_.containsKey('nfsMount') - ? NFSMount.fromJson( - json_['nfsMount'] as core.Map, - ) - : null, - persistentDisk: - json_.containsKey('persistentDisk') - ? PersistentDisk.fromJson( - json_['persistentDisk'] - as core.Map, - ) - : null, - volume: json_['volume'] as core.String?, - ); - - core.Map toJson() => { - if (existingDisk != null) 'existingDisk': existingDisk!, - if (nfsMount != null) 'nfsMount': nfsMount!, - if (persistentDisk != null) 'persistentDisk': persistentDisk!, - if (volume != null) 'volume': volume!, - }; -} diff --git a/generated/googleapis_beta/lib/shared.dart b/generated/googleapis_beta/lib/shared.dart index db6461d6c..2dfe09df2 100644 --- a/generated/googleapis_beta/lib/shared.dart +++ b/generated/googleapis_beta/lib/shared.dart @@ -965,8 +965,6 @@ class $DimensionValue { /// - gkehub:v2alpha : CancelOperationRequest /// - gkehub:v2alpha : Empty /// - gkehub:v2alpha : RBACRoleBindingActuationSpec -/// - lifesciences:v2beta : CancelOperationRequest -/// - lifesciences:v2beta : Empty /// - prod_tt_sasportal:v1alpha1 : SasPortalEmpty /// - prod_tt_sasportal:v1alpha1 : SasPortalGenerateSecretRequest /// - prod_tt_sasportal:v1alpha1 : SasPortalValidateInstallerResponse @@ -1205,7 +1203,6 @@ class $KeyEventDefaultValue { /// /// - datastream:v1alpha1 : Location /// - gkehub:v2alpha : Location -/// - lifesciences:v2beta : Location class $Location { /// The friendly name for this location, typically a nearby city name. /// @@ -2556,7 +2553,6 @@ class $Shared { /// - datastream:v1alpha1 : Status /// - firebase:v1beta1 : Status /// - gkehub:v2alpha : GoogleRpcStatus -/// - lifesciences:v2beta : Status /// - prod_tt_sasportal:v1alpha1 : SasPortalStatus /// - recommendationengine:v1beta1 : GoogleRpcStatus /// - sasportal:v1alpha1 : SasPortalStatus diff --git a/generated/googleapis_beta/lib/sqladmin/v1beta4.dart b/generated/googleapis_beta/lib/sqladmin/v1beta4.dart index f705b381d..98d168dd4 100644 --- a/generated/googleapis_beta/lib/sqladmin/v1beta4.dart +++ b/generated/googleapis_beta/lib/sqladmin/v1beta4.dart @@ -1455,6 +1455,57 @@ class InstancesResource { return Operation.fromJson(response_ as core.Map); } + /// Execute SQL statements. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [project] - Required. Project ID of the project that contains the + /// instance. + /// + /// [instance] - Required. Database instance ID. This does not include the + /// project ID. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [SqlInstancesExecuteSqlResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future executeSql( + ExecuteSqlPayload request, + core.String project, + core.String instance, { + core.String? $fields, + }) async { + final body_ = convert.json.encode(request); + final queryParams_ = >{ + if ($fields != null) 'fields': [$fields], + }; + + final url_ = + 'sql/v1beta4/projects/' + + commons.escapeVariable('$project') + + '/instances/' + + commons.escapeVariable('$instance') + + '/executeSql'; + + final response_ = await _requester.request( + url_, + 'POST', + body: body_, + queryParams: queryParams_, + ); + return SqlInstancesExecuteSqlResponse.fromJson( + response_ as core.Map, + ); + } + /// Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL /// dump or CSV file. /// @@ -2054,6 +2105,14 @@ class InstancesResource { /// /// [instance] - Cloud SQL instance ID. This does not include the project ID. /// + /// [mode] - Optional. Reset SSL mode to use. + /// Possible string values are: + /// - "RESET_SSL_MODE_UNSPECIFIED" : Reset SSL mode is not specified. + /// - "ALL" : Refresh all TLS configs. This is the default behaviour. + /// - "SYNC_FROM_PRIMARY" : Refreshes the replication-related TLS + /// configuration settings provided by the primary instance. Not applicable to + /// on-premises replication instances. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -2067,9 +2126,11 @@ class InstancesResource { async.Future resetSslConfig( core.String project, core.String instance, { + core.String? mode, core.String? $fields, }) async { final queryParams_ = >{ + if (mode != null) 'mode': [mode], if ($fields != null) 'fields': [$fields], }; @@ -2667,6 +2728,10 @@ class ProjectsInstancesResource { /// /// [instance] - Cloud SQL instance ID. This does not include the project ID. /// + /// [sourceInstanceDeletionTime] - The timestamp used to identify the time + /// when the source instance is deleted. If this instance is deleted, then you + /// must set the timestamp. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -2680,9 +2745,12 @@ class ProjectsInstancesResource { async.Future getLatestRecoveryTime( core.String project, core.String instance, { + core.String? sourceInstanceDeletionTime, core.String? $fields, }) async { final queryParams_ = >{ + if (sourceInstanceDeletionTime != null) + 'sourceInstanceDeletionTime': [sourceInstanceDeletionTime], if ($fields != null) 'fields': [$fields], }; @@ -3652,8 +3720,6 @@ class AvailableDatabaseVersion { } /// A backup resource. -/// -/// Next ID: 30 class Backup { /// This output contains the following values: start_time: All database writes /// up to this time are available. @@ -4581,6 +4647,12 @@ class CloneContext { /// Optional. core.String? preferredZone; + /// The timestamp used to identify the time when the source instance is + /// deleted. + /// + /// If this instance is deleted, then you must set the timestamp. + core.String? sourceInstanceDeletionTime; + CloneContext({ this.allocatedIpRange, this.binLogCoordinates, @@ -4591,6 +4663,7 @@ class CloneContext { this.pointInTime, this.preferredSecondaryZone, this.preferredZone, + this.sourceInstanceDeletionTime, }); CloneContext.fromJson(core.Map json_) @@ -4614,6 +4687,8 @@ class CloneContext { pointInTime: json_['pointInTime'] as core.String?, preferredSecondaryZone: json_['preferredSecondaryZone'] as core.String?, preferredZone: json_['preferredZone'] as core.String?, + sourceInstanceDeletionTime: + json_['sourceInstanceDeletionTime'] as core.String?, ); core.Map toJson() => { @@ -4628,6 +4703,30 @@ class CloneContext { if (preferredSecondaryZone != null) 'preferredSecondaryZone': preferredSecondaryZone!, if (preferredZone != null) 'preferredZone': preferredZone!, + if (sourceInstanceDeletionTime != null) + 'sourceInstanceDeletionTime': sourceInstanceDeletionTime!, + }; +} + +/// Contains the name and datatype of a column. +class Column { + /// Name of the column. + core.String? name; + + /// Datatype of the column. + core.String? type; + + Column({this.name, this.type}); + + Column.fromJson(core.Map json_) + : this( + name: json_['name'] as core.String?, + type: json_['type'] as core.String?, + ); + + core.Map toJson() => { + if (name != null) 'name': name!, + if (type != null) 'type': type!, }; } @@ -4819,6 +4918,17 @@ class ConnectSettings { /// This is always `sql#connectSettings`. core.String? kind; + /// mdx_protocol_support controls how the client uses metadata exchange when + /// connecting to the instance. + /// + /// The values in the list representing parts of the MDX protocol that are + /// supported by this instance. When the list is empty, the instance does not + /// support MDX, so the client must not send an MDX request. The default is + /// empty. + /// + /// Optional. Output only. + core.List? mdxProtocolSupport; + /// The number of read pool nodes in a read pool. core.int? nodeCount; @@ -4858,6 +4968,7 @@ class ConnectSettings { this.dnsNames, this.ipAddresses, this.kind, + this.mdxProtocolSupport, this.nodeCount, this.nodes, this.pscEnabled, @@ -4892,6 +5003,10 @@ class ConnectSettings { ) .toList(), kind: json_['kind'] as core.String?, + mdxProtocolSupport: + (json_['mdxProtocolSupport'] as core.List?) + ?.map((value) => value as core.String) + .toList(), nodeCount: json_['nodeCount'] as core.int?, nodes: (json_['nodes'] as core.List?) @@ -4921,6 +5036,7 @@ class ConnectSettings { if (dnsNames != null) 'dnsNames': dnsNames!, if (ipAddresses != null) 'ipAddresses': ipAddresses!, if (kind != null) 'kind': kind!, + if (mdxProtocolSupport != null) 'mdxProtocolSupport': mdxProtocolSupport!, if (nodeCount != null) 'nodeCount': nodeCount!, if (nodes != null) 'nodes': nodes!, if (pscEnabled != null) 'pscEnabled': pscEnabled!, @@ -4940,7 +5056,16 @@ class ConnectionPoolConfig { /// Optional. core.List? flags; - ConnectionPoolConfig({this.connectionPoolingEnabled, this.flags}); + /// Number of connection poolers. + /// + /// Output only. + core.int? poolerCount; + + ConnectionPoolConfig({ + this.connectionPoolingEnabled, + this.flags, + this.poolerCount, + }); ConnectionPoolConfig.fromJson(core.Map json_) : this( @@ -4954,12 +5079,14 @@ class ConnectionPoolConfig { ), ) .toList(), + poolerCount: json_['poolerCount'] as core.int?, ); core.Map toJson() => { if (connectionPoolingEnabled != null) 'connectionPoolingEnabled': connectionPoolingEnabled!, if (flags != null) 'flags': flags!, + if (poolerCount != null) 'poolerCount': poolerCount!, }; } @@ -5167,9 +5294,6 @@ class DatabaseInstance { /// - "EXTERNAL" : On premises instance. core.String? backendType; - /// Clears private network settings when the instance is restored. - core.bool? clearNetwork; - /// Connection name of the Cloud SQL instance used in connection strings. core.String? connectionName; @@ -5529,7 +5653,6 @@ class DatabaseInstance { DatabaseInstance({ this.availableMaintenanceVersions, this.backendType, - this.clearNetwork, this.connectionName, this.createTime, this.currentDiskSize, @@ -5588,7 +5711,6 @@ class DatabaseInstance { ?.map((value) => value as core.String) .toList(), backendType: json_['backendType'] as core.String?, - clearNetwork: json_['clearNetwork'] as core.bool?, connectionName: json_['connectionName'] as core.String?, createTime: json_['createTime'] as core.String?, currentDiskSize: json_['currentDiskSize'] as core.String?, @@ -5748,7 +5870,6 @@ class DatabaseInstance { if (availableMaintenanceVersions != null) 'availableMaintenanceVersions': availableMaintenanceVersions!, if (backendType != null) 'backendType': backendType!, - if (clearNetwork != null) 'clearNetwork': clearNetwork!, if (connectionName != null) 'connectionName': connectionName!, if (createTime != null) 'createTime': createTime!, if (currentDiskSize != null) 'currentDiskSize': currentDiskSize!, @@ -6155,6 +6276,87 @@ class DnsNameMapping { /// (google.protobuf.Empty); } typedef Empty = $Empty; +/// The request payload used to execute SQL statements. +class ExecuteSqlPayload { + /// When set to true, the API caller identity associated with the request is + /// used for database authentication. + /// + /// The API caller must be an IAM user in the database. + /// + /// Optional. + core.bool? autoIamAuthn; + + /// Name of the database on which the statement will be executed. + /// + /// Optional. + core.String? database; + + /// Controls how the API should respond when the SQL execution result exceeds + /// 10 MB. + /// + /// The default mode is to throw an error. + /// + /// Optional. + /// Possible string values are: + /// - "PARTIAL_RESULT_MODE_UNSPECIFIED" : Unspecified mode, effectively the + /// same as `FAIL_PARTIAL_RESULT`. + /// - "FAIL_PARTIAL_RESULT" : Throw an error if the result exceeds 10 MB. + /// Don't return the result. + /// - "ALLOW_PARTIAL_RESULT" : Return a truncated result and set + /// `partial_result` to true if the result exceeds 10 MB. Don't throw an + /// error. + core.String? partialResultMode; + + /// The maximum number of rows returned per SQL statement. + /// + /// Optional. + core.String? rowLimit; + + /// SQL statements to run on the database. + /// + /// It can be a single statement or a sequence of statements separated by + /// semicolons. + /// + /// Required. + core.String? sqlStatement; + + /// The name of an existing database user to connect to the database. + /// + /// When `auto_iam_authn` is set to true, this field is ignored and the API + /// caller's IAM user is used. + /// + /// Optional. + core.String? user; + + ExecuteSqlPayload({ + this.autoIamAuthn, + this.database, + this.partialResultMode, + this.rowLimit, + this.sqlStatement, + this.user, + }); + + ExecuteSqlPayload.fromJson(core.Map json_) + : this( + autoIamAuthn: json_['autoIamAuthn'] as core.bool?, + database: json_['database'] as core.String?, + partialResultMode: json_['partialResultMode'] as core.String?, + rowLimit: json_['rowLimit'] as core.String?, + sqlStatement: json_['sqlStatement'] as core.String?, + user: json_['user'] as core.String?, + ); + + core.Map toJson() => { + if (autoIamAuthn != null) 'autoIamAuthn': autoIamAuthn!, + if (database != null) 'database': database!, + if (partialResultMode != null) 'partialResultMode': partialResultMode!, + if (rowLimit != null) 'rowLimit': rowLimit!, + if (sqlStatement != null) 'sqlStatement': sqlStatement!, + if (user != null) 'user': user!, + }; +} + /// Options for exporting BAK files (SQL Server-only) class ExportContextBakExportOptions { /// Type of this bak file will be export, FULL or DIFF, SQL Server only @@ -6634,6 +6836,31 @@ class FailoverContext { }; } +/// Config used to determine the final backup settings for the instance. +class FinalBackupConfig { + /// Whether the final backup is enabled for the instance. + core.bool? enabled; + + /// The number of days to retain the final backup after the instance deletion. + /// + /// The final backup will be purged at (time_of_instance_deletion + + /// retention_days). + core.int? retentionDays; + + FinalBackupConfig({this.enabled, this.retentionDays}); + + FinalBackupConfig.fromJson(core.Map json_) + : this( + enabled: json_['enabled'] as core.bool?, + retentionDays: json_['retentionDays'] as core.int?, + ); + + core.Map toJson() => { + if (enabled != null) 'enabled': enabled!, + if (retentionDays != null) 'retentionDays': retentionDays!, + }; +} + /// A flag resource. class Flag { /// Use this field if only certain integers are accepted. @@ -7813,6 +8040,14 @@ class InstancesRestoreBackupRequest { /// Parameters required to perform the restore backup operation. RestoreBackupContext? restoreBackupContext; + /// This field has the same purpose as restore_instance_settings, changes any + /// instance settings stored in the backup you are restoring from. + /// + /// With the difference that these fields are cleared in the settings. + /// + /// Optional. + core.List? restoreInstanceClearOverridesFieldNames; + /// By using this parameter, Cloud SQL overrides any instance settings stored /// in the backup you are restoring from. /// @@ -7827,6 +8062,7 @@ class InstancesRestoreBackupRequest { this.backup, this.backupdrBackup, this.restoreBackupContext, + this.restoreInstanceClearOverridesFieldNames, this.restoreInstanceSettings, }); @@ -7841,6 +8077,10 @@ class InstancesRestoreBackupRequest { as core.Map, ) : null, + restoreInstanceClearOverridesFieldNames: + (json_['restoreInstanceClearOverridesFieldNames'] as core.List?) + ?.map((value) => value as core.String) + .toList(), restoreInstanceSettings: json_.containsKey('restoreInstanceSettings') ? DatabaseInstance.fromJson( @@ -7855,6 +8095,9 @@ class InstancesRestoreBackupRequest { if (backupdrBackup != null) 'backupdrBackup': backupdrBackup!, if (restoreBackupContext != null) 'restoreBackupContext': restoreBackupContext!, + if (restoreInstanceClearOverridesFieldNames != null) + 'restoreInstanceClearOverridesFieldNames': + restoreInstanceClearOverridesFieldNames!, if (restoreInstanceSettings != null) 'restoreInstanceSettings': restoreInstanceSettings!, }; @@ -8347,6 +8590,53 @@ class MaintenanceWindow { }; } +/// Represents a notice or warning message from the database. +class Message { + /// The full message string. + /// + /// For PostgreSQL, this is a formatted string that may include severity, + /// code, and the notice/warning message. For MySQL, this contains the warning + /// message. + core.String? message; + + /// The severity of the message (e.g., "NOTICE" for PostgreSQL, "WARNING" for + /// MySQL). + core.String? severity; + + Message({this.message, this.severity}); + + Message.fromJson(core.Map json_) + : this( + message: json_['message'] as core.String?, + severity: json_['severity'] as core.String?, + ); + + core.Map toJson() => { + if (message != null) 'message': message!, + if (severity != null) 'severity': severity!, + }; +} + +/// The additional metadata information regarding the execution of the SQL +/// statements. +class Metadata { + /// The time taken to execute the SQL statements. + core.String? sqlStatementExecutionTime; + + Metadata({this.sqlStatementExecutionTime}); + + Metadata.fromJson(core.Map json_) + : this( + sqlStatementExecutionTime: + json_['sqlStatementExecutionTime'] as core.String?, + ); + + core.Map toJson() => { + if (sqlStatementExecutionTime != null) + 'sqlStatementExecutionTime': sqlStatementExecutionTime!, + }; +} + /// Read-replica configuration specific to MySQL databases. class MySqlReplicaConfiguration { /// PEM representation of the trusted CA's x509 certificate. @@ -9054,7 +9344,6 @@ class PointInTimeRestoreContext { /// [RFC 1035](https://tools.ietf.org/html/rfc1035) standards. Specifically, /// the name must be 1-63 characters long and match the regular expression /// \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. Reserved for future use. - /// http://go/speckle-subnet-picker-clone /// /// Optional. core.String? allocatedIpRange; @@ -9343,6 +9632,107 @@ class PscConfig { }; } +/// QueryResult contains the result of executing a single SQL statement. +class QueryResult { + /// List of columns included in the result. + /// + /// This also includes the data type of the column. + core.List? columns; + + /// Message related to the SQL execution result. + core.String? message; + + /// Set to true if the SQL execution's result is truncated due to size limits. + core.bool? partialResult; + + /// Rows returned by the SQL statement. + core.List? rows; + + QueryResult({this.columns, this.message, this.partialResult, this.rows}); + + QueryResult.fromJson(core.Map json_) + : this( + columns: + (json_['columns'] as core.List?) + ?.map( + (value) => Column.fromJson( + value as core.Map, + ), + ) + .toList(), + message: json_['message'] as core.String?, + partialResult: json_['partialResult'] as core.bool?, + rows: + (json_['rows'] as core.List?) + ?.map( + (value) => Row.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (columns != null) 'columns': columns!, + if (message != null) 'message': message!, + if (partialResult != null) 'partialResult': partialResult!, + if (rows != null) 'rows': rows!, + }; +} + +/// The read pool auto-scale configuration. +class ReadPoolAutoScaleConfig { + /// Indicates whether read pool auto scaling supports scale in operations + /// (removing nodes). + core.bool? disableScaleIn; + + /// Indicates whether read pool auto scaling is enabled. + core.bool? enabled; + + /// Maximum number of read pool nodes to be maintained. + core.int? maxNodeCount; + + /// Minimum number of read pool nodes to be maintained. + core.int? minNodeCount; + + /// Target metrics for read pool auto scaling. + /// + /// Optional. + core.List? targetMetrics; + + ReadPoolAutoScaleConfig({ + this.disableScaleIn, + this.enabled, + this.maxNodeCount, + this.minNodeCount, + this.targetMetrics, + }); + + ReadPoolAutoScaleConfig.fromJson(core.Map json_) + : this( + disableScaleIn: json_['disableScaleIn'] as core.bool?, + enabled: json_['enabled'] as core.bool?, + maxNodeCount: json_['maxNodeCount'] as core.int?, + minNodeCount: json_['minNodeCount'] as core.int?, + targetMetrics: + (json_['targetMetrics'] as core.List?) + ?.map( + (value) => TargetMetric.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (disableScaleIn != null) 'disableScaleIn': disableScaleIn!, + if (enabled != null) 'enabled': enabled!, + if (maxNodeCount != null) 'maxNodeCount': maxNodeCount!, + if (minNodeCount != null) 'minNodeCount': minNodeCount!, + if (targetMetrics != null) 'targetMetrics': targetMetrics!, + }; +} + /// Read-replica configuration for connecting to the primary instance. class ReplicaConfiguration { /// Specifies if a SQL Server replica is a cascadable replica. @@ -9591,6 +9981,30 @@ class RotateServerCertificateContext { }; } +/// Contains the values for a row. +class Row { + /// The values for the row. + core.List? values; + + Row({this.values}); + + Row.fromJson(core.Map json_) + : this( + values: + (json_['values'] as core.List?) + ?.map( + (value) => Value.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (values != null) 'values': values!, + }; +} + /// A list of objects that the user selects for replication from an external /// source instance. class SelectedObjects { @@ -9769,6 +10183,11 @@ class Settings { /// Optional. core.bool? enableGoogleMlIntegration; + /// The final backup configuration for the instance. + /// + /// Optional. + FinalBackupConfig? finalBackupConfig; + /// Insights configuration, for now relevant only for Postgres. InsightsConfig? insightsConfig; @@ -9809,6 +10228,11 @@ class Settings { /// - "PER_USE" : The instance is billed per usage. core.String? pricingPlan; + /// The read pool auto-scale configuration for the instance. + /// + /// Optional. + ReadPoolAutoScaleConfig? readPoolAutoScaleConfig; + /// Configuration value for recreation of replica after certain replication /// lag. /// @@ -9899,6 +10323,7 @@ class Settings { this.edition, this.enableDataplexIntegration, this.enableGoogleMlIntegration, + this.finalBackupConfig, this.insightsConfig, this.ipConfiguration, this.kind, @@ -9906,6 +10331,7 @@ class Settings { this.maintenanceWindow, this.passwordValidationPolicy, this.pricingPlan, + this.readPoolAutoScaleConfig, this.replicationLagMaxSeconds, this.replicationType, this.retainBackupsOnDelete, @@ -9996,6 +10422,13 @@ class Settings { json_['enableDataplexIntegration'] as core.bool?, enableGoogleMlIntegration: json_['enableGoogleMlIntegration'] as core.bool?, + finalBackupConfig: + json_.containsKey('finalBackupConfig') + ? FinalBackupConfig.fromJson( + json_['finalBackupConfig'] + as core.Map, + ) + : null, insightsConfig: json_.containsKey('insightsConfig') ? InsightsConfig.fromJson( @@ -10033,6 +10466,13 @@ class Settings { ) : null, pricingPlan: json_['pricingPlan'] as core.String?, + readPoolAutoScaleConfig: + json_.containsKey('readPoolAutoScaleConfig') + ? ReadPoolAutoScaleConfig.fromJson( + json_['readPoolAutoScaleConfig'] + as core.Map, + ) + : null, replicationLagMaxSeconds: json_['replicationLagMaxSeconds'] as core.int?, replicationType: json_['replicationType'] as core.String?, @@ -10091,6 +10531,7 @@ class Settings { 'enableDataplexIntegration': enableDataplexIntegration!, if (enableGoogleMlIntegration != null) 'enableGoogleMlIntegration': enableGoogleMlIntegration!, + if (finalBackupConfig != null) 'finalBackupConfig': finalBackupConfig!, if (insightsConfig != null) 'insightsConfig': insightsConfig!, if (ipConfiguration != null) 'ipConfiguration': ipConfiguration!, if (kind != null) 'kind': kind!, @@ -10099,6 +10540,8 @@ class Settings { if (passwordValidationPolicy != null) 'passwordValidationPolicy': passwordValidationPolicy!, if (pricingPlan != null) 'pricingPlan': pricingPlan!, + if (readPoolAutoScaleConfig != null) + 'readPoolAutoScaleConfig': readPoolAutoScaleConfig!, if (replicationLagMaxSeconds != null) 'replicationLagMaxSeconds': replicationLagMaxSeconds!, if (replicationType != null) 'replicationType': replicationType!, @@ -10118,23 +10561,72 @@ class Settings { /// Active Directory configuration, relevant only for Cloud SQL for SQL Server. class SqlActiveDirectoryConfig { + /// The secret manager key storing the administrator credential. + /// + /// (e.g., projects/{project}/secrets/{secret}). + /// + /// Optional. + core.String? adminCredentialSecretName; + + /// Domain controller IPv4 addresses used to bootstrap Active Directory. + /// + /// Optional. + core.List? dnsServers; + /// The name of the domain (e.g., mydomain.com). core.String? domain; /// This is always sql#activeDirectoryConfig. core.String? kind; - SqlActiveDirectoryConfig({this.domain, this.kind}); + /// The mode of the Active Directory configuration. + /// + /// Optional. + /// Possible string values are: + /// - "ACTIVE_DIRECTORY_MODE_UNSPECIFIED" : Unspecified mode. + /// - "MANAGED_ACTIVE_DIRECTORY" : Managed Active Directory mode. This is the + /// fallback option to maintain backward compatibility. + /// - "SELF_MANAGED_ACTIVE_DIRECTORY" : Self-managed Active Directory mode. + core.String? mode; + + /// The organizational unit distinguished name. + /// + /// This is the full hierarchical path to the organizational unit. + /// + /// Optional. + core.String? organizationalUnit; + + SqlActiveDirectoryConfig({ + this.adminCredentialSecretName, + this.dnsServers, + this.domain, + this.kind, + this.mode, + this.organizationalUnit, + }); SqlActiveDirectoryConfig.fromJson(core.Map json_) : this( + adminCredentialSecretName: + json_['adminCredentialSecretName'] as core.String?, + dnsServers: + (json_['dnsServers'] as core.List?) + ?.map((value) => value as core.String) + .toList(), domain: json_['domain'] as core.String?, kind: json_['kind'] as core.String?, + mode: json_['mode'] as core.String?, + organizationalUnit: json_['organizationalUnit'] as core.String?, ); core.Map toJson() => { + if (adminCredentialSecretName != null) + 'adminCredentialSecretName': adminCredentialSecretName!, + if (dnsServers != null) 'dnsServers': dnsServers!, if (domain != null) 'domain': domain!, if (kind != null) 'kind': kind!, + if (mode != null) 'mode': mode!, + if (organizationalUnit != null) 'organizationalUnit': organizationalUnit!, }; } @@ -10264,6 +10756,18 @@ class SqlExternalSyncSettingError { /// exist on the source instance. /// - "PSC_ONLY_INSTANCE_WITH_NO_NETWORK_ATTACHMENT_URI" : PSC only /// destination instance does not have a network attachment URI. + /// - "SELECTED_OBJECTS_REFERENCE_UNSELECTED_OBJECTS" : Selected objects + /// reference unselected objects. Based on their object type (foreign key + /// constraint or view), selected objects will fail during migration. + /// - "PROMPT_DELETE_EXISTING" : The migration will delete existing data in + /// the replica; set replica_overwrite_enabled in the request to acknowledge + /// this. This is an error. MySQL only. + /// - "WILL_DELETE_EXISTING" : The migration will delete existing data in the + /// replica; replica_overwrite_enabled was set in the request acknowledging + /// this. This is a warning rather than an error. MySQL only. + /// - "PG_DDL_REPLICATION_INSUFFICIENT_PRIVILEGE" : The replication user is + /// missing specific privileges to setup DDL replication. (e.g. CREATE EVENT + /// TRIGGER, CREATE SCHEMA) for PostgreSQL. core.String? type; SqlExternalSyncSettingError({this.detail, this.kind, this.type}); @@ -10297,6 +10801,58 @@ class SqlInstancesAcquireSsrsLeaseResponse { }; } +/// Execute SQL statements response. +class SqlInstancesExecuteSqlResponse { + /// A list of notices and warnings generated during query execution. + /// + /// For PostgreSQL, this includes all notices and warnings. For MySQL, this + /// includes warnings generated by the last executed statement. To retrieve + /// all warnings for a multi-statement query, `SHOW WARNINGS` must be executed + /// after each statement. + core.List? messages; + + /// The additional metadata information regarding the execution of the SQL + /// statements. + Metadata? metadata; + + /// The list of results after executing all the SQL statements. + core.List? results; + + SqlInstancesExecuteSqlResponse({this.messages, this.metadata, this.results}); + + SqlInstancesExecuteSqlResponse.fromJson(core.Map json_) + : this( + messages: + (json_['messages'] as core.List?) + ?.map( + (value) => Message.fromJson( + value as core.Map, + ), + ) + .toList(), + metadata: + json_.containsKey('metadata') + ? Metadata.fromJson( + json_['metadata'] as core.Map, + ) + : null, + results: + (json_['results'] as core.List?) + ?.map( + (value) => QueryResult.fromJson( + value as core.Map, + ), + ) + .toList(), + ); + + core.Map toJson() => { + if (messages != null) 'messages': messages!, + if (metadata != null) 'metadata': metadata!, + if (results != null) 'results': results!, + }; +} + /// Instance get disk shrink config response. class SqlInstancesGetDiskShrinkConfigResponse { /// This is always `sql#getDiskShrinkConfig`. @@ -10331,6 +10887,9 @@ class SqlInstancesGetDiskShrinkConfigResponse { /// Instance get latest recovery time response. class SqlInstancesGetLatestRecoveryTimeResponse { + /// Timestamp, identifies the earliest recovery time of the source instance. + core.String? earliestRecoveryTime; + /// This is always `sql#getLatestRecoveryTime`. core.String? kind; @@ -10338,17 +10897,21 @@ class SqlInstancesGetLatestRecoveryTimeResponse { core.String? latestRecoveryTime; SqlInstancesGetLatestRecoveryTimeResponse({ + this.earliestRecoveryTime, this.kind, this.latestRecoveryTime, }); SqlInstancesGetLatestRecoveryTimeResponse.fromJson(core.Map json_) : this( + earliestRecoveryTime: json_['earliestRecoveryTime'] as core.String?, kind: json_['kind'] as core.String?, latestRecoveryTime: json_['latestRecoveryTime'] as core.String?, ); core.Map toJson() => { + if (earliestRecoveryTime != null) + 'earliestRecoveryTime': earliestRecoveryTime!, if (kind != null) 'kind': kind!, if (latestRecoveryTime != null) 'latestRecoveryTime': latestRecoveryTime!, }; @@ -10414,6 +10977,16 @@ class SqlInstancesStartExternalSyncRequest { /// MySQL-specific settings for start external sync. MySqlSyncConfig? mysqlSyncConfig; + /// MySQL only. + /// + /// True if end-user has confirmed that this SES call will wipe replica + /// databases overlapping with the proposed selected_objects. If this field is + /// not set and there are both overlapping and additional databases proposed, + /// an error will be returned. + /// + /// Optional. + core.bool? replicaOverwriteEnabled; + /// Whether to skip the verification step (VESS). core.bool? skipVerification; @@ -10443,6 +11016,7 @@ class SqlInstancesStartExternalSyncRequest { SqlInstancesStartExternalSyncRequest({ this.migrationType, this.mysqlSyncConfig, + this.replicaOverwriteEnabled, this.skipVerification, this.syncMode, this.syncParallelLevel, @@ -10458,6 +11032,7 @@ class SqlInstancesStartExternalSyncRequest { as core.Map, ) : null, + replicaOverwriteEnabled: json_['replicaOverwriteEnabled'] as core.bool?, skipVerification: json_['skipVerification'] as core.bool?, syncMode: json_['syncMode'] as core.String?, syncParallelLevel: json_['syncParallelLevel'] as core.String?, @@ -10466,6 +11041,8 @@ class SqlInstancesStartExternalSyncRequest { core.Map toJson() => { if (migrationType != null) 'migrationType': migrationType!, if (mysqlSyncConfig != null) 'mysqlSyncConfig': mysqlSyncConfig!, + if (replicaOverwriteEnabled != null) + 'replicaOverwriteEnabled': replicaOverwriteEnabled!, if (skipVerification != null) 'skipVerification': skipVerification!, if (syncMode != null) 'syncMode': syncMode!, if (syncParallelLevel != null) 'syncParallelLevel': syncParallelLevel!, @@ -11067,6 +11644,28 @@ class SyncFlags { }; } +/// Target metric for read pool auto scaling. +class TargetMetric { + /// The metric name to be used for auto scaling. + core.String? metric; + + /// The target value for the metric. + core.double? targetValue; + + TargetMetric({this.metric, this.targetValue}); + + TargetMetric.fromJson(core.Map json_) + : this( + metric: json_['metric'] as core.String?, + targetValue: (json_['targetValue'] as core.num?)?.toDouble(), + ); + + core.Map toJson() => { + if (metric != null) 'metric': metric!, + if (targetValue != null) 'targetValue': targetValue!, + }; +} + /// A Google Cloud SQL service tier resource. class Tier { /// The maximum disk size of this tier in bytes. @@ -11188,6 +11787,19 @@ class User { /// Optional. core.String? host; + /// Indicates if a group is active or inactive for IAM database + /// authentication. + /// Possible string values are: + /// - "IAM_STATUS_UNSPECIFIED" : The default value for users that are not of + /// type CLOUD_IAM_GROUP. Only CLOUD_IAM_GROUP users will be inactive or + /// active. Users with an IamStatus of IAM_STATUS_UNSPECIFIED will not display + /// whether they are active or inactive as that is not applicable to them. + /// - "INACTIVE" : INACTIVE indicates a group is not available for IAM + /// database authentication. + /// - "ACTIVE" : ACTIVE indicates a group is available for IAM database + /// authentication. + core.String? iamStatus; + /// The name of the Cloud SQL instance. /// /// This does not include the project ID. Can be omitted for *update* because @@ -11234,6 +11846,7 @@ class User { this.dualPasswordType, this.etag, this.host, + this.iamStatus, this.instance, this.kind, this.name, @@ -11249,6 +11862,7 @@ class User { dualPasswordType: json_['dualPasswordType'] as core.String?, etag: json_['etag'] as core.String?, host: json_['host'] as core.String?, + iamStatus: json_['iamStatus'] as core.String?, instance: json_['instance'] as core.String?, kind: json_['kind'] as core.String?, name: json_['name'] as core.String?, @@ -11275,6 +11889,7 @@ class User { if (dualPasswordType != null) 'dualPasswordType': dualPasswordType!, if (etag != null) 'etag': etag!, if (host != null) 'host': host!, + if (iamStatus != null) 'iamStatus': iamStatus!, if (instance != null) 'instance': instance!, if (kind != null) 'kind': kind!, if (name != null) 'name': name!, @@ -11383,3 +11998,25 @@ class UsersListResponse { if (nextPageToken != null) 'nextPageToken': nextPageToken!, }; } + +/// The cell value of the table. +class Value { + /// If cell value is null, then this flag will be set to true. + core.bool? nullValue; + + /// The cell value represented in string format. + core.String? value; + + Value({this.nullValue, this.value}); + + Value.fromJson(core.Map json_) + : this( + nullValue: json_['nullValue'] as core.bool?, + value: json_['value'] as core.String?, + ); + + core.Map toJson() => { + if (nullValue != null) 'nullValue': nullValue!, + if (value != null) 'value': value!, + }; +} diff --git a/generated/googleapis_beta/test/cloudsupport/v2beta_test.dart b/generated/googleapis_beta/test/cloudsupport/v2beta_test.dart index 149823d5d..9d5a4af44 100644 --- a/generated/googleapis_beta/test/cloudsupport/v2beta_test.dart +++ b/generated/googleapis_beta/test/cloudsupport/v2beta_test.dart @@ -1844,6 +1844,59 @@ void main() { }); unittest.group('resource-CasesAttachmentsResource', () { + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = api.CloudSupportApi(mock).cases.attachments; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 7), + unittest.equals('v2beta/'), + ); + pathOffset += 7; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildAttachment()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkAttachment(response as api.Attachment); + }); + unittest.test('method--list', () async { final mock = HttpServerMock(); final res = api.CloudSupportApi(mock).cases.attachments; @@ -1977,6 +2030,59 @@ void main() { checkComment(response as api.Comment); }); + unittest.test('method--get', () async { + final mock = HttpServerMock(); + final res = api.CloudSupportApi(mock).cases.comments; + final arg_name = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 7), + unittest.equals('v2beta/'), + ); + pathOffset += 7; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode(buildComment()); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.get(arg_name, $fields: arg_$fields); + checkComment(response as api.Comment); + }); + unittest.test('method--list', () async { final mock = HttpServerMock(); final res = api.CloudSupportApi(mock).cases.comments; diff --git a/generated/googleapis_beta/test/firebaseappcheck/v1beta_test.dart b/generated/googleapis_beta/test/firebaseappcheck/v1beta_test.dart index a2c2cef71..2fe6b979c 100644 --- a/generated/googleapis_beta/test/firebaseappcheck/v1beta_test.dart +++ b/generated/googleapis_beta/test/firebaseappcheck/v1beta_test.dart @@ -1110,6 +1110,12 @@ buildGoogleFirebaseAppcheckV1betaPlayIntegrityConfig() { final o = api.GoogleFirebaseAppcheckV1betaPlayIntegrityConfig(); buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfig++; if (buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfig < 3) { + o.accountDetails = + buildGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails(); + o.appIntegrity = + buildGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity(); + o.deviceIntegrity = + buildGoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity(); o.name = 'foo'; o.tokenTtl = 'foo'; } @@ -1122,12 +1128,97 @@ void checkGoogleFirebaseAppcheckV1betaPlayIntegrityConfig( ) { buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfig++; if (buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfig < 3) { + checkGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails( + o.accountDetails!, + ); + checkGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity( + o.appIntegrity!, + ); + checkGoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity( + o.deviceIntegrity!, + ); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.tokenTtl!, unittest.equals('foo')); } buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfig--; } +core.int +buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails = 0; +api.GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails +buildGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails() { + final o = api.GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails(); + buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails++; + if (buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails < + 3) { + o.requireLicensed = true; + } + buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails--; + return o; +} + +void checkGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails( + api.GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails o, +) { + buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails++; + if (buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails < + 3) { + unittest.expect(o.requireLicensed!, unittest.isTrue); + } + buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails--; +} + +core.int +buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity = 0; +api.GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity +buildGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity() { + final o = api.GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity(); + buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity++; + if (buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity < + 3) { + o.allowUnrecognizedVersion = true; + } + buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity--; + return o; +} + +void checkGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity( + api.GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity o, +) { + buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity++; + if (buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity < + 3) { + unittest.expect(o.allowUnrecognizedVersion!, unittest.isTrue); + } + buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity--; +} + +core.int +buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity = 0; +api.GoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity +buildGoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity() { + final o = + api.GoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity(); + buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity++; + if (buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity < + 3) { + o.minDeviceRecognitionLevel = 'foo'; + } + buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity--; + return o; +} + +void checkGoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity( + api.GoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity o, +) { + buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity++; + if (buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity < + 3) { + unittest.expect(o.minDeviceRecognitionLevel!, unittest.equals('foo')); + } + buildCounterGoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity--; +} + core.int buildCounterGoogleFirebaseAppcheckV1betaPublicJwk = 0; api.GoogleFirebaseAppcheckV1betaPublicJwk buildGoogleFirebaseAppcheckV1betaPublicJwk() { @@ -1199,6 +1290,7 @@ buildGoogleFirebaseAppcheckV1betaRecaptchaConfig() { final o = api.GoogleFirebaseAppcheckV1betaRecaptchaConfig(); buildCounterGoogleFirebaseAppcheckV1betaRecaptchaConfig++; if (buildCounterGoogleFirebaseAppcheckV1betaRecaptchaConfig < 3) { + o.minValidScore = 42.0; o.name = 'foo'; o.siteSecret = 'foo'; o.siteSecretSet = true; @@ -1213,6 +1305,7 @@ void checkGoogleFirebaseAppcheckV1betaRecaptchaConfig( ) { buildCounterGoogleFirebaseAppcheckV1betaRecaptchaConfig++; if (buildCounterGoogleFirebaseAppcheckV1betaRecaptchaConfig < 3) { + unittest.expect(o.minValidScore!, unittest.equals(42.0)); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.siteSecret!, unittest.equals('foo')); unittest.expect(o.siteSecretSet!, unittest.isTrue); @@ -1228,6 +1321,8 @@ buildGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig() { buildCounterGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig++; if (buildCounterGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig < 3) { o.name = 'foo'; + o.riskAnalysis = + buildGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis(); o.siteKey = 'foo'; o.tokenTtl = 'foo'; } @@ -1241,18 +1336,49 @@ void checkGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig( buildCounterGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig++; if (buildCounterGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig < 3) { unittest.expect(o.name!, unittest.equals('foo')); + checkGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis( + o.riskAnalysis!, + ); unittest.expect(o.siteKey!, unittest.equals('foo')); unittest.expect(o.tokenTtl!, unittest.equals('foo')); } buildCounterGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig--; } +core.int +buildCounterGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis = + 0; +api.GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis +buildGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis() { + final o = + api.GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis(); + buildCounterGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis++; + if (buildCounterGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis < + 3) { + o.minValidScore = 42.0; + } + buildCounterGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis--; + return o; +} + +void checkGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis( + api.GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis o, +) { + buildCounterGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis++; + if (buildCounterGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis < + 3) { + unittest.expect(o.minValidScore!, unittest.equals(42.0)); + } + buildCounterGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis--; +} + core.int buildCounterGoogleFirebaseAppcheckV1betaRecaptchaV3Config = 0; api.GoogleFirebaseAppcheckV1betaRecaptchaV3Config buildGoogleFirebaseAppcheckV1betaRecaptchaV3Config() { final o = api.GoogleFirebaseAppcheckV1betaRecaptchaV3Config(); buildCounterGoogleFirebaseAppcheckV1betaRecaptchaV3Config++; if (buildCounterGoogleFirebaseAppcheckV1betaRecaptchaV3Config < 3) { + o.minValidScore = 42.0; o.name = 'foo'; o.siteSecret = 'foo'; o.siteSecretSet = true; @@ -1267,6 +1393,7 @@ void checkGoogleFirebaseAppcheckV1betaRecaptchaV3Config( ) { buildCounterGoogleFirebaseAppcheckV1betaRecaptchaV3Config++; if (buildCounterGoogleFirebaseAppcheckV1betaRecaptchaV3Config < 3) { + unittest.expect(o.minValidScore!, unittest.equals(42.0)); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.siteSecret!, unittest.equals('foo')); unittest.expect(o.siteSecretSet!, unittest.isTrue); @@ -2074,6 +2201,54 @@ void main() { }, ); + unittest.group( + 'obj-schema-GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails.fromJson( + oJson as core.Map, + ); + checkGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAccountDetails(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity.fromJson( + oJson as core.Map, + ); + checkGoogleFirebaseAppcheckV1betaPlayIntegrityConfigAppIntegrity(od); + }); + }, + ); + + unittest.group( + 'obj-schema-GoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity.fromJson( + oJson as core.Map, + ); + checkGoogleFirebaseAppcheckV1betaPlayIntegrityConfigDeviceIntegrity(od); + }); + }, + ); + unittest.group('obj-schema-GoogleFirebaseAppcheckV1betaPublicJwk', () { unittest.test('to-json--from-json', () async { final o = buildGoogleFirebaseAppcheckV1betaPublicJwk(); @@ -2122,6 +2297,24 @@ void main() { }, ); + unittest.group( + 'obj-schema-GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis', + () { + unittest.test('to-json--from-json', () async { + final o = + buildGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api + .GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis.fromJson( + oJson as core.Map, + ); + checkGoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfigRiskAnalysis( + od, + ); + }); + }, + ); + unittest.group( 'obj-schema-GoogleFirebaseAppcheckV1betaRecaptchaV3Config', () { diff --git a/generated/googleapis_beta/test/lifesciences/v2beta_test.dart b/generated/googleapis_beta/test/lifesciences/v2beta_test.dart deleted file mode 100644 index f421bb4be..000000000 --- a/generated/googleapis_beta/test/lifesciences/v2beta_test.dart +++ /dev/null @@ -1,1494 +0,0 @@ -// ignore_for_file: camel_case_types -// ignore_for_file: comment_references -// ignore_for_file: deprecated_member_use_from_same_package -// ignore_for_file: doc_directive_unknown -// ignore_for_file: lines_longer_than_80_chars -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: prefer_const_declarations -// ignore_for_file: prefer_expression_function_bodies -// ignore_for_file: prefer_final_locals -// ignore_for_file: prefer_interpolation_to_compose_strings -// ignore_for_file: unintended_html_in_doc_comment -// ignore_for_file: unnecessary_brace_in_string_interps -// ignore_for_file: unnecessary_cast -// ignore_for_file: unnecessary_lambdas -// ignore_for_file: unnecessary_string_interpolations -// ignore_for_file: unreachable_from_main -// ignore_for_file: unused_local_variable - -import 'dart:async' as async; -import 'dart:convert' as convert; -import 'dart:core' as core; - -import 'package:googleapis_beta/lifesciences/v2beta.dart' as api; -import 'package:http/http.dart' as http; -import 'package:test/test.dart' as unittest; - -import '../test_shared.dart'; - -core.int buildCounterAccelerator = 0; -api.Accelerator buildAccelerator() { - final o = api.Accelerator(); - buildCounterAccelerator++; - if (buildCounterAccelerator < 3) { - o.count = 'foo'; - o.type = 'foo'; - } - buildCounterAccelerator--; - return o; -} - -void checkAccelerator(api.Accelerator o) { - buildCounterAccelerator++; - if (buildCounterAccelerator < 3) { - unittest.expect(o.count!, unittest.equals('foo')); - unittest.expect(o.type!, unittest.equals('foo')); - } - buildCounterAccelerator--; -} - -core.List buildUnnamed0() => ['foo', 'foo']; - -void checkUnnamed0(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.Map buildUnnamed1() => {'x': 'foo', 'y': 'foo'}; - -void checkUnnamed1(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); -} - -core.Map buildUnnamed2() => {'x': 'foo', 'y': 'foo'}; - -void checkUnnamed2(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); -} - -core.List buildUnnamed3() => [buildMount(), buildMount()]; - -void checkUnnamed3(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkMount(o[0]); - checkMount(o[1]); -} - -core.Map buildUnnamed4() => {'x': 42, 'y': 42}; - -void checkUnnamed4(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals(42)); - unittest.expect(o['y']!, unittest.equals(42)); -} - -core.int buildCounterAction = 0; -api.Action buildAction() { - final o = api.Action(); - buildCounterAction++; - if (buildCounterAction < 3) { - o.alwaysRun = true; - o.blockExternalNetwork = true; - o.commands = buildUnnamed0(); - o.containerName = 'foo'; - o.credentials = buildSecret(); - o.disableImagePrefetch = true; - o.disableStandardErrorCapture = true; - o.enableFuse = true; - o.encryptedEnvironment = buildSecret(); - o.entrypoint = 'foo'; - o.environment = buildUnnamed1(); - o.ignoreExitStatus = true; - o.imageUri = 'foo'; - o.labels = buildUnnamed2(); - o.mounts = buildUnnamed3(); - o.pidNamespace = 'foo'; - o.portMappings = buildUnnamed4(); - o.publishExposedPorts = true; - o.runInBackground = true; - o.timeout = 'foo'; - } - buildCounterAction--; - return o; -} - -void checkAction(api.Action o) { - buildCounterAction++; - if (buildCounterAction < 3) { - unittest.expect(o.alwaysRun!, unittest.isTrue); - unittest.expect(o.blockExternalNetwork!, unittest.isTrue); - checkUnnamed0(o.commands!); - unittest.expect(o.containerName!, unittest.equals('foo')); - checkSecret(o.credentials!); - unittest.expect(o.disableImagePrefetch!, unittest.isTrue); - unittest.expect(o.disableStandardErrorCapture!, unittest.isTrue); - unittest.expect(o.enableFuse!, unittest.isTrue); - checkSecret(o.encryptedEnvironment!); - unittest.expect(o.entrypoint!, unittest.equals('foo')); - checkUnnamed1(o.environment!); - unittest.expect(o.ignoreExitStatus!, unittest.isTrue); - unittest.expect(o.imageUri!, unittest.equals('foo')); - checkUnnamed2(o.labels!); - checkUnnamed3(o.mounts!); - unittest.expect(o.pidNamespace!, unittest.equals('foo')); - checkUnnamed4(o.portMappings!); - unittest.expect(o.publishExposedPorts!, unittest.isTrue); - unittest.expect(o.runInBackground!, unittest.isTrue); - unittest.expect(o.timeout!, unittest.equals('foo')); - } - buildCounterAction--; -} - -core.int buildCounterCancelOperationRequest = 0; -api.CancelOperationRequest buildCancelOperationRequest() { - final o = api.CancelOperationRequest(); - buildCounterCancelOperationRequest++; - if (buildCounterCancelOperationRequest < 3) {} - buildCounterCancelOperationRequest--; - return o; -} - -void checkCancelOperationRequest(api.CancelOperationRequest o) { - buildCounterCancelOperationRequest++; - if (buildCounterCancelOperationRequest < 3) {} - buildCounterCancelOperationRequest--; -} - -core.int buildCounterDisk = 0; -api.Disk buildDisk() { - final o = api.Disk(); - buildCounterDisk++; - if (buildCounterDisk < 3) { - o.name = 'foo'; - o.sizeGb = 42; - o.sourceImage = 'foo'; - o.type = 'foo'; - } - buildCounterDisk--; - return o; -} - -void checkDisk(api.Disk o) { - buildCounterDisk++; - if (buildCounterDisk < 3) { - unittest.expect(o.name!, unittest.equals('foo')); - unittest.expect(o.sizeGb!, unittest.equals(42)); - unittest.expect(o.sourceImage!, unittest.equals('foo')); - unittest.expect(o.type!, unittest.equals('foo')); - } - buildCounterDisk--; -} - -core.int buildCounterEmpty = 0; -api.Empty buildEmpty() { - final o = api.Empty(); - buildCounterEmpty++; - if (buildCounterEmpty < 3) {} - buildCounterEmpty--; - return o; -} - -void checkEmpty(api.Empty o) { - buildCounterEmpty++; - if (buildCounterEmpty < 3) {} - buildCounterEmpty--; -} - -core.int buildCounterExistingDisk = 0; -api.ExistingDisk buildExistingDisk() { - final o = api.ExistingDisk(); - buildCounterExistingDisk++; - if (buildCounterExistingDisk < 3) { - o.disk = 'foo'; - } - buildCounterExistingDisk--; - return o; -} - -void checkExistingDisk(api.ExistingDisk o) { - buildCounterExistingDisk++; - if (buildCounterExistingDisk < 3) { - unittest.expect(o.disk!, unittest.equals('foo')); - } - buildCounterExistingDisk--; -} - -core.List buildUnnamed5() => [buildLocation(), buildLocation()]; - -void checkUnnamed5(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkLocation(o[0]); - checkLocation(o[1]); -} - -core.int buildCounterListLocationsResponse = 0; -api.ListLocationsResponse buildListLocationsResponse() { - final o = api.ListLocationsResponse(); - buildCounterListLocationsResponse++; - if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed5(); - o.nextPageToken = 'foo'; - } - buildCounterListLocationsResponse--; - return o; -} - -void checkListLocationsResponse(api.ListLocationsResponse o) { - buildCounterListLocationsResponse++; - if (buildCounterListLocationsResponse < 3) { - checkUnnamed5(o.locations!); - unittest.expect(o.nextPageToken!, unittest.equals('foo')); - } - buildCounterListLocationsResponse--; -} - -core.List buildUnnamed6() => [ - buildOperation(), - buildOperation(), -]; - -void checkUnnamed6(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkOperation(o[0]); - checkOperation(o[1]); -} - -core.int buildCounterListOperationsResponse = 0; -api.ListOperationsResponse buildListOperationsResponse() { - final o = api.ListOperationsResponse(); - buildCounterListOperationsResponse++; - if (buildCounterListOperationsResponse < 3) { - o.nextPageToken = 'foo'; - o.operations = buildUnnamed6(); - } - buildCounterListOperationsResponse--; - return o; -} - -void checkListOperationsResponse(api.ListOperationsResponse o) { - buildCounterListOperationsResponse++; - if (buildCounterListOperationsResponse < 3) { - unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed6(o.operations!); - } - buildCounterListOperationsResponse--; -} - -core.Map buildUnnamed7() => {'x': 'foo', 'y': 'foo'}; - -void checkUnnamed7(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); -} - -core.Map buildUnnamed8() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; - -void checkUnnamed8(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - var casted1 = (o['x']!) as core.Map; - unittest.expect(casted1, unittest.hasLength(3)); - unittest.expect(casted1['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted1['bool'], unittest.equals(true)); - unittest.expect(casted1['string'], unittest.equals('foo')); - var casted2 = (o['y']!) as core.Map; - unittest.expect(casted2, unittest.hasLength(3)); - unittest.expect(casted2['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted2['bool'], unittest.equals(true)); - unittest.expect(casted2['string'], unittest.equals('foo')); -} - -core.int buildCounterLocation = 0; -api.Location buildLocation() { - final o = api.Location(); - buildCounterLocation++; - if (buildCounterLocation < 3) { - o.displayName = 'foo'; - o.labels = buildUnnamed7(); - o.locationId = 'foo'; - o.metadata = buildUnnamed8(); - o.name = 'foo'; - } - buildCounterLocation--; - return o; -} - -void checkLocation(api.Location o) { - buildCounterLocation++; - if (buildCounterLocation < 3) { - unittest.expect(o.displayName!, unittest.equals('foo')); - checkUnnamed7(o.labels!); - unittest.expect(o.locationId!, unittest.equals('foo')); - checkUnnamed8(o.metadata!); - unittest.expect(o.name!, unittest.equals('foo')); - } - buildCounterLocation--; -} - -core.int buildCounterMount = 0; -api.Mount buildMount() { - final o = api.Mount(); - buildCounterMount++; - if (buildCounterMount < 3) { - o.disk = 'foo'; - o.path = 'foo'; - o.readOnly = true; - } - buildCounterMount--; - return o; -} - -void checkMount(api.Mount o) { - buildCounterMount++; - if (buildCounterMount < 3) { - unittest.expect(o.disk!, unittest.equals('foo')); - unittest.expect(o.path!, unittest.equals('foo')); - unittest.expect(o.readOnly!, unittest.isTrue); - } - buildCounterMount--; -} - -core.int buildCounterNFSMount = 0; -api.NFSMount buildNFSMount() { - final o = api.NFSMount(); - buildCounterNFSMount++; - if (buildCounterNFSMount < 3) { - o.target = 'foo'; - } - buildCounterNFSMount--; - return o; -} - -void checkNFSMount(api.NFSMount o) { - buildCounterNFSMount++; - if (buildCounterNFSMount < 3) { - unittest.expect(o.target!, unittest.equals('foo')); - } - buildCounterNFSMount--; -} - -core.int buildCounterNetwork = 0; -api.Network buildNetwork() { - final o = api.Network(); - buildCounterNetwork++; - if (buildCounterNetwork < 3) { - o.network = 'foo'; - o.subnetwork = 'foo'; - o.usePrivateAddress = true; - } - buildCounterNetwork--; - return o; -} - -void checkNetwork(api.Network o) { - buildCounterNetwork++; - if (buildCounterNetwork < 3) { - unittest.expect(o.network!, unittest.equals('foo')); - unittest.expect(o.subnetwork!, unittest.equals('foo')); - unittest.expect(o.usePrivateAddress!, unittest.isTrue); - } - buildCounterNetwork--; -} - -core.Map buildUnnamed9() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; - -void checkUnnamed9(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - var casted3 = (o['x']!) as core.Map; - unittest.expect(casted3, unittest.hasLength(3)); - unittest.expect(casted3['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted3['bool'], unittest.equals(true)); - unittest.expect(casted3['string'], unittest.equals('foo')); - var casted4 = (o['y']!) as core.Map; - unittest.expect(casted4, unittest.hasLength(3)); - unittest.expect(casted4['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted4['bool'], unittest.equals(true)); - unittest.expect(casted4['string'], unittest.equals('foo')); -} - -core.Map buildUnnamed10() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; - -void checkUnnamed10(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - var casted5 = (o['x']!) as core.Map; - unittest.expect(casted5, unittest.hasLength(3)); - unittest.expect(casted5['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted5['bool'], unittest.equals(true)); - unittest.expect(casted5['string'], unittest.equals('foo')); - var casted6 = (o['y']!) as core.Map; - unittest.expect(casted6, unittest.hasLength(3)); - unittest.expect(casted6['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted6['bool'], unittest.equals(true)); - unittest.expect(casted6['string'], unittest.equals('foo')); -} - -core.int buildCounterOperation = 0; -api.Operation buildOperation() { - final o = api.Operation(); - buildCounterOperation++; - if (buildCounterOperation < 3) { - o.done = true; - o.error = buildStatus(); - o.metadata = buildUnnamed9(); - o.name = 'foo'; - o.response = buildUnnamed10(); - } - buildCounterOperation--; - return o; -} - -void checkOperation(api.Operation o) { - buildCounterOperation++; - if (buildCounterOperation < 3) { - unittest.expect(o.done!, unittest.isTrue); - checkStatus(o.error!); - checkUnnamed9(o.metadata!); - unittest.expect(o.name!, unittest.equals('foo')); - checkUnnamed10(o.response!); - } - buildCounterOperation--; -} - -core.int buildCounterPersistentDisk = 0; -api.PersistentDisk buildPersistentDisk() { - final o = api.PersistentDisk(); - buildCounterPersistentDisk++; - if (buildCounterPersistentDisk < 3) { - o.sizeGb = 42; - o.sourceImage = 'foo'; - o.type = 'foo'; - } - buildCounterPersistentDisk--; - return o; -} - -void checkPersistentDisk(api.PersistentDisk o) { - buildCounterPersistentDisk++; - if (buildCounterPersistentDisk < 3) { - unittest.expect(o.sizeGb!, unittest.equals(42)); - unittest.expect(o.sourceImage!, unittest.equals('foo')); - unittest.expect(o.type!, unittest.equals('foo')); - } - buildCounterPersistentDisk--; -} - -core.List buildUnnamed11() => [buildAction(), buildAction()]; - -void checkUnnamed11(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkAction(o[0]); - checkAction(o[1]); -} - -core.Map buildUnnamed12() => {'x': 'foo', 'y': 'foo'}; - -void checkUnnamed12(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); -} - -core.int buildCounterPipeline = 0; -api.Pipeline buildPipeline() { - final o = api.Pipeline(); - buildCounterPipeline++; - if (buildCounterPipeline < 3) { - o.actions = buildUnnamed11(); - o.encryptedEnvironment = buildSecret(); - o.environment = buildUnnamed12(); - o.resources = buildResources(); - o.timeout = 'foo'; - } - buildCounterPipeline--; - return o; -} - -void checkPipeline(api.Pipeline o) { - buildCounterPipeline++; - if (buildCounterPipeline < 3) { - checkUnnamed11(o.actions!); - checkSecret(o.encryptedEnvironment!); - checkUnnamed12(o.environment!); - checkResources(o.resources!); - unittest.expect(o.timeout!, unittest.equals('foo')); - } - buildCounterPipeline--; -} - -core.List buildUnnamed13() => ['foo', 'foo']; - -void checkUnnamed13(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.List buildUnnamed14() => ['foo', 'foo']; - -void checkUnnamed14(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterResources = 0; -api.Resources buildResources() { - final o = api.Resources(); - buildCounterResources++; - if (buildCounterResources < 3) { - o.regions = buildUnnamed13(); - o.virtualMachine = buildVirtualMachine(); - o.zones = buildUnnamed14(); - } - buildCounterResources--; - return o; -} - -void checkResources(api.Resources o) { - buildCounterResources++; - if (buildCounterResources < 3) { - checkUnnamed13(o.regions!); - checkVirtualMachine(o.virtualMachine!); - checkUnnamed14(o.zones!); - } - buildCounterResources--; -} - -core.Map buildUnnamed15() => {'x': 'foo', 'y': 'foo'}; - -void checkUnnamed15(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); -} - -core.int buildCounterRunPipelineRequest = 0; -api.RunPipelineRequest buildRunPipelineRequest() { - final o = api.RunPipelineRequest(); - buildCounterRunPipelineRequest++; - if (buildCounterRunPipelineRequest < 3) { - o.labels = buildUnnamed15(); - o.pipeline = buildPipeline(); - o.pubSubTopic = 'foo'; - } - buildCounterRunPipelineRequest--; - return o; -} - -void checkRunPipelineRequest(api.RunPipelineRequest o) { - buildCounterRunPipelineRequest++; - if (buildCounterRunPipelineRequest < 3) { - checkUnnamed15(o.labels!); - checkPipeline(o.pipeline!); - unittest.expect(o.pubSubTopic!, unittest.equals('foo')); - } - buildCounterRunPipelineRequest--; -} - -core.int buildCounterSecret = 0; -api.Secret buildSecret() { - final o = api.Secret(); - buildCounterSecret++; - if (buildCounterSecret < 3) { - o.cipherText = 'foo'; - o.keyName = 'foo'; - } - buildCounterSecret--; - return o; -} - -void checkSecret(api.Secret o) { - buildCounterSecret++; - if (buildCounterSecret < 3) { - unittest.expect(o.cipherText!, unittest.equals('foo')); - unittest.expect(o.keyName!, unittest.equals('foo')); - } - buildCounterSecret--; -} - -core.List buildUnnamed16() => ['foo', 'foo']; - -void checkUnnamed16(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterServiceAccount = 0; -api.ServiceAccount buildServiceAccount() { - final o = api.ServiceAccount(); - buildCounterServiceAccount++; - if (buildCounterServiceAccount < 3) { - o.email = 'foo'; - o.scopes = buildUnnamed16(); - } - buildCounterServiceAccount--; - return o; -} - -void checkServiceAccount(api.ServiceAccount o) { - buildCounterServiceAccount++; - if (buildCounterServiceAccount < 3) { - unittest.expect(o.email!, unittest.equals('foo')); - checkUnnamed16(o.scopes!); - } - buildCounterServiceAccount--; -} - -core.Map buildUnnamed17() => { - 'x': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, - 'y': { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo', - }, -}; - -void checkUnnamed17(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - var casted7 = (o['x']!) as core.Map; - unittest.expect(casted7, unittest.hasLength(3)); - unittest.expect(casted7['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted7['bool'], unittest.equals(true)); - unittest.expect(casted7['string'], unittest.equals('foo')); - var casted8 = (o['y']!) as core.Map; - unittest.expect(casted8, unittest.hasLength(3)); - unittest.expect(casted8['list'], unittest.equals([1, 2, 3])); - unittest.expect(casted8['bool'], unittest.equals(true)); - unittest.expect(casted8['string'], unittest.equals('foo')); -} - -core.List> buildUnnamed18() => [ - buildUnnamed17(), - buildUnnamed17(), -]; - -void checkUnnamed18(core.List> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUnnamed17(o[0]); - checkUnnamed17(o[1]); -} - -core.int buildCounterStatus = 0; -api.Status buildStatus() { - final o = api.Status(); - buildCounterStatus++; - if (buildCounterStatus < 3) { - o.code = 42; - o.details = buildUnnamed18(); - o.message = 'foo'; - } - buildCounterStatus--; - return o; -} - -void checkStatus(api.Status o) { - buildCounterStatus++; - if (buildCounterStatus < 3) { - unittest.expect(o.code!, unittest.equals(42)); - checkUnnamed18(o.details!); - unittest.expect(o.message!, unittest.equals('foo')); - } - buildCounterStatus--; -} - -core.List buildUnnamed19() => [ - buildAccelerator(), - buildAccelerator(), -]; - -void checkUnnamed19(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkAccelerator(o[0]); - checkAccelerator(o[1]); -} - -core.List buildUnnamed20() => [buildDisk(), buildDisk()]; - -void checkUnnamed20(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkDisk(o[0]); - checkDisk(o[1]); -} - -core.List buildUnnamed21() => ['foo', 'foo']; - -void checkUnnamed21(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.Map buildUnnamed22() => {'x': 'foo', 'y': 'foo'}; - -void checkUnnamed22(core.Map o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o['x']!, unittest.equals('foo')); - unittest.expect(o['y']!, unittest.equals('foo')); -} - -core.List buildUnnamed23() => [buildVolume(), buildVolume()]; - -void checkUnnamed23(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - checkVolume(o[0]); - checkVolume(o[1]); -} - -core.int buildCounterVirtualMachine = 0; -api.VirtualMachine buildVirtualMachine() { - final o = api.VirtualMachine(); - buildCounterVirtualMachine++; - if (buildCounterVirtualMachine < 3) { - o.accelerators = buildUnnamed19(); - o.bootDiskSizeGb = 42; - o.bootImage = 'foo'; - o.cpuPlatform = 'foo'; - o.disks = buildUnnamed20(); - o.dockerCacheImages = buildUnnamed21(); - o.enableStackdriverMonitoring = true; - o.labels = buildUnnamed22(); - o.machineType = 'foo'; - o.network = buildNetwork(); - o.nvidiaDriverVersion = 'foo'; - o.preemptible = true; - o.reservation = 'foo'; - o.serviceAccount = buildServiceAccount(); - o.volumes = buildUnnamed23(); - } - buildCounterVirtualMachine--; - return o; -} - -void checkVirtualMachine(api.VirtualMachine o) { - buildCounterVirtualMachine++; - if (buildCounterVirtualMachine < 3) { - checkUnnamed19(o.accelerators!); - unittest.expect(o.bootDiskSizeGb!, unittest.equals(42)); - unittest.expect(o.bootImage!, unittest.equals('foo')); - unittest.expect(o.cpuPlatform!, unittest.equals('foo')); - checkUnnamed20(o.disks!); - checkUnnamed21(o.dockerCacheImages!); - unittest.expect(o.enableStackdriverMonitoring!, unittest.isTrue); - checkUnnamed22(o.labels!); - unittest.expect(o.machineType!, unittest.equals('foo')); - checkNetwork(o.network!); - unittest.expect(o.nvidiaDriverVersion!, unittest.equals('foo')); - unittest.expect(o.preemptible!, unittest.isTrue); - unittest.expect(o.reservation!, unittest.equals('foo')); - checkServiceAccount(o.serviceAccount!); - checkUnnamed23(o.volumes!); - } - buildCounterVirtualMachine--; -} - -core.int buildCounterVolume = 0; -api.Volume buildVolume() { - final o = api.Volume(); - buildCounterVolume++; - if (buildCounterVolume < 3) { - o.existingDisk = buildExistingDisk(); - o.nfsMount = buildNFSMount(); - o.persistentDisk = buildPersistentDisk(); - o.volume = 'foo'; - } - buildCounterVolume--; - return o; -} - -void checkVolume(api.Volume o) { - buildCounterVolume++; - if (buildCounterVolume < 3) { - checkExistingDisk(o.existingDisk!); - checkNFSMount(o.nfsMount!); - checkPersistentDisk(o.persistentDisk!); - unittest.expect(o.volume!, unittest.equals('foo')); - } - buildCounterVolume--; -} - -core.List buildUnnamed24() => ['foo', 'foo']; - -void checkUnnamed24(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -void main() { - unittest.group('obj-schema-Accelerator', () { - unittest.test('to-json--from-json', () async { - final o = buildAccelerator(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Accelerator.fromJson( - oJson as core.Map, - ); - checkAccelerator(od); - }); - }); - - unittest.group('obj-schema-Action', () { - unittest.test('to-json--from-json', () async { - final o = buildAction(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Action.fromJson( - oJson as core.Map, - ); - checkAction(od); - }); - }); - - unittest.group('obj-schema-CancelOperationRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildCancelOperationRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.CancelOperationRequest.fromJson( - oJson as core.Map, - ); - checkCancelOperationRequest(od); - }); - }); - - unittest.group('obj-schema-Disk', () { - unittest.test('to-json--from-json', () async { - final o = buildDisk(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Disk.fromJson( - oJson as core.Map, - ); - checkDisk(od); - }); - }); - - unittest.group('obj-schema-Empty', () { - unittest.test('to-json--from-json', () async { - final o = buildEmpty(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Empty.fromJson( - oJson as core.Map, - ); - checkEmpty(od); - }); - }); - - unittest.group('obj-schema-ExistingDisk', () { - unittest.test('to-json--from-json', () async { - final o = buildExistingDisk(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.ExistingDisk.fromJson( - oJson as core.Map, - ); - checkExistingDisk(od); - }); - }); - - unittest.group('obj-schema-ListLocationsResponse', () { - unittest.test('to-json--from-json', () async { - final o = buildListLocationsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.ListLocationsResponse.fromJson( - oJson as core.Map, - ); - checkListLocationsResponse(od); - }); - }); - - unittest.group('obj-schema-ListOperationsResponse', () { - unittest.test('to-json--from-json', () async { - final o = buildListOperationsResponse(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.ListOperationsResponse.fromJson( - oJson as core.Map, - ); - checkListOperationsResponse(od); - }); - }); - - unittest.group('obj-schema-Location', () { - unittest.test('to-json--from-json', () async { - final o = buildLocation(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Location.fromJson( - oJson as core.Map, - ); - checkLocation(od); - }); - }); - - unittest.group('obj-schema-Mount', () { - unittest.test('to-json--from-json', () async { - final o = buildMount(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Mount.fromJson( - oJson as core.Map, - ); - checkMount(od); - }); - }); - - unittest.group('obj-schema-NFSMount', () { - unittest.test('to-json--from-json', () async { - final o = buildNFSMount(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.NFSMount.fromJson( - oJson as core.Map, - ); - checkNFSMount(od); - }); - }); - - unittest.group('obj-schema-Network', () { - unittest.test('to-json--from-json', () async { - final o = buildNetwork(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Network.fromJson( - oJson as core.Map, - ); - checkNetwork(od); - }); - }); - - unittest.group('obj-schema-Operation', () { - unittest.test('to-json--from-json', () async { - final o = buildOperation(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Operation.fromJson( - oJson as core.Map, - ); - checkOperation(od); - }); - }); - - unittest.group('obj-schema-PersistentDisk', () { - unittest.test('to-json--from-json', () async { - final o = buildPersistentDisk(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.PersistentDisk.fromJson( - oJson as core.Map, - ); - checkPersistentDisk(od); - }); - }); - - unittest.group('obj-schema-Pipeline', () { - unittest.test('to-json--from-json', () async { - final o = buildPipeline(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Pipeline.fromJson( - oJson as core.Map, - ); - checkPipeline(od); - }); - }); - - unittest.group('obj-schema-Resources', () { - unittest.test('to-json--from-json', () async { - final o = buildResources(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Resources.fromJson( - oJson as core.Map, - ); - checkResources(od); - }); - }); - - unittest.group('obj-schema-RunPipelineRequest', () { - unittest.test('to-json--from-json', () async { - final o = buildRunPipelineRequest(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.RunPipelineRequest.fromJson( - oJson as core.Map, - ); - checkRunPipelineRequest(od); - }); - }); - - unittest.group('obj-schema-Secret', () { - unittest.test('to-json--from-json', () async { - final o = buildSecret(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Secret.fromJson( - oJson as core.Map, - ); - checkSecret(od); - }); - }); - - unittest.group('obj-schema-ServiceAccount', () { - unittest.test('to-json--from-json', () async { - final o = buildServiceAccount(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.ServiceAccount.fromJson( - oJson as core.Map, - ); - checkServiceAccount(od); - }); - }); - - unittest.group('obj-schema-Status', () { - unittest.test('to-json--from-json', () async { - final o = buildStatus(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Status.fromJson( - oJson as core.Map, - ); - checkStatus(od); - }); - }); - - unittest.group('obj-schema-VirtualMachine', () { - unittest.test('to-json--from-json', () async { - final o = buildVirtualMachine(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.VirtualMachine.fromJson( - oJson as core.Map, - ); - checkVirtualMachine(od); - }); - }); - - unittest.group('obj-schema-Volume', () { - unittest.test('to-json--from-json', () async { - final o = buildVolume(); - final oJson = convert.jsonDecode(convert.jsonEncode(o)); - final od = api.Volume.fromJson( - oJson as core.Map, - ); - checkVolume(od); - }); - }); - - unittest.group('resource-ProjectsLocationsResource', () { - unittest.test('method--get', () async { - final mock = HttpServerMock(); - final res = api.CloudLifeSciencesApi(mock).projects.locations; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 7), - unittest.equals('v2beta/'), - ); - pathOffset += 7; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildLocation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkLocation(response as api.Location); - }); - - unittest.test('method--list', () async { - final mock = HttpServerMock(); - final res = api.CloudLifeSciencesApi(mock).projects.locations; - final arg_name = 'foo'; - final arg_extraLocationTypes = buildUnnamed24(); - final arg_filter = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 7), - unittest.equals('v2beta/'), - ); - pathOffset += 7; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['extraLocationTypes']!, - unittest.equals(arg_extraLocationTypes), - ); - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildListLocationsResponse()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.list( - arg_name, - extraLocationTypes: arg_extraLocationTypes, - filter: arg_filter, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - $fields: arg_$fields, - ); - checkListLocationsResponse(response as api.ListLocationsResponse); - }); - }); - - unittest.group('resource-ProjectsLocationsOperationsResource', () { - unittest.test('method--cancel', () async { - final mock = HttpServerMock(); - final res = api.CloudLifeSciencesApi(mock).projects.locations.operations; - final arg_request = buildCancelOperationRequest(); - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.CancelOperationRequest.fromJson( - json as core.Map, - ); - checkCancelOperationRequest(obj); - - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 7), - unittest.equals('v2beta/'), - ); - pathOffset += 7; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildEmpty()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.cancel( - arg_request, - arg_name, - $fields: arg_$fields, - ); - checkEmpty(response as api.Empty); - }); - - unittest.test('method--get', () async { - final mock = HttpServerMock(); - final res = api.CloudLifeSciencesApi(mock).projects.locations.operations; - final arg_name = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 7), - unittest.equals('v2beta/'), - ); - pathOffset += 7; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildOperation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.get(arg_name, $fields: arg_$fields); - checkOperation(response as api.Operation); - }); - - unittest.test('method--list', () async { - final mock = HttpServerMock(); - final res = api.CloudLifeSciencesApi(mock).projects.locations.operations; - final arg_name = 'foo'; - final arg_filter = 'foo'; - final arg_pageSize = 42; - final arg_pageToken = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 7), - unittest.equals('v2beta/'), - ); - pathOffset += 7; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['filter']!.first, - unittest.equals(arg_filter), - ); - unittest.expect( - core.int.parse(queryMap['pageSize']!.first), - unittest.equals(arg_pageSize), - ); - unittest.expect( - queryMap['pageToken']!.first, - unittest.equals(arg_pageToken), - ); - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildListOperationsResponse()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.list( - arg_name, - filter: arg_filter, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - $fields: arg_$fields, - ); - checkListOperationsResponse(response as api.ListOperationsResponse); - }); - }); - - unittest.group('resource-ProjectsLocationsPipelinesResource', () { - unittest.test('method--run', () async { - final mock = HttpServerMock(); - final res = api.CloudLifeSciencesApi(mock).projects.locations.pipelines; - final arg_request = buildRunPipelineRequest(); - final arg_parent = 'foo'; - final arg_$fields = 'foo'; - mock.register( - unittest.expectAsync2((http.BaseRequest req, json) { - final obj = api.RunPipelineRequest.fromJson( - json as core.Map, - ); - checkRunPipelineRequest(obj); - - final path = req.url.path; - var pathOffset = 0; - core.int index; - core.String subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), - unittest.equals('/'), - ); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 7), - unittest.equals('v2beta/'), - ); - pathOffset += 7; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - final query = req.url.query; - var queryOffset = 0; - final queryMap = >{}; - void addQueryParam(core.String n, core.String v) => - queryMap.putIfAbsent(n, () => []).add(v); - - if (query.isNotEmpty) { - for (var part in query.split('&')) { - final keyValue = part.split('='); - addQueryParam( - core.Uri.decodeQueryComponent(keyValue[0]), - core.Uri.decodeQueryComponent(keyValue[1]), - ); - } - } - unittest.expect( - queryMap['fields']!.first, - unittest.equals(arg_$fields), - ); - - final h = {'content-type': 'application/json; charset=utf-8'}; - final resp = convert.json.encode(buildOperation()); - return async.Future.value(stringResponse(200, h, resp)); - }), - true, - ); - final response = await res.run( - arg_request, - arg_parent, - $fields: arg_$fields, - ); - checkOperation(response as api.Operation); - }); - }); -} diff --git a/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart b/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart index 68d03a955..2c24a4f44 100644 --- a/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart +++ b/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart @@ -442,6 +442,7 @@ api.CloneContext buildCloneContext() { o.pointInTime = 'foo'; o.preferredSecondaryZone = 'foo'; o.preferredZone = 'foo'; + o.sourceInstanceDeletionTime = 'foo'; } buildCounterCloneContext--; return o; @@ -459,10 +460,32 @@ void checkCloneContext(api.CloneContext o) { unittest.expect(o.pointInTime!, unittest.equals('foo')); unittest.expect(o.preferredSecondaryZone!, unittest.equals('foo')); unittest.expect(o.preferredZone!, unittest.equals('foo')); + unittest.expect(o.sourceInstanceDeletionTime!, unittest.equals('foo')); } buildCounterCloneContext--; } +core.int buildCounterColumn = 0; +api.Column buildColumn() { + final o = api.Column(); + buildCounterColumn++; + if (buildCounterColumn < 3) { + o.name = 'foo'; + o.type = 'foo'; + } + buildCounterColumn--; + return o; +} + +void checkColumn(api.Column o) { + buildCounterColumn++; + if (buildCounterColumn < 3) { + unittest.expect(o.name!, unittest.equals('foo')); + unittest.expect(o.type!, unittest.equals('foo')); + } + buildCounterColumn--; +} + core.List buildUnnamed2() => [ buildDnsNameMapping(), buildDnsNameMapping(), @@ -540,12 +563,20 @@ void checkUnnamed6(core.List o) { checkIpMapping(o[1]); } -core.List buildUnnamed7() => [ +core.List buildUnnamed7() => ['foo', 'foo']; + +void checkUnnamed7(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.List buildUnnamed8() => [ buildConnectPoolNodeConfig(), buildConnectPoolNodeConfig(), ]; -void checkUnnamed7(core.List o) { +void checkUnnamed8(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkConnectPoolNodeConfig(o[0]); checkConnectPoolNodeConfig(o[1]); @@ -563,8 +594,9 @@ api.ConnectSettings buildConnectSettings() { o.dnsNames = buildUnnamed5(); o.ipAddresses = buildUnnamed6(); o.kind = 'foo'; + o.mdxProtocolSupport = buildUnnamed7(); o.nodeCount = 42; - o.nodes = buildUnnamed7(); + o.nodes = buildUnnamed8(); o.pscEnabled = true; o.region = 'foo'; o.serverCaCert = buildSslCert(); @@ -584,8 +616,9 @@ void checkConnectSettings(api.ConnectSettings o) { checkUnnamed5(o.dnsNames!); checkUnnamed6(o.ipAddresses!); unittest.expect(o.kind!, unittest.equals('foo')); + checkUnnamed7(o.mdxProtocolSupport!); unittest.expect(o.nodeCount!, unittest.equals(42)); - checkUnnamed7(o.nodes!); + checkUnnamed8(o.nodes!); unittest.expect(o.pscEnabled!, unittest.isTrue); unittest.expect(o.region!, unittest.equals('foo')); checkSslCert(o.serverCaCert!); @@ -594,12 +627,12 @@ void checkConnectSettings(api.ConnectSettings o) { buildCounterConnectSettings--; } -core.List buildUnnamed8() => [ +core.List buildUnnamed9() => [ buildConnectionPoolFlags(), buildConnectionPoolFlags(), ]; -void checkUnnamed8(core.List o) { +void checkUnnamed9(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionPoolFlags(o[0]); checkConnectionPoolFlags(o[1]); @@ -611,7 +644,8 @@ api.ConnectionPoolConfig buildConnectionPoolConfig() { buildCounterConnectionPoolConfig++; if (buildCounterConnectionPoolConfig < 3) { o.connectionPoolingEnabled = true; - o.flags = buildUnnamed8(); + o.flags = buildUnnamed9(); + o.poolerCount = 42; } buildCounterConnectionPoolConfig--; return o; @@ -621,7 +655,8 @@ void checkConnectionPoolConfig(api.ConnectionPoolConfig o) { buildCounterConnectionPoolConfig++; if (buildCounterConnectionPoolConfig < 3) { unittest.expect(o.connectionPoolingEnabled!, unittest.isTrue); - checkUnnamed8(o.flags!); + checkUnnamed9(o.flags!); + unittest.expect(o.poolerCount!, unittest.equals(42)); } buildCounterConnectionPoolConfig--; } @@ -722,20 +757,20 @@ void checkDatabaseFlags(api.DatabaseFlags o) { buildCounterDatabaseFlags--; } -core.List buildUnnamed9() => ['foo', 'foo']; +core.List buildUnnamed10() => ['foo', 'foo']; -void checkUnnamed9(core.List o) { +void checkUnnamed10(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed10() => [ +core.List buildUnnamed11() => [ buildDnsNameMapping(), buildDnsNameMapping(), ]; -void checkUnnamed10(core.List o) { +void checkUnnamed11(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDnsNameMapping(o[0]); checkDnsNameMapping(o[1]); @@ -764,58 +799,58 @@ void checkDatabaseInstanceFailoverReplica( buildCounterDatabaseInstanceFailoverReplica--; } -core.List buildUnnamed11() => [ +core.List buildUnnamed12() => [ buildIpMapping(), buildIpMapping(), ]; -void checkUnnamed11(core.List o) { +void checkUnnamed12(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkIpMapping(o[0]); checkIpMapping(o[1]); } -core.List buildUnnamed12() => [ +core.List buildUnnamed13() => [ buildPoolNodeConfig(), buildPoolNodeConfig(), ]; -void checkUnnamed12(core.List o) { +void checkUnnamed13(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPoolNodeConfig(o[0]); checkPoolNodeConfig(o[1]); } -core.List buildUnnamed13() => ['foo', 'foo']; +core.List buildUnnamed14() => ['foo', 'foo']; -void checkUnnamed13(core.List o) { +void checkUnnamed14(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed14() => ['foo', 'foo']; +core.List buildUnnamed15() => ['foo', 'foo']; -void checkUnnamed14(core.List o) { +void checkUnnamed15(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.Map buildUnnamed15() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed16() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed15(core.Map o) { +void checkUnnamed16(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); } -core.List buildUnnamed16() => [ +core.List buildUnnamed17() => [ buildAvailableDatabaseVersion(), buildAvailableDatabaseVersion(), ]; -void checkUnnamed16(core.List o) { +void checkUnnamed17(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAvailableDatabaseVersion(o[0]); checkAvailableDatabaseVersion(o[1]); @@ -826,9 +861,8 @@ api.DatabaseInstance buildDatabaseInstance() { final o = api.DatabaseInstance(); buildCounterDatabaseInstance++; if (buildCounterDatabaseInstance < 3) { - o.availableMaintenanceVersions = buildUnnamed9(); + o.availableMaintenanceVersions = buildUnnamed10(); o.backendType = 'foo'; - o.clearNetwork = true; o.connectionName = 'foo'; o.createTime = 'foo'; o.currentDiskSize = 'foo'; @@ -837,14 +871,14 @@ api.DatabaseInstance buildDatabaseInstance() { o.diskEncryptionConfiguration = buildDiskEncryptionConfiguration(); o.diskEncryptionStatus = buildDiskEncryptionStatus(); o.dnsName = 'foo'; - o.dnsNames = buildUnnamed10(); + o.dnsNames = buildUnnamed11(); o.etag = 'foo'; o.failoverReplica = buildDatabaseInstanceFailoverReplica(); o.gceZone = 'foo'; o.geminiConfig = buildGeminiInstanceConfig(); o.includeReplicasForMajorVersionUpgrade = true; o.instanceType = 'foo'; - o.ipAddresses = buildUnnamed11(); + o.ipAddresses = buildUnnamed12(); o.ipv6Address = 'foo'; o.kind = 'foo'; o.maintenanceVersion = 'foo'; @@ -852,7 +886,7 @@ api.DatabaseInstance buildDatabaseInstance() { o.maxDiskSize = 'foo'; o.name = 'foo'; o.nodeCount = 42; - o.nodes = buildUnnamed12(); + o.nodes = buildUnnamed13(); o.onPremisesConfiguration = buildOnPremisesConfiguration(); o.outOfDiskReport = buildSqlOutOfDiskReport(); o.primaryDnsName = 'foo'; @@ -860,7 +894,7 @@ api.DatabaseInstance buildDatabaseInstance() { o.pscServiceAttachmentLink = 'foo'; o.region = 'foo'; o.replicaConfiguration = buildReplicaConfiguration(); - o.replicaNames = buildUnnamed13(); + o.replicaNames = buildUnnamed14(); o.replicationCluster = buildReplicationCluster(); o.rootPassword = 'foo'; o.satisfiesPzi = true; @@ -873,10 +907,10 @@ api.DatabaseInstance buildDatabaseInstance() { o.settings = buildSettings(); o.sqlNetworkArchitecture = 'foo'; o.state = 'foo'; - o.suspensionReason = buildUnnamed14(); + o.suspensionReason = buildUnnamed15(); o.switchTransactionLogsToCloudStorageEnabled = true; - o.tags = buildUnnamed15(); - o.upgradableDatabaseVersions = buildUnnamed16(); + o.tags = buildUnnamed16(); + o.upgradableDatabaseVersions = buildUnnamed17(); o.writeEndpoint = 'foo'; } buildCounterDatabaseInstance--; @@ -886,9 +920,8 @@ api.DatabaseInstance buildDatabaseInstance() { void checkDatabaseInstance(api.DatabaseInstance o) { buildCounterDatabaseInstance++; if (buildCounterDatabaseInstance < 3) { - checkUnnamed9(o.availableMaintenanceVersions!); + checkUnnamed10(o.availableMaintenanceVersions!); unittest.expect(o.backendType!, unittest.equals('foo')); - unittest.expect(o.clearNetwork!, unittest.isTrue); unittest.expect(o.connectionName!, unittest.equals('foo')); unittest.expect(o.createTime!, unittest.equals('foo')); unittest.expect(o.currentDiskSize!, unittest.equals('foo')); @@ -897,14 +930,14 @@ void checkDatabaseInstance(api.DatabaseInstance o) { checkDiskEncryptionConfiguration(o.diskEncryptionConfiguration!); checkDiskEncryptionStatus(o.diskEncryptionStatus!); unittest.expect(o.dnsName!, unittest.equals('foo')); - checkUnnamed10(o.dnsNames!); + checkUnnamed11(o.dnsNames!); unittest.expect(o.etag!, unittest.equals('foo')); checkDatabaseInstanceFailoverReplica(o.failoverReplica!); unittest.expect(o.gceZone!, unittest.equals('foo')); checkGeminiInstanceConfig(o.geminiConfig!); unittest.expect(o.includeReplicasForMajorVersionUpgrade!, unittest.isTrue); unittest.expect(o.instanceType!, unittest.equals('foo')); - checkUnnamed11(o.ipAddresses!); + checkUnnamed12(o.ipAddresses!); unittest.expect(o.ipv6Address!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.maintenanceVersion!, unittest.equals('foo')); @@ -912,7 +945,7 @@ void checkDatabaseInstance(api.DatabaseInstance o) { unittest.expect(o.maxDiskSize!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.nodeCount!, unittest.equals(42)); - checkUnnamed12(o.nodes!); + checkUnnamed13(o.nodes!); checkOnPremisesConfiguration(o.onPremisesConfiguration!); checkSqlOutOfDiskReport(o.outOfDiskReport!); unittest.expect(o.primaryDnsName!, unittest.equals('foo')); @@ -920,7 +953,7 @@ void checkDatabaseInstance(api.DatabaseInstance o) { unittest.expect(o.pscServiceAttachmentLink!, unittest.equals('foo')); unittest.expect(o.region!, unittest.equals('foo')); checkReplicaConfiguration(o.replicaConfiguration!); - checkUnnamed13(o.replicaNames!); + checkUnnamed14(o.replicaNames!); checkReplicationCluster(o.replicationCluster!); unittest.expect(o.rootPassword!, unittest.equals('foo')); unittest.expect(o.satisfiesPzi!, unittest.isTrue); @@ -933,21 +966,21 @@ void checkDatabaseInstance(api.DatabaseInstance o) { checkSettings(o.settings!); unittest.expect(o.sqlNetworkArchitecture!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); - checkUnnamed14(o.suspensionReason!); + checkUnnamed15(o.suspensionReason!); unittest.expect( o.switchTransactionLogsToCloudStorageEnabled!, unittest.isTrue, ); - checkUnnamed15(o.tags!); - checkUnnamed16(o.upgradableDatabaseVersions!); + checkUnnamed16(o.tags!); + checkUnnamed17(o.upgradableDatabaseVersions!); unittest.expect(o.writeEndpoint!, unittest.equals('foo')); } buildCounterDatabaseInstance--; } -core.List buildUnnamed17() => [buildDatabase(), buildDatabase()]; +core.List buildUnnamed18() => [buildDatabase(), buildDatabase()]; -void checkUnnamed17(core.List o) { +void checkUnnamed18(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDatabase(o[0]); checkDatabase(o[1]); @@ -958,7 +991,7 @@ api.DatabasesListResponse buildDatabasesListResponse() { final o = api.DatabasesListResponse(); buildCounterDatabasesListResponse++; if (buildCounterDatabasesListResponse < 3) { - o.items = buildUnnamed17(); + o.items = buildUnnamed18(); o.kind = 'foo'; } buildCounterDatabasesListResponse--; @@ -968,7 +1001,7 @@ api.DatabasesListResponse buildDatabasesListResponse() { void checkDatabasesListResponse(api.DatabasesListResponse o) { buildCounterDatabasesListResponse++; if (buildCounterDatabasesListResponse < 3) { - checkUnnamed17(o.items!); + checkUnnamed18(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); } buildCounterDatabasesListResponse--; @@ -1181,6 +1214,35 @@ void checkEmpty(api.Empty o) { buildCounterEmpty--; } +core.int buildCounterExecuteSqlPayload = 0; +api.ExecuteSqlPayload buildExecuteSqlPayload() { + final o = api.ExecuteSqlPayload(); + buildCounterExecuteSqlPayload++; + if (buildCounterExecuteSqlPayload < 3) { + o.autoIamAuthn = true; + o.database = 'foo'; + o.partialResultMode = 'foo'; + o.rowLimit = 'foo'; + o.sqlStatement = 'foo'; + o.user = 'foo'; + } + buildCounterExecuteSqlPayload--; + return o; +} + +void checkExecuteSqlPayload(api.ExecuteSqlPayload o) { + buildCounterExecuteSqlPayload++; + if (buildCounterExecuteSqlPayload < 3) { + unittest.expect(o.autoIamAuthn!, unittest.isTrue); + unittest.expect(o.database!, unittest.equals('foo')); + unittest.expect(o.partialResultMode!, unittest.equals('foo')); + unittest.expect(o.rowLimit!, unittest.equals('foo')); + unittest.expect(o.sqlStatement!, unittest.equals('foo')); + unittest.expect(o.user!, unittest.equals('foo')); + } + buildCounterExecuteSqlPayload--; +} + core.int buildCounterExportContextBakExportOptions = 0; api.ExportContextBakExportOptions buildExportContextBakExportOptions() { final o = api.ExportContextBakExportOptions(); @@ -1239,9 +1301,9 @@ void checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) { buildCounterExportContextCsvExportOptions--; } -core.List buildUnnamed18() => ['foo', 'foo']; +core.List buildUnnamed19() => ['foo', 'foo']; -void checkUnnamed18(core.List o) { +void checkUnnamed19(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1293,9 +1355,9 @@ void checkExportContextSqlExportOptionsPostgresExportOptions( buildCounterExportContextSqlExportOptionsPostgresExportOptions--; } -core.List buildUnnamed19() => ['foo', 'foo']; +core.List buildUnnamed20() => ['foo', 'foo']; -void checkUnnamed19(core.List o) { +void checkUnnamed20(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1312,7 +1374,7 @@ api.ExportContextSqlExportOptions buildExportContextSqlExportOptions() { o.postgresExportOptions = buildExportContextSqlExportOptionsPostgresExportOptions(); o.schemaOnly = true; - o.tables = buildUnnamed19(); + o.tables = buildUnnamed20(); o.threads = 42; } buildCounterExportContextSqlExportOptions--; @@ -1328,7 +1390,7 @@ void checkExportContextSqlExportOptions(api.ExportContextSqlExportOptions o) { o.postgresExportOptions!, ); unittest.expect(o.schemaOnly!, unittest.isTrue); - checkUnnamed19(o.tables!); + checkUnnamed20(o.tables!); unittest.expect(o.threads!, unittest.equals(42)); } buildCounterExportContextSqlExportOptions--; @@ -1366,7 +1428,7 @@ api.ExportContext buildExportContext() { if (buildCounterExportContext < 3) { o.bakExportOptions = buildExportContextBakExportOptions(); o.csvExportOptions = buildExportContextCsvExportOptions(); - o.databases = buildUnnamed18(); + o.databases = buildUnnamed19(); o.fileType = 'foo'; o.kind = 'foo'; o.offload = true; @@ -1383,7 +1445,7 @@ void checkExportContext(api.ExportContext o) { if (buildCounterExportContext < 3) { checkExportContextBakExportOptions(o.bakExportOptions!); checkExportContextCsvExportOptions(o.csvExportOptions!); - checkUnnamed18(o.databases!); + checkUnnamed19(o.databases!); unittest.expect(o.fileType!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.offload!, unittest.isTrue); @@ -1434,12 +1496,25 @@ void checkFailoverContext(api.FailoverContext o) { buildCounterFailoverContext--; } -core.List buildUnnamed20() => ['foo', 'foo']; +core.int buildCounterFinalBackupConfig = 0; +api.FinalBackupConfig buildFinalBackupConfig() { + final o = api.FinalBackupConfig(); + buildCounterFinalBackupConfig++; + if (buildCounterFinalBackupConfig < 3) { + o.enabled = true; + o.retentionDays = 42; + } + buildCounterFinalBackupConfig--; + return o; +} -void checkUnnamed20(core.List o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +void checkFinalBackupConfig(api.FinalBackupConfig o) { + buildCounterFinalBackupConfig++; + if (buildCounterFinalBackupConfig < 3) { + unittest.expect(o.enabled!, unittest.isTrue); + unittest.expect(o.retentionDays!, unittest.equals(42)); + } + buildCounterFinalBackupConfig--; } core.List buildUnnamed21() => ['foo', 'foo']; @@ -1458,14 +1533,22 @@ void checkUnnamed22(core.List o) { unittest.expect(o[1], unittest.equals('foo')); } +core.List buildUnnamed23() => ['foo', 'foo']; + +void checkUnnamed23(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterFlag = 0; api.Flag buildFlag() { final o = api.Flag(); buildCounterFlag++; if (buildCounterFlag < 3) { - o.allowedIntValues = buildUnnamed20(); - o.allowedStringValues = buildUnnamed21(); - o.appliesTo = buildUnnamed22(); + o.allowedIntValues = buildUnnamed21(); + o.allowedStringValues = buildUnnamed22(); + o.appliesTo = buildUnnamed23(); o.flagScope = 'foo'; o.inBeta = true; o.kind = 'foo'; @@ -1484,9 +1567,9 @@ api.Flag buildFlag() { void checkFlag(api.Flag o) { buildCounterFlag++; if (buildCounterFlag < 3) { - checkUnnamed20(o.allowedIntValues!); - checkUnnamed21(o.allowedStringValues!); - checkUnnamed22(o.appliesTo!); + checkUnnamed21(o.allowedIntValues!); + checkUnnamed22(o.allowedStringValues!); + checkUnnamed23(o.appliesTo!); unittest.expect(o.flagScope!, unittest.equals('foo')); unittest.expect(o.inBeta!, unittest.isTrue); unittest.expect(o.kind!, unittest.equals('foo')); @@ -1501,9 +1584,9 @@ void checkFlag(api.Flag o) { buildCounterFlag--; } -core.List buildUnnamed23() => [buildFlag(), buildFlag()]; +core.List buildUnnamed24() => [buildFlag(), buildFlag()]; -void checkUnnamed23(core.List o) { +void checkUnnamed24(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkFlag(o[0]); checkFlag(o[1]); @@ -1514,7 +1597,7 @@ api.FlagsListResponse buildFlagsListResponse() { final o = api.FlagsListResponse(); buildCounterFlagsListResponse++; if (buildCounterFlagsListResponse < 3) { - o.items = buildUnnamed23(); + o.items = buildUnnamed24(); o.kind = 'foo'; } buildCounterFlagsListResponse--; @@ -1524,7 +1607,7 @@ api.FlagsListResponse buildFlagsListResponse() { void checkFlagsListResponse(api.FlagsListResponse o) { buildCounterFlagsListResponse++; if (buildCounterFlagsListResponse < 3) { - checkUnnamed23(o.items!); + checkUnnamed24(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); } buildCounterFlagsListResponse--; @@ -1662,9 +1745,9 @@ void checkImportContextBakImportOptions(api.ImportContextBakImportOptions o) { buildCounterImportContextBakImportOptions--; } -core.List buildUnnamed24() => ['foo', 'foo']; +core.List buildUnnamed25() => ['foo', 'foo']; -void checkUnnamed24(core.List o) { +void checkUnnamed25(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1675,7 +1758,7 @@ api.ImportContextCsvImportOptions buildImportContextCsvImportOptions() { final o = api.ImportContextCsvImportOptions(); buildCounterImportContextCsvImportOptions++; if (buildCounterImportContextCsvImportOptions < 3) { - o.columns = buildUnnamed24(); + o.columns = buildUnnamed25(); o.escapeCharacter = 'foo'; o.fieldsTerminatedBy = 'foo'; o.linesTerminatedBy = 'foo'; @@ -1689,7 +1772,7 @@ api.ImportContextCsvImportOptions buildImportContextCsvImportOptions() { void checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) { buildCounterImportContextCsvImportOptions++; if (buildCounterImportContextCsvImportOptions < 3) { - checkUnnamed24(o.columns!); + checkUnnamed25(o.columns!); unittest.expect(o.escapeCharacter!, unittest.equals('foo')); unittest.expect(o.fieldsTerminatedBy!, unittest.equals('foo')); unittest.expect(o.linesTerminatedBy!, unittest.equals('foo')); @@ -1994,23 +2077,23 @@ void checkInstancesImportRequest(api.InstancesImportRequest o) { buildCounterInstancesImportRequest--; } -core.List buildUnnamed25() => [ +core.List buildUnnamed26() => [ buildDatabaseInstance(), buildDatabaseInstance(), ]; -void checkUnnamed25(core.List o) { +void checkUnnamed26(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDatabaseInstance(o[0]); checkDatabaseInstance(o[1]); } -core.List buildUnnamed26() => [ +core.List buildUnnamed27() => [ buildApiWarning(), buildApiWarning(), ]; -void checkUnnamed26(core.List o) { +void checkUnnamed27(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkApiWarning(o[0]); checkApiWarning(o[1]); @@ -2021,10 +2104,10 @@ api.InstancesListResponse buildInstancesListResponse() { final o = api.InstancesListResponse(); buildCounterInstancesListResponse++; if (buildCounterInstancesListResponse < 3) { - o.items = buildUnnamed25(); + o.items = buildUnnamed26(); o.kind = 'foo'; o.nextPageToken = 'foo'; - o.warnings = buildUnnamed26(); + o.warnings = buildUnnamed27(); } buildCounterInstancesListResponse--; return o; @@ -2033,17 +2116,17 @@ api.InstancesListResponse buildInstancesListResponse() { void checkInstancesListResponse(api.InstancesListResponse o) { buildCounterInstancesListResponse++; if (buildCounterInstancesListResponse < 3) { - checkUnnamed25(o.items!); + checkUnnamed26(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed26(o.warnings!); + checkUnnamed27(o.warnings!); } buildCounterInstancesListResponse--; } -core.List buildUnnamed27() => [buildSslCert(), buildSslCert()]; +core.List buildUnnamed28() => [buildSslCert(), buildSslCert()]; -void checkUnnamed27(core.List o) { +void checkUnnamed28(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslCert(o[0]); checkSslCert(o[1]); @@ -2055,7 +2138,7 @@ api.InstancesListServerCasResponse buildInstancesListServerCasResponse() { buildCounterInstancesListServerCasResponse++; if (buildCounterInstancesListServerCasResponse < 3) { o.activeVersion = 'foo'; - o.certs = buildUnnamed27(); + o.certs = buildUnnamed28(); o.kind = 'foo'; } buildCounterInstancesListServerCasResponse--; @@ -2066,23 +2149,23 @@ void checkInstancesListServerCasResponse(api.InstancesListServerCasResponse o) { buildCounterInstancesListServerCasResponse++; if (buildCounterInstancesListServerCasResponse < 3) { unittest.expect(o.activeVersion!, unittest.equals('foo')); - checkUnnamed27(o.certs!); + checkUnnamed28(o.certs!); unittest.expect(o.kind!, unittest.equals('foo')); } buildCounterInstancesListServerCasResponse--; } -core.List buildUnnamed28() => [buildSslCert(), buildSslCert()]; +core.List buildUnnamed29() => [buildSslCert(), buildSslCert()]; -void checkUnnamed28(core.List o) { +void checkUnnamed29(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslCert(o[0]); checkSslCert(o[1]); } -core.List buildUnnamed29() => [buildSslCert(), buildSslCert()]; +core.List buildUnnamed30() => [buildSslCert(), buildSslCert()]; -void checkUnnamed29(core.List o) { +void checkUnnamed30(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslCert(o[0]); checkSslCert(o[1]); @@ -2095,9 +2178,9 @@ buildInstancesListServerCertificatesResponse() { buildCounterInstancesListServerCertificatesResponse++; if (buildCounterInstancesListServerCertificatesResponse < 3) { o.activeVersion = 'foo'; - o.caCerts = buildUnnamed28(); + o.caCerts = buildUnnamed29(); o.kind = 'foo'; - o.serverCerts = buildUnnamed29(); + o.serverCerts = buildUnnamed30(); } buildCounterInstancesListServerCertificatesResponse--; return o; @@ -2109,9 +2192,9 @@ void checkInstancesListServerCertificatesResponse( buildCounterInstancesListServerCertificatesResponse++; if (buildCounterInstancesListServerCertificatesResponse < 3) { unittest.expect(o.activeVersion!, unittest.equals('foo')); - checkUnnamed28(o.caCerts!); + checkUnnamed29(o.caCerts!); unittest.expect(o.kind!, unittest.equals('foo')); - checkUnnamed29(o.serverCerts!); + checkUnnamed30(o.serverCerts!); } buildCounterInstancesListServerCertificatesResponse--; } @@ -2135,6 +2218,14 @@ void checkInstancesReencryptRequest(api.InstancesReencryptRequest o) { buildCounterInstancesReencryptRequest--; } +core.List buildUnnamed31() => ['foo', 'foo']; + +void checkUnnamed31(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterInstancesRestoreBackupRequest = 0; api.InstancesRestoreBackupRequest buildInstancesRestoreBackupRequest() { final o = api.InstancesRestoreBackupRequest(); @@ -2143,6 +2234,7 @@ api.InstancesRestoreBackupRequest buildInstancesRestoreBackupRequest() { o.backup = 'foo'; o.backupdrBackup = 'foo'; o.restoreBackupContext = buildRestoreBackupContext(); + o.restoreInstanceClearOverridesFieldNames = buildUnnamed31(); o.restoreInstanceSettings = buildDatabaseInstance(); } buildCounterInstancesRestoreBackupRequest--; @@ -2155,6 +2247,7 @@ void checkInstancesRestoreBackupRequest(api.InstancesRestoreBackupRequest o) { unittest.expect(o.backup!, unittest.equals('foo')); unittest.expect(o.backupdrBackup!, unittest.equals('foo')); checkRestoreBackupContext(o.restoreBackupContext!); + checkUnnamed31(o.restoreInstanceClearOverridesFieldNames!); checkDatabaseInstance(o.restoreInstanceSettings!); } buildCounterInstancesRestoreBackupRequest--; @@ -2241,17 +2334,17 @@ void checkInterval(api.Interval o) { buildCounterInterval--; } -core.List buildUnnamed30() => [buildAclEntry(), buildAclEntry()]; +core.List buildUnnamed32() => [buildAclEntry(), buildAclEntry()]; -void checkUnnamed30(core.List o) { +void checkUnnamed32(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkAclEntry(o[0]); checkAclEntry(o[1]); } -core.List buildUnnamed31() => ['foo', 'foo']; +core.List buildUnnamed33() => ['foo', 'foo']; -void checkUnnamed31(core.List o) { +void checkUnnamed33(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2263,8 +2356,8 @@ api.IpConfiguration buildIpConfiguration() { buildCounterIpConfiguration++; if (buildCounterIpConfiguration < 3) { o.allocatedIpRange = 'foo'; - o.authorizedNetworks = buildUnnamed30(); - o.customSubjectAlternativeNames = buildUnnamed31(); + o.authorizedNetworks = buildUnnamed32(); + o.customSubjectAlternativeNames = buildUnnamed33(); o.enablePrivatePathForGoogleCloudServices = true; o.ipv4Enabled = true; o.privateNetwork = 'foo'; @@ -2282,8 +2375,8 @@ void checkIpConfiguration(api.IpConfiguration o) { buildCounterIpConfiguration++; if (buildCounterIpConfiguration < 3) { unittest.expect(o.allocatedIpRange!, unittest.equals('foo')); - checkUnnamed30(o.authorizedNetworks!); - checkUnnamed31(o.customSubjectAlternativeNames!); + checkUnnamed32(o.authorizedNetworks!); + checkUnnamed33(o.customSubjectAlternativeNames!); unittest.expect( o.enablePrivatePathForGoogleCloudServices!, unittest.isTrue, @@ -2322,20 +2415,20 @@ void checkIpMapping(api.IpMapping o) { buildCounterIpMapping--; } -core.List buildUnnamed32() => [buildBackup(), buildBackup()]; +core.List buildUnnamed34() => [buildBackup(), buildBackup()]; -void checkUnnamed32(core.List o) { +void checkUnnamed34(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkBackup(o[0]); checkBackup(o[1]); } -core.List buildUnnamed33() => [ +core.List buildUnnamed35() => [ buildApiWarning(), buildApiWarning(), ]; -void checkUnnamed33(core.List o) { +void checkUnnamed35(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkApiWarning(o[0]); checkApiWarning(o[1]); @@ -2346,9 +2439,9 @@ api.ListBackupsResponse buildListBackupsResponse() { final o = api.ListBackupsResponse(); buildCounterListBackupsResponse++; if (buildCounterListBackupsResponse < 3) { - o.backups = buildUnnamed32(); + o.backups = buildUnnamed34(); o.nextPageToken = 'foo'; - o.warnings = buildUnnamed33(); + o.warnings = buildUnnamed35(); } buildCounterListBackupsResponse--; return o; @@ -2357,9 +2450,9 @@ api.ListBackupsResponse buildListBackupsResponse() { void checkListBackupsResponse(api.ListBackupsResponse o) { buildCounterListBackupsResponse++; if (buildCounterListBackupsResponse < 3) { - checkUnnamed32(o.backups!); + checkUnnamed34(o.backups!); unittest.expect(o.nextPageToken!, unittest.equals('foo')); - checkUnnamed33(o.warnings!); + checkUnnamed35(o.warnings!); } buildCounterListBackupsResponse--; } @@ -2414,6 +2507,46 @@ void checkMaintenanceWindow(api.MaintenanceWindow o) { buildCounterMaintenanceWindow--; } +core.int buildCounterMessage = 0; +api.Message buildMessage() { + final o = api.Message(); + buildCounterMessage++; + if (buildCounterMessage < 3) { + o.message = 'foo'; + o.severity = 'foo'; + } + buildCounterMessage--; + return o; +} + +void checkMessage(api.Message o) { + buildCounterMessage++; + if (buildCounterMessage < 3) { + unittest.expect(o.message!, unittest.equals('foo')); + unittest.expect(o.severity!, unittest.equals('foo')); + } + buildCounterMessage--; +} + +core.int buildCounterMetadata = 0; +api.Metadata buildMetadata() { + final o = api.Metadata(); + buildCounterMetadata++; + if (buildCounterMetadata < 3) { + o.sqlStatementExecutionTime = 'foo'; + } + buildCounterMetadata--; + return o; +} + +void checkMetadata(api.Metadata o) { + buildCounterMetadata++; + if (buildCounterMetadata < 3) { + unittest.expect(o.sqlStatementExecutionTime!, unittest.equals('foo')); + } + buildCounterMetadata--; +} + core.int buildCounterMySqlReplicaConfiguration = 0; api.MySqlReplicaConfiguration buildMySqlReplicaConfiguration() { final o = api.MySqlReplicaConfiguration(); @@ -2453,12 +2586,12 @@ void checkMySqlReplicaConfiguration(api.MySqlReplicaConfiguration o) { buildCounterMySqlReplicaConfiguration--; } -core.List buildUnnamed34() => [ +core.List buildUnnamed36() => [ buildSyncFlags(), buildSyncFlags(), ]; -void checkUnnamed34(core.List o) { +void checkUnnamed36(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSyncFlags(o[0]); checkSyncFlags(o[1]); @@ -2469,7 +2602,7 @@ api.MySqlSyncConfig buildMySqlSyncConfig() { final o = api.MySqlSyncConfig(); buildCounterMySqlSyncConfig++; if (buildCounterMySqlSyncConfig < 3) { - o.initialSyncFlags = buildUnnamed34(); + o.initialSyncFlags = buildUnnamed36(); } buildCounterMySqlSyncConfig--; return o; @@ -2478,17 +2611,17 @@ api.MySqlSyncConfig buildMySqlSyncConfig() { void checkMySqlSyncConfig(api.MySqlSyncConfig o) { buildCounterMySqlSyncConfig++; if (buildCounterMySqlSyncConfig < 3) { - checkUnnamed34(o.initialSyncFlags!); + checkUnnamed36(o.initialSyncFlags!); } buildCounterMySqlSyncConfig--; } -core.List buildUnnamed35() => [ +core.List buildUnnamed37() => [ buildSelectedObjects(), buildSelectedObjects(), ]; -void checkUnnamed35(core.List o) { +void checkUnnamed37(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSelectedObjects(o[0]); checkSelectedObjects(o[1]); @@ -2506,7 +2639,7 @@ api.OnPremisesConfiguration buildOnPremisesConfiguration() { o.hostPort = 'foo'; o.kind = 'foo'; o.password = 'foo'; - o.selectedObjects = buildUnnamed35(); + o.selectedObjects = buildUnnamed37(); o.sourceInstance = buildInstanceReference(); o.sslOption = 'foo'; o.username = 'foo'; @@ -2525,7 +2658,7 @@ void checkOnPremisesConfiguration(api.OnPremisesConfiguration o) { unittest.expect(o.hostPort!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.password!, unittest.equals('foo')); - checkUnnamed35(o.selectedObjects!); + checkUnnamed37(o.selectedObjects!); checkInstanceReference(o.sourceInstance!); unittest.expect(o.sslOption!, unittest.equals('foo')); unittest.expect(o.username!, unittest.equals('foo')); @@ -2611,12 +2744,12 @@ void checkOperationError(api.OperationError o) { buildCounterOperationError--; } -core.List buildUnnamed36() => [ +core.List buildUnnamed38() => [ buildOperationError(), buildOperationError(), ]; -void checkUnnamed36(core.List o) { +void checkUnnamed38(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperationError(o[0]); checkOperationError(o[1]); @@ -2627,7 +2760,7 @@ api.OperationErrors buildOperationErrors() { final o = api.OperationErrors(); buildCounterOperationErrors++; if (buildCounterOperationErrors < 3) { - o.errors = buildUnnamed36(); + o.errors = buildUnnamed38(); o.kind = 'foo'; } buildCounterOperationErrors--; @@ -2637,18 +2770,18 @@ api.OperationErrors buildOperationErrors() { void checkOperationErrors(api.OperationErrors o) { buildCounterOperationErrors++; if (buildCounterOperationErrors < 3) { - checkUnnamed36(o.errors!); + checkUnnamed38(o.errors!); unittest.expect(o.kind!, unittest.equals('foo')); } buildCounterOperationErrors--; } -core.List buildUnnamed37() => [ +core.List buildUnnamed39() => [ buildOperation(), buildOperation(), ]; -void checkUnnamed37(core.List o) { +void checkUnnamed39(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -2659,7 +2792,7 @@ api.OperationsListResponse buildOperationsListResponse() { final o = api.OperationsListResponse(); buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { - o.items = buildUnnamed37(); + o.items = buildUnnamed39(); o.kind = 'foo'; o.nextPageToken = 'foo'; } @@ -2670,7 +2803,7 @@ api.OperationsListResponse buildOperationsListResponse() { void checkOperationsListResponse(api.OperationsListResponse o) { buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { - checkUnnamed37(o.items!); + checkUnnamed39(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } @@ -2779,23 +2912,23 @@ void checkPointInTimeRestoreContext(api.PointInTimeRestoreContext o) { buildCounterPointInTimeRestoreContext--; } -core.List buildUnnamed38() => [ +core.List buildUnnamed40() => [ buildDnsNameMapping(), buildDnsNameMapping(), ]; -void checkUnnamed38(core.List o) { +void checkUnnamed40(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDnsNameMapping(o[0]); checkDnsNameMapping(o[1]); } -core.List buildUnnamed39() => [ +core.List buildUnnamed41() => [ buildIpMapping(), buildIpMapping(), ]; -void checkUnnamed39(core.List o) { +void checkUnnamed41(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkIpMapping(o[0]); checkIpMapping(o[1]); @@ -2807,9 +2940,9 @@ api.PoolNodeConfig buildPoolNodeConfig() { buildCounterPoolNodeConfig++; if (buildCounterPoolNodeConfig < 3) { o.dnsName = 'foo'; - o.dnsNames = buildUnnamed38(); + o.dnsNames = buildUnnamed40(); o.gceZone = 'foo'; - o.ipAddresses = buildUnnamed39(); + o.ipAddresses = buildUnnamed41(); o.name = 'foo'; o.state = 'foo'; } @@ -2821,9 +2954,9 @@ void checkPoolNodeConfig(api.PoolNodeConfig o) { buildCounterPoolNodeConfig++; if (buildCounterPoolNodeConfig < 3) { unittest.expect(o.dnsName!, unittest.equals('foo')); - checkUnnamed38(o.dnsNames!); + checkUnnamed40(o.dnsNames!); unittest.expect(o.gceZone!, unittest.equals('foo')); - checkUnnamed39(o.ipAddresses!); + checkUnnamed41(o.ipAddresses!); unittest.expect(o.name!, unittest.equals('foo')); unittest.expect(o.state!, unittest.equals('foo')); } @@ -2857,20 +2990,20 @@ void checkPscAutoConnectionConfig(api.PscAutoConnectionConfig o) { buildCounterPscAutoConnectionConfig--; } -core.List buildUnnamed40() => ['foo', 'foo']; +core.List buildUnnamed42() => ['foo', 'foo']; -void checkUnnamed40(core.List o) { +void checkUnnamed42(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed41() => [ +core.List buildUnnamed43() => [ buildPscAutoConnectionConfig(), buildPscAutoConnectionConfig(), ]; -void checkUnnamed41(core.List o) { +void checkUnnamed43(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkPscAutoConnectionConfig(o[0]); checkPscAutoConnectionConfig(o[1]); @@ -2881,9 +3014,9 @@ api.PscConfig buildPscConfig() { final o = api.PscConfig(); buildCounterPscConfig++; if (buildCounterPscConfig < 3) { - o.allowedConsumerProjects = buildUnnamed40(); + o.allowedConsumerProjects = buildUnnamed42(); o.networkAttachmentUri = 'foo'; - o.pscAutoConnections = buildUnnamed41(); + o.pscAutoConnections = buildUnnamed43(); o.pscEnabled = true; } buildCounterPscConfig--; @@ -2893,14 +3026,93 @@ api.PscConfig buildPscConfig() { void checkPscConfig(api.PscConfig o) { buildCounterPscConfig++; if (buildCounterPscConfig < 3) { - checkUnnamed40(o.allowedConsumerProjects!); + checkUnnamed42(o.allowedConsumerProjects!); unittest.expect(o.networkAttachmentUri!, unittest.equals('foo')); - checkUnnamed41(o.pscAutoConnections!); + checkUnnamed43(o.pscAutoConnections!); unittest.expect(o.pscEnabled!, unittest.isTrue); } buildCounterPscConfig--; } +core.List buildUnnamed44() => [buildColumn(), buildColumn()]; + +void checkUnnamed44(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkColumn(o[0]); + checkColumn(o[1]); +} + +core.List buildUnnamed45() => [buildRow(), buildRow()]; + +void checkUnnamed45(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkRow(o[0]); + checkRow(o[1]); +} + +core.int buildCounterQueryResult = 0; +api.QueryResult buildQueryResult() { + final o = api.QueryResult(); + buildCounterQueryResult++; + if (buildCounterQueryResult < 3) { + o.columns = buildUnnamed44(); + o.message = 'foo'; + o.partialResult = true; + o.rows = buildUnnamed45(); + } + buildCounterQueryResult--; + return o; +} + +void checkQueryResult(api.QueryResult o) { + buildCounterQueryResult++; + if (buildCounterQueryResult < 3) { + checkUnnamed44(o.columns!); + unittest.expect(o.message!, unittest.equals('foo')); + unittest.expect(o.partialResult!, unittest.isTrue); + checkUnnamed45(o.rows!); + } + buildCounterQueryResult--; +} + +core.List buildUnnamed46() => [ + buildTargetMetric(), + buildTargetMetric(), +]; + +void checkUnnamed46(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkTargetMetric(o[0]); + checkTargetMetric(o[1]); +} + +core.int buildCounterReadPoolAutoScaleConfig = 0; +api.ReadPoolAutoScaleConfig buildReadPoolAutoScaleConfig() { + final o = api.ReadPoolAutoScaleConfig(); + buildCounterReadPoolAutoScaleConfig++; + if (buildCounterReadPoolAutoScaleConfig < 3) { + o.disableScaleIn = true; + o.enabled = true; + o.maxNodeCount = 42; + o.minNodeCount = 42; + o.targetMetrics = buildUnnamed46(); + } + buildCounterReadPoolAutoScaleConfig--; + return o; +} + +void checkReadPoolAutoScaleConfig(api.ReadPoolAutoScaleConfig o) { + buildCounterReadPoolAutoScaleConfig++; + if (buildCounterReadPoolAutoScaleConfig < 3) { + unittest.expect(o.disableScaleIn!, unittest.isTrue); + unittest.expect(o.enabled!, unittest.isTrue); + unittest.expect(o.maxNodeCount!, unittest.equals(42)); + unittest.expect(o.minNodeCount!, unittest.equals(42)); + checkUnnamed46(o.targetMetrics!); + } + buildCounterReadPoolAutoScaleConfig--; +} + core.int buildCounterReplicaConfiguration = 0; api.ReplicaConfiguration buildReplicaConfiguration() { final o = api.ReplicaConfiguration(); @@ -3037,6 +3249,33 @@ void checkRotateServerCertificateContext(api.RotateServerCertificateContext o) { buildCounterRotateServerCertificateContext--; } +core.List buildUnnamed47() => [buildValue(), buildValue()]; + +void checkUnnamed47(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkValue(o[0]); + checkValue(o[1]); +} + +core.int buildCounterRow = 0; +api.Row buildRow() { + final o = api.Row(); + buildCounterRow++; + if (buildCounterRow < 3) { + o.values = buildUnnamed47(); + } + buildCounterRow--; + return o; +} + +void checkRow(api.Row o) { + buildCounterRow++; + if (buildCounterRow < 3) { + checkUnnamed47(o.values!); + } + buildCounterRow--; +} + core.int buildCounterSelectedObjects = 0; api.SelectedObjects buildSelectedObjects() { final o = api.SelectedObjects(); @@ -3056,39 +3295,39 @@ void checkSelectedObjects(api.SelectedObjects o) { buildCounterSelectedObjects--; } -core.List buildUnnamed42() => ['foo', 'foo']; +core.List buildUnnamed48() => ['foo', 'foo']; -void checkUnnamed42(core.List o) { +void checkUnnamed48(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -core.List buildUnnamed43() => [ +core.List buildUnnamed49() => [ buildDatabaseFlags(), buildDatabaseFlags(), ]; -void checkUnnamed43(core.List o) { +void checkUnnamed49(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDatabaseFlags(o[0]); checkDatabaseFlags(o[1]); } -core.List buildUnnamed44() => [ +core.List buildUnnamed50() => [ buildDenyMaintenancePeriod(), buildDenyMaintenancePeriod(), ]; -void checkUnnamed44(core.List o) { +void checkUnnamed50(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkDenyMaintenancePeriod(o[0]); checkDenyMaintenancePeriod(o[1]); } -core.Map buildUnnamed45() => {'x': 'foo', 'y': 'foo'}; +core.Map buildUnnamed51() => {'x': 'foo', 'y': 'foo'}; -void checkUnnamed45(core.Map o) { +void checkUnnamed51(core.Map o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o['x']!, unittest.equals('foo')); unittest.expect(o['y']!, unittest.equals('foo')); @@ -3102,7 +3341,7 @@ api.Settings buildSettings() { o.activationPolicy = 'foo'; o.activeDirectoryConfig = buildSqlActiveDirectoryConfig(); o.advancedMachineFeatures = buildAdvancedMachineFeatures(); - o.authorizedGaeApplications = buildUnnamed42(); + o.authorizedGaeApplications = buildUnnamed48(); o.availabilityType = 'foo'; o.backupConfiguration = buildBackupConfiguration(); o.collation = 'foo'; @@ -3114,13 +3353,14 @@ api.Settings buildSettings() { o.dataDiskProvisionedThroughput = 'foo'; o.dataDiskSizeGb = 'foo'; o.dataDiskType = 'foo'; - o.databaseFlags = buildUnnamed43(); + o.databaseFlags = buildUnnamed49(); o.databaseReplicationEnabled = true; o.deletionProtectionEnabled = true; - o.denyMaintenancePeriods = buildUnnamed44(); + o.denyMaintenancePeriods = buildUnnamed50(); o.edition = 'foo'; o.enableDataplexIntegration = true; o.enableGoogleMlIntegration = true; + o.finalBackupConfig = buildFinalBackupConfig(); o.insightsConfig = buildInsightsConfig(); o.ipConfiguration = buildIpConfiguration(); o.kind = 'foo'; @@ -3128,6 +3368,7 @@ api.Settings buildSettings() { o.maintenanceWindow = buildMaintenanceWindow(); o.passwordValidationPolicy = buildPasswordValidationPolicy(); o.pricingPlan = 'foo'; + o.readPoolAutoScaleConfig = buildReadPoolAutoScaleConfig(); o.replicationLagMaxSeconds = 42; o.replicationType = 'foo'; o.retainBackupsOnDelete = true; @@ -3137,7 +3378,7 @@ api.Settings buildSettings() { o.storageAutoResizeLimit = 'foo'; o.tier = 'foo'; o.timeZone = 'foo'; - o.userLabels = buildUnnamed45(); + o.userLabels = buildUnnamed51(); } buildCounterSettings--; return o; @@ -3149,7 +3390,7 @@ void checkSettings(api.Settings o) { unittest.expect(o.activationPolicy!, unittest.equals('foo')); checkSqlActiveDirectoryConfig(o.activeDirectoryConfig!); checkAdvancedMachineFeatures(o.advancedMachineFeatures!); - checkUnnamed42(o.authorizedGaeApplications!); + checkUnnamed48(o.authorizedGaeApplications!); unittest.expect(o.availabilityType!, unittest.equals('foo')); checkBackupConfiguration(o.backupConfiguration!); unittest.expect(o.collation!, unittest.equals('foo')); @@ -3161,13 +3402,14 @@ void checkSettings(api.Settings o) { unittest.expect(o.dataDiskProvisionedThroughput!, unittest.equals('foo')); unittest.expect(o.dataDiskSizeGb!, unittest.equals('foo')); unittest.expect(o.dataDiskType!, unittest.equals('foo')); - checkUnnamed43(o.databaseFlags!); + checkUnnamed49(o.databaseFlags!); unittest.expect(o.databaseReplicationEnabled!, unittest.isTrue); unittest.expect(o.deletionProtectionEnabled!, unittest.isTrue); - checkUnnamed44(o.denyMaintenancePeriods!); + checkUnnamed50(o.denyMaintenancePeriods!); unittest.expect(o.edition!, unittest.equals('foo')); unittest.expect(o.enableDataplexIntegration!, unittest.isTrue); unittest.expect(o.enableGoogleMlIntegration!, unittest.isTrue); + checkFinalBackupConfig(o.finalBackupConfig!); checkInsightsConfig(o.insightsConfig!); checkIpConfiguration(o.ipConfiguration!); unittest.expect(o.kind!, unittest.equals('foo')); @@ -3175,6 +3417,7 @@ void checkSettings(api.Settings o) { checkMaintenanceWindow(o.maintenanceWindow!); checkPasswordValidationPolicy(o.passwordValidationPolicy!); unittest.expect(o.pricingPlan!, unittest.equals('foo')); + checkReadPoolAutoScaleConfig(o.readPoolAutoScaleConfig!); unittest.expect(o.replicationLagMaxSeconds!, unittest.equals(42)); unittest.expect(o.replicationType!, unittest.equals('foo')); unittest.expect(o.retainBackupsOnDelete!, unittest.isTrue); @@ -3184,18 +3427,30 @@ void checkSettings(api.Settings o) { unittest.expect(o.storageAutoResizeLimit!, unittest.equals('foo')); unittest.expect(o.tier!, unittest.equals('foo')); unittest.expect(o.timeZone!, unittest.equals('foo')); - checkUnnamed45(o.userLabels!); + checkUnnamed51(o.userLabels!); } buildCounterSettings--; } +core.List buildUnnamed52() => ['foo', 'foo']; + +void checkUnnamed52(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterSqlActiveDirectoryConfig = 0; api.SqlActiveDirectoryConfig buildSqlActiveDirectoryConfig() { final o = api.SqlActiveDirectoryConfig(); buildCounterSqlActiveDirectoryConfig++; if (buildCounterSqlActiveDirectoryConfig < 3) { + o.adminCredentialSecretName = 'foo'; + o.dnsServers = buildUnnamed52(); o.domain = 'foo'; o.kind = 'foo'; + o.mode = 'foo'; + o.organizationalUnit = 'foo'; } buildCounterSqlActiveDirectoryConfig--; return o; @@ -3204,8 +3459,12 @@ api.SqlActiveDirectoryConfig buildSqlActiveDirectoryConfig() { void checkSqlActiveDirectoryConfig(api.SqlActiveDirectoryConfig o) { buildCounterSqlActiveDirectoryConfig++; if (buildCounterSqlActiveDirectoryConfig < 3) { + unittest.expect(o.adminCredentialSecretName!, unittest.equals('foo')); + checkUnnamed52(o.dnsServers!); unittest.expect(o.domain!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); + unittest.expect(o.mode!, unittest.equals('foo')); + unittest.expect(o.organizationalUnit!, unittest.equals('foo')); } buildCounterSqlActiveDirectoryConfig--; } @@ -3255,6 +3514,48 @@ void checkSqlInstancesAcquireSsrsLeaseResponse( buildCounterSqlInstancesAcquireSsrsLeaseResponse--; } +core.List buildUnnamed53() => [buildMessage(), buildMessage()]; + +void checkUnnamed53(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkMessage(o[0]); + checkMessage(o[1]); +} + +core.List buildUnnamed54() => [ + buildQueryResult(), + buildQueryResult(), +]; + +void checkUnnamed54(core.List o) { + unittest.expect(o, unittest.hasLength(2)); + checkQueryResult(o[0]); + checkQueryResult(o[1]); +} + +core.int buildCounterSqlInstancesExecuteSqlResponse = 0; +api.SqlInstancesExecuteSqlResponse buildSqlInstancesExecuteSqlResponse() { + final o = api.SqlInstancesExecuteSqlResponse(); + buildCounterSqlInstancesExecuteSqlResponse++; + if (buildCounterSqlInstancesExecuteSqlResponse < 3) { + o.messages = buildUnnamed53(); + o.metadata = buildMetadata(); + o.results = buildUnnamed54(); + } + buildCounterSqlInstancesExecuteSqlResponse--; + return o; +} + +void checkSqlInstancesExecuteSqlResponse(api.SqlInstancesExecuteSqlResponse o) { + buildCounterSqlInstancesExecuteSqlResponse++; + if (buildCounterSqlInstancesExecuteSqlResponse < 3) { + checkUnnamed53(o.messages!); + checkMetadata(o.metadata!); + checkUnnamed54(o.results!); + } + buildCounterSqlInstancesExecuteSqlResponse--; +} + core.int buildCounterSqlInstancesGetDiskShrinkConfigResponse = 0; api.SqlInstancesGetDiskShrinkConfigResponse buildSqlInstancesGetDiskShrinkConfigResponse() { @@ -3287,6 +3588,7 @@ buildSqlInstancesGetLatestRecoveryTimeResponse() { final o = api.SqlInstancesGetLatestRecoveryTimeResponse(); buildCounterSqlInstancesGetLatestRecoveryTimeResponse++; if (buildCounterSqlInstancesGetLatestRecoveryTimeResponse < 3) { + o.earliestRecoveryTime = 'foo'; o.kind = 'foo'; o.latestRecoveryTime = 'foo'; } @@ -3299,6 +3601,7 @@ void checkSqlInstancesGetLatestRecoveryTimeResponse( ) { buildCounterSqlInstancesGetLatestRecoveryTimeResponse++; if (buildCounterSqlInstancesGetLatestRecoveryTimeResponse < 3) { + unittest.expect(o.earliestRecoveryTime!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.latestRecoveryTime!, unittest.equals('foo')); } @@ -3375,6 +3678,7 @@ buildSqlInstancesStartExternalSyncRequest() { if (buildCounterSqlInstancesStartExternalSyncRequest < 3) { o.migrationType = 'foo'; o.mysqlSyncConfig = buildMySqlSyncConfig(); + o.replicaOverwriteEnabled = true; o.skipVerification = true; o.syncMode = 'foo'; o.syncParallelLevel = 'foo'; @@ -3390,6 +3694,7 @@ void checkSqlInstancesStartExternalSyncRequest( if (buildCounterSqlInstancesStartExternalSyncRequest < 3) { unittest.expect(o.migrationType!, unittest.equals('foo')); checkMySqlSyncConfig(o.mysqlSyncConfig!); + unittest.expect(o.replicaOverwriteEnabled!, unittest.isTrue); unittest.expect(o.skipVerification!, unittest.isTrue); unittest.expect(o.syncMode!, unittest.equals('foo')); unittest.expect(o.syncParallelLevel!, unittest.equals('foo')); @@ -3397,12 +3702,12 @@ void checkSqlInstancesStartExternalSyncRequest( buildCounterSqlInstancesStartExternalSyncRequest--; } -core.List buildUnnamed46() => [ +core.List buildUnnamed55() => [ buildExternalSyncSelectedObject(), buildExternalSyncSelectedObject(), ]; -void checkUnnamed46(core.List o) { +void checkUnnamed55(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkExternalSyncSelectedObject(o[0]); checkExternalSyncSelectedObject(o[1]); @@ -3416,7 +3721,7 @@ buildSqlInstancesVerifyExternalSyncSettingsRequest() { if (buildCounterSqlInstancesVerifyExternalSyncSettingsRequest < 3) { o.migrationType = 'foo'; o.mysqlSyncConfig = buildMySqlSyncConfig(); - o.selectedObjects = buildUnnamed46(); + o.selectedObjects = buildUnnamed55(); o.syncMode = 'foo'; o.syncParallelLevel = 'foo'; o.verifyConnectionOnly = true; @@ -3433,7 +3738,7 @@ void checkSqlInstancesVerifyExternalSyncSettingsRequest( if (buildCounterSqlInstancesVerifyExternalSyncSettingsRequest < 3) { unittest.expect(o.migrationType!, unittest.equals('foo')); checkMySqlSyncConfig(o.mysqlSyncConfig!); - checkUnnamed46(o.selectedObjects!); + checkUnnamed55(o.selectedObjects!); unittest.expect(o.syncMode!, unittest.equals('foo')); unittest.expect(o.syncParallelLevel!, unittest.equals('foo')); unittest.expect(o.verifyConnectionOnly!, unittest.isTrue); @@ -3442,23 +3747,23 @@ void checkSqlInstancesVerifyExternalSyncSettingsRequest( buildCounterSqlInstancesVerifyExternalSyncSettingsRequest--; } -core.List buildUnnamed47() => [ +core.List buildUnnamed56() => [ buildSqlExternalSyncSettingError(), buildSqlExternalSyncSettingError(), ]; -void checkUnnamed47(core.List o) { +void checkUnnamed56(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSqlExternalSyncSettingError(o[0]); checkSqlExternalSyncSettingError(o[1]); } -core.List buildUnnamed48() => [ +core.List buildUnnamed57() => [ buildSqlExternalSyncSettingError(), buildSqlExternalSyncSettingError(), ]; -void checkUnnamed48(core.List o) { +void checkUnnamed57(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSqlExternalSyncSettingError(o[0]); checkSqlExternalSyncSettingError(o[1]); @@ -3470,9 +3775,9 @@ buildSqlInstancesVerifyExternalSyncSettingsResponse() { final o = api.SqlInstancesVerifyExternalSyncSettingsResponse(); buildCounterSqlInstancesVerifyExternalSyncSettingsResponse++; if (buildCounterSqlInstancesVerifyExternalSyncSettingsResponse < 3) { - o.errors = buildUnnamed47(); + o.errors = buildUnnamed56(); o.kind = 'foo'; - o.warnings = buildUnnamed48(); + o.warnings = buildUnnamed57(); } buildCounterSqlInstancesVerifyExternalSyncSettingsResponse--; return o; @@ -3483,9 +3788,9 @@ void checkSqlInstancesVerifyExternalSyncSettingsResponse( ) { buildCounterSqlInstancesVerifyExternalSyncSettingsResponse++; if (buildCounterSqlInstancesVerifyExternalSyncSettingsResponse < 3) { - checkUnnamed47(o.errors!); + checkUnnamed56(o.errors!); unittest.expect(o.kind!, unittest.equals('foo')); - checkUnnamed48(o.warnings!); + checkUnnamed57(o.warnings!); } buildCounterSqlInstancesVerifyExternalSyncSettingsResponse--; } @@ -3582,9 +3887,9 @@ void checkSqlServerDatabaseDetails(api.SqlServerDatabaseDetails o) { buildCounterSqlServerDatabaseDetails--; } -core.List buildUnnamed49() => ['foo', 'foo']; +core.List buildUnnamed58() => ['foo', 'foo']; -void checkUnnamed49(core.List o) { +void checkUnnamed58(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3596,7 +3901,7 @@ api.SqlServerUserDetails buildSqlServerUserDetails() { buildCounterSqlServerUserDetails++; if (buildCounterSqlServerUserDetails < 3) { o.disabled = true; - o.serverRoles = buildUnnamed49(); + o.serverRoles = buildUnnamed58(); } buildCounterSqlServerUserDetails--; return o; @@ -3606,7 +3911,7 @@ void checkSqlServerUserDetails(api.SqlServerUserDetails o) { buildCounterSqlServerUserDetails++; if (buildCounterSqlServerUserDetails < 3) { unittest.expect(o.disabled!, unittest.isTrue); - checkUnnamed49(o.serverRoles!); + checkUnnamed58(o.serverRoles!); } buildCounterSqlServerUserDetails--; } @@ -3751,9 +4056,9 @@ void checkSslCertsInsertResponse(api.SslCertsInsertResponse o) { buildCounterSslCertsInsertResponse--; } -core.List buildUnnamed50() => [buildSslCert(), buildSslCert()]; +core.List buildUnnamed59() => [buildSslCert(), buildSslCert()]; -void checkUnnamed50(core.List o) { +void checkUnnamed59(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkSslCert(o[0]); checkSslCert(o[1]); @@ -3764,7 +4069,7 @@ api.SslCertsListResponse buildSslCertsListResponse() { final o = api.SslCertsListResponse(); buildCounterSslCertsListResponse++; if (buildCounterSslCertsListResponse < 3) { - o.items = buildUnnamed50(); + o.items = buildUnnamed59(); o.kind = 'foo'; } buildCounterSslCertsListResponse--; @@ -3774,7 +4079,7 @@ api.SslCertsListResponse buildSslCertsListResponse() { void checkSslCertsListResponse(api.SslCertsListResponse o) { buildCounterSslCertsListResponse++; if (buildCounterSslCertsListResponse < 3) { - checkUnnamed50(o.items!); + checkUnnamed59(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); } buildCounterSslCertsListResponse--; @@ -3801,9 +4106,30 @@ void checkSyncFlags(api.SyncFlags o) { buildCounterSyncFlags--; } -core.List buildUnnamed51() => ['foo', 'foo']; +core.int buildCounterTargetMetric = 0; +api.TargetMetric buildTargetMetric() { + final o = api.TargetMetric(); + buildCounterTargetMetric++; + if (buildCounterTargetMetric < 3) { + o.metric = 'foo'; + o.targetValue = 42.0; + } + buildCounterTargetMetric--; + return o; +} + +void checkTargetMetric(api.TargetMetric o) { + buildCounterTargetMetric++; + if (buildCounterTargetMetric < 3) { + unittest.expect(o.metric!, unittest.equals('foo')); + unittest.expect(o.targetValue!, unittest.equals(42.0)); + } + buildCounterTargetMetric--; +} + +core.List buildUnnamed60() => ['foo', 'foo']; -void checkUnnamed51(core.List o) { +void checkUnnamed60(core.List o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3817,7 +4143,7 @@ api.Tier buildTier() { o.DiskQuota = 'foo'; o.RAM = 'foo'; o.kind = 'foo'; - o.region = buildUnnamed51(); + o.region = buildUnnamed60(); o.tier = 'foo'; } buildCounterTier--; @@ -3830,15 +4156,15 @@ void checkTier(api.Tier o) { unittest.expect(o.DiskQuota!, unittest.equals('foo')); unittest.expect(o.RAM!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); - checkUnnamed51(o.region!); + checkUnnamed60(o.region!); unittest.expect(o.tier!, unittest.equals('foo')); } buildCounterTier--; } -core.List buildUnnamed52() => [buildTier(), buildTier()]; +core.List buildUnnamed61() => [buildTier(), buildTier()]; -void checkUnnamed52(core.List o) { +void checkUnnamed61(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkTier(o[0]); checkTier(o[1]); @@ -3849,7 +4175,7 @@ api.TiersListResponse buildTiersListResponse() { final o = api.TiersListResponse(); buildCounterTiersListResponse++; if (buildCounterTiersListResponse < 3) { - o.items = buildUnnamed52(); + o.items = buildUnnamed61(); o.kind = 'foo'; } buildCounterTiersListResponse--; @@ -3859,7 +4185,7 @@ api.TiersListResponse buildTiersListResponse() { void checkTiersListResponse(api.TiersListResponse o) { buildCounterTiersListResponse++; if (buildCounterTiersListResponse < 3) { - checkUnnamed52(o.items!); + checkUnnamed61(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); } buildCounterTiersListResponse--; @@ -3894,6 +4220,7 @@ api.User buildUser() { o.dualPasswordType = 'foo'; o.etag = 'foo'; o.host = 'foo'; + o.iamStatus = 'foo'; o.instance = 'foo'; o.kind = 'foo'; o.name = 'foo'; @@ -3913,6 +4240,7 @@ void checkUser(api.User o) { unittest.expect(o.dualPasswordType!, unittest.equals('foo')); unittest.expect(o.etag!, unittest.equals('foo')); unittest.expect(o.host!, unittest.equals('foo')); + unittest.expect(o.iamStatus!, unittest.equals('foo')); unittest.expect(o.instance!, unittest.equals('foo')); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.name!, unittest.equals('foo')); @@ -3952,9 +4280,9 @@ void checkUserPasswordValidationPolicy(api.UserPasswordValidationPolicy o) { buildCounterUserPasswordValidationPolicy--; } -core.List buildUnnamed53() => [buildUser(), buildUser()]; +core.List buildUnnamed62() => [buildUser(), buildUser()]; -void checkUnnamed53(core.List o) { +void checkUnnamed62(core.List o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -3965,7 +4293,7 @@ api.UsersListResponse buildUsersListResponse() { final o = api.UsersListResponse(); buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { - o.items = buildUnnamed53(); + o.items = buildUnnamed62(); o.kind = 'foo'; o.nextPageToken = 'foo'; } @@ -3976,13 +4304,34 @@ api.UsersListResponse buildUsersListResponse() { void checkUsersListResponse(api.UsersListResponse o) { buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { - checkUnnamed53(o.items!); + checkUnnamed62(o.items!); unittest.expect(o.kind!, unittest.equals('foo')); unittest.expect(o.nextPageToken!, unittest.equals('foo')); } buildCounterUsersListResponse--; } +core.int buildCounterValue = 0; +api.Value buildValue() { + final o = api.Value(); + buildCounterValue++; + if (buildCounterValue < 3) { + o.nullValue = true; + o.value = 'foo'; + } + buildCounterValue--; + return o; +} + +void checkValue(api.Value o) { + buildCounterValue++; + if (buildCounterValue < 3) { + unittest.expect(o.nullValue!, unittest.isTrue); + unittest.expect(o.value!, unittest.equals('foo')); + } + buildCounterValue--; +} + void main() { unittest.group('obj-schema-AclEntry', () { unittest.test('to-json--from-json', () async { @@ -4138,6 +4487,17 @@ void main() { }); }); + unittest.group('obj-schema-Column', () { + unittest.test('to-json--from-json', () async { + final o = buildColumn(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Column.fromJson( + oJson as core.Map, + ); + checkColumn(od); + }); + }); + unittest.group('obj-schema-ConnectPoolNodeConfig', () { unittest.test('to-json--from-json', () async { final o = buildConnectPoolNodeConfig(); @@ -4347,6 +4707,17 @@ void main() { }); }); + unittest.group('obj-schema-ExecuteSqlPayload', () { + unittest.test('to-json--from-json', () async { + final o = buildExecuteSqlPayload(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ExecuteSqlPayload.fromJson( + oJson as core.Map, + ); + checkExecuteSqlPayload(od); + }); + }); + unittest.group('obj-schema-ExportContextBakExportOptions', () { unittest.test('to-json--from-json', () async { final o = buildExportContextBakExportOptions(); @@ -4453,6 +4824,17 @@ void main() { }); }); + unittest.group('obj-schema-FinalBackupConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildFinalBackupConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.FinalBackupConfig.fromJson( + oJson as core.Map, + ); + checkFinalBackupConfig(od); + }); + }); + unittest.group('obj-schema-Flag', () { unittest.test('to-json--from-json', () async { final o = buildFlag(); @@ -4845,6 +5227,28 @@ void main() { }); }); + unittest.group('obj-schema-Message', () { + unittest.test('to-json--from-json', () async { + final o = buildMessage(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Message.fromJson( + oJson as core.Map, + ); + checkMessage(od); + }); + }); + + unittest.group('obj-schema-Metadata', () { + unittest.test('to-json--from-json', () async { + final o = buildMetadata(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Metadata.fromJson( + oJson as core.Map, + ); + checkMetadata(od); + }); + }); + unittest.group('obj-schema-MySqlReplicaConfiguration', () { unittest.test('to-json--from-json', () async { final o = buildMySqlReplicaConfiguration(); @@ -4999,6 +5403,28 @@ void main() { }); }); + unittest.group('obj-schema-QueryResult', () { + unittest.test('to-json--from-json', () async { + final o = buildQueryResult(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.QueryResult.fromJson( + oJson as core.Map, + ); + checkQueryResult(od); + }); + }); + + unittest.group('obj-schema-ReadPoolAutoScaleConfig', () { + unittest.test('to-json--from-json', () async { + final o = buildReadPoolAutoScaleConfig(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.ReadPoolAutoScaleConfig.fromJson( + oJson as core.Map, + ); + checkReadPoolAutoScaleConfig(od); + }); + }); + unittest.group('obj-schema-ReplicaConfiguration', () { unittest.test('to-json--from-json', () async { final o = buildReplicaConfiguration(); @@ -5065,6 +5491,15 @@ void main() { }); }); + unittest.group('obj-schema-Row', () { + unittest.test('to-json--from-json', () async { + final o = buildRow(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Row.fromJson(oJson as core.Map); + checkRow(od); + }); + }); + unittest.group('obj-schema-SelectedObjects', () { unittest.test('to-json--from-json', () async { final o = buildSelectedObjects(); @@ -5120,6 +5555,17 @@ void main() { }); }); + unittest.group('obj-schema-SqlInstancesExecuteSqlResponse', () { + unittest.test('to-json--from-json', () async { + final o = buildSqlInstancesExecuteSqlResponse(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.SqlInstancesExecuteSqlResponse.fromJson( + oJson as core.Map, + ); + checkSqlInstancesExecuteSqlResponse(od); + }); + }); + unittest.group('obj-schema-SqlInstancesGetDiskShrinkConfigResponse', () { unittest.test('to-json--from-json', () async { final o = buildSqlInstancesGetDiskShrinkConfigResponse(); @@ -5357,6 +5803,17 @@ void main() { }); }); + unittest.group('obj-schema-TargetMetric', () { + unittest.test('to-json--from-json', () async { + final o = buildTargetMetric(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.TargetMetric.fromJson( + oJson as core.Map, + ); + checkTargetMetric(od); + }); + }); + unittest.group('obj-schema-Tier', () { unittest.test('to-json--from-json', () async { final o = buildTier(); @@ -5423,6 +5880,17 @@ void main() { }); }); + unittest.group('obj-schema-Value', () { + unittest.test('to-json--from-json', () async { + final o = buildValue(); + final oJson = convert.jsonDecode(convert.jsonEncode(o)); + final od = api.Value.fromJson( + oJson as core.Map, + ); + checkValue(od); + }); + }); + unittest.group('resource-BackupRunsResource', () { unittest.test('method--delete', () async { final mock = HttpServerMock(); @@ -7657,6 +8125,98 @@ void main() { checkOperation(response as api.Operation); }); + unittest.test('method--executeSql', () async { + final mock = HttpServerMock(); + final res = api.SQLAdminApi(mock).instances; + final arg_request = buildExecuteSqlPayload(); + final arg_project = 'foo'; + final arg_instance = 'foo'; + final arg_$fields = 'foo'; + mock.register( + unittest.expectAsync2((http.BaseRequest req, json) { + final obj = api.ExecuteSqlPayload.fromJson( + json as core.Map, + ); + checkExecuteSqlPayload(obj); + + final path = req.url.path; + var pathOffset = 0; + core.int index; + core.String subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), + unittest.equals('/'), + ); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 21), + unittest.equals('sql/v1beta4/projects/'), + ); + pathOffset += 21; + index = path.indexOf('/instances/', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_project')); + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('/instances/'), + ); + pathOffset += 11; + index = path.indexOf('/executeSql', pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent( + path.substring(pathOffset, index), + ); + pathOffset = index; + unittest.expect(subPart, unittest.equals('$arg_instance')); + unittest.expect( + path.substring(pathOffset, pathOffset + 11), + unittest.equals('/executeSql'), + ); + pathOffset += 11; + + final query = req.url.query; + var queryOffset = 0; + final queryMap = >{}; + void addQueryParam(core.String n, core.String v) => + queryMap.putIfAbsent(n, () => []).add(v); + + if (query.isNotEmpty) { + for (var part in query.split('&')) { + final keyValue = part.split('='); + addQueryParam( + core.Uri.decodeQueryComponent(keyValue[0]), + core.Uri.decodeQueryComponent(keyValue[1]), + ); + } + } + unittest.expect( + queryMap['fields']!.first, + unittest.equals(arg_$fields), + ); + + final h = {'content-type': 'application/json; charset=utf-8'}; + final resp = convert.json.encode( + buildSqlInstancesExecuteSqlResponse(), + ); + return async.Future.value(stringResponse(200, h, resp)); + }), + true, + ); + final response = await res.executeSql( + arg_request, + arg_project, + arg_instance, + $fields: arg_$fields, + ); + checkSqlInstancesExecuteSqlResponse( + response as api.SqlInstancesExecuteSqlResponse, + ); + }); + unittest.test('method--export', () async { final mock = HttpServerMock(); final res = api.SQLAdminApi(mock).instances; @@ -8644,6 +9204,7 @@ void main() { final res = api.SQLAdminApi(mock).instances; final arg_project = 'foo'; final arg_instance = 'foo'; + final arg_mode = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -8701,6 +9262,7 @@ void main() { ); } } + unittest.expect(queryMap['mode']!.first, unittest.equals(arg_mode)); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -8715,6 +9277,7 @@ void main() { final response = await res.resetSslConfig( arg_project, arg_instance, + mode: arg_mode, $fields: arg_$fields, ); checkOperation(response as api.Operation); @@ -9725,6 +10288,7 @@ void main() { final res = api.SQLAdminApi(mock).projects.instances; final arg_project = 'foo'; final arg_instance = 'foo'; + final arg_sourceInstanceDeletionTime = 'foo'; final arg_$fields = 'foo'; mock.register( unittest.expectAsync2((http.BaseRequest req, json) { @@ -9782,6 +10346,10 @@ void main() { ); } } + unittest.expect( + queryMap['sourceInstanceDeletionTime']!.first, + unittest.equals(arg_sourceInstanceDeletionTime), + ); unittest.expect( queryMap['fields']!.first, unittest.equals(arg_$fields), @@ -9798,6 +10366,7 @@ void main() { final response = await res.getLatestRecoveryTime( arg_project, arg_instance, + sourceInstanceDeletionTime: arg_sourceInstanceDeletionTime, $fields: arg_$fields, ); checkSqlInstancesGetLatestRecoveryTimeResponse( diff --git a/resources/googleapis/CHANGELOG.md b/resources/googleapis/CHANGELOG.md index 5b0e070de..df18bb318 100644 --- a/resources/googleapis/CHANGELOG.md +++ b/resources/googleapis/CHANGELOG.md @@ -1,3 +1,157 @@ +## 15.0.0 + +### APIs + +- `accessapproval` - updated `v1` +- `admin.directory` - updated `v1` +- `admin.reports` - updated `v1` +- `aiplatform` - updated `v1` +- `alloydb` - updated `v1` +- `analyticshub` - updated `v1` +- `androidmanagement` - updated `v1` +- `androidpublisher` - updated `v3` +- `apigateway` - updated `v1` +- `apigee` - updated `v1` +- `apihub` - updated `v1` +- `appengine` - updated `v1` +- `apphub` - updated `v1` +- `authorizedbuyersmarketplace` - updated `v1` +- `backupdr` - updated `v1` +- `batch` - updated `v1` +- `beyondcorp` - updated `v1` +- `bigquery` - updated `v2` +- `bigquerydatatransfer` - updated `v1` +- `bigqueryreservation` - updated `v1` +- `bigtableadmin` - updated `v2` +- `certificatemanager` - updated `v1` +- `chat` - updated `v1` +- `chromemanagement` - updated `v1` +- `classroom` - updated `v1` +- `cloudbuild` - updated `v1` +- `cloudbuild` - updated `v2` +- `cloudchannel` - updated `v1` +- `clouddeploy` - updated `v1` +- `cloudfunctions` - updated `v1` +- `cloudfunctions` - updated `v2` +- `cloudidentity` - updated `v1` +- `cloudkms` - updated `v1` +- `composer` - updated `v1` +- `compute` - updated `v1` +- `config` - updated `v1` +- `connectors` - updated `v1` +- `connectors` - updated `v2` +- `contactcenterinsights` - updated `v1` +- `container` - updated `v1` +- `containeranalysis` - updated `v1` +- `datafusion` - updated `v1` +- `datamigration` - updated `v1` +- `dataplex` - updated `v1` +- `dataproc` - updated `v1` +- `datastore` - updated `v1` +- `datastream` - updated `v1` +- `deploymentmanager` - updated `v2` +- `developerconnect` - updated `v1` +- `dfareporting` - updated `v4` +- `dialogflow` - updated `v2` +- `dialogflow` - updated `v3` +- `digitalassetlinks` - updated `v1` +- `displayvideo` - updated `v2` +- `displayvideo` - updated `v3` +- `displayvideo` - updated `v4` +- `dlp` - updated `v2` +- `dns` - updated `v1` +- `documentai` - updated `v1` +- `drive` - updated `v2` +- `drive` - updated `v3` +- `driveactivity` - updated `v2` +- `drivelabels` - updated `v2` +- `eventarc` - updated `v1` +- `file` - updated `v1` +- `firebaseappcheck` - updated `v1` +- `firebaseappdistribution` - updated `v1` +- `firebaseapphosting` - updated `v1` +- `firebasedataconnect` - updated `v1` +- `firestore` - updated `v1` +- `fitness` - updated `v1` +- `gkebackup` - updated `v1` +- `gkehub` - updated `v1` +- `gkehub` - updated `v2` +- `gkeonprem` - updated `v1` +- `groupsmigration` - updated `v1` +- `healthcare` - updated `v1` +- `iam` - updated `v1` +- `language` - updated `v1` +- `language` - updated `v2` +- `logging` - updated `v2` +- `looker` - updated `v1` +- `managedkafka` - updated `v1` +- `manufacturers` - updated `v1` +- `memcache` - updated `v1` +- `metastore` - updated `v1` +- `migrationcenter` - updated `v1` +- `ml` - updated `v1` +- `monitoring` - updated `v3` +- `mybusinessverifications` - updated `v1` +- `netapp` - updated `v1` +- `networkconnectivity` - updated `v1` +- `networkmanagement` - updated `v1` +- `networksecurity` - updated `v1` +- `observability` - updated `v1` +- `ondemandscanning` - updated `v1` +- `oracledatabase` - updated `v1` +- `orgpolicy` - updated `v2` +- `parallelstore` - updated `v1` +- `parametermanager` - updated `v1` +- `paymentsresellersubscription` - updated `v1` +- `places` - updated `v1` +- `playintegrity` - updated `v1` +- `policysimulator` - updated `v1` +- `privateca` - updated `v1` +- `pubsub` - updated `v1` +- `redis` - updated `v1` +- `retail` - updated `v2` +- `run` - updated `v1` +- `run` - updated `v2` +- `script` - updated `v1` +- `secretmanager` - updated `v1` +- `securitycenter` - updated `v1` +- `securityposture` - updated `v1` +- `servicecontrol` - updated `v1` +- `servicecontrol` - updated `v2` +- `servicedirectory` - updated `v1` +- `solar` - updated `v1` +- `storage` - updated `v1` +- `storagebatchoperations` - updated `v1` +- `storagetransfer` - updated `v1` +- `sts` - updated `v1` +- `tagmanager` - updated `v1` +- `tagmanager` - updated `v2` +- `testing` - updated `v1` +- `texttospeech` - updated `v1` +- `tpu` - updated `v1` +- `tpu` - updated `v2` +- `trafficdirector` - updated `v2` +- `trafficdirector` - updated `v3` +- `versionhistory` - updated `v1` +- `vision` - updated `v1` +- `vmmigration` - updated `v1` +- `vmwareengine` - updated `v1` +- `vpcaccess` - updated `v1` +- `walletobjects` - updated `v1` +- `workflows` - updated `v1` +- `workloadmanager` - updated `v1` +- `workstations` - updated `v1` +- `adexchangebuyer2` - updated `v2beta1` +- `analyticsadmin` - updated `v1alpha` +- `cloudsupport` - updated `v2beta` +- `dataflow` - updated `v1b3` +- `datastream` - updated `v1alpha1` +- `firebaseappcheck` - updated v1beta` +- `gkehub` - updated `v2alpha` +- `lifesciences` - updated `v2beta` +- `sqladmin` - updated `v1beta4` +- `lifesciences` - removed `v2beta`. + ## 14.1.0-wip - Require `sdk: ^3.7.0` @@ -5,7 +159,7 @@ ## 14.0.0 - Require Dart 3.6 or later. -- Note *many* APIs were removed in this release due to changes in Google API +- Note _many_ APIs were removed in this release due to changes in Google API security practices. ### APIs @@ -50,34 +204,34 @@ ## 13.1.0 - - `logging` - removed (*BROKEN*) `tail()` function call. - - `dataportability` - new! - - `speech` - added `v2` +- `logging` - removed (_BROKEN_) `tail()` function call. +- `dataportability` - new! +- `speech` - added `v2` ## 13.0.0 - - `apphub` - new! - - `bigqueryconnection` - new! - - `displayvideo` - Removed v1 (v2, v3 still exist) - - `walletobjects` - new! - - `workspaceevents` - new! +- `apphub` - new! +- `bigqueryconnection` - new! +- `displayvideo` - Removed v1 (v2, v3 still exist) +- `walletobjects` - new! +- `workspaceevents` - new! ## 12.0.0 - - `alloydb` - new! - - `backupdr` - new! - - `biglake` - new! - - `bigquerydatapolicy` - new! - - `cloudbuild` - added `v2` - - `displayvideo` - added `v3` - - `gameservices` - Removed! - - `language` - added `v2` - - `looker` - new! - - `rapidmigrationassessment` - new! - - `safebrowsing` - added `v5` - - `trafficdirector` - added `v3` - - `vmwareengine` - new! - - `workstations` - new! +- `alloydb` - new! +- `backupdr` - new! +- `biglake` - new! +- `bigquerydatapolicy` - new! +- `cloudbuild` - added `v2` +- `displayvideo` - added `v3` +- `gameservices` - Removed! +- `language` - added `v2` +- `looker` - new! +- `rapidmigrationassessment` - new! +- `safebrowsing` - added `v5` +- `trafficdirector` - added `v3` +- `vmwareengine` - new! +- `workstations` - new! ## 11.4.0 @@ -204,7 +358,7 @@ ## 7.0.0 -- Removed *many* types defined in the source library JSON definition, but that +- Removed _many_ types defined in the source library JSON definition, but that were not used by the API. - Drop unusable `Firestore` `listen` function and related types. [#77](https://github.com/google/googleapis.dart/issues/77) @@ -250,7 +404,7 @@ ### API changes -- `adexchangebuyer` - **removed** +- `adexchangebuyer` - **removed** - `contactcenterinsights` - new! - `mybusinessbusinessinformation` - new! - `mybusinessnotifications` - new!